From: Simon Josefsson Date: Sun, 17 May 2009 08:38:37 +0000 (+0200) Subject: Need to run AC_PROG_CXX unconditionally. X-Git-Tag: gnutls_2_7_11~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f155e7109699fdf98683549e48142f018f6546e;p=thirdparty%2Fgnutls.git Need to run AC_PROG_CXX unconditionally. --- diff --git a/NEWS b/NEWS index 861a3d1e2c..446b2be06e 100644 --- a/NEWS +++ b/NEWS @@ -9,6 +9,10 @@ See the end for copying conditions. Reported by "Tom G. Christensen" in . +** libgnutls: Fix build failure with --disable-cxx. +Reported by Andreas Metzler in +. + ** API and ABI modifications: No changes since last version. diff --git a/configure.ac b/configure.ac index 2b5b2028f8..4bfe58a7dd 100644 --- a/configure.ac +++ b/configure.ac @@ -50,11 +50,12 @@ fi gl_EARLY AC_C_INLINE +# For the C++ code +AC_PROG_CXX AC_ARG_ENABLE(cxx, AS_HELP_STRING([--disable-cxx], [unconditionally disable the C++ library]), use_cxx=$enableval, use_cxx=yes) if test "$use_cxx" != "no"; then - AC_PROG_CXX AC_LANG_PUSH(C++) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], use_cxx=yes, use_cxx=no) AC_LANG_POP(C++) diff --git a/lib/configure.ac b/lib/configure.ac index b933835837..a8616f86a1 100644 --- a/lib/configure.ac +++ b/lib/configure.ac @@ -88,10 +88,8 @@ AC_SUBST(LIBGNUTLS_CFLAGS) # Finish things from ../configure.ac. AC_SUBST([WARN_CFLAGS]) +AC_PROG_CXX AM_CONDITIONAL(ENABLE_CXX, test "$use_cxx" != "no") -if test "$use_cxx" != "no"; then - AC_PROG_CXX -fi AC_CONFIG_FILES([ Makefile