From: Akim Demaille Date: Wed, 20 Dec 2000 18:41:10 +0000 (+0000) Subject: * aclang.m4 (_AC_COMPILER_OBJEXT, _AC_COMPILER_EXEEXT_O): X-Git-Tag: autoconf-2.50~286 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9282441bdb2fafe5b73e4cd60ca98bb13ccad49d;p=thirdparty%2Fautoconf.git * aclang.m4 (_AC_COMPILER_OBJEXT, _AC_COMPILER_EXEEXT_O): Make the order of arguments for ls count by splitting the ls command into a sequence of ls commands. --- diff --git a/ChangeLog b/ChangeLog index 76a80c753..3a78246b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-12-20 Lars J. Aas + + * aclang.m4 (_AC_COMPILER_OBJEXT, _AC_COMPILER_EXEEXT_O): + Make the order of arguments for ls count by splitting the ls + command into a sequence of ls commands. + 2000-12-20 Akim Demaille * aclang.m4 (_AC_LANG_COMPILER_GNU): Use a tabulation to indent diff --git a/aclang.m4 b/aclang.m4 index f8736e89a..05455f804 100644 --- a/aclang.m4 +++ b/aclang.m4 @@ -691,8 +691,7 @@ _AC_LINK_IFELSE([], # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. -for ac_file in `ls conftest$ac_exeext conftest.exe conftest conftest.* \ - 2>/dev/null`; do +for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do case $ac_file in *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; *) ac_cv_exeext=`expr "$ac_file" : ['[^.]*\(\..*\)']` @@ -738,7 +737,7 @@ m4_define([_AC_COMPILER_OBJEXT], [AC_LANG_CONFTEST([AC_LANG_PROGRAM()]) rm -f conftest.o conftest.obj AS_IFELSE([AC_TRY_EVAL(ac_compile)], -[for ac_file in `ls conftest.o conftest.obj conftest.* 2>/dev/null`; do +[for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index f8736e89a..05455f804 100644 --- a/lib/autoconf/c.m4 +++ b/lib/autoconf/c.m4 @@ -691,8 +691,7 @@ _AC_LINK_IFELSE([], # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. -for ac_file in `ls conftest$ac_exeext conftest.exe conftest conftest.* \ - 2>/dev/null`; do +for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do case $ac_file in *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; *) ac_cv_exeext=`expr "$ac_file" : ['[^.]*\(\..*\)']` @@ -738,7 +737,7 @@ m4_define([_AC_COMPILER_OBJEXT], [AC_LANG_CONFTEST([AC_LANG_PROGRAM()]) rm -f conftest.o conftest.obj AS_IFELSE([AC_TRY_EVAL(ac_compile)], -[for ac_file in `ls conftest.o conftest.obj conftest.* 2>/dev/null`; do +[for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4 index f8736e89a..05455f804 100644 --- a/lib/autoconf/fortran.m4 +++ b/lib/autoconf/fortran.m4 @@ -691,8 +691,7 @@ _AC_LINK_IFELSE([], # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. -for ac_file in `ls conftest$ac_exeext conftest.exe conftest conftest.* \ - 2>/dev/null`; do +for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do case $ac_file in *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; *) ac_cv_exeext=`expr "$ac_file" : ['[^.]*\(\..*\)']` @@ -738,7 +737,7 @@ m4_define([_AC_COMPILER_OBJEXT], [AC_LANG_CONFTEST([AC_LANG_PROGRAM()]) rm -f conftest.o conftest.obj AS_IFELSE([AC_TRY_EVAL(ac_compile)], -[for ac_file in `ls conftest.o conftest.obj conftest.* 2>/dev/null`; do +[for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` diff --git a/lib/autoconf/lang.m4 b/lib/autoconf/lang.m4 index f8736e89a..05455f804 100644 --- a/lib/autoconf/lang.m4 +++ b/lib/autoconf/lang.m4 @@ -691,8 +691,7 @@ _AC_LINK_IFELSE([], # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. -for ac_file in `ls conftest$ac_exeext conftest.exe conftest conftest.* \ - 2>/dev/null`; do +for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do case $ac_file in *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; *) ac_cv_exeext=`expr "$ac_file" : ['[^.]*\(\..*\)']` @@ -738,7 +737,7 @@ m4_define([_AC_COMPILER_OBJEXT], [AC_LANG_CONFTEST([AC_LANG_PROGRAM()]) rm -f conftest.o conftest.obj AS_IFELSE([AC_TRY_EVAL(ac_compile)], -[for ac_file in `ls conftest.o conftest.obj conftest.* 2>/dev/null`; do +[for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`