diff options
author | Joel Brobecker <brobecker@gnat.com> | 2007-09-19 22:00:34 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2007-09-19 22:00:34 +0000 |
commit | 01fe12f6fb039ef2841440b214d9fb905767a14d (patch) | |
tree | 83a34a2d9b307131479172fadde0619670a08c25 /gdb/configure.ac | |
parent | bc56b3fb3a77b7d1992c44cd97a080b847c43c73 (diff) | |
download | gdb-01fe12f6fb039ef2841440b214d9fb905767a14d.zip gdb-01fe12f6fb039ef2841440b214d9fb905767a14d.tar.gz gdb-01fe12f6fb039ef2841440b214d9fb905767a14d.tar.bz2 |
* configure.ac: Add check for "etext".
* configure, config.in: Regenerate.
* maint.c (TEXTEND): Only define if either _etext or etext
are available.
Disable the profiling functionality if TEXTEND is not defined.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r-- | gdb/configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac index 6a150aa..eea0bc2 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -242,6 +242,16 @@ if test $ac_cv_var__etext = yes; then AC_DEFINE(HAVE__ETEXT, 1, [Define to 1 if your system has the _etext variable. ]) fi +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) |