2 # Process this file with autoconf to produce a configure script.
4 # Copyright 2002-2014 Free Software Foundation, Inc.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
26 ACX_NONCANONICAL_TARGET
28 # Check for the 'make' the user wants to use.
29 AC_CHECK_PROGS(MAKE, make)
31 case "`$MAKE --version 2>&1 | sed 1q`" in
36 AM_CONDITIONAL(GMAKE, test "$MAKE_IS_GNU" = yes)
41 [ --enable-gtk enable gdbtk graphical user interface (GUI)],,
42 [if test -d $srcdir/../gdbtk && test -d $srcdir/gdb.gdbtk; then
47 # We unconditionally disable gdbtk tests on selected platforms.
53 # Add gdbtk tests when appropriate.
54 if test $enable_gdbtk = yes; then
55 AC_CONFIG_SUBDIRS(gdb.gdbtk)
58 # Enable shared libraries.
60 [ --enable-shared build shared libraries [deault=yes]],,
63 # If we have shared libraries, try to set RPATH_ENVVAR reasonably,
64 # such that we can find the shared libraries in the build tree.
65 if test $enable_shared = no; then
66 # The variable `RPATH_ENVVAR' itself is not likely to be used on any
68 RPATH_ENVVAR=RPATH_ENVVAR
70 # The variable `LD_LIBRARY_PATH' is used on most platforms.
71 RPATH_ENVVAR=LD_LIBRARY_PATH
72 # The following exceptions are taken from Libtool 1.4.3.
75 if test $host_cpu != ia64; then
79 RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
81 RPATH_ENVVAR=SHLIB_PATH ;;
84 AC_SUBST(RPATH_ENVVAR)
86 AC_CHECK_HEADERS(pthread.h)
92 gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile gdb.btrace/Makefile \
93 gdb.cell/Makefile gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile \
94 gdb.dlang/Makefile gdb.fortran/Makefile gdb.gdb/Makefile gdb.go/Makefile \
95 gdb.server/Makefile gdb.java/Makefile \
96 gdb.hp/Makefile gdb.hp/gdb.objdbg/Makefile gdb.hp/gdb.base-hp/Makefile \
97 gdb.hp/gdb.aCC/Makefile gdb.hp/gdb.compat/Makefile \
98 gdb.hp/gdb.defects/Makefile gdb.guile/Makefile gdb.linespec/Makefile \
99 gdb.mi/Makefile gdb.modula2/Makefile gdb.multi/Makefile \
100 gdb.objc/Makefile gdb.opencl/Makefile gdb.opt/Makefile gdb.pascal/Makefile \
101 gdb.perf/Makefile gdb.python/Makefile gdb.reverse/Makefile gdb.stabs/Makefile \
102 gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile])