ldb: Fix the standalone ldb build.
[samba.git] / source4 / lib / ldb / autogen.sh
index 89053ad9f8ad58cdcaa80e0c3ce327bf7438896e..e4d367dc1e98bd15485ea5745e694ed8f94118d6 100755 (executable)
@@ -1,7 +1,15 @@
 #!/bin/sh
 
-autoheader || exit 1
-autoconf || exit 1
+rm -rf autom4te.cache
+rm -f configure config.h.in
+
+IPATHS="-I libreplace -I lib/replace -I ../libreplace -I ../replace -I ../../../lib/replace"
+IPATHS="$IPATHS -I ./external"
+
+autoheader $IPATHS || exit 1
+autoconf $IPATHS || exit 1
+
+rm -rf autom4te.cache
 
 echo "Now run ./configure and then make."
 exit 0