X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=configure.ac;h=49221ff373d4fe840d9d07c8937bf16c08280c67;hb=02e25280094d8245772acf03396fe31c278ea337;hp=0b512b3bdbe78e937e51b1563d2fe5e23ebd1644;hpb=24ba06b111dbadb912fa97f74ec8595f71b04393;p=mmh diff --git a/configure.ac b/configure.ac index 0b512b3..49221ff 100644 --- a/configure.ac +++ b/configure.ac @@ -119,6 +119,15 @@ AC_ARG_WITH([pager], AS_IF([test -n "$with_pager"], [pagerpath="$with_pager"]) +dnl If a pager is not explicitly specified, then look for one. +dnl Fall back to `cat', to avoid catastrophic failure of +dnl `mhshow', et al., if pagerpath is set to `no'. +if test -z "$pagerpath"; then + pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin + AC_PATH_PROGS([pagerpath], [more less most cat], [no], [$pathtmp]) +fi +AC_SUBST(pagerpath)dnl + dnl What should be the default mail server(s)? AC_ARG_WITH(smtpservers, AS_HELP_STRING([--with-smtpservers='SMTPSERVER1@<:@ SMTPSERVER2...@:>@'], @@ -284,17 +293,6 @@ if test "$lspath" != "no"; then fi]) fi -dnl Look for `more' -pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin -AC_PATH_PROG([morepath], [more], [no], [$pathtmp]) - -dnl If pager is not specified yet, -dnl then use `more' as the default. -if test -z "$pagerpath"; then - pagerpath="$morepath" -fi -AC_SUBST(pagerpath)dnl - dnl Look for `sendmail' pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin AC_PATH_PROG([sendmailpath], [sendmail], [/usr/sbin/sendmail], [$pathtmp]) @@ -431,6 +429,8 @@ AC_CHECK_FUNC([modf], , AC_CHECK_LIB([m], [modf])) dnl Checks for network libraries (nsl, socket) NMH_CHECK_NETLIBS +NMH_READLINE + termcap_curses_order="termcap curses ncurses" for lib in $termcap_curses_order; do AC_CHECK_LIB(${lib}, tgetent, [TERMLIB="-l$lib"; break])