]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
detect ncurses or curses instead of hardcoding ncurses, fixing libedit build on some...
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 22 Nov 2007 06:24:24 +0000 (06:24 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 22 Nov 2007 06:24:24 +0000 (06:24 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6373 d0543943-73ff-0310-b7d9-9358b9ac24b2

Makefile.am
configure.in

index 52c462e674dd3c31d2cf9e6b78743b966900dab9..446de484533ffd67f4f0c2fce0044eb4f7c6cafb 100644 (file)
@@ -134,7 +134,6 @@ freeswitch_LDADD = libfreeswitch.la libs/apr/libapr-1.la
 if ADD_LIBEDIT
 CORE_CFLAGS    += -Ilibs/libedit/src -DSWITCH_HAVE_LIBEDIT
 CORE_LIBS      += libs/libedit/src/.libs/libedit.a
-freeswitch_LDADD += -lcurses
 endif
 
 if ADD_ODBC
index a084920cbc99cc73af22deafdb66891db2f3553e..9cd36b48013ef4b3a4fa43c2e4fa7af0c66e70a3 100644 (file)
@@ -393,6 +393,12 @@ AC_ARG_ENABLE(core-odbc-support,
 AC_ARG_ENABLE(core-libedit-support,     
        [  --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
 AX_CHECK_JAVA