Обсуждение: configure CXX bug

Поиск
Список
Период
Сортировка

configure CXX bug

От
"Mark Hollomon"
Дата:
configure seems to be having a problem with --without-CXX
When given, the C++ compiler is set to 'no'.

This was with CVS as of about 10:00 EDT

platform is linux i386 running Debian 'woody'.--- commandline ---./configure --enable-debug --enable-cassert
--enable-depend--without-python --without-perl --without-CXX--- OUTPUT ----creating cache ./config.cachechecking host
systemtype... i586-pc-linux-gnuchecking which template to use... linuxchecking whether to build with locale support...
nocheckingwhether to build with Cyrillic recode support... nochecking whether to build with multibyte character
support...nochecking for default port number... 5432checking for default soft limit on number of connections...
32checkingfor gcc... gccchecking whether the C compiler (gcc  ) works... yeschecking whether the C compiler (gcc  ) is
across-compiler... nochecking whether we are using GNU C... yeschecking whether gcc accepts -g... yesusing
CFLAGS=-O2checkingwhether the C compiler (gcc -O2 ) works... yeschecking whether the C compiler (gcc -O2 ) is a
cross-compiler...nochecking how to run the C preprocessor... gcc -Echecking whether gcc needs -traditional...
nocheckingsetting debug compiler flag... yeschecking setting USE_TCL... disabledchecking whether to build Perl
modules...nochecking whether to build Python modules... nochecking whether to build the ODBC driver... nochecking
settingASSERT CHECKING... enabledchecking whether to build C++ modules... yeschecking for c++... nochecking whether the
C++compiler (no  ) works... noconfigure: error: installation or configuration problem: C++ compiler cannot create
executables.------config.log --------This file contains any messages produced by compilers whilerunning configure, to
aiddebugging if configure makes a mistake.configure:619: checking host system typeconfigure:642: checking which
templateto useconfigure:787: checking whether to build with locale supportconfigure:809: checking whether to build with
Cyrillicrecode supportconfigure:832: checking whether to build with multibyte character supportconfigure:872: checking
fordefault port numberconfigure:901: checking for default soft limit on number of connectionsconfigure:939: checking
forgccconfigure:1052: checking whether the C compiler (gcc  ) worksconfigure:1068: gcc -o conftest    conftest.c
1>&5configure:1094:checking whether the C compiler (gcc  ) is a cross-compilerconfigure:1099: checking whether we are
usingGNU Cconfigure:1108: gcc -E conftest.cconfigure:1127: checking whether gcc accepts -gconfigure:1163: checking
whetherthe C compiler (gcc -O2 ) worksconfigure:1179: gcc -o conftest -O2   conftest.c  1>&5configure:1205: checking
whetherthe C compiler (gcc -O2 ) is a cross-compilerconfigure:1210: checking how to run the C
preprocessorconfigure:1231:gcc -E  conftest.c >/dev/null 2>conftest.outconfigure:1291: checking whether gcc needs
-traditionalconfigure:1374:checking setting debug compiler flagconfigure:1429: checking setting USE_TCLconfigure:1482:
checkingwhether to build Perl modulesconfigure:1499: checking whether to build Python modulesconfigure:1759: checking
whetherto build the ODBC driverconfigure:1795: checking setting ASSERT CHECKINGconfigure:1843: checking whether to
buildC++ modulesconfigure:1857: checking for c++configure:1889: checking whether the C++ compiler (no  )
worksconfigure:1905:no -o conftest    conftest.C  1>&5./configure: no: command not foundconfigure: failed program
was:#line1900 "configure"#include "confdefs.h"int main(){return(0);}
 

-- 

Mark Hollomon
mhh@nortelnetworks.com


Re: configure CXX bug

От
Tom Lane
Дата:
"Mark Hollomon" <mhh@nortelnetworks.com> writes:
> configure seems to be having a problem with --without-CXX
> When given, the C++ compiler is set to 'no'.

> This was with CVS as of about 10:00 EDT

Peter E. has been hacking the configure stuff since 7.0.  The behavior
is now more consistent with GNU/autoconf standard practice, but not 100%
backwards compatible.  I think that --without-CXX is now the default,
and you need to say --with-CXX [=compiler] if you want the C++ code
built.
        regards, tom lane


Re: configure CXX bug

От
Peter Eisentraut
Дата:
Mark Hollomon writes:

> configure seems to be having a problem with --without-CXX
> When given, the C++ compiler is set to 'no'.

Fixed. Thanks.


-- 
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden