From: Hans-Peter Nilsson Date: Sat, 7 Jul 2012 00:26:08 +0000 (+0000) Subject: Fix configure test for "stack protector support in target C library". X-Git-Tag: misc/gccgo-go1_1_2~2003 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=755e0546bc8e50efe181e594ec51062aa2267035;p=thirdparty%2Fgcc.git Fix configure test for "stack protector support in target C library". * configure.ac (test_prefix, test_exec_prefix): Move setting from inside sysroot handling to before and outside it. * configure: Regenerate. From-SVN: r189345 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index eefae9a935ed..70d0eb620f14 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2012-07-07 Hans-Peter Nilsson + + Fix configure test for "stack protector support in target C library". + * configure.ac (test_prefix, test_exec_prefix): Move setting from + inside sysroot handling to before and outside it. + * configure: Regenerate. + 2012-07-06 Kai Tietz PR bootstrap/52947 diff --git a/gcc/configure b/gcc/configure index af08a49b3495..817b3d6e88b1 100755 --- a/gcc/configure +++ b/gcc/configure @@ -7236,6 +7236,17 @@ fi +if test "x$prefix" = xNONE; then + test_prefix=/usr/local +else + test_prefix=$prefix +fi +if test "x$exec_prefix" = xNONE; then + test_exec_prefix=$test_prefix +else + test_exec_prefix=$exec_prefix +fi + # Check whether --with-sysroot was given. if test "${with_sysroot+set}" = set; then : @@ -7248,16 +7259,6 @@ if test "${with_sysroot+set}" = set; then : TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)' - if test "x$prefix" = xNONE; then - test_prefix=/usr/local - else - test_prefix=$prefix - fi - if test "x$exec_prefix" = xNONE; then - test_exec_prefix=$test_prefix - else - test_exec_prefix=$exec_prefix - fi case ${TARGET_SYSTEM_ROOT} in "${test_prefix}"|"${test_prefix}/"*|\ "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ @@ -17971,7 +17972,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 17974 "configure" +#line 17975 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -18077,7 +18078,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 18080 "configure" +#line 18081 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -26631,11 +26632,11 @@ if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then if test "x$with_headers" != x; then target_header_dir=$with_headers elif test "x$with_sysroot" = x; then - target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include" + target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include" elif test "x$with_build_sysroot" != "x"; then target_header_dir="${with_build_sysroot}${native_system_header_dir}" elif test "x$with_sysroot" = xyes; then - target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}" + target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}" else target_header_dir="${with_sysroot}${native_system_header_dir}" fi diff --git a/gcc/configure.ac b/gcc/configure.ac index a95adecc7426..44d96a98216d 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -747,6 +747,17 @@ AC_ARG_WITH(build-sysroot, [SYSROOT_CFLAGS_FOR_TARGET=]) AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET) +if test "x$prefix" = xNONE; then + test_prefix=/usr/local +else + test_prefix=$prefix +fi +if test "x$exec_prefix" = xNONE; then + test_exec_prefix=$test_prefix +else + test_exec_prefix=$exec_prefix +fi + AC_ARG_WITH(sysroot, [AS_HELP_STRING([[--with-sysroot[=DIR]]], [search for usr/lib, usr/include, et al, within DIR])], @@ -759,16 +770,6 @@ AC_ARG_WITH(sysroot, TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)' - if test "x$prefix" = xNONE; then - test_prefix=/usr/local - else - test_prefix=$prefix - fi - if test "x$exec_prefix" = xNONE; then - test_exec_prefix=$test_prefix - else - test_exec_prefix=$exec_prefix - fi case ${TARGET_SYSTEM_ROOT} in "${test_prefix}"|"${test_prefix}/"*|\ "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ @@ -4534,11 +4535,11 @@ if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then if test "x$with_headers" != x; then target_header_dir=$with_headers elif test "x$with_sysroot" = x; then - target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include" + target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include" elif test "x$with_build_sysroot" != "x"; then target_header_dir="${with_build_sysroot}${native_system_header_dir}" elif test "x$with_sysroot" = xyes; then - target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}" + target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}" else target_header_dir="${with_sysroot}${native_system_header_dir}" fi