Add entry for change in solib-osf.c (osf_in_dynsym_resolve_code).
[deliverable/binutils-gdb.git] / gdb / configure.in
index 6764b6edbf6747e2cf1f3b07e8d22e957f25d499..7a4020ab1bea33424d4e3b41c725bfe598572162 100644 (file)
@@ -135,7 +135,7 @@ AC_CHECK_FUNCS(setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask
 AC_FUNC_VFORK
 AC_FUNC_ALLOCA
 
-# See if machine/reg.h supports the %fs and %gs i386 segment registers.
+# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
 AC_CACHE_CHECK([for r_fs in struct reg], gdb_cv_struct_reg_r_fs,
 [AC_TRY_COMPILE([#include <machine/reg.h>], [struct reg r; r.r_fs;],
@@ -150,7 +150,7 @@ if test $gdb_cv_struct_reg_r_gs = yes; then
   AC_DEFINE(HAVE_STRUCT_REG_R_GS)
 fi
 
-dnl See if ptrace.h provides the PTRACE_GETREGS request.
+# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
 AC_MSG_CHECKING(for PTRACE_GETREGS)
 AC_CACHE_VAL(gdb_cv_have_ptrace_getregs,
 [AC_TRY_COMPILE([#include <sys/ptrace.h>],
@@ -162,7 +162,7 @@ if test $gdb_cv_have_ptrace_getregs = yes; then
   AC_DEFINE(HAVE_PTRACE_GETREGS)
 fi
 
-dnl See if ptrace.h provides the PTRACE_GETFPXREGS request.
+# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
 AC_MSG_CHECKING(for PTRACE_GETFPXREGS)
 AC_CACHE_VAL(gdb_cv_have_ptrace_getfpxregs,
 [AC_TRY_COMPILE([#include <sys/ptrace.h>],
@@ -174,6 +174,20 @@ if test $gdb_cv_have_ptrace_getfpxregs = yes; then
   AC_DEFINE(HAVE_PTRACE_GETFPXREGS)
 fi
 
+# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
+AC_MSG_CHECKING(for PT_GETDBREGS)
+AC_CACHE_VAL(gdb_cv_have_pt_getdbregs,
+[AC_TRY_COMPILE([#include <sys/types.h>
+#include <sys/ptrace.h>],
+               [PT_GETDBREGS;],
+               [gdb_cv_have_pt_getdbregs=yes],
+               [gdb_cv_have_pt_getdbregs=no])])
+AC_MSG_RESULT($gdb_cv_have_pt_getdbregs)
+if test $gdb_cv_have_pt_getdbregs = yes; then
+  AC_DEFINE(HAVE_PT_GETDBREGS)
+fi
+
+
 AC_CHECK_LIB(socket, socketpair)
 AC_CHECK_FUNCS(socketpair)
 
@@ -327,6 +341,9 @@ if test ${host} = ${target} ; then
   AC_MSG_CHECKING(for member som_addr in struct so_map)
   AC_CACHE_VAL(gdb_cv_have_struct_so_map_with_som_members,
     [AC_TRY_COMPILE([#include <sys/types.h>
+#ifdef HAVE_NLIST_H
+#include <nlist.h>
+#endif
 #include <link.h>],
                     [struct so_map lm; (void) lm.som_addr;],
                     gdb_cv_have_struct_so_map_with_som_members=yes,
@@ -590,7 +607,7 @@ UIOUT_CFLAGS=
 AC_SUBST(UIOUT_CFLAGS)
 
 AC_ARG_WITH(uiout,
-[  --with-uiout          Use new uiout functions intead of *printf's],
+[  --with-uiout          Use new uiout functions instead of *printf's],
 [case "${withval}" in
   yes)  want_uiout=true ;;
   no)   if test $enable_gdbmi = yes; then
@@ -652,10 +669,10 @@ fi
 # NOTE: If you add to this list, remember to update
 # gdb/doc/gdbint.texinfo.
 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
--Wformat -Wparentheses -Wpointer-arith"
+-Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
-# -Wchar-subscripts -Wuninitialized -Wtraditional -Wshadow -Wcast-qual
+# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
 # -Woverloaded-virtual -Winline -Werror"
@@ -1013,7 +1030,7 @@ AC_PATH_X
 # This code just checks for a few cases where we'd like to ignore those
 # definitions, even when they're present in the '.mt' file.  These cases
 # are when --disable-sim is specified, or if the simulator directory is
-# not part of the soruce tree.
+# not part of the source tree.
 #
 AC_ARG_ENABLE(sim,
 [  --enable-sim            Link gdb with simulator],
@@ -1159,7 +1176,7 @@ nativefile=`sed -n '
 s/NAT_FILE[    ]*=[    ]*\([^  ]*\)/\1/p
 ' ${host_makefile_frag}`
 # else
-# GDBserver is only useful in a "native" enviroment
+# GDBserver is only useful in a "native" environment
 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
 fi
 changequote([,])
@@ -1178,14 +1195,14 @@ fi
 if test x"${GDB_MULTI_ARCH}" != x ; then
     AC_DEFINE_UNQUOTED(GDB_MULTI_ARCH, ${GDB_MULTI_ARCH})
 fi
-# Warn the user when they use an old pratice
+# Warn the user when they use an old practice
 case "${GDB_MULTI_ARCH}" in
     "" ) ;;
     0 | GDB_MULTI_ARCH_PARTIAL | 1 | GDB_MULTI_ARCH_TM | 2 )
        AC_MSG_WARN("GDB: Target is not pure multi-arch") ;;
     GDB_MULTI_ARCH_PURE )
        if test x"${targetfile}" != x ; then
-           AC_MSG_WARN("GDB: Ingoring TM_FILE in ${target_makefile_frag}")
+           AC_MSG_WARN("GDB: Ignoring TM_FILE in ${target_makefile_frag}")
            targetfile=""
        fi ;;
     *)  AC_MSG_ERROR("GDB: Unknown GDB_MULTI_ARCH value ${GDB_MULTI_ARCH}");;
This page took 0.024854 seconds and 4 git commands to generate.