aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-06-22 14:11:32 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-07-06 14:53:27 -0400
commita100a94530eb85991fa736ea5037cf8b83190ae6 (patch)
tree2d72cbcb61e9e50e8db4ed949533d840f87ca32a /gdb/configure.ac
parentf069ea46a03ae868581d1c852da28e979ea1245a (diff)
downloadgdb-a100a94530eb85991fa736ea5037cf8b83190ae6.zip
gdb-a100a94530eb85991fa736ea5037cf8b83190ae6.tar.gz
gdb-a100a94530eb85991fa736ea5037cf8b83190ae6.tar.bz2
gdb/testsuite: restore configure script
Commit f99d1d37496f ("Remove gdb/testsuite/configure") removed gdb/testsuite/configure, as anything gdb/testsuite/configure did could be done by gdb/configure. There is however one use case that popped up when this changed propagated to downstream consumers, to run the testsuite on an already built GDB. In the workflow of ROCm-GDB at AMD, a GDB package is built in a CI job. This GDB package is then tested on different machines / hardware configurations as part of other CI jobs. To achieve this, those CI jobs only configure the testsuite directory and run "make check" with an appropriate board file. In light of this use case, the way I see it is that gdb/testsuite could be considered its own project. It could be stored in a completely different repo if we want to, it just happens to be stored inside gdb/. Since the only downside of having gdb/testsuite/configure is that it takes a few more seconds to run, but on the other hand it's quite useful for some people, I propose re-adding it. In a sense, this is revert of f99d1d37496f, but it's not a direct git-revert, as some things have changed since. gdb/ChangeLog: * configure.ac: Remove things that were moved from testsuite/configure.ac. * configure: Re-generate. gdb/testsuite/ChangeLog: * configure.ac: Restore. * configure: Re-generate. * aclocal.m4: Re-generate. * Makefile.in (distclean): Add config.status. (Makefile): Adjust paths. (lib/pdtrace): Adjust paths. (config.status): Add. Change-Id: Ic38c79485e1835712d9c99649c9dfb59667254f1
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac35
1 files changed, 1 insertions, 34 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 67aa628..b8c79bc 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -153,31 +153,7 @@ AC_DEFINE_DIR(AUTO_LOAD_SAFE_PATH, escape_dir,
[Directories safe to hold auto-loaded files.])
AC_MSG_RESULT([$with_auto_load_safe_path])
-# Enable shared libraries.
-AC_ARG_ENABLE(shared,
-AS_HELP_STRING([--enable-shared], [build shared libraries [default=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_CONFIG_SUBDIRS(testsuite)
# Check whether to support alternative target configurations
AC_ARG_ENABLE(targets,
@@ -2195,7 +2171,6 @@ else
LIBCTF=
CTF_DEPS=
fi
-AC_SUBST(enable_libctf)
AC_SUBST(LIBCTF)
AC_SUBST(CTF_DEPS)
@@ -2261,13 +2236,5 @@ GDB_AC_TRANSFORM([gdb], [GDB_TRANSFORM_NAME])
GDB_AC_TRANSFORM([gcore], [GCORE_TRANSFORM_NAME])
AC_CONFIG_FILES([gcore], [chmod +x gcore])
AC_CONFIG_FILES([Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile])
-# Transform the name of some programs for the testsuite/lib/pdtrace
-# test tool.
-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([testsuite/lib/pdtrace], [chmod +x testsuite/lib/pdtrace])
-AC_CONFIG_FILES([testsuite/Makefile])
AC_OUTPUT