2007-03-26 H.J. Lu <hongjiu.lu@intel.com>

* acx.m4 (ACX_BUGURL): Set BUGURL first. Quote $BUGURL first
	when setting REPORT_BUGS_TEXI.
This commit is contained in:
H.J. Lu 2007-03-26 15:40:00 +00:00
parent d52fb0e920
commit 5bd8253dbb
4 changed files with 35 additions and 12 deletions

View file

@ -1,3 +1,7 @@
2003-03-26 H.J. Lu <hongjiu.lu@intel.com>
* configure: Regenerated.
2007-03-26 Alan Modra <amodra@bigpond.net.au> 2007-03-26 Alan Modra <amodra@bigpond.net.au>
* elf32-spu.c (struct stubarr): Add stub_hash_table and err fields. * elf32-spu.c (struct stubarr): Add stub_hash_table and err fields.

19
bfd/configure vendored
View file

@ -4415,18 +4415,25 @@ if test "${with_bugurl+set}" = set; then
yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
echo "$as_me: error: bug URL not specified" >&2;} echo "$as_me: error: bug URL not specified" >&2;}
{ (exit 1); exit 1; }; } ;; { (exit 1); exit 1; }; } ;;
no) REPORT_BUGS_TO=""; no) BUGURL=
REPORT_BUGS_TEXI=""
;; ;;
*) REPORT_BUGS_TO="<$withval>" *) BUGURL="$withval"
REPORT_BUGS_TEXI="@uref{`echo $withval | sed 's/@/@@/g'`}"
;; ;;
esac esac
else else
REPORT_BUGS_TO="<http://www.sourceware.org/bugzilla/>" BUGURL="http://www.sourceware.org/bugzilla/"
REPORT_BUGS_TEXI="@uref{`echo http://www.sourceware.org/bugzilla/ | sed 's/@/@@/g'`}"
fi; fi;
case ${BUGURL} in
"")
REPORT_BUGS_TO=
REPORT_BUGS_TEXI=
;;
*)
REPORT_BUGS_TO="<$BUGURL>"
REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
;;
esac;

View file

@ -1,3 +1,8 @@
2007-03-26 H.J. Lu <hongjiu.lu@intel.com>
* acx.m4 (ACX_BUGURL): Set BUGURL first. Quote $BUGURL first
when setting REPORT_BUGS_TEXI.
2007-03-23 H.J. Lu <hongjiu.lu@intel.com> 2007-03-23 H.J. Lu <hongjiu.lu@intel.com>
* acx.m4 (ACX_BUGURL): Replace "@" with "@@" for * acx.m4 (ACX_BUGURL): Replace "@" with "@@" for

View file

@ -577,16 +577,23 @@ AC_DEFUN([ACX_BUGURL],[
[Direct users to URL to report a bug]), [Direct users to URL to report a bug]),
[case "$withval" in [case "$withval" in
yes) AC_MSG_ERROR([bug URL not specified]) ;; yes) AC_MSG_ERROR([bug URL not specified]) ;;
no) REPORT_BUGS_TO=""; no) BUGURL=
REPORT_BUGS_TEXI=""
;; ;;
*) REPORT_BUGS_TO="<$withval>" *) BUGURL="$withval"
REPORT_BUGS_TEXI="@uref{`echo $withval | sed 's/@/@@/g'`}"
;; ;;
esac], esac],
REPORT_BUGS_TO="<$1>" BUGURL="$1"
REPORT_BUGS_TEXI="@uref{`echo $1 | sed 's/@/@@/g'`}"
) )
case ${BUGURL} in
"")
REPORT_BUGS_TO=
REPORT_BUGS_TEXI=
;;
*)
REPORT_BUGS_TO="<$BUGURL>"
REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
;;
esac;
AC_SUBST(REPORT_BUGS_TO) AC_SUBST(REPORT_BUGS_TO)
AC_SUBST(REPORT_BUGS_TEXI) AC_SUBST(REPORT_BUGS_TEXI)
]) ])