mirror of
https://github.com/samba-team/samba.git
synced 2024-12-29 11:21:54 +03:00
r19235: merge from samba4:
fix configure test for net/if.h on some platforms
AC_LANG_SOURCE() adds the content of confdefs.h in front
of the compiled file
metze
(This used to be commit 7cbdc06ad9
)
This commit is contained in:
parent
fc15a2ae5f
commit
f455951e1e
@ -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]
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user