Commit 65a824f6 by Jason Thorpe Committed by Jason Thorpe

configure.in (with_headers): Skip copy if value is "yes".

* configure.in (with_headers): Skip copy if value is "yes".
(with_libs): Likewise.

* doc/install.texi: Document behavior of --with-headers and
--with-libs when arguments are omitted.

From-SVN: r57411
parent cc2902df
2002-09-22 Jason Thorpe <thorpej@wasabisystems.com>
* configure.in (with_headers): Skip copy if value is "yes".
(with_libs): Likewise.
2002-09-20 Nathanael Nerode <neroden@gcc.gnu.org> 2002-09-20 Nathanael Nerode <neroden@gcc.gnu.org>
* configure.in (*-*-netbsd*): Use noconfigdirs, not skipdirs. * configure.in (*-*-netbsd*): Use noconfigdirs, not skipdirs.
......
...@@ -876,36 +876,41 @@ esac ...@@ -876,36 +876,41 @@ esac
copy_dirs= copy_dirs=
# Handle --with-headers=XXX. The contents of the named directory are # Handle --with-headers=XXX. If the value is not "yes", the contents of
# copied to $(tooldir)/sys-include. # the named directory are copied to $(tooldir)/sys-include.
if test x"${with_headers}" != x ; then if test x"${with_headers}" != x ; then
if test x${is_cross_compiler} = xno ; then if test x${is_cross_compiler} = xno ; then
echo 1>&2 '***' --with-headers is only supported when cross compiling echo 1>&2 '***' --with-headers is only supported when cross compiling
exit 1 exit 1
fi fi
case "${exec_prefixoption}" in if test x"${with_headers}" != xyes ; then
"") x=${prefix} ;; case "${exec_prefixoption}" in
*) x=${exec_prefix} ;; "") x=${prefix} ;;
esac *) x=${exec_prefix} ;;
copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include" esac
copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
fi
fi fi
# Handle --with-libs=XXX. Multiple directories are permitted. The # Handle --with-libs=XXX. If the value is not "yes", the contents of
# contents are copied to $(tooldir)/lib. # the name directories are copied to $(tooldir)/lib. Multiple directories
# are permitted.
if test x"${with_libs}" != x ; then if test x"${with_libs}" != x ; then
if test x${is_cross_compiler} = xno ; then if test x${is_cross_compiler} = xno ; then
echo 1>&2 '***' --with-libs is only supported when cross compiling echo 1>&2 '***' --with-libs is only supported when cross compiling
exit 1 exit 1
fi fi
# Copy the libraries in reverse order, so that files in the first named if test x"${with_libs}" != xyes ; then
# library override files in subsequent libraries. # Copy the libraries in reverse order, so that files in the first named
case "${exec_prefixoption}" in # library override files in subsequent libraries.
"") x=${prefix} ;; case "${exec_prefixoption}" in
*) x=${exec_prefix} ;; "") x=${prefix} ;;
esac *) x=${exec_prefix} ;;
for l in ${with_libs}; do esac
copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}" for l in ${with_libs}; do
done copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
done
fi
fi fi
# Handle ${copy_dirs} # Handle ${copy_dirs}
......
2002-09-22 Jason Thorpe <thorpej@wasabisystems.com>
* doc/install.texi: Document behavior of --with-headers and
--with-libs when arguments are omitted.
2002-09-22 Kazu Hirata <kazu@cs.umass.edu> 2002-09-22 Kazu Hirata <kazu@cs.umass.edu>
* dbxout.c: Follow spelling conventions. * dbxout.c: Follow spelling conventions.
...@@ -883,18 +883,22 @@ forward to maintain the port. ...@@ -883,18 +883,22 @@ forward to maintain the port.
Some options which only apply to building cross compilers: Some options which only apply to building cross compilers:
@table @code @table @code
@item --with-headers=@var{dir} @item --with-headers
Specifies a directory @itemx --with-headers=@var{dir}
which has target include files. Specifies that target headers are available when building a cross compiler.
@emph{This option is required} when building a cross The @var{dir} argument specifies a directory which has the target include
compiler, if @file{@var{prefix}/@var{target}/sys-include} doesn't pre-exist. files. These include files will be copied into the @file{gcc} install
These include files will be copied into the @file{gcc} install directory. directory. @emph{This option with the @var{dir} argument is required} when
@command{fixincludes} will be run on these files to make them compatible with building a cross compiler, if @file{@var{prefix}/@var{target}/sys-include}
GCC. doesn't pre-exist. If @file{@var{prefix}/@var{target}/sys-include} does
@item --with-libs=``@var{dir1} @var{dir2} @dots{} @var{dirN}'' 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 Specifies a list of directories which contain the target runtime
libraries. These libraries will be copied into the @file{gcc} install libraries. These libraries will be copied into the @file{gcc} install
directory. directory. If the directory list is omitted, this option has no
effect.
@item --with-newlib @item --with-newlib
Specifies that @samp{newlib} is Specifies that @samp{newlib} is
being used as the target C library. This causes @code{__eprintf} to be being used as the target C library. This causes @code{__eprintf} to be
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment