]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* aclang.m4 (AC_NO_EXECUTABLES): New macro.
authorAkim Demaille <akim@epita.fr>
Fri, 11 Aug 2000 12:41:55 +0000 (12:41 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 11 Aug 2000 12:41:55 +0000 (12:41 +0000)
ChangeLog
aclang.m4
lib/autoconf/c.m4
lib/autoconf/fortran.m4
lib/autoconf/lang.m4

index 467f398c21720fc2ab3f6dfb26e7f4f5ea76a7dc..4735d6a4d960011c72b8dae61bd074a9abb6fde3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-08-11  Akim Demaille  <akim@epita.fr>
+
+       * aclang.m4 (AC_NO_EXECUTABLES): New macro.
+
 2000-08-11  Akim Demaille  <akim@epita.fr>
 
        * tests/base.m4 (AC_SHELL_MKDIR_P): Remove `a' too.
index 6435eefe690c8b29f69eadebeddb85119913d18e..6571bc8a5f8003792b6cfe4dfe6ea3e663be6467 100644 (file)
--- a/aclang.m4
+++ b/aclang.m4
@@ -481,8 +481,8 @@ AC_DEFUN([AC_REQUIRE_CPP],
                  [AC_REQUIRE([AC_PROG_CXXCPP])])])
 
 
-# AC_LANG_COMPILER_WORKS
-# ----------------------
+# _AC_LANG_COMPILER_WORKS
+# -----------------------
 define([_AC_LANG_COMPILER_WORKS],
 [AC_MSG_CHECKING([whether the _AC_LANG compiler works])
 AC_LINK_IFELSE([AC_LANG_PROGRAM()],
@@ -505,7 +505,40 @@ AC_MSG_RESULT(yes)],
 AC_MSG_ERROR([_AC_LANG compiler cannot create executables], 77)])[]dnl
 AC_MSG_CHECKING([whether we are cross compiling])
 AC_MSG_RESULT($cross_compiling)
-])# AC_LANG_COMPILER_WORKS
+])# _AC_LANG_COMPILER_WORKS
+
+
+# AC_NO_EXECUTABLES
+# -----------------
+# FIXME: The GCC team has specific needs which the current Autoconf
+# framework cannot solve elegantly.  This macro implements a dirty
+# hack until Autoconf is abble to provide the services its users
+# needs.
+#
+# Several of the support libraries that are often built with GCC can't
+# assume the tool-chain is already capable of linking a program: the
+# compiler often expects to be able to link with some of such
+# libraries.
+#
+# In several of these libraries, work-arounds have been introduced to
+# avoid the AC_PROG_CC_WORKS test, that would just abort their
+# configuration.  The introduction of AC_EXEEXT, enabled either by
+# libtool or by CVS autoconf, have just made matters worse.
+AC_DEFUN_ONCE([AC_NO_EXECUTABLES],
+[AC_DIVERT_PUSH([KILL])
+
+AC_BEFORE([$0], [_AC_LANG_COMPILER_WORKS])
+AC_BEFORE([$0], [_AC_EXEEXT])
+
+define([_AC_LANG_COMPILER_WORKS], [cross_compiling=maybe])
+
+define([_AC_EXEEXT], [EXEEXT=])
+
+define([AC_LINK_IFELSE],
+[AC_FATAL([All the tests involving linking were disabled by $0])])
+
+AC_DIVERT_POP()dnl
+])# # AC_NO_EXECUTABLES
 
 
 # -------------------- #
index 6435eefe690c8b29f69eadebeddb85119913d18e..6571bc8a5f8003792b6cfe4dfe6ea3e663be6467 100644 (file)
@@ -481,8 +481,8 @@ AC_DEFUN([AC_REQUIRE_CPP],
                  [AC_REQUIRE([AC_PROG_CXXCPP])])])
 
 
-# AC_LANG_COMPILER_WORKS
-# ----------------------
+# _AC_LANG_COMPILER_WORKS
+# -----------------------
 define([_AC_LANG_COMPILER_WORKS],
 [AC_MSG_CHECKING([whether the _AC_LANG compiler works])
 AC_LINK_IFELSE([AC_LANG_PROGRAM()],
@@ -505,7 +505,40 @@ AC_MSG_RESULT(yes)],
 AC_MSG_ERROR([_AC_LANG compiler cannot create executables], 77)])[]dnl
 AC_MSG_CHECKING([whether we are cross compiling])
 AC_MSG_RESULT($cross_compiling)
-])# AC_LANG_COMPILER_WORKS
+])# _AC_LANG_COMPILER_WORKS
+
+
+# AC_NO_EXECUTABLES
+# -----------------
+# FIXME: The GCC team has specific needs which the current Autoconf
+# framework cannot solve elegantly.  This macro implements a dirty
+# hack until Autoconf is abble to provide the services its users
+# needs.
+#
+# Several of the support libraries that are often built with GCC can't
+# assume the tool-chain is already capable of linking a program: the
+# compiler often expects to be able to link with some of such
+# libraries.
+#
+# In several of these libraries, work-arounds have been introduced to
+# avoid the AC_PROG_CC_WORKS test, that would just abort their
+# configuration.  The introduction of AC_EXEEXT, enabled either by
+# libtool or by CVS autoconf, have just made matters worse.
+AC_DEFUN_ONCE([AC_NO_EXECUTABLES],
+[AC_DIVERT_PUSH([KILL])
+
+AC_BEFORE([$0], [_AC_LANG_COMPILER_WORKS])
+AC_BEFORE([$0], [_AC_EXEEXT])
+
+define([_AC_LANG_COMPILER_WORKS], [cross_compiling=maybe])
+
+define([_AC_EXEEXT], [EXEEXT=])
+
+define([AC_LINK_IFELSE],
+[AC_FATAL([All the tests involving linking were disabled by $0])])
+
+AC_DIVERT_POP()dnl
+])# # AC_NO_EXECUTABLES
 
 
 # -------------------- #
index 6435eefe690c8b29f69eadebeddb85119913d18e..6571bc8a5f8003792b6cfe4dfe6ea3e663be6467 100644 (file)
@@ -481,8 +481,8 @@ AC_DEFUN([AC_REQUIRE_CPP],
                  [AC_REQUIRE([AC_PROG_CXXCPP])])])
 
 
-# AC_LANG_COMPILER_WORKS
-# ----------------------
+# _AC_LANG_COMPILER_WORKS
+# -----------------------
 define([_AC_LANG_COMPILER_WORKS],
 [AC_MSG_CHECKING([whether the _AC_LANG compiler works])
 AC_LINK_IFELSE([AC_LANG_PROGRAM()],
@@ -505,7 +505,40 @@ AC_MSG_RESULT(yes)],
 AC_MSG_ERROR([_AC_LANG compiler cannot create executables], 77)])[]dnl
 AC_MSG_CHECKING([whether we are cross compiling])
 AC_MSG_RESULT($cross_compiling)
-])# AC_LANG_COMPILER_WORKS
+])# _AC_LANG_COMPILER_WORKS
+
+
+# AC_NO_EXECUTABLES
+# -----------------
+# FIXME: The GCC team has specific needs which the current Autoconf
+# framework cannot solve elegantly.  This macro implements a dirty
+# hack until Autoconf is abble to provide the services its users
+# needs.
+#
+# Several of the support libraries that are often built with GCC can't
+# assume the tool-chain is already capable of linking a program: the
+# compiler often expects to be able to link with some of such
+# libraries.
+#
+# In several of these libraries, work-arounds have been introduced to
+# avoid the AC_PROG_CC_WORKS test, that would just abort their
+# configuration.  The introduction of AC_EXEEXT, enabled either by
+# libtool or by CVS autoconf, have just made matters worse.
+AC_DEFUN_ONCE([AC_NO_EXECUTABLES],
+[AC_DIVERT_PUSH([KILL])
+
+AC_BEFORE([$0], [_AC_LANG_COMPILER_WORKS])
+AC_BEFORE([$0], [_AC_EXEEXT])
+
+define([_AC_LANG_COMPILER_WORKS], [cross_compiling=maybe])
+
+define([_AC_EXEEXT], [EXEEXT=])
+
+define([AC_LINK_IFELSE],
+[AC_FATAL([All the tests involving linking were disabled by $0])])
+
+AC_DIVERT_POP()dnl
+])# # AC_NO_EXECUTABLES
 
 
 # -------------------- #
index 6435eefe690c8b29f69eadebeddb85119913d18e..6571bc8a5f8003792b6cfe4dfe6ea3e663be6467 100644 (file)
@@ -481,8 +481,8 @@ AC_DEFUN([AC_REQUIRE_CPP],
                  [AC_REQUIRE([AC_PROG_CXXCPP])])])
 
 
-# AC_LANG_COMPILER_WORKS
-# ----------------------
+# _AC_LANG_COMPILER_WORKS
+# -----------------------
 define([_AC_LANG_COMPILER_WORKS],
 [AC_MSG_CHECKING([whether the _AC_LANG compiler works])
 AC_LINK_IFELSE([AC_LANG_PROGRAM()],
@@ -505,7 +505,40 @@ AC_MSG_RESULT(yes)],
 AC_MSG_ERROR([_AC_LANG compiler cannot create executables], 77)])[]dnl
 AC_MSG_CHECKING([whether we are cross compiling])
 AC_MSG_RESULT($cross_compiling)
-])# AC_LANG_COMPILER_WORKS
+])# _AC_LANG_COMPILER_WORKS
+
+
+# AC_NO_EXECUTABLES
+# -----------------
+# FIXME: The GCC team has specific needs which the current Autoconf
+# framework cannot solve elegantly.  This macro implements a dirty
+# hack until Autoconf is abble to provide the services its users
+# needs.
+#
+# Several of the support libraries that are often built with GCC can't
+# assume the tool-chain is already capable of linking a program: the
+# compiler often expects to be able to link with some of such
+# libraries.
+#
+# In several of these libraries, work-arounds have been introduced to
+# avoid the AC_PROG_CC_WORKS test, that would just abort their
+# configuration.  The introduction of AC_EXEEXT, enabled either by
+# libtool or by CVS autoconf, have just made matters worse.
+AC_DEFUN_ONCE([AC_NO_EXECUTABLES],
+[AC_DIVERT_PUSH([KILL])
+
+AC_BEFORE([$0], [_AC_LANG_COMPILER_WORKS])
+AC_BEFORE([$0], [_AC_EXEEXT])
+
+define([_AC_LANG_COMPILER_WORKS], [cross_compiling=maybe])
+
+define([_AC_EXEEXT], [EXEEXT=])
+
+define([AC_LINK_IFELSE],
+[AC_FATAL([All the tests involving linking were disabled by $0])])
+
+AC_DIVERT_POP()dnl
+])# # AC_NO_EXECUTABLES
 
 
 # -------------------- #