From a1ac8190312a85c3726a7cfbdd938462cec9907b Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 23 Mar 2007 02:51:30 +0000 Subject: bfd: * configure.in: Use ACX_PKGVERSION and ACX_BUGURL. * configure: Regenerate. config: * acx.m4 (ACX_PKGVERSION, ACX_BUGURL): Define. --- bfd/ChangeLog | 5 +++++ bfd/configure | 36 +++++++++++++++++++----------------- bfd/configure.in | 33 ++------------------------------- 3 files changed, 26 insertions(+), 48 deletions(-) (limited to 'bfd') diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 3d7d87c..a598833 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2007-03-23 Joseph Myers + + * configure.in: Use ACX_PKGVERSION and ACX_BUGURL. + * configure: Regenerate. + 2007-03-23 Alan Modra * elf32-spu.c (spu_stub_name): Don't put input section in stub name. diff --git a/bfd/configure b/bfd/configure index bb651a5..fe5e9ce 100755 --- a/bfd/configure +++ b/bfd/configure @@ -873,7 +873,8 @@ Optional Packages: --with-gnu-ld assume the C compiler uses GNU ld default=no --with-pic try to use only PIC/non-PIC objects default=use both --with-mmap try using mmap for BFD input files if available - --with-pkgversion=PKG Add PKG to the version string + --with-pkgversion=PKG Use PKG in the version string in place of "GNU + Binutils" --with-bugurl=URL Direct users to URL to report a bug Some influential environment variables: @@ -4033,7 +4034,7 @@ test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" case $host in *-*-irix6*) # Find out which ABI we are using. - echo '#line 4036 "configure"' > conftest.$ac_ext + echo '#line 4037 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -4387,49 +4388,50 @@ _ACEOF fi -# Package version. For an official FSF release, it is empty. + # Check whether --with-pkgversion or --without-pkgversion was given. if test "${with_pkgversion+set}" = set; then withval="$with_pkgversion" case "$withval" in - yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5 + yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5 echo "$as_me: error: package version not specified" >&2;} { (exit 1); exit 1; }; } ;; - no) PKGVERSION= ;; - *) PKGVERSION="($withval) " ;; - esac + no) PKGVERSION= ;; + *) PKGVERSION="($withval) " ;; + esac else PKGVERSION="(GNU Binutils) " fi; -# The location to which bugs should be reported. + # Check whether --with-bugurl or --without-bugurl was given. if test "${with_bugurl+set}" = set; then withval="$with_bugurl" case "$withval" in - 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;} { (exit 1); exit 1; }; } ;; - no) REPORT_BUGS_TO=""; - REPORT_BUGS_TEXI="" - ;; - *) REPORT_BUGS_TO="<$withval>" - REPORT_BUGS_TEXI="@uref{`echo $withval | sed 's/@/@@/g'`}" - ;; - esac + no) REPORT_BUGS_TO=""; + REPORT_BUGS_TEXI="" + ;; + *) REPORT_BUGS_TO="<$withval>" + REPORT_BUGS_TEXI="@uref{`echo $withval | sed 's/@/@@/g'`}" + ;; + esac else REPORT_BUGS_TO="" - REPORT_BUGS_TEXI="@uref{http://www.sourceware.org/bugzilla/}" + REPORT_BUGS_TEXI="@uref{http://www.sourceware.org/bugzilla/}" fi; + GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" # Check whether --enable-werror or --disable-werror was given. diff --git a/bfd/configure.in b/bfd/configure.in index bb7065b..4524c62 100644 --- a/bfd/configure.in +++ b/bfd/configure.in @@ -63,37 +63,8 @@ if test $use_secureplt = true; then [Define if we should default to creating read-only plt entries]) fi -# Package version. For an official FSF release, it is empty. -AC_ARG_WITH(pkgversion, - AS_HELP_STRING([--with-pkgversion=PKG], - [Add PKG to the version string]), - [case "$withval" in - yes) AC_MSG_ERROR([package version not specified]) ;; - no) PKGVERSION= ;; - *) PKGVERSION="($withval) " ;; - esac], - PKGVERSION="(GNU Binutils) " -) -AC_SUBST(PKGVERSION) - -# The location to which bugs should be reported. -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="" - REPORT_BUGS_TEXI="@uref{http://www.sourceware.org/bugzilla/}" -) -AC_SUBST(REPORT_BUGS_TO) -AC_SUBST(REPORT_BUGS_TEXI) +ACX_PKGVERSION([GNU Binutils]) +ACX_BUGURL([http://www.sourceware.org/bugzilla/]) AM_BINUTILS_WARNINGS -- cgit v1.1