~ubuntu-branches/debian/stretch/alpine/stretch

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Asheesh Laroia
  • Date: 2010-10-03 15:31:55 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20101003153155-2exypc96j1e8tw0p
Tags: 2.02-1
* New upstream release, based on re-alpine project
* Updated debian/copyright to reflect this fact
* re-alpine removed the non-free from the tarball, so now
  we do not repack the upstream tarball. (Yay!)

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
AC_PREREQ([2.57])
16
16
 
17
 
AC_REVISION([$Id: configure.ac 1128 2008-08-08 17:11:31Z hubert@u.washington.edu $])
 
17
AC_REVISION([$Id: configure.ac 1266 2009-07-14 18:39:12Z hubert@u.washington.edu $])
18
18
 
19
19
dnl Alpine Version Number is in $srcdir/VERSION
20
20
AC_INIT(alpine, m4_normalize(m4_include([VERSION])), [alpine-contact@u.washington.edu])
154
154
      *)
155
155
        new_ldflags="-L`echo ${withval} | ${SED} 's/:/ -L/g'`"
156
156
        LDFLAGS="$LDFLAGS $new_ldflags"
 
157
        alpine_c_client_ldflags="$alpine_c_client_ldflags ${new_ldflags}"
157
158
        ;;
158
159
    esac
159
160
  ])
354
355
 
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]),
358
359
    [
359
360
      if test "x$withval" != "xno" ; then
360
361
        SPELLPROG=$withval
361
362
      fi
362
363
    ],
363
364
    [
364
 
      SPELLPROG=yes
 
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
           SPELLPROG="spell"
 
372
          fi
 
373
        fi
 
374
      fi
365
375
    ])
366
376
 
367
 
case "$SPELLPROG" in
368
 
  no)
369
 
    ;;
370
 
  yes)
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"
374
 
    else
375
 
      AC_PATH_PROG(alpine_simple_spellcheck, [ispell])
376
 
      if test -n "$alpine_simple_spellcheck" ; then
377
 
        alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
378
 
      else
379
 
        AC_PATH_PROG(alpine_simple_spellcheck, [spell])
380
 
      fi
381
 
    fi
382
 
    ;;
383
 
  *)
384
 
    AC_PATH_PROG(alpine_simple_spellcheck, $SPELLPROG)
385
 
    ;;
386
 
esac
 
377
if test "x$SPELLPROG" != "xno" ; then
 
378
  AC_PATH_PROG(alpine_simple_spellcheck, $SPELLPROG)
 
379
  if test -n "$alpine_simple_spellcheck" ; then
 
380
    case "$SPELLPROG" in
 
381
      hunspell)
 
382
        alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
 
383
        ;;
 
384
      aspell)
 
385
        alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
 
386
        ;;
 
387
      ispell)
 
388
        alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
 
389
        ;;
 
390
      *)
 
391
        ;;
 
392
    esac
 
393
  fi
 
394
fi
387
395
 
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]),
391
399
    [
392
400
      if test "x$withval" != "xno" ; then
393
401
        ISPELLPROG=$withval
394
402
      fi
395
403
    ],
396
404
    [
397
 
      ISPELLPROG=yes
 
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
 
409
          ISPELLPROG="ispell"
 
410
        fi
 
411
      fi
398
412
    ])
399
413
 
400
 
case "$ISPELLPROG" in
401
 
  no)
402
 
    ;;
403
 
  yes)
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"
407
 
    else
408
 
      AC_PATH_PROG(alpine_interactive_spellcheck, [ispell])
409
 
    fi
410
 
    ;;
411
 
  *)
412
 
    AC_PATH_PROG(alpine_interactive_spellcheck, $withval)
413
 
    ;;
414
 
esac
 
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
 
418
      aspell)
 
419
        alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
 
420
        ;;
 
421
      *)
 
422
        ;;
 
423
    esac
 
424
  fi
 
425
fi
 
426
 
 
427
if test -n "$alpine_interactive_spellcheck" ; then
 
428
    AC_DEFINE_UNQUOTED([DF_VAR_SPELLER], "$alpine_interactive_spellcheck", [Interactive, filewise spell checker])
 
429
fi
415
430
 
416
431
if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
417
432
  alpine_simple_spellcheck=test
418
433
fi
419
434
AC_DEFINE_UNQUOTED([SPELLER], "$alpine_simple_spellcheck", [Simple spell checker: reads stdin, emits misspellings on stdout])
420
435
 
421
 
if test -n "$alpine_interactive_spellcheck" ; then
422
 
    AC_DEFINE_UNQUOTED([DF_VAR_SPELLER], "$alpine_interactive_spellcheck", [Interactive, filewise spell checker])
423
 
fi
424
 
 
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)])
587
598
fi
588
599
 
 
600
dnl set DF_SSHPATH?
 
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)]),
 
603
    [
 
604
      case "$withval" in
 
605
        no)
 
606
          ;;
 
607
        yes)
 
608
          ;;
 
609
        *)
 
610
          AC_DEFINE_UNQUOTED([DF_SSHPATH], "$withval", [set default value of ssh command path (defining should cause ssh to be preferred to rsh)])
 
611
          ;;
 
612
      esac
 
613
    ])
 
614
 
 
615
dnl set DF_SSHCMD?
 
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")]),
 
618
    [
 
619
      case "$withval" in
 
620
        no)
 
621
          ;;
 
622
        yes)
 
623
          ;;
 
624
        *)
 
625
          AC_DEFINE_UNQUOTED([DF_SSHCMD], "$withval", [set default value of ssh command string (usually "%s %s -l %s exec /etc/r%sd")])
 
626
          ;;
 
627
      esac
 
628
    ])
 
629
 
589
630
dnl Include SSL?
590
631
dnl Set SSLDIR for c-client make
591
632
AC_ARG_WITH(ssl,
867
908
        LIBS="$LIBS -lncurses"
868
909
      ],
869
910
      [
870
 
        AC_CHECK_LIB(termlib, tgetent,
871
 
          [
872
 
            alpine_termdata=cap
873
 
            LIBS="$LIBS -ltermlib"
874
 
          ],
875
 
          [
876
 
            AC_CHECK_LIB(termcap, tgetent,
877
 
              [
878
 
                alpine_termdata=cap
879
 
                LIBS="$LIBS -ltermcap"
880
 
              ],
881
 
              [
882
 
                AC_ERROR([Terminfo/termcap not found])
883
 
              ])
884
 
          ])
 
911
        AC_CHECK_LIB(curses, setupterm,
 
912
          [
 
913
            alpine_termdata=info
 
914
            LIBS="$LIBS -lcurses"
 
915
          ],
 
916
          [
 
917
            AC_CHECK_LIB(termlib, tgetent,
 
918
              [
 
919
                alpine_termdata=cap
 
920
                LIBS="$LIBS -ltermlib"
 
921
              ],
 
922
              [
 
923
                AC_CHECK_LIB(termcap, tgetent,
 
924
                  [
 
925
                    alpine_termdata=cap
 
926
                    LIBS="$LIBS -ltermcap"
 
927
                  ],
 
928
                  [
 
929
                    AC_ERROR([Terminfo/termcap not found])
 
930
                  ])
 
931
              ])
 
932
          ])
885
933
      ])
886
934
  ])
887
935
case $alpine_termdata in
1339
1387
      [
1340
1388
        alpine_c_client_target="osx"
1341
1389
      ])
 
1390
    AC_CHECK_HEADER(/usr/include/security/pam_appl.h,
 
1391
      [
 
1392
        alpine_c_client_target="oxs"
 
1393
      ])
1342
1394
    ;;
1343
1395
  *-*-solaris*)
1344
1396
    if test x$GCC = "xyes" ; then
1411
1463
    alpine_c_client_target="bso"
1412
1464
    LIBS="$LIBS $LIBINTL"
1413
1465
    ;;
 
1466
  *-*-aix5*)
 
1467
    systype="A52"
 
1468
    alpine_path_delim="/"
 
1469
    alpine_mode_readonly="(0600)"
 
1470
    alpine_c_client_target="a52"
 
1471
    ;;
1414
1472
  *-*-aix4*)
1415
1473
    systype="A41"
1416
1474
    alpine_path_delim="/"
1536
1594
  AC_MSG_NOTICE([* * * Including Kerberos5 functionality])
1537
1595
fi
1538
1596
 
 
1597
if test -n "$CPPFLAGS" ; then
 
1598
  alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
 
1599
fi
 
1600
if test -n "$CFLAGS" ; then
 
1601
  alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
 
1602
fi
 
1603
 
1539
1604
if test -n "$alpine_c_client_cflags" ; then
1540
1605
  AC_SUBST(C_CLIENT_CFLAGS, EXTRACFLAGS=\"$alpine_c_client_cflags\")
1541
1606
fi
1542
1607
 
 
1608
if test -n "$LDFLAGS" ; then
 
1609
  alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
 
1610
fi
 
1611
if test -n "$LIBS" ; then
 
1612
  alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
 
1613
fi
 
1614
 
1543
1615
if test -n "$alpine_c_client_ldflags" ; then
1544
1616
  AC_SUBST(C_CLIENT_LDFLAGS, EXTRALDFLAGS=\"$alpine_c_client_ldflags\")
1545
1617
fi