2 # Process this file with autoconf to produce a configure script.
5 AC_INIT(sst, 2.0, stsp)
7 AM_GNU_GETTEXT([external])
8 AM_GNU_GETTEXT_VERSION(0.14.5)
9 AM_CONFIG_HEADER([src/config.h])
11 # Checks for programs.
16 AC_CHECK_TOOL(have_xmlto, xmlto, "no")
17 if test "$have_xmlto" = "no";
19 AC_MSG_ERROR([xmlto is not installed])
21 AC_CHECK_TOOL(have_python, python, "no")
22 if test "$have_python" = "no";
24 AC_MSG_ERROR([python is not installed])
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(ncursesw, newwin, [],
31 AC_MSG_ERROR([ncurses library is missing on your system.]))
33 # Checks for header files.
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.
40 # Checks for library functions.
41 AC_PROG_GCC_TRADITIONAL
43 AC_CHECK_FUNCS([pow sqrt floor strcasecmp strncasecmp strchr strstr atexit], [],
44 AC_MSG_ERROR([some functions are missing on your system.]))
51 # These used to be in AC_CONFIG_FILES before the C version became obsolete.
52 # Now the build machinery in them is separate/