"Fossies" - the Fresh Open Source Software Archive

Member "tin-2.4.1/configure" (24 Dec 2016, 683308 Bytes) of archive /linux/misc/tin-2.4.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "configure": 2.4.0_vs_2.4.1.

    1 #! /bin/sh
    2 
    3 # Guess values for system-dependent variables and create Makefiles.
    4 # Generated automatically using autoconf version 2.13.20110430 
    5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
    6 #
    7 # This configure script is free software; the Free Software Foundation
    8 # gives unlimited permission to copy, distribute and modify it.
    9 
   10 # Defaults:
   11 ac_help=
   12 ac_default_prefix=/usr/local
   13 # Any additions from configure.in:
   14 ac_default_prefix=/usr/local
   15 
   16 # Initialize some variables set by options.
   17 # The variables have the same names as the options, with
   18 # dashes changed to underlines.
   19 build=NONE
   20 cache_file=./config.cache
   21 exec_prefix=NONE
   22 host=NONE
   23 no_create=
   24 nonopt=NONE
   25 no_recursion=
   26 prefix=NONE
   27 program_prefix=NONE
   28 program_suffix=NONE
   29 program_transform_name=s,x,x,
   30 silent=
   31 site=
   32 srcdir=
   33 target=NONE
   34 verbose=
   35 x_includes=NONE
   36 x_libraries=NONE
   37 bindir='${exec_prefix}/bin'
   38 sbindir='${exec_prefix}/sbin'
   39 libexecdir='${exec_prefix}/libexec'
   40 datadir='${prefix}/share'
   41 sysconfdir='${prefix}/etc'
   42 sharedstatedir='${prefix}/com'
   43 localstatedir='${prefix}/var'
   44 libdir='${exec_prefix}/lib'
   45 includedir='${prefix}/include'
   46 oldincludedir='/usr/include'
   47 infodir='${prefix}/info'
   48 mandir='${prefix}/man'
   49 
   50 # Initialize some other variables.
   51 subdirs=
   52 MFLAGS= MAKEFLAGS=
   53 SHELL=${CONFIG_SHELL-/bin/sh}
   54 # Maximum number of lines to put in a shell here document.
   55 ac_max_here_lines=12
   56 
   57 ac_prev=
   58 for ac_option
   59 do
   60 
   61   # If the previous option needs an argument, assign it.
   62   if test -n "$ac_prev"; then
   63     eval "$ac_prev=\$ac_option"
   64     ac_prev=
   65     continue
   66   fi
   67 
   68   case "$ac_option" in
   69   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
   70   *) ac_optarg= ;;
   71   esac
   72 
   73   # Accept the important Cygnus configure options, so we can diagnose typos.
   74 
   75   case "$ac_option" in
   76 
   77   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   78     ac_prev=bindir ;;
   79   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   80     bindir="$ac_optarg" ;;
   81 
   82   -build | --build | --buil | --bui | --bu)
   83     ac_prev=build ;;
   84   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   85     build="$ac_optarg" ;;
   86 
   87   -cache-file | --cache-file | --cache-fil | --cache-fi \
   88   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   89     ac_prev=cache_file ;;
   90   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   91   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   92     cache_file="$ac_optarg" ;;
   93 
   94   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
   95     ac_prev=datadir ;;
   96   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
   97   | --da=*)
   98     datadir="$ac_optarg" ;;
   99 
  100   -disable-* | --disable-*)
  101     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  102     # Reject names that are not valid shell variable names.
  103     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  104       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  105     fi
  106     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  107     eval "enable_${ac_feature}=no" ;;
  108 
  109   -enable-* | --enable-*)
  110     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  111     # Reject names that are not valid shell variable names.
  112     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  113       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  114     fi
  115     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  116     case "$ac_option" in
  117       *=*) ;;
  118       *) ac_optarg=yes ;;
  119     esac
  120     eval "enable_${ac_feature}='$ac_optarg'" ;;
  121 
  122   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  123   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  124   | --exec | --exe | --ex)
  125     ac_prev=exec_prefix ;;
  126   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  127   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  128   | --exec=* | --exe=* | --ex=*)
  129     exec_prefix="$ac_optarg" ;;
  130 
  131   -gas | --gas | --ga | --g)
  132     # Obsolete; use --with-gas.
  133     with_gas=yes ;;
  134 
  135   -help | --help | --hel | --he)
  136     # Omit some internal or obsolete options to make the list less imposing.
  137     # This message is too long to be a string in the A/UX 3.1 sh.
  138     cat << EOF
  139 Usage: configure [options] [host]
  140 Options: [defaults in brackets after descriptions]
  141 Configuration:
  142   --cache-file=FILE       cache test results in FILE
  143   --help                  print this message
  144   --no-create             do not create output files
  145   --quiet, --silent       do not print \`checking...' messages
  146   --version               print the version of autoconf that created configure
  147 Directory and file names:
  148   --prefix=PREFIX         install architecture-independent files in PREFIX
  149                           [$ac_default_prefix]
  150   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  151                           [same as prefix]
  152   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  153   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  154   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  155   --datadir=DIR           read-only architecture-independent data in DIR
  156                           [PREFIX/share]
  157   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  158   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  159                           [PREFIX/com]
  160   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  161   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  162   --includedir=DIR        C header files in DIR [PREFIX/include]
  163   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  164   --infodir=DIR           info documentation in DIR [PREFIX/info]
  165   --mandir=DIR            man documentation in DIR [PREFIX/man]
  166   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  167   --program-prefix=PREFIX prepend PREFIX to installed program names
  168   --program-suffix=SUFFIX append SUFFIX to installed program names
  169   --program-transform-name=PROGRAM
  170                           run sed PROGRAM on installed program names
  171 EOF
  172     cat << EOF
  173 Host type:
  174   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  175   --host=HOST             configure for HOST [guessed]
  176   --target=TARGET         configure for TARGET [TARGET=HOST]
  177 Features and packages:
  178   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  179   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  180   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  181   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  182   --x-includes=DIR        X include files are in DIR
  183   --x-libraries=DIR       X library files are in DIR
  184 EOF
  185 cat <<\EOF
  186 --enable and --with options recognized:
  187   --with-install-prefix   prefixes actual install location (default: /)
  188   --with-build-cc=XXX     the build C compiler ($BUILD_CC)
  189   --with-build-cpp=XXX    the build C preprocessor ($BUILD_CPP)
  190   --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
  191   --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
  192   --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
  193   --with-build-libs=XXX   the build libraries (${BUILD_LIBS})
  194   --disable-heapsort      disable heapsort() as alternative to qsort
  195   --with-ispell           (default: from system path)
  196   --with-metamail         (default: from system path)
  197   --with-sum              (default: from system path)
  198   --with-editor=PROG      specify editor (default: vi)
  199   --with-mailer=PROG      specify default mailer-program (default: mailx)
  200 EOF
  201 cat <<\EOF
  202   --with-mailbox=DIR      directory for incoming mailboxes (default: empty)
  203   --disable-pgp-gpg       disable PGP/GPG Support
  204   --with-pgp              (default: from system path)
  205   --with-pgpk             (default: from system path)
  206   --with-gpg              (default: from system path)
  207   --with-slrnface         (default: from system path)
  208   --with-shell=PROG       default $SHELL program (default: sh)
  209   --disable-nntp          disable reading via NNTP
  210   --enable-nntp-only      enable reading via NNTP only
  211   --enable-debug          turn on debug support
  212   --disable-echo          do not display "compiling" commands
  213   --enable-prototypes     check for optional prototypes
  214 EOF
  215 cat <<\EOF
  216   --enable-warnings       turn on GCC compiler warnings
  217   --with-libdir=PATH      news-library (default: /usr/lib/news)
  218   --with-spooldir=PATH    news spool-directory (default: /var/spool/news)
  219   --with-nov-dir=PATH     news overview-directory (default: $SPOOLDIR)
  220   --with-nov-fname        specify names of overview files (default: .overview)
  221   --with-inews-dir=PATH   directory containing "inews" (default: $INEWSPATH)
  222   --with-socks[=path]       link with socks library if available
  223   --with-socks5[=path]      link with socks5 library if available
  224   --disable-fcntl         disable fcntl() locking
  225   --enable-lockf          enable lockf() locking
  226   --enable-flock          enable flock() locking
  227   --with-screen=xxx       specify screen type, which must be one of:
  228                           termcap, terminfo, curses, ncurses, ncursesw, or
  229                           pdcurses (replaces options --enable-curses and
  230                           --with-ncurses)
  231 EOF
  232 cat <<\EOF
  233   --with-curses-dir=DIR   directory in which (n)curses is installed
  234   --with-ncurses          link with ncurses if available (deprecated)
  235   --enable-curses         use curses interface (deprecated)
  236   --with-pkg-config{=path} enable/disable use of pkg-config
  237   --with-pcre=PATH        use installed pcre versus bundled
  238   --with-dbmalloc         test: use Conor Cahill's dbmalloc library
  239   --with-dmalloc          test: use Gray Watson's dmalloc library
  240   --with-trace            use debugging/traces for screen output
  241   --with-domain-name      sets $DOMAIN_NAME (default: empty)
  242   --with-nntp-default-server
  243                           (sets NNTP_DEFAULT_SERVER)
  244                           (default: news.$DOMAIN_NAME)
  245   --enable-mh-mail-handling
  246                           use MH style mail handling for mailgroups
  247   --enable-cancel-locks   enable creation of Cancel-Locks
  248 EOF
  249 cat <<\EOF
  250   --disable-gsasl         don't use GNU SASL
  251   --disable-8bit-keys     disable 8-bit keycode support
  252   --disable-color         disable ANSI-color support
  253   --disable-etiquette     disable printing of posting-etiquette
  254   --disable-break-long-lines
  255                           don't break long mime-encoded lines
  256   --disable-mime-strict-charset
  257                           force MM_CHARSET obeyance
  258   --with-mime-default-charset=CHARSET
  259                           fallback for $MM_CHARSET (default: US-ASCII)
  260   --with-iso-to-ascii     ISO -> ASCII conversion (default: -1)
  261   --disable-locale        disable locale support
  262   --disable-posting       disable posting
  263   --disable-shell-escape  disable shell escape
  264   --enable-fascist-newsadmin
  265                           have fascist newsadmin
  266 EOF
  267 cat <<\EOF
  268   --disable-inverse-video disable inverse video and highlighting
  269   --disable-piping        disable piping support
  270   --disable-printing      disable printer support
  271   --disable-append-pid    disable appending .pid to tmp-files
  272   --disable-xhdr-xref     disable XHDR XREF fallback
  273   --enable-broken-listgroup-fix
  274                           send extra GROUP command before LISTGROUP
  275   --enable-broken-system-fix
  276                           ignore system()s return value
  277   --with-defaults-dir=PATH
  278                           directory containing tin.defaults file
  279                           (default: /etc/tin)
  280   --disable-ipv6          disable IPv6 support (default: enabled)
  281   --enable-long-article-numbers
  282                           enable long article numbers (default: disabled)
  283   --with-coffee           coffee support
  284   --with-libiconv-prefix=DIR
  285                           search for libiconv in DIR/include and DIR/lib
  286 EOF
  287 cat <<\EOF
  288   --disable-nls           do not use Native Language Support
  289   --with-included-gettext use the GNU gettext library included here
  290   --with-textdomain=PKG   NLS text-domain (default is package name)
  291   --disable-included-msgs use included messages, for i18n support
  292   --with-Xaw3d            link with Xaw 3d library
  293   --with-Xaw3dxft         link with Xaw 3d xft library
  294   --with-neXtaw           link with neXT Athena library
  295   --with-XawPlus          link with Athena-Plus library
  296   --with-x                use the X Window System
  297 EOF
  298     exit 0 ;;
  299 
  300   -host | --host | --hos | --ho)
  301     ac_prev=host ;;
  302   -host=* | --host=* | --hos=* | --ho=*)
  303     host="$ac_optarg" ;;
  304 
  305   -includedir | --includedir | --includedi | --included | --include \
  306   | --includ | --inclu | --incl | --inc)
  307     ac_prev=includedir ;;
  308   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  309   | --includ=* | --inclu=* | --incl=* | --inc=*)
  310     includedir="$ac_optarg" ;;
  311 
  312   -infodir | --infodir | --infodi | --infod | --info | --inf)
  313     ac_prev=infodir ;;
  314   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  315     infodir="$ac_optarg" ;;
  316 
  317   -libdir | --libdir | --libdi | --libd)
  318     ac_prev=libdir ;;
  319   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  320     libdir="$ac_optarg" ;;
  321 
  322   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  323   | --libexe | --libex | --libe)
  324     ac_prev=libexecdir ;;
  325   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  326   | --libexe=* | --libex=* | --libe=*)
  327     libexecdir="$ac_optarg" ;;
  328 
  329   -localstatedir | --localstatedir | --localstatedi | --localstated \
  330   | --localstate | --localstat | --localsta | --localst \
  331   | --locals | --local | --loca | --loc | --lo)
  332     ac_prev=localstatedir ;;
  333   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  334   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  335   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  336     localstatedir="$ac_optarg" ;;
  337 
  338   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  339     ac_prev=mandir ;;
  340   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  341     mandir="$ac_optarg" ;;
  342 
  343   -nfp | --nfp | --nf)
  344     # Obsolete; use --without-fp.
  345     with_fp=no ;;
  346 
  347   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  348   | --no-cr | --no-c)
  349     no_create=yes ;;
  350 
  351   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  352   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  353     no_recursion=yes ;;
  354 
  355   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  356   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  357   | --oldin | --oldi | --old | --ol | --o)
  358     ac_prev=oldincludedir ;;
  359   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  360   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  361   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  362     oldincludedir="$ac_optarg" ;;
  363 
  364   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  365     ac_prev=prefix ;;
  366   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  367     prefix="$ac_optarg" ;;
  368 
  369   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  370   | --program-pre | --program-pr | --program-p)
  371     ac_prev=program_prefix ;;
  372   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  373   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  374     program_prefix="$ac_optarg" ;;
  375 
  376   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  377   | --program-suf | --program-su | --program-s)
  378     ac_prev=program_suffix ;;
  379   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  380   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  381     program_suffix="$ac_optarg" ;;
  382 
  383   -program-transform-name | --program-transform-name \
  384   | --program-transform-nam | --program-transform-na \
  385   | --program-transform-n | --program-transform- \
  386   | --program-transform | --program-transfor \
  387   | --program-transfo | --program-transf \
  388   | --program-trans | --program-tran \
  389   | --progr-tra | --program-tr | --program-t)
  390     ac_prev=program_transform_name ;;
  391   -program-transform-name=* | --program-transform-name=* \
  392   | --program-transform-nam=* | --program-transform-na=* \
  393   | --program-transform-n=* | --program-transform-=* \
  394   | --program-transform=* | --program-transfor=* \
  395   | --program-transfo=* | --program-transf=* \
  396   | --program-trans=* | --program-tran=* \
  397   | --progr-tra=* | --program-tr=* | --program-t=*)
  398     program_transform_name="$ac_optarg" ;;
  399 
  400   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  401   | -silent | --silent | --silen | --sile | --sil)
  402     silent=yes ;;
  403 
  404   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  405     ac_prev=sbindir ;;
  406   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  407   | --sbi=* | --sb=*)
  408     sbindir="$ac_optarg" ;;
  409 
  410   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  411   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  412   | --sharedst | --shareds | --shared | --share | --shar \
  413   | --sha | --sh)
  414     ac_prev=sharedstatedir ;;
  415   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  416   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  417   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  418   | --sha=* | --sh=*)
  419     sharedstatedir="$ac_optarg" ;;
  420 
  421   -site | --site | --sit)
  422     ac_prev=site ;;
  423   -site=* | --site=* | --sit=*)
  424     site="$ac_optarg" ;;
  425 
  426   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  427     ac_prev=srcdir ;;
  428   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  429     srcdir="$ac_optarg" ;;
  430 
  431   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  432   | --syscon | --sysco | --sysc | --sys | --sy)
  433     ac_prev=sysconfdir ;;
  434   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  435   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  436     sysconfdir="$ac_optarg" ;;
  437 
  438   -target | --target | --targe | --targ | --tar | --ta | --t)
  439     ac_prev=target ;;
  440   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  441     target="$ac_optarg" ;;
  442 
  443   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  444     verbose=yes ;;
  445 
  446   -version | --version | --versio | --versi | --vers)
  447     echo "configure generated by autoconf version 2.13.20110430"
  448     exit 0 ;;
  449 
  450   -with-* | --with-*)
  451     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  452     # Reject names that are not valid shell variable names.
  453     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  454       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  455     fi
  456     ac_package=`echo $ac_package| sed 's/-/_/g'`
  457     case "$ac_option" in
  458       *=*) ;;
  459       *) ac_optarg=yes ;;
  460     esac
  461     eval "with_${ac_package}='$ac_optarg'" ;;
  462 
  463   -without-* | --without-*)
  464     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  465     # Reject names that are not valid shell variable names.
  466     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  467       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  468     fi
  469     ac_package=`echo $ac_package| sed 's/-/_/g'`
  470     eval "with_${ac_package}=no" ;;
  471 
  472   --x)
  473     # Obsolete; use --with-x.
  474     with_x=yes ;;
  475 
  476   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  477   | --x-incl | --x-inc | --x-in | --x-i)
  478     ac_prev=x_includes ;;
  479   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  480   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  481     x_includes="$ac_optarg" ;;
  482 
  483   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  484   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  485     ac_prev=x_libraries ;;
  486   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  487   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  488     x_libraries="$ac_optarg" ;;
  489 
  490   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  491     ;;
  492 
  493   *)
  494     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  495       echo "configure: warning: $ac_option: invalid host type" 1>&2
  496     fi
  497     if test "x$nonopt" != xNONE; then
  498       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  499     fi
  500     nonopt="$ac_option"
  501     ;;
  502 
  503   esac
  504 done
  505 
  506 if test -n "$ac_prev"; then
  507   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  508 fi
  509 
  510 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  511 
  512 # File descriptor usage:
  513 # 0 standard input
  514 # 1 file creation
  515 # 2 errors and warnings
  516 # 3 some systems may open it to /dev/tty
  517 # 4 used on the Kubota Titan
  518 # 6 checking for... messages and results
  519 # 5 compiler messages saved in config.log
  520 if test "$silent" = yes; then
  521   exec 6>/dev/null
  522 else
  523   exec 6>&1
  524 fi
  525 exec 5>./config.log
  526 
  527 echo "\
  528 This file contains any messages produced by compilers while
  529 running configure, to aid debugging if configure makes a mistake.
  530 " 1>&5
  531 
  532 # Strip out --no-create and --no-recursion so they do not pile up.
  533 # Also quote any args containing shell metacharacters.
  534 ac_configure_args=
  535 for ac_arg
  536 do
  537   case "$ac_arg" in
  538   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  539   | --no-cr | --no-c) ;;
  540   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  541   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  542   *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  543   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  544   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  545   esac
  546 done
  547 
  548 # NLS nuisances.
  549 # Only set these to C if already set.  These must not be set unconditionally
  550 # because not all systems understand e.g. LANG=C (notably SCO).
  551 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  552 # Non-C LC_CTYPE values break the ctype check.
  553 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  554 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  555 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  556 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  557 
  558 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  559 rm -rf conftest* confdefs.h
  560 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  561 echo > confdefs.h
  562 
  563 # A filename unique to this package, relative to the directory that
  564 # configure is in, which we can look for to find out if srcdir is correct.
  565 ac_unique_file=include/tin.h
  566 
  567 # Find the source files, if location was not specified.
  568 if test -z "$srcdir"; then
  569   ac_srcdir_defaulted=yes
  570   # Try the directory containing this script, then its parent.
  571   ac_prog=$0
  572   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  573   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  574   srcdir=$ac_confdir
  575   if test ! -r $srcdir/$ac_unique_file; then
  576     srcdir=..
  577   fi
  578 else
  579   ac_srcdir_defaulted=no
  580 fi
  581 if test ! -r $srcdir/$ac_unique_file; then
  582   if test "$ac_srcdir_defaulted" = yes; then
  583     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  584   else
  585     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  586   fi
  587 fi
  588 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  589 
  590 # Prefer explicitly selected file to automatically selected ones.
  591 if test -z "$CONFIG_SITE"; then
  592   if test "x$prefix" != xNONE; then
  593     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  594   else
  595     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  596   fi
  597 fi
  598 for ac_site_file in $CONFIG_SITE; do
  599   if test -r "$ac_site_file"; then
  600     echo "loading site script $ac_site_file"
  601     . "$ac_site_file"
  602   fi
  603 done
  604 
  605 if test -r "$cache_file"; then
  606   echo "loading cache $cache_file"
  607   . $cache_file
  608 else
  609   echo "creating cache $cache_file"
  610   > $cache_file
  611 fi
  612 
  613 ac_ext=c
  614 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  615 ac_cpp='$CPP $CPPFLAGS'
  616 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  617 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  618 cross_compiling=$ac_cv_prog_cc_cross
  619 
  620 ac_exeext=
  621 ac_objext=o
  622 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  623   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  624   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  625     ac_n= ac_c='
  626 ' ac_t='    '
  627   else
  628     ac_n=-n ac_c= ac_t=
  629   fi
  630 else
  631   ac_n= ac_c='\c' ac_t=
  632 fi
  633 
  634 
  635 
  636 
  637 
  638 PACKAGE=tin
  639 VERSION=2.4.1
  640 cat >> confdefs.h <<EOF
  641 #define PACKAGE "$PACKAGE"
  642 EOF
  643 
  644 cat >> confdefs.h <<EOF
  645 #define VERSION "$VERSION"
  646 EOF
  647 
  648 
  649 
  650 
  651 EXTRAO_DEP='#'
  652 
  653 ac_aux_dir=
  654 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  655   if test -f $ac_dir/install-sh; then
  656     ac_aux_dir=$ac_dir
  657     ac_install_sh="$ac_aux_dir/install-sh -c"
  658     break
  659   elif test -f $ac_dir/install.sh; then
  660     ac_aux_dir=$ac_dir
  661     ac_install_sh="$ac_aux_dir/install.sh -c"
  662     break
  663   fi
  664 done
  665 if test -z "$ac_aux_dir"; then
  666   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  667 fi
  668 ac_config_guess=$ac_aux_dir/config.guess
  669 ac_config_sub=$ac_aux_dir/config.sub
  670 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  671 
  672 
  673 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
  674     
  675 # Make sure we can run config.sub.
  676 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  677 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  678 fi
  679 
  680 echo $ac_n "checking host system type""... $ac_c" 1>&6
  681 echo "configure:682: checking host system type" >&5
  682 
  683 host_alias=$host
  684 case "$host_alias" in
  685 NONE)
  686   case $nonopt in
  687   NONE)
  688     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  689     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  690     fi ;;
  691   *) host_alias=$nonopt ;;
  692   esac ;;
  693 esac
  694 
  695 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  696 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  697 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  698 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  699 echo "$ac_t""$host" 1>&6
  700 
  701     system_name="$host_os"
  702 else
  703     system_name="`(uname -s -r) 2>/dev/null`"
  704     if test -z "$system_name" ; then
  705         system_name="`(hostname) 2>/dev/null`"
  706     fi
  707 fi
  708 test -n "$system_name" && cat >> confdefs.h <<EOF
  709 #define SYSTEM_NAME "$system_name"
  710 EOF
  711 
  712 if eval "test \"`echo '$''{'cf_cv_system_name'+set}'`\" = set"; then
  713   echo $ac_n "(cached) $ac_c" 1>&6
  714 else
  715   cf_cv_system_name="$system_name"
  716 fi
  717 
  718 
  719 test -z "$system_name" && system_name="$cf_cv_system_name"
  720 test -n "$cf_cv_system_name" && echo "$ac_t""Configuring for $cf_cv_system_name" 1>&6
  721 
  722 if test ".$system_name" != ".$cf_cv_system_name" ; then
  723     echo "$ac_t""Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" 1>&6
  724     { echo "configure: error: "Please remove config.cache and try again."" 1>&2; exit 1; }
  725 fi
  726 
  727 
  728 
  729     echo $ac_n "checking for PATH separator""... $ac_c" 1>&6
  730 echo "configure:731: checking for PATH separator" >&5
  731     case $cf_cv_system_name in
  732     (os2*)  PATH_SEPARATOR=';'  ;;
  733     (*) ${PATH_SEPARATOR:=':'}  ;;
  734     esac
  735 
  736     
  737     echo "$ac_t""$PATH_SEPARATOR" 1>&6
  738 
  739 
  740 # Check whether --with-install-prefix or --without-install-prefix was given.
  741 if test "${with_install_prefix+set}" = set; then
  742   withval="$with_install_prefix"
  743   :
  744 else
  745   withval="${DESTDIR:-/}"
  746 fi
  747 if true ; then
  748 
  749 if test "x$prefix" != xNONE; then
  750     cf_path_syntax="$prefix"
  751 else
  752     cf_path_syntax="$ac_default_prefix"
  753 fi
  754 
  755 case ".$withval" in
  756 (.\$\(*\)*|.\'*\'*)
  757     ;;
  758 (..|./*|.\\*)
  759     ;;
  760 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
  761     ;;
  762 (.\${*prefix}*|.\${*dir}*)
  763     eval withval="$withval"
  764     case ".$withval" in
  765     (.NONE/*)
  766         withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
  767         ;;
  768     esac
  769     ;;
  770 (.no|.NONE/*)
  771     withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
  772     ;;
  773 (*)
  774     { echo "configure: error: expected a pathname, not \"$withval\"" 1>&2; exit 1; }
  775     ;;
  776 esac
  777 
  778 fi
  779 eval DESTDIR="$withval"
  780 
  781 case ".$DESTDIR" in # (vi
  782 ./) DESTDIR=
  783     ;; # (vi
  784 ./*/)   ;; # (vi
  785 ./*)    DESTDIR="$DESTDIR/"
  786     ;;
  787 esac
  788 
  789 if test "$program_transform_name" = s,x,x,; then
  790   program_transform_name=
  791 else
  792   # Double any \ or $.  echo might interpret backslashes.
  793   cat <<\EOF_SED > conftestsed
  794 s,\\,\\\\,g; s,\$,$$,g
  795 EOF_SED
  796   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  797   rm -f conftestsed
  798 fi
  799 test "$program_prefix" != NONE &&
  800   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  801 # Use a double $ so make ignores it.
  802 test "$program_suffix" != NONE &&
  803   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  804 
  805 # sed with no file args requires a program.
  806 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  807 
  808 
  809 ### Compiler/options that autoconf doesn't get right
  810 case "$host_os" in
  811     aix*)   #(vi
  812         if test "$CC" = ""; then
  813             # Extract the first word of "xlc", so it can be a program name with args.
  814 set dummy xlc; ac_word=$2
  815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  816 echo "configure:817: checking for $ac_word" >&5
  817 if eval "test \"`echo '$''{'ac_cv_path_XLC'+set}'`\" = set"; then
  818   echo $ac_n "(cached) $ac_c" 1>&6
  819 else
  820   case "$XLC" in
  821   /*)
  822   ac_cv_path_XLC="$XLC" # Let the user override the test with a path.
  823   ;;
  824   ?:/*)          
  825   ac_cv_path_XLC="$XLC" # Let the user override the test with a dos path.
  826   ;;
  827   *)
  828   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  829   ac_dummy="$PATH"
  830   for ac_dir in $ac_dummy; do 
  831     test -z "$ac_dir" && ac_dir=.
  832     if test -f $ac_dir/$ac_word; then
  833       ac_cv_path_XLC="$ac_dir/$ac_word"
  834       break
  835     fi
  836   done
  837   IFS="$ac_save_ifs"
  838   ;;
  839 esac
  840 fi
  841 XLC="$ac_cv_path_XLC"
  842 if test -n "$XLC"; then
  843   echo "$ac_t""$XLC" 1>&6
  844 else
  845   echo "$ac_t""no" 1>&6
  846 fi
  847 
  848             if test "$ac_cv_path_XLC" != ""; then
  849                 CC="$ac_cv_path_XLC"
  850             fi
  851         fi
  852         ;;
  853     hpux*)  #(vi
  854         test "$CC" != "cc" && test -z "$CFLAGS" && CFLAGS="-O"
  855         ;;
  856 esac
  857 
  858 ### Native Language Support
  859 ALL_LINGUAS="da de en_GB et fr ru sv tr zh_CN zh_TW"
  860 
  861 ### Checks for programs
  862 save_CFLAGS="$CFLAGS"
  863 
  864 
  865 # This should have been defined by AC_PROG_CC
  866 : ${CC:=cc}
  867 
  868 echo $ac_n "checking \$CC variable""... $ac_c" 1>&6
  869 echo "configure:870: checking \$CC variable" >&5
  870 case "$CC" in
  871 (*[\ \  ]-*)
  872     echo "$ac_t""broken" 1>&6
  873     echo "configure: warning: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" 1>&2
  874     # humor him...
  875     cf_flags=`echo "$CC" | sed -e 's/^[^    ]*[     ][  ]*//'`
  876     CC=`echo "$CC " | sed -e 's/[   ]-[IUD][^   ][^     ]*//g' -e 's/[  ]*$//'`
  877     
  878 cf_fix_cppflags=no
  879 cf_new_cflags=
  880 cf_new_cppflags=
  881 cf_new_extra_cppflags=
  882 
  883 for cf_add_cflags in $cf_flags
  884 do
  885 case $cf_fix_cppflags in
  886 (no)
  887     case $cf_add_cflags in
  888     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
  889         case $cf_add_cflags in
  890         (-D*)
  891             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
  892 
  893             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
  894                 && test -z "${cf_tst_cflags}" \
  895                 && cf_fix_cppflags=yes
  896 
  897             if test $cf_fix_cppflags = yes ; then
  898                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  899                 continue
  900             elif test "${cf_tst_cflags}" = "\"'" ; then
  901                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  902                 continue
  903             fi
  904             ;;
  905         esac
  906         case "$CPPFLAGS" in
  907         (*$cf_add_cflags)
  908             ;;
  909         (*)
  910             case $cf_add_cflags in
  911             (-D*)
  912                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
  913                 
  914 CPPFLAGS=`echo "$CPPFLAGS" | \
  915     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
  916         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
  917 
  918                 ;;
  919             esac
  920             cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
  921             ;;
  922         esac
  923         ;;
  924     (*)
  925         cf_new_cflags="$cf_new_cflags $cf_add_cflags"
  926         ;;
  927     esac
  928     ;;
  929 (yes)
  930     cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  931 
  932     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
  933 
  934     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
  935         && test -z "${cf_tst_cflags}" \
  936         && cf_fix_cppflags=no
  937     ;;
  938 esac
  939 done
  940 
  941 if test -n "$cf_new_cflags" ; then
  942     
  943     CFLAGS="$CFLAGS $cf_new_cflags"
  944 fi
  945 
  946 if test -n "$cf_new_cppflags" ; then
  947     
  948     CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
  949 fi
  950 
  951 if test -n "$cf_new_extra_cppflags" ; then
  952     
  953     EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
  954 fi
  955 
  956 
  957 
  958 
  959     test -n "$verbose" && echo "    resulting CC: '$CC'" 1>&6
  960 
  961 echo "${as_me:-configure}:962: testing resulting CC: '$CC' ..." 1>&5
  962 
  963 
  964     test -n "$verbose" && echo "    resulting CFLAGS: '$CFLAGS'" 1>&6
  965 
  966 echo "${as_me:-configure}:967: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
  967 
  968 
  969     test -n "$verbose" && echo "    resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
  970 
  971 echo "${as_me:-configure}:972: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
  972 
  973 
  974     ;;
  975 (*)
  976     echo "$ac_t""ok" 1>&6
  977     ;;
  978 esac
  979 
  980 
  981 echo $ac_n "checking for ${CC:-cc} option to accept ANSI C""... $ac_c" 1>&6
  982 echo "configure:983: checking for ${CC:-cc} option to accept ANSI C" >&5
  983 if eval "test \"`echo '$''{'cf_cv_ansi_cc'+set}'`\" = set"; then
  984   echo $ac_n "(cached) $ac_c" 1>&6
  985 else
  986   
  987 cf_cv_ansi_cc=no
  988 cf_save_CFLAGS="$CFLAGS"
  989 cf_save_CPPFLAGS="$CPPFLAGS"
  990 # Don't try gcc -ansi; that turns off useful extensions and
  991 # breaks some systems' header files.
  992 # AIX           -qlanglvl=ansi
  993 # Ultrix and OSF/1  -std1
  994 # HP-UX         -Aa -D_HPUX_SOURCE
  995 # SVR4          -Xc
  996 # UnixWare 1.2      (cannot use -Xc, since ANSI/POSIX clashes)
  997 for cf_arg in "-DCC_HAS_PROTOS" \
  998     "" \
  999     -qlanglvl=ansi \
 1000     -std1 \
 1001     -Ae \
 1002     "-Aa -D_HPUX_SOURCE" \
 1003     -Xc
 1004 do
 1005     
 1006 cf_fix_cppflags=no
 1007 cf_new_cflags=
 1008 cf_new_cppflags=
 1009 cf_new_extra_cppflags=
 1010 
 1011 for cf_add_cflags in $cf_arg
 1012 do
 1013 case $cf_fix_cppflags in
 1014 (no)
 1015     case $cf_add_cflags in
 1016     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 1017         case $cf_add_cflags in
 1018         (-D*)
 1019             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 1020 
 1021             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 1022                 && test -z "${cf_tst_cflags}" \
 1023                 && cf_fix_cppflags=yes
 1024 
 1025             if test $cf_fix_cppflags = yes ; then
 1026                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 1027                 continue
 1028             elif test "${cf_tst_cflags}" = "\"'" ; then
 1029                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 1030                 continue
 1031             fi
 1032             ;;
 1033         esac
 1034         case "$CPPFLAGS" in
 1035         (*$cf_add_cflags)
 1036             ;;
 1037         (*)
 1038             case $cf_add_cflags in
 1039             (-D*)
 1040                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 1041                 
 1042 CPPFLAGS=`echo "$CPPFLAGS" | \
 1043     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 1044         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 1045 
 1046                 ;;
 1047             esac
 1048             cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
 1049             ;;
 1050         esac
 1051         ;;
 1052     (*)
 1053         cf_new_cflags="$cf_new_cflags $cf_add_cflags"
 1054         ;;
 1055     esac
 1056     ;;
 1057 (yes)
 1058     cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 1059 
 1060     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 1061 
 1062     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 1063         && test -z "${cf_tst_cflags}" \
 1064         && cf_fix_cppflags=no
 1065     ;;
 1066 esac
 1067 done
 1068 
 1069 if test -n "$cf_new_cflags" ; then
 1070     
 1071     CFLAGS="$CFLAGS $cf_new_cflags"
 1072 fi
 1073 
 1074 if test -n "$cf_new_cppflags" ; then
 1075     
 1076     CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
 1077 fi
 1078 
 1079 if test -n "$cf_new_extra_cppflags" ; then
 1080     
 1081     EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
 1082 fi
 1083 
 1084 
 1085 
 1086 
 1087     cat > conftest.$ac_ext <<EOF
 1088 #line 1089 "configure"
 1089 #include "confdefs.h"
 1090 
 1091 #ifndef CC_HAS_PROTOS
 1092 #if !defined(__STDC__) || (__STDC__ != 1)
 1093 choke me
 1094 #endif
 1095 #endif
 1096 
 1097 int main() {
 1098 
 1099     int test (int i, double x);
 1100     struct s1 {int (*f) (int a);};
 1101     struct s2 {int (*f) (double a);};
 1102 ; return 0; }
 1103 EOF
 1104 if { (eval echo configure:1105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 1105   rm -rf conftest*
 1106   cf_cv_ansi_cc="$cf_arg"; break
 1107 else
 1108   echo "configure: failed program was:" >&5
 1109   cat conftest.$ac_ext >&5
 1110 fi
 1111 rm -f conftest*
 1112 done
 1113 CFLAGS="$cf_save_CFLAGS"
 1114 CPPFLAGS="$cf_save_CPPFLAGS"
 1115 
 1116 fi
 1117 
 1118 echo "$ac_t""$cf_cv_ansi_cc" 1>&6
 1119 
 1120 if test "$cf_cv_ansi_cc" != "no"; then
 1121 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
 1122     
 1123 cf_fix_cppflags=no
 1124 cf_new_cflags=
 1125 cf_new_cppflags=
 1126 cf_new_extra_cppflags=
 1127 
 1128 for cf_add_cflags in $cf_cv_ansi_cc
 1129 do
 1130 case $cf_fix_cppflags in
 1131 (no)
 1132     case $cf_add_cflags in
 1133     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 1134         case $cf_add_cflags in
 1135         (-D*)
 1136             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 1137 
 1138             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 1139                 && test -z "${cf_tst_cflags}" \
 1140                 && cf_fix_cppflags=yes
 1141 
 1142             if test $cf_fix_cppflags = yes ; then
 1143                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 1144                 continue
 1145             elif test "${cf_tst_cflags}" = "\"'" ; then
 1146                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 1147                 continue
 1148             fi
 1149             ;;
 1150         esac
 1151         case "$CPPFLAGS" in
 1152         (*$cf_add_cflags)
 1153             ;;
 1154         (*)
 1155             case $cf_add_cflags in
 1156             (-D*)
 1157                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 1158                 
 1159 CPPFLAGS=`echo "$CPPFLAGS" | \
 1160     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 1161         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 1162 
 1163                 ;;
 1164             esac
 1165             cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
 1166             ;;
 1167         esac
 1168         ;;
 1169     (*)
 1170         cf_new_cflags="$cf_new_cflags $cf_add_cflags"
 1171         ;;
 1172     esac
 1173     ;;
 1174 (yes)
 1175     cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 1176 
 1177     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 1178 
 1179     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 1180         && test -z "${cf_tst_cflags}" \
 1181         && cf_fix_cppflags=no
 1182     ;;
 1183 esac
 1184 done
 1185 
 1186 if test -n "$cf_new_cflags" ; then
 1187     
 1188     CFLAGS="$CFLAGS $cf_new_cflags"
 1189 fi
 1190 
 1191 if test -n "$cf_new_cppflags" ; then
 1192     
 1193     CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
 1194 fi
 1195 
 1196 if test -n "$cf_new_extra_cppflags" ; then
 1197     
 1198     EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
 1199 fi
 1200 
 1201 
 1202 
 1203 
 1204 else
 1205     cat >> confdefs.h <<\EOF
 1206 #define CC_HAS_PROTOS 1
 1207 EOF
 1208 
 1209 fi
 1210 fi
 1211 
 1212 
 1213 # Extract the first word of "gcc", so it can be a program name with args.
 1214 set dummy gcc; ac_word=$2
 1215 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 1216 echo "configure:1217: checking for $ac_word" >&5
 1217 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 1218   echo $ac_n "(cached) $ac_c" 1>&6
 1219 else
 1220   if test -n "$CC"; then
 1221   ac_cv_prog_CC="$CC" # Let the user override the test.
 1222 else
 1223   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 1224   ac_dummy="$PATH"
 1225   for ac_dir in $ac_dummy; do
 1226     test -z "$ac_dir" && ac_dir=.
 1227     if test -f $ac_dir/$ac_word; then
 1228       ac_cv_prog_CC="gcc"
 1229       break
 1230     fi
 1231   done
 1232   IFS="$ac_save_ifs"
 1233 fi
 1234 fi
 1235 CC="$ac_cv_prog_CC"
 1236 if test -n "$CC"; then
 1237   echo "$ac_t""$CC" 1>&6
 1238 else
 1239   echo "$ac_t""no" 1>&6
 1240 fi
 1241 
 1242 if test -z "$CC"; then
 1243   # Extract the first word of "cc", so it can be a program name with args.
 1244 set dummy cc; ac_word=$2
 1245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 1246 echo "configure:1247: checking for $ac_word" >&5
 1247 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 1248   echo $ac_n "(cached) $ac_c" 1>&6
 1249 else
 1250   if test -n "$CC"; then
 1251   ac_cv_prog_CC="$CC" # Let the user override the test.
 1252 else
 1253   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 1254   ac_prog_rejected=no
 1255   ac_dummy="$PATH"
 1256   for ac_dir in $ac_dummy; do
 1257     test -z "$ac_dir" && ac_dir=.
 1258     if test -f $ac_dir/$ac_word; then
 1259       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 1260         ac_prog_rejected=yes
 1261     continue
 1262       fi
 1263       ac_cv_prog_CC="cc"
 1264       break
 1265     fi
 1266   done
 1267   IFS="$ac_save_ifs"
 1268 if test $ac_prog_rejected = yes; then
 1269   # We found a bogon in the path, so make sure we never use it.
 1270   set dummy $ac_cv_prog_CC
 1271   shift
 1272   if test $# -gt 0; then
 1273     # We chose a different compiler from the bogus one.
 1274     # However, it has the same basename, so the bogon will be chosen
 1275     # first if we set CC to just the basename; use the full file name.
 1276     shift
 1277     set dummy "$ac_dir/$ac_word" "$@"
 1278     shift
 1279     ac_cv_prog_CC="$@"
 1280   fi
 1281 fi
 1282 fi
 1283 fi
 1284 CC="$ac_cv_prog_CC"
 1285 if test -n "$CC"; then
 1286   echo "$ac_t""$CC" 1>&6
 1287 else
 1288   echo "$ac_t""no" 1>&6
 1289 fi
 1290 
 1291   if test -z "$CC"; then
 1292     case "`uname -s`" in
 1293     *win32* | *WIN32*)
 1294       # Extract the first word of "cl", so it can be a program name with args.
 1295 set dummy cl; ac_word=$2
 1296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 1297 echo "configure:1298: checking for $ac_word" >&5
 1298 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 1299   echo $ac_n "(cached) $ac_c" 1>&6
 1300 else
 1301   if test -n "$CC"; then
 1302   ac_cv_prog_CC="$CC" # Let the user override the test.
 1303 else
 1304   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 1305   ac_dummy="$PATH"
 1306   for ac_dir in $ac_dummy; do
 1307     test -z "$ac_dir" && ac_dir=.
 1308     if test -f $ac_dir/$ac_word; then
 1309       ac_cv_prog_CC="cl"
 1310       break
 1311     fi
 1312   done
 1313   IFS="$ac_save_ifs"
 1314 fi
 1315 fi
 1316 CC="$ac_cv_prog_CC"
 1317 if test -n "$CC"; then
 1318   echo "$ac_t""$CC" 1>&6
 1319 else
 1320   echo "$ac_t""no" 1>&6
 1321 fi
 1322  ;;
 1323     esac
 1324   fi
 1325   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 1326 fi
 1327 
 1328 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 1329 echo "configure:1330: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 1330 
 1331 ac_ext=c
 1332 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 1333 ac_cpp='$CPP $CPPFLAGS'
 1334 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 1335 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 1336 cross_compiling=$ac_cv_prog_cc_cross
 1337 
 1338 cat > conftest.$ac_ext << EOF
 1339 
 1340 #line 1341 "configure"
 1341 #include "confdefs.h"
 1342 
 1343 main(){return(0);}
 1344 EOF
 1345 if { (eval echo configure:1346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 1346   ac_cv_prog_cc_works=yes
 1347   # If we can't run a trivial program, we are probably using a cross compiler.
 1348   if (./conftest; exit) 2>/dev/null; then
 1349     ac_cv_prog_cc_cross=no
 1350   else
 1351     ac_cv_prog_cc_cross=yes
 1352   fi
 1353 else
 1354   echo "configure: failed program was:" >&5
 1355   cat conftest.$ac_ext >&5
 1356   ac_cv_prog_cc_works=no
 1357 fi
 1358 rm -fr conftest*
 1359 ac_ext=c
 1360 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 1361 ac_cpp='$CPP $CPPFLAGS'
 1362 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 1363 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 1364 cross_compiling=$ac_cv_prog_cc_cross
 1365 
 1366 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 1367 if test $ac_cv_prog_cc_works = no; then
 1368   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 1369 fi
 1370 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 1371 echo "configure:1372: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 1372 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 1373 cross_compiling=$ac_cv_prog_cc_cross
 1374 
 1375 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 1376 echo "configure:1377: checking whether we are using GNU C" >&5
 1377 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 1378   echo $ac_n "(cached) $ac_c" 1>&6
 1379 else
 1380   cat > conftest.c <<EOF
 1381 #ifdef __GNUC__
 1382   yes;
 1383 #endif
 1384 EOF
 1385 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 1386   ac_cv_prog_gcc=yes
 1387 else
 1388   ac_cv_prog_gcc=no
 1389 fi
 1390 fi
 1391 
 1392 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 1393 
 1394 if test $ac_cv_prog_gcc = yes; then
 1395   GCC=yes
 1396 else
 1397   GCC=
 1398 fi
 1399 
 1400 ac_test_CFLAGS="${CFLAGS+set}"
 1401 ac_save_CFLAGS="$CFLAGS"
 1402 CFLAGS=
 1403 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 1404 echo "configure:1405: checking whether ${CC-cc} accepts -g" >&5
 1405 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 1406   echo $ac_n "(cached) $ac_c" 1>&6
 1407 else
 1408   echo 'void f(){}' > conftest.c
 1409 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 1410   ac_cv_prog_cc_g=yes
 1411 else
 1412   ac_cv_prog_cc_g=no
 1413 fi
 1414 rm -f conftest*
 1415 
 1416 fi
 1417 
 1418 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 1419 if test "$ac_test_CFLAGS" = set; then
 1420   CFLAGS="$ac_save_CFLAGS"
 1421 elif test $ac_cv_prog_cc_g = yes; then
 1422   if test "$GCC" = yes; then
 1423     CFLAGS="-g -O2"
 1424   else
 1425     CFLAGS="-g"
 1426   fi
 1427 else
 1428   if test "$GCC" = yes; then
 1429     CFLAGS="-O2"
 1430   else
 1431     CFLAGS=
 1432   fi
 1433 fi
 1434 
 1435 
 1436 
 1437 GCC_VERSION=none
 1438 if test "$GCC" = yes ; then
 1439     echo $ac_n "checking version of $CC""... $ac_c" 1>&6
 1440 echo "configure:1441: checking version of $CC" >&5
 1441     GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
 1442     test -z "$GCC_VERSION" && GCC_VERSION=unknown
 1443     echo "$ac_t""$GCC_VERSION" 1>&6
 1444 fi
 1445 
 1446 
 1447 
 1448 if test "$cf_cv_ansi_cc" = "no"; then
 1449     { echo "configure: error: Your compiler does not appear to recognize prototypes.
 1450 You have the following choices:
 1451     a. adjust your compiler options
 1452     b. get an up-to-date compiler
 1453     c. use a wrapper such as unproto" 1>&2; exit 1; }
 1454 fi
 1455 
 1456 
 1457 # This should have been defined by AC_PROG_CC
 1458 : ${CC:=cc}
 1459 
 1460 echo $ac_n "checking \$CC variable""... $ac_c" 1>&6
 1461 echo "configure:1462: checking \$CC variable" >&5
 1462 case "$CC" in
 1463 (*[\ \  ]-*)
 1464     echo "$ac_t""broken" 1>&6
 1465     echo "configure: warning: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" 1>&2
 1466     # humor him...
 1467     cf_flags=`echo "$CC" | sed -e 's/^[^    ]*[     ][  ]*//'`
 1468     CC=`echo "$CC " | sed -e 's/[   ]-[IUD][^   ][^     ]*//g' -e 's/[  ]*$//'`
 1469     
 1470 cf_fix_cppflags=no
 1471 cf_new_cflags=
 1472 cf_new_cppflags=
 1473 cf_new_extra_cppflags=
 1474 
 1475 for cf_add_cflags in $cf_flags
 1476 do
 1477 case $cf_fix_cppflags in
 1478 (no)
 1479     case $cf_add_cflags in
 1480     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 1481         case $cf_add_cflags in
 1482         (-D*)
 1483             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 1484 
 1485             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 1486                 && test -z "${cf_tst_cflags}" \
 1487                 && cf_fix_cppflags=yes
 1488 
 1489             if test $cf_fix_cppflags = yes ; then
 1490                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 1491                 continue
 1492             elif test "${cf_tst_cflags}" = "\"'" ; then
 1493                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 1494                 continue
 1495             fi
 1496             ;;
 1497         esac
 1498         case "$CPPFLAGS" in
 1499         (*$cf_add_cflags)
 1500             ;;
 1501         (*)
 1502             case $cf_add_cflags in
 1503             (-D*)
 1504                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 1505                 
 1506 CPPFLAGS=`echo "$CPPFLAGS" | \
 1507     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 1508         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 1509 
 1510                 ;;
 1511             esac
 1512             cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
 1513             ;;
 1514         esac
 1515         ;;
 1516     (*)
 1517         cf_new_cflags="$cf_new_cflags $cf_add_cflags"
 1518         ;;
 1519     esac
 1520     ;;
 1521 (yes)
 1522     cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 1523 
 1524     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 1525 
 1526     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 1527         && test -z "${cf_tst_cflags}" \
 1528         && cf_fix_cppflags=no
 1529     ;;
 1530 esac
 1531 done
 1532 
 1533 if test -n "$cf_new_cflags" ; then
 1534     
 1535     CFLAGS="$CFLAGS $cf_new_cflags"
 1536 fi
 1537 
 1538 if test -n "$cf_new_cppflags" ; then
 1539     
 1540     CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
 1541 fi
 1542 
 1543 if test -n "$cf_new_extra_cppflags" ; then
 1544     
 1545     EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
 1546 fi
 1547 
 1548 
 1549 
 1550 
 1551     test -n "$verbose" && echo "    resulting CC: '$CC'" 1>&6
 1552 
 1553 echo "${as_me:-configure}:1554: testing resulting CC: '$CC' ..." 1>&5
 1554 
 1555 
 1556     test -n "$verbose" && echo "    resulting CFLAGS: '$CFLAGS'" 1>&6
 1557 
 1558 echo "${as_me:-configure}:1559: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
 1559 
 1560 
 1561     test -n "$verbose" && echo "    resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
 1562 
 1563 echo "${as_me:-configure}:1564: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
 1564 
 1565 
 1566     ;;
 1567 (*)
 1568     echo "$ac_t""ok" 1>&6
 1569     ;;
 1570 esac
 1571 
 1572 
 1573 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 1574 echo "configure:1575: checking how to run the C preprocessor" >&5
 1575 # On Suns, sometimes $CPP names a directory.
 1576 if test -n "$CPP" && test -d "$CPP"; then
 1577   CPP=
 1578 fi
 1579 if test -z "$CPP"; then
 1580 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
 1581   echo $ac_n "(cached) $ac_c" 1>&6
 1582 else
 1583     # This must be in double quotes, not single quotes, because CPP may get
 1584   # substituted into the Makefile and "${CC-cc}" will confuse make.
 1585   CPP="${CC-cc} -E"
 1586   # On the NeXT, cc -E runs the code through the compiler's parser,
 1587   # not just through cpp.
 1588   cat > conftest.$ac_ext <<EOF
 1589 #line 1590 "configure"
 1590 #include "confdefs.h"
 1591 #include <assert.h>
 1592 Syntax Error
 1593 EOF
 1594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 1595 { (eval echo configure:1596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 1596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 1597 if test -z "$ac_err"; then
 1598   :
 1599 else
 1600   echo "$ac_err" >&5
 1601   echo "configure: failed program was:" >&5
 1602   cat conftest.$ac_ext >&5
 1603   rm -rf conftest*
 1604   CPP="${CC-cc} -E -traditional-cpp"
 1605   cat > conftest.$ac_ext <<EOF
 1606 #line 1607 "configure"
 1607 #include "confdefs.h"
 1608 #include <assert.h>
 1609 Syntax Error
 1610 EOF
 1611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 1612 { (eval echo configure:1613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 1613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 1614 if test -z "$ac_err"; then
 1615   :
 1616 else
 1617   echo "$ac_err" >&5
 1618   echo "configure: failed program was:" >&5
 1619   cat conftest.$ac_ext >&5
 1620   rm -rf conftest*
 1621   CPP="${CC-cc} -nologo -E"
 1622   cat > conftest.$ac_ext <<EOF
 1623 #line 1624 "configure"
 1624 #include "confdefs.h"
 1625 #include <assert.h>
 1626 Syntax Error
 1627 EOF
 1628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 1629 { (eval echo configure:1630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 1630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 1631 if test -z "$ac_err"; then
 1632   :
 1633 else
 1634   echo "$ac_err" >&5
 1635   echo "configure: failed program was:" >&5
 1636   cat conftest.$ac_ext >&5
 1637   rm -rf conftest*
 1638   CPP=/lib/cpp
 1639 fi
 1640 rm -f conftest*
 1641 fi
 1642 rm -f conftest*
 1643 fi
 1644 rm -f conftest*
 1645   ac_cv_prog_CPP="$CPP"
 1646 fi
 1647   CPP="$ac_cv_prog_CPP"
 1648 else
 1649   ac_cv_prog_CPP="$CPP"
 1650 fi
 1651 echo "$ac_t""$CPP" 1>&6
 1652 
 1653 if test $ac_cv_prog_gcc = yes; then
 1654     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
 1655 echo "configure:1656: checking whether ${CC-cc} needs -traditional" >&5
 1656 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
 1657   echo $ac_n "(cached) $ac_c" 1>&6
 1658 else
 1659     ac_pattern="Autoconf.*'x'"
 1660   cat > conftest.$ac_ext <<EOF
 1661 #line 1662 "configure"
 1662 #include "confdefs.h"
 1663 #include <sgtty.h>
 1664 Autoconf TIOCGETP
 1665 EOF
 1666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 1667   egrep "$ac_pattern" >/dev/null 2>&1; then
 1668   rm -rf conftest*
 1669   ac_cv_prog_gcc_traditional=yes
 1670 else
 1671   rm -rf conftest*
 1672   ac_cv_prog_gcc_traditional=no
 1673 fi
 1674 rm -f conftest*
 1675 
 1676 
 1677   if test $ac_cv_prog_gcc_traditional = no; then
 1678     cat > conftest.$ac_ext <<EOF
 1679 #line 1680 "configure"
 1680 #include "confdefs.h"
 1681 #include <termio.h>
 1682 Autoconf TCGETA
 1683 EOF
 1684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 1685   egrep "$ac_pattern" >/dev/null 2>&1; then
 1686   rm -rf conftest*
 1687   ac_cv_prog_gcc_traditional=yes
 1688 fi
 1689 rm -f conftest*
 1690 
 1691   fi
 1692 fi
 1693 
 1694 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
 1695   if test $ac_cv_prog_gcc_traditional = yes; then
 1696     CC="$CC -traditional"
 1697   fi
 1698 fi
 1699 
 1700 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
 1701 echo "configure:1702: checking whether ${MAKE-make} sets \${MAKE}" >&5
 1702 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
 1703 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
 1704   echo $ac_n "(cached) $ac_c" 1>&6
 1705 else
 1706   cat > conftestmake <<\EOF
 1707 all:
 1708     @echo 'ac_maketemp="${MAKE}"'
 1709 EOF
 1710 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 1711 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
 1712 if test -n "$ac_maketemp"; then
 1713   eval ac_cv_prog_make_${ac_make}_set=yes
 1714 else
 1715   eval ac_cv_prog_make_${ac_make}_set=no
 1716 fi
 1717 rm -f conftestmake
 1718 fi
 1719 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 1720   echo "$ac_t""yes" 1>&6
 1721   SET_MAKE=
 1722 else
 1723   echo "$ac_t""no" 1>&6
 1724   SET_MAKE="MAKE=${MAKE-make}"
 1725 fi
 1726 
 1727 # Find a good install program.  We prefer a C program (faster),
 1728 # so one script is as good as another.  But avoid the broken or
 1729 # incompatible versions:
 1730 # SysV /etc/install, /usr/sbin/install
 1731 # SunOS /usr/etc/install
 1732 # IRIX /sbin/install
 1733 # AIX /bin/install
 1734 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 1735 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
 1736 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 1737 # ./install, which can be erroneously created by make from ./install.sh.
 1738 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
 1739 echo "configure:1740: checking for a BSD compatible install" >&5
 1740 if test -z "$INSTALL"; then
 1741 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
 1742   echo $ac_n "(cached) $ac_c" 1>&6
 1743 else
 1744     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
 1745   for ac_dir in $PATH; do
 1746     # Account for people who put trailing slashes in PATH elements.
 1747     case "$ac_dir/" in
 1748     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
 1749     *)
 1750       # OSF1 and SCO ODT 3.0 have their own names for install.
 1751       # Don't use installbsd from OSF since it installs stuff as root
 1752       # by default.
 1753       for ac_prog in ginstall scoinst install; do
 1754         if test -f $ac_dir/$ac_prog; then
 1755       if test $ac_prog = install &&
 1756             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 1757         # AIX install.  It has an incompatible calling convention.
 1758         :
 1759       else
 1760         ac_cv_path_install="$ac_dir/$ac_prog -c"
 1761         break 2
 1762       fi
 1763     fi
 1764       done
 1765       ;;
 1766     esac
 1767   done
 1768   IFS="$ac_save_IFS"
 1769 
 1770 fi
 1771   if test "${ac_cv_path_install+set}" = set; then
 1772     INSTALL="$ac_cv_path_install"
 1773   else
 1774     # As a last resort, use the slow shell script.  We don't cache a
 1775     # path for INSTALL within a source directory, because that will
 1776     # break other packages using the cache if that directory is
 1777     # removed, or if the path is relative.
 1778     INSTALL="$ac_install_sh"
 1779   fi
 1780 fi
 1781 echo "$ac_t""$INSTALL" 1>&6
 1782 
 1783 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 1784 # It thinks the first close brace ends the variable substitution.
 1785 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 1786 
 1787 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 1788 
 1789 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 1790 
 1791 
 1792 
 1793 if eval "test \"`echo '$''{'cf_cv_prog_YACC'+set}'`\" = set"; then
 1794   echo $ac_n "(cached) $ac_c" 1>&6
 1795 else
 1796   
 1797 if test -n "$YACC" ; then
 1798   cf_cv_prog_YACC="$YACC" # Let the user override the test.
 1799 else
 1800 cat >conftest.y <<EOF
 1801 %{
 1802 void yyerror(s) char *s; { }
 1803 %}
 1804 %token  NUMBER
 1805 %%
 1806 time    : NUMBER ':' NUMBER
 1807     ;
 1808 %%
 1809 int yylex() { return NUMBER; }
 1810 int main() { return yyparse(); }
 1811 EOF
 1812   for cf_prog in 'bison -y' byacc yacc
 1813   do
 1814     rm -f y.tab.ch
 1815     echo $ac_n "checking for $cf_prog""... $ac_c" 1>&6
 1816 echo "configure:1817: checking for $cf_prog" >&5
 1817     cf_command="$cf_prog conftest.y"
 1818     cf_result=no
 1819     if { (eval echo configure:1820: \"$cf_command\") 1>&5; (eval $cf_command) 2>&5; } && test -s y.tab.c ; then
 1820       mv y.tab.c conftest.c
 1821       rm -f y.tab.h
 1822       if test "$cf_prog" = 'bison -y' ; then
 1823         if { (eval echo configure:1824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest ; then
 1824           cf_result=yes
 1825         fi
 1826       else
 1827         cf_result=yes
 1828       fi
 1829     fi
 1830     echo "$ac_t""$cf_result" 1>&6
 1831     if test $cf_result = yes ; then
 1832       cf_cv_prog_YACC="$cf_prog"
 1833       break
 1834     fi
 1835   done
 1836 fi
 1837 
 1838 fi
 1839 
 1840 YACC="$cf_cv_prog_YACC"
 1841 
 1842 for ac_prog in lint alint lclint tdlint splint
 1843 do
 1844 # Extract the first word of "$ac_prog", so it can be a program name with args.
 1845 set dummy $ac_prog; ac_word=$2
 1846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 1847 echo "configure:1848: checking for $ac_word" >&5
 1848 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
 1849   echo $ac_n "(cached) $ac_c" 1>&6
 1850 else
 1851   if test -n "$LINT"; then
 1852   ac_cv_prog_LINT="$LINT" # Let the user override the test.
 1853 else
 1854   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 1855   ac_dummy="$PATH"
 1856   for ac_dir in $ac_dummy; do
 1857     test -z "$ac_dir" && ac_dir=.
 1858     if test -f $ac_dir/$ac_word; then
 1859       ac_cv_prog_LINT="$ac_prog"
 1860       break
 1861     fi
 1862   done
 1863   IFS="$ac_save_ifs"
 1864 fi
 1865 fi
 1866 LINT="$ac_cv_prog_LINT"
 1867 if test -n "$LINT"; then
 1868   echo "$ac_t""$LINT" 1>&6
 1869 else
 1870   echo "$ac_t""no" 1>&6
 1871 fi
 1872 
 1873 test -n "$LINT" && break
 1874 done
 1875 test -n "$LINT" || LINT=":"
 1876 
 1877 
 1878 
 1879 
 1880 cf_XOPEN_SOURCE=500
 1881 cf_POSIX_C_SOURCE=199506L
 1882 cf_xopen_source=
 1883 
 1884 case $host_os in
 1885 (aix[4-7]*)
 1886     cf_xopen_source="-D_ALL_SOURCE"
 1887     ;;
 1888 (msys)
 1889     cf_XOPEN_SOURCE=600
 1890     ;;
 1891 (darwin[0-8].*)
 1892     cf_xopen_source="-D_APPLE_C_SOURCE"
 1893     ;;
 1894 (darwin*)
 1895     cf_xopen_source="-D_DARWIN_C_SOURCE"
 1896     cf_XOPEN_SOURCE=
 1897     ;;
 1898 (freebsd*|dragonfly*)
 1899     # 5.x headers associate
 1900     #   _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
 1901     #   _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
 1902     cf_POSIX_C_SOURCE=200112L
 1903     cf_XOPEN_SOURCE=600
 1904     cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
 1905     ;;
 1906 (hpux11*)
 1907     cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
 1908     ;;
 1909 (hpux*)
 1910     cf_xopen_source="-D_HPUX_SOURCE"
 1911     ;;
 1912 (irix[56].*)
 1913     cf_xopen_source="-D_SGI_SOURCE"
 1914     cf_XOPEN_SOURCE=
 1915     ;;
 1916 (linux*|gnu*|mint*|k*bsd*-gnu|cygwin)
 1917     
 1918 echo $ac_n "checking if we must define _GNU_SOURCE""... $ac_c" 1>&6
 1919 echo "configure:1920: checking if we must define _GNU_SOURCE" >&5
 1920 if eval "test \"`echo '$''{'cf_cv_gnu_source'+set}'`\" = set"; then
 1921   echo $ac_n "(cached) $ac_c" 1>&6
 1922 else
 1923   
 1924 cat > conftest.$ac_ext <<EOF
 1925 #line 1926 "configure"
 1926 #include "confdefs.h"
 1927 #include <sys/types.h>
 1928 int main() {
 1929 
 1930 #ifndef _XOPEN_SOURCE
 1931 make an error
 1932 #endif
 1933 ; return 0; }
 1934 EOF
 1935 if { (eval echo configure:1936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 1936   rm -rf conftest*
 1937   cf_cv_gnu_source=no
 1938 else
 1939   echo "configure: failed program was:" >&5
 1940   cat conftest.$ac_ext >&5
 1941   rm -rf conftest*
 1942   cf_save="$CPPFLAGS"
 1943      CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
 1944      cat > conftest.$ac_ext <<EOF
 1945 #line 1946 "configure"
 1946 #include "confdefs.h"
 1947 #include <sys/types.h>
 1948 int main() {
 1949 
 1950 #ifdef _XOPEN_SOURCE
 1951 make an error
 1952 #endif
 1953 ; return 0; }
 1954 EOF
 1955 if { (eval echo configure:1956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 1956   rm -rf conftest*
 1957   cf_cv_gnu_source=no
 1958 else
 1959   echo "configure: failed program was:" >&5
 1960   cat conftest.$ac_ext >&5
 1961   rm -rf conftest*
 1962   cf_cv_gnu_source=yes
 1963 fi
 1964 rm -f conftest*
 1965     CPPFLAGS="$cf_save"
 1966     
 1967 fi
 1968 rm -f conftest*
 1969 
 1970 fi
 1971 
 1972 echo "$ac_t""$cf_cv_gnu_source" 1>&6
 1973 
 1974 if test "$cf_cv_gnu_source" = yes
 1975 then
 1976 echo $ac_n "checking if we should also define _DEFAULT_SOURCE""... $ac_c" 1>&6
 1977 echo "configure:1978: checking if we should also define _DEFAULT_SOURCE" >&5
 1978 if eval "test \"`echo '$''{'cf_cv_default_source'+set}'`\" = set"; then
 1979   echo $ac_n "(cached) $ac_c" 1>&6
 1980 else
 1981   
 1982 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
 1983     cat > conftest.$ac_ext <<EOF
 1984 #line 1985 "configure"
 1985 #include "confdefs.h"
 1986 #include <sys/types.h>
 1987 int main() {
 1988 
 1989 #ifdef _DEFAULT_SOURCE
 1990 make an error
 1991 #endif
 1992 ; return 0; }
 1993 EOF
 1994 if { (eval echo configure:1995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 1995   rm -rf conftest*
 1996   cf_cv_default_source=no
 1997 else
 1998   echo "configure: failed program was:" >&5
 1999   cat conftest.$ac_ext >&5
 2000   rm -rf conftest*
 2001   cf_cv_default_source=yes
 2002 fi
 2003 rm -f conftest*
 2004     
 2005 fi
 2006 
 2007 echo "$ac_t""$cf_cv_default_source" 1>&6
 2008 test "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE"
 2009 fi
 2010 
 2011     ;;
 2012 (minix*)
 2013     cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
 2014     ;;
 2015 (mirbsd*)
 2016     # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
 2017     cf_XOPEN_SOURCE=
 2018     
 2019 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
 2020 
 2021 cf_save_CFLAGS="$CFLAGS"
 2022 cf_save_CPPFLAGS="$CPPFLAGS"
 2023 
 2024 
 2025 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
 2026     sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[     ]/ /g' \
 2027         -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
 2028 
 2029 
 2030 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
 2031     sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[     ]/ /g' \
 2032         -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
 2033 
 2034 
 2035 echo $ac_n "checking if we should define _POSIX_C_SOURCE""... $ac_c" 1>&6
 2036 echo "configure:2037: checking if we should define _POSIX_C_SOURCE" >&5
 2037 if eval "test \"`echo '$''{'cf_cv_posix_c_source'+set}'`\" = set"; then
 2038   echo $ac_n "(cached) $ac_c" 1>&6
 2039 else
 2040   
 2041     
 2042 echo "${as_me:-configure}:2043: testing if the symbol is already defined go no further ..." 1>&5
 2043 
 2044     cat > conftest.$ac_ext <<EOF
 2045 #line 2046 "configure"
 2046 #include "confdefs.h"
 2047 #include <sys/types.h>
 2048 int main() {
 2049 
 2050 #ifndef _POSIX_C_SOURCE
 2051 make an error
 2052 #endif
 2053 ; return 0; }
 2054 EOF
 2055 if { (eval echo configure:2056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2056   rm -rf conftest*
 2057   cf_cv_posix_c_source=no
 2058 else
 2059   echo "configure: failed program was:" >&5
 2060   cat conftest.$ac_ext >&5
 2061   rm -rf conftest*
 2062   cf_want_posix_source=no
 2063      case .$cf_POSIX_C_SOURCE in
 2064      (.[12]??*)
 2065         cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
 2066         ;;
 2067      (.2)
 2068         cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
 2069         cf_want_posix_source=yes
 2070         ;;
 2071      (.*)
 2072         cf_want_posix_source=yes
 2073         ;;
 2074      esac
 2075      if test "$cf_want_posix_source" = yes ; then
 2076         cat > conftest.$ac_ext <<EOF
 2077 #line 2078 "configure"
 2078 #include "confdefs.h"
 2079 #include <sys/types.h>
 2080 int main() {
 2081 
 2082 #ifdef _POSIX_SOURCE
 2083 make an error
 2084 #endif
 2085 ; return 0; }
 2086 EOF
 2087 if { (eval echo configure:2088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2088   :
 2089 else
 2090   echo "configure: failed program was:" >&5
 2091   cat conftest.$ac_ext >&5
 2092   rm -rf conftest*
 2093   cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
 2094 fi
 2095 rm -f conftest*
 2096      fi
 2097      
 2098 echo "${as_me:-configure}:2099: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
 2099 
 2100      CFLAGS="$cf_trim_CFLAGS"
 2101      CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
 2102      
 2103 echo "${as_me:-configure}:2104: testing if the second compile does not leave our definition intact error ..." 1>&5
 2104 
 2105      cat > conftest.$ac_ext <<EOF
 2106 #line 2107 "configure"
 2107 #include "confdefs.h"
 2108 #include <sys/types.h>
 2109 int main() {
 2110 
 2111 #ifndef _POSIX_C_SOURCE
 2112 make an error
 2113 #endif
 2114 ; return 0; }
 2115 EOF
 2116 if { (eval echo configure:2117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2117   :
 2118 else
 2119   echo "configure: failed program was:" >&5
 2120   cat conftest.$ac_ext >&5
 2121   rm -rf conftest*
 2122   cf_cv_posix_c_source=no
 2123 fi
 2124 rm -f conftest*
 2125      CFLAGS="$cf_save_CFLAGS"
 2126      CPPFLAGS="$cf_save_CPPFLAGS"
 2127     
 2128 fi
 2129 rm -f conftest*
 2130 
 2131 fi
 2132 
 2133 echo "$ac_t""$cf_cv_posix_c_source" 1>&6
 2134 
 2135 if test "$cf_cv_posix_c_source" != no ; then
 2136     CFLAGS="$cf_trim_CFLAGS"
 2137     CPPFLAGS="$cf_trim_CPPFLAGS"
 2138     
 2139 cf_fix_cppflags=no
 2140 cf_new_cflags=
 2141 cf_new_cppflags=
 2142 cf_new_extra_cppflags=
 2143 
 2144 for cf_add_cflags in $cf_cv_posix_c_source
 2145 do
 2146 case $cf_fix_cppflags in
 2147 (no)
 2148     case $cf_add_cflags in
 2149     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 2150         case $cf_add_cflags in
 2151         (-D*)
 2152             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 2153 
 2154             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 2155                 && test -z "${cf_tst_cflags}" \
 2156                 && cf_fix_cppflags=yes
 2157 
 2158             if test $cf_fix_cppflags = yes ; then
 2159                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 2160                 continue
 2161             elif test "${cf_tst_cflags}" = "\"'" ; then
 2162                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 2163                 continue
 2164             fi
 2165             ;;
 2166         esac
 2167         case "$CPPFLAGS" in
 2168         (*$cf_add_cflags)
 2169             ;;
 2170         (*)
 2171             case $cf_add_cflags in
 2172             (-D*)
 2173                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 2174                 
 2175 CPPFLAGS=`echo "$CPPFLAGS" | \
 2176     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 2177         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 2178 
 2179                 ;;
 2180             esac
 2181             cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
 2182             ;;
 2183         esac
 2184         ;;
 2185     (*)
 2186         cf_new_cflags="$cf_new_cflags $cf_add_cflags"
 2187         ;;
 2188     esac
 2189     ;;
 2190 (yes)
 2191     cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 2192 
 2193     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 2194 
 2195     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 2196         && test -z "${cf_tst_cflags}" \
 2197         && cf_fix_cppflags=no
 2198     ;;
 2199 esac
 2200 done
 2201 
 2202 if test -n "$cf_new_cflags" ; then
 2203     
 2204     CFLAGS="$CFLAGS $cf_new_cflags"
 2205 fi
 2206 
 2207 if test -n "$cf_new_cppflags" ; then
 2208     
 2209     CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
 2210 fi
 2211 
 2212 if test -n "$cf_new_extra_cppflags" ; then
 2213     
 2214     EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
 2215 fi
 2216 
 2217 
 2218 
 2219 
 2220 fi
 2221 
 2222 
 2223     ;;
 2224 (netbsd*)
 2225     cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
 2226     ;;
 2227 (openbsd[4-9]*)
 2228     # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
 2229     cf_xopen_source="-D_BSD_SOURCE"
 2230     cf_XOPEN_SOURCE=600
 2231     ;;
 2232 (openbsd*)
 2233     # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
 2234     ;;
 2235 (osf[45]*)
 2236     cf_xopen_source="-D_OSF_SOURCE"
 2237     ;;
 2238 (nto-qnx*)
 2239     cf_xopen_source="-D_QNX_SOURCE"
 2240     ;;
 2241 (sco*)
 2242     # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
 2243     ;;
 2244 (solaris2.*)
 2245     cf_xopen_source="-D__EXTENSIONS__"
 2246     cf_cv_xopen_source=broken
 2247     ;;
 2248 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
 2249     cf_XOPEN_SOURCE=
 2250     cf_POSIX_C_SOURCE=
 2251     ;;
 2252 (*)
 2253     
 2254 echo $ac_n "checking if we should define _XOPEN_SOURCE""... $ac_c" 1>&6
 2255 echo "configure:2256: checking if we should define _XOPEN_SOURCE" >&5
 2256 if eval "test \"`echo '$''{'cf_cv_xopen_source'+set}'`\" = set"; then
 2257   echo $ac_n "(cached) $ac_c" 1>&6
 2258 else
 2259   
 2260     cat > conftest.$ac_ext <<EOF
 2261 #line 2262 "configure"
 2262 #include "confdefs.h"
 2263 
 2264 #include <stdlib.h>
 2265 #include <string.h>
 2266 #include <sys/types.h>
 2267 
 2268 int main() {
 2269 
 2270 #ifndef _XOPEN_SOURCE
 2271 make an error
 2272 #endif
 2273 ; return 0; }
 2274 EOF
 2275 if { (eval echo configure:2276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2276   rm -rf conftest*
 2277   cf_cv_xopen_source=no
 2278 else
 2279   echo "configure: failed program was:" >&5
 2280   cat conftest.$ac_ext >&5
 2281   rm -rf conftest*
 2282   cf_save="$CPPFLAGS"
 2283      CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
 2284      cat > conftest.$ac_ext <<EOF
 2285 #line 2286 "configure"
 2286 #include "confdefs.h"
 2287 
 2288 #include <stdlib.h>
 2289 #include <string.h>
 2290 #include <sys/types.h>
 2291 
 2292 int main() {
 2293 
 2294 #ifdef _XOPEN_SOURCE
 2295 make an error
 2296 #endif
 2297 ; return 0; }
 2298 EOF
 2299 if { (eval echo configure:2300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2300   rm -rf conftest*
 2301   cf_cv_xopen_source=no
 2302 else
 2303   echo "configure: failed program was:" >&5
 2304   cat conftest.$ac_ext >&5
 2305   rm -rf conftest*
 2306   cf_cv_xopen_source=$cf_XOPEN_SOURCE
 2307 fi
 2308 rm -f conftest*
 2309     CPPFLAGS="$cf_save"
 2310     
 2311 fi
 2312 rm -f conftest*
 2313 
 2314 fi
 2315 
 2316 echo "$ac_t""$cf_cv_xopen_source" 1>&6
 2317 
 2318 if test "$cf_cv_xopen_source" != no ; then
 2319     
 2320 CFLAGS=`echo "$CFLAGS" | \
 2321     sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?[     ]/ /g' \
 2322         -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?$//g'`
 2323 
 2324     
 2325 CPPFLAGS=`echo "$CPPFLAGS" | \
 2326     sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?[     ]/ /g' \
 2327         -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?$//g'`
 2328 
 2329     cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
 2330     
 2331 cf_fix_cppflags=no
 2332 cf_new_cflags=
 2333 cf_new_cppflags=
 2334 cf_new_extra_cppflags=
 2335 
 2336 for cf_add_cflags in $cf_temp_xopen_source
 2337 do
 2338 case $cf_fix_cppflags in
 2339 (no)
 2340     case $cf_add_cflags in
 2341     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 2342         case $cf_add_cflags in
 2343         (-D*)
 2344             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 2345 
 2346             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 2347                 && test -z "${cf_tst_cflags}" \
 2348                 && cf_fix_cppflags=yes
 2349 
 2350             if test $cf_fix_cppflags = yes ; then
 2351                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 2352                 continue
 2353             elif test "${cf_tst_cflags}" = "\"'" ; then
 2354                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 2355                 continue
 2356             fi
 2357             ;;
 2358         esac
 2359         case "$CPPFLAGS" in
 2360         (*$cf_add_cflags)
 2361             ;;
 2362         (*)
 2363             case $cf_add_cflags in
 2364             (-D*)
 2365                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 2366                 
 2367 CPPFLAGS=`echo "$CPPFLAGS" | \
 2368     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 2369         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 2370 
 2371                 ;;
 2372             esac
 2373             cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
 2374             ;;
 2375         esac
 2376         ;;
 2377     (*)
 2378         cf_new_cflags="$cf_new_cflags $cf_add_cflags"
 2379         ;;
 2380     esac
 2381     ;;
 2382 (yes)
 2383     cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 2384 
 2385     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 2386 
 2387     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 2388         && test -z "${cf_tst_cflags}" \
 2389         && cf_fix_cppflags=no
 2390     ;;
 2391 esac
 2392 done
 2393 
 2394 if test -n "$cf_new_cflags" ; then
 2395     
 2396     CFLAGS="$CFLAGS $cf_new_cflags"
 2397 fi
 2398 
 2399 if test -n "$cf_new_cppflags" ; then
 2400     
 2401     CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
 2402 fi
 2403 
 2404 if test -n "$cf_new_extra_cppflags" ; then
 2405     
 2406     EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
 2407 fi
 2408 
 2409 
 2410 
 2411 
 2412 fi
 2413 
 2414     
 2415 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
 2416 
 2417 cf_save_CFLAGS="$CFLAGS"
 2418 cf_save_CPPFLAGS="$CPPFLAGS"
 2419 
 2420 
 2421 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
 2422     sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[     ]/ /g' \
 2423         -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
 2424 
 2425 
 2426 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
 2427     sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[     ]/ /g' \
 2428         -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
 2429 
 2430 
 2431 echo $ac_n "checking if we should define _POSIX_C_SOURCE""... $ac_c" 1>&6
 2432 echo "configure:2433: checking if we should define _POSIX_C_SOURCE" >&5
 2433 if eval "test \"`echo '$''{'cf_cv_posix_c_source'+set}'`\" = set"; then
 2434   echo $ac_n "(cached) $ac_c" 1>&6
 2435 else
 2436   
 2437     
 2438 echo "${as_me:-configure}:2439: testing if the symbol is already defined go no further ..." 1>&5
 2439 
 2440     cat > conftest.$ac_ext <<EOF
 2441 #line 2442 "configure"
 2442 #include "confdefs.h"
 2443 #include <sys/types.h>
 2444 int main() {
 2445 
 2446 #ifndef _POSIX_C_SOURCE
 2447 make an error
 2448 #endif
 2449 ; return 0; }
 2450 EOF
 2451 if { (eval echo configure:2452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2452   rm -rf conftest*
 2453   cf_cv_posix_c_source=no
 2454 else
 2455   echo "configure: failed program was:" >&5
 2456   cat conftest.$ac_ext >&5
 2457   rm -rf conftest*
 2458   cf_want_posix_source=no
 2459      case .$cf_POSIX_C_SOURCE in
 2460      (.[12]??*)
 2461         cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
 2462         ;;
 2463      (.2)
 2464         cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
 2465         cf_want_posix_source=yes
 2466         ;;
 2467      (.*)
 2468         cf_want_posix_source=yes
 2469         ;;
 2470      esac
 2471      if test "$cf_want_posix_source" = yes ; then
 2472         cat > conftest.$ac_ext <<EOF
 2473 #line 2474 "configure"
 2474 #include "confdefs.h"
 2475 #include <sys/types.h>
 2476 int main() {
 2477 
 2478 #ifdef _POSIX_SOURCE
 2479 make an error
 2480 #endif
 2481 ; return 0; }
 2482 EOF
 2483 if { (eval echo configure:2484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2484   :
 2485 else
 2486   echo "configure: failed program was:" >&5
 2487   cat conftest.$ac_ext >&5
 2488   rm -rf conftest*
 2489   cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
 2490 fi
 2491 rm -f conftest*
 2492      fi
 2493      
 2494 echo "${as_me:-configure}:2495: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
 2495 
 2496      CFLAGS="$cf_trim_CFLAGS"
 2497      CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
 2498      
 2499 echo "${as_me:-configure}:2500: testing if the second compile does not leave our definition intact error ..." 1>&5
 2500 
 2501      cat > conftest.$ac_ext <<EOF
 2502 #line 2503 "configure"
 2503 #include "confdefs.h"
 2504 #include <sys/types.h>
 2505 int main() {
 2506 
 2507 #ifndef _POSIX_C_SOURCE
 2508 make an error
 2509 #endif
 2510 ; return 0; }
 2511 EOF
 2512 if { (eval echo configure:2513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2513   :
 2514 else
 2515   echo "configure: failed program was:" >&5
 2516   cat conftest.$ac_ext >&5
 2517   rm -rf conftest*
 2518   cf_cv_posix_c_source=no
 2519 fi
 2520 rm -f conftest*
 2521      CFLAGS="$cf_save_CFLAGS"
 2522      CPPFLAGS="$cf_save_CPPFLAGS"
 2523     
 2524 fi
 2525 rm -f conftest*
 2526 
 2527 fi
 2528 
 2529 echo "$ac_t""$cf_cv_posix_c_source" 1>&6
 2530 
 2531 if test "$cf_cv_posix_c_source" != no ; then
 2532     CFLAGS="$cf_trim_CFLAGS"
 2533     CPPFLAGS="$cf_trim_CPPFLAGS"
 2534     
 2535 cf_fix_cppflags=no
 2536 cf_new_cflags=
 2537 cf_new_cppflags=
 2538 cf_new_extra_cppflags=
 2539 
 2540 for cf_add_cflags in $cf_cv_posix_c_source
 2541 do
 2542 case $cf_fix_cppflags in
 2543 (no)
 2544     case $cf_add_cflags in
 2545     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 2546         case $cf_add_cflags in
 2547         (-D*)
 2548             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 2549 
 2550             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 2551                 && test -z "${cf_tst_cflags}" \
 2552                 && cf_fix_cppflags=yes
 2553 
 2554             if test $cf_fix_cppflags = yes ; then
 2555                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 2556                 continue
 2557             elif test "${cf_tst_cflags}" = "\"'" ; then
 2558                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 2559                 continue
 2560             fi
 2561             ;;
 2562         esac
 2563         case "$CPPFLAGS" in
 2564         (*$cf_add_cflags)
 2565             ;;
 2566         (*)
 2567             case $cf_add_cflags in
 2568             (-D*)
 2569                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 2570                 
 2571 CPPFLAGS=`echo "$CPPFLAGS" | \
 2572     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 2573         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 2574 
 2575                 ;;
 2576             esac
 2577             cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
 2578             ;;
 2579         esac
 2580         ;;
 2581     (*)
 2582         cf_new_cflags="$cf_new_cflags $cf_add_cflags"
 2583         ;;
 2584     esac
 2585     ;;
 2586 (yes)
 2587     cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 2588 
 2589     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 2590 
 2591     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 2592         && test -z "${cf_tst_cflags}" \
 2593         && cf_fix_cppflags=no
 2594     ;;
 2595 esac
 2596 done
 2597 
 2598 if test -n "$cf_new_cflags" ; then
 2599     
 2600     CFLAGS="$CFLAGS $cf_new_cflags"
 2601 fi
 2602 
 2603 if test -n "$cf_new_cppflags" ; then
 2604     
 2605     CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
 2606 fi
 2607 
 2608 if test -n "$cf_new_extra_cppflags" ; then
 2609     
 2610     EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
 2611 fi
 2612 
 2613 
 2614 
 2615 
 2616 fi
 2617 
 2618 
 2619     ;;
 2620 esac
 2621 
 2622 if test -n "$cf_xopen_source" ; then
 2623     
 2624 cf_fix_cppflags=no
 2625 cf_new_cflags=
 2626 cf_new_cppflags=
 2627 cf_new_extra_cppflags=
 2628 
 2629 for cf_add_cflags in $cf_xopen_source
 2630 do
 2631 case $cf_fix_cppflags in
 2632 (no)
 2633     case $cf_add_cflags in
 2634     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 2635         case $cf_add_cflags in
 2636         (-D*)
 2637             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 2638 
 2639             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 2640                 && test -z "${cf_tst_cflags}" \
 2641                 && cf_fix_cppflags=yes
 2642 
 2643             if test $cf_fix_cppflags = yes ; then
 2644                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 2645                 continue
 2646             elif test "${cf_tst_cflags}" = "\"'" ; then
 2647                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 2648                 continue
 2649             fi
 2650             ;;
 2651         esac
 2652         case "$CPPFLAGS" in
 2653         (*$cf_add_cflags)
 2654             ;;
 2655         (*)
 2656             case $cf_add_cflags in
 2657             (-D*)
 2658                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 2659                 
 2660 CPPFLAGS=`echo "$CPPFLAGS" | \
 2661     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 2662         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 2663 
 2664                 ;;
 2665             esac
 2666             cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
 2667             ;;
 2668         esac
 2669         ;;
 2670     (*)
 2671         cf_new_cflags="$cf_new_cflags $cf_add_cflags"
 2672         ;;
 2673     esac
 2674     ;;
 2675 (yes)
 2676     cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 2677 
 2678     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 2679 
 2680     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 2681         && test -z "${cf_tst_cflags}" \
 2682         && cf_fix_cppflags=no
 2683     ;;
 2684 esac
 2685 done
 2686 
 2687 if test -n "$cf_new_cflags" ; then
 2688     test -n "$verbose" && echo "    add to \$CFLAGS $cf_new_cflags" 1>&6
 2689 
 2690 echo "${as_me:-configure}:2691: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
 2691 
 2692 
 2693     CFLAGS="$CFLAGS $cf_new_cflags"
 2694 fi
 2695 
 2696 if test -n "$cf_new_cppflags" ; then
 2697     test -n "$verbose" && echo "    add to \$CPPFLAGS $cf_new_cppflags" 1>&6
 2698 
 2699 echo "${as_me:-configure}:2700: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
 2700 
 2701 
 2702     CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
 2703 fi
 2704 
 2705 if test -n "$cf_new_extra_cppflags" ; then
 2706     test -n "$verbose" && echo "    add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
 2707 
 2708 echo "${as_me:-configure}:2709: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
 2709 
 2710 
 2711     EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
 2712 fi
 2713 
 2714 
 2715 
 2716 
 2717 fi
 2718 
 2719 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
 2720     echo $ac_n "checking if _XOPEN_SOURCE really is set""... $ac_c" 1>&6
 2721 echo "configure:2722: checking if _XOPEN_SOURCE really is set" >&5
 2722     cat > conftest.$ac_ext <<EOF
 2723 #line 2724 "configure"
 2724 #include "confdefs.h"
 2725 #include <stdlib.h>
 2726 int main() {
 2727 
 2728 #ifndef _XOPEN_SOURCE
 2729 make an error
 2730 #endif
 2731 ; return 0; }
 2732 EOF
 2733 if { (eval echo configure:2734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2734   rm -rf conftest*
 2735   cf_XOPEN_SOURCE_set=yes
 2736 else
 2737   echo "configure: failed program was:" >&5
 2738   cat conftest.$ac_ext >&5
 2739   rm -rf conftest*
 2740   cf_XOPEN_SOURCE_set=no
 2741 fi
 2742 rm -f conftest*
 2743     echo "$ac_t""$cf_XOPEN_SOURCE_set" 1>&6
 2744     if test $cf_XOPEN_SOURCE_set = yes
 2745     then
 2746         cat > conftest.$ac_ext <<EOF
 2747 #line 2748 "configure"
 2748 #include "confdefs.h"
 2749 #include <stdlib.h>
 2750 int main() {
 2751 
 2752 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
 2753 make an error
 2754 #endif
 2755 ; return 0; }
 2756 EOF
 2757 if { (eval echo configure:2758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2758   rm -rf conftest*
 2759   cf_XOPEN_SOURCE_set_ok=yes
 2760 else
 2761   echo "configure: failed program was:" >&5
 2762   cat conftest.$ac_ext >&5
 2763   rm -rf conftest*
 2764   cf_XOPEN_SOURCE_set_ok=no
 2765 fi
 2766 rm -f conftest*
 2767         if test $cf_XOPEN_SOURCE_set_ok = no
 2768         then
 2769             echo "configure: warning: _XOPEN_SOURCE is lower than requested" 1>&2
 2770         fi
 2771     else
 2772         
 2773 echo $ac_n "checking if we should define _XOPEN_SOURCE""... $ac_c" 1>&6
 2774 echo "configure:2775: checking if we should define _XOPEN_SOURCE" >&5
 2775 if eval "test \"`echo '$''{'cf_cv_xopen_source'+set}'`\" = set"; then
 2776   echo $ac_n "(cached) $ac_c" 1>&6
 2777 else
 2778   
 2779     cat > conftest.$ac_ext <<EOF
 2780 #line 2781 "configure"
 2781 #include "confdefs.h"
 2782 
 2783 #include <stdlib.h>
 2784 #include <string.h>
 2785 #include <sys/types.h>
 2786 
 2787 int main() {
 2788 
 2789 #ifndef _XOPEN_SOURCE
 2790 make an error
 2791 #endif
 2792 ; return 0; }
 2793 EOF
 2794 if { (eval echo configure:2795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2795   rm -rf conftest*
 2796   cf_cv_xopen_source=no
 2797 else
 2798   echo "configure: failed program was:" >&5
 2799   cat conftest.$ac_ext >&5
 2800   rm -rf conftest*
 2801   cf_save="$CPPFLAGS"
 2802      CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
 2803      cat > conftest.$ac_ext <<EOF
 2804 #line 2805 "configure"
 2805 #include "confdefs.h"
 2806 
 2807 #include <stdlib.h>
 2808 #include <string.h>
 2809 #include <sys/types.h>
 2810 
 2811 int main() {
 2812 
 2813 #ifdef _XOPEN_SOURCE
 2814 make an error
 2815 #endif
 2816 ; return 0; }
 2817 EOF
 2818 if { (eval echo configure:2819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2819   rm -rf conftest*
 2820   cf_cv_xopen_source=no
 2821 else
 2822   echo "configure: failed program was:" >&5
 2823   cat conftest.$ac_ext >&5
 2824   rm -rf conftest*
 2825   cf_cv_xopen_source=$cf_XOPEN_SOURCE
 2826 fi
 2827 rm -f conftest*
 2828     CPPFLAGS="$cf_save"
 2829     
 2830 fi
 2831 rm -f conftest*
 2832 
 2833 fi
 2834 
 2835 echo "$ac_t""$cf_cv_xopen_source" 1>&6
 2836 
 2837 if test "$cf_cv_xopen_source" != no ; then
 2838     
 2839 CFLAGS=`echo "$CFLAGS" | \
 2840     sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?[     ]/ /g' \
 2841         -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?$//g'`
 2842 
 2843     
 2844 CPPFLAGS=`echo "$CPPFLAGS" | \
 2845     sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?[     ]/ /g' \
 2846         -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?$//g'`
 2847 
 2848     cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
 2849     
 2850 cf_fix_cppflags=no
 2851 cf_new_cflags=
 2852 cf_new_cppflags=
 2853 cf_new_extra_cppflags=
 2854 
 2855 for cf_add_cflags in $cf_temp_xopen_source
 2856 do
 2857 case $cf_fix_cppflags in
 2858 (no)
 2859     case $cf_add_cflags in
 2860     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 2861         case $cf_add_cflags in
 2862         (-D*)
 2863             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 2864 
 2865             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 2866                 && test -z "${cf_tst_cflags}" \
 2867                 && cf_fix_cppflags=yes
 2868 
 2869             if test $cf_fix_cppflags = yes ; then
 2870                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 2871                 continue
 2872             elif test "${cf_tst_cflags}" = "\"'" ; then
 2873                 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 2874                 continue
 2875             fi
 2876             ;;
 2877         esac
 2878         case "$CPPFLAGS" in
 2879         (*$cf_add_cflags)
 2880             ;;
 2881         (*)
 2882             case $cf_add_cflags in
 2883             (-D*)
 2884                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 2885                 
 2886 CPPFLAGS=`echo "$CPPFLAGS" | \
 2887     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 2888         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 2889 
 2890                 ;;
 2891             esac
 2892             cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
 2893             ;;
 2894         esac
 2895         ;;
 2896     (*)
 2897         cf_new_cflags="$cf_new_cflags $cf_add_cflags"
 2898         ;;
 2899     esac
 2900     ;;
 2901 (yes)
 2902     cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
 2903 
 2904     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 2905 
 2906     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 2907         && test -z "${cf_tst_cflags}" \
 2908         && cf_fix_cppflags=no
 2909     ;;
 2910 esac
 2911 done
 2912 
 2913 if test -n "$cf_new_cflags" ; then
 2914     
 2915     CFLAGS="$CFLAGS $cf_new_cflags"
 2916 fi
 2917 
 2918 if test -n "$cf_new_cppflags" ; then
 2919     
 2920     CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
 2921 fi
 2922 
 2923 if test -n "$cf_new_extra_cppflags" ; then
 2924     
 2925     EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
 2926 fi
 2927 
 2928 
 2929 
 2930 
 2931 fi
 2932 
 2933     fi
 2934 fi
 2935 
 2936 
 2937 echo $ac_n "checking if SIGWINCH is defined""... $ac_c" 1>&6
 2938 echo "configure:2939: checking if SIGWINCH is defined" >&5
 2939 if eval "test \"`echo '$''{'cf_cv_define_sigwinch'+set}'`\" = set"; then
 2940   echo $ac_n "(cached) $ac_c" 1>&6
 2941 else
 2942   
 2943     cat > conftest.$ac_ext <<EOF
 2944 #line 2945 "configure"
 2945 #include "confdefs.h"
 2946 
 2947 #include <sys/types.h>
 2948 #include <sys/signal.h>
 2949 
 2950 int main() {
 2951 int x = SIGWINCH
 2952 ; return 0; }
 2953 EOF
 2954 if { (eval echo configure:2955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2955   rm -rf conftest*
 2956   cf_cv_define_sigwinch=yes
 2957 else
 2958   echo "configure: failed program was:" >&5
 2959   cat conftest.$ac_ext >&5
 2960   rm -rf conftest*
 2961   cat > conftest.$ac_ext <<EOF
 2962 #line 2963 "configure"
 2963 #include "confdefs.h"
 2964 
 2965 #undef _XOPEN_SOURCE
 2966 #undef _POSIX_SOURCE
 2967 #undef _POSIX_C_SOURCE
 2968 #include <sys/types.h>
 2969 #include <sys/signal.h>
 2970 
 2971 int main() {
 2972 int x = SIGWINCH
 2973 ; return 0; }
 2974 EOF
 2975 if { (eval echo configure:2976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2976   rm -rf conftest*
 2977   cf_cv_define_sigwinch=maybe
 2978 else
 2979   echo "configure: failed program was:" >&5
 2980   cat conftest.$ac_ext >&5
 2981   rm -rf conftest*
 2982   cf_cv_define_sigwinch=no
 2983 fi
 2984 rm -f conftest*
 2985 
 2986 fi
 2987 rm -f conftest*
 2988 
 2989 fi
 2990 
 2991 echo "$ac_t""$cf_cv_define_sigwinch" 1>&6
 2992 
 2993 if test "$cf_cv_define_sigwinch" = maybe ; then
 2994 echo $ac_n "checking for actual SIGWINCH definition""... $ac_c" 1>&6
 2995 echo "configure:2996: checking for actual SIGWINCH definition" >&5
 2996 if eval "test \"`echo '$''{'cf_cv_fixup_sigwinch'+set}'`\" = set"; then
 2997   echo $ac_n "(cached) $ac_c" 1>&6
 2998 else
 2999   
 3000 cf_cv_fixup_sigwinch=unknown
 3001 cf_sigwinch=32
 3002 while test $cf_sigwinch != 1
 3003 do
 3004     cat > conftest.$ac_ext <<EOF
 3005 #line 3006 "configure"
 3006 #include "confdefs.h"
 3007 
 3008 #undef _XOPEN_SOURCE
 3009 #undef _POSIX_SOURCE
 3010 #undef _POSIX_C_SOURCE
 3011 #include <sys/types.h>
 3012 #include <sys/signal.h>
 3013 
 3014 int main() {
 3015 
 3016 #if SIGWINCH != $cf_sigwinch
 3017 make an error
 3018 #endif
 3019 int x = SIGWINCH
 3020 ; return 0; }
 3021 EOF
 3022 if { (eval echo configure:3023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 3023   rm -rf conftest*
 3024   cf_cv_fixup_sigwinch=$cf_sigwinch
 3025      break
 3026 else
 3027   echo "configure: failed program was:" >&5
 3028   cat conftest.$ac_ext >&5
 3029 fi
 3030 rm -f conftest*
 3031 
 3032 cf_sigwinch=`expr $cf_sigwinch - 1`
 3033 done
 3034 
 3035 fi
 3036 
 3037 echo "$ac_t""$cf_cv_fixup_sigwinch" 1>&6
 3038 
 3039     if test "$cf_cv_fixup_sigwinch" != unknown ; then
 3040         CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
 3041     fi
 3042 fi
 3043 
 3044 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
 3045 echo "configure:3046: checking for Cygwin environment" >&5
 3046 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
 3047   echo $ac_n "(cached) $ac_c" 1>&6
 3048 else
 3049   cat > conftest.$ac_ext <<EOF
 3050 #line 3051 "configure"
 3051 #include "confdefs.h"
 3052 
 3053 int main() {
 3054 
 3055 #ifndef __CYGWIN__
 3056 #define __CYGWIN__ __CYGWIN32__
 3057 #endif
 3058 return __CYGWIN__;
 3059 ; return 0; }
 3060 EOF
 3061 if { (eval echo configure:3062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 3062   rm -rf conftest*
 3063   ac_cv_cygwin=yes
 3064 else
 3065   echo "configure: failed program was:" >&5
 3066   cat conftest.$ac_ext >&5
 3067   rm -rf conftest*
 3068   ac_cv_cygwin=no
 3069 fi
 3070 rm -f conftest*
 3071 rm -f conftest*
 3072 fi
 3073 
 3074 echo "$ac_t""$ac_cv_cygwin" 1>&6
 3075 CYGWIN=
 3076 test "$ac_cv_cygwin" = yes && CYGWIN=yes
 3077 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
 3078 echo "configure:3079: checking for mingw32 environment" >&5
 3079 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
 3080   echo $ac_n "(cached) $ac_c" 1>&6
 3081 else
 3082   cat > conftest.$ac_ext <<EOF
 3083 #line 3084 "configure"
 3084 #include "confdefs.h"
 3085 
 3086 int main() {
 3087 return __MINGW32__;
 3088 ; return 0; }
 3089 EOF
 3090 if { (eval echo configure:3091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 3091   rm -rf conftest*
 3092   ac_cv_mingw32=yes
 3093 else
 3094   echo "configure: failed program was:" >&5
 3095   cat conftest.$ac_ext >&5
 3096   rm -rf conftest*
 3097   ac_cv_mingw32=no
 3098 fi
 3099 rm -f conftest*
 3100 rm -f conftest*
 3101 fi
 3102 
 3103 echo "$ac_t""$ac_cv_mingw32" 1>&6
 3104 MINGW32=
 3105 test "$ac_cv_mingw32" = yes && MINGW32=yes
 3106 
 3107 
 3108 case $cf_cv_system_name in
 3109 (os2*)
 3110     CFLAGS="$CFLAGS -Zmt"
 3111     CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
 3112     CXXFLAGS="$CXXFLAGS -Zmt"
 3113     # autoconf's macro sets -Zexe and suffix both, which conflict:w
 3114     LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
 3115     ac_cv_exeext=.exe
 3116     ;;
 3117 esac
 3118 
 3119 
 3120 
 3121 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
 3122 echo "configure:3123: checking for executable suffix" >&5
 3123 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
 3124   echo $ac_n "(cached) $ac_c" 1>&6
 3125 else
 3126   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
 3127   ac_cv_exeext=.exe
 3128 else
 3129   rm -f conftest*
 3130   echo 'int main () { return 0; }' > conftest.$ac_ext
 3131   ac_cv_exeext=
 3132   if { (eval echo configure:3133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
 3133     for file in conftest.*; do
 3134       if test -f $file ; then
 3135         case $file in
 3136           *.c | *.o | *.obj) ;;
 3137           *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
 3138         esac
 3139       fi
 3140     done
 3141   else
 3142     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
 3143   fi
 3144   rm -rf conftest.dSYM
 3145   rm -f conftest*
 3146   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
 3147 fi
 3148 fi
 3149 
 3150 EXEEXT=""
 3151 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
 3152 echo "$ac_t""${ac_cv_exeext}" 1>&6
 3153 ac_exeext=$EXEEXT
 3154 
 3155 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
 3156 echo "configure:3157: checking for object suffix" >&5
 3157 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
 3158   echo $ac_n "(cached) $ac_c" 1>&6
 3159 else
 3160   rm -f conftest*
 3161 echo 'int i = 1;' > conftest.$ac_ext
 3162 if { (eval echo configure:3163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 3163   for ac_file in conftest.*; do
 3164     if test -f $ac_file ; then
 3165       case $ac_file in
 3166         *.c) ;;
 3167         *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
 3168       esac
 3169     fi
 3170   done
 3171 else
 3172   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
 3173 fi
 3174 rm -rf conftest.dSYM
 3175 rm -f conftest*
 3176 fi
 3177 
 3178 echo "$ac_t""$ac_cv_objext" 1>&6
 3179 OBJEXT=$ac_cv_objext
 3180 ac_objext=$ac_cv_objext
 3181 
 3182 
 3183 PROG_EXT="$EXEEXT"
 3184 
 3185 test -n "$PROG_EXT" && cat >> confdefs.h <<EOF
 3186 #define PROG_EXT "$PROG_EXT"
 3187 EOF
 3188 
 3189 
 3190 
 3191     case $cf_cv_system_name in
 3192     (OS/2*|os2*)
 3193         if test "$DFT_LWR_MODEL" = libtool; then
 3194             LIB_PREFIX='lib'
 3195         else
 3196             LIB_PREFIX=''
 3197         fi
 3198         ;;
 3199     (*) LIB_PREFIX='lib'
 3200         ;;
 3201     esac
 3202 LIB_PREFIX=$LIB_PREFIX
 3203     
 3204 
 3205 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
 3206 echo "configure:3207: checking whether ln -s works" >&5
 3207 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
 3208   echo $ac_n "(cached) $ac_c" 1>&6
 3209 else
 3210   rm -f conftestdata
 3211 if ln -s X conftestdata 2>/dev/null
 3212 then
 3213   rm -f conftestdata
 3214   ac_cv_prog_LN_S="ln -s"
 3215 else
 3216   ac_cv_prog_LN_S=ln
 3217 fi
 3218 fi
 3219 LN_S="$ac_cv_prog_LN_S"
 3220 if test "$ac_cv_prog_LN_S" = "ln -s"; then
 3221   echo "$ac_t""yes" 1>&6
 3222 else
 3223   echo "$ac_t""no" 1>&6
 3224 fi
 3225 
 3226 
 3227 
 3228 
 3229 
 3230 if test "$cross_compiling" = yes ; then
 3231 
 3232     # defaults that we might want to override
 3233     : ${BUILD_CFLAGS:=''}
 3234     : ${BUILD_CPPFLAGS:='-I$(INCDIR)'}
 3235     : ${BUILD_LDFLAGS:=''}
 3236     : ${BUILD_LIBS:=''}
 3237     : ${BUILD_EXEEXT:='$x'}
 3238     : ${BUILD_OBJEXT:='o'}
 3239 
 3240     
 3241 # Check whether --with-build-cc or --without-build-cc was given.
 3242 if test "${with_build_cc+set}" = set; then
 3243   withval="$with_build_cc"
 3244   BUILD_CC="$withval"
 3245 else
 3246   for ac_prog in gcc cc cl
 3247 do
 3248 # Extract the first word of "$ac_prog", so it can be a program name with args.
 3249 set dummy $ac_prog; ac_word=$2
 3250 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 3251 echo "configure:3252: checking for $ac_word" >&5
 3252 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
 3253   echo $ac_n "(cached) $ac_c" 1>&6
 3254 else
 3255   if test -n "$BUILD_CC"; then
 3256   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
 3257 else
 3258   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 3259   ac_dummy="$PATH"
 3260   for ac_dir in $ac_dummy; do
 3261     test -z "$ac_dir" && ac_dir=.
 3262     if test -f $ac_dir/$ac_word; then
 3263       ac_cv_prog_BUILD_CC="$ac_prog"
 3264       break
 3265     fi
 3266   done
 3267   IFS="$ac_save_ifs"
 3268 fi
 3269 fi
 3270 BUILD_CC="$ac_cv_prog_BUILD_CC"
 3271 if test -n "$BUILD_CC"; then
 3272   echo "$ac_t""$BUILD_CC" 1>&6
 3273 else
 3274   echo "$ac_t""no" 1>&6
 3275 fi
 3276 
 3277 test -n "$BUILD_CC" && break
 3278 done
 3279 
 3280 fi
 3281 
 3282     echo $ac_n "checking for native build C compiler""... $ac_c" 1>&6
 3283 echo "configure:3284: checking for native build C compiler" >&5
 3284     echo "$ac_t""$BUILD_CC" 1>&6
 3285 
 3286     echo $ac_n "checking for native build C preprocessor""... $ac_c" 1>&6
 3287 echo "configure:3288: checking for native build C preprocessor" >&5
 3288     
 3289 # Check whether --with-build-cpp or --without-build-cpp was given.
 3290 if test "${with_build_cpp+set}" = set; then
 3291   withval="$with_build_cpp"
 3292   BUILD_CPP="$withval"
 3293 else
 3294   BUILD_CPP='${BUILD_CC} -E'
 3295 fi
 3296 
 3297     echo "$ac_t""$BUILD_CPP" 1>&6
 3298 
 3299     echo $ac_n "checking for native build C flags""... $ac_c" 1>&6
 3300 echo "configure:3301: checking for native build C flags" >&5
 3301     
 3302 # Check whether --with-build-cflags or --without-build-cflags was given.
 3303 if test "${with_build_cflags+set}" = set; then
 3304   withval="$with_build_cflags"
 3305   BUILD_CFLAGS="$withval"
 3306 fi
 3307 
 3308     echo "$ac_t""$BUILD_CFLAGS" 1>&6
 3309 
 3310     echo $ac_n "checking for native build C preprocessor-flags""... $ac_c" 1>&6
 3311 echo "configure:3312: checking for native build C preprocessor-flags" >&5
 3312     
 3313 # Check whether --with-build-cppflags or --without-build-cppflags was given.
 3314 if test "${with_build_cppflags+set}" = set; then
 3315   withval="$with_build_cppflags"
 3316   BUILD_CPPFLAGS="$withval"
 3317 fi
 3318 
 3319     echo "$ac_t""$BUILD_CPPFLAGS" 1>&6
 3320 
 3321     echo $ac_n "checking for native build linker-flags""... $ac_c" 1>&6
 3322 echo "configure:3323: checking for native build linker-flags" >&5
 3323     
 3324 # Check whether --with-build-ldflags or --without-build-ldflags was given.
 3325 if test "${with_build_ldflags+set}" = set; then
 3326   withval="$with_build_ldflags"
 3327   BUILD_LDFLAGS="$withval"
 3328 fi
 3329 
 3330     echo "$ac_t""$BUILD_LDFLAGS" 1>&6
 3331 
 3332     echo $ac_n "checking for native build linker-libraries""... $ac_c" 1>&6
 3333 echo "configure:3334: checking for native build linker-libraries" >&5
 3334     
 3335 # Check whether --with-build-libs or --without-build-libs was given.
 3336 if test "${with_build_libs+set}" = set; then
 3337   withval="$with_build_libs"
 3338   BUILD_LIBS="$withval"
 3339 fi
 3340 
 3341     echo "$ac_t""$BUILD_LIBS" 1>&6
 3342 
 3343     # this assumes we're on Unix.
 3344     BUILD_EXEEXT=
 3345     BUILD_OBJEXT=o
 3346 
 3347     : ${BUILD_CC:='${CC}'}
 3348 
 3349     if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
 3350         { echo "configure: error: Cross-build requires two compilers.
 3351 Use --with-build-cc to specify the native compiler." 1>&2; exit 1; }
 3352     fi
 3353 
 3354 else
 3355     : ${BUILD_CC:='${CC}'}
 3356     : ${BUILD_CPP:='${CPP}'}
 3357     : ${BUILD_CFLAGS:='${CFLAGS}'}
 3358     : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
 3359     : ${BUILD_LDFLAGS:='${LDFLAGS}'}
 3360     : ${BUILD_LIBS:='${LIBS}'}
 3361     : ${BUILD_EXEEXT:='$x'}
 3362     : ${BUILD_OBJEXT:='o'}
 3363 fi
 3364 
 3365 
 3366 
 3367 
 3368 
 3369 
 3370 
 3371 
 3372 
 3373 
 3374 
 3375 echo $ac_n "checking build system type""... $ac_c" 1>&6
 3376 echo "configure:3377: checking build system type" >&5
 3377 
 3378 build_alias=$build
 3379 case "$build_alias" in
 3380 NONE)
 3381   case $nonopt in
 3382   NONE) build_alias=$host_alias ;;
 3383   *) build_alias=$nonopt ;;
 3384   esac ;;
 3385 esac
 3386 
 3387 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
 3388 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 3389 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 3390 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 3391 echo "$ac_t""$build" 1>&6
 3392 
 3393 if test $host != $build; then
 3394   ac_tool_prefix=${host_alias}-
 3395 else
 3396   ac_tool_prefix=
 3397 fi
 3398 
 3399 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 3400 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 3401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 3402 echo "configure:3403: checking for $ac_word" >&5
 3403 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
 3404   echo $ac_n "(cached) $ac_c" 1>&6
 3405 else
 3406   if test -n "$RANLIB"; then
 3407   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 3408 else
 3409   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 3410   ac_dummy="$PATH"
 3411   for ac_dir in $ac_dummy; do
 3412     test -z "$ac_dir" && ac_dir=.
 3413     if test -f $ac_dir/$ac_word; then
 3414       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 3415       break
 3416     fi
 3417   done
 3418   IFS="$ac_save_ifs"
 3419 fi
 3420 fi
 3421 RANLIB="$ac_cv_prog_RANLIB"
 3422 if test -n "$RANLIB"; then
 3423   echo "$ac_t""$RANLIB" 1>&6
 3424 else
 3425   echo "$ac_t""no" 1>&6
 3426 fi
 3427 
 3428 
 3429 if test -z "$ac_cv_prog_RANLIB"; then
 3430 if test -n "$ac_tool_prefix"; then
 3431   # Extract the first word of "ranlib", so it can be a program name with args.
 3432 set dummy ranlib; ac_word=$2
 3433 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 3434 echo "configure:3435: checking for $ac_word" >&5
 3435 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
 3436   echo $ac_n "(cached) $ac_c" 1>&6
 3437 else
 3438   if test -n "$RANLIB"; then
 3439   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 3440 else
 3441   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 3442   ac_dummy="$PATH"
 3443   for ac_dir in $ac_dummy; do
 3444     test -z "$ac_dir" && ac_dir=.
 3445     if test -f $ac_dir/$ac_word; then
 3446       ac_cv_prog_RANLIB="ranlib"
 3447       break
 3448     fi
 3449   done
 3450   IFS="$ac_save_ifs"
 3451   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="':'"
 3452 fi
 3453 fi
 3454 RANLIB="$ac_cv_prog_RANLIB"
 3455 if test -n "$RANLIB"; then
 3456   echo "$ac_t""$RANLIB" 1>&6
 3457 else
 3458   echo "$ac_t""no" 1>&6
 3459 fi
 3460 
 3461 else
 3462   RANLIB="':'"
 3463 fi
 3464 fi
 3465 
 3466 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
 3467 set dummy ${ac_tool_prefix}ld; ac_word=$2
 3468 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 3469 echo "configure:3470: checking for $ac_word" >&5
 3470 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
 3471   echo $ac_n "(cached) $ac_c" 1>&6
 3472 else
 3473   if test -n "$LD"; then
 3474   ac_cv_prog_LD="$LD" # Let the user override the test.
 3475 else
 3476   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 3477   ac_dummy="$PATH"
 3478   for ac_dir in $ac_dummy; do
 3479     test -z "$ac_dir" && ac_dir=.
 3480     if test -f $ac_dir/$ac_word; then
 3481       ac_cv_prog_LD="${ac_tool_prefix}ld"
 3482       break
 3483     fi
 3484   done
 3485   IFS="$ac_save_ifs"
 3486 fi
 3487 fi
 3488 LD="$ac_cv_prog_LD"
 3489 if test -n "$LD"; then
 3490   echo "$ac_t""$LD" 1>&6
 3491 else
 3492   echo "$ac_t""no" 1>&6
 3493 fi
 3494 
 3495 
 3496 if test -z "$ac_cv_prog_LD"; then
 3497 if test -n "$ac_tool_prefix"; then
 3498   # Extract the first word of "ld", so it can be a program name with args.
 3499 set dummy ld; ac_word=$2
 3500 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 3501 echo "configure:3502: checking for $ac_word" >&5
 3502 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
 3503   echo $ac_n "(cached) $ac_c" 1>&6
 3504 else
 3505   if test -n "$LD"; then
 3506   ac_cv_prog_LD="$LD" # Let the user override the test.
 3507 else
 3508   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 3509   ac_dummy="$PATH"
 3510   for ac_dir in $ac_dummy; do
 3511     test -z "$ac_dir" && ac_dir=.
 3512     if test -f $ac_dir/$ac_word; then
 3513       ac_cv_prog_LD="ld"
 3514       break
 3515     fi
 3516   done
 3517   IFS="$ac_save_ifs"
 3518   test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="ld"
 3519 fi
 3520 fi
 3521 LD="$ac_cv_prog_LD"
 3522 if test -n "$LD"; then
 3523   echo "$ac_t""$LD" 1>&6
 3524 else
 3525   echo "$ac_t""no" 1>&6
 3526 fi
 3527 
 3528 else
 3529   LD="ld"
 3530 fi
 3531 fi
 3532 
 3533 
 3534 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 3535 set dummy ${ac_tool_prefix}ar; ac_word=$2
 3536 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 3537 echo "configure:3538: checking for $ac_word" >&5
 3538 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
 3539   echo $ac_n "(cached) $ac_c" 1>&6
 3540 else
 3541   if test -n "$AR"; then
 3542   ac_cv_prog_AR="$AR" # Let the user override the test.
 3543 else
 3544   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 3545   ac_dummy="$PATH"
 3546   for ac_dir in $ac_dummy; do
 3547     test -z "$ac_dir" && ac_dir=.
 3548     if test -f $ac_dir/$ac_word; then
 3549       ac_cv_prog_AR="${ac_tool_prefix}ar"
 3550       break
 3551     fi
 3552   done
 3553   IFS="$ac_save_ifs"
 3554 fi
 3555 fi
 3556 AR="$ac_cv_prog_AR"
 3557 if test -n "$AR"; then
 3558   echo "$ac_t""$AR" 1>&6
 3559 else
 3560   echo "$ac_t""no" 1>&6
 3561 fi
 3562 
 3563 
 3564 if test -z "$ac_cv_prog_AR"; then
 3565 if test -n "$ac_tool_prefix"; then
 3566   # Extract the first word of "ar", so it can be a program name with args.
 3567 set dummy ar; ac_word=$2
 3568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 3569 echo "configure:3570: checking for $ac_word" >&5
 3570 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
 3571   echo $ac_n "(cached) $ac_c" 1>&6
 3572 else
 3573   if test -n "$AR"; then
 3574   ac_cv_prog_AR="$AR" # Let the user override the test.
 3575 else
 3576   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 3577   ac_dummy="$PATH"
 3578   for ac_dir in $ac_dummy; do
 3579     test -z "$ac_dir" && ac_dir=.
 3580     if test -f $ac_dir/$ac_word; then
 3581       ac_cv_prog_AR="ar"
 3582       break
 3583     fi
 3584   done
 3585   IFS="$ac_save_ifs"
 3586   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
 3587 fi
 3588 fi
 3589 AR="$ac_cv_prog_AR"
 3590 if test -n "$AR"; then
 3591   echo "$ac_t""$AR" 1>&6
 3592 else
 3593   echo "$ac_t""no" 1>&6
 3594 fi
 3595 
 3596 else
 3597   AR="ar"
 3598 fi
 3599 fi
 3600 
 3601 
 3602 
 3603 
 3604 
 3605 echo $ac_n "checking for options to update archives""... $ac_c" 1>&6
 3606 echo "configure:3607: checking for options to update archives" >&5
 3607 if eval "test \"`echo '$''{'cf_cv_ar_flags'+set}'`\" = set"; then
 3608   echo $ac_n "(cached) $ac_c" 1>&6
 3609 else
 3610   
 3611     cf_cv_ar_flags=unknown
 3612     for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
 3613     do
 3614 
 3615         # check if $ARFLAGS already contains this choice
 3616         if test "x$ARFLAGS" != "x" ; then
 3617             cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
 3618             if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
 3619                 cf_cv_ar_flags=
 3620                 break
 3621             fi
 3622         fi
 3623 
 3624         rm -f conftest.$ac_cv_objext
 3625         rm -f conftest.a
 3626 
 3627         cat >conftest.$ac_ext <<EOF
 3628 #line 3629 "configure"
 3629 int testdata[3] = { 123, 456, 789 };
 3630 EOF
 3631         if { (eval echo configure:3632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } ; then
 3632             echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
 3633             $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
 3634             if test -f conftest.a ; then
 3635                 cf_cv_ar_flags=$cf_ar_flags
 3636                 break
 3637             fi
 3638         else
 3639             test -n "$verbose" && echo "    cannot compile test-program" 1>&6
 3640 
 3641 echo "${as_me:-configure}:3642: testing cannot compile test-program ..." 1>&5
 3642 
 3643 
 3644             break
 3645         fi
 3646     done
 3647     rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
 3648 
 3649 fi
 3650 
 3651 echo "$ac_t""$cf_cv_ar_flags" 1>&6
 3652 
 3653 if test -n "$ARFLAGS" ; then
 3654     if test -n "$cf_cv_ar_flags" ; then
 3655         ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
 3656     fi
 3657 else
 3658     ARFLAGS=$cf_cv_ar_flags
 3659 fi
 3660 
 3661 
 3662 
 3663 
 3664 case "$host_cpu:$host_vendor:$host_os" in
 3665     # check for MacOS X, exclude Darwin on ix86
 3666 #   powerpc:apple:darwin*)  #(vi
 3667 #       AC_DEFINE(MAC_OS_X)
 3668 #       ;;
 3669     # check for cygwin environment
 3670     # -DSTATIC is needed for pcre
 3671     *:*:*cygwin*)   #(vi
 3672         PCRE_DEFINES="$PCRE_DEFINES -DSTATIC"
 3673         ;;
 3674     # SEIUX doesn't have any useful preprocessor symbol
 3675     mips:sei:seiux*)    #(vi
 3676         cat >> confdefs.h <<\EOF
 3677 #define SEIUX 1
 3678 EOF
 3679 
 3680         ;;
 3681 esac
 3682 
 3683 echo $ac_n "checking if you would like to use heapsort""... $ac_c" 1>&6
 3684 echo "configure:3685: checking if you would like to use heapsort" >&5
 3685 
 3686 # Check whether --enable-heapsort or --disable-heapsort was given.
 3687 if test "${enable_heapsort+set}" = set; then
 3688   enableval="$enable_heapsort"
 3689   test "$enableval" != no && enableval=yes
 3690     if test "$enableval" != "yes" ; then
 3691     cf_use_heapsort=no 
 3692     else
 3693         cf_use_heapsort=yes
 3694     fi
 3695 else
 3696   enableval=yes 
 3697     cf_use_heapsort=yes
 3698 
 3699 fi
 3700 
 3701 echo "$ac_t""$cf_use_heapsort" 1>&6
 3702 if test "x$cf_use_heapsort" = xyes; then
 3703     for ac_func in heapsort
 3704 do
 3705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 3706 echo "configure:3707: checking for $ac_func" >&5
 3707 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 3708   echo $ac_n "(cached) $ac_c" 1>&6
 3709 else
 3710   cat > conftest.$ac_ext <<EOF
 3711 #line 3712 "configure"
 3712 #include "confdefs.h"
 3713 /* System header to define __stub macros and hopefully few prototypes,
 3714     which can conflict with char $ac_func(); below.  */
 3715 #include <assert.h>
 3716 /* Override any gcc2 internal prototype to avoid an error.  */
 3717 /* We use char because int might match the return type of a gcc2
 3718     builtin and then its argument prototype would still apply.  */
 3719 char $ac_func();
 3720 
 3721 int main() {
 3722 
 3723 /* The GNU C library defines this for functions which it implements
 3724     to always fail with ENOSYS.  Some functions are actually named
 3725     something starting with __ and the normal name is an alias.  */
 3726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 3727 choke me
 3728 #else
 3729 $ac_func();
 3730 #endif
 3731 
 3732 ; return 0; }
 3733 EOF
 3734 if { (eval echo configure:3735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 3735   
 3736   eval "ac_cv_func_$ac_func=yes"
 3737 else
 3738   echo "configure: failed program was:" >&5
 3739   cat conftest.$ac_ext >&5
 3740 
 3741   eval "ac_cv_func_$ac_func=no"
 3742 fi
 3743 rm -rf conftest*
 3744 fi
 3745 
 3746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 3747   echo "$ac_t""yes" 1>&6
 3748     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 3749   cat >> confdefs.h <<EOF
 3750 #define $ac_tr_func 1
 3751 EOF
 3752  
 3753 else
 3754   echo "$ac_t""no" 1>&6
 3755 fi
 3756 done
 3757 
 3758     if test x"$ac_cv_func_heapsort" = xyes; then
 3759         echo $ac_n "checking if its prototype is compatible with qsort""... $ac_c" 1>&6
 3760 echo "configure:3761: checking if its prototype is compatible with qsort" >&5
 3761         cat > conftest.$ac_ext <<EOF
 3762 #line 3763 "configure"
 3763 #include "confdefs.h"
 3764 
 3765 #include <stdlib.h>
 3766 #include <sys/types.h>
 3767 extern int my_compare(const void *, const void *);
 3768 
 3769 int main() {
 3770 
 3771     char *base = 0;
 3772     heapsort((void *)0, 1, 2, my_compare);
 3773 
 3774 ; return 0; }
 3775 EOF
 3776 if { (eval echo configure:3777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 3777   :
 3778 else
 3779   echo "configure: failed program was:" >&5
 3780   cat conftest.$ac_ext >&5
 3781   rm -rf conftest*
 3782   cf_use_heapsort=no
 3783 fi
 3784 rm -f conftest*;
 3785         echo "$ac_t""$cf_use_heapsort" 1>&6
 3786     else
 3787         test -n "$verbose" && echo "    will use our own heapsort function" 1>&6
 3788 
 3789 echo "${as_me:-configure}:3790: testing will use our own heapsort function ..." 1>&5
 3790 
 3791 
 3792         EXTRAO_DEP=''
 3793         EXTRAOBJS="$EXTRAOBJS \$(OBJDIR)/heapsort.o"
 3794     fi
 3795 fi
 3796 if test "x$cf_use_heapsort" = xyes; then
 3797     cat >> confdefs.h <<\EOF
 3798 #define USE_HEAPSORT 1
 3799 EOF
 3800 
 3801 fi
 3802 
 3803 
 3804 # Check whether --with-ispell or --without-ispell was given.
 3805 if test "${with_ispell+set}" = set; then
 3806   withval="$with_ispell"
 3807   case "$withval" in #(vi
 3808   yes)
 3809    { echo "configure: error: expected a value for --with-ispell" 1>&2; exit 1; }
 3810    ;; #(vi
 3811   no)
 3812    ;; #(vi
 3813   *)
 3814    # user supplied option-value for "--with-ispell=path"
 3815    echo $ac_n "checking for ispell""... $ac_c" 1>&6
 3816 echo "configure:3817: checking for ispell" >&5
 3817    ac_cv_path_PATH_ISPELL="$withval"
 3818    cat >> confdefs.h <<EOF
 3819 #define PATH_ISPELL "$withval"
 3820 EOF
 3821    cat >> confdefs.h <<\EOF
 3822 #define HAVE_ISPELL 1
 3823 EOF
 3824    echo "$ac_t""$withval" 1>&6
 3825    ;;
 3826  esac
 3827 else
 3828   
 3829   # user did not specify "--with-ispell"; do automatic check
 3830   # Extract the first word of "ispell", so it can be a program name with args.
 3831 set dummy ispell; ac_word=$2
 3832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 3833 echo "configure:3834: checking for $ac_word" >&5
 3834 if eval "test \"`echo '$''{'ac_cv_path_PATH_ISPELL'+set}'`\" = set"; then
 3835   echo $ac_n "(cached) $ac_c" 1>&6
 3836 else
 3837   case "$PATH_ISPELL" in
 3838   /*)
 3839   ac_cv_path_PATH_ISPELL="$PATH_ISPELL" # Let the user override the test with a path.
 3840   ;;
 3841   ?:/*)          
 3842   ac_cv_path_PATH_ISPELL="$PATH_ISPELL" # Let the user override the test with a dos path.
 3843   ;;
 3844   *)
 3845   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 3846   ac_dummy="$PATH"
 3847   for ac_dir in $ac_dummy; do 
 3848     test -z "$ac_dir" && ac_dir=.
 3849     if test -f $ac_dir/$ac_word; then
 3850       ac_cv_path_PATH_ISPELL="$ac_dir/$ac_word"
 3851       break
 3852     fi
 3853   done
 3854   IFS="$ac_save_ifs"
 3855   ;;
 3856 esac
 3857 fi
 3858 PATH_ISPELL="$ac_cv_path_PATH_ISPELL"
 3859 if test -n "$PATH_ISPELL"; then
 3860   echo "$ac_t""$PATH_ISPELL" 1>&6
 3861 else
 3862   echo "$ac_t""no" 1>&6
 3863 fi
 3864 
 3865   if test -n "$PATH_ISPELL"; then
 3866     cat >> confdefs.h <<EOF
 3867 #define PATH_ISPELL "$PATH_ISPELL"
 3868 EOF
 3869     cat >> confdefs.h <<\EOF
 3870 #define HAVE_ISPELL 1
 3871 EOF
 3872   fi
 3873 
 3874 fi
 3875 
 3876 
 3877 
 3878 # Check whether --with-metamail or --without-metamail was given.
 3879 if test "${with_metamail+set}" = set; then
 3880   withval="$with_metamail"
 3881   case "$withval" in #(vi
 3882   yes)
 3883    { echo "configure: error: expected a value for --with-metamail" 1>&2; exit 1; }
 3884    ;; #(vi
 3885   no)
 3886    ;; #(vi
 3887   *)
 3888    # user supplied option-value for "--with-metamail=path"
 3889    echo $ac_n "checking for metamail""... $ac_c" 1>&6
 3890 echo "configure:3891: checking for metamail" >&5
 3891    ac_cv_path_PATH_METAMAIL="$withval"
 3892    cat >> confdefs.h <<EOF
 3893 #define PATH_METAMAIL "$withval"
 3894 EOF
 3895    cat >> confdefs.h <<\EOF
 3896 #define HAVE_METAMAIL 1
 3897 EOF
 3898    echo "$ac_t""$withval" 1>&6
 3899    ;;
 3900  esac
 3901 else
 3902   
 3903   # user did not specify "--with-metamail"; do automatic check
 3904   # Extract the first word of "metamail", so it can be a program name with args.
 3905 set dummy metamail; ac_word=$2
 3906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 3907 echo "configure:3908: checking for $ac_word" >&5
 3908 if eval "test \"`echo '$''{'ac_cv_path_PATH_METAMAIL'+set}'`\" = set"; then
 3909   echo $ac_n "(cached) $ac_c" 1>&6
 3910 else
 3911   case "$PATH_METAMAIL" in
 3912   /*)
 3913   ac_cv_path_PATH_METAMAIL="$PATH_METAMAIL" # Let the user override the test with a path.
 3914   ;;
 3915   ?:/*)          
 3916   ac_cv_path_PATH_METAMAIL="$PATH_METAMAIL" # Let the user override the test with a dos path.
 3917   ;;
 3918   *)
 3919   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 3920   ac_dummy="$PATH"
 3921   for ac_dir in $ac_dummy; do 
 3922     test -z "$ac_dir" && ac_dir=.
 3923     if test -f $ac_dir/$ac_word; then
 3924       ac_cv_path_PATH_METAMAIL="$ac_dir/$ac_word"
 3925       break
 3926     fi
 3927   done
 3928   IFS="$ac_save_ifs"
 3929   ;;
 3930 esac
 3931 fi
 3932 PATH_METAMAIL="$ac_cv_path_PATH_METAMAIL"
 3933 if test -n "$PATH_METAMAIL"; then
 3934   echo "$ac_t""$PATH_METAMAIL" 1>&6
 3935 else
 3936   echo "$ac_t""no" 1>&6
 3937 fi
 3938 
 3939   if test -n "$PATH_METAMAIL"; then
 3940     cat >> confdefs.h <<EOF
 3941 #define PATH_METAMAIL "$PATH_METAMAIL"
 3942 EOF
 3943     cat >> confdefs.h <<\EOF
 3944 #define HAVE_METAMAIL 1
 3945 EOF
 3946   fi
 3947 
 3948 fi
 3949 
 3950 
 3951 
 3952 # Check whether --with-sum or --without-sum was given.
 3953 if test "${with_sum+set}" = set; then
 3954   withval="$with_sum"
 3955   case "$withval" in #(vi
 3956   yes)
 3957    { echo "configure: error: expected a value for --with-sum" 1>&2; exit 1; }
 3958    ;; #(vi
 3959   no)
 3960    ;; #(vi
 3961   *)
 3962    # user supplied option-value for "--with-sum=path"
 3963    echo $ac_n "checking for sum""... $ac_c" 1>&6
 3964 echo "configure:3965: checking for sum" >&5
 3965    ac_cv_path_PATH_SUM="$withval"
 3966    cat >> confdefs.h <<EOF
 3967 #define PATH_SUM "$withval"
 3968 EOF
 3969    cat >> confdefs.h <<\EOF
 3970 #define HAVE_SUM 1
 3971 EOF
 3972    echo "$ac_t""$withval" 1>&6
 3973    ;;
 3974  esac
 3975 else
 3976   
 3977   # user did not specify "--with-sum"; do automatic check
 3978   # Extract the first word of "sum", so it can be a program name with args.
 3979 set dummy sum; ac_word=$2
 3980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 3981 echo "configure:3982: checking for $ac_word" >&5
 3982 if eval "test \"`echo '$''{'ac_cv_path_PATH_SUM'+set}'`\" = set"; then
 3983   echo $ac_n "(cached) $ac_c" 1>&6
 3984 else
 3985   case "$PATH_SUM" in
 3986   /*)
 3987   ac_cv_path_PATH_SUM="$PATH_SUM" # Let the user override the test with a path.
 3988   ;;
 3989   ?:/*)          
 3990   ac_cv_path_PATH_SUM="$PATH_SUM" # Let the user override the test with a dos path.
 3991   ;;
 3992   *)
 3993   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 3994   ac_dummy="$PATH"
 3995   for ac_dir in $ac_dummy; do 
 3996     test -z "$ac_dir" && ac_dir=.
 3997     if test -f $ac_dir/$ac_word; then
 3998       ac_cv_path_PATH_SUM="$ac_dir/$ac_word"
 3999       break
 4000     fi
 4001   done
 4002   IFS="$ac_save_ifs"
 4003   ;;
 4004 esac
 4005 fi
 4006 PATH_SUM="$ac_cv_path_PATH_SUM"
 4007 if test -n "$PATH_SUM"; then
 4008   echo "$ac_t""$PATH_SUM" 1>&6
 4009 else
 4010   echo "$ac_t""no" 1>&6
 4011 fi
 4012 
 4013   if test -n "$PATH_SUM"; then
 4014     cat >> confdefs.h <<EOF
 4015 #define PATH_SUM "$PATH_SUM"
 4016 EOF
 4017     cat >> confdefs.h <<\EOF
 4018 #define HAVE_SUM 1
 4019 EOF
 4020   fi
 4021 
 4022 fi
 4023 
 4024 
 4025 if test $ac_cv_path_PATH_SUM
 4026 then
 4027 echo $ac_n "checking if $ac_cv_path_PATH_SUM takes -r""... $ac_c" 1>&6
 4028 echo "configure:4029: checking if $ac_cv_path_PATH_SUM takes -r" >&5
 4029 if eval "test \"`echo '$''{'ac_cv_prog_sum_r'+set}'`\" = set"; then
 4030   echo $ac_n "(cached) $ac_c" 1>&6
 4031 else
 4032   
 4033 if { ac_try='$ac_cv_path_PATH_SUM -r config.log 1>&5'; { (eval echo configure:4034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
 4034 then
 4035     ac_cv_prog_sum_r=yes
 4036 else
 4037     ac_cv_prog_sum_r=no
 4038 fi
 4039 
 4040 fi
 4041 
 4042 if test $ac_cv_prog_sum_r = yes; then
 4043     cat >> confdefs.h <<\EOF
 4044 #define SUM_TAKES_DASH_R 1
 4045 EOF
 4046 
 4047     cat >> confdefs.h <<EOF
 4048 #define PATH_SUM_R "$ac_cv_path_PATH_SUM -r"
 4049 EOF
 4050 
 4051 else
 4052     cat >> confdefs.h <<EOF
 4053 #define PATH_SUM_R "$ac_cv_path_PATH_SUM"
 4054 EOF
 4055 
 4056 fi
 4057 echo "$ac_t""$ac_cv_prog_sum_r" 1>&6
 4058 fi
 4059 
 4060 
 4061 
 4062 echo $ac_n "checking for default editor""... $ac_c" 1>&6
 4063 echo "configure:4064: checking for default editor" >&5
 4064 
 4065 # Check whether --with-editor or --without-editor was given.
 4066 if test "${with_editor+set}" = set; then
 4067   withval="$with_editor"
 4068   :
 4069 else
 4070   withval="${DEFAULT_EDITOR}"
 4071 fi
 4072 test -n "$withval" && \
 4073 case "$withval" in #(vi
 4074 yes)
 4075   { echo "configure: error: expected a value for --with-editor" 1>&2; exit 1; }
 4076   ;; #(vi
 4077 no) withval=""
 4078   ;;
 4079 esac
 4080 DEFAULT_EDITOR="$withval"
 4081 
 4082 if test -z "$DEFAULT_EDITOR" ; then
 4083     if test -n "$EDITOR" ; then
 4084         DEFAULT_EDITOR="$EDITOR"
 4085     elif test -n "$VISUAL" ; then
 4086         DEFAULT_EDITOR="$VISUAL"
 4087     else
 4088     # Extract the first word of "vi", so it can be a program name with args.
 4089 set dummy vi; ac_word=$2
 4090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 4091 echo "configure:4092: checking for $ac_word" >&5
 4092 if eval "test \"`echo '$''{'ac_cv_path_DEFAULT_EDITOR'+set}'`\" = set"; then
 4093   echo $ac_n "(cached) $ac_c" 1>&6
 4094 else
 4095   case "$DEFAULT_EDITOR" in
 4096   /*)
 4097   ac_cv_path_DEFAULT_EDITOR="$DEFAULT_EDITOR" # Let the user override the test with a path.
 4098   ;;
 4099   ?:/*)          
 4100   ac_cv_path_DEFAULT_EDITOR="$DEFAULT_EDITOR" # Let the user override the test with a dos path.
 4101   ;;
 4102   *)
 4103   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 4104   ac_dummy="$PATH:/usr/bin:/usr/ucb"
 4105   for ac_dir in $ac_dummy; do 
 4106     test -z "$ac_dir" && ac_dir=.
 4107     if test -f $ac_dir/$ac_word; then
 4108       ac_cv_path_DEFAULT_EDITOR="$ac_dir/$ac_word"
 4109       break
 4110     fi
 4111   done
 4112   IFS="$ac_save_ifs"
 4113   test -z "$ac_cv_path_DEFAULT_EDITOR" && ac_cv_path_DEFAULT_EDITOR="vi"
 4114   ;;
 4115 esac
 4116 fi
 4117 DEFAULT_EDITOR="$ac_cv_path_DEFAULT_EDITOR"
 4118 if test -n "$DEFAULT_EDITOR"; then
 4119   echo "$ac_t""$DEFAULT_EDITOR" 1>&6
 4120 else
 4121   echo "$ac_t""no" 1>&6
 4122 fi
 4123 
 4124     fi
 4125 fi
 4126 echo "$ac_t""$DEFAULT_EDITOR" 1>&6
 4127 cat >> confdefs.h <<EOF
 4128 #define DEFAULT_EDITOR "$DEFAULT_EDITOR"
 4129 EOF
 4130 
 4131 
 4132 
 4133 # Extract the first word of "sendmail", so it can be a program name with args.
 4134 set dummy sendmail; ac_word=$2
 4135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 4136 echo "configure:4137: checking for $ac_word" >&5
 4137 if eval "test \"`echo '$''{'ac_cv_path_DEFAULT_MAILER'+set}'`\" = set"; then
 4138   echo $ac_n "(cached) $ac_c" 1>&6
 4139 else
 4140   case "$DEFAULT_MAILER" in
 4141   /*)
 4142   ac_cv_path_DEFAULT_MAILER="$DEFAULT_MAILER" # Let the user override the test with a path.
 4143   ;;
 4144   ?:/*)          
 4145   ac_cv_path_DEFAULT_MAILER="$DEFAULT_MAILER" # Let the user override the test with a dos path.
 4146   ;;
 4147   *)
 4148   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 4149   ac_dummy="$PATH:/usr/sbin:/usr/lib"
 4150   for ac_dir in $ac_dummy; do 
 4151     test -z "$ac_dir" && ac_dir=.
 4152     if test -f $ac_dir/$ac_word; then
 4153       ac_cv_path_DEFAULT_MAILER="$ac_dir/$ac_word"
 4154       break
 4155     fi
 4156   done
 4157   IFS="$ac_save_ifs"
 4158   ;;
 4159 esac
 4160 fi
 4161 DEFAULT_MAILER="$ac_cv_path_DEFAULT_MAILER"
 4162 if test -n "$DEFAULT_MAILER"; then
 4163   echo "$ac_t""$DEFAULT_MAILER" 1>&6
 4164 else
 4165   echo "$ac_t""no" 1>&6
 4166 fi
 4167 
 4168 
 4169 # Check whether --with-mailer or --without-mailer was given.
 4170 if test "${with_mailer+set}" = set; then
 4171   withval="$with_mailer"
 4172   :
 4173 else
 4174   withval="${DEFAULT_MAILER}"
 4175 fi
 4176 test -n "$withval" && \
 4177 case "$withval" in #(vi
 4178 yes)
 4179   { echo "configure: error: expected a value for --with-mailer" 1>&2; exit 1; }
 4180   ;; #(vi
 4181 no) withval=""
 4182   ;;
 4183 esac
 4184 DEFAULT_MAILER="$withval"
 4185 
 4186 if test -z "$DEFAULT_MAILER" ; then
 4187 # Extract the first word of "mailx", so it can be a program name with args.
 4188 set dummy mailx; ac_word=$2
 4189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 4190 echo "configure:4191: checking for $ac_word" >&5
 4191 if eval "test \"`echo '$''{'ac_cv_path_DEFAULT_MAILER'+set}'`\" = set"; then
 4192   echo $ac_n "(cached) $ac_c" 1>&6
 4193 else
 4194   case "$DEFAULT_MAILER" in
 4195   /*)
 4196   ac_cv_path_DEFAULT_MAILER="$DEFAULT_MAILER" # Let the user override the test with a path.
 4197   ;;
 4198   ?:/*)          
 4199   ac_cv_path_DEFAULT_MAILER="$DEFAULT_MAILER" # Let the user override the test with a dos path.
 4200   ;;
 4201   *)
 4202   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 4203   ac_dummy="$PATH:/usr/bin"
 4204   for ac_dir in $ac_dummy; do 
 4205     test -z "$ac_dir" && ac_dir=.
 4206     if test -f $ac_dir/$ac_word; then
 4207       ac_cv_path_DEFAULT_MAILER="$ac_dir/$ac_word"
 4208       break
 4209     fi
 4210   done
 4211   IFS="$ac_save_ifs"
 4212   ;;
 4213 esac
 4214 fi
 4215 DEFAULT_MAILER="$ac_cv_path_DEFAULT_MAILER"
 4216 if test -n "$DEFAULT_MAILER"; then
 4217   echo "$ac_t""$DEFAULT_MAILER" 1>&6
 4218 else
 4219   echo "$ac_t""no" 1>&6
 4220 fi
 4221 
 4222 fi
 4223 if test -z "$DEFAULT_MAILER" ; then
 4224 # Extract the first word of "mail", so it can be a program name with args.
 4225 set dummy mail; ac_word=$2
 4226 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 4227 echo "configure:4228: checking for $ac_word" >&5
 4228 if eval "test \"`echo '$''{'ac_cv_path_DEFAULT_MAILER'+set}'`\" = set"; then
 4229   echo $ac_n "(cached) $ac_c" 1>&6
 4230 else
 4231   case "$DEFAULT_MAILER" in
 4232   /*)
 4233   ac_cv_path_DEFAULT_MAILER="$DEFAULT_MAILER" # Let the user override the test with a path.
 4234   ;;
 4235   ?:/*)          
 4236   ac_cv_path_DEFAULT_MAILER="$DEFAULT_MAILER" # Let the user override the test with a dos path.
 4237   ;;
 4238   *)
 4239   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 4240   ac_dummy="$PATH:/usr/bin"
 4241   for ac_dir in $ac_dummy; do 
 4242     test -z "$ac_dir" && ac_dir=.
 4243     if test -f $ac_dir/$ac_word; then
 4244       ac_cv_path_DEFAULT_MAILER="$ac_dir/$ac_word"
 4245       break
 4246     fi
 4247   done
 4248   IFS="$ac_save_ifs"
 4249   ;;
 4250 esac
 4251 fi
 4252 DEFAULT_MAILER="$ac_cv_path_DEFAULT_MAILER"
 4253 if test -n "$DEFAULT_MAILER"; then
 4254   echo "$ac_t""$DEFAULT_MAILER" 1>&6
 4255 else
 4256   echo "$ac_t""no" 1>&6
 4257 fi
 4258 
 4259 fi
 4260 echo $ac_n "checking for default mailer""... $ac_c" 1>&6
 4261 echo "configure:4262: checking for default mailer" >&5
 4262 if test -n "$DEFAULT_MAILER" ; then
 4263     
 4264 case $cf_cv_system_name in #(vi
 4265 os2*|cygwin*)
 4266     ac_cv_path_DEFAULT_MAILER=`echo "$ac_cv_path_DEFAULT_MAILER" | sed -e 's%\\\\%/%g'`
 4267     ;;
 4268 esac
 4269 
 4270     
 4271 case $cf_cv_system_name in #(vi
 4272 os2*|cygwin*)
 4273     DEFAULT_MAILER=`echo "$DEFAULT_MAILER" | sed -e 's%\\\\%/%g'`
 4274     ;;
 4275 esac
 4276 
 4277     cat >> confdefs.h <<EOF
 4278 #define DEFAULT_MAILER "$DEFAULT_MAILER"
 4279 EOF
 4280 
 4281 else
 4282     DEFAULT_MAILER=none
 4283 fi
 4284 echo "$ac_t""$DEFAULT_MAILER" 1>&6
 4285 
 4286 
 4287 echo $ac_n "checking for incoming-mail directory""... $ac_c" 1>&6
 4288 echo "configure:4289: checking for incoming-mail directory" >&5
 4289 
 4290 # Check whether --with-mailbox or --without-mailbox was given.
 4291 if test "${with_mailbox+set}" = set; then
 4292   withval="$with_mailbox"
 4293   :
 4294 else
 4295   withval="${DEFAULT_MAILBOX}"
 4296 fi
 4297 test -n "$withval" && \
 4298 case "$withval" in #(vi
 4299 yes)
 4300   { echo "configure: error: expected a value for --with-mailbox" 1>&2; exit 1; }
 4301   ;; #(vi
 4302 no) withval=""
 4303   ;;
 4304 esac
 4305 DEFAULT_MAILBOX="$withval"
 4306 
 4307 if test -z "$DEFAULT_MAILBOX" ; then
 4308 for cf_dir in \
 4309     /var/spool/mail \
 4310     /usr/spool/mail \
 4311     /var/mail \
 4312     /usr/mail \
 4313     /mail
 4314     do
 4315         if test -d $cf_dir ; then
 4316         DEFAULT_MAILBOX=$cf_dir
 4317         break
 4318     fi
 4319     done
 4320 fi
 4321 if test -n "$DEFAULT_MAILBOX" ; then
 4322     cat >> confdefs.h <<EOF
 4323 #define DEFAULT_MAILBOX "$DEFAULT_MAILBOX"
 4324 EOF
 4325 
 4326 else
 4327     DEFAULT_MAILBOX=none
 4328 fi
 4329 echo "$ac_t""$DEFAULT_MAILBOX" 1>&6
 4330 
 4331 
 4332 ## PGP Support
 4333 echo $ac_n "checking if you want PGP/GPG-Support""... $ac_c" 1>&6
 4334 echo "configure:4335: checking if you want PGP/GPG-Support" >&5
 4335 
 4336 # Check whether --enable-pgp-gpg or --disable-pgp-gpg was given.
 4337 if test "${enable_pgp_gpg+set}" = set; then
 4338   enableval="$enable_pgp_gpg"
 4339   test "$enableval" != no && enableval=yes
 4340     if test "$enableval" != "yes" ; then
 4341     USE_PGP_GPG=no 
 4342     else
 4343         USE_PGP_GPG=yes
 4344     fi
 4345 else
 4346   enableval=yes 
 4347     USE_PGP_GPG=yes
 4348 
 4349 fi
 4350 
 4351 echo "$ac_t""$enableval" 1>&6
 4352 if test "$USE_PGP_GPG" = "yes" ; then
 4353     
 4354 # Check whether --with-pgp or --without-pgp was given.
 4355 if test "${with_pgp+set}" = set; then
 4356   withval="$with_pgp"
 4357   case "$withval" in #(vi
 4358   yes)
 4359    { echo "configure: error: expected a value for --with-pgp" 1>&2; exit 1; }
 4360    ;; #(vi
 4361   no)
 4362    ;; #(vi
 4363   *)
 4364    # user supplied option-value for "--with-pgp=path"
 4365    echo $ac_n "checking for pgp""... $ac_c" 1>&6
 4366 echo "configure:4367: checking for pgp" >&5
 4367    ac_cv_path_PATH_PGP="$withval"
 4368    cat >> confdefs.h <<EOF
 4369 #define PATH_PGP "$withval"
 4370 EOF
 4371    cat >> confdefs.h <<\EOF
 4372 #define HAVE_PGP 1
 4373 EOF
 4374    echo "$ac_t""$withval" 1>&6
 4375    ;;
 4376  esac
 4377 else
 4378   
 4379   # user did not specify "--with-pgp"; do automatic check
 4380   # Extract the first word of "pgp", so it can be a program name with args.
 4381 set dummy pgp; ac_word=$2
 4382 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 4383 echo "configure:4384: checking for $ac_word" >&5
 4384 if eval "test \"`echo '$''{'ac_cv_path_PATH_PGP'+set}'`\" = set"; then
 4385   echo $ac_n "(cached) $ac_c" 1>&6
 4386 else
 4387   case "$PATH_PGP" in
 4388   /*)
 4389   ac_cv_path_PATH_PGP="$PATH_PGP" # Let the user override the test with a path.
 4390   ;;
 4391   ?:/*)          
 4392   ac_cv_path_PATH_PGP="$PATH_PGP" # Let the user override the test with a dos path.
 4393   ;;
 4394   *)
 4395   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 4396   ac_dummy="$PATH"
 4397   for ac_dir in $ac_dummy; do 
 4398     test -z "$ac_dir" && ac_dir=.
 4399     if test -f $ac_dir/$ac_word; then
 4400       ac_cv_path_PATH_PGP="$ac_dir/$ac_word"
 4401       break
 4402     fi
 4403   done
 4404   IFS="$ac_save_ifs"
 4405   ;;
 4406 esac
 4407 fi
 4408 PATH_PGP="$ac_cv_path_PATH_PGP"
 4409 if test -n "$PATH_PGP"; then
 4410   echo "$ac_t""$PATH_PGP" 1>&6
 4411 else
 4412   echo "$ac_t""no" 1>&6
 4413 fi
 4414 
 4415   if test -n "$PATH_PGP"; then
 4416     cat >> confdefs.h <<EOF
 4417 #define PATH_PGP "$PATH_PGP"
 4418 EOF
 4419     cat >> confdefs.h <<\EOF
 4420 #define HAVE_PGP 1
 4421 EOF
 4422   fi
 4423 
 4424 fi
 4425 
 4426     # FIXME: check if pgp is pgp2 or pgp6
 4427 
 4428     
 4429 # Check whether --with-pgpk or --without-pgpk was given.
 4430 if test "${with_pgpk+set}" = set; then
 4431   withval="$with_pgpk"
 4432   case "$withval" in #(vi
 4433   yes)
 4434    { echo "configure: error: expected a value for --with-pgpk" 1>&2; exit 1; }
 4435    ;; #(vi
 4436   no)
 4437    ;; #(vi
 4438   *)
 4439    # user supplied option-value for "--with-pgpk=path"
 4440    echo $ac_n "checking for pgpk""... $ac_c" 1>&6
 4441 echo "configure:4442: checking for pgpk" >&5
 4442    ac_cv_path_PATH_PGPK="$withval"
 4443    cat >> confdefs.h <<EOF
 4444 #define PATH_PGPK "$withval"
 4445 EOF
 4446    cat >> confdefs.h <<\EOF
 4447 #define HAVE_PGPK 1
 4448 EOF
 4449    echo "$ac_t""$withval" 1>&6
 4450    ;;
 4451  esac
 4452 else
 4453   
 4454   # user did not specify "--with-pgpk"; do automatic check
 4455   # Extract the first word of "pgpk", so it can be a program name with args.
 4456 set dummy pgpk; ac_word=$2
 4457 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 4458 echo "configure:4459: checking for $ac_word" >&5
 4459 if eval "test \"`echo '$''{'ac_cv_path_PATH_PGPK'+set}'`\" = set"; then
 4460   echo $ac_n "(cached) $ac_c" 1>&6
 4461 else
 4462   case "$PATH_PGPK" in
 4463   /*)
 4464   ac_cv_path_PATH_PGPK="$PATH_PGPK" # Let the user override the test with a path.
 4465   ;;
 4466   ?:/*)          
 4467   ac_cv_path_PATH_PGPK="$PATH_PGPK" # Let the user override the test with a dos path.
 4468   ;;
 4469   *)
 4470   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 4471   ac_dummy="$PATH"
 4472   for ac_dir in $ac_dummy; do 
 4473     test -z "$ac_dir" && ac_dir=.
 4474     if test -f $ac_dir/$ac_word; then
 4475       ac_cv_path_PATH_PGPK="$ac_dir/$ac_word"
 4476       break
 4477     fi
 4478   done
 4479   IFS="$ac_save_ifs"
 4480   ;;
 4481 esac
 4482 fi
 4483 PATH_PGPK="$ac_cv_path_PATH_PGPK"
 4484 if test -n "$PATH_PGPK"; then
 4485   echo "$ac_t""$PATH_PGPK" 1>&6
 4486 else
 4487   echo "$ac_t""no" 1>&6
 4488 fi
 4489 
 4490   if test -n "$PATH_PGPK"; then
 4491     cat >> confdefs.h <<EOF
 4492 #define PATH_PGPK "$PATH_PGPK"
 4493 EOF
 4494     cat >> confdefs.h <<\EOF
 4495 #define HAVE_PGPK 1
 4496 EOF
 4497   fi
 4498 
 4499 fi
 4500 
 4501     # FIXME: remove tailing k
 4502 
 4503     
 4504 # Check whether --with-gpg or --without-gpg was given.
 4505 if test "${with_gpg+set}" = set; then
 4506   withval="$with_gpg"
 4507   case "$withval" in #(vi
 4508   yes)
 4509    { echo "configure: error: expected a value for --with-gpg" 1>&2; exit 1; }
 4510    ;; #(vi
 4511   no)
 4512    ;; #(vi
 4513   *)
 4514    # user supplied option-value for "--with-gpg=path"
 4515    echo $ac_n "checking for gpg""... $ac_c" 1>&6
 4516 echo "configure:4517: checking for gpg" >&5
 4517    ac_cv_path_PATH_GPG="$withval"
 4518    cat >> confdefs.h <<EOF
 4519 #define PATH_GPG "$withval"
 4520 EOF
 4521    cat >> confdefs.h <<\EOF
 4522 #define HAVE_GPG 1
 4523 EOF
 4524    echo "$ac_t""$withval" 1>&6
 4525    ;;
 4526  esac
 4527 else
 4528   
 4529   # user did not specify "--with-gpg"; do automatic check
 4530   # Extract the first word of "gpg", so it can be a program name with args.
 4531 set dummy gpg; ac_word=$2
 4532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 4533 echo "configure:4534: checking for $ac_word" >&5
 4534 if eval "test \"`echo '$''{'ac_cv_path_PATH_GPG'+set}'`\" = set"; then
 4535   echo $ac_n "(cached) $ac_c" 1>&6
 4536 else
 4537   case "$PATH_GPG" in
 4538   /*)
 4539   ac_cv_path_PATH_GPG="$PATH_GPG" # Let the user override the test with a path.
 4540   ;;
 4541   ?:/*)          
 4542   ac_cv_path_PATH_GPG="$PATH_GPG" # Let the user override the test with a dos path.
 4543   ;;
 4544   *)
 4545   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 4546   ac_dummy="$PATH"
 4547   for ac_dir in $ac_dummy; do 
 4548     test -z "$ac_dir" && ac_dir=.
 4549     if test -f $ac_dir/$ac_word; then
 4550       ac_cv_path_PATH_GPG="$ac_dir/$ac_word"
 4551       break
 4552     fi
 4553   done
 4554   IFS="$ac_save_ifs"
 4555   ;;
 4556 esac
 4557 fi
 4558 PATH_GPG="$ac_cv_path_PATH_GPG"
 4559 if test -n "$PATH_GPG"; then
 4560   echo "$ac_t""$PATH_GPG" 1>&6
 4561 else
 4562   echo "$ac_t""no" 1>&6
 4563 fi
 4564 
 4565   if test -n "$PATH_GPG"; then
 4566     cat >> confdefs.h <<EOF
 4567 #define PATH_GPG "$PATH_GPG"
 4568 EOF
 4569     cat >> confdefs.h <<\EOF
 4570 #define HAVE_GPG 1
 4571 EOF
 4572   fi
 4573 
 4574 fi
 4575 
 4576 fi
 4577 
 4578 ## slrnface
 4579 
 4580 # Check whether --with-slrnface or --without-slrnface was given.
 4581 if test "${with_slrnface+set}" = set; then
 4582   withval="$with_slrnface"
 4583   case "$withval" in #(vi
 4584   yes)
 4585    { echo "configure: error: expected a value for --with-slrnface" 1>&2; exit 1; }
 4586    ;; #(vi
 4587   no)
 4588    ;; #(vi
 4589   *)
 4590    # user supplied option-value for "--with-slrnface=path"
 4591    echo $ac_n "checking for slrnface""... $ac_c" 1>&6
 4592 echo "configure:4593: checking for slrnface" >&5
 4593    ac_cv_path_PATH_SLRNFACE="$withval"
 4594    cat >> confdefs.h <<EOF
 4595 #define PATH_SLRNFACE "$withval"
 4596 EOF
 4597    cat >> confdefs.h <<\EOF
 4598 #define HAVE_SLRNFACE 1
 4599 EOF
 4600    echo "$ac_t""$withval" 1>&6
 4601    ;;
 4602  esac
 4603 else
 4604   
 4605   # user did not specify "--with-slrnface"; do automatic check
 4606   # Extract the first word of "slrnface", so it can be a program name with args.
 4607 set dummy slrnface; ac_word=$2
 4608 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 4609 echo "configure:4610: checking for $ac_word" >&5
 4610 if eval "test \"`echo '$''{'ac_cv_path_PATH_SLRNFACE'+set}'`\" = set"; then
 4611   echo $ac_n "(cached) $ac_c" 1>&6
 4612 else
 4613   case "$PATH_SLRNFACE" in
 4614   /*)
 4615   ac_cv_path_PATH_SLRNFACE="$PATH_SLRNFACE" # Let the user override the test with a path.
 4616   ;;
 4617   ?:/*)          
 4618   ac_cv_path_PATH_SLRNFACE="$PATH_SLRNFACE" # Let the user override the test with a dos path.
 4619   ;;
 4620   *)
 4621   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 4622   ac_dummy="$PATH"
 4623   for ac_dir in $ac_dummy; do 
 4624     test -z "$ac_dir" && ac_dir=.
 4625     if test -f $ac_dir/$ac_word; then
 4626       ac_cv_path_PATH_SLRNFACE="$ac_dir/$ac_word"
 4627       break
 4628     fi
 4629   done
 4630   IFS="$ac_save_ifs"
 4631   ;;
 4632 esac
 4633 fi
 4634 PATH_SLRNFACE="$ac_cv_path_PATH_SLRNFACE"
 4635 if test -n "$PATH_SLRNFACE"; then
 4636   echo "$ac_t""$PATH_SLRNFACE" 1>&6
 4637 else
 4638   echo "$ac_t""no" 1>&6
 4639 fi
 4640 
 4641   if test -n "$PATH_SLRNFACE"; then
 4642     cat >> confdefs.h <<EOF
 4643 #define PATH_SLRNFACE "$PATH_SLRNFACE"
 4644 EOF
 4645     cat >> confdefs.h <<\EOF
 4646 #define HAVE_SLRNFACE 1
 4647 EOF
 4648   fi
 4649 
 4650 fi
 4651 
 4652 if test -n "$ac_cv_path_PATH_SLRNFACE"; then
 4653     EXTRAO_DEP=""
 4654     EXTRAOBJS="$EXTRAOBJS \$(OBJDIR)/xface.o"
 4655 fi
 4656 
 4657 ## Default shell
 4658 
 4659 # Check whether --with-shell or --without-shell was given.
 4660 if test "${with_shell+set}" = set; then
 4661   withval="$with_shell"
 4662   cf_cv_default_shell=$withval
 4663 else
 4664   cf_cv_default_shell=
 4665 fi
 4666 
 4667 
 4668 echo $ac_n "checking for the default shell program""... $ac_c" 1>&6
 4669 echo "configure:4670: checking for the default shell program" >&5
 4670 cf_shell_progs="$cf_cv_default_shell"
 4671 if test -z "$cf_shell_progs" ; then
 4672     cf_shell_progs="sh ksh bash zsh pdksh mksh jsh keysh ash dash"
 4673     # TIN preferred default shell for BSD systems is csh. Others are sh.
 4674     cat > conftest.$ac_ext <<EOF
 4675 #line 4676 "configure"
 4676 #include "confdefs.h"
 4677 
 4678 #include <sys/params.h>
 4679 int main() {
 4680 
 4681 #if (defined(BSD) && (BSD >= 199103))
 4682 #else
 4683 make an error
 4684 #endif
 4685 
 4686 ; return 0; }
 4687 EOF
 4688 if { (eval echo configure:4689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 4689   rm -rf conftest*
 4690   $cf_shell_progs="csh tcsh $cf_shell_progs"
 4691 else
 4692   echo "configure: failed program was:" >&5
 4693   cat conftest.$ac_ext >&5
 4694 fi
 4695 rm -f conftest*
 4696 fi
 4697 
 4698 echo "${as_me:-configure}:4699: testing paths of shell programs: $cf_shell_progs ..." 1>&5
 4699 
 4700 if test -s /etc/shells && test `egrep -c -v '^(#| |    |$)' /etc/shells` -gt 0; then
 4701     
 4702 echo "${as_me:-configure}:4703: testing /etc/shells ..." 1>&5
 4703 
 4704     for cf_prog in $cf_shell_progs
 4705     do
 4706         case $cf_prog in
 4707             /*)
 4708                 cf_pattern="^"$cf_prog"$"
 4709                 ;;
 4710             */*)
 4711                 { echo "configure: error: Program name must be absolute or filename: $cf_prog" 1>&2; exit 1; }
 4712                 ;;
 4713             *)
 4714                 cf_pattern="/"$cf_prog"$"
 4715                 ;;
 4716         esac
 4717         cf_path=`egrep $cf_pattern /etc/shells 2>/dev/null`
 4718         if test -n "$cf_path"
 4719         then
 4720             for cf_shell in $cf_path
 4721             do
 4722                 if test -f "$cf_shell"
 4723                 then
 4724                     DEFAULT_SHELL="$cf_shell"
 4725                     break
 4726                 fi
 4727             done
 4728         fi
 4729         if test -n "$DEFAULT_SHELL"
 4730         then
 4731             break
 4732         fi
 4733     done
 4734     echo "$ac_t""$DEFAULT_SHELL" 1>&6
 4735 else
 4736     
 4737 echo "${as_me:-configure}:4738: testing $PATH ..." 1>&5
 4738 
 4739 for ac_prog in $cf_shell_progs
 4740 do
 4741 # Extract the first word of "$ac_prog", so it can be a program name with args.
 4742 set dummy $ac_prog; ac_word=$2
 4743 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 4744 echo "configure:4745: checking for $ac_word" >&5
 4745 if eval "test \"`echo '$''{'ac_cv_path_DEFAULT_SHELL'+set}'`\" = set"; then
 4746   echo $ac_n "(cached) $ac_c" 1>&6
 4747 else
 4748   case "$DEFAULT_SHELL" in
 4749   /*)
 4750   ac_cv_path_DEFAULT_SHELL="$DEFAULT_SHELL" # Let the user override the test with a path.
 4751   ;;
 4752   ?:/*)          
 4753   ac_cv_path_DEFAULT_SHELL="$DEFAULT_SHELL" # Let the user override the test with a dos path.
 4754   ;;
 4755   *)
 4756   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 4757   ac_dummy="$PATH:/bin:/usr/bin:/usr/xpg4/bin:/bin/posix:/usr/bin/posix:/usr/old/bin:/usr/local/bin"
 4758   for ac_dir in $ac_dummy; do 
 4759     test -z "$ac_dir" && ac_dir=.
 4760     if test -f $ac_dir/$ac_word; then
 4761       ac_cv_path_DEFAULT_SHELL="$ac_dir/$ac_word"
 4762       break
 4763     fi
 4764   done
 4765   IFS="$ac_save_ifs"
 4766   ;;
 4767 esac
 4768 fi
 4769 DEFAULT_SHELL="$ac_cv_path_DEFAULT_SHELL"
 4770 if test -n "$DEFAULT_SHELL"; then
 4771   echo "$ac_t""$DEFAULT_SHELL" 1>&6
 4772 else
 4773   echo "$ac_t""no" 1>&6
 4774 fi
 4775 
 4776 test -n "$DEFAULT_SHELL" && break
 4777 done
 4778 
 4779 fi
 4780 if test -z "$DEFAULT_SHELL" ; then
 4781     echo "configure: warning: Cannot find the default shell you specified: $cf_shell_progs" 1>&2
 4782     if test -f /bin/false ; then
 4783         echo "configure: warning: Using /bin/false instead" 1>&2
 4784         DEFAULT_SHELL=/bin/false
 4785     else
 4786         { echo "configure: error: Cannot use /bin/false because it does not exist" 1>&2; exit 1; }
 4787     fi
 4788 fi
 4789 cat >> confdefs.h <<EOF
 4790 #define DEFAULT_SHELL "$DEFAULT_SHELL"
 4791 EOF
 4792 
 4793 
 4794 
 4795 ### check for this early, since it'll override several options
 4796 echo $ac_n "checking if NNTP-support will be used""... $ac_c" 1>&6
 4797 echo "configure:4798: checking if NNTP-support will be used" >&5
 4798 
 4799 # Check whether --enable-nntp or --disable-nntp was given.
 4800 if test "${enable_nntp+set}" = set; then
 4801   enableval="$enable_nntp"
 4802   test "$enableval" != no && enableval=yes
 4803     if test "$enableval" != "yes" ; then
 4804     USE_NNTP=no 
 4805     else
 4806         USE_NNTP=yes
 4807     fi
 4808 else
 4809   enableval=yes 
 4810     USE_NNTP=yes
 4811 
 4812 fi
 4813 
 4814 echo "$ac_t""$enableval" 1>&6
 4815 
 4816 USE_SPOOLDIR=yes
 4817 if test "$USE_NNTP" = "yes" ; then
 4818 echo $ac_n "checking whether to be NNTP_ONLY""... $ac_c" 1>&6
 4819 echo "configure:4820: checking whether to be NNTP_ONLY" >&5
 4820 
 4821 # Check whether --enable-nntp-only or --disable-nntp-only was given.
 4822 if test "${enable_nntp_only+set}" = set; then
 4823   enableval="$enable_nntp_only"
 4824   test "$enableval" != yes && enableval=no
 4825     if test "$enableval" != "no" ; then
 4826     cat >> confdefs.h <<\EOF
 4827 #define NNTP_ONLY 1
 4828 EOF
 4829 
 4830      USE_SPOOLDIR=no 
 4831     else
 4832         cat >> confdefs.h <<\EOF
 4833 #define NNTP_ABLE 1
 4834 EOF
 4835 
 4836     fi
 4837 else
 4838   enableval=no 
 4839     cat >> confdefs.h <<\EOF
 4840 #define NNTP_ABLE 1
 4841 EOF
 4842 
 4843 
 4844 fi
 4845 
 4846 echo "$ac_t""$enableval" 1>&6
 4847 fi
 4848 
 4849 ### use option --enable-debug to compile-in test/development code
 4850 echo $ac_n "checking if you want to compile-in debug support""... $ac_c" 1>&6
 4851 echo "configure:4852: checking if you want to compile-in debug support" >&5
 4852 
 4853 # Check whether --enable-debug or --disable-debug was given.
 4854 if test "${enable_debug+set}" = set; then
 4855   enableval="$enable_debug"
 4856   test "$enableval" != yes && enableval=no
 4857     if test "$enableval" != "no" ; then
 4858     ENABLE_DEBUG=''
 4859     CFLAGS="-g $CFLAGS"
 4860     LDFLAGS="-g $LDFLAGS" 
 4861     else
 4862         ENABLE_DEBUG='#'
 4863     test -z "$save_CFLAGS" && CFLAGS=`echo $CFLAGS|sed -e 's/-g //' -e 's/-g$//'`
 4864     fi
 4865 else
 4866   enableval=no 
 4867     ENABLE_DEBUG='#'
 4868     test -z "$save_CFLAGS" && CFLAGS=`echo $CFLAGS|sed -e 's/-g //' -e 's/-g$//'`
 4869 
 4870 fi
 4871 
 4872 echo "$ac_t""$enableval" 1>&6
 4873 
 4874 
 4875 ### use option --disable-echo to suppress full display compiling commands
 4876 
 4877 echo $ac_n "checking if you want to see long compiling messages""... $ac_c" 1>&6
 4878 echo "configure:4879: checking if you want to see long compiling messages" >&5
 4879 
 4880 # Check whether --enable-echo or --disable-echo was given.
 4881 if test "${enable_echo+set}" = set; then
 4882   enableval="$enable_echo"
 4883   test "$enableval" != no && enableval=yes
 4884     if test "$enableval" != "yes" ; then
 4885     
 4886     ECHO_LT='--silent'
 4887     ECHO_LD='@echo linking $@;'
 4888     RULE_CC='@echo compiling $<'
 4889     SHOW_CC='@echo compiling $@'
 4890     ECHO_CC='@'
 4891  
 4892     else
 4893         
 4894     ECHO_LT=''
 4895     ECHO_LD=''
 4896     RULE_CC=''
 4897     SHOW_CC=''
 4898     ECHO_CC=''
 4899 
 4900     fi
 4901 else
 4902   enableval=yes 
 4903     
 4904     ECHO_LT=''
 4905     ECHO_LD=''
 4906     RULE_CC=''
 4907     SHOW_CC=''
 4908     ECHO_CC=''
 4909 
 4910 
 4911 fi
 4912 
 4913 echo "$ac_t""$enableval" 1>&6
 4914 
 4915 
 4916 
 4917 
 4918 
 4919 
 4920 
 4921 ### use option --enable-prototypes to turn on optional prototypes
 4922 echo $ac_n "checking if you want to compile with fallback prototypes""... $ac_c" 1>&6
 4923 echo "configure:4924: checking if you want to compile with fallback prototypes" >&5
 4924 
 4925 # Check whether --enable-prototypes or --disable-prototypes was given.
 4926 if test "${enable_prototypes+set}" = set; then
 4927   enableval="$enable_prototypes"
 4928   test "$enableval" != yes && enableval=no
 4929     if test "$enableval" != "no" ; then
 4930     with_decl_check=yes 
 4931     else
 4932         with_decl_check=no
 4933     fi
 4934 else
 4935   enableval=no 
 4936     with_decl_check=no
 4937 
 4938 fi
 4939 
 4940 echo "$ac_t""$enableval" 1>&6
 4941 
 4942 ### use option --enable-warnings to turn on all gcc warnings
 4943 EXTRA_CFLAGS=""
 4944 if test -n "$GCC"
 4945 then
 4946 echo $ac_n "checking if you want to turn on gcc warnings""... $ac_c" 1>&6
 4947 echo "configure:4948: checking if you want to turn on gcc warnings" >&5
 4948 
 4949 # Check whether --enable-warnings or --disable-warnings was given.
 4950 if test "${enable_warnings+set}" = set; then
 4951   enableval="$enable_warnings"
 4952   test "$enableval" != yes && enableval=no
 4953     if test "$enableval" != "no" ; then
 4954     with_warnings=yes 
 4955     else
 4956         with_warnings=no
 4957     fi
 4958 else
 4959   enableval=no 
 4960     with_warnings=no
 4961 
 4962 fi
 4963 
 4964 echo "$ac_t""$with_warnings" 1>&6
 4965 if test "$with_warnings" = "yes"
 4966 then
 4967     with_ext_const=yes
 4968     
 4969 
 4970 
 4971 
 4972 INTEL_COMPILER=no
 4973 
 4974 if test "$GCC" = yes ; then
 4975     case $host_os in
 4976     (linux*|gnu*)
 4977         echo $ac_n "checking if this is really Intel C compiler""... $ac_c" 1>&6
 4978 echo "configure:4979: checking if this is really Intel C compiler" >&5
 4979         cf_save_CFLAGS="$CFLAGS"
 4980         CFLAGS="$CFLAGS -no-gcc"
 4981         cat > conftest.$ac_ext <<EOF
 4982 #line 4983 "configure"
 4983 #include "confdefs.h"
 4984 
 4985 int main() {
 4986 
 4987 #ifdef __INTEL_COMPILER
 4988 #else
 4989 make an error
 4990 #endif
 4991 
 4992 ; return 0; }
 4993 EOF
 4994 if { (eval echo configure:4995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 4995   rm -rf conftest*
 4996   INTEL_COMPILER=yes
 4997 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
 4998 
 4999 else
 5000   echo "configure: failed program was:" >&5
 5001   cat conftest.$ac_ext >&5
 5002 fi
 5003 rm -f conftest*
 5004         CFLAGS="$cf_save_CFLAGS"
 5005         echo "$ac_t""$INTEL_COMPILER" 1>&6
 5006         ;;
 5007     esac
 5008 fi
 5009 
 5010 
 5011 CLANG_COMPILER=no
 5012 
 5013 if test "$GCC" = yes ; then
 5014     echo $ac_n "checking if this is really Clang C compiler""... $ac_c" 1>&6
 5015 echo "configure:5016: checking if this is really Clang C compiler" >&5
 5016     cf_save_CFLAGS="$CFLAGS"
 5017     CFLAGS="$CFLAGS -Qunused-arguments"
 5018     cat > conftest.$ac_ext <<EOF
 5019 #line 5020 "configure"
 5020 #include "confdefs.h"
 5021 
 5022 int main() {
 5023 
 5024 #ifdef __clang__
 5025 #else
 5026 make an error
 5027 #endif
 5028 
 5029 ; return 0; }
 5030 EOF
 5031 if { (eval echo configure:5032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 5032   rm -rf conftest*
 5033   CLANG_COMPILER=yes
 5034 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
 5035 
 5036 else
 5037   echo "configure: failed program was:" >&5
 5038   cat conftest.$ac_ext >&5
 5039 fi
 5040 rm -f conftest*
 5041     CFLAGS="$cf_save_CFLAGS"
 5042     echo "$ac_t""$CLANG_COMPILER" 1>&6
 5043 fi
 5044 
 5045 
 5046 cat > conftest.$ac_ext <<EOF
 5047 #line 5048 "${as_me:-configure}"
 5048 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
 5049 EOF
 5050 
 5051 if test "$INTEL_COMPILER" = yes
 5052 then
 5053 # The "-wdXXX" options suppress warnings:
 5054 # remark #1419: external declaration in primary source file
 5055 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
 5056 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
 5057 # remark #193: zero used for undefined preprocessing identifier
 5058 # remark #593: variable "curs_sb_left_arrow" was set but never used
 5059 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
 5060 # remark #869: parameter "tw" was never referenced
 5061 # remark #981: operands are evaluated in unspecified order
 5062 # warning #279: controlling expression is constant
 5063 
 5064     echo "checking for $CC warning options" 1>&6
 5065 echo "configure:5066: checking for $CC warning options" >&5
 5066     cf_save_CFLAGS="$CFLAGS"
 5067     EXTRA_CFLAGS="-Wall"
 5068     for cf_opt in \
 5069         wd1419 \
 5070         wd1683 \
 5071         wd1684 \
 5072         wd193 \
 5073         wd593 \
 5074         wd279 \
 5075         wd810 \
 5076         wd869 \
 5077         wd981
 5078     do
 5079         CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
 5080         if { (eval echo configure:5081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 5081             test -n "$verbose" && echo "$ac_t""... -$cf_opt" 1>&6
 5082             EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
 5083         fi
 5084     done
 5085     CFLAGS="$cf_save_CFLAGS"
 5086 
 5087 elif test "$GCC" = yes
 5088 then
 5089     echo "checking for $CC warning options" 1>&6
 5090 echo "configure:5091: checking for $CC warning options" >&5
 5091     cf_save_CFLAGS="$CFLAGS"
 5092     EXTRA_CFLAGS=
 5093     cf_warn_CONST=""
 5094     test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
 5095     cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
 5096     test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
 5097     for cf_opt in W Wall \
 5098         Wbad-function-cast \
 5099         Wcast-align \
 5100         Wcast-qual \
 5101         Wdeclaration-after-statement \
 5102         Wextra \
 5103         Winline \
 5104         Wmissing-declarations \
 5105         Wmissing-prototypes \
 5106         Wnested-externs \
 5107         Wpointer-arith \
 5108         Wshadow \
 5109         Wstrict-prototypes \
 5110         Wundef $cf_gcc_warnings $cf_warn_CONST 
 5111     do
 5112         CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
 5113         if { (eval echo configure:5114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 5114             test -n "$verbose" && echo "$ac_t""... -$cf_opt" 1>&6
 5115             case $cf_opt in
 5116             (Wcast-qual)
 5117                 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
 5118                 ;;
 5119             (Winline)
 5120                 case $GCC_VERSION in
 5121                 ([34].*)
 5122                     test -n "$verbose" && echo "    feature is broken in gcc $GCC_VERSION" 1>&6
 5123 
 5124 echo "${as_me:-configure}:5125: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
 5125 
 5126 
 5127                     continue;;
 5128                 esac
 5129                 ;;
 5130             (Wpointer-arith)
 5131                 case $GCC_VERSION in
 5132                 ([12].*)
 5133                     test -n "$verbose" && echo "    feature is broken in gcc $GCC_VERSION" 1>&6
 5134 
 5135 echo "${as_me:-configure}:5136: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
 5136 
 5137 
 5138                     continue;;
 5139                 esac
 5140                 ;;
 5141             esac
 5142             EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
 5143         fi
 5144     done
 5145     CFLAGS="$cf_save_CFLAGS"
 5146 fi
 5147 rm -rf conftest*
 5148 
 5149 
 5150 
 5151 fi
 5152 fi
 5153 
 5154 ## !NNTP_ONLY
 5155 if test "$USE_SPOOLDIR" = "yes"; then
 5156     ## options for directories
 5157     echo $ac_n "checking for news-library path""... $ac_c" 1>&6
 5158 echo "configure:5159: checking for news-library path" >&5
 5159     
 5160 # Check whether --with-libdir or --without-libdir was given.
 5161 if test "${with_libdir+set}" = set; then
 5162   withval="$with_libdir"
 5163   :
 5164 else
 5165   withval="${NEWSLIBDIR:-/usr/lib/news}"
 5166 fi
 5167 if true ; then
 5168 
 5169 if test "x$prefix" != xNONE; then
 5170     cf_path_syntax="$prefix"
 5171 else
 5172     cf_path_syntax="$ac_default_prefix"
 5173 fi
 5174 
 5175 case ".$withval" in
 5176 (.\$\(*\)*|.\'*\'*)
 5177     ;;
 5178 (..|./*|.\\*)
 5179     ;;
 5180 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
 5181     ;;
 5182 (.\${*prefix}*|.\${*dir}*)
 5183     eval withval="$withval"
 5184     case ".$withval" in
 5185     (.NONE/*)
 5186         withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
 5187         ;;
 5188     esac
 5189     ;;
 5190 (.no|.NONE/*)
 5191     withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
 5192     ;;
 5193 (*)
 5194     { echo "configure: error: expected a pathname, not \"$withval\"" 1>&2; exit 1; }
 5195     ;;
 5196 esac
 5197 
 5198 fi
 5199 eval NEWSLIBDIR="$withval"
 5200 
 5201     echo "$ac_t""$NEWSLIBDIR" 1>&6
 5202 
 5203     echo $ac_n "checking for news spool-directory path""... $ac_c" 1>&6
 5204 echo "configure:5205: checking for news spool-directory path" >&5
 5205     
 5206 # Check whether --with-spooldir or --without-spooldir was given.
 5207 if test "${with_spooldir+set}" = set; then
 5208   withval="$with_spooldir"
 5209   :
 5210 else
 5211   withval="${SPOOLDIR:-/var/spool/news}"
 5212 fi
 5213 if true ; then
 5214 
 5215 if test "x$prefix" != xNONE; then
 5216     cf_path_syntax="$prefix"
 5217 else
 5218     cf_path_syntax="$ac_default_prefix"
 5219 fi
 5220 
 5221 case ".$withval" in
 5222 (.\$\(*\)*|.\'*\'*)
 5223     ;;
 5224 (..|./*|.\\*)
 5225     ;;
 5226 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
 5227     ;;
 5228 (.\${*prefix}*|.\${*dir}*)
 5229     eval withval="$withval"
 5230     case ".$withval" in
 5231     (.NONE/*)
 5232         withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
 5233         ;;
 5234     esac
 5235     ;;
 5236 (.no|.NONE/*)
 5237     withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
 5238     ;;
 5239 (*)
 5240     { echo "configure: error: expected a pathname, not \"$withval\"" 1>&2; exit 1; }
 5241     ;;
 5242 esac
 5243 
 5244 fi
 5245 eval SPOOLDIR="$withval"
 5246 
 5247     echo "$ac_t""$SPOOLDIR" 1>&6
 5248 
 5249     echo $ac_n "checking for news overview-directory path""... $ac_c" 1>&6
 5250 echo "configure:5251: checking for news overview-directory path" >&5
 5251     
 5252 # Check whether --with-nov-dir or --without-nov-dir was given.
 5253 if test "${with_nov_dir+set}" = set; then
 5254   withval="$with_nov_dir"
 5255   :
 5256 else
 5257   withval="${NOVROOTDIR:-$SPOOLDIR}"
 5258 fi
 5259 if true ; then
 5260 
 5261 if test "x$prefix" != xNONE; then
 5262     cf_path_syntax="$prefix"
 5263 else
 5264     cf_path_syntax="$ac_default_prefix"
 5265 fi
 5266 
 5267 case ".$withval" in
 5268 (.\$\(*\)*|.\'*\'*)
 5269     ;;
 5270 (..|./*|.\\*)
 5271     ;;
 5272 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
 5273     ;;
 5274 (.\${*prefix}*|.\${*dir}*)
 5275     eval withval="$withval"
 5276     case ".$withval" in
 5277     (.NONE/*)
 5278         withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
 5279         ;;
 5280     esac
 5281     ;;
 5282 (.no|.NONE/*)
 5283     withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
 5284     ;;
 5285 (*)
 5286     { echo "configure: error: expected a pathname, not \"$withval\"" 1>&2; exit 1; }
 5287     ;;
 5288 esac
 5289 
 5290 fi
 5291 eval NOVROOTDIR="$withval"
 5292 
 5293     echo "$ac_t""$NOVROOTDIR" 1>&6
 5294 
 5295     echo $ac_n "checking for overview filename""... $ac_c" 1>&6
 5296 echo "configure:5297: checking for overview filename" >&5
 5297     
 5298 # Check whether --with-nov-fname or --without-nov-fname was given.
 5299 if test "${with_nov_fname+set}" = set; then
 5300   withval="$with_nov_fname"
 5301   :
 5302 else
 5303   withval="${OVERVIEW_FILE-.overview}"
 5304 fi
 5305 test -z "$withval" && withval=no
 5306 case "$withval" in #(vi
 5307 yes)
 5308   { echo "configure: error: expected a value for --with-nov-fname" 1>&2; exit 1; }
 5309   ;; #(vi
 5310 no) withval=""
 5311   ;;
 5312 esac
 5313 OVERVIEW_FILE="$withval"
 5314 
 5315  cat >> confdefs.h <<EOF
 5316 #define OVERVIEW_FILE "$withval"
 5317 EOF
 5318 
 5319     echo "$ac_t""$OVERVIEW_FILE" 1>&6
 5320 
 5321     INEWSPATH="$NEWSLIBDIR"
 5322 else
 5323     NEWSLIBDIR=""
 5324     SPOOLDIR=""
 5325     NOVROOTDIR=""
 5326     INEWSPATH="/usr/lib/news"
 5327 fi
 5328 
 5329 ## TODO: kick the --with-inews-dir= stuff, the check below should be enough
 5330 ## (requires some code rework in tin)
 5331 echo $ac_n "checking for directory containing \"inews\"""... $ac_c" 1>&6
 5332 echo "configure:5333: checking for directory containing \"inews\"" >&5
 5333 
 5334 # Check whether --with-inews-dir or --without-inews-dir was given.
 5335 if test "${with_inews_dir+set}" = set; then
 5336   withval="$with_inews_dir"
 5337   :
 5338 else
 5339   withval="${INEWSDIR:-$INEWSPATH}"
 5340 fi
 5341 if true ; then
 5342 
 5343 if test "x$prefix" != xNONE; then
 5344     cf_path_syntax="$prefix"
 5345 else
 5346     cf_path_syntax="$ac_default_prefix"
 5347 fi
 5348 
 5349 case ".$withval" in
 5350 (.\$\(*\)*|.\'*\'*)
 5351     ;;
 5352