kconfig: do not require pkg-config on make {menu,n}config
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 31 Aug 2018 09:34:55 +0000 (18:34 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 2 Sep 2018 17:13:48 +0000 (02:13 +0900)
commitfd65465b7016dc6d9fa5c2f39cc706c231c9a089
tree56763fcfd78b59f7f8096a3616a34ef8fec30245
parentbc8d2e20a3eb2f8d268ad7bbca878cf3acdcf389
kconfig: do not require pkg-config on make {menu,n}config

Meelis Roos reported a {menu,n}config regression:
 "I have libncurses devel package installed in the default system
  location (as do 99%+ on actual developers probably) and in this
  case, pkg-config is useless.  pkg-config is needed only when
  libraries and headers are installed in non-default locations but
  it is bad to require installation of pkg-config on all the machines
  where make menuconfig would be possibly run."

For {menu,n}config, do not use pkg-config if it is not installed.
For {g,x}config, keep checking pkg-config since we really rely on it
for finding the installation paths of the required packages.

Fixes: 4ab3b80159d4 ("kconfig: check for pkg-config on make {menu,n,g,x}config")
Reported-by: Meelis Roos <mroos@linux.ee>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Tested-by: Meelis Roos <mroos@linux.ee>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Documentation/process/changes.rst
scripts/kconfig/Makefile
scripts/kconfig/check-pkgconfig.sh [deleted file]
scripts/kconfig/gconf-cfg.sh
scripts/kconfig/mconf-cfg.sh
scripts/kconfig/nconf-cfg.sh
scripts/kconfig/qconf-cfg.sh