Commit e8072599 authored by Per Cederqvist's avatar Per Cederqvist

Adjusted to autoconf 2.52: AC_INIT now takes package name and version

as arguments.  Use AC_CONFIG_SRCDIR.  Use AC_HELP_STRING to format
help strings.  Use CMOD_CHECK_CC_OPT instead of
CMOD_COMPILER_CC_ACCEPTS.  Use AC_CONFIG_FILES.
parent ac7a2ec9
dnl $Id: configure.in,v 1.73 2000/09/06 19:54:26 ceder Exp $
dnl $Id: configure.in,v 1.74 2001/09/23 16:20:31 ceder Exp $
dnl Configuration for LysKOM
dnl Copyright (C) 1993-2000 Lysator Academic Computer Association.
dnl
......@@ -18,56 +18,58 @@ dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
dnl
dnl Please mail bug reports to bug-lyskom@lysator.liu.se.
dnl
AC_REVISION($Revision: 1.73 $)
AC_INIT(src/server/lyskomd.h)
AC_REVISION($Revision: 1.74 $)
AC_INIT([lyskom-server], [2.0.4])
AC_CONFIG_SRCDIR([src/server/lyskomd.h])
AM_CONFIG_HEADER(config.h)
AC_CONFIG_AUX_DIR(scripts)
AM_INIT_AUTOMAKE(lyskom-server, 2.0.4)
AM_INIT_AUTOMAKE([lyskom-server], [2.0.4])
AC_ARG_WITH([debug-calls],
[ --with-debug-calls compile debug protocol requests],
AC_HELP_STRING([--with-debug-calls],
[compile debug protocol requests]),
[use_debug_calls=$withval],
[use_debug_calls=no])
AC_ARG_WITH([efence],
[ --with-efence link with ElectricFence],
AC_HELP_STRING([--with-efence], [link with ElectricFence]),
[use_efence=$withval],
[use_efence=no])
AC_ARG_WITH([insure++],
[ --with-insure++ compile with ParaSoft Insure++],
AC_HELP_STRING([--with-insure++], [compile with ParaSoft Insure++]),
[use_insure=$withval],
[use_insure=no])
AC_ARG_WITH([checker],
[ --with-checker compile with Gnu Checker],
AC_HELP_STRING([--with-checker], [compile with Gnu Checker]),
[use_checker=$withval],
[use_checker=no])
AC_ARG_WITH([purify],
[ --with-purify link with Purify],
AC_HELP_STRING([--with-purify], [link with Purify]),
[use_purify=$withval],
[use_purify=no])
AC_ARG_WITH([gcov],
[ --with-gcov instrument for gcov (requires gcc)],
AC_HELP_STRING([--with-gcov], [instrument for gcov (requires gcc)]),
[use_gcov=$withval],
[use_gcov=no])
AC_ARG_WITH([traced-allocations],
[ --with-traced-allocations trace allocations ]dnl
[(see src/server/ram-smalloc.c)],
AC_HELP_STRING([--with-traced-allocations],
[trace allocations (see src/server/ram-smalloc.c)]),
[use_traced_allocations=$withval],
[use_traced_allocations=no])
AC_ARG_WITH([optimization],
[ --with-optimization select level of optimization],
AC_HELP_STRING([--with-optimization], [select level of optimization]),
[opt_level=$withval],
[opt_level=""])
AC_ARG_WITH([language],
[ --with-language=sv select Swedish database ]dnl
[(default English)],
AC_HELP_STRING([--with-language=sv],
[select Swedish database (default English)]),
[language=$withval],
[language=en])
......@@ -92,24 +94,24 @@ AM_C_PROTOTYPES
dnl pre-c89-compilers.
[CFLAGS="$CFLAGS -Wall -W"]
dnl AC_DEFINE(_GNU_SOURCE)
CMOD_COMPILER_CC_ACCEPTS([-Wbad-function-cast])
CMOD_CHECK_CC_OPT([-Wbad-function-cast], [bad_function_cast])
dnl
dnl This gives too many false warnings, but it may be proper
dnl to use this once in a while.
dnl CMOD_COMPILER_CC_ACCEPTS([-Wcast-qual])
dnl CMOD_CHECK_CC_OPT([-Wcast-qual], [cast_qual])
dnl
CMOD_COMPILER_CC_ACCEPTS([-Wcast-align])
CMOD_COMPILER_CC_ACCEPTS([-Wwrite-strings])
CMOD_COMPILER_CC_ACCEPTS([-Wstrict-prototypes])
CMOD_COMPILER_CC_ACCEPTS([-Wmissing-prototypes])
CMOD_COMPILER_CC_ACCEPTS([-Wmissing-declarations])
CMOD_CHECK_CC_OPT([-Wcast-align], [cast_align])
CMOD_CHECK_CC_OPT([-Wwrite-strings], [write_strings])
CMOD_CHECK_CC_OPT([-Wstrict-prototypes], [strict_prototypes])
CMOD_CHECK_CC_OPT([-Wmissing-prototypes], [missing_prototypes])
CMOD_CHECK_CC_OPT([-Wmissing-declarations], [missing_declarations])
dnl
dnl This gives too many false warnings, especially in dbck,
dnl but it may be proper to use it once in a while. dbck
dnl should be fixed so that we get rid of the warnings there.
dnl CMOD_COMPILER_CC_ACCEPTS([-Wnested-externs])
dnl CMOD_CHECK_CC_OPT([-Wnested-externs], [nested_externs])
dnl
CMOD_COMPILER_CC_ACCEPTS([-pipe]) [
CMOD_CHECK_CC_OPT([-pipe], [pipe]) [
fi]
AC_SUBST(PURIFY)
[if test "$use_purify" = "yes"
......@@ -138,8 +140,8 @@ then]
[fi]
[if test "$use_gcov" = "yes" -a -n "$GCC"; then]
CMOD_COMPILER_CC_ACCEPTS([-ftest-coverage])
CMOD_COMPILER_CC_ACCEPTS([-fprofile-arcs])
CMOD_CHECK_CC_OPT([-ftest-coverage], [test_coverage])
CMOD_CHECK_CC_OPT([-fprofile-arcs], [profile_arcs])
AC_DEFINE(AVOID_ABORTS)
[fi]
......@@ -301,7 +303,7 @@ then]
[fi]
AC_CONFIG_SUBDIRS(src/libraries/libisc-new)
AC_OUTPUT(Makefile
AC_CONFIG_FILES([Makefile
db-crypt/Makefile
db-crypt/db/Makefile
doc/Makefile
......@@ -321,7 +323,8 @@ src/server/Makefile
src/server/testsuite/Makefile
src/server/testsuite/config/Makefile
src/server/testsuite/lyskomd.0/Makefile
run-support/Makefile,
[echo
run-support/Makefile])
AC_CONFIG_COMMANDS([default],[[echo
echo " Selected language: $language"
echo], language=$language)
echo]],[[language=$language]])
AC_OUTPUT
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment