2013.03.09 21:47 "[Tiff] configuring without C++", by lazer100
I think there is a bug with the tiff-4.0.3 configure script,
because if I opt out of C++, the script still tries to configure C++,
eg on Ubuntu 8.10 if I run the following:
./configure --enable-cxx=no > configure_ubuntu_output.txt 2>&1
this outputs the following text, where I have omitted non relevant output:
...
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
...
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
....
Libtiff is now configured for i686-pc-linux-gnu
Installation directory: /usr/local
Documentation directory: ${prefix}/share/doc/tiff-4.0.3
C compiler: gcc -g -O2 -Wall -W
C++ compiler: g++
....
C++ support: no
the configure is clearly testing out g++, it shouldnt be doing this as I have quite deliberately opted out of C++
this causes a problem on another more obscure system, where I am using a cross compiler
where C++ isnt fully implemented, and the configure fails there.
but I have isolated the problem to Ubuntu as this is a more mainstream system,
I dont know if the configure can be debugged to completely skip anything remotely related to C++, as I quite specifically only want the C side of libtiff
with the above output, the only C++ output which is correct is:
C++ support: no
the output should not tell me what the C++ compiler is, as this is a not relevant.
if I go into a shop and say I only want to buy a wheelbarrow, I dont want to be
told that the paint they sell is by Dulux, as this is not relevant to buying a wheelbarrow.
but maybe I have misunderstood the meaning of --enable-cxx=no
thanks for any help on this.