+1999-01-05 Thomas Tanner <tanner@gmx.de>
+
+ * configure.in: do not configure libltdl by default
+ * Makefile.am: do not build libltdl by default
+ * libltdl/Makefile.am: ltdls.lo depends on libtool
+ * tests/Makefile.am: before starting the tests
+ make sure that libtool was build
+ * tests/mdemo-conf.test: configure libltdl
+ * tests/mdemo-make.test: build libltdl
+
1999-01-05 Alexandre Oliva <oliva@dcc.unicamp.br>
* ltmain.in (SP2NL, NL2SP): Don't delete empty lines, as this
## Process Makefile.am with automake to create Makefile.in. -*-Makefile-*-
## Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
AUTOMAKE_OPTIONS = gnits
-SUBDIRS = . doc tests libltdl
-DIST_SUBDIRS = $(SUBDIRS) demo mdemo
+SUBDIRS = . doc tests
+DIST_SUBDIRS = $(SUBDIRS) demo libltdl mdemo
# We need to export these variables when we run ltconfig.
CFLAGS = @CFLAGS@
# We use our own libtool.m4 for these.
ACINCLUDE_M4_LIST = \
$(srcdir)/acinclude.m4 \
- $(srcdir)/libltdl/acinclude.m4 \
$(srcdir)/demo/acinclude.m4 \
+ $(srcdir)/libltdl/acinclude.m4 \
$(srcdir)/mdemo/acinclude.m4
# All our rules should depend on these demo files.
dnl For the `lineno' script (which puts line numbers into `ltconfig').
AC_PROG_AWK
-AC_CONFIG_SUBDIRS(libltdl)
-
AC_OUTPUT([Makefile doc/Makefile tests/Makefile])
# Local Variables:
LTDL_VERSION = -version-info 0:1:0
-ltdls.lo: ltdl.c
+ltdls.lo: ltdl.c libtool
$(LTCOMPILE) -DUSE_DLPREOPEN -o $@ -c $<
lib_LTLIBRARIES = @LIBLIBS@
# 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
+ # win32 will think the script is a binary if it has
# a .exe suffix, so we strip it off here.
- case $output in
+ case $output in
*.exe) output=`echo $output|sed 's,.exe$,,'` ;;
esac
$rm $output
link.test link-2.test nomode.test \
quote.test sh.test suffix.test
+demo-conf.test: $(top_builddir)/libtool
+
+$(top_builddir)/libtool:
+ cd $(top_builddir) && $(MAKE) all
+
# Be sure to reexport important environment variables.
TESTS_ENVIRONMENT = CC="$(CC)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
LD="$(LD)" NM="$(NM)" RANLIB="$(RANLIB)" LN_S="$(LN_S)"
#! /bin/sh
-# mdemo-conf.test - try configuring the ../mdemo subdirectory
+# mdemo-conf.test - try configuring the ../libltdl and ../mdemo subdirectories
# Test script header.
need_prefix=yes
fi
. $srcdir/defs || exit 1
+# Maybe we have a VPATH build, in which case, create a new subdir.
+test -d ../libltdl || mkdir ../libltdl
+
+# Change to our build directory.
+cd ../libltdl || exit 1
+
+# Possibly clean up the distribution.
+if test -f Makefile; then
+ echo "= Running $make distclean in ../libltdl"
+ $make distclean
+fi
+rm -f config.cache
+
+# Configure libltdl.
+echo "= Configuring in ../libltdl (prefix=$prefix)"
+CONFIG_SITE=/dev/null ${CONFIG_SHELL-/bin/sh} $srcdir/../libltdl/configure --srcdir=$srcdir/../libltdl --prefix=$prefix || exit 1
+
# Maybe we have a VPATH build, in which case, create a new subdir.
test -d ../mdemo || mkdir ../mdemo
fi
. $srcdir/defs || exit 1
-# Check that things are built.
-if test -f ../libltdl/libltdl.la; then :
-else
- echo "You must built libltdl before $0" 1>&2
- exit 1
-fi
-
-if test -f ../mdemo/Makefile; then :
+if test -f ../libltdl/Makefile && test -f ../mdemo/Makefile; then :
else
echo "You must run mdemo-conf.test before running $0" 1>&2
exit 1
fi
+# Change to our build directory.
+cd ../libltdl || exit 1
+
+# Do the actual build.
+echo "Making in ../libltdl"
+$make || exit 1
+
# Change to our build directory.
cd ../mdemo || exit 1