1#!/bin/sh 2 3# Correct working directory? 4if test ! -f configure.ac ; then 5 echo "*** Please invoke this script from directory containing configure.ac." 6 exit 1 7fi 8 9aclocal -I mk/autoconf 10autoheader 11 12# generate Jamconfig.in 13autoconf --trace=AC_SUBST \ 14 | sed -e 's/configure.ac:[0-9]*:AC_SUBST:\([^:]*\).*/\1 ?= "@\1@" ;/g' \ 15 > Jamconfig.in~ 16cat Jamconfig.in~ | sed -e 's/.*BACKSLASH.*//' > Jamconfig.in 17rm Jamconfig.in~ 18echo 'INSTALL ?= "@INSTALL@" ;' >> Jamconfig.in 19echo 'JAMCONFIG_READ = yes ;' >> Jamconfig.in 20 21autoconf 22 23