diff options
author | Tom Tromey <tromey@redhat.com> | 2010-07-30 15:59:41 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-07-30 15:59:41 +0000 |
commit | 420697bb59a01ea22c533035a3da1d83101a484d (patch) | |
tree | 6a4c1532464701ef9089f41c30d62c1faf82592b /gdb/configure | |
parent | 6c13bbe177b7cf5b87f3670b29a461361d5d8ae3 (diff) | |
download | gdb-420697bb59a01ea22c533035a3da1d83101a484d.zip gdb-420697bb59a01ea22c533035a3da1d83101a484d.tar.gz gdb-420697bb59a01ea22c533035a3da1d83101a484d.tar.bz2 |
* configure: Rebuild.
* configure.ac: Add missing case for Python 2.7.
Diffstat (limited to 'gdb/configure')
-rwxr-xr-x | gdb/configure | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gdb/configure b/gdb/configure index 35705e0..485c904 100755 --- a/gdb/configure +++ b/gdb/configure @@ -10699,6 +10699,43 @@ $as_echo "${found_usable_python}" >&6; } elif test "${have_python_config}" != failed; then if test "${have_libpython}" = no; then + version=python2.7 + + new_CPPFLAGS=${python_includes} + new_LIBS="${python_libs} -lpython2.7" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5 +$as_echo_n "checking for ${version}... " >&6; } + save_CPPFLAGS=$CPPFLAGS + save_LIBS=$LIBS + CPPFLAGS="$CPPFLAGS $new_CPPFLAGS" + LIBS="$LIBS $new_LIBS" + found_usable_python=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include "${version}/Python.h" +int +main () +{ +Py_Initialize (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + have_libpython=${version} + found_usable_python=yes +else + CPPFLAGS=$save_CPPFLAGS + LIBS=$save_LIBS +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5 +$as_echo "${found_usable_python}" >&6; } + + fi + if test "${have_libpython}" = no; then + version=python2.6 new_CPPFLAGS=${python_includes} |