aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-07-04 17:27:30 +0000
committerIan Lance Taylor <ian@airs.com>1997-07-04 17:27:30 +0000
commit8270cd762b43fe979274f8c5e8f4338793bd9dad (patch)
treea39516bbe7e660ef9744fbacc07d01d38bf9dbd4 /configure.in
parent9039701bda1d0ab513c2abed287b27bd7293cc57 (diff)
downloadgdb-8270cd762b43fe979274f8c5e8f4338793bd9dad.zip
gdb-8270cd762b43fe979274f8c5e8f4338793bd9dad.tar.gz
gdb-8270cd762b43fe979274f8c5e8f4338793bd9dad.tar.bz2
* Makefile.in (INSTALL_PROGRAM_ARGS): New variable.
(INSTALL_PROGRAM): Use $(INSTALL_PROGRAM_ARGS). (INSTALL_SCRIPT): New variable. (BASE_FLAGS_TO_PASS): Pass down INSTALL_SCRIPT. * configure.in: If host is *-*-cygwin32*, set INSTALL_PROGRAM_ARGS to -x. * install-sh: Add support for -x option.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 11c5fc0..4590a03 100644
--- a/configure.in
+++ b/configure.in
@@ -868,6 +868,17 @@ if [ "${shared}" = "yes" ]; then
esac
fi
+# If we are building for a cygwin32 host, then set INSTALL_PROGRAM_ARGS to
+# -x. This will cause programs to be installed with .exe extensions.
+case "${host}" in
+*-*-cygwin32*)
+ sed -e 's/^INSTALL_PROGRAM_ARGS[ ]*=.*$/INSTALL_PROGRAM_ARGS = -x/' \
+ Makefile > Makefile.tem
+ rm -f Makefile
+ mv -f Makefile.tem Makefile
+ ;;
+esac
+
# Record target_configdirs and the configure arguments in Makefile.
target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
targargs=`echo "${arguments}" | \