From f4a942f23dece30c2d499428c6aa34642eb492a4 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Wed, 27 Jul 2005 07:39:28 +0000 Subject: [PATCH] * tests/defs.in: When required matches both `*libtool*' and `*gettext*', check for both m4 files. --- ChangeLog | 3 +++ tests/defs.in | 39 +++++++++++++++++++-------------------- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9c27614..431b0a1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-07-27 Stepan Kasal + * tests/defs.in: When required matches both `*libtool*' and + `*gettext*', check for both m4 files. + * doc/automake.texi (Auxiliary Programs): Fix a typo. * tests/suffix11.test: Fix a typo. * tests/colon3.test: s/EGREP/FGREP/. diff --git a/tests/defs.in b/tests/defs.in index 6f8d5cb..cad60d9 100644 --- a/tests/defs.in +++ b/tests/defs.in @@ -272,34 +272,33 @@ echo "=== Running test $0" # files from an old version of Automake that we don't want to use. # Use `-Wno-syntax' because we do not want our test suite to fail because # some third-party .m4 file is underquoted. -aclocaldir='@prefix@/share/aclocal' -extra_includes="" -if [ -f $aclocaldir/dirlist ] ; then - extra_includes=`(tmp_inc="" - while read LINE ; do - tmp_inc="$tmp_inc -I $LINE" - done - echo $tmp_inc) < $aclocaldir/dirlist` -fi case $required in - *libtool* ) + *libtool* | *gettext* ) + aclocaldir='@prefix@/share/aclocal' + extra_includes="" + if [ -f $aclocaldir/dirlist ] ; then + extra_includes=`(tmp_inc="" + while read LINE ; do + tmp_inc="$tmp_inc -I $LINE" + done + echo $tmp_inc) < $aclocaldir/dirlist` + fi + libtool_found=no + gettext_found=no for d in $extra_includes $aclocaldir ; do - if [ "x$d" != "x-I" ] && [ -f "$d/libtool.m4" ] ; then + [ "x$d" != x-I ] || continue + if [ -f "$d/libtool.m4" ] ; then libtool_found=yes fi - done - test "x$libtool_found" = "xyes" || exit 77 - ACLOCAL="$ACLOCAL -Wno-syntax -I $srcdir/../m4 $extra_includes -I $aclocaldir" - ;; - *gettext* ) - gettext_found=no - for d in $extra_includes $aclocaldir ; do - if [ "x$d" != "x-I" ] && [ -f "$d/gettext.m4" ] ; then + if [ -f "$d/gettext.m4" ] ; then gettext_found=yes fi done - test "x$gettext_found" = "xyes" || exit 77 + case $required in + *libtool* ) test $libtool_found = yes || exit 77 ;; + *gettext* ) test $gettext_found = yes || exit 77 ;; + esac ACLOCAL="$ACLOCAL -Wno-syntax -I $srcdir/../m4 $extra_includes -I $aclocaldir" ;; esac -- 2.7.4