2 # Process this file with autoconf to produce a configure script.
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 2, or (at your option)
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, write to the Free Software
19 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
29 # Directories to use in all configurations.
30 AC_CONFIG_SUBDIRS(gdb.arch gdb.asm gdb.base gdb.c++ gdb.java gdb.disasm)
31 AC_CONFIG_SUBDIRS(gdb.mi gdb.threads gdb.trace)
34 # Add HP-specific tests when appropriate.
37 configdirs="$configdirs gdb.hp" ;;
42 [ --with-stabs arrange to use stabs instead of host debug format],,
43 [# We enable stabs tests by default on selected targets.
60 # Add stabs tests when appropriate.
61 if test $with_stabs = yes; then
62 configdirs="$configdirs gdb.stabs"
67 [ --enable-gtk enable gdbtk graphical user interface (GUI)],,
68 [if test -d $srcdir/gdb.gdbtk; then
73 # We unconditionally disable gdbtk tests on selected platforms.
79 # Add gdbtk tests when appropriate.
80 if test $enable_gdbtk = yes; then
81 configdirs="$configdirs gdb.gdbtk"
84 # Enable shared libraries.
86 [ --enable-shared build shared libraries [deault=yes]],,
89 # If we have shared libraries, try to set RPATH_ENVVAR reasonably,
90 # such that we can find the shared libraries in the build tree.
91 if test $enable_shared = no; then
92 # The variable `RPATH_ENVVAR' itself is not likely to be used on any
94 RPATH_ENVVAR=RPATH_ENVVAR
96 # The variable `LD_LIBRARY_PATH' is used on most platforms.
97 RPATH_ENVVAR=LD_LIBRARY_PATH
98 # The following exceptions are taken from Libtool 1.4.3.
101 if test $host_cpu != ia64; then
105 RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
107 RPATH_ENVVAR=SHLIB_PATH ;;
110 AC_SUBST(RPATH_ENVVAR)
114 AC_CONFIG_SUBDIRS($configdirs)