|
Revision 2096, 1.5 kB
(checked in by karpet, 2 months ago)
|
add prop and meta id auto-init; fix debug scheme to use bitwise comparison
|
| 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: libswish3-config [OPTION] |
|---|
| 12 |
|
|---|
| 13 |
Known values for OPTION are: |
|---|
| 14 |
|
|---|
| 15 |
--prefix=DIR libswish3 prefix [default $prefix] |
|---|
| 16 |
--exec-prefix=DIR libswish3 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 |
--help display this help and exit |
|---|
| 21 |
--version output version information |
|---|
| 22 |
EOF |
|---|
| 23 |
|
|---|
| 24 |
exit $1 |
|---|
| 25 |
} |
|---|
| 26 |
|
|---|
| 27 |
if test $ |
|---|
| 28 |
usage 1 |
|---|
| 29 |
fi |
|---|
| 30 |
|
|---|
| 31 |
cflags=false |
|---|
| 32 |
libs=false |
|---|
| 33 |
|
|---|
| 34 |
while test $ |
|---|
| 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 |
echo @CFLAGS@ -I${includedir} |
|---|
| 71 |
;; |
|---|
| 72 |
|
|---|
| 73 |
--libtool-libs) |
|---|
| 74 |
echo ${libdir}/libswish3.la |
|---|
| 75 |
;; |
|---|
| 76 |
|
|---|
| 77 |
--libs) |
|---|
| 78 |
echo -L${libdir} -lswish3 @LIBS@ |
|---|
| 79 |
;; |
|---|
| 80 |
|
|---|
| 81 |
*) |
|---|
| 82 |
usage 1 |
|---|
| 83 |
exit 1 |
|---|
| 84 |
;; |
|---|
| 85 |
esac |
|---|
| 86 |
shift |
|---|
| 87 |
done |
|---|
| 88 |
|
|---|
| 89 |
exit 0 |
|---|