Include dirent.h before checking whether `scandir' needs to be declared.

* gnome-support.m4: Include dirent.h before checking whether
`scandir' needs to be declared.
* need-declaration.m4: Revert unlogged change.

svn path=/trunk/; revision=580
This commit is contained in:
Raja R Harinath
1999-01-06 01:45:20 +00:00
parent 6462909737
commit c107b53ebb
3 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,9 @@
1999-01-05 Raja R Harinath <harinath@cs.umn.edu>
* gnome-support.m4: Include dirent.h before checking whether
`scandir' needs to be declared.
* need-declaration.m4: Revert unlogged change.
1998-12-22 Jeff Garzik <jgarzik@pobox.com>
* gnome.m4: Added and exported GNOME_APPLET_LIBS.

View File

@ -50,7 +50,12 @@ AC_DEFUN([GNOME_SUPPORT_CHECKS],[
# 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 dirent.h)
GCC_NEED_DECLARATIONS(gethostname setreuid setregid getpagesize scandir)
GCC_NEED_DECLARATIONS(gethostname setreuid setregid getpagesize)
GCC_NEED_DECLARATION(scandir,[
#ifdef HAVE_DIRENT_H
#include <dirent.h>
#endif
])
# Turn our LIBOBJS into libtool objects. This is gross, but it
# requires changes to autoconf before it goes away.

View File

@ -18,9 +18,6 @@ AC_CACHE_VAL(gcc_cv_decl_needed_$1,
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_DIRENT_H
#include <dirent.h>
#endif
$2],
[char *(*pfn) = (char *(*)) $1],
eval "gcc_cv_decl_needed_$1=no", eval "gcc_cv_decl_needed_$1=yes")])