config BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT
	def_bool y
	depends on !BR2_arc && !BR2_xtensa && !BR2_bfin

config BR2_PACKAGE_LIBNSPR
	bool "libnspr"
	depends on BR2_LARGEFILE
	depends on BR2_TOOLCHAIN_HAS_THREADS
	depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT
	help
	  NSPR is the Netscape Portable Runtime library which provides
	  a platform-neutral API for system level and libc like
	  functions. The library is used by the Mozilla project as well
	  as others.

	  http://www.mozilla.org/projects/nspr/

comment "libnspr needs a toolchain w/ largefile, threads"
	depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT
	depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
