]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/configure.in
import gdb-2000-02-04 snapshot
[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++ \
19 gdb.disasm \
20 gdb.chill \
21 gdb.threads \
22 gdb.trace"
23
c906108c
SS
24
25# Directories to use for a configuration which uses stabs.
26stabsdirs="gdb.stabs"
27
28 # this section is for targets that use stabs
29# add stabs tests for appropriate targets
30case "${target}" in
31 powerpc-*-aix*) configdirs="${configdirs} ${stabsdirs}" ;;
32 rs6000-*-aix*) configdirs="${configdirs} ${stabsdirs}" ;;
33 *-*-bsd*) configdirs="${configdirs} ${stabsdirs}" ;;
34 *-*-go32*) configdirs="${configdirs} ${stabsdirs}" ;;
35 *-*-linux*) configdirs="${configdirs} ${stabsdirs}" ;;
36 *-*-lynxos*) configdirs="${configdirs} ${stabsdirs}" ;;
37 *-sun-*) configdirs="${configdirs} ${stabsdirs}" ;;
38 hppa*-*-*) configdirs="${configdirs} ${stabsdirs}" ;;
39 *-*-elf*) configdirs="${configdirs} ${stabsdirs}" ;;
40 *) if test "x${with_stabs}" = x"yes" ; then
41 configdirs="${configdirs} ${stabsdirs}"
42 fi ;;
43esac
44
45# Directory with HP specific tests. They will run only with HP's compilers.
46# These tests will not work on other platforms and compilers.
47
48hpdir="gdb.hp"
49
50case "${target}" in
51 hppa*-*-hpux*) configdirs="${configdirs} ${hpdir}" ;;
52esac
53
54
55# Begin stuff to support --enable-shared
56AC_ARG_ENABLE(shared,
57[ --enable-shared use shared libraries],
58[case "${enableval}" in
59 yes) shared=true ;;
60 no) shared=false ;;
61 *) shared=true ;;
62esac])dnl
63RPATH_ENVVAR=LD_LIBRARY_PATH
64# If we have shared libraries, try to set RPATH_ENVVAR reasonably.
65if test "${shared}" = "true"; then
66 case "${host}" in
67 *-*-hpux*)
68 RPATH_ENVVAR=SHLIB_PATH
69 ;;
70 esac
71fi
72AC_SUBST(RPATH_ENVVAR)
73# End stuff to support --enable-shared
74
75# configure the subdirectories too
76AC_CONFIG_SUBDIRS($configdirs)
77
78dnl AC_SUBST(gdb_target_cpu)
79AC_OUTPUT(Makefile)