[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: Adjust circular dependencies
From: |
Akim Demaille |
Subject: |
FYI: Adjust circular dependencies |
Date: |
12 Oct 2000 14:47:56 +0200 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) |
Index: ChangeLog
from Akim Demaille <address@hidden>
Macros used by AC_LANG_COMPILER macros shall not AC_REQUIRE
AC_LANG_COMPILER by the way of AC_COMPILE_IFELSE etc.
* acspecific.m4 (_AC_EXEEXT): Use _AC_LINK_IFELSE, not
AC_LINK_IFELSE to avoid AC_REQUIREing AC_PROG_CC which precisely
requires _AC_EXEEXT.
Don't run _AC_CYGWIN, _AC_MINGW32, _AC_EMXOS2.
* aclang.m4 (_AC_PROG_F77_G): Use _AC_COMPILE_IFELSE, not
AC_COMPILE_IFELSE.
(_AC_LANG_COMPILER_WORKS): Use _AC_LINK_IFELSE, not
AC_LINK_IFELSE.
2000-10-12 Akim Demaille <address@hidden>
Index: TODO
===================================================================
RCS file: /cvs/autoconf/TODO,v
retrieving revision 1.91
diff -u -r1.91 TODO
--- TODO 2000/10/12 10:12:43 1.91
+++ TODO 2000/10/12 12:36:48
@@ -9,6 +9,10 @@
* Autoconf 2.50
+** AC_EXEEXT, AC_OBJEXT
+We need a good implement. As much as possible, they should not depend
+upon AC_EMXOS2 etc.
+
** More tests
Check that AC_REQUIRE circular dependencies are caught.
Index: aclang.m4
===================================================================
RCS file: /cvs/autoconf/aclang.m4,v
retrieving revision 1.69
diff -u -r1.69 aclang.m4
--- aclang.m4 2000/10/11 14:51:29 1.69
+++ aclang.m4 2000/10/12 12:36:48
@@ -519,7 +519,7 @@
# -----------------------
define([_AC_LANG_COMPILER_WORKS],
[AC_MSG_CHECKING([whether the _AC_LANG compiler works])
-AC_LINK_IFELSE([AC_LANG_PROGRAM()],
+_AC_LINK_IFELSE([AC_LANG_PROGRAM()],
[# FIXME: these cross compiler hacks should be removed for autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
@@ -1051,7 +1051,7 @@
FFLAGS=
AC_CACHE_CHECK(whether $F77 accepts -g, ac_cv_prog_f77_g,
[FFLAGS=-g
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
+_AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
[ac_cv_prog_f77_g=yes],
[ac_cv_prog_f77_g=no])
])
Index: acspecific.m4
===================================================================
RCS file: /cvs/autoconf/acspecific.m4,v
retrieving revision 1.300
diff -u -r1.300 acspecific.m4
--- acspecific.m4 2000/10/02 12:47:13 1.300
+++ acspecific.m4 2000/10/12 12:36:50
@@ -1559,14 +1559,11 @@
# executable. If this is called, the executable extensions will be
# automatically used by link commands run by the configure script.
define([_AC_EXEEXT],
-[_AC_CYGWIN
-_AC_MINGW32
-_AC_EMXOS2
-AC_CACHE_CHECK([for executable suffix], ac_cv_exeext,
+[AC_CACHE_CHECK([for executable suffix], ac_cv_exeext,
[case "$CYGWIN $MINGW32 $EMXOS2" in
*yes*) ac_cv_exeext=.exe ;;
*)
- AC_LINK_IFELSE([AC_LANG_PROGRAM()],
+ _AC_LINK_IFELSE([AC_LANG_PROGRAM()],
[if test ! -f conftest; then
for ac_file in conftest.*; do
case $ac_file in
@@ -1594,18 +1591,17 @@
define([_AC_OBJEXT],
[AC_CACHE_CHECK([for object suffix], ac_cv_objext,
[AC_LANG_CONFTEST([AC_LANG_PROGRAM()])
- if AC_TRY_EVAL(ac_compile); then
- for ac_file in conftest.*; do
- case $ac_file in
- *.$ac_ext) ;;
- *) ac_cv_objext=`echo $ac_file | sed s/conftest.//` ;;
- esac
- done
- else
- rm -f conftest.$ac_ext
- AC_MSG_ERROR([cannot compile])
- fi
-])
+if AC_TRY_EVAL(ac_compile); then
+ for ac_file in conftest.*; do
+ case $ac_file in
+ *.$ac_ext) ;;
+ *) ac_cv_objext=`echo $ac_file | sed s/conftest.//` ;;
+ esac
+ done
+else
+ rm -f conftest.$ac_ext
+ AC_MSG_ERROR([cannot compile])
+fi])
AC_SUBST(OBJEXT, $ac_cv_objext)dnl
ac_objext=$ac_cv_objext
rm -f conftest.$ac_objext conftest.$ac_ext
- FYI: Adjust circular dependencies,
Akim Demaille <=
- Re: FYI: Adjust circular dependencies, Alexandre Oliva, 2000/10/12
- Re: FYI: Adjust circular dependencies, Morten Eriksen, 2000/10/12
- Re: FYI: Adjust circular dependencies, Akim Demaille, 2000/10/12
- Re: FYI: Adjust circular dependencies, Morten Eriksen, 2000/10/12
- Re: FYI: Adjust circular dependencies, Akim Demaille, 2000/10/12
- Re: FYI: Adjust circular dependencies, Alexandre Oliva, 2000/10/12
- Re: FYI: Adjust circular dependencies, Akim Demaille, 2000/10/16
- Re: FYI: Adjust circular dependencies, Alexandre Oliva, 2000/10/17
- Re: FYI: Adjust circular dependencies, Akim Demaille, 2000/10/17
- Re: FYI: Adjust circular dependencies, Alexandre Oliva, 2000/10/17