2010-07-30 Hui Zhu <teawater@gmail.com>
[deliverable/binutils-gdb.git] / gdb / configure
index f3cb23a894ab964cc2cc2f21c4b026050dc2770d..35705e0a2a0d02df7a4b894a7002c01a2816affa 100755 (executable)
@@ -10809,7 +10809,11 @@ $as_echo "${found_usable_python}" >&6; }
 
     fi
   fi
-  if test "${have_libpython}" = python2.6; then
+  if test "${have_libpython}" = python2.7; then
+
+$as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
+
+  elif test "${have_libpython}" = python2.6; then
 
 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
 
@@ -12505,9 +12509,9 @@ $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
 fi
 
 for ac_func in canonicalize_file_name realpath getrusage getuid \
-               getgid pipe poll pread64 sbrk setpgid setpgrp setsid \
+               getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
                sigaction sigprocmask sigsetmask socketpair syscall \
-               ttrace wborder setlocale iconvlist libiconvlist btowc \
+               ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
                setrlimit getrlimit posix_madvise
 do :
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
@@ -14186,22 +14190,19 @@ $as_echo "$gdb_cv_bigtoc" >&6; }
   ;;
 esac
 
-
-
-if test ${build} = ${host} -a ${host} = ${target} ; then
-   if test "$GCC" = "yes" ; then
-      # The dynamically loaded libthread_db needs access to symbols in the gdb
-      # executable.  Older GNU ld supports --export-dynamic but --dynamic-list
-      # may not be supported there.
-      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
 $as_echo_n "checking for the dynamic export flag... " >&6; }
-      old_LDFLAGS="$LDFLAGS"
-      # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
-      RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
-      LDFLAGS="$LDFLAGS $RDYNAMIC"
-      dynamic_list=false
-      if test "${have_libpython}" = no; then
-       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+dynamic_list=false
+if test "${gdb_native}" = yes; then
+   # The dynamically loaded libthread_db needs access to symbols in the gdb
+   # executable.  Older GNU ld supports --export-dynamic but --dynamic-list
+   # may not be supported there.
+   old_LDFLAGS="$LDFLAGS"
+   # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
+   RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
+   LDFLAGS="$LDFLAGS $RDYNAMIC"
+   if test "${have_libpython}" = no; then
+     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
 int
@@ -14217,14 +14218,14 @@ if ac_fn_c_try_link "$LINENO"; then :
 fi
 rm -f core conftest.err conftest.$ac_objext \
     conftest$ac_exeext conftest.$ac_ext
-      else
-       # Workaround http://bugs.python.org/issue4434 where static
-       # libpythonX.Y.a would get its symbols required for
-       # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
-       # Problem does not happen for the recommended libpythonX.Y.so linkage.
-       old_CFLAGS="$CFLAGS"
-       CFLAGS="$CFLAGS $PYTHON_CFLAGS"
-       if test "$cross_compiling" = yes; then :
+   else
+     # Workaround http://bugs.python.org/issue4434 where static
+     # libpythonX.Y.a would get its symbols required for
+     # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
+     # Problem does not happen for the recommended libpythonX.Y.so linkage.
+     old_CFLAGS="$CFLAGS"
+     CFLAGS="$CFLAGS $PYTHON_CFLAGS"
+     if test "$cross_compiling" = yes; then :
   true
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -14234,10 +14235,10 @@ int
 main ()
 {
 int err;
-            Py_Initialize ();
-            err = PyRun_SimpleString ("import itertools\n");
-            Py_Finalize ();
-            return err == 0 ? 0 : 1;
+          Py_Initialize ();
+          err = PyRun_SimpleString ("import itertools\n");
+          Py_Finalize ();
+          return err == 0 ? 0 : 1;
   ;
   return 0;
 }
@@ -14249,41 +14250,23 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   conftest.$ac_objext conftest.beam conftest.$ac_ext
 fi
 
-       CFLAGS="$old_CFLAGS"
-      fi
-      if $dynamic_list;then
-       found="-Wl,--dynamic-list"
-       RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
-      else
-       RDYNAMIC="-rdynamic"
-       LDFLAGS="$old_LDFLAGS $RDYNAMIC"
-       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  found="-rdynamic"
+     CFLAGS="$old_CFLAGS"
+   fi
+   LDFLAGS="$old_LDFLAGS"
+fi
+if $dynamic_list; then
+  found="-Wl,--dynamic-list"
+  RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
 else
-  found="no"
-                    # Error on its usage by .mh file.
-                    RDYNAMIC="no-rdynamic-available"
+  found="-rdynamic"
+  RDYNAMIC="-rdynamic"
 fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-      fi
 
-      LDFLAGS="$old_LDFLAGS"
-      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
 $as_echo "$found" >&6; }
-   fi
 
+
+if test ${build} = ${host} -a ${host} = ${target} ; then
    case ${host_os} in
    hpux*)
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPUX/OSF thread support" >&5
This page took 0.036091 seconds and 4 git commands to generate.