]> git.ipfire.org Git - thirdparty/asterisk.git/commit
BuildSystem: Enable Jansson in Solaris 11.
authorAlexander Traud <pabstraud@compuserve.com>
Sat, 28 Jul 2018 13:08:40 +0000 (15:08 +0200)
committerAlexander Traud <pabstraud@compuserve.com>
Sat, 28 Jul 2018 13:09:30 +0000 (08:09 -0500)
commit7fa8708460b12decc54e8d4e31df19d26665d656
treec507afe31c0203be3208b66ba6a7559ec6992cb6
parent9165735a7dcb806e6402e519b8b81a5f694dcc94
BuildSystem: Enable Jansson in Solaris 11.

In Solaris, the header <jansson.h> is in /usr/include/jansson. To find
Jansson even in such a subdirectory, the tool pkg-config is queried via
AST_PKG_CONFIG_CHECK. For those platforms, which do not list Jansson via
pkg-config, the previous check remains and is executed thereafter.

Because the check for the NetBSD Editline library uses the tool pkg-config
conditionally PKG_PROG_PKG_CONFIG must be used. Because that check happens
earlier than Jansson, it must be placed in front of that.

The script configure does some pre-checks for the script configure of the
Asterisk internal NetBSD Editline library. The check for the library ncurses
should use not use the header <curses.h> but <ncurses.h>, because on some
platforms <curses.h> is not a drop-in replacement for <ncurses.h>: For example
in Solaris, the symbol initscr is a typedef in <curses.h> to a symbol which
does not exist in the library ncurses (initscr32). Simply use <ncurses.h> when
you link to ncurses.

ASTERISK-27991

Change-Id: I69ea0f379f87a50049654b2487c76ee1c04fa53a
configure
configure.ac
include/asterisk/autoconfig.h.in