X-Git-Url: http://git.indexdata.com/?p=yazproxy-moved-to-github.git;a=blobdiff_plain;f=buildconf.sh;h=fc07d69136aaf87e1add0077e851e9510cc9fb0d;hp=a889bdb99a2a7e61d8d85d40d4f6a77ca53fe117;hb=9aac213dd0deaf0c2dacb7e010735cf37e673f81;hpb=88dee2353b7e863fd69338cba68406ae36731068 diff --git a/buildconf.sh b/buildconf.sh index a889bdb..fc07d69 100755 --- a/buildconf.sh +++ b/buildconf.sh @@ -4,6 +4,7 @@ automake=automake aclocal=aclocal autoconf=autoconf libtoolize=libtoolize +autoheader=autoheader test -d config || mkdir config if [ -d .git ]; then @@ -17,6 +18,7 @@ if [ "`uname -s`" = FreeBSD ]; then aclocal="aclocal19 -I /usr/local/share/aclocal" autoconf=autoconf259 libtoolize=libtoolize15 + autoheader=autoheader259 fi if [ "`uname -s`" = Darwin ]; then @@ -35,6 +37,9 @@ fi set -x $aclocal -I m4 +if grep AC_CONFIG_HEADERS configure.ac >/dev/null; then + $autoheader +fi $libtoolize --automake --force $automake --add-missing $autoconf @@ -66,7 +71,8 @@ esac 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