File:  [ELWIX - Embedded LightWeight unIX -] / ansh / configure.in
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Mon Oct 17 20:14:01 2011 UTC (12 years, 7 months ago) by misho
Branches: MAIN
CVS tags: ansh1_1, HEAD, ANSH1_0
ver 1.0

#
# $Author: misho $
# $Id: configure.in,v 1.2 2011/10/17 20:14:01 misho Exp $
#
AC_INIT(ansh, 1.0, misho@elwix.org)
AC_CONFIG_SRCDIR([src/anshd.c])
AC_CONFIG_HEADERS([inc/config.h])

# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL

AC_CANONICAL_HOST
AC_CANONICAL_TARGET

AC_CHECK_TOOL(MKDEP, mkdep, no)
AC_SUBST(MKDEP)

CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}"
LDFLAGS="-L/usr/local/lib ${LDFLAGS}"

# Checks for libraries.
AC_CHECK_LIB([crypto], [AES_ctr128_encrypt])
AC_CHECK_LIB([util], [openpty])
AC_CHECK_LIB([aitcrc], [crcAdler])
AC_CHECK_LIB([aitio], [ioForkPTY])
AC_CHECK_LIB([aitsched], [schedRead])

# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/param.h sys/socket.h syslog.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_INT8_T
AC_TYPE_PID_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT8_T

# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_CHECK_FUNCS([dup2 endpwent gethostbyname memset select socket strerror strtol])

AC_CONFIG_FILES([Makefile
                 bin/Makefile
                 inc/Makefile
                 src/Makefile])
AC_OUTPUT

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>