From: Frederic Marchal Date: Sat, 13 Jun 2015 14:35:48 +0000 (+0200) Subject: File globbing is mandatory but can be disabled X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f101e208e5d0d9acd3d03acebb2ef22a850d4b65;p=thirdparty%2Fsarg.git File globbing is mandatory but can be disabled The configure script requires glob.h to be available by default but allow the user to disable it. --- diff --git a/configure.ac b/configure.ac index 5888f2b..e1585f8 100644 --- a/configure.ac +++ b/configure.ac @@ -151,10 +151,16 @@ AS_IF([test "x$with_pcre" != "xno"], # Build with file globbing AC_ARG_WITH([glob], AS_HELP_STRING([--without-glob],[Ignore wildcards in file names]), -[with_glob=no],[with_glob=yes]) +[],[with_glob=yes]) AS_IF([test "x$with_glob" != "xno"], [ - AC_CHECK_HEADERS(glob.h) + AC_CHECK_HEADERS([glob.h],[], + [ + AS_IF([test "x$with_glob" != "xcheck"], + [ + AC_MSG_FAILURE([glob.h not found (use --without-glob to compile without file globbing)]) + ]) + ]) ],[ glob_status="disabled" ])