Last change
on this file since 1567 was 747, checked in by dmik, 10 years ago |
spec: nss: Release version 3.23.0-3.
|
File size:
2.0 KB
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | prefix=@prefix@
|
---|
4 |
|
---|
5 | major_version=@MOD_MAJOR_VERSION@
|
---|
6 | minor_version=@MOD_MINOR_VERSION@
|
---|
7 | patch_version=@MOD_PATCH_VERSION@
|
---|
8 |
|
---|
9 | usage()
|
---|
10 | {
|
---|
11 | cat <<EOF
|
---|
12 | Usage: nss-softokn-config [OPTIONS] [LIBRARIES]
|
---|
13 | Options:
|
---|
14 | [--prefix[=DIR]]
|
---|
15 | [--exec-prefix[=DIR]]
|
---|
16 | [--includedir[=DIR]]
|
---|
17 | [--libdir[=DIR]]
|
---|
18 | [--version]
|
---|
19 | [--libs]
|
---|
20 | [--cflags]
|
---|
21 | Dynamic Libraries:
|
---|
22 | softokn3 - Requires full dynamic linking
|
---|
23 | freebl3 - for internal use only (and glibc for self-integrity check)
|
---|
24 | nssdbm3 - for internal use only
|
---|
25 | Dymamically linked
|
---|
26 | EOF
|
---|
27 | exit $1
|
---|
28 | }
|
---|
29 |
|
---|
30 | if test $# -eq 0; then
|
---|
31 | usage 1 1>&2
|
---|
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 | ;;
|
---|
44 | --prefix)
|
---|
45 | echo_prefix=yes
|
---|
46 | ;;
|
---|
47 | --exec-prefix=*)
|
---|
48 | exec_prefix=$optarg
|
---|
49 | ;;
|
---|
50 | --exec-prefix)
|
---|
51 | echo_exec_prefix=yes
|
---|
52 | ;;
|
---|
53 | --includedir=*)
|
---|
54 | includedir=$optarg
|
---|
55 | ;;
|
---|
56 | --includedir)
|
---|
57 | echo_includedir=yes
|
---|
58 | ;;
|
---|
59 | --libdir=*)
|
---|
60 | libdir=$optarg
|
---|
61 | ;;
|
---|
62 | --libdir)
|
---|
63 | echo_libdir=yes
|
---|
64 | ;;
|
---|
65 | --version)
|
---|
66 | echo ${major_version}.${minor_version}.${patch_version}
|
---|
67 | ;;
|
---|
68 | --cflags)
|
---|
69 | echo_cflags=yes
|
---|
70 | ;;
|
---|
71 | --libs)
|
---|
72 | echo_libs=yes
|
---|
73 | ;;
|
---|
74 | *)
|
---|
75 | usage 1 1>&2
|
---|
76 | ;;
|
---|
77 | esac
|
---|
78 | shift
|
---|
79 | done
|
---|
80 |
|
---|
81 | # Set variables that may be dependent upon other variables
|
---|
82 | if test -z "$exec_prefix"; then
|
---|
83 | exec_prefix=`pkg-config --variable=exec_prefix nss-softokn`
|
---|
84 | fi
|
---|
85 | if test -z "$includedir"; then
|
---|
86 | includedir=`pkg-config --variable=includedir nss-softokn`
|
---|
87 | fi
|
---|
88 | if test -z "$libdir"; then
|
---|
89 | libdir=`pkg-config --variable=libdir nss-softokn`
|
---|
90 | fi
|
---|
91 |
|
---|
92 | if test "$echo_prefix" = "yes"; then
|
---|
93 | echo $prefix
|
---|
94 | fi
|
---|
95 |
|
---|
96 | if test "$echo_exec_prefix" = "yes"; then
|
---|
97 | echo $exec_prefix
|
---|
98 | fi
|
---|
99 |
|
---|
100 | if test "$echo_includedir" = "yes"; then
|
---|
101 | echo $includedir
|
---|
102 | fi
|
---|
103 |
|
---|
104 | if test "$echo_libdir" = "yes"; then
|
---|
105 | echo $libdir
|
---|
106 | fi
|
---|
107 |
|
---|
108 | if test "$echo_cflags" = "yes"; then
|
---|
109 | echo -I$includedir
|
---|
110 | fi
|
---|
111 |
|
---|
112 | if test "$echo_libs" = "yes"; then
|
---|
113 | libdirs="-L$libdir"
|
---|
114 | echo $libdirs
|
---|
115 | fi
|
---|
116 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.