+2013-01-07 H.J. Lu <hongjiu.lu@intel.com>
+ Ian Lance Taylor <iant@google.com>
+
+ PR gold/14897
+ * configure.ac (--enable-ld): Removed.
+ (install_as_default): Set to yes only for --enable-gold=default
+ or --disable-ld.
+ * configure: Regenerated.
+
2013-01-07 H.J. Lu <hongjiu.lu@intel.com>
* options.h (General_options): Add -fuse-ld= for GCC linker
ac_user_opts='
enable_option_checking
with_sysroot
-enable_ld
enable_gold
enable_threads
enable_plugins
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- --enable-ld[=ARG] build ld [ARG={default,yes,no}]
--enable-gold[=ARG] build gold [ARG={default,yes,no}]
--enable-threads multi-threaded linking
--enable-plugins linker plugins
-default_ld=
-# Check whether --enable-ld was given.
-if test "${enable_ld+set}" = set; then :
- enableval=$enable_ld; case "${enableval}" in
- default)
- default_ld=ld.bfd
- ;;
-esac
-fi
-
-
+installed_linker=ld.gold
# Check whether --enable-gold was given.
if test "${enable_gold+set}" = set; then :
enableval=$enable_gold; case "${enableval}" in
- yes|default)
- if test x${default_ld} = x; then
+ default)
+ install_as_default=yes
+ ;;
+ yes)
+ if test x${enable_ld} = xno; then
install_as_default=yes
fi
- installed_linker=ld.gold
- ;;
- no)
- ;;
- *)
- as_fn_error "invalid --enable-gold argument" "$LINENO" 5
;;
esac
else
install_as_default=no
- installed_linker=ld.gold
fi
dnl default linker, ld.
dnl "installed_linker" is the installed gold linker name.
-default_ld=
-AC_ARG_ENABLE(ld,
-[[ --enable-ld[=ARG] build ld [ARG={default,yes,no}]]],
-[case "${enableval}" in
- default)
- default_ld=ld.bfd
- ;;
-esac])
-
+installed_linker=ld.gold
AC_ARG_ENABLE(gold,
[[ --enable-gold[=ARG] build gold [ARG={default,yes,no}]]],
[case "${enableval}" in
- yes|default)
- if test x${default_ld} = x; then
+ default)
+ install_as_default=yes
+ ;;
+ yes)
+ if test x${enable_ld} = xno; then
install_as_default=yes
fi
- installed_linker=ld.gold
- ;;
- no)
- ;;
- *)
- AC_MSG_ERROR([invalid --enable-gold argument])
;;
esac],
-[install_as_default=no
- installed_linker=ld.gold])
+[install_as_default=no])
AC_SUBST(install_as_default)
AC_SUBST(installed_linker)