aclocal=aclocal
autoconf=autoconf
libtoolize=libtoolize
+autoheader=autoheader
+test -d autom4te.cache && rm -r autom4te.cache
test -d config || mkdir config
if [ -d .git ]; then
git submodule init
aclocal="aclocal19 -I /usr/local/share/aclocal"
autoconf=autoconf259
libtoolize=libtoolize15
+ autoheader=autoheader259
fi
if [ "`uname -s`" = Darwin ]; then
set -x
$aclocal -I m4
+if grep AC_CONFIG_HEADERS configure.ac >/dev/null; then
+ $autoheader
+fi
$libtoolize --automake --force
$automake --add-missing
$autoconf
if $enable_configure; then
if [ -n "$sh_cflags" ]; then
- CFLAGS="$sh_cflags" CXXFLAGS="$sh_cxxflags" ./configure --disable-shared --enable-static $*
+ CFLAGS="$sh_cflags" CXXFLAGS="$sh_cxxflags" ./configure \
+ --disable-shared --enable-static --with-pic $*
else
./configure $*
fi