1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
dnl -*- sh -*-
AC_INIT(src/most.c)
JD_INIT
JD_ANSI_CC
AC_CONFIG_AUX_DIR(autoconf)
AC_PROG_MAKE_SET
AC_PROG_INSTALL
AC_CANONICAL_HOST
# determine X include and needed libs
AC_PATH_XTRA
# Implementation of the --disable-dev-random switch.
AC_MSG_CHECKING([if you want to use mmap if available])
AC_ARG_ENABLE(mmap,
AC_HELP_STRING([--disable-mmap],[disable the use of mmap]),
jd_use_mmap=$enableval, jd_use_mmap=yes)
AC_MSG_RESULT($jd_use_mmap)
case "x$jd_use_mmap" in
xyes )
AC_DEFINE(USE_MMAP)
;;
esac
#Check these header since they cause trouble
AC_CHECK_HEADERS( \
stdlib.h \
unistd.h \
memory.h \
malloc.h \
termios.h \
sys/mman.h \
)
AC_HEADER_DIRENT
AC_TYPE_MODE_T
AC_TYPE_PID_T
AC_TYPE_UID_T
AC_CHECK_FUNCS(\
memset \
memcpy \
putenv \
getcwd \
mmap \
snprintf \
)
JD_SET_OBJ_SRC_DIR
JD_TERMCAP
JD_WITH_LIBRARY(slang)
JD_GCC_WARNINGS
JD_GET_MODULES(src/modules.lis)
JD_CREATE_MODULE_ORULES
AC_CONFIG_HEADER(src/sysconf.h:src/config.hin)
AC_OUTPUT(Makefile:autoconf/Makefile.in src/Makefile)
JD_CREATE_ORULE(chkslang)
JD_APPEND_RULES(src/Makefile)
|