Annotation of ansh/configure.in, revision 1.4

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

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