4 local logfile=$ORIG_DIR/build_configure.log
5 printf "%-50s" "$1 ... "
6 eval $1 > $logfile 2>&1
9 echo "see file build_configure.log ..."
18 ########################################################################
19 # Test if the KERNEL_ROOT_DIR and MEDCOUPLING_ROOT_DIR are set correctly
21 if test ! -d "${KERNEL_ROOT_DIR}"; then
22 echo "failed : KERNEL_ROOT_DIR variable is not correct !"
25 if test ! -d "${MEDCOUPLING_ROOT_DIR}"; then
26 echo "failed : MEDCOUPLING_ROOT_DIR variable is not correct !"
31 # -- goto build_configure dir
32 CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
35 # -- list all Makefile.am in Makefile.am.list
36 ./rfind . Makefile.am > Makefile.am.list
38 # -- configure.in construction
39 cp configure.in.base configure.in
41 echo "AC_OUTPUT([ \\" >> configure.in
42 sed -e 's,\.am, \\,' -e 's,\.\/,,' Makefile.am.list >> configure.in
43 echo "])" >> configure.in
47 run "aclocal -I adm/unix/config_files -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files -I ${MEDCOUPLING_ROOT_DIR}/adm_local/unix/config_files"
49 run "automake --add-missing --copy"