detect ncurses or curses instead of hardcoding ncurses, fixing libedit build on some platforms
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6373 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
34addf8d26
commit
28213aad14
|
@ -134,7 +134,6 @@ freeswitch_LDADD = libfreeswitch.la libs/apr/libapr-1.la
|
||||||
if ADD_LIBEDIT
|
if ADD_LIBEDIT
|
||||||
CORE_CFLAGS += -Ilibs/libedit/src -DSWITCH_HAVE_LIBEDIT
|
CORE_CFLAGS += -Ilibs/libedit/src -DSWITCH_HAVE_LIBEDIT
|
||||||
CORE_LIBS += libs/libedit/src/.libs/libedit.a
|
CORE_LIBS += libs/libedit/src/.libs/libedit.a
|
||||||
freeswitch_LDADD += -lcurses
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if ADD_ODBC
|
if ADD_ODBC
|
||||||
|
|
|
@ -393,6 +393,12 @@ AC_ARG_ENABLE(core-odbc-support,
|
||||||
AC_ARG_ENABLE(core-libedit-support,
|
AC_ARG_ENABLE(core-libedit-support,
|
||||||
[ --enable-core-libedit-support Compile with libedit Support],,[enable_core_libedit_support="no"])
|
[ --enable-core-libedit-support Compile with libedit Support],,[enable_core_libedit_support="no"])
|
||||||
|
|
||||||
|
if test "$enable_core_libedit_support" = "yes" ; then
|
||||||
|
AC_CHECK_LIB(ncurses, tgetent,,
|
||||||
|
[AC_CHECK_LIB(curses, tgetent,,
|
||||||
|
[AC_MSG_ERROR([libtermcap, libcurses or libncurses are required!])] )] )
|
||||||
|
fi
|
||||||
|
|
||||||
#AX_LIB_MYSQL([MINIMUM-VERSION])
|
#AX_LIB_MYSQL([MINIMUM-VERSION])
|
||||||
AX_LIB_MYSQL
|
AX_LIB_MYSQL
|
||||||
AX_CHECK_JAVA
|
AX_CHECK_JAVA
|
||||||
|
|
Loading…
Reference in New Issue