]> git.ipfire.org Git - thirdparty/mtr.git/commit
build: use AC_CHECK_LIB for ncurses, rather than pkg-tool 172/head
authorMatt Kimball <matt.kimball@gmail.com>
Mon, 26 Dec 2016 09:26:01 +0000 (01:26 -0800)
committerMatt Kimball <matt.kimball@gmail.com>
Mon, 26 Dec 2016 09:32:38 +0000 (01:32 -0800)
commitf8e6dfa4fbbc6eb5fd089bdd82ba24788875b2da
tree76d092163425db3df793a68dfcd7a894b46481d7
parenta82413a7a871433807ef3c0ab83a8390694f81c9
build: use AC_CHECK_LIB for ncurses, rather than pkg-tool

pkg-tool is indeed an elegant way to check for the presence
of libraries.  When using pkg-config to check for ncurses, this
works great... for Linux.  Unfortunately, on FreeBSD and MacOS,
ncurses is installed by default, but pkg-config is not.  When
pkg-config is installed on these systems, it doesn't know about
the system installed ncurses.

Therefore, somewhat counterintuitively, it is better for portability
to just us AC_CHECK_LIB instead of PKG_CHECK_MODULES to find
ncurses.
configure.ac
ui/curses.c
ui/display.c
ui/display.h
ui/mtr.c
ui/split.c