dnl configure.in script for the dominion program dnl original author: Mark Galassi dnl modified by: Stephen J Smoogen dnl license: GNU GENERAL PUBLIC LICENSE version 2 dnl ------------------------------------------------------------- dnl Process this file with autoconf to produce the configure script. dnl AC_INIT([dominion],[2.6c-0.1],[smoogen@lanl.gov],[dominion-2.6c-0.1.tar.gz]) dnl Unique file to test on and end result config file AC_CONFIG_SRCDIR([dominion.c]) AM_CONFIG_HEADER([config.h]) AM_INIT_AUTOMAKE dnl Require Autoconf-2.53 AC_PREREQ(2.53) dnl Copyright notice AC_COPYRIGHT(GPL v2.0) dnl Revision notice AC_REVISION($Revision: 0.10 $) dnl turn off maintainer removal of configure script dnl AM_MAINTAINER_MODE dnl ------------------------------------------------------------- dnl locate C compiler and Make tools AC_PROG_CC AC_PROG_MAKE_SET AC_PROG_INSTALL dnl not currently needed but will be needed when client and server are dnl split apart and common libraries are needed dnl AC_PROG_LIBTOOL dnl ------------------------------------------------------------- dnl look for posix compliance on some platforms AC_ISC_POSIX AC_DEFINE([PREFIX], "${prefix}", [define for path prefix]) AC_DEFINE([INFO_PATH], "${prefix}/info", [define for path info]) AC_DEFINE([INFO_INTRO], "${prefix}/lib/dominion/doc/info_intro", [define for intro]) AC_DEFINE([VERSION], "$VERSION", [define for version]) AC_SUBST(CFLAGS) AC_SUBST(CPPFLAGS) AC_SUBST(LDFLAGS) dnl ------------------------------------------------------------- dnl Check for programs dnl Email programs AC_CHECK_PROGS(MAIL_PROG, Mail mailx elm pine) dnl ------------------------------------------------------------- dnl Checks for header files. AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS([fcntl.h limits.h netinet/in.h stdlib.h string.h strings.h unistd.h]) dnl ------------------------------------------------------------- dnl Check for typedefs, structures, and compiler characteristics. dnl Checks for libraries. AC_CHECK_LIB(termcap, main) AC_CHECK_LIB(ncurses, main) AC_CHECK_LIB(curses, main) AC_CHECK_LIB(m, main) AC_CHECK_LIB(crypt, main) dnl ------------------------------------------------------------- dnl Check for library functions AC_FUNC_CHOWN AC_FUNC_FORK AC_FUNC_MALLOC AC_FUNC_VPRINTF AC_TYPE_SIGNAL AC_CHECK_FUNCS([alarm crypt getcwd gethostname getpass getwd memset pow sqrt strchr strrchr strstr srandom srand48]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT