code reorg
[csql.git] / buildmmdb.ksh
blobc318b2e5b3418aba94a0f4b48cc7372a3adc9917
1 if [ -z "$JDK_HOME" ]
2 then
3 echo "Please set JDK_HOME"
4 exit 1
5 fi
6 cp src/sql/Makefile.am.mmdb src/sql/Makefile.am
7 cp src/tools/Makefile.am.mmdb src/tools/Makefile.am
8 cp src/odbc/Makefile.am.mmdb src/odbc/Makefile.am
9 cp src/jdbc/Makefile.am.mmdb src/jdbc/Makefile.am
10 cp src/Makefile.am.mmdb src/Makefile.am
12 make -f Makefile.cvs
14 #./configure --prefix=`pwd`/install CXXFLAGS="-g -DMMDB -I$JDK_HOME/include -I$JDK_HOME/include/linux -Wno-write-strings"
15 ./configure --prefix=`pwd`/install CXXFLAGS="-g -DMMDB -DEMBED -I$JDK_HOME/include -I$JDK_HOME/include/linux -Wno-write-strings"
16 libtoolavailable=`which libtool`
17 if [ -z "$libtoolavailable" ]
18 then
19 echo "libtool not available. Build may fail"
20 else
21 mv libtool libtool.bk
22 ln -s $libtoolavailable libtool
25 make
26 make install
27 ./csqlinstallmmdb.ksh