summaryrefslogtreecommitdiff
path: root/libc/aclocal.m4
diff options
context:
space:
mode:
authorjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2008-09-26 16:27:00 +0000
committerjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2008-09-26 16:27:00 +0000
commitb26073ea8b9473fd8f1d1edda0d4a63dc5a9dc83 (patch)
treea0f50ca1f91de15afce18ffcbc33c2740964ed36 /libc/aclocal.m4
parent892052c4f276840e377448b23ce0a98e07ba614c (diff)
libc:
* aclocal.m4 (ACX_PKGVERSION, ACX_BUGURL): Define. * configure.in: Use ACX_PKGVERSION and ACX_BUGURL. * configure: Regenerate. * config.h.in (PKGVERSION, REPORT_BUGS_TO): Undefine. * config.make.in (PKGVERSION, REPORT_BUGS_TO): Define. * catgets/gencat.c (more_help): Use REPORT_BUGS_TO. (print_version): Use PKGVERSION. * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO. * debug/Makefile ($(objpfx)catchsegv, $(objpfx)xtrace): Also substitute PKGVERSION and REPORT_BUGS_TO. * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO. * debug/pcprofiledump.c (print_version, argp_program_version_hook): New. (more_help): Use REPORT_BUGS_TO. * debug/xtrace.sh: Use PKGVERSION and REPORT_BUGS_TO. * elf/Makefile (common-ldd-rewrite): Also substitute PKGVERSION and REPORT_BUGS_TO. * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO. * elf/ldconfig.c (doc): Use REPORT_BUGS_TO. (print_version): Use PKGVERSION. * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO. * elf/sln.c (usage): New. (main): Support --help and --version. * elf/sprof.c (doc): Use REPORT_BUGS_TO. (print_version): Use PKGVERSION. * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO. (print_version): Use PKGVERSION. * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO. (print_version): Use PKGVERSION. * locale/programs/locale.c (doc): Use REPORT_BUGS_TO. (print_version): Use PKGVERSION. * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO. (print_version): Use PKGVERSION. * login/programs/pt_chown.c * malloc/Makefile ($(objpfx)mtrace, $(objpfx)memusage): Also substitute PKGVERSION and REPORT_BUGS_TO. * malloc/memusage.sh: Use PKGVERSION and REPORT_BUGS_TO. * malloc/memusagestat.c (print_version, argp_program_version_hook): New. (more_help): Use REPORT_BUGS_TO. * malloc/mtrace.pl: Use PKGVERSION and REPORT_BUGS_TO. * manual/Makefile (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on pkgvers.texi. (pkgvers.texi, stamp-pkgvers): New. * manual/install.texi: Adjust bug database description. Use REPORT_BUGS_TO. * manual/libc.texinfo: Include pkgvers.texi. Use PKGVERSION. * nscd/nscd.c (doc): Use REPORT_BUGS_TO. (print_version): Use PKGVERSION. * nss/getent.c (doc): Use REPORT_BUGS_TO. (print_version): Use PKGVERSION. * nss/makedb.c (more_help): Use REPORT_BUGS_TO. (print_version): Use PKGVERSION. * posix/getconf.c (main): Send --version output to stdout. Use PKGVERSION. Support --help. * sunrpc/proto.h (REPORT_BUGS_TO, PKGVERSION): Define for cross-rpcgen. * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS arguments. All callers changed. Use REPORT_BUGS_TO (print_version): New. (parseargs): Support --help and --version. * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers changed. Use REPORT_BUGS_TO. (print_version): New. (main): Use getopt_long. Support --help and --version. * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and --version. * timezone/Makefile: Use -DCROSS_ZIC for cross-zic. ($(objpfx)tzselect): Also substitute PKGVERSION and REPORT_BUGS_TO. * timezone/tzselect.ksh: Support --help and --version. * timezone/zdump.c (usage): New. (main): Use it. Support --help. Print program name and PKGVERSION in --version output. * timezone/zic.c (usage): Take STREAM and STATUS arguments. All callers changed. Use REPORT_BUGS_TO. (main): Support --help. Print program name and PKGVERSION in --version output. localedef: * configure.ac: Support --with-pkgversion and --with-bugurl. * configure, config.h.in: Regenerate. git-svn-id: svn://svn.eglibc.org/trunk@7026 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/aclocal.m4')
-rw-r--r--libc/aclocal.m446
1 files changed, 46 insertions, 0 deletions
diff --git a/libc/aclocal.m4 b/libc/aclocal.m4
index dbc8b1ef4..21f3474ed 100644
--- a/libc/aclocal.m4
+++ b/libc/aclocal.m4
@@ -123,3 +123,49 @@ AC_CACHE_CHECK(whether $LD is GNU ld, libc_cv_prog_ld_gnu,
[LIBC_PROG_FOO_GNU($LD, libc_cv_prog_ld_gnu=yes, libc_cv_prog_ld_gnu=no)])
gnu_ld=$libc_cv_prog_ld_gnu
])
+
+# These two macros are taken from GCC's config/acx.m4.
+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) BUGURL=
+ ;;
+ *) BUGURL="$withval"
+ ;;
+ esac],
+ BUGURL="$1"
+ )
+ 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_TEXI)
+])