mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-29 22:49:41 +03:00 
			
		
		
		
	./configure --without-CXX errroneously tried to use a C++ compiler named "no"
reported by Mark Hollomon
This commit is contained in:
		
							
								
								
									
										21
									
								
								configure.in
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								configure.in
									
									
									
									
									
								
							| @@ -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" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user