This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc-2.95 configure bug when prefix is not parent of exec-prefix
- To: gcc-bugs at gcc dot gnu dot org
- Subject: gcc-2.95 configure bug when prefix is not parent of exec-prefix
- From: Jonathan Sergent <sergent at eng dot sun dot com>
- Date: Thu, 12 Aug 1999 20:39:34 -0700
Line 172 of gcc-2.95/gcc/configure.in reads as follows:
gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
Take the case where prefix is "<foo>/NOARCH" and exec_prefix is
"<foo>/SunOS_5.7_sparc".
This ends up evaluating to "/include/g++" any time where prefix is not a
parent of exec_prefix, which is wrong, because that's not where libstdc++
configure is going to put the files. I'd call this a bug.
I don't see what would be wrong with:
gcc_gxx_include_dir="\$(prefix)/include/g++"-${libstdcxx_interface}
although I did not read the rest of configure.in to try to verify this.
Meanwhile, I am just using:
--with-gxx-include-dir=${prefix}/include/g++-3
--
Jonathan Sergent / sergent@Eng.Sun.COM