-
Notifications
You must be signed in to change notification settings - Fork 16
/
pdflib-config.in
98 lines (93 loc) · 2.31 KB
/
pdflib-config.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/bin/sh
#
# Return information about the local PDFlib installation
#
# $Id: pdflib-config.in,v 1.10 2001/04/12 13:33:05 tm Exp $
# installation directories
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
bindir=@bindir@
usage()
{
cat <<EOF
Print information on PDFlib's version, configuration, and use.
Usage: pdflib-config [options]
Options:
--bindings # available PDFlib language bindings
--libdir # directory where PDFlib library is installed
--includedir # directory where PDFlib header is installed
--version # complete PDFlib version string
--majorversion # PDFlib major version number
--minorversion # PDFlib minor version number
--revision # PDFlib revision version number
--libversion # PDFlib's libtool interface number (not
# necessarily the shared library file name suffix!)
--pdi # whether or not PDF import library (PDI) is available
--ldflags # options required for linking against PDFlib
--libs # same as --ldflags
--cflags # options required for compiling PDFlib applications
--includes # same as --cflags
--all # print a summary of all PDFlib configure options
EOF
exit $1
}
if test $# -eq 0; then
usage 1 1>&2
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--bindings)
echo @BINDINGS@
;;
--libdir)
echo $libdir
;;
--includedir)
echo $includedir
;;
--version)
echo @VERSION@
;;
--majorversion)
echo @PDFLIB_MAJOR@
;;
--minorversion)
echo @PDFLIB_MINOR@
;;
--pdi)
echo @WITH_PDI@
;;
--revision)
echo @PDFLIB_REVISION@
;;
--libversion)
echo @PDFLIB_LTCURRENT@:@PDFLIB_LTREVISION@:@PDFLIB_LTAGE@
;;
--libs|--ldflags)
echo -L@libdir@ -l@PDFLIBNAME@ @EXTERNALLIBS@
;;
--cflags|--includes)
echo -I@includedir@
;;
--all)
echo "PDFlib @VERSION@"
echo "bindings: @BINDINGS@"
echo "includedir: $includedir"
echo "libdir: $libdir"
echo "libversion: @PDFLIB_LTCURRENT@:@PDFLIB_LTREVISION@:@PDFLIB_LTAGE@"
echo "pdi: @WITH_PDI@"
echo "ldflags: -L@libdir@ -l@PDFLIBNAME@ @EXTERNALLIBS@"
echo "cflags: -I@includedir@"
;;
*)
usage 1 1>&2
;;
esac
shift
done