2001-03-10 10:41:50 -05:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
#
|
2001-08-23 07:27:26 -04:00
|
|
|
# Create the libtool helper files
|
2001-03-10 10:41:50 -05:00
|
|
|
#
|
2001-08-23 07:27:26 -04:00
|
|
|
echo "Copying libtool helper files ..."
|
2001-07-24 15:54:20 -04:00
|
|
|
|
2001-03-10 10:41:50 -05:00
|
|
|
#
|
2001-08-23 07:27:26 -04:00
|
|
|
# find libtoolize, or glibtoolize on MacOS X
|
|
|
|
#
|
|
|
|
libtoolize=`conftools/PrintPath glibtoolize libtoolize`
|
|
|
|
if [ "x$libtoolize" = "x" ]; then
|
|
|
|
echo "libtoolize not found in path"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2001-03-10 10:41:50 -05:00
|
|
|
#
|
2001-08-23 07:27:26 -04:00
|
|
|
# --force to ensure that we replace with current files
|
|
|
|
# --copy to avoid symlinks; we want originals for the distro
|
|
|
|
# --automake to make it shut up about "things to do"
|
2001-03-10 10:41:50 -05:00
|
|
|
#
|
2001-11-08 23:07:43 -05:00
|
|
|
(cd conftools/; rm -f ltmain.sh ltconfig)
|
2001-08-23 07:27:26 -04:00
|
|
|
$libtoolize --force --copy --automake
|
|
|
|
|
|
|
|
ltpath=`dirname $libtoolize`
|
|
|
|
ltfile=`cd $ltpath/../share/aclocal ; pwd`/libtool.m4
|
|
|
|
cp $ltfile conftools/libtool.m4
|
|
|
|
|
|
|
|
### for a little while... remove stray aclocal.m4 files from
|
|
|
|
### developers' working copies. we no longer use it. (nothing else
|
|
|
|
### will remove it, and leaving it creates big problems)
|
|
|
|
rm -f aclocal.m4
|
2001-03-10 10:41:50 -05:00
|
|
|
|
|
|
|
#
|
2002-05-17 17:38:44 -04:00
|
|
|
# Generate the autoconf header template (expat_config.h.in) and ./configure
|
2001-03-10 10:41:50 -05:00
|
|
|
#
|
2002-05-17 17:38:44 -04:00
|
|
|
echo "Creating expat_config.h.in ..."
|
2002-05-09 20:10:57 -04:00
|
|
|
${AUTOHEADER:-autoheader}
|
2001-03-10 10:41:50 -05:00
|
|
|
|
|
|
|
echo "Creating configure ..."
|
|
|
|
### do some work to toss config.cache?
|
2002-05-09 20:10:57 -04:00
|
|
|
${AUTOCONF:-autoconf}
|
2001-08-23 07:27:26 -04:00
|
|
|
|
2001-12-07 05:19:31 -05:00
|
|
|
# toss this; it gets created by autoconf on some systems
|
2002-05-09 20:10:57 -04:00
|
|
|
rm -rf autom4te*.cache
|
2001-12-07 05:19:31 -05:00
|
|
|
|
2001-08-23 07:27:26 -04:00
|
|
|
# exit with the right value, so any calling script can continue
|
|
|
|
exit 0
|