ksba.m4 (libksba-1.4.0.tar.bz2) | : | ksba.m4 (libksba-1.5.0.tar.bz2) | ||
---|---|---|---|---|
# ksba.m4 - autoconf macro to detect ksba | # ksba.m4 - autoconf macro to detect ksba | |||
# Copyright (C) 2002, 2018 g10 Code GmbH | # Copyright (C) 2002, 2018 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: 2020-11-18 | ||||
dnl AM_PATH_KSBA([MINIMUM-VERSION, | dnl AM_PATH_KSBA([MINIMUM-VERSION, | |||
dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]]) | dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]]) | |||
dnl Test for libksba and define KSBA_CFLAGS and KSBA_LIBS | dnl Test for libksba and define KSBA_CFLAGS and KSBA_LIBS | |||
dnl MINIMUN-VERSION is a string with the version number optionalliy prefixed | dnl MINIMUN-VERSION is a string with the version number optionalliy prefixed | |||
dnl with the API version to also check the API compatibility. Example: | dnl with the API version to also check the API compatibility. Example: | |||
dnl a MINIMUN-VERSION of 1:1.0.7 won't pass the test unless the installed | dnl a MINIMUN-VERSION of 1:1.0.7 won't pass the test unless the installed | |||
dnl version of libksba is at least 1.0.7 *and* the API number is 1. Using | dnl version of libksba is at least 1.0.7 *and* the API number is 1. Using | |||
dnl this features allows to prevent build against newer versions of libksba | dnl this features allows to prevent build against newer versions of libksba | |||
dnl with a changed API. | dnl with a changed API. | |||
dnl | dnl | |||
AC_DEFUN([AM_PATH_KSBA], | AC_DEFUN([AM_PATH_KSBA], | |||
[ AC_REQUIRE([AC_CANONICAL_HOST]) | [ AC_REQUIRE([AC_CANONICAL_HOST]) | |||
dnl --with-libksba-prefix=PFX is the preferred name for this option, | dnl --with-libksba-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(libksba-prefix, | AC_ARG_WITH(libksba-prefix, | |||
AC_HELP_STRING([--with-libksba-prefix=PFX], | AS_HELP_STRING([--with-libksba-prefix=PFX], | |||
[prefix where KSBA is installed (optional)]), | [prefix where KSBA is installed (optional)]), | |||
ksba_config_prefix="$withval", ksba_config_prefix="") | ksba_config_prefix="$withval", ksba_config_prefix="") | |||
dnl Accept --with-ksba-prefix and make it work the same as | dnl Accept --with-ksba-prefix and make it work the same as | |||
dnl --with-libksba-prefix above, for backwards compatibility, | dnl --with-libksba-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(ksba-prefix,, | AC_ARG_WITH(ksba-prefix,, | |||
ksba_config_prefix="$withval", ksba_config_prefix="") | ksba_config_prefix="$withval", ksba_config_prefix="") | |||
if test x$ksba_config_prefix != x ; then | if test x$ksba_config_prefix != x ; then | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 3 lines changed or added |