egcs-971201 top-level configure mishandles --with-gxx-include-dir
Loren J. Rittle
rittle@supra.rsch.comm.mot.com
Tue Dec 2 19:10:00 GMT 1997
Cygnus configure parses --with options provided on the command line
differently than GNU configure.
If the command line argument is xxx, then Cygnus configure places
with_xxx into the environment whereas GNU configure places xxx into
the environment.
GNU configure is used within the gcc subdirectory. Cygnus configure is
used within the top-level.
The following patch to the top-level configure program fixes the
handling of the --with-gxx-include-dir option (which appears to
have been written based upon GNU configure rules).
S rittle@supra; diff -c configure~ configure
*** configure~ Mon Dec 1 16:31:55 1997
--- configure Tue Dec 2 20:47:14 1997
***************
*** 1174,1183 ****
# provide a proper gxx_include_dir to all subdirs.
# Note, if you change the default, make sure to fix both here
# and in the gcc subdirectory.
! if test -z "${gxx_include_dir}"; then
echo gxx_include_dir = '${prefix}/include/g++' >> ${Makefile}
else
! echo gxx_include_dir = ${gxx_include_dir} >> ${Makefile}
fi
# reset prefix, exec_prefix, srcdir, SUBDIRS, NONSUBDIRS,
--- 1174,1183 ----
# provide a proper gxx_include_dir to all subdirs.
# Note, if you change the default, make sure to fix both here
# and in the gcc subdirectory.
! if test -z "${with_gxx_include_dir}"; then
echo gxx_include_dir = '${prefix}/include/g++' >> ${Makefile}
else
! echo gxx_include_dir = ${with_gxx_include_dir} >> ${Makefile}
fi
# reset prefix, exec_prefix, srcdir, SUBDIRS, NONSUBDIRS,
More information about the Gcc-bugs
mailing list