aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2018-09-05 02:55:55 +0000
committerNIIBE Yutaka <[email protected]>2018-09-05 02:55:55 +0000
commit61d78fdc25e5ff9289697c141457d8d322232250 (patch)
treedd45a5a2070d63d4f08ecbde0dc672624c93ead0
parentgpg-error-config: Determine output at configure time. (diff)
downloadlibgpg-error-61d78fdc25e5ff9289697c141457d8d322232250.tar.gz
libgpg-error-61d78fdc25e5ff9289697c141457d8d322232250.zip
gpg-error-config: Forward compatibility support.
* src/gpg-error-config.in: Support --variable=* option. Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--src/gpg-error-config.in10
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