Author: Francois Mazen <mzf@debian.org>
Description: Ignore invalid flags containing $(top_srcdir) from hdf5
Forwarded: not-needed

--- a/etc/config/m4/ax_lib_hdf5.m4
+++ b/etc/config/m4/ax_lib_hdf5.m4
@@ -225,6 +225,8 @@
         dnl Now sort the flags out based upon their prefixes
         for arg in $HDF5_SHOW $HDF5_tmp_flags ; do
           case "$arg" in
+            *top_srcdir*) echo Ignoring $arg
+              ;;
             -I*) echo $HDF5_CPPFLAGS | $GREP -e "$arg" 2>&1 >/dev/null \
                   || HDF5_CPPFLAGS="$HDF5_CPPFLAGS $arg"
               ;;
