Ignore:
Timestamp:
Mar 16, 2006, 1:49:20 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Use UTF-8 enable ncurses (ncursesw) if available. Doesn't seem to work.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r610 r629  
    159159if test "${enable_ncurses}" != "no"; then
    160160  ac_cv_my_have_ncurses="no"
    161   AC_CHECK_HEADERS(curses.h ncurses.h,
    162    [AC_CHECK_LIB(ncurses, initscr,
    163      [ac_cv_my_have_ncurses="yes"
    164       AC_DEFINE(USE_NCURSES, 1, Define to 1 to activate the ncurses backend driver)
    165       CACA_LIBS="${CACA_LIBS} -lncurses"
    166       CACA_DRIVERS="${CACA_DRIVERS} ncurses"
    167       dnl  Check for resizeterm or resize_term
    168       SAVED_LIBS="${LIBS}"
    169       LIBS="${LIBS} -lncurses"
    170       AC_CHECK_FUNCS(resizeterm resize_term)
    171       LIBS="${SAVED_LIBS}"])
     161  AC_CHECK_HEADERS(ncursesw/ncurses.h ncurses/ncurses.h ncurses.h curses.h,
     162   [ncurses="no"
     163    AC_CHECK_LIB(ncursesw, initscr,
     164     [ncurses="-lncursesw"],
     165     [AC_CHECK_LIB(ncurses, initscr,
     166       [ncurses="-lncurses"])])
     167    if test "${ncurses}" = "no"; then
     168      continue
     169    fi
     170    ac_cv_my_have_ncurses="yes"
     171    AC_DEFINE(USE_NCURSES, 1, Define to 1 to activate the ncurses backend driver)
     172    CACA_LIBS="${CACA_LIBS} ${ncurses}"
     173    CACA_DRIVERS="${CACA_DRIVERS} ncurses"
     174    dnl  Check for resizeterm or resize_term
     175    SAVED_LIBS="${LIBS}"
     176    LIBS="${LIBS} ${ncurses}"
     177    AC_CHECK_FUNCS(resizeterm resize_term)
     178    LIBS="${SAVED_LIBS}"
    172179    break])
    173180  if test "${ac_cv_my_have_ncurses}" = "no" -a "${enable_ncurses}" = "yes"; then
Note: See TracChangeset for help on using the changeset viewer.