]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ldns/packaging/ldns-config.in
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / ldns / packaging / ldns-config.in
1 #!/bin/sh
2
3 prefix="@prefix@"
4 exec_prefix="@exec_prefix@"
5 VERSION="@PACKAGE_VERSION@"
6 CFLAGS="@CFLAGS@"
7 CPPFLAGS="@CPPFLAGS@ @LIBSSL_CPPFLAGS@ @PYTHON_CPPFLAGS@"
8 LDFLAGS="@LDFLAGS@ @LIBSSL_LDFLAGS@ @PYTHON_LDFLAGS@"
9 LIBS="@LIBS@ @LIBSSL_LIBS@"
10 LIBDIR="@libdir@"
11 INCLUDEDIR="@includedir@"
12
13 for arg in $@
14 do
15     if [ $arg = "--cflags" ]
16     then
17         echo "-I${INCLUDEDIR}"
18     fi
19     if [ $arg = "--libs" ]
20     then
21         echo "${LDFLAGS} -L${LIBDIR} ${LIBS} -lldns"
22     fi
23     if [ $arg = "-h" ] || [ $arg = "--help" ]
24     then
25         echo "Usage: $0 [--cflags] [--libs] [--version]"
26     fi
27     if [ $arg = "--version" ]
28     then
29         echo "${VERSION}"
30     fi
31 done