From be556aa57bf6f283afb00cfbbcd02cb794965d2d Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Sat, 23 Nov 2019 22:03:03 -0700 Subject: * Change in build process. Now Alpine will not build the imap tools by default. In order to build the imap tools (such as mtest, imapd, etc.) the configure script must be given the --with-bundled-tools option. Similarly, libpam is not required anymore, unless the option --with-bundled-tools is used. --- configure | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) (limited to 'configure') diff --git a/configure b/configure index b945d3ba..269eff8e 100755 --- a/configure +++ b/configure @@ -657,6 +657,7 @@ PTHREAD_CFLAGS PTHREAD_LIBS PTHREAD_CC acx_pthread_config +C_CLIENT_BUNDLED alpine_interactive_spellcheck ISPELLPROG alpine_simple_spellcheck @@ -829,6 +830,7 @@ with_libiconv_prefix with_libintl_prefix enable_dmalloc with_dmalloc_dir +with_bundled_tools with_date_stamp with_host_stamp with_ps_cmd @@ -1605,6 +1607,8 @@ Optional Packages: --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib --without-libintl-prefix don't search for libintl in includedir and libdir --with-dmalloc-dir=DIR Root of dmalloc lib/include path + --with-bundled-tools Build additional tools (mtest, imapd, etc.) Default: + --with-bundled-tools=no --with-date-stamp=DATE Set this as the date this program was built. Default: output of `date` --with-host-stamp=HOST Set name of computer for compilation. Default: @@ -15214,6 +15218,18 @@ $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h fi +alpine_c_client_bundled="no" + +# Check whether --with-bundled-tools was given. +if test "${with_bundled_tools+set}" = set; then : + withval=$with_bundled_tools; + if test "x$withval" = "xyes" ; then + alpine_c_client_bundled="" + fi + +fi + + ALPINE_datestamp=`date` # Check whether --with-date-stamp was given. @@ -19116,8 +19132,9 @@ $as_echo "#define ENABLE_LDAP /**/" >>confdefs.h fi fi -if test "x$alpine_PAM" != "xnone" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5 +if test -z "$alpine_c_client_bundled" ; then + if test "x$alpine_PAM" != "xnone" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5 $as_echo_n "checking for library containing pam_start... " >&6; } if ${ac_cv_search_pam_start+:} false; then : $as_echo_n "(cached) " >&6 @@ -19208,9 +19225,11 @@ else fi if test -n "$alpine_pam_none_reason" ; then - as_fn_error $? "No PAM support: $alpine_pam_none_reason" "$LINENO" 5 + as_fn_error or do not use --with-bundled-tools "Trying to build bundled tools but could not find libpam. Install it first and try again" "$LINENO" 5 + fi fi fi +C_CLIENT_BUNDLED=$alpine_c_client_bundled if test "x$alpine_GSSTYPE" != "xnone" ; then -- cgit v1.2.3-70-g09d2