aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1999-01-06 09:10:15 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-01-06 09:10:15 +0800
commit6462909737e9f0e4fa22b17b3e986d03bd9ed175 (patch)
treebbceb7335de04f202e88608b03d24abaf0400b75
parent2bb0bf664b61639067d90ae5b4516473e2c743f7 (diff)
downloadgsoc2013-evolution-6462909737e9f0e4fa22b17b3e986d03bd9ed175.tar
gsoc2013-evolution-6462909737e9f0e4fa22b17b3e986d03bd9ed175.tar.gz
gsoc2013-evolution-6462909737e9f0e4fa22b17b3e986d03bd9ed175.tar.bz2
gsoc2013-evolution-6462909737e9f0e4fa22b17b3e986d03bd9ed175.tar.lz
gsoc2013-evolution-6462909737e9f0e4fa22b17b3e986d03bd9ed175.tar.xz
gsoc2013-evolution-6462909737e9f0e4fa22b17b3e986d03bd9ed175.tar.zst
gsoc2013-evolution-6462909737e9f0e4fa22b17b3e986d03bd9ed175.zip
Fix the scandir detection
svn path=/trunk/; revision=579
-rw-r--r--macros/gnome-support.m42
-rw-r--r--macros/need-declaration.m43
2 files changed, 4 insertions, 1 deletions
diff --git a/macros/gnome-support.m4 b/macros/gnome-support.m4
index df25cb9c1b..4123449483 100644
--- a/macros/gnome-support.m4
+++ b/macros/gnome-support.m4
@@ -49,7 +49,7 @@ 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)
+ AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h dirent.h)
GCC_NEED_DECLARATIONS(gethostname setreuid setregid getpagesize scandir)
# Turn our LIBOBJS into libtool objects. This is gross, but it
diff --git a/macros/need-declaration.m4 b/macros/need-declaration.m4
index d5b7bc66d5..eea5bcd640 100644
--- a/macros/need-declaration.m4
+++ b/macros/need-declaration.m4
@@ -18,6 +18,9 @@ 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")])