]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* aclang.m4 (AC_LANG(C++)): Change `ac_ext' from from `C' to `cc'
authorAkim Demaille <akim@epita.fr>
Wed, 24 May 2000 15:50:19 +0000 (15:50 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 24 May 2000 15:50:19 +0000 (15:50 +0000)
to avoid potential ambiguities on case-insensitive shells.

ChangeLog
acgeneral.m4
aclang.m4
lib/autoconf/c.m4
lib/autoconf/fortran.m4
lib/autoconf/general.m4
lib/autoconf/lang.m4

index e094032fc7f2b49e1b60541b7641bd7bc3940c5e..e44fb5edb8b0841e30336bbdaea6cc36ca32aa03 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-24  Ossama Othman  <ossama@debian.org>
+
+       * aclang.m4 (AC_LANG(C++)): Change `ac_ext' from from `C' to `cc'
+       to avoid potential ambiguities on case-insensitive shells.
+
 2000-05-24  Mo DeJong  <mdejong@cygnus.com>
 
        Have --host=sun4 automatically look for CC=sun4-cc etc.
index 213ff55f5464b6518ed52c14060d17f1b441ff8c..b3285ccfe0fcf3e5253e53c1994400e5fc516555 100644 (file)
@@ -1624,9 +1624,9 @@ AC_CONFIG_SRCDIR([$1])], [[AC_INIT]])])[]dnl
 # Note that the order is important: first initialize, then set the
 # AC_CONFIG_SRCDIR.
 AC_DEFUN([AC_INIT],
-[AC_EXPAND_ONCE([_AC_INIT()])dnl
-ifval([$2], [_AC_INIT_PACKAGE($@)],
-            [ifval([$1], [AC_CONFIG_SRCDIR([$1])])])dnl
+[ifval([$2], [_AC_INIT_PACKAGE($@)])dnl
+AC_EXPAND_ONCE([_AC_INIT()])dnl
+ifval([$2], , [ifval([$1], [AC_CONFIG_SRCDIR([$1])])])dnl
 ])
 
 
index c0a85ccf47d8b237d3453943355f80789ac03af3..fb4703b7f29f18efea449a37b57128da3af59f6b 100644 (file)
--- a/aclang.m4
+++ b/aclang.m4
@@ -186,7 +186,7 @@ AU_DEFUN([AC_LANG_C], [AC_LANG(C)])
 # AC_LANG(C++)
 # ------------
 define([AC_LANG(C++)],
-[ac_ext=C
+[ac_ext=cc
 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CXXCPP $CPPFLAGS'
 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
@@ -719,12 +719,12 @@ AC_LANG_POP
 define([_AC_PROG_CXX_GNU],
 [AC_CACHE_CHECK(whether we are using GNU C++, ac_cv_prog_gxx,
 [dnl The semicolon is to pacify NeXT's syntax-checking cpp.
-cat >conftest.C <<EOF
+cat >conftest.cc <<EOF
 #ifdef __GNUC__
   yes;
 #endif
 EOF
-if AC_TRY_COMMAND(${CXX-g++} -E conftest.C) | egrep yes >/dev/null 2>&1; then
+if AC_TRY_COMMAND(${CXX-g++} -E conftest.cc) | egrep yes >/dev/null 2>&1; then
   ac_cv_prog_gxx=yes
 else
   ac_cv_prog_gxx=no
index c0a85ccf47d8b237d3453943355f80789ac03af3..fb4703b7f29f18efea449a37b57128da3af59f6b 100644 (file)
@@ -186,7 +186,7 @@ AU_DEFUN([AC_LANG_C], [AC_LANG(C)])
 # AC_LANG(C++)
 # ------------
 define([AC_LANG(C++)],
-[ac_ext=C
+[ac_ext=cc
 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CXXCPP $CPPFLAGS'
 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
@@ -719,12 +719,12 @@ AC_LANG_POP
 define([_AC_PROG_CXX_GNU],
 [AC_CACHE_CHECK(whether we are using GNU C++, ac_cv_prog_gxx,
 [dnl The semicolon is to pacify NeXT's syntax-checking cpp.
-cat >conftest.C <<EOF
+cat >conftest.cc <<EOF
 #ifdef __GNUC__
   yes;
 #endif
 EOF
-if AC_TRY_COMMAND(${CXX-g++} -E conftest.C) | egrep yes >/dev/null 2>&1; then
+if AC_TRY_COMMAND(${CXX-g++} -E conftest.cc) | egrep yes >/dev/null 2>&1; then
   ac_cv_prog_gxx=yes
 else
   ac_cv_prog_gxx=no
index c0a85ccf47d8b237d3453943355f80789ac03af3..fb4703b7f29f18efea449a37b57128da3af59f6b 100644 (file)
@@ -186,7 +186,7 @@ AU_DEFUN([AC_LANG_C], [AC_LANG(C)])
 # AC_LANG(C++)
 # ------------
 define([AC_LANG(C++)],
-[ac_ext=C
+[ac_ext=cc
 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CXXCPP $CPPFLAGS'
 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
@@ -719,12 +719,12 @@ AC_LANG_POP
 define([_AC_PROG_CXX_GNU],
 [AC_CACHE_CHECK(whether we are using GNU C++, ac_cv_prog_gxx,
 [dnl The semicolon is to pacify NeXT's syntax-checking cpp.
-cat >conftest.C <<EOF
+cat >conftest.cc <<EOF
 #ifdef __GNUC__
   yes;
 #endif
 EOF
-if AC_TRY_COMMAND(${CXX-g++} -E conftest.C) | egrep yes >/dev/null 2>&1; then
+if AC_TRY_COMMAND(${CXX-g++} -E conftest.cc) | egrep yes >/dev/null 2>&1; then
   ac_cv_prog_gxx=yes
 else
   ac_cv_prog_gxx=no
index 213ff55f5464b6518ed52c14060d17f1b441ff8c..b3285ccfe0fcf3e5253e53c1994400e5fc516555 100644 (file)
@@ -1624,9 +1624,9 @@ AC_CONFIG_SRCDIR([$1])], [[AC_INIT]])])[]dnl
 # Note that the order is important: first initialize, then set the
 # AC_CONFIG_SRCDIR.
 AC_DEFUN([AC_INIT],
-[AC_EXPAND_ONCE([_AC_INIT()])dnl
-ifval([$2], [_AC_INIT_PACKAGE($@)],
-            [ifval([$1], [AC_CONFIG_SRCDIR([$1])])])dnl
+[ifval([$2], [_AC_INIT_PACKAGE($@)])dnl
+AC_EXPAND_ONCE([_AC_INIT()])dnl
+ifval([$2], , [ifval([$1], [AC_CONFIG_SRCDIR([$1])])])dnl
 ])
 
 
index c0a85ccf47d8b237d3453943355f80789ac03af3..fb4703b7f29f18efea449a37b57128da3af59f6b 100644 (file)
@@ -186,7 +186,7 @@ AU_DEFUN([AC_LANG_C], [AC_LANG(C)])
 # AC_LANG(C++)
 # ------------
 define([AC_LANG(C++)],
-[ac_ext=C
+[ac_ext=cc
 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CXXCPP $CPPFLAGS'
 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
@@ -719,12 +719,12 @@ AC_LANG_POP
 define([_AC_PROG_CXX_GNU],
 [AC_CACHE_CHECK(whether we are using GNU C++, ac_cv_prog_gxx,
 [dnl The semicolon is to pacify NeXT's syntax-checking cpp.
-cat >conftest.C <<EOF
+cat >conftest.cc <<EOF
 #ifdef __GNUC__
   yes;
 #endif
 EOF
-if AC_TRY_COMMAND(${CXX-g++} -E conftest.C) | egrep yes >/dev/null 2>&1; then
+if AC_TRY_COMMAND(${CXX-g++} -E conftest.cc) | egrep yes >/dev/null 2>&1; then
   ac_cv_prog_gxx=yes
 else
   ac_cv_prog_gxx=no