1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/.../nss/nss-config.in
5 # Copyright (C) 2008 - 2020 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License. A copy of the
12 # GNU General Public License can be found in the file COPYING.
13 # --- T2-COPYRIGHT-NOTE-END ---
17 major_version=@MOD_MAJOR_VERSION@
18 minor_version=@MOD_MINOR_VERSION@
19 patch_version=@MOD_PATCH_VERSION@
24 Usage: nss-config [OPTIONS] [LIBRARIES]
42 if test $# -eq 0; then
51 while test $# -gt 0; do
53 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
83 echo ${major_version}.${minor_version}.${patch_version}
110 # Set variables that may be dependent upon other variables
111 if test -z "$exec_prefix"; then
112 exec_prefix=@exec_prefix@
114 if test -z "$includedir"; then
115 includedir=@includedir@
117 if test -z "$libdir"; then
121 if test "$echo_prefix" = "yes"; then
125 if test "$echo_exec_prefix" = "yes"; then
129 if test "$echo_includedir" = "yes"; then
133 if test "$echo_libdir" = "yes"; then
137 if test "$echo_cflags" = "yes"; then
141 if test "$echo_libs" = "yes"; then
142 libdirs="-Wl,-R$libdir -L$libdir"
143 if test -n "$lib_ssl"; then
144 libdirs="$libdirs -lssl${major_version}"
146 if test -n "$lib_smime"; then
147 libdirs="$libdirs -lsmime${major_version}"
149 if test -n "$lib_nss"; then
150 libdirs="$libdirs -lnss${major_version}"
152 if test -n "$lib_nssutil"; then
153 libdirs="$libdirs -lnssutil${major_version}"