No empty .Rs/.Re
[netbsd-mini2440.git] / crypto / dist / heimdal / cf / broken-glob.m4
blob3908ec6a2dd760924a2dce42df1343b2056b276b
1 dnl $Heimdal: broken-glob.m4 14166 2004-08-26 12:35:42Z joda $
2 dnl $NetBSD$
3 dnl
4 dnl check for glob(3)
5 dnl
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([[
10 #include <stdio.h>
11 #include <glob.h>]],[[
12 glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
13 #ifdef GLOB_MAXPATH
14 GLOB_MAXPATH
15 #else
16 GLOB_LIMIT
17 #endif
19 NULL, NULL);
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)