Ignore:
Timestamp:
Dec 22, 2003, 4:26:12 PM (17 years ago)
Author:
Sam Hocevar
Message:
  • src/graphics.c src/caca.c src/io.c: + Support for simultaneously compiled-in drivers. + Honour the CACA_DRIVER environment variable.
  • configure.ac: + Drivers are no longer mutually exclusive.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r253 r265  
    3838              Define if <pc.h> defines ScreenUpdate.)],[
    3939    AC_MSG_RESULT(no)])
    40   AC_DEFINE(USE_CONIO, 1, Define if the backend driver is conio.h)
    41 elif test "${enable_slang}" = "yes"; then
     40  AC_DEFINE(USE_CONIO, 1, Define to activate the conio.h backend driver)
     41fi
     42
     43if test "${enable_slang}" = "yes"; then
    4244  AC_CHECK_HEADERS(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
    4345  AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
    44   AC_DEFINE(USE_SLANG, 1, Define if the backend driver is slang)
     46  AC_DEFINE(USE_SLANG, 1, Define to activate the slang backend driver)
    4547  CACA_LIBS="${CACA_LIBS} -lslang"
    46 elif test "${enable_x11}" = "yes"; then
     48fi
     49
     50if test "${enable_x11}" = "yes"; then
    4751  AC_PATH_X
    4852  AC_CHECK_LIB(X11, XOpenDisplay,
     
    5559    AC_MSG_ERROR([cannot find X11 development files])
    5660  fi
    57   AC_DEFINE(USE_X11, 1, Define if the backend driver is X11)
     61  AC_DEFINE(USE_X11, 1, Define to activate the X11 backend driver)
    5862  CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}"
    5963  CACA_LIBS="${CACA_LIBS} ${X_LIBS}"
    60 elif test "${enable_ncurses}" != "no"; then
     64fi
     65
     66if test "${enable_ncurses}" != "no"; then
    6167  AC_CHECK_HEADERS(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
    6268  AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library]))
    63   AC_DEFINE(USE_NCURSES, 1, Define if the backend driver is ncurses)
     69  AC_DEFINE(USE_NCURSES, 1, Define to activate the ncurses backend driver)
    6470  CACA_LIBS="${CACA_LIBS} -lncurses"
    65 else
    66   AC_MSG_ERROR([could not find any terminal graphics interface])
    6771fi
    6872
Note: See TracChangeset for help on using the changeset viewer.