]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
Adaptation du buid_configure pour le module MED de l'architecture découpée de SALOME.
authorjroy <jroy>
Wed, 9 Apr 2003 14:17:13 +0000 (14:17 +0000)
committerjroy <jroy>
Wed, 9 Apr 2003 14:17:13 +0000 (14:17 +0000)
build_configure

index 259f89c54e148ec21766c3ff9facb17d5d904ae0..835af30d2e64850453b5761b7a9552071b50d97e 100755 (executable)
 ORIG_DIR=`pwd`
 CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
 
+########################################################################
+# Test if the KERNEL_ROOT_DIR is set
+
+if test ! -d "${KERNEL_ROOT_DIR}"; then
+    echo "failed : KERNEL_ROOT_DIR variable is not correct !"
+    exit
+fi
+
 ########################################################################
 # find_in - utility function
 #
@@ -99,20 +107,20 @@ echo "AC_OUTPUT([ \\" >> configure.in_tmp1
 # put them "manually"
 #
 
-echo " ./adm/unix/SALOMEconfig.h \\" >> configure.in_tmp1
-echo " ./adm/unix/F77config.h \\" >> configure.in_tmp1
-echo " ./adm/unix/sstream \\" >> configure.in_tmp1
-echo " ./adm/unix/depend \\" >> configure.in_tmp1
-echo " ./adm/unix/make_omniorb \\" >> configure.in_tmp1
-echo " ./adm/unix/envScript \\" >> configure.in_tmp1
-echo " ./adm/unix/make_commence \\" >> configure.in_tmp1
-echo " ./adm/unix/make_conclude \\" >> configure.in_tmp1
-echo " ./adm/unix/make_module \\" >> configure.in_tmp1
+echo " ${KERNEL_ROOT_DIR}/salome_adm/unix/SALOMEconfig.h \\" >> configure.in_tmp1
+echo " ${KERNEL_ROOT_DIR}/salome_adm/unix/F77config.h \\" >> configure.in_tmp1
+echo " ${KERNEL_ROOT_DIR}/salome_adm/unix/sstream \\" >> configure.in_tmp1
+echo " ${KERNEL_ROOT_DIR}/salome_adm/unix/depend \\" >> configure.in_tmp1
+echo " ${KERNEL_ROOT_DIR}/salome_adm/unix/make_omniorb \\" >> configure.in_tmp1
+echo " ${KERNEL_ROOT_DIR}/salome_adm/unix/envScript \\" >> configure.in_tmp1
+echo " ${KERNEL_ROOT_DIR}/salome_adm/unix/make_commence \\" >> configure.in_tmp1
+echo " ${KERNEL_ROOT_DIR}/salome_adm/unix/make_conclude \\" >> configure.in_tmp1
+echo " ${KERNEL_ROOT_DIR}/salome_adm/unix/make_module \\" >> configure.in_tmp1
 
 \rm -f configure.in_tmp2 configure.in_tmp3
 touch configure.in_tmp2
 find_in . configure.in_tmp2
-sed '/^...adm/d' configure.in_tmp2 >  configure.in_tmp3
+sed '/^.*salome_adm/d' configure.in_tmp2 >  configure.in_tmp3
 sed '/configure.in/d' configure.in_tmp3 >  configure.in_tmp2
 sed 's/.in / /' configure.in_tmp2 >> configure.in_tmp1
 
@@ -172,7 +180,7 @@ else
        echo -n "Creating 'configure' script ...  "
 fi
 
-aclocal --acdir=adm/unix/config_files
+aclocal --acdir=${KERNEL_ROOT_DIR}/salome_adm/unix/config_files
 if autoconf
 then
        echo "done"