diff --git a/appl/popper/popper.h b/appl/popper/popper.h index 6c193e246..a3d4c2dfa 100644 --- a/appl/popper/popper.h +++ b/appl/popper/popper.h @@ -61,13 +61,28 @@ #define POP_PRIORITY LOG_NOTICE #define POP_DEBUG LOG_DEBUG #define POP_LOGOPTS 0 -#define POP_MAILDIR "/usr/spool/mail" -#define POP_DROP "/usr/spool/mail/.%s.pop" + +#ifdef HAVE_PATHS_H +#include +#endif +#ifdef HAVE_MAILLOCK_H +#include +#endif + +#if defined(_PATH_MAILDIR) +#define POP_MAILDIR _PATH_MAILDIR +#elif defined(MAILDIR) +#define POP_MAILDIR MAILDIR +#else +#define POP_MAILDIR "/var/spool/mail" +#endif + +#define POP_DROP POP_MAILDIR "/.%s.pop" /* POP_TMPSIZE needs to be big enough to hold the string * defined by POP_TMPDROP. POP_DROP and POP_TMPDROP * must be in the same filesystem. */ -#define POP_TMPDROP "/usr/spool/mail/tmpXXXXXX" +#define POP_TMPDROP POP_MAILDIR "/tmpXXXXXX" #define POP_TMPSIZE 256 #define POP_TMPXMIT "/tmp/xmitXXXXXX" #define POP_OK "+OK" diff --git a/appl/telnet/configure b/appl/telnet/configure index 2a475daff..d5ef76f96 100755 --- a/appl/telnet/configure +++ b/appl/telnet/configure @@ -1140,46 +1140,19 @@ fi echo $ac_n "checking for tgetent""... $ac_c" 1>&6 -if eval "test \"`echo '$''{'j_cv_func_tgetent'+set}'`\" = set"; then +if eval "test \"`echo '$''{'ac_cv_funclib_tgetent'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; }; then - rm -rf conftest* - eval "j_cv_func_tgetent=yes" -fi -rm -f conftest* - -j_save_LIBS="$LIBS" -if eval "test \"`echo '$j_cv_func_'tgetent`\" != yes"; then - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; }; then - rm -rf conftest* - eval "j_cv_func_tgetent=yes";break -fi -rm -f conftest* - - for j_lib in termcap; do - LIBS="-l$j_lib $j_save_LIBS" +if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then + ac_save_LIBS="$LIBS" + for ac_lib in "" termcap; do + if test -n "$ac_lib"; then + ac_lib="-l$ac_lib" + LIBS="$ac_lib $ac_save_LIBS" + fi cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; }; then +if { (eval echo configure:1164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* - eval "j_cv_func_tgetent=-l$j_lib";break + eval "ac_cv_funclib_tgetent=${ac_lib:-yes}";break fi rm -f conftest* done - if eval "test -z \"`echo '$j_cv_func_'tgetent`\""; then - eval "j_cv_func_tgetent=no" - fi + eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent:-no}" + LIBS="$ac_save_LIBS" fi -LIBS="$j_save_LIBS" fi -#j_res=`echo \`eval \\\`echo "echo "'$j_cv_func_'"tgetent"\\\`\`` - -j_res=`echo \`eval echo '$j_cv_func_'tgetent\`` +eval "ac_res=\$ac_cv_funclib_tgetent" # autoheader tricks *sigh* : << END @@ -1213,78 +1182,55 @@ j_res=`echo \`eval echo '$j_cv_func_'tgetent\`` @@@libs="$libs termcap"@@@ END -case "$j_res" in +eval "ac_tr_func=HAVE_`echo tgetent | tr '[a-z]' '[A-Z]'`" +eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`" + +case "$ac_res" in yes) - j_tr_func=HAVE_`echo tgetent | tr '[a-z]' '[A-Z]'` - cat >> confdefs.h <> confdefs.h <&6 ;; no) + eval "ac_cv_func_tgetent=no" echo "$ac_t""no" 1>&6 ;; *) - j_tr_func=HAVE_`echo tgetent | tr '[a-z]' '[A-Z]'` - j_tr_lib=HAVE_LIB`echo $j_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'` - cat >> confdefs.h <> confdefs.h <> confdefs.h <&6 + echo "$ac_t""yes, in $ac_res" 1>&6 - LIBS="$j_res $LIBS" + LIBS="$ac_res $LIBS" ;; esac echo $ac_n "checking for setupterm""... $ac_c" 1>&6 -if eval "test \"`echo '$''{'j_cv_func_setupterm'+set}'`\" = set"; then +if eval "test \"`echo '$''{'ac_cv_funclib_setupterm'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; }; then - rm -rf conftest* - eval "j_cv_func_setupterm=yes" -fi -rm -f conftest* - -j_save_LIBS="$LIBS" -if eval "test \"`echo '$j_cv_func_'setupterm`\" != yes"; then - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; }; then - rm -rf conftest* - eval "j_cv_func_setupterm=yes";break -fi -rm -f conftest* - - for j_lib in curses; do - LIBS="-l$j_lib $j_save_LIBS" +if eval "test \"\$ac_cv_func_setupterm\" != yes" ; then + ac_save_LIBS="$LIBS" + for ac_lib in "" curses; do + if test -n "$ac_lib"; then + ac_lib="-l$ac_lib" + LIBS="$ac_lib $ac_save_LIBS" + fi cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; }; then +if { (eval echo configure:1242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* - eval "j_cv_func_setupterm=-l$j_lib";break + eval "ac_cv_funclib_setupterm=${ac_lib:-yes}";break fi rm -f conftest* done - if eval "test -z \"`echo '$j_cv_func_'setupterm`\""; then - eval "j_cv_func_setupterm=no" - fi + eval "ac_cv_funclib_setupterm=\${ac_cv_funclib_setupterm:-no}" + LIBS="$ac_save_LIBS" fi -LIBS="$j_save_LIBS" fi -#j_res=`echo \`eval \\\`echo "echo "'$j_cv_func_'"setupterm"\\\`\`` - -j_res=`echo \`eval echo '$j_cv_func_'setupterm\`` +eval "ac_res=\$ac_cv_funclib_setupterm" # autoheader tricks *sigh* : << END @@ -1318,78 +1260,55 @@ j_res=`echo \`eval echo '$j_cv_func_'setupterm\`` @@@libs="$libs curses"@@@ END -case "$j_res" in +eval "ac_tr_func=HAVE_`echo setupterm | tr '[a-z]' '[A-Z]'`" +eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`" + +case "$ac_res" in yes) - j_tr_func=HAVE_`echo setupterm | tr '[a-z]' '[A-Z]'` - cat >> confdefs.h <> confdefs.h <&6 ;; no) + eval "ac_cv_func_setupterm=no" echo "$ac_t""no" 1>&6 ;; *) - j_tr_func=HAVE_`echo setupterm | tr '[a-z]' '[A-Z]'` - j_tr_lib=HAVE_LIB`echo $j_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'` - cat >> confdefs.h <> confdefs.h <> confdefs.h <&6 + echo "$ac_t""yes, in $ac_res" 1>&6 - LIBS="$j_res $LIBS" + LIBS="$ac_res $LIBS" ;; esac echo $ac_n "checking for socket""... $ac_c" 1>&6 -if eval "test \"`echo '$''{'j_cv_func_socket'+set}'`\" = set"; then +if eval "test \"`echo '$''{'ac_cv_funclib_socket'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; }; then - rm -rf conftest* - eval "j_cv_func_socket=yes" -fi -rm -f conftest* - -j_save_LIBS="$LIBS" -if eval "test \"`echo '$j_cv_func_'socket`\" != yes"; then - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; }; then - rm -rf conftest* - eval "j_cv_func_socket=yes";break -fi -rm -f conftest* - - for j_lib in socket; do - LIBS="-l$j_lib $j_save_LIBS" +if eval "test \"\$ac_cv_func_socket\" != yes" ; then + ac_save_LIBS="$LIBS" + for ac_lib in "" socket; do + if test -n "$ac_lib"; then + ac_lib="-l$ac_lib" + LIBS="$ac_lib $ac_save_LIBS" + fi cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; }; then +if { (eval echo configure:1320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* - eval "j_cv_func_socket=-l$j_lib";break + eval "ac_cv_funclib_socket=${ac_lib:-yes}";break fi rm -f conftest* done - if eval "test -z \"`echo '$j_cv_func_'socket`\""; then - eval "j_cv_func_socket=no" - fi + eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket:-no}" + LIBS="$ac_save_LIBS" fi -LIBS="$j_save_LIBS" fi -#j_res=`echo \`eval \\\`echo "echo "'$j_cv_func_'"socket"\\\`\`` - -j_res=`echo \`eval echo '$j_cv_func_'socket\`` +eval "ac_res=\$ac_cv_funclib_socket" # autoheader tricks *sigh* : << END @@ -1423,78 +1338,55 @@ j_res=`echo \`eval echo '$j_cv_func_'socket\`` @@@libs="$libs socket"@@@ END -case "$j_res" in +eval "ac_tr_func=HAVE_`echo socket | tr '[a-z]' '[A-Z]'`" +eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`" + +case "$ac_res" in yes) - j_tr_func=HAVE_`echo socket | tr '[a-z]' '[A-Z]'` - cat >> confdefs.h <> confdefs.h <&6 ;; no) + eval "ac_cv_func_socket=no" echo "$ac_t""no" 1>&6 ;; *) - j_tr_func=HAVE_`echo socket | tr '[a-z]' '[A-Z]'` - j_tr_lib=HAVE_LIB`echo $j_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'` - cat >> confdefs.h <> confdefs.h <> confdefs.h <&6 + echo "$ac_t""yes, in $ac_res" 1>&6 - LIBS="$j_res $LIBS" + LIBS="$ac_res $LIBS" ;; esac echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 -if eval "test \"`echo '$''{'j_cv_func_gethostbyname'+set}'`\" = set"; then +if eval "test \"`echo '$''{'ac_cv_funclib_gethostbyname'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; }; then - rm -rf conftest* - eval "j_cv_func_gethostbyname=yes" -fi -rm -f conftest* - -j_save_LIBS="$LIBS" -if eval "test \"`echo '$j_cv_func_'gethostbyname`\" != yes"; then - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; }; then - rm -rf conftest* - eval "j_cv_func_gethostbyname=yes";break -fi -rm -f conftest* - - for j_lib in nsl; do - LIBS="-l$j_lib $j_save_LIBS" +if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then + ac_save_LIBS="$LIBS" + for ac_lib in "" nsl; do + if test -n "$ac_lib"; then + ac_lib="-l$ac_lib" + LIBS="$ac_lib $ac_save_LIBS" + fi cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; }; then +if { (eval echo configure:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* - eval "j_cv_func_gethostbyname=-l$j_lib";break + eval "ac_cv_funclib_gethostbyname=${ac_lib:-yes}";break fi rm -f conftest* done - if eval "test -z \"`echo '$j_cv_func_'gethostbyname`\""; then - eval "j_cv_func_gethostbyname=no" - fi + eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname:-no}" + LIBS="$ac_save_LIBS" fi -LIBS="$j_save_LIBS" fi -#j_res=`echo \`eval \\\`echo "echo "'$j_cv_func_'"gethostbyname"\\\`\`` - -j_res=`echo \`eval echo '$j_cv_func_'gethostbyname\`` +eval "ac_res=\$ac_cv_funclib_gethostbyname" # autoheader tricks *sigh* : << END @@ -1528,32 +1416,36 @@ j_res=`echo \`eval echo '$j_cv_func_'gethostbyname\`` @@@libs="$libs nsl"@@@ END -case "$j_res" in +eval "ac_tr_func=HAVE_`echo gethostbyname | tr '[a-z]' '[A-Z]'`" +eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`" + +case "$ac_res" in yes) - j_tr_func=HAVE_`echo gethostbyname | tr '[a-z]' '[A-Z]'` - cat >> confdefs.h <> confdefs.h <&6 ;; no) + eval "ac_cv_func_gethostbyname=no" echo "$ac_t""no" 1>&6 ;; *) - j_tr_func=HAVE_`echo gethostbyname | tr '[a-z]' '[A-Z]'` - j_tr_lib=HAVE_LIB`echo $j_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'` - cat >> confdefs.h <> confdefs.h <> confdefs.h <&6 + echo "$ac_t""yes, in $ac_res" 1>&6 - LIBS="$j_res $LIBS" + LIBS="$ac_res $LIBS" ;; esac @@ -1566,7 +1458,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; }; then +if { (eval echo configure:1484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -1615,7 +1507,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; }; then +if { (eval echo configure:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -1666,7 +1558,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; }; then +if { (eval echo configure:1584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -1717,7 +1609,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; }; then +if { (eval echo configure:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -1764,49 +1656,20 @@ done - - echo $ac_n "checking for logout""... $ac_c" 1>&6 -if eval "test \"`echo '$''{'j_cv_func_logout'+set}'`\" = set"; then +if eval "test \"`echo '$''{'ac_cv_funclib_logout'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; }; then - rm -rf conftest* - eval "j_cv_func_logout=yes" -fi -rm -f conftest* - -j_save_LIBS="$LIBS" -if eval "test \"`echo '$j_cv_func_'logout`\" != yes"; then - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; }; then - rm -rf conftest* - eval "j_cv_func_logout=yes";break -fi -rm -f conftest* - - for j_lib in util; do - LIBS="-l$j_lib $j_save_LIBS" +if eval "test \"\$ac_cv_func_logout\" != yes" ; then + ac_save_LIBS="$LIBS" + for ac_lib in "" util; do + if test -n "$ac_lib"; then + ac_lib="-l$ac_lib" + LIBS="$ac_lib $ac_save_LIBS" + fi cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; }; then +if { (eval echo configure:1681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* - eval "j_cv_func_logout=-l$j_lib";break + eval "ac_cv_funclib_logout=${ac_lib:-yes}";break fi rm -f conftest* done - if eval "test -z \"`echo '$j_cv_func_'logout`\""; then - eval "j_cv_func_logout=no" - fi + eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout:-no}" + LIBS="$ac_save_LIBS" fi -LIBS="$j_save_LIBS" fi -#j_res=`echo \`eval \\\`echo "echo "'$j_cv_func_'"logout"\\\`\`` - -j_res=`echo \`eval echo '$j_cv_func_'logout\`` +eval "ac_res=\$ac_cv_funclib_logout" # autoheader tricks *sigh* : << END @@ -1840,32 +1699,36 @@ j_res=`echo \`eval echo '$j_cv_func_'logout\`` @@@libs="$libs util"@@@ END -case "$j_res" in +eval "ac_tr_func=HAVE_`echo logout | tr '[a-z]' '[A-Z]'`" +eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`" + +case "$ac_res" in yes) - j_tr_func=HAVE_`echo logout | tr '[a-z]' '[A-Z]'` - cat >> confdefs.h <> confdefs.h <&6 ;; no) + eval "ac_cv_func_logout=no" echo "$ac_t""no" 1>&6 ;; *) - j_tr_func=HAVE_`echo logout | tr '[a-z]' '[A-Z]'` - j_tr_lib=HAVE_LIB`echo $j_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'` - cat >> confdefs.h <> confdefs.h <> confdefs.h <&6 + echo "$ac_t""yes, in $ac_res" 1>&6 - LIBS="$j_res $LIBS" + LIBS="$ac_res $LIBS" ;; esac @@ -1880,12 +1743,12 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -1917,12 +1780,12 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -1954,12 +1817,12 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* diff --git a/appl/telnet/configure.in b/appl/telnet/configure.in index 35cd56c83..e5e0c89cd 100644 --- a/appl/telnet/configure.in +++ b/appl/telnet/configure.in @@ -244,32 +244,6 @@ AC_CHECK_FUNCS(cgetent getstr cgetstr uname vhangup) AC_CHECK_FUNCS(frevoke revoke setsid setpgid getmsg) AC_CHECK_FUNCS(tgetent setupterm mktime ptsname ttyname unlockpt grantpt) -dnl if test $ac_cv_func_tgetent = no; then -dnl # tgetent is not in the default libraries. See if it's in some other. -dnl for lib in termcap; do -dnl AC_CHECK_LIB($lib, tgetent, [AC_DEFINE(HAVE_TGETENT) -dnl LIBS="$LIBS -l$lib"; break]) -dnl done -dnl fi -dnl -dnl if test $ac_cv_func_setupterm = no; then -dnl # setupterm is not in the default libraries. See if it's in some other. -dnl for lib in curses; do -dnl AC_CHECK_LIB($lib, setupterm, [AC_DEFINE(HAVE_SETUPTERM) -dnl LIBS="$LIBS -l$lib"; break]) -dnl done -dnl fi - -dnl # these two are mainly here for solaris -dnl AC_CHECK_FUNCS(socket) -dnl if test "$ac_cv_func_socket" = no; then -dnl AC_CHECK_LIB(socket, socket) -dnl fi -dnl AC_CHECK_FUNCS(gethostbyname) -dnl if test "$ac_cv_func_gethostbyname" = no; then -dnl AC_CHECK_LIB(nsl, gethostbyname) -dnl fi - AC_FIND_FUNC(logout, util) AC_SUBST(HAVE_LIBTERMCAP)