Convert the -enable/-with options to use proper m4 macros and provide

-help messages

Suggested by: Tom I Helbekkmo <tih@Hamartun.Priv.NO>
This commit is contained in:
Marc G. Fournier 1998-02-28 20:05:09 +00:00
parent 8afae11406
commit 4a7447e032
2 changed files with 405 additions and 420 deletions

717
src/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -203,54 +203,56 @@ dnl file. We have a further option of using
dnl --disable-locale to explicitly disable it dnl --disable-locale to explicitly disable it
dnl --enable-locale to explicitly enable it dnl --enable-locale to explicitly enable it
dnl It defaults to disabled dnl It defaults to disabled
if test "$enable_locale" = "yes" -o "$enable_locale" = "no" AC_MSG_CHECKING(setting USE_LOCALE)
then AC_ARG_ENABLE(
USE_LOCALE=$enable_locale locale,
else [ --enable-locale enable locale support ],
USE_LOCALE=no AC_DEFINE(USE_LOCALE) AC_MSG_RESULT(enabled),
fi AC_MSG_RESULT(disabled)
export USE_LOCALE )
dnl We exclude cyrillic recode support unless we override it with dnl We exclude cyrillic recode support unless we override it with
dnl --enable-recode dnl --enable-recode
dnl --disable-recode to explicitly disable it dnl --disable-recode to explicitly disable it
dnl --enable-recode to explicitly enable it dnl --enable-recode to explicitly enable it
dnl It defaults to disabled dnl It defaults to disabled
if test "$enable_recode" = "yes" -o "$enable_recode" = "no" AC_MSG_CHECKING(setting CYR_RECODE)
then AC_ARG_ENABLE(
CYR_RECODE=$enable_recode recode,
else [ --enable-recode enable cyrillic recode support ],
CYR_RECODE=no AC_DEFINE(CYR_RECODE) AC_MSG_RESULT(enabled),
fi AC_MSG_RESULT(disabled)
export CYR_RECODE )
dnl We use the default value of 5432 for the DEF_PGPORT value. If dnl We use the default value of 5432 for the DEF_PGPORT value. If
dnl we over-ride it with --with-pgport=port then we bypass this piece dnl we over-ride it with --with-pgport=port then we bypass this piece
if test "X$with_pgport" != "X" AC_MSG_CHECKING(setting DEF_PGPORT)
then AC_ARG_WITH(
DEF_PGPORT=$with_pgport pgport,
else [ --with-pgport=<portnum> change default startup port ],
DEF_PGPORT=5432 AC_DEFINE_UNQUOTED(DEF_PGPORT, "${DEF_PGPORT}") AC_MSG_RESULT($with_pgport),
fi AC_DEFINE_UNQUOTED(DEF_PGPORT, "5432") AC_MSG_RESULT(5432)
export DEF_PGPORT )
dnl We exclude tcl support unless we override it with --with-tcl dnl We exclude tcl support unless we override it with --with-tcl
if test "X$with_tcl" = "Xyes" AC_MSG_CHECKING(setting USE_TCL)
then AC_ARG_WITH(
USE_TCL=true tcl,
else [ --with-tcl use tcl ],
USE_TCL= USE_TCL=true AC_MSG_RESULT(enabled),
fi USE_TCL=false AC_MSG_RESULT(disabled)
)
export USE_TCL export USE_TCL
USE_X=$USE_TCL USE_X=$USE_TCL
dnl We exclude perl support unless we override it with --with-perl dnl We exclude perl support unless we override it with --with-perl
if test "X$with_perl" = "Xyes" AC_MSG_CHECKING(setting USE_PERL)
then AC_ARG_WITH(
USE_PERL=true perl,
else [ --with-perl use perl ],
USE_PERL= USE_PERL=true AC_MSG_RESULT(enabled),
fi USE_PERL=false AC_MSG_RESULT(disabled)
)
export USE_PERL export USE_PERL
dnl Unless we specify the command line options dnl Unless we specify the command line options
@ -259,19 +261,13 @@ dnl --enable cassert to explicitly enable it
dnl If you do not explicitly do it, it defaults to disabled - we dnl If you do not explicitly do it, it defaults to disabled - we
dnl should make the default enabled for the development cycle dnl should make the default enabled for the development cycle
dnl We need some explanatory text here. dnl We need some explanatory text here.
echo "" AC_MSG_CHECKING(setting ASSERT CHECKING)
AC_ARG_ENABLE(
if test "$enable_cassert" = "no" cassert,
then [ --enable-cassert enable assertion checks (debugging) ],
echo "-ASSERT CHECKING disabled" AC_DEFINE(NO_ASSERT_CHECKING) AC_MSG_RESULT(enabled),
AC_DEFINE(NO_ASSERT_CHECKING) AC_MSG_RESULT(disabled)
elif test "$enable_cassert" = "yes" )
then
echo "-ASSERT CHECKING enabled"
else
echo "-ASSERT CHECKING disabled"
AC_DEFINE(NO_ASSERT_CHECKING)
fi
if test "X$with_compiler" != "X" if test "X$with_compiler" != "X"
then then
@ -523,26 +519,6 @@ AC_CHECK_FUNC(rint,
AC_DEFINE(HAVE_RINT), AC_DEFINE(HAVE_RINT),
AC_CHECK_LIB(m, rint, AC_DEFINE(HAVE_RINT))) AC_CHECK_LIB(m, rint, AC_DEFINE(HAVE_RINT)))
AC_MSG_CHECKING(setting USE_LOCALE)
if test "$USE_LOCALE" = "yes"
then
AC_MSG_RESULT(enabled)
AC_DEFINE(USE_LOCALE)
else
AC_MSG_RESULT(disabled)
fi
AC_MSG_CHECKING(setting CYR_RECODE)
if test "$CYR_RECODE" = "yes"
then
AC_MSG_RESULT(enabled)
AC_DEFINE(CYR_RECODE)
else
AC_MSG_RESULT(disabled)
fi
AC_MSG_CHECKING(setting DEF_PGPORT)
AC_DEFINE_UNQUOTED(DEF_PGPORT, "${DEF_PGPORT}")
AC_MSG_RESULT($DEF_PGPORT)
dnl Check for X libraries dnl Check for X libraries
if test "$USE_X" = true; then if test "$USE_X" = true; then