diff -aur src.orig/gdb/acconfig.h src/gdb/acconfig.h --- src.orig/gdb/acconfig.h Thu Apr 11 11:32:51 2002 +++ src/gdb/acconfig.h Mon Jul 15 17:06:50 2002 @@ -176,3 +176,9 @@ /* nativefile */ #undef GDB_NM_FILE + +/* useful when building cross gcc for particular cross-development environment */ +#undef CONFIG_SOLIB_SEARCH_PATH + +/* useful when building cross gcc for particular cross-development environment */ +#undef CONFIG_SOLIB_ABSOLUTE_PREFIX diff -aur src.orig/gdb/config.in src/gdb/config.in --- src.orig/gdb/config.in Fri Jun 21 16:48:32 2002 +++ src/gdb/config.in Mon Jul 15 17:07:10 2002 @@ -1,4 +1,4 @@ -/* config.in. Generated automatically from configure.in by autoheader. */ +/* config.in. Generated automatically from configure.in by autoheader 2.13. */ /* Define if on AIX 3. System headers sometimes define this. @@ -190,6 +190,12 @@ /* nativefile */ #undef GDB_NM_FILE +/* useful when building cross gcc for particular cross-development environment */ +#undef CONFIG_SOLIB_SEARCH_PATH + +/* useful when building cross gcc for particular cross-development environment */ +#undef CONFIG_SOLIB_ABSOLUTE_PREFIX + /* Define if you have the __argz_count function. */ #undef HAVE___ARGZ_COUNT diff -aur src.orig/gdb/configure.in src/gdb/configure.in --- src.orig/gdb/configure.in Fri Jun 21 16:48:39 2002 +++ src/gdb/configure.in Mon Jul 15 16:32:05 2002 @@ -933,6 +933,21 @@ ],) +AC_ARG_WITH(solib-search-path, [ --with-solib-search-path=DIR:DIR:DIR... Directories to search for shared libraries on host], with_solib_seach_path=${withval}) + +if test x"${with_solib_seach_path}" != x ; then + AC_DEFINE_UNQUOTED(CONFIG_SOLIB_SEARCH_PATH,"$with_solib_seach_path") +fi +AC_SUBST(CONFIG_SOLIB_SEARCH_PATH) + +AC_ARG_WITH(solib-absolute-prefix, [ --with-solib-absolute-prefix=DIR Directory containing shared libraries on host], with_solib_absolute_prefix=${withval}) + +if test x"${with_solib_absolute_prefix}" != x ; then + AC_DEFINE_UNQUOTED(CONFIG_SOLIB_ABSOLUTE_PREFIX,"$with_solib_absolute_prefix") +fi +AC_SUBST(CONFIG_SOLIB_ABSOLUTE_PREFIX) + + AC_ARG_ENABLE(gdbtk, [ --enable-gdbtk Enable GDBTK GUI front end], [case "${enableval}" in diff -aur src.orig/gdb/solib.c src/gdb/solib.c --- src.orig/gdb/solib.c Sat May 11 21:20:06 2002 +++ src/gdb/solib.c Mon Jul 15 16:32:05 2002 @@ -881,4 +881,12 @@ &setlist); add_show_from_set (c, &showlist); set_cmd_completer (c, filename_completer); + +#ifdef CONFIG_SOLIB_SEARCH_PATH + solib_search_path = savestring(CONFIG_SOLIB_SEARCH_PATH, strlen(CONFIG_SOLIB_SEARCH_PATH)); +#endif +#ifdef CONFIG_SOLIB_ABSOLUTE_PREFIX + solib_absolute_prefix = savestring(CONFIG_SOLIB_ABSOLUTE_PREFIX, strlen(CONFIG_SOLIB_ABSOLUTE_PREFIX)); +#endif } +