]> err.no Git - varnish/commitdiff
Better workaround for FreeBSD autotools brokenness.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 5 Dec 2006 11:42:39 +0000 (11:42 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 5 Dec 2006 11:42:39 +0000 (11:42 +0000)
Pointy hat to: {ade,portsmgr}@freebsd.org

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1229 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/autogen.sh

index 3c2df78db09860f41a234acc2e3efc1aa1efa89d..7f1707c603c2a3c6f9c4aba2291866639e483b1f 100755 (executable)
@@ -6,6 +6,7 @@
 if [ -d /usr/local/gnu-autotools/bin ] ; then
        PATH=/usr/local/gnu-autotools/bin:${PATH}
        export PATH
+       FIX_BROKEN_FREEBSD_PORTS="-I /usr/local/share/aclocal"
 fi
 
 automake_version=$(automake --version | tr ' ' '\n' | egrep '^[0-9]\.[0-9a-z.-]+')
@@ -26,12 +27,7 @@ fi
 
 set -ex
 
-if [ "x`uname -s`" = "xFreeBSD" ] ; then
-       # Ask DES
-       aclocal -I /usr/local/share/aclocal
-else
-       aclocal 
-fi
+aclocal ${FIX_BROKEN_FREEBSD_PORTS}
 libtoolize --copy --force
 autoheader
 automake --add-missing --copy --foreign