]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/configure.in
* gdb.base/break.exp: Test backtrace and finish from called
[thirdparty/binutils-gdb.git] / gdb / testsuite / configure.in
CommitLineData
c906108c
SS
1dnl Process this file file with autoconf to produce a configure script.
2dnl This file is a shell script fragment that supplies the information
3dnl necessary to tailor a template configure script into the configure
4dnl script appropriate for this directory. For more information, check
5dnl any existing configure script.
6
7AC_PREREQ(2.12.1)
8AC_INIT(gdb.base)
9
10CC=${CC-cc}
11AC_SUBST(CC)
12AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
13AC_CANONICAL_SYSTEM
14
15# Directories to use in all configurations.
cce74817
JM
16configdirs="gdb.asm \
17 gdb.base \
18 gdb.c++ \
9d273ca3 19 gdb.java \
cce74817
JM
20 gdb.disasm \
21 gdb.chill \
fb40c209 22 gdb.mi \
cce74817
JM
23 gdb.threads \
24 gdb.trace"
25
c906108c
SS
26
27# Directories to use for a configuration which uses stabs.
28stabsdirs="gdb.stabs"
29
30 # this section is for targets that use stabs
31# add stabs tests for appropriate targets
32case "${target}" in
33 powerpc-*-aix*) configdirs="${configdirs} ${stabsdirs}" ;;
34 rs6000-*-aix*) configdirs="${configdirs} ${stabsdirs}" ;;
35 *-*-bsd*) configdirs="${configdirs} ${stabsdirs}" ;;
36 *-*-go32*) configdirs="${configdirs} ${stabsdirs}" ;;
37 *-*-linux*) configdirs="${configdirs} ${stabsdirs}" ;;
38 *-*-lynxos*) configdirs="${configdirs} ${stabsdirs}" ;;
39 *-sun-*) configdirs="${configdirs} ${stabsdirs}" ;;
40 hppa*-*-*) configdirs="${configdirs} ${stabsdirs}" ;;
41 *-*-elf*) configdirs="${configdirs} ${stabsdirs}" ;;
42 *) if test "x${with_stabs}" = x"yes" ; then
43 configdirs="${configdirs} ${stabsdirs}"
44 fi ;;
45esac
46
47# Directory with HP specific tests. They will run only with HP's compilers.
48# These tests will not work on other platforms and compilers.
49
50hpdir="gdb.hp"
51
52case "${target}" in
53 hppa*-*-hpux*) configdirs="${configdirs} ${hpdir}" ;;
54esac
55
56
57# Begin stuff to support --enable-shared
58AC_ARG_ENABLE(shared,
59[ --enable-shared use shared libraries],
60[case "${enableval}" in
61 yes) shared=true ;;
62 no) shared=false ;;
63 *) shared=true ;;
64esac])dnl
65RPATH_ENVVAR=LD_LIBRARY_PATH
66# If we have shared libraries, try to set RPATH_ENVVAR reasonably.
67if test "${shared}" = "true"; then
68 case "${host}" in
69 *-*-hpux*)
70 RPATH_ENVVAR=SHLIB_PATH
71 ;;
72 esac
73fi
74AC_SUBST(RPATH_ENVVAR)
75# End stuff to support --enable-shared
3fc11d3e
JM
76# Start stuff to support --enable-gdbtk
77AC_ARG_ENABLE(gdbtk,
78[ --enable-gdbtk ],
79[case "${enableval}" in
80 yes)
81 case "$host" in
82 *go32*)
83 enable_gdbtk=no ;;
84 *windows*)
85 enable_gdbtk=no ;;
86 *)
87 enable_gdbtk=yes ;;
88 esac ;;
89 no)
90 enable_gdbtk=no ;;
91 *)
92 AC_MSG_ERROR(bad value ${enableval} given for gdbtk option) ;;
93esac],
94[
95# Default is on for everything but go32 and windows
96case "$host" in
97 *go32* | *windows*)
98 ;;
99 *)
100 enable_gdbtk=yes ;;
101 esac
102])
103
104if test "${enable_gdbtk}" = "yes"; then
105 configdirs="${configdirs} gdb.gdbtk"
106fi
107# End stuff to support --enable-shared
c906108c
SS
108
109# configure the subdirectories too
110AC_CONFIG_SUBDIRS($configdirs)
111
112dnl AC_SUBST(gdb_target_cpu)
113AC_OUTPUT(Makefile)