diff options
author | Phil Edwards <pme@gcc.gnu.org> | 2002-03-04 21:41:06 +0000 |
---|---|---|
committer | Phil Edwards <pme@gcc.gnu.org> | 2002-03-04 21:41:06 +0000 |
commit | 48d7db63ff581b026e057badf39f1f23fdf47928 (patch) | |
tree | ed430ec7e88592af6a1259c8a8265e9c2c62ff04 /libiberty/configure.in | |
parent | af18e951d4952c9aa06b35ace0f65e9ac5ffa5e3 (diff) | |
download | gcc-48d7db63ff581b026e057badf39f1f23fdf47928.zip gcc-48d7db63ff581b026e057badf39f1f23fdf47928.tar.gz gcc-48d7db63ff581b026e057badf39f1f23fdf47928.tar.bz2 |
configure.in: Add --enable-install-libiberty option.
2002-03-04 Phil Edwards <pme@gcc.gnu.org>
* configure.in: Add --enable-install-libiberty option.
* Makefile.in (INSTALLED_HEADERS): New variable.
(install_to_libdir): Possibly also copy headers.
* configure: Regenerated.
From-SVN: r50288
Diffstat (limited to 'libiberty/configure.in')
-rw-r--r-- | libiberty/configure.in | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libiberty/configure.in b/libiberty/configure.in index fb930e4..f37fdc7 100644 --- a/libiberty/configure.in +++ b/libiberty/configure.in @@ -205,6 +205,7 @@ fi setobjs= CHECK= +target_header_dir= if test -n "${with_target_subdir}"; then # We are being configured as a target library. AC_REPLACE_FUNCS @@ -239,6 +240,27 @@ if test -n "${with_target_subdir}"; then fi + # We may wish to install the target headers somewhere. + AC_ARG_ENABLE(install-libiberty, + [ --enable-install-libiberty Install headers for end users], + enable_install_libiberty=$enableval, + enable_install_libiberty=no)dnl + + # Option parsed, now set things appropriately. + case x"$enable_install_libiberty" in + xyes|x) + target_header_dir=libiberty + ;; + xno) + target_header_dir= + ;; + *) + # This could be sanity-checked in various ways... + target_header_dir="${enable_install_libiberty}" + ;; + esac + + else # Not a target library, so we set things up to run the test suite. @@ -247,6 +269,7 @@ else fi AC_SUBST(CHECK) +AC_SUBST(target_header_dir) case "${host}" in *-*-cygwin* | *-*-mingw*) |