From 6daba577e9676f4f52499394570a4f65ee300b12 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 7 Apr 2007 13:18:56 +0000 Subject: [PATCH] use C++ compiler for all getsockopt() tests, not just one of them to fix compilation under HP-UX (patch 1693708) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure.in | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/configure.in b/configure.in index 8e16c76493..f8ce2d75ec 100644 --- a/configure.in +++ b/configure.in @@ -6295,6 +6295,12 @@ if test "$wxUSE_SOCKETS" = "yes" ; then AC_CACHE_CHECK([what is the type of the fifth argument of getsockopt], wx_cv_type_getsockopt5, [ + dnl Note that the rules for compatibility of pointers + dnl are somewhat different between C and C++, so code + dnl that fails in C++ may not even give a warning about + dnl converting between incompatible pointer types in C. + dnl So this test needs to be done in C++ mode. + AC_LANG_PUSH(C++) AC_TRY_COMPILE( [ #include @@ -6306,12 +6312,6 @@ if test "$wxUSE_SOCKETS" = "yes" ; then ], wx_cv_type_getsockopt5=socklen_t, [ - dnl Note that the rules for compatibility of pointers - dnl are somewhat different between C and C++, so code - dnl that fails in C++ may not even give a warning about - dnl converting between incompatible pointer types in C. - dnl So this test needs to be done in C++ mode. - AC_LANG_PUSH(C++) AC_TRY_COMPILE( [ #include @@ -6335,9 +6335,9 @@ if test "$wxUSE_SOCKETS" = "yes" ; then wx_cv_type_getsockopt5=unknown ) ) - AC_LANG_POP() ] ) + AC_LANG_POP() ]) if test "$wx_cv_type_getsockopt5" = "unknown"; then -- 2.45.2