Patch to ltconfig
Corinna Vinschen
vinschen@cygnus.com
Mon Jun 26 14:09:00 GMT 2000
Hi all,
I have found a problem which can be seen when configuring a
canadian with
build != cygwin and host == cygwin.
The code in ltconfig which tries to determine the EXEEXT doesn't
have the special code which is used by the AC_EXEEXT macro and which
asks for a Cygwin or Mingw32 host.
So it sets EXEEXT in config.cache to "" instead of ".exe" and
that wrong cached value is used by each following configure.
In the meantime I have sent a patch to libtool-patches which
changes ltconfig.in. Alexandre Oliva has proved the patch as
correct and it will be used as is. However, the patch is
useful only as long as an autoconf prior to 2.14 is used.
Nevertheless I want to suggest to patch ltconfig in the needed
way to get rid of the problem as long as the current versions
of libtool and autoconf are in use.
Patch attached.
Corinna
--
Corinna Vinschen
Cygwin Developer
Cygnus Solutions, a Red Hat company
Index: ltconfig
===================================================================
RCS file: /cvs/src/src/ltconfig,v
retrieving revision 1.3
diff -u -p -r1.3 ltconfig
--- ltconfig 2000/06/19 01:22:36 1.3
+++ ltconfig 2000/06/26 21:07:28
@@ -623,26 +623,33 @@ echo $ac_n "checking for executable suff
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- ac_cv_exeext="no"
- $rm conftest*
- echo 'main () { return 0; }' > conftest.c
- echo "$progname:629: checking for executable suffix" >& 5
- if { (eval echo $progname:630: \"$ac_link\") 1>&5; (eval $ac_link) 2>conftest.err; }; then
- # Append any warnings to the config.log.
- cat conftest.err 1>&5
+ case "$host_os" in
+ cygwin* | mingw* | os2*)
+ ac_cv_exeext=.exe
+ ;;
+ *)
+ ac_cv_exeext="no"
+ $rm conftest*
+ echo 'main () { return 0; }' > conftest.c
+ echo "$progname:634: checking for executable suffix" >& 5
+ if { (eval echo $progname:635: \"$ac_link\") 1>&5; (eval $ac_link) 2>conftest.err; }; then
+ # Append any warnings to the config.log.
+ cat conftest.err 1>&5
- for ac_file in conftest.*; do
- case $ac_file in
- *.c | *.err | *.$objext ) ;;
- *) ac_cv_exeext=.`echo $ac_file | sed -e s/conftest.//` ;;
- esac
- done
- else
- cat conftest.err 1>&5
- echo "$progname: failed program was:" >&5
- cat conftest.c >&5
- fi
- $rm conftest*
+ for ac_file in conftest.*; do
+ case $ac_file in
+ *.c | *.err | *.$objext ) ;;
+ *) ac_cv_exeext=.`echo $ac_file | sed -e s/conftest.//` ;;
+ esac
+ done
+ else
+ cat conftest.err 1>&5
+ echo "$progname: failed program was:" >&5
+ cat conftest.c >&5
+ fi
+ $rm conftest*
+ ;;
+ esac
fi
if test "X$ac_cv_exeext" = Xno; then
exeext=""
More information about the Binutils
mailing list