diff options
author | Tom Tromey <tromey@adacore.com> | 2021-06-01 08:11:30 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2021-06-01 08:11:30 -0600 |
commit | f99d1d37496f3af263e0761c2fd330e62599f383 (patch) | |
tree | 6d2c707eeb75b85b7b7d99e3663a57e492cdda74 /gdb/testsuite/configure.ac | |
parent | 17d305ef8f4b5bf20beaaad427490b3c6773909b (diff) | |
download | fsf-binutils-gdb-f99d1d37496f3af263e0761c2fd330e62599f383.zip fsf-binutils-gdb-f99d1d37496f3af263e0761c2fd330e62599f383.tar.gz fsf-binutils-gdb-f99d1d37496f3af263e0761c2fd330e62599f383.tar.bz2 |
Remove gdb/testsuite/configure
I didn't see a strong reason to have a separate configure script in
gdb/testsuite, so this patch removes it. The few relevant configury
bits are moved into gdb's configure script. Some of the old
testsuite/configure script (e.g., the header check) is dead code.
This also adds a Makefile rule to rebuild lib/pdtrace. This was
missing from the old code.
'read1' is now a dependency of check-read1, rather than extra code at
configure time.
Finally, the old "ENABLE_LIBCTF" subst in gdb/configure was not used;
nor was the variable defined, so this was always empty. However, the
lower-case variant was used by the testsuite, so this patch renames
the subst.
gdb/ChangeLog
2021-06-01 Tom Tromey <tromey@adacore.com>
* configure.ac: Copy some code from testsuite/configure.ac.
(enable_libctf): Subst this, not ENABLE_LIBCTF.
* configure: Rebuild.
gdb/testsuite/ChangeLog
2021-06-01 Tom Tromey <tromey@adacore.com>
* aclocal.m4, configure.ac, configure: Remove.
* Makefile.in (EXTRA_RULES): Remove.
($(abs_builddir)/site.exp site.exp): Don't depend on
config.status.
(distclean maintainer-clean realclean, Makefile): Update.
(config.status): Remove target.
(lib/pdtrace): New target.
(all): Don't depend on EXTRA_RULES.
(check-read1): Depend on read1.so, expect-read1.
Diffstat (limited to 'gdb/testsuite/configure.ac')
-rw-r--r-- | gdb/testsuite/configure.ac | 99 |
1 files changed, 0 insertions, 99 deletions
diff --git a/gdb/testsuite/configure.ac b/gdb/testsuite/configure.ac deleted file mode 100644 index b15dbcb..0000000 --- a/gdb/testsuite/configure.ac +++ /dev/null @@ -1,99 +0,0 @@ -# -*- Autoconf -*- -# Process this file with autoconf to produce a configure script. - -# Copyright 2002-2021 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 3 of the License, 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, see <http://www.gnu.org/licenses/>. - -AC_INIT -AC_CONFIG_SRCDIR([gdb.base]) - -AC_CANONICAL_BUILD -AC_CANONICAL_HOST -AC_CANONICAL_TARGET - -ACX_NONCANONICAL_TARGET - -# Enable gdbtk. -AC_ARG_ENABLE(gdbtk, -[ --enable-gtk enable gdbtk graphical user interface (GUI)],, - [if test -d $srcdir/../gdbtk && 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 ;; -esac - -# Add gdbtk tests when appropriate. -if test $enable_gdbtk = yes; then - AC_CONFIG_SUBDIRS(gdb.gdbtk) -fi - -GCC_ENABLE([libctf], [yes], [], [Handle .ctf type-info sections]) -AC_SUBST(enable_libctf) - -# Enable shared libraries. -AC_ARG_ENABLE(shared, -[ --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 ;; - esac -fi -AC_SUBST(RPATH_ENVVAR) - -AC_CHECK_HEADERS(pthread.h) - -AC_EXEEXT - -if test "${build}" = "${host}" -a "${host}" = "${target}"; then - case "${host}" in - *gnu*) - EXTRA_RULES=read1 - ;; - esac -fi -AC_SUBST(EXTRA_RULES) - -# Transform the name of some programs and generate the lib/pdtrace -# test tool. -AC_ARG_PROGRAM -GDB_AC_TRANSFORM(strip, STRIP_TRANSFORM_NAME) -GDB_AC_TRANSFORM(readelf, READELF_TRANSFORM_NAME) -GDB_AC_TRANSFORM(as, GAS_TRANSFORM_NAME) -GDB_AC_TRANSFORM(nm, NM_TRANSFORM_NAME) -AC_CONFIG_FILES([lib/pdtrace], [chmod +x lib/pdtrace]) -AC_CONFIG_FILES([Makefile]) - -AC_OUTPUT |