diff options
author | Cary Coutant <ccoutant@gmail.com> | 2018-03-27 17:49:49 -0700 |
---|---|---|
committer | Cary Coutant <ccoutant@gmail.com> | 2018-03-28 14:02:41 -0700 |
commit | 24538276c675851520d45714661e7cf9bedd55bb (patch) | |
tree | 6790f4d6a402478a83ec0d75c5cac8bf27eb3a42 /gold/configure.ac | |
parent | 8205a328f8b852086652841dfc2aff4ca0b16d45 (diff) | |
download | gdb-24538276c675851520d45714661e7cf9bedd55bb.zip gdb-24538276c675851520d45714661e7cf9bedd55bb.tar.gz gdb-24538276c675851520d45714661e7cf9bedd55bb.tar.bz2 |
Use top-level config support for enabling plugins.
Also recognizes --plugin options when plugins are disabled.
2018-03-28 Cary Coutant <ccoutant@gmail.com>
gold/
PR gold/21423
PR gold/22500
* configure.ac: Call AC_USE_SYSTEM_EXTENSIONS.
Replace check for --enable-plugins with AC_PLUGINS.
* options.cc (parse_plugin, parse_plugin_opt): Remove #ifdef.
(General_options::finalize): Check if plugins enabled.
* options.h (--plugin, --plugin-opt): Define even if plugins not
enabled.
* Makefile.in: Regenerate.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* testsuite/Makefile.in: Regenerate.
Diffstat (limited to 'gold/configure.ac')
-rw-r--r-- | gold/configure.ac | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/gold/configure.ac b/gold/configure.ac index 5ba43f2..1ed6c0d 100644 --- a/gold/configure.ac +++ b/gold/configure.ac @@ -28,6 +28,8 @@ AM_INIT_AUTOMAKE([no-dist parallel-tests]) AM_CONFIG_HEADER(config.h:config.in) +AC_USE_SYSTEM_EXTENSIONS + # PR 14072 AH_VERBATIM([00_CONFIG_H_CHECK], [/* Check that config.h is #included before system headers @@ -100,14 +102,7 @@ if test "$threads" = "yes"; then fi AM_CONDITIONAL(THREADS, test "$threads" = "yes") -AC_ARG_ENABLE([plugins], -[ --enable-plugins linker plugins], -[case "${enableval}" in - yes | "") plugins=yes ;; - no) plugins=no ;; - *) plugins=yes ;; - esac], -[plugins=no]) +AC_PLUGINS if test "$plugins" = "yes"; then AC_DEFINE(ENABLE_PLUGINS, 1, [Define to enable linker plugins]) |