From: Ralf Wildenhues Date: Sat, 7 Aug 2010 17:16:35 +0000 (+0200) Subject: Avoid unwanted error message in configure output. X-Git-Tag: v2.4~92 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b7b0e70e9863d4ddc2654614173d6a6d01556805;p=thirdparty%2Flibtool.git Avoid unwanted error message in configure output. * libltdl/m4/libtool.m4 (_LT_PROG_ECHO_BACKSLASH): Try print in subshell, so eventual `print: not found' is hidden reliably. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index eb077af01..6d765d26f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2010-08-07 Ralf Wildenhues + Avoid unwanted error message in configure output. + * libltdl/m4/libtool.m4 (_LT_PROG_ECHO_BACKSLASH): Try print + in subshell, so eventual `print: not found' is hidden reliably. + Fix compilation of program sources on AIX. * tests/lt_dlopenext.at (lt_dlopenext error messages): Do not use $LIBTOOL when compiling plain object, AIX by default does diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index d8d6aebd1..c36a6b4c6 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -1122,7 +1122,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO AC_MSG_CHECKING([how to print strings]) # Test print first, because it will be a builtin if present. -if test "X`print -r -- -n 2>/dev/null`" = X-n && \ +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then