sim: unify bug & package settings

Move these options up to the common dir so we only test & export
them once across all ports.  The AC_INIT macro does a lot of the
heavy lifting already which allows further simplification.
This commit is contained in:
Mike Frysinger
2021-06-06 20:48:46 -04:00
parent 04381273a9
commit 6dd65fc048
105 changed files with 165 additions and 2785 deletions

79
sim/mips/configure vendored
View File

@@ -645,9 +645,6 @@ sim_micromips_flags
sim_m16_flags
sim_igen_flags
SIM_SUBTARGET
REPORT_BUGS_TEXI
REPORT_BUGS_TO
PKGVERSION
MAINT
MAINTAINER_MODE_FALSE
MAINTAINER_MODE_TRUE
@@ -687,7 +684,6 @@ USE_NLS
CCDEPMODE
DEPDIR
am__leading_dot
PACKAGE
C_DIALECT
RANLIB
AR
@@ -783,8 +779,6 @@ with_gnu_ld
enable_libtool_lock
enable_maintainer_mode
enable_sim_inline
with_pkgversion
with_bugurl
enable_sim_alignment
enable_werror
enable_build_warnings
@@ -1464,8 +1458,6 @@ Optional Packages:
--with-pic try to use only PIC/non-PIC objects [default=use
both]
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
--with-pkgversion=PKG Use PKG in the version string in place of "SIM"
--with-bugurl=URL Direct users to URL to report a bug
--with-x use the X Window System
Some influential environment variables:
@@ -6921,17 +6913,6 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_config_headers="$ac_config_headers config.h:config.in"
# Some of the common include files depend on bfd.h, and bfd.h checks
# that config.h is included first by testing that the PACKAGE macro
# is defined.
PACKAGE=sim
cat >>confdefs.h <<_ACEOF
#define PACKAGE "$PACKAGE"
_ACEOF
# Dependency checking.
ac_config_commands="$ac_config_commands depdir"
@@ -10795,7 +10776,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
#line 10798 "configure"
#line 10779 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -10901,7 +10882,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
#line 10904 "configure"
#line 10885 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11197,62 +11178,6 @@ fi
# Check whether --with-pkgversion was given.
if test "${with_pkgversion+set}" = set; then :
withval=$with_pkgversion; case "$withval" in
yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
no) PKGVERSION= ;;
*) PKGVERSION="($withval) " ;;
esac
else
PKGVERSION="(SIM) "
fi
# Check whether --with-bugurl was given.
if test "${with_bugurl+set}" = set; then :
withval=$with_bugurl; case "$withval" in
yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
no) BUGURL=
;;
*) BUGURL="$withval"
;;
esac
else
BUGURL="https://www.gnu.org/software/gdb/bugs/"
fi
case ${BUGURL} in
"")
REPORT_BUGS_TO=
REPORT_BUGS_TEXI=
;;
*)
REPORT_BUGS_TO="<$BUGURL>"
REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
;;
esac;
cat >>confdefs.h <<_ACEOF
#define PKGVERSION "$PKGVERSION"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
_ACEOF
wire_alignment="NONSTRICT_ALIGNMENT"
default_alignment=""