Salome HOME
Use m4 macros from KERNEL
[samples/dsccode.git] / autogen.sh
index e4226ae6c23ad60812a3fcb958211522fb6acfa4..52468bc5d293dc212c4de2e2640e99b2caf4a5f1 100755 (executable)
@@ -3,9 +3,17 @@
 rm -rf autom4te.cache
 rm -f aclocal.m4 adm_local/ltmain.sh
 
+########################################################################
+# Test if the KERNEL_ROOT_DIR is set correctly
+
+if test ! -d "${KERNEL_ROOT_DIR}"; then
+    echo "failed : KERNEL_ROOT_DIR variable is not correct !"
+    exit 1
+fi
+
 echo "Running aclocal..."    ; 
-aclocal --force -I adm_local || exit 1
-echo "Running autoheader..." ; autoheader --force -I adm_local            || exit 1
+aclocal --force -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files || exit 1
+echo "Running autoheader..." ; autoheader --force                  || exit 1
 echo "Running autoconf..."   ; autoconf --force                    || exit 1
 echo "Running libtoolize..." ; libtoolize --copy --force           || exit 1
 echo "Running automake..."   ; automake --add-missing --copy --gnu || exit 1