Whamcloud - gitweb
LU-16951 test: don't call echo in function call
[fs/lustre-release.git] / autogen.sh
old mode 100644 (file)
new mode 100755 (executable)
index 1fce0a4..e33c225
@@ -1,9 +1,23 @@
-#!/bin/sh
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0
 
-# 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/
-done
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# autogen.sh
+#
+# Run various autotools, thereby creating the configure
+# script and top-level make files
+#
 
-exec bash build/autogen.sh $@ 
+set -e
+pw="$PWD"
+for dir in libcfs lnet lustre snmp ; do
+       ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $pw/$dir/autoconf"
+done
 
+libtoolize -q
+aclocal -I $pw/config $ACLOCAL_FLAGS
+autoheader
+automake -a -c
+autoconf