--- configure.ac (Asterisk 13.22) +++ configure.ac (working copy) @@ -585,2 +585,4 @@ +PKG_PROG_PKG_CONFIG() + # Find required NetBSD Editline library (libedit). @@ -627,3 +629,3 @@ else - AST_EXT_LIB_CHECK([NCURSES], [ncurses], [initscr], [curses.h]) + AST_EXT_LIB_CHECK([NCURSES], [ncurses], [initscr], [ncurses.h]) if test "x$NCURSES_LIB" != "x" ; then @@ -666,2 +668,3 @@ # Find required JSON support. +AST_PKG_CONFIG_CHECK([JANSSON], [jansson]) AST_EXT_LIB_CHECK([JANSSON], [jansson], [json_dumps], [jansson.h]) @@ -1481,5 +1484,2 @@ -# PKGCONFIG is used in later tests -PKG_PROG_PKG_CONFIG() -