From 635d0d182efbbfa43f647a72cd47a600e29d58a8 Mon Sep 17 00:00:00 2001 From: Thien-Thi Nguyen Date: Sat, 26 Feb 2000 04:58:19 +0000 Subject: [PATCH] {Changes to enable non-local build} Add autoconf test for subdir Tools. Rewrite autoconf tests to use subshell. Don't run ltconfig from here; use Tools/configure for that. Add Tools to `AC_CONFIG_SUBDIRS' call. Create subdir Source if not present. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@266 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- configure.in | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/configure.in b/configure.in index ad4b76069..e790b7988 100644 --- a/configure.in +++ b/configure.in @@ -470,23 +470,26 @@ AC_SUBST(PERL5EXT) AC_SUBST(ROOT_DIR)ROOT_DIR=`pwd` -if test ! -r Source/DOH/configure; then - cd Source/DOH - autoconf - cd ../.. +# FIXME: Calling autoconf manually like this is wrong. --ttn, 2000/02/25 +if test ! -r $srcdir/Source/DOH/configure; then + (cd $srcdir/Source/DOH ; autoconf) fi -if test -d Source/SWILL/SWILL; then - if test ! -r Source/SWILL/configure; then - cd Source/SWILL - autoconf - cd ../.. +if test -d $srcdir/Source/SWILL/SWILL; then + if test ! -r $srcdir/Source/SWILL/configure; then + (cd $srcdir/Source/SWILL ; autoconf) fi fi -cd Tools; ./ltconfig --enable-dlopen ltmain.sh; cd .. +if test ! -r $srcdir/Tools/configure ; then + (cd $srcdir/Tools ; autoconf) +fi -AC_CONFIG_SUBDIRS(Source/SWILL Source/DOH) +AC_CONFIG_SUBDIRS(Source/SWILL Source/DOH Tools) + +# NOTE: The following ref to `Source' should NOT be prefixed w/ `$srcdir/'. +# We can remove it if `Source' ever has a generated file but not before. +test -d Source || mkdir Source AC_OUTPUT( Examples/Makefile