From: Daiki Ueno Date: Thu, 2 Oct 2014 08:44:41 +0000 (+0900) Subject: Fix C++ compiler check to auto-disable building libasprintf X-Git-Tag: v0.19.3~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e854d2c7f6a6276fba9e34e2e406ea76df80c7dd;p=thirdparty%2Fgettext.git Fix C++ compiler check to auto-disable building libasprintf * gettext-runtime/configure.ac: To automatically disable building libasprintf when no C++ is found, check if CXX is "no", not ":". This seems to be a left over of commit 09963c23. Reported by Assaf Gordon in: . --- diff --git a/gettext-runtime/ChangeLog b/gettext-runtime/ChangeLog index d6b52b73d..4f54b2913 100644 --- a/gettext-runtime/ChangeLog +++ b/gettext-runtime/ChangeLog @@ -1,3 +1,10 @@ +2014-10-02 Daiki Ueno + + * configure.ac: To automatically disable building libasprintf when + no C++ is found, check if CXX is "no", not ":". This seems to be + a left over of commit 09963c23. Reported by Assaf Gordon in: + . + 2014-09-30 Paul Eggert * configure.ac: Invoke AM_PROG_CC_C_O so that the system stdbool.h diff --git a/gettext-runtime/configure.ac b/gettext-runtime/configure.ac index d0b2a3ce6..172f96e50 100644 --- a/gettext-runtime/configure.ac +++ b/gettext-runtime/configure.ac @@ -167,7 +167,7 @@ AC_ARG_ENABLE([libasprintf], SUBDIR_libasprintf= fi ], [SUBDIR_libasprintf=libasprintf]) -if test "$CXX" = ":"; then +if test "$CXX" = "no"; then SUBDIR_libasprintf= fi AM_CONDITIONAL([ENABLE_LIBASPRINTF], [test -n "$SUBDIR_libasprintf"])