2007-10-17 19:59:37 -04:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
|
|
|
|
AC_PREREQ(2.59)
|
|
|
|
AC_INIT(ikarus, prerelease-0, aghuloum@cs.indiana.edu)
|
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
AM_INIT_AUTOMAKE(ikarus, prerelease-0)
|
|
|
|
AC_CONFIG_SRCDIR([src/])
|
|
|
|
|
|
|
|
AM_PROG_AS
|
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CC
|
|
|
|
|
|
|
|
CFLAGS="-DNDEBUG $CFLAGS"
|
|
|
|
|
|
|
|
case "$target_os" in
|
|
|
|
*linux*)
|
|
|
|
LDFLAGS="-rdynamic $LDFLAGS"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Checks for libraries.
|
|
|
|
AC_HAVE_LIBRARY([gmp],,[AC_MSG_ERROR([Cannot find libgmp])])
|
|
|
|
AC_SEARCH_LIBS(dlsym, dl,, [AC_MSG_ERROR([Cannot find libdl])])
|
|
|
|
AC_SEARCH_LIBS(cos, m,, [AC_MSG_ERROR([Cannot find libm])])
|
|
|
|
|
|
|
|
# Checks for header files.
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_HEADER_SYS_WAIT
|
|
|
|
AC_CHECK_HEADERS([gmp.h],,[AC_MSG_ERROR([Cannot find gmp.h])])
|
|
|
|
|
|
|
|
|
|
|
|
AC_CHECK_HEADERS([assert.h dlfcn.h errno.h fcntl.h signal.h \
|
|
|
|
stdint.h stdlib.h string.h strings.h \
|
|
|
|
sys/mman.h sys/resource/h sys/stat.h \
|
|
|
|
sys/time.h sys/types.h sys/wait.h time.h \
|
|
|
|
unistd.h])
|
|
|
|
|
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_C_CONST
|
|
|
|
AC_C_INLINE
|
|
|
|
AC_C_RESTRICT
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_HEADER_TIME
|
|
|
|
AC_STRUCT_TM
|
|
|
|
|
|
|
|
# Checks for library functions.
|
|
|
|
AC_FUNC_FORK
|
|
|
|
AC_FUNC_MALLOC
|
|
|
|
AC_FUNC_MEMCMP
|
|
|
|
AC_FUNC_MMAP
|
|
|
|
AC_FUNC_STAT
|
|
|
|
AC_FUNC_STRFTIME
|
|
|
|
AC_FUNC_STRTOD
|
|
|
|
AC_CHECK_FUNCS([bzero gettimeofday memmove memset munmap setenv sqrt strerror])
|
2007-10-17 21:23:47 -04:00
|
|
|
AC_OUTPUT(Makefile src/Makefile scheme/Makefile)
|