Debug the logic for deep-space probes.
[super-star-trek.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ(2.57)
5 AC_INIT(sst, 2.0, stsp)
6 AM_INIT_AUTOMAKE([])
7 AM_GNU_GETTEXT([external])
8 AM_GNU_GETTEXT_VERSION(0.14.5)
9 AM_CONFIG_HEADER([src/config.h])
10
11 # Checks for programs.
12 AC_PROG_CC
13 AC_PROG_INSTALL
14 AC_PROG_LN_S
15
16 AC_CHECK_TOOL(have_xmlto, xmlto, "no")
17 if test "$have_xmlto" = "no";
18 then
19     AC_MSG_ERROR([xmlto is not installed])
20 fi
21 AC_CHECK_TOOL(have_python, python, "no")
22 if test "$have_python" = "no";
23 then
24     AC_MSG_ERROR([python is not installed])
25 fi
26
27 # Checks for libraries.
28 AC_CHECK_LIB(m, floor, [],
29     AC_MSG_ERROR([math library is missing on your system.]))
30 AC_CHECK_LIB(ncurses, newwin, [],
31     AC_MSG_ERROR([ncurses library is missing on your system.]))
32
33 # Checks for header files.
34 AC_HEADER_STDC
35 AC_CHECK_HEADERS([curses.h],
36     [], AC_MSG_ERROR([curses headers are missing on your system.]))
37 AC_CHECK_HEADERS([fcntl.h sys/ioctl.h linux/kd.h])
38 # Checks for typedefs, structures, and compiler characteristics.
39
40 # Checks for library functions.
41 AC_PROG_GCC_TRADITIONAL
42 AC_FUNC_VPRINTF
43 AC_CHECK_FUNCS([pow sqrt floor strcasecmp strncasecmp strchr strstr atexit], [],
44     AC_MSG_ERROR([some functions are missing on your system.]))
45
46 AC_CONFIG_FILES([
47     Makefile
48     src/Makefile
49     po/Makefile.in
50     doc/Makefile
51 ])
52 AC_OUTPUT