2003-01-04 01:43:24 +01:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
1999-04-16 03:35:26 +02:00
|
|
|
|
2005-04-08 14:57:00 +02:00
|
|
|
# Copyright 2002, 2003, 2004, 2005
|
2003-01-04 01:43:24 +01:00
|
|
|
# Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
# any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
# 02111-1307, USA.
|
|
|
|
|
Index: ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: doc/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: gdbserver/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
* gdb.stabs/configure.ac: Rename configure.in, require autoconf 2.59.
* gdb.stabs/configure: Re-generate.
* gdb.hp/configure.ac: Rename configure.in, require autoconf 2.59.
* gdb.hp/configure: Re-generate.
* gdb.hp/gdb.objdbg/configure.ac: Rename configure.in, require
autoconf 2.59.
* gdb.hp/gdb.objdbg/configure: Re-generate.
* gdb.hp/gdb.defects/configure.ac: Rename configure.in, require
autoconf 2.59.
* gdb.hp/gdb.defects/configure: Re-generate.
* gdb.hp/gdb.compat/configure.ac: Rename configure.in, require
autoconf 2.59.
* gdb.hp/gdb.compat/configure: Re-generate.
* gdb.hp/gdb.base-hp/configure.ac: Rename configure.in, require
autoconf 2.59.
* gdb.hp/gdb.base-hp/configure: Re-generate.
* gdb.hp/gdb.aCC/configure.ac: Rename configure.in, require
autoconf 2.59.
* gdb.hp/gdb.aCC/configure: Re-generate.
2005-01-07 22:53:26 +01:00
|
|
|
AC_PREREQ(2.59)
|
1999-04-16 03:35:26 +02:00
|
|
|
AC_INIT(gdb.base)
|
|
|
|
|
2003-01-04 01:43:24 +01:00
|
|
|
AC_CANONICAL_BUILD
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
AC_CANONICAL_TARGET
|
1999-04-16 03:35:26 +02:00
|
|
|
|
2003-01-04 01:43:24 +01:00
|
|
|
# Add HP-specific tests when appropriate.
|
|
|
|
case $target in
|
|
|
|
hppa*-*-hpux*)
|
2005-01-07 16:17:01 +01:00
|
|
|
AC_CONFIG_SUBDIRS(gdb.hp) ;;
|
1999-04-16 03:35:26 +02:00
|
|
|
esac
|
|
|
|
|
2003-01-04 01:43:24 +01:00
|
|
|
# With stabs.
|
|
|
|
AC_ARG_WITH(stabs,
|
|
|
|
[ --with-stabs arrange to use stabs instead of host debug format],,
|
|
|
|
[# We enable stabs tests by default on selected targets.
|
|
|
|
case $target in
|
|
|
|
powerpc-*-aix* \
|
|
|
|
| rs6000-*-aix* \
|
2004-02-22 13:58:01 +01:00
|
|
|
| *-*-*bsd* \
|
2003-01-04 01:43:24 +01:00
|
|
|
| *-*-go32* \
|
|
|
|
| *-*-linux* \
|
|
|
|
| *-*-lynxos* \
|
|
|
|
| *-sun-* \
|
|
|
|
| hppa*-*-* \
|
|
|
|
| *-*-elf* \
|
|
|
|
)
|
|
|
|
with_stabs=yes ;;
|
|
|
|
*)
|
|
|
|
with_stabs=no ;;
|
|
|
|
esac])
|
1999-04-16 03:35:26 +02:00
|
|
|
|
2003-01-04 01:43:24 +01:00
|
|
|
# Add stabs tests when appropriate.
|
|
|
|
if test $with_stabs = yes; then
|
2005-01-07 16:17:01 +01:00
|
|
|
AC_CONFIG_SUBDIRS(gdb.stabs)
|
2003-01-04 01:43:24 +01:00
|
|
|
fi
|
1999-04-16 03:35:26 +02:00
|
|
|
|
2003-01-04 01:43:24 +01:00
|
|
|
# Enable gdbtk.
|
|
|
|
AC_ARG_ENABLE(gdbtk,
|
|
|
|
[ --enable-gtk enable gdbtk graphical user interface (GUI)],,
|
|
|
|
[if test -d $srcdir/gdb.gdbtk; then
|
|
|
|
enable_gdbtk=yes
|
|
|
|
else
|
|
|
|
enable_gdbtk=no
|
|
|
|
fi])
|
|
|
|
# We unconditionally disable gdbtk tests on selected platforms.
|
|
|
|
case $host_os in
|
|
|
|
go32* | windows*)
|
|
|
|
enable_gdbtk=no ;;
|
1999-04-16 03:35:26 +02:00
|
|
|
esac
|
|
|
|
|
2003-01-04 01:43:24 +01:00
|
|
|
# Add gdbtk tests when appropriate.
|
|
|
|
if test $enable_gdbtk = yes; then
|
2005-01-07 16:17:01 +01:00
|
|
|
AC_CONFIG_SUBDIRS(gdb.gdbtk)
|
2003-01-04 01:43:24 +01:00
|
|
|
fi
|
1999-04-16 03:35:26 +02:00
|
|
|
|
2003-01-04 01:43:24 +01:00
|
|
|
# Enable shared libraries.
|
1999-04-16 03:35:26 +02:00
|
|
|
AC_ARG_ENABLE(shared,
|
2003-01-04 01:43:24 +01:00
|
|
|
[ --enable-shared build shared libraries [deault=yes]],,
|
|
|
|
enable_shared=yes)
|
|
|
|
|
|
|
|
# If we have shared libraries, try to set RPATH_ENVVAR reasonably,
|
|
|
|
# such that we can find the shared libraries in the build tree.
|
|
|
|
if test $enable_shared = no; then
|
|
|
|
# The variable `RPATH_ENVVAR' itself is not likely to be used on any
|
|
|
|
# platform.
|
|
|
|
RPATH_ENVVAR=RPATH_ENVVAR
|
|
|
|
else
|
|
|
|
# The variable `LD_LIBRARY_PATH' is used on most platforms.
|
|
|
|
RPATH_ENVVAR=LD_LIBRARY_PATH
|
|
|
|
# The following exceptions are taken from Libtool 1.4.3.
|
|
|
|
case $host_os in
|
|
|
|
aix*)
|
|
|
|
if test $host_cpu != ia64; then
|
|
|
|
RPATH_ENVVAR=LIBPATH
|
|
|
|
fi ;;
|
|
|
|
darwin* | rhapsody*)
|
|
|
|
RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
|
|
|
|
hpux*)
|
|
|
|
RPATH_ENVVAR=SHLIB_PATH ;;
|
1999-04-16 03:35:26 +02:00
|
|
|
esac
|
|
|
|
fi
|
|
|
|
AC_SUBST(RPATH_ENVVAR)
|
2000-02-07 01:19:45 +01:00
|
|
|
|
* configure.in: Call AC_CONFIG_HEADER. Don't call
AC_CONFIG_SUBDIRS on gdb.arch, gdb.asm, gdb.base gdb.c++ gdb.java,
gdb.disasm, gdb.mi, gdb.threads and gdb.trace. Call
AC_CHECK_HEADERS on pthread.h. Put Makefiles in the
aforementioned directories in the AC_OUPUT call.
* config.hin: New file.
* gdb.mi/gdb669.exp, gdb.mi/mi-pthreads.exp,
gdb.mi/mi1-pthreads.exp, gdb.threads/gcore-thread.exp,
gdb.threads/killed.exp, gdb.threads/print-threads.exp,
gdb.threads/pthreads.exp, gdb.threads/schedlock.exp: Make sure we
pass -I$objdir instead of -I$objdir/$subdir in compilation.
* gdb.arch/configure.in, gdb.arch/configure, gdb.asm/configure.in,
gdb.asm/configure, gdb.base/configure.in, gdb.base/configure,
gdb.c++/configure.in, gdb.c++/configure, gdb.disasm/configure.in,
gdb.disasm/configure, gdb.java/configure.in, gdb.java/configure,
gdb.mi/configure.in, gdb.mi/configure, gdb.mi/config.in,
gdb.threads/configure.in, gdb.threads/configure,
gdb.threads/config.in, gdb.trace/configure.in,
gdb.trace/configure: Removed.
2003-01-04 16:37:40 +01:00
|
|
|
AC_CHECK_HEADERS(pthread.h)
|
|
|
|
|
2000-11-17 17:37:48 +01:00
|
|
|
AC_EXEEXT
|
|
|
|
|
2004-07-21 01:11:21 +02:00
|
|
|
AC_OUTPUT([Makefile \
|
2005-02-03 04:58:53 +01:00
|
|
|
gdb.ada/Makefile \
|
2004-04-01 19:48:56 +02:00
|
|
|
gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile \
|
2004-10-12 16:41:42 +02:00
|
|
|
gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile \
|
2005-04-11 16:13:14 +02:00
|
|
|
gdb.fortran/Makefile gdb.server/Makefile \
|
2005-04-08 14:57:00 +02:00
|
|
|
gdb.java/Makefile gdb.mi/Makefile \
|
2003-05-01 03:09:51 +02:00
|
|
|
gdb.objc/Makefile gdb.threads/Makefile gdb.trace/Makefile])
|