+2003-12-27 Bruno Haible <bruno@clisp.org>
+
+ * configure.ac: Set and AC_SUBST the TESTLIBASPRINTF variable.
+
2003-12-12 Bruno Haible <bruno@clisp.org>
Assume automake-1.8.
gt_PROG_ANSI_CXX
gt_LOCALE_FR
+dnl Check whether to execute tests that rely on libasprintf.
+dnl This test must be consistent with gettext-runtime/configure.ac.
+if test "${enable_libasprintf+set}" = set; then
+ if test "$enable_libasprintf" != no; then
+ TESTLIBASPRINTF=yes
+ else
+ TESTLIBASPRINTF=no
+ fi
+else
+ TESTLIBASPRINTF=yes
+fi
+if test "$CXX" = ":"; then
+ TESTLIBASPRINTF=no
+fi
+AC_SUBST(TESTLIBASPRINTF)
+
dnl Generate the version information file in the intl/ directory.
test -d intl || mkdir intl
echo "GNU gettext library from gettext-$VERSION" > intl/VERSION
+2003-12-27 Bruno Haible <bruno@clisp.org>
+
+ * lang-c++: Skip the test if TESTLIBASPRINTF is not set to "yes".
+ * Makefile.am (TESTS_ENVIRONMENT): Also set TESTLIBASPRINTF.
+ Reported by Adrian Bunk <bunk@fs.tum.de>.
+
2003-12-12 Bruno Haible <bruno@clisp.org>
Assume automake-1.8.
CPPFLAGS='@CPPFLAGS@' LDFLAGS='@LDFLAGS@' \
LTLIBINTL='@LTLIBINTL@' \
TESTJAVA='@TESTJAVA@' \
+ TESTLIBASPRINTF='@TESTLIBASPRINTF@' \
LOCALE_FR='@LOCALE_FR@' \
CONFIG_SHELL='$(SHELL)' \
$(SHELL)
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-# Test whether a C++ compiler is found.
-if test "${CXX}" = ":"; then
- exit 77
-fi
+# Test whether a C++ compiler is found and libasprintf is built.
+test "${CXX}" != ":" || exit 77
+test "${TESTLIBASPRINTF}" = yes || exit 77
tmpfiles="$tmpfiles prog.cc"
cat <<\EOF > prog.cc