From cd03738e7c5610c4a0cb1161b9bcee5d7c88322d Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 11 Oct 2006 07:19:00 +0000 Subject: [PATCH] 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 --- source/lib/replace/libreplace.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/lib/replace/libreplace.m4 b/source/lib/replace/libreplace.m4 index 662993cb79b..d74ee6ed1e4 100644 --- a/source/lib/replace/libreplace.m4 +++ b/source/lib/replace/libreplace.m4 @@ -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 #endif #include - int main(void) {return 0;}], + int main(void) {return 0;}])], [libreplace_cv_USABLE_NET_IF_H=yes], [libreplace_cv_USABLE_NET_IF_H=no] ) -- 2.11.4.GIT