add kafs.3
[heimdal.git] / cf / broken-glob.m4
blob5466d0f1fc9da523973b9b31457dff7f4091b677
1 dnl $Id$
2 dnl
3 dnl check for glob(3)
4 dnl
5 AC_DEFUN(AC_BROKEN_GLOB,[
6 AC_CACHE_CHECK(for working glob, ac_cv_func_glob_working,
7 ac_cv_func_glob_working=yes
8 AC_TRY_LINK([
9 #include <stdio.h>
10 #include <glob.h>],[
11 glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE, NULL, NULL);
12 ],:,ac_cv_func_glob_working=no,:))
14 if test "$ac_cv_func_glob_working" = yes; then
15         AC_DEFINE(HAVE_GLOB, 1, [define if you have a glob() that groks 
16         GLOB_BRACE, GLOB_NOCHECK, GLOB_QUOTE, and GLOB_TILDE])
18 if test "$ac_cv_func_glob_working" = yes; then
19 AC_NEED_PROTO([#include <stdio.h>
20 #include <glob.h>],glob)