Specify additional includes when testing for rpc/pmap_clnt.h. Needed for
authorPavel Roskin <proskin@src.gnome.org>
Mon, 20 Aug 2001 08:00:31 +0000 (08:00 +0000)
committerPavel Roskin <proskin@src.gnome.org>
Mon, 20 Aug 2001 08:00:31 +0000 (08:00 +0000)
* gnome-vfs.m4 (GNOME_WITH_VFS): Specify additional includes
when testing for rpc/pmap_clnt.h.  Needed for Autoconf 2.50+
only - older versions don't try to compile headers and ignore
this argument.

svn path=/trunk/; revision=1944

macros/ChangeLog
macros/gnome-vfs.m4

index 8ab81e5..dbd00dc 100644 (file)
@@ -1,3 +1,10 @@
+2001-08-20  Pavel Roskin  <proski@gnu.org>
+
+       * gnome-vfs.m4 (GNOME_WITH_VFS): Specify additional includes
+       when testing for rpc/pmap_clnt.h.  Needed for Autoconf 2.50+
+       only - older versions don't try to compile headers and ignore
+       this argument.
+
 2001-08-04  Darin Adler  <darin@bentspoon.com>
 
        * .cvsignore: Ignore generated .dep file.
index 8ca361f..6dce307 100644 (file)
@@ -48,7 +48,13 @@ AC_DEFUN([GNOME_WITH_VFS],[
          ])])
       AC_CHECK_FUNCS(pmap_getport pmap_getmaps rresvport)
       dnl add for source routing support setsockopt
-      AC_CHECK_HEADERS(rpc/pmap_clnt.h)
+      AC_CHECK_HEADERS(rpc/pmap_clnt.h, , , [
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <rpc/rpc.h>
+#include <rpc/pmap_prot.h>
+                                           ])
       vfs_flags="$vfs_flags, mcfs, ftpfs, fish"
       use_net_code=true
   fi