aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog10
-rw-r--r--gdb/acconfig.h12
-rw-r--r--gdb/config.in734
-rwxr-xr-xgdb/configure94
-rw-r--r--gdb/configure.ac119
5 files changed, 531 insertions, 438 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f3d53d5..8285dc8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,8 +1,18 @@
+2005-01-21 Mark Kettenis <kettenis@gnu.org>
+
+ * configure.ac: Modernize checks for `long long' and `long double'
+ support.
+ * configure: Regenerated.
+ * acconfig.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG)
+ (PRINT_HAS_LONG_DOUBLE, SCANF_HAS_LONG_DOUBLE): Remove undefs.
+ * config.in: Regenerated.
+
2005-01-20 Mark Kettenis <kettenis@gnu.org>
* acconfig.h (HAVE_STRUCT_SAVE_STATE_T)
(HAVE_STRUCT_MEMBER_SS_WIDE): Remove undefs.
* configure.ac: Remove checks for HP-UX save_state structure.
+
* configure: Regenerated.
2005-01-19 Andrew Cagney <cagney@gnu.org>
diff --git a/gdb/acconfig.h b/gdb/acconfig.h
index a7f055d..19bf539 100644
--- a/gdb/acconfig.h
+++ b/gdb/acconfig.h
@@ -83,18 +83,6 @@
/* Define if ioctl argument PIOCSET is available. */
#undef HAVE_PROCFS_PIOCSET
-/* Define if the `long long' type works. */
-#undef CC_HAS_LONG_LONG
-
-/* Define if the "ll" format works to print long long ints. */
-#undef PRINTF_HAS_LONG_LONG
-
-/* Define if the "%Lg" format works to print long doubles. */
-#undef PRINTF_HAS_LONG_DOUBLE
-
-/* Define if the "%Lg" format works to scan long doubles. */
-#undef SCANF_HAS_LONG_DOUBLE
-
/* Define if using Solaris thread debugging. */
#undef HAVE_THREAD_DB_LIB
diff --git a/gdb/config.in b/gdb/config.in
index 8f0c8bf..9c3aa5e 100644
--- a/gdb/config.in
+++ b/gdb/config.in
@@ -1,89 +1,59 @@
-/* config.in. Generated automatically from configure.in by autoheader. */
-
-/* Define if on AIX 3.
- System headers sometimes define this.
- We just want to avoid a redefinition error message. */
-#ifndef _ALL_SOURCE
-#undef _ALL_SOURCE
+/* config.in. Generated from configure.ac by autoheader. */
+/* Enable GNU extensions on systems that have them. */
+#ifndef _GNU_SOURCE
+# undef _GNU_SOURCE
#endif
-/* Define if using alloca.c. */
-#undef C_ALLOCA
-
-/* Define to empty if the keyword does not work. */
-#undef const
-
-/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
- This function is required for alloca.c support on those systems. */
-#undef CRAY_STACKSEG_END
-
-/* Define if you have alloca, as a function or macro. */
-#undef HAVE_ALLOCA
-
-/* Define if you have <alloca.h> and it should be used (not on Ultrix). */
-#undef HAVE_ALLOCA_H
-
-/* Define if the `long double' type works. */
-#undef HAVE_LONG_DOUBLE
-
-/* Define if you have a working `mmap' system call. */
-#undef HAVE_MMAP
+/* Define if your struct reg has r_fs. */
+#undef HAVE_STRUCT_REG_R_FS
-/* Define if you have <vfork.h>. */
-#undef HAVE_VFORK_H
+/* Define if your struct stat has st_blocks. */
+#undef HAVE_STRUCT_STAT_ST_BLOCKS
-/* Define as __inline if that's what the C compiler calls it. */
-#undef inline
+/* Define if your struct reg has r_gs. */
+#undef HAVE_STRUCT_REG_R_GS
-/* Define to `long' if <sys/types.h> doesn't define. */
-#undef off_t
+/* Define if pstatus_t type is available */
+#undef HAVE_PSTATUS_T
-/* Define to `int' if <sys/types.h> doesn't define. */
-#undef pid_t
+/* Define if prrun_t type is available */
+#undef HAVE_PRRUN_T
-/* Define if you need to in order for stat and other things to work. */
-#undef _POSIX_SOURCE
+/* Define if fpregset_t type is available. */
+#undef HAVE_FPREGSET_T
-/* Define as the return type of signal handlers (int or void). */
-#undef RETSIGTYPE
+/* Define if gregset_t type is available. */
+#undef HAVE_GREGSET_T
-/* Define if the `setpgrp' function takes no argument. */
-#undef SETPGRP_VOID
+/* Define if <sys/procfs.h> has prgregset_t. */
+#undef HAVE_PRGREGSET_T
-/* Define to `unsigned' if <sys/types.h> doesn't define. */
-#undef size_t
+/* Define if <sys/procfs.h> has prfpregset_t. */
+#undef HAVE_PRFPREGSET_T
-/* If using the C implementation of alloca, define if you know the
- direction of stack growth for your system; otherwise it will be
- automatically deduced at run-time.
- STACK_DIRECTION > 0 => grows toward higher addresses
- STACK_DIRECTION < 0 => grows toward lower addresses
- STACK_DIRECTION = 0 => direction of growth unknown
- */
-#undef STACK_DIRECTION
+/* Define if <sys/procfs.h> has lwpid_t. */
+#undef HAVE_LWPID_T
-/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */
-#undef STAT_MACROS_BROKEN
+/* Define if <sys/procfs.h> has psaddr_t. */
+#undef HAVE_PSADDR_T
-/* Define if you have the ANSI C header files. */
-#undef STDC_HEADERS
+/* Define if <sys/procfs.h> has prgregset32_t. */
+#undef HAVE_PRGREGSET32_T
-/* Define vfork as fork if vfork does not work. */
-#undef vfork
+/* Define if <sys/procfs.h> has prfpregset32_t. */
+#undef HAVE_PRFPREGSET32_T
-/* Enable GNU extensions on systems that have them. */
-#ifndef _GNU_SOURCE
-# undef _GNU_SOURCE
-#endif
+/* Define if <sys/procfs.h> has prsysent_t */
+#undef HAVE_PRSYSENT_T
-/* Define if your struct reg has r_fs. */
-#undef HAVE_STRUCT_REG_R_FS
+/* Define if <sys/procfs.h> has pr_sigset_t */
+#undef HAVE_PR_SIGSET_T
-/* Define if your struct stat has st_blocks. */
-#undef HAVE_STRUCT_STAT_ST_BLOCKS
+/* Define if <sys/procfs.h> has pr_sigaction64_t */
+#undef HAVE_PR_SIGACTION64_T
-/* Define if your struct reg has r_gs. */
-#undef HAVE_STRUCT_REG_R_GS
+/* Define if <sys/procfs.h> has pr_siginfo64_t */
+#undef HAVE_PR_SIGINFO64_T
/* Define if <link.h> exists and defines struct link_map which has
members with an ``l_'' prefix. (For Solaris, SVR4, and
@@ -114,21 +84,12 @@
/* Define if ioctl argument PIOCSET is available. */
#undef HAVE_PROCFS_PIOCSET
-/* Define if the `long long' type works. */
-#undef CC_HAS_LONG_LONG
-
-/* Define if the "ll" format works to print long long ints. */
-#undef PRINTF_HAS_LONG_LONG
-
-/* Define if the "%Lg" format works to print long doubles. */
-#undef PRINTF_HAS_LONG_DOUBLE
-
-/* Define if the "%Lg" format works to scan long doubles. */
-#undef SCANF_HAS_LONG_DOUBLE
-
/* Define if using Solaris thread debugging. */
#undef HAVE_THREAD_DB_LIB
+/* Define if you support the tkill syscall. */
+#undef HAVE_TKILL_SYSCALL
+
/* Define on a GNU/Linux system to work around problems in sys/procfs.h. */
#undef START_INFERIOR_TRAPS_EXPECTED
#undef sys_quotactl
@@ -136,6 +97,24 @@
/* Define if you have HPUX threads */
#undef HAVE_HPUX_THREAD_SUPPORT
+/* Define to 1 if NLS is requested. */
+#undef ENABLE_NLS
+
+/* Define as 1 if you have catgets and don't want to use GNU gettext. */
+#undef HAVE_CATGETS
+
+/* Define as 1 if you have gettext and don't want to use GNU gettext. */
+#undef HAVE_GETTEXT
+
+/* Define as 1 if you have the stpcpy function. */
+#undef HAVE_STPCPY
+
+/* Define if your locale.h file contains LC_MESSAGES. */
+#undef HAVE_LC_MESSAGES
+
+/* Define if you want to use the full-screen terminal user interface. */
+#undef TUI
+
/* Define if <proc_service.h> on solaris uses int instead of
size_t, and assorted other type changes. */
#undef PROC_SERVICE_IS_OLD
@@ -143,12 +122,6 @@
/* Define if the simulator is being linked in. */
#undef WITH_SIM
-/* Set to true if the save_state_t structure is present */
-#undef HAVE_STRUCT_SAVE_STATE_T
-
-/* Set to true if the save_state_t structure has the ss_wide member */
-#undef HAVE_STRUCT_MEMBER_SS_WIDE
-
/* Define if <sys/ptrace.h> defines the PTRACE_GETREGS request. */
#undef HAVE_PTRACE_GETREGS
@@ -179,330 +152,428 @@
#undef _KMEMUSER
#endif
-/* Define if you have the __argz_count function. */
-#undef HAVE___ARGZ_COUNT
+/* Define to 1 if the compiler supports long long. */
+#undef CC_HAS_LONG_LONG
-/* Define if you have the __argz_next function. */
-#undef HAVE___ARGZ_NEXT
+/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
+ systems. This function is required for `alloca.c' support on those systems.
+ */
+#undef CRAY_STACKSEG_END
-/* Define if you have the __argz_stringify function. */
-#undef HAVE___ARGZ_STRINGIFY
+/* Define to 1 if using `alloca.c'. */
+#undef C_ALLOCA
-/* Define if you have the _mcleanup function. */
-#undef HAVE__MCLEANUP
+/* Global directory for separate debug files. */
+#undef DEBUGDIR
-/* Define if you have the canonicalize_file_name function. */
-#undef HAVE_CANONICALIZE_FILE_NAME
+/* Define to BFD's default architecture. */
+#undef DEFAULT_BFD_ARCH
-/* Define if you have the dcgettext function. */
-#undef HAVE_DCGETTEXT
+/* Define to BFD's default target vector. */
+#undef DEFAULT_BFD_VEC
-/* Define if you have the getcwd function. */
-#undef HAVE_GETCWD
+/* Define to 1 if NLS is requested */
+#undef ENABLE_NLS
-/* Define if you have the getpagesize function. */
-#undef HAVE_GETPAGESIZE
+/* Define to be a string naming the default host character set. */
+#undef GDB_DEFAULT_HOST_CHARSET
-/* Define if you have the monstartup function. */
-#undef HAVE_MONSTARTUP
+/* Host double floatformat */
+#undef GDB_HOST_DOUBLE_FORMAT
-/* Define if you have the munmap function. */
-#undef HAVE_MUNMAP
+/* Host float floatformat */
+#undef GDB_HOST_FLOAT_FORMAT
-/* Define if you have the poll function. */
-#undef HAVE_POLL
+/* Host long double floatformat */
+#undef GDB_HOST_LONG_DOUBLE_FORMAT
-/* Define if you have the pread64 function. */
-#undef HAVE_PREAD64
+/* Define to the default OS ABI for this configuration. */
+#undef GDB_OSABI_DEFAULT
-/* Define if you have the putenv function. */
-#undef HAVE_PUTENV
+/* Define to 1 if you have `alloca', as a function or macro. */
+#undef HAVE_ALLOCA
-/* Define if you have the realpath function. */
-#undef HAVE_REALPATH
+/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
+ */
+#undef HAVE_ALLOCA_H
-/* Define if you have the sbrk function. */
-#undef HAVE_SBRK
+/* Define to 1 if you have the <argz.h> header file. */
+#undef HAVE_ARGZ_H
-/* Define if you have the setenv function. */
-#undef HAVE_SETENV
+/* Define to 1 if you have the `canonicalize_file_name' function. */
+#undef HAVE_CANONICALIZE_FILE_NAME
-/* Define if you have the setlocale function. */
-#undef HAVE_SETLOCALE
+/* Define to 1 if you have the <ctype.h> header file. */
+#undef HAVE_CTYPE_H
-/* Define if you have the setpgid function. */
-#undef HAVE_SETPGID
+/* Define to 1 if you have the <cursesX.h> header file. */
+#undef HAVE_CURSESX_H
-/* Define if you have the setpgrp function. */
-#undef HAVE_SETPGRP
+/* Define to 1 if you have the <curses.h> header file. */
+#undef HAVE_CURSES_H
-/* Define if you have the sigaction function. */
-#undef HAVE_SIGACTION
+/* Define to 1 if you have the `dcgettext' function. */
+#undef HAVE_DCGETTEXT
-/* Define if you have the sigprocmask function. */
-#undef HAVE_SIGPROCMASK
+/* Define to 1 if we found this declaration otherwise define to 0. */
+#undef HAVE_DECL_GETOPT
-/* Define if you have the sigsetmask function. */
-#undef HAVE_SIGSETMASK
+/* Define to 1 if we found this declaration otherwise define to 0. */
+#undef HAVE_DECL_PTRACE
-/* Define if you have the socketpair function. */
-#undef HAVE_SOCKETPAIR
+/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
+ */
+#undef HAVE_DIRENT_H
-/* Define if you have the stpcpy function. */
-#undef HAVE_STPCPY
+/* Define to 1 if you have the `fork' function. */
+#undef HAVE_FORK
-/* Define if you have the strcasecmp function. */
-#undef HAVE_STRCASECMP
+/* Define if <sys/procfs.h> has fpregset_t. */
+#undef HAVE_FPREGSET_T
-/* Define if you have the strchr function. */
-#undef HAVE_STRCHR
+/* Define to 1 if you have the `getcwd' function. */
+#undef HAVE_GETCWD
-/* Define if you have the syscall function. */
-#undef HAVE_SYSCALL
+/* Define to 1 if you have the `getpagesize' function. */
+#undef HAVE_GETPAGESIZE
-/* Define if you have the ttrace function. */
-#undef HAVE_TTRACE
+/* Define as 1 if you have gettext and don't want to use GNU gettext. */
+#undef HAVE_GETTEXT
-/* Define if you have the wborder function. */
-#undef HAVE_WBORDER
+/* Define to 1 if you have the <gnu/libc-version.h> header file. */
+#undef HAVE_GNU_LIBC_VERSION_H
-/* Define if you have the <argz.h> header file. */
-#undef HAVE_ARGZ_H
+/* Define if <sys/procfs.h> has gregset_t. */
+#undef HAVE_GREGSET_T
-/* Define if you have the <ctype.h> header file. */
-#undef HAVE_CTYPE_H
+/* Define if you have the iconv() function. */
+#undef HAVE_ICONV
-/* Define if you have the <curses.h> header file. */
-#undef HAVE_CURSES_H
+/* Define to 1 if you have the <inttypes.h> header file. */
+#undef HAVE_INTTYPES_H
-/* Define if you have the <cursesX.h> header file. */
-#undef HAVE_CURSESX_H
+/* Define if your locale.h file contains LC_MESSAGES. */
+#undef HAVE_LC_MESSAGES
-/* Define if you have the <dirent.h> header file. */
-#undef HAVE_DIRENT_H
+/* Define to 1 if you have the `dl' library (-ldl). */
+#undef HAVE_LIBDL
-/* Define if you have the <gnu/libc-version.h> header file. */
-#undef HAVE_GNU_LIBC_VERSION_H
+/* Define to 1 if you have the `m' library (-lm). */
+#undef HAVE_LIBM
+
+/* Define to 1 if you have the <libunwind.h> header file. */
+#undef HAVE_LIBUNWIND_H
-/* Define if you have the <libunwind-ia64.h> header file. */
+/* Define to 1 if you have the <libunwind-ia64.h> header file. */
#undef HAVE_LIBUNWIND_IA64_H
-/* Define if you have the <libunwind.h> header file. */
-#undef HAVE_LIBUNWIND_H
+/* Define to 1 if you have the `w' library (-lw). */
+#undef HAVE_LIBW
-/* Define if you have the <limits.h> header file. */
+/* Define to 1 if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H
-/* Define if you have the <link.h> header file. */
+/* Define to 1 if you have the <link.h> header file. */
#undef HAVE_LINK_H
-/* Define if you have the <locale.h> header file. */
+/* Define to 1 if you have the <locale.h> header file. */
#undef HAVE_LOCALE_H
-/* Define if you have the <machine/reg.h> header file. */
+/* Define to 1 if the compiler supports long double. */
+#undef HAVE_LONG_DOUBLE
+
+/* Define if <sys/procfs.h> has lwpid_t. */
+#undef HAVE_LWPID_T
+
+/* Define to 1 if you have the <machine/reg.h> header file. */
#undef HAVE_MACHINE_REG_H
-/* Define if you have the <malloc.h> header file. */
+/* Define to 1 if you have the <malloc.h> header file. */
#undef HAVE_MALLOC_H
-/* Define if you have the <memory.h> header file. */
+/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
-/* Define if you have the <ncurses.h> header file. */
+/* Define to 1 if you have a working `mmap' system call. */
+#undef HAVE_MMAP
+
+/* Define to 1 if you have the `monstartup' function. */
+#undef HAVE_MONSTARTUP
+
+/* Define to 1 if you have the `munmap' function. */
+#undef HAVE_MUNMAP
+
+/* Define to 1 if you have the <ncurses.h> header file. */
#undef HAVE_NCURSES_H
-/* Define if you have the <ncurses/ncurses.h> header file. */
+/* Define to 1 if you have the <ncurses/ncurses.h> header file. */
#undef HAVE_NCURSES_NCURSES_H
-/* Define if you have the <ncurses/term.h> header file. */
+/* Define to 1 if you have the <ncurses/term.h> header file. */
#undef HAVE_NCURSES_TERM_H
-/* Define if you have the <ndir.h> header file. */
+/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
#undef HAVE_NDIR_H
-/* Define if you have the <nl_types.h> header file. */
+/* Define to 1 if you have the <nlist.h> header file. */
+#undef HAVE_NLIST_H
+
+/* Define to 1 if you have the <nl_types.h> header file. */
#undef HAVE_NL_TYPES_H
-/* Define if you have the <nlist.h> header file. */
-#undef HAVE_NLIST_H
+/* Define to 1 if you have the `poll' function. */
+#undef HAVE_POLL
-/* Define if you have the <poll.h> header file. */
+/* Define to 1 if you have the <poll.h> header file. */
#undef HAVE_POLL_H
-/* Define if you have the <proc_service.h> header file. */
+/* Define to 1 if you have the `pread64' function. */
+#undef HAVE_PREAD64
+
+/* Define if <sys/procfs.h> has prfpregset32_t. */
+#undef HAVE_PRFPREGSET32_T
+
+/* Define if <sys/procfs.h> has prfpregset_t. */
+#undef HAVE_PRFPREGSET_T
+
+/* Define if <sys/procfs.h> has prgregset32_t. */
+#undef HAVE_PRGREGSET32_T
+
+/* Define if <sys/procfs.h> has prgregset_t. */
+#undef HAVE_PRGREGSET_T
+
+/* Define to 1 if you have the <proc_service.h> header file. */
#undef HAVE_PROC_SERVICE_H
-/* Define if you have the <ptrace.h> header file. */
+/* Define if <sys/procfs.h> has prrun_t. */
+#undef HAVE_PRRUN_T
+
+/* Define if <sys/procfs.h> has prsysent_t. */
+#undef HAVE_PRSYSENT_T
+
+/* Define if <sys/procfs.h> has pr_sigaction64_t. */
+#undef HAVE_PR_SIGACTION64_T
+
+/* Define if <sys/procfs.h> has pr_siginfo64_t. */
+#undef HAVE_PR_SIGINFO64_T
+
+/* Define if <sys/procfs.h> has pr_sigset_t. */
+#undef HAVE_PR_SIGSET_T
+
+/* Define if <sys/procfs.h> has psaddr_t. */
+#undef HAVE_PSADDR_T
+
+/* Define if <sys/procfs.h> has pstatus_t. */
+#undef HAVE_PSTATUS_T
+
+/* Define to 1 if you have the <ptrace.h> header file. */
#undef HAVE_PTRACE_H
-/* Define if you have the <sgtty.h> header file. */
+/* Define to 1 if you have the `putenv' function. */
+#undef HAVE_PUTENV
+
+/* Define to 1 if you have the `realpath' function. */
+#undef HAVE_REALPATH
+
+/* Define to 1 if you have the `sbrk' function. */
+#undef HAVE_SBRK
+
+/* Define to 1 if you have the `setenv' function. */
+#undef HAVE_SETENV
+
+/* Define to 1 if you have the `setlocale' function. */
+#undef HAVE_SETLOCALE
+
+/* Define to 1 if you have the `setpgid' function. */
+#undef HAVE_SETPGID
+
+/* Define to 1 if you have the `setpgrp' function. */
+#undef HAVE_SETPGRP
+
+/* Define to 1 if you have the <sgtty.h> header file. */
#undef HAVE_SGTTY_H
-/* Define if you have the <stddef.h> header file. */
+/* Define to 1 if you have the `sigaction' function. */
+#undef HAVE_SIGACTION
+
+/* Define to 1 if you have the `sigprocmask' function. */
+#undef HAVE_SIGPROCMASK
+
+/* Define if sigsetjmp is available. */
+#undef HAVE_SIGSETJMP
+
+/* Define to 1 if you have the `sigsetmask' function. */
+#undef HAVE_SIGSETMASK
+
+/* Define to 1 if you have the `socketpair' function. */
+#undef HAVE_SOCKETPAIR
+
+/* Define to 1 if you have the <stddef.h> header file. */
#undef HAVE_STDDEF_H
-/* Define if you have the <stdint.h> header file. */
+/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
-/* Define if you have the <stdlib.h> header file. */
+/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
-/* Define if you have the <string.h> header file. */
-#undef HAVE_STRING_H
+/* Define if you have the stpcpy function */
+#undef HAVE_STPCPY
+
+/* Define to 1 if you have the `strcasecmp' function. */
+#undef HAVE_STRCASECMP
-/* Define if you have the <strings.h> header file. */
+/* Define to 1 if you have the `strchr' function. */
+#undef HAVE_STRCHR
+
+/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
-/* Define if you have the <sys/debugreg.h> header file. */
+/* Define to 1 if you have the <string.h> header file. */
+#undef HAVE_STRING_H
+
+/* Define to 1 if your system has struct lwp. */
+#undef HAVE_STRUCT_LWP
+
+/* Define to 1 if your system has struct reg in <machine/reg.h>. */
+#undef HAVE_STRUCT_REG
+
+/* Define to 1 if your system has td_pcb in struct thread. */
+#undef HAVE_STRUCT_THREAD_TD_PCB
+
+/* Define to 1 if you have the `syscall' function. */
+#undef HAVE_SYSCALL
+
+/* Define to 1 if you have the <sys/debugreg.h> header file. */
#undef HAVE_SYS_DEBUGREG_H
-/* Define if you have the <sys/dir.h> header file. */
+/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
+ */
#undef HAVE_SYS_DIR_H
-/* Define if you have the <sys/fault.h> header file. */
+/* Define to 1 if you have the <sys/fault.h> header file. */
#undef HAVE_SYS_FAULT_H
-/* Define if you have the <sys/file.h> header file. */
+/* Define to 1 if you have the <sys/file.h> header file. */
#undef HAVE_SYS_FILE_H
-/* Define if you have the <sys/filio.h> header file. */
+/* Define to 1 if you have the <sys/filio.h> header file. */
#undef HAVE_SYS_FILIO_H
-/* Define if you have the <sys/ioctl.h> header file. */
+/* Define to 1 if you have the <sys/ioctl.h> header file. */
#undef HAVE_SYS_IOCTL_H
-/* Define if you have the <sys/ndir.h> header file. */
+/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
+ */
#undef HAVE_SYS_NDIR_H
-/* Define if you have the <sys/param.h> header file. */
+/* Define to 1 if you have the <sys/param.h> header file. */
#undef HAVE_SYS_PARAM_H
-/* Define if you have the <sys/poll.h> header file. */
+/* Define to 1 if you have the <sys/poll.h> header file. */
#undef HAVE_SYS_POLL_H
-/* Define if you have the <sys/proc.h> header file. */
-#undef HAVE_SYS_PROC_H
-
-/* Define if you have the <sys/procfs.h> header file. */
+/* Define to 1 if you have the <sys/procfs.h> header file. */
#undef HAVE_SYS_PROCFS_H
-/* Define if you have the <sys/ptrace.h> header file. */
+/* Define to 1 if you have the <sys/proc.h> header file. */
+#undef HAVE_SYS_PROC_H
+
+/* Define to 1 if you have the <sys/ptrace.h> header file. */
#undef HAVE_SYS_PTRACE_H
-/* Define if you have the <sys/reg.h> header file. */
+/* Define to 1 if you have the <sys/reg.h> header file. */
#undef HAVE_SYS_REG_H
-/* Define if you have the <sys/select.h> header file. */
+/* Define to 1 if you have the <sys/select.h> header file. */
#undef HAVE_SYS_SELECT_H
-/* Define if you have the <sys/syscall.h> header file. */
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#undef HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the <sys/syscall.h> header file. */
#undef HAVE_SYS_SYSCALL_H
-/* Define if you have the <sys/types.h> header file. */
+/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
-/* Define if you have the <sys/user.h> header file. */
+/* Define to 1 if you have the <sys/user.h> header file. */
#undef HAVE_SYS_USER_H
-/* Define if you have the <sys/wait.h> header file. */
+/* Define to 1 if you have the <sys/wait.h> header file. */
#undef HAVE_SYS_WAIT_H
-/* Define if you have the <term.h> header file. */
-#undef HAVE_TERM_H
+/* Define to 1 if you have the <termios.h> header file. */
+#undef HAVE_TERMIOS_H
-/* Define if you have the <termio.h> header file. */
+/* Define to 1 if you have the <termio.h> header file. */
#undef HAVE_TERMIO_H
-/* Define if you have the <termios.h> header file. */
-#undef HAVE_TERMIOS_H
+/* Define to 1 if you have the <term.h> header file. */
+#undef HAVE_TERM_H
-/* Define if you have the <thread_db.h> header file. */
+/* Define to 1 if you have the <thread_db.h> header file. */
#undef HAVE_THREAD_DB_H
-/* Define if you have the <time.h> header file. */
+/* Define to 1 if you have the <time.h> header file. */
#undef HAVE_TIME_H
-/* Define if you have the <unistd.h> header file. */
-#undef HAVE_UNISTD_H
-
-/* Define if you have the <values.h> header file. */
-#undef HAVE_VALUES_H
-
-/* Define if you have the <wait.h> header file. */
-#undef HAVE_WAIT_H
-
-/* Define if you have the dl library (-ldl). */
-#undef HAVE_LIBDL
+/* Define if we can use the tkill syscall. */
+#undef HAVE_TKILL_SYSCALL
-/* Define if you have the m library (-lm). */
-#undef HAVE_LIBM
+/* Define to 1 if you have the `ttrace' function. */
+#undef HAVE_TTRACE
-/* Define if you have the w library (-lw). */
-#undef HAVE_LIBW
+/* Define if <stdint.h> provides the uintptr_t type. */
+#undef HAVE_UINTPTR_T
-/* Define if you have the stpcpy function */
-#undef HAVE_STPCPY
+/* Define to 1 if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
-/* Define if your locale.h file contains LC_MESSAGES. */
-#undef HAVE_LC_MESSAGES
+/* Define to 1 if you have the <values.h> header file. */
+#undef HAVE_VALUES_H
-/* Define to 1 if NLS is requested */
-#undef ENABLE_NLS
+/* Define to 1 if you have the `vfork' function. */
+#undef HAVE_VFORK
-/* Define as 1 if you have gettext and don't want to use GNU gettext. */
-#undef HAVE_GETTEXT
+/* Define to 1 if you have the <vfork.h> header file. */
+#undef HAVE_VFORK_H
-/* Name of this package. */
-#undef PACKAGE
+/* Define to 1 if you have the <wait.h> header file. */
+#undef HAVE_WAIT_H
-/* Global directory for separate debug files. */
-#undef DEBUGDIR
+/* Define to 1 if you have the `wborder' function. */
+#undef HAVE_WBORDER
-/* Define to BFD's default architecture. */
-#undef DEFAULT_BFD_ARCH
+/* Define to 1 if `fork' works. */
+#undef HAVE_WORKING_FORK
-/* Define to BFD's default target vector. */
-#undef DEFAULT_BFD_VEC
+/* Define to 1 if `vfork' works. */
+#undef HAVE_WORKING_VFORK
-/* Define to 1 if your system has the _etext variable. */
+/* Define to 1 if your system has the _etext variable. */
#undef HAVE__ETEXT
-/* Define to 1 to avoid a clash between <widec.h> and <wchar.h> on
- Solaris 2.[789] when using GCC. */
-#undef _MSE_INT_H
-
-/* Define to 1 if we found this declaration otherwise define to 0. */
-#undef HAVE_DECL_GETOPT
-
-/* Define to 1 if we found this declaration otherwise define to 0. */
-#undef HAVE_DECL_PTRACE
-
-/* Define as the return type of ptrace. */
-#undef PTRACE_TYPE_RET
-
-/* Define to the type of arg 3 for ptrace. */
-#undef PTRACE_TYPE_ARG3
-
-/* Define to the type of arg 5 for ptrace. */
-#undef PTRACE_TYPE_ARG5
+/* Define to 1 if you have the `_mcleanup' function. */
+#undef HAVE__MCLEANUP
-/* Define if sigsetjmp is available. */
-#undef HAVE_SIGSETJMP
+/* Define to 1 if you have the `__argz_count' function. */
+#undef HAVE___ARGZ_COUNT
-/* Define to 1 if the regex included in libiberty should be used. */
-#undef USE_INCLUDED_REGEX
+/* Define to 1 if you have the `__argz_next' function. */
+#undef HAVE___ARGZ_NEXT
-/* Define to 1 if your system has td_pcb in struct thread. */
-#undef HAVE_STRUCT_THREAD_TD_PCB
+/* Define to 1 if you have the `__argz_stringify' function. */
+#undef HAVE___ARGZ_STRINGIFY
-/* Define to 1 if your system has struct lwp. */
-#undef HAVE_STRUCT_LWP
+/* Define as const if the declaration of iconv() needs const. */
+#undef ICONV_CONST
-/* Define to 1 if your system has struct reg in <machine/reg.h>. */
-#undef HAVE_STRUCT_REG
+/* Define if canonicalize_file_name is not declared in system header files. */
+#undef NEED_DECLARATION_CANONICALIZE_FILE_NAME
-/* Define if <stdint.h> provides the uintptr_t type. */
-#undef HAVE_UINTPTR_T
+/* Define if free is not declared in system header files. */
+#undef NEED_DECLARATION_FREE
/* Define if malloc is not declared in system header files. */
#undef NEED_DECLARATION_MALLOC
@@ -510,87 +581,106 @@
/* Define if realloc is not declared in system header files. */
#undef NEED_DECLARATION_REALLOC
-/* Define if free is not declared in system header files. */
-#undef NEED_DECLARATION_FREE
+/* Define if strdup is not declared in system header files. */
+#undef NEED_DECLARATION_STRDUP
/* Define if strerror is not declared in system header files. */
#undef NEED_DECLARATION_STRERROR
-/* Define if strdup is not declared in system header files. */
-#undef NEED_DECLARATION_STRDUP
-
/* Define if strstr is not declared in system header files. */
#undef NEED_DECLARATION_STRSTR
-/* Define if canonicalize_file_name is not declared in system header files. */
-#undef NEED_DECLARATION_CANONICALIZE_FILE_NAME
+/* Name of this package. */
+#undef PACKAGE
-/* Define if <sys/procfs.h> has pstatus_t. */
-#undef HAVE_PSTATUS_T
+/* Define to the address where bug reports for this package should be sent. */
+#undef PACKAGE_BUGREPORT
-/* Define if <sys/procfs.h> has prrun_t. */
-#undef HAVE_PRRUN_T
+/* Define to the full name of this package. */
+#undef PACKAGE_NAME
-/* Define if <sys/procfs.h> has gregset_t. */
-#undef HAVE_GREGSET_T
+/* Define to the full name and version of this package. */
+#undef PACKAGE_STRING
-/* Define if <sys/procfs.h> has fpregset_t. */
-#undef HAVE_FPREGSET_T
+/* Define to the one symbol short name of this package. */
+#undef PACKAGE_TARNAME
-/* Define if <sys/procfs.h> has prgregset_t. */
-#undef HAVE_PRGREGSET_T
+/* Define to the version of this package. */
+#undef PACKAGE_VERSION
-/* Define if <sys/procfs.h> has prfpregset_t. */
-#undef HAVE_PRFPREGSET_T
+/* Define to 1 if the "%Lg" format works to print long doubles. */
+#undef PRINTF_HAS_LONG_DOUBLE
-/* Define if <sys/procfs.h> has prgregset32_t. */
-#undef HAVE_PRGREGSET32_T
+/* Define to 1 if the "%ll" format works to print long longs. */
+#undef PRINTF_HAS_LONG_LONG
-/* Define if <sys/procfs.h> has prfpregset32_t. */
-#undef HAVE_PRFPREGSET32_T
+/* Define to the type of arg 3 for ptrace. */
+#undef PTRACE_TYPE_ARG3
-/* Define if <sys/procfs.h> has lwpid_t. */
-#undef HAVE_LWPID_T
+/* Define to the type of arg 5 for ptrace. */
+#undef PTRACE_TYPE_ARG5
-/* Define if <sys/procfs.h> has psaddr_t. */
-#undef HAVE_PSADDR_T
+/* Define as the return type of ptrace. */
+#undef PTRACE_TYPE_RET
-/* Define if <sys/procfs.h> has prsysent_t. */
-#undef HAVE_PRSYSENT_T
+/* Define as the return type of signal handlers (`int' or `void'). */
+#undef RETSIGTYPE
-/* Define if <sys/procfs.h> has pr_sigset_t. */
-#undef HAVE_PR_SIGSET_T
+/* Define to 1 if the "%Lg" format works to scan long doubles. */
+#undef SCANF_HAS_LONG_DOUBLE
-/* Define if <sys/procfs.h> has pr_sigaction64_t. */
-#undef HAVE_PR_SIGACTION64_T
+/* Define to 1 if the `setpgrp' function takes no argument. */
+#undef SETPGRP_VOID
-/* Define if <sys/procfs.h> has pr_siginfo64_t. */
-#undef HAVE_PR_SIGINFO64_T
+/* If using the C implementation of alloca, define if you know the
+ direction of stack growth for your system; otherwise it will be
+ automatically deduced at run-time.
+ STACK_DIRECTION > 0 => grows toward higher addresses
+ STACK_DIRECTION < 0 => grows toward lower addresses
+ STACK_DIRECTION = 0 => direction of growth unknown */
+#undef STACK_DIRECTION
+
+/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
+#undef STAT_MACROS_BROKEN
+
+/* Define to 1 if you have the ANSI C header files. */
+#undef STDC_HEADERS
/* Define if <thread_db.h> has the TD_NOTALLOC error code. */
#undef THREAD_DB_HAS_TD_NOTALLOC
-/* Define if we can use the tkill syscall. */
-#undef HAVE_TKILL_SYSCALL
+/* Define to 1 if the regex included in libiberty should be used. */
+#undef USE_INCLUDED_REGEX
-/* Host float floatformat */
-#undef GDB_HOST_FLOAT_FORMAT
+/* Define to 1 if on AIX 3.
+ System headers sometimes define this.
+ We just want to avoid a redefinition error message. */
+#ifndef _ALL_SOURCE
+# undef _ALL_SOURCE
+#endif
-/* Host double floatformat */
-#undef GDB_HOST_DOUBLE_FORMAT
+/*
+ [Define], [to], [1], [to], [avoid], [a], [clash], [between], [<widec.h>], [and], [<wchar.h>], [on], [Solaris], [2.[789]], [when], [using], [GCC.], []
+ */
+#undef _MSE_INT_H
-/* Host long double floatformat */
-#undef GDB_HOST_LONG_DOUBLE_FORMAT
+/* Define to empty if `const' does not conform to ANSI C. */
+#undef const
-/* Define to the default OS ABI for this configuration. */
-#undef GDB_OSABI_DEFAULT
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+ calls it, or to nothing if 'inline' is not supported under any name. */
+#ifndef __cplusplus
+#undef inline
+#endif
-/* Define to be a string naming the default host character set. */
-#undef GDB_DEFAULT_HOST_CHARSET
+/* Define to `long' if <sys/types.h> does not define. */
+#undef off_t
-/* Define if you have the iconv() function. */
-#undef HAVE_ICONV
+/* Define to `int' if <sys/types.h> does not define. */
+#undef pid_t
-/* Define as const if the declaration of iconv() needs const. */
-#undef ICONV_CONST
+/* Define to `unsigned' if <sys/types.h> does not define. */
+#undef size_t
+/* Define as `fork' if `vfork' does not work. */
+#undef vfork
diff --git a/gdb/configure b/gdb/configure
index a681022..8759ad1 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -18859,6 +18859,7 @@ _ACEOF
fi
fi
+# Check if the compiler supports the `long long' type.
echo "$as_me:$LINENO: checking for long long support in compiler" >&5
echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
@@ -18871,14 +18872,11 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-
+extern long long foo;
int
main ()
{
-
- extern long long foo;
- switch (foo & 2) { case 0: return 1; }
-
+switch (foo & 2) { case 0: return 1; }
;
return 0;
}
@@ -18914,16 +18912,17 @@ gdb_cv_c_long_long=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
-
echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
echo "${ECHO_T}$gdb_cv_c_long_long" >&6
if test $gdb_cv_c_long_long = yes; then
- cat >>confdefs.h <<\_ACEOF
+
+cat >>confdefs.h <<\_ACEOF
#define CC_HAS_LONG_LONG 1
_ACEOF
fi
+# Check if the compiler and runtime support printing long longs.
echo "$as_me:$LINENO: checking for long long support in printf" >&5
echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
@@ -18939,9 +18938,11 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-
-int main () {
- char buf[32];
+$ac_includes_default
+int
+main ()
+{
+char buf[32];
long long l = 0;
l = (l << 16) + 0x0123;
l = (l << 16) + 0x4567;
@@ -18949,6 +18950,8 @@ int main () {
l = (l << 16) + 0xcdef;
sprintf (buf, "0x%016llx", l);
return (strcmp ("0x0123456789abcdef", buf));
+ ;
+ return 0;
}
_ACEOF
rm -f conftest$ac_exeext
@@ -18974,20 +18977,24 @@ fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
-
+echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
+echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
if test $gdb_cv_printf_has_long_long = yes; then
- cat >>confdefs.h <<\_ACEOF
+
+cat >>confdefs.h <<\_ACEOF
#define PRINTF_HAS_LONG_LONG 1
_ACEOF
fi
-echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
-echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
+# Check if the compiler supports the `long double' type. We can't use
+# AC_C_LONG_DOUBLE because that one does additional checks on the
+# constants defined in <float.h> that fail on some systems,
+# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
echo "$as_me:$LINENO: checking for long double support in compiler" >&5
echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
-if test "${ac_cv_c_long_double+set}" = set; then
+if test "${gdb_cv_c_long_double+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
@@ -18996,14 +19003,7 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-
-int
-main ()
-{
long double foo;
- ;
- return 0;
-}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
@@ -19027,25 +19027,26 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_c_long_double=yes
+ gdb_cv_c_long_double=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_cv_c_long_double=no
+gdb_cv_c_long_double=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
+echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
+echo "${ECHO_T}$gdb_cv_c_long_double" >&6
+if test $gdb_cv_c_long_double = yes; then
-echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
-echo "${ECHO_T}$ac_cv_c_long_double" >&6
-if test $ac_cv_c_long_double = yes; then
- cat >>confdefs.h <<\_ACEOF
+cat >>confdefs.h <<\_ACEOF
#define HAVE_LONG_DOUBLE 1
_ACEOF
fi
+# Check if the compiler and runtime support printing long doubles.
echo "$as_me:$LINENO: checking for long double support in printf" >&5
echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
@@ -19061,12 +19062,16 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-
-int main () {
- char buf[16];
+$ac_includes_default
+int
+main ()
+{
+char buf[16];
long double f = 3.141592653;
sprintf (buf, "%Lg", f);
return (strncmp ("3.14159", buf, 7));
+ ;
+ return 0;
}
_ACEOF
rm -f conftest$ac_exeext
@@ -19092,16 +19097,17 @@ fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
-
+echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
+echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
if test $gdb_cv_printf_has_long_double = yes; then
- cat >>confdefs.h <<\_ACEOF
+
+cat >>confdefs.h <<\_ACEOF
#define PRINTF_HAS_LONG_DOUBLE 1
_ACEOF
fi
-echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
-echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
+# Check if the compiler and runtime support scanning long doubles.
echo "$as_me:$LINENO: checking for long double support in scanf" >&5
echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
@@ -19117,12 +19123,16 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-
-int main () {
- char *buf = "3.141592653";
+#include <stdio.h>
+int
+main ()
+{
+char *buf = "3.141592653";
long double f = 0;
sscanf (buf, "%Lg", &f);
return !(f > 3.14159 && f < 3.14160);
+ ;
+ return 0;
}
_ACEOF
rm -f conftest$ac_exeext
@@ -19148,15 +19158,15 @@ fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
-
+echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
+echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
if test $gdb_cv_scanf_has_long_double = yes; then
- cat >>confdefs.h <<\_ACEOF
+
+cat >>confdefs.h <<\_ACEOF
#define SCANF_HAS_LONG_DOUBLE 1
_ACEOF
fi
-echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
-echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
case ${host_os} in
aix*)
diff --git a/gdb/configure.ac b/gdb/configure.ac
index f30fbc3..c079ac0 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -862,93 +862,88 @@ if test ${host} = ${target} ; then
fi
fi
-dnl See if compiler supports "long long" type.
-
-AC_MSG_CHECKING(for long long support in compiler)
-AC_CACHE_VAL(gdb_cv_c_long_long,
-[AC_TRY_COMPILE(, [
- extern long long foo;
- switch (foo & 2) { case 0: return 1; }
-],
-gdb_cv_c_long_long=yes, gdb_cv_c_long_long=no)])
-AC_MSG_RESULT($gdb_cv_c_long_long)
+# Check if the compiler supports the `long long' type.
+
+AC_CACHE_CHECK([for long long support in compiler], gdb_cv_c_long_long,
+ [AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+[[extern long long foo;]],
+[[switch (foo & 2) { case 0: return 1; }]])],
+ gdb_cv_c_long_long=yes,
+ gdb_cv_c_long_long=no)])
if test $gdb_cv_c_long_long = yes; then
- AC_DEFINE(CC_HAS_LONG_LONG)
+ AC_DEFINE(CC_HAS_LONG_LONG, 1,
+ [Define to 1 if the compiler supports long long.])
fi
-dnl See if the compiler and runtime support printing long long
+# Check if the compiler and runtime support printing long longs.
-AC_MSG_CHECKING(for long long support in printf)
-AC_CACHE_VAL(gdb_cv_printf_has_long_long,
-[AC_TRY_RUN([
-int main () {
- char buf[32];
+AC_CACHE_CHECK([for long long support in printf],
+ gdb_cv_printf_has_long_long,
+ [AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
+[[char buf[32];
long long l = 0;
l = (l << 16) + 0x0123;
l = (l << 16) + 0x4567;
l = (l << 16) + 0x89ab;
l = (l << 16) + 0xcdef;
sprintf (buf, "0x%016llx", l);
- return (strcmp ("0x0123456789abcdef", buf));
-}],
-gdb_cv_printf_has_long_long=yes,
-gdb_cv_printf_has_long_long=no,
-gdb_cv_printf_has_long_long=no)])
+ return (strcmp ("0x0123456789abcdef", buf));]])],
+ gdb_cv_printf_has_long_long=yes,
+ gdb_cv_printf_has_long_long=no,
+ gdb_cv_printf_has_long_long=no)])
if test $gdb_cv_printf_has_long_long = yes; then
- AC_DEFINE(PRINTF_HAS_LONG_LONG)
+ AC_DEFINE(PRINTF_HAS_LONG_LONG, 1,
+ [Define to 1 if the "%ll" format works to print long longs.])
fi
-AC_MSG_RESULT($gdb_cv_printf_has_long_long)
-
-dnl See if compiler supports "long double" type. Can't use AC_C_LONG_DOUBLE
-dnl because autoconf complains about cross-compilation issues. However, this
-dnl code uses the same variables as the macro for compatibility.
-
-AC_MSG_CHECKING(for long double support in compiler)
-AC_CACHE_VAL(ac_cv_c_long_double,
-[AC_TRY_COMPILE(, [long double foo;],
-ac_cv_c_long_double=yes, ac_cv_c_long_double=no)])
-AC_MSG_RESULT($ac_cv_c_long_double)
-if test $ac_cv_c_long_double = yes; then
- AC_DEFINE(HAVE_LONG_DOUBLE)
+
+# Check if the compiler supports the `long double' type. We can't use
+# AC_C_LONG_DOUBLE because that one does additional checks on the
+# constants defined in <float.h> that fail on some systems,
+# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
+
+AC_CACHE_CHECK([for long double support in compiler], gdb_cv_c_long_double,
+ [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[long double foo;]])],
+ gdb_cv_c_long_double=yes,
+ gdb_cv_c_long_double=no)])
+if test $gdb_cv_c_long_double = yes; then
+ AC_DEFINE(HAVE_LONG_DOUBLE, 1,
+ [Define to 1 if the compiler supports long double.])
fi
-dnl See if the compiler and runtime support printing long doubles
+# Check if the compiler and runtime support printing long doubles.
-AC_MSG_CHECKING(for long double support in printf)
-AC_CACHE_VAL(gdb_cv_printf_has_long_double,
-[AC_TRY_RUN([
-int main () {
- char buf[16];
+AC_CACHE_CHECK([for long double support in printf],
+ gdb_cv_printf_has_long_double,
+ [AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
+[[char buf[16];
long double f = 3.141592653;
sprintf (buf, "%Lg", f);
- return (strncmp ("3.14159", buf, 7));
-}],
-gdb_cv_printf_has_long_double=yes,
-gdb_cv_printf_has_long_double=no,
-gdb_cv_printf_has_long_double=no)])
+ return (strncmp ("3.14159", buf, 7));]])],
+ gdb_cv_printf_has_long_double=yes,
+ gdb_cv_printf_has_long_double=no,
+ gdb_cv_printf_has_long_double=no)])
if test $gdb_cv_printf_has_long_double = yes; then
- AC_DEFINE(PRINTF_HAS_LONG_DOUBLE)
+ AC_DEFINE(PRINTF_HAS_LONG_DOUBLE, 1,
+ [Define to 1 if the "%Lg" format works to print long doubles.])
fi
-AC_MSG_RESULT($gdb_cv_printf_has_long_double)
-dnl See if the compiler and runtime support scanning long doubles
+# Check if the compiler and runtime support scanning long doubles.
-AC_MSG_CHECKING(for long double support in scanf)
-AC_CACHE_VAL(gdb_cv_scanf_has_long_double,
-[AC_TRY_RUN([
-int main () {
- char *buf = "3.141592653";
+AC_CACHE_CHECK([for long double support in scanf],
+ gdb_cv_scanf_has_long_double,
+ [AC_RUN_IFELSE([AC_LANG_PROGRAM(
+[[#include <stdio.h>]],
+[[char *buf = "3.141592653";
long double f = 0;
sscanf (buf, "%Lg", &f);
- return !(f > 3.14159 && f < 3.14160);
-}],
-gdb_cv_scanf_has_long_double=yes,
-gdb_cv_scanf_has_long_double=no,
-gdb_cv_scanf_has_long_double=no)])
+ return !(f > 3.14159 && f < 3.14160);]])],
+ gdb_cv_scanf_has_long_double=yes,
+ gdb_cv_scanf_has_long_double=no,
+ gdb_cv_scanf_has_long_double=no)])
if test $gdb_cv_scanf_has_long_double = yes; then
- AC_DEFINE(SCANF_HAS_LONG_DOUBLE)
+ AC_DEFINE(SCANF_HAS_LONG_DOUBLE, 1,
+ [Define to 1 if the "%Lg" format works to scan long doubles.])
fi
-AC_MSG_RESULT($gdb_cv_scanf_has_long_double)
case ${host_os} in
aix*)