+1999-05-24 Thomas Tanner <tanner@ffii.org>
+
+ * doc/libtool.texi: fix "wierd" typo :)
+ * ltmain.in: strip off the .exe suffix only on *Win
+ (Reported by Matthew D. Langston <langston@SLAC.Stanford.EDU>)
+
1999-05-23 Alexandre Oliva <oliva@dcc.unicamp.br>
* doc/PLATFORMS: Release 1.3.1 passes on GNU Hurd/x86.
*)
absdir=`cd "$dir" && pwd`
if test -z "$absdir"; then
- $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
- $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
- absdir="$dir"
+ $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
+ $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
+ absdir="$dir"
fi
dir="$absdir"
;;
*)
absdir=`cd "$dir" && pwd`
if test -z "$absdir"; then
- $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
- $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
- absdir="$dir"
+ $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
+ $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
+ absdir="$dir"
fi
;;
esac
# Only actually do things if our run command is non-null.
if test -z "$run"; then
- # win32 will think the script is a binary if it has
- # a .exe suffix, so we strip it off here.
- case $output in
- *.exe) output=`echo $output|sed 's,.exe$,,'` ;;
+ case "$host" in
+ *-*-cygwin* | *-*-mingw* | *-*-os2*)
+ # win32 will think the script is a binary if it has
+ # a .exe suffix, so we strip it off here.
+ case $output in
+ *.exe) output=`echo $output|sed 's,.exe$,,'` ;;
+ esac
+ ;;
esac
$rm $output
trap "$rm $output; exit 1" 1 2 15