5 major_version=@MOD_MAJOR_VERSION@
6 minor_version=@MOD_MINOR_VERSION@
7 patch_version=@MOD_PATCH_VERSION@
12 Usage: nss-config [OPTIONS] [LIBRARIES]
30 if test $# -eq 0; then
39 while test $# -gt 0; do
41 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71 echo ${major_version}.${minor_version}.${patch_version}
98 # Set variables that may be dependent upon other variables
99 if test -z "$exec_prefix"; then
100 exec_prefix=`pkg-config --variable=exec_prefix nss`
102 if test -z "$includedir"; then
103 includedir=`pkg-config --variable=includedir nss`
105 if test -z "$libdir"; then
106 libdir=`pkg-config --variable=libdir nss`
109 if test "$echo_prefix" = "yes"; then
113 if test "$echo_exec_prefix" = "yes"; then
117 if test "$echo_includedir" = "yes"; then
121 if test "$echo_libdir" = "yes"; then
125 if test "$echo_cflags" = "yes"; then
129 if test "$echo_libs" = "yes"; then
130 libdirs="-Wl,-rpath-link,$libdir -L$libdir"
131 if test -n "$lib_ssl"; then
132 libdirs="$libdirs -lssl${major_version}"
134 if test -n "$lib_smime"; then
135 libdirs="$libdirs -lsmime${major_version}"
137 if test -n "$lib_nss"; then
138 libdirs="$libdirs -lnss${major_version}"
140 if test -n "$lib_nssutil"; then
141 libdirs="$libdirs -lnssutil${major_version}"