source: libcaca/trunk/configure.ac @ 117

Last change on this file since 117 was 117, checked in by Sam Hocevar, 17 years ago
  • test/demo.c: + Wrote a little sprite demo.
  • data/: + Added bar_fighter (from ttyvaders) and bar_boss (from shapes.txt).
  • Property svn:keywords set to Id
File size: 1.2 KB
RevLine 
[71]1# $Id: configure.ac 117 2003-11-10 02:00:19Z sam $
[17]2
[63]3AC_INIT(ttyvaders,0.0cvs-20021223)
[17]4
5AC_PREREQ(2.50)
6AC_CONFIG_SRCDIR(src/main.c)
[39]7AC_CONFIG_AUX_DIR(autotools)
[17]8AC_CANONICAL_SYSTEM
9
[63]10AM_INIT_AUTOMAKE(ttyvaders,0.0cvs-20021223)
[17]11AM_CONFIG_HEADER(config.h)
12
13AM_PROG_CC_C_O
14AC_PROG_CPP
[77]15AC_PROG_RANLIB
[17]16
[51]17AC_ARG_ENABLE(slang,
18  [  --enable-slang          slang graphics support (default enabled)])
[17]19AC_ARG_ENABLE(ncurses,
[51]20  [  --enable-ncurses        ncurses graphics support (default disabled)])
[17]21
[65]22USE_SLANG=false
23USE_NCURSES=false
[111]24if test "${enable_ncurses}" = "yes"; then
[17]25  AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
26  AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library]))
[111]27  AC_DEFINE(USE_NCURSES, 1, Define if the backend driver is ncurses)
[65]28  USE_NCURSES=:
[111]29elif test "${enable_slang}" != "no"; then
30  AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
31  AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
32  AC_DEFINE(USE_SLANG, 1, Define if the backend driver is slang)
33  USE_SLANG=:
[17]34fi
35
[65]36AM_CONDITIONAL(USE_SLANG, ${USE_SLANG})
37AM_CONDITIONAL(USE_NCURSES, ${USE_NCURSES})
[17]38
39AC_OUTPUT([
40  Makefile
[77]41  libee/Makefile
42  test/Makefile
[17]43  src/Makefile
[39]44  autotools/Makefile
[117]45  data/Makefile
[17]46  debian/Makefile
47])
48
Note: See TracBrowser for help on using the repository browser.