--- ansh/configure 2011/10/17 20:15:21 1.2.2.1 +++ ansh/configure 2011/10/18 08:27:54 1.2.2.2 @@ -671,6 +671,7 @@ SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking +enable_static ' ac_precious_vars='build_alias host_alias @@ -680,8 +681,7 @@ CFLAGS LDFLAGS LIBS CPPFLAGS -CPP -CPPFLAGS' +CPP' # Initialize some variables set by options. @@ -1294,6 +1294,12 @@ if test -n "$ac_init_help"; then esac cat <<\_ACEOF +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-static Static build for ansh software + Some influential environment variables: CC C compiler command CFLAGS C compiler flags @@ -4391,6 +4397,24 @@ _ACEOF fi done + +STATIC="no" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Static build for ansh" >&5 +$as_echo_n "checking Static build for ansh... " >&6; } +# Check whether --enable-static was given. +if test "${enable_static+set}" = set; then : + enableval=$enable_static; STATIC=$enableval + case "$enableval" in + yes) + LDFLAGS="-static ${LDFLAGS}" + ;; + *) + ;; + esac +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC" >&5 +$as_echo "$STATIC" >&6; } ac_config_files="$ac_config_files Makefile bin/Makefile inc/Makefile src/Makefile"