X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=configure;h=55dd186b170481bb1d0c903147fc695c3b21e62e;hp=4b6833005ce97e9d86e1f69960f97cd568a7b95c;hb=b706d049104ad0be9982d7e155acb340cb8dada0;hpb=6ac9c5dca97f6ecc5008d65f8f1e7ffcd8d6c77e diff --git a/configure b/configure index 4b68330..55dd186 100755 --- a/configure +++ b/configure @@ -12,6 +12,8 @@ ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: ac_help="$ac_help + --enable-apop enable client-side support for POP3 and APOP" +ac_help="$ac_help --enable-debug enable nmh code debugging" ac_help="$ac_help --enable-masquerade[='draft_from mmailid username_extension'] @@ -19,22 +21,20 @@ ac_help="$ac_help ac_help="$ac_help --enable-mhe enable mhe support (DEFAULT)" ac_help="$ac_help - --enable-pop enable client-side support for pop" -ac_help="$ac_help - --enable-apop enable client-side support for apop" + --enable-pop enable client-side support for plain POP3" ac_help="$ac_help --with-hesiod=PREFIX specify location of Hesiod" ac_help="$ac_help - --with-krb4=PREFIX specify location of Kerberos V4 for kpop support" + --with-krb4=PREFIX specify location of Kerberos V4 for KPOP support" ac_help="$ac_help --with-editor=EDITOR specify the default editor" ac_help="$ac_help - --with-mts=MTS specify the mail transport agent" + --with-mts=MTS specify the mail transport agent/service" ac_help="$ac_help --with-pager=PAGER specify the default pager" ac_help="$ac_help --with-smtpservers='SMTPSERVER1[ SMTPSERVER2...]' - specify the default smtp server(s) [localhost]" + specify the default SMTP server(s) [localhost]" ac_default_prefix=/usr/local/nmh # Initialize some variables set by options. @@ -665,6 +665,20 @@ VERSION=`sed -e 's/nmh-//' ${srcdir}/VERSION` echo "configuring for nmh-$VERSION" +# Check whether --enable-apop or --disable-apop was given. +if test "${enable_apop+set}" = set; then + enableval="$enable_apop" + : +fi + +if test x"$enable_apop" = x"yes"; then + cat >> confdefs.h <<\EOF +#define APOP 1 +EOF + APOPLIB=md5.o + enable_pop=yes +fi + # Check whether --enable-debug or --disable-debug was given. if test "${enable_debug+set}" = set; then enableval="$enable_debug" @@ -709,20 +723,6 @@ if test x"$enable_nmh_pop" = x"yes"; then enable_pop=yes fi -# Check whether --enable-apop or --disable-apop was given. -if test "${enable_apop+set}" = set; then - enableval="$enable_apop" - : -fi - -if test x"$enable_apop" = x"yes"; then - cat >> confdefs.h <<\EOF -#define APOP 1 -EOF - APOPLIB=md5.o - enable_pop=yes -fi - # Check whether --with-hesiod or --without-hesiod was given. if test "${with_hesiod+set}" = set; then withval="$with_hesiod" @@ -1063,7 +1063,7 @@ if test -n "$auto_cflags"; then else test -z "$LDFLAGS" && LDFLAGS=-s if test -n "$GCC"; then - test -z "$CFLAGS" && CFLAGS=-O2 || CFLAGS="$CFLAGS -O2" + test -z "$CFLAGS" && CFLAGS="-Wall -O2" || CFLAGS="$CFLAGS -Wall -O2" else test -z "$CFLAGS" && CFLAGS=-O || CFLAGS="$CFLAGS -O" fi @@ -1263,7 +1263,7 @@ if test -n "$RANLIB"; then else echo "$ac_t""no" 1>&6 fi - for ac_prog in mawk gawk nawk awk + for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 @@ -4470,9 +4470,9 @@ ac_given_INSTALL="$INSTALL" trap 'rm -fr `echo "Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \ zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \ - zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \ - mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \ - etc/Makefile man/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 + mts/Makefile mts/smtp/Makefile \ + mts/sendmail/Makefile mts/mmdf/Makefile etc/Makefile \ + docs/Makefile man/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then @@ -4788,20 +4788,19 @@ eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf2=${nmhsysconf}" eval "nmhlib=${libdir}"; eval "nmhlib2=${nmhlib}" eval "nmhman=${mandir}" -pop_kinds="no" +pop_kinds=no if test x"$enable_pop" = x"yes"; then - pop_kinds="yes (pop" - if test x"$enable_apop" = x"yes"; then - pop_kinds="${pop_kinds} apop" - fi - if test x"$with_krb4" = x"yes"; then - pop_kinds="${pop_kinds} kpop" - fi - if test "$pop_kinds" = "yes (pop"; then - pop_kinds="yes" - else - pop_kinds="${pop_kinds})" - fi + pop_kinds="yes (" + + if test x"$enable_apop" = x"yes"; then + pop_kinds="${pop_kinds}APOP " + fi + + if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then + pop_kinds="${pop_kinds}KPOP " + fi + + pop_kinds="${pop_kinds}POP3)" fi echo "