diff options
author | Andreas Schwab <schwab@suse.de> | 2003-12-24 16:45:27 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2003-12-24 16:45:27 +0000 |
commit | ce6e4c2107516497217c1151a2d8d3ad5875f651 (patch) | |
tree | e0ee0e345edff8de75b90d42b3e6ba4fa29c6c30 /configure.in | |
parent | 0b1ec9e98455db4d85616b3d6c80a69aad038adf (diff) | |
download | emacs-ce6e4c2107516497217c1151a2d8d3ad5875f651.tar.gz |
Check for <sys/socket.h>. Include it before
including <net/if.h>. Move check for <net/if.h> before its use.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/configure.in b/configure.in index aa8bbeb065b..8663ce9765c 100644 --- a/configure.in +++ b/configure.in @@ -1507,6 +1507,12 @@ if test $emacs_cv_struct_exception != yes; then AC_DEFINE(NO_MATHERR, 1, [Define to 1 if you don't have struct exception in math.h.]) fi +AC_CHECK_HEADERS(sys/socket.h) +AC_CHECK_HEADERS(net/if.h, , , [AC_INCLUDES_DEFAULT +#if HAVE_SYS_SOCKET_H +#include <sys/socket.h> +#endif]) + dnl checks for structure members AC_STRUCT_TM AC_STRUCT_TIMEZONE @@ -1516,7 +1522,14 @@ AC_CHECK_MEMBER(struct tm.tm_gmtoff, [#include <time.h>]) AC_CHECK_MEMBERS([struct ifreq.ifr_flags, struct ifreq.ifr_hwaddr, struct ifreq.ifr_netmask, struct ifreq.ifr_broadaddr, - struct ifreq.ifr_addr], , ,[#include <net/if.h>]) + struct ifreq.ifr_addr], , , + [AC_INCLUDES_DEFAULT +#if HAVE_SYS_SOCKET_H +#include <sys/socket.h> +#endif +#if HAVE_NET_IF_H +#include <net/if.h> +#endif]) dnl checks for compiler characteristics @@ -2510,7 +2523,7 @@ dnl Fixme: Not used. Should this be HAVE_SOCKETS? [Define to 1 if you have inet sockets.]) fi -AC_CHECK_HEADERS(sys/ioctl.h net/if.h) +AC_CHECK_HEADERS(sys/ioctl.h) if test -f /usr/lpp/X11/bin/smt.exp; then AC_DEFINE(HAVE_AIX_SMT_EXP, 1, |