reworked build files

This commit is contained in:
hyunghwan.chung
2016-12-31 15:20:52 +00:00
parent 2bf8b591cf
commit d85a49e1e1
9 changed files with 139 additions and 101 deletions

18
stix/configure vendored
View File

@ -827,6 +827,7 @@ with_ltdl_lib
enable_ltdl_install
enable_debug
enable_cxx
enable_static_module
'
ac_precious_vars='build_alias
host_alias
@ -1474,6 +1475,8 @@ Optional Features:
--enable-debug build the library in the debug mode (default. no)
--enable-cxx build the library for C++ if a C++ compiler is
available (default. yes)
--enable-static-module build modules statically into the main
library(default. no)
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@ -19885,13 +19888,24 @@ else
fi
if test "${enable_shared}" = "no" -a "${enable_static}" = "yes"
# Check whether --enable-static-module was given.
if test "${enable_static_module+set}" = set; then :
enableval=$enable_static_module; enable_static_module_is=$enableval
else
enable_static_module_is=no
fi
test "${enable_shared}" = "no" -a "${enable_static}" = "yes" && enable_static_module="yes"
if test "${enable_static_module}" = "yes"
then
$as_echo "#define STIX_ENABLE_STATIC_MODULE /**/" >>confdefs.h
fi
if test "${enable_shared}" = "no" -a "${enable_static}" = "yes"; then
if test "${enable_static_module}" = "yes"; then
ENABLE_STATIC_MODULE_TRUE=
ENABLE_STATIC_MODULE_FALSE='#'
else