source: libcaca/trunk/configure.ac @ 51

Last change on this file since 51 was 51, checked in by Sam Hocevar, 18 years ago
  • added support for --disable-slang.
  • fixed an overflow in the tunnel update code.
  • fragbomb is now 'f', not 'd'.
  • added a missing call to init_bonus().
File size: 1.1 KB
Line 
1dnl Autoconf settings for ttyvaders
2
3AC_INIT(ttyvaders,0.0cvs-20021218)
4
5AC_PREREQ(2.50)
6AC_CONFIG_SRCDIR(src/main.c)
7AC_CONFIG_AUX_DIR(autotools)
8AC_CANONICAL_SYSTEM
9
10AM_INIT_AUTOMAKE(ttyvaders,0.0cvs-20021218)
11AM_CONFIG_HEADER(config.h)
12
13AM_PROG_CC_C_O
14AC_PROG_CPP
15
16AC_ARG_ENABLE(slang,
17  [  --enable-slang          slang graphics support (default enabled)])
18AC_ARG_ENABLE(ncurses,
19  [  --enable-ncurses        ncurses graphics support (default disabled)])
20
21if test "${enable_ncurses}" = "yes"
22then
23  AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
24  AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library]))
25else
26  if test "${enable_slang}" != "no"
27  then
28    AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
29    AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
30  else
31    :
32  fi
33fi
34
35AM_CONDITIONAL(USE_SLANG, test "${enable_slang}" != "no")
36AM_CONDITIONAL(USE_NCURSES, test "${enable_ncurses}" = "yes")
37
38AC_OUTPUT([
39  Makefile
40  src/Makefile
41  autotools/Makefile
42  debian/Makefile
43])
44
Note: See TracBrowser for help on using the repository browser.