From: Daiki Ueno Date: Fri, 5 Sep 2014 06:36:25 +0000 (+0900) Subject: tests: Use libtool in autopoint-3 test X-Git-Tag: v0.19.2.1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1e71423b911a70a36dc7b764e46954ba7f4f668;p=thirdparty%2Fgettext.git tests: Use libtool in autopoint-3 test --- diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index dd1060a13..3da3dfd11 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,7 @@ +2014-09-05 Daiki Ueno + + * autopoint-3: Use libtool when compiling included libintl. + 2014-09-05 Daiki Ueno * autopoint-2, autopoint-3: Collect error output. diff --git a/gettext-tools/tests/autopoint-3 b/gettext-tools/tests/autopoint-3 index 3d1fc61b3..5847033f2 100755 --- a/gettext-tools/tests/autopoint-3 +++ b/gettext-tools/tests/autopoint-3 @@ -41,6 +41,10 @@ ${AUTOMAKE} --add-missing >/dev/null 2>/dev/null \ rm -f configure.ac Makefile.am +: ${LIBTOOLIZE=libtoolize} +${LIBTOOLIZE} --version >/dev/null 2>/dev/null \ + || { echo "Skipping test: libtoolize not found"; exit 77; } + : ${MAKE=make} ${MAKE} --version >/dev/null 2>/dev/null \ || { echo "Skipping test: make not found"; exit 77; } @@ -53,9 +57,10 @@ AC_CONFIG_MACRO_DIR([m4]) AC_INIT([hello], [0.0.0], [bug-gnu-gettext@gnu.org]) AM_INIT_AUTOMAKE([foreign]) +LT_INIT AC_PROG_CC -AM_GNU_GETTEXT +AM_GNU_GETTEXT([use-libtool]) AM_GNU_GETTEXT_VERSION([$required_gettext_version]) AC_CONFIG_HEADERS([config.h]) @@ -87,7 +92,7 @@ DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ AM_CPPFLAGS = -I. -I$(srcdir) # Link time dependencies. -LDADD = @LIBINTL@ +LDADD = @LTLIBINTL@ EOF cp -p "$abs_top_srcdir"/gnulib-lib/gettext.h . @@ -106,6 +111,9 @@ test -f po/Makefile.in.in || exit 1 cp -p po/Makevars.template po/Makevars echo hello.c > po/POTFILES.in +${LIBTOOLIZE} -f -i >/dev/null 2>autopoint.err +test $? = 0 || { cat autopoint.err; exit 1; } + ${ACLOCAL} -I m4 >/dev/null 2>autopoint.err test $? = 0 || { cat autopoint.err; exit 1; }