From 4febcf0449fc14b2022a8838d5bde9a733ac116f Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Tue, 11 Nov 2008 22:55:45 +0100 Subject: [PATCH] Do not use `test ... -a ...'. * libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [hpux10, hpux11]: Replace test -a with test && test. Signed-off-by: Ralf Wildenhues --- ChangeLog | 6 ++++++ libltdl/m4/libtool.m4 | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index fd5c82b0a..3753fc6ee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-11-11 Ralf Wildenhues + + Do not use `test ... -a ...'. + * libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [hpux10, hpux11]: + Replace test -a with test && test. + 2008-11-11 Roumen Petrov (tiny change) Fix destdir tests in cross compile mode. diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index 0b2f3209d..461e3cd27 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -4783,7 +4783,7 @@ _LT_EOF ;; hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then + if test "$GCC" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' @@ -4802,7 +4802,7 @@ _LT_EOF ;; hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then + if test "$GCC" = yes && test "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' -- 2.47.3