mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
If ncurses*-config script is present, use it in configure
when testing for ncurses library. See #198.
This commit is contained in:
parent
96c929f82b
commit
c23770245e
11
configure.ac
11
configure.ac
@ -147,15 +147,22 @@ fi
|
||||
# HTOP_CHECK_NCURSES_LIBRARY(LIBNAME, FUNCTION, DEFINE, CONFIG_SCRIPT, ELSE_PART)
|
||||
m4_define([HTOP_CHECK_NCURSES_LIBRARY],
|
||||
[
|
||||
config_script=$([$4] --libs 2> /dev/null)
|
||||
save_LDFLAGS="$LDFLAGS"
|
||||
if test ! "x$config_script" = x; then
|
||||
LDFLAGS="$config_script $LDFLAGS"
|
||||
fi
|
||||
AC_CHECK_LIB([$1], [$2], [
|
||||
AC_DEFINE([$3], 1, [The library is present.])
|
||||
config_script=$([$4] --libs 2> /dev/null)
|
||||
if test ! "x$config_script" = x; then
|
||||
LIBS="$config_script $LIBS "
|
||||
else
|
||||
LIBS="-l[$1] $LIBS "
|
||||
fi
|
||||
], [$5])
|
||||
LDFLAGS="$save_LDFLAGS"
|
||||
], [
|
||||
LDFLAGS="$save_LDFLAGS"
|
||||
$5])
|
||||
])
|
||||
|
||||
AC_ARG_ENABLE(unicode, [AC_HELP_STRING([--enable-unicode], [enable Unicode support])], ,enable_unicode="yes")
|
||||
|
Loading…
Reference in New Issue
Block a user