diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-01-09 21:34:30 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-01-09 21:34:30 +0000 |
commit | aa28a74efb2773e42c35302b4e8a2e0510cb2858 (patch) | |
tree | e83dee8aa1fbd91d10a019e93e37c1eea6d37fce /gdb/configure | |
parent | 1cfd2c3eed930ee8a6e074d73f77f86d3c151546 (diff) | |
download | gdb-aa28a74efb2773e42c35302b4e8a2e0510cb2858.zip gdb-aa28a74efb2773e42c35302b4e8a2e0510cb2858.tar.gz gdb-aa28a74efb2773e42c35302b4e8a2e0510cb2858.tar.bz2 |
* configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
exec_prefix.
(TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
'${prefix}'.
* configure, config.in: Regenerate.
* defs.h (debug_file_directory): Declare.
* main.c (captured_main): Canonicalize gdb_sysroot. Assume
TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
relocate it if DEBUGDIR_RELOCATABLE.
* symfile.c (debug_file_directory): Make non-static.
(find_separate_debug_file): Look for debug info for SYSROOT/PATH
in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
(_initialize_symfile): Don't initialize debug_file_directory here.
Diffstat (limited to 'gdb/configure')
-rwxr-xr-x | gdb/configure | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/gdb/configure b/gdb/configure index 69cb9cd..adbb231 100755 --- a/gdb/configure +++ b/gdb/configure @@ -3053,6 +3053,26 @@ _ACEOF #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"), +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 +else + test_prefix=$exec_prefix +fi +case ${debugdir} in +"${test_prefix}"|"${test_prefix}/"*|\ +'${exec_prefix}'|'${exec_prefix}/'*) + +cat >>confdefs.h <<\_ACEOF +#define DEBUGDIR_RELOCATABLE 1 +_ACEOF + + ;; +esac + subdirs="$subdirs doc testsuite" @@ -21172,7 +21192,7 @@ if test "${with_sysroot+set}" = set; then TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' - if test "x$exec_prefix" = xNONE; then + if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then if test "x$prefix" = xNONE; then test_prefix=/usr/local else |