2 # Process this file with autoconf to produce a configure script.
4 # Copyright 2002, 2003, 2004, 2005
5 # Free Software Foundation, Inc.
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
27 ACX_NONCANONICAL_TARGET
29 # Add HP-specific tests when appropriate.
32 AC_CONFIG_SUBDIRS(gdb.hp) ;;
37 [ --with-stabs arrange to use stabs instead of host debug format],,
38 [# We enable stabs tests by default on selected targets.
57 # Add stabs tests when appropriate.
58 if test $with_stabs = yes; then
59 AC_CONFIG_SUBDIRS(gdb.stabs)
64 [ --enable-gtk enable gdbtk graphical user interface (GUI)],,
65 [if test -d $srcdir/gdb.gdbtk; then
70 # We unconditionally disable gdbtk tests on selected platforms.
76 # Add gdbtk tests when appropriate.
77 if test $enable_gdbtk = yes; then
78 AC_CONFIG_SUBDIRS(gdb.gdbtk)
81 # Enable shared libraries.
83 [ --enable-shared build shared libraries [deault=yes]],,
86 # If we have shared libraries, try to set RPATH_ENVVAR reasonably,
87 # such that we can find the shared libraries in the build tree.
88 if test $enable_shared = no; then
89 # The variable `RPATH_ENVVAR' itself is not likely to be used on any
91 RPATH_ENVVAR=RPATH_ENVVAR
93 # The variable `LD_LIBRARY_PATH' is used on most platforms.
94 RPATH_ENVVAR=LD_LIBRARY_PATH
95 # The following exceptions are taken from Libtool 1.4.3.
98 if test $host_cpu != ia64; then
102 RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
104 RPATH_ENVVAR=SHLIB_PATH ;;
107 AC_SUBST(RPATH_ENVVAR)
109 AC_CHECK_HEADERS(pthread.h)
113 AC_OUTPUT([Makefile \
115 gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile \
116 gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile \
117 gdb.fortran/Makefile gdb.server/Makefile \
118 gdb.java/Makefile gdb.mi/Makefile gdb.modula2/Makefile \
119 gdb.objc/Makefile gdb.opt/Makefile gdb.pascal/Makefile \
120 gdb.python/Makefile \
121 gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile])