mirror of
git://git.sv.gnu.org/autoconf
synced 2024-12-09 02:10:22 +08:00
"conftst2" -> "conftest2"
This commit is contained in:
parent
de4b7ec7bb
commit
76d6383e5a
@ -1,3 +1,8 @@
|
|||||||
|
2005-10-27 Stepan Kasal <kasal@ucw.cz>
|
||||||
|
|
||||||
|
* lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
|
||||||
|
* lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
|
||||||
|
|
||||||
2005-10-25 Stepan Kasal <kasal@ucw.cz>
|
2005-10-25 Stepan Kasal <kasal@ucw.cz>
|
||||||
|
|
||||||
* lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
|
* lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
|
||||||
|
@ -576,24 +576,25 @@ set dummy $CC; ac_cc=`echo $[2] |
|
|||||||
sed 's/[[^a-zA-Z0-9_]]/_/g;s/^[[0-9]]/_/'`
|
sed 's/[[^a-zA-Z0-9_]]/_/g;s/^[[0-9]]/_/'`
|
||||||
AC_CACHE_VAL(ac_cv_prog_cc_${ac_cc}_c_o,
|
AC_CACHE_VAL(ac_cv_prog_cc_${ac_cc}_c_o,
|
||||||
[AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
|
[AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
|
||||||
ac_clean_files_save=$ac_clean_files
|
|
||||||
ac_clean_files="$ac_clean_files conftst2.*"
|
|
||||||
# Make sure it works both with $CC and with simple cc.
|
# Make sure it works both with $CC and with simple cc.
|
||||||
# We do the test twice because some compilers refuse to overwrite an
|
# We do the test twice because some compilers refuse to overwrite an
|
||||||
# existing .o file with -o, though they will create one.
|
# 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'
|
# (On an 8+3 filesystem, conftest2.* is not distinguishable from conftest.*,
|
||||||
rm -f conftst2.*
|
# thus the test always passes; but if the ./configure scripts are ever run
|
||||||
|
# on good old DOS, it has to be with DJGPP, thus with gcc.)
|
||||||
|
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&AS_MESSAGE_LOG_FD'
|
||||||
|
rm -f conftest2.*
|
||||||
if AC_TRY_EVAL(ac_try) &&
|
if AC_TRY_EVAL(ac_try) &&
|
||||||
test -f conftst2.$ac_objext && AC_TRY_EVAL(ac_try);
|
test -f conftest2.$ac_objext && AC_TRY_EVAL(ac_try);
|
||||||
then
|
then
|
||||||
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
|
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
|
||||||
if test "x$CC" != xcc; then
|
if test "x$CC" != xcc; then
|
||||||
# Test first that cc exists at all.
|
# Test first that cc exists at all.
|
||||||
if AC_TRY_COMMAND(cc -c conftest.$ac_ext >&AS_MESSAGE_LOG_FD); then
|
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'
|
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&AS_MESSAGE_LOG_FD'
|
||||||
rm -f conftst2.*
|
rm -f conftest2.*
|
||||||
if AC_TRY_EVAL(ac_try) &&
|
if AC_TRY_EVAL(ac_try) &&
|
||||||
test -f conftst2.$ac_objext && AC_TRY_EVAL(ac_try);
|
test -f conftest2.$ac_objext && AC_TRY_EVAL(ac_try);
|
||||||
then
|
then
|
||||||
# cc works too.
|
# cc works too.
|
||||||
:
|
:
|
||||||
@ -606,8 +607,7 @@ then
|
|||||||
else
|
else
|
||||||
eval ac_cv_prog_cc_${ac_cc}_c_o=no
|
eval ac_cv_prog_cc_${ac_cc}_c_o=no
|
||||||
fi
|
fi
|
||||||
rm -f conftest* conftst2.*
|
rm -f conftest*
|
||||||
ac_clean_files=$ac_clean_files_save
|
|
||||||
])dnl
|
])dnl
|
||||||
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
|
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
|
@ -459,22 +459,18 @@ AC_DEFUN([_AC_PROG_FC_C_O],
|
|||||||
AC_CACHE_CHECK([whether $[]_AC_FC[] understands -c and -o together],
|
AC_CACHE_CHECK([whether $[]_AC_FC[] understands -c and -o together],
|
||||||
[ac_cv_prog_[]_AC_LANG_ABBREV[]_c_o],
|
[ac_cv_prog_[]_AC_LANG_ABBREV[]_c_o],
|
||||||
[AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
|
[AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
|
||||||
ac_clean_files_save=$ac_clean_files
|
|
||||||
ac_clean_files="$ac_clean_files conftst2.*"
|
|
||||||
# We test twice because some compilers refuse to overwrite an existing
|
# We test twice because some compilers refuse to overwrite an existing
|
||||||
# `.o' file with `-o', although they will create one.
|
# `.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'
|
ac_try='$[]_AC_FC[] $[]_AC_LANG_PREFIX[]FLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&AS_MESSAGE_LOG_FD'
|
||||||
rm -f conftst2.*
|
rm -f conftest2.*
|
||||||
if AC_TRY_EVAL(ac_try) &&
|
if AC_TRY_EVAL(ac_try) &&
|
||||||
test -f conftst2.$ac_objext &&
|
test -f conftest2.$ac_objext &&
|
||||||
AC_TRY_EVAL(ac_try); then
|
AC_TRY_EVAL(ac_try); then
|
||||||
ac_cv_prog_[]_AC_LANG_ABBREV[]_c_o=yes
|
ac_cv_prog_[]_AC_LANG_ABBREV[]_c_o=yes
|
||||||
else
|
else
|
||||||
ac_cv_prog_[]_AC_LANG_ABBREV[]_c_o=no
|
ac_cv_prog_[]_AC_LANG_ABBREV[]_c_o=no
|
||||||
fi
|
fi
|
||||||
rm -f conftest* conftst2.*
|
rm -f conftest*])
|
||||||
ac_clean_files=$ac_clean_files_save
|
|
||||||
])
|
|
||||||
if test $ac_cv_prog_[]_AC_LANG_ABBREV[]_c_o = no; then
|
if test $ac_cv_prog_[]_AC_LANG_ABBREV[]_c_o = no; then
|
||||||
AC_DEFINE([]_AC_FC[]_NO_MINUS_C_MINUS_O, 1,
|
AC_DEFINE([]_AC_FC[]_NO_MINUS_C_MINUS_O, 1,
|
||||||
[Define to 1 if your Fortran compiler doesn't accept
|
[Define to 1 if your Fortran compiler doesn't accept
|
||||||
|
Loading…
Reference in New Issue
Block a user