Commit 8c46a3c5c89775f8e475035f90a8cdb174046fef
- Date: Sun Apr 27 19:06:20 +0000 2008
- Committer: Thiago Jung Bauermann (bauerman@br.ibm.com)
- Author: Thiago Jung Bauermann (bauerman@br.ibm.com)
- Commit SHA1: 8c46a3c5c89775f8e475035f90a8cdb174046fef
- Tree SHA1: 2118f5131d54058e587bbbb980dea62bd2b4032e
Define HAVE_PYTHON flag when Python support is available.
Commit diff
| |   |
| 272 | 272 | /* Define if sys/ptrace.h defines the PT_GETXMMREGS request. */ |
| 273 | 273 | #undef HAVE_PT_GETXMMREGS |
| 274 | 274 | |
| 275 | /* Define if Python interpreter is being linked in. */ |
| 276 | #undef HAVE_PYTHON |
| 277 | |
| 275 | 278 | /* Define to 1 if you have the `realpath' function. */ |
| 276 | 279 | #undef HAVE_REALPATH |
| 277 | 280 | |
| toggle raw diff |
--- a/gdb/config.in
+++ b/gdb/config.in
@@ -272,6 +272,9 @@
/* Define if sys/ptrace.h defines the PT_GETXMMREGS request. */
#undef HAVE_PT_GETXMMREGS
+/* Define if Python interpreter is being linked in. */
+#undef HAVE_PYTHON
+
/* Define to 1 if you have the `realpath' function. */
#undef HAVE_REALPATH
|
| |   |
| 8688 | 8688 | fi |
| 8689 | 8689 | |
| 8690 | 8690 | if test "$HAVE_LIBPYTHON2_4" = yes || test "$HAVE_LIBPYTHON2_5" == yes; then |
| 8691 | |
| 8692 | cat >>confdefs.h <<\_ACEOF |
| 8693 | #define HAVE_PYTHON 1 |
| 8694 | _ACEOF |
| 8695 | |
| 8691 | 8696 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)" |
| 8692 | 8697 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)" |
| 8693 | 8698 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)" |
| toggle raw diff |
--- a/gdb/configure
+++ b/gdb/configure
@@ -8688,6 +8688,11 @@ echo "$as_me: WARNING: python is missing or unusable; some features may be unava
fi
if test "$HAVE_LIBPYTHON2_4" = yes || test "$HAVE_LIBPYTHON2_5" == yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_PYTHON 1
+_ACEOF
+
CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)" |
| |   |
| 504 | 504 | fi |
| 505 | 505 | |
| 506 | 506 | if test "$HAVE_LIBPYTHON2_4" = yes || test "$HAVE_LIBPYTHON2_5" == yes; then |
| 507 | AC_DEFINE(HAVE_PYTHON, 1, [Define if Python interpreter is being linked in.]) |
| 507 | 508 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)" |
| 508 | 509 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)" |
| 509 | 510 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)" |
| toggle raw diff |
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -504,6 +504,7 @@ else
fi
if test "$HAVE_LIBPYTHON2_4" = yes || test "$HAVE_LIBPYTHON2_5" == yes; then
+ AC_DEFINE(HAVE_PYTHON, 1, [Define if Python interpreter is being linked in.])
CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)" |