summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2006-03-10 22:54:02 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2006-03-10 22:54:02 +0000
commita574823bc6023986bc51893c77c51af0f2bc85bf (patch)
tree07cabfbbfb06cc300e9babaa4d53f850a9e71f9d
parentfd751eb101fd208ff2e29f4c5d484f2d1b2d13ba (diff)
downloadswig-a574823bc6023986bc51893c77c51af0f2bc85bf.tar.gz
remove non-standard --with-release-suffix configure options and fix the standard autoconf options --program-prefix and --program-suffix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8998 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r--SWIG/Examples/Makefile.in2
-rw-r--r--SWIG/Makefile.in13
-rw-r--r--SWIG/Source/Makefile.am4
-rw-r--r--SWIG/configure.in8
-rwxr-xr-xSWIG/debian/rules2
-rwxr-xr-xSWIG/preinst-swig.in2
6 files changed, 13 insertions, 18 deletions
diff --git a/SWIG/Examples/Makefile.in b/SWIG/Examples/Makefile.in
index 13be93f37..ae5985760 100644
--- a/SWIG/Examples/Makefile.in
+++ b/SWIG/Examples/Makefile.in
@@ -32,7 +32,7 @@ INCLUDES =
LIBS =
INTERFACE =
SWIGOPT =
-SWIG = swig@release_suffix@
+SWIG = swig
LIBM = @LIBM@
LIBC = @LIBC@
diff --git a/SWIG/Makefile.in b/SWIG/Makefile.in
index 7621e323d..880e88e56 100644
--- a/SWIG/Makefile.in
+++ b/SWIG/Makefile.in
@@ -13,7 +13,8 @@ srcdir = @srcdir@
SHELL = /bin/sh
SWIG_LIB = @swig_lib@
BIN_DIR = @bindir@
-TARGET = swig@release_suffix@@EXEEXT@
+TARGET_NOEXE= swig
+TARGET = $(TARGET_NOEXE)@EXEEXT@
SOURCE = Source
swig: libfiles source
@@ -355,6 +356,8 @@ INSTALL = @abs_srcdir@/Tools/config/install-sh -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL} -m 755
MKINSTDIRS = @abs_srcdir@/Tools/config/install-sh -m 0755 -d
+# Use standard autoconf approach to transform executable name using --program-prefix and --program-suffix
+transform = @program_transform_name@
install: install-main install-lib
@echo "Installation complete"
@@ -362,8 +365,8 @@ install: install-main install-lib
install-main:
@echo "Installing SWIG executable"
@$(MKINSTDIRS) $(DESTDIR)$(BIN_DIR)
- @echo "Installing $(BIN_DIR)/$(TARGET)"
- @$(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(BIN_DIR)/$(TARGET)
+ @echo "Installing $(DESTDIR)$(BIN_DIR)/`echo $(TARGET_NOEXE) | sed '$(transform)'`@EXEEXT@"
+ @$(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(BIN_DIR)/`echo $(TARGET_NOEXE) | sed '$(transform)'`@EXEEXT@
lib-languages = gcj typemaps tcl perl5 python guile java mzscheme ruby php4 ocaml \
pike chicken csharp modula3 allegrocl clisp lua cffi uffi
@@ -409,8 +412,8 @@ uninstall: uninstall-main uninstall-lib
@echo "Uninstall complete"
uninstall-main:
- @echo "Uninstalling $(DESTDIR)$(BIN_DIR)/$(TARGET)"
- rm -f $(DESTDIR)$(BIN_DIR)/$(TARGET)
+ @echo "Uninstalling SWIG executable $(DESTDIR)$(BIN_DIR)/`echo $(TARGET_NOEXE) | sed '$(transform)'`@EXEEXT@"
+ rm -f $(DESTDIR)$(BIN_DIR)/`echo $(TARGET_NOEXE) | sed '$(transform)'`@EXEEXT@
uninstall-lib:
@echo "Uninstalling the SWIG library"
diff --git a/SWIG/Source/Makefile.am b/SWIG/Source/Makefile.am
index a0c7e6cc6..2068aaa8f 100644
--- a/SWIG/Source/Makefile.am
+++ b/SWIG/Source/Makefile.am
@@ -98,7 +98,7 @@ CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
# This occurs on each invocation of make and is a step towards providing support for multiple
# build directories.
all-local: eswig@EXEEXT@
- cp eswig@EXEEXT@ ../swig@release_suffix@@EXEEXT@
+ cp eswig@EXEEXT@ ../swig@EXEEXT@
clean-local:
- rm -f ../swig@release_suffix@@EXEEXT@
+ rm -f ../swig@EXEEXT@
diff --git a/SWIG/configure.in b/SWIG/configure.in
index cb1125a66..1a503c60b 100644
--- a/SWIG/configure.in
+++ b/SWIG/configure.in
@@ -1913,14 +1913,6 @@ AC_ARG_WITH(swiglibdir,[ --with-swiglibdir=DIR Put SWIG system-independent li
AC_SUBST(swig_lib)
AC_DEFINE_DIR(SWIG_LIB, swig_lib, [Directory for SWIG system-independent libraries])
-# Configure RELEASESUFFIX (for setups having both SWIG 1.1 and 1.3 on a system...)
-
-AC_ARG_WITH(release-suffix,
- [ --with-release-suffix=SUFFIX Attach SUFFIX to the binary. ],
- [release_suffix="$withval"], [release_suffix=""])
-AC_SUBST(release_suffix)
-AC_DEFINE_UNQUOTED(RELEASE_SUFFIX, "$release_suffix", [Executable release suffix for co-existence with older versions])
-
AC_CONFIG_FILES([ \
Makefile \
swig.spec \
diff --git a/SWIG/debian/rules b/SWIG/debian/rules
index 898b7a8d6..1fafed902 100755
--- a/SWIG/debian/rules
+++ b/SWIG/debian/rules
@@ -12,7 +12,7 @@ configure: configure-stamp
configure-stamp:
dh_testdir
./autogen-debian.sh
- ./configure --prefix=/usr --mandir=/usr/share/man --with-swiglibdir=/usr/share/swig1.3 --with-release-suffix=-1.3
+ ./configure --prefix=/usr --mandir=/usr/share/man --with-swiglibdir=/usr/share/swig1.3 --program-suffix=-1.3
touch configure-stamp
build: configure-stamp build-stamp
diff --git a/SWIG/preinst-swig.in b/SWIG/preinst-swig.in
index f301f5a62..ce0361895 100755
--- a/SWIG/preinst-swig.in
+++ b/SWIG/preinst-swig.in
@@ -4,4 +4,4 @@ srcdir=`cd $builddir && cd @srcdir@ && pwd`
SWIG_LIB=$srcdir/Lib
#SWIG_LIB=`cygpath -w $srcdir/Lib` # For native Windows version of SWIG
export SWIG_LIB
-exec $builddir/swig@release_suffix@ $*
+exec $builddir/swig $*