slang: add ncurses optional dependency
authorRomain Naour <romain.naour@openwide.fr>
Thu, 27 Mar 2014 23:06:33 +0000 (00:06 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 28 Mar 2014 08:54:45 +0000 (09:54 +0100)
Ncurses check need to be disabled if ncurses package is not
selected.
If we don't do that, host's ncurses5-config may be used by
configure script.

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/slang/slang.mk

index c6f0383833b62c9ad693050dc7bed39be1b3ce5c..d943de3f505383d6f5652fe970abc1571ea05910 100644 (file)
@@ -13,6 +13,12 @@ SLANG_LICENSE_FILES = COPYING
 SLANG_INSTALL_STAGING = YES
 SLANG_MAKE = $(MAKE1)
 
+ifeq ($(BR2_PACKAGE_NCURSES),y)
+       SLANG_DEPENDENCIES = ncurses
+else
+       SLANG_CONF_OPT = ac_cv_path_nc5config=no
+endif
+
 # The installation location of the slang library
 # does not take into account the DESTDIR directory.
 # So SLANG_INST_LIB is initialized with -L/usr/lib/