Salome HOME
modification of a Makefile.am : use of $(OMNIORB_IDL)
[tools/hxx2salome.git] / build_configure
1 #! /bin/sh
2
3 run() {
4     local logfile=$ORIG_DIR/build_configure.log
5     printf "%-50s" "$1 ... "
6     eval $1 > $logfile 2>&1
7     if test $? != 0 ; then
8         echo "[FAILED]"
9         echo "see file build_configure.log ..."
10         exit 1
11     fi
12     echo "[  OK  ]"
13 }
14
15 # --
16 ORIG_DIR=`pwd`
17
18 # --
19 # -- goto build_configure dir
20 CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
21 cd ${CONF_DIR}
22 # --
23 # -- list all Makefile.am in Makefile.am.list, except those in CppExamples (which has its own AM tree)
24 ./rfind . Makefile.am | grep -v CppExamples  > Makefile.am.list
25 # --
26 # -- configure.in construction
27 cp configure.in.base configure.in
28 chmod +w configure.in
29 echo "AC_OUTPUT([ \\" >> configure.in
30 sed -e 's,\.am, \\,' -e 's,\.\/,,' Makefile.am.list >> configure.in
31 echo  "])" >> configure.in
32
33 # --
34 run "libtoolize"
35 run "aclocal -I config_files"
36 run "autoconf"
37 run "automake --add-missing --copy"
38