source: ttyvaders/trunk/configure.ac @ 78

Last change on this file since 78 was 78, checked in by Sam Hocevar, 16 years ago
  • libee is now (almost) standalone.
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1# $Id: configure.ac 78 2003-11-09 12:02:42Z sam $
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
15AC_PROG_RANLIB
16
17AC_ARG_ENABLE(slang,
18  [  --enable-slang          slang graphics support (default enabled)])
19AC_ARG_ENABLE(ncurses,
20  [  --enable-ncurses        ncurses graphics support (default disabled)])
21
22USE_SLANG=false
23USE_NCURSES=false
24if test "${enable_ncurses}" = "yes"
25then
26  AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
27  AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library]))
28  USE_NCURSES=:
29else
30  if test "${enable_slang}" != "no"
31  then
32    AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
33    AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
34    USE_SLANG=:
35  else
36    :
37  fi
38fi
39
40AM_CONDITIONAL(USE_SLANG, ${USE_SLANG})
41AM_CONDITIONAL(USE_NCURSES, ${USE_NCURSES})
42
43AC_OUTPUT([
44  Makefile
45  libee/Makefile
46  test/Makefile
47  src/Makefile
48  autotools/Makefile
49  debian/Makefile
50])
51
Note: See TracBrowser for help on using the repository browser.