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.
12 AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
15 # Directories to use in all configurations.
16 configdirs="gdb.arch \
28 # Directories to use for a configuration which uses stabs.
31 # this section is for targets that use stabs
32 # add stabs tests for appropriate targets
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}"
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.
54 hppa*-*-hpux*) configdirs="${configdirs} ${hpdir}" ;;
58 # Begin stuff to support --enable-shared
60 [ --enable-shared use shared libraries],
61 [case "${enableval}" in
66 RPATH_ENVVAR=LD_LIBRARY_PATH
67 # If we have shared libraries, try to set RPATH_ENVVAR reasonably.
68 if test "${shared}" = "true"; then
71 RPATH_ENVVAR=SHLIB_PATH
75 AC_SUBST(RPATH_ENVVAR)
76 # End stuff to support --enable-shared
77 # Start stuff to support --enable-gdbtk
80 [case "${enableval}" in
93 AC_MSG_ERROR(bad value ${enableval} given for gdbtk option) ;;
96 # Default is on for everything but go32 and windows
105 if test "${enable_gdbtk}" = "yes"; then
106 configdirs="${configdirs} gdb.gdbtk"
108 # End stuff to support --enable-shared
110 dnl Check for exe extension set on certain hosts (e.g. Win32)
113 # configure the subdirectories too
114 AC_CONFIG_SUBDIRS($configdirs)
116 dnl AC_SUBST(gdb_target_cpu)