Mon Sep 14 20:00:04 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
[deliverable/binutils-gdb.git] / gdb / testsuite / configure.in
1 dnl Process this file file with autoconf to produce a configure script.
2 dnl This file is a shell script fragment that supplies the information
3 dnl necessary to tailor a template configure script into the configure
4 dnl script appropriate for this directory. For more information, check
5 dnl any existing configure script.
6
7 AC_PREREQ(2.5)
8 AC_INIT(gdb.base)
9
10 CC=${CC-cc}
11 AC_SUBST(CC)
12 AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
13 AC_CANONICAL_SYSTEM
14
15 # Directories to use in all configurations.
16 configdirs="gdb.asm gdb.base gdb.c++ gdb.disasm gdb.chill gdb.threads gdb.trace"
17
18 # Directories to use for a configuration which uses stabs.
19 stabsdirs="gdb.stabs"
20
21 # this section is for targets that use stabs
22 # add stabs tests for appropriate targets
23 case "${target}" in
24 powerpc-*-aix*) configdirs="${configdirs} ${stabsdirs}" ;;
25 rs6000-*-aix*) configdirs="${configdirs} ${stabsdirs}" ;;
26 *-*-bsd*) configdirs="${configdirs} ${stabsdirs}" ;;
27 *-*-go32*) configdirs="${configdirs} ${stabsdirs}" ;;
28 *-*-linux*) configdirs="${configdirs} ${stabsdirs}" ;;
29 *-*-lynxos*) configdirs="${configdirs} ${stabsdirs}" ;;
30 *-sun-*) configdirs="${configdirs} ${stabsdirs}" ;;
31 hppa*-*-*) configdirs="${configdirs} ${stabsdirs}" ;;
32 *-*-elf*) configdirs="${configdirs} ${stabsdirs}" ;;
33 *) if test "x${with_stabs}" = x"yes" ; then
34 configdirs="${configdirs} ${stabsdirs}"
35 fi ;;
36 esac
37
38 # Begin stuff to support --enable-shared
39 AC_ARG_ENABLE(shared,
40 [ --enable-shared use shared libraries],
41 [case "${enableval}" in
42 yes) shared=true ;;
43 no) shared=false ;;
44 *) shared=true ;;
45 esac])dnl
46 RPATH_ENVVAR=LD_LIBRARY_PATH
47 # If we have shared libraries, try to set RPATH_ENVVAR reasonably.
48 if test "${shared}" = "true"; then
49 case "${host}" in
50 *-*-hpux*)
51 RPATH_ENVVAR=SHLIB_PATH
52 ;;
53 esac
54 fi
55 AC_SUBST(RPATH_ENVVAR)
56 # End stuff to support --enable-shared
57 # Start stuff to support --enable-gdbtk
58 # start-sanitize-gdbtk
59 AC_ARG_ENABLE(gdbtk,
60 [ --enable-gdbtk ],
61 [case "${enableval}" in
62 yes)
63 case "$host" in
64 *go32*)
65 enable_gdbtk=no ;;
66 *windows*)
67 enable_gdbtk=no ;;
68 *)
69 enable_gdbtk=yes ;;
70 esac ;;
71 no)
72 enable_gdbtk=no ;;
73 *)
74 AC_MSG_ERROR(bad value ${enableval} given for gdbtk option) ;;
75 esac],
76 [
77 # Default is on for everything but go32 and windows
78 case "$host" in
79 *go32* | *windows*)
80 ;;
81 *)
82 enable_gdbtk=yes ;;
83 esac
84 ])
85
86 if test "${enable_gdbtk}" = "yes"; then
87 configdirs="${configdirs} gdb.gdbtk"
88 fi
89 # End stuff to support --enable-shared
90 # end-sanitize-gdbtk
91
92 # configure the subdirectories too
93 AC_CONFIG_SUBDIRS($configdirs)
94
95 dnl AC_SUBST(gdb_target_cpu)
96 AC_OUTPUT(Makefile)
This page took 0.031731 seconds and 4 git commands to generate.