gpg-error.m4 (libksba-1.4.0.tar.bz2) | : | gpg-error.m4 (libksba-1.5.0.tar.bz2) | ||
---|---|---|---|---|
# gpg-error.m4 - autoconf macro to detect libgpg-error. | # gpg-error.m4 - autoconf macro to detect libgpg-error. | |||
# Copyright (C) 2002, 2003, 2004, 2011, 2014, 2018 g10 Code GmbH | # Copyright (C) 2002, 2003, 2004, 2011, 2014, 2018, 2020 g10 Code GmbH | |||
# | # | |||
# This file is free software; as a special exception the author gives | # This file is free software; as a special exception the author gives | |||
# unlimited permission to copy and/or distribute it, with or without | # unlimited permission to copy and/or distribute it, with or without | |||
# modifications, as long as this notice is preserved. | # modifications, as long as this notice is preserved. | |||
# | # | |||
# This file is distributed in the hope that it will be useful, but | # This file is distributed in the hope that it will be useful, but | |||
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the | # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the | |||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |||
# | # | |||
# Last-changed: 2018-11-02 | # Last-changed: 2020-11-17 | |||
dnl AM_PATH_GPG_ERROR([MINIMUM-VERSION, | dnl AM_PATH_GPG_ERROR([MINIMUM-VERSION, | |||
dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]]) | dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]]) | |||
dnl | dnl | |||
dnl Test for libgpg-error and define GPG_ERROR_CFLAGS, GPG_ERROR_LIBS, | dnl Test for libgpg-error and define GPG_ERROR_CFLAGS, GPG_ERROR_LIBS, | |||
dnl GPG_ERROR_MT_CFLAGS, and GPG_ERROR_MT_LIBS. The _MT_ variants are | dnl GPG_ERROR_MT_CFLAGS, and GPG_ERROR_MT_LIBS. The _MT_ variants are | |||
dnl used for programs requireing real multi thread support. | dnl used for programs requireing real multi thread support. | |||
dnl | dnl | |||
dnl If a prefix option is not used, the config script is first | dnl If a prefix option is not used, the config script is first | |||
dnl searched in $SYSROOT/bin and then along $PATH. If the used | dnl searched in $SYSROOT/bin and then along $PATH. If the used | |||
dnl config script does not match the host specification the script | dnl config script does not match the host specification the script | |||
dnl is added to the gpg_config_script_warn variable. | dnl is added to the gpg_config_script_warn variable. | |||
dnl | dnl | |||
AC_DEFUN([AM_PATH_GPG_ERROR], | AC_DEFUN([AM_PATH_GPG_ERROR], | |||
[ AC_REQUIRE([AC_CANONICAL_HOST]) | [ AC_REQUIRE([AC_CANONICAL_HOST]) | |||
gpg_error_config_prefix="" | gpg_error_config_prefix="" | |||
dnl --with-libgpg-error-prefix=PFX is the preferred name for this option, | dnl --with-libgpg-error-prefix=PFX is the preferred name for this option, | |||
dnl since that is consistent with how our three siblings use the directory/ | dnl since that is consistent with how our three siblings use the directory/ | |||
dnl package name in --with-$dir_name-prefix=PFX. | dnl package name in --with-$dir_name-prefix=PFX. | |||
AC_ARG_WITH(libgpg-error-prefix, | AC_ARG_WITH(libgpg-error-prefix, | |||
AC_HELP_STRING([--with-libgpg-error-prefix=PFX], | AS_HELP_STRING([--with-libgpg-error-prefix=PFX], | |||
[prefix where GPG Error is installed (optional)]), | [prefix where GPG Error is installed (optional)]), | |||
[gpg_error_config_prefix="$withval"]) | [gpg_error_config_prefix="$withval"]) | |||
dnl Accept --with-gpg-error-prefix and make it work the same as | dnl Accept --with-gpg-error-prefix and make it work the same as | |||
dnl --with-libgpg-error-prefix above, for backwards compatibility, | dnl --with-libgpg-error-prefix above, for backwards compatibility, | |||
dnl but do not document this old, inconsistently-named option. | dnl but do not document this old, inconsistently-named option. | |||
AC_ARG_WITH(gpg-error-prefix,, | AC_ARG_WITH(gpg-error-prefix,, | |||
[gpg_error_config_prefix="$withval"]) | [gpg_error_config_prefix="$withval"]) | |||
if test x"${GPG_ERROR_CONFIG}" = x ; then | if test x"${GPG_ERROR_CONFIG}" = x ; then | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added |