summaryrefslogtreecommitdiff
path: root/src/libgcrypt-config.in
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2002-08-23 18:41:29 +0000
committerWerner Koch <wk@gnupg.org>2002-08-23 18:41:29 +0000
commit1f33736a7a2bc4734d1096ddf8e2468662ba7de6 (patch)
treede3c251081c33937dd03d9a6f9c9bdb807f7a83b /src/libgcrypt-config.in
parent4150841ffbde602dfe602319092c9da63b74c3e4 (diff)
downloadlibgcrypt-1f33736a7a2bc4734d1096ddf8e2468662ba7de6.tar.gz
* missing-string.c: Removed unneeded strlwr.
* libgcrypt.m4: Made much more simple. * libgcrypt-config.in: Made --prefix work for --libs.
Diffstat (limited to 'src/libgcrypt-config.in')
-rw-r--r--src/libgcrypt-config.in30
1 files changed, 22 insertions, 8 deletions
diff --git a/src/libgcrypt-config.in b/src/libgcrypt-config.in
index e1183e19..031488c9 100644
--- a/src/libgcrypt-config.in
+++ b/src/libgcrypt-config.in
@@ -1,5 +1,5 @@
#!/bin/sh
-# Copyright (C) 1999 Free Software Foundation, Inc.
+# Copyright (C) 1999, 2002 Free Software Foundation, Inc.
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
@@ -9,18 +9,24 @@
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+PGM=libgcrypt-config
+libs="@LIBGCRYPT_CONFIG_LIBS@"
+cflags="@LIBGCRYPT_CONFIG_CFLAGS@"
prefix=@prefix@
exec_prefix=@exec_prefix@
+includes=""
+libdirs=""
exec_prefix_set=no
-
-libgcrypt_libs="@LIBGCRYPT_LIBS@"
-libgcrypt_cflags="@LIBGCRYPT_CFLAGS@"
+echo_libs=no
+echo_cflags=no
+echo_prefix=no
+echo_exec_prefix=no
usage()
{
cat <<EOF
-Usage: libgcrypt-config [OPTIONS]
+Usage: $PGM [OPTIONS]
Options:
[--prefix[=DIR]]
[--exec-prefix[=DIR]]
@@ -86,15 +92,23 @@ fi
if test "$echo_cflags" = "yes"; then
if test "@includedir@" != "/usr/include" ; then
includes="-I@includedir@"
- for i in $libgcrypt_cflags ; do
+ for i in $cflags ; do
if test "$i" = "-I@includedir@" ; then
includes=""
fi
done
fi
- echo $includes $libgcrypt_cflags
+ echo $includes $cflags
fi
if test "$echo_libs" = "yes"; then
- echo ${libgcrypt_libs}
+ if test "@libdir@" != "/usr/lib" ; then
+ libdirs="-L@libdir@"
+ for i in $libs ; do
+ if test "$i" = "-L@libdir@" ; then
+ libdirs=""
+ fi
+ done
+ fi
+ echo $libdirs $libs
fi