Build for Ubuntu precise, no build for maverick
[yazproxy-moved-to-github.git] / buildconf.sh
index 1850bae..d7fd646 100755 (executable)
@@ -6,6 +6,7 @@ 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
@@ -71,7 +72,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