build: Log the detected '*curses*.pc' file into config.log
When "configure" suggests user to install pkg-config, output the
'*curses*.pc' file detected in the config.log. This aids diagnosing
the configure script.
Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
diff --git a/configure.ac b/configure.ac
index 19fcccc..353c523 100644
--- a/configure.ac
+++ b/configure.ac
@@ -607,6 +607,7 @@
for d in $list; do
result=`find "$d" -name '*curses*.pc' 2>/dev/null | sed '1 q'`
if test "x$result" != x; then
+ echo detected a .pc file: "$result" >&AS_MESSAGE_LOG_FD
AC_MSG_WARN([your system supports pkg-config; installing pkg-config is recommended before configuring htop])
break
fi