]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 3 May 2007 17:23:39 +0000 (17:23 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 3 May 2007 17:23:39 +0000 (17:23 +0000)
Reorganize the comments before and in the macro.

ChangeLog
lib/autoconf/lang.m4

index 2293ffba9bef4972f7e5c0336943394d2c288bf9..34ad5c09a9ca1ec9e799f0e136e85b0084515ae6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-03  Stepan Kasal  <kasal@ucw.cz>
+
+       * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
+       Reorganize the comments before and in the macro.
+
 2007-05-02  Stepan Kasal  <kasal@ucw.cz>
 
        * lib/autoconf/lang.m4, lib/autoconf/c.m4,
index acfb81ff365989f2c901832970383906bed59223..c781d5c392e9881c37d70e8a3314bd16af3a0e3d 100644 (file)
@@ -436,28 +436,34 @@ AC_DEFUN([AC_OBJEXT],   [])
 # We do this in order to find out what is the extension we must add for
 # creating executables (see _AC_COMPILER_EXEEXT's comments).
 #
+# On OpenVMS 7.1 system, the DEC C 5.5 compiler when called through a
+# GNV (gnv.sourceforge.net) cc wrapper, produces the output file named
+# `a_out.exe'.
+# b.out is created by i960 compilers.
+#
+# Start with the most likely output file names, but:
+# 1) Beware the clever `test -f' on Cygwin, try the DOS-like .exe names
+# before the counterparts without the extension.
+# 2) The algorithm is not robust to junk in `.', hence go to wildcards
+# (conftest.*) only as a last resort.
 # Beware of `expr' that may return `0' or `'.  Since this macro is
 # the first one in touch with the compiler, it should also check that
 # it compiles properly.
 #
-# On OpenVMS 7.1 system, the DEC C 5.5 compiler when called through a
-# GNV (gnv.sourceforge.net) cc wrapper, produces the output file named
-# `a_out.exe'.
+# The IRIX 6 linker writes into existing files which may not be
+# executable, retaining their permissions.  Remove them first so a
+# subsequent execution test works.
+#
 m4_define([_AC_COMPILER_EXEEXT_DEFAULT],
 [# Try to create an executable without -o first, disregard a.out.
 # It will help us diagnose broken compilers, and finding out an intuition
 # of exeext.
 AC_MSG_CHECKING([for _AC_LANG compiler default output file name])
 ac_link_default=`AS_ECHO(["$ac_link"]) | sed ['s/ -o *conftest[^ ]*//']`
-#
-# List of possible output files, starting from the most likely.
-# The algorithm is not robust to junk in `.', hence go to wildcards
-# (conftest.*) only as a last resort.  b.out is created by i960 compilers.
-ac_files='a_out.exe a.exe conftest.exe a.out conftest conftest.* b.out'
-#
-# The IRIX 6 linker writes into existing files which may not be
-# executable, retaining their permissions.  Remove them first so a
-# subsequent execution test works.
+
+# The possible output files:
+ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
+
 ac_rmfiles=
 for ac_file in $ac_files
 do