Bump for 3.6-28
[LibreOffice.git] / nss / nss-config.patch
blob071cb99dfe13a3c509268339de245969bafb6437
1 --- /dev/null
2 +++ misc/build/nss-3.13.5/mozilla/security/nss/nss-config.in 2010-06-11 16:35:54.946870871 +0200
3 @@ -0,0 +1,147 @@
4 +#!/bin/sh
6 +prefix=@prefix@
8 +major_version=@MOD_MAJOR_VERSION@
9 +minor_version=@MOD_MINOR_VERSION@
10 +patch_version=@MOD_PATCH_VERSION@
12 +usage()
14 + cat <<EOF
15 +Usage: nss-config [OPTIONS] [LIBRARIES]
16 +Options:
17 + [--prefix[=DIR]]
18 + [--exec-prefix[=DIR]]
19 + [--includedir[=DIR]]
20 + [--libdir[=DIR]]
21 + [--version]
22 + [--libs]
23 + [--cflags]
24 +Dynamic Libraries:
25 + nss
26 + ssl
27 + smime
28 +EOF
29 + exit $1
32 +if test $# -eq 0; then
33 + usage 1 1>&2
34 +fi
36 +lib_ssl=yes
37 +lib_smime=yes
38 +lib_nss=yes
39 +lib_nssutil=yes
41 +while test $# -gt 0; do
42 + case "$1" in
43 + -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
44 + *) optarg= ;;
45 + esac
47 + case $1 in
48 + --prefix=*)
49 + prefix=$optarg
50 + ;;
51 + --prefix)
52 + echo_prefix=yes
53 + ;;
54 + --exec-prefix=*)
55 + exec_prefix=$optarg
56 + ;;
57 + --exec-prefix)
58 + echo_exec_prefix=yes
59 + ;;
60 + --includedir=*)
61 + includedir=$optarg
62 + ;;
63 + --includedir)
64 + echo_includedir=yes
65 + ;;
66 + --libdir=*)
67 + libdir=$optarg
68 + ;;
69 + --libdir)
70 + echo_libdir=yes
71 + ;;
72 + --version)
73 + echo ${major_version}.${minor_version}.${patch_version}
74 + ;;
75 + --cflags)
76 + echo_cflags=yes
77 + ;;
78 + --libs)
79 + echo_libs=yes
80 + ;;
81 + ssl)
82 + lib_ssl=yes
83 + ;;
84 + smime)
85 + lib_smime=yes
86 + ;;
87 + nss)
88 + lib_nss=yes
89 + ;;
90 + nssutil)
91 + lib_nssutil=yes
92 + ;;
93 + *)
94 + usage 1 1>&2
95 + ;;
96 + esac
97 + shift
98 +done
100 +# Set variables that may be dependent upon other variables
101 +if test -z "$exec_prefix"; then
102 + exec_prefix=${prefix}
104 +if test -z "$includedir"; then
105 + includedir=@includedir@
107 +if test -z "$libdir"; then
108 + libdir=${exec_prefix}/lib
111 +if test "$echo_prefix" = "yes"; then
112 + echo $prefix
115 +if test "$echo_exec_prefix" = "yes"; then
116 + echo $exec_prefix
119 +if test "$echo_includedir" = "yes"; then
120 + echo $includedir
123 +if test "$echo_libdir" = "yes"; then
124 + echo $libdir
127 +if test "$echo_cflags" = "yes"; then
128 + echo -I$includedir
131 +if test "$echo_libs" = "yes"; then
132 + libdirs="-L$libdir"
133 + if test `uname` != Darwin; then
134 + libdirs="-Wl,-rpath-link,$libdir $libdirs"
135 + fi
136 + if test -n "$lib_ssl"; then
137 + libdirs="$libdirs -lssl${major_version}"
138 + fi
139 + if test -n "$lib_smime"; then
140 + libdirs="$libdirs -lsmime${major_version}"
141 + fi
142 + if test -n "$lib_nss"; then
143 + libdirs="$libdirs -lnss${major_version}"
144 + fi
145 + if test -n "$lib_nssutil"; then
146 + libdirs="$libdirs -lnssutil${major_version}"
147 + fi
148 + echo $libdirs
149 +fi