OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [testsuite/] [configure.in] - Diff between revs 106 and 107

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 106 Rev 107
dnl Process this file file with autoconf to produce a configure script.
dnl Process this file file with autoconf to produce a configure script.
dnl This file is a shell script fragment that supplies the information
dnl This file is a shell script fragment that supplies the information
dnl necessary to tailor a template configure script into the configure
dnl necessary to tailor a template configure script into the configure
dnl script appropriate for this directory.  For more information, check
dnl script appropriate for this directory.  For more information, check
dnl any existing configure script.
dnl any existing configure script.
AC_PREREQ(2.12.1)
AC_PREREQ(2.12.1)
AC_INIT(gdb.base)
AC_INIT(gdb.base)
CC=${CC-cc}
CC=${CC-cc}
AC_SUBST(CC)
AC_SUBST(CC)
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
AC_CANONICAL_SYSTEM
AC_CANONICAL_SYSTEM
# Directories to use in all configurations.
# Directories to use in all configurations.
configdirs="gdb.asm \
configdirs="gdb.asm \
            gdb.base \
            gdb.base \
            gdb.c++ \
            gdb.c++ \
            gdb.disasm \
            gdb.disasm \
            gdb.chill \
            gdb.chill \
            gdb.mi \
            gdb.mi \
            gdb.threads \
            gdb.threads \
            gdb.trace"
            gdb.trace"
# Directories to use for a configuration which uses stabs.
# Directories to use for a configuration which uses stabs.
stabsdirs="gdb.stabs"
stabsdirs="gdb.stabs"
        # this section is for targets that use stabs
        # this section is for targets that use stabs
# add stabs tests for appropriate targets
# add stabs tests for appropriate targets
case "${target}" in
case "${target}" in
        powerpc-*-aix*) configdirs="${configdirs} ${stabsdirs}" ;;
        powerpc-*-aix*) configdirs="${configdirs} ${stabsdirs}" ;;
        rs6000-*-aix*)  configdirs="${configdirs} ${stabsdirs}" ;;
        rs6000-*-aix*)  configdirs="${configdirs} ${stabsdirs}" ;;
        *-*-bsd*)       configdirs="${configdirs} ${stabsdirs}" ;;
        *-*-bsd*)       configdirs="${configdirs} ${stabsdirs}" ;;
        *-*-go32*)      configdirs="${configdirs} ${stabsdirs}" ;;
        *-*-go32*)      configdirs="${configdirs} ${stabsdirs}" ;;
        *-*-linux*)     configdirs="${configdirs} ${stabsdirs}" ;;
        *-*-linux*)     configdirs="${configdirs} ${stabsdirs}" ;;
        *-*-lynxos*)    configdirs="${configdirs} ${stabsdirs}" ;;
        *-*-lynxos*)    configdirs="${configdirs} ${stabsdirs}" ;;
        *-sun-*)        configdirs="${configdirs} ${stabsdirs}" ;;
        *-sun-*)        configdirs="${configdirs} ${stabsdirs}" ;;
        hppa*-*-*)      configdirs="${configdirs} ${stabsdirs}" ;;
        hppa*-*-*)      configdirs="${configdirs} ${stabsdirs}" ;;
        *-*-elf*)       configdirs="${configdirs} ${stabsdirs}" ;;
        *-*-elf*)       configdirs="${configdirs} ${stabsdirs}" ;;
        *)              if test "x${with_stabs}" = x"yes" ; then
        *)              if test "x${with_stabs}" = x"yes" ; then
                          configdirs="${configdirs} ${stabsdirs}"
                          configdirs="${configdirs} ${stabsdirs}"
                        fi ;;
                        fi ;;
esac
esac
# Directory with HP specific tests. They will run only with HP's compilers.
# Directory with HP specific tests. They will run only with HP's compilers.
# These tests will not work on other platforms and compilers.
# These tests will not work on other platforms and compilers.
hpdir="gdb.hp"
hpdir="gdb.hp"
case "${target}" in
case "${target}" in
 hppa*-*-hpux*) configdirs="${configdirs} ${hpdir}" ;;
 hppa*-*-hpux*) configdirs="${configdirs} ${hpdir}" ;;
esac
esac
# Begin stuff to support --enable-shared
# Begin stuff to support --enable-shared
AC_ARG_ENABLE(shared,
AC_ARG_ENABLE(shared,
[  --enable-shared         use shared libraries],
[  --enable-shared         use shared libraries],
[case "${enableval}" in
[case "${enableval}" in
  yes) shared=true ;;
  yes) shared=true ;;
  no)  shared=false ;;
  no)  shared=false ;;
  *) shared=true ;;
  *) shared=true ;;
esac])dnl
esac])dnl
RPATH_ENVVAR=LD_LIBRARY_PATH
RPATH_ENVVAR=LD_LIBRARY_PATH
# If we have shared libraries, try to set RPATH_ENVVAR reasonably.
# If we have shared libraries, try to set RPATH_ENVVAR reasonably.
if test "${shared}" = "true"; then
if test "${shared}" = "true"; then
  case "${host}" in
  case "${host}" in
  *-*-hpux*)
  *-*-hpux*)
    RPATH_ENVVAR=SHLIB_PATH
    RPATH_ENVVAR=SHLIB_PATH
    ;;
    ;;
  esac
  esac
fi
fi
AC_SUBST(RPATH_ENVVAR)
AC_SUBST(RPATH_ENVVAR)
# End stuff to support --enable-shared
# End stuff to support --enable-shared
# Start stuff to support --enable-gdbtk
# Start stuff to support --enable-gdbtk
AC_ARG_ENABLE(gdbtk,
AC_ARG_ENABLE(gdbtk,
[  --enable-gdbtk ],
[  --enable-gdbtk ],
[case "${enableval}" in
[case "${enableval}" in
    yes)
    yes)
        case "$host" in
        case "$host" in
        *go32*)
        *go32*)
            enable_gdbtk=no ;;
            enable_gdbtk=no ;;
        *windows*)
        *windows*)
            enable_gdbtk=no ;;
            enable_gdbtk=no ;;
        *)
        *)
            enable_gdbtk=yes ;;
            enable_gdbtk=yes ;;
        esac ;;
        esac ;;
    no)
    no)
        enable_gdbtk=no  ;;
        enable_gdbtk=no  ;;
    *)
    *)
        AC_MSG_ERROR(bad value ${enableval} given for gdbtk option) ;;
        AC_MSG_ERROR(bad value ${enableval} given for gdbtk option) ;;
esac],
esac],
[
[
# Default is on for everything but go32 and windows
# Default is on for everything but go32 and windows
case "$host" in
case "$host" in
    *go32* | *windows*)
    *go32* | *windows*)
        ;;
        ;;
    *)
    *)
        enable_gdbtk=yes ;;
        enable_gdbtk=yes ;;
    esac
    esac
])
])
if test "${enable_gdbtk}" = "yes"; then
if test "${enable_gdbtk}" = "yes"; then
    configdirs="${configdirs} gdb.gdbtk"
    configdirs="${configdirs} gdb.gdbtk"
fi
fi
# End stuff to support --enable-shared
# End stuff to support --enable-shared
# configure the subdirectories too
# configure the subdirectories too
AC_CONFIG_SUBDIRS($configdirs)
AC_CONFIG_SUBDIRS($configdirs)
dnl AC_SUBST(gdb_target_cpu)
dnl AC_SUBST(gdb_target_cpu)
AC_OUTPUT(Makefile)
AC_OUTPUT(Makefile)
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.