svn commit: samba r19227 - in
branches/SAMBA_4_0/source/lib/replace: .
metze at samba.org
metze at samba.org
Tue Oct 10 09:32:02 GMT 2006
Author: metze
Date: 2006-10-10 09:32:02 +0000 (Tue, 10 Oct 2006)
New Revision: 19227
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19227
Log:
- add a AC_CACHE_CHECK() around the net/if.h test
to see (we now get some output that this test happens at all...).
- make use of AC_INCLUDES_DEFAULT
metze
Modified:
branches/SAMBA_4_0/source/lib/replace/libreplace.m4
Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/libreplace.m4
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/libreplace.m4 2006-10-10 08:58:12 UTC (rev 19226)
+++ branches/SAMBA_4_0/source/lib/replace/libreplace.m4 2006-10-10 09:32:02 UTC (rev 19227)
@@ -102,23 +102,22 @@
dnl we need to check that net/if.h really can be used, to cope with hpux
dnl where including it always fails
-AC_TRY_COMPILE([
- #include <stdio.h>
- #if STDC_HEADERS
- # include <stdlib.h>
- # include <stddef.h>
- #else
- # if HAVE_STDLIB_H
- # include <stdlib.h>
- # endif
- #endif
- #if HAVE_SYS_SOCKET_H
- # include <sys/socket.h>
- #endif],
- [#include <net/if.h>],
- AC_DEFINE(HAVE_NET_IF_H, 1, usability of net/if.h))
+AC_CACHE_CHECK([for usable net/if.h],libreplace_cv_USABLE_NET_IF_H,[
+ AC_COMPILE_IFELSE([
+ AC_INCLUDES_DEFAULT
+ #if HAVE_SYS_SOCKET_H
+ # include <sys/socket.h>
+ #endif
+ #include <net/if.h>
+ int main(void) {return 0;}],
+ [libreplace_cv_USABLE_NET_IF_H=yes],
+ [libreplace_cv_USABLE_NET_IF_H=no]
+ )
+])
+if test x"$libreplace_cv_USABLE_NET_IF_H" = x"yes";then
+ AC_DEFINE(HAVE_NET_IF_H, 1, usability of net/if.h)
+fi
-
AC_CACHE_CHECK([for broken inet_ntoa],samba_cv_REPLACE_INET_NTOA,[
AC_TRY_RUN([
#include <stdio.h>
More information about the samba-cvs
mailing list