1 dnl $Heimdal: broken-glob.m4 14166 2004-08-26 12:35:42Z joda $
6 AC_DEFUN([AC_BROKEN_GLOB],[
7 AC_CACHE_CHECK(for working glob, ac_cv_func_glob_working,
8 ac_cv_func_glob_working=yes
9 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
11 #include <glob.h>]],[[
12 glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
20 ]])],[:],[ac_cv_func_glob_working=no]))
22 if test "$ac_cv_func_glob_working" = yes; then
23 AC_DEFINE(HAVE_GLOB, 1, [define if you have a glob() that groks
24 GLOB_BRACE, GLOB_NOCHECK, GLOB_QUOTE, GLOB_TILDE, and GLOB_LIMIT])
26 if test "$ac_cv_func_glob_working" = yes; then
27 AC_NEED_PROTO([#include <stdio.h>
28 #include <glob.h>],glob)