Home | History | Annotate | Line # | Download | only in cf
broken-glob.m4 revision 1.1.1.2
      1  1.1.1.2  elric dnl Id
      2      1.1  elric dnl
      3      1.1  elric dnl check for glob(3)
      4      1.1  elric dnl
      5      1.1  elric AC_DEFUN([AC_BROKEN_GLOB],[
      6      1.1  elric AC_CACHE_CHECK(for working glob, ac_cv_func_glob_working,
      7      1.1  elric ac_cv_func_glob_working=yes
      8      1.1  elric AC_LINK_IFELSE([AC_LANG_PROGRAM([[
      9      1.1  elric #include <stdio.h>
     10      1.1  elric #include <glob.h>]],[[
     11      1.1  elric glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
     12      1.1  elric #ifdef GLOB_MAXPATH
     13      1.1  elric GLOB_MAXPATH
     14      1.1  elric #else
     15      1.1  elric GLOB_LIMIT
     16      1.1  elric #endif
     17      1.1  elric ,
     18      1.1  elric NULL, NULL);
     19      1.1  elric ]])],[:],[ac_cv_func_glob_working=no]))
     20      1.1  elric 
     21      1.1  elric if test "$ac_cv_func_glob_working" = yes; then
     22      1.1  elric 	AC_DEFINE(HAVE_GLOB, 1, [define if you have a glob() that groks 
     23      1.1  elric 	GLOB_BRACE, GLOB_NOCHECK, GLOB_QUOTE, GLOB_TILDE, and GLOB_LIMIT])
     24      1.1  elric fi
     25      1.1  elric if test "$ac_cv_func_glob_working" = yes; then
     26      1.1  elric AC_NEED_PROTO([#include <stdio.h>
     27      1.1  elric #include <glob.h>],glob)
     28      1.1  elric fi
     29      1.1  elric ])
     30