Hi,

The above line

  configure:25756: /bin/sh ./libtool gcc -c  -O2 -Wall -Wno-implicit
  -I/usr/local/contrib/include  conftest.c >&5
  gcc -c -O2 -Wall -Wno-implicit -I/usr/local/contrib/include conftest.c
  -DPIC -o .libs/conftest.o

looks for me (as a "configure"-layman) a little bit strange (gcc
twice?).

GCC is only invoked twice.  The first line is configure telling you
the command it is about run.  The second line is libtool telling you
exactly how it is about to run GCC.

For me there is no `-o .libs/conftest.o', even though I use the same
libtool invocation on my system.

Sorry, if I bother you but here I see a difference under AIX 5.1 to for e.g. my SuSE 9.3 system:

AIX 5.1 (SSL-ROOT=/usr/local/contrib):
======================================

configure:25742: checking for includes
configure:25756: /bin/sh ./libtool gcc -c  -O2 -Wall -Wno-implicit
  -I/usr/local/contrib/include  conftest.c >&5
 gcc -c -O2 -Wall -Wno-implicit -I/usr/local/contrib/include conftest.c -DPIC
 -o .libs/conftest.o
*** Warning: inferring the mode of operation is deprecated.
*** Future versions of Libtool will require --mode=MODE be specified.
configure:25762: $? = 0
configure:25766: test -z
          || test ! -s conftest.err
configure:25769: $? = 0
configure:25772: test -s conftest.o
configure:25775: $? = 1


SuSE 9.3 (SSL-ROOT=/usr):
=========================A

configure:25742: checking for includes
configure:25756: /bin/sh ./libtool gcc -c  -O2 -Wall -Wno-implicit
  -I/usr/include  conftest.c >&5
 gcc -c -O2 -Wall -Wno-implicit -I/usr/include conftest.c  -fPIC -DPIC
  -o .libs/conftest.o
 gcc -c -O2 -Wall -Wno-implicit -I/usr/include conftest.c
  -o conftest.o   >/dev/null 2>&1
*** Warning: inferring the mode of operation is deprecated.
*** Future versions of Libtool will require --mode=MODE be specified.
configure:25762: $? = 0
configure:25766: test -z
                         || test ! -s conftest.err
configure:25769: $? = 0
configure:25772: test -s conftest.o
configure:25775: $? = 0
configure:25778: result: found

That output is produces from the configure line 25756:

 if  { (eval echo "$as_me:$LINENO: \"$ac_compile\"")  >&5

The real compiling is done by the next line  25756:

 (eval $ac_compile) 2>conftest.er1

The content of $ac_compile seems to be (SuSE)

 /bin/sh ./libtool gcc -c -O2 -Wall -Wno-implicit -I/usr/include conftest.c >&5

but that produces under SuSE (Linux) obviously two gcc processes and two object files (.libs/conftest.o AND conftest.o) so that the objectfile existing test (searching only for conftest.o) is successful. But under AIX only one object file (.libs/conftest.o) is generated that the object file existing test doesn't find.

Greetings

Jens

--
Dr. Jens Schleusener            T-Systems Solutions for Research GmbH
Tel: +49 551 709-2493           Bunsenstr.10
Fax: +49 551 709-2169           D-37073 Goettingen
[EMAIL PROTECTED]  http://www.t-systems.com/

Reply via email to