   	[NSS_FOUND=yes],
   	[NSS_FOUND=no])
   fi
---- 535,541 ----
+  
+  if test "z$NSS_FOUND" = "zno" ; then 
+--- 535,550 ----
       AC_MSG_RESULT(no)
       NSS_FOUND="without"
   elif test "z$with_nss" = "z" -a "z$with_nspr" = "z" -a "z$with_mozilla_ver" = "z" -a "z$PKG_CONFIG_ENABLED" = "zyes" ; then
 !     PKG_CHECK_MODULES(NSS, $MOZ_FLAVOUR-nspr >= $MOZILLA_MIN_VERSION $MOZ_FLAVOUR-nss >= $MOZILLA_MIN_VERSION,
   	[NSS_FOUND=yes],
   	[NSS_FOUND=no])
++     AC_MSG_RESULT($NSS_FOUND)
++     if test "z$NSS_FOUND" = "zno" ; then 
++         PKG_CHECK_MODULES(NSS, nspr >= $NSPR_MIN_VERSION nss >= $NSS_MIN_VERSION,
++ 	    [NSS_FOUND=yes],
++ 	    [NSS_FOUND=no])
++         AC_MSG_RESULT($NSS_FOUND)
++     fi
   fi
+  
+  if test "z$NSS_FOUND" = "zno" ; then 
 ***************
 *** 534,541 ****
           ac_mozilla_name=mozilla-$MOZILLA_MIN_VERSION

  	done
      fi
  
--- 599,624 ----
  		fi
  		NSPR_LIBS_FOUND="yes"
  		break

          	dnl do not add -L/usr/lib because compiler does it anyway
      		if test "z$dir" = "z/usr/lib" ; then
          	    NSS_LIBS="$NSS_LIBS_LIST"
--- 683,691 ----
          done
         
          for dir in $ac_nss_lib_dir ; do
