source: ttyvaders/trunk/configure.ac @ 36

Last change on this file since 36 was 26, checked in by Sam Hocevar, 18 years ago
  • the bomb's head is now white
File size: 812 bytes
RevLine 
[18]1dnl Autoconf settings for ttyvaders
2
[26]3AC_INIT(ttyvaders,0.0cvs-20021218)
[18]4
5AC_PREREQ(2.50)
6AC_CONFIG_SRCDIR(src/main.c)
7AC_CANONICAL_SYSTEM
8
[26]9AM_INIT_AUTOMAKE(ttyvaders,0.0cvs-20021218)
[18]10AM_CONFIG_HEADER(config.h)
11
12AM_PROG_CC_C_O
13AC_PROG_CPP
14
15AC_ARG_ENABLE(ncurses,
16  [  --enable-ncurses        ncurses interface support (default is slang)])
17
18if test "${enable_ncurses}" = "yes"
19then
20  AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
21  AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library]))
22else
23  AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
24  AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
25fi
26
27AM_CONDITIONAL(USE_NCURSES, test "${enable_ncurses}" = "yes")
28
29AC_OUTPUT([
30  Makefile
31  src/Makefile
32  debian/Makefile
33])
34
Note: See TracBrowser for help on using the repository browser.