diff options
author | David Carlton <carlton@bactrian.org> | 2003-03-06 00:56:43 +0000 |
---|---|---|
committer | David Carlton <carlton@bactrian.org> | 2003-03-06 00:56:43 +0000 |
commit | ea00b6ec6bf5ed83e0c0310feaa6c6559ee7e84a (patch) | |
tree | 6f941d2e6c4a8d032dcc1f9d7a3684171bd716c9 /gdb/configure.in | |
parent | 07297283f46fcad05679b32b8109625b0c7d8670 (diff) | |
download | gdb-ea00b6ec6bf5ed83e0c0310feaa6c6559ee7e84a.zip gdb-ea00b6ec6bf5ed83e0c0310feaa6c6559ee7e84a.tar.gz gdb-ea00b6ec6bf5ed83e0c0310feaa6c6559ee7e84a.tar.bz2 |
2003-03-05 David Carlton <carlton@math.stanford.edu>
* Merge with mainline. Tag is carlton_dictionary-20030305-merge.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/gdb/configure.in b/gdb/configure.in index 65b62f0..07aab35 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -204,6 +204,16 @@ AC_ARG_ENABLE(profiling, [enable_profiling=no]) AC_CHECK_FUNCS(monstartup _mcleanup) +AC_CACHE_CHECK([for _etext], ac_cv_var__etext, +[AC_TRY_LINK( +[#include <stdlib.h> +extern char _etext; +], +[free (&_etext);], ac_cv_var__etext=yes, ac_cv_var__etext=no)]) +if test $ac_cv_var__etext = yes; then + AC_DEFINE(HAVE__ETEXT, 1, + [Define to 1 if your system has the _etext variable. ]) +fi if test "$enable_profiling" = yes ; then if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then AC_MSG_ERROR(--enable-profiling requires monstartup and _mcleanup) @@ -501,6 +511,18 @@ if test $gdb_cv_have_pt_getxmmregs = yes; then AC_DEFINE(HAVE_PT_GETXMMREGS) fi +# See if stdint.h provides the uintptr_t type. +# Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this. +AC_CACHE_CHECK([for uintptr_t in stdint.h], gdb_cv_have_uintptr_t, + [AC_TRY_COMPILE( + [#include <stdint.h>], + [uintptr_t foo = 0;], + gdb_cv_have_uintptr_t=yes, + gdb_cv_have_uintptr_t=no)]) +AC_MSG_RESULT($gdb_cv_have_uintptr_t) +if test $gdb_cv_have_uintptr_t = yes; then + AC_DEFINE(HAVE_UINTPTR_T, 1, [Define if <stdint.h> provides the uintptr_t type.]) +fi BFD_NEED_DECLARATION(malloc) BFD_NEED_DECLARATION(realloc) @@ -895,7 +917,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 @@ -911,7 +933,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" ;; |