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 | |
---|
1 | dnl Autoconf settings for ttyvaders |
---|
2 | |
---|
3 | AC_INIT(ttyvaders,0.0cvs-20021223) |
---|
4 | |
---|
5 | AC_PREREQ(2.50) |
---|
6 | AC_CONFIG_SRCDIR(src/main.c) |
---|
7 | AC_CONFIG_AUX_DIR(autotools) |
---|
8 | AC_CANONICAL_SYSTEM |
---|
9 | |
---|
10 | AM_INIT_AUTOMAKE(ttyvaders,0.0cvs-20021223) |
---|
11 | AM_CONFIG_HEADER(config.h) |
---|
12 | |
---|
13 | AM_PROG_CC_C_O |
---|
14 | AC_PROG_CPP |
---|
15 | |
---|
16 | AC_ARG_ENABLE(slang, |
---|
17 | [ --enable-slang slang graphics support (default enabled)]) |
---|
18 | AC_ARG_ENABLE(ncurses, |
---|
19 | [ --enable-ncurses ncurses graphics support (default disabled)]) |
---|
20 | |
---|
21 | USE_SLANG=false |
---|
22 | USE_NCURSES=false |
---|
23 | if test "${enable_ncurses}" = "yes" |
---|
24 | then |
---|
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=: |
---|
28 | else |
---|
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 |
---|
37 | fi |
---|
38 | |
---|
39 | AM_CONDITIONAL(USE_SLANG, ${USE_SLANG}) |
---|
40 | AM_CONDITIONAL(USE_NCURSES, ${USE_NCURSES}) |
---|
41 | |
---|
42 | AC_OUTPUT([ |
---|
43 | Makefile |
---|
44 | src/Makefile |
---|
45 | autotools/Makefile |
---|
46 | debian/Makefile |
---|
47 | ]) |
---|
48 | |
---|
Note: See
TracBrowser
for help on using the repository browser.