./configure --without-CXX errroneously tried to use a C++ compiler named "no"

reported by Mark Hollomon
This commit is contained in:
Peter Eisentraut 2000-08-19 23:39:36 +00:00
parent 37168b8da4
commit 5cfbf3aba2
2 changed files with 377 additions and 371 deletions

727
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -663,22 +663,25 @@ AC_SUBST(ELF_SYS)
dnl dnl
dnl Optionally build C++ code (i.e., libpq++) dnl Optionally build C++ code (i.e., libpq++)
dnl 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++)], AC_ARG_WITH(CXX, [ --with-CXX build C++ modules (libpq++)],
[if test "x${withval+set}" = xset; then [if test x"$withval" != x"no"; then
AC_MSG_RESULT(yes) if test x"$withval" != x"yes" ; then
if test x"$withval" != xyes ; then
CXX=$withval CXX=$withval
fi 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_CXX
AC_PROG_CXXCPP AC_PROG_CXXCPP
PGAC_CLASS_STRING PGAC_CLASS_STRING
PGAC_CXX_NAMESPACE_STD PGAC_CXX_NAMESPACE_STD
else fi
AC_MSG_RESULT(no)
fi],
[AC_MSG_RESULT(no)])
AC_SUBST(with_CXX)
CPPFLAGS="$CPPFLAGS $INCLUDES" CPPFLAGS="$CPPFLAGS $INCLUDES"