--- ansh/configure.in 2011/10/17 20:14:01 1.2 +++ ansh/configure.in 2012/01/23 10:34:12 1.3 @@ -1,8 +1,8 @@ # # $Author: misho $ -# $Id: configure.in,v 1.2 2011/10/17 20:14:01 misho Exp $ +# $Id: configure.in,v 1.3 2012/01/23 10:34:12 misho Exp $ # -AC_INIT(ansh, 1.0, misho@elwix.org) +AC_INIT(ansh, 1.1, misho@elwix.org) AC_CONFIG_SRCDIR([src/anshd.c]) AC_CONFIG_HEADERS([inc/config.h]) @@ -40,6 +40,20 @@ AC_TYPE_UINT8_T AC_FUNC_FORK AC_FUNC_MALLOC AC_CHECK_FUNCS([dup2 endpwent gethostbyname memset select socket strerror strtol]) + +STATIC="no" +AC_MSG_CHECKING(Static build for ansh) +AC_ARG_ENABLE(static, + [ --enable-static Static build for ansh software ], + [ STATIC=$enableval + case "$enableval" in + yes) + LDFLAGS="-static ${LDFLAGS}" + ;; + *) + ;; + esac ],) +AC_MSG_RESULT($STATIC) AC_CONFIG_FILES([Makefile bin/Makefile