diff options
author | Doug Evans <dje@google.com> | 2010-05-27 03:40:45 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2010-05-27 03:40:45 +0000 |
commit | 0c4a40633c767da2c7659a3f460cf1e8e3dd3a5c (patch) | |
tree | 5e04abc4cc89fd32c6532d5d7bdd654af37b4c45 /gdb/config.in | |
parent | ec685c5ecafd5bf8876d332a0eb17f206c8d733a (diff) | |
download | gdb-0c4a40633c767da2c7659a3f460cf1e8e3dd3a5c.zip gdb-0c4a40633c767da2c7659a3f460cf1e8e3dd3a5c.tar.gz gdb-0c4a40633c767da2c7659a3f460cf1e8e3dd3a5c.tar.bz2 |
Allow python to find its files if moved from original location.
* acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
(GDB_AC_WITH_DIR): Call it.
* configure.ac: Define WITH_PYTHON_PATH if we can find the
python installation directory.
* config.in: Regenerate.
* configure: Regenerate.
* defs.h (python_libdir): Declare.
* main.c (python_libdir): Define.
(captured_main): Initialize python_libdir.
* python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
call Py_SetProgramName to make sure python can find its libraries
and modules.
Diffstat (limited to 'gdb/config.in')
-rw-r--r-- | gdb/config.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/config.in b/gdb/config.in index 448c4e2..76cb363 100644 --- a/gdb/config.in +++ b/gdb/config.in @@ -766,6 +766,9 @@ 'ptrdiff_t'. */ #undef PTRDIFF_T_SUFFIX +/* Define if the python directory should be relocated when GDB is moved. */ +#undef PYTHON_PATH_RELOCATABLE + /* Relocated directory for source files. */ #undef RELOC_SRCDIR @@ -838,6 +841,10 @@ 'wint_t'. */ #undef WINT_T_SUFFIX +/* Define if --with-python provides a path, either directly or via + python-config.py --exec-prefix. */ +#undef WITH_PYTHON_PATH + /* Define if the simulator is being linked in. */ #undef WITH_SIM |