Index: configure ================================================================== --- configure +++ configure @@ -1006,10 +1006,11 @@ --enable-static=PKGS build static libraries default=yes --enable-fast-install=PKGS optimize for fast installation default=yes --disable-libtool-lock avoid locking (might break parallel builds) --enable-utf8 Use UTF-8 encodings --enable-incore-db Support incore database + --enable-releasemode Support libtool link to release mode --enable-tempdb-in-ram Use an in-ram database for temporary tables Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) @@ -1432,11 +1433,11 @@ # The following RCS revision string applies to configure.in -# $Revision: 1.17 $ +# $Revision: 1.18 $ ######### # Programs needed # # Check whether --enable-shared or --disable-shared was given. @@ -8035,15 +8036,15 @@ ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -# if test "$cross_compiling" = "yes"; then -# { { echo "$as_me:$LINENO: error: unable to find a compiler for building build tools" >&5 -#echo "$as_me: error: unable to find a compiler for building build tools" >&2;} -# { (exit 1); exit 1; }; } -# fi + if test "$cross_compiling" = "yes"; then + { { echo "$as_me:$LINENO: error: unable to find a compiler for building build tools" >&5 +echo "$as_me: error: unable to find a compiler for building build tools" >&2;} + { (exit 1); exit 1; }; } + fi BUILD_CC=$CC default_build_cflags=$CFLAGS else BUILD_CC=$config_BUILD_CC echo "$as_me:$LINENO: checking host compiler" >&5 @@ -8264,10 +8265,31 @@ INMEMORYDB=1 echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 fi +########## +# Do we want to support release +# +# Check whether --enable-releasemode or --disable-releasemode was given. +if test "${enable_releasemode+set}" = set; then + enableval="$enable_releasemode" + +else + enable_releasemode=no +fi; +echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5 +echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6 +if test "$enable_releasemode" = "no"; then + ALLOWRELEASE="" + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +else + ALLOWRELEASE="-release `cat VERSION`" + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +fi ########## # Do we want temporary databases in memory # # Check whether --enable-tempdb-in-ram or --disable-tempdb-in-ram was given. @@ -8799,15 +8821,15 @@ as_ac_File=`echo "ac_cv_file_$dir/include/tcl.h" | $as_tr_sh` echo "$as_me:$LINENO: checking for $dir/include/tcl.h" >&5 echo $ECHO_N "checking for $dir/include/tcl.h... $ECHO_C" >&6 if eval "test \"\${$as_ac_File+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 -#else -# test "$cross_compiling" = yes && -# { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 -#echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} -# { (exit 1); exit 1; }; } +else + test "$cross_compiling" = yes && + { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 +echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} + { (exit 1); exit 1; }; } if test -r "$dir/include/tcl.h"; then eval "$as_ac_File=yes" else eval "$as_ac_File=no" fi @@ -9168,15 +9190,15 @@ as_ac_File=`echo "ac_cv_file_$dir/include/readline.h" | $as_tr_sh` echo "$as_me:$LINENO: checking for $dir/include/readline.h" >&5 echo $ECHO_N "checking for $dir/include/readline.h... $ECHO_C" >&6 if eval "test \"\${$as_ac_File+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 -#else -# test "$cross_compiling" = yes && -# { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 -#echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} -# { (exit 1); exit 1; }; } +else + test "$cross_compiling" = yes && + { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 +echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} + { (exit 1); exit 1; }; } if test -r "$dir/include/readline.h"; then eval "$as_ac_File=yes" else eval "$as_ac_File=no" fi @@ -9194,15 +9216,15 @@ as_ac_File=`echo "ac_cv_file_$dir/include/readline/readline.h" | $as_tr_sh` echo "$as_me:$LINENO: checking for $dir/include/readline/readline.h" >&5 echo $ECHO_N "checking for $dir/include/readline/readline.h... $ECHO_C" >&6 if eval "test \"\${$as_ac_File+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 -#else -# test "$cross_compiling" = yes && -# { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 -#echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} -# { (exit 1); exit 1; }; } +else + test "$cross_compiling" = yes && + { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 +echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} + { (exit 1); exit 1; }; } if test -r "$dir/include/readline/readline.h"; then eval "$as_ac_File=yes" else eval "$as_ac_File=no" fi @@ -9988,10 +10010,11 @@ s,@TARGET_LFLAGS@,$TARGET_LFLAGS,;t t s,@TARGET_RANLIB@,$TARGET_RANLIB,;t t s,@TARGET_AR@,$TARGET_AR,;t t s,@ENCODING@,$ENCODING,;t t s,@ALLOWATTACHMEM@,$ALLOWATTACHMEM,;t t +s,@ALLOWRELEASE@,$ALLOWRELEASE,;t t s,@INMEMORYDB@,$INMEMORYDB,;t t s,@TEMP_STORE@,$TEMP_STORE,;t t s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t s,@OS_UNIX@,$OS_UNIX,;t t s,@OS_WIN@,$OS_WIN,;t t