From 715d16565f7550032de4a2501316f9b826749b75 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Thu, 20 Feb 2003 23:38:58 +0000 Subject: * configure.in (TARGET_SYSTEM_ROOT): Set default to ${exec_prefix}/${target_alias}/sys-root. Match explicit '${exec_prefix}' (in addition to the expansion thereof) as relocatable. * configure: Rebuilt. --- ld/configure.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ld/configure.in') diff --git a/ld/configure.in b/ld/configure.in index 69c8355..4358cbe 100644 --- a/ld/configure.in +++ b/ld/configure.in @@ -34,7 +34,7 @@ AC_ARG_WITH(sysroot, [ --with-sysroot[=DIR] Search for usr/lib et al within DIR.], [ case ${with_sysroot} in - yes) AC_ERROR(with-sysroot must specify path) ;; + yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; *) TARGET_SYSTEM_ROOT=$with_sysroot ;; esac @@ -51,7 +51,8 @@ AC_ARG_WITH(sysroot, test_prefix=$exec_prefix fi case ${TARGET_SYSTEM_ROOT} in - ${test_prefix}*) + "${test_prefix}"|"${test_prefix}/"*|\ + '${exec_prefix}'|'${exec_prefix}/'*) t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" TARGET_SYSTEM_ROOT_DEFINE="$t" ;; -- cgit v1.1