Lines 52-83
Link Here
|
52 |
], |
52 |
], |
53 |
AC_MSG_RESULT(no)) |
53 |
AC_MSG_RESULT(no)) |
54 |
|
54 |
|
55 |
# see if we are building "in tree" with the |
|
|
56 |
# other mozilla components |
57 |
if test -z "$nss_inc" -o -z "$nss_lib"; then |
58 |
nsslibpath=`echo ../../dist/*.OBJ/lib | cut -f1 -d' '` |
59 |
savedir=`pwd` |
60 |
cd $nsslibpath |
61 |
abs_nsslibpath=`pwd` |
62 |
cd $savedir |
63 |
nssincpath=../../dist/public/nss |
64 |
savedir=`pwd` |
65 |
cd $nssincpath |
66 |
abs_nssincpath=`pwd` |
67 |
cd $savedir |
68 |
if test -f "$abs_nssincpath/nss.h" ; then |
69 |
nss_inc="-I$abs_nssincpath" |
70 |
fi |
71 |
if test -d "$abs_nsslibpath" ; then |
72 |
nss_lib="-L$abs_nsslibpath" |
73 |
fi |
74 |
if test -n "$nss_inc" -a -n "$nss_lib" ; then |
75 |
AC_MSG_CHECKING(using in-tree NSS from $nssincpath $nsslibpath) |
76 |
else |
77 |
AC_MSG_CHECKING(could not find in-tree NSS in ../../dist) |
78 |
fi |
79 |
fi |
80 |
|
81 |
# if NSS is not found yet, try pkg-config |
55 |
# if NSS is not found yet, try pkg-config |
82 |
# last resort |
56 |
# last resort |
83 |
if test -z "$nss_inc" -o -z "$nss_lib"; then |
57 |
if test -z "$nss_inc" -o -z "$nss_lib"; then |