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.
26 # Directories to use for a configuration which uses stabs.
29 # this section is for targets that use stabs
30 # add stabs tests for appropriate targets
32 powerpc-*-aix*) configdirs="${configdirs} ${stabsdirs}" ;;
33 rs6000-*-aix*) configdirs="${configdirs} ${stabsdirs}" ;;
34 *-*-bsd*) configdirs="${configdirs} ${stabsdirs}" ;;
35 *-*-go32*) configdirs="${configdirs} ${stabsdirs}" ;;
36 *-*-linux*) configdirs="${configdirs} ${stabsdirs}" ;;
37 *-*-lynxos*) configdirs="${configdirs} ${stabsdirs}" ;;
38 *-sun-*) configdirs="${configdirs} ${stabsdirs}" ;;
39 hppa*-*-*) configdirs="${configdirs} ${stabsdirs}" ;;
40 *-*-elf*) configdirs="${configdirs} ${stabsdirs}" ;;
41 *) if test "x${with_stabs}" = x"yes" ; then
42 configdirs="${configdirs} ${stabsdirs}"
46 # Directory with HP specific tests. They will run only with HP's compilers.
47 # These tests will not work on other platforms and compilers.
52 hppa*-*-hpux*) configdirs="${configdirs} ${hpdir}" ;;
56 # Begin stuff to support --enable-shared
58 [ --enable-shared use shared libraries],
59 [case "${enableval}" in
64 RPATH_ENVVAR=LD_LIBRARY_PATH
65 # If we have shared libraries, try to set RPATH_ENVVAR reasonably.
66 if test "${shared}" = "true"; then
69 RPATH_ENVVAR=SHLIB_PATH
73 AC_SUBST(RPATH_ENVVAR)
74 # End stuff to support --enable-shared
75 # Start stuff to support --enable-gdbtk
78 [case "${enableval}" in
91 AC_MSG_ERROR(bad value ${enableval} given for gdbtk option) ;;
94 # Default is on for everything but go32 and windows
103 if test "${enable_gdbtk}" = "yes"; then
104 configdirs="${configdirs} gdb.gdbtk"
106 # End stuff to support --enable-shared
108 # configure the subdirectories too
109 AC_CONFIG_SUBDIRS($configdirs)
111 dnl AC_SUBST(gdb_target_cpu)