OLD | NEW |
1 dnl Autoconf configure script for GDB, the GNU debugger. | 1 dnl Autoconf configure script for GDB, the GNU debugger. |
2 dnl Copyright (C) 1995-2012 Free Software Foundation, Inc. | 2 dnl Copyright (C) 1995-2012 Free Software Foundation, Inc. |
3 dnl | 3 dnl |
4 dnl This file is part of GDB. | 4 dnl This file is part of GDB. |
5 dnl | 5 dnl |
6 dnl This program is free software; you can redistribute it and/or modify | 6 dnl This program is free software; you can redistribute it and/or modify |
7 dnl it under the terms of the GNU General Public License as published by | 7 dnl it under the terms of the GNU General Public License as published by |
8 dnl the Free Software Foundation; either version 3 of the License, or | 8 dnl the Free Software Foundation; either version 3 of the License, or |
9 dnl (at your option) any later version. | 9 dnl (at your option) any later version. |
10 dnl | 10 dnl |
11 dnl This program is distributed in the hope that it will be useful, | 11 dnl This program is distributed in the hope that it will be useful, |
12 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 dnl GNU General Public License for more details. | 14 dnl GNU General Public License for more details. |
15 dnl | 15 dnl |
16 dnl You should have received a copy of the GNU General Public License | 16 dnl You should have received a copy of the GNU General Public License |
17 dnl along with this program. If not, see <http://www.gnu.org/licenses/>. | 17 dnl along with this program. If not, see <http://www.gnu.org/licenses/>. |
18 | 18 |
19 dnl Process this file with autoconf to produce a configure script. | 19 dnl Process this file with autoconf to produce a configure script. |
20 | 20 |
21 AC_PREREQ(2.59)dnl | 21 AC_PREREQ(2.59)dnl |
22 AC_INIT(main.c) | 22 AC_INIT(main.c) |
23 AC_CONFIG_HEADER(config.h:config.in) | 23 AC_CONFIG_HEADER(config.h:config.in) |
24 AM_MAINTAINER_MODE | 24 AM_MAINTAINER_MODE |
25 | 25 |
| 26 # Provide more thorough testing by -lmcheck. |
| 27 # Set it to 'true' for development snapshots, 'false' for releases or |
| 28 # pre-releases. |
| 29 development=false |
| 30 |
26 AC_PROG_CC | 31 AC_PROG_CC |
27 AC_USE_SYSTEM_EXTENSIONS | 32 AC_USE_SYSTEM_EXTENSIONS |
28 gl_EARLY | |
29 ACX_LARGEFILE | 33 ACX_LARGEFILE |
30 AM_PROG_CC_STDC | 34 AM_PROG_CC_STDC |
31 | 35 |
32 AC_CONFIG_AUX_DIR(..) | 36 AC_CONFIG_AUX_DIR(..) |
33 AC_CANONICAL_SYSTEM | 37 AC_CANONICAL_SYSTEM |
| 38 AC_ARG_PROGRAM |
34 | 39 |
35 # Dependency checking. | 40 # Dependency checking. |
36 ZW_CREATE_DEPDIR | 41 ZW_CREATE_DEPDIR |
37 ZW_PROG_COMPILER_DEPENDENCIES([CC]) | 42 ZW_PROG_COMPILER_DEPENDENCIES([CC]) |
38 | 43 |
39 # Check for the 'make' the user wants to use. | 44 # Check for the 'make' the user wants to use. |
40 AC_CHECK_PROGS(MAKE, make) | 45 AC_CHECK_PROGS(MAKE, make) |
41 MAKE_IS_GNU= | 46 MAKE_IS_GNU= |
42 case "`$MAKE --version 2>&1 | sed 1q`" in | 47 case "`$MAKE --version 2>&1 | sed 1q`" in |
43 *GNU*) | 48 *GNU*) |
44 MAKE_IS_GNU=yes | 49 MAKE_IS_GNU=yes |
45 ;; | 50 ;; |
46 esac | 51 esac |
47 AM_CONDITIONAL(GMAKE, test "$MAKE_IS_GNU" = yes) | 52 AM_CONDITIONAL(GMAKE, test "$MAKE_IS_GNU" = yes) |
48 AC_PROG_MAKE_SET | 53 AC_PROG_MAKE_SET |
49 | 54 |
| 55 # Configure gnulib. We need to build gnulib under some other |
| 56 # directory not "gnulib", to avoid the problem of both GDB and |
| 57 # GDBserver wanting to build it in the same directory, when building |
| 58 # in the source dir. |
| 59 ACX_CONFIGURE_DIR(["gnulib"], ["build-gnulib"]) |
| 60 |
50 dnl List of object files and targets accumulated by configure. | 61 dnl List of object files and targets accumulated by configure. |
51 | 62 |
52 CONFIG_OBS= | 63 CONFIG_OBS= |
53 CONFIG_DEPS= | 64 CONFIG_DEPS= |
54 CONFIG_SRCS= | 65 CONFIG_SRCS= |
55 ENABLE_CFLAGS= | 66 ENABLE_CFLAGS= |
56 | 67 |
57 CONFIG_ALL= | 68 CONFIG_ALL= |
58 CONFIG_CLEAN= | 69 CONFIG_CLEAN= |
59 CONFIG_INSTALL= | 70 CONFIG_INSTALL= |
60 CONFIG_UNINSTALL= | 71 CONFIG_UNINSTALL= |
61 | 72 |
62 dnl Set up for gettext. | 73 dnl Set up for gettext. |
63 ZW_GNU_GETTEXT_SISTER_DIR | 74 ZW_GNU_GETTEXT_SISTER_DIR |
64 | 75 |
65 localedir='${datadir}/locale' | 76 localedir='${datadir}/locale' |
66 AC_SUBST(localedir) | 77 AC_SUBST(localedir) |
67 | 78 |
68 if test x"$USE_NLS" = xyes; then | 79 if test x"$USE_NLS" = xyes; then |
69 CONFIG_ALL="$CONFIG_ALL all-po" | 80 CONFIG_ALL="$CONFIG_ALL all-po" |
70 CONFIG_CLEAN="$CONFIG_CLEAN clean-po" | 81 CONFIG_CLEAN="$CONFIG_CLEAN clean-po" |
71 CONFIG_INSTALL="$CONFIG_INSTALL install-po" | 82 CONFIG_INSTALL="$CONFIG_INSTALL install-po" |
72 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po" | 83 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po" |
73 fi | 84 fi |
74 | 85 |
75 gl_INIT | 86 GNULIB=build-gnulib/import |
76 | 87 |
77 # For Makefile dependencies. | 88 # For Makefile dependencies. |
78 GNULIB_STDINT_H= | 89 GNULIB_STDINT_H= |
79 if test x"$STDINT_H" != x; then | 90 if test x"$STDINT_H" != x; then |
80 GNULIB_STDINT_H=gnulib/$STDINT_H | 91 GNULIB_STDINT_H=$GNULIB/$STDINT_H |
81 fi | 92 fi |
82 AC_SUBST(GNULIB_STDINT_H) | 93 AC_SUBST(GNULIB_STDINT_H) |
83 | 94 |
84 PACKAGE=gdb | 95 PACKAGE=gdb |
85 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of this package. ]) | 96 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of this package. ]) |
86 AC_SUBST(PACKAGE) | 97 AC_SUBST(PACKAGE) |
87 | 98 |
88 # We never need to detect it in this sub-configure. | 99 # We never need to detect it in this sub-configure. |
89 # But preserve it for config.status --recheck. | 100 # But preserve it for config.status --recheck. |
90 AC_ARG_VAR(MAKEINFO, | 101 AC_ARG_VAR(MAKEINFO, |
91 [Parent configure detects if it is of sufficient version.]) | 102 [Parent configure detects if it is of sufficient version.]) |
92 AC_ARG_VAR(MAKEINFOFLAGS, | 103 AC_ARG_VAR(MAKEINFOFLAGS, |
93 [Parameters for MAKEINFO.]) | 104 [Parameters for MAKEINFO.]) |
94 | 105 |
95 MAKEINFO_EXTRA_FLAGS="" | 106 MAKEINFO_EXTRA_FLAGS="" |
96 AC_CACHE_CHECK([whether $MAKEINFO supports @click], gdb_cv_have_makeinfo_click, | 107 AC_CACHE_CHECK([whether $MAKEINFO supports @click], gdb_cv_have_makeinfo_click, |
97 [echo '@clicksequence{a @click{} b}' >conftest.texinfo | 108 [echo '@clicksequence{a @click{} b}' >conftest.texinfo |
98 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then | 109 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then |
99 gdb_cv_have_makeinfo_click=yes | 110 gdb_cv_have_makeinfo_click=yes |
100 else | 111 else |
101 gdb_cv_have_makeinfo_click=no | 112 gdb_cv_have_makeinfo_click=no |
102 fi]) | 113 fi]) |
103 if test x"$gdb_cv_have_makeinfo_click" = xyes; then | 114 if test x"$gdb_cv_have_makeinfo_click" = xyes; then |
104 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK" | 115 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK" |
105 fi | 116 fi |
106 AC_SUBST(MAKEINFO_EXTRA_FLAGS) | 117 AC_SUBST(MAKEINFO_EXTRA_FLAGS) |
107 | 118 |
108 # GDB does not use automake, but gnulib does. This line lets us | |
109 # generate its Makefile.in. | |
110 AM_INIT_AUTOMAKE(gdb, UNUSED-VERSION, [no-define]) | |
111 | |
112 GDB_AC_WITH_DIR(DEBUGDIR, separate-debug-dir, | 119 GDB_AC_WITH_DIR(DEBUGDIR, separate-debug-dir, |
113 [look for global separate debug info in this path @<:@LIBDIR/debug@:>@], | 120 [look for global separate debug info in this path @<:@LIBDIR/debug@:>@], |
114 [${libdir}/debug]) | 121 [${libdir}/debug]) |
115 | 122 |
| 123 # We can't pass paths as command line arguments. |
| 124 # Mingw32 tries to be clever and will convert the paths for us. |
| 125 # For example -DBINDIR="/usr/local/bin" passed on the command line may get |
| 126 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin". |
| 127 # This breaks GDB's relocatable path conversions since paths passed in |
| 128 # config.h would not get so translated, the path prefixes no longer match. |
| 129 AC_DEFINE_DIR(BINDIR, bindir, [Directory of programs.]) |
| 130 |
116 # GDB's datadir relocation | 131 # GDB's datadir relocation |
117 | 132 |
118 GDB_AC_WITH_DIR(GDB_DATADIR, gdb-datadir, | 133 GDB_AC_WITH_DIR(GDB_DATADIR, gdb-datadir, |
119 [look for global separate data files in this path @<:@DATADIR/gdb@:>@], | 134 [look for global separate data files in this path @<:@DATADIR/gdb@:>@], |
120 [${datadir}/gdb]) | 135 [${datadir}/gdb]) |
121 | 136 |
122 AC_ARG_WITH(relocated-sources, | 137 AC_ARG_WITH(relocated-sources, |
123 AS_HELP_STRING([--with-relocated-sources=PATH], [automatically relocate this pat
h for source files]), | 138 AS_HELP_STRING([--with-relocated-sources=PATH], [automatically relocate this pat
h for source files]), |
124 [reloc_srcdir="${withval}" | 139 [reloc_srcdir="${withval}" |
125 AC_DEFINE_DIR(RELOC_SRCDIR, reloc_srcdir, | 140 AC_DEFINE_DIR(RELOC_SRCDIR, reloc_srcdir, |
126 [Relocated directory for source files. ]) | 141 [Relocated directory for source files. ]) |
127 ]) | 142 ]) |
128 | 143 |
| 144 AC_MSG_CHECKING([for default auto-load directory]) |
| 145 AC_ARG_WITH(auto-load-dir, |
| 146 AS_HELP_STRING([--with-auto-load-dir=PATH], |
| 147 [directories from which to load auto-loaded scripts @<:@$debugdir:$datadir/aut
o-load@:>@]),, |
| 148 [with_auto_load_dir='$debugdir:$datadir/auto-load']) |
| 149 escape_dir=`echo $with_auto_load_dir | sed 's/[[$]]\(datadir\|debugdir\)\>/\\\\\
\\\\\\\&/g'` |
| 150 AC_DEFINE_DIR(AUTO_LOAD_DIR, escape_dir, |
| 151 [Directories from which to load auto-loaded scripts.]) |
| 152 AC_MSG_RESULT([$with_auto_load_dir]) |
| 153 |
| 154 AC_MSG_CHECKING([for default auto-load safe-path]) |
| 155 AC_ARG_WITH(auto-load-safe-path, |
| 156 AS_HELP_STRING([--with-auto-load-safe-path=PATH], |
| 157 [directories safe to hold auto-loaded files @<:@--with-auto-load-dir@:>@]) |
| 158 AS_HELP_STRING([--without-auto-load-safe-path], |
| 159 [do not restrict auto-loaded files locations]), |
| 160 [if test "$with_auto_load_safe_path" = "no"; then |
| 161 with_auto_load_safe_path="/" |
| 162 fi], |
| 163 [with_auto_load_safe_path="$with_auto_load_dir"]) |
| 164 escape_dir=`echo $with_auto_load_safe_path | sed 's/[[$]]\(datadir\|debugdir\)\>
/\\\\\\\\\\\\&/g'` |
| 165 AC_DEFINE_DIR(AUTO_LOAD_SAFE_PATH, escape_dir, |
| 166 [Directories safe to hold auto-loaded files.]) |
| 167 AC_MSG_RESULT([$with_auto_load_safe_path]) |
| 168 |
129 AC_CONFIG_SUBDIRS(testsuite) | 169 AC_CONFIG_SUBDIRS(testsuite) |
130 | 170 |
131 # Check whether to support alternative target configurations | 171 # Check whether to support alternative target configurations |
132 AC_ARG_ENABLE(targets, | 172 AC_ARG_ENABLE(targets, |
133 AS_HELP_STRING([--enable-targets=TARGETS], [alternative target configurations]), | 173 AS_HELP_STRING([--enable-targets=TARGETS], [alternative target configurations]), |
134 [case "${enableval}" in | 174 [case "${enableval}" in |
135 yes | "") AC_ERROR(enable-targets option must specify target names or 'all') | 175 yes | "") AC_ERROR(enable-targets option must specify target names or 'all') |
136 ;; | 176 ;; |
137 no) enable_targets= ;; | 177 no) enable_targets= ;; |
138 *) enable_targets=$enableval ;; | 178 *) enable_targets=$enableval ;; |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 else | 353 else |
314 enable_gdbtk=no | 354 enable_gdbtk=no |
315 fi]) | 355 fi]) |
316 # We unconditionally disable gdbtk tests on selected platforms. | 356 # We unconditionally disable gdbtk tests on selected platforms. |
317 case $host_os in | 357 case $host_os in |
318 go32* | windows*) | 358 go32* | windows*) |
319 AC_MSG_WARN([gdbtk isn't supported on $host; disabling]) | 359 AC_MSG_WARN([gdbtk isn't supported on $host; disabling]) |
320 enable_gdbtk=no ;; | 360 enable_gdbtk=no ;; |
321 esac | 361 esac |
322 | 362 |
323 # Libunwind support. | 363 # Libunwind support for ia64. |
324 AC_ARG_WITH(libunwind, | 364 |
325 AS_HELP_STRING([--with-libunwind], [use libunwind frame unwinding support]), | 365 AC_ARG_WITH(libunwind-ia64, |
326 [case "${withval}" in | 366 AS_HELP_STRING([--with-libunwind-ia64], |
327 yes) enable_libunwind=yes ;; | 367 » [use libunwind frame unwinding for ia64 targets]),, |
328 no) enable_libunwind=no ;; | 368 » [with_libunwind_ia64=auto]) |
329 *) AC_MSG_ERROR(bad value ${withval} for GDB with-libunwind option) ;; | 369 |
330 esac],[ | 370 # Backward compatibility option. |
331 AC_CHECK_HEADERS(libunwind.h libunwind-ia64.h) | 371 if test "${with_libunwind+set}" = set; then |
332 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_
h" = xyes; then | 372 if test x"$with_libunwind_ia64" != xauto; then |
333 enable_libunwind=yes; | 373 AC_MSG_ERROR( |
| 374 [option --with-libunwind is deprecated, use --with-libunwind-ia64]) |
334 fi | 375 fi |
335 ]) | 376 AC_MSG_WARN([option --with-libunwind is deprecated, use --with-libunwind-ia64]
) |
336 | 377 with_libunwind_ia64="$with_libunwind" |
337 if test x"$enable_libunwind" = xyes; then | 378 fi |
338 AC_CHECK_HEADERS(libunwind.h libunwind-ia64.h) | 379 |
339 AC_DEFINE(HAVE_LIBUNWIND, 1, [Define if libunwind library is being used.]) | 380 case "$with_libunwind_ia64" in |
340 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o" | 381 yes | no) |
341 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o" | 382 ;; |
342 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c" | 383 auto) |
| 384 AC_CHECK_HEADERS(libunwind-ia64.h) |
| 385 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h |
| 386 ;; |
| 387 *) |
| 388 AC_MSG_ERROR( |
| 389 [bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option]) |
| 390 ;; |
| 391 esac |
| 392 |
| 393 if test x"$with_libunwind_ia64" = xyes; then |
| 394 AC_CHECK_HEADERS(libunwind-ia64.h) |
| 395 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then |
| 396 AC_MSG_ERROR([GDB option --with-libunwind-ia64 requires libunwind-ia64.h]) |
| 397 fi |
| 398 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o" |
| 399 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o" |
| 400 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c" |
343 fi | 401 fi |
344 | 402 |
345 opt_curses=no | 403 opt_curses=no |
346 AC_ARG_WITH(curses, AS_HELP_STRING([--with-curses], [use the curses library inst
ead of the termcap library]), opt_curses=$withval) | 404 AC_ARG_WITH(curses, AS_HELP_STRING([--with-curses], [use the curses library inst
ead of the termcap library]), opt_curses=$withval) |
347 | 405 |
348 prefer_curses=no | 406 prefer_curses=no |
349 if test "$opt_curses" = "yes"; then | 407 if test "$opt_curses" = "yes"; then |
350 prefer_curses=yes | 408 prefer_curses=yes |
351 fi | 409 fi |
352 | 410 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 | 582 |
525 # Check whether we should enable the TUI, but only do so if we really | 583 # Check whether we should enable the TUI, but only do so if we really |
526 # can. | 584 # can. |
527 if test x"$enable_tui" != xno; then | 585 if test x"$enable_tui" != xno; then |
528 if test -d $srcdir/tui; then | 586 if test -d $srcdir/tui; then |
529 if test "$curses_found" != no; then | 587 if test "$curses_found" != no; then |
530 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" | 588 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" |
531 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" | 589 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" |
532 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" | 590 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" |
533 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" | 591 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" |
534 CONFIG_ALL="${CONFIG_ALL} all-tui" | |
535 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui" | |
536 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui" | |
537 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui" | |
538 else | 592 else |
539 if test x"$enable_tui" = xyes; then | 593 if test x"$enable_tui" = xyes; then |
540 AC_MSG_ERROR([no enhanced curses library found; disable TUI]) | 594 AC_MSG_ERROR([no enhanced curses library found; disable TUI]) |
541 else | 595 else |
542 AC_MSG_WARN([no enhanced curses library found; disabling TUI]) | 596 AC_MSG_WARN([no enhanced curses library found; disabling TUI]) |
543 fi | 597 fi |
544 fi | 598 fi |
545 fi | 599 fi |
546 fi | 600 fi |
547 | 601 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 READLINE='$(READLINE_DIR)/libreadline.a' | 638 READLINE='$(READLINE_DIR)/libreadline.a' |
585 READLINE_DEPS='$(READLINE)' | 639 READLINE_DEPS='$(READLINE)' |
586 READLINE_CFLAGS='-I$(READLINE_SRC)/..' | 640 READLINE_CFLAGS='-I$(READLINE_SRC)/..' |
587 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)' | 641 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)' |
588 fi | 642 fi |
589 AC_SUBST(READLINE) | 643 AC_SUBST(READLINE) |
590 AC_SUBST(READLINE_DEPS) | 644 AC_SUBST(READLINE_DEPS) |
591 AC_SUBST(READLINE_CFLAGS) | 645 AC_SUBST(READLINE_CFLAGS) |
592 AC_SUBST(READLINE_TEXI_INCFLAG) | 646 AC_SUBST(READLINE_TEXI_INCFLAG) |
593 | 647 |
| 648 dnl -lmcheck provides cheap enough memory mangling for debugging purposes. |
| 649 if $development; then |
| 650 AC_CHECK_LIB(mcheck, main) |
| 651 fi |
| 652 |
594 # Generate jit-reader.h | 653 # Generate jit-reader.h |
595 | 654 |
596 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h | 655 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h |
597 TARGET_PTR= | 656 TARGET_PTR= |
598 | 657 |
599 AC_CHECK_SIZEOF(unsigned long long) | 658 AC_CHECK_SIZEOF(unsigned long long) |
600 AC_CHECK_SIZEOF(unsigned long) | 659 AC_CHECK_SIZEOF(unsigned long) |
601 AC_CHECK_SIZEOF(unsigned __int128) | 660 AC_CHECK_SIZEOF(unsigned __int128) |
602 | 661 |
603 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then | 662 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 AS_HELP_STRING([--with-python@<:@=PYTHON@:>@], [include python support (auto/y
es/no/<python-program>)]), | 770 AS_HELP_STRING([--with-python@<:@=PYTHON@:>@], [include python support (auto/y
es/no/<python-program>)]), |
712 [], [with_python=auto]) | 771 [], [with_python=auto]) |
713 AC_MSG_CHECKING([whether to use python]) | 772 AC_MSG_CHECKING([whether to use python]) |
714 AC_MSG_RESULT([$with_python]) | 773 AC_MSG_RESULT([$with_python]) |
715 | 774 |
716 if test "${with_python}" = no; then | 775 if test "${with_python}" = no; then |
717 AC_MSG_WARN([python support disabled; some features may be unavailable.]) | 776 AC_MSG_WARN([python support disabled; some features may be unavailable.]) |
718 have_libpython=no | 777 have_libpython=no |
719 else | 778 else |
720 case "${with_python}" in | 779 case "${with_python}" in |
721 /*) | 780 [[\\/]]* | ?:[[\\/]]*) |
722 if test -d ${with_python}; then | 781 if test -d ${with_python}; then |
723 # Assume the python binary is ${with_python}/bin/python. | 782 # Assume the python binary is ${with_python}/bin/python. |
724 python_prog="${with_python}/bin/python" | 783 python_prog="${with_python}/bin/python" |
725 python_prefix= | 784 python_prefix= |
726 # If python does not exit ${with_python}/bin, then try in | 785 # If python does not exit ${with_python}/bin, then try in |
727 # ${with_python}. On Windows/MinGW, this is where the Python | 786 # ${with_python}. On Windows/MinGW, this is where the Python |
728 # executable is. | 787 # executable is. |
729 if test ! -x "${python_prog}"; then | 788 if test ! -x "${python_prog}"; then |
730 python_prog="${with_python}/python" | 789 python_prog="${with_python}/python" |
731 python_prefix= | 790 python_prefix= |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
956 # Checks for header files. # | 1015 # Checks for header files. # |
957 # ------------------------- # | 1016 # ------------------------- # |
958 | 1017 |
959 AC_HEADER_DIRENT | 1018 AC_HEADER_DIRENT |
960 AC_HEADER_STAT | 1019 AC_HEADER_STAT |
961 AC_HEADER_STDC | 1020 AC_HEADER_STDC |
962 # elf_hp.h is for HP/UX 64-bit shared library support. | 1021 # elf_hp.h is for HP/UX 64-bit shared library support. |
963 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h) | 1022 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h) |
964 # unconditionally, so what's the point in checking these? | 1023 # unconditionally, so what's the point in checking these? |
965 AC_CHECK_HEADERS([nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \ | 1024 AC_CHECK_HEADERS([nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \ |
966 thread_db.h gnu/libc-version.h signal.h stddef.h \ | 1025 thread_db.h signal.h stddef.h \ |
967 stdlib.h string.h memory.h strings.h sys/fault.h \ | 1026 stdlib.h string.h memory.h strings.h sys/fault.h \ |
968 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \ | 1027 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \ |
969 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \ | 1028 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \ |
970 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \ | 1029 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \ |
971 sys/types.h sys/wait.h wait.h termios.h termio.h \ | 1030 sys/types.h sys/wait.h wait.h termios.h termio.h \ |
972 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h \ | 1031 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h \ |
973 » » dlfcn.h]) | 1032 » » dlfcn.h sys/socket.h sys/un.h]) |
974 AC_CHECK_HEADERS(link.h, [], [], | 1033 AC_CHECK_HEADERS(link.h, [], [], |
975 [#if HAVE_SYS_TYPES_H | 1034 [#if HAVE_SYS_TYPES_H |
976 # include <sys/types.h> | 1035 # include <sys/types.h> |
977 #endif | 1036 #endif |
978 #if HAVE_NLIST_H | 1037 #if HAVE_NLIST_H |
979 # include <nlist.h> | 1038 # include <nlist.h> |
980 #endif | 1039 #endif |
981 ]) | 1040 ]) |
982 AC_CHECK_HEADERS(sys/proc.h, [], [], | 1041 AC_CHECK_HEADERS(sys/proc.h, [], [], |
983 [#if HAVE_SYS_PARAM_H | 1042 [#if HAVE_SYS_PARAM_H |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 AC_C_INLINE | 1099 AC_C_INLINE |
1041 AC_C_BIGENDIAN | 1100 AC_C_BIGENDIAN |
1042 | 1101 |
1043 # ------------------------------ # | 1102 # ------------------------------ # |
1044 # Checks for library functions. # | 1103 # Checks for library functions. # |
1045 # ------------------------------ # | 1104 # ------------------------------ # |
1046 | 1105 |
1047 AC_FUNC_ALLOCA | 1106 AC_FUNC_ALLOCA |
1048 AC_FUNC_MMAP | 1107 AC_FUNC_MMAP |
1049 AC_FUNC_VFORK | 1108 AC_FUNC_VFORK |
1050 AC_CHECK_FUNCS([canonicalize_file_name realpath getrusage getuid \ | 1109 AC_CHECK_FUNCS([canonicalize_file_name realpath getrusage getuid getgid \ |
1051 » » getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid
\ | 1110 » » pipe poll pread pread64 pwrite readlink resize_term \ |
| 1111 » » sbrk setpgid setpgrp setsid \ |
1052 sigaction sigprocmask sigsetmask socketpair syscall \ | 1112 sigaction sigprocmask sigsetmask socketpair syscall \ |
1053 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \ | 1113 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \ |
1054 » » setrlimit getrlimit posix_madvise waitpid]) | 1114 » » setrlimit getrlimit posix_madvise waitpid lstat]) |
1055 AM_LANGINFO_CODESET | 1115 AM_LANGINFO_CODESET |
1056 | 1116 |
1057 # Check the return and argument types of ptrace. No canned test for | 1117 # Check the return and argument types of ptrace. No canned test for |
1058 # this, so roll our own. | 1118 # this, so roll our own. |
1059 gdb_ptrace_headers=' | 1119 gdb_ptrace_headers=' |
1060 #if HAVE_SYS_TYPES_H | 1120 #if HAVE_SYS_TYPES_H |
1061 # include <sys/types.h> | 1121 # include <sys/types.h> |
1062 #endif | 1122 #endif |
1063 #if HAVE_SYS_PTRACE_H | 1123 #if HAVE_SYS_PTRACE_H |
1064 # include <sys/ptrace.h> | 1124 # include <sys/ptrace.h> |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1207 if test $gdb_cv_struct_reg = yes; then | 1267 if test $gdb_cv_struct_reg = yes; then |
1208 AC_DEFINE(HAVE_STRUCT_REG, 1, | 1268 AC_DEFINE(HAVE_STRUCT_REG, 1, |
1209 [Define to 1 if your system has struct reg in <machine/reg.h>.]) | 1269 [Define to 1 if your system has struct reg in <machine/reg.h>.]) |
1210 fi | 1270 fi |
1211 | 1271 |
1212 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers. | 1272 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers. |
1213 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. | 1273 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. |
1214 AC_CHECK_MEMBERS([struct reg.r_fs, struct reg.r_gs], [], [], | 1274 AC_CHECK_MEMBERS([struct reg.r_fs, struct reg.r_gs], [], [], |
1215 [#include <machine/reg.h>]) | 1275 [#include <machine/reg.h>]) |
1216 | 1276 |
| 1277 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers. |
| 1278 # Older amd64 Linux's don't have the fs_base and gs_base members of |
| 1279 # `struct user_regs_struct'. |
| 1280 AC_CHECK_MEMBERS([struct user_regs_struct.fs_base, struct user_regs_struct.gs_ba
se], |
| 1281 [], [], [#include <sys/user.h>]) |
| 1282 |
1217 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request. | 1283 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request. |
1218 AC_MSG_CHECKING(for PTRACE_GETREGS) | 1284 AC_MSG_CHECKING(for PTRACE_GETREGS) |
1219 AC_CACHE_VAL(gdb_cv_have_ptrace_getregs, | 1285 AC_CACHE_VAL(gdb_cv_have_ptrace_getregs, |
1220 [AC_TRY_COMPILE([#include <sys/ptrace.h>], | 1286 [AC_TRY_COMPILE([#include <sys/ptrace.h>], |
1221 [PTRACE_GETREGS;], | 1287 [PTRACE_GETREGS;], |
1222 [gdb_cv_have_ptrace_getregs=yes], | 1288 [gdb_cv_have_ptrace_getregs=yes], |
1223 [gdb_cv_have_ptrace_getregs=no])]) | 1289 [gdb_cv_have_ptrace_getregs=no])]) |
1224 AC_MSG_RESULT($gdb_cv_have_ptrace_getregs) | 1290 AC_MSG_RESULT($gdb_cv_have_ptrace_getregs) |
1225 if test $gdb_cv_have_ptrace_getregs = yes; then | 1291 if test $gdb_cv_have_ptrace_getregs = yes; then |
1226 AC_DEFINE(HAVE_PTRACE_GETREGS, 1, | 1292 AC_DEFINE(HAVE_PTRACE_GETREGS, 1, |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1640 [AC_TRY_COMPILE([#include <sys/pthdebug.h>], | 1706 [AC_TRY_COMPILE([#include <sys/pthdebug.h>], |
1641 [#ifndef PTHDB_VERSION_3 | 1707 [#ifndef PTHDB_VERSION_3 |
1642 #error | 1708 #error |
1643 #endif], | 1709 #endif], |
1644 gdb_cv_have_aix_thread_debug=yes, | 1710 gdb_cv_have_aix_thread_debug=yes, |
1645 gdb_cv_have_aix_thread_debug=no)]) | 1711 gdb_cv_have_aix_thread_debug=no)]) |
1646 AC_MSG_RESULT($gdb_cv_have_aix_thread_debug) | 1712 AC_MSG_RESULT($gdb_cv_have_aix_thread_debug) |
1647 if test $gdb_cv_have_aix_thread_debug = yes; then | 1713 if test $gdb_cv_have_aix_thread_debug = yes; then |
1648 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" | 1714 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" |
1649 CONFIG_OBS="${CONFIG_OBS} aix-thread.o" | 1715 CONFIG_OBS="${CONFIG_OBS} aix-thread.o" |
1650 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" | 1716 LIBS="$LIBS -lpthdebug" |
1651 | 1717 |
1652 # Older versions of AIX do not provide the declaration for | 1718 # Older versions of AIX do not provide the declaration for |
1653 # the getthrds function (it appears that it was introduced | 1719 # the getthrds function (it appears that it was introduced |
1654 # with AIX 6.x). | 1720 # with AIX 6.x). |
1655 AC_CHECK_DECLS(getthrds, [], [], [[#include <procinfo.h>]]) | 1721 AC_CHECK_DECLS(getthrds, [], [], [[#include <procinfo.h>]]) |
1656 fi | 1722 fi |
1657 ;; | 1723 ;; |
1658 esac | 1724 esac |
1659 AC_SUBST(CONFIG_LDFLAGS) | 1725 AC_SUBST(CONFIG_LDFLAGS) |
1660 fi | 1726 fi |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1738 [have_personality=true], | 1804 [have_personality=true], |
1739 [have_personality=false])]) | 1805 [have_personality=false])]) |
1740 if $have_personality | 1806 if $have_personality |
1741 then | 1807 then |
1742 AC_DEFINE([HAVE_PERSONALITY], 1, | 1808 AC_DEFINE([HAVE_PERSONALITY], 1, |
1743 [Define if you support the personality syscall.]) | 1809 [Define if you support the personality syscall.]) |
1744 fi | 1810 fi |
1745 | 1811 |
1746 dnl Handle optional features that can be enabled. | 1812 dnl Handle optional features that can be enabled. |
1747 | 1813 |
1748 target_sysroot_reloc=0 | 1814 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR, |
| 1815 # except that the argument to --with-sysroot is optional. |
| 1816 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path. |
| 1817 if test "x$with_sysroot" = xyes; then |
| 1818 with_sysroot="${exec_prefix}/${target_alias}/sys-root" |
| 1819 fi |
1749 AC_ARG_WITH(sysroot, | 1820 AC_ARG_WITH(sysroot, |
1750 AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], [search for usr/lib et al within DI
R]), | 1821 AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], |
1751 [ | 1822 [search for usr/lib et al within DIR]), |
1752 case ${with_sysroot} in | 1823 [TARGET_SYSTEM_ROOT=$withval], [TARGET_SYSTEM_ROOT=]) |
1753 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; | 1824 AC_DEFINE_DIR(TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT, |
1754 *) TARGET_SYSTEM_ROOT=$with_sysroot ;; | 1825 [search for usr/lib et al within DIR]) |
1755 esac | |
1756 | |
1757 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' | |
1758 | |
1759 if test "x$prefix" = xNONE; then | |
1760 test_prefix=/usr/local | |
1761 else | |
1762 test_prefix=$prefix | |
1763 fi | |
1764 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then | |
1765 test_exec_prefix=$test_prefix | |
1766 else | |
1767 test_exec_prefix=$exec_prefix | |
1768 fi | |
1769 case ${TARGET_SYSTEM_ROOT} in | |
1770 "${test_prefix}"|"${test_prefix}/"*|\ | |
1771 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ | |
1772 '${prefix}'|'${prefix}/'*|\ | |
1773 '${exec_prefix}'|'${exec_prefix}/'*) | |
1774 target_sysroot_reloc=1 | |
1775 ;; | |
1776 esac | |
1777 ], [ | |
1778 TARGET_SYSTEM_ROOT= | |
1779 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
1780 ]) | |
1781 TARGET_SYSTEM_ROOT_DEFINE="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOC
ATABLE=$target_sysroot_reloc" | |
1782 AC_SUBST(TARGET_SYSTEM_ROOT) | 1826 AC_SUBST(TARGET_SYSTEM_ROOT) |
1783 AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE) | 1827 GDB_AC_DEFINE_RELOCATABLE(TARGET_SYSTEM_ROOT, sysroot, ${ac_define_dir}) |
1784 | 1828 |
1785 GDB_AC_WITH_DIR(SYSTEM_GDBINIT, system-gdbinit, | 1829 GDB_AC_WITH_DIR(SYSTEM_GDBINIT, system-gdbinit, |
1786 [automatically load a system-wide gdbinit file], | 1830 [automatically load a system-wide gdbinit file], |
1787 []) | 1831 []) |
1788 | 1832 |
1789 AC_ARG_ENABLE(werror, | 1833 AC_ARG_ENABLE(werror, |
1790 AS_HELP_STRING([--enable-werror], [treat compile warnings as errors]), | 1834 AS_HELP_STRING([--enable-werror], [treat compile warnings as errors]), |
1791 [case "${enableval}" in | 1835 [case "${enableval}" in |
1792 yes | y) ERROR_ON_WARNING="yes" ;; | 1836 yes | y) ERROR_ON_WARNING="yes" ;; |
1793 no | n) ERROR_ON_WARNING="no" ;; | 1837 no | n) ERROR_ON_WARNING="no" ;; |
1794 *) AC_MSG_ERROR(bad value ${enableval} for --enable-werror) ;; | 1838 *) AC_MSG_ERROR(bad value ${enableval} for --enable-werror) ;; |
1795 esac]) | 1839 esac]) |
1796 | 1840 |
| 1841 # Enable -Werror by default when using gcc. Turn it off for releases. |
| 1842 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then |
| 1843 ERROR_ON_WARNING=yes |
| 1844 fi |
| 1845 |
1797 WERROR_CFLAGS="" | 1846 WERROR_CFLAGS="" |
1798 if test "${ERROR_ON_WARNING}" = yes ; then | 1847 if test "${ERROR_ON_WARNING}" = yes ; then |
1799 WERROR_CFLAGS="-Werror" | 1848 WERROR_CFLAGS="-Werror" |
1800 fi | 1849 fi |
1801 | 1850 |
1802 # The entries after -Wno-pointer-sign are disabled warnings which may | 1851 # The entries after -Wno-pointer-sign are disabled warnings which may |
1803 # be enabled in the future, which can not currently be used to build | 1852 # be enabled in the future, which can not currently be used to build |
1804 # GDB. | 1853 # GDB. |
1805 # NOTE: If you change this list, remember to update | 1854 # NOTE: If you change this list, remember to update |
1806 # gdb/doc/gdbint.texinfo. | 1855 # gdb/doc/gdbint.texinfo. |
1807 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ | 1856 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ |
1808 -Wformat-nonliteral -Wno-pointer-sign \ | 1857 -Wformat-nonliteral -Wno-pointer-sign \ |
1809 -Wno-unused -Wunused-value -Wunused-function \ | 1858 -Wno-unused -Wunused-value -Wunused-function \ |
1810 -Wno-switch -Wno-char-subscripts" | 1859 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes \ |
| 1860 -Wdeclaration-after-statement" |
1811 | 1861 |
1812 # Enable -Wno-format by default when using gcc on mingw since many | 1862 # Enable -Wno-format by default when using gcc on mingw since many |
1813 # GCC versions complain about %I64. | 1863 # GCC versions complain about %I64. |
1814 case "${host}" in | 1864 case "${host}" in |
1815 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;; | 1865 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;; |
1816 esac | 1866 esac |
1817 | 1867 |
1818 AC_ARG_ENABLE(build-warnings, | 1868 AC_ARG_ENABLE(build-warnings, |
1819 AS_HELP_STRING([--enable-build-warnings], [enable build-time compiler warnings i
f gcc is used]), | 1869 AS_HELP_STRING([--enable-build-warnings], [enable build-time compiler warnings i
f gcc is used]), |
1820 [case "${enableval}" in | 1870 [case "${enableval}" in |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1901 for Cygwin.]) | 1951 for Cygwin.]) |
1902 WIN32LIBS="$WIN32LIBS -lws2_32" | 1952 WIN32LIBS="$WIN32LIBS -lws2_32" |
1903 ;; | 1953 ;; |
1904 esac | 1954 esac |
1905 AC_SUBST(WIN32LIBS) | 1955 AC_SUBST(WIN32LIBS) |
1906 | 1956 |
1907 # Add ELF support to GDB, but only if BFD includes ELF support. | 1957 # Add ELF support to GDB, but only if BFD includes ELF support. |
1908 OLD_CFLAGS=$CFLAGS | 1958 OLD_CFLAGS=$CFLAGS |
1909 OLD_LDFLAGS=$LDFLAGS | 1959 OLD_LDFLAGS=$LDFLAGS |
1910 OLD_LIBS=$LIBS | 1960 OLD_LIBS=$LIBS |
1911 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd" | 1961 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS |
1912 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty" | 1962 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We |
| 1963 # always want our bfd. |
| 1964 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS" |
| 1965 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS" |
1913 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'` | 1966 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'` |
1914 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>. | 1967 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>. |
1915 if test "$plugins" = "yes"; then | 1968 if test "$plugins" = "yes"; then |
1916 LIBS="-ldl $LIBS" | 1969 LIBS="-ldl $LIBS" |
1917 fi | 1970 fi |
1918 LIBS="-lbfd -liberty $intl $LIBS" | 1971 LIBS="-lbfd -liberty $intl $LIBS" |
1919 AC_CACHE_CHECK([for ELF support in BFD], gdb_cv_var_elf, | 1972 AC_CACHE_CHECK([for ELF support in BFD], gdb_cv_var_elf, |
1920 [AC_TRY_LINK( | 1973 [AC_TRY_LINK( |
1921 [#include <stdlib.h> | 1974 [#include <stdlib.h> |
1922 #include "bfd.h" | 1975 #include "bfd.h" |
1923 #include "elf-bfd.h" | 1976 #include "elf-bfd.h" |
1924 ], | 1977 ], |
1925 [bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd); ], | 1978 [bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd); ], |
1926 gdb_cv_var_elf=yes, gdb_cv_var_elf=no)]) | 1979 gdb_cv_var_elf=yes, gdb_cv_var_elf=no)]) |
1927 if test $gdb_cv_var_elf = yes; then | 1980 if test $gdb_cv_var_elf = yes; then |
1928 CONFIG_OBS="$CONFIG_OBS elfread.o" | 1981 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o" |
1929 AC_DEFINE(HAVE_ELF, 1, | 1982 AC_DEFINE(HAVE_ELF, 1, |
1930 [Define if ELF support should be included.]) | 1983 [Define if ELF support should be included.]) |
1931 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>. | 1984 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>. |
1932 if test "$plugins" = "yes"; then | 1985 if test "$plugins" = "yes"; then |
1933 OLD_LIBS="-ldl $OLD_LIBS" | 1986 OLD_LIBS="-ldl $OLD_LIBS" |
1934 fi | 1987 fi |
1935 fi | 1988 fi |
1936 CFLAGS=$OLD_CFLAGS | 1989 CFLAGS=$OLD_CFLAGS |
1937 LDFLAGS=$OLD_LDFLAGS | 1990 LDFLAGS=$OLD_LDFLAGS |
1938 LIBS=$OLD_LIBS | 1991 LIBS=$OLD_LIBS |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2214 AC_LINK_FILES($files, $links) | 2267 AC_LINK_FILES($files, $links) |
2215 | 2268 |
2216 dnl Check for exe extension set on certain hosts (e.g. Win32) | 2269 dnl Check for exe extension set on certain hosts (e.g. Win32) |
2217 AC_EXEEXT | 2270 AC_EXEEXT |
2218 | 2271 |
2219 dnl Detect the character set used by this host. | 2272 dnl Detect the character set used by this host. |
2220 dnl At the moment, we just assume it's UTF-8. | 2273 dnl At the moment, we just assume it's UTF-8. |
2221 AC_DEFINE(GDB_DEFAULT_HOST_CHARSET, "UTF-8", | 2274 AC_DEFINE(GDB_DEFAULT_HOST_CHARSET, "UTF-8", |
2222 [Define to be a string naming the default host character set.]) | 2275 [Define to be a string naming the default host character set.]) |
2223 | 2276 |
2224 AC_OUTPUT(Makefile .gdbinit:gdbinit.in doc/Makefile gnulib/Makefile data-directo
ry/Makefile, | 2277 AC_OUTPUT(Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile, |
2225 [ | 2278 [ |
2226 case x$CONFIG_HEADERS in | 2279 case x$CONFIG_HEADERS in |
2227 xconfig.h:config.in) | 2280 xconfig.h:config.in) |
2228 echo > stamp-h ;; | 2281 echo > stamp-h ;; |
2229 esac | 2282 esac |
2230 ]) | 2283 ]) |
2231 | 2284 |
2232 exit 0 | 2285 exit 0 |
OLD | NEW |