355
356
dnl OPTION: basic spell checking program
356
357
AC_ARG_WITH(simple-spellcheck,
357
AC_HELP_STRING([--with-simple-spellcheck=PATH],[Spellcheck program reads stdin, emits misspellings on stdout]),
358
AC_HELP_STRING([--with-simple-spellcheck=PROG],[Spellcheck program reads stdin, emits misspellings on stdout]),
359
360
if test "x$withval" != "xno" ; then
360
361
SPELLPROG=$withval
365
AC_CHECK_PROG([SPELLPROG], [hunspell], [hunspell], [])
366
if test -z "$SPELLPROG" ; then
367
AC_CHECK_PROG([SPELLPROG], [aspell], [aspell], [])
368
if test -z "$SPELLPROG" ; then
369
AC_CHECK_PROG([SPELLPROG], [ispell], [ispell], [])
370
if test -z "$SPELLPROG" ; then
371
AC_PATH_PROG(alpine_simple_spellcheck, [aspell])
372
if test -n "$alpine_simple_spellcheck" ; then
373
alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
375
AC_PATH_PROG(alpine_simple_spellcheck, [ispell])
376
if test -n "$alpine_simple_spellcheck" ; then
377
alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
379
AC_PATH_PROG(alpine_simple_spellcheck, [spell])
384
AC_PATH_PROG(alpine_simple_spellcheck, $SPELLPROG)
377
if test "x$SPELLPROG" != "xno" ; then
378
AC_PATH_PROG(alpine_simple_spellcheck, $SPELLPROG)
379
if test -n "$alpine_simple_spellcheck" ; then
382
alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
385
alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
388
alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
388
396
dnl OPTION: interactive spell checking program
389
397
AC_ARG_WITH(interactive-spellcheck,
390
AC_HELP_STRING([--with-interactive-spellcheck=PATH],[Interactive, filewise spell checker]),
398
AC_HELP_STRING([--with-interactive-spellcheck=PROG],[Interactive, filewise spell checker]),
392
400
if test "x$withval" != "xno" ; then
393
401
ISPELLPROG=$withval
405
AC_CHECK_PROG([ISPELLPROG], [hunspell], [hunspell], [])
406
if test -z "$ISPELLPROG" ; then
407
AC_CHECK_PROG([ISPELLPROG], [aspell], [aspell], [])
408
if test -z "$SPELLPROG" ; then
400
case "$ISPELLPROG" in
404
AC_PATH_PROG(alpine_interactive_spellcheck, [aspell])
405
if test -n "$alpine_interactive_spellcheck" ; then
406
alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
408
AC_PATH_PROG(alpine_interactive_spellcheck, [ispell])
412
AC_PATH_PROG(alpine_interactive_spellcheck, $withval)
414
if test "x$ISPELLPROG" != "xno" ; then
415
AC_PATH_PROG(alpine_interactive_spellcheck, $ISPELLPROG)
416
if test -n "$alpine_interactive_spellcheck" ; then
417
case "$ISPELLPROG" in
419
alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
427
if test -n "$alpine_interactive_spellcheck" ; then
428
AC_DEFINE_UNQUOTED([DF_VAR_SPELLER], "$alpine_interactive_spellcheck", [Interactive, filewise spell checker])
416
431
if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
417
432
alpine_simple_spellcheck=test
419
434
AC_DEFINE_UNQUOTED([SPELLER], "$alpine_simple_spellcheck", [Simple spell checker: reads stdin, emits misspellings on stdout])
421
if test -n "$alpine_interactive_spellcheck" ; then
422
AC_DEFINE_UNQUOTED([DF_VAR_SPELLER], "$alpine_interactive_spellcheck", [Interactive, filewise spell checker])
425
436
dnl OPTION: system-pinerc
426
437
dnl NOTE: historically we used /lib for the config dir.
427
438
dnl don't ask, it was a long time ago. but, we can't
586
597
AC_DEFINE_UNQUOTED([PASSFILE], "$alpine_PASSFILE", [Password cache file (NOT secure. NOT recommended)])
601
AC_ARG_WITH(default-sshpath,
602
AC_HELP_STRING([--with-default-sshpath=FILENAME],[set default value of ssh command path (defining should cause ssh to be preferred to rsh)]),
610
AC_DEFINE_UNQUOTED([DF_SSHPATH], "$withval", [set default value of ssh command path (defining should cause ssh to be preferred to rsh)])
616
AC_ARG_WITH(default-sshcmd,
617
AC_HELP_STRING([--with-default-sshcmd=PERCENT_S_STRING],[set default value of ssh command string (usually "%s %s -l %s exec /etc/r%sd")]),
625
AC_DEFINE_UNQUOTED([DF_SSHCMD], "$withval", [set default value of ssh command string (usually "%s %s -l %s exec /etc/r%sd")])
590
631
dnl Set SSLDIR for c-client make
1536
1594
AC_MSG_NOTICE([* * * Including Kerberos5 functionality])
1597
if test -n "$CPPFLAGS" ; then
1598
alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
1600
if test -n "$CFLAGS" ; then
1601
alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
1539
1604
if test -n "$alpine_c_client_cflags" ; then
1540
1605
AC_SUBST(C_CLIENT_CFLAGS, EXTRACFLAGS=\"$alpine_c_client_cflags\")
1608
if test -n "$LDFLAGS" ; then
1609
alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
1611
if test -n "$LIBS" ; then
1612
alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
1543
1615
if test -n "$alpine_c_client_ldflags" ; then
1544
1616
AC_SUBST(C_CLIENT_LDFLAGS, EXTRALDFLAGS=\"$alpine_c_client_ldflags\")