Add check in configure script to check for GLOB_NOMAGIC and GLOB_BRACE in glob.h

This allows config.c to compile when linked against uclibc that does not support these parameters


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@189601 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Doug Bailey
2009-04-21 14:00:55 +00:00
parent 591dd05d9e
commit 9d266db16a
5 changed files with 149 additions and 17 deletions

View File

@@ -147,6 +147,12 @@
/* Define to 1 if you have the `gettimeofday' function. */
#undef HAVE_GETTIMEOFDAY
/* Define to 1 if your glob function supports GLOB_BRACE option. */
#undef HAVE_GLOB_BRACE
/* Define to 1 if your glob function supports GLOB_NOMAGIC option. */
#undef HAVE_GLOB_NOMAGIC
/* Define to indicate the ${GNUTLS_DESCRIP} library */
#undef HAVE_GNUTLS

View File

@@ -128,4 +128,15 @@ typedef unsigned int uint;
typedef unsigned long long uint64_t;
#endif
/* glob compat stuff */
#if defined(__Darwin__) || defined(__CYGWIN__)
#define GLOB_ABORTED GLOB_ABEND
#endif
#if !defined(HAVE_GLOB_NOMAGIC) || !defined(HAVE_GLOB_BRACE)
#define MY_GLOB_FLAGS GLOB_NOCHECK
#else
#define MY_GLOB_FLAGS (GLOB_NOMAGIC | GLOB_BRACE)
#endif
#endif