diff options
author | Jim Meyering <jim@meyering.net> | 2011-11-28 13:46:16 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2011-11-28 15:02:53 +0100 |
commit | e56e1ded234f73a3c6286fb2b3cc652d8ebabbfa (patch) | |
tree | af69acbca12285583b3ff15dbcd18337bef2971c /m4 | |
parent | 377ff84d2187e02e723068d2b14a25cdbc7f5755 (diff) | |
download | libgcrypt-e56e1ded234f73a3c6286fb2b3cc652d8ebabbfa.tar.gz |
accept --with-libgpg-error-prefix as well as --with-gpg-error-prefix
* m4/gpg-error.m4: Update from git master.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/gpg-error.m4 | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/m4/gpg-error.m4 b/m4/gpg-error.m4 index 8d829256..eb5d7c46 100644 --- a/m4/gpg-error.m4 +++ b/m4/gpg-error.m4 @@ -14,10 +14,21 @@ dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]]) dnl Test for libgpg-error and define GPG_ERROR_CFLAGS and GPG_ERROR_LIBS dnl AC_DEFUN([AM_PATH_GPG_ERROR], -[ AC_ARG_WITH(gpg-error-prefix, - AC_HELP_STRING([--with-gpg-error-prefix=PFX], +[ + 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 package name in --with-$dir_name-prefix=PFX. + AC_ARG_WITH(libgpg-error-prefix, + AC_HELP_STRING([--with-libgpg-error-prefix=PFX], [prefix where GPG Error is installed (optional)]), gpg_error_config_prefix="$withval", gpg_error_config_prefix="") + + dnl Accept --with-gpg-error-prefix and make it work the same as + dnl --with-libgpg-error-prefix above, for backwards compatibility, + dnl but do not document this old, inconsistently-named option. + AC_ARG_WITH(gpg-error-prefix,, + gpg_error_config_prefix="$withval", gpg_error_config_prefix="") + if test x$gpg_error_config_prefix != x ; then if test x${GPG_ERROR_CONFIG+set} != xset ; then GPG_ERROR_CONFIG=$gpg_error_config_prefix/bin/gpg-error-config |