summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2000-08-19 23:39:36 +0000
committerPeter Eisentraut <peter_e@gmx.net>2000-08-19 23:39:36 +0000
commit5cfbf3aba20d809fc99f046405b83fd59f089943 (patch)
tree207c7273b0cded776d41c90190b92f8a48317b56 /configure.in
parent37168b8da43d9a6f7471cf757119ece6c96fb2b9 (diff)
downloadpostgresql-5cfbf3aba20d809fc99f046405b83fd59f089943.tar.gz
./configure --without-CXX errroneously tried to use a C++ compiler named "no"
reported by Mark Hollomon
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in21
1 files changed, 12 insertions, 9 deletions
diff --git a/configure.in b/configure.in
index 6078b525c0..9a5adb4e91 100644
--- a/configure.in
+++ b/configure.in
@@ -663,22 +663,25 @@ AC_SUBST(ELF_SYS)
dnl
dnl Optionally build C++ code (i.e., libpq++)
dnl
-AC_MSG_CHECKING(whether to build C++ modules)
+AC_MSG_CHECKING([whether to build C++ modules])
AC_ARG_WITH(CXX, [ --with-CXX build C++ modules (libpq++)],
-[if test "x${withval+set}" = xset; then
- AC_MSG_RESULT(yes)
- if test x"$withval" != xyes ; then
+[if test x"$withval" != x"no"; then
+ if test x"$withval" != x"yes" ; then
CXX=$withval
fi
+ with_CXX=yes
+fi],
+[with_CXX=no])
+
+AC_MSG_RESULT([$with_CXX])
+AC_SUBST(with_CXX)
+
+if test $with_CXX = yes; then
AC_PROG_CXX
AC_PROG_CXXCPP
PGAC_CLASS_STRING
PGAC_CXX_NAMESPACE_STD
-else
- AC_MSG_RESULT(no)
-fi],
-[AC_MSG_RESULT(no)])
-AC_SUBST(with_CXX)
+fi
CPPFLAGS="$CPPFLAGS $INCLUDES"