From: Todd C. Miller Date: Thu, 7 Oct 2004 18:27:49 +0000 (+0000) Subject: Define HAVE_EXTENDED_GLOB for extended glob (GLOB_TILDE and GLOB_BRACE) X-Git-Tag: SUDO_1_7_0~885 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=082b0f8b3bf83d3c7a6e33ce2d18b76d8803ecd2;p=sudo Define HAVE_EXTENDED_GLOB for extended glob (GLOB_TILDE and GLOB_BRACE) --- diff --git a/config.h.in b/config.h.in index dc4076f40..57beec97b 100644 --- a/config.h.in +++ b/config.h.in @@ -91,6 +91,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_ERR_H +/* [Define to 1 if your glob.h defines the GLOB_BRACE and GLOB_TILDE flags. */ +#undef HAVE_EXTENDED_GLOB + /* Define to 1 if you have the `flock' function. */ #undef HAVE_FLOCK diff --git a/configure b/configure index 9b911d769..0b583ee38 100755 --- a/configure +++ b/configure @@ -26776,7 +26776,11 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - echo "$as_me:$LINENO: result: yes" >&5 + cat >>confdefs.h <<\_ACEOF +#define HAVE_EXTENDED_GLOB 1 +_ACEOF + + echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me: failed program was:" >&5 @@ -34050,6 +34054,8 @@ fi + + diff --git a/configure.in b/configure.in index 90997035b..7c3e4ec03 100644 --- a/configure.in +++ b/configure.in @@ -1709,7 +1709,8 @@ if test -z "$BROKEN_GETCWD"; then fi AC_CHECK_FUNCS(glob, [AC_MSG_CHECKING(for GLOB_BRACE and GLOB_TILDE in glob.h) AC_TRY_COMPILE([#include ], [int i = GLOB_BRACE | GLOB_TILDE; (void)i;], - [AC_MSG_RESULT(yes)], [AC_LIBOBJ(glob)] + [AC_DEFINE(HAVE_EXTENDED_GLOB) + AC_MSG_RESULT(yes)], [AC_LIBOBJ(glob)] [AC_MSG_RESULT(no)])], [AC_LIBOBJ(glob)]) AC_CHECK_FUNCS(lockf flock, [break]) AC_CHECK_FUNCS(waitpid wait3, [break]) @@ -2257,6 +2258,7 @@ AH_TEMPLATE(HAVE_BSD_AUTH_H, [Define to 1 if you use BSD authentication.]) AH_TEMPLATE(HAVE_DCE, [Define to 1 if you use OSF DCE.]) AH_TEMPLATE(HAVE_DD_FD, [Define to 1 if your `DIR' contains dd_fd.]) AH_TEMPLATE(HAVE_DIRFD, [Define to 1 if you have the `dirfd' function or macro.]) +AH_TEMPLATE(HAVE_EXTENDED_GLOB, [Define to 1 if your glob.h defines the GLOB_BRACE and GLOB_TILDE flags.]) AH_TEMPLATE(HAVE_FNMATCH, [Define to 1 if you have the `fnmatch' function.]) AH_TEMPLATE(HAVE_FWTK, [Define to 1 if you use the FWTK authsrv daemon.]) AH_TEMPLATE(HAVE_GETAUTHUID, [Define to 1 if you have the `getauthuid' function. (ULTRIX 4.x shadow passwords)])