mirror of
git://git.sv.gnu.org/autoconf
synced 2024-11-27 01:49:56 +08:00
* aclang.m4 (_AC_COMPILER_OBJEXT): Don't rely on
_AC_COMPILE_IFELSE which uses ac_objext in a `test -s'. Reported by Lars J. Aas.
This commit is contained in:
parent
b6e82fb53c
commit
9d8c8ee03c
@ -1,3 +1,9 @@
|
||||
2000-12-19 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* aclang.m4 (_AC_COMPILER_OBJEXT): Don't rely on
|
||||
_AC_COMPILE_IFELSE which uses ac_objext in a `test -s'.
|
||||
Reported by Lars J. Aas.
|
||||
|
||||
2000-12-19 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* tests/compile.at (AC_PROG_CPP without warnings, GNU Fortran 77):
|
||||
|
14
aclang.m4
14
aclang.m4
@ -723,10 +723,14 @@ ac_exeext=$EXEEXT
|
||||
# determined by ac_objext.
|
||||
#
|
||||
# This macro is called by AC_LANG_COMPILER, the latter being required
|
||||
# by the AC_COMPILE_IFELSE macros, so use _AC_COMPILE_IFELSE.
|
||||
# by the AC_COMPILE_IFELSE macros, so use _AC_COMPILE_IFELSE. And in fact,
|
||||
# don't, since _AC_COMPILE_IFELSE needs to know ac_objext for the `test -s'
|
||||
# it includes. So do it by hand.
|
||||
m4_define([_AC_COMPILER_OBJEXT],
|
||||
[AC_CACHE_CHECK([for object suffix], ac_cv_objext,
|
||||
[_AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
|
||||
[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
|
||||
case $ac_file in
|
||||
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
|
||||
@ -734,8 +738,10 @@ m4_define([_AC_COMPILER_OBJEXT],
|
||||
break;;
|
||||
esac
|
||||
done],
|
||||
[AC_MSG_ERROR([cannot compute OBJEXT: cannot compile])])
|
||||
rm -f conftest.$ac_cv_objext])
|
||||
[echo "$as_me: failed program was:" >&AS_MESSAGE_LOG_FD
|
||||
cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD
|
||||
AC_MSG_ERROR([cannot compute OBJEXT: cannot compile])])
|
||||
rm -f conftest.$ac_cv_objext conftest.$ac_ext])
|
||||
AC_SUBST([OBJEXT], [$ac_cv_objext])dnl
|
||||
ac_objext=$OBJEXT
|
||||
])# _AC_COMPILER_OBJEXT
|
||||
|
@ -723,10 +723,14 @@ ac_exeext=$EXEEXT
|
||||
# determined by ac_objext.
|
||||
#
|
||||
# This macro is called by AC_LANG_COMPILER, the latter being required
|
||||
# by the AC_COMPILE_IFELSE macros, so use _AC_COMPILE_IFELSE.
|
||||
# by the AC_COMPILE_IFELSE macros, so use _AC_COMPILE_IFELSE. And in fact,
|
||||
# don't, since _AC_COMPILE_IFELSE needs to know ac_objext for the `test -s'
|
||||
# it includes. So do it by hand.
|
||||
m4_define([_AC_COMPILER_OBJEXT],
|
||||
[AC_CACHE_CHECK([for object suffix], ac_cv_objext,
|
||||
[_AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
|
||||
[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
|
||||
case $ac_file in
|
||||
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
|
||||
@ -734,8 +738,10 @@ m4_define([_AC_COMPILER_OBJEXT],
|
||||
break;;
|
||||
esac
|
||||
done],
|
||||
[AC_MSG_ERROR([cannot compute OBJEXT: cannot compile])])
|
||||
rm -f conftest.$ac_cv_objext])
|
||||
[echo "$as_me: failed program was:" >&AS_MESSAGE_LOG_FD
|
||||
cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD
|
||||
AC_MSG_ERROR([cannot compute OBJEXT: cannot compile])])
|
||||
rm -f conftest.$ac_cv_objext conftest.$ac_ext])
|
||||
AC_SUBST([OBJEXT], [$ac_cv_objext])dnl
|
||||
ac_objext=$OBJEXT
|
||||
])# _AC_COMPILER_OBJEXT
|
||||
|
@ -723,10 +723,14 @@ ac_exeext=$EXEEXT
|
||||
# determined by ac_objext.
|
||||
#
|
||||
# This macro is called by AC_LANG_COMPILER, the latter being required
|
||||
# by the AC_COMPILE_IFELSE macros, so use _AC_COMPILE_IFELSE.
|
||||
# by the AC_COMPILE_IFELSE macros, so use _AC_COMPILE_IFELSE. And in fact,
|
||||
# don't, since _AC_COMPILE_IFELSE needs to know ac_objext for the `test -s'
|
||||
# it includes. So do it by hand.
|
||||
m4_define([_AC_COMPILER_OBJEXT],
|
||||
[AC_CACHE_CHECK([for object suffix], ac_cv_objext,
|
||||
[_AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
|
||||
[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
|
||||
case $ac_file in
|
||||
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
|
||||
@ -734,8 +738,10 @@ m4_define([_AC_COMPILER_OBJEXT],
|
||||
break;;
|
||||
esac
|
||||
done],
|
||||
[AC_MSG_ERROR([cannot compute OBJEXT: cannot compile])])
|
||||
rm -f conftest.$ac_cv_objext])
|
||||
[echo "$as_me: failed program was:" >&AS_MESSAGE_LOG_FD
|
||||
cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD
|
||||
AC_MSG_ERROR([cannot compute OBJEXT: cannot compile])])
|
||||
rm -f conftest.$ac_cv_objext conftest.$ac_ext])
|
||||
AC_SUBST([OBJEXT], [$ac_cv_objext])dnl
|
||||
ac_objext=$OBJEXT
|
||||
])# _AC_COMPILER_OBJEXT
|
||||
|
@ -723,10 +723,14 @@ ac_exeext=$EXEEXT
|
||||
# determined by ac_objext.
|
||||
#
|
||||
# This macro is called by AC_LANG_COMPILER, the latter being required
|
||||
# by the AC_COMPILE_IFELSE macros, so use _AC_COMPILE_IFELSE.
|
||||
# by the AC_COMPILE_IFELSE macros, so use _AC_COMPILE_IFELSE. And in fact,
|
||||
# don't, since _AC_COMPILE_IFELSE needs to know ac_objext for the `test -s'
|
||||
# it includes. So do it by hand.
|
||||
m4_define([_AC_COMPILER_OBJEXT],
|
||||
[AC_CACHE_CHECK([for object suffix], ac_cv_objext,
|
||||
[_AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
|
||||
[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
|
||||
case $ac_file in
|
||||
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
|
||||
@ -734,8 +738,10 @@ m4_define([_AC_COMPILER_OBJEXT],
|
||||
break;;
|
||||
esac
|
||||
done],
|
||||
[AC_MSG_ERROR([cannot compute OBJEXT: cannot compile])])
|
||||
rm -f conftest.$ac_cv_objext])
|
||||
[echo "$as_me: failed program was:" >&AS_MESSAGE_LOG_FD
|
||||
cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD
|
||||
AC_MSG_ERROR([cannot compute OBJEXT: cannot compile])])
|
||||
rm -f conftest.$ac_cv_objext conftest.$ac_ext])
|
||||
AC_SUBST([OBJEXT], [$ac_cv_objext])dnl
|
||||
ac_objext=$OBJEXT
|
||||
])# _AC_COMPILER_OBJEXT
|
||||
|
Loading…
Reference in New Issue
Block a user