Use PACKAGE_URL instead of custom PACKAGE_HOMEPAGE.

This commit is contained in:
Lasse Collin 2010-01-27 13:31:03 +02:00
parent 38b8035b5c
commit b063cc34a3
5 changed files with 6 additions and 11 deletions

View File

@ -15,20 +15,15 @@
# of malloc(), stat(), or lstat(), since we don't use those functions in # of malloc(), stat(), or lstat(), since we don't use those functions in
# a way that would cause the problems the autoconf macros check. # a way that would cause the problems the autoconf macros check.
AC_PREREQ([2.61]) AC_PREREQ([2.64])
AC_INIT([XZ Utils], m4_esyscmd([/bin/sh version.sh]), AC_INIT([XZ Utils], m4_esyscmd([/bin/sh version.sh]),
[lasse.collin@tukaani.org], [xz]) [lasse.collin@tukaani.org], [xz], [http://tukaani.org/xz/])
AC_CONFIG_SRCDIR([src/liblzma/common/common.h]) AC_CONFIG_SRCDIR([src/liblzma/common/common.h])
AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADER([config.h]) AC_CONFIG_HEADER([config.h])
PACKAGE_HOMEPAGE=http://tukaani.org/xz/
AC_DEFINE_UNQUOTED([PACKAGE_HOMEPAGE], ["$PACKAGE_HOMEPAGE"],
[Define to the URL of the home page of this package.])
AC_SUBST([PACKAGE_HOMEPAGE])
echo echo
echo "$PACKAGE_STRING" echo "$PACKAGE_STRING"

View File

@ -12,7 +12,7 @@ includedir=@includedir@
Name: liblzma Name: liblzma
Description: General purpose data compression library Description: General purpose data compression library
URL: @PACKAGE_HOMEPAGE@ URL: @PACKAGE_URL@
Version: @PACKAGE_VERSION@ Version: @PACKAGE_VERSION@
Cflags: -I${includedir} Cflags: -I${includedir}
Libs: -L${libdir} -llzma Libs: -L${libdir} -llzma

View File

@ -34,7 +34,7 @@ _("Usage: %s [--help] [--version] [FILE]...\n"
printf(_("Report bugs to <%s> (in English or Finnish).\n"), printf(_("Report bugs to <%s> (in English or Finnish).\n"),
PACKAGE_BUGREPORT); PACKAGE_BUGREPORT);
printf(_("%s home page: <%s>\n"), PACKAGE_NAME, PACKAGE_HOMEPAGE); printf(_("%s home page: <%s>\n"), PACKAGE_NAME, PACKAGE_URL);
tuklib_exit(EXIT_SUCCESS, EXIT_FAILURE, true); tuklib_exit(EXIT_SUCCESS, EXIT_FAILURE, true);
} }

View File

@ -1165,7 +1165,7 @@ message_help(bool long_help)
// address for translation bugs. Thanks. // address for translation bugs. Thanks.
printf(_("Report bugs to <%s> (in English or Finnish).\n"), printf(_("Report bugs to <%s> (in English or Finnish).\n"),
PACKAGE_BUGREPORT); PACKAGE_BUGREPORT);
printf(_("%s home page: <%s>\n"), PACKAGE_NAME, PACKAGE_HOMEPAGE); printf(_("%s home page: <%s>\n"), PACKAGE_NAME, PACKAGE_URL);
tuklib_exit(E_SUCCESS, E_ERROR, verbosity != V_SILENT); tuklib_exit(E_SUCCESS, E_ERROR, verbosity != V_SILENT);
} }

View File

@ -82,7 +82,7 @@ help(void)
"%" PRIu64 " MiB RAM.\n" "%" PRIu64 " MiB RAM.\n"
"\n" "\n"
"Report bugs to <" PACKAGE_BUGREPORT "> (in English or Finnish).\n" "Report bugs to <" PACKAGE_BUGREPORT "> (in English or Finnish).\n"
PACKAGE_NAME " home page: <" PACKAGE_HOMEPAGE ">\n", PACKAGE_NAME " home page: <" PACKAGE_URL ">\n",
progname, memlimit / (1024 * 1024)); progname, memlimit / (1024 * 1024));
tuklib_exit(EXIT_SUCCESS, EXIT_FAILURE, display_errors); tuklib_exit(EXIT_SUCCESS, EXIT_FAILURE, display_errors);
} }