AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/..)
AC_CANONICAL_SYSTEM
+dnl gdb doesn't use gettext, but bfd does. We call this to ensure we
+dnl link with the correct libraries.
+ALL_LINGUAS=
+CY_GNU_GETTEXT
+
dnl List of object files added by configure.
CONFIG_OBS=
AC_C_CONST
AC_CHECK_FUNCS(setpgid sbrk select poll sigaction)
+AC_FUNC_ALLOCA
-# If we are configured native on Linux, work around problems with sys/procfs.h
+# If we are configured native on GNU/Linux, work around problems with sys/procfs.h
if test "${target}" = "${host}"; then
case "${host}" in
i[[3456]]86-*-linux*)
BFD_NEED_DECLARATION(realloc)
BFD_NEED_DECLARATION(free)
+BFD_NEED_DECLARATION(strerror)
+
dnl See if thread_db library is around for Solaris thread debugging. Note that
dnl we must explicitly test for version 1 of the library because version 0
dnl (present on Solaris 2.4 or earlier) doesn't have the same API.
configdir="unix"
+GDBTKLIBS=
if test "${enable_gdbtk}" = "yes"; then
CY_AC_PATH_TCLCONFIG
fi
# Yes, the ordering seems wrong here. But it isn't.
# TK_LIBS is the list of libraries that need to be linked
- # after Tcl/Tk.
- LIBS="${LIBS} ${TCL_LIBS} ${TK_LIBS}"
+ # after Tcl/Tk. Note that this isn't put into LIBS. If it
+ # were in LIBS then any link tests after this point would
+ # try to include things like `$(LIBGUI)', which wouldn't work.
+ GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
CONFIG_OBS="${CONFIG_OBS} gdbtk.o"
if test x$gdb_cv_os_cygwin32 = xyes; then
AC_SUBST(X_LIBS)
AC_SUBST(TIXLIB)
AC_SUBST(TIX_DEPS)
+AC_SUBST(GDBTKLIBS)
# end-sanitize-gdbtk
AC_PATH_X