1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-12 12:23:50 +03:00

r19234: fix configure test for net/if.h for some platforms

AC_LANG_SOURCE() causes to have the content of confdefs.h
in front of the file that will be compiled

metze
(This used to be commit cd03738e7c)
This commit is contained in:
Stefan Metzmacher
2006-10-11 07:19:00 +00:00
committed by Gerald (Jerry) Carter
parent 66f264bd7a
commit 5916c6c469

View File

@@ -103,13 +103,13 @@ AC_CHECK_HEADERS(sys/sockio.h sys/un.h)
dnl we need to check that net/if.h really can be used, to cope with hpux
dnl where including it always fails
AC_CACHE_CHECK([for usable net/if.h],libreplace_cv_USABLE_NET_IF_H,[
AC_COMPILE_IFELSE([
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
AC_INCLUDES_DEFAULT
#if HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#include <net/if.h>
int main(void) {return 0;}],
int main(void) {return 0;}])],
[libreplace_cv_USABLE_NET_IF_H=yes],
[libreplace_cv_USABLE_NET_IF_H=no]
)