13 ldns=$(dirname $(realpath $0))
16 # Run autotools before we drop LOCALBASE out of PATH
17 (cd $ldns && libtoolize --copy && autoheader && autoconf)
18 (cd $ldns/drill && aclocal && autoheader && autoconf)
20 # Ensure we use the correct toolchain and clean our environment
21 export CC=$(echo ".include <bsd.lib.mk>" | make -f /dev/stdin -VCC)
22 export CPP=$(echo ".include <bsd.lib.mk>" | make -f /dev/stdin -VCPP)
23 unset CFLAGS CPPFLAGS LDFLAGS LD_LIBRARY_PATH LIBS
24 export PATH=/bin:/sbin:/usr/bin:/usr/sbin
27 ./configure --prefix= --exec-prefix=/usr
30 ./configure --prefix= --exec-prefix=/usr