X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=historic%2Fc-version%2Fconfigure.ac;fp=historic%2Fc-version%2Fconfigure.ac;h=786ea7931ae7396fc145f400d9ae2e382ad3ec69;hp=0000000000000000000000000000000000000000;hb=92e5cab2949160324146ae563bbd88af865beeda;hpb=b10de966829aea9fc9f8aa04522725d8434e2d36 diff --git a/historic/c-version/configure.ac b/historic/c-version/configure.ac new file mode 100644 index 0000000..786ea79 --- /dev/null +++ b/historic/c-version/configure.ac @@ -0,0 +1,56 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ(2.57) +AC_INIT(sst, 2.0, stsp) +AM_INIT_AUTOMAKE([]) +AM_GNU_GETTEXT([external]) +AM_GNU_GETTEXT_VERSION(0.14.5) +AM_CONFIG_HEADER([src/config.h]) + +# Checks for programs. +AC_PROG_CC +AC_PROG_INSTALL +AC_PROG_LN_S + +AC_CHECK_TOOL(have_xmlto, xmlto, "no") +if test "$have_xmlto" = "no"; +then + AC_MSG_ERROR([xmlto is not installed]) +fi +AC_CHECK_TOOL(have_python, python, "no") +if test "$have_python" = "no"; +then + AC_MSG_ERROR([python is not installed]) +fi + +# Checks for libraries. +AC_CHECK_LIB(m, floor, [], + AC_MSG_ERROR([math library is missing on your system.])) +AC_CHECK_LIB(ncursesw, newwin, [], + AC_MSG_ERROR([ncurses library is missing on your system.])) + +# Checks for header files. +AC_HEADER_STDC +AC_CHECK_HEADERS([curses.h], + [], AC_MSG_ERROR([curses headers are missing on your system.])) +AC_CHECK_HEADERS([fcntl.h sys/ioctl.h linux/kd.h]) +# Checks for typedefs, structures, and compiler characteristics. + +# Checks for library functions. +AC_PROG_GCC_TRADITIONAL +AC_FUNC_VPRINTF +AC_CHECK_FUNCS([pow sqrt floor strcasecmp strncasecmp strchr strstr atexit], [], + AC_MSG_ERROR([some functions are missing on your system.])) + +AC_CONFIG_FILES([ + Makefile + src/Makefile +]) + +# These used to be in AC_CONFIG_FILES before the C version became obsolete. +# Now the build machinery in them is separate/ +# po/Makefile.in +# doc/Makefile + +AC_OUTPUT