Last change
on this file since 105770 was 105420, checked in by vboxsync, 4 months ago |
libxml2-2.12.6: Applied and adjusted our libxml2 changes to 2.12.6. bugref:10730
|
-
Property svn:eol-style
set to
native
|
File size:
1.8 KB
|
Line | |
---|
1 | #! /bin/sh
|
---|
2 |
|
---|
3 | prefix=@prefix@
|
---|
4 | exec_prefix=@exec_prefix@
|
---|
5 | includedir=@includedir@
|
---|
6 | libdir=@libdir@
|
---|
7 | cflags=
|
---|
8 | libs=
|
---|
9 |
|
---|
10 | usage()
|
---|
11 | {
|
---|
12 | cat <<EOF
|
---|
13 | Usage: xml2-config [OPTION]
|
---|
14 |
|
---|
15 | Known values for OPTION are:
|
---|
16 |
|
---|
17 | --prefix=DIR change libxml prefix [default $prefix]
|
---|
18 | --exec-prefix=DIR change libxml exec prefix [default $exec_prefix]
|
---|
19 | --libs print library linking information
|
---|
20 | add --dynamic to print only shared libraries
|
---|
21 | --cflags print pre-processor and compiler flags
|
---|
22 | --modules module support enabled
|
---|
23 | --help display this help and exit
|
---|
24 | --version output version information
|
---|
25 | EOF
|
---|
26 |
|
---|
27 | exit $1
|
---|
28 | }
|
---|
29 |
|
---|
30 | if test $# -eq 0; then
|
---|
31 | usage 1
|
---|
32 | fi
|
---|
33 |
|
---|
34 | while test $# -gt 0; do
|
---|
35 | case "$1" in
|
---|
36 | -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
---|
37 | *) optarg= ;;
|
---|
38 | esac
|
---|
39 |
|
---|
40 | case "$1" in
|
---|
41 | --prefix=*)
|
---|
42 | prefix=$optarg
|
---|
43 | includedir=$prefix/include
|
---|
44 | libdir=$prefix/lib
|
---|
45 | ;;
|
---|
46 |
|
---|
47 | --prefix)
|
---|
48 | echo $prefix
|
---|
49 | ;;
|
---|
50 |
|
---|
51 | --exec-prefix=*)
|
---|
52 | exec_prefix=$optarg
|
---|
53 | libdir=$exec_prefix/lib
|
---|
54 | ;;
|
---|
55 |
|
---|
56 | --exec-prefix)
|
---|
57 | echo $exec_prefix
|
---|
58 | ;;
|
---|
59 |
|
---|
60 | --version)
|
---|
61 | echo @VERSION@
|
---|
62 | exit 0
|
---|
63 | ;;
|
---|
64 |
|
---|
65 | --help)
|
---|
66 | usage 0
|
---|
67 | ;;
|
---|
68 |
|
---|
69 | --cflags)
|
---|
70 | cflags="@XML_INCLUDEDIR@ @XML_CFLAGS@"
|
---|
71 | ;;
|
---|
72 |
|
---|
73 | --libtool-libs)
|
---|
74 | if [ -r ${libdir}/@XML_LIBTOOLLIBS@ ]
|
---|
75 | then
|
---|
76 | echo ${libdir}/@XML_LIBTOOLLIBS@
|
---|
77 | fi
|
---|
78 | ;;
|
---|
79 |
|
---|
80 | --modules)
|
---|
81 | echo @WITH_MODULES@
|
---|
82 | ;;
|
---|
83 |
|
---|
84 | --libs)
|
---|
85 | if [ "$2" = "--dynamic" ]; then
|
---|
86 | shift
|
---|
87 | libs="@XML_LIBS@ @XML_PRIVATE_LIBS_NO_SHARED@"
|
---|
88 | else
|
---|
89 | libs="@XML_LIBS@ @XML_PRIVATE_LIBS@ @MODULE_PLATFORM_LIBS@ @LIBS@"
|
---|
90 | fi
|
---|
91 |
|
---|
92 | if [ "@XML_LIBDIR@" != "-L/usr/lib" -a "@XML_LIBDIR@" != "-L/usr/lib64" ]; then
|
---|
93 | libs="@XML_LIBDIR@ $libs"
|
---|
94 | fi
|
---|
95 | ;;
|
---|
96 |
|
---|
97 | *)
|
---|
98 | usage 1
|
---|
99 | ;;
|
---|
100 | esac
|
---|
101 | shift
|
---|
102 | done
|
---|
103 |
|
---|
104 | if test -n "$cflags$libs"; then
|
---|
105 | echo $cflags $libs
|
---|
106 | fi
|
---|
107 |
|
---|
108 | exit 0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.