Automated #define of MAILGROUP and installation of inc as setgid mail when the
[mmh] / configure.in
1 dnl
2 dnl configure.in -- autoconf template for nmh
3 dnl
4 dnl $Id$
5 dnl
6
7 AC_INIT(h/nmh.h)
8 AC_CONFIG_HEADER(config.h)
9
10 AC_CANONICAL_SYSTEM
11
12 dnl What version of nmh are we building?
13 VERSION=`sed -e 's/nmh-//' ${srcdir}/VERSION`
14 echo "configuring for nmh-$VERSION"
15 AC_SUBST(VERSION)dnl
16
17 dnl -------------------------
18 dnl CHECK COMMAND LINE OPTION
19 dnl -------------------------
20 dnl What method of posting should post use?
21 undefine([mts])dnl
22 AC_ARG_WITH(mts,
23 [  --with-mts=MTS          specify the mail transport agent])
24
25 if test x$with_mts = xsmtp; then
26   MTS="smtp"
27   MTSLIB="mts/smtp/libsmtp.a"
28   AC_DEFINE(SMTPMTS)dnl
29 elif test x$with_mts = xsendmail; then
30   MTS="sendmail"
31   MTSLIB="mts/sendmail/libsend.a"
32   AC_DEFINE(SENDMTS)dnl
33 else
34   MTS="smtp"
35   MTSLIB="mts/smtp/libsmtp.a"
36   AC_DEFINE(SMTPMTS)dnl
37 fi
38
39 AC_SUBST(MTS)
40 AC_SUBST(MTSLIB)
41
42 dnl What should be the default editor?
43 undefine([editor])dnl
44 AC_ARG_WITH(editor,
45 [  --with-editor=EDITOR    specify the default editor])
46
47 if test -n "$with_editor"; then
48   editorpath="$with_editor"
49 fi
50
51 dnl What should be the default pager?
52 undefine([pager])dnl
53 AC_ARG_WITH(pager,
54 [  --with-pager=PAGER      specify the default pager])
55
56 if test -n "$with_pager"; then
57   pagerpath="$with_pager"
58 fi
59
60 dnl Do you want mhe support?
61 undefine([nmh-mhe])dnl
62 AC_ARG_ENABLE(nmh-mhe,
63 [  --enable-nmh-mhe        enable mhe support (DEFAULT)])
64
65 dnl mhe support is on by default, so define it unless
66 dnl explicitly disabled.
67 if test x$enable_nmh_mhe != xno; then
68   AC_DEFINE(MHE)dnl
69 fi
70
71 dnl Do you want client-side support for pop
72 undefine([nmh-pop])dnl
73 AC_ARG_ENABLE(nmh-pop,
74 [  --enable-nmh-pop        enable client-side support for pop])
75 if test x$enable_nmh_pop = xyes; then
76   AC_DEFINE(POP)dnl
77   POPLIB=popsbr.o
78   POPSED='/^%nmhbeginpop%/d;/^%nmhendpop%/d'
79 else
80   POPSED='/^%nmhbeginpop%/,/^%nmhendpop%/d'
81 fi
82 AC_SUBST(POPLIB)dnl
83 AC_SUBST(POPSED)dnl
84
85 dnl Do you want client-side support for kpop
86 AC_ARG_WITH(krb4,
87 [  --with-krb4=PREFIX      specify location of Kerberos V4 for kpop support])
88 if test x$with_krb4 != x -a x$with_krb4 != xno; then
89   AC_DEFINE(KPOP)dnl
90   AC_DEFINE(KPOP_PRINCIPAL, "pop")dnl
91 fi
92
93 dnl Do you want support for hesiod
94 AC_ARG_WITH(hesiod,
95 [  --with-hesiod=PREFIX    specify location of Hesiod])
96 if test x$with_hesiod != x -a x$with_hesiod != xno; then
97   AC_DEFINE(HESIOD)dnl
98 fi
99
100 dnl Do you want to debug nmh?
101 undefine([nmh-debug])dnl
102 AC_ARG_ENABLE(nmh-debug,
103 [  --enable-nmh-debug      enable nmh code debugging])
104
105 dnl ----------------------------------------------------
106 dnl Default location is /usr/local/nmh/{bin,etc,lib,man}
107 dnl ----------------------------------------------------
108 AC_PREFIX_DEFAULT(/usr/local/nmh)
109
110 dnl ------------------
111 dnl CHECK THE COMPILER
112 dnl ------------------
113 dnl We want these before the checks,
114 dnl so the checks can modify their values.
115 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
116 if test x$enable_nmh_debug = xyes; then
117   test -z "$LDFLAGS" && LDFLAGS=-g
118 fi
119
120 AC_PROG_CC
121
122 dnl if the user hasn't specified CFLAGS, then
123 dnl   if compiler is gcc, then
124 dnl     use -O2 and some warning flags
125 dnl   else use -O
126 if test -n "$auto_cflags"; then
127   if test x$enable_nmh_debug = xyes; then
128     if test -n "$GCC"; then
129       test -z "$CFLAGS" && CFLAGS="-Wall -g" || CFLAGS="$CFLAGS -Wall -g"
130     else
131       test -z "$CFLAGS" && CFLAGS=-g || CFLAGS="$CFLAGS -g"
132     fi
133   else
134     test -z "$LDFLAGS" && LDFLAGS=-s
135     if test -n "$GCC"; then
136       test -z "$CFLAGS" && CFLAGS=-O2 || CFLAGS="$CFLAGS -O2"
137     else
138       test -z "$CFLAGS" && CFLAGS=-O  || CFLAGS="$CFLAGS -O"
139     fi
140   fi
141 fi
142
143 AC_C_CONST              dnl Does compiler support `const'.
144
145 dnl ------------------
146 dnl CHECK FOR PROGRAMS
147 dnl ------------------
148 AC_PROG_MAKE_SET        dnl Does make define $MAKE
149 AC_PROG_INSTALL         dnl Check for BSD compatible `install'
150 AC_PROG_RANLIB          dnl Check for `ranlib'
151 AC_PROG_AWK             dnl Check for mawk,gawk,nawk, then awk
152 AC_PROG_LEX             dnl Check for lex/flex
153
154 dnl Look for `cut'
155 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
156 AC_PATH_PROG(cutpath, cut, no, [$pathtmp])
157
158 dnl Check for lorder and tsort commands
159 AC_CHECK_PROG(LORDER, lorder, lorder, no)dnl
160 AC_CHECK_PROG(TSORT, tsort, tsort, no)dnl
161
162 dnl If either doesn't exist, replace them with echo and cat
163 if test x$ac_cv_prog_LORDER != xlorder -o x$ac_cv_prog_TSORT != xtsort; then
164   LORDER=echo
165   TSORT=cat
166   AC_SUBST(LORDER)dnl
167   AC_SUBST(TSORT)dnl
168 fi
169
170 dnl Look for `ls'
171 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
172 AC_PATH_PROG(lspath, ls, no, [$pathtmp])
173
174 dnl Look for `more'
175 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
176 AC_PATH_PROG(morepath, more, no, [$pathtmp])
177
178 dnl If pager is not specified yet,
179 dnl then use `more' as the default.
180 if test -z "$pagerpath"; then
181   pagerpath="$morepath"
182 fi
183 AC_SUBST(pagerpath)dnl
184
185 dnl Look for `sendmail'
186 pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
187 AC_PATH_PROG(sendmailpath, sendmail, no, [$pathtmp])
188
189 dnl Look for `vi'
190 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
191 AC_PATH_PROG(vipath, vi, no, [$pathtmp])
192
193 dnl If editor is not specified yet,
194 dnl then use `vi' as the default.
195 if test -z "$editorpath"; then
196   editorpath="$vipath"
197 fi
198 AC_SUBST(editorpath)dnl
199
200 dnl Check for broken vi
201 AC_CACHE_CHECK(for broken vi, nmh_cv_attvibug,
202 [if echo 'r /nonexist-file
203 q' | ex > /dev/null 2>&1
204 then
205         nmh_cv_attvibug=no
206 else
207         nmh_cv_attvibug=yes
208 fi])
209  
210 if test "$nmh_cv_attvibug" = yes; then
211   AC_DEFINE(ATTVIBUG)
212 fi
213
214 dnl ----------------------------------------------------------
215 dnl FIND MAIL SPOOL AND SEE IF WE NEED TO MAKE inc SETGID MAIL
216 dnl ----------------------------------------------------------
217 AC_CACHE_CHECK(where mail spool is located, nmh_cv_mailspool,
218 [for mailspool in /var/mail        dnl
219                   /var/spool/mail  dnl
220                   /usr/spool/mail  dnl
221                   /dev/null;       dnl Just in case we fall through
222 do
223   test -d $mailspool && break
224 done
225 nmh_cv_mailspool=$mailspool
226 ])
227 mailspool=$nmh_cv_mailspool
228 AC_SUBST(mailspool)dnl
229
230 dnl See whether the mail spool directory is world-writable.
231 if test "$lspath" != "no" -a "$cutpath" != "no"; then
232   AC_CACHE_CHECK(whether the mail spool is world-writable, 
233                  nmh_cv_mailspool_world_writable,
234   [if test "`$lspath -dl $mailspool | $cutpath -c9`" = "-"; then
235     nmh_cv_mailspool_world_writable=no
236   else
237     nmh_cv_mailspool_world_writable=yes
238   fi])
239 fi
240
241 dnl ...If it's not, we need to #define MAILGROUP to 1 and make inc setgid mail.
242 if test "$nmh_cv_mailspool_world_writable" = "no"; then
243   AC_DEFINE(MAILGROUP)
244   SETGID_MAIL=1
245 fi
246 AC_SUBST(SETGID_MAIL)dnl
247
248 dnl ------------------
249 dnl CHECK HEADER FILES
250 dnl ------------------
251 AC_HEADER_DIRENT
252 AC_HEADER_STDC
253 AC_HEADER_TIME
254 AC_HEADER_SYS_WAIT
255 AC_HEADER_STAT
256 AC_CHECK_HEADERS(string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
257                  limits.h crypt.h termcap.h termio.h termios.h locale.h \
258                  sys/param.h sys/time.h sys/utsname.h arpa/inet.h \
259                  arpa/ftp.h)
260
261 AC_CACHE_CHECK(POSIX termios, nmh_cv_sys_posix_termios,
262 [AC_TRY_LINK([#include <sys/types.h>
263 #include <unistd.h>
264 #include <termios.h>],
265 [/* SunOS 4.0.3 has termios.h but not the library calls.  */
266 tcgetattr(0, 0);],
267   nmh_cv_sys_posix_termios=yes, nmh_cv_sys_posix_termios=no)])
268  
269 if test $nmh_cv_sys_posix_termios = yes; then
270   AC_CACHE_CHECK(TIOCGWINSZ in termios.h,
271   nmh_cv_header_termios_h_tiocgwinsz,
272   [AC_TRY_LINK([#include <sys/types.h>
273 #include <termios.h>],
274   [int x = TIOCGWINSZ;],
275   nmh_cv_header_termios_h_tiocgwinsz=yes,
276   nmh_cv_header_termios_h_tiocgwinsz=no)])
277 else
278   nmh_cv_header_termios_h_tiocgwinsz=no
279 fi
280  
281 if test $nmh_cv_header_termios_h_tiocgwinsz = no; then
282   AC_CACHE_CHECK(TIOCGWINSZ in sys/ioctl.h,
283   nmh_cv_header_sys_ioctl_h_tiocgwinsz,
284   [AC_TRY_LINK([#include <sys/types.h>
285 #include <sys/ioctl.h>],
286   [int x = TIOCGWINSZ;],
287   nmh_cv_header_sys_ioctl_h_tiocgwinsz=yes,
288   nmh_cv_header_sys_ioctl_h_tiocgwinsz=no)])
289   if test $nmh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
290     AC_DEFINE(GWINSZ_IN_SYS_IOCTL)
291   fi
292 fi
293  
294 AC_CHECK_HEADER([sys/ptem.h], AC_DEFINE(WINSIZE_IN_PTEM))
295
296 dnl ---------------
297 dnl CHECK FUNCTIONS
298 dnl ---------------
299 AC_FUNC_VFORK
300 AC_CHECK_LIB(mkstemp,mkstemp)
301 AC_CHECK_FUNCS(waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
302                sighold sigrelse writev lstat uname tzset killpg mkstemp)
303
304 dnl sigsetjmp may be a macro
305 AC_MSG_CHECKING(for sigsetjmp)
306 AC_TRY_LINK([#include <setjmp.h>], [sigsetjmp((void *)0, 0);],
307         [AC_DEFINE(HAVE_SIGSETJMP) AC_MSG_RESULT(yes)], AC_MSG_RESULT(no))
308
309 AC_REPLACE_FUNCS(snprintf strerror strdup)
310
311 dnl -------------------
312 dnl CHECK FOR LIBRARIES
313 dnl -------------------
314 dnl Check location of modf
315 AC_CHECK_FUNC(modf, , AC_CHECK_LIB(m, modf))
316
317 dnl Checks for network libraries (nsl, socket)
318 AC_CHECK_NETLIBS
319
320 dnl Check for bug in libraries such that ruserpass
321 dnl needs to be linked as _ruserpass.
322 AC_CHECK_RUSERPASS
323
324 termcap_curses_order="termcap curses ncurses"
325 for lib in $termcap_curses_order; do
326   AC_CHECK_LIB(${lib}, tgetent, [TERMLIB="-l$lib"; break])
327 done
328 AC_SUBST(TERMLIB)dnl
329
330
331 dnl --------------
332 dnl CHECK FOR NDBM
333 dnl --------------
334 dnl Checks for ndbm
335 AC_CHECK_FUNC(dbm_open, ,
336   AC_CHECK_LIB(ndbm, dbm_open, ,
337     AC_CHECK_LIB(dbm, dbm_open)))
338
339 dnl ----------------
340 dnl CHECK FOR HESIOD
341 dnl ----------------
342 if test x$with_hesiod != x -a x$with_hesiod != xno; then
343   if test x$with_hesiod != xyes; then
344     HESIOD_INCLUDES="-I$with_hesiod/include"
345     HESIOD_LIBS="-L$with_hesiod/lib"
346   fi
347   AC_CHECK_FUNC(res_send, ,
348     AC_CHECK_LIB(resolv, res_send))
349   AC_CHECK_LIB(hesiod, hes_resolve, [HESIOD_LIBS="$HESIOD_LIBS -lhesiod"],
350     [AC_MSG_ERROR(Hesiod library not found)], $HESIOD_LIBS)
351 fi
352 AC_SUBST(HESIOD_INCLUDES)dnl
353 AC_SUBST(HESIOD_LIBS)dnl
354
355 dnl ----------------------------------
356 dnl CHECK FOR KRB4 (Kerberos4 support)
357 dnl ----------------------------------
358 if test x$with_krb4 != x -a x$with_krb4 != xno; then
359   if test x$with_krb4 != xyes; then
360     KRB4_INCLUDES="-I$with_krb4/include"
361     if test -d "$with_krb4/include/kerberosIV"; then
362       KRB4_INCLUDES="$KRB4_INCLUDES -I$with_krb4/include/kerberosIV"
363     fi
364     KRB4_LIBS="-L$with_krb4/lib"
365   elif test -d /usr/include/kerberosIV; then
366     KRB4_INCLUDES="-I/usr/include/kerberosIV"
367   fi
368   AC_CHECK_LIB(krb4, krb_rd_req,
369     [KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"],
370     [AC_CHECK_LIB(krb, krb_rd_req,
371       [KRB4_LIBS="$KRB4_LIBS -lkrb -ldes"],
372       [AC_MSG_ERROR(Kerberos 4 libraries not found)],
373       $KRB4_LIBS -ldes)],
374     $KRB4_LIBS -ldes425 -lkrb5 -lcrypto -lcom_err)
375 fi
376 AC_SUBST(KRB4_INCLUDES)dnl
377 AC_SUBST(KRB4_LIBS)dnl
378
379 dnl ---------------------
380 dnl CHECK TERMCAP LIBRARY
381 dnl ---------------------
382
383 dnl Add the termcap library, so that the following configure
384 dnl tests will find it when it tries to link test programs.
385 nmh_save_LIBS="$LIBS"
386 LIBS="$TERMLIB $LIBS"
387
388 dnl Checks for external variable ospeed in the termcap library.
389 AC_CACHE_CHECK(if an include file defines ospeed,
390 nmh_cv_decl_ospeed_include_defines,
391 [AC_TRY_LINK(
392 [#include <sys/types.h>
393 #if HAVE_TERMIOS_H
394 #include <termios.h>
395 #endif
396 #if HAVE_TERMCAP_H
397 #include <termcap.h>
398 #endif], [ospeed = 0;],
399 nmh_cv_decl_ospeed_include_defines=yes,
400 nmh_cv_decl_ospeed_include_defines=no)])
401  
402 if test $nmh_cv_decl_ospeed_include_defines = no; then
403   AC_CACHE_CHECK(if you must define ospeed,
404   nmh_cv_decl_ospeed_must_define,
405   [AC_TRY_LINK( ,[extern short ospeed; ospeed = 0;],
406   nmh_cv_decl_ospeed_must_define=yes,
407   nmh_cv_decl_ospeed_must_define=no)])
408 fi
409  
410 if test $nmh_cv_decl_ospeed_include_defines = yes; then
411   AC_DEFINE(HAVE_OSPEED)
412 elif test $nmh_cv_decl_ospeed_must_define = yes; then
413   AC_DEFINE(HAVE_OSPEED)
414   AC_DEFINE(MUST_DEFINE_OSPEED)
415 fi
416
417 dnl dnl Checks if tgetent accepts NULL and will
418 dnl dnl allocate its own termcap buffer.
419 dnl AC_CACHE_CHECK(if tgetent accepts NULL,
420 dnl nmh_cv_func_tgetent_accepts_null,
421 dnl [AC_TRY_RUN([main(){int i = tgetent((char*)0,"vt100");exit(!i || i == -1);}],
422 dnl   nmh_cv_func_tgetent_accepts_null=yes,
423 dnl   nmh_cv_func_tgetent_accepts_null=no,
424 dnl   nmh_cv_func_tgetent_accepts_null=no)])
425 dnl if test $nmh_cv_func_tgetent_accepts_null = yes; then
426 dnl   AC_DEFINE(TGETENT_ACCEPTS_NULL)
427 dnl fi
428
429 dnl Now put the libraries back to what it was before we
430 dnl starting checking the termcap library.
431 LIBS="$nmh_save_LIBS"
432
433 dnl --------------
434 dnl CHECK TYPEDEFS
435 dnl --------------
436 AC_TYPE_SIGNAL
437 AC_TYPE_PID_T
438 AC_TYPE_OFF_T
439 AC_TYPE_UID_T
440 AC_TYPE_MODE_T
441 AC_TYPE_SIZE_T
442
443 dnl Check for sigset_t.  Currently I'm looking in
444 dnl <sys/types.h> and <signal.h>.  Others might need
445 dnl to be added.
446 AC_CACHE_CHECK(for sigset_t, nmh_cv_type_sigset_t,
447 [AC_TRY_COMPILE(
448 [#include <sys/types.h>
449 #include <signal.h>], [sigset_t tempsigset;],
450   nmh_cv_type_sigset_t=yes, nmh_cv_type_sigset_t=no)])
451 if test $nmh_cv_type_sigset_t = no; then
452   AC_DEFINE(sigset_t, unsigned int)
453 fi
454
455 dnl ----------------
456 dnl CHECK STRUCTURES
457 dnl ----------------
458 AC_STRUCT_ST_BLKSIZE
459
460 AC_CACHE_CHECK(for tm_gmtoff in struct tm, nmh_cv_struct_tm_gmtoff,
461 [AC_TRY_COMPILE(
462 [#ifdef TIME_WITH_SYS_TIME
463 # include <sys/time.h>
464 # include <time.h>
465 #else
466 # ifdef TM_IN_SYS_TIME
467 #  include <sys/time.h>
468 # else
469 #  include <time.h>
470 # endif
471 #endif],
472 [struct tm temptm; temptm.tm_gmtoff = 0;],
473   nmh_cv_struct_tm_gmtoff=yes, nmh_cv_struct_tm_gmtoff=no)])
474 if test $nmh_cv_struct_tm_gmtoff = yes; then
475   AC_DEFINE(HAVE_TM_GMTOFF)
476 fi
477
478 dnl -------------
479 dnl CHECK SIGNALS
480 dnl -------------
481 dnl What style of signal do you have (POSIX, BSD, or SYSV)?
482 AC_MSG_CHECKING(what style of signals to use)
483 if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
484   signals_style=POSIX_SIGNALS
485   AC_DEFINE(POSIX_SIGNALS)
486   AC_DEFINE(RELIABLE_SIGNALS)
487 elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
488   signals_style=BSD_SIGNALS
489   AC_DEFINE(BSD_SIGNALS)
490   AC_DEFINE(RELIABLE_SIGNALS)
491 elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
492   signals_style=SYSV_SIGNALS
493   AC_DEFINE(SYSV_SIGNALS)
494 else
495   signals_style=NO_SIGNAL_BLOCKING
496   AC_DEFINE(NO_SIGNAL_BLOCKING)
497 fi
498
499 AC_MSG_RESULT($signals_style)
500
501 dnl Where is <signal.h> located?  Needed as input for signames.awk
502 AC_CACHE_CHECK(where signal.h is located, nmh_cv_path_signal_h,
503 [for SIGNAL_H in /usr/include/bsd/sys/signal.h  dnl Next
504                  /usr/include/asm/signal.h      dnl Linux 1.3.0 and above
505                  /usr/include/asm/signum.h      dnl some versions of Linux/Alpha
506                  /usr/include/linux/signal.h    dnl Linux up to 1.2.11
507                  /usr/include/sys/signal.h      dnl Almost everybody else
508                  /dev/null;                     dnl Just in case we fall through
509 do
510   test -f $SIGNAL_H && \
511   grep '#[      ]*define[       ][      ]*SIG[0-9A-Z]*[         ]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
512   break
513 done
514 nmh_cv_path_signal_h=$SIGNAL_H
515 ])
516 SIGNAL_H=$nmh_cv_path_signal_h
517 AC_SUBST(SIGNAL_H)dnl
518
519 dnl ----------------
520 dnl OS SPECIFIC DEFINES
521 dnl ----------------
522 case "$target_os" in
523
524   solaris2*)
525     AC_DEFINE(SYS5)
526     AC_DEFINE(SVR4)
527     ;;
528   irix*)
529     AC_DEFINE(SYS5)
530     AC_DEFINE(SVR4)
531     ;;
532   osf*)
533     AC_DEFINE(SYS5)
534     AC_DEFINE(SVR4)
535     ;;
536   aix*)
537     AC_DEFINE(SYS5)
538     AC_DEFINE(SVR4)
539     ;;
540   sunos4*)
541     AC_DEFINE(BIND)
542     AC_DEFINE(BSD42)
543     ;;
544   linux*)
545     AC_DEFINE(LINUX_STDIO)
546     ;;
547   freebsd*)  
548     AC_DEFINE(BIND)
549     AC_DEFINE(BSD42)
550     AC_DEFINE(BSD44)
551     ;;
552   netbsd*)
553     AC_DEFINE(BIND)
554     AC_DEFINE(BSD42)
555     AC_DEFINE(BSD44)
556     ;;
557   openbsd*)
558     AC_DEFINE(BIND)
559     AC_DEFINE(BSD42)
560     AC_DEFINE(BSD44)
561     ;;
562   bsd/os*)
563     AC_DEFINE(BIND)
564     AC_DEFINE(BSD42)
565     AC_DEFINE(BSD44)
566     ;;
567   sco5*)
568     AC_DEFINE(SYS5)
569     AC_DEFINE(SCO_5_STDIO)
570     ;;
571 esac
572
573
574 dnl ----------------
575 dnl OUTPUT MAKEFILES
576 dnl ----------------
577 AC_OUTPUT(Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
578           zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
579           zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
580           mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
581           etc/Makefile man/Makefile, \
582           [test -z "$CONFIG_HEADERS" || echo > stamp-h])
583
584 eval "nmhbin=${bindir}";         eval "nmhbin2=${nmhbin}"
585 eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf2=${nmhsysconf}"
586 eval "nmhlib=${libdir}";         eval "nmhlib2=${nmhlib}"
587 eval "nmhman=${mandir}"
588
589 echo "
590 nmh configuration
591 -----------------
592 nmh version               : ${VERSION}
593 target os                 : ${target}
594 compiler                  : ${CC}
595 compiler flags            : ${CFLAGS}
596 linker flags              : ${LDFLAGS}
597 source code location      : ${srcdir}
598 binary install path       : ${nmhbin2}
599 libary install path       : ${nmhlib2}
600 config files install path : ${nmhsysconf2}
601 man page install path     : ${nmhman}
602 transport system          : ${MTS}
603 default editor            : ${editorpath}
604 default pager             : ${pagerpath}"
605 echo ""