This repository has been archived on 2025-02-12. You can view files and clone it, but cannot push or open issues or pull requests.
MQServer/configure.in
2005-06-21 13:01:17 +00:00

125 lines
3.9 KiB
Text

dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/main.c)
AC_CONFIG_HEADER(Include/config.h)
PACKAGE=MQServer
MAJOR=0
MINOR=0
REV=1
AC_DEFINE_UNQUOTED(MAJOR, $MAJOR, [Major MQServer Version])
AC_DEFINE_UNQUOTED(MINOR, $MINOR, [Minor MQServer Version])
AC_DEFINE_UNQUOTED(REV, $REV, [MQServer Revision])
VERSION=$MAJOR.$MINOR.$REV
AC_DEFINE_UNQUOTED(MQSERVER_PACKAGE_VERSION, "$VERSION", [MQServer Version])
AC_DEFINE_UNQUOTED(CONFUSE_VERSION, "2.5", [Confuse Version])
AM_INIT_AUTOMAKE("MQServer", "0.0.1")
AM_MAINTAINER_MODE
AC_PROG_LIBTOOL
AC_PROG_CC
AC_PROG_INSTALL
AM_PROG_LEX
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION(0.14.1)
AM_LC_MESSAGES
wi_ARG_DISABLE_CCDV
wi_PROG_CCDV
dnl Checks for libraries.
dnl Replace `main' with a function in -ldl:
AC_CHECK_LIB(dl, dlopen)
AC_CHECK_FUNC(backtrace,
[AC_DEFINE(HAVE_BACKTRACE, 1, 'backtrace function available')
LIBS="-g $LIBS"]
)
AC_CACHE_SAVE
dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([sys/time.h unistd.h limits.h stdlib.h string.h unistd.h sys/select.h stdarg.h ])
AC_CACHE_SAVE
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_STRUCT_TM
AC_CACHE_SAVE
dnl Checks for library functions.
AC_FUNC_FNMATCH
AC_TYPE_SIGNAL
AC_FUNC_STRFTIME
AC_CHECK_FUNCS([socket bcopy memmove strerror strlcpy strlcat strnlen strcasecmp strdup strndup])
dnl check if we are running with Debug....
AC_MSG_CHECKING(Whether to Enable Debuging...)
AC_ARG_ENABLE(debug,
[ --enable-debug - Enable Debuging],
[ case "$enableval" in
yes)
AC_DEFINE(DEBUG, 1, 'Enable Debugging')
CFLAGS="$CFLAGS -ggdb -Wall"
AC_MSG_RESULT(yes - Watch your Log Files)
;;
*)
CFLAGS="$CFLAGS -DNDEBUG"
AC_MSG_RESULT(no)
;;
esac],
CFLAGS="$CFLAGS -DNDEBUG"
AC_MSG_RESULT(no)
)
AC_MSG_CHECKING(To Enable AutoTools Debug Mode?)
AC_ARG_ENABLE(autodebug, [ --enable-autodebug - Enable AutoTools Debug],
[ case "$enableval" in
yes)
AC_MSG_RESULT(yes)
;;
*)
AC_MSG_RESULT(no)
AX_MAINTAINER_MODE_AUTO_SILENT
;;
esac],
AC_MSG_RESULT(no)
AX_MAINTAINER_MODE_AUTO_SILENT
)
CFLAGS="$CFLAGS -D_REENTRANT -fbounds-checking"
AC_CACHE_SAVE
AC_XDS
NEO_SUBDIR_CONFIG(libevent, [--disable-shared --enable-static])
dnl NEO_SUBDIR_CONFIG(sqlite, [--enable-static --disable-shared --enable-tempdb-in-ram --enable-incore-db])
AC_OUTPUT(Makefile src/Makefile lib/Makefile lib/src/Makefile lib/include/xds.h
clients/Makefile confuse/Makefile adns/config.h)
echo "(*----------------------------------------------------------*)"
echo "(| Important Instructions |)"
echo "(*----------------------------------------------------------*)"
echo "(| if you just typed ./configure and didnt read the README |)"
echo "(| NeoStats may not be configured correctly. |)"
echo "(| We suggest you at least type ./configure --help to see |)"
echo "(| available options and read the README file for further |)"
echo "(| information on that option. |)"
echo "(*----------------------------------------------------------*)"
echo "(| For Support please visit: |)"
echo "(| IRC: /server irc.irc-chat.net |)"
echo "(| #neostats channel |)"
echo "(| WWW: http://www.neostats.net/boards/ |)"
echo "(*----------------------------------------------------------*)"
echo "(| Now that configure is complete, type 'make' to compile |)"
echo "(| the program. When the compile has completed, type |)"
echo "(| 'make install' to install the program. |)"
echo "(| For BSD you might need to use 'gmake' and 'gmake install'|)"
echo "(*----------------------------------------------------------*)"
#if test "$shush" != yes; then
# read -p "Press Enter Key to Read the Release Notes"
# clear
# more ./RELNOTES
#fi