Ignore:
Timestamp:
Jan 9, 2004, 10:51:53 AM (16 years ago)
Author:
Sam Hocevar
Message:
  • test/event.c: + Do not refresh after each event, but only when there is no event

pending.

+ If the pressed key is a printable character, display it.

  • src/time.c: + Moved _caca_getticks() to this file.
  • src/caca.c: + Set the escape delay to a very low value in the ncurses driver,

because I don't want escape sequences to be entered manually.

  • src/io.c: + Autorepeat emulation in the ncurses and slang drivers: do not

immediately send the key release event.

  • configure.ac: + Check for usleep. + Improvements in the win32 platform detection.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r330 r331  
    1616dnl AC_PROG_EGREP only exists in autoconf 2.54+, so we use AC_EGREP_CPP right
    1717dnl now otherwise it might be set in an obscure if statement.
    18 AC_EGREP_CPP(foo,foo)
     18AC_EGREP_CPP(foo, foo)
    1919
    2020AC_ARG_ENABLE(slang,
     
    2222AC_ARG_ENABLE(ncurses,
    2323  [  --enable-ncurses        ncurses graphics support (autodetected)])
     24AC_ARG_ENABLE(win32,
     25  [  --enable-win32          Windows console support (autodetected)])
    2426AC_ARG_ENABLE(conio,
    25   [  --enable-conio          DOS conio.h graphics support (default disabled)])
     27  [  --enable-conio          DOS conio.h graphics support (autodetected)])
    2628AC_ARG_ENABLE(x11,
    2729  [  --enable-x11            X11 support (autodetected)])
    2830
    2931AC_CHECK_HEADERS(inttypes.h endian.h)
    30 AC_CHECK_FUNCS(vsnprintf getenv putenv strcasecmp)
     32AC_CHECK_FUNCS(vsnprintf getenv putenv strcasecmp usleep Sleep)
    3133
    3234CACA_DRIVERS=""
     
    3638  AC_CHECK_HEADERS(conio.h,
    3739   [AC_MSG_CHECKING(for ScreenUpdate in pc.h)
    38     AC_EGREP_HEADER(ScreenUpdate,pc.h,
     40    AC_EGREP_HEADER(ScreenUpdate, pc.h,
    3941     [ac_cv_my_have_conio="yes"
    4042      AC_MSG_RESULT(yes)
     
    4648  if test "${ac_cv_my_have_conio}" = "no" -a "${enable_conio}" = "yes"; then
    4749    AC_MSG_ERROR([cannot find conio.h])
     50  fi
     51fi
     52
     53if test "${enable_win32}" != "no"; then
     54  ac_cv_my_have_win32="no"
     55  AC_CHECK_HEADERS(windows.h,
     56   [AC_MSG_CHECKING(for AllocConsole in windows.h)
     57    AC_EGREP_HEADER(AllocConsole, windows.h,
     58     [ac_cv_my_have_win32="yes"
     59      AC_MSG_RESULT(yes)
     60      AC_DEFINE(ALLOCCONSOLE_IN_WINDOWS_H, 1,
     61                Define if <windows.h> defines AllocConsole.)
     62      AC_DEFINE(USE_WIN32, 1, Define to activate the win32 backend driver)
     63      CACA_DRIVERS="${CACA_DRIVERS} win32"],
     64     [AC_MSG_RESULT(no)])])
     65  if test "${ac_cv_my_have_win32}" = "no" -a "${enable_win32}" = "yes"; then
     66    AC_MSG_ERROR([cannot find win32 console development files])
    4867  fi
    4968fi
Note: See TracChangeset for help on using the changeset viewer.