Last change
on this file since 71 was
71,
checked in by Sam Hocevar, 20 years ago
|
- Fixed keywords, ignore, and lots of tiny SVN things.
|
-
Property svn:keywords set to
Id
|
File size:
1.1 KB
|
Rev | Line | |
---|
[71] | 1 | # $Id: configure.ac 71 2003-10-02 01:08:13Z sam $ |
---|
[17] | 2 | |
---|
[63] | 3 | AC_INIT(ttyvaders,0.0cvs-20021223) |
---|
[17] | 4 | |
---|
| 5 | AC_PREREQ(2.50) |
---|
| 6 | AC_CONFIG_SRCDIR(src/main.c) |
---|
[39] | 7 | AC_CONFIG_AUX_DIR(autotools) |
---|
[17] | 8 | AC_CANONICAL_SYSTEM |
---|
| 9 | |
---|
[63] | 10 | AM_INIT_AUTOMAKE(ttyvaders,0.0cvs-20021223) |
---|
[17] | 11 | AM_CONFIG_HEADER(config.h) |
---|
| 12 | |
---|
| 13 | AM_PROG_CC_C_O |
---|
| 14 | AC_PROG_CPP |
---|
| 15 | |
---|
[51] | 16 | AC_ARG_ENABLE(slang, |
---|
| 17 | [ --enable-slang slang graphics support (default enabled)]) |
---|
[17] | 18 | AC_ARG_ENABLE(ncurses, |
---|
[51] | 19 | [ --enable-ncurses ncurses graphics support (default disabled)]) |
---|
[17] | 20 | |
---|
[65] | 21 | USE_SLANG=false |
---|
| 22 | USE_NCURSES=false |
---|
[17] | 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])) |
---|
[65] | 27 | USE_NCURSES=: |
---|
[17] | 28 | else |
---|
[51] | 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])) |
---|
[65] | 33 | USE_SLANG=: |
---|
[51] | 34 | else |
---|
| 35 | : |
---|
| 36 | fi |
---|
[17] | 37 | fi |
---|
| 38 | |
---|
[65] | 39 | AM_CONDITIONAL(USE_SLANG, ${USE_SLANG}) |
---|
| 40 | AM_CONDITIONAL(USE_NCURSES, ${USE_NCURSES}) |
---|
[17] | 41 | |
---|
| 42 | AC_OUTPUT([ |
---|
| 43 | Makefile |
---|
| 44 | src/Makefile |
---|
[39] | 45 | autotools/Makefile |
---|
[17] | 46 | debian/Makefile |
---|
| 47 | ]) |
---|
| 48 | |
---|
Note: See
TracBrowser
for help on using the repository browser.