* gdb.arch/altivec-abi.exp: Remove extra verbose call.
[deliverable/binutils-gdb.git] / gdb / testsuite / configure.ac
CommitLineData
b39c905e
MK
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
c906108c 3
6f8eac0e 4# Copyright 2002, 2003, 2004, 2005
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
5a0e3bd0
JB
9# the Free Software Foundation; either version 3 of the License, or
10# (at your option) any later version.
b39c905e
MK
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
5a0e3bd0 18# along with this program. If not, see <http://www.gnu.org/licenses/>.
b39c905e 19
bec39cab 20AC_PREREQ(2.59)
c906108c
SS
21AC_INIT(gdb.base)
22
b39c905e
MK
23AC_CANONICAL_BUILD
24AC_CANONICAL_HOST
25AC_CANONICAL_TARGET
c906108c 26
be2a5f71
DJ
27ACX_NONCANONICAL_TARGET
28
b39c905e
MK
29# Add HP-specific tests when appropriate.
30case $target in
31 hppa*-*-hpux*)
3ace7edb 32 AC_CONFIG_SUBDIRS(gdb.hp) ;;
c906108c
SS
33esac
34
b39c905e
MK
35# With stabs.
36AC_ARG_WITH(stabs,
37[ --with-stabs arrange to use stabs instead of host debug format],,
38[# We enable stabs tests by default on selected targets.
39case $target in
40 powerpc-*-aix* \
41 | rs6000-*-aix* \
3224a706 42 | *-*-*bsd* \
b39c905e
MK
43 | *-*-go32* \
44 | *-*-linux* \
45 | *-*-lynxos* \
46 | *-sun-* \
47 | hppa*-*-* \
48 | *-*-elf* \
3f213f78
PA
49 | *-*-cygwin* \
50 | *-*-mingw* \
b39c905e
MK
51 )
52 with_stabs=yes ;;
53 *)
54 with_stabs=no ;;
55esac])
c906108c 56
b39c905e
MK
57# Add stabs tests when appropriate.
58if test $with_stabs = yes; then
3ace7edb 59 AC_CONFIG_SUBDIRS(gdb.stabs)
b39c905e 60fi
c906108c 61
b39c905e
MK
62# Enable gdbtk.
63AC_ARG_ENABLE(gdbtk,
64[ --enable-gtk enable gdbtk graphical user interface (GUI)],,
65 [if test -d $srcdir/gdb.gdbtk; then
66 enable_gdbtk=yes
67 else
68 enable_gdbtk=no
69 fi])
70# We unconditionally disable gdbtk tests on selected platforms.
71case $host_os in
72 go32* | windows*)
73 enable_gdbtk=no ;;
c906108c
SS
74esac
75
b39c905e
MK
76# Add gdbtk tests when appropriate.
77if test $enable_gdbtk = yes; then
3ace7edb 78 AC_CONFIG_SUBDIRS(gdb.gdbtk)
b39c905e 79fi
c906108c 80
b39c905e 81# Enable shared libraries.
c906108c 82AC_ARG_ENABLE(shared,
b39c905e
MK
83[ --enable-shared build shared libraries [deault=yes]],,
84 enable_shared=yes)
85
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.
88if test $enable_shared = no; then
89 # The variable `RPATH_ENVVAR' itself is not likely to be used on any
90 # platform.
91 RPATH_ENVVAR=RPATH_ENVVAR
92else
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.
96 case $host_os in
97 aix*)
98 if test $host_cpu != ia64; then
99 RPATH_ENVVAR=LIBPATH
100 fi ;;
101 darwin* | rhapsody*)
102 RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
103 hpux*)
104 RPATH_ENVVAR=SHLIB_PATH ;;
c906108c
SS
105 esac
106fi
107AC_SUBST(RPATH_ENVVAR)
3fc11d3e 108
dc62bfc2
MK
109AC_CHECK_HEADERS(pthread.h)
110
93076499
ND
111AC_EXEEXT
112
8a12c1f0 113AC_OUTPUT([Makefile \
464dd14d 114 gdb.ada/Makefile \
f86ef5a3 115 gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile \
0eb3658b 116 gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile \
9494c6a5 117 gdb.fortran/Makefile gdb.server/Makefile \
e831e7b6 118 gdb.java/Makefile gdb.mi/Makefile gdb.modula2/Makefile \
5876dc88
LM
119 gdb.objc/Makefile gdb.opt/Makefile gdb.pascal/Makefile \
120 gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile])
This page took 1.955278 seconds and 4 git commands to generate.