--- configure.in 2002/12/02 13:25:36 1.6
+++ configure.in 2002/12/02 18:10:19 1.7
@@ -50,7 +50,15 @@
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CC_STDC
+
+dnl Checks header requirements
AC_HEADER_STDC
+AC_HEADER_TIME
+AC_CHECK_HEADER([net/if.h],
+ [AC_DEFINE([HAVE_NET_IF_H], 1, [Define to 1 if net/if.h is present])],
+ [AC_MSG_ERROR(You don't have net/if.h)])
+
+dnl AC_CHECK_HEADER(net/if.h, [HAVE_NET_IF_H = yes])
dnl Portable thread conf from acx_pthread.m4 autoconf macro
ACX_PTHREAD
@@ -61,6 +69,8 @@
dnl Check other requirements
AC_PROG_MAKE_SET
AC_CHECK_DEBUGGING
+AC_CHECK_SIOCGIFHWADDR
+AC_CHECK_SIOCGENADDR
dnl Check for Dmalloc library
AC_CHECK_EXTLIB([Dmalloc],
@@ -85,6 +95,11 @@
LIBS="$LIBS -lX11 -lXext -lSM -lm"
fi
+dnl Check type sizes
+AC_CHECK_SIZEOF(char)
+AC_CHECK_SIZEOF(int)
+AC_CHECK_SIZEOF(long)
+
dnl Check some X resources, typical of XFree86
AC_CHECK_LIB(Xft, XftFreeTypeOpen, [LIBS="$LIBS -lXft"])
AC_CHECK_LIB(Xrender, XRenderFindFormat, [LIBS="$LIBS -lXrender"])
|