aboutsummaryrefslogtreecommitdiff
path: root/sim/configure
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-06 20:48:46 -0400
committerMike Frysinger <vapier@gentoo.org>2021-06-12 20:24:08 -0400
commit6dd65fc048dbe167b809f687acc6228eb07ecec6 (patch)
tree6784f6a25e493296f4600ee94f1d5bcc3cf79da9 /sim/configure
parent04381273a9ea0cf30575d58983287cd950b3e166 (diff)
downloadfsf-binutils-gdb-6dd65fc048dbe167b809f687acc6228eb07ecec6.zip
fsf-binutils-gdb-6dd65fc048dbe167b809f687acc6228eb07ecec6.tar.gz
fsf-binutils-gdb-6dd65fc048dbe167b809f687acc6228eb07ecec6.tar.bz2
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.
Diffstat (limited to 'sim/configure')
-rwxr-xr-xsim/configure67
1 files changed, 67 insertions, 0 deletions
diff --git a/sim/configure b/sim/configure
index c9e4d6f..2a9a9b6 100755
--- a/sim/configure
+++ b/sim/configure
@@ -703,6 +703,9 @@ build_os
build_vendor
build_cpu
build
+REPORT_BUGS_TEXI
+REPORT_BUGS_TO
+PKGVERSION
target_alias
host_alias
build_alias
@@ -744,6 +747,8 @@ SHELL'
ac_subst_files=''
ac_user_opts='
enable_option_checking
+with_pkgversion
+with_bugurl
enable_maintainer_mode
enable_dependency_tracking
enable_silent_rules
@@ -1440,6 +1445,12 @@ Optional Features:
input/output
--enable-sim-trace=opts Enable tracing of simulated programs
+Optional Packages:
+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=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
+
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
@@ -2481,6 +2492,62 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+# 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
+
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define PKGVERSION "$PKGVERSION"
+_ACEOF
+
+
+
+# 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="$PACKAGE_BUGREPORT"
+
+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 REPORT_BUGS_TO "$REPORT_BUGS_TO"
+_ACEOF
+
+
ac_config_headers="$ac_config_headers config.h"