2007-03-17 14:28:25 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
2008-08-25 17:51:38 +04:00
|
|
|
dump_config() {
|
|
|
|
cat > $1 <<EOF
|
|
|
|
#
|
|
|
|
# Do not edit this file. Edit configure.in and m4/*.m4 files
|
|
|
|
# and run './autogen.sh' again.
|
|
|
|
#
|
|
|
|
EOF
|
2007-03-17 14:28:25 +03:00
|
|
|
# a cool trict from autojam
|
|
|
|
autoconf --trace=AC_SUBST \
|
|
|
|
| sed -e 's/configure.in:[0-9]*:AC_SUBST:\([^:]*\).*/\1 ?= "@\1@" ;/g' \
|
|
|
|
| sed -e '/ac_*/d' -e '/ECHO_*/d' \
|
|
|
|
| sort -u \
|
2008-08-25 17:51:38 +04:00
|
|
|
>> $1
|
2007-03-17 14:28:25 +03:00
|
|
|
|
2008-08-25 17:51:38 +04:00
|
|
|
echo 'INSTALL_DIR ?= "@INSTALL_DIR@" ;' >> $1
|
|
|
|
}
|
|
|
|
|
|
|
|
if aclocal -I m4 && autoheader && autoconf; then
|
|
|
|
#dump_config "Jamconfig.in"
|
2009-01-26 16:41:28 +03:00
|
|
|
rm -f "config.h.in~"
|
2007-03-17 14:28:25 +03:00
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "Now run ./configure [OPTIONS]"
|
|
|
|
echo "or './configure --help' to see them"
|
|
|
|
else
|
|
|
|
echo ""
|
|
|
|
echo "We failed :(. There should be some output, right ?"
|
|
|
|
exit 1
|
|
|
|
fi
|