aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2000-06-28 20:26:53 +0000
committerCorinna Vinschen <corinna@vinschen.de>2000-06-28 20:26:53 +0000
commit23f2f29f40ed179e15397304dbd4a0306a15d841 (patch)
tree4d1be136d6e70a8a5c557967876c6a5c48437bd4
parent2ae7e77be88be49df7fc287199d2a7a4046f9205 (diff)
downloadgdb-23f2f29f40ed179e15397304dbd4a0306a15d841.zip
gdb-23f2f29f40ed179e15397304dbd4a0306a15d841.tar.gz
gdb-23f2f29f40ed179e15397304dbd4a0306a15d841.tar.bz2
* ltconfig: Check for host_os beeing one of `cygwin', `mingw' or
`os2'. Force ac_cv_exeext to be ".exe" in that case.
-rw-r--r--ChangeLog5
-rwxr-xr-xltconfig47
2 files changed, 32 insertions, 20 deletions
diff --git a/ChangeLog b/ChangeLog
index a2e89d4..18f7ce6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-06-28 Corinna Vinschen <vinschen@cygnus.com>
+
+ * ltconfig: Check for host_os beeing one of `cygwin', `mingw' or
+ `os2'. Force ac_cv_exeext to be ".exe" in that case.
+
2000-06-19 Timothy Wall <twall@cygnus.com>
* configure.in (noconfigdirs): Set noconfigdirs for tic54x target.
diff --git a/ltconfig b/ltconfig
index e57dd54..b5e5461 100755
--- a/ltconfig
+++ b/ltconfig
@@ -623,26 +623,33 @@ echo $ac_n "checking for executable suffix... $ac_c" 1>&6
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
-
- 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*
+ 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*
+ ;;
+ esac
fi
if test "X$ac_cv_exeext" = Xno; then
exeext=""