2004-08-15 Michael Chastain <mec.gnu@mindspring.com>
[deliverable/binutils-gdb.git] / gdb / testsuite / configure.in
CommitLineData
b39c905e
MK
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
c906108c 3
8a12c1f0 4# Copyright 2002, 2003, 2004
b39c905e
MK
5# Free Software Foundation, Inc.
6#
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)
10# any later version.
11#
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.
16#
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
20# 02111-1307, USA.
21
8a12c1f0
MC
22# NOTE ON AUTOCONF VERSION:
23# AC_PREREQ says 2.13.
24# The output file says "Generated automatically using autoconf version 2.13".
25# But that is wrong. This file must be processed with autoconf 000227,
26# a special version which identifies itself as autoconf 2.13.
27
b39c905e 28AC_PREREQ(2.13)
c906108c
SS
29AC_INIT(gdb.base)
30
b39c905e
MK
31AC_CANONICAL_BUILD
32AC_CANONICAL_HOST
33AC_CANONICAL_TARGET
c906108c 34
dc62bfc2 35# Directories that need to be configured in all configurations.
b39c905e 36configdirs=
c906108c 37
b39c905e
MK
38# Add HP-specific tests when appropriate.
39case $target in
40 hppa*-*-hpux*)
41 configdirs="$configdirs gdb.hp" ;;
c906108c
SS
42esac
43
b39c905e
MK
44# With stabs.
45AC_ARG_WITH(stabs,
46[ --with-stabs arrange to use stabs instead of host debug format],,
47[# We enable stabs tests by default on selected targets.
48case $target in
49 powerpc-*-aix* \
50 | rs6000-*-aix* \
3224a706 51 | *-*-*bsd* \
b39c905e
MK
52 | *-*-go32* \
53 | *-*-linux* \
54 | *-*-lynxos* \
55 | *-sun-* \
56 | hppa*-*-* \
57 | *-*-elf* \
58 )
59 with_stabs=yes ;;
60 *)
61 with_stabs=no ;;
62esac])
c906108c 63
b39c905e
MK
64# Add stabs tests when appropriate.
65if test $with_stabs = yes; then
66 configdirs="$configdirs gdb.stabs"
67fi
c906108c 68
b39c905e
MK
69# Enable gdbtk.
70AC_ARG_ENABLE(gdbtk,
71[ --enable-gtk enable gdbtk graphical user interface (GUI)],,
72 [if test -d $srcdir/gdb.gdbtk; then
73 enable_gdbtk=yes
74 else
75 enable_gdbtk=no
76 fi])
77# We unconditionally disable gdbtk tests on selected platforms.
78case $host_os in
79 go32* | windows*)
80 enable_gdbtk=no ;;
c906108c
SS
81esac
82
b39c905e
MK
83# Add gdbtk tests when appropriate.
84if test $enable_gdbtk = yes; then
85 configdirs="$configdirs gdb.gdbtk"
86fi
c906108c 87
b39c905e 88# Enable shared libraries.
c906108c 89AC_ARG_ENABLE(shared,
b39c905e
MK
90[ --enable-shared build shared libraries [deault=yes]],,
91 enable_shared=yes)
92
93# If we have shared libraries, try to set RPATH_ENVVAR reasonably,
94# such that we can find the shared libraries in the build tree.
95if test $enable_shared = no; then
96 # The variable `RPATH_ENVVAR' itself is not likely to be used on any
97 # platform.
98 RPATH_ENVVAR=RPATH_ENVVAR
99else
100 # The variable `LD_LIBRARY_PATH' is used on most platforms.
101 RPATH_ENVVAR=LD_LIBRARY_PATH
102 # The following exceptions are taken from Libtool 1.4.3.
103 case $host_os in
104 aix*)
105 if test $host_cpu != ia64; then
106 RPATH_ENVVAR=LIBPATH
107 fi ;;
108 darwin* | rhapsody*)
109 RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
110 hpux*)
111 RPATH_ENVVAR=SHLIB_PATH ;;
c906108c
SS
112 esac
113fi
114AC_SUBST(RPATH_ENVVAR)
3fc11d3e 115
dc62bfc2
MK
116AC_CHECK_HEADERS(pthread.h)
117
93076499
ND
118AC_EXEEXT
119
c906108c 120AC_CONFIG_SUBDIRS($configdirs)
8a12c1f0
MC
121AC_OUTPUT([Makefile \
122 gdb.ada/Makefile gdb.ada/gnat_ada.gpr:gdb.ada/gnat_ada.gin \
f86ef5a3 123 gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile \
1105b7ef 124 gdb.cp/Makefile gdb.disasm/Makefile gdb.java/Makefile gdb.mi/Makefile \
130cacce 125 gdb.objc/Makefile gdb.threads/Makefile gdb.trace/Makefile])
This page took 0.459052 seconds and 4 git commands to generate.