* macros/gnome-support.m4: Check whether we need to declare scandir ().
* support/gnomesupport.awk: Declare scandir () if necessary.
svn path=/trunk/; revision=558
# see if we need to declare some functions. Solaris is notorious for
# putting functions into the `libc' but not listing them in the headers
AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h)
- GCC_NEED_DECLARATIONS(gethostname setreuid setregid getpagesize)
+ GCC_NEED_DECLARATIONS(gethostname setreuid setregid getpagesize scandir)
# Turn our LIBOBJS into libtool objects. This is gross, but it
# requires changes to autoconf before it goes away.
print "int mkstemp (char */*template*/);";
}
- if (!def["HAVE_SCANDIR"]) {
+ if (!def["HAVE_SCANDIR"] || def["NEED_DECLARATION_SCANDIR"]) {
print "";
print "/* Scan the directory DIR, calling SELECTOR on each directory";
print " entry. Entries for which SELECTOR returns nonzero are";