]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix C++ compiler check to auto-disable building libasprintf
authorDaiki Ueno <ueno@gnu.org>
Thu, 2 Oct 2014 08:44:41 +0000 (17:44 +0900)
committerDaiki Ueno <ueno@gnu.org>
Thu, 2 Oct 2014 08:48:34 +0000 (17:48 +0900)
* 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:
<https://lists.gnu.org/archive/html/bug-gettext/2014-10/msg00003.html>.

gettext-runtime/ChangeLog
gettext-runtime/configure.ac

index d6b52b73ddda23245f8c682c74774db761675016..4f54b2913424d8d32e4fa0093decc858817c3bbf 100644 (file)
@@ -1,3 +1,10 @@
+2014-10-02  Daiki Ueno  <ueno@gnu.org>
+
+       * 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:
+       <https://lists.gnu.org/archive/html/bug-gettext/2014-10/msg00003.html>.
+
 2014-09-30  Paul Eggert  <eggert@cs.ucla.edu>
 
        * configure.ac: Invoke AM_PROG_CC_C_O so that the system stdbool.h
index d0b2a3ce6a5c7147576ca9f9f6c9739662262215..172f96e50db908004ef8cf79b67cb112c6d58c56 100644 (file)
@@ -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"])