diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2018-09-05 11:55:55 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2018-09-05 11:55:55 +0900 |
commit | 61d78fdc25e5ff9289697c141457d8d322232250 (patch) | |
tree | dd45a5a2070d63d4f08ecbde0dc672624c93ead0 | |
parent | aa697dae4c363b3d24ec9be3a0cd41df3bf806ce (diff) | |
download | libgpg-error-61d78fdc25e5ff9289697c141457d8d322232250.tar.gz |
gpg-error-config: Forward compatibility support.
* src/gpg-error-config.in: Support --variable=* option.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
-rw-r--r-- | src/gpg-error-config.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gpg-error-config.in b/src/gpg-error-config.in index 93f25f7..e050632 100644 --- a/src/gpg-error-config.in +++ b/src/gpg-error-config.in @@ -67,6 +67,16 @@ while test $# -gt 0; do echo "@PACKAGE_VERSION@" exit 0 ;; + --variable=*) + case "${1#*=}" in + prefix) echo "$prefix" ;; + exec_prefix) echo "$exec_prefix" ;; + host) echo "@GPG_ERROR_CONFIG_HOST@" ;; + mtcflags) echo "@GPG_ERROR_CONFIG_MT_CFLAGS@" ;; + mtlibs) echo "@GPG_ERROR_CONFIG_MT_LIBS@";; + esac + exit 0 + ;; --cflags) output="$output @GPG_ERROR_CONFIG_CFLAGS@" if test $mt = yes ; then |