* ltmain.in: Replace all test "-a"s by "&& test"

for portability.
This commit is contained in:
Jens Petersen 2001-12-06 19:34:36 +00:00 committed by Robert Boehne
parent 21c4662d62
commit 7a3351cf1b
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2001-12-06 Jens Petersen <petersen@redhat.com>
* ltmain.in: Replace all test "-a"s by "&& test"
for portability.
2001-11-28 Robert Boehne <rboehne@ricardo-us.com>
* libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Change the

View File

@ -2898,7 +2898,7 @@ EOF
for i in $deplibs; do
name="`expr $i : '-l\(.*\)'`"
# If $name is empty we are operating on a -L argument.
if test "$name" != "" -a "$name" -ne "0"; then
if test "$name" != "" && test "$name" -ne "0"; then
libname=`eval \\$echo \"$libname_spec\"`
deplib_matches=`eval \\$echo \"$library_names_spec\"`
set dummy $deplib_matches
@ -2925,7 +2925,7 @@ EOF
for i in $deplibs; do
name="`expr $i : '-l\(.*\)'`"
# If $name is empty we are operating on a -L argument.
if test "$name" != "" -a "$name" != "0"; then
if test "$name" != "" && test "$name" != "0"; then
$rm conftest
$LTCC -o conftest conftest.c $i
# Did it work?
@ -2967,7 +2967,7 @@ EOF
for a_deplib in $deplibs; do
name="`expr $a_deplib : '-l\(.*\)'`"
# If $name is empty we are operating on a -L argument.
if test "$name" != "" -a "$name" != "0"; then
if test "$name" != "" && test "$name" != "0"; then
libname=`eval \\$echo \"$libname_spec\"`
for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
potential_libs=`ls $i/$libname[.-]* 2>/dev/null`