From c9ecbf8693d49366eeccfe1e0c0f9da5052550d5 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Sat, 10 Mar 2007 16:43:55 +0000 Subject: [PATCH] configure.ac (glibc_header_dir): Set using with_build_sysroot if defined. * configure.ac (glibc_header_dir): Set using with_build_sysroot if defined. * configure: Regenerate. From-SVN: r122795 --- gcc/ChangeLog | 6 ++++++ gcc/configure | 4 ++++ gcc/configure.ac | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 497177eb3e1..e94a5a5cbbe 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2007-03-10 Joseph Myers + + * configure.ac (glibc_header_dir): Set using with_build_sysroot if + defined. + * configure: Regenerate. + 2007-03-10 Uros Bizjak PR target/31101 diff --git a/gcc/configure b/gcc/configure index 15e9b31d917..15a4e05b31a 100755 --- a/gcc/configure +++ b/gcc/configure @@ -16309,6 +16309,8 @@ else if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then if test "x$with_sysroot" = x; then glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include" + elif test "x$with_build_sysroot" != "x"; then + glibc_header_dir="${with_build_sysroot}/usr/include" elif test "x$with_sysroot" = xyes; then glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include" else @@ -16463,6 +16465,8 @@ else if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then if test "x$with_sysroot" = x; then glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include" + elif test "x$with_build_sysroot" != "x"; then + glibc_header_dir="${with_build_sysroot}/usr/include" elif test "x$with_sysroot" = xyes; then glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include" else diff --git a/gcc/configure.ac b/gcc/configure.ac index 2a0c86c0e21..ed5fb203eef 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -3324,6 +3324,8 @@ AC_CACHE_CHECK(__stack_chk_fail in target C library, if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then if test "x$with_sysroot" = x; then glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include" + elif test "x$with_build_sysroot" != "x"; then + glibc_header_dir="${with_build_sysroot}/usr/include" elif test "x$with_sysroot" = xyes; then glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include" else @@ -3375,6 +3377,8 @@ case "$target" in if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then if test "x$with_sysroot" = x; then glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include" + elif test "x$with_build_sysroot" != "x"; then + glibc_header_dir="${with_build_sysroot}/usr/include" elif test "x$with_sysroot" = xyes; then glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include" else