"Fossies" - the Fresh Open Source Software Archive

Member "tin-2.4.2/configure" (24 Dec 2017, 700297 Bytes) of package /linux/misc/tin-2.4.2.tar.xz:


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.1_vs_2.4.2.

    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.2
  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_prog=`echo "$CC" | sed -e 's/    / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
  876     cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
  877     CC="$cf_prog"
  878     for cf_arg in $cf_flags
  879     do
  880         case "x$cf_arg" in
  881         (x-[IUDfgOW]*)
  882             
  883 cf_fix_cppflags=no
  884 cf_new_cflags=
  885 cf_new_cppflags=
  886 cf_new_extra_cppflags=
  887 
  888 for cf_add_cflags in $cf_arg
  889 do
  890 case $cf_fix_cppflags in
  891 (no)
  892     case $cf_add_cflags in
  893     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
  894         case $cf_add_cflags in
  895         (-D*)
  896             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
  897 
  898             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
  899                 && test -z "${cf_tst_cflags}" \
  900                 && cf_fix_cppflags=yes
  901 
  902             if test $cf_fix_cppflags = yes ; then
  903                 
  904     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
  905     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
  906 
  907                 continue
  908             elif test "${cf_tst_cflags}" = "\"'" ; then
  909                 
  910     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
  911     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
  912 
  913                 continue
  914             fi
  915             ;;
  916         esac
  917         case "$CPPFLAGS" in
  918         (*$cf_add_cflags)
  919             ;;
  920         (*)
  921             case $cf_add_cflags in
  922             (-D*)
  923                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
  924                 
  925 CPPFLAGS=`echo "$CPPFLAGS" | \
  926     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
  927         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
  928 
  929                 ;;
  930             esac
  931             
  932     test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
  933     cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
  934 
  935             ;;
  936         esac
  937         ;;
  938     (*)
  939         
  940     test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
  941     cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
  942 
  943         ;;
  944     esac
  945     ;;
  946 (yes)
  947     
  948     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
  949     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
  950 
  951 
  952     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
  953 
  954     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
  955         && test -z "${cf_tst_cflags}" \
  956         && cf_fix_cppflags=no
  957     ;;
  958 esac
  959 done
  960 
  961 if test -n "$cf_new_cflags" ; then
  962     
  963     
  964     test -n "$CFLAGS" && CFLAGS="$CFLAGS "
  965     CFLAGS="${CFLAGS}$cf_new_cflags"
  966 
  967 fi
  968 
  969 if test -n "$cf_new_cppflags" ; then
  970     
  971     
  972     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
  973     CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
  974 
  975 fi
  976 
  977 if test -n "$cf_new_extra_cppflags" ; then
  978     
  979     
  980     test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
  981     EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
  982 
  983 fi
  984 
  985 
  986 
  987 
  988             ;;
  989         (*)
  990             CC="$CC $cf_arg"
  991             ;;
  992         esac
  993     done
  994     test -n "$verbose" && echo "    resulting CC: '$CC'" 1>&6
  995 
  996 echo "${as_me:-configure}:997: testing resulting CC: '$CC' ..." 1>&5
  997 
  998 
  999     test -n "$verbose" && echo "    resulting CFLAGS: '$CFLAGS'" 1>&6
 1000 
 1001 echo "${as_me:-configure}:1002: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
 1002 
 1003 
 1004     test -n "$verbose" && echo "    resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
 1005 
 1006 echo "${as_me:-configure}:1007: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
 1007 
 1008 
 1009     ;;
 1010 (*)
 1011     echo "$ac_t""ok" 1>&6
 1012     ;;
 1013 esac
 1014 
 1015 
 1016 echo $ac_n "checking for ${CC:-cc} option to accept ANSI C""... $ac_c" 1>&6
 1017 echo "configure:1018: checking for ${CC:-cc} option to accept ANSI C" >&5
 1018 if eval "test \"`echo '$''{'cf_cv_ansi_cc'+set}'`\" = set"; then
 1019   echo $ac_n "(cached) $ac_c" 1>&6
 1020 else
 1021   
 1022 cf_cv_ansi_cc=no
 1023 cf_save_CFLAGS="$CFLAGS"
 1024 cf_save_CPPFLAGS="$CPPFLAGS"
 1025 # Don't try gcc -ansi; that turns off useful extensions and
 1026 # breaks some systems' header files.
 1027 # AIX           -qlanglvl=ansi
 1028 # Ultrix and OSF/1  -std1
 1029 # HP-UX         -Aa -D_HPUX_SOURCE
 1030 # SVR4          -Xc
 1031 # UnixWare 1.2      (cannot use -Xc, since ANSI/POSIX clashes)
 1032 for cf_arg in "-DCC_HAS_PROTOS" \
 1033     "" \
 1034     -qlanglvl=ansi \
 1035     -std1 \
 1036     -Ae \
 1037     "-Aa -D_HPUX_SOURCE" \
 1038     -Xc
 1039 do
 1040     
 1041 cf_fix_cppflags=no
 1042 cf_new_cflags=
 1043 cf_new_cppflags=
 1044 cf_new_extra_cppflags=
 1045 
 1046 for cf_add_cflags in $cf_arg
 1047 do
 1048 case $cf_fix_cppflags in
 1049 (no)
 1050     case $cf_add_cflags in
 1051     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 1052         case $cf_add_cflags in
 1053         (-D*)
 1054             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 1055 
 1056             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 1057                 && test -z "${cf_tst_cflags}" \
 1058                 && cf_fix_cppflags=yes
 1059 
 1060             if test $cf_fix_cppflags = yes ; then
 1061                 
 1062     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 1063     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 1064 
 1065                 continue
 1066             elif test "${cf_tst_cflags}" = "\"'" ; then
 1067                 
 1068     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 1069     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 1070 
 1071                 continue
 1072             fi
 1073             ;;
 1074         esac
 1075         case "$CPPFLAGS" in
 1076         (*$cf_add_cflags)
 1077             ;;
 1078         (*)
 1079             case $cf_add_cflags in
 1080             (-D*)
 1081                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 1082                 
 1083 CPPFLAGS=`echo "$CPPFLAGS" | \
 1084     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 1085         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 1086 
 1087                 ;;
 1088             esac
 1089             
 1090     test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
 1091     cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
 1092 
 1093             ;;
 1094         esac
 1095         ;;
 1096     (*)
 1097         
 1098     test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
 1099     cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
 1100 
 1101         ;;
 1102     esac
 1103     ;;
 1104 (yes)
 1105     
 1106     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 1107     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 1108 
 1109 
 1110     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 1111 
 1112     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 1113         && test -z "${cf_tst_cflags}" \
 1114         && cf_fix_cppflags=no
 1115     ;;
 1116 esac
 1117 done
 1118 
 1119 if test -n "$cf_new_cflags" ; then
 1120     
 1121     
 1122     test -n "$CFLAGS" && CFLAGS="$CFLAGS "
 1123     CFLAGS="${CFLAGS}$cf_new_cflags"
 1124 
 1125 fi
 1126 
 1127 if test -n "$cf_new_cppflags" ; then
 1128     
 1129     
 1130     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 1131     CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
 1132 
 1133 fi
 1134 
 1135 if test -n "$cf_new_extra_cppflags" ; then
 1136     
 1137     
 1138     test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
 1139     EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
 1140 
 1141 fi
 1142 
 1143 
 1144 
 1145 
 1146     cat > conftest.$ac_ext <<EOF
 1147 #line 1148 "configure"
 1148 #include "confdefs.h"
 1149 
 1150 #ifndef CC_HAS_PROTOS
 1151 #if !defined(__STDC__) || (__STDC__ != 1)
 1152 choke me
 1153 #endif
 1154 #endif
 1155 
 1156 int main() {
 1157 
 1158     int test (int i, double x);
 1159     struct s1 {int (*f) (int a);};
 1160     struct s2 {int (*f) (double a);};
 1161 ; return 0; }
 1162 EOF
 1163 if { (eval echo configure:1164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 1164   rm -rf conftest*
 1165   cf_cv_ansi_cc="$cf_arg"; break
 1166 else
 1167   echo "configure: failed program was:" >&5
 1168   cat conftest.$ac_ext >&5
 1169 fi
 1170 rm -f conftest*
 1171 done
 1172 CFLAGS="$cf_save_CFLAGS"
 1173 CPPFLAGS="$cf_save_CPPFLAGS"
 1174 
 1175 fi
 1176 
 1177 echo "$ac_t""$cf_cv_ansi_cc" 1>&6
 1178 
 1179 if test "$cf_cv_ansi_cc" != "no"; then
 1180 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
 1181     
 1182 cf_fix_cppflags=no
 1183 cf_new_cflags=
 1184 cf_new_cppflags=
 1185 cf_new_extra_cppflags=
 1186 
 1187 for cf_add_cflags in $cf_cv_ansi_cc
 1188 do
 1189 case $cf_fix_cppflags in
 1190 (no)
 1191     case $cf_add_cflags in
 1192     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 1193         case $cf_add_cflags in
 1194         (-D*)
 1195             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 1196 
 1197             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 1198                 && test -z "${cf_tst_cflags}" \
 1199                 && cf_fix_cppflags=yes
 1200 
 1201             if test $cf_fix_cppflags = yes ; then
 1202                 
 1203     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 1204     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 1205 
 1206                 continue
 1207             elif test "${cf_tst_cflags}" = "\"'" ; then
 1208                 
 1209     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 1210     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 1211 
 1212                 continue
 1213             fi
 1214             ;;
 1215         esac
 1216         case "$CPPFLAGS" in
 1217         (*$cf_add_cflags)
 1218             ;;
 1219         (*)
 1220             case $cf_add_cflags in
 1221             (-D*)
 1222                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 1223                 
 1224 CPPFLAGS=`echo "$CPPFLAGS" | \
 1225     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 1226         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 1227 
 1228                 ;;
 1229             esac
 1230             
 1231     test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
 1232     cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
 1233 
 1234             ;;
 1235         esac
 1236         ;;
 1237     (*)
 1238         
 1239     test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
 1240     cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
 1241 
 1242         ;;
 1243     esac
 1244     ;;
 1245 (yes)
 1246     
 1247     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 1248     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 1249 
 1250 
 1251     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 1252 
 1253     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 1254         && test -z "${cf_tst_cflags}" \
 1255         && cf_fix_cppflags=no
 1256     ;;
 1257 esac
 1258 done
 1259 
 1260 if test -n "$cf_new_cflags" ; then
 1261     
 1262     
 1263     test -n "$CFLAGS" && CFLAGS="$CFLAGS "
 1264     CFLAGS="${CFLAGS}$cf_new_cflags"
 1265 
 1266 fi
 1267 
 1268 if test -n "$cf_new_cppflags" ; then
 1269     
 1270     
 1271     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 1272     CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
 1273 
 1274 fi
 1275 
 1276 if test -n "$cf_new_extra_cppflags" ; then
 1277     
 1278     
 1279     test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
 1280     EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
 1281 
 1282 fi
 1283 
 1284 
 1285 
 1286 
 1287 else
 1288     cat >> confdefs.h <<\EOF
 1289 #define CC_HAS_PROTOS 1
 1290 EOF
 1291 
 1292 fi
 1293 fi
 1294 
 1295 
 1296 # Extract the first word of "gcc", so it can be a program name with args.
 1297 set dummy gcc; ac_word=$2
 1298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 1299 echo "configure:1300: checking for $ac_word" >&5
 1300 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 1301   echo $ac_n "(cached) $ac_c" 1>&6
 1302 else
 1303   if test -n "$CC"; then
 1304   ac_cv_prog_CC="$CC" # Let the user override the test.
 1305 else
 1306   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 1307   ac_dummy="$PATH"
 1308   for ac_dir in $ac_dummy; do
 1309     test -z "$ac_dir" && ac_dir=.
 1310     if test -f $ac_dir/$ac_word; then
 1311       ac_cv_prog_CC="gcc"
 1312       break
 1313     fi
 1314   done
 1315   IFS="$ac_save_ifs"
 1316 fi
 1317 fi
 1318 CC="$ac_cv_prog_CC"
 1319 if test -n "$CC"; then
 1320   echo "$ac_t""$CC" 1>&6
 1321 else
 1322   echo "$ac_t""no" 1>&6
 1323 fi
 1324 
 1325 if test -z "$CC"; then
 1326   # Extract the first word of "cc", so it can be a program name with args.
 1327 set dummy cc; ac_word=$2
 1328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 1329 echo "configure:1330: checking for $ac_word" >&5
 1330 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 1331   echo $ac_n "(cached) $ac_c" 1>&6
 1332 else
 1333   if test -n "$CC"; then
 1334   ac_cv_prog_CC="$CC" # Let the user override the test.
 1335 else
 1336   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 1337   ac_prog_rejected=no
 1338   ac_dummy="$PATH"
 1339   for ac_dir in $ac_dummy; do
 1340     test -z "$ac_dir" && ac_dir=.
 1341     if test -f $ac_dir/$ac_word; then
 1342       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 1343         ac_prog_rejected=yes
 1344     continue
 1345       fi
 1346       ac_cv_prog_CC="cc"
 1347       break
 1348     fi
 1349   done
 1350   IFS="$ac_save_ifs"
 1351 if test $ac_prog_rejected = yes; then
 1352   # We found a bogon in the path, so make sure we never use it.
 1353   set dummy $ac_cv_prog_CC
 1354   shift
 1355   if test $# -gt 0; then
 1356     # We chose a different compiler from the bogus one.
 1357     # However, it has the same basename, so the bogon will be chosen
 1358     # first if we set CC to just the basename; use the full file name.
 1359     shift
 1360     set dummy "$ac_dir/$ac_word" "$@"
 1361     shift
 1362     ac_cv_prog_CC="$@"
 1363   fi
 1364 fi
 1365 fi
 1366 fi
 1367 CC="$ac_cv_prog_CC"
 1368 if test -n "$CC"; then
 1369   echo "$ac_t""$CC" 1>&6
 1370 else
 1371   echo "$ac_t""no" 1>&6
 1372 fi
 1373 
 1374   if test -z "$CC"; then
 1375     case "`uname -s`" in
 1376     *win32* | *WIN32*)
 1377       # Extract the first word of "cl", so it can be a program name with args.
 1378 set dummy cl; ac_word=$2
 1379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 1380 echo "configure:1381: checking for $ac_word" >&5
 1381 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 1382   echo $ac_n "(cached) $ac_c" 1>&6
 1383 else
 1384   if test -n "$CC"; then
 1385   ac_cv_prog_CC="$CC" # Let the user override the test.
 1386 else
 1387   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 1388   ac_dummy="$PATH"
 1389   for ac_dir in $ac_dummy; do
 1390     test -z "$ac_dir" && ac_dir=.
 1391     if test -f $ac_dir/$ac_word; then
 1392       ac_cv_prog_CC="cl"
 1393       break
 1394     fi
 1395   done
 1396   IFS="$ac_save_ifs"
 1397 fi
 1398 fi
 1399 CC="$ac_cv_prog_CC"
 1400 if test -n "$CC"; then
 1401   echo "$ac_t""$CC" 1>&6
 1402 else
 1403   echo "$ac_t""no" 1>&6
 1404 fi
 1405  ;;
 1406     esac
 1407   fi
 1408   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 1409 fi
 1410 
 1411 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 1412 echo "configure:1413: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 1413 
 1414 ac_ext=c
 1415 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 1416 ac_cpp='$CPP $CPPFLAGS'
 1417 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 1418 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 1419 cross_compiling=$ac_cv_prog_cc_cross
 1420 
 1421 cat > conftest.$ac_ext << EOF
 1422 
 1423 #line 1424 "configure"
 1424 #include "confdefs.h"
 1425 
 1426 main(){return(0);}
 1427 EOF
 1428 if { (eval echo configure:1429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 1429   ac_cv_prog_cc_works=yes
 1430   # If we can't run a trivial program, we are probably using a cross compiler.
 1431   if (./conftest; exit) 2>/dev/null; then
 1432     ac_cv_prog_cc_cross=no
 1433   else
 1434     ac_cv_prog_cc_cross=yes
 1435   fi
 1436 else
 1437   echo "configure: failed program was:" >&5
 1438   cat conftest.$ac_ext >&5
 1439   ac_cv_prog_cc_works=no
 1440 fi
 1441 rm -fr conftest*
 1442 ac_ext=c
 1443 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 1444 ac_cpp='$CPP $CPPFLAGS'
 1445 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 1446 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 1447 cross_compiling=$ac_cv_prog_cc_cross
 1448 
 1449 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 1450 if test $ac_cv_prog_cc_works = no; then
 1451   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 1452 fi
 1453 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 1454 echo "configure:1455: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 1455 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 1456 cross_compiling=$ac_cv_prog_cc_cross
 1457 
 1458 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 1459 echo "configure:1460: checking whether we are using GNU C" >&5
 1460 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 1461   echo $ac_n "(cached) $ac_c" 1>&6
 1462 else
 1463   cat > conftest.c <<EOF
 1464 #ifdef __GNUC__
 1465   yes;
 1466 #endif
 1467 EOF
 1468 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 1469   ac_cv_prog_gcc=yes
 1470 else
 1471   ac_cv_prog_gcc=no
 1472 fi
 1473 fi
 1474 
 1475 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 1476 
 1477 if test $ac_cv_prog_gcc = yes; then
 1478   GCC=yes
 1479 else
 1480   GCC=
 1481 fi
 1482 
 1483 ac_test_CFLAGS="${CFLAGS+set}"
 1484 ac_save_CFLAGS="$CFLAGS"
 1485 CFLAGS=
 1486 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 1487 echo "configure:1488: checking whether ${CC-cc} accepts -g" >&5
 1488 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 1489   echo $ac_n "(cached) $ac_c" 1>&6
 1490 else
 1491   echo 'void f(){}' > conftest.c
 1492 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 1493   ac_cv_prog_cc_g=yes
 1494 else
 1495   ac_cv_prog_cc_g=no
 1496 fi
 1497 rm -f conftest*
 1498 
 1499 fi
 1500 
 1501 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 1502 if test "$ac_test_CFLAGS" = set; then
 1503   CFLAGS="$ac_save_CFLAGS"
 1504 elif test $ac_cv_prog_cc_g = yes; then
 1505   if test "$GCC" = yes; then
 1506     CFLAGS="-g -O2"
 1507   else
 1508     CFLAGS="-g"
 1509   fi
 1510 else
 1511   if test "$GCC" = yes; then
 1512     CFLAGS="-O2"
 1513   else
 1514     CFLAGS=
 1515   fi
 1516 fi
 1517 
 1518 
 1519 
 1520 GCC_VERSION=none
 1521 if test "$GCC" = yes ; then
 1522     echo $ac_n "checking version of $CC""... $ac_c" 1>&6
 1523 echo "configure:1524: checking version of $CC" >&5
 1524     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.].*//'`"
 1525     test -z "$GCC_VERSION" && GCC_VERSION=unknown
 1526     echo "$ac_t""$GCC_VERSION" 1>&6
 1527 fi
 1528 
 1529 
 1530 
 1531 if test "$cf_cv_ansi_cc" = "no"; then
 1532     { echo "configure: error: Your compiler does not appear to recognize prototypes.
 1533 You have the following choices:
 1534     a. adjust your compiler options
 1535     b. get an up-to-date compiler
 1536     c. use a wrapper such as unproto" 1>&2; exit 1; }
 1537 fi
 1538 
 1539 
 1540 # This should have been defined by AC_PROG_CC
 1541 : ${CC:=cc}
 1542 
 1543 echo $ac_n "checking \$CC variable""... $ac_c" 1>&6
 1544 echo "configure:1545: checking \$CC variable" >&5
 1545 case "$CC" in
 1546 (*[\ \  ]-*)
 1547     echo "$ac_t""broken" 1>&6
 1548     echo "configure: warning: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" 1>&2
 1549     # humor him...
 1550     cf_prog=`echo "$CC" | sed -e 's/    / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
 1551     cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
 1552     CC="$cf_prog"
 1553     for cf_arg in $cf_flags
 1554     do
 1555         case "x$cf_arg" in
 1556         (x-[IUDfgOW]*)
 1557             
 1558 cf_fix_cppflags=no
 1559 cf_new_cflags=
 1560 cf_new_cppflags=
 1561 cf_new_extra_cppflags=
 1562 
 1563 for cf_add_cflags in $cf_arg
 1564 do
 1565 case $cf_fix_cppflags in
 1566 (no)
 1567     case $cf_add_cflags in
 1568     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 1569         case $cf_add_cflags in
 1570         (-D*)
 1571             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 1572 
 1573             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 1574                 && test -z "${cf_tst_cflags}" \
 1575                 && cf_fix_cppflags=yes
 1576 
 1577             if test $cf_fix_cppflags = yes ; then
 1578                 
 1579     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 1580     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 1581 
 1582                 continue
 1583             elif test "${cf_tst_cflags}" = "\"'" ; then
 1584                 
 1585     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 1586     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 1587 
 1588                 continue
 1589             fi
 1590             ;;
 1591         esac
 1592         case "$CPPFLAGS" in
 1593         (*$cf_add_cflags)
 1594             ;;
 1595         (*)
 1596             case $cf_add_cflags in
 1597             (-D*)
 1598                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 1599                 
 1600 CPPFLAGS=`echo "$CPPFLAGS" | \
 1601     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 1602         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 1603 
 1604                 ;;
 1605             esac
 1606             
 1607     test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
 1608     cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
 1609 
 1610             ;;
 1611         esac
 1612         ;;
 1613     (*)
 1614         
 1615     test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
 1616     cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
 1617 
 1618         ;;
 1619     esac
 1620     ;;
 1621 (yes)
 1622     
 1623     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 1624     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 1625 
 1626 
 1627     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 1628 
 1629     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 1630         && test -z "${cf_tst_cflags}" \
 1631         && cf_fix_cppflags=no
 1632     ;;
 1633 esac
 1634 done
 1635 
 1636 if test -n "$cf_new_cflags" ; then
 1637     
 1638     
 1639     test -n "$CFLAGS" && CFLAGS="$CFLAGS "
 1640     CFLAGS="${CFLAGS}$cf_new_cflags"
 1641 
 1642 fi
 1643 
 1644 if test -n "$cf_new_cppflags" ; then
 1645     
 1646     
 1647     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 1648     CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
 1649 
 1650 fi
 1651 
 1652 if test -n "$cf_new_extra_cppflags" ; then
 1653     
 1654     
 1655     test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
 1656     EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
 1657 
 1658 fi
 1659 
 1660 
 1661 
 1662 
 1663             ;;
 1664         (*)
 1665             CC="$CC $cf_arg"
 1666             ;;
 1667         esac
 1668     done
 1669     test -n "$verbose" && echo "    resulting CC: '$CC'" 1>&6
 1670 
 1671 echo "${as_me:-configure}:1672: testing resulting CC: '$CC' ..." 1>&5
 1672 
 1673 
 1674     test -n "$verbose" && echo "    resulting CFLAGS: '$CFLAGS'" 1>&6
 1675 
 1676 echo "${as_me:-configure}:1677: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
 1677 
 1678 
 1679     test -n "$verbose" && echo "    resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
 1680 
 1681 echo "${as_me:-configure}:1682: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
 1682 
 1683 
 1684     ;;
 1685 (*)
 1686     echo "$ac_t""ok" 1>&6
 1687     ;;
 1688 esac
 1689 
 1690 
 1691 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 1692 echo "configure:1693: checking how to run the C preprocessor" >&5
 1693 # On Suns, sometimes $CPP names a directory.
 1694 if test -n "$CPP" && test -d "$CPP"; then
 1695   CPP=
 1696 fi
 1697 if test -z "$CPP"; then
 1698 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
 1699   echo $ac_n "(cached) $ac_c" 1>&6
 1700 else
 1701     # This must be in double quotes, not single quotes, because CPP may get
 1702   # substituted into the Makefile and "${CC-cc}" will confuse make.
 1703   CPP="${CC-cc} -E"
 1704   # On the NeXT, cc -E runs the code through the compiler's parser,
 1705   # not just through cpp.
 1706   cat > conftest.$ac_ext <<EOF
 1707 #line 1708 "configure"
 1708 #include "confdefs.h"
 1709 #include <assert.h>
 1710 Syntax Error
 1711 EOF
 1712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 1713 { (eval echo configure:1714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 1714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 1715 if test -z "$ac_err"; then
 1716   :
 1717 else
 1718   echo "$ac_err" >&5
 1719   echo "configure: failed program was:" >&5
 1720   cat conftest.$ac_ext >&5
 1721   rm -rf conftest*
 1722   CPP="${CC-cc} -E -traditional-cpp"
 1723   cat > conftest.$ac_ext <<EOF
 1724 #line 1725 "configure"
 1725 #include "confdefs.h"
 1726 #include <assert.h>
 1727 Syntax Error
 1728 EOF
 1729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 1730 { (eval echo configure:1731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 1731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 1732 if test -z "$ac_err"; then
 1733   :
 1734 else
 1735   echo "$ac_err" >&5
 1736   echo "configure: failed program was:" >&5
 1737   cat conftest.$ac_ext >&5
 1738   rm -rf conftest*
 1739   CPP="${CC-cc} -nologo -E"
 1740   cat > conftest.$ac_ext <<EOF
 1741 #line 1742 "configure"
 1742 #include "confdefs.h"
 1743 #include <assert.h>
 1744 Syntax Error
 1745 EOF
 1746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 1747 { (eval echo configure:1748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 1748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 1749 if test -z "$ac_err"; then
 1750   :
 1751 else
 1752   echo "$ac_err" >&5
 1753   echo "configure: failed program was:" >&5
 1754   cat conftest.$ac_ext >&5
 1755   rm -rf conftest*
 1756   CPP=/lib/cpp
 1757 fi
 1758 rm -f conftest*
 1759 fi
 1760 rm -f conftest*
 1761 fi
 1762 rm -f conftest*
 1763   ac_cv_prog_CPP="$CPP"
 1764 fi
 1765   CPP="$ac_cv_prog_CPP"
 1766 else
 1767   ac_cv_prog_CPP="$CPP"
 1768 fi
 1769 echo "$ac_t""$CPP" 1>&6
 1770 
 1771 if test $ac_cv_prog_gcc = yes; then
 1772     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
 1773 echo "configure:1774: checking whether ${CC-cc} needs -traditional" >&5
 1774 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
 1775   echo $ac_n "(cached) $ac_c" 1>&6
 1776 else
 1777     ac_pattern="Autoconf.*'x'"
 1778   cat > conftest.$ac_ext <<EOF
 1779 #line 1780 "configure"
 1780 #include "confdefs.h"
 1781 #include <sgtty.h>
 1782 Autoconf TIOCGETP
 1783 EOF
 1784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 1785   egrep "$ac_pattern" >/dev/null 2>&1; then
 1786   rm -rf conftest*
 1787   ac_cv_prog_gcc_traditional=yes
 1788 else
 1789   rm -rf conftest*
 1790   ac_cv_prog_gcc_traditional=no
 1791 fi
 1792 rm -f conftest*
 1793 
 1794 
 1795   if test $ac_cv_prog_gcc_traditional = no; then
 1796     cat > conftest.$ac_ext <<EOF
 1797 #line 1798 "configure"
 1798 #include "confdefs.h"
 1799 #include <termio.h>
 1800 Autoconf TCGETA
 1801 EOF
 1802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 1803   egrep "$ac_pattern" >/dev/null 2>&1; then
 1804   rm -rf conftest*
 1805   ac_cv_prog_gcc_traditional=yes
 1806 fi
 1807 rm -f conftest*
 1808 
 1809   fi
 1810 fi
 1811 
 1812 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
 1813   if test $ac_cv_prog_gcc_traditional = yes; then
 1814     CC="$CC -traditional"
 1815   fi
 1816 fi
 1817 
 1818 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
 1819 echo "configure:1820: checking whether ${MAKE-make} sets \${MAKE}" >&5
 1820 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
 1821 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
 1822   echo $ac_n "(cached) $ac_c" 1>&6
 1823 else
 1824   cat > conftestmake <<\EOF
 1825 all:
 1826     @echo 'ac_maketemp="${MAKE}"'
 1827 EOF
 1828 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 1829 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
 1830 if test -n "$ac_maketemp"; then
 1831   eval ac_cv_prog_make_${ac_make}_set=yes
 1832 else
 1833   eval ac_cv_prog_make_${ac_make}_set=no
 1834 fi
 1835 rm -f conftestmake
 1836 fi
 1837 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 1838   echo "$ac_t""yes" 1>&6
 1839   SET_MAKE=
 1840 else
 1841   echo "$ac_t""no" 1>&6
 1842   SET_MAKE="MAKE=${MAKE-make}"
 1843 fi
 1844 
 1845 # Find a good install program.  We prefer a C program (faster),
 1846 # so one script is as good as another.  But avoid the broken or
 1847 # incompatible versions:
 1848 # SysV /etc/install, /usr/sbin/install
 1849 # SunOS /usr/etc/install
 1850 # IRIX /sbin/install
 1851 # AIX /bin/install
 1852 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 1853 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
 1854 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 1855 # ./install, which can be erroneously created by make from ./install.sh.
 1856 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
 1857 echo "configure:1858: checking for a BSD compatible install" >&5
 1858 if test -z "$INSTALL"; then
 1859 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
 1860   echo $ac_n "(cached) $ac_c" 1>&6
 1861 else
 1862     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
 1863   for ac_dir in $PATH; do
 1864     # Account for people who put trailing slashes in PATH elements.
 1865     case "$ac_dir/" in
 1866     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
 1867     *)
 1868       # OSF1 and SCO ODT 3.0 have their own names for install.
 1869       # Don't use installbsd from OSF since it installs stuff as root
 1870       # by default.
 1871       for ac_prog in ginstall scoinst install; do
 1872         if test -f $ac_dir/$ac_prog; then
 1873       if test $ac_prog = install &&
 1874             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 1875         # AIX install.  It has an incompatible calling convention.
 1876         :
 1877       else
 1878         ac_cv_path_install="$ac_dir/$ac_prog -c"
 1879         break 2
 1880       fi
 1881     fi
 1882       done
 1883       ;;
 1884     esac
 1885   done
 1886   IFS="$ac_save_IFS"
 1887 
 1888 fi
 1889   if test "${ac_cv_path_install+set}" = set; then
 1890     INSTALL="$ac_cv_path_install"
 1891   else
 1892     # As a last resort, use the slow shell script.  We don't cache a
 1893     # path for INSTALL within a source directory, because that will
 1894     # break other packages using the cache if that directory is
 1895     # removed, or if the path is relative.
 1896     INSTALL="$ac_install_sh"
 1897   fi
 1898 fi
 1899 echo "$ac_t""$INSTALL" 1>&6
 1900 
 1901 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 1902 # It thinks the first close brace ends the variable substitution.
 1903 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 1904 
 1905 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 1906 
 1907 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 1908 
 1909 
 1910 
 1911 if eval "test \"`echo '$''{'cf_cv_prog_YACC'+set}'`\" = set"; then
 1912   echo $ac_n "(cached) $ac_c" 1>&6
 1913 else
 1914   
 1915 if test -n "$YACC" ; then
 1916   cf_cv_prog_YACC="$YACC" # Let the user override the test.
 1917 else
 1918 cat >conftest.y <<EOF
 1919 %{
 1920 void yyerror(s) char *s; { }
 1921 %}
 1922 %token  NUMBER
 1923 %%
 1924 time    : NUMBER ':' NUMBER
 1925     ;
 1926 %%
 1927 int yylex() { return NUMBER; }
 1928 int main() { return yyparse(); }
 1929 EOF
 1930   for cf_prog in 'bison -y' byacc yacc
 1931   do
 1932     rm -f y.tab.ch
 1933     echo $ac_n "checking for $cf_prog""... $ac_c" 1>&6
 1934 echo "configure:1935: checking for $cf_prog" >&5
 1935     cf_command="$cf_prog conftest.y"
 1936     cf_result=no
 1937     if { (eval echo configure:1938: \"$cf_command\") 1>&5; (eval $cf_command) 2>&5; } && test -s y.tab.c ; then
 1938       mv y.tab.c conftest.c
 1939       rm -f y.tab.h
 1940       if test "$cf_prog" = 'bison -y' ; then
 1941         if { (eval echo configure:1942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest ; then
 1942           cf_result=yes
 1943         fi
 1944       else
 1945         cf_result=yes
 1946       fi
 1947     fi
 1948     echo "$ac_t""$cf_result" 1>&6
 1949     if test $cf_result = yes ; then
 1950       cf_cv_prog_YACC="$cf_prog"
 1951       break
 1952     fi
 1953   done
 1954 fi
 1955 
 1956 fi
 1957 
 1958 YACC="$cf_cv_prog_YACC"
 1959 
 1960 for ac_prog in lint alint lclint tdlint splint
 1961 do
 1962 # Extract the first word of "$ac_prog", so it can be a program name with args.
 1963 set dummy $ac_prog; ac_word=$2
 1964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 1965 echo "configure:1966: checking for $ac_word" >&5
 1966 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
 1967   echo $ac_n "(cached) $ac_c" 1>&6
 1968 else
 1969   if test -n "$LINT"; then
 1970   ac_cv_prog_LINT="$LINT" # Let the user override the test.
 1971 else
 1972   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 1973   ac_dummy="$PATH"
 1974   for ac_dir in $ac_dummy; do
 1975     test -z "$ac_dir" && ac_dir=.
 1976     if test -f $ac_dir/$ac_word; then
 1977       ac_cv_prog_LINT="$ac_prog"
 1978       break
 1979     fi
 1980   done
 1981   IFS="$ac_save_ifs"
 1982 fi
 1983 fi
 1984 LINT="$ac_cv_prog_LINT"
 1985 if test -n "$LINT"; then
 1986   echo "$ac_t""$LINT" 1>&6
 1987 else
 1988   echo "$ac_t""no" 1>&6
 1989 fi
 1990 
 1991 test -n "$LINT" && break
 1992 done
 1993 test -n "$LINT" || LINT=":"
 1994 
 1995 
 1996 
 1997 
 1998 cf_XOPEN_SOURCE=500
 1999 cf_POSIX_C_SOURCE=199506L
 2000 cf_xopen_source=
 2001 
 2002 case $host_os in
 2003 (aix[4-7]*)
 2004     cf_xopen_source="-D_ALL_SOURCE"
 2005     ;;
 2006 (msys)
 2007     cf_XOPEN_SOURCE=600
 2008     ;;
 2009 (darwin[0-8].*)
 2010     cf_xopen_source="-D_APPLE_C_SOURCE"
 2011     ;;
 2012 (darwin*)
 2013     cf_xopen_source="-D_DARWIN_C_SOURCE"
 2014     cf_XOPEN_SOURCE=
 2015     ;;
 2016 (freebsd*|dragonfly*)
 2017     # 5.x headers associate
 2018     #   _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
 2019     #   _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
 2020     cf_POSIX_C_SOURCE=200112L
 2021     cf_XOPEN_SOURCE=600
 2022     cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
 2023     ;;
 2024 (hpux11*)
 2025     cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
 2026     ;;
 2027 (hpux*)
 2028     cf_xopen_source="-D_HPUX_SOURCE"
 2029     ;;
 2030 (irix[56].*)
 2031     cf_xopen_source="-D_SGI_SOURCE"
 2032     cf_XOPEN_SOURCE=
 2033     ;;
 2034 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
 2035     
 2036 echo $ac_n "checking if we must define _GNU_SOURCE""... $ac_c" 1>&6
 2037 echo "configure:2038: checking if we must define _GNU_SOURCE" >&5
 2038 if eval "test \"`echo '$''{'cf_cv_gnu_source'+set}'`\" = set"; then
 2039   echo $ac_n "(cached) $ac_c" 1>&6
 2040 else
 2041   
 2042 cat > conftest.$ac_ext <<EOF
 2043 #line 2044 "configure"
 2044 #include "confdefs.h"
 2045 #include <sys/types.h>
 2046 int main() {
 2047 
 2048 #ifndef _XOPEN_SOURCE
 2049 make an error
 2050 #endif
 2051 ; return 0; }
 2052 EOF
 2053 if { (eval echo configure:2054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2054   rm -rf conftest*
 2055   cf_cv_gnu_source=no
 2056 else
 2057   echo "configure: failed program was:" >&5
 2058   cat conftest.$ac_ext >&5
 2059   rm -rf conftest*
 2060   cf_save="$CPPFLAGS"
 2061      CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
 2062      cat > conftest.$ac_ext <<EOF
 2063 #line 2064 "configure"
 2064 #include "confdefs.h"
 2065 #include <sys/types.h>
 2066 int main() {
 2067 
 2068 #ifdef _XOPEN_SOURCE
 2069 make an error
 2070 #endif
 2071 ; return 0; }
 2072 EOF
 2073 if { (eval echo configure:2074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2074   rm -rf conftest*
 2075   cf_cv_gnu_source=no
 2076 else
 2077   echo "configure: failed program was:" >&5
 2078   cat conftest.$ac_ext >&5
 2079   rm -rf conftest*
 2080   cf_cv_gnu_source=yes
 2081 fi
 2082 rm -f conftest*
 2083     CPPFLAGS="$cf_save"
 2084     
 2085 fi
 2086 rm -f conftest*
 2087 
 2088 fi
 2089 
 2090 echo "$ac_t""$cf_cv_gnu_source" 1>&6
 2091 
 2092 if test "$cf_cv_gnu_source" = yes
 2093 then
 2094 echo $ac_n "checking if we should also define _DEFAULT_SOURCE""... $ac_c" 1>&6
 2095 echo "configure:2096: checking if we should also define _DEFAULT_SOURCE" >&5
 2096 if eval "test \"`echo '$''{'cf_cv_default_source'+set}'`\" = set"; then
 2097   echo $ac_n "(cached) $ac_c" 1>&6
 2098 else
 2099   
 2100 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
 2101     cat > conftest.$ac_ext <<EOF
 2102 #line 2103 "configure"
 2103 #include "confdefs.h"
 2104 #include <sys/types.h>
 2105 int main() {
 2106 
 2107 #ifdef _DEFAULT_SOURCE
 2108 make an error
 2109 #endif
 2110 ; return 0; }
 2111 EOF
 2112 if { (eval echo configure:2113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2113   rm -rf conftest*
 2114   cf_cv_default_source=no
 2115 else
 2116   echo "configure: failed program was:" >&5
 2117   cat conftest.$ac_ext >&5
 2118   rm -rf conftest*
 2119   cf_cv_default_source=yes
 2120 fi
 2121 rm -f conftest*
 2122     
 2123 fi
 2124 
 2125 echo "$ac_t""$cf_cv_default_source" 1>&6
 2126 test "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE"
 2127 fi
 2128 
 2129     ;;
 2130 (minix*)
 2131     cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
 2132     ;;
 2133 (mirbsd*)
 2134     # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
 2135     cf_XOPEN_SOURCE=
 2136     
 2137 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
 2138 
 2139 cf_save_CFLAGS="$CFLAGS"
 2140 cf_save_CPPFLAGS="$CPPFLAGS"
 2141 
 2142 
 2143 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
 2144     sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[     ]/ /g' \
 2145         -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
 2146 
 2147 
 2148 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
 2149     sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[     ]/ /g' \
 2150         -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
 2151 
 2152 
 2153 echo $ac_n "checking if we should define _POSIX_C_SOURCE""... $ac_c" 1>&6
 2154 echo "configure:2155: checking if we should define _POSIX_C_SOURCE" >&5
 2155 if eval "test \"`echo '$''{'cf_cv_posix_c_source'+set}'`\" = set"; then
 2156   echo $ac_n "(cached) $ac_c" 1>&6
 2157 else
 2158   
 2159     
 2160 echo "${as_me:-configure}:2161: testing if the symbol is already defined go no further ..." 1>&5
 2161 
 2162     cat > conftest.$ac_ext <<EOF
 2163 #line 2164 "configure"
 2164 #include "confdefs.h"
 2165 #include <sys/types.h>
 2166 int main() {
 2167 
 2168 #ifndef _POSIX_C_SOURCE
 2169 make an error
 2170 #endif
 2171 ; return 0; }
 2172 EOF
 2173 if { (eval echo configure:2174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2174   rm -rf conftest*
 2175   cf_cv_posix_c_source=no
 2176 else
 2177   echo "configure: failed program was:" >&5
 2178   cat conftest.$ac_ext >&5
 2179   rm -rf conftest*
 2180   cf_want_posix_source=no
 2181      case .$cf_POSIX_C_SOURCE in
 2182      (.[12]??*)
 2183         cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
 2184         ;;
 2185      (.2)
 2186         cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
 2187         cf_want_posix_source=yes
 2188         ;;
 2189      (.*)
 2190         cf_want_posix_source=yes
 2191         ;;
 2192      esac
 2193      if test "$cf_want_posix_source" = yes ; then
 2194         cat > conftest.$ac_ext <<EOF
 2195 #line 2196 "configure"
 2196 #include "confdefs.h"
 2197 #include <sys/types.h>
 2198 int main() {
 2199 
 2200 #ifdef _POSIX_SOURCE
 2201 make an error
 2202 #endif
 2203 ; return 0; }
 2204 EOF
 2205 if { (eval echo configure:2206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2206   :
 2207 else
 2208   echo "configure: failed program was:" >&5
 2209   cat conftest.$ac_ext >&5
 2210   rm -rf conftest*
 2211   cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
 2212 fi
 2213 rm -f conftest*
 2214      fi
 2215      
 2216 echo "${as_me:-configure}:2217: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
 2217 
 2218      CFLAGS="$cf_trim_CFLAGS"
 2219      CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
 2220      
 2221 echo "${as_me:-configure}:2222: testing if the second compile does not leave our definition intact error ..." 1>&5
 2222 
 2223      cat > conftest.$ac_ext <<EOF
 2224 #line 2225 "configure"
 2225 #include "confdefs.h"
 2226 #include <sys/types.h>
 2227 int main() {
 2228 
 2229 #ifndef _POSIX_C_SOURCE
 2230 make an error
 2231 #endif
 2232 ; return 0; }
 2233 EOF
 2234 if { (eval echo configure:2235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2235   :
 2236 else
 2237   echo "configure: failed program was:" >&5
 2238   cat conftest.$ac_ext >&5
 2239   rm -rf conftest*
 2240   cf_cv_posix_c_source=no
 2241 fi
 2242 rm -f conftest*
 2243      CFLAGS="$cf_save_CFLAGS"
 2244      CPPFLAGS="$cf_save_CPPFLAGS"
 2245     
 2246 fi
 2247 rm -f conftest*
 2248 
 2249 fi
 2250 
 2251 echo "$ac_t""$cf_cv_posix_c_source" 1>&6
 2252 
 2253 if test "$cf_cv_posix_c_source" != no ; then
 2254     CFLAGS="$cf_trim_CFLAGS"
 2255     CPPFLAGS="$cf_trim_CPPFLAGS"
 2256     
 2257 cf_fix_cppflags=no
 2258 cf_new_cflags=
 2259 cf_new_cppflags=
 2260 cf_new_extra_cppflags=
 2261 
 2262 for cf_add_cflags in $cf_cv_posix_c_source
 2263 do
 2264 case $cf_fix_cppflags in
 2265 (no)
 2266     case $cf_add_cflags in
 2267     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 2268         case $cf_add_cflags in
 2269         (-D*)
 2270             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 2271 
 2272             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 2273                 && test -z "${cf_tst_cflags}" \
 2274                 && cf_fix_cppflags=yes
 2275 
 2276             if test $cf_fix_cppflags = yes ; then
 2277                 
 2278     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 2279     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 2280 
 2281                 continue
 2282             elif test "${cf_tst_cflags}" = "\"'" ; then
 2283                 
 2284     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 2285     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 2286 
 2287                 continue
 2288             fi
 2289             ;;
 2290         esac
 2291         case "$CPPFLAGS" in
 2292         (*$cf_add_cflags)
 2293             ;;
 2294         (*)
 2295             case $cf_add_cflags in
 2296             (-D*)
 2297                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 2298                 
 2299 CPPFLAGS=`echo "$CPPFLAGS" | \
 2300     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 2301         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 2302 
 2303                 ;;
 2304             esac
 2305             
 2306     test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
 2307     cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
 2308 
 2309             ;;
 2310         esac
 2311         ;;
 2312     (*)
 2313         
 2314     test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
 2315     cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
 2316 
 2317         ;;
 2318     esac
 2319     ;;
 2320 (yes)
 2321     
 2322     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 2323     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 2324 
 2325 
 2326     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 2327 
 2328     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 2329         && test -z "${cf_tst_cflags}" \
 2330         && cf_fix_cppflags=no
 2331     ;;
 2332 esac
 2333 done
 2334 
 2335 if test -n "$cf_new_cflags" ; then
 2336     
 2337     
 2338     test -n "$CFLAGS" && CFLAGS="$CFLAGS "
 2339     CFLAGS="${CFLAGS}$cf_new_cflags"
 2340 
 2341 fi
 2342 
 2343 if test -n "$cf_new_cppflags" ; then
 2344     
 2345     
 2346     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 2347     CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
 2348 
 2349 fi
 2350 
 2351 if test -n "$cf_new_extra_cppflags" ; then
 2352     
 2353     
 2354     test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
 2355     EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
 2356 
 2357 fi
 2358 
 2359 
 2360 
 2361 
 2362 fi
 2363 
 2364 
 2365     ;;
 2366 (netbsd*)
 2367     cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
 2368     ;;
 2369 (openbsd[4-9]*)
 2370     # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
 2371     cf_xopen_source="-D_BSD_SOURCE"
 2372     cf_XOPEN_SOURCE=600
 2373     ;;
 2374 (openbsd*)
 2375     # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
 2376     ;;
 2377 (osf[45]*)
 2378     cf_xopen_source="-D_OSF_SOURCE"
 2379     ;;
 2380 (nto-qnx*)
 2381     cf_xopen_source="-D_QNX_SOURCE"
 2382     ;;
 2383 (sco*)
 2384     # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
 2385     ;;
 2386 (solaris2.*)
 2387     cf_xopen_source="-D__EXTENSIONS__"
 2388     cf_cv_xopen_source=broken
 2389     ;;
 2390 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
 2391     cf_XOPEN_SOURCE=
 2392     cf_POSIX_C_SOURCE=
 2393     ;;
 2394 (*)
 2395     
 2396 echo $ac_n "checking if we should define _XOPEN_SOURCE""... $ac_c" 1>&6
 2397 echo "configure:2398: checking if we should define _XOPEN_SOURCE" >&5
 2398 if eval "test \"`echo '$''{'cf_cv_xopen_source'+set}'`\" = set"; then
 2399   echo $ac_n "(cached) $ac_c" 1>&6
 2400 else
 2401   
 2402     cat > conftest.$ac_ext <<EOF
 2403 #line 2404 "configure"
 2404 #include "confdefs.h"
 2405 
 2406 #include <stdlib.h>
 2407 #include <string.h>
 2408 #include <sys/types.h>
 2409 
 2410 int main() {
 2411 
 2412 #ifndef _XOPEN_SOURCE
 2413 make an error
 2414 #endif
 2415 ; return 0; }
 2416 EOF
 2417 if { (eval echo configure:2418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2418   rm -rf conftest*
 2419   cf_cv_xopen_source=no
 2420 else
 2421   echo "configure: failed program was:" >&5
 2422   cat conftest.$ac_ext >&5
 2423   rm -rf conftest*
 2424   cf_save="$CPPFLAGS"
 2425      CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
 2426      cat > conftest.$ac_ext <<EOF
 2427 #line 2428 "configure"
 2428 #include "confdefs.h"
 2429 
 2430 #include <stdlib.h>
 2431 #include <string.h>
 2432 #include <sys/types.h>
 2433 
 2434 int main() {
 2435 
 2436 #ifdef _XOPEN_SOURCE
 2437 make an error
 2438 #endif
 2439 ; return 0; }
 2440 EOF
 2441 if { (eval echo configure:2442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2442   rm -rf conftest*
 2443   cf_cv_xopen_source=no
 2444 else
 2445   echo "configure: failed program was:" >&5
 2446   cat conftest.$ac_ext >&5
 2447   rm -rf conftest*
 2448   cf_cv_xopen_source=$cf_XOPEN_SOURCE
 2449 fi
 2450 rm -f conftest*
 2451     CPPFLAGS="$cf_save"
 2452     
 2453 fi
 2454 rm -f conftest*
 2455 
 2456 fi
 2457 
 2458 echo "$ac_t""$cf_cv_xopen_source" 1>&6
 2459 
 2460 if test "$cf_cv_xopen_source" != no ; then
 2461     
 2462 CFLAGS=`echo "$CFLAGS" | \
 2463     sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?[     ]/ /g' \
 2464         -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?$//g'`
 2465 
 2466     
 2467 CPPFLAGS=`echo "$CPPFLAGS" | \
 2468     sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?[     ]/ /g' \
 2469         -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?$//g'`
 2470 
 2471     cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
 2472     
 2473 cf_fix_cppflags=no
 2474 cf_new_cflags=
 2475 cf_new_cppflags=
 2476 cf_new_extra_cppflags=
 2477 
 2478 for cf_add_cflags in $cf_temp_xopen_source
 2479 do
 2480 case $cf_fix_cppflags in
 2481 (no)
 2482     case $cf_add_cflags in
 2483     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 2484         case $cf_add_cflags in
 2485         (-D*)
 2486             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 2487 
 2488             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 2489                 && test -z "${cf_tst_cflags}" \
 2490                 && cf_fix_cppflags=yes
 2491 
 2492             if test $cf_fix_cppflags = yes ; then
 2493                 
 2494     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 2495     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 2496 
 2497                 continue
 2498             elif test "${cf_tst_cflags}" = "\"'" ; then
 2499                 
 2500     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 2501     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 2502 
 2503                 continue
 2504             fi
 2505             ;;
 2506         esac
 2507         case "$CPPFLAGS" in
 2508         (*$cf_add_cflags)
 2509             ;;
 2510         (*)
 2511             case $cf_add_cflags in
 2512             (-D*)
 2513                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 2514                 
 2515 CPPFLAGS=`echo "$CPPFLAGS" | \
 2516     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 2517         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 2518 
 2519                 ;;
 2520             esac
 2521             
 2522     test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
 2523     cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
 2524 
 2525             ;;
 2526         esac
 2527         ;;
 2528     (*)
 2529         
 2530     test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
 2531     cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
 2532 
 2533         ;;
 2534     esac
 2535     ;;
 2536 (yes)
 2537     
 2538     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 2539     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 2540 
 2541 
 2542     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 2543 
 2544     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 2545         && test -z "${cf_tst_cflags}" \
 2546         && cf_fix_cppflags=no
 2547     ;;
 2548 esac
 2549 done
 2550 
 2551 if test -n "$cf_new_cflags" ; then
 2552     
 2553     
 2554     test -n "$CFLAGS" && CFLAGS="$CFLAGS "
 2555     CFLAGS="${CFLAGS}$cf_new_cflags"
 2556 
 2557 fi
 2558 
 2559 if test -n "$cf_new_cppflags" ; then
 2560     
 2561     
 2562     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 2563     CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
 2564 
 2565 fi
 2566 
 2567 if test -n "$cf_new_extra_cppflags" ; then
 2568     
 2569     
 2570     test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
 2571     EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
 2572 
 2573 fi
 2574 
 2575 
 2576 
 2577 
 2578 fi
 2579 
 2580     
 2581 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
 2582 
 2583 cf_save_CFLAGS="$CFLAGS"
 2584 cf_save_CPPFLAGS="$CPPFLAGS"
 2585 
 2586 
 2587 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
 2588     sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[     ]/ /g' \
 2589         -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
 2590 
 2591 
 2592 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
 2593     sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[     ]/ /g' \
 2594         -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
 2595 
 2596 
 2597 echo $ac_n "checking if we should define _POSIX_C_SOURCE""... $ac_c" 1>&6
 2598 echo "configure:2599: checking if we should define _POSIX_C_SOURCE" >&5
 2599 if eval "test \"`echo '$''{'cf_cv_posix_c_source'+set}'`\" = set"; then
 2600   echo $ac_n "(cached) $ac_c" 1>&6
 2601 else
 2602   
 2603     
 2604 echo "${as_me:-configure}:2605: testing if the symbol is already defined go no further ..." 1>&5
 2605 
 2606     cat > conftest.$ac_ext <<EOF
 2607 #line 2608 "configure"
 2608 #include "confdefs.h"
 2609 #include <sys/types.h>
 2610 int main() {
 2611 
 2612 #ifndef _POSIX_C_SOURCE
 2613 make an error
 2614 #endif
 2615 ; return 0; }
 2616 EOF
 2617 if { (eval echo configure:2618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2618   rm -rf conftest*
 2619   cf_cv_posix_c_source=no
 2620 else
 2621   echo "configure: failed program was:" >&5
 2622   cat conftest.$ac_ext >&5
 2623   rm -rf conftest*
 2624   cf_want_posix_source=no
 2625      case .$cf_POSIX_C_SOURCE in
 2626      (.[12]??*)
 2627         cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
 2628         ;;
 2629      (.2)
 2630         cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
 2631         cf_want_posix_source=yes
 2632         ;;
 2633      (.*)
 2634         cf_want_posix_source=yes
 2635         ;;
 2636      esac
 2637      if test "$cf_want_posix_source" = yes ; then
 2638         cat > conftest.$ac_ext <<EOF
 2639 #line 2640 "configure"
 2640 #include "confdefs.h"
 2641 #include <sys/types.h>
 2642 int main() {
 2643 
 2644 #ifdef _POSIX_SOURCE
 2645 make an error
 2646 #endif
 2647 ; return 0; }
 2648 EOF
 2649 if { (eval echo configure:2650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2650   :
 2651 else
 2652   echo "configure: failed program was:" >&5
 2653   cat conftest.$ac_ext >&5
 2654   rm -rf conftest*
 2655   cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
 2656 fi
 2657 rm -f conftest*
 2658      fi
 2659      
 2660 echo "${as_me:-configure}:2661: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
 2661 
 2662      CFLAGS="$cf_trim_CFLAGS"
 2663      CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
 2664      
 2665 echo "${as_me:-configure}:2666: testing if the second compile does not leave our definition intact error ..." 1>&5
 2666 
 2667      cat > conftest.$ac_ext <<EOF
 2668 #line 2669 "configure"
 2669 #include "confdefs.h"
 2670 #include <sys/types.h>
 2671 int main() {
 2672 
 2673 #ifndef _POSIX_C_SOURCE
 2674 make an error
 2675 #endif
 2676 ; return 0; }
 2677 EOF
 2678 if { (eval echo configure:2679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2679   :
 2680 else
 2681   echo "configure: failed program was:" >&5
 2682   cat conftest.$ac_ext >&5
 2683   rm -rf conftest*
 2684   cf_cv_posix_c_source=no
 2685 fi
 2686 rm -f conftest*
 2687      CFLAGS="$cf_save_CFLAGS"
 2688      CPPFLAGS="$cf_save_CPPFLAGS"
 2689     
 2690 fi
 2691 rm -f conftest*
 2692 
 2693 fi
 2694 
 2695 echo "$ac_t""$cf_cv_posix_c_source" 1>&6
 2696 
 2697 if test "$cf_cv_posix_c_source" != no ; then
 2698     CFLAGS="$cf_trim_CFLAGS"
 2699     CPPFLAGS="$cf_trim_CPPFLAGS"
 2700     
 2701 cf_fix_cppflags=no
 2702 cf_new_cflags=
 2703 cf_new_cppflags=
 2704 cf_new_extra_cppflags=
 2705 
 2706 for cf_add_cflags in $cf_cv_posix_c_source
 2707 do
 2708 case $cf_fix_cppflags in
 2709 (no)
 2710     case $cf_add_cflags in
 2711     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 2712         case $cf_add_cflags in
 2713         (-D*)
 2714             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 2715 
 2716             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 2717                 && test -z "${cf_tst_cflags}" \
 2718                 && cf_fix_cppflags=yes
 2719 
 2720             if test $cf_fix_cppflags = yes ; then
 2721                 
 2722     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 2723     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 2724 
 2725                 continue
 2726             elif test "${cf_tst_cflags}" = "\"'" ; then
 2727                 
 2728     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 2729     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 2730 
 2731                 continue
 2732             fi
 2733             ;;
 2734         esac
 2735         case "$CPPFLAGS" in
 2736         (*$cf_add_cflags)
 2737             ;;
 2738         (*)
 2739             case $cf_add_cflags in
 2740             (-D*)
 2741                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 2742                 
 2743 CPPFLAGS=`echo "$CPPFLAGS" | \
 2744     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 2745         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 2746 
 2747                 ;;
 2748             esac
 2749             
 2750     test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
 2751     cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
 2752 
 2753             ;;
 2754         esac
 2755         ;;
 2756     (*)
 2757         
 2758     test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
 2759     cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
 2760 
 2761         ;;
 2762     esac
 2763     ;;
 2764 (yes)
 2765     
 2766     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 2767     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 2768 
 2769 
 2770     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 2771 
 2772     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 2773         && test -z "${cf_tst_cflags}" \
 2774         && cf_fix_cppflags=no
 2775     ;;
 2776 esac
 2777 done
 2778 
 2779 if test -n "$cf_new_cflags" ; then
 2780     
 2781     
 2782     test -n "$CFLAGS" && CFLAGS="$CFLAGS "
 2783     CFLAGS="${CFLAGS}$cf_new_cflags"
 2784 
 2785 fi
 2786 
 2787 if test -n "$cf_new_cppflags" ; then
 2788     
 2789     
 2790     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 2791     CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
 2792 
 2793 fi
 2794 
 2795 if test -n "$cf_new_extra_cppflags" ; then
 2796     
 2797     
 2798     test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
 2799     EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
 2800 
 2801 fi
 2802 
 2803 
 2804 
 2805 
 2806 fi
 2807 
 2808 
 2809     ;;
 2810 esac
 2811 
 2812 if test -n "$cf_xopen_source" ; then
 2813     
 2814 cf_fix_cppflags=no
 2815 cf_new_cflags=
 2816 cf_new_cppflags=
 2817 cf_new_extra_cppflags=
 2818 
 2819 for cf_add_cflags in $cf_xopen_source
 2820 do
 2821 case $cf_fix_cppflags in
 2822 (no)
 2823     case $cf_add_cflags in
 2824     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 2825         case $cf_add_cflags in
 2826         (-D*)
 2827             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 2828 
 2829             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 2830                 && test -z "${cf_tst_cflags}" \
 2831                 && cf_fix_cppflags=yes
 2832 
 2833             if test $cf_fix_cppflags = yes ; then
 2834                 
 2835     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 2836     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 2837 
 2838                 continue
 2839             elif test "${cf_tst_cflags}" = "\"'" ; then
 2840                 
 2841     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 2842     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 2843 
 2844                 continue
 2845             fi
 2846             ;;
 2847         esac
 2848         case "$CPPFLAGS" in
 2849         (*$cf_add_cflags)
 2850             ;;
 2851         (*)
 2852             case $cf_add_cflags in
 2853             (-D*)
 2854                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 2855                 
 2856 CPPFLAGS=`echo "$CPPFLAGS" | \
 2857     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 2858         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 2859 
 2860                 ;;
 2861             esac
 2862             
 2863     test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
 2864     cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
 2865 
 2866             ;;
 2867         esac
 2868         ;;
 2869     (*)
 2870         
 2871     test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
 2872     cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
 2873 
 2874         ;;
 2875     esac
 2876     ;;
 2877 (yes)
 2878     
 2879     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 2880     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 2881 
 2882 
 2883     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 2884 
 2885     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 2886         && test -z "${cf_tst_cflags}" \
 2887         && cf_fix_cppflags=no
 2888     ;;
 2889 esac
 2890 done
 2891 
 2892 if test -n "$cf_new_cflags" ; then
 2893     test -n "$verbose" && echo "    add to \$CFLAGS $cf_new_cflags" 1>&6
 2894 
 2895 echo "${as_me:-configure}:2896: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
 2896 
 2897 
 2898     
 2899     test -n "$CFLAGS" && CFLAGS="$CFLAGS "
 2900     CFLAGS="${CFLAGS}$cf_new_cflags"
 2901 
 2902 fi
 2903 
 2904 if test -n "$cf_new_cppflags" ; then
 2905     test -n "$verbose" && echo "    add to \$CPPFLAGS $cf_new_cppflags" 1>&6
 2906 
 2907 echo "${as_me:-configure}:2908: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
 2908 
 2909 
 2910     
 2911     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 2912     CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
 2913 
 2914 fi
 2915 
 2916 if test -n "$cf_new_extra_cppflags" ; then
 2917     test -n "$verbose" && echo "    add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
 2918 
 2919 echo "${as_me:-configure}:2920: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
 2920 
 2921 
 2922     
 2923     test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
 2924     EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
 2925 
 2926 fi
 2927 
 2928 
 2929 
 2930 
 2931 fi
 2932 
 2933 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
 2934     echo $ac_n "checking if _XOPEN_SOURCE really is set""... $ac_c" 1>&6
 2935 echo "configure:2936: checking if _XOPEN_SOURCE really is set" >&5
 2936     cat > conftest.$ac_ext <<EOF
 2937 #line 2938 "configure"
 2938 #include "confdefs.h"
 2939 #include <stdlib.h>
 2940 int main() {
 2941 
 2942 #ifndef _XOPEN_SOURCE
 2943 make an error
 2944 #endif
 2945 ; return 0; }
 2946 EOF
 2947 if { (eval echo configure:2948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2948   rm -rf conftest*
 2949   cf_XOPEN_SOURCE_set=yes
 2950 else
 2951   echo "configure: failed program was:" >&5
 2952   cat conftest.$ac_ext >&5
 2953   rm -rf conftest*
 2954   cf_XOPEN_SOURCE_set=no
 2955 fi
 2956 rm -f conftest*
 2957     echo "$ac_t""$cf_XOPEN_SOURCE_set" 1>&6
 2958     if test $cf_XOPEN_SOURCE_set = yes
 2959     then
 2960         cat > conftest.$ac_ext <<EOF
 2961 #line 2962 "configure"
 2962 #include "confdefs.h"
 2963 #include <stdlib.h>
 2964 int main() {
 2965 
 2966 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
 2967 make an error
 2968 #endif
 2969 ; return 0; }
 2970 EOF
 2971 if { (eval echo configure:2972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2972   rm -rf conftest*
 2973   cf_XOPEN_SOURCE_set_ok=yes
 2974 else
 2975   echo "configure: failed program was:" >&5
 2976   cat conftest.$ac_ext >&5
 2977   rm -rf conftest*
 2978   cf_XOPEN_SOURCE_set_ok=no
 2979 fi
 2980 rm -f conftest*
 2981         if test $cf_XOPEN_SOURCE_set_ok = no
 2982         then
 2983             echo "configure: warning: _XOPEN_SOURCE is lower than requested" 1>&2
 2984         fi
 2985     else
 2986         
 2987 echo $ac_n "checking if we should define _XOPEN_SOURCE""... $ac_c" 1>&6
 2988 echo "configure:2989: checking if we should define _XOPEN_SOURCE" >&5
 2989 if eval "test \"`echo '$''{'cf_cv_xopen_source'+set}'`\" = set"; then
 2990   echo $ac_n "(cached) $ac_c" 1>&6
 2991 else
 2992   
 2993     cat > conftest.$ac_ext <<EOF
 2994 #line 2995 "configure"
 2995 #include "confdefs.h"
 2996 
 2997 #include <stdlib.h>
 2998 #include <string.h>
 2999 #include <sys/types.h>
 3000 
 3001 int main() {
 3002 
 3003 #ifndef _XOPEN_SOURCE
 3004 make an error
 3005 #endif
 3006 ; return 0; }
 3007 EOF
 3008 if { (eval echo configure:3009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 3009   rm -rf conftest*
 3010   cf_cv_xopen_source=no
 3011 else
 3012   echo "configure: failed program was:" >&5
 3013   cat conftest.$ac_ext >&5
 3014   rm -rf conftest*
 3015   cf_save="$CPPFLAGS"
 3016      CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
 3017      cat > conftest.$ac_ext <<EOF
 3018 #line 3019 "configure"
 3019 #include "confdefs.h"
 3020 
 3021 #include <stdlib.h>
 3022 #include <string.h>
 3023 #include <sys/types.h>
 3024 
 3025 int main() {
 3026 
 3027 #ifdef _XOPEN_SOURCE
 3028 make an error
 3029 #endif
 3030 ; return 0; }
 3031 EOF
 3032 if { (eval echo configure:3033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 3033   rm -rf conftest*
 3034   cf_cv_xopen_source=no
 3035 else
 3036   echo "configure: failed program was:" >&5
 3037   cat conftest.$ac_ext >&5
 3038   rm -rf conftest*
 3039   cf_cv_xopen_source=$cf_XOPEN_SOURCE
 3040 fi
 3041 rm -f conftest*
 3042     CPPFLAGS="$cf_save"
 3043     
 3044 fi
 3045 rm -f conftest*
 3046 
 3047 fi
 3048 
 3049 echo "$ac_t""$cf_cv_xopen_source" 1>&6
 3050 
 3051 if test "$cf_cv_xopen_source" != no ; then
 3052     
 3053 CFLAGS=`echo "$CFLAGS" | \
 3054     sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?[     ]/ /g' \
 3055         -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?$//g'`
 3056 
 3057     
 3058 CPPFLAGS=`echo "$CPPFLAGS" | \
 3059     sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?[     ]/ /g' \
 3060         -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?$//g'`
 3061 
 3062     cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
 3063     
 3064 cf_fix_cppflags=no
 3065 cf_new_cflags=
 3066 cf_new_cppflags=
 3067 cf_new_extra_cppflags=
 3068 
 3069 for cf_add_cflags in $cf_temp_xopen_source
 3070 do
 3071 case $cf_fix_cppflags in
 3072 (no)
 3073     case $cf_add_cflags in
 3074     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 3075         case $cf_add_cflags in
 3076         (-D*)
 3077             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 3078 
 3079             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 3080                 && test -z "${cf_tst_cflags}" \
 3081                 && cf_fix_cppflags=yes
 3082 
 3083             if test $cf_fix_cppflags = yes ; then
 3084                 
 3085     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 3086     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 3087 
 3088                 continue
 3089             elif test "${cf_tst_cflags}" = "\"'" ; then
 3090                 
 3091     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 3092     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 3093 
 3094                 continue
 3095             fi
 3096             ;;
 3097         esac
 3098         case "$CPPFLAGS" in
 3099         (*$cf_add_cflags)
 3100             ;;
 3101         (*)
 3102             case $cf_add_cflags in
 3103             (-D*)
 3104                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 3105                 
 3106 CPPFLAGS=`echo "$CPPFLAGS" | \
 3107     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 3108         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 3109 
 3110                 ;;
 3111             esac
 3112             
 3113     test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
 3114     cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
 3115 
 3116             ;;
 3117         esac
 3118         ;;
 3119     (*)
 3120         
 3121     test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
 3122     cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
 3123 
 3124         ;;
 3125     esac
 3126     ;;
 3127 (yes)
 3128     
 3129     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 3130     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 3131 
 3132 
 3133     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 3134 
 3135     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 3136         && test -z "${cf_tst_cflags}" \
 3137         && cf_fix_cppflags=no
 3138     ;;
 3139 esac
 3140 done
 3141 
 3142 if test -n "$cf_new_cflags" ; then
 3143     
 3144     
 3145     test -n "$CFLAGS" && CFLAGS="$CFLAGS "
 3146     CFLAGS="${CFLAGS}$cf_new_cflags"
 3147 
 3148 fi
 3149 
 3150 if test -n "$cf_new_cppflags" ; then
 3151     
 3152     
 3153     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 3154     CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
 3155 
 3156 fi
 3157 
 3158 if test -n "$cf_new_extra_cppflags" ; then
 3159     
 3160     
 3161     test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
 3162     EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
 3163 
 3164 fi
 3165 
 3166 
 3167 
 3168 
 3169 fi
 3170 
 3171     fi
 3172 fi
 3173 
 3174 
 3175 echo $ac_n "checking if SIGWINCH is defined""... $ac_c" 1>&6
 3176 echo "configure:3177: checking if SIGWINCH is defined" >&5
 3177 if eval "test \"`echo '$''{'cf_cv_define_sigwinch'+set}'`\" = set"; then
 3178   echo $ac_n "(cached) $ac_c" 1>&6
 3179 else
 3180   
 3181     cat > conftest.$ac_ext <<EOF
 3182 #line 3183 "configure"
 3183 #include "confdefs.h"
 3184 
 3185 #include <sys/types.h>
 3186 #include <sys/signal.h>
 3187 
 3188 int main() {
 3189 int x = SIGWINCH
 3190 ; return 0; }
 3191 EOF
 3192 if { (eval echo configure:3193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 3193   rm -rf conftest*
 3194   cf_cv_define_sigwinch=yes
 3195 else
 3196   echo "configure: failed program was:" >&5
 3197   cat conftest.$ac_ext >&5
 3198   rm -rf conftest*
 3199   cat > conftest.$ac_ext <<EOF
 3200 #line 3201 "configure"
 3201 #include "confdefs.h"
 3202 
 3203 #undef _XOPEN_SOURCE
 3204 #undef _POSIX_SOURCE
 3205 #undef _POSIX_C_SOURCE
 3206 #include <sys/types.h>
 3207 #include <sys/signal.h>
 3208 
 3209 int main() {
 3210 int x = SIGWINCH
 3211 ; return 0; }
 3212 EOF
 3213 if { (eval echo configure:3214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 3214   rm -rf conftest*
 3215   cf_cv_define_sigwinch=maybe
 3216 else
 3217   echo "configure: failed program was:" >&5
 3218   cat conftest.$ac_ext >&5
 3219   rm -rf conftest*
 3220   cf_cv_define_sigwinch=no
 3221 fi
 3222 rm -f conftest*
 3223 
 3224 fi
 3225 rm -f conftest*
 3226 
 3227 fi
 3228 
 3229 echo "$ac_t""$cf_cv_define_sigwinch" 1>&6
 3230 
 3231 if test "$cf_cv_define_sigwinch" = maybe ; then
 3232 echo $ac_n "checking for actual SIGWINCH definition""... $ac_c" 1>&6
 3233 echo "configure:3234: checking for actual SIGWINCH definition" >&5
 3234 if eval "test \"`echo '$''{'cf_cv_fixup_sigwinch'+set}'`\" = set"; then
 3235   echo $ac_n "(cached) $ac_c" 1>&6
 3236 else
 3237   
 3238 cf_cv_fixup_sigwinch=unknown
 3239 cf_sigwinch=32
 3240 while test $cf_sigwinch != 1
 3241 do
 3242     cat > conftest.$ac_ext <<EOF
 3243 #line 3244 "configure"
 3244 #include "confdefs.h"
 3245 
 3246 #undef _XOPEN_SOURCE
 3247 #undef _POSIX_SOURCE
 3248 #undef _POSIX_C_SOURCE
 3249 #include <sys/types.h>
 3250 #include <sys/signal.h>
 3251 
 3252 int main() {
 3253 
 3254 #if SIGWINCH != $cf_sigwinch
 3255 make an error
 3256 #endif
 3257 int x = SIGWINCH
 3258 ; return 0; }
 3259 EOF
 3260 if { (eval echo configure:3261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 3261   rm -rf conftest*
 3262   cf_cv_fixup_sigwinch=$cf_sigwinch
 3263      break
 3264 else
 3265   echo "configure: failed program was:" >&5
 3266   cat conftest.$ac_ext >&5
 3267 fi
 3268 rm -f conftest*
 3269 
 3270 cf_sigwinch=`expr $cf_sigwinch - 1`
 3271 done
 3272 
 3273 fi
 3274 
 3275 echo "$ac_t""$cf_cv_fixup_sigwinch" 1>&6
 3276 
 3277     if test "$cf_cv_fixup_sigwinch" != unknown ; then
 3278         CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
 3279     fi
 3280 fi
 3281 
 3282 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
 3283 echo "configure:3284: checking for Cygwin environment" >&5
 3284 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
 3285   echo $ac_n "(cached) $ac_c" 1>&6
 3286 else
 3287   cat > conftest.$ac_ext <<EOF
 3288 #line 3289 "configure"
 3289 #include "confdefs.h"
 3290 
 3291 int main() {
 3292 
 3293 #ifndef __CYGWIN__
 3294 #define __CYGWIN__ __CYGWIN32__
 3295 #endif
 3296 return __CYGWIN__;
 3297 ; return 0; }
 3298 EOF
 3299 if { (eval echo configure:3300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 3300   rm -rf conftest*
 3301   ac_cv_cygwin=yes
 3302 else
 3303   echo "configure: failed program was:" >&5
 3304   cat conftest.$ac_ext >&5
 3305   rm -rf conftest*
 3306   ac_cv_cygwin=no
 3307 fi
 3308 rm -f conftest*
 3309 rm -f conftest*
 3310 fi
 3311 
 3312 echo "$ac_t""$ac_cv_cygwin" 1>&6
 3313 CYGWIN=
 3314 test "$ac_cv_cygwin" = yes && CYGWIN=yes
 3315 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
 3316 echo "configure:3317: checking for mingw32 environment" >&5
 3317 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
 3318   echo $ac_n "(cached) $ac_c" 1>&6
 3319 else
 3320   cat > conftest.$ac_ext <<EOF
 3321 #line 3322 "configure"
 3322 #include "confdefs.h"
 3323 
 3324 int main() {
 3325 return __MINGW32__;
 3326 ; return 0; }
 3327 EOF
 3328 if { (eval echo configure:3329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 3329   rm -rf conftest*
 3330   ac_cv_mingw32=yes
 3331 else
 3332   echo "configure: failed program was:" >&5
 3333   cat conftest.$ac_ext >&5
 3334   rm -rf conftest*
 3335   ac_cv_mingw32=no
 3336 fi
 3337 rm -f conftest*
 3338 rm -f conftest*
 3339 fi
 3340 
 3341 echo "$ac_t""$ac_cv_mingw32" 1>&6
 3342 MINGW32=
 3343 test "$ac_cv_mingw32" = yes && MINGW32=yes
 3344 
 3345 
 3346 case $cf_cv_system_name in
 3347 (os2*)
 3348     CFLAGS="$CFLAGS -Zmt"
 3349     CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
 3350     CXXFLAGS="$CXXFLAGS -Zmt"
 3351     # autoconf's macro sets -Zexe and suffix both, which conflict:w
 3352     LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
 3353     ac_cv_exeext=.exe
 3354     ;;
 3355 esac
 3356 
 3357 
 3358 
 3359 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
 3360 echo "configure:3361: checking for executable suffix" >&5
 3361 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
 3362   echo $ac_n "(cached) $ac_c" 1>&6
 3363 else
 3364   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
 3365   ac_cv_exeext=.exe
 3366 else
 3367   rm -f conftest*
 3368   echo 'int main () { return 0; }' > conftest.$ac_ext
 3369   ac_cv_exeext=
 3370   if { (eval echo configure:3371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
 3371     for file in conftest.*; do
 3372       if test -f $file ; then
 3373         case $file in
 3374           *.c | *.o | *.obj) ;;
 3375           *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
 3376         esac
 3377       fi
 3378     done
 3379   else
 3380     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
 3381   fi
 3382   rm -rf conftest.dSYM
 3383   rm -f conftest*
 3384   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
 3385 fi
 3386 fi
 3387 
 3388 EXEEXT=""
 3389 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
 3390 echo "$ac_t""${ac_cv_exeext}" 1>&6
 3391 ac_exeext=$EXEEXT
 3392 
 3393 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
 3394 echo "configure:3395: checking for object suffix" >&5
 3395 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
 3396   echo $ac_n "(cached) $ac_c" 1>&6
 3397 else
 3398   rm -f conftest*
 3399 echo 'int i = 1;' > conftest.$ac_ext
 3400 if { (eval echo configure:3401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 3401   for ac_file in conftest.*; do
 3402     if test -f $ac_file ; then
 3403       case $ac_file in
 3404         *.c) ;;
 3405         *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
 3406       esac
 3407     fi
 3408   done
 3409 else
 3410   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
 3411 fi
 3412 rm -rf conftest.dSYM
 3413 rm -f conftest*
 3414 fi
 3415 
 3416 echo "$ac_t""$ac_cv_objext" 1>&6
 3417 OBJEXT=$ac_cv_objext
 3418 ac_objext=$ac_cv_objext
 3419 
 3420 
 3421 PROG_EXT="$EXEEXT"
 3422 
 3423 test -n "$PROG_EXT" && cat >> confdefs.h <<EOF
 3424 #define PROG_EXT "$PROG_EXT"
 3425 EOF
 3426 
 3427 
 3428 
 3429     case $cf_cv_system_name in
 3430     (OS/2*|os2*)
 3431         if test "$DFT_LWR_MODEL" = libtool; then
 3432             LIB_PREFIX='lib'
 3433         else
 3434             LIB_PREFIX=''
 3435         fi
 3436         ;;
 3437     (*) LIB_PREFIX='lib'
 3438         ;;
 3439     esac
 3440 LIB_PREFIX=$LIB_PREFIX
 3441     
 3442 
 3443 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
 3444 echo "configure:3445: checking whether ln -s works" >&5
 3445 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
 3446   echo $ac_n "(cached) $ac_c" 1>&6
 3447 else
 3448   rm -f conftestdata
 3449 if ln -s X conftestdata 2>/dev/null
 3450 then
 3451   rm -f conftestdata
 3452   ac_cv_prog_LN_S="ln -s"
 3453 else
 3454   ac_cv_prog_LN_S=ln
 3455 fi
 3456 fi
 3457 LN_S="$ac_cv_prog_LN_S"
 3458 if test "$ac_cv_prog_LN_S" = "ln -s"; then
 3459   echo "$ac_t""yes" 1>&6
 3460 else
 3461   echo "$ac_t""no" 1>&6
 3462 fi
 3463 
 3464 
 3465 
 3466 
 3467 
 3468 if test "$cross_compiling" = yes ; then
 3469 
 3470     # defaults that we might want to override
 3471     : ${BUILD_CFLAGS:=''}
 3472     : ${BUILD_CPPFLAGS:='-I$(INCDIR)'}
 3473     : ${BUILD_LDFLAGS:=''}
 3474     : ${BUILD_LIBS:=''}
 3475     : ${BUILD_EXEEXT:='$x'}
 3476     : ${BUILD_OBJEXT:='o'}
 3477 
 3478     
 3479 # Check whether --with-build-cc or --without-build-cc was given.
 3480 if test "${with_build_cc+set}" = set; then
 3481   withval="$with_build_cc"
 3482   BUILD_CC="$withval"
 3483 else
 3484   for ac_prog in gcc cc cl
 3485 do
 3486 # Extract the first word of "$ac_prog", so it can be a program name with args.
 3487 set dummy $ac_prog; ac_word=$2
 3488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 3489 echo "configure:3490: checking for $ac_word" >&5
 3490 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
 3491   echo $ac_n "(cached) $ac_c" 1>&6
 3492 else
 3493   if test -n "$BUILD_CC"; then
 3494   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
 3495 else
 3496   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 3497   ac_dummy="$PATH"
 3498   for ac_dir in $ac_dummy; do
 3499     test -z "$ac_dir" && ac_dir=.
 3500     if test -f $ac_dir/$ac_word; then
 3501       ac_cv_prog_BUILD_CC="$ac_prog"
 3502       break
 3503     fi
 3504   done
 3505   IFS="$ac_save_ifs"
 3506 fi
 3507 fi
 3508 BUILD_CC="$ac_cv_prog_BUILD_CC"
 3509 if test -n "$BUILD_CC"; then
 3510   echo "$ac_t""$BUILD_CC" 1>&6
 3511 else
 3512   echo "$ac_t""no" 1>&6
 3513 fi
 3514 
 3515 test -n "$BUILD_CC" && break
 3516 done
 3517 
 3518 fi
 3519 
 3520     echo $ac_n "checking for native build C compiler""... $ac_c" 1>&6
 3521 echo "configure:3522: checking for native build C compiler" >&5
 3522     echo "$ac_t""$BUILD_CC" 1>&6
 3523 
 3524     echo $ac_n "checking for native build C preprocessor""... $ac_c" 1>&6
 3525 echo "configure:3526: checking for native build C preprocessor" >&5
 3526     
 3527 # Check whether --with-build-cpp or --without-build-cpp was given.
 3528 if test "${with_build_cpp+set}" = set; then
 3529   withval="$with_build_cpp"
 3530   BUILD_CPP="$withval"
 3531 else
 3532   BUILD_CPP='${BUILD_CC} -E'
 3533 fi
 3534 
 3535     echo "$ac_t""$BUILD_CPP" 1>&6
 3536 
 3537     echo $ac_n "checking for native build C flags""... $ac_c" 1>&6
 3538 echo "configure:3539: checking for native build C flags" >&5
 3539     
 3540 # Check whether --with-build-cflags or --without-build-cflags was given.
 3541 if test "${with_build_cflags+set}" = set; then
 3542   withval="$with_build_cflags"
 3543   BUILD_CFLAGS="$withval"
 3544 fi
 3545 
 3546     echo "$ac_t""$BUILD_CFLAGS" 1>&6
 3547 
 3548     echo $ac_n "checking for native build C preprocessor-flags""... $ac_c" 1>&6
 3549 echo "configure:3550: checking for native build C preprocessor-flags" >&5
 3550     
 3551 # Check whether --with-build-cppflags or --without-build-cppflags was given.
 3552 if test "${with_build_cppflags+set}" = set; then
 3553   withval="$with_build_cppflags"
 3554   BUILD_CPPFLAGS="$withval"
 3555 fi
 3556 
 3557     echo "$ac_t""$BUILD_CPPFLAGS" 1>&6
 3558 
 3559     echo $ac_n "checking for native build linker-flags""... $ac_c" 1>&6
 3560 echo "configure:3561: checking for native build linker-flags" >&5
 3561     
 3562 # Check whether --with-build-ldflags or --without-build-ldflags was given.
 3563 if test "${with_build_ldflags+set}" = set; then
 3564   withval="$with_build_ldflags"
 3565   BUILD_LDFLAGS="$withval"
 3566 fi
 3567 
 3568     echo "$ac_t""$BUILD_LDFLAGS" 1>&6
 3569 
 3570     echo $ac_n "checking for native build linker-libraries""... $ac_c" 1>&6
 3571 echo "configure:3572: checking for native build linker-libraries" >&5
 3572     
 3573 # Check whether --with-build-libs or --without-build-libs was given.
 3574 if test "${with_build_libs+set}" = set; then
 3575   withval="$with_build_libs"
 3576   BUILD_LIBS="$withval"
 3577 fi
 3578 
 3579     echo "$ac_t""$BUILD_LIBS" 1>&6
 3580 
 3581     # this assumes we're on Unix.
 3582     BUILD_EXEEXT=
 3583     BUILD_OBJEXT=o
 3584 
 3585     : ${BUILD_CC:='${CC}'}
 3586 
 3587     if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
 3588         { echo "configure: error: Cross-build requires two compilers.
 3589 Use --with-build-cc to specify the native compiler." 1>&2; exit 1; }
 3590     fi
 3591 
 3592 else
 3593     : ${BUILD_CC:='${CC}'}
 3594     : ${BUILD_CPP:='${CPP}'}
 3595     : ${BUILD_CFLAGS:='${CFLAGS}'}
 3596     : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
 3597     : ${BUILD_LDFLAGS:='${LDFLAGS}'}
 3598     : ${BUILD_LIBS:='${LIBS}'}
 3599     : ${BUILD_EXEEXT:='$x'}
 3600     : ${BUILD_OBJEXT:='o'}
 3601 fi
 3602 
 3603 
 3604 
 3605 
 3606 
 3607 
 3608 
 3609 
 3610 
 3611 
 3612 
 3613 echo $ac_n "checking build system type""... $ac_c" 1>&6
 3614 echo "configure:3615: checking build system type" >&5
 3615 
 3616 build_alias=$build
 3617 case "$build_alias" in
 3618 NONE)
 3619   case $nonopt in
 3620   NONE) build_alias=$host_alias ;;
 3621   *) build_alias=$nonopt ;;
 3622   esac ;;
 3623 esac
 3624 
 3625 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
 3626 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 3627 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 3628 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 3629 echo "$ac_t""$build" 1>&6
 3630 
 3631 if test $host != $build; then
 3632   ac_tool_prefix=${host_alias}-
 3633 else
 3634   ac_tool_prefix=
 3635 fi
 3636 
 3637 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 3638 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 3639 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 3640 echo "configure:3641: checking for $ac_word" >&5
 3641 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
 3642   echo $ac_n "(cached) $ac_c" 1>&6
 3643 else
 3644   if test -n "$RANLIB"; then
 3645   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 3646 else
 3647   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 3648   ac_dummy="$PATH"
 3649   for ac_dir in $ac_dummy; do
 3650     test -z "$ac_dir" && ac_dir=.
 3651     if test -f $ac_dir/$ac_word; then
 3652       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 3653       break
 3654     fi
 3655   done
 3656   IFS="$ac_save_ifs"
 3657 fi
 3658 fi
 3659 RANLIB="$ac_cv_prog_RANLIB"
 3660 if test -n "$RANLIB"; then
 3661   echo "$ac_t""$RANLIB" 1>&6
 3662 else
 3663   echo "$ac_t""no" 1>&6
 3664 fi
 3665 
 3666 
 3667 if test -z "$ac_cv_prog_RANLIB"; then
 3668 if test -n "$ac_tool_prefix"; then
 3669   # Extract the first word of "ranlib", so it can be a program name with args.
 3670 set dummy ranlib; ac_word=$2
 3671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 3672 echo "configure:3673: checking for $ac_word" >&5
 3673 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
 3674   echo $ac_n "(cached) $ac_c" 1>&6
 3675 else
 3676   if test -n "$RANLIB"; then
 3677   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 3678 else
 3679   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 3680   ac_dummy="$PATH"
 3681   for ac_dir in $ac_dummy; do
 3682     test -z "$ac_dir" && ac_dir=.
 3683     if test -f $ac_dir/$ac_word; then
 3684       ac_cv_prog_RANLIB="ranlib"
 3685       break
 3686     fi
 3687   done
 3688   IFS="$ac_save_ifs"
 3689   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="':'"
 3690 fi
 3691 fi
 3692 RANLIB="$ac_cv_prog_RANLIB"
 3693 if test -n "$RANLIB"; then
 3694   echo "$ac_t""$RANLIB" 1>&6
 3695 else
 3696   echo "$ac_t""no" 1>&6
 3697 fi
 3698 
 3699 else
 3700   RANLIB="':'"
 3701 fi
 3702 fi
 3703 
 3704 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
 3705 set dummy ${ac_tool_prefix}ld; ac_word=$2
 3706 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 3707 echo "configure:3708: checking for $ac_word" >&5
 3708 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
 3709   echo $ac_n "(cached) $ac_c" 1>&6
 3710 else
 3711   if test -n "$LD"; then
 3712   ac_cv_prog_LD="$LD" # Let the user override the test.
 3713 else
 3714   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 3715   ac_dummy="$PATH"
 3716   for ac_dir in $ac_dummy; do
 3717     test -z "$ac_dir" && ac_dir=.
 3718     if test -f $ac_dir/$ac_word; then
 3719       ac_cv_prog_LD="${ac_tool_prefix}ld"
 3720       break
 3721     fi
 3722   done
 3723   IFS="$ac_save_ifs"
 3724 fi
 3725 fi
 3726 LD="$ac_cv_prog_LD"
 3727 if test -n "$LD"; then
 3728   echo "$ac_t""$LD" 1>&6
 3729 else
 3730   echo "$ac_t""no" 1>&6
 3731 fi
 3732 
 3733 
 3734 if test -z "$ac_cv_prog_LD"; then
 3735 if test -n "$ac_tool_prefix"; then
 3736   # Extract the first word of "ld", so it can be a program name with args.
 3737 set dummy ld; ac_word=$2
 3738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 3739 echo "configure:3740: checking for $ac_word" >&5
 3740 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
 3741   echo $ac_n "(cached) $ac_c" 1>&6
 3742 else
 3743   if test -n "$LD"; then
 3744   ac_cv_prog_LD="$LD" # Let the user override the test.
 3745 else
 3746   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 3747   ac_dummy="$PATH"
 3748   for ac_dir in $ac_dummy; do
 3749     test -z "$ac_dir" && ac_dir=.
 3750     if test -f $ac_dir/$ac_word; then
 3751       ac_cv_prog_LD="ld"
 3752       break
 3753     fi
 3754   done
 3755   IFS="$ac_save_ifs"
 3756   test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="ld"
 3757 fi
 3758 fi
 3759 LD="$ac_cv_prog_LD"
 3760 if test -n "$LD"; then
 3761   echo "$ac_t""$LD" 1>&6
 3762 else
 3763   echo "$ac_t""no" 1>&6
 3764 fi
 3765 
 3766 else
 3767   LD="ld"
 3768 fi
 3769 fi
 3770 
 3771 
 3772 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 3773 set dummy ${ac_tool_prefix}ar; ac_word=$2
 3774 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 3775 echo "configure:3776: checking for $ac_word" >&5
 3776 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
 3777   echo $ac_n "(cached) $ac_c" 1>&6
 3778 else
 3779   if test -n "$AR"; then
 3780   ac_cv_prog_AR="$AR" # Let the user override the test.
 3781 else
 3782   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 3783   ac_dummy="$PATH"
 3784   for ac_dir in $ac_dummy; do
 3785     test -z "$ac_dir" && ac_dir=.
 3786     if test -f $ac_dir/$ac_word; then
 3787       ac_cv_prog_AR="${ac_tool_prefix}ar"
 3788       break
 3789     fi
 3790   done
 3791   IFS="$ac_save_ifs"
 3792 fi
 3793 fi
 3794 AR="$ac_cv_prog_AR"
 3795 if test -n "$AR"; then
 3796   echo "$ac_t""$AR" 1>&6
 3797 else
 3798   echo "$ac_t""no" 1>&6
 3799 fi
 3800 
 3801 
 3802 if test -z "$ac_cv_prog_AR"; then
 3803 if test -n "$ac_tool_prefix"; then
 3804   # Extract the first word of "ar", so it can be a program name with args.
 3805 set dummy ar; ac_word=$2
 3806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 3807 echo "configure:3808: checking for $ac_word" >&5
 3808 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
 3809   echo $ac_n "(cached) $ac_c" 1>&6
 3810 else
 3811   if test -n "$AR"; then
 3812   ac_cv_prog_AR="$AR" # Let the user override the test.
 3813 else
 3814   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 3815   ac_dummy="$PATH"
 3816   for ac_dir in $ac_dummy; do
 3817     test -z "$ac_dir" && ac_dir=.
 3818     if test -f $ac_dir/$ac_word; then
 3819       ac_cv_prog_AR="ar"
 3820       break
 3821     fi
 3822   done
 3823   IFS="$ac_save_ifs"
 3824   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
 3825 fi
 3826 fi
 3827 AR="$ac_cv_prog_AR"
 3828 if test -n "$AR"; then
 3829   echo "$ac_t""$AR" 1>&6
 3830 else
 3831   echo "$ac_t""no" 1>&6
 3832 fi
 3833 
 3834 else
 3835   AR="ar"
 3836 fi
 3837 fi
 3838 
 3839 
 3840 
 3841 
 3842 
 3843 echo $ac_n "checking for options to update archives""... $ac_c" 1>&6
 3844 echo "configure:3845: checking for options to update archives" >&5
 3845 if eval "test \"`echo '$''{'cf_cv_ar_flags'+set}'`\" = set"; then
 3846   echo $ac_n "(cached) $ac_c" 1>&6
 3847 else
 3848   
 3849     cf_cv_ar_flags=unknown
 3850     for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
 3851     do
 3852 
 3853         # check if $ARFLAGS already contains this choice
 3854         if test "x$ARFLAGS" != "x" ; then
 3855             cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
 3856             if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
 3857                 cf_cv_ar_flags=
 3858                 break
 3859             fi
 3860         fi
 3861 
 3862         rm -f conftest.$ac_cv_objext
 3863         rm -f conftest.a
 3864 
 3865         cat >conftest.$ac_ext <<EOF
 3866 #line 3867 "configure"
 3867 int testdata[3] = { 123, 456, 789 };
 3868 EOF
 3869         if { (eval echo configure:3870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } ; then
 3870             echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
 3871             $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
 3872             if test -f conftest.a ; then
 3873                 cf_cv_ar_flags=$cf_ar_flags
 3874                 break
 3875             fi
 3876         else
 3877             test -n "$verbose" && echo "    cannot compile test-program" 1>&6
 3878 
 3879 echo "${as_me:-configure}:3880: testing cannot compile test-program ..." 1>&5
 3880 
 3881 
 3882             break
 3883         fi
 3884     done
 3885     rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
 3886 
 3887 fi
 3888 
 3889 echo "$ac_t""$cf_cv_ar_flags" 1>&6
 3890 
 3891 if test -n "$ARFLAGS" ; then
 3892     if test -n "$cf_cv_ar_flags" ; then
 3893         ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
 3894     fi
 3895 else
 3896     ARFLAGS=$cf_cv_ar_flags
 3897 fi
 3898 
 3899 
 3900 
 3901 
 3902 case "$host_cpu:$host_vendor:$host_os" in
 3903     # check for MacOS X, exclude Darwin on ix86
 3904 #   powerpc:apple:darwin*)  #(vi
 3905 #       AC_DEFINE(MAC_OS_X)
 3906 #       ;;
 3907     # check for cygwin environment
 3908     # -DSTATIC is needed for pcre
 3909     *:*:*cygwin*)   #(vi
 3910         PCRE_DEFINES="$PCRE_DEFINES -DSTATIC"
 3911         ;;
 3912     # SEIUX doesn't have any useful preprocessor symbol
 3913     mips:sei:seiux*)    #(vi
 3914         cat >> confdefs.h <<\EOF
 3915 #define SEIUX 1
 3916 EOF
 3917 
 3918         ;;
 3919 esac
 3920 
 3921 echo $ac_n "checking if you would like to use heapsort""... $ac_c" 1>&6
 3922 echo "configure:3923: checking if you would like to use heapsort" >&5
 3923 
 3924 # Check whether --enable-heapsort or --disable-heapsort was given.
 3925 if test "${enable_heapsort+set}" = set; then
 3926   enableval="$enable_heapsort"
 3927   test "$enableval" != no && enableval=yes
 3928     if test "$enableval" != "yes" ; then
 3929     cf_use_heapsort=no 
 3930     else
 3931         cf_use_heapsort=yes
 3932     fi
 3933 else
 3934   enableval=yes 
 3935     cf_use_heapsort=yes
 3936 
 3937 fi
 3938 
 3939 echo "$ac_t""$cf_use_heapsort" 1>&6
 3940 if test "x$cf_use_heapsort" = xyes; then
 3941     for ac_func in heapsort
 3942 do
 3943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 3944 echo "configure:3945: checking for $ac_func" >&5
 3945 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 3946   echo $ac_n "(cached) $ac_c" 1>&6
 3947 else
 3948   cat > conftest.$ac_ext <<EOF
 3949 #line 3950 "configure"
 3950 #include "confdefs.h"
 3951 /* System header to define __stub macros and hopefully few prototypes,
 3952     which can conflict with char $ac_func(); below.  */
 3953 #include <assert.h>
 3954 /* Override any gcc2 internal prototype to avoid an error.  */
 3955 /* We use char because int might match the return type of a gcc2
 3956     builtin and then its argument prototype would still apply.  */
 3957 char $ac_func();
 3958 
 3959 int main() {
 3960 
 3961 /* The GNU C library defines this for functions which it implements
 3962     to always fail with ENOSYS.  Some functions are actually named
 3963     something starting with __ and the normal name is an alias.  */
 3964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 3965 choke me
 3966 #else
 3967 $ac_func();
 3968 #endif
 3969 
 3970 ; return 0; }
 3971 EOF
 3972 if { (eval echo configure:3973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 3973   
 3974   eval "ac_cv_func_$ac_func=yes"
 3975 else
 3976   echo "configure: failed program was:" >&5
 3977   cat conftest.$ac_ext >&5
 3978 
 3979   eval "ac_cv_func_$ac_func=no"
 3980 fi
 3981 rm -rf conftest*
 3982 fi
 3983 
 3984 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 3985   echo "$ac_t""yes" 1>&6
 3986     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 3987   cat >> confdefs.h <<EOF
 3988 #define $ac_tr_func 1
 3989 EOF
 3990  
 3991 else
 3992   echo "$ac_t""no" 1>&6
 3993 fi
 3994 done
 3995 
 3996     if test x"$ac_cv_func_heapsort" = xyes; then
 3997         echo $ac_n "checking if its prototype is compatible with qsort""... $ac_c" 1>&6
 3998 echo "configure:3999: checking if its prototype is compatible with qsort" >&5
 3999         cat > conftest.$ac_ext <<EOF
 4000 #line 4001 "configure"
 4001 #include "confdefs.h"
 4002 
 4003 #include <stdlib.h>
 4004 #include <sys/types.h>
 4005 extern int my_compare(const void *, const void *);
 4006 
 4007 int main() {
 4008 
 4009     char *base = 0;
 4010     heapsort((void *)0, 1, 2, my_compare);
 4011 
 4012 ; return 0; }
 4013 EOF
 4014 if { (eval echo configure:4015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 4015   :
 4016 else
 4017   echo "configure: failed program was:" >&5
 4018   cat conftest.$ac_ext >&5
 4019   rm -rf conftest*
 4020   cf_use_heapsort=no
 4021 fi
 4022 rm -f conftest*;
 4023         echo "$ac_t""$cf_use_heapsort" 1>&6
 4024     else
 4025         test -n "$verbose" && echo "    will use our own heapsort function" 1>&6
 4026 
 4027 echo "${as_me:-configure}:4028: testing will use our own heapsort function ..." 1>&5
 4028 
 4029 
 4030         EXTRAO_DEP=''
 4031         EXTRAOBJS="$EXTRAOBJS \$(OBJDIR)/heapsort.o"
 4032     fi
 4033 fi
 4034 if test "x$cf_use_heapsort" = xyes; then
 4035     cat >> confdefs.h <<\EOF
 4036 #define USE_HEAPSORT 1
 4037 EOF
 4038 
 4039 fi
 4040 
 4041 
 4042 # Check whether --with-ispell or --without-ispell was given.
 4043 if test "${with_ispell+set}" = set; then
 4044   withval="$with_ispell"
 4045   case "$withval" in #(vi
 4046   yes)
 4047    { echo "configure: error: expected a value for --with-ispell" 1>&2; exit 1; }
 4048    ;; #(vi
 4049   no)
 4050    ;; #(vi
 4051   *)
 4052    # user supplied option-value for "--with-ispell=path"
 4053    echo $ac_n "checking for ispell""... $ac_c" 1>&6
 4054 echo "configure:4055: checking for ispell" >&5
 4055    ac_cv_path_PATH_ISPELL="$withval"
 4056    cat >> confdefs.h <<EOF
 4057 #define PATH_ISPELL "$withval"
 4058 EOF
 4059    cat >> confdefs.h <<\EOF
 4060 #define HAVE_ISPELL 1
 4061 EOF
 4062    echo "$ac_t""$withval" 1>&6
 4063    ;;
 4064  esac
 4065 else
 4066   
 4067   # user did not specify "--with-ispell"; do automatic check
 4068   # Extract the first word of "ispell", so it can be a program name with args.
 4069 set dummy ispell; ac_word=$2
 4070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 4071 echo "configure:4072: checking for $ac_word" >&5
 4072 if eval "test \"`echo '$''{'ac_cv_path_PATH_ISPELL'+set}'`\" = set"; then
 4073   echo $ac_n "(cached) $ac_c" 1>&6
 4074 else
 4075   case "$PATH_ISPELL" in
 4076   /*)
 4077   ac_cv_path_PATH_ISPELL="$PATH_ISPELL" # Let the user override the test with a path.
 4078   ;;
 4079   ?:/*)          
 4080   ac_cv_path_PATH_ISPELL="$PATH_ISPELL" # Let the user override the test with a dos path.
 4081   ;;
 4082   *)
 4083   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 4084   ac_dummy="$PATH"
 4085   for ac_dir in $ac_dummy; do 
 4086     test -z "$ac_dir" && ac_dir=.
 4087     if test -f $ac_dir/$ac_word; then
 4088       ac_cv_path_PATH_ISPELL="$ac_dir/$ac_word"
 4089       break
 4090     fi
 4091   done
 4092   IFS="$ac_save_ifs"
 4093   ;;
 4094 esac
 4095 fi
 4096 PATH_ISPELL="$ac_cv_path_PATH_ISPELL"
 4097 if test -n "$PATH_ISPELL"; then
 4098   echo "$ac_t""$PATH_ISPELL" 1>&6
 4099 else
 4100   echo "$ac_t""no" 1>&6
 4101 fi
 4102 
 4103   if test -n "$PATH_ISPELL"; then
 4104     cat >> confdefs.h <<EOF
 4105 #define PATH_ISPELL "$PATH_ISPELL"
 4106 EOF
 4107     cat >> confdefs.h <<\EOF
 4108 #define HAVE_ISPELL 1
 4109 EOF
 4110   fi
 4111 
 4112 fi
 4113 
 4114 
 4115 
 4116 # Check whether --with-metamail or --without-metamail was given.
 4117 if test "${with_metamail+set}" = set; then
 4118   withval="$with_metamail"
 4119   case "$withval" in #(vi
 4120   yes)
 4121    { echo "configure: error: expected a value for --with-metamail" 1>&2; exit 1; }
 4122    ;; #(vi
 4123   no)
 4124    ;; #(vi
 4125   *)
 4126    # user supplied option-value for "--with-metamail=path"
 4127    echo $ac_n "checking for metamail""... $ac_c" 1>&6
 4128 echo "configure:4129: checking for metamail" >&5
 4129    ac_cv_path_PATH_METAMAIL="$withval"
 4130    cat >> confdefs.h <<EOF
 4131 #define PATH_METAMAIL "$withval"
 4132 EOF
 4133    cat >> confdefs.h <<\EOF
 4134 #define HAVE_METAMAIL 1
 4135 EOF
 4136    echo "$ac_t""$withval" 1>&6
 4137    ;;
 4138  esac
 4139 else
 4140   
 4141   # user did not specify "--with-metamail"; do automatic check
 4142   # Extract the first word of "metamail", so it can be a program name with args.
 4143 set dummy metamail; ac_word=$2
 4144 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 4145 echo "configure:4146: checking for $ac_word" >&5
 4146 if eval "test \"`echo '$''{'ac_cv_path_PATH_METAMAIL'+set}'`\" = set"; then
 4147   echo $ac_n "(cached) $ac_c" 1>&6
 4148 else
 4149   case "$PATH_METAMAIL" in
 4150   /*)
 4151   ac_cv_path_PATH_METAMAIL="$PATH_METAMAIL" # Let the user override the test with a path.
 4152   ;;
 4153   ?:/*)          
 4154   ac_cv_path_PATH_METAMAIL="$PATH_METAMAIL" # Let the user override the test with a dos path.
 4155   ;;
 4156   *)
 4157   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 4158   ac_dummy="$PATH"
 4159   for ac_dir in $ac_dummy; do 
 4160     test -z "$ac_dir" && ac_dir=.
 4161     if test -f $ac_dir/$ac_word; then
 4162       ac_cv_path_PATH_METAMAIL="$ac_dir/$ac_word"
 4163       break
 4164     fi
 4165   done
 4166   IFS="$ac_save_ifs"
 4167   ;;
 4168 esac
 4169 fi
 4170 PATH_METAMAIL="$ac_cv_path_PATH_METAMAIL"
 4171 if test -n "$PATH_METAMAIL"; then
 4172   echo "$ac_t""$PATH_METAMAIL" 1>&6
 4173 else
 4174   echo "$ac_t""no" 1>&6
 4175 fi
 4176 
 4177   if test -n "$PATH_METAMAIL"; then
 4178     cat >> confdefs.h <<EOF
 4179 #define PATH_METAMAIL "$PATH_METAMAIL"
 4180 EOF
 4181     cat >> confdefs.h <<\EOF
 4182 #define HAVE_METAMAIL 1
 4183 EOF
 4184   fi
 4185 
 4186 fi
 4187 
 4188 
 4189 
 4190 # Check whether --with-sum or --without-sum was given.
 4191 if test "${with_sum+set}" = set; then
 4192   withval="$with_sum"
 4193   case "$withval" in #(vi
 4194   yes)
 4195    { echo "configure: error: expected a value for --with-sum" 1>&2; exit 1; }
 4196    ;; #(vi
 4197   no)
 4198    ;; #(vi
 4199   *)
 4200    # user supplied option-value for "--with-sum=path"
 4201    echo $ac_n "checking for sum""... $ac_c" 1>&6
 4202 echo "configure:4203: checking for sum" >&5
 4203    ac_cv_path_PATH_SUM="$withval"
 4204    cat >> confdefs.h <<EOF
 4205 #define PATH_SUM "$withval"
 4206 EOF
 4207    cat >> confdefs.h <<\EOF
 4208 #define HAVE_SUM 1
 4209 EOF
 4210    echo "$ac_t""$withval" 1>&6
 4211    ;;
 4212  esac
 4213 else
 4214   
 4215   # user did not specify "--with-sum"; do automatic check
 4216   # Extract the first word of "sum", so it can be a program name with args.
 4217 set dummy sum; ac_word=$2
 4218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 4219 echo "configure:4220: checking for $ac_word" >&5
 4220 if eval "test \"`echo '$''{'ac_cv_path_PATH_SUM'+set}'`\" = set"; then
 4221   echo $ac_n "(cached) $ac_c" 1>&6
 4222 else
 4223   case "$PATH_SUM" in
 4224   /*)
 4225   ac_cv_path_PATH_SUM="$PATH_SUM" # Let the user override the test with a path.
 4226   ;;
 4227   ?:/*)          
 4228   ac_cv_path_PATH_SUM="$PATH_SUM" # Let the user override the test with a dos path.
 4229   ;;
 4230   *)
 4231   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 4232   ac_dummy="$PATH"
 4233   for ac_dir in $ac_dummy; do 
 4234     test -z "$ac_dir" && ac_dir=.
 4235     if test -f $ac_dir/$ac_word; then
 4236       ac_cv_path_PATH_SUM="$ac_dir/$ac_word"
 4237       break
 4238     fi
 4239   done
 4240   IFS="$ac_save_ifs"
 4241   ;;
 4242 esac
 4243 fi
 4244 PATH_SUM="$ac_cv_path_PATH_SUM"
 4245 if test -n "$PATH_SUM"; then
 4246   echo "$ac_t""$PATH_SUM" 1>&6
 4247 else
 4248   echo "$ac_t""no" 1>&6
 4249 fi
 4250 
 4251   if test -n "$PATH_SUM"; then
 4252     cat >> confdefs.h <<EOF
 4253 #define PATH_SUM "$PATH_SUM"
 4254 EOF
 4255     cat >> confdefs.h <<\EOF
 4256 #define HAVE_SUM 1
 4257 EOF
 4258   fi
 4259 
 4260 fi
 4261 
 4262 
 4263 if test $ac_cv_path_PATH_SUM
 4264 then
 4265 echo $ac_n "checking if $ac_cv_path_PATH_SUM takes -r""... $ac_c" 1>&6
 4266 echo "configure:4267: checking if $ac_cv_path_PATH_SUM takes -r" >&5
 4267 if eval "test \"`echo '$''{'ac_cv_prog_sum_r'+set}'`\" = set"; then
 4268   echo $ac_n "(cached) $ac_c" 1>&6
 4269 else
 4270   
 4271 if { ac_try='$ac_cv_path_PATH_SUM -r config.log 1>&5'; { (eval echo configure:4272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
 4272 then
 4273     ac_cv_prog_sum_r=yes
 4274 else
 4275     ac_cv_prog_sum_r=no
 4276 fi
 4277 
 4278 fi
 4279 
 4280 if test $ac_cv_prog_sum_r = yes; then
 4281     cat >> confdefs.h <<\EOF
 4282 #define SUM_TAKES_DASH_R 1
 4283 EOF
 4284 
 4285     cat >> confdefs.h <<EOF
 4286 #define PATH_SUM_R "$ac_cv_path_PATH_SUM -r"
 4287 EOF
 4288 
 4289 else
 4290     cat >> confdefs.h <<EOF
 4291 #define PATH_SUM_R "$ac_cv_path_PATH_SUM"
 4292 EOF
 4293 
 4294 fi
 4295 echo "$ac_t""$ac_cv_prog_sum_r" 1>&6
 4296 fi
 4297 
 4298 
 4299 
 4300 echo $ac_n "checking for default editor""... $ac_c" 1>&6
 4301 echo "configure:4302: checking for default editor" >&5
 4302 
 4303 # Check whether --with-editor or --without-editor was given.
 4304 if test "${with_editor+set}" = set; then
 4305   withval="$with_editor"
 4306   :
 4307 else
 4308   withval="${DEFAULT_EDITOR}"
 4309 fi
 4310 test -n "$withval" && \
 4311 case "$withval" in #(vi
 4312 yes)
 4313   { echo "configure: error: expected a value for --with-editor" 1>&2; exit 1; }
 4314   ;; #(vi
 4315 no) withval=""
 4316   ;;
 4317 esac
 4318 DEFAULT_EDITOR="$withval"
 4319 
 4320 if test -z "$DEFAULT_EDITOR" ; then
 4321     if test -n "$EDITOR" ; then
 4322         DEFAULT_EDITOR="$EDITOR"
 4323     elif test -n "$VISUAL" ; then
 4324         DEFAULT_EDITOR="$VISUAL"
 4325     else
 4326     # Extract the first word of "vi", so it can be a program name with args.
 4327 set dummy vi; ac_word=$2
 4328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 4329 echo "configure:4330: checking for $ac_word" >&5
 4330 if eval "test \"`echo '$''{'ac_cv_path_DEFAULT_EDITOR'+set}'`\" = set"; then
 4331   echo $ac_n "(cached) $ac_c" 1>&6
 4332 else
 4333   case "$DEFAULT_EDITOR" in
 4334   /*)
 4335   ac_cv_path_DEFAULT_EDITOR="$DEFAULT_EDITOR" # Let the user override the test with a path.
 4336   ;;
 4337   ?:/*)          
 4338   ac_cv_path_DEFAULT_EDITOR="$DEFAULT_EDITOR" # Let the user override the test with a dos path.
 4339   ;;
 4340   *)
 4341   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 4342   ac_dummy="$PATH:/usr/bin:/usr/ucb"
 4343   for ac_dir in $ac_dummy; do 
 4344     test -z "$ac_dir" && ac_dir=.
 4345     if test -f $ac_dir/$ac_word; then
 4346       ac_cv_path_DEFAULT_EDITOR="$ac_dir/$ac_word"
 4347       break
 4348     fi
 4349   done
 4350   IFS="$ac_save_ifs"
 4351   test -z "$ac_cv_path_DEFAULT_EDITOR" && ac_cv_path_DEFAULT_EDITOR="vi"
 4352   ;;
 4353 esac
 4354 fi
 4355 DEFAULT_EDITOR="$ac_cv_path_DEFAULT_EDITOR"
 4356 if test -n "$DEFAULT_EDITOR"; then
 4357   echo "$ac_t""$DEFAULT_EDITOR" 1>&6
 4358 else
 4359   echo "$ac_t""no" 1>&6
 4360 fi
 4361 
 4362     fi
 4363 fi
 4364 echo "$ac_t""$DEFAULT_EDITOR" 1>&6
 4365 cat >> confdefs.h <<EOF
 4366 #define DEFAULT_EDITOR "$DEFAULT_EDITOR"
 4367 EOF
 4368 
 4369 
 4370 
 4371 # Extract the first word of "sendmail", so it can be a program name with args.
 4372 set dummy sendmail; ac_word=$2
 4373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 4374 echo "configure:4375: checking for $ac_word" >&5
 4375 if eval "test \"`echo '$''{'ac_cv_path_DEFAULT_MAILER'+set}'`\" = set"; then
 4376   echo $ac_n "(cached) $ac_c" 1>&6
 4377 else
 4378   case "$DEFAULT_MAILER" in
 4379   /*)
 4380   ac_cv_path_DEFAULT_MAILER="$DEFAULT_MAILER" # Let the user override the test with a path.
 4381   ;;
 4382   ?:/*)          
 4383   ac_cv_path_DEFAULT_MAILER="$DEFAULT_MAILER" # Let the user override the test with a dos path.
 4384   ;;
 4385   *)
 4386   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 4387   ac_dummy="$PATH:/usr/sbin:/usr/lib"
 4388   for ac_dir in $ac_dummy; do 
 4389     test -z "$ac_dir" && ac_dir=.
 4390     if test -f $ac_dir/$ac_word; then
 4391       ac_cv_path_DEFAULT_MAILER="$ac_dir/$ac_word"
 4392       break
 4393     fi
 4394   done
 4395   IFS="$ac_save_ifs"
 4396   ;;
 4397 esac
 4398 fi
 4399 DEFAULT_MAILER="$ac_cv_path_DEFAULT_MAILER"
 4400 if test -n "$DEFAULT_MAILER"; then
 4401   echo "$ac_t""$DEFAULT_MAILER" 1>&6
 4402 else
 4403   echo "$ac_t""no" 1>&6
 4404 fi
 4405 
 4406 
 4407 # Check whether --with-mailer or --without-mailer was given.
 4408 if test "${with_mailer+set}" = set; then
 4409   withval="$with_mailer"
 4410   :
 4411 else
 4412   withval="${DEFAULT_MAILER}"
 4413 fi
 4414 test -n "$withval" && \
 4415 case "$withval" in #(vi
 4416 yes)
 4417   { echo "configure: error: expected a value for --with-mailer" 1>&2; exit 1; }
 4418   ;; #(vi
 4419 no) withval=""
 4420   ;;
 4421 esac
 4422 DEFAULT_MAILER="$withval"
 4423 
 4424 if test -z "$DEFAULT_MAILER" ; then
 4425 # Extract the first word of "mailx", so it can be a program name with args.
 4426 set dummy mailx; ac_word=$2
 4427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 4428 echo "configure:4429: checking for $ac_word" >&5
 4429 if eval "test \"`echo '$''{'ac_cv_path_DEFAULT_MAILER'+set}'`\" = set"; then
 4430   echo $ac_n "(cached) $ac_c" 1>&6
 4431 else
 4432   case "$DEFAULT_MAILER" in
 4433   /*)
 4434   ac_cv_path_DEFAULT_MAILER="$DEFAULT_MAILER" # Let the user override the test with a path.
 4435   ;;
 4436   ?:/*)          
 4437   ac_cv_path_DEFAULT_MAILER="$DEFAULT_MAILER" # Let the user override the test with a dos path.
 4438   ;;
 4439   *)
 4440   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 4441   ac_dummy="$PATH:/usr/bin"
 4442   for ac_dir in $ac_dummy; do 
 4443     test -z "$ac_dir" && ac_dir=.
 4444     if test -f $ac_dir/$ac_word; then
 4445       ac_cv_path_DEFAULT_MAILER="$ac_dir/$ac_word"
 4446       break
 4447     fi
 4448   done
 4449   IFS="$ac_save_ifs"
 4450   ;;
 4451 esac
 4452 fi
 4453 DEFAULT_MAILER="$ac_cv_path_DEFAULT_MAILER"
 4454 if test -n "$DEFAULT_MAILER"; then
 4455   echo "$ac_t""$DEFAULT_MAILER" 1>&6
 4456 else
 4457   echo "$ac_t""no" 1>&6
 4458 fi
 4459 
 4460 fi
 4461 if test -z "$DEFAULT_MAILER" ; then
 4462 # Extract the first word of "mail", so it can be a program name with args.
 4463 set dummy mail; ac_word=$2
 4464 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 4465 echo "configure:4466: checking for $ac_word" >&5
 4466 if eval "test \"`echo '$''{'ac_cv_path_DEFAULT_MAILER'+set}'`\" = set"; then
 4467   echo $ac_n "(cached) $ac_c" 1>&6
 4468 else
 4469   case "$DEFAULT_MAILER" in
 4470   /*)
 4471   ac_cv_path_DEFAULT_MAILER="$DEFAULT_MAILER" # Let the user override the test with a path.
 4472   ;;
 4473   ?:/*)          
 4474   ac_cv_path_DEFAULT_MAILER="$DEFAULT_MAILER" # Let the user override the test with a dos path.
 4475   ;;
 4476   *)
 4477   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 4478   ac_dummy="$PATH:/usr/bin"
 4479   for ac_dir in $ac_dummy; do 
 4480     test -z "$ac_dir" && ac_dir=.
 4481     if test -f $ac_dir/$ac_word; then
 4482       ac_cv_path_DEFAULT_MAILER="$ac_dir/$ac_word"
 4483       break
 4484     fi
 4485   done
 4486   IFS="$ac_save_ifs"
 4487   ;;
 4488 esac
 4489 fi
 4490 DEFAULT_MAILER="$ac_cv_path_DEFAULT_MAILER"
 4491 if test -n "$DEFAULT_MAILER"; then
 4492   echo "$ac_t""$DEFAULT_MAILER" 1>&6
 4493 else
 4494   echo "$ac_t""no" 1>&6
 4495 fi
 4496 
 4497 fi
 4498 echo $ac_n "checking for default mailer""... $ac_c" 1>&6
 4499 echo "configure:4500: checking for default mailer" >&5
 4500 if test -n "$DEFAULT_MAILER" ; then
 4501     
 4502 case $cf_cv_system_name in #(vi
 4503 os2*|cygwin*)
 4504     ac_cv_path_DEFAULT_MAILER=`echo "$ac_cv_path_DEFAULT_MAILER" | sed -e 's%\\\\%/%g'`
 4505     ;;
 4506 esac
 4507 
 4508     
 4509 case $cf_cv_system_name in #(vi
 4510 os2*|cygwin*)
 4511     DEFAULT_MAILER=`echo "$DEFAULT_MAILER" | sed -e 's%\\\\%/%g'`
 4512     ;;
 4513 esac
 4514 
 4515     cat >> confdefs.h <<EOF
 4516 #define DEFAULT_MAILER "$DEFAULT_MAILER"
 4517 EOF
 4518 
 4519 else
 4520     DEFAULT_MAILER=none
 4521 fi
 4522 echo "$ac_t""$DEFAULT_MAILER" 1>&6
 4523 
 4524 
 4525 echo $ac_n "checking for incoming-mail directory""... $ac_c" 1>&6
 4526 echo "configure:4527: checking for incoming-mail directory" >&5
 4527 
 4528 # Check whether --with-mailbox or --without-mailbox was given.
 4529 if test "${with_mailbox+set}" = set; then
 4530   withval="$with_mailbox"
 4531   :
 4532 else
 4533   withval="${DEFAULT_MAILBOX}"
 4534 fi
 4535 test -n "$withval" && \
 4536 case "$withval" in #(vi
 4537 yes)
 4538   { echo "configure: error: expected a value for --with-mailbox" 1>&2; exit 1; }
 4539   ;; #(vi
 4540 no) withval=""
 4541   ;;
 4542 esac
 4543 DEFAULT_MAILBOX="$withval"
 4544 
 4545 if test -z "$DEFAULT_MAILBOX" ; then
 4546 for cf_dir in \
 4547     /var/spool/mail \
 4548     /usr/spool/mail \
 4549     /var/mail \
 4550     /usr/mail \
 4551     /mail
 4552     do
 4553         if test -d $cf_dir ; then
 4554         DEFAULT_MAILBOX=$cf_dir
 4555         break
 4556     fi
 4557     done
 4558 fi
 4559 if test -n "$DEFAULT_MAILBOX" ; then
 4560     cat >> confdefs.h <<EOF
 4561 #define DEFAULT_MAILBOX "$DEFAULT_MAILBOX"
 4562 EOF
 4563 
 4564 else
 4565     DEFAULT_MAILBOX=none
 4566 fi
 4567 echo "$ac_t""$DEFAULT_MAILBOX" 1>&6
 4568 
 4569 
 4570 ## PGP Support
 4571 echo $ac_n "checking if you want PGP/GPG-Support""... $ac_c" 1>&6
 4572 echo "configure:4573: checking if you want PGP/GPG-Support" >&5
 4573 
 4574 # Check whether --enable-pgp-gpg or --disable-pgp-gpg was given.
 4575 if test "${enable_pgp_gpg+set}" = set; then
 4576   enableval="$enable_pgp_gpg"
 4577   test "$enableval" != no && enableval=yes
 4578     if test "$enableval" != "yes" ; then
 4579     USE_PGP_GPG=no 
 4580     else
 4581         USE_PGP_GPG=yes
 4582     fi
 4583 else
 4584   enableval=yes 
 4585     USE_PGP_GPG=yes
 4586 
 4587 fi
 4588 
 4589 echo "$ac_t""$enableval" 1>&6
 4590 if test "$USE_PGP_GPG" = "yes" ; then
 4591     
 4592 # Check whether --with-pgp or --without-pgp was given.
 4593 if test "${with_pgp+set}" = set; then
 4594   withval="$with_pgp"
 4595   case "$withval" in #(vi
 4596   yes)
 4597    { echo "configure: error: expected a value for --with-pgp" 1>&2; exit 1; }
 4598    ;; #(vi
 4599   no)
 4600    ;; #(vi
 4601   *)
 4602    # user supplied option-value for "--with-pgp=path"
 4603    echo $ac_n "checking for pgp""... $ac_c" 1>&6
 4604 echo "configure:4605: checking for pgp" >&5
 4605    ac_cv_path_PATH_PGP="$withval"
 4606    cat >> confdefs.h <<EOF
 4607 #define PATH_PGP "$withval"
 4608 EOF
 4609    cat >> confdefs.h <<\EOF
 4610 #define HAVE_PGP 1
 4611 EOF
 4612    echo "$ac_t""$withval" 1>&6
 4613    ;;
 4614  esac
 4615 else
 4616   
 4617   # user did not specify "--with-pgp"; do automatic check
 4618   # Extract the first word of "pgp", so it can be a program name with args.
 4619 set dummy pgp; ac_word=$2
 4620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 4621 echo "configure:4622: checking for $ac_word" >&5
 4622 if eval "test \"`echo '$''{'ac_cv_path_PATH_PGP'+set}'`\" = set"; then
 4623   echo $ac_n "(cached) $ac_c" 1>&6
 4624 else
 4625   case "$PATH_PGP" in
 4626   /*)
 4627   ac_cv_path_PATH_PGP="$PATH_PGP" # Let the user override the test with a path.
 4628   ;;
 4629   ?:/*)          
 4630   ac_cv_path_PATH_PGP="$PATH_PGP" # Let the user override the test with a dos path.
 4631   ;;
 4632   *)
 4633   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 4634   ac_dummy="$PATH"
 4635   for ac_dir in $ac_dummy; do 
 4636     test -z "$ac_dir" && ac_dir=.
 4637     if test -f $ac_dir/$ac_word; then
 4638       ac_cv_path_PATH_PGP="$ac_dir/$ac_word"
 4639       break
 4640     fi
 4641   done
 4642   IFS="$ac_save_ifs"
 4643   ;;
 4644 esac
 4645 fi
 4646 PATH_PGP="$ac_cv_path_PATH_PGP"
 4647 if test -n "$PATH_PGP"; then
 4648   echo "$ac_t""$PATH_PGP" 1>&6
 4649 else
 4650   echo "$ac_t""no" 1>&6
 4651 fi
 4652 
 4653   if test -n "$PATH_PGP"; then
 4654     cat >> confdefs.h <<EOF
 4655 #define PATH_PGP "$PATH_PGP"
 4656 EOF
 4657     cat >> confdefs.h <<\EOF
 4658 #define HAVE_PGP 1
 4659 EOF
 4660   fi
 4661 
 4662 fi
 4663 
 4664     # FIXME: check if pgp is pgp2 or pgp6
 4665 
 4666     
 4667 # Check whether --with-pgpk or --without-pgpk was given.
 4668 if test "${with_pgpk+set}" = set; then
 4669   withval="$with_pgpk"
 4670   case "$withval" in #(vi
 4671   yes)
 4672    { echo "configure: error: expected a value for --with-pgpk" 1>&2; exit 1; }
 4673    ;; #(vi
 4674   no)
 4675    ;; #(vi
 4676   *)
 4677    # user supplied option-value for "--with-pgpk=path"
 4678    echo $ac_n "checking for pgpk""... $ac_c" 1>&6
 4679 echo "configure:4680: checking for pgpk" >&5
 4680    ac_cv_path_PATH_PGPK="$withval"
 4681    cat >> confdefs.h <<EOF
 4682 #define PATH_PGPK "$withval"
 4683 EOF
 4684    cat >> confdefs.h <<\EOF
 4685 #define HAVE_PGPK 1
 4686 EOF
 4687    echo "$ac_t""$withval" 1>&6
 4688    ;;
 4689  esac
 4690 else
 4691   
 4692   # user did not specify "--with-pgpk"; do automatic check
 4693   # Extract the first word of "pgpk", so it can be a program name with args.
 4694 set dummy pgpk; ac_word=$2
 4695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 4696 echo "configure:4697: checking for $ac_word" >&5
 4697 if eval "test \"`echo '$''{'ac_cv_path_PATH_PGPK'+set}'`\" = set"; then
 4698   echo $ac_n "(cached) $ac_c" 1>&6
 4699 else
 4700   case "$PATH_PGPK" in
 4701   /*)
 4702   ac_cv_path_PATH_PGPK="$PATH_PGPK" # Let the user override the test with a path.
 4703   ;;
 4704   ?:/*)          
 4705   ac_cv_path_PATH_PGPK="$PATH_PGPK" # Let the user override the test with a dos path.
 4706   ;;
 4707   *)
 4708   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 4709   ac_dummy="$PATH"
 4710   for ac_dir in $ac_dummy; do 
 4711     test -z "$ac_dir" && ac_dir=.
 4712     if test -f $ac_dir/$ac_word; then
 4713       ac_cv_path_PATH_PGPK="$ac_dir/$ac_word"
 4714       break
 4715     fi
 4716   done
 4717   IFS="$ac_save_ifs"
 4718   ;;
 4719 esac
 4720 fi
 4721 PATH_PGPK="$ac_cv_path_PATH_PGPK"
 4722 if test -n "$PATH_PGPK"; then
 4723   echo "$ac_t""$PATH_PGPK" 1>&6
 4724 else
 4725   echo "$ac_t""no" 1>&6
 4726 fi
 4727 
 4728   if test -n "$PATH_PGPK"; then
 4729     cat >> confdefs.h <<EOF
 4730 #define PATH_PGPK "$PATH_PGPK"
 4731 EOF
 4732     cat >> confdefs.h <<\EOF
 4733 #define HAVE_PGPK 1
 4734 EOF
 4735   fi
 4736 
 4737 fi
 4738 
 4739     # FIXME: remove tailing k
 4740 
 4741     
 4742 # Check whether --with-gpg or --without-gpg was given.
 4743 if test "${with_gpg+set}" = set; then
 4744   withval="$with_gpg"
 4745   case "$withval" in #(vi
 4746   yes)
 4747    { echo "configure: error: expected a value for --with-gpg" 1>&2; exit 1; }
 4748    ;; #(vi
 4749   no)
 4750    ;; #(vi
 4751   *)
 4752    # user supplied option-value for "--with-gpg=path"
 4753    echo $ac_n "checking for gpg""... $ac_c" 1>&6
 4754 echo "configure:4755: checking for gpg" >&5
 4755    ac_cv_path_PATH_GPG="$withval"
 4756    cat >> confdefs.h <<EOF
 4757 #define PATH_GPG "$withval"
 4758 EOF
 4759    cat >> confdefs.h <<\EOF
 4760 #define HAVE_GPG 1
 4761 EOF
 4762    echo "$ac_t""$withval" 1>&6
 4763    ;;
 4764  esac
 4765 else
 4766   
 4767   # user did not specify "--with-gpg"; do automatic check
 4768   # Extract the first word of "gpg", so it can be a program name with args.
 4769 set dummy gpg; ac_word=$2
 4770 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 4771 echo "configure:4772: checking for $ac_word" >&5
 4772 if eval "test \"`echo '$''{'ac_cv_path_PATH_GPG'+set}'`\" = set"; then
 4773   echo $ac_n "(cached) $ac_c" 1>&6
 4774 else
 4775   case "$PATH_GPG" in
 4776   /*)
 4777   ac_cv_path_PATH_GPG="$PATH_GPG" # Let the user override the test with a path.
 4778   ;;
 4779   ?:/*)          
 4780   ac_cv_path_PATH_GPG="$PATH_GPG" # Let the user override the test with a dos path.
 4781   ;;
 4782   *)
 4783   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 4784   ac_dummy="$PATH"
 4785   for ac_dir in $ac_dummy; do 
 4786     test -z "$ac_dir" && ac_dir=.
 4787     if test -f $ac_dir/$ac_word; then
 4788       ac_cv_path_PATH_GPG="$ac_dir/$ac_word"
 4789       break
 4790     fi
 4791   done
 4792   IFS="$ac_save_ifs"
 4793   ;;
 4794 esac
 4795 fi
 4796 PATH_GPG="$ac_cv_path_PATH_GPG"
 4797 if test -n "$PATH_GPG"; then
 4798   echo "$ac_t""$PATH_GPG" 1>&6
 4799 else
 4800   echo "$ac_t""no" 1>&6
 4801 fi
 4802 
 4803   if test -n "$PATH_GPG"; then
 4804     cat >> confdefs.h <<EOF
 4805 #define PATH_GPG "$PATH_GPG"
 4806 EOF
 4807     cat >> confdefs.h <<\EOF
 4808 #define HAVE_GPG 1
 4809 EOF
 4810   fi
 4811 
 4812 fi
 4813 
 4814 fi
 4815 
 4816 ## slrnface
 4817 
 4818 # Check whether --with-slrnface or --without-slrnface was given.
 4819 if test "${with_slrnface+set}" = set; then
 4820   withval="$with_slrnface"
 4821   case "$withval" in #(vi
 4822   yes)
 4823    { echo "configure: error: expected a value for --with-slrnface" 1>&2; exit 1; }
 4824    ;; #(vi
 4825   no)
 4826    ;; #(vi
 4827   *)
 4828    # user supplied option-value for "--with-slrnface=path"
 4829    echo $ac_n "checking for slrnface""... $ac_c" 1>&6
 4830 echo "configure:4831: checking for slrnface" >&5
 4831    ac_cv_path_PATH_SLRNFACE="$withval"
 4832    cat >> confdefs.h <<EOF
 4833 #define PATH_SLRNFACE "$withval"
 4834 EOF
 4835    cat >> confdefs.h <<\EOF
 4836 #define HAVE_SLRNFACE 1
 4837 EOF
 4838    echo "$ac_t""$withval" 1>&6
 4839    ;;
 4840  esac
 4841 else
 4842   
 4843   # user did not specify "--with-slrnface"; do automatic check
 4844   # Extract the first word of "slrnface", so it can be a program name with args.
 4845 set dummy slrnface; ac_word=$2
 4846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 4847 echo "configure:4848: checking for $ac_word" >&5
 4848 if eval "test \"`echo '$''{'ac_cv_path_PATH_SLRNFACE'+set}'`\" = set"; then
 4849   echo $ac_n "(cached) $ac_c" 1>&6
 4850 else
 4851   case "$PATH_SLRNFACE" in
 4852   /*)
 4853   ac_cv_path_PATH_SLRNFACE="$PATH_SLRNFACE" # Let the user override the test with a path.
 4854   ;;
 4855   ?:/*)          
 4856   ac_cv_path_PATH_SLRNFACE="$PATH_SLRNFACE" # Let the user override the test with a dos path.
 4857   ;;
 4858   *)
 4859   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 4860   ac_dummy="$PATH"
 4861   for ac_dir in $ac_dummy; do 
 4862     test -z "$ac_dir" && ac_dir=.
 4863     if test -f $ac_dir/$ac_word; then
 4864       ac_cv_path_PATH_SLRNFACE="$ac_dir/$ac_word"
 4865       break
 4866     fi
 4867   done
 4868   IFS="$ac_save_ifs"
 4869   ;;
 4870 esac
 4871 fi
 4872 PATH_SLRNFACE="$ac_cv_path_PATH_SLRNFACE"
 4873 if test -n "$PATH_SLRNFACE"; then
 4874   echo "$ac_t""$PATH_SLRNFACE" 1>&6
 4875 else
 4876   echo "$ac_t""no" 1>&6
 4877 fi
 4878 
 4879   if test -n "$PATH_SLRNFACE"; then
 4880     cat >> confdefs.h <<EOF
 4881 #define PATH_SLRNFACE "$PATH_SLRNFACE"
 4882 EOF
 4883     cat >> confdefs.h <<\EOF
 4884 #define HAVE_SLRNFACE 1
 4885 EOF
 4886   fi
 4887 
 4888 fi
 4889 
 4890 if test -n "$ac_cv_path_PATH_SLRNFACE"; then
 4891     EXTRAO_DEP=""
 4892     EXTRAOBJS="$EXTRAOBJS \$(OBJDIR)/xface.o"
 4893 fi
 4894 
 4895 ## Default shell
 4896 
 4897 # Check whether --with-shell or --without-shell was given.
 4898 if test "${with_shell+set}" = set; then
 4899   withval="$with_shell"
 4900   cf_cv_default_shell=$withval
 4901 else
 4902   cf_cv_default_shell=
 4903 fi
 4904 
 4905 
 4906 echo $ac_n "checking for the default shell program""... $ac_c" 1>&6
 4907 echo "configure:4908: checking for the default shell program" >&5
 4908 cf_shell_progs="$cf_cv_default_shell"
 4909 if test -z "$cf_shell_progs" ; then
 4910     cf_shell_progs="sh ksh bash zsh pdksh mksh jsh keysh ash dash"
 4911     # TIN preferred default shell for BSD systems is csh. Others are sh.
 4912     cat > conftest.$ac_ext <<EOF
 4913 #line 4914 "configure"
 4914 #include "confdefs.h"
 4915 
 4916 #include <sys/params.h>
 4917 int main() {
 4918 
 4919 #if (defined(BSD) && (BSD >= 199103))
 4920 #else
 4921 make an error
 4922 #endif
 4923 
 4924 ; return 0; }
 4925 EOF
 4926 if { (eval echo configure:4927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 4927   rm -rf conftest*
 4928   $cf_shell_progs="csh tcsh $cf_shell_progs"
 4929 else
 4930   echo "configure: failed program was:" >&5
 4931   cat conftest.$ac_ext >&5
 4932 fi
 4933 rm -f conftest*
 4934 fi
 4935 
 4936 echo "${as_me:-configure}:4937: testing paths of shell programs: $cf_shell_progs ..." 1>&5
 4937 
 4938 if test -s /etc/shells && test `egrep -c -v '^(#| |    |$)' /etc/shells` -gt 0; then
 4939     
 4940 echo "${as_me:-configure}:4941: testing /etc/shells ..." 1>&5
 4941 
 4942     for cf_prog in $cf_shell_progs
 4943     do
 4944         case $cf_prog in
 4945             /*)
 4946                 cf_pattern="^"$cf_prog"$"
 4947                 ;;
 4948             */*)
 4949                 { echo "configure: error: Program name must be absolute or filename: $cf_prog" 1>&2; exit 1; }
 4950                 ;;
 4951             *)
 4952                 cf_pattern="/"$cf_prog"$"
 4953                 ;;
 4954         esac
 4955         cf_path=`egrep $cf_pattern /etc/shells 2>/dev/null`
 4956         if test -n "$cf_path"
 4957         then
 4958             for cf_shell in $cf_path
 4959             do
 4960                 if test -f "$cf_shell"
 4961                 then
 4962                     DEFAULT_SHELL="$cf_shell"
 4963                     break
 4964                 fi
 4965             done
 4966         fi
 4967         if test -n "$DEFAULT_SHELL"
 4968         then
 4969             break
 4970         fi
 4971     done
 4972     echo "$ac_t""$DEFAULT_SHELL" 1>&6
 4973 else
 4974     
 4975 echo "${as_me:-configure}:4976: testing $PATH ..." 1>&5
 4976 
 4977 for ac_prog in $cf_shell_progs
 4978 do
 4979 # Extract the first word of "$ac_prog", so it can be a program name with args.
 4980 set dummy $ac_prog; ac_word=$2
 4981 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 4982 echo "configure:4983: checking for $ac_word" >&5
 4983 if eval "test \"`echo '$''{'ac_cv_path_DEFAULT_SHELL'+set}'`\" = set"; then
 4984   echo $ac_n "(cached) $ac_c" 1>&6
 4985 else
 4986   case "$DEFAULT_SHELL" in
 4987   /*)
 4988   ac_cv_path_DEFAULT_SHELL="$DEFAULT_SHELL" # Let the user override the test with a path.
 4989   ;;
 4990   ?:/*)          
 4991   ac_cv_path_DEFAULT_SHELL="$DEFAULT_SHELL" # Let the user override the test with a dos path.
 4992   ;;
 4993   *)
 4994   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 4995   ac_dummy="$PATH:/bin:/usr/bin:/usr/xpg4/bin:/bin/posix:/usr/bin/posix:/usr/old/bin:/usr/local/bin"
 4996   for ac_dir in $ac_dummy; do 
 4997     test -z "$ac_dir" && ac_dir=.
 4998     if test -f $ac_dir/$ac_word; then
 4999       ac_cv_path_DEFAULT_SHELL="$ac_dir/$ac_word"
 5000       break
 5001     fi
 5002   done
 5003   IFS="$ac_save_ifs"
 5004   ;;
 5005 esac
 5006 fi
 5007 DEFAULT_SHELL="$ac_cv_path_DEFAULT_SHELL"
 5008 if test -n "$DEFAULT_SHELL"; then
 5009   echo "$ac_t""$DEFAULT_SHELL" 1>&6
 5010 else
 5011   echo "$ac_t""no" 1>&6
 5012 fi
 5013 
 5014 test -n "$DEFAULT_SHELL" && break
 5015 done
 5016 
 5017 fi
 5018 if test -z "$DEFAULT_SHELL" ; then
 5019     echo "configure: warning: Cannot find the default shell you specified: $cf_shell_progs" 1>&2
 5020     if test -f /bin/false ; then
 5021         echo "configure: warning: Using /bin/false instead" 1>&2
 5022         DEFAULT_SHELL=/bin/false
 5023     else
 5024         { echo "configure: error: Cannot use /bin/false because it does not exist" 1>&2; exit 1; }
 5025     fi
 5026 fi
 5027 cat >> confdefs.h <<EOF
 5028 #define DEFAULT_SHELL "$DEFAULT_SHELL"
 5029 EOF
 5030 
 5031 
 5032 
 5033 ### check for this early, since it'll override several options
 5034 echo $ac_n "checking if NNTP-support will be used""... $ac_c" 1>&6
 5035 echo "configure:5036: checking if NNTP-support will be used" >&5
 5036 
 5037 # Check whether --enable-nntp or --disable-nntp was given.
 5038 if test "${enable_nntp+set}" = set; then
 5039   enableval="$enable_nntp"
 5040   test "$enableval" != no && enableval=yes
 5041     if test "$enableval" != "yes" ; then
 5042     USE_NNTP=no 
 5043     else
 5044         USE_NNTP=yes
 5045     fi
 5046 else
 5047   enableval=yes 
 5048     USE_NNTP=yes
 5049 
 5050 fi
 5051 
 5052 echo "$ac_t""$enableval" 1>&6
 5053 
 5054 USE_SPOOLDIR=yes
 5055 if test "$USE_NNTP" = "yes" ; then
 5056 echo $ac_n "checking whether to be NNTP_ONLY""... $ac_c" 1>&6
 5057 echo "configure:5058: checking whether to be NNTP_ONLY" >&5
 5058 
 5059 # Check whether --enable-nntp-only or --disable-nntp-only was given.
 5060 if test "${enable_nntp_only+set}" = set; then
 5061   enableval="$enable_nntp_only"
 5062   test "$enableval" != yes && enableval=no
 5063     if test "$enableval" != "no" ; then
 5064     cat >> confdefs.h <<\EOF
 5065 #define NNTP_ONLY 1
 5066 EOF
 5067 
 5068      USE_SPOOLDIR=no 
 5069     else
 5070         cat >> confdefs.h <<\EOF
 5071 #define NNTP_ABLE 1
 5072 EOF
 5073 
 5074     fi
 5075 else
 5076   enableval=no 
 5077     cat >> confdefs.h <<\EOF
 5078 #define NNTP_ABLE 1
 5079 EOF
 5080 
 5081 
 5082 fi
 5083 
 5084 echo "$ac_t""$enableval" 1>&6
 5085 fi
 5086 
 5087 ### use option --enable-debug to compile-in test/development code
 5088 echo $ac_n "checking if you want to compile-in debug support""... $ac_c" 1>&6
 5089 echo "configure:5090: checking if you want to compile-in debug support" >&5
 5090 
 5091 # Check whether --enable-debug or --disable-debug was given.
 5092 if test "${enable_debug+set}" = set; then
 5093   enableval="$enable_debug"
 5094   test "$enableval" != yes && enableval=no
 5095     if test "$enableval" != "no" ; then
 5096     ENABLE_DEBUG=''
 5097     CFLAGS="-g $CFLAGS"
 5098     LDFLAGS="-g $LDFLAGS" 
 5099     else
 5100         ENABLE_DEBUG='#'
 5101     test -z "$save_CFLAGS" && CFLAGS=`echo $CFLAGS|sed -e 's/-g //' -e 's/-g$//'`
 5102     fi
 5103 else
 5104   enableval=no 
 5105     ENABLE_DEBUG='#'
 5106     test -z "$save_CFLAGS" && CFLAGS=`echo $CFLAGS|sed -e 's/-g //' -e 's/-g$//'`
 5107 
 5108 fi
 5109 
 5110 echo "$ac_t""$enableval" 1>&6
 5111 
 5112 
 5113 ### use option --disable-echo to suppress full display compiling commands
 5114 
 5115 echo $ac_n "checking if you want to see long compiling messages""... $ac_c" 1>&6
 5116 echo "configure:5117: checking if you want to see long compiling messages" >&5
 5117 
 5118 # Check whether --enable-echo or --disable-echo was given.
 5119 if test "${enable_echo+set}" = set; then
 5120   enableval="$enable_echo"
 5121   test "$enableval" != no && enableval=yes
 5122     if test "$enableval" != "yes" ; then
 5123     
 5124     ECHO_LT='--silent'
 5125     ECHO_LD='@echo linking $@;'
 5126     RULE_CC='@echo compiling $<'
 5127     SHOW_CC='@echo compiling $@'
 5128     ECHO_CC='@'
 5129  
 5130     else
 5131         
 5132     ECHO_LT=''
 5133     ECHO_LD=''
 5134     RULE_CC=''
 5135     SHOW_CC=''
 5136     ECHO_CC=''
 5137 
 5138     fi
 5139 else
 5140   enableval=yes 
 5141     
 5142     ECHO_LT=''
 5143     ECHO_LD=''
 5144     RULE_CC=''
 5145     SHOW_CC=''
 5146     ECHO_CC=''
 5147 
 5148 
 5149 fi
 5150 
 5151 echo "$ac_t""$enableval" 1>&6
 5152 
 5153 
 5154 
 5155 
 5156 
 5157 
 5158 
 5159 ### use option --enable-prototypes to turn on optional prototypes
 5160 echo $ac_n "checking if you want to compile with fallback prototypes""... $ac_c" 1>&6
 5161 echo "configure:5162: checking if you want to compile with fallback prototypes" >&5
 5162 
 5163 # Check whether --enable-prototypes or --disable-prototypes was given.
 5164 if test "${enable_prototypes+set}" = set; then
 5165   enableval="$enable_prototypes"
 5166   test "$enableval" != yes && enableval=no
 5167     if test "$enableval" != "no" ; then
 5168     with_decl_check=yes 
 5169     else
 5170         with_decl_check=no
 5171     fi
 5172 else
 5173   enableval=no 
 5174     with_decl_check=no
 5175 
 5176 fi
 5177 
 5178 echo "$ac_t""$enableval" 1>&6
 5179 
 5180 ### use option --enable-warnings to turn on all gcc warnings
 5181 EXTRA_CFLAGS=""
 5182 if test -n "$GCC"
 5183 then
 5184 echo $ac_n "checking if you want to turn on gcc warnings""... $ac_c" 1>&6
 5185 echo "configure:5186: checking if you want to turn on gcc warnings" >&5
 5186 
 5187 # Check whether --enable-warnings or --disable-warnings was given.
 5188 if test "${enable_warnings+set}" = set; then
 5189   enableval="$enable_warnings"
 5190   test "$enableval" != yes && enableval=no
 5191     if test "$enableval" != "no" ; then
 5192     with_warnings=yes 
 5193     else
 5194         with_warnings=no
 5195     fi
 5196 else
 5197   enableval=no 
 5198     with_warnings=no
 5199 
 5200 fi
 5201 
 5202 echo "$ac_t""$with_warnings" 1>&6
 5203 if test "$with_warnings" = "yes"
 5204 then
 5205     with_ext_const=yes
 5206     
 5207 
 5208 
 5209 
 5210 INTEL_COMPILER=no
 5211 
 5212 if test "$GCC" = yes ; then
 5213     case $host_os in
 5214     (linux*|gnu*)
 5215         echo $ac_n "checking if this is really Intel C compiler""... $ac_c" 1>&6
 5216 echo "configure:5217: checking if this is really Intel C compiler" >&5
 5217         cf_save_CFLAGS="$CFLAGS"
 5218         CFLAGS="$CFLAGS -no-gcc"
 5219         cat > conftest.$ac_ext <<EOF
 5220 #line 5221 "configure"
 5221 #include "confdefs.h"
 5222 
 5223 int main() {
 5224 
 5225 #ifdef __INTEL_COMPILER
 5226 #else
 5227 make an error
 5228 #endif
 5229 
 5230 ; return 0; }
 5231 EOF
 5232 if { (eval echo configure:5233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 5233   rm -rf conftest*
 5234   INTEL_COMPILER=yes
 5235 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
 5236 
 5237 else
 5238   echo "configure: failed program was:" >&5
 5239   cat conftest.$ac_ext >&5
 5240 fi
 5241 rm -f conftest*
 5242         CFLAGS="$cf_save_CFLAGS"
 5243         echo "$ac_t""$INTEL_COMPILER" 1>&6
 5244         ;;
 5245     esac
 5246 fi
 5247 
 5248 
 5249 CLANG_COMPILER=no
 5250 
 5251 if test "$GCC" = yes ; then
 5252     echo $ac_n "checking if this is really Clang C compiler""... $ac_c" 1>&6
 5253 echo "configure:5254: checking if this is really Clang C compiler" >&5
 5254     cf_save_CFLAGS="$CFLAGS"
 5255     CFLAGS="$CFLAGS -Qunused-arguments"
 5256     cat > conftest.$ac_ext <<EOF
 5257 #line 5258 "configure"
 5258 #include "confdefs.h"
 5259 
 5260 int main() {
 5261 
 5262 #ifdef __clang__
 5263 #else
 5264 make an error
 5265 #endif
 5266 
 5267 ; return 0; }
 5268 EOF
 5269 if { (eval echo configure:5270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 5270   rm -rf conftest*
 5271   CLANG_COMPILER=yes
 5272 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
 5273 
 5274 else
 5275   echo "configure: failed program was:" >&5
 5276   cat conftest.$ac_ext >&5
 5277 fi
 5278 rm -f conftest*
 5279     CFLAGS="$cf_save_CFLAGS"
 5280     echo "$ac_t""$CLANG_COMPILER" 1>&6
 5281 fi
 5282 
 5283 
 5284 cat > conftest.$ac_ext <<EOF
 5285 #line 5286 "${as_me:-configure}"
 5286 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
 5287 EOF
 5288 
 5289 if test "$INTEL_COMPILER" = yes
 5290 then
 5291 # The "-wdXXX" options suppress warnings:
 5292 # remark #1419: external declaration in primary source file
 5293 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
 5294 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
 5295 # remark #193: zero used for undefined preprocessing identifier
 5296 # remark #593: variable "curs_sb_left_arrow" was set but never used
 5297 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
 5298 # remark #869: parameter "tw" was never referenced
 5299 # remark #981: operands are evaluated in unspecified order
 5300 # warning #279: controlling expression is constant
 5301 
 5302     echo "checking for $CC warning options" 1>&6
 5303 echo "configure:5304: checking for $CC warning options" >&5
 5304     cf_save_CFLAGS="$CFLAGS"
 5305     EXTRA_CFLAGS="-Wall"
 5306     for cf_opt in \
 5307         wd1419 \
 5308         wd1683 \
 5309         wd1684 \
 5310         wd193 \
 5311         wd593 \
 5312         wd279 \
 5313         wd810 \
 5314         wd869 \
 5315         wd981
 5316     do
 5317         CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
 5318         if { (eval echo configure:5319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 5319             test -n "$verbose" && echo "$ac_t""... -$cf_opt" 1>&6
 5320             EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
 5321         fi
 5322     done
 5323     CFLAGS="$cf_save_CFLAGS"
 5324 
 5325 elif test "$GCC" = yes
 5326 then
 5327     echo "checking for $CC warning options" 1>&6
 5328 echo "configure:5329: checking for $CC warning options" >&5
 5329     cf_save_CFLAGS="$CFLAGS"
 5330     EXTRA_CFLAG