Annotation of ansh/configure.in, revision 1.5.2.2
1.2 misho 1: #
2: # $Author: misho $
1.5.2.2 ! misho 3: # $Id: configure.in,v 1.5.2.1 2013/01/18 09:31:46 misho Exp $
1.2 misho 4: #
1.5.2.1 misho 5: AC_INIT(ansh, 2.0, misho@elwix.org)
1.2 misho 6: AC_CONFIG_SRCDIR([src/anshd.c])
7: AC_CONFIG_HEADERS([inc/config.h])
8:
1.5.2.2 ! misho 9: ac_cv_func_malloc_0_nonnull="yes"
! 10: ac_cv_func_realloc_0_nonnull="yes"
! 11:
1.2 misho 12: # Checks for programs.
13: AC_PROG_CC
14: AC_PROG_INSTALL
15:
16: AC_CANONICAL_HOST
17: AC_CANONICAL_TARGET
18:
19: AC_CHECK_TOOL(MKDEP, mkdep, no)
20: AC_SUBST(MKDEP)
21:
22: CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}"
23: LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
24:
25: # Checks for libraries.
26: AC_CHECK_LIB([crypto], [AES_ctr128_encrypt])
27: AC_CHECK_LIB([util], [openpty])
1.5.2.1 misho 28: AC_CHECK_LIB([elwix], [crcAdler])
1.2 misho 29: AC_CHECK_LIB([aitio], [ioForkPTY])
1.4 misho 30: #AC_CHECK_LIB([aitsched], [schedRead])
1.2 misho 31:
32: # Checks for header files.
33: 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])
34:
35: # Checks for typedefs, structures, and compiler characteristics.
36: AC_TYPE_INT8_T
37: AC_TYPE_PID_T
38: AC_TYPE_UINT16_T
39: AC_TYPE_UINT32_T
40: AC_TYPE_UINT8_T
41:
42: # Checks for library functions.
43: AC_FUNC_FORK
44: AC_FUNC_MALLOC
45: AC_CHECK_FUNCS([dup2 endpwent gethostbyname memset select socket strerror strtol])
46:
1.3 misho 47: STATIC="no"
48: AC_MSG_CHECKING(Static build for ansh)
49: AC_ARG_ENABLE(static,
50: [ --enable-static Static build for ansh software ],
51: [ STATIC=$enableval
52: case "$enableval" in
53: yes)
54: LDFLAGS="-static ${LDFLAGS}"
55: ;;
56: *)
57: ;;
58: esac ],)
59: AC_MSG_RESULT($STATIC)
60:
1.2 misho 61: AC_CONFIG_FILES([Makefile
62: bin/Makefile
63: inc/Makefile
64: src/Makefile])
65: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>