1a10cd41176fac4e1a3ba93ed9cee95e62bf9328
[platform/upstream/binutils.git] / gdb / testsuite / configure.in
1 # This file is a shell script fragment that supplies the information
2 # necessary to tailor a template configure script into the configure
3 # script appropriate for this directory.  For more information, check
4 # any existing configure script.
5
6 srctrigger="Makefile.in"
7 srcname="GDB Test Suite"
8
9 # Directories to use in all configurations.
10 configdirs="gdb.base gdb.c++ gdb.chill gdb.disasm"
11
12 # Directories to use for a configuration which uses stabs.  C++ tests
13 # are also here because I don't believe they work well for any other
14 # debugging format.
15 stabsdirs="gdb.stabs"
16
17 # per-host:
18
19 # per-target:
20
21         # everything defaults to unix for a target
22 target_abbrev=unix
23 target_makefile_frag=config/mt-unix
24
25         # this section is for all targets
26 case "${target}" in
27         i[345]86-*-aout)        target_makefile_frag=config/mt-i386-aout ;;
28         *-*-lynx)       target_makefile_frag=config/mt-lynx ;;
29         *-*-netware)    target_makefile_frag=config/mt-netware ;;
30         *-*-vxworks*)   target_makefile_frag=config/mt-vxworks ;;
31         m68k-*-*)       target_makefile_frag=config/mt-m68k ;;
32         i960-*-nindy)   target_makefile_frag=config/mt-i960-nindy ;;
33         a29k-*-udi)     target_makefile_frag=config/mt-a29k-udi ;;
34         sparclite-*-*)  target_makefile_frag=config/mt-slite ;;
35         sparc-*-aout)   target_makefile_frag=config/mt-sparc-aout ;;
36         mips-*-ecoff)   target_makefile_frag=config/mt-mips-ecoff ;;
37 esac
38
39 case "${target}" in
40
41 rs6000-*-aix*)          configdirs="${configdirs} ${stabsdirs}" ;;
42 *-*-bsd*)               configdirs="${configdirs} ${stabsdirs}" ;;
43 *-*-go32*)              configdirs="${configdirs} ${stabsdirs}" ;;
44 *-*-linux*)             configdirs="${configdirs} ${stabsdirs}" ;;
45 *-*-lynxos*)            configdirs="${configdirs} ${stabsdirs}" ;;
46 *-sun-*)                configdirs="${configdirs} ${stabsdirs}" ;;
47 hppa*-*-*)              configdirs="${configdirs} ${stabsdirs}" ;;
48
49 *)                      if [ x${with_stabs} = xyes ]; then
50                           configdirs="${configdirs} ${stabsdirs}"
51                         fi
52                         ;;
53 esac
54
55         # link in the lib directory if needed
56 #if [ ! -d lib ] ; then
57 #    files="lib"
58 #    links="lib"
59 #fi
60
61         # make list of files and links based on tool name
62 tool_list="${tool_list} gdb"
63 #for i in ${tool_list};
64 #do
65 #    if [ -f ${srcdir}/config/${target_abbrev}-$i.exp ] ; then
66 #    files="$files config/${target_abbrev}-$i.exp"
67 #    links="$links $i-init.exp"
68 #    fi
69 #done
70
71 # post-target:
72
73         # make local configuration file, using MAKE if one is specified.
74 #if [ ! -n "$MAKE" ]; then MAKE=make; fi