2002-05-17 Elena Zannoni <ezannoni@redhat.com>
[deliverable/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.
ad0b0016
EZ
16configdirs="gdb.arch \
17 gdb.asm \
cce74817
JM
18 gdb.base \
19 gdb.c++ \
9d273ca3 20 gdb.java \
cce74817
JM
21 gdb.disasm \
22 gdb.chill \
fb40c209 23 gdb.mi \
cce74817
JM
24 gdb.threads \
25 gdb.trace"
26
c906108c
SS
27
28# Directories to use for a configuration which uses stabs.
29stabsdirs="gdb.stabs"
30
31 # this section is for targets that use stabs
32# add stabs tests for appropriate targets
33case "${target}" in
34 powerpc-*-aix*) configdirs="${configdirs} ${stabsdirs}" ;;
35 rs6000-*-aix*) configdirs="${configdirs} ${stabsdirs}" ;;
36 *-*-bsd*) configdirs="${configdirs} ${stabsdirs}" ;;
37 *-*-go32*) configdirs="${configdirs} ${stabsdirs}" ;;
38 *-*-linux*) configdirs="${configdirs} ${stabsdirs}" ;;
39 *-*-lynxos*) configdirs="${configdirs} ${stabsdirs}" ;;
40 *-sun-*) configdirs="${configdirs} ${stabsdirs}" ;;
41 hppa*-*-*) configdirs="${configdirs} ${stabsdirs}" ;;
42 *-*-elf*) configdirs="${configdirs} ${stabsdirs}" ;;
43 *) if test "x${with_stabs}" = x"yes" ; then
44 configdirs="${configdirs} ${stabsdirs}"
45 fi ;;
46esac
47
48# Directory with HP specific tests. They will run only with HP's compilers.
49# These tests will not work on other platforms and compilers.
50
51hpdir="gdb.hp"
52
53case "${target}" in
54 hppa*-*-hpux*) configdirs="${configdirs} ${hpdir}" ;;
55esac
56
57
58# Begin stuff to support --enable-shared
59AC_ARG_ENABLE(shared,
60[ --enable-shared use shared libraries],
61[case "${enableval}" in
62 yes) shared=true ;;
63 no) shared=false ;;
64 *) shared=true ;;
65esac])dnl
66RPATH_ENVVAR=LD_LIBRARY_PATH
67# If we have shared libraries, try to set RPATH_ENVVAR reasonably.
68if test "${shared}" = "true"; then
69 case "${host}" in
70 *-*-hpux*)
71 RPATH_ENVVAR=SHLIB_PATH
72 ;;
73 esac
74fi
75AC_SUBST(RPATH_ENVVAR)
76# End stuff to support --enable-shared
3fc11d3e
JM
77# Start stuff to support --enable-gdbtk
78AC_ARG_ENABLE(gdbtk,
79[ --enable-gdbtk ],
80[case "${enableval}" in
81 yes)
82 case "$host" in
83 *go32*)
84 enable_gdbtk=no ;;
85 *windows*)
86 enable_gdbtk=no ;;
87 *)
88 enable_gdbtk=yes ;;
89 esac ;;
90 no)
91 enable_gdbtk=no ;;
92 *)
93 AC_MSG_ERROR(bad value ${enableval} given for gdbtk option) ;;
94esac],
95[
96# Default is on for everything but go32 and windows
97case "$host" in
98 *go32* | *windows*)
99 ;;
100 *)
101 enable_gdbtk=yes ;;
102 esac
103])
104
105if test "${enable_gdbtk}" = "yes"; then
106 configdirs="${configdirs} gdb.gdbtk"
107fi
108# End stuff to support --enable-shared
c906108c 109
93076499
ND
110dnl Check for exe extension set on certain hosts (e.g. Win32)
111AC_EXEEXT
112
c906108c
SS
113# configure the subdirectories too
114AC_CONFIG_SUBDIRS($configdirs)
115
116dnl AC_SUBST(gdb_target_cpu)
117AC_OUTPUT(Makefile)
This page took 0.219626 seconds and 4 git commands to generate.