autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More exit() troubles


From: Akim Demaille
Subject: Re: More exit() troubles
Date: 18 Jan 2001 15:13:02 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Crater Lake)

>>>>> "Alexandre" == Alexandre Oliva <address@hidden> writes:

Alexandre> On Jan 18, 2001, "Lars J. Aas" <address@hidden> wrote:
>> I've attached a config.log that shows more problems with exit().

Alexandre> We should probably move the '' case first.  This will
Alexandre> probably work with VC++, and will be fine for most existing
Alexandre> C++ compilers.

Of course!!!  Great idea!!!

Lars, does it work as expected?  It works like a charm with g++:

| /tmp % cat configure.ac                                          
| AC_INIT                                                          
| AC_LANG_COMPILER                                                 
| AC_OUTPUT                                                        
| /tmp % ace                                                       
| /tmp % ~duret_g/usr/bin/g++ --version                            
| 2.97                                                             
| /tmp % ./configure CC=~duret_g/usr/bin/g++                       
| checking for gcc... /home/lrde/stud/duret_g/usr/bin/g++
| checking whether the C compiler works... yes
| checking whether we are cross compiling... no
| checking whether we are using the GNU C compiler... yes
| checking for object suffix... o
| checking for executable suffix... 
| checking whether /home/lrde/stud/duret_g/usr/bin/g++ accepts -g... yes
| configure: creating ./config.status
| /tmp % grep exit config.log                                     
| configure:1463: `exit' undeclared (first use this function)
| exit (42);
| extern "C" void std::exit (int) throw (); using std::exit;
| configure: exit 0

it has chosen the full one, and with 2.95.3:

| /tmp % ./configure CC=g++
| checking for gcc... g++
| checking whether the C compiler works... yes
| checking whether we are cross compiling... no
| checking whether we are using the GNU C compiler... yes
| checking for object suffix... o
| checking for executable suffix... 
| checking whether g++ accepts -g... yes
| configure: creating ./config.status
| /tmp % grep exit config.log
| configure: exit 0

it chose the empty one.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]