diff options
author | Joseph Myers <joseph@codesourcery.com> | 2007-03-23 02:51:56 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2007-03-23 02:51:56 +0000 |
commit | ecee68026b5c9005dfb0c351fa1c5edcf44340fa (patch) | |
tree | d4035827a61e144371d4f9449825cd2b02953e0b /config | |
parent | ee2f65b4bf615408fd68b6d586aefa9cfe16f636 (diff) | |
download | gcc-ecee68026b5c9005dfb0c351fa1c5edcf44340fa.zip gcc-ecee68026b5c9005dfb0c351fa1c5edcf44340fa.tar.gz gcc-ecee68026b5c9005dfb0c351fa1c5edcf44340fa.tar.bz2 |
* acx.m4 (ACX_PKGVERSION, ACX_BUGURL): Define.
From-SVN: r123147
Diffstat (limited to 'config')
-rw-r--r-- | config/ChangeLog | 4 | ||||
-rw-r--r-- | config/acx.m4 | 38 |
2 files changed, 42 insertions, 0 deletions
diff --git a/config/ChangeLog b/config/ChangeLog index f0cda7a..250c3ff 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,7 @@ +2007-03-23 Joseph Myers <joseph@codesourcery.com> + + * acx.m4 (ACX_PKGVERSION, ACX_BUGURL): Define. + 2007-03-07 Andreas Schwab <schwab@suse.de> * acx.m4 (GCC_TARGET_TOOL): Expand backquotes outside diff --git a/config/acx.m4 b/config/acx.m4 index a897075..73afe8d 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) +]) |