mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 18:43:02 +01:00
Architecture and production type are now a command line switch to
configure. See 'configure --help' for details.
This commit is contained in:
parent
c38f10910c
commit
6fc63b24fc
51
configure.in
51
configure.in
@ -1,3 +1,5 @@
|
||||
# $Id: configure.in,v 1.26 2002-08-14 12:13:20 eku Exp $
|
||||
|
||||
AC_INIT(src)
|
||||
AC_CONFIG_AUX_DIR(src/make.new/config)
|
||||
AC_CACHE_VAL(ac_cv_prog_make_set, [AC_PROG_MAKE_SET])
|
||||
@ -5,6 +7,8 @@ AC_PREFIX_DEFAULT(/usr/local/firebird)
|
||||
|
||||
AC_CONFIG_HEADER(src/include/gen/autoconfig.h:src/make.new/config/config.h.in)
|
||||
|
||||
|
||||
|
||||
# possibly needed if we use install-sh program
|
||||
#AC_CONFIG_AUX_DIR(`pwd`)
|
||||
|
||||
@ -17,17 +21,31 @@ AC_PROG_LEX
|
||||
AC_PROG_LN_S
|
||||
AC_PROG_RANLIB
|
||||
AC_PROG_YACC
|
||||
|
||||
# You need to change this to get super/classic built. Main reason is for
|
||||
# the include of the pthread libraries, but there may be other dependancies.
|
||||
FIREBIRD_ARCH_TYPE=classic
|
||||
#FIREBIRD_ARCH_TYPE=super
|
||||
|
||||
|
||||
# Some controllable options
|
||||
AC_ARG_ENABLE(superserver,
|
||||
[ --enable-superserver build SuperServer architecture [default=no]],
|
||||
[case "$enableval" in
|
||||
yes) FIREBIRD_ARCH_TYPE=super;;
|
||||
no) FIREBIRD_ARCH_TYPE=classic;;
|
||||
*) AC_MSG_ERROR(bad value '${enableval}' for --enable-superserver);;
|
||||
esac])
|
||||
|
||||
AC_SUBST(FIREBIRD_ARCH_TYPE)
|
||||
|
||||
PROD_BUILD_FLG=
|
||||
#PROD_BUILD_FLG=Y
|
||||
AC_ARG_ENABLE(debug,
|
||||
[ --enable-debug build debug version [default=no]],
|
||||
[case "$enableval" in
|
||||
no) PROD_BUILD_FLG=;;
|
||||
yes) PROD_BUILD_FLG=Y;;
|
||||
*) AC_MSG_ERROR(bad value '${enableval}' for --enable-debug);;
|
||||
esac])
|
||||
|
||||
AC_SUBST(PROD_BUILD_FLG)
|
||||
|
||||
|
||||
# Check for system header files
|
||||
AC_CHECK_HEADERS(assert.h)
|
||||
AC_CHECK_HEADERS(ctype.h)
|
||||
AC_CHECK_HEADERS(errno.h)
|
||||
@ -349,3 +367,22 @@ gen/install/scripts/postuninstall.sh:src/install/${FIREBIRD_ARCH_TYPE}/postunins
|
||||
gen/install/install.sh:src/install/${FIREBIRD_ARCH_TYPE}/tarInstall.sh.in \
|
||||
src/install/misc/firebird.xinetd \
|
||||
)
|
||||
|
||||
# Print out the build configuration (the most interesting thing)
|
||||
echo
|
||||
echo
|
||||
echo The Firebird2 package has been configured with the following options:
|
||||
|
||||
case $FIREBIRD_ARCH_TYPE in
|
||||
super) echo "Architecture : SuperServer";;
|
||||
classic) echo "Architecture : ClassicServer";;
|
||||
esac
|
||||
|
||||
case $PROD_BUILD_FLG in
|
||||
Y) echo " Debug : enabled";;
|
||||
*) echo " Debug : disabled";;
|
||||
esac
|
||||
|
||||
echo
|
||||
|
||||
# EOF
|
Loading…
Reference in New Issue
Block a user