Revision 21532,
1.6 KB
checked in by ghudson, 20 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r21531,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | #! /bin/sh |
---|
2 | |
---|
3 | prefix=@prefix@ |
---|
4 | exec_prefix=@exec_prefix@ |
---|
5 | includedir=@includedir@ |
---|
6 | libdir=@libdir@ |
---|
7 | |
---|
8 | usage() |
---|
9 | { |
---|
10 | cat <<EOF |
---|
11 | Usage: xml2-config [OPTION] |
---|
12 | |
---|
13 | Known values for OPTION are: |
---|
14 | |
---|
15 | --prefix=DIR change libxml prefix [default $prefix] |
---|
16 | --exec-prefix=DIR change libxml exec prefix [default $exec_prefix] |
---|
17 | --libs print library linking information |
---|
18 | --libtool-libs print linking information for use with libtool |
---|
19 | --cflags print pre-processor and compiler flags |
---|
20 | --modules module support enabled |
---|
21 | --help display this help and exit |
---|
22 | --version output version information |
---|
23 | EOF |
---|
24 | |
---|
25 | exit $1 |
---|
26 | } |
---|
27 | |
---|
28 | if test $# -eq 0; then |
---|
29 | usage 1 |
---|
30 | fi |
---|
31 | |
---|
32 | cflags=false |
---|
33 | libs=false |
---|
34 | |
---|
35 | while test $# -gt 0; do |
---|
36 | case "$1" in |
---|
37 | -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
38 | *) optarg= ;; |
---|
39 | esac |
---|
40 | |
---|
41 | case "$1" in |
---|
42 | --prefix=*) |
---|
43 | prefix=$optarg |
---|
44 | includedir=$prefix/include |
---|
45 | libdir=$prefix/lib |
---|
46 | ;; |
---|
47 | |
---|
48 | --prefix) |
---|
49 | echo $prefix |
---|
50 | ;; |
---|
51 | |
---|
52 | --exec-prefix=*) |
---|
53 | exec_prefix=$optarg |
---|
54 | libdir=$exec_prefix/lib |
---|
55 | ;; |
---|
56 | |
---|
57 | --exec-prefix) |
---|
58 | echo $exec_prefix |
---|
59 | ;; |
---|
60 | |
---|
61 | --version) |
---|
62 | echo @VERSION@ |
---|
63 | exit 0 |
---|
64 | ;; |
---|
65 | |
---|
66 | --help) |
---|
67 | usage 0 |
---|
68 | ;; |
---|
69 | |
---|
70 | --cflags) |
---|
71 | echo @XML_INCLUDEDIR@ @XML_CFLAGS@ |
---|
72 | ;; |
---|
73 | |
---|
74 | --libtool-libs) |
---|
75 | echo ${libdir}/@XML_LIBTOOLLIBS@ |
---|
76 | ;; |
---|
77 | |
---|
78 | --modules) |
---|
79 | echo @WITH_MODULES@ |
---|
80 | ;; |
---|
81 | |
---|
82 | --libs) |
---|
83 | if [ "`uname`" = "Linux" ] |
---|
84 | then |
---|
85 | if [ "@XML_LIBDIR@" = "-L/usr/lib64" ] |
---|
86 | then |
---|
87 | echo @XML_LIBS@ |
---|
88 | else |
---|
89 | echo @XML_LIBDIR@ @XML_LIBS@ |
---|
90 | fi |
---|
91 | else |
---|
92 | echo @XML_LIBDIR@ @XML_LIBS@ |
---|
93 | fi |
---|
94 | ;; |
---|
95 | |
---|
96 | *) |
---|
97 | usage |
---|
98 | exit 1 |
---|
99 | ;; |
---|
100 | esac |
---|
101 | shift |
---|
102 | done |
---|
103 | |
---|
104 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.