From abe52396b2e418f9ac9c810feddeedf4adc98bbc Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 21 Aug 2015 22:35:13 +0100 Subject: Leave preinst-swig as a convenience only script for ad-hoc use --- configure.ac | 15 +-------------- preinst-swig.in | 4 ++++ 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/configure.ac b/configure.ac index b07463b86..6ea73f327 100644 --- a/configure.ac +++ b/configure.ac @@ -2924,20 +2924,7 @@ case $build in esac AC_DEFINE_UNQUOTED(SWIG_LIB_WIN_UNIX, ["$SWIG_LIB_WIN_UNIX"], [Directory for SWIG system-independent libraries (Unix install on native Windows)]) -dnl For testing purposes, don't set SWIG_LIB_PREINST when building SWIG in the -dnl source directory under Windows because it is supposed to work without -dnl SWIG_LIB being set at all in this particular case. -if test "${srcdir}" = "."; then - AC_EGREP_CPP([yes], - [#ifdef _WIN32 - yes - #endif - ], [SWIG_LIB_PREINST=], [SWIG_LIB_PREINST=$ABS_SRCDIR/Lib]) -else - dnl When not building in source directory, we must always set SWIG_LIB, - dnl even under Windows, as things couldn't work without it. - SWIG_LIB_PREINST=$ABS_SRCDIR/Lib -fi +SWIG_LIB_PREINST=$ABS_SRCDIR/Lib AC_SUBST(SWIG_LIB_PREINST) dnl For testing purposes, clear SWIG_LIB when building SWIG in the source diff --git a/preinst-swig.in b/preinst-swig.in index e77db7858..4cead1d88 100755 --- a/preinst-swig.in +++ b/preinst-swig.in @@ -1,4 +1,8 @@ #!/bin/sh + +# Convenience script for running SWIG before it is installed. +# Intended for ad-hoc usage and not by the test-suite or examples. + builddir=`dirname $0` SWIG_LIB=@SWIG_LIB_PREINST@ export SWIG_LIB -- cgit v1.2.1