I ran into a problem with autoconf 2.13 when CFLAGS is set to include
-MD. The acspecific code for detecting EXEEXT gets confused and thinks
that the ".d" file is the executable. This patch causes it to exclude
".d" in the same way as other suffixes that it knows about. Please
include this change in your next release if you think it looks OK.
2000-12-05 Bob Wilson <[EMAIL PROTECTED]>
* acspecific.m4: Ignore .d files produced by CFLAGS=-MD when
detecting the executable filename extension.
diff -ur autoconf-2.13/acspecific.m4 acspecific.m4
--- autoconf-2.13/acspecific.m4 Tue Jan 5 05:27:52 1999
+++ acspecific.m4 Wed Aug 2 09:20:13 2000
@@ -2659,7 +2659,7 @@
if AC_TRY_EVAL(ac_link); then
for file in conftest.*; do
case $file in
- *.c | *.o | *.obj) ;;
+ *.c | *.o | *.obj | *.d) ;;
*) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
esac
done
By the way, the same problem exists in libtool 1.3.5. I am submitting
the following patch to the libtool maintainers, but I thought you might
also want to have it:
2000-12-05 Bob Wilson <[EMAIL PROTECTED]>
* ltconfig.in: Ignore .d files produced by CFLAGS=-MD when
detecting the executable filename extension.
diff -ur libtool-1.3.5/ltconfig.in ltconfig.in
--- libtool-1.3.5/ltconfig.in Fri May 26 18:58:57 2000
+++ ltconfig.in Wed Aug 2 11:06:10 2000
@@ -633,7 +633,7 @@
for ac_file in conftest.*; do
case $ac_file in
- *.c | *.err | *.$objext ) ;;
+ *.c | *.err | *.$objext | *.d ) ;;
*) ac_cv_exeext=.`echo $ac_file | sed -e s/conftest.//` ;;
esac
done
--
Bob Wilson Tel: (408) 327-7312
Tensilica, Inc. Fax: (408) 986-8919
3255-6 Scott Blvd. email: [EMAIL PROTECTED]
Santa Clara, CA 95054