aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2007-05-16 07:24:08 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2007-05-16 07:24:08 +0000
commit07abfebf80b9f27762cf84c1da6e01e246dd1d2c (patch)
tree9d6b75ab109d88d11733ca61fad02871f6e261eb /gdb/configure.ac
parentfa1e8d8e04abc3c79eb2597a34ca7e57a27ecd42 (diff)
downloadgdb-07abfebf80b9f27762cf84c1da6e01e246dd1d2c.zip
gdb-07abfebf80b9f27762cf84c1da6e01e246dd1d2c.tar.gz
gdb-07abfebf80b9f27762cf84c1da6e01e246dd1d2c.tar.bz2
gdb/
* configure.ac: Allow sysroots to be relocated under $prefix as well as $exec_prefix. * configure: Regenerate.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac15
1 files changed, 9 insertions, 6 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 6db1a18..3a579fd 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -1121,17 +1121,20 @@ AC_ARG_WITH(sysroot,
TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
+ if test "x$prefix" = xNONE; then
+ test_prefix=/usr/local
+ else
+ test_prefix=$prefix
+ fi
if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
- if test "x$prefix" = xNONE; then
- test_prefix=/usr/local
- else
- test_prefix=$prefix
- fi
+ test_exec_prefix=$test_prefix
else
- test_prefix=$exec_prefix
+ test_exec_prefix=$exec_prefix
fi
case ${TARGET_SYSTEM_ROOT} in
"${test_prefix}"|"${test_prefix}/"*|\
+ "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
+ '${prefix}'|'${prefix}/'*|\
'${exec_prefix}'|'${exec_prefix}/'*)
t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
TARGET_SYSTEM_ROOT_DEFINE="$t"