]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acspecific.m4 (_AC_OBJEXT): Skip *.tds, special case .o and
authorAkim Demaille <akim@epita.fr>
Wed, 29 Nov 2000 18:41:14 +0000 (18:41 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 29 Nov 2000 18:41:14 +0000 (18:41 +0000)
.obj.
Suggested by Lars.

ChangeLog
acspecific.m4
lib/autoconf/specific.m4

index fa85de50e924a3a94f40b952d464cdbb245f6995..3d1b99be547ded8bb79f961a3021c660e432f188 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2000-11-29  Akim Demaille  <akim@epita.fr>
+
+       * acspecific.m4 (_AC_OBJEXT): Skip *.tds, special case .o and
+       .obj.
+       Suggested by Lars.
+
 2000-11-29  Akim Demaille  <akim@epita.fr>
 
        * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the portability of
index 2ef36d6dd867d42cb4e04dc4858a6de440cc7b13..e46889d2d083942bf5d52cbadee710f476dcf903 100644 (file)
@@ -1224,15 +1224,20 @@ AC_SUBST(EXEEXT)dnl
 # Check the object extension used by the compiler: typically .o or
 # .obj.  If this is called, some other behaviour will change,
 # determined by ac_objext.
+#
+# When the w32 free Borland C++ command line compiler links a program
+# (conftest.exe), it also produces a file named `conftest.tds' in
+# addition to `conftest.obj'
 m4_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
+  for ac_file in `ls conftest.o conftest.obj conftest.* 2>/dev/null`; do
+    case $ac_file in
+      *.o | *.obj )       ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`;;
+      *.$ac_ext | *.tds ) ;;
+      *)                  ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`;;
+    esac
   done
 else
   rm -f conftest.$ac_ext
index 2ef36d6dd867d42cb4e04dc4858a6de440cc7b13..e46889d2d083942bf5d52cbadee710f476dcf903 100644 (file)
@@ -1224,15 +1224,20 @@ AC_SUBST(EXEEXT)dnl
 # Check the object extension used by the compiler: typically .o or
 # .obj.  If this is called, some other behaviour will change,
 # determined by ac_objext.
+#
+# When the w32 free Borland C++ command line compiler links a program
+# (conftest.exe), it also produces a file named `conftest.tds' in
+# addition to `conftest.obj'
 m4_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
+  for ac_file in `ls conftest.o conftest.obj conftest.* 2>/dev/null`; do
+    case $ac_file in
+      *.o | *.obj )       ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`;;
+      *.$ac_ext | *.tds ) ;;
+      *)                  ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`;;
+    esac
   done
 else
   rm -f conftest.$ac_ext