Index: configure.in =================================================================== RCS file: /cvs/gcc/gcc/configure.in,v retrieving revision 1.178 diff -c -r1.178 configure.in *** configure.in 20 Sep 2002 21:00:07 -0000 1.178 --- configure.in 21 Sep 2002 19:40:23 -0000 *************** *** 876,911 **** copy_dirs= ! # Handle --with-headers=XXX. The contents of the named directory are ! # copied to $(tooldir)/sys-include. if test x"${with_headers}" != x ; then if test x${is_cross_compiler} = xno ; then echo 1>&2 '***' --with-headers is only supported when cross compiling exit 1 fi ! case "${exec_prefixoption}" in ! "") x=${prefix} ;; ! *) x=${exec_prefix} ;; ! esac ! copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include" fi ! # Handle --with-libs=XXX. Multiple directories are permitted. The ! # contents are copied to $(tooldir)/lib. if test x"${with_libs}" != x ; then if test x${is_cross_compiler} = xno ; then echo 1>&2 '***' --with-libs is only supported when cross compiling exit 1 fi ! # Copy the libraries in reverse order, so that files in the first named ! # library override files in subsequent libraries. ! case "${exec_prefixoption}" in ! "") x=${prefix} ;; ! *) x=${exec_prefix} ;; ! esac ! for l in ${with_libs}; do ! copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}" ! done fi # Handle ${copy_dirs} --- 876,916 ---- copy_dirs= ! # Handle --with-headers=XXX. If the value is not "yes", the contents of ! # the named directory are copied to $(tooldir)/sys-include. if test x"${with_headers}" != x ; then if test x${is_cross_compiler} = xno ; then echo 1>&2 '***' --with-headers is only supported when cross compiling exit 1 fi ! if test x"${with_headers}" != xyes ; then ! case "${exec_prefixoption}" in ! "") x=${prefix} ;; ! *) x=${exec_prefix} ;; ! esac ! copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include" ! fi fi ! # Handle --with-libs=XXX. If the value is not "yes", the contents of ! # the name directories are copied to $(tooldir)/lib. Multiple directories ! # are permitted. if test x"${with_libs}" != x ; then if test x${is_cross_compiler} = xno ; then echo 1>&2 '***' --with-libs is only supported when cross compiling exit 1 fi ! if test x"${with_libs}" != xyes ; then ! # Copy the libraries in reverse order, so that files in the first named ! # library override files in subsequent libraries. ! case "${exec_prefixoption}" in ! "") x=${prefix} ;; ! *) x=${exec_prefix} ;; ! esac ! for l in ${with_libs}; do ! copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}" ! done ! fi fi # Handle ${copy_dirs} Index: gcc/doc/install.texi =================================================================== RCS file: /cvs/gcc/gcc/gcc/doc/install.texi,v retrieving revision 1.142 diff -c -r1.142 install.texi *** gcc/doc/install.texi 11 Sep 2002 22:10:10 -0000 1.142 --- gcc/doc/install.texi 21 Sep 2002 19:40:26 -0000 *************** *** 883,900 **** Some options which only apply to building cross compilers: @table @code ! @item --with-headers=@var{dir} ! Specifies a directory ! which has target include files. ! @emph{This option is required} when building a cross ! compiler, if @file{@var{prefix}/@var{target}/sys-include} doesn't pre-exist. ! These include files will be copied into the @file{gcc} install directory. ! @command{fixincludes} will be run on these files to make them compatible with ! GCC. ! @item --with-libs=``@var{dir1} @var{dir2} @dots{} @var{dirN}'' Specifies a list of directories which contain the target runtime libraries. These libraries will be copied into the @file{gcc} install ! directory. @item --with-newlib Specifies that @samp{newlib} is being used as the target C library. This causes @code{__eprintf} to be --- 883,904 ---- Some options which only apply to building cross compilers: @table @code ! @item --with-headers ! @itemx --with-headers=@var{dir} ! Specifies that target headers are available when building a cross compiler. ! The @var{dir} argument specifies a directory which has the target include ! files. These include files will be copied into the @file{gcc} install ! directory. @emph{This option with the @var{dir} argument is required} when ! building a cross compiler, if @file{@var{prefix}/@var{target}/sys-include} ! doesn't pre-exist. If @file{@var{prefix}/@var{target}/sys-include} does ! pre-exist, the @var{dir} argument may be omitted. @command{fixincludes} ! will be run on these files to make them compatible with GCC. ! @item --with-libs ! @itemx --with-libs=``@var{dir1} @var{dir2} @dots{} @var{dirN}'' Specifies a list of directories which contain the target runtime libraries. These libraries will be copied into the @file{gcc} install ! directory. If the directory list is omitted, this option has no ! effect. @item --with-newlib Specifies that @samp{newlib} is being used as the target C library. This causes @code{__eprintf} to be