]> git.wh0rd.org - dump.git/blobdiff - configure.in
Use internal glob on libc5 systems (no ALTDIRFUNC).
[dump.git] / configure.in
index adc764b1ace0b21d40940c8056649f1c23ee203b..44a81a5b91e42ef35ca1869ee6e5eec28b949044 100644 (file)
@@ -215,7 +215,24 @@ fi
 dnl
 dnl Check for library functions
 dnl
-AC_CHECK_FUNCS(err errx verr verrx vwarn vwarnx warn warnx realpath glob lchown)
+AC_CHECK_FUNCS(err errx verr verrx vwarn vwarnx warn warnx realpath lchown)
+AC_CHECK_FUNC(glob)
+
+dnl
+dnl Check for GLOB_ALTDIRFUNC
+dnl
+if test "$ac_cv_func_glob" = "yes"; then
+       AC_EGREP_CPP(yes, 
+       [
+#      include <glob.h>
+#      ifdef GLOB_ALTDIRFUNC
+       yes
+#      endif
+       ], AC_DEFINE(HAVE_GLOB), noglob=yes)
+       if test "$noglob" = "yes"; then
+               echo "Your system does not support extended glob, will use the internal routines"
+       fi
+fi
 
 dnl
 dnl Check for types