]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
rm -f conftst2.*, not only conftst2.$ac_objext
authorStepan Kasal <kasal@ucw.cz>
Tue, 25 Oct 2005 07:55:30 +0000 (07:55 +0000)
committerStepan Kasal <kasal@ucw.cz>
Tue, 25 Oct 2005 07:55:30 +0000 (07:55 +0000)
ChangeLog
lib/autoconf/c.m4
lib/autoconf/fortran.m4

index 2182653fdf7642c4317c7463fc0a08d09044e345..0c80462fce2462d9cff5ec99e90c6545da400d29 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-10-25  Stepan Kasal  <kasal@ucw.cz>
+
+       * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
+       conftst2.$ac_objext.
+       * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
+
 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
 
        * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
index fb27eca975c6926fc7c1285031c5db4ff44e8107..4c54128f892b57be4cf0cbc0ad8b37fe3d772673 100644 (file)
@@ -577,12 +577,12 @@ set dummy $CC; ac_cc=`echo $[2] |
 AC_CACHE_VAL(ac_cv_prog_cc_${ac_cc}_c_o,
 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
 ac_clean_files_save=$ac_clean_files
-ac_clean_files="$ac_clean_files conftst2.$ac_objext"
+ac_clean_files="$ac_clean_files conftst2.*"
 # Make sure it works both with $CC and with simple cc.
 # We do the test twice because some compilers refuse to overwrite an
 # existing .o file with -o, though they will create one.
 ac_try='$CC -c conftest.$ac_ext -o conftst2.$ac_objext >&AS_MESSAGE_LOG_FD'
-rm -f conftst2.$ac_objext
+rm -f conftst2.*
 if AC_TRY_EVAL(ac_try) &&
    test -f conftst2.$ac_objext && AC_TRY_EVAL(ac_try);
 then
@@ -591,7 +591,7 @@ then
     # Test first that cc exists at all.
     if AC_TRY_COMMAND(cc -c conftest.$ac_ext >&AS_MESSAGE_LOG_FD); then
       ac_try='cc -c conftest.$ac_ext -o conftst2.$ac_objext >&AS_MESSAGE_LOG_FD'
-      rm -f conftst2.$ac_objext
+      rm -f conftst2.*
       if AC_TRY_EVAL(ac_try) &&
         test -f conftst2.$ac_objext && AC_TRY_EVAL(ac_try);
       then
@@ -606,7 +606,7 @@ then
 else
   eval ac_cv_prog_cc_${ac_cc}_c_o=no
 fi
-rm -f conftest* conftst2.$ac_objext
+rm -f conftest* conftst2.*
 ac_clean_files=$ac_clean_files_save
 ])dnl
 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
index 0e837f38882c4ddc36d0e84a2efa181288f963bd..59250a4b5f4d12c55088c99e0e919d2f9010fac1 100644 (file)
@@ -460,11 +460,11 @@ AC_CACHE_CHECK([whether $[]_AC_FC[] understands -c and -o together],
                [ac_cv_prog_[]_AC_LANG_ABBREV[]_c_o],
 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
 ac_clean_files_save=$ac_clean_files
-ac_clean_files="$ac_clean_files conftst2.$ac_objext"
+ac_clean_files="$ac_clean_files conftst2.*"
 # We test twice because some compilers refuse to overwrite an existing
 # `.o' file with `-o', although they will create one.
 ac_try='$[]_AC_FC[] $[]_AC_LANG_PREFIX[]FLAGS -c conftest.$ac_ext -o conftst2.$ac_objext >&AS_MESSAGE_LOG_FD'
-rm -f conftst2.$ac_objext
+rm -f conftst2.*
 if AC_TRY_EVAL(ac_try) &&
      test -f conftst2.$ac_objext &&
      AC_TRY_EVAL(ac_try); then
@@ -472,7 +472,7 @@ if AC_TRY_EVAL(ac_try) &&
 else
   ac_cv_prog_[]_AC_LANG_ABBREV[]_c_o=no
 fi
-rm -f conftest* conftst2.$ac_objext
+rm -f conftest* conftst2.*
 ac_clean_files=$ac_clean_files_save
 ])
 if test $ac_cv_prog_[]_AC_LANG_ABBREV[]_c_o = no; then