Whamcloud - gitweb
LU-2989 build: some make targets are broken
[fs/lustre-release.git] / autogen.sh
index b0706b4..5bd10be 100644 (file)
@@ -4,11 +4,11 @@
 
 # install Lustre Git commit hooks by default - LU-2083
 for HOOK in commit-msg prepare-commit-msg; do
-       [ -e .git/hooks/$HOOK ] || ln -sf ../build/$HOOK .git/hooks/
+       [ -e .git/hooks/$HOOK ] || ln -sf ../../build/$HOOK .git/hooks/
 done
 
 echo "Checking for a complete tree..."
-REQUIRED_DIRS="build libcfs lnet lustre"
+REQUIRED_DIRS="libcfs lnet lustre"
 OPTIONAL_DIRS="snmp portals"
 CONFIGURE_DIRS="libsysio lustre-iokit ldiskfs"
 
@@ -43,7 +43,7 @@ run_cmd()
        echo
 }
 
-run_cmd "aclocal $ACLOCAL_FLAGS"
+run_cmd "aclocal -I $PWD/config $ACLOCAL_FLAGS"
 run_cmd "autoheader"
 run_cmd "automake -a -c"
 run_cmd autoconf