| Index: gdb/gdbserver/configure
|
| diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure
|
| index 63e25c239ea7fa27f3bbad360be3b651a6dd5714..fac7fb3b7d9a47fdb819cce0d30289518c46e713 100755
|
| --- a/gdb/gdbserver/configure
|
| +++ b/gdb/gdbserver/configure
|
| @@ -594,7 +594,6 @@ extra_libraries
|
| IPA_DEPFILES
|
| srv_xmlfiles
|
| srv_xmlbuiltin
|
| -USE_THREAD_DB
|
| GDBSERVER_LIBS
|
| GDBSERVER_DEPFILES
|
| RDYNAMIC
|
| @@ -606,7 +605,15 @@ WARN_CFLAGS
|
| ustinc
|
| ustlibs
|
| LIBOBJS
|
| +SET_MAKE
|
| +GMAKE_FALSE
|
| +GMAKE_TRUE
|
| MAKE
|
| +CCDEPMODE
|
| +DEPDIR
|
| +am__leading_dot
|
| +host_noncanonical
|
| +target_noncanonical
|
| ALLOCA
|
| RANLIB
|
| INSTALL_DATA
|
| @@ -679,6 +686,8 @@ ac_subst_files=''
|
| ac_user_opts='
|
| enable_option_checking
|
| enable_maintainer_mode
|
| +enable_largefile
|
| +enable_libmcheck
|
| with_ust
|
| with_ust_include
|
| with_ust_lib
|
| @@ -1317,6 +1326,8 @@ Optional Features:
|
| --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
| --enable-maintainer-mode enable make rules and dependencies not useful
|
| (and sometimes confusing) to the casual installer
|
| + --disable-largefile omit support for large files
|
| + --enable-libmcheck Try linking with -lmcheck if available
|
| --enable-werror treat compile warnings as errors
|
| --enable-inprocess-agent
|
| inprocess agent
|
| @@ -3477,6 +3488,204 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
|
|
|
|
|
|
|
| +# Check whether --enable-largefile was given.
|
| +if test "${enable_largefile+set}" = set; then :
|
| + enableval=$enable_largefile;
|
| +fi
|
| +
|
| +if test "$enable_largefile" != no; then
|
| +
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
|
| +$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
|
| +if test "${ac_cv_sys_largefile_CC+set}" = set; then :
|
| + $as_echo_n "(cached) " >&6
|
| +else
|
| + ac_cv_sys_largefile_CC=no
|
| + if test "$GCC" != yes; then
|
| + ac_save_CC=$CC
|
| + while :; do
|
| + # IRIX 6.2 and later do not support large files by default,
|
| + # so use the C compiler's -n32 option if that helps.
|
| + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| +/* end confdefs.h. */
|
| +#include <sys/types.h>
|
| + /* Check that off_t can represent 2**63 - 1 correctly.
|
| + We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
| + since some C++ compilers masquerading as C compilers
|
| + incorrectly reject 9223372036854775807. */
|
| +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
| + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
| + && LARGE_OFF_T % 2147483647 == 1)
|
| + ? 1 : -1];
|
| +int
|
| +main ()
|
| +{
|
| +
|
| + ;
|
| + return 0;
|
| +}
|
| +_ACEOF
|
| + if ac_fn_c_try_compile "$LINENO"; then :
|
| + break
|
| +fi
|
| +rm -f core conftest.err conftest.$ac_objext
|
| + CC="$CC -n32"
|
| + if ac_fn_c_try_compile "$LINENO"; then :
|
| + ac_cv_sys_largefile_CC=' -n32'; break
|
| +fi
|
| +rm -f core conftest.err conftest.$ac_objext
|
| + break
|
| + done
|
| + CC=$ac_save_CC
|
| + rm -f conftest.$ac_ext
|
| + fi
|
| +fi
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
|
| +$as_echo "$ac_cv_sys_largefile_CC" >&6; }
|
| + if test "$ac_cv_sys_largefile_CC" != no; then
|
| + CC=$CC$ac_cv_sys_largefile_CC
|
| + fi
|
| +
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
|
| +$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
|
| +if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
|
| + $as_echo_n "(cached) " >&6
|
| +else
|
| + while :; do
|
| + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| +/* end confdefs.h. */
|
| +#include <sys/types.h>
|
| + /* Check that off_t can represent 2**63 - 1 correctly.
|
| + We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
| + since some C++ compilers masquerading as C compilers
|
| + incorrectly reject 9223372036854775807. */
|
| +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
| + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
| + && LARGE_OFF_T % 2147483647 == 1)
|
| + ? 1 : -1];
|
| +int
|
| +main ()
|
| +{
|
| +
|
| + ;
|
| + return 0;
|
| +}
|
| +_ACEOF
|
| +if ac_fn_c_try_compile "$LINENO"; then :
|
| + ac_cv_sys_file_offset_bits=no; break
|
| +fi
|
| +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
| + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| +/* end confdefs.h. */
|
| +#define _FILE_OFFSET_BITS 64
|
| +#include <sys/types.h>
|
| + /* Check that off_t can represent 2**63 - 1 correctly.
|
| + We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
| + since some C++ compilers masquerading as C compilers
|
| + incorrectly reject 9223372036854775807. */
|
| +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
| + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
| + && LARGE_OFF_T % 2147483647 == 1)
|
| + ? 1 : -1];
|
| +int
|
| +main ()
|
| +{
|
| +
|
| + ;
|
| + return 0;
|
| +}
|
| +_ACEOF
|
| +if ac_fn_c_try_compile "$LINENO"; then :
|
| + ac_cv_sys_file_offset_bits=64; break
|
| +fi
|
| +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
| + ac_cv_sys_file_offset_bits=unknown
|
| + break
|
| +done
|
| +fi
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
|
| +$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
|
| +case $ac_cv_sys_file_offset_bits in #(
|
| + no | unknown) ;;
|
| + *)
|
| +cat >>confdefs.h <<_ACEOF
|
| +#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
|
| +_ACEOF
|
| +;;
|
| +esac
|
| +rm -rf conftest*
|
| + if test $ac_cv_sys_file_offset_bits = unknown; then
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
|
| +$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
|
| +if test "${ac_cv_sys_large_files+set}" = set; then :
|
| + $as_echo_n "(cached) " >&6
|
| +else
|
| + while :; do
|
| + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| +/* end confdefs.h. */
|
| +#include <sys/types.h>
|
| + /* Check that off_t can represent 2**63 - 1 correctly.
|
| + We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
| + since some C++ compilers masquerading as C compilers
|
| + incorrectly reject 9223372036854775807. */
|
| +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
| + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
| + && LARGE_OFF_T % 2147483647 == 1)
|
| + ? 1 : -1];
|
| +int
|
| +main ()
|
| +{
|
| +
|
| + ;
|
| + return 0;
|
| +}
|
| +_ACEOF
|
| +if ac_fn_c_try_compile "$LINENO"; then :
|
| + ac_cv_sys_large_files=no; break
|
| +fi
|
| +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
| + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| +/* end confdefs.h. */
|
| +#define _LARGE_FILES 1
|
| +#include <sys/types.h>
|
| + /* Check that off_t can represent 2**63 - 1 correctly.
|
| + We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
| + since some C++ compilers masquerading as C compilers
|
| + incorrectly reject 9223372036854775807. */
|
| +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
| + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
| + && LARGE_OFF_T % 2147483647 == 1)
|
| + ? 1 : -1];
|
| +int
|
| +main ()
|
| +{
|
| +
|
| + ;
|
| + return 0;
|
| +}
|
| +_ACEOF
|
| +if ac_fn_c_try_compile "$LINENO"; then :
|
| + ac_cv_sys_large_files=1; break
|
| +fi
|
| +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
| + ac_cv_sys_large_files=unknown
|
| + break
|
| +done
|
| +fi
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
|
| +$as_echo "$ac_cv_sys_large_files" >&6; }
|
| +case $ac_cv_sys_large_files in #(
|
| + no | unknown) ;;
|
| + *)
|
| +cat >>confdefs.h <<_ACEOF
|
| +#define _LARGE_FILES $ac_cv_sys_large_files
|
| +_ACEOF
|
| +;;
|
| +esac
|
| +rm -rf conftest*
|
| + fi
|
| +fi
|
| +
|
|
|
| ac_aux_dir=
|
| for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
| @@ -3922,167 +4131,752 @@ $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
|
|
| fi
|
|
|
| -ac_header_dirent=no
|
| -for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
| - as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
| -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
|
| -$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
|
| -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
|
| +
|
| +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
| +# for constant arguments. Useless!
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
|
| +$as_echo_n "checking for working alloca.h... " >&6; }
|
| +if test "${ac_cv_working_alloca_h+set}" = set; then :
|
| $as_echo_n "(cached) " >&6
|
| else
|
| cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| /* end confdefs.h. */
|
| -#include <sys/types.h>
|
| -#include <$ac_hdr>
|
| -
|
| +#include <alloca.h>
|
| int
|
| main ()
|
| {
|
| -if ((DIR *) 0)
|
| -return 0;
|
| +char *p = (char *) alloca (2 * sizeof (int));
|
| + if (p) return 0;
|
| ;
|
| return 0;
|
| }
|
| _ACEOF
|
| -if ac_fn_c_try_compile "$LINENO"; then :
|
| - eval "$as_ac_Header=yes"
|
| +if ac_fn_c_try_link "$LINENO"; then :
|
| + ac_cv_working_alloca_h=yes
|
| else
|
| - eval "$as_ac_Header=no"
|
| + ac_cv_working_alloca_h=no
|
| fi
|
| -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
| +rm -f core conftest.err conftest.$ac_objext \
|
| + conftest$ac_exeext conftest.$ac_ext
|
| fi
|
| -eval ac_res=\$$as_ac_Header
|
| - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
| -$as_echo "$ac_res" >&6; }
|
| -eval as_val=\$$as_ac_Header
|
| - if test "x$as_val" = x""yes; then :
|
| - cat >>confdefs.h <<_ACEOF
|
| -#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
| -_ACEOF
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
|
| +$as_echo "$ac_cv_working_alloca_h" >&6; }
|
| +if test $ac_cv_working_alloca_h = yes; then
|
| +
|
| +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
|
|
|
| -ac_header_dirent=$ac_hdr; break
|
| fi
|
|
|
| -done
|
| -# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
| -if test $ac_header_dirent = dirent.h; then
|
| - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
| -$as_echo_n "checking for library containing opendir... " >&6; }
|
| -if test "${ac_cv_search_opendir+set}" = set; then :
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
|
| +$as_echo_n "checking for alloca... " >&6; }
|
| +if test "${ac_cv_func_alloca_works+set}" = set; then :
|
| $as_echo_n "(cached) " >&6
|
| else
|
| - ac_func_search_save_LIBS=$LIBS
|
| -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| /* end confdefs.h. */
|
| -
|
| -/* Override any GCC internal prototype to avoid an error.
|
| - Use char because int might match the return type of a GCC
|
| - builtin and then its argument prototype would still apply. */
|
| -#ifdef __cplusplus
|
| -extern "C"
|
| +#ifdef __GNUC__
|
| +# define alloca __builtin_alloca
|
| +#else
|
| +# ifdef _MSC_VER
|
| +# include <malloc.h>
|
| +# define alloca _alloca
|
| +# else
|
| +# ifdef HAVE_ALLOCA_H
|
| +# include <alloca.h>
|
| +# else
|
| +# ifdef _AIX
|
| + #pragma alloca
|
| +# else
|
| +# ifndef alloca /* predefined by HP cc +Olibcalls */
|
| +char *alloca ();
|
| +# endif
|
| +# endif
|
| +# endif
|
| +# endif
|
| #endif
|
| -char opendir ();
|
| +
|
| int
|
| main ()
|
| {
|
| -return opendir ();
|
| +char *p = (char *) alloca (1);
|
| + if (p) return 0;
|
| ;
|
| return 0;
|
| }
|
| _ACEOF
|
| -for ac_lib in '' dir; do
|
| - if test -z "$ac_lib"; then
|
| - ac_res="none required"
|
| - else
|
| - ac_res=-l$ac_lib
|
| - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
| - fi
|
| - if ac_fn_c_try_link "$LINENO"; then :
|
| - ac_cv_search_opendir=$ac_res
|
| +if ac_fn_c_try_link "$LINENO"; then :
|
| + ac_cv_func_alloca_works=yes
|
| +else
|
| + ac_cv_func_alloca_works=no
|
| fi
|
| rm -f core conftest.err conftest.$ac_objext \
|
| - conftest$ac_exeext
|
| - if test "${ac_cv_search_opendir+set}" = set; then :
|
| - break
|
| + conftest$ac_exeext conftest.$ac_ext
|
| fi
|
| -done
|
| -if test "${ac_cv_search_opendir+set}" = set; then :
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
|
| +$as_echo "$ac_cv_func_alloca_works" >&6; }
|
| +
|
| +if test $ac_cv_func_alloca_works = yes; then
|
| +
|
| +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
|
| +
|
| +else
|
| + # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
| +# that cause trouble. Some versions do not even contain alloca or
|
| +# contain a buggy version. If you still want to use their alloca,
|
| +# use ar to extract alloca.o from them instead of compiling alloca.c.
|
| +
|
| +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
|
| +
|
| +$as_echo "#define C_ALLOCA 1" >>confdefs.h
|
| +
|
| +
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
|
| +$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
|
| +if test "${ac_cv_os_cray+set}" = set; then :
|
| + $as_echo_n "(cached) " >&6
|
| +else
|
| + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| +/* end confdefs.h. */
|
| +#if defined CRAY && ! defined CRAY2
|
| +webecray
|
| +#else
|
| +wenotbecray
|
| +#endif
|
|
|
| +_ACEOF
|
| +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
| + $EGREP "webecray" >/dev/null 2>&1; then :
|
| + ac_cv_os_cray=yes
|
| else
|
| - ac_cv_search_opendir=no
|
| + ac_cv_os_cray=no
|
| +fi
|
| +rm -f conftest*
|
| +
|
| fi
|
| -rm conftest.$ac_ext
|
| -LIBS=$ac_func_search_save_LIBS
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
|
| +$as_echo "$ac_cv_os_cray" >&6; }
|
| +if test $ac_cv_os_cray = yes; then
|
| + for ac_func in _getb67 GETB67 getb67; do
|
| + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
| +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
| +eval as_val=\$$as_ac_var
|
| + if test "x$as_val" = x""yes; then :
|
| +
|
| +cat >>confdefs.h <<_ACEOF
|
| +#define CRAY_STACKSEG_END $ac_func
|
| +_ACEOF
|
| +
|
| + break
|
| fi
|
| -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
| -$as_echo "$ac_cv_search_opendir" >&6; }
|
| -ac_res=$ac_cv_search_opendir
|
| -if test "$ac_res" != no; then :
|
| - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
|
|
| + done
|
| fi
|
|
|
| -else
|
| - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
| -$as_echo_n "checking for library containing opendir... " >&6; }
|
| -if test "${ac_cv_search_opendir+set}" = set; then :
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
|
| +$as_echo_n "checking stack direction for C alloca... " >&6; }
|
| +if test "${ac_cv_c_stack_direction+set}" = set; then :
|
| $as_echo_n "(cached) " >&6
|
| else
|
| - ac_func_search_save_LIBS=$LIBS
|
| -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| + if test "$cross_compiling" = yes; then :
|
| + ac_cv_c_stack_direction=0
|
| +else
|
| + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| /* end confdefs.h. */
|
| +$ac_includes_default
|
| +int
|
| +find_stack_direction ()
|
| +{
|
| + static char *addr = 0;
|
| + auto char dummy;
|
| + if (addr == 0)
|
| + {
|
| + addr = &dummy;
|
| + return find_stack_direction ();
|
| + }
|
| + else
|
| + return (&dummy > addr) ? 1 : -1;
|
| +}
|
|
|
| -/* Override any GCC internal prototype to avoid an error.
|
| - Use char because int might match the return type of a GCC
|
| - builtin and then its argument prototype would still apply. */
|
| -#ifdef __cplusplus
|
| -extern "C"
|
| +int
|
| +main ()
|
| +{
|
| + return find_stack_direction () < 0;
|
| +}
|
| +_ACEOF
|
| +if ac_fn_c_try_run "$LINENO"; then :
|
| + ac_cv_c_stack_direction=1
|
| +else
|
| + ac_cv_c_stack_direction=-1
|
| +fi
|
| +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
| + conftest.$ac_objext conftest.beam conftest.$ac_ext
|
| +fi
|
| +
|
| +fi
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
|
| +$as_echo "$ac_cv_c_stack_direction" >&6; }
|
| +cat >>confdefs.h <<_ACEOF
|
| +#define STACK_DIRECTION $ac_cv_c_stack_direction
|
| +_ACEOF
|
| +
|
| +
|
| +fi
|
| +
|
| +
|
| +# Set the 'development' global.
|
| +. $srcdir/../development.sh
|
| +
|
| +# Enable -lmcheck by default (it provides cheap-enough memory
|
| +# mangling), but turn it off for releases.
|
| +if $development; then
|
| + libmcheck_default=yes
|
| +else
|
| + libmcheck_default=no
|
| +fi
|
| +
|
| + # Check whether --enable-libmcheck was given.
|
| +if test "${enable_libmcheck+set}" = set; then :
|
| + enableval=$enable_libmcheck; case "${enableval}" in
|
| + yes | y) ENABLE_LIBMCHECK="yes" ;;
|
| + no | n) ENABLE_LIBMCHECK="no" ;;
|
| + *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
|
| + esac
|
| +fi
|
| +
|
| +
|
| + if test -z "${ENABLE_LIBMCHECK}"; then
|
| + ENABLE_LIBMCHECK=${libmcheck_default}
|
| + fi
|
| +
|
| + if test "$ENABLE_LIBMCHECK" = "yes" ; then
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
|
| +$as_echo_n "checking for main in -lmcheck... " >&6; }
|
| +if test "${ac_cv_lib_mcheck_main+set}" = set; then :
|
| + $as_echo_n "(cached) " >&6
|
| +else
|
| + ac_check_lib_save_LIBS=$LIBS
|
| +LIBS="-lmcheck $LIBS"
|
| +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| +/* end confdefs.h. */
|
| +
|
| +
|
| +int
|
| +main ()
|
| +{
|
| +return main ();
|
| + ;
|
| + return 0;
|
| +}
|
| +_ACEOF
|
| +if ac_fn_c_try_link "$LINENO"; then :
|
| + ac_cv_lib_mcheck_main=yes
|
| +else
|
| + ac_cv_lib_mcheck_main=no
|
| +fi
|
| +rm -f core conftest.err conftest.$ac_objext \
|
| + conftest$ac_exeext conftest.$ac_ext
|
| +LIBS=$ac_check_lib_save_LIBS
|
| +fi
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
|
| +$as_echo "$ac_cv_lib_mcheck_main" >&6; }
|
| +if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
|
| + cat >>confdefs.h <<_ACEOF
|
| +#define HAVE_LIBMCHECK 1
|
| +_ACEOF
|
| +
|
| + LIBS="-lmcheck $LIBS"
|
| +
|
| +fi
|
| +
|
| + fi
|
| +
|
| +
|
| + case ${build_alias} in
|
| + "") build_noncanonical=${build} ;;
|
| + *) build_noncanonical=${build_alias} ;;
|
| +esac
|
| +
|
| + case ${host_alias} in
|
| + "") host_noncanonical=${build_noncanonical} ;;
|
| + *) host_noncanonical=${host_alias} ;;
|
| +esac
|
| +
|
| + case ${target_alias} in
|
| + "") target_noncanonical=${host_noncanonical} ;;
|
| + *) target_noncanonical=${target_alias} ;;
|
| +esac
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +# Dependency checking.
|
| +rm -rf .tst 2>/dev/null
|
| +mkdir .tst 2>/dev/null
|
| +if test -d .tst; then
|
| + am__leading_dot=.
|
| +else
|
| + am__leading_dot=_
|
| +fi
|
| +rmdir .tst 2>/dev/null
|
| +
|
| +DEPDIR="${am__leading_dot}deps"
|
| +
|
| +ac_config_commands="$ac_config_commands depdir"
|
| +
|
| +
|
| +depcc="$CC" am_compiler_list=
|
| +
|
| +am_depcomp=$ac_aux_dir/depcomp
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
|
| +$as_echo_n "checking dependency style of $depcc... " >&6; }
|
| +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
|
| + $as_echo_n "(cached) " >&6
|
| +else
|
| + if test -f "$am_depcomp"; then
|
| + # We make a subdir and do the tests there. Otherwise we can end up
|
| + # making bogus files that we don't know about and never remove. For
|
| + # instance it was reported that on HP-UX the gcc test will end up
|
| + # making a dummy file named `D' -- because `-MD' means `put the output
|
| + # in D'.
|
| + mkdir conftest.dir
|
| + # Copy depcomp to subdir because otherwise we won't find it if we're
|
| + # using a relative directory.
|
| + cp "$am_depcomp" conftest.dir
|
| + cd conftest.dir
|
| + # We will build objects and dependencies in a subdirectory because
|
| + # it helps to detect inapplicable dependency modes. For instance
|
| + # both Tru64's cc and ICC support -MD to output dependencies as a
|
| + # side effect of compilation, but ICC will put the dependencies in
|
| + # the current directory while Tru64 will put them in the object
|
| + # directory.
|
| + mkdir sub
|
| +
|
| + am_cv_CC_dependencies_compiler_type=none
|
| + if test "$am_compiler_list" = ""; then
|
| + am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
| + fi
|
| + for depmode in $am_compiler_list; do
|
| + if test $depmode = none; then break; fi
|
| +
|
| + $as_echo "$as_me:$LINENO: trying $depmode" >&5
|
| + # Setup a source with many dependencies, because some compilers
|
| + # like to wrap large dependency lists on column 80 (with \), and
|
| + # we should not choose a depcomp mode which is confused by this.
|
| + #
|
| + # We need to recreate these files for each test, as the compiler may
|
| + # overwrite some of them when testing with obscure command lines.
|
| + # This happens at least with the AIX C compiler.
|
| + : > sub/conftest.c
|
| + for i in 1 2 3 4 5 6; do
|
| + echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
| + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
| + # Solaris 8's {/usr,}/bin/sh.
|
| + touch sub/conftst$i.h
|
| + done
|
| + echo "include sub/conftest.Po" > confmf
|
| +
|
| + # We check with `-c' and `-o' for the sake of the "dashmstdout"
|
| + # mode. It turns out that the SunPro C++ compiler does not properly
|
| + # handle `-M -o', and we need to detect this.
|
| + depcmd="depmode=$depmode \
|
| + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
| + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
| + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
|
| + echo "| $depcmd" | sed -e 's/ */ /g' >&5
|
| + if env $depcmd > conftest.err 2>&1 &&
|
| + grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
|
| + grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
|
| + ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
|
| + # icc doesn't choke on unknown options, it will just issue warnings
|
| + # or remarks (even with -Werror). So we grep stderr for any message
|
| + # that says an option was ignored or not supported.
|
| + # When given -MP, icc 7.0 and 7.1 complain thusly:
|
| + # icc: Command line warning: ignoring option '-M'; no argument required
|
| + # The diagnosis changed in icc 8.0:
|
| + # icc: Command line remark: option '-MP' not supported
|
| + if (grep 'ignoring option' conftest.err ||
|
| + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
| + am_cv_CC_dependencies_compiler_type=$depmode
|
| + $as_echo "$as_me:$LINENO: success" >&5
|
| + break
|
| + fi
|
| + fi
|
| + $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
|
| + sed -e 's/^/| /' < conftest.err >&5
|
| + done
|
| +
|
| + cd ..
|
| + rm -rf conftest.dir
|
| +else
|
| + am_cv_CC_dependencies_compiler_type=none
|
| +fi
|
| +
|
| +fi
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
|
| +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
|
| +if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
|
| +then as_fn_error "no usable dependency style found" "$LINENO" 5
|
| +else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
| +
|
| +fi
|
| +
|
| +
|
| +# Check for the 'make' the user wants to use.
|
| +for ac_prog in make
|
| +do
|
| + # Extract the first word of "$ac_prog", so it can be a program name with args.
|
| +set dummy $ac_prog; ac_word=$2
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
| +$as_echo_n "checking for $ac_word... " >&6; }
|
| +if test "${ac_cv_prog_MAKE+set}" = set; then :
|
| + $as_echo_n "(cached) " >&6
|
| +else
|
| + if test -n "$MAKE"; then
|
| + ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
|
| +else
|
| +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
| +for as_dir in $PATH
|
| +do
|
| + IFS=$as_save_IFS
|
| + test -z "$as_dir" && as_dir=.
|
| + for ac_exec_ext in '' $ac_executable_extensions; do
|
| + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
| + ac_cv_prog_MAKE="$ac_prog"
|
| + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
| + break 2
|
| + fi
|
| +done
|
| + done
|
| +IFS=$as_save_IFS
|
| +
|
| +fi
|
| +fi
|
| +MAKE=$ac_cv_prog_MAKE
|
| +if test -n "$MAKE"; then
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
|
| +$as_echo "$MAKE" >&6; }
|
| +else
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
| +$as_echo "no" >&6; }
|
| +fi
|
| +
|
| +
|
| + test -n "$MAKE" && break
|
| +done
|
| +
|
| +MAKE_IS_GNU=
|
| +case "`$MAKE --version 2>&1 | sed 1q`" in
|
| + *GNU*)
|
| + MAKE_IS_GNU=yes
|
| + ;;
|
| +esac
|
| + if test "$MAKE_IS_GNU" = yes; then
|
| + GMAKE_TRUE=
|
| + GMAKE_FALSE='#'
|
| +else
|
| + GMAKE_TRUE='#'
|
| + GMAKE_FALSE=
|
| +fi
|
| +
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
| +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
| +set x ${MAKE-make}
|
| +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
| +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
|
| + $as_echo_n "(cached) " >&6
|
| +else
|
| + cat >conftest.make <<\_ACEOF
|
| +SHELL = /bin/sh
|
| +all:
|
| + @echo '@@@%%%=$(MAKE)=@@@%%%'
|
| +_ACEOF
|
| +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
| +case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
| + *@@@%%%=?*=@@@%%%*)
|
| + eval ac_cv_prog_make_${ac_make}_set=yes;;
|
| + *)
|
| + eval ac_cv_prog_make_${ac_make}_set=no;;
|
| +esac
|
| +rm -f conftest.make
|
| +fi
|
| +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
| +$as_echo "yes" >&6; }
|
| + SET_MAKE=
|
| +else
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
| +$as_echo "no" >&6; }
|
| + SET_MAKE="MAKE=${MAKE-make}"
|
| +fi
|
| +
|
| +
|
| +# Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
|
| +# to find the the source subdir to be configured directly under
|
| +# gdbserver/. We need to build gnulib under some other directory not
|
| +# "gnulib", to avoid the problem of both GDB and GDBserver wanting to
|
| +# build it in the same directory, when building in the source dir.
|
| +
|
| + in_src="../gnulib"
|
| + in_build="build-gnulib-gdbserver"
|
| +
|
| + # Remove --cache-file, --srcdir, and --disable-option-checking arguments
|
| + # so they do not pile up.
|
| + ac_sub_configure_args=
|
| + ac_prev=
|
| + eval "set x $ac_configure_args"
|
| + shift
|
| + for ac_arg
|
| + do
|
| + if test -n "$ac_prev"; then
|
| + ac_prev=
|
| + continue
|
| + fi
|
| + case $ac_arg in
|
| + -cache-file | --cache-file | --cache-fil | --cache-fi \
|
| + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
| + ac_prev=cache_file ;;
|
| + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
| + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
| + | --c=*)
|
| + ;;
|
| + --config-cache | -C)
|
| + ;;
|
| + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
| + ac_prev=srcdir ;;
|
| + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
| + ;;
|
| + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
| + ac_prev=prefix ;;
|
| + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
| + ;;
|
| + --disable-option-checking)
|
| + ;;
|
| + *)
|
| + case $ac_arg in
|
| + *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
| + esac
|
| + as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
|
| + esac
|
| + done
|
| +
|
| + # Always prepend --prefix to ensure using the same prefix
|
| + # in subdir configurations.
|
| + ac_arg="--prefix=$prefix"
|
| + case $ac_arg in
|
| + *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
| + esac
|
| + ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
|
| +
|
| + # Pass --silent
|
| + if test "$silent" = yes; then
|
| + ac_sub_configure_args="--silent $ac_sub_configure_args"
|
| + fi
|
| +
|
| + # Always prepend --disable-option-checking to silence warnings, since
|
| + # different subdirs can have different --enable and --with options.
|
| + ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
|
| +
|
| + ac_popdir=`pwd`
|
| + ac_dir=$in_build
|
| +
|
| + ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
|
| + $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
|
| + $as_echo "$ac_msg" >&6
|
| + as_dir="$ac_dir"; as_fn_mkdir_p
|
| +
|
| + case $srcdir in
|
| + [\\/]* | ?:[\\/]* )
|
| + ac_srcdir=$srcdir/$in_src ;;
|
| + *) # Relative name.
|
| + ac_srcdir=../$srcdir/$in_src ;;
|
| + esac
|
| +
|
| + cd "$ac_dir"
|
| +
|
| + ac_sub_configure=$ac_srcdir/configure
|
| +
|
| + # Make the cache file name correct relative to the subdirectory.
|
| + case $cache_file in
|
| + [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
| + *) # Relative name.
|
| + ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
|
| + esac
|
| +
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
| +$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
| + # The eval makes quoting arguments work.
|
| + eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
|
| + --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
|
| + as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
|
| +
|
| + cd "$ac_popdir"
|
| +
|
| +
|
| +for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h proc_service.h sys/procfs.h linux/elf.h errno.h fcntl.h signal.h sys/file.h malloc.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h
|
| +do :
|
| + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
| +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
| +eval as_val=\$$as_ac_Header
|
| + if test "x$as_val" = x""yes; then :
|
| + cat >>confdefs.h <<_ACEOF
|
| +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
| +_ACEOF
|
| +
|
| +fi
|
| +
|
| +done
|
| +
|
| +for ac_func in pread pwrite pread64 readlink
|
| +do :
|
| + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
| +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
| +eval as_val=\$$as_ac_var
|
| + if test "x$as_val" = x""yes; then :
|
| + cat >>confdefs.h <<_ACEOF
|
| +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
| +_ACEOF
|
| +
|
| +fi
|
| +done
|
| +
|
| +for ac_func in vasprintf vsnprintf
|
| +do :
|
| + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
| +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
| +eval as_val=\$$as_ac_var
|
| + if test "x$as_val" = x""yes; then :
|
| + cat >>confdefs.h <<_ACEOF
|
| +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
| +_ACEOF
|
| +
|
| +else
|
| + case " $LIBOBJS " in
|
| + *" $ac_func.$ac_objext "* ) ;;
|
| + *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
|
| + ;;
|
| +esac
|
| +
|
| +fi
|
| +done
|
| +
|
| +
|
| +
|
| +
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
| +$as_echo_n "checking for ANSI C header files... " >&6; }
|
| +if test "${ac_cv_header_stdc+set}" = set; then :
|
| + $as_echo_n "(cached) " >&6
|
| +else
|
| + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| +/* end confdefs.h. */
|
| +#include <stdlib.h>
|
| +#include <stdarg.h>
|
| +#include <string.h>
|
| +#include <float.h>
|
| +
|
| +int
|
| +main ()
|
| +{
|
| +
|
| + ;
|
| + return 0;
|
| +}
|
| +_ACEOF
|
| +if ac_fn_c_try_compile "$LINENO"; then :
|
| + ac_cv_header_stdc=yes
|
| +else
|
| + ac_cv_header_stdc=no
|
| +fi
|
| +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
| +
|
| +if test $ac_cv_header_stdc = yes; then
|
| + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
| + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| +/* end confdefs.h. */
|
| +#include <string.h>
|
| +
|
| +_ACEOF
|
| +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
| + $EGREP "memchr" >/dev/null 2>&1; then :
|
| +
|
| +else
|
| + ac_cv_header_stdc=no
|
| +fi
|
| +rm -f conftest*
|
| +
|
| +fi
|
| +
|
| +if test $ac_cv_header_stdc = yes; then
|
| + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
| + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| +/* end confdefs.h. */
|
| +#include <stdlib.h>
|
| +
|
| +_ACEOF
|
| +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
| + $EGREP "free" >/dev/null 2>&1; then :
|
| +
|
| +else
|
| + ac_cv_header_stdc=no
|
| +fi
|
| +rm -f conftest*
|
| +
|
| +fi
|
| +
|
| +if test $ac_cv_header_stdc = yes; then
|
| + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
| + if test "$cross_compiling" = yes; then :
|
| + :
|
| +else
|
| + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| +/* end confdefs.h. */
|
| +#include <ctype.h>
|
| +#include <stdlib.h>
|
| +#if ((' ' & 0x0FF) == 0x020)
|
| +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
| +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
| +#else
|
| +# define ISLOWER(c) \
|
| + (('a' <= (c) && (c) <= 'i') \
|
| + || ('j' <= (c) && (c) <= 'r') \
|
| + || ('s' <= (c) && (c) <= 'z'))
|
| +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
| #endif
|
| -char opendir ();
|
| +
|
| +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
| int
|
| main ()
|
| {
|
| -return opendir ();
|
| - ;
|
| + int i;
|
| + for (i = 0; i < 256; i++)
|
| + if (XOR (islower (i), ISLOWER (i))
|
| + || toupper (i) != TOUPPER (i))
|
| + return 2;
|
| return 0;
|
| }
|
| _ACEOF
|
| -for ac_lib in '' x; do
|
| - if test -z "$ac_lib"; then
|
| - ac_res="none required"
|
| - else
|
| - ac_res=-l$ac_lib
|
| - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
| - fi
|
| - if ac_fn_c_try_link "$LINENO"; then :
|
| - ac_cv_search_opendir=$ac_res
|
| -fi
|
| -rm -f core conftest.err conftest.$ac_objext \
|
| - conftest$ac_exeext
|
| - if test "${ac_cv_search_opendir+set}" = set; then :
|
| - break
|
| -fi
|
| -done
|
| -if test "${ac_cv_search_opendir+set}" = set; then :
|
| +if ac_fn_c_try_run "$LINENO"; then :
|
|
|
| else
|
| - ac_cv_search_opendir=no
|
| + ac_cv_header_stdc=no
|
| fi
|
| -rm conftest.$ac_ext
|
| -LIBS=$ac_func_search_save_LIBS
|
| +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
| + conftest.$ac_objext conftest.beam conftest.$ac_ext
|
| fi
|
| -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
| -$as_echo "$ac_cv_search_opendir" >&6; }
|
| -ac_res=$ac_cv_search_opendir
|
| -if test "$ac_res" != no; then :
|
| - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
|
|
| fi
|
| -
|
| fi
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
| +$as_echo "$ac_cv_header_stdc" >&6; }
|
| +if test $ac_cv_header_stdc = yes; then
|
| +
|
| +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
|
|
| +fi
|
|
|
| -# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
| + # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
| # for constant arguments. Useless!
|
| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
|
| $as_echo_n "checking for working alloca.h... " >&6; }
|
| @@ -4273,153 +5067,42 @@ _ACEOF
|
| fi
|
|
|
|
|
| -# Check for the 'make' the user wants to use.
|
| -for ac_prog in make
|
| -do
|
| - # Extract the first word of "$ac_prog", so it can be a program name with args.
|
| -set dummy $ac_prog; ac_word=$2
|
| -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
| -$as_echo_n "checking for $ac_word... " >&6; }
|
| -if test "${ac_cv_prog_MAKE+set}" = set; then :
|
| +
|
| + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
|
| +$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
|
| +if test "${am_cv_langinfo_codeset+set}" = set; then :
|
| $as_echo_n "(cached) " >&6
|
| else
|
| - if test -n "$MAKE"; then
|
| - ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
|
| -else
|
| -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
| -for as_dir in $PATH
|
| -do
|
| - IFS=$as_save_IFS
|
| - test -z "$as_dir" && as_dir=.
|
| - for ac_exec_ext in '' $ac_executable_extensions; do
|
| - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
| - ac_cv_prog_MAKE="$ac_prog"
|
| - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
| - break 2
|
| - fi
|
| -done
|
| - done
|
| -IFS=$as_save_IFS
|
| -
|
| -fi
|
| -fi
|
| -MAKE=$ac_cv_prog_MAKE
|
| -if test -n "$MAKE"; then
|
| - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
|
| -$as_echo "$MAKE" >&6; }
|
| + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| +/* end confdefs.h. */
|
| +#include <langinfo.h>
|
| +int
|
| +main ()
|
| +{
|
| +char* cs = nl_langinfo(CODESET);
|
| + ;
|
| + return 0;
|
| +}
|
| +_ACEOF
|
| +if ac_fn_c_try_link "$LINENO"; then :
|
| + am_cv_langinfo_codeset=yes
|
| else
|
| - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
| -$as_echo "no" >&6; }
|
| + am_cv_langinfo_codeset=no
|
| fi
|
| +rm -f core conftest.err conftest.$ac_objext \
|
| + conftest$ac_exeext conftest.$ac_ext
|
|
|
| +fi
|
| +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
|
| +$as_echo "$am_cv_langinfo_codeset" >&6; }
|
| + if test $am_cv_langinfo_codeset = yes; then
|
|
|
| - test -n "$MAKE" && break
|
| -done
|
| -
|
| -
|
| -# Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
|
| -# to find the the source subdir to be configured directly under
|
| -# gdbserver/. We need to build gnulib under some other directory not
|
| -# "gnulib", to avoid the problem of both GDB and GDBserver wanting to
|
| -# build it in the same directory, when building in the source dir.
|
| -
|
| - in_src="../gnulib"
|
| - in_build="build-gnulib-gdbserver"
|
| -
|
| - # Remove --cache-file, --srcdir, and --disable-option-checking arguments
|
| - # so they do not pile up.
|
| - ac_sub_configure_args=
|
| - ac_prev=
|
| - eval "set x $ac_configure_args"
|
| - shift
|
| - for ac_arg
|
| - do
|
| - if test -n "$ac_prev"; then
|
| - ac_prev=
|
| - continue
|
| - fi
|
| - case $ac_arg in
|
| - -cache-file | --cache-file | --cache-fil | --cache-fi \
|
| - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
| - ac_prev=cache_file ;;
|
| - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
| - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
| - | --c=*)
|
| - ;;
|
| - --config-cache | -C)
|
| - ;;
|
| - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
| - ac_prev=srcdir ;;
|
| - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
| - ;;
|
| - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
| - ac_prev=prefix ;;
|
| - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
| - ;;
|
| - --disable-option-checking)
|
| - ;;
|
| - *)
|
| - case $ac_arg in
|
| - *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
| - esac
|
| - as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
|
| - esac
|
| - done
|
| -
|
| - # Always prepend --prefix to ensure using the same prefix
|
| - # in subdir configurations.
|
| - ac_arg="--prefix=$prefix"
|
| - case $ac_arg in
|
| - *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
| - esac
|
| - ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
|
| +$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
|
|
|
| - # Pass --silent
|
| - if test "$silent" = yes; then
|
| - ac_sub_configure_args="--silent $ac_sub_configure_args"
|
| fi
|
|
|
| - # Always prepend --disable-option-checking to silence warnings, since
|
| - # different subdirs can have different --enable and --with options.
|
| - ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
|
| -
|
| - ac_popdir=`pwd`
|
| - ac_dir=$in_build
|
| -
|
| - ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
|
| - $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
|
| - $as_echo "$ac_msg" >&6
|
| - as_dir="$ac_dir"; as_fn_mkdir_p
|
| -
|
| - case $srcdir in
|
| - [\\/]* | ?:[\\/]* )
|
| - ac_srcdir=$srcdir/$in_src ;;
|
| - *) # Relative name.
|
| - ac_srcdir=../$srcdir/$in_src ;;
|
| - esac
|
| -
|
| - cd "$ac_dir"
|
| -
|
| - ac_sub_configure=$ac_srcdir/configure
|
| -
|
| - # Make the cache file name correct relative to the subdirectory.
|
| - case $cache_file in
|
| - [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
| - *) # Relative name.
|
| - ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
|
| - esac
|
| -
|
| - { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
| -$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
| - # The eval makes quoting arguments work.
|
| - eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
|
| - --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
|
| - as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
|
| -
|
| - cd "$ac_popdir"
|
| -
|
|
|
| -for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h proc_service.h sys/procfs.h thread_db.h linux/elf.h stdlib.h unistd.h errno.h fcntl.h signal.h sys/file.h malloc.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h sys/wait.h sys/un.h
|
| + for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/syscall.h sys/un.h sys/wait.h thread_db.h wait.h
|
| do :
|
| as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
| ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
| @@ -4433,7 +5116,8 @@ fi
|
|
|
| done
|
|
|
| -for ac_func in pread pwrite pread64 readlink
|
| +
|
| + for ac_func in fdwalk getrlimit pipe pipe2 socketpair
|
| do :
|
| as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
| ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
| @@ -4446,25 +5130,27 @@ _ACEOF
|
| fi
|
| done
|
|
|
| -for ac_func in vasprintf vsnprintf
|
| -do :
|
| - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
| -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
| -eval as_val=\$$as_ac_var
|
| - if test "x$as_val" = x""yes; then :
|
| - cat >>confdefs.h <<_ACEOF
|
| -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
| -_ACEOF
|
|
|
| + ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
|
| +if test "x$ac_cv_have_decl_strerror" = x""yes; then :
|
| + ac_have_decl=1
|
| else
|
| - case " $LIBOBJS " in
|
| - *" $ac_func.$ac_objext "* ) ;;
|
| - *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
|
| - ;;
|
| -esac
|
| + ac_have_decl=0
|
| +fi
|
|
|
| +cat >>confdefs.h <<_ACEOF
|
| +#define HAVE_DECL_STRERROR $ac_have_decl
|
| +_ACEOF
|
| +ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
|
| +if test "x$ac_cv_have_decl_strstr" = x""yes; then :
|
| + ac_have_decl=1
|
| +else
|
| + ac_have_decl=0
|
| fi
|
| -done
|
| +
|
| +cat >>confdefs.h <<_ACEOF
|
| +#define HAVE_DECL_STRSTR $ac_have_decl
|
| +_ACEOF
|
|
|
|
|
|
|
| @@ -4569,7 +5255,7 @@ if test "${ERROR_ON_WARNING}" = yes ; then
|
| fi
|
|
|
| build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
|
| --Wformat-nonliteral -Wno-char-subscripts"
|
| +-Wformat-nonliteral -Wno-char-subscripts -Wempty-body"
|
|
|
| WARN_CFLAGS=""
|
| if test "x$GCC" = xyes
|
| @@ -4623,61 +5309,6 @@ done
|
|
|
| LIBS="$old_LIBS"
|
|
|
| -have_errno=no
|
| -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5
|
| -$as_echo_n "checking for errno... " >&6; }
|
| -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| -/* end confdefs.h. */
|
| -
|
| -#if HAVE_ERRNO_H
|
| -#include <errno.h>
|
| -#endif
|
| -int
|
| -main ()
|
| -{
|
| -static int x; x = errno;
|
| - ;
|
| - return 0;
|
| -}
|
| -_ACEOF
|
| -if ac_fn_c_try_link "$LINENO"; then :
|
| - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5
|
| -$as_echo "yes - in errno.h" >&6; };
|
| -$as_echo "#define HAVE_ERRNO 1" >>confdefs.h
|
| - have_errno=yes
|
| -fi
|
| -rm -f core conftest.err conftest.$ac_objext \
|
| - conftest$ac_exeext conftest.$ac_ext
|
| -if test $have_errno = no; then
|
| -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
| -/* end confdefs.h. */
|
| -
|
| -#if HAVE_ERRNO_H
|
| -#include <errno.h>
|
| -#endif
|
| -int
|
| -main ()
|
| -{
|
| -extern int errno; static int x; x = errno;
|
| - ;
|
| - return 0;
|
| -}
|
| -_ACEOF
|
| -if ac_fn_c_try_link "$LINENO"; then :
|
| - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
|
| -$as_echo "yes - must define" >&6; };
|
| -$as_echo "#define HAVE_ERRNO 1" >>confdefs.h
|
| -
|
| -$as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h
|
| -
|
| -else
|
| - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
| -$as_echo "no" >&6; }
|
| -fi
|
| -rm -f core conftest.err conftest.$ac_objext \
|
| - conftest$ac_exeext conftest.$ac_ext
|
| -fi
|
| -
|
| ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
|
| if test "x$ac_cv_have_decl_strerror" = x""yes; then :
|
| ac_have_decl=1
|
| @@ -4971,6 +5602,12 @@ $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
|
| fi
|
| fi
|
|
|
| +if test "${srv_linux_btrace}" = "yes"; then
|
| +
|
| +$as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
|
| +
|
| +fi
|
| +
|
| if test "$ac_cv_header_sys_procfs_h" = yes; then
|
| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
|
| $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
|
| @@ -5246,7 +5883,6 @@ LIBS="$old_LIBS"
|
|
|
| srv_thread_depfiles=
|
| srv_libs=
|
| -USE_THREAD_DB=
|
|
|
| if test "$srv_linux_thread_db" = "yes"; then
|
| if test "$ac_cv_lib_dl_dlopen" = "yes"; then
|
| @@ -5306,7 +5942,9 @@ $as_echo "$found" >&6; }
|
| fi
|
|
|
| srv_thread_depfiles="thread-db.o proc-service.o"
|
| - USE_THREAD_DB="-DUSE_THREAD_DB"
|
| +
|
| +$as_echo "#define USE_THREAD_DB 1" >>confdefs.h
|
| +
|
| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
|
| $as_echo_n "checking for TD_VERSION... " >&6; }
|
| if test "${gdbsrv_cv_have_td_version+set}" = set; then :
|
| @@ -5539,7 +6177,6 @@ fi
|
|
|
|
|
|
|
| -
|
| GNULIB=build-gnulib-gdbserver/import
|
|
|
| GNULIB_STDINT_H=
|
| @@ -5653,6 +6290,10 @@ if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
|
| as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
|
| Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
| fi
|
| +if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
|
| + as_fn_error "conditional \"GMAKE\" was never defined.
|
| +Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
| +fi
|
|
|
| : ${CONFIG_STATUS=./config.status}
|
| ac_write_fail=0
|
| @@ -6231,6 +6872,11 @@ _ASBOX
|
|
|
| _ACEOF
|
| cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
| +#
|
| +# INIT-COMMANDS
|
| +#
|
| +ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
|
| +
|
| _ACEOF
|
|
|
| cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
| @@ -6240,6 +6886,7 @@ for ac_config_target in $ac_config_targets
|
| do
|
| case $ac_config_target in
|
| "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
|
| + "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
|
| "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
| "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
|
|
|
| @@ -6786,6 +7433,7 @@ $as_echo "$as_me: executing $ac_file commands" >&6;}
|
|
|
|
|
| case $ac_file$ac_mode in
|
| + "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
|
| "default":C) case x$CONFIG_HEADERS in
|
| xconfig.h:config.in)
|
| echo > stamp-h ;;
|
|
|