aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@wasabisystems.com>2002-09-22 17:57:10 +0000
committerJason Thorpe <thorpej@gcc.gnu.org>2002-09-22 17:57:10 +0000
commit65a824f6c852c40911446b2e2d8cffb13d845781 (patch)
tree7d2a000e7c7adda5d6cd93f85a54b8d830d2bd95 /configure.in
parentcc2902df52a39b343d5094a39d3e6efb868015de (diff)
downloadgcc-65a824f6c852c40911446b2e2d8cffb13d845781.zip
gcc-65a824f6c852c40911446b2e2d8cffb13d845781.tar.gz
gcc-65a824f6c852c40911446b2e2d8cffb13d845781.tar.bz2
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
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in41
1 files changed, 23 insertions, 18 deletions
diff --git a/configure.in b/configure.in
index 0372cdc..2491fa7 100644
--- a/configure.in
+++ b/configure.in
@@ -876,36 +876,41 @@ esac
copy_dirs=
-# Handle --with-headers=XXX. The contents of the named directory are
-# copied to $(tooldir)/sys-include.
+# 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
- case "${exec_prefixoption}" in
- "") x=${prefix} ;;
- *) x=${exec_prefix} ;;
- esac
- copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
+ 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. Multiple directories are permitted. The
-# contents are copied to $(tooldir)/lib.
+# 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
- # 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
+ 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}