source: ttyvaders/trunk/configure.ac @ 70

Last change on this file since 70 was 66, checked in by Sam Hocevar, 20 years ago
  • fixed the ncurses build.
  • replaced '�' with ':' in the fragbomb tail because it's not ASCII.
File size: 1.1 KB
Line 
1dnl Autoconf settings for ttyvaders
2
3AC_INIT(ttyvaders,0.0cvs-20021223)
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-20021223)
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
21USE_SLANG=false
22USE_NCURSES=false
23if test "${enable_ncurses}" = "yes"
24then
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]))
27  USE_NCURSES=:
28else
29  if test "${enable_slang}" != "no"
30  then
31    AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
32    AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
33    USE_SLANG=:
34  else
35    :
36  fi
37fi
38
39AM_CONDITIONAL(USE_SLANG, ${USE_SLANG})
40AM_CONDITIONAL(USE_NCURSES, ${USE_NCURSES})
41
42AC_OUTPUT([
43  Makefile
44  src/Makefile
45  autotools/Makefile
46  debian/Makefile
47])
48
Note: See TracBrowser for help on using the repository browser.