diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-23 02:51:56 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-23 02:51:56 +0000 |
commit | 4152ab5575bd65f42a8d3ad4d1006a2ec1272b12 (patch) | |
tree | d4035827a61e144371d4f9449825cd2b02953e0b /config/acx.m4 | |
parent | 9c587e53b5b0806b9b5751bc9519265ea6d374f9 (diff) | |
download | gcc-4152ab5575bd65f42a8d3ad4d1006a2ec1272b12.tar.gz |
* acx.m4 (ACX_PKGVERSION, ACX_BUGURL): Define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123147 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config/acx.m4')
-rw-r--r-- | config/acx.m4 | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/config/acx.m4 b/config/acx.m4 index a8970759f5c..73afe8d70ce 100644 --- a/config/acx.m4 +++ b/config/acx.m4 @@ -552,3 +552,41 @@ AC_DEFUN([ACX_CHECK_PROG_VER],[ $1="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing $2" fi ]) + +dnl Support the --with-pkgversion configure option. +dnl ACX_PKGVERSION(default-pkgversion) +AC_DEFUN([ACX_PKGVERSION],[ + AC_ARG_WITH(pkgversion, + AS_HELP_STRING([--with-pkgversion=PKG], + [Use PKG in the version string in place of "$1"]), + [case "$withval" in + yes) AC_MSG_ERROR([package version not specified]) ;; + no) PKGVERSION= ;; + *) PKGVERSION="($withval) " ;; + esac], + PKGVERSION="($1) " + ) + AC_SUBST(PKGVERSION) +]) + +dnl Support the --with-bugurl configure option. +dnl ACX_BUGURL(default-bugurl) +AC_DEFUN([ACX_BUGURL],[ + AC_ARG_WITH(bugurl, + AS_HELP_STRING([--with-bugurl=URL], + [Direct users to URL to report a bug]), + [case "$withval" in + yes) AC_MSG_ERROR([bug URL not specified]) ;; + no) REPORT_BUGS_TO=""; + REPORT_BUGS_TEXI="" + ;; + *) REPORT_BUGS_TO="<$withval>" + REPORT_BUGS_TEXI="@uref{`echo $withval | sed 's/@/@@/g'`}" + ;; + esac], + REPORT_BUGS_TO="<$1>" + REPORT_BUGS_TEXI="@uref{$1}" + ) + AC_SUBST(REPORT_BUGS_TO) + AC_SUBST(REPORT_BUGS_TEXI) +]) |