1
0
Fork 0

ncurses without config

This commit is contained in:
Frank Celler 2012-01-11 17:29:07 +01:00
parent e841792ce3
commit 978398cbc4
2 changed files with 23 additions and 15 deletions

View File

@ -34,27 +34,34 @@ if test "x$tr_NCURSES" = xyes; then
if test -n "$NCURSES_CONFIG"; then
NCURSES_LIBS="`$NCURSES_CONFIG --libs`"
NCURSES_CPPFLAGS="`$NCURSES_CONFIG --cflags`"
TR_ABSOLUTE_LIBRARIES([ncurses], [NCURSES_LIBS])
if test "x$tr_libraries_found" != xyes; then
AC_MSG_ERROR([Please install the ncurses library])
fi
TRI_NCURSES_VERSION="`$NCURSES_CONFIG --version`"
else
AC_MSG_WARN([Please install the ncurses library])
tr_NCURSES="no"
AC_CHECK_HEADERS(curses.h, [tr_NCURSES="yes"], [tr_NCURSES="no"])
if test "x$tr_NCURSES" = xyes; then
TR_FIND_C_LIBRARY([ncurses], [ncurses], [NCURSES_LIBS], [setupterm])
tr_NCURSES=$tr_library_found
fi
TRI_NCURSES_VERSION="ncurses"
fi
fi
if test "x$tr_NCURSES" = xyes; then
TR_ABSOLUTE_LIBRARIES([ncurses], [NCURSES_LIBS])
if test "x$tr_libraries_found" != xyes; then
AC_MSG_ERROR([Please install the ncurses library])
fi
if test "x$tr_NCURSES" != xyes; then
AC_MSG_ERROR([Please install the ncurses library])
fi
if test "x$tr_NCURSES" = xyes; then
AC_MSG_CHECKING([NCURSES version])
TRI_NCURSES_VERSION="`$NCURSES_CONFIG --version`"
AC_MSG_RESULT([$TRI_NCURSES_VERSION])
CPPFLAGS="$CPPFLAGS -DHAVE_NCURSES=1"
NCURSES_CPPFLAGS="${NCURSES_CPPFLAGS} -DTRI_NCURSES_VERSION='\"${TRI_NCURSES_VERSION}\"'"
fi
AC_MSG_CHECKING([NCURSES version])
AC_MSG_RESULT([$TRI_NCURSES_VERSION])
CPPFLAGS="$CPPFLAGS -DHAVE_NCURSES=1"
NCURSES_CPPFLAGS="${NCURSES_CPPFLAGS} -DTRI_NCURSES_VERSION='\"${TRI_NCURSES_VERSION}\"'"
dnl -----------------------------------------------------------------------------------------
dnl fix include and static libraries

View File

@ -72,6 +72,7 @@ dnl grep libev version number
dnl -----------------------------------------------------------------------------------------
if test "$cross_compiling" = yes; then :
TRI_V8_VERSION="V8"
AC_MSG_WARN([cannot compute V8 version number when cross compiling])
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext