source: ttyvaders/trunk/configure.ac @ 40

Last change on this file since 40 was 40, checked in by Sam Hocevar, 17 years ago
  • Moved generated autotools files to the autotools/ directory.
File size: 862 bytes
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(ncurses,
17  [  --enable-ncurses        ncurses interface support (default is slang)])
18
19if test "${enable_ncurses}" = "yes"
20then
21  AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
22  AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library]))
23else
24  AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
25  AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
26fi
27
28AM_CONDITIONAL(USE_NCURSES, test "${enable_ncurses}" = "yes")
29
30AC_OUTPUT([
31  Makefile
32  src/Makefile
33  autotools/Makefile
34  debian/Makefile
35])
36
Note: See TracBrowser for help on using the repository browser.