Parent Directory | Revision Log
(Frodo) psiconv-config program plus bugfixes * Bumped up the version number to 0.9.1 * Bumped up the library version to 0.6.1 * Added the psiconv-config program (for autoconf use by third parties) * Added the psiconv_config_free function * Fixed the installation ($includedir/include/general.h)
1 | frodo | 204 | #!/bin/sh |
2 | |||
3 | prefix=@prefix@ | ||
4 | exec_prefix=@exec_prefix@ | ||
5 | exec_prefix_set=no | ||
6 | |||
7 | usage() | ||
8 | { | ||
9 | cat <<EOF | ||
10 | Usage: psiconv-config [OPTIONS] [LIBRARIES] | ||
11 | Options: | ||
12 | [--prefix[=DIR]] | ||
13 | [--exec-prefix[=DIR]] | ||
14 | [--version] | ||
15 | [--libs] | ||
16 | [--cflags] | ||
17 | Libraries: | ||
18 | psiconv | ||
19 | EOF | ||
20 | exit $1 | ||
21 | } | ||
22 | |||
23 | if test $# -eq 0; then | ||
24 | usage 1 1>&2 | ||
25 | fi | ||
26 | |||
27 | lib_psiconv=yes | ||
28 | |||
29 | while test $# -gt 0; do | ||
30 | case "$1" in | ||
31 | -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | ||
32 | *) optarg= ;; | ||
33 | esac | ||
34 | |||
35 | case $1 in | ||
36 | --prefix=*) | ||
37 | prefix=$optarg | ||
38 | if test $exec_prefix_set = no ; then | ||
39 | exec_prefix=$optarg | ||
40 | fi | ||
41 | ;; | ||
42 | --prefix) | ||
43 | echo_prefix=yes | ||
44 | ;; | ||
45 | --exec-prefix=*) | ||
46 | exec_prefix=$optarg | ||
47 | exec_prefix_set=yes | ||
48 | ;; | ||
49 | --exec-prefix) | ||
50 | echo_exec_prefix=yes | ||
51 | ;; | ||
52 | --version) | ||
53 | echo @VERSION@ | ||
54 | exit 0 | ||
55 | ;; | ||
56 | --cflags) | ||
57 | echo_cflags=yes | ||
58 | ;; | ||
59 | --libs) | ||
60 | echo_libs=yes | ||
61 | ;; | ||
62 | psiconv) | ||
63 | lib_psiconv=yes | ||
64 | ;; | ||
65 | *) | ||
66 | usage 1 1>&2 | ||
67 | ;; | ||
68 | esac | ||
69 | shift | ||
70 | done | ||
71 | |||
72 | if test "$echo_prefix" = "yes"; then | ||
73 | echo $prefix | ||
74 | fi | ||
75 | if test "$echo_exec_prefix" = "yes"; then | ||
76 | echo $exec_prefix | ||
77 | fi | ||
78 | if test "$echo_cflags" = "yes"; then | ||
79 | echo -I@includedir@ | ||
80 | fi | ||
81 | if test "$echo_libs" = "yes"; then | ||
82 | libsp="" | ||
83 | if test "$lib_psiconv" = "yes"; then | ||
84 | libsp="$libsp -lpsiconv" | ||
85 | fi | ||
86 | echo -L@libdir@ $libsp | ||
87 | fi |
frodo@frodo.looijaard.name | ViewVC Help |
Powered by ViewVC 1.1.26 |