summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1998-11-17 22:11:43 +0000
committerMartin Baulig <martin@src.gnome.org>1998-11-17 22:11:43 +0000
commitbddaa5fef2dcbf1a0ddd4fab1cffbbedb76301a8 (patch)
tree52b1e00df9b43fe0445517195bec80257e7ca1e3
parentb4293553867997ab0c4f1a7a73b467abba8c540d (diff)
downloadgnome-common-bddaa5fef2dcbf1a0ddd4fab1cffbbedb76301a8.tar.gz
We need to check for <net/if_var.h> and conditionally include it before
1998-11-17 Martin Baulig <martin@home-of-linux.org> * gnome-libgtop-sysdeps.m4: We need to check for <net/if_var.h> and conditionally include it before <net/if_isppp.h> in the code that check for I4B to make it work on FreeBSD 3.0. svn path=/trunk/; revision=478
-rw-r--r--macros/ChangeLog6
-rw-r--r--macros/gnome-libgtop-sysdeps.m411
2 files changed, 17 insertions, 0 deletions
diff --git a/macros/ChangeLog b/macros/ChangeLog
index 4e44c28..4d87d78 100644
--- a/macros/ChangeLog
+++ b/macros/ChangeLog
@@ -1,3 +1,9 @@
+1998-11-17 Martin Baulig <martin@home-of-linux.org>
+
+ * gnome-libgtop-sysdeps.m4: We need to check for <net/if_var.h>
+ and conditionally include it before <net/if_isppp.h> in the code
+ that check for I4B to make it work on FreeBSD 3.0.
+
1998-10-25 Marius Vollmer <mvo@zagadka.ping.de>
* gnome-guile-checks.m4: Add GUILE_LIBS to LIBS when checking
diff --git a/macros/gnome-libgtop-sysdeps.m4 b/macros/gnome-libgtop-sysdeps.m4
index f2ff2d9..6a96214 100644
--- a/macros/gnome-libgtop-sysdeps.m4
+++ b/macros/gnome-libgtop-sysdeps.m4
@@ -142,6 +142,7 @@ main (void)
case "$host_os" in
*bsd*)
+ AC_CHECK_HEADERS(net/if_var.h)
AC_MSG_CHECKING([for I4B])
AC_TRY_COMPILE([
#include <sys/types.h>
@@ -149,6 +150,11 @@ main (void)
#include <net/if.h>
#include <net/if_types.h>
+
+#ifdef HAVE_NET_IF_VAR_H
+#include <net/if_var.h>
+#endif
+
#include <net/netisr.h>
#include <net/route.h>
@@ -170,6 +176,11 @@ main (void)
#include <net/if.h>
#include <net/if_types.h>
+
+#ifdef HAVE_NET_IF_VAR_H
+#include <net/if_var.h>
+#endif
+
#include <net/netisr.h>
#include <net/route.h>