$NetBSD: patch-ab,v 1.2 2002/10/19 03:51:03 jlam Exp $ --- configure.in.orig Mon Sep 30 23:34:28 2002 +++ configure.in @@ -150,6 +150,15 @@ PGAC_ARG_REQ(with, libs, [ --with- # +# Readline support +# +AC_MSG_CHECKING([whether to build with readline support]) +PGAC_ARG_BOOL(enable, readline, yes, + [ --disable-readline disable readline support]) +AC_MSG_RESULT([$enable_readline]) + + +# # Locale (--enable-locale) # AC_MSG_CHECKING([whether to build with locale support]) @@ -398,6 +407,18 @@ PGAC_ARG_BOOL(with, python, no, [ --wit AC_MSG_RESULT([$with_python]) AC_SUBST(with_python) +# If python is enabled (above), then optionally byte-compile the modules. +AC_MSG_CHECKING([whether to byte-compile Python modules]) +if test "$with_python" = yes; then + PGAC_ARG_BOOL(with, python_compile, no, + [ --with-python-compile byte-compile modules if Python is enabled]) +else + with_python_compile=no +fi +AC_MSG_RESULT([$with_python_compile]) +AC_SUBST([with_python_compile]) + + # # Optionally build the Java/JDBC tools # @@ -682,8 +703,10 @@ fi ## Libraries ## +if test "$enable_readline" = yes; then PGAC_CHECK_READLINE AC_SEARCH_LIBS(using_history, history, [AC_DEFINE(HAVE_HISTORY_FUNCTIONS)]) +fi if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha" then