Home | History | Annotate | Line # | Download | only in dist
configure revision 1.1.1.7.12.1
      1           1.1  christos #! /bin/sh
      2       1.1.1.6  christos # From configure.in Revision: 1.21 .
      3           1.1  christos # Guess values for system-dependent variables and create Makefiles.
      4  1.1.1.7.12.1  christos # Generated by Autoconf 2.52.20170501.
      5           1.1  christos #
      6           1.1  christos # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
      7           1.1  christos # Free Software Foundation, Inc.
      8           1.1  christos # This configure script is free software; the Free Software Foundation
      9           1.1  christos # gives unlimited permission to copy, distribute and modify it.
     10           1.1  christos 
     11           1.1  christos # Avoid depending upon Character Ranges.
     12           1.1  christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     13           1.1  christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     14           1.1  christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     15           1.1  christos as_cr_digits='0123456789'
     16           1.1  christos as_cr_alnum=$as_cr_Letters$as_cr_digits
     17           1.1  christos 
     18           1.1  christos # Sed expression to map a string onto a valid variable name.
     19           1.1  christos as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
     20           1.1  christos 
     21           1.1  christos # Sed expression to map a string onto a valid CPP name.
     22           1.1  christos as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
     23           1.1  christos 
     24           1.1  christos # Be Bourne compatible
     25           1.1  christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     26           1.1  christos   emulate sh
     27           1.1  christos   NULLCMD=:
     28           1.1  christos elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     29           1.1  christos   set -o posix
     30           1.1  christos fi
     31           1.1  christos 
     32           1.1  christos # Name of the executable.
     33           1.1  christos as_me=`echo "$0" |sed 's,.*[\\/],,'`
     34           1.1  christos 
     35           1.1  christos if expr a : '\(a\)' >/dev/null 2>&1; then
     36           1.1  christos   as_expr=expr
     37           1.1  christos else
     38           1.1  christos   as_expr=false
     39           1.1  christos fi
     40           1.1  christos 
     41           1.1  christos rm -f conf$$ conf$$.exe conf$$.file
     42           1.1  christos echo >conf$$.file
     43           1.1  christos if ln -s conf$$.file conf$$ 2>/dev/null; then
     44           1.1  christos   # We could just check for DJGPP; but this test a) works b) is more generic
     45           1.1  christos   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     46           1.1  christos   if test -f conf$$.exe; then
     47           1.1  christos     # Don't use ln at all; we don't have any links
     48           1.1  christos     as_ln_s='cp -p'
     49           1.1  christos   else
     50           1.1  christos     as_ln_s='ln -s'
     51           1.1  christos   fi
     52           1.1  christos elif ln conf$$.file conf$$ 2>/dev/null; then
     53           1.1  christos   as_ln_s=ln
     54           1.1  christos else
     55           1.1  christos   as_ln_s='cp -p'
     56           1.1  christos fi
     57           1.1  christos rm -f conf$$ conf$$.exe conf$$.file
     58           1.1  christos 
     59           1.1  christos as_executable_p="test -f"
     60           1.1  christos 
     61           1.1  christos # Support unset when possible.
     62           1.1  christos if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
     63           1.1  christos   as_unset=unset
     64           1.1  christos else
     65           1.1  christos   as_unset=false
     66           1.1  christos fi
     67           1.1  christos 
     68           1.1  christos # NLS nuisances.
     69           1.1  christos $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
     70           1.1  christos $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
     71           1.1  christos $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
     72           1.1  christos $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
     73           1.1  christos $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
     74           1.1  christos $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
     75           1.1  christos $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
     76           1.1  christos $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
     77           1.1  christos 
     78           1.1  christos # IFS
     79           1.1  christos # We need space, tab and new line, in precisely that order.
     80           1.1  christos as_nl='
     81           1.1  christos '
     82           1.1  christos IFS=" 	$as_nl"
     83           1.1  christos 
     84           1.1  christos # CDPATH.
     85           1.1  christos $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
     86           1.1  christos 
     87           1.1  christos # Name of the host.
     88           1.1  christos # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     89           1.1  christos # so uname gets run too.
     90           1.1  christos ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
     91           1.1  christos 
     92           1.1  christos exec 6>&1
     93           1.1  christos 
     94           1.1  christos #
     95           1.1  christos # Initializations.
     96           1.1  christos #
     97           1.1  christos ac_default_prefix=/usr/local
     98           1.1  christos cross_compiling=no
     99           1.1  christos subdirs=
    100           1.1  christos MFLAGS= MAKEFLAGS=
    101           1.1  christos SHELL=${CONFIG_SHELL-/bin/sh}
    102           1.1  christos 
    103           1.1  christos # Maximum number of lines to put in a shell here document.
    104           1.1  christos # This variable seems obsolete.  It should probably be removed, and
    105           1.1  christos # only ac_max_sed_lines should be used.
    106           1.1  christos : ${ac_max_here_lines=38}
    107           1.1  christos 
    108           1.1  christos ac_unique_file="main.c"
    109       1.1.1.5  christos # Factoring default headers for most tests.
    110       1.1.1.5  christos ac_includes_default="\
    111       1.1.1.5  christos #include <stdio.h>
    112       1.1.1.5  christos #if HAVE_SYS_TYPES_H
    113       1.1.1.5  christos # include <sys/types.h>
    114       1.1.1.5  christos #endif
    115       1.1.1.5  christos #if HAVE_SYS_STAT_H
    116       1.1.1.5  christos # include <sys/stat.h>
    117       1.1.1.5  christos #endif
    118       1.1.1.5  christos #if STDC_HEADERS
    119       1.1.1.5  christos # include <stdlib.h>
    120       1.1.1.5  christos # include <stddef.h>
    121       1.1.1.5  christos #else
    122       1.1.1.5  christos # if HAVE_STDLIB_H
    123       1.1.1.5  christos #  include <stdlib.h>
    124       1.1.1.5  christos # endif
    125       1.1.1.5  christos #endif
    126       1.1.1.5  christos #if HAVE_STRING_H
    127       1.1.1.5  christos # if !STDC_HEADERS && HAVE_MEMORY_H
    128       1.1.1.5  christos #  include <memory.h>
    129       1.1.1.5  christos # endif
    130       1.1.1.5  christos # include <string.h>
    131       1.1.1.5  christos #endif
    132       1.1.1.5  christos #if HAVE_STRINGS_H
    133       1.1.1.5  christos # include <strings.h>
    134       1.1.1.5  christos #endif
    135       1.1.1.5  christos #if HAVE_INTTYPES_H
    136       1.1.1.5  christos # include <inttypes.h>
    137       1.1.1.5  christos #else
    138       1.1.1.5  christos # if HAVE_STDINT_H
    139       1.1.1.5  christos #  include <stdint.h>
    140       1.1.1.5  christos # endif
    141       1.1.1.5  christos #endif
    142       1.1.1.5  christos #if HAVE_UNISTD_H
    143       1.1.1.5  christos # include <unistd.h>
    144       1.1.1.5  christos #endif"
    145           1.1  christos 
    146           1.1  christos # Initialize some variables set by options.
    147           1.1  christos ac_init_help=
    148           1.1  christos ac_init_version=false
    149           1.1  christos # The variables have the same names as the options, with
    150           1.1  christos # dashes changed to underlines.
    151           1.1  christos cache_file=/dev/null
    152           1.1  christos exec_prefix=NONE
    153           1.1  christos no_create=
    154           1.1  christos no_recursion=
    155           1.1  christos prefix=NONE
    156           1.1  christos program_prefix=NONE
    157           1.1  christos program_suffix=NONE
    158           1.1  christos program_transform_name=s,x,x,
    159           1.1  christos silent=
    160           1.1  christos site=
    161           1.1  christos srcdir=
    162           1.1  christos verbose=
    163           1.1  christos x_includes=NONE
    164           1.1  christos x_libraries=NONE
    165           1.1  christos 
    166           1.1  christos # Installation directory options.
    167           1.1  christos # These are left unexpanded so users can "make install exec_prefix=/foo"
    168           1.1  christos # and all the variables that are supposed to be based on exec_prefix
    169           1.1  christos # by default will actually change.
    170           1.1  christos # Use braces instead of parens because sh, perl, etc. also accept them.
    171           1.1  christos bindir='${exec_prefix}/bin'
    172           1.1  christos sbindir='${exec_prefix}/sbin'
    173           1.1  christos libexecdir='${exec_prefix}/libexec'
    174       1.1.1.4  christos datarootdir='${prefix}/share'
    175       1.1.1.4  christos datadir='${datarootdir}'
    176           1.1  christos sysconfdir='${prefix}/etc'
    177           1.1  christos sharedstatedir='${prefix}/com'
    178           1.1  christos localstatedir='${prefix}/var'
    179           1.1  christos libdir='${exec_prefix}/lib'
    180           1.1  christos includedir='${prefix}/include'
    181           1.1  christos oldincludedir='/usr/include'
    182       1.1.1.4  christos infodir='${datarootdir}/info'
    183       1.1.1.4  christos mandir='${datarootdir}/man'
    184           1.1  christos 
    185           1.1  christos # Identity of this package.
    186           1.1  christos PACKAGE_NAME=
    187           1.1  christos PACKAGE_TARNAME=
    188           1.1  christos PACKAGE_VERSION=
    189           1.1  christos PACKAGE_STRING=
    190           1.1  christos PACKAGE_BUGREPORT=
    191           1.1  christos 
    192           1.1  christos ac_prev=
    193           1.1  christos for ac_option
    194           1.1  christos do
    195           1.1  christos   # If the previous option needs an argument, assign it.
    196           1.1  christos   if test -n "$ac_prev"; then
    197           1.1  christos     eval "$ac_prev=\$ac_option"
    198           1.1  christos     ac_prev=
    199           1.1  christos     continue
    200           1.1  christos   fi
    201           1.1  christos 
    202           1.1  christos   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
    203           1.1  christos 
    204           1.1  christos   # Accept the important Cygnus configure options, so we can diagnose typos.
    205           1.1  christos 
    206           1.1  christos   case $ac_option in
    207           1.1  christos 
    208           1.1  christos   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    209           1.1  christos     ac_prev=bindir ;;
    210           1.1  christos   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    211           1.1  christos     bindir=$ac_optarg ;;
    212           1.1  christos 
    213           1.1  christos   -build | --build | --buil | --bui | --bu)
    214           1.1  christos     ac_prev=build_alias ;;
    215           1.1  christos   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    216           1.1  christos     build_alias=$ac_optarg ;;
    217           1.1  christos 
    218           1.1  christos   -cache-file | --cache-file | --cache-fil | --cache-fi \
    219           1.1  christos   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    220           1.1  christos     ac_prev=cache_file ;;
    221           1.1  christos   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    222           1.1  christos   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    223           1.1  christos     cache_file=$ac_optarg ;;
    224           1.1  christos 
    225           1.1  christos   --config-cache | -C)
    226           1.1  christos     cache_file=config.cache ;;
    227           1.1  christos 
    228           1.1  christos   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    229           1.1  christos     ac_prev=datadir ;;
    230           1.1  christos   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    231           1.1  christos   | --da=*)
    232           1.1  christos     datadir=$ac_optarg ;;
    233           1.1  christos 
    234       1.1.1.4  christos   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    235       1.1.1.4  christos   | --dataroo | --dataro | --datar)
    236       1.1.1.4  christos     ac_prev=datarootdir ;;
    237       1.1.1.4  christos   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    238       1.1.1.4  christos   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    239       1.1.1.4  christos     datarootdir=$ac_optarg ;;
    240       1.1.1.4  christos 
    241           1.1  christos   -disable-* | --disable-*)
    242           1.1  christos     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    243           1.1  christos     # Reject names that are not valid shell variable names.
    244           1.1  christos     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    245           1.1  christos       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    246           1.1  christos    { (exit 1); exit 1; }; }
    247           1.1  christos     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    248           1.1  christos     eval "enable_$ac_feature=no" ;;
    249           1.1  christos 
    250           1.1  christos   -enable-* | --enable-*)
    251           1.1  christos     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    252           1.1  christos     # Reject names that are not valid shell variable names.
    253           1.1  christos     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    254           1.1  christos       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    255           1.1  christos    { (exit 1); exit 1; }; }
    256           1.1  christos     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    257           1.1  christos     case $ac_option in
    258           1.1  christos       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    259           1.1  christos       *) ac_optarg=yes ;;
    260           1.1  christos     esac
    261           1.1  christos     eval "enable_$ac_feature='$ac_optarg'" ;;
    262           1.1  christos 
    263           1.1  christos   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    264           1.1  christos   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    265           1.1  christos   | --exec | --exe | --ex)
    266           1.1  christos     ac_prev=exec_prefix ;;
    267           1.1  christos   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    268           1.1  christos   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    269           1.1  christos   | --exec=* | --exe=* | --ex=*)
    270           1.1  christos     exec_prefix=$ac_optarg ;;
    271           1.1  christos 
    272           1.1  christos   -gas | --gas | --ga | --g)
    273           1.1  christos     # Obsolete; use --with-gas.
    274           1.1  christos     with_gas=yes ;;
    275           1.1  christos 
    276           1.1  christos   -help | --help | --hel | --he | -h)
    277           1.1  christos     ac_init_help=long ;;
    278           1.1  christos   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    279           1.1  christos     ac_init_help=recursive ;;
    280           1.1  christos   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    281           1.1  christos     ac_init_help=short ;;
    282           1.1  christos 
    283           1.1  christos   -host | --host | --hos | --ho)
    284           1.1  christos     ac_prev=host_alias ;;
    285           1.1  christos   -host=* | --host=* | --hos=* | --ho=*)
    286           1.1  christos     host_alias=$ac_optarg ;;
    287           1.1  christos 
    288           1.1  christos   -includedir | --includedir | --includedi | --included | --include \
    289           1.1  christos   | --includ | --inclu | --incl | --inc)
    290           1.1  christos     ac_prev=includedir ;;
    291           1.1  christos   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    292           1.1  christos   | --includ=* | --inclu=* | --incl=* | --inc=*)
    293           1.1  christos     includedir=$ac_optarg ;;
    294           1.1  christos 
    295           1.1  christos   -infodir | --infodir | --infodi | --infod | --info | --inf)
    296           1.1  christos     ac_prev=infodir ;;
    297           1.1  christos   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    298           1.1  christos     infodir=$ac_optarg ;;
    299           1.1  christos 
    300           1.1  christos   -libdir | --libdir | --libdi | --libd)
    301           1.1  christos     ac_prev=libdir ;;
    302           1.1  christos   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    303           1.1  christos     libdir=$ac_optarg ;;
    304           1.1  christos 
    305           1.1  christos   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    306           1.1  christos   | --libexe | --libex | --libe)
    307           1.1  christos     ac_prev=libexecdir ;;
    308           1.1  christos   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    309           1.1  christos   | --libexe=* | --libex=* | --libe=*)
    310           1.1  christos     libexecdir=$ac_optarg ;;
    311           1.1  christos 
    312           1.1  christos   -localstatedir | --localstatedir | --localstatedi | --localstated \
    313           1.1  christos   | --localstate | --localstat | --localsta | --localst \
    314           1.1  christos   | --locals | --local | --loca | --loc | --lo)
    315           1.1  christos     ac_prev=localstatedir ;;
    316           1.1  christos   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    317           1.1  christos   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    318           1.1  christos   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    319           1.1  christos     localstatedir=$ac_optarg ;;
    320           1.1  christos 
    321           1.1  christos   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    322           1.1  christos     ac_prev=mandir ;;
    323           1.1  christos   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    324           1.1  christos     mandir=$ac_optarg ;;
    325           1.1  christos 
    326           1.1  christos   -nfp | --nfp | --nf)
    327           1.1  christos     # Obsolete; use --without-fp.
    328           1.1  christos     with_fp=no ;;
    329           1.1  christos 
    330           1.1  christos   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    331           1.1  christos   | --no-cr | --no-c)
    332           1.1  christos     no_create=yes ;;
    333           1.1  christos 
    334           1.1  christos   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    335           1.1  christos   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    336           1.1  christos     no_recursion=yes ;;
    337           1.1  christos 
    338           1.1  christos   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
    339           1.1  christos   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
    340           1.1  christos   | --oldin | --oldi | --old | --ol | --o)
    341           1.1  christos     ac_prev=oldincludedir ;;
    342           1.1  christos   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
    343           1.1  christos   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    344           1.1  christos   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    345           1.1  christos     oldincludedir=$ac_optarg ;;
    346           1.1  christos 
    347           1.1  christos   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    348           1.1  christos     ac_prev=prefix ;;
    349           1.1  christos   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    350           1.1  christos     prefix=$ac_optarg ;;
    351           1.1  christos 
    352           1.1  christos   -program-prefix | --program-prefix | --program-prefi | --program-pref \
    353           1.1  christos   | --program-pre | --program-pr | --program-p)
    354           1.1  christos     ac_prev=program_prefix ;;
    355           1.1  christos   -program-prefix=* | --program-prefix=* | --program-prefi=* \
    356           1.1  christos   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    357           1.1  christos     program_prefix=$ac_optarg ;;
    358           1.1  christos 
    359           1.1  christos   -program-suffix | --program-suffix | --program-suffi | --program-suff \
    360           1.1  christos   | --program-suf | --program-su | --program-s)
    361           1.1  christos     ac_prev=program_suffix ;;
    362           1.1  christos   -program-suffix=* | --program-suffix=* | --program-suffi=* \
    363           1.1  christos   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    364           1.1  christos     program_suffix=$ac_optarg ;;
    365           1.1  christos 
    366           1.1  christos   -program-transform-name | --program-transform-name \
    367           1.1  christos   | --program-transform-nam | --program-transform-na \
    368           1.1  christos   | --program-transform-n | --program-transform- \
    369           1.1  christos   | --program-transform | --program-transfor \
    370           1.1  christos   | --program-transfo | --program-transf \
    371           1.1  christos   | --program-trans | --program-tran \
    372           1.1  christos   | --progr-tra | --program-tr | --program-t)
    373           1.1  christos     ac_prev=program_transform_name ;;
    374           1.1  christos   -program-transform-name=* | --program-transform-name=* \
    375           1.1  christos   | --program-transform-nam=* | --program-transform-na=* \
    376           1.1  christos   | --program-transform-n=* | --program-transform-=* \
    377           1.1  christos   | --program-transform=* | --program-transfor=* \
    378           1.1  christos   | --program-transfo=* | --program-transf=* \
    379           1.1  christos   | --program-trans=* | --program-tran=* \
    380           1.1  christos   | --progr-tra=* | --program-tr=* | --program-t=*)
    381           1.1  christos     program_transform_name=$ac_optarg ;;
    382           1.1  christos 
    383           1.1  christos   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    384           1.1  christos   | -silent | --silent | --silen | --sile | --sil)
    385           1.1  christos     silent=yes ;;
    386           1.1  christos 
    387           1.1  christos   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    388           1.1  christos     ac_prev=sbindir ;;
    389           1.1  christos   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    390           1.1  christos   | --sbi=* | --sb=*)
    391           1.1  christos     sbindir=$ac_optarg ;;
    392           1.1  christos 
    393           1.1  christos   -sharedstatedir | --sharedstatedir | --sharedstatedi \
    394           1.1  christos   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
    395           1.1  christos   | --sharedst | --shareds | --shared | --share | --shar \
    396           1.1  christos   | --sha | --sh)
    397           1.1  christos     ac_prev=sharedstatedir ;;
    398           1.1  christos   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
    399           1.1  christos   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
    400           1.1  christos   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    401           1.1  christos   | --sha=* | --sh=*)
    402           1.1  christos     sharedstatedir=$ac_optarg ;;
    403           1.1  christos 
    404           1.1  christos   -site | --site | --sit)
    405           1.1  christos     ac_prev=site ;;
    406           1.1  christos   -site=* | --site=* | --sit=*)
    407           1.1  christos     site=$ac_optarg ;;
    408           1.1  christos 
    409           1.1  christos   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    410           1.1  christos     ac_prev=srcdir ;;
    411           1.1  christos   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    412           1.1  christos     srcdir=$ac_optarg ;;
    413           1.1  christos 
    414           1.1  christos   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
    415           1.1  christos   | --syscon | --sysco | --sysc | --sys | --sy)
    416           1.1  christos     ac_prev=sysconfdir ;;
    417           1.1  christos   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    418           1.1  christos   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    419           1.1  christos     sysconfdir=$ac_optarg ;;
    420           1.1  christos 
    421           1.1  christos   -target | --target | --targe | --targ | --tar | --ta | --t)
    422           1.1  christos     ac_prev=target_alias ;;
    423           1.1  christos   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    424           1.1  christos     target_alias=$ac_optarg ;;
    425           1.1  christos 
    426           1.1  christos   -v | -verbose | --verbose | --verbos | --verbo | --verb)
    427           1.1  christos     verbose=yes ;;
    428           1.1  christos 
    429           1.1  christos   -version | --version | --versio | --versi | --vers | -V)
    430           1.1  christos     ac_init_version=: ;;
    431           1.1  christos 
    432           1.1  christos   -with-* | --with-*)
    433           1.1  christos     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    434           1.1  christos     # Reject names that are not valid shell variable names.
    435           1.1  christos     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    436           1.1  christos       { echo "$as_me: error: invalid package name: $ac_package" >&2
    437           1.1  christos    { (exit 1); exit 1; }; }
    438           1.1  christos     ac_package=`echo $ac_package| sed 's/-/_/g'`
    439           1.1  christos     case $ac_option in
    440           1.1  christos       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    441           1.1  christos       *) ac_optarg=yes ;;
    442           1.1  christos     esac
    443           1.1  christos     eval "with_$ac_package='$ac_optarg'" ;;
    444           1.1  christos 
    445           1.1  christos   -without-* | --without-*)
    446           1.1  christos     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    447           1.1  christos     # Reject names that are not valid shell variable names.
    448           1.1  christos     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    449           1.1  christos       { echo "$as_me: error: invalid package name: $ac_package" >&2
    450           1.1  christos    { (exit 1); exit 1; }; }
    451           1.1  christos     ac_package=`echo $ac_package | sed 's/-/_/g'`
    452           1.1  christos     eval "with_$ac_package=no" ;;
    453           1.1  christos 
    454           1.1  christos   --x)
    455           1.1  christos     # Obsolete; use --with-x.
    456           1.1  christos     with_x=yes ;;
    457           1.1  christos 
    458           1.1  christos   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
    459           1.1  christos   | --x-incl | --x-inc | --x-in | --x-i)
    460           1.1  christos     ac_prev=x_includes ;;
    461           1.1  christos   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    462           1.1  christos   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    463           1.1  christos     x_includes=$ac_optarg ;;
    464           1.1  christos 
    465           1.1  christos   -x-libraries | --x-libraries | --x-librarie | --x-librari \
    466           1.1  christos   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    467           1.1  christos     ac_prev=x_libraries ;;
    468           1.1  christos   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    469           1.1  christos   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    470           1.1  christos     x_libraries=$ac_optarg ;;
    471           1.1  christos 
    472           1.1  christos   -*) { echo "$as_me: error: unrecognized option: $ac_option
    473           1.1  christos Try \`$0 --help' for more information." >&2
    474           1.1  christos    { (exit 1); exit 1; }; }
    475           1.1  christos     ;;
    476           1.1  christos 
    477           1.1  christos   *=*)
    478           1.1  christos     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    479           1.1  christos     # Reject names that are not valid shell variable names.
    480           1.1  christos     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
    481           1.1  christos       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    482           1.1  christos    { (exit 1); exit 1; }; }
    483           1.1  christos     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    484           1.1  christos     eval "$ac_envvar='$ac_optarg'"
    485           1.1  christos     export $ac_envvar ;;
    486           1.1  christos 
    487           1.1  christos   *)
    488           1.1  christos     # FIXME: should be removed in autoconf 3.0.
    489           1.1  christos     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    490           1.1  christos     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    491           1.1  christos       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    492           1.1  christos     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    493           1.1  christos     ;;
    494           1.1  christos 
    495           1.1  christos   esac
    496           1.1  christos done
    497           1.1  christos 
    498           1.1  christos if test -n "$ac_prev"; then
    499           1.1  christos   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    500           1.1  christos   { echo "$as_me: error: missing argument to $ac_option" >&2
    501           1.1  christos    { (exit 1); exit 1; }; }
    502           1.1  christos fi
    503           1.1  christos 
    504           1.1  christos # Be sure to have absolute paths.
    505           1.1  christos for ac_var in exec_prefix prefix
    506           1.1  christos do
    507           1.1  christos   eval ac_val=$`echo $ac_var`
    508           1.1  christos   case $ac_val in
    509           1.1  christos     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    510           1.1  christos     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
    511           1.1  christos    { (exit 1); exit 1; }; };;
    512           1.1  christos   esac
    513           1.1  christos done
    514           1.1  christos 
    515           1.1  christos # Be sure to have absolute paths.
    516       1.1.1.4  christos for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
    517           1.1  christos               localstatedir libdir includedir oldincludedir infodir mandir
    518           1.1  christos do
    519           1.1  christos   eval ac_val=$`echo $ac_var`
    520           1.1  christos   case $ac_val in
    521           1.1  christos     [\\/$]* | ?:[\\/]* ) ;;
    522           1.1  christos     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
    523           1.1  christos    { (exit 1); exit 1; }; };;
    524           1.1  christos   esac
    525           1.1  christos done
    526           1.1  christos 
    527           1.1  christos # There might be people who depend on the old broken behavior: `$host'
    528           1.1  christos # used to hold the argument of --host etc.
    529           1.1  christos build=$build_alias
    530           1.1  christos host=$host_alias
    531           1.1  christos target=$target_alias
    532           1.1  christos 
    533           1.1  christos # FIXME: should be removed in autoconf 3.0.
    534           1.1  christos if test "x$host_alias" != x; then
    535           1.1  christos   if test "x$build_alias" = x; then
    536           1.1  christos     cross_compiling=maybe
    537           1.1  christos     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    538           1.1  christos     If a cross compiler is detected then cross compile mode will be used." >&2
    539           1.1  christos   elif test "x$build_alias" != "x$host_alias"; then
    540           1.1  christos     cross_compiling=yes
    541           1.1  christos   fi
    542           1.1  christos fi
    543           1.1  christos 
    544           1.1  christos ac_tool_prefix=
    545           1.1  christos test -n "$host_alias" && ac_tool_prefix=$host_alias-
    546           1.1  christos 
    547           1.1  christos test "$silent" = yes && exec 6>/dev/null
    548           1.1  christos 
    549           1.1  christos # Find the source files, if location was not specified.
    550           1.1  christos if test -z "$srcdir"; then
    551           1.1  christos   ac_srcdir_defaulted=yes
    552           1.1  christos   # Try the directory containing this script, then its parent.
    553           1.1  christos   ac_prog=$0
    554           1.1  christos   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
    555           1.1  christos   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
    556           1.1  christos   srcdir=$ac_confdir
    557           1.1  christos   if test ! -r $srcdir/$ac_unique_file; then
    558           1.1  christos     srcdir=..
    559           1.1  christos   fi
    560           1.1  christos else
    561           1.1  christos   ac_srcdir_defaulted=no
    562           1.1  christos fi
    563           1.1  christos if test ! -r $srcdir/$ac_unique_file; then
    564           1.1  christos   if test "$ac_srcdir_defaulted" = yes; then
    565           1.1  christos     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
    566           1.1  christos    { (exit 1); exit 1; }; }
    567           1.1  christos   else
    568           1.1  christos     { echo "$as_me: error: cannot find sources in $srcdir" >&2
    569           1.1  christos    { (exit 1); exit 1; }; }
    570           1.1  christos   fi
    571           1.1  christos fi
    572           1.1  christos srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    573           1.1  christos ac_env_build_alias_set=${build_alias+set}
    574           1.1  christos ac_env_build_alias_value=$build_alias
    575           1.1  christos ac_cv_env_build_alias_set=${build_alias+set}
    576           1.1  christos ac_cv_env_build_alias_value=$build_alias
    577           1.1  christos ac_env_host_alias_set=${host_alias+set}
    578           1.1  christos ac_env_host_alias_value=$host_alias
    579           1.1  christos ac_cv_env_host_alias_set=${host_alias+set}
    580           1.1  christos ac_cv_env_host_alias_value=$host_alias
    581           1.1  christos ac_env_target_alias_set=${target_alias+set}
    582           1.1  christos ac_env_target_alias_value=$target_alias
    583           1.1  christos ac_cv_env_target_alias_set=${target_alias+set}
    584           1.1  christos ac_cv_env_target_alias_value=$target_alias
    585           1.1  christos ac_env_CC_set=${CC+set}
    586           1.1  christos ac_env_CC_value=$CC
    587           1.1  christos ac_cv_env_CC_set=${CC+set}
    588           1.1  christos ac_cv_env_CC_value=$CC
    589           1.1  christos ac_env_CFLAGS_set=${CFLAGS+set}
    590           1.1  christos ac_env_CFLAGS_value=$CFLAGS
    591           1.1  christos ac_cv_env_CFLAGS_set=${CFLAGS+set}
    592           1.1  christos ac_cv_env_CFLAGS_value=$CFLAGS
    593           1.1  christos ac_env_LDFLAGS_set=${LDFLAGS+set}
    594           1.1  christos ac_env_LDFLAGS_value=$LDFLAGS
    595           1.1  christos ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    596           1.1  christos ac_cv_env_LDFLAGS_value=$LDFLAGS
    597           1.1  christos ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    598           1.1  christos ac_env_CPPFLAGS_value=$CPPFLAGS
    599           1.1  christos ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    600           1.1  christos ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    601           1.1  christos ac_env_CPP_set=${CPP+set}
    602           1.1  christos ac_env_CPP_value=$CPP
    603           1.1  christos ac_cv_env_CPP_set=${CPP+set}
    604           1.1  christos ac_cv_env_CPP_value=$CPP
    605           1.1  christos 
    606           1.1  christos #
    607           1.1  christos # Report the --help message.
    608           1.1  christos #
    609           1.1  christos if test "$ac_init_help" = "long"; then
    610           1.1  christos   # Omit some internal or obsolete options to make the list less imposing.
    611           1.1  christos   # This message is too long to be a string in the A/UX 3.1 sh.
    612           1.1  christos   cat <<EOF
    613           1.1  christos \`configure' configures this package to adapt to many kinds of systems.
    614           1.1  christos 
    615           1.1  christos Usage: $0 [OPTION]... [VAR=VALUE]...
    616           1.1  christos 
    617           1.1  christos To assign environment variables (e.g., CC, CFLAGS...), specify them as
    618           1.1  christos VAR=VALUE.  See below for descriptions of some of the useful variables.
    619           1.1  christos 
    620           1.1  christos Defaults for the options are specified in brackets.
    621           1.1  christos 
    622           1.1  christos Configuration:
    623           1.1  christos   -h, --help              display this help and exit
    624           1.1  christos       --help=short        display options specific to this package
    625           1.1  christos       --help=recursive    display the short help of all the included packages
    626           1.1  christos   -V, --version           display version information and exit
    627           1.1  christos   -q, --quiet, --silent   do not print \`checking...' messages
    628           1.1  christos       --cache-file=FILE   cache test results in FILE [disabled]
    629           1.1  christos   -C, --config-cache      alias for \`--cache-file=config.cache'
    630           1.1  christos   -n, --no-create         do not create output files
    631           1.1  christos       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    632           1.1  christos 
    633           1.1  christos EOF
    634           1.1  christos 
    635           1.1  christos   cat <<EOF
    636           1.1  christos Installation directories:
    637           1.1  christos   --prefix=PREFIX         install architecture-independent files in PREFIX
    638           1.1  christos                           [$ac_default_prefix]
    639           1.1  christos   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    640           1.1  christos                           [PREFIX]
    641           1.1  christos 
    642           1.1  christos By default, \`make install' will install all the files in
    643           1.1  christos \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
    644           1.1  christos an installation prefix other than \`$ac_default_prefix' using \`--prefix',
    645           1.1  christos for instance \`--prefix=\$HOME'.
    646           1.1  christos 
    647           1.1  christos For better control, use the options below.
    648           1.1  christos 
    649           1.1  christos Fine tuning of the installation directories:
    650           1.1  christos   --bindir=DIR            user executables [EPREFIX/bin]
    651           1.1  christos   --sbindir=DIR           system admin executables [EPREFIX/sbin]
    652           1.1  christos   --libexecdir=DIR        program executables [EPREFIX/libexec]
    653       1.1.1.4  christos   --datarootdir=DIR       read-only architecture-independent data [PREFIX/share]
    654       1.1.1.4  christos   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
    655           1.1  christos   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
    656           1.1  christos   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
    657           1.1  christos   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
    658           1.1  christos   --libdir=DIR            object code libraries [EPREFIX/lib]
    659           1.1  christos   --includedir=DIR        C header files [PREFIX/include]
    660           1.1  christos   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
    661       1.1.1.4  christos   --infodir=DIR           info documentation [DATAROOTDIR/info]
    662       1.1.1.4  christos   --mandir=DIR            man documentation [DATAROOTDIR/man]
    663           1.1  christos EOF
    664           1.1  christos 
    665           1.1  christos   cat <<\EOF
    666           1.1  christos 
    667           1.1  christos Program names:
    668           1.1  christos   --program-prefix=PREFIX            prepend PREFIX to installed program names
    669           1.1  christos   --program-suffix=SUFFIX            append SUFFIX to installed program names
    670           1.1  christos   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
    671           1.1  christos 
    672           1.1  christos System types:
    673           1.1  christos   --build=BUILD           configure for building on BUILD [guessed]
    674           1.1  christos   --host=HOST       build programs to run on HOST [BUILD]
    675           1.1  christos   --target=TARGET   configure for building compilers for TARGET [HOST]
    676           1.1  christos EOF
    677           1.1  christos fi
    678           1.1  christos 
    679           1.1  christos if test -n "$ac_init_help"; then
    680           1.1  christos 
    681           1.1  christos   cat <<\EOF
    682           1.1  christos 
    683           1.1  christos Optional Packages:
    684           1.1  christos   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    685           1.1  christos   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    686           1.1  christos 
    687           1.1  christos Optional Features:
    688           1.1  christos   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    689           1.1  christos   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    690           1.1  christos 
    691       1.1.1.5  christos   --with-max-table-size=N set the maximum table size = N (no default)
    692       1.1.1.5  christos   --enable-btyacc         turn on support for the btyacc backtracking
    693       1.1.1.5  christos                           extension (default: no)
    694           1.1  christos   --with-warnings         test: turn on gcc warnings
    695       1.1.1.4  christos   --disable-echo          do not display "compiling" commands
    696           1.1  christos   --with-dmalloc          test: use Gray Watson's dmalloc library
    697           1.1  christos   --with-dbmalloc         test: use Conor Cahill's dbmalloc library
    698           1.1  christos   --with-valgrind         test: use valgrind
    699           1.1  christos   --disable-leaks         test: free permanent memory, analyze leaks
    700       1.1.1.6  christos   --with-man2html=XXX     use XXX rather than groff
    701           1.1  christos 
    702           1.1  christos Some influential environment variables:
    703           1.1  christos   CC          C compiler command
    704           1.1  christos   CFLAGS      C compiler flags
    705           1.1  christos   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    706           1.1  christos               nonstandard directory <lib dir>
    707           1.1  christos   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    708           1.1  christos               headers in a nonstandard directory <include dir>
    709           1.1  christos   CPP         C preprocessor
    710           1.1  christos 
    711           1.1  christos Use these variables to override the choices made by `configure' or to help
    712           1.1  christos it to find libraries and programs with nonstandard names/locations.
    713           1.1  christos 
    714           1.1  christos EOF
    715           1.1  christos fi
    716           1.1  christos 
    717           1.1  christos if test "$ac_init_help" = "recursive"; then
    718           1.1  christos   # If there are subdirs, report their specific --help.
    719           1.1  christos   ac_popdir=`pwd`
    720           1.1  christos   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
    721           1.1  christos     cd $ac_subdir
    722           1.1  christos     # A "../" for each directory in /$ac_subdir.
    723           1.1  christos     ac_dots=`echo $ac_subdir |
    724           1.1  christos              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    725           1.1  christos 
    726           1.1  christos     case $srcdir in
    727           1.1  christos     .) # No --srcdir option.  We are building in place.
    728           1.1  christos       ac_sub_srcdir=$srcdir ;;
    729           1.1  christos     [\\/]* | ?:[\\/]* ) # Absolute path.
    730           1.1  christos       ac_sub_srcdir=$srcdir/$ac_subdir ;;
    731           1.1  christos     *) # Relative path.
    732           1.1  christos       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
    733           1.1  christos     esac
    734           1.1  christos 
    735           1.1  christos     # Check for guested configure; otherwise get Cygnus style configure.
    736           1.1  christos     if test -f $ac_sub_srcdir/configure.gnu; then
    737           1.1  christos       echo
    738           1.1  christos       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
    739           1.1  christos     elif test -f $ac_sub_srcdir/configure; then
    740           1.1  christos       echo
    741           1.1  christos       $SHELL $ac_sub_srcdir/configure  --help=recursive
    742           1.1  christos     elif test -f $ac_sub_srcdir/configure.ac ||
    743           1.1  christos            test -f $ac_sub_srcdir/configure.in; then
    744           1.1  christos       echo
    745           1.1  christos       $ac_configure --help
    746           1.1  christos     else
    747           1.1  christos       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
    748           1.1  christos     fi
    749           1.1  christos     cd $ac_popdir
    750           1.1  christos   done
    751           1.1  christos fi
    752           1.1  christos 
    753           1.1  christos test -n "$ac_init_help" && exit 0
    754           1.1  christos if $ac_init_version; then
    755           1.1  christos   cat <<\EOF
    756           1.1  christos 
    757           1.1  christos Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    758           1.1  christos Free Software Foundation, Inc.
    759           1.1  christos This configure script is free software; the Free Software Foundation
    760           1.1  christos gives unlimited permission to copy, distribute and modify it.
    761           1.1  christos EOF
    762           1.1  christos   exit 0
    763           1.1  christos fi
    764           1.1  christos exec 5>config.log
    765           1.1  christos cat >&5 <<EOF
    766           1.1  christos This file contains any messages produced by compilers while
    767           1.1  christos running configure, to aid debugging if configure makes a mistake.
    768           1.1  christos 
    769           1.1  christos It was created by $as_me, which was
    770  1.1.1.7.12.1  christos generated by GNU Autoconf 2.52.20170501.  Invocation command line was
    771           1.1  christos 
    772           1.1  christos   $ $0 $@
    773           1.1  christos 
    774           1.1  christos EOF
    775           1.1  christos {
    776           1.1  christos cat <<_ASUNAME
    777           1.1  christos ## ---------- ##
    778           1.1  christos ## Platform.  ##
    779           1.1  christos ## ---------- ##
    780           1.1  christos 
    781           1.1  christos hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
    782           1.1  christos uname -m = `(uname -m) 2>/dev/null || echo unknown`
    783           1.1  christos uname -r = `(uname -r) 2>/dev/null || echo unknown`
    784           1.1  christos uname -s = `(uname -s) 2>/dev/null || echo unknown`
    785           1.1  christos uname -v = `(uname -v) 2>/dev/null || echo unknown`
    786           1.1  christos 
    787           1.1  christos /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
    788           1.1  christos /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
    789           1.1  christos 
    790           1.1  christos /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
    791           1.1  christos /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
    792           1.1  christos /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
    793           1.1  christos hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
    794           1.1  christos /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
    795           1.1  christos /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
    796           1.1  christos /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
    797           1.1  christos 
    798           1.1  christos PATH = $PATH
    799           1.1  christos 
    800           1.1  christos _ASUNAME
    801           1.1  christos } >&5
    802           1.1  christos 
    803           1.1  christos cat >&5 <<EOF
    804           1.1  christos ## ------------ ##
    805           1.1  christos ## Core tests.  ##
    806           1.1  christos ## ------------ ##
    807           1.1  christos 
    808           1.1  christos EOF
    809           1.1  christos 
    810           1.1  christos # Keep a trace of the command line.
    811           1.1  christos # Strip out --no-create and --no-recursion so they do not pile up.
    812           1.1  christos # Also quote any args containing shell meta-characters.
    813           1.1  christos ac_configure_args=
    814           1.1  christos ac_sep=
    815           1.1  christos for ac_arg
    816           1.1  christos do
    817           1.1  christos   case $ac_arg in
    818           1.1  christos   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    819           1.1  christos   | --no-cr | --no-c) ;;
    820           1.1  christos   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    821           1.1  christos   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
    822           1.1  christos   *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    823           1.1  christos     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
    824           1.1  christos     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    825           1.1  christos     ac_sep=" " ;;
    826           1.1  christos   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
    827           1.1  christos      ac_sep=" " ;;
    828           1.1  christos   esac
    829           1.1  christos   # Get rid of the leading space.
    830           1.1  christos done
    831           1.1  christos 
    832           1.1  christos # When interrupted or exit'd, cleanup temporary files, and complete
    833           1.1  christos # config.log.  We remove comments because anyway the quotes in there
    834           1.1  christos # would cause problems or look ugly.
    835           1.1  christos trap 'exit_status=$?
    836           1.1  christos   # Save into config.log some information that might help in debugging.
    837           1.1  christos   echo >&5
    838           1.1  christos   echo "## ----------------- ##" >&5
    839           1.1  christos   echo "## Cache variables.  ##" >&5
    840           1.1  christos   echo "## ----------------- ##" >&5
    841           1.1  christos   echo >&5
    842           1.1  christos   # The following way of writing the cache mishandles newlines in values,
    843           1.1  christos {
    844           1.1  christos   (set) 2>&1 |
    845           1.1  christos     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    846           1.1  christos     *ac_space=\ *)
    847           1.1  christos       sed -n \
    848           1.1  christos         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    849           1.1  christos     	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
    850           1.1  christos       ;;
    851           1.1  christos     *)
    852           1.1  christos       sed -n \
    853           1.1  christos         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    854           1.1  christos       ;;
    855           1.1  christos     esac;
    856           1.1  christos } >&5
    857           1.1  christos   sed "/^$/d" confdefs.h >conftest.log
    858           1.1  christos   if test -s conftest.log; then
    859           1.1  christos     echo >&5
    860           1.1  christos     echo "## ------------ ##" >&5
    861           1.1  christos     echo "## confdefs.h.  ##" >&5
    862           1.1  christos     echo "## ------------ ##" >&5
    863           1.1  christos     echo >&5
    864           1.1  christos     cat conftest.log >&5
    865           1.1  christos   fi
    866           1.1  christos   (echo; echo) >&5
    867           1.1  christos   test "$ac_signal" != 0 &&
    868           1.1  christos     echo "$as_me: caught signal $ac_signal" >&5
    869           1.1  christos   echo "$as_me: exit $exit_status" >&5
    870           1.1  christos   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
    871           1.1  christos     exit $exit_status
    872           1.1  christos      ' 0
    873           1.1  christos for ac_signal in 1 2 13 15; do
    874           1.1  christos   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
    875           1.1  christos done
    876           1.1  christos ac_signal=0
    877           1.1  christos 
    878           1.1  christos # confdefs.h avoids OS command line length limits that DEFS can exceed.
    879           1.1  christos rm -rf conftest* confdefs.h
    880           1.1  christos # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    881           1.1  christos echo >confdefs.h
    882           1.1  christos 
    883           1.1  christos # Let the site file select an alternate cache file if it wants to.
    884           1.1  christos # Prefer explicitly selected file to automatically selected ones.
    885           1.1  christos if test -z "$CONFIG_SITE"; then
    886           1.1  christos   if test "x$prefix" != xNONE; then
    887           1.1  christos     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
    888           1.1  christos   else
    889           1.1  christos     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
    890           1.1  christos   fi
    891           1.1  christos fi
    892           1.1  christos for ac_site_file in $CONFIG_SITE; do
    893           1.1  christos   if test -r "$ac_site_file"; then
    894       1.1.1.6  christos     { echo "$as_me:894: loading site script $ac_site_file" >&5
    895           1.1  christos echo "$as_me: loading site script $ac_site_file" >&6;}
    896           1.1  christos     cat "$ac_site_file" >&5
    897           1.1  christos     . "$ac_site_file"
    898           1.1  christos   fi
    899           1.1  christos done
    900           1.1  christos 
    901           1.1  christos if test -r "$cache_file"; then
    902           1.1  christos   # Some versions of bash will fail to source /dev/null (special
    903           1.1  christos   # files actually), so we avoid doing that.
    904           1.1  christos   if test -f "$cache_file"; then
    905       1.1.1.6  christos     { echo "$as_me:905: loading cache $cache_file" >&5
    906           1.1  christos echo "$as_me: loading cache $cache_file" >&6;}
    907           1.1  christos     case $cache_file in
    908           1.1  christos       [\\/]* | ?:[\\/]* ) . $cache_file;;
    909           1.1  christos       *)                      . ./$cache_file;;
    910           1.1  christos     esac
    911           1.1  christos   fi
    912           1.1  christos else
    913       1.1.1.6  christos   { echo "$as_me:913: creating cache $cache_file" >&5
    914           1.1  christos echo "$as_me: creating cache $cache_file" >&6;}
    915           1.1  christos   >$cache_file
    916           1.1  christos fi
    917           1.1  christos 
    918           1.1  christos # Check that the precious variables saved in the cache have kept the same
    919           1.1  christos # value.
    920           1.1  christos ac_cache_corrupted=false
    921           1.1  christos for ac_var in `(set) 2>&1 |
    922           1.1  christos                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
    923           1.1  christos   eval ac_old_set=\$ac_cv_env_${ac_var}_set
    924           1.1  christos   eval ac_new_set=\$ac_env_${ac_var}_set
    925           1.1  christos   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
    926           1.1  christos   eval ac_new_val="\$ac_env_${ac_var}_value"
    927           1.1  christos   case $ac_old_set,$ac_new_set in
    928           1.1  christos     set,)
    929       1.1.1.6  christos       { echo "$as_me:929: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    930           1.1  christos echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    931           1.1  christos       ac_cache_corrupted=: ;;
    932           1.1  christos     ,set)
    933       1.1.1.6  christos       { echo "$as_me:933: error: \`$ac_var' was not set in the previous run" >&5
    934           1.1  christos echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
    935           1.1  christos       ac_cache_corrupted=: ;;
    936           1.1  christos     ,);;
    937           1.1  christos     *)
    938           1.1  christos       if test "x$ac_old_val" != "x$ac_new_val"; then
    939       1.1.1.6  christos         { echo "$as_me:939: error: \`$ac_var' has changed since the previous run:" >&5
    940           1.1  christos echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    941       1.1.1.6  christos         { echo "$as_me:941:   former value:  $ac_old_val" >&5
    942           1.1  christos echo "$as_me:   former value:  $ac_old_val" >&2;}
    943       1.1.1.6  christos         { echo "$as_me:943:   current value: $ac_new_val" >&5
    944           1.1  christos echo "$as_me:   current value: $ac_new_val" >&2;}
    945           1.1  christos         ac_cache_corrupted=:
    946           1.1  christos       fi;;
    947           1.1  christos   esac
    948           1.1  christos   # Pass precious variables to config.status.  It doesn't matter if
    949           1.1  christos   # we pass some twice (in addition to the command line arguments).
    950           1.1  christos   if test "$ac_new_set" = set; then
    951           1.1  christos     case $ac_new_val in
    952           1.1  christos     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    953           1.1  christos       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
    954           1.1  christos       ac_configure_args="$ac_configure_args '$ac_arg'"
    955           1.1  christos       ;;
    956           1.1  christos     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
    957           1.1  christos        ;;
    958           1.1  christos     esac
    959           1.1  christos   fi
    960           1.1  christos done
    961           1.1  christos if $ac_cache_corrupted; then
    962       1.1.1.6  christos   { echo "$as_me:962: error: changes in the environment can compromise the build" >&5
    963           1.1  christos echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    964       1.1.1.6  christos   { { echo "$as_me:964: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
    965           1.1  christos echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
    966           1.1  christos    { (exit 1); exit 1; }; }
    967           1.1  christos fi
    968           1.1  christos 
    969           1.1  christos ac_ext=c
    970           1.1  christos ac_cpp='$CPP $CPPFLAGS'
    971           1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    972           1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    973           1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
    974           1.1  christos ac_main_return=return
    975           1.1  christos 
    976       1.1.1.6  christos case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
    977       1.1.1.6  christos   *c*,-n*) ECHO_N= ECHO_C=	# newlines do not sed ;-) only broken shells would use this case anyway
    978       1.1.1.6  christos 		   ECHO_T='	' ;;
    979           1.1  christos   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    980           1.1  christos   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
    981           1.1  christos esac
    982           1.1  christos echo "#! $SHELL" >conftest.sh
    983           1.1  christos echo  "exit 0"   >>conftest.sh
    984           1.1  christos chmod +x conftest.sh
    985       1.1.1.6  christos if { (echo "$as_me:985: PATH=\".;.\"; conftest.sh") >&5
    986           1.1  christos   (PATH=".;."; conftest.sh) 2>&5
    987           1.1  christos   ac_status=$?
    988       1.1.1.6  christos   echo "$as_me:988: \$? = $ac_status" >&5
    989           1.1  christos   (exit $ac_status); }; then
    990           1.1  christos   ac_path_separator=';'
    991           1.1  christos else
    992           1.1  christos   ac_path_separator=:
    993           1.1  christos fi
    994           1.1  christos PATH_SEPARATOR="$ac_path_separator"
    995           1.1  christos rm -f conftest.sh
    996           1.1  christos 
    997           1.1  christos ac_config_headers="$ac_config_headers config.h:config_h.in"
    998           1.1  christos 
    999           1.1  christos ac_aux_dir=
   1000           1.1  christos for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
   1001           1.1  christos   if test -f $ac_dir/install-sh; then
   1002           1.1  christos     ac_aux_dir=$ac_dir
   1003           1.1  christos     ac_install_sh="$ac_aux_dir/install-sh -c"
   1004           1.1  christos     break
   1005           1.1  christos   elif test -f $ac_dir/install.sh; then
   1006           1.1  christos     ac_aux_dir=$ac_dir
   1007           1.1  christos     ac_install_sh="$ac_aux_dir/install.sh -c"
   1008           1.1  christos     break
   1009           1.1  christos   elif test -f $ac_dir/shtool; then
   1010           1.1  christos     ac_aux_dir=$ac_dir
   1011           1.1  christos     ac_install_sh="$ac_aux_dir/shtool install -c"
   1012           1.1  christos     break
   1013           1.1  christos   fi
   1014           1.1  christos done
   1015           1.1  christos if test -z "$ac_aux_dir"; then
   1016       1.1.1.6  christos   { { echo "$as_me:1016: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
   1017           1.1  christos echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
   1018           1.1  christos    { (exit 1); exit 1; }; }
   1019           1.1  christos fi
   1020           1.1  christos ac_config_guess="$SHELL $ac_aux_dir/config.guess"
   1021           1.1  christos ac_config_sub="$SHELL $ac_aux_dir/config.sub"
   1022           1.1  christos ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
   1023           1.1  christos 
   1024           1.1  christos # Make sure we can run config.sub.
   1025           1.1  christos $ac_config_sub sun4 >/dev/null 2>&1 ||
   1026       1.1.1.6  christos   { { echo "$as_me:1026: error: cannot run $ac_config_sub" >&5
   1027           1.1  christos echo "$as_me: error: cannot run $ac_config_sub" >&2;}
   1028           1.1  christos    { (exit 1); exit 1; }; }
   1029           1.1  christos 
   1030       1.1.1.6  christos echo "$as_me:1030: checking build system type" >&5
   1031           1.1  christos echo $ECHO_N "checking build system type... $ECHO_C" >&6
   1032           1.1  christos if test "${ac_cv_build+set}" = set; then
   1033           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1034           1.1  christos else
   1035           1.1  christos   ac_cv_build_alias=$build_alias
   1036           1.1  christos test -z "$ac_cv_build_alias" &&
   1037           1.1  christos   ac_cv_build_alias=`$ac_config_guess`
   1038           1.1  christos test -z "$ac_cv_build_alias" &&
   1039       1.1.1.6  christos   { { echo "$as_me:1039: error: cannot guess build type; you must specify one" >&5
   1040           1.1  christos echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   1041           1.1  christos    { (exit 1); exit 1; }; }
   1042           1.1  christos ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
   1043       1.1.1.6  christos   { { echo "$as_me:1043: error: $ac_config_sub $ac_cv_build_alias failed." >&5
   1044           1.1  christos echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
   1045           1.1  christos    { (exit 1); exit 1; }; }
   1046           1.1  christos 
   1047           1.1  christos fi
   1048       1.1.1.6  christos echo "$as_me:1048: result: $ac_cv_build" >&5
   1049           1.1  christos echo "${ECHO_T}$ac_cv_build" >&6
   1050           1.1  christos build=$ac_cv_build
   1051           1.1  christos build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
   1052           1.1  christos build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
   1053           1.1  christos build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   1054           1.1  christos 
   1055       1.1.1.6  christos echo "$as_me:1055: checking host system type" >&5
   1056           1.1  christos echo $ECHO_N "checking host system type... $ECHO_C" >&6
   1057           1.1  christos if test "${ac_cv_host+set}" = set; then
   1058           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1059           1.1  christos else
   1060           1.1  christos   ac_cv_host_alias=$host_alias
   1061           1.1  christos test -z "$ac_cv_host_alias" &&
   1062           1.1  christos   ac_cv_host_alias=$ac_cv_build_alias
   1063           1.1  christos ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
   1064       1.1.1.6  christos   { { echo "$as_me:1064: error: $ac_config_sub $ac_cv_host_alias failed" >&5
   1065           1.1  christos echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
   1066           1.1  christos    { (exit 1); exit 1; }; }
   1067           1.1  christos 
   1068           1.1  christos fi
   1069       1.1.1.6  christos echo "$as_me:1069: result: $ac_cv_host" >&5
   1070           1.1  christos echo "${ECHO_T}$ac_cv_host" >&6
   1071           1.1  christos host=$ac_cv_host
   1072           1.1  christos host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
   1073           1.1  christos host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
   1074           1.1  christos host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   1075           1.1  christos 
   1076           1.1  christos if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
   1077       1.1.1.6  christos 	echo "$as_me:1077: checking target system type" >&5
   1078           1.1  christos echo $ECHO_N "checking target system type... $ECHO_C" >&6
   1079           1.1  christos if test "${ac_cv_target+set}" = set; then
   1080           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1081           1.1  christos else
   1082           1.1  christos   ac_cv_target_alias=$target_alias
   1083           1.1  christos test "x$ac_cv_target_alias" = "x" &&
   1084           1.1  christos   ac_cv_target_alias=$ac_cv_host_alias
   1085           1.1  christos ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
   1086       1.1.1.6  christos   { { echo "$as_me:1086: error: $ac_config_sub $ac_cv_target_alias failed" >&5
   1087           1.1  christos echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
   1088           1.1  christos    { (exit 1); exit 1; }; }
   1089           1.1  christos 
   1090           1.1  christos fi
   1091       1.1.1.6  christos echo "$as_me:1091: result: $ac_cv_target" >&5
   1092           1.1  christos echo "${ECHO_T}$ac_cv_target" >&6
   1093           1.1  christos target=$ac_cv_target
   1094           1.1  christos target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
   1095           1.1  christos target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
   1096           1.1  christos target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   1097           1.1  christos 
   1098           1.1  christos # The aliases save the names the user supplied, while $host etc.
   1099           1.1  christos # will get canonicalized.
   1100           1.1  christos test -n "$target_alias" &&
   1101           1.1  christos   test "$program_prefix$program_suffix$program_transform_name" = \
   1102           1.1  christos     NONENONEs,x,x, &&
   1103           1.1  christos   program_prefix=${target_alias}-
   1104           1.1  christos 	system_name="$host_os"
   1105           1.1  christos else
   1106           1.1  christos 	system_name="`(uname -s -r) 2>/dev/null`"
   1107           1.1  christos 	if test -z "$system_name" ; then
   1108           1.1  christos 		system_name="`(hostname) 2>/dev/null`"
   1109           1.1  christos 	fi
   1110           1.1  christos fi
   1111       1.1.1.4  christos test -n "$system_name" &&
   1112       1.1.1.4  christos cat >>confdefs.h <<EOF
   1113           1.1  christos #define SYSTEM_NAME "$system_name"
   1114           1.1  christos EOF
   1115           1.1  christos 
   1116           1.1  christos if test "${cf_cv_system_name+set}" = set; then
   1117           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1118           1.1  christos else
   1119           1.1  christos   cf_cv_system_name="$system_name"
   1120           1.1  christos fi
   1121           1.1  christos 
   1122           1.1  christos test -z "$system_name" && system_name="$cf_cv_system_name"
   1123       1.1.1.6  christos test -n "$cf_cv_system_name" && echo "$as_me:1123: result: Configuring for $cf_cv_system_name" >&5
   1124           1.1  christos echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
   1125           1.1  christos 
   1126           1.1  christos if test ".$system_name" != ".$cf_cv_system_name" ; then
   1127       1.1.1.6  christos 	echo "$as_me:1127: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
   1128           1.1  christos echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
   1129       1.1.1.6  christos 	{ { echo "$as_me:1129: error: \"Please remove config.cache and try again.\"" >&5
   1130           1.1  christos echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
   1131           1.1  christos    { (exit 1); exit 1; }; }
   1132           1.1  christos fi
   1133           1.1  christos 
   1134           1.1  christos test "$program_prefix" != NONE &&
   1135           1.1  christos   program_transform_name="s,^,$program_prefix,;$program_transform_name"
   1136           1.1  christos # Use a double $ so make ignores it.
   1137           1.1  christos test "$program_suffix" != NONE &&
   1138           1.1  christos   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
   1139           1.1  christos # Double any \ or $.  echo might interpret backslashes.
   1140           1.1  christos # By default was `s,x,x', remove it if useless.
   1141           1.1  christos cat <<\_ACEOF >conftest.sed
   1142           1.1  christos s/[\\$]/&&/g;s/;s,x,x,$//
   1143           1.1  christos _ACEOF
   1144           1.1  christos program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
   1145           1.1  christos rm conftest.sed
   1146           1.1  christos 
   1147           1.1  christos ac_ext=c
   1148           1.1  christos ac_cpp='$CPP $CPPFLAGS'
   1149           1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1150           1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1151           1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1152           1.1  christos ac_main_return=return
   1153           1.1  christos if test -n "$ac_tool_prefix"; then
   1154           1.1  christos   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   1155           1.1  christos set dummy ${ac_tool_prefix}gcc; ac_word=$2
   1156       1.1.1.6  christos echo "$as_me:1156: checking for $ac_word" >&5
   1157           1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1158           1.1  christos if test "${ac_cv_prog_CC+set}" = set; then
   1159           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1160           1.1  christos else
   1161           1.1  christos   if test -n "$CC"; then
   1162           1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   1163           1.1  christos else
   1164           1.1  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1165           1.1  christos ac_dummy="$PATH"
   1166           1.1  christos for ac_dir in $ac_dummy; do
   1167           1.1  christos   IFS=$ac_save_IFS
   1168           1.1  christos   test -z "$ac_dir" && ac_dir=.
   1169           1.1  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   1170           1.1  christos ac_cv_prog_CC="${ac_tool_prefix}gcc"
   1171       1.1.1.6  christos echo "$as_me:1171: found $ac_dir/$ac_word" >&5
   1172           1.1  christos break
   1173           1.1  christos done
   1174           1.1  christos 
   1175           1.1  christos fi
   1176           1.1  christos fi
   1177           1.1  christos CC=$ac_cv_prog_CC
   1178           1.1  christos if test -n "$CC"; then
   1179       1.1.1.6  christos   echo "$as_me:1179: result: $CC" >&5
   1180           1.1  christos echo "${ECHO_T}$CC" >&6
   1181           1.1  christos else
   1182       1.1.1.6  christos   echo "$as_me:1182: result: no" >&5
   1183           1.1  christos echo "${ECHO_T}no" >&6
   1184           1.1  christos fi
   1185           1.1  christos 
   1186           1.1  christos fi
   1187           1.1  christos if test -z "$ac_cv_prog_CC"; then
   1188           1.1  christos   ac_ct_CC=$CC
   1189           1.1  christos   # Extract the first word of "gcc", so it can be a program name with args.
   1190           1.1  christos set dummy gcc; ac_word=$2
   1191       1.1.1.6  christos echo "$as_me:1191: checking for $ac_word" >&5
   1192           1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1193           1.1  christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1194           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1195           1.1  christos else
   1196           1.1  christos   if test -n "$ac_ct_CC"; then
   1197           1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1198           1.1  christos else
   1199           1.1  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1200           1.1  christos ac_dummy="$PATH"
   1201           1.1  christos for ac_dir in $ac_dummy; do
   1202           1.1  christos   IFS=$ac_save_IFS
   1203           1.1  christos   test -z "$ac_dir" && ac_dir=.
   1204           1.1  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   1205           1.1  christos ac_cv_prog_ac_ct_CC="gcc"
   1206       1.1.1.6  christos echo "$as_me:1206: found $ac_dir/$ac_word" >&5
   1207           1.1  christos break
   1208           1.1  christos done
   1209           1.1  christos 
   1210           1.1  christos fi
   1211           1.1  christos fi
   1212           1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1213           1.1  christos if test -n "$ac_ct_CC"; then
   1214       1.1.1.6  christos   echo "$as_me:1214: result: $ac_ct_CC" >&5
   1215           1.1  christos echo "${ECHO_T}$ac_ct_CC" >&6
   1216           1.1  christos else
   1217       1.1.1.6  christos   echo "$as_me:1217: result: no" >&5
   1218           1.1  christos echo "${ECHO_T}no" >&6
   1219           1.1  christos fi
   1220           1.1  christos 
   1221           1.1  christos   CC=$ac_ct_CC
   1222           1.1  christos else
   1223           1.1  christos   CC="$ac_cv_prog_CC"
   1224           1.1  christos fi
   1225           1.1  christos 
   1226           1.1  christos if test -z "$CC"; then
   1227           1.1  christos   if test -n "$ac_tool_prefix"; then
   1228           1.1  christos   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   1229           1.1  christos set dummy ${ac_tool_prefix}cc; ac_word=$2
   1230       1.1.1.6  christos echo "$as_me:1230: checking for $ac_word" >&5
   1231           1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1232           1.1  christos if test "${ac_cv_prog_CC+set}" = set; then
   1233           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1234           1.1  christos else
   1235           1.1  christos   if test -n "$CC"; then
   1236           1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   1237           1.1  christos else
   1238           1.1  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1239           1.1  christos ac_dummy="$PATH"
   1240           1.1  christos for ac_dir in $ac_dummy; do
   1241           1.1  christos   IFS=$ac_save_IFS
   1242           1.1  christos   test -z "$ac_dir" && ac_dir=.
   1243           1.1  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   1244           1.1  christos ac_cv_prog_CC="${ac_tool_prefix}cc"
   1245       1.1.1.6  christos echo "$as_me:1245: found $ac_dir/$ac_word" >&5
   1246           1.1  christos break
   1247           1.1  christos done
   1248           1.1  christos 
   1249           1.1  christos fi
   1250           1.1  christos fi
   1251           1.1  christos CC=$ac_cv_prog_CC
   1252           1.1  christos if test -n "$CC"; then
   1253       1.1.1.6  christos   echo "$as_me:1253: result: $CC" >&5
   1254           1.1  christos echo "${ECHO_T}$CC" >&6
   1255           1.1  christos else
   1256       1.1.1.6  christos   echo "$as_me:1256: result: no" >&5
   1257           1.1  christos echo "${ECHO_T}no" >&6
   1258           1.1  christos fi
   1259           1.1  christos 
   1260           1.1  christos fi
   1261           1.1  christos if test -z "$ac_cv_prog_CC"; then
   1262           1.1  christos   ac_ct_CC=$CC
   1263           1.1  christos   # Extract the first word of "cc", so it can be a program name with args.
   1264           1.1  christos set dummy cc; ac_word=$2
   1265       1.1.1.6  christos echo "$as_me:1265: checking for $ac_word" >&5
   1266           1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1267           1.1  christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1268           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1269           1.1  christos else
   1270           1.1  christos   if test -n "$ac_ct_CC"; then
   1271           1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1272           1.1  christos else
   1273           1.1  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1274           1.1  christos ac_dummy="$PATH"
   1275           1.1  christos for ac_dir in $ac_dummy; do
   1276           1.1  christos   IFS=$ac_save_IFS
   1277           1.1  christos   test -z "$ac_dir" && ac_dir=.
   1278           1.1  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   1279           1.1  christos ac_cv_prog_ac_ct_CC="cc"
   1280       1.1.1.6  christos echo "$as_me:1280: found $ac_dir/$ac_word" >&5
   1281           1.1  christos break
   1282           1.1  christos done
   1283           1.1  christos 
   1284           1.1  christos fi
   1285           1.1  christos fi
   1286           1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1287           1.1  christos if test -n "$ac_ct_CC"; then
   1288       1.1.1.6  christos   echo "$as_me:1288: result: $ac_ct_CC" >&5
   1289           1.1  christos echo "${ECHO_T}$ac_ct_CC" >&6
   1290           1.1  christos else
   1291       1.1.1.6  christos   echo "$as_me:1291: result: no" >&5
   1292           1.1  christos echo "${ECHO_T}no" >&6
   1293           1.1  christos fi
   1294           1.1  christos 
   1295           1.1  christos   CC=$ac_ct_CC
   1296           1.1  christos else
   1297           1.1  christos   CC="$ac_cv_prog_CC"
   1298           1.1  christos fi
   1299           1.1  christos 
   1300           1.1  christos fi
   1301           1.1  christos if test -z "$CC"; then
   1302           1.1  christos   # Extract the first word of "cc", so it can be a program name with args.
   1303           1.1  christos set dummy cc; ac_word=$2
   1304       1.1.1.6  christos echo "$as_me:1304: checking for $ac_word" >&5
   1305           1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1306           1.1  christos if test "${ac_cv_prog_CC+set}" = set; then
   1307           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1308           1.1  christos else
   1309           1.1  christos   if test -n "$CC"; then
   1310           1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   1311           1.1  christos else
   1312           1.1  christos   ac_prog_rejected=no
   1313           1.1  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1314           1.1  christos ac_dummy="$PATH"
   1315           1.1  christos for ac_dir in $ac_dummy; do
   1316           1.1  christos   IFS=$ac_save_IFS
   1317           1.1  christos   test -z "$ac_dir" && ac_dir=.
   1318           1.1  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   1319           1.1  christos if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
   1320           1.1  christos   ac_prog_rejected=yes
   1321           1.1  christos   continue
   1322           1.1  christos fi
   1323           1.1  christos ac_cv_prog_CC="cc"
   1324       1.1.1.6  christos echo "$as_me:1324: found $ac_dir/$ac_word" >&5
   1325           1.1  christos break
   1326           1.1  christos done
   1327           1.1  christos 
   1328           1.1  christos if test $ac_prog_rejected = yes; then
   1329           1.1  christos   # We found a bogon in the path, so make sure we never use it.
   1330           1.1  christos   set dummy $ac_cv_prog_CC
   1331           1.1  christos   shift
   1332           1.1  christos   if test $# != 0; then
   1333           1.1  christos     # We chose a different compiler from the bogus one.
   1334           1.1  christos     # However, it has the same basename, so the bogon will be chosen
   1335           1.1  christos     # first if we set CC to just the basename; use the full file name.
   1336           1.1  christos     shift
   1337           1.1  christos     set dummy "$ac_dir/$ac_word" ${1+"$@"}
   1338           1.1  christos     shift
   1339           1.1  christos     ac_cv_prog_CC="$@"
   1340           1.1  christos   fi
   1341           1.1  christos fi
   1342           1.1  christos fi
   1343           1.1  christos fi
   1344           1.1  christos CC=$ac_cv_prog_CC
   1345           1.1  christos if test -n "$CC"; then
   1346       1.1.1.6  christos   echo "$as_me:1346: result: $CC" >&5
   1347           1.1  christos echo "${ECHO_T}$CC" >&6
   1348           1.1  christos else
   1349       1.1.1.6  christos   echo "$as_me:1349: result: no" >&5
   1350           1.1  christos echo "${ECHO_T}no" >&6
   1351           1.1  christos fi
   1352           1.1  christos 
   1353           1.1  christos fi
   1354           1.1  christos if test -z "$CC"; then
   1355           1.1  christos   if test -n "$ac_tool_prefix"; then
   1356           1.1  christos   for ac_prog in cl
   1357           1.1  christos   do
   1358           1.1  christos     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   1359           1.1  christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   1360       1.1.1.6  christos echo "$as_me:1360: checking for $ac_word" >&5
   1361           1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1362           1.1  christos if test "${ac_cv_prog_CC+set}" = set; then
   1363           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1364           1.1  christos else
   1365           1.1  christos   if test -n "$CC"; then
   1366           1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   1367           1.1  christos else
   1368           1.1  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1369           1.1  christos ac_dummy="$PATH"
   1370           1.1  christos for ac_dir in $ac_dummy; do
   1371           1.1  christos   IFS=$ac_save_IFS
   1372           1.1  christos   test -z "$ac_dir" && ac_dir=.
   1373           1.1  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   1374           1.1  christos ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   1375       1.1.1.6  christos echo "$as_me:1375: found $ac_dir/$ac_word" >&5
   1376           1.1  christos break
   1377           1.1  christos done
   1378           1.1  christos 
   1379           1.1  christos fi
   1380           1.1  christos fi
   1381           1.1  christos CC=$ac_cv_prog_CC
   1382           1.1  christos if test -n "$CC"; then
   1383       1.1.1.6  christos   echo "$as_me:1383: result: $CC" >&5
   1384           1.1  christos echo "${ECHO_T}$CC" >&6
   1385           1.1  christos else
   1386       1.1.1.6  christos   echo "$as_me:1386: result: no" >&5
   1387           1.1  christos echo "${ECHO_T}no" >&6
   1388           1.1  christos fi
   1389           1.1  christos 
   1390           1.1  christos     test -n "$CC" && break
   1391           1.1  christos   done
   1392           1.1  christos fi
   1393           1.1  christos if test -z "$CC"; then
   1394           1.1  christos   ac_ct_CC=$CC
   1395           1.1  christos   for ac_prog in cl
   1396           1.1  christos do
   1397           1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   1398           1.1  christos set dummy $ac_prog; ac_word=$2
   1399       1.1.1.6  christos echo "$as_me:1399: checking for $ac_word" >&5
   1400           1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1401           1.1  christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1402           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1403           1.1  christos else
   1404           1.1  christos   if test -n "$ac_ct_CC"; then
   1405           1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1406           1.1  christos else
   1407           1.1  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1408           1.1  christos ac_dummy="$PATH"
   1409           1.1  christos for ac_dir in $ac_dummy; do
   1410           1.1  christos   IFS=$ac_save_IFS
   1411           1.1  christos   test -z "$ac_dir" && ac_dir=.
   1412           1.1  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   1413           1.1  christos ac_cv_prog_ac_ct_CC="$ac_prog"
   1414       1.1.1.6  christos echo "$as_me:1414: found $ac_dir/$ac_word" >&5
   1415           1.1  christos break
   1416           1.1  christos done
   1417           1.1  christos 
   1418           1.1  christos fi
   1419           1.1  christos fi
   1420           1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1421           1.1  christos if test -n "$ac_ct_CC"; then
   1422       1.1.1.6  christos   echo "$as_me:1422: result: $ac_ct_CC" >&5
   1423           1.1  christos echo "${ECHO_T}$ac_ct_CC" >&6
   1424           1.1  christos else
   1425       1.1.1.6  christos   echo "$as_me:1425: result: no" >&5
   1426           1.1  christos echo "${ECHO_T}no" >&6
   1427           1.1  christos fi
   1428           1.1  christos 
   1429           1.1  christos   test -n "$ac_ct_CC" && break
   1430           1.1  christos done
   1431           1.1  christos 
   1432           1.1  christos   CC=$ac_ct_CC
   1433           1.1  christos fi
   1434           1.1  christos 
   1435           1.1  christos fi
   1436           1.1  christos 
   1437       1.1.1.6  christos test -z "$CC" && { { echo "$as_me:1437: error: no acceptable cc found in \$PATH" >&5
   1438           1.1  christos echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
   1439           1.1  christos    { (exit 1); exit 1; }; }
   1440           1.1  christos 
   1441           1.1  christos # Provide some information about the compiler.
   1442       1.1.1.6  christos echo "$as_me:1442:" \
   1443           1.1  christos      "checking for C compiler version" >&5
   1444           1.1  christos ac_compiler=`set X $ac_compile; echo $2`
   1445       1.1.1.6  christos { (eval echo "$as_me:1445: \"$ac_compiler --version </dev/null >&5\"") >&5
   1446           1.1  christos   (eval $ac_compiler --version </dev/null >&5) 2>&5
   1447           1.1  christos   ac_status=$?
   1448       1.1.1.6  christos   echo "$as_me:1448: \$? = $ac_status" >&5
   1449           1.1  christos   (exit $ac_status); }
   1450       1.1.1.6  christos { (eval echo "$as_me:1450: \"$ac_compiler -v </dev/null >&5\"") >&5
   1451           1.1  christos   (eval $ac_compiler -v </dev/null >&5) 2>&5
   1452           1.1  christos   ac_status=$?
   1453       1.1.1.6  christos   echo "$as_me:1453: \$? = $ac_status" >&5
   1454           1.1  christos   (exit $ac_status); }
   1455       1.1.1.6  christos { (eval echo "$as_me:1455: \"$ac_compiler -V </dev/null >&5\"") >&5
   1456           1.1  christos   (eval $ac_compiler -V </dev/null >&5) 2>&5
   1457           1.1  christos   ac_status=$?
   1458       1.1.1.6  christos   echo "$as_me:1458: \$? = $ac_status" >&5
   1459           1.1  christos   (exit $ac_status); }
   1460           1.1  christos 
   1461           1.1  christos cat >conftest.$ac_ext <<_ACEOF
   1462       1.1.1.6  christos #line 1462 "configure"
   1463           1.1  christos #include "confdefs.h"
   1464           1.1  christos 
   1465           1.1  christos int
   1466  1.1.1.7.12.1  christos main (void)
   1467           1.1  christos {
   1468           1.1  christos 
   1469           1.1  christos   ;
   1470           1.1  christos   return 0;
   1471           1.1  christos }
   1472           1.1  christos _ACEOF
   1473           1.1  christos ac_clean_files_save=$ac_clean_files
   1474           1.1  christos ac_clean_files="$ac_clean_files a.out a.exe"
   1475           1.1  christos # Try to create an executable without -o first, disregard a.out.
   1476           1.1  christos # It will help us diagnose broken compilers, and finding out an intuition
   1477           1.1  christos # of exeext.
   1478       1.1.1.6  christos echo "$as_me:1478: checking for C compiler default output" >&5
   1479           1.1  christos echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
   1480           1.1  christos ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   1481       1.1.1.6  christos if { (eval echo "$as_me:1481: \"$ac_link_default\"") >&5
   1482           1.1  christos   (eval $ac_link_default) 2>&5
   1483           1.1  christos   ac_status=$?
   1484       1.1.1.6  christos   echo "$as_me:1484: \$? = $ac_status" >&5
   1485           1.1  christos   (exit $ac_status); }; then
   1486           1.1  christos   # Find the output, starting from the most likely.  This scheme is
   1487           1.1  christos # not robust to junk in `.', hence go to wildcards (a.*) only as a last
   1488           1.1  christos # resort.
   1489           1.1  christos for ac_file in `ls a.exe conftest.exe 2>/dev/null;
   1490           1.1  christos                 ls a.out conftest 2>/dev/null;
   1491           1.1  christos                 ls a.* conftest.* 2>/dev/null`; do
   1492           1.1  christos   case $ac_file in
   1493           1.1  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   1494           1.1  christos     a.out ) # We found the default executable, but exeext='' is most
   1495           1.1  christos             # certainly right.
   1496           1.1  christos             break;;
   1497           1.1  christos     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   1498           1.1  christos           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
   1499           1.1  christos           export ac_cv_exeext
   1500           1.1  christos           break;;
   1501           1.1  christos     * ) break;;
   1502           1.1  christos   esac
   1503           1.1  christos done
   1504           1.1  christos else
   1505           1.1  christos   echo "$as_me: failed program was:" >&5
   1506           1.1  christos cat conftest.$ac_ext >&5
   1507       1.1.1.6  christos { { echo "$as_me:1507: error: C compiler cannot create executables" >&5
   1508           1.1  christos echo "$as_me: error: C compiler cannot create executables" >&2;}
   1509           1.1  christos    { (exit 77); exit 77; }; }
   1510           1.1  christos fi
   1511           1.1  christos 
   1512           1.1  christos ac_exeext=$ac_cv_exeext
   1513       1.1.1.6  christos echo "$as_me:1513: result: $ac_file" >&5
   1514           1.1  christos echo "${ECHO_T}$ac_file" >&6
   1515           1.1  christos 
   1516           1.1  christos # Check the compiler produces executables we can run.  If not, either
   1517           1.1  christos # the compiler is broken, or we cross compile.
   1518       1.1.1.6  christos echo "$as_me:1518: checking whether the C compiler works" >&5
   1519           1.1  christos echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
   1520           1.1  christos # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
   1521           1.1  christos # If not cross compiling, check that we can run a simple program.
   1522           1.1  christos if test "$cross_compiling" != yes; then
   1523           1.1  christos   if { ac_try='./$ac_file'
   1524       1.1.1.6  christos   { (eval echo "$as_me:1524: \"$ac_try\"") >&5
   1525           1.1  christos   (eval $ac_try) 2>&5
   1526           1.1  christos   ac_status=$?
   1527       1.1.1.6  christos   echo "$as_me:1527: \$? = $ac_status" >&5
   1528           1.1  christos   (exit $ac_status); }; }; then
   1529           1.1  christos     cross_compiling=no
   1530           1.1  christos   else
   1531           1.1  christos     if test "$cross_compiling" = maybe; then
   1532           1.1  christos 	cross_compiling=yes
   1533           1.1  christos     else
   1534       1.1.1.6  christos 	{ { echo "$as_me:1534: error: cannot run C compiled programs.
   1535           1.1  christos If you meant to cross compile, use \`--host'." >&5
   1536           1.1  christos echo "$as_me: error: cannot run C compiled programs.
   1537           1.1  christos If you meant to cross compile, use \`--host'." >&2;}
   1538           1.1  christos    { (exit 1); exit 1; }; }
   1539           1.1  christos     fi
   1540           1.1  christos   fi
   1541           1.1  christos fi
   1542       1.1.1.6  christos echo "$as_me:1542: result: yes" >&5
   1543           1.1  christos echo "${ECHO_T}yes" >&6
   1544           1.1  christos 
   1545           1.1  christos rm -f a.out a.exe conftest$ac_cv_exeext
   1546           1.1  christos ac_clean_files=$ac_clean_files_save
   1547           1.1  christos # Check the compiler produces executables we can run.  If not, either
   1548           1.1  christos # the compiler is broken, or we cross compile.
   1549       1.1.1.6  christos echo "$as_me:1549: checking whether we are cross compiling" >&5
   1550           1.1  christos echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
   1551       1.1.1.6  christos echo "$as_me:1551: result: $cross_compiling" >&5
   1552           1.1  christos echo "${ECHO_T}$cross_compiling" >&6
   1553           1.1  christos 
   1554       1.1.1.6  christos echo "$as_me:1554: checking for executable suffix" >&5
   1555           1.1  christos echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
   1556       1.1.1.6  christos if { (eval echo "$as_me:1556: \"$ac_link\"") >&5
   1557           1.1  christos   (eval $ac_link) 2>&5
   1558           1.1  christos   ac_status=$?
   1559       1.1.1.6  christos   echo "$as_me:1559: \$? = $ac_status" >&5
   1560           1.1  christos   (exit $ac_status); }; then
   1561           1.1  christos   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   1562           1.1  christos # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   1563           1.1  christos # work properly (i.e., refer to `conftest.exe'), while it won't with
   1564           1.1  christos # `rm'.
   1565           1.1  christos for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
   1566           1.1  christos   case $ac_file in
   1567           1.1  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   1568           1.1  christos     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   1569           1.1  christos           export ac_cv_exeext
   1570           1.1  christos           break;;
   1571           1.1  christos     * ) break;;
   1572           1.1  christos   esac
   1573           1.1  christos done
   1574           1.1  christos else
   1575       1.1.1.6  christos   { { echo "$as_me:1575: error: cannot compute EXEEXT: cannot compile and link" >&5
   1576           1.1  christos echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
   1577           1.1  christos    { (exit 1); exit 1; }; }
   1578           1.1  christos fi
   1579           1.1  christos 
   1580           1.1  christos rm -f conftest$ac_cv_exeext
   1581       1.1.1.6  christos echo "$as_me:1581: result: $ac_cv_exeext" >&5
   1582           1.1  christos echo "${ECHO_T}$ac_cv_exeext" >&6
   1583           1.1  christos 
   1584           1.1  christos rm -f conftest.$ac_ext
   1585           1.1  christos EXEEXT=$ac_cv_exeext
   1586           1.1  christos ac_exeext=$EXEEXT
   1587       1.1.1.6  christos echo "$as_me:1587: checking for object suffix" >&5
   1588           1.1  christos echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
   1589           1.1  christos if test "${ac_cv_objext+set}" = set; then
   1590           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1591           1.1  christos else
   1592           1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   1593       1.1.1.6  christos #line 1593 "configure"
   1594           1.1  christos #include "confdefs.h"
   1595           1.1  christos 
   1596           1.1  christos int
   1597  1.1.1.7.12.1  christos main (void)
   1598           1.1  christos {
   1599           1.1  christos 
   1600           1.1  christos   ;
   1601           1.1  christos   return 0;
   1602           1.1  christos }
   1603           1.1  christos _ACEOF
   1604           1.1  christos rm -f conftest.o conftest.obj
   1605       1.1.1.6  christos if { (eval echo "$as_me:1605: \"$ac_compile\"") >&5
   1606           1.1  christos   (eval $ac_compile) 2>&5
   1607           1.1  christos   ac_status=$?
   1608       1.1.1.6  christos   echo "$as_me:1608: \$? = $ac_status" >&5
   1609           1.1  christos   (exit $ac_status); }; then
   1610           1.1  christos   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
   1611           1.1  christos   case $ac_file in
   1612           1.1  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
   1613           1.1  christos     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   1614           1.1  christos        break;;
   1615           1.1  christos   esac
   1616           1.1  christos done
   1617           1.1  christos else
   1618           1.1  christos   echo "$as_me: failed program was:" >&5
   1619           1.1  christos cat conftest.$ac_ext >&5
   1620       1.1.1.6  christos { { echo "$as_me:1620: error: cannot compute OBJEXT: cannot compile" >&5
   1621           1.1  christos echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
   1622           1.1  christos    { (exit 1); exit 1; }; }
   1623           1.1  christos fi
   1624           1.1  christos 
   1625           1.1  christos rm -f conftest.$ac_cv_objext conftest.$ac_ext
   1626           1.1  christos fi
   1627       1.1.1.6  christos echo "$as_me:1627: result: $ac_cv_objext" >&5
   1628           1.1  christos echo "${ECHO_T}$ac_cv_objext" >&6
   1629           1.1  christos OBJEXT=$ac_cv_objext
   1630           1.1  christos ac_objext=$OBJEXT
   1631       1.1.1.6  christos echo "$as_me:1631: checking whether we are using the GNU C compiler" >&5
   1632           1.1  christos echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
   1633           1.1  christos if test "${ac_cv_c_compiler_gnu+set}" = set; then
   1634           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1635           1.1  christos else
   1636           1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   1637       1.1.1.6  christos #line 1637 "configure"
   1638           1.1  christos #include "confdefs.h"
   1639           1.1  christos 
   1640           1.1  christos int
   1641  1.1.1.7.12.1  christos main (void)
   1642           1.1  christos {
   1643           1.1  christos #ifndef __GNUC__
   1644           1.1  christos        choke me
   1645           1.1  christos #endif
   1646           1.1  christos 
   1647           1.1  christos   ;
   1648           1.1  christos   return 0;
   1649           1.1  christos }
   1650           1.1  christos _ACEOF
   1651           1.1  christos rm -f conftest.$ac_objext
   1652       1.1.1.6  christos if { (eval echo "$as_me:1652: \"$ac_compile\"") >&5
   1653           1.1  christos   (eval $ac_compile) 2>&5
   1654           1.1  christos   ac_status=$?
   1655       1.1.1.6  christos   echo "$as_me:1655: \$? = $ac_status" >&5
   1656           1.1  christos   (exit $ac_status); } &&
   1657           1.1  christos          { ac_try='test -s conftest.$ac_objext'
   1658       1.1.1.6  christos   { (eval echo "$as_me:1658: \"$ac_try\"") >&5
   1659           1.1  christos   (eval $ac_try) 2>&5
   1660           1.1  christos   ac_status=$?
   1661       1.1.1.6  christos   echo "$as_me:1661: \$? = $ac_status" >&5
   1662           1.1  christos   (exit $ac_status); }; }; then
   1663           1.1  christos   ac_compiler_gnu=yes
   1664           1.1  christos else
   1665           1.1  christos   echo "$as_me: failed program was:" >&5
   1666           1.1  christos cat conftest.$ac_ext >&5
   1667           1.1  christos ac_compiler_gnu=no
   1668           1.1  christos fi
   1669           1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   1670           1.1  christos ac_cv_c_compiler_gnu=$ac_compiler_gnu
   1671           1.1  christos 
   1672           1.1  christos fi
   1673       1.1.1.6  christos echo "$as_me:1673: result: $ac_cv_c_compiler_gnu" >&5
   1674           1.1  christos echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
   1675           1.1  christos GCC=`test $ac_compiler_gnu = yes && echo yes`
   1676           1.1  christos ac_test_CFLAGS=${CFLAGS+set}
   1677           1.1  christos ac_save_CFLAGS=$CFLAGS
   1678           1.1  christos CFLAGS="-g"
   1679       1.1.1.6  christos echo "$as_me:1679: checking whether $CC accepts -g" >&5
   1680           1.1  christos echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
   1681           1.1  christos if test "${ac_cv_prog_cc_g+set}" = set; then
   1682           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1683           1.1  christos else
   1684           1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   1685       1.1.1.6  christos #line 1685 "configure"
   1686           1.1  christos #include "confdefs.h"
   1687           1.1  christos 
   1688           1.1  christos int
   1689  1.1.1.7.12.1  christos main (void)
   1690           1.1  christos {
   1691           1.1  christos 
   1692           1.1  christos   ;
   1693           1.1  christos   return 0;
   1694           1.1  christos }
   1695           1.1  christos _ACEOF
   1696           1.1  christos rm -f conftest.$ac_objext
   1697       1.1.1.6  christos if { (eval echo "$as_me:1697: \"$ac_compile\"") >&5
   1698           1.1  christos   (eval $ac_compile) 2>&5
   1699           1.1  christos   ac_status=$?
   1700       1.1.1.6  christos   echo "$as_me:1700: \$? = $ac_status" >&5
   1701           1.1  christos   (exit $ac_status); } &&
   1702           1.1  christos          { ac_try='test -s conftest.$ac_objext'
   1703       1.1.1.6  christos   { (eval echo "$as_me:1703: \"$ac_try\"") >&5
   1704           1.1  christos   (eval $ac_try) 2>&5
   1705           1.1  christos   ac_status=$?
   1706       1.1.1.6  christos   echo "$as_me:1706: \$? = $ac_status" >&5
   1707           1.1  christos   (exit $ac_status); }; }; then
   1708           1.1  christos   ac_cv_prog_cc_g=yes
   1709           1.1  christos else
   1710           1.1  christos   echo "$as_me: failed program was:" >&5
   1711           1.1  christos cat conftest.$ac_ext >&5
   1712           1.1  christos ac_cv_prog_cc_g=no
   1713           1.1  christos fi
   1714           1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   1715           1.1  christos fi
   1716       1.1.1.6  christos echo "$as_me:1716: result: $ac_cv_prog_cc_g" >&5
   1717           1.1  christos echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
   1718           1.1  christos if test "$ac_test_CFLAGS" = set; then
   1719           1.1  christos   CFLAGS=$ac_save_CFLAGS
   1720           1.1  christos elif test $ac_cv_prog_cc_g = yes; then
   1721           1.1  christos   if test "$GCC" = yes; then
   1722           1.1  christos     CFLAGS="-g -O2"
   1723           1.1  christos   else
   1724           1.1  christos     CFLAGS="-g"
   1725           1.1  christos   fi
   1726           1.1  christos else
   1727           1.1  christos   if test "$GCC" = yes; then
   1728           1.1  christos     CFLAGS="-O2"
   1729           1.1  christos   else
   1730           1.1  christos     CFLAGS=
   1731           1.1  christos   fi
   1732           1.1  christos fi
   1733           1.1  christos # Some people use a C++ compiler to compile C.  Since we use `exit',
   1734           1.1  christos # in C++ we need to declare it.  In case someone uses the same compiler
   1735           1.1  christos # for both compiling C and C++ we need to have the C++ compiler decide
   1736           1.1  christos # the declaration of exit, since it's the most demanding environment.
   1737           1.1  christos cat >conftest.$ac_ext <<_ACEOF
   1738           1.1  christos #ifndef __cplusplus
   1739           1.1  christos   choke me
   1740           1.1  christos #endif
   1741           1.1  christos _ACEOF
   1742           1.1  christos rm -f conftest.$ac_objext
   1743       1.1.1.6  christos if { (eval echo "$as_me:1743: \"$ac_compile\"") >&5
   1744           1.1  christos   (eval $ac_compile) 2>&5
   1745           1.1  christos   ac_status=$?
   1746       1.1.1.6  christos   echo "$as_me:1746: \$? = $ac_status" >&5
   1747           1.1  christos   (exit $ac_status); } &&
   1748           1.1  christos          { ac_try='test -s conftest.$ac_objext'
   1749       1.1.1.6  christos   { (eval echo "$as_me:1749: \"$ac_try\"") >&5
   1750           1.1  christos   (eval $ac_try) 2>&5
   1751           1.1  christos   ac_status=$?
   1752       1.1.1.6  christos   echo "$as_me:1752: \$? = $ac_status" >&5
   1753           1.1  christos   (exit $ac_status); }; }; then
   1754           1.1  christos   for ac_declaration in \
   1755           1.1  christos    ''\
   1756           1.1  christos    '#include <stdlib.h>' \
   1757           1.1  christos    'extern "C" void std::exit (int) throw (); using std::exit;' \
   1758           1.1  christos    'extern "C" void std::exit (int); using std::exit;' \
   1759           1.1  christos    'extern "C" void exit (int) throw ();' \
   1760           1.1  christos    'extern "C" void exit (int);' \
   1761           1.1  christos    'void exit (int);'
   1762           1.1  christos do
   1763           1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   1764       1.1.1.6  christos #line 1764 "configure"
   1765           1.1  christos #include "confdefs.h"
   1766           1.1  christos #include <stdlib.h>
   1767           1.1  christos $ac_declaration
   1768           1.1  christos int
   1769  1.1.1.7.12.1  christos main (void)
   1770           1.1  christos {
   1771           1.1  christos exit (42);
   1772           1.1  christos   ;
   1773           1.1  christos   return 0;
   1774           1.1  christos }
   1775           1.1  christos _ACEOF
   1776           1.1  christos rm -f conftest.$ac_objext
   1777       1.1.1.6  christos if { (eval echo "$as_me:1777: \"$ac_compile\"") >&5
   1778           1.1  christos   (eval $ac_compile) 2>&5
   1779           1.1  christos   ac_status=$?
   1780       1.1.1.6  christos   echo "$as_me:1780: \$? = $ac_status" >&5
   1781           1.1  christos   (exit $ac_status); } &&
   1782           1.1  christos          { ac_try='test -s conftest.$ac_objext'
   1783       1.1.1.6  christos   { (eval echo "$as_me:1783: \"$ac_try\"") >&5
   1784           1.1  christos   (eval $ac_try) 2>&5
   1785           1.1  christos   ac_status=$?
   1786       1.1.1.6  christos   echo "$as_me:1786: \$? = $ac_status" >&5
   1787           1.1  christos   (exit $ac_status); }; }; then
   1788           1.1  christos   :
   1789           1.1  christos else
   1790           1.1  christos   echo "$as_me: failed program was:" >&5
   1791           1.1  christos cat conftest.$ac_ext >&5
   1792           1.1  christos continue
   1793           1.1  christos fi
   1794           1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   1795           1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   1796       1.1.1.6  christos #line 1796 "configure"
   1797           1.1  christos #include "confdefs.h"
   1798           1.1  christos $ac_declaration
   1799           1.1  christos int
   1800  1.1.1.7.12.1  christos main (void)
   1801           1.1  christos {
   1802           1.1  christos exit (42);
   1803           1.1  christos   ;
   1804           1.1  christos   return 0;
   1805           1.1  christos }
   1806           1.1  christos _ACEOF
   1807           1.1  christos rm -f conftest.$ac_objext
   1808       1.1.1.6  christos if { (eval echo "$as_me:1808: \"$ac_compile\"") >&5
   1809           1.1  christos   (eval $ac_compile) 2>&5
   1810           1.1  christos   ac_status=$?
   1811       1.1.1.6  christos   echo "$as_me:1811: \$? = $ac_status" >&5
   1812           1.1  christos   (exit $ac_status); } &&
   1813           1.1  christos          { ac_try='test -s conftest.$ac_objext'
   1814       1.1.1.6  christos   { (eval echo "$as_me:1814: \"$ac_try\"") >&5
   1815           1.1  christos   (eval $ac_try) 2>&5
   1816           1.1  christos   ac_status=$?
   1817       1.1.1.6  christos   echo "$as_me:1817: \$? = $ac_status" >&5
   1818           1.1  christos   (exit $ac_status); }; }; then
   1819           1.1  christos   break
   1820           1.1  christos else
   1821           1.1  christos   echo "$as_me: failed program was:" >&5
   1822           1.1  christos cat conftest.$ac_ext >&5
   1823           1.1  christos fi
   1824           1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   1825           1.1  christos done
   1826       1.1.1.3  christos rm -rf conftest*
   1827           1.1  christos if test -n "$ac_declaration"; then
   1828           1.1  christos   echo '#ifdef __cplusplus' >>confdefs.h
   1829           1.1  christos   echo $ac_declaration      >>confdefs.h
   1830           1.1  christos   echo '#endif'             >>confdefs.h
   1831           1.1  christos fi
   1832           1.1  christos 
   1833           1.1  christos else
   1834           1.1  christos   echo "$as_me: failed program was:" >&5
   1835           1.1  christos cat conftest.$ac_ext >&5
   1836           1.1  christos fi
   1837           1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   1838           1.1  christos ac_ext=c
   1839           1.1  christos ac_cpp='$CPP $CPPFLAGS'
   1840           1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1841           1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1842           1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1843           1.1  christos ac_main_return=return
   1844           1.1  christos 
   1845       1.1.1.4  christos GCC_VERSION=none
   1846       1.1.1.4  christos if test "$GCC" = yes ; then
   1847       1.1.1.6  christos 	echo "$as_me:1847: checking version of $CC" >&5
   1848       1.1.1.4  christos echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
   1849       1.1.1.4  christos 	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.].*//'`"
   1850       1.1.1.4  christos 	test -z "$GCC_VERSION" && GCC_VERSION=unknown
   1851       1.1.1.6  christos 	echo "$as_me:1851: result: $GCC_VERSION" >&5
   1852       1.1.1.4  christos echo "${ECHO_T}$GCC_VERSION" >&6
   1853       1.1.1.4  christos fi
   1854       1.1.1.4  christos 
   1855       1.1.1.6  christos echo "$as_me:1855: checking for $CC option to accept ANSI C" >&5
   1856           1.1  christos echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
   1857           1.1  christos if test "${ac_cv_prog_cc_stdc+set}" = set; then
   1858           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1859           1.1  christos else
   1860           1.1  christos   ac_cv_prog_cc_stdc=no
   1861           1.1  christos ac_save_CC=$CC
   1862           1.1  christos cat >conftest.$ac_ext <<_ACEOF
   1863       1.1.1.6  christos #line 1863 "configure"
   1864           1.1  christos #include "confdefs.h"
   1865           1.1  christos #include <stdarg.h>
   1866           1.1  christos #include <stdio.h>
   1867           1.1  christos #include <sys/types.h>
   1868           1.1  christos #include <sys/stat.h>
   1869           1.1  christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   1870           1.1  christos struct buf { int x; };
   1871           1.1  christos FILE * (*rcsopen) (struct buf *, struct stat *, int);
   1872           1.1  christos static char *e (p, i)
   1873           1.1  christos      char **p;
   1874           1.1  christos      int i;
   1875           1.1  christos {
   1876           1.1  christos   return p[i];
   1877           1.1  christos }
   1878           1.1  christos static char *f (char * (*g) (char **, int), char **p, ...)
   1879           1.1  christos {
   1880           1.1  christos   char *s;
   1881           1.1  christos   va_list v;
   1882           1.1  christos   va_start (v,p);
   1883           1.1  christos   s = g (p, va_arg (v,int));
   1884           1.1  christos   va_end (v);
   1885           1.1  christos   return s;
   1886           1.1  christos }
   1887           1.1  christos int test (int i, double x);
   1888           1.1  christos struct s1 {int (*f) (int a);};
   1889           1.1  christos struct s2 {int (*f) (double a);};
   1890           1.1  christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   1891           1.1  christos int argc;
   1892           1.1  christos char **argv;
   1893           1.1  christos int
   1894  1.1.1.7.12.1  christos main (void)
   1895           1.1  christos {
   1896           1.1  christos return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   1897           1.1  christos   ;
   1898           1.1  christos   return 0;
   1899           1.1  christos }
   1900           1.1  christos _ACEOF
   1901           1.1  christos # Don't try gcc -ansi; that turns off useful extensions and
   1902           1.1  christos # breaks some systems' header files.
   1903           1.1  christos # AIX			-qlanglvl=ansi
   1904           1.1  christos # Ultrix and OSF/1	-std1
   1905           1.1  christos # HP-UX 10.20 and later	-Ae
   1906           1.1  christos # HP-UX older versions	-Aa -D_HPUX_SOURCE
   1907           1.1  christos # SVR4			-Xc -D__EXTENSIONS__
   1908           1.1  christos for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   1909           1.1  christos do
   1910           1.1  christos   CC="$ac_save_CC $ac_arg"
   1911           1.1  christos   rm -f conftest.$ac_objext
   1912       1.1.1.6  christos if { (eval echo "$as_me:1912: \"$ac_compile\"") >&5
   1913           1.1  christos   (eval $ac_compile) 2>&5
   1914           1.1  christos   ac_status=$?
   1915       1.1.1.6  christos   echo "$as_me:1915: \$? = $ac_status" >&5
   1916           1.1  christos   (exit $ac_status); } &&
   1917           1.1  christos          { ac_try='test -s conftest.$ac_objext'
   1918       1.1.1.6  christos   { (eval echo "$as_me:1918: \"$ac_try\"") >&5
   1919           1.1  christos   (eval $ac_try) 2>&5
   1920           1.1  christos   ac_status=$?
   1921       1.1.1.6  christos   echo "$as_me:1921: \$? = $ac_status" >&5
   1922           1.1  christos   (exit $ac_status); }; }; then
   1923           1.1  christos   ac_cv_prog_cc_stdc=$ac_arg
   1924           1.1  christos break
   1925           1.1  christos else
   1926           1.1  christos   echo "$as_me: failed program was:" >&5
   1927           1.1  christos cat conftest.$ac_ext >&5
   1928           1.1  christos fi
   1929           1.1  christos rm -f conftest.$ac_objext
   1930           1.1  christos done
   1931           1.1  christos rm -f conftest.$ac_ext conftest.$ac_objext
   1932           1.1  christos CC=$ac_save_CC
   1933           1.1  christos 
   1934           1.1  christos fi
   1935           1.1  christos 
   1936           1.1  christos case "x$ac_cv_prog_cc_stdc" in
   1937           1.1  christos   x|xno)
   1938       1.1.1.6  christos     echo "$as_me:1938: result: none needed" >&5
   1939           1.1  christos echo "${ECHO_T}none needed" >&6 ;;
   1940           1.1  christos   *)
   1941       1.1.1.6  christos     echo "$as_me:1941: result: $ac_cv_prog_cc_stdc" >&5
   1942           1.1  christos echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
   1943           1.1  christos     CC="$CC $ac_cv_prog_cc_stdc" ;;
   1944           1.1  christos esac
   1945           1.1  christos 
   1946       1.1.1.4  christos # This should have been defined by AC_PROG_CC
   1947       1.1.1.4  christos : ${CC:=cc}
   1948           1.1  christos 
   1949       1.1.1.6  christos echo "$as_me:1949: checking \$CC variable" >&5
   1950       1.1.1.4  christos echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
   1951       1.1.1.6  christos case "$CC" in
   1952       1.1.1.7  christos (*[\ \	]-*)
   1953       1.1.1.6  christos 	echo "$as_me:1953: result: broken" >&5
   1954       1.1.1.4  christos echo "${ECHO_T}broken" >&6
   1955       1.1.1.6  christos 	{ echo "$as_me:1955: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
   1956       1.1.1.4  christos echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
   1957       1.1.1.4  christos 	# humor him...
   1958  1.1.1.7.12.1  christos 	cf_prog=`echo "$CC" | sed -e 's/	/ /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
   1959  1.1.1.7.12.1  christos 	cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
   1960  1.1.1.7.12.1  christos 	CC="$cf_prog"
   1961       1.1.1.7  christos 	for cf_arg in $cf_flags
   1962       1.1.1.7  christos 	do
   1963       1.1.1.7  christos 		case "x$cf_arg" in
   1964       1.1.1.7  christos 		(x-[IUDfgOW]*)
   1965           1.1  christos 
   1966       1.1.1.4  christos cf_fix_cppflags=no
   1967       1.1.1.4  christos cf_new_cflags=
   1968       1.1.1.4  christos cf_new_cppflags=
   1969       1.1.1.4  christos cf_new_extra_cppflags=
   1970       1.1.1.4  christos 
   1971  1.1.1.7.12.1  christos for cf_add_cflags in $cf_arg
   1972       1.1.1.4  christos do
   1973       1.1.1.4  christos case $cf_fix_cppflags in
   1974       1.1.1.6  christos (no)
   1975       1.1.1.6  christos 	case $cf_add_cflags in
   1976       1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   1977       1.1.1.4  christos 		case $cf_add_cflags in
   1978       1.1.1.6  christos 		(-D*)
   1979       1.1.1.4  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   1980       1.1.1.4  christos 
   1981       1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   1982       1.1.1.4  christos 				&& test -z "${cf_tst_cflags}" \
   1983       1.1.1.4  christos 				&& cf_fix_cppflags=yes
   1984       1.1.1.4  christos 
   1985       1.1.1.4  christos 			if test $cf_fix_cppflags = yes ; then
   1986  1.1.1.7.12.1  christos 
   1987  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   1988  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   1989  1.1.1.7.12.1  christos 
   1990       1.1.1.4  christos 				continue
   1991       1.1.1.4  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   1992  1.1.1.7.12.1  christos 
   1993  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   1994  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   1995  1.1.1.7.12.1  christos 
   1996       1.1.1.4  christos 				continue
   1997       1.1.1.4  christos 			fi
   1998       1.1.1.4  christos 			;;
   1999       1.1.1.4  christos 		esac
   2000       1.1.1.4  christos 		case "$CPPFLAGS" in
   2001       1.1.1.6  christos 		(*$cf_add_cflags)
   2002       1.1.1.4  christos 			;;
   2003       1.1.1.6  christos 		(*)
   2004       1.1.1.6  christos 			case $cf_add_cflags in
   2005       1.1.1.6  christos 			(-D*)
   2006       1.1.1.4  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   2007       1.1.1.4  christos 
   2008       1.1.1.4  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   2009       1.1.1.4  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   2010       1.1.1.4  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   2011       1.1.1.4  christos 
   2012       1.1.1.4  christos 				;;
   2013       1.1.1.4  christos 			esac
   2014  1.1.1.7.12.1  christos 
   2015  1.1.1.7.12.1  christos 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   2016  1.1.1.7.12.1  christos 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   2017  1.1.1.7.12.1  christos 
   2018       1.1.1.4  christos 			;;
   2019       1.1.1.4  christos 		esac
   2020       1.1.1.4  christos 		;;
   2021       1.1.1.6  christos 	(*)
   2022  1.1.1.7.12.1  christos 
   2023  1.1.1.7.12.1  christos 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   2024  1.1.1.7.12.1  christos 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   2025  1.1.1.7.12.1  christos 
   2026       1.1.1.4  christos 		;;
   2027       1.1.1.4  christos 	esac
   2028       1.1.1.4  christos 	;;
   2029       1.1.1.6  christos (yes)
   2030  1.1.1.7.12.1  christos 
   2031  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2032  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2033       1.1.1.4  christos 
   2034       1.1.1.4  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   2035       1.1.1.4  christos 
   2036       1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   2037       1.1.1.4  christos 		&& test -z "${cf_tst_cflags}" \
   2038       1.1.1.4  christos 		&& cf_fix_cppflags=no
   2039       1.1.1.4  christos 	;;
   2040       1.1.1.4  christos esac
   2041       1.1.1.4  christos done
   2042       1.1.1.4  christos 
   2043       1.1.1.4  christos if test -n "$cf_new_cflags" ; then
   2044       1.1.1.4  christos 
   2045  1.1.1.7.12.1  christos 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   2046  1.1.1.7.12.1  christos 	CFLAGS="${CFLAGS}$cf_new_cflags"
   2047  1.1.1.7.12.1  christos 
   2048           1.1  christos fi
   2049       1.1.1.4  christos 
   2050       1.1.1.4  christos if test -n "$cf_new_cppflags" ; then
   2051       1.1.1.4  christos 
   2052  1.1.1.7.12.1  christos 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   2053  1.1.1.7.12.1  christos 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   2054  1.1.1.7.12.1  christos 
   2055           1.1  christos fi
   2056           1.1  christos 
   2057       1.1.1.4  christos if test -n "$cf_new_extra_cppflags" ; then
   2058           1.1  christos 
   2059  1.1.1.7.12.1  christos 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   2060  1.1.1.7.12.1  christos 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   2061  1.1.1.7.12.1  christos 
   2062           1.1  christos fi
   2063           1.1  christos 
   2064       1.1.1.7  christos 			;;
   2065       1.1.1.7  christos 		(*)
   2066       1.1.1.7  christos 			CC="$CC $cf_arg"
   2067       1.1.1.7  christos 			;;
   2068       1.1.1.7  christos 		esac
   2069       1.1.1.7  christos 	done
   2070       1.1.1.7  christos 	test -n "$verbose" && echo "	resulting CC: '$CC'" 1>&6
   2071       1.1.1.7  christos 
   2072  1.1.1.7.12.1  christos echo "${as_me:-configure}:2072: testing resulting CC: '$CC' ..." 1>&5
   2073       1.1.1.7  christos 
   2074       1.1.1.7  christos 	test -n "$verbose" && echo "	resulting CFLAGS: '$CFLAGS'" 1>&6
   2075       1.1.1.7  christos 
   2076  1.1.1.7.12.1  christos echo "${as_me:-configure}:2076: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
   2077       1.1.1.7  christos 
   2078       1.1.1.7  christos 	test -n "$verbose" && echo "	resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
   2079       1.1.1.7  christos 
   2080  1.1.1.7.12.1  christos echo "${as_me:-configure}:2080: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
   2081       1.1.1.7  christos 
   2082       1.1.1.4  christos 	;;
   2083       1.1.1.6  christos (*)
   2084  1.1.1.7.12.1  christos 	echo "$as_me:2084: result: ok" >&5
   2085       1.1.1.4  christos echo "${ECHO_T}ok" >&6
   2086       1.1.1.4  christos 	;;
   2087       1.1.1.4  christos esac
   2088       1.1.1.4  christos 
   2089  1.1.1.7.12.1  christos echo "$as_me:2089: checking whether ${MAKE-make} sets \${MAKE}" >&5
   2090           1.1  christos echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
   2091           1.1  christos set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
   2092           1.1  christos if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
   2093           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2094           1.1  christos else
   2095           1.1  christos   cat >conftest.make <<\EOF
   2096           1.1  christos all:
   2097           1.1  christos 	@echo 'ac_maketemp="${MAKE}"'
   2098           1.1  christos EOF
   2099           1.1  christos # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   2100           1.1  christos eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
   2101           1.1  christos if test -n "$ac_maketemp"; then
   2102           1.1  christos   eval ac_cv_prog_make_${ac_make}_set=yes
   2103           1.1  christos else
   2104           1.1  christos   eval ac_cv_prog_make_${ac_make}_set=no
   2105           1.1  christos fi
   2106           1.1  christos rm -f conftest.make
   2107           1.1  christos fi
   2108           1.1  christos if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
   2109  1.1.1.7.12.1  christos   echo "$as_me:2109: result: yes" >&5
   2110           1.1  christos echo "${ECHO_T}yes" >&6
   2111           1.1  christos   SET_MAKE=
   2112           1.1  christos else
   2113  1.1.1.7.12.1  christos   echo "$as_me:2113: result: no" >&5
   2114           1.1  christos echo "${ECHO_T}no" >&6
   2115           1.1  christos   SET_MAKE="MAKE=${MAKE-make}"
   2116           1.1  christos fi
   2117           1.1  christos 
   2118           1.1  christos # Find a good install program.  We prefer a C program (faster),
   2119           1.1  christos # so one script is as good as another.  But avoid the broken or
   2120           1.1  christos # incompatible versions:
   2121           1.1  christos # SysV /etc/install, /usr/sbin/install
   2122           1.1  christos # SunOS /usr/etc/install
   2123           1.1  christos # IRIX /sbin/install
   2124           1.1  christos # AIX /bin/install
   2125           1.1  christos # AmigaOS /C/install, which installs bootblocks on floppy discs
   2126           1.1  christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   2127           1.1  christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   2128           1.1  christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   2129           1.1  christos # ./install, which can be erroneously created by make from ./install.sh.
   2130  1.1.1.7.12.1  christos echo "$as_me:2130: checking for a BSD compatible install" >&5
   2131           1.1  christos echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
   2132           1.1  christos if test -z "$INSTALL"; then
   2133           1.1  christos if test "${ac_cv_path_install+set}" = set; then
   2134           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2135           1.1  christos else
   2136           1.1  christos     ac_save_IFS=$IFS; IFS=$ac_path_separator
   2137           1.1  christos   for ac_dir in $PATH; do
   2138           1.1  christos     IFS=$ac_save_IFS
   2139           1.1  christos     # Account for people who put trailing slashes in PATH elements.
   2140           1.1  christos     case $ac_dir/ in
   2141           1.1  christos     / | ./ | .// | /cC/* \
   2142           1.1  christos     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
   2143           1.1  christos     | /usr/ucb/* ) ;;
   2144           1.1  christos     *)
   2145           1.1  christos       # OSF1 and SCO ODT 3.0 have their own names for install.
   2146           1.1  christos       # Don't use installbsd from OSF since it installs stuff as root
   2147           1.1  christos       # by default.
   2148           1.1  christos       for ac_prog in ginstall scoinst install; do
   2149           1.1  christos         if $as_executable_p "$ac_dir/$ac_prog"; then
   2150           1.1  christos 	  if test $ac_prog = install &&
   2151           1.1  christos             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
   2152           1.1  christos 	    # AIX install.  It has an incompatible calling convention.
   2153           1.1  christos 	    :
   2154           1.1  christos 	  elif test $ac_prog = install &&
   2155           1.1  christos 	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
   2156           1.1  christos 	    # program-specific install script used by HP pwplus--don't use.
   2157           1.1  christos 	    :
   2158           1.1  christos 	  else
   2159           1.1  christos 	    ac_cv_path_install="$ac_dir/$ac_prog -c"
   2160           1.1  christos 	    break 2
   2161           1.1  christos 	  fi
   2162           1.1  christos 	fi
   2163           1.1  christos       done
   2164           1.1  christos       ;;
   2165           1.1  christos     esac
   2166           1.1  christos   done
   2167           1.1  christos 
   2168           1.1  christos fi
   2169           1.1  christos   if test "${ac_cv_path_install+set}" = set; then
   2170           1.1  christos     INSTALL=$ac_cv_path_install
   2171           1.1  christos   else
   2172           1.1  christos     # As a last resort, use the slow shell script.  We don't cache a
   2173           1.1  christos     # path for INSTALL within a source directory, because that will
   2174           1.1  christos     # break other packages using the cache if that directory is
   2175           1.1  christos     # removed, or if the path is relative.
   2176           1.1  christos     INSTALL=$ac_install_sh
   2177           1.1  christos   fi
   2178           1.1  christos fi
   2179  1.1.1.7.12.1  christos echo "$as_me:2179: result: $INSTALL" >&5
   2180           1.1  christos echo "${ECHO_T}$INSTALL" >&6
   2181           1.1  christos 
   2182           1.1  christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   2183           1.1  christos # It thinks the first close brace ends the variable substitution.
   2184           1.1  christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   2185           1.1  christos 
   2186           1.1  christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   2187           1.1  christos 
   2188           1.1  christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   2189           1.1  christos 
   2190  1.1.1.7.12.1  christos echo "$as_me:2190: checking if filesystem supports mixed-case filenames" >&5
   2191       1.1.1.2  christos echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
   2192       1.1.1.2  christos if test "${cf_cv_mixedcase+set}" = set; then
   2193       1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2194       1.1.1.2  christos else
   2195       1.1.1.2  christos 
   2196       1.1.1.2  christos if test "$cross_compiling" = yes ; then
   2197       1.1.1.6  christos 	case $target_alias in
   2198       1.1.1.6  christos 	(*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
   2199       1.1.1.2  christos 		cf_cv_mixedcase=no
   2200       1.1.1.2  christos 		;;
   2201       1.1.1.6  christos 	(*)
   2202       1.1.1.2  christos 		cf_cv_mixedcase=yes
   2203       1.1.1.2  christos 		;;
   2204       1.1.1.2  christos 	esac
   2205       1.1.1.2  christos else
   2206       1.1.1.2  christos 	rm -f conftest CONFTEST
   2207       1.1.1.2  christos 	echo test >conftest
   2208       1.1.1.2  christos 	if test -f CONFTEST ; then
   2209       1.1.1.2  christos 		cf_cv_mixedcase=no
   2210       1.1.1.2  christos 	else
   2211       1.1.1.2  christos 		cf_cv_mixedcase=yes
   2212       1.1.1.2  christos 	fi
   2213       1.1.1.2  christos 	rm -f conftest CONFTEST
   2214       1.1.1.2  christos fi
   2215       1.1.1.2  christos 
   2216       1.1.1.2  christos fi
   2217  1.1.1.7.12.1  christos echo "$as_me:2217: result: $cf_cv_mixedcase" >&5
   2218       1.1.1.2  christos echo "${ECHO_T}$cf_cv_mixedcase" >&6
   2219       1.1.1.4  christos test "$cf_cv_mixedcase" = yes &&
   2220       1.1.1.4  christos cat >>confdefs.h <<\EOF
   2221       1.1.1.2  christos #define MIXEDCASE_FILENAMES 1
   2222       1.1.1.2  christos EOF
   2223       1.1.1.2  christos 
   2224       1.1.1.2  christos for ac_prog in exctags ctags
   2225       1.1.1.2  christos do
   2226       1.1.1.2  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2227       1.1.1.2  christos set dummy $ac_prog; ac_word=$2
   2228  1.1.1.7.12.1  christos echo "$as_me:2228: checking for $ac_word" >&5
   2229       1.1.1.2  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2230       1.1.1.2  christos if test "${ac_cv_prog_CTAGS+set}" = set; then
   2231       1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2232       1.1.1.2  christos else
   2233       1.1.1.2  christos   if test -n "$CTAGS"; then
   2234       1.1.1.2  christos   ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
   2235       1.1.1.2  christos else
   2236       1.1.1.2  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2237       1.1.1.2  christos ac_dummy="$PATH"
   2238       1.1.1.2  christos for ac_dir in $ac_dummy; do
   2239       1.1.1.2  christos   IFS=$ac_save_IFS
   2240       1.1.1.2  christos   test -z "$ac_dir" && ac_dir=.
   2241       1.1.1.2  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   2242       1.1.1.2  christos ac_cv_prog_CTAGS="$ac_prog"
   2243  1.1.1.7.12.1  christos echo "$as_me:2243: found $ac_dir/$ac_word" >&5
   2244       1.1.1.2  christos break
   2245       1.1.1.2  christos done
   2246       1.1.1.2  christos 
   2247       1.1.1.2  christos fi
   2248       1.1.1.2  christos fi
   2249       1.1.1.2  christos CTAGS=$ac_cv_prog_CTAGS
   2250       1.1.1.2  christos if test -n "$CTAGS"; then
   2251  1.1.1.7.12.1  christos   echo "$as_me:2251: result: $CTAGS" >&5
   2252       1.1.1.2  christos echo "${ECHO_T}$CTAGS" >&6
   2253       1.1.1.2  christos else
   2254  1.1.1.7.12.1  christos   echo "$as_me:2254: result: no" >&5
   2255       1.1.1.2  christos echo "${ECHO_T}no" >&6
   2256       1.1.1.2  christos fi
   2257       1.1.1.2  christos 
   2258       1.1.1.2  christos   test -n "$CTAGS" && break
   2259       1.1.1.2  christos done
   2260       1.1.1.2  christos 
   2261       1.1.1.2  christos for ac_prog in exetags etags
   2262       1.1.1.2  christos do
   2263       1.1.1.2  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2264       1.1.1.2  christos set dummy $ac_prog; ac_word=$2
   2265  1.1.1.7.12.1  christos echo "$as_me:2265: checking for $ac_word" >&5
   2266       1.1.1.2  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2267       1.1.1.2  christos if test "${ac_cv_prog_ETAGS+set}" = set; then
   2268       1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2269       1.1.1.2  christos else
   2270       1.1.1.2  christos   if test -n "$ETAGS"; then
   2271       1.1.1.2  christos   ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
   2272       1.1.1.2  christos else
   2273       1.1.1.2  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2274       1.1.1.2  christos ac_dummy="$PATH"
   2275       1.1.1.2  christos for ac_dir in $ac_dummy; do
   2276       1.1.1.2  christos   IFS=$ac_save_IFS
   2277       1.1.1.2  christos   test -z "$ac_dir" && ac_dir=.
   2278       1.1.1.2  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   2279       1.1.1.2  christos ac_cv_prog_ETAGS="$ac_prog"
   2280  1.1.1.7.12.1  christos echo "$as_me:2280: found $ac_dir/$ac_word" >&5
   2281       1.1.1.2  christos break
   2282       1.1.1.2  christos done
   2283       1.1.1.2  christos 
   2284       1.1.1.2  christos fi
   2285       1.1.1.2  christos fi
   2286       1.1.1.2  christos ETAGS=$ac_cv_prog_ETAGS
   2287       1.1.1.2  christos if test -n "$ETAGS"; then
   2288  1.1.1.7.12.1  christos   echo "$as_me:2288: result: $ETAGS" >&5
   2289       1.1.1.2  christos echo "${ECHO_T}$ETAGS" >&6
   2290       1.1.1.2  christos else
   2291  1.1.1.7.12.1  christos   echo "$as_me:2291: result: no" >&5
   2292       1.1.1.2  christos echo "${ECHO_T}no" >&6
   2293       1.1.1.2  christos fi
   2294       1.1.1.2  christos 
   2295       1.1.1.2  christos   test -n "$ETAGS" && break
   2296       1.1.1.2  christos done
   2297       1.1.1.2  christos 
   2298       1.1.1.3  christos # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
   2299       1.1.1.3  christos set dummy ${CTAGS:-ctags}; ac_word=$2
   2300  1.1.1.7.12.1  christos echo "$as_me:2300: checking for $ac_word" >&5
   2301       1.1.1.2  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2302       1.1.1.2  christos if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
   2303       1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2304       1.1.1.2  christos else
   2305       1.1.1.2  christos   if test -n "$MAKE_LOWER_TAGS"; then
   2306       1.1.1.2  christos   ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
   2307       1.1.1.2  christos else
   2308       1.1.1.2  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2309       1.1.1.2  christos ac_dummy="$PATH"
   2310       1.1.1.2  christos for ac_dir in $ac_dummy; do
   2311       1.1.1.2  christos   IFS=$ac_save_IFS
   2312       1.1.1.2  christos   test -z "$ac_dir" && ac_dir=.
   2313       1.1.1.2  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   2314       1.1.1.2  christos ac_cv_prog_MAKE_LOWER_TAGS="yes"
   2315  1.1.1.7.12.1  christos echo "$as_me:2315: found $ac_dir/$ac_word" >&5
   2316       1.1.1.2  christos break
   2317       1.1.1.2  christos done
   2318       1.1.1.2  christos 
   2319       1.1.1.2  christos   test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
   2320       1.1.1.2  christos fi
   2321       1.1.1.2  christos fi
   2322       1.1.1.2  christos MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
   2323       1.1.1.2  christos if test -n "$MAKE_LOWER_TAGS"; then
   2324  1.1.1.7.12.1  christos   echo "$as_me:2324: result: $MAKE_LOWER_TAGS" >&5
   2325       1.1.1.2  christos echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
   2326       1.1.1.2  christos else
   2327  1.1.1.7.12.1  christos   echo "$as_me:2327: result: no" >&5
   2328       1.1.1.2  christos echo "${ECHO_T}no" >&6
   2329       1.1.1.2  christos fi
   2330       1.1.1.2  christos 
   2331       1.1.1.2  christos if test "$cf_cv_mixedcase" = yes ; then
   2332       1.1.1.3  christos 	# Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
   2333       1.1.1.3  christos set dummy ${ETAGS:-etags}; ac_word=$2
   2334  1.1.1.7.12.1  christos echo "$as_me:2334: checking for $ac_word" >&5
   2335       1.1.1.2  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2336       1.1.1.2  christos if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
   2337       1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2338       1.1.1.2  christos else
   2339       1.1.1.2  christos   if test -n "$MAKE_UPPER_TAGS"; then
   2340       1.1.1.2  christos   ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
   2341       1.1.1.2  christos else
   2342       1.1.1.2  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2343       1.1.1.2  christos ac_dummy="$PATH"
   2344       1.1.1.2  christos for ac_dir in $ac_dummy; do
   2345       1.1.1.2  christos   IFS=$ac_save_IFS
   2346       1.1.1.2  christos   test -z "$ac_dir" && ac_dir=.
   2347       1.1.1.2  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   2348       1.1.1.2  christos ac_cv_prog_MAKE_UPPER_TAGS="yes"
   2349  1.1.1.7.12.1  christos echo "$as_me:2349: found $ac_dir/$ac_word" >&5
   2350       1.1.1.2  christos break
   2351       1.1.1.2  christos done
   2352       1.1.1.2  christos 
   2353       1.1.1.2  christos   test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
   2354       1.1.1.2  christos fi
   2355       1.1.1.2  christos fi
   2356       1.1.1.2  christos MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
   2357       1.1.1.2  christos if test -n "$MAKE_UPPER_TAGS"; then
   2358  1.1.1.7.12.1  christos   echo "$as_me:2358: result: $MAKE_UPPER_TAGS" >&5
   2359       1.1.1.2  christos echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
   2360       1.1.1.2  christos else
   2361  1.1.1.7.12.1  christos   echo "$as_me:2361: result: no" >&5
   2362       1.1.1.2  christos echo "${ECHO_T}no" >&6
   2363       1.1.1.2  christos fi
   2364       1.1.1.2  christos 
   2365       1.1.1.2  christos else
   2366       1.1.1.2  christos 	MAKE_UPPER_TAGS=no
   2367       1.1.1.2  christos fi
   2368       1.1.1.2  christos 
   2369       1.1.1.2  christos if test "$MAKE_UPPER_TAGS" = yes ; then
   2370       1.1.1.2  christos 	MAKE_UPPER_TAGS=
   2371       1.1.1.2  christos else
   2372       1.1.1.2  christos 	MAKE_UPPER_TAGS="#"
   2373       1.1.1.2  christos fi
   2374       1.1.1.2  christos 
   2375       1.1.1.2  christos if test "$MAKE_LOWER_TAGS" = yes ; then
   2376       1.1.1.2  christos 	MAKE_LOWER_TAGS=
   2377       1.1.1.2  christos else
   2378       1.1.1.2  christos 	MAKE_LOWER_TAGS="#"
   2379       1.1.1.2  christos fi
   2380       1.1.1.2  christos 
   2381       1.1.1.5  christos for ac_prog in mawk gawk nawk awk
   2382       1.1.1.5  christos do
   2383       1.1.1.5  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2384       1.1.1.5  christos set dummy $ac_prog; ac_word=$2
   2385  1.1.1.7.12.1  christos echo "$as_me:2385: checking for $ac_word" >&5
   2386       1.1.1.5  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2387       1.1.1.5  christos if test "${ac_cv_prog_AWK+set}" = set; then
   2388       1.1.1.5  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2389       1.1.1.5  christos else
   2390       1.1.1.5  christos   if test -n "$AWK"; then
   2391       1.1.1.5  christos   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   2392       1.1.1.5  christos else
   2393       1.1.1.5  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2394       1.1.1.5  christos ac_dummy="$PATH"
   2395       1.1.1.5  christos for ac_dir in $ac_dummy; do
   2396       1.1.1.5  christos   IFS=$ac_save_IFS
   2397       1.1.1.5  christos   test -z "$ac_dir" && ac_dir=.
   2398       1.1.1.5  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   2399       1.1.1.5  christos ac_cv_prog_AWK="$ac_prog"
   2400  1.1.1.7.12.1  christos echo "$as_me:2400: found $ac_dir/$ac_word" >&5
   2401       1.1.1.5  christos break
   2402       1.1.1.5  christos done
   2403       1.1.1.5  christos 
   2404       1.1.1.5  christos fi
   2405       1.1.1.5  christos fi
   2406       1.1.1.5  christos AWK=$ac_cv_prog_AWK
   2407       1.1.1.5  christos if test -n "$AWK"; then
   2408  1.1.1.7.12.1  christos   echo "$as_me:2408: result: $AWK" >&5
   2409       1.1.1.5  christos echo "${ECHO_T}$AWK" >&6
   2410       1.1.1.5  christos else
   2411  1.1.1.7.12.1  christos   echo "$as_me:2411: result: no" >&5
   2412       1.1.1.5  christos echo "${ECHO_T}no" >&6
   2413       1.1.1.5  christos fi
   2414       1.1.1.5  christos 
   2415       1.1.1.5  christos   test -n "$AWK" && break
   2416       1.1.1.5  christos done
   2417       1.1.1.5  christos 
   2418  1.1.1.7.12.1  christos test -z "$AWK" && { { echo "$as_me:2418: error: No awk program found" >&5
   2419       1.1.1.5  christos echo "$as_me: error: No awk program found" >&2;}
   2420       1.1.1.5  christos    { (exit 1); exit 1; }; }
   2421       1.1.1.5  christos 
   2422       1.1.1.7  christos for ac_prog in lint cppcheck splint
   2423       1.1.1.2  christos do
   2424       1.1.1.2  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2425       1.1.1.2  christos set dummy $ac_prog; ac_word=$2
   2426  1.1.1.7.12.1  christos echo "$as_me:2426: checking for $ac_word" >&5
   2427       1.1.1.2  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2428       1.1.1.2  christos if test "${ac_cv_prog_LINT+set}" = set; then
   2429       1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2430       1.1.1.2  christos else
   2431       1.1.1.2  christos   if test -n "$LINT"; then
   2432       1.1.1.2  christos   ac_cv_prog_LINT="$LINT" # Let the user override the test.
   2433       1.1.1.2  christos else
   2434       1.1.1.2  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2435       1.1.1.2  christos ac_dummy="$PATH"
   2436       1.1.1.2  christos for ac_dir in $ac_dummy; do
   2437       1.1.1.2  christos   IFS=$ac_save_IFS
   2438       1.1.1.2  christos   test -z "$ac_dir" && ac_dir=.
   2439       1.1.1.2  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   2440       1.1.1.2  christos ac_cv_prog_LINT="$ac_prog"
   2441  1.1.1.7.12.1  christos echo "$as_me:2441: found $ac_dir/$ac_word" >&5
   2442       1.1.1.2  christos break
   2443       1.1.1.2  christos done
   2444       1.1.1.2  christos 
   2445       1.1.1.2  christos fi
   2446       1.1.1.2  christos fi
   2447       1.1.1.2  christos LINT=$ac_cv_prog_LINT
   2448       1.1.1.2  christos if test -n "$LINT"; then
   2449  1.1.1.7.12.1  christos   echo "$as_me:2449: result: $LINT" >&5
   2450       1.1.1.2  christos echo "${ECHO_T}$LINT" >&6
   2451       1.1.1.2  christos else
   2452  1.1.1.7.12.1  christos   echo "$as_me:2452: result: no" >&5
   2453       1.1.1.2  christos echo "${ECHO_T}no" >&6
   2454       1.1.1.2  christos fi
   2455       1.1.1.2  christos 
   2456       1.1.1.2  christos   test -n "$LINT" && break
   2457       1.1.1.2  christos done
   2458       1.1.1.2  christos 
   2459       1.1.1.4  christos cf_XOPEN_SOURCE=500
   2460       1.1.1.4  christos cf_POSIX_C_SOURCE=199506L
   2461       1.1.1.4  christos cf_xopen_source=
   2462       1.1.1.3  christos 
   2463       1.1.1.6  christos case $host_os in
   2464       1.1.1.6  christos (aix[4-7]*)
   2465       1.1.1.4  christos 	cf_xopen_source="-D_ALL_SOURCE"
   2466       1.1.1.3  christos 	;;
   2467       1.1.1.7  christos (msys)
   2468       1.1.1.4  christos 	cf_XOPEN_SOURCE=600
   2469       1.1.1.3  christos 	;;
   2470       1.1.1.6  christos (darwin[0-8].*)
   2471       1.1.1.4  christos 	cf_xopen_source="-D_APPLE_C_SOURCE"
   2472       1.1.1.3  christos 	;;
   2473       1.1.1.6  christos (darwin*)
   2474       1.1.1.4  christos 	cf_xopen_source="-D_DARWIN_C_SOURCE"
   2475       1.1.1.4  christos 	cf_XOPEN_SOURCE=
   2476       1.1.1.3  christos 	;;
   2477       1.1.1.6  christos (freebsd*|dragonfly*)
   2478       1.1.1.4  christos 	# 5.x headers associate
   2479       1.1.1.4  christos 	#	_XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
   2480       1.1.1.4  christos 	#	_XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
   2481       1.1.1.4  christos 	cf_POSIX_C_SOURCE=200112L
   2482       1.1.1.4  christos 	cf_XOPEN_SOURCE=600
   2483       1.1.1.4  christos 	cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
   2484       1.1.1.4  christos 	;;
   2485       1.1.1.6  christos (hpux11*)
   2486       1.1.1.4  christos 	cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
   2487       1.1.1.4  christos 	;;
   2488       1.1.1.6  christos (hpux*)
   2489       1.1.1.4  christos 	cf_xopen_source="-D_HPUX_SOURCE"
   2490       1.1.1.4  christos 	;;
   2491       1.1.1.6  christos (irix[56].*)
   2492       1.1.1.4  christos 	cf_xopen_source="-D_SGI_SOURCE"
   2493       1.1.1.4  christos 	cf_XOPEN_SOURCE=
   2494       1.1.1.4  christos 	;;
   2495       1.1.1.7  christos (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
   2496       1.1.1.3  christos 
   2497  1.1.1.7.12.1  christos echo "$as_me:2497: checking if we must define _GNU_SOURCE" >&5
   2498       1.1.1.4  christos echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
   2499       1.1.1.4  christos if test "${cf_cv_gnu_source+set}" = set; then
   2500           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2501           1.1  christos else
   2502           1.1  christos 
   2503       1.1.1.4  christos cat >conftest.$ac_ext <<_ACEOF
   2504  1.1.1.7.12.1  christos #line 2504 "configure"
   2505       1.1.1.4  christos #include "confdefs.h"
   2506       1.1.1.4  christos #include <sys/types.h>
   2507       1.1.1.4  christos int
   2508  1.1.1.7.12.1  christos main (void)
   2509       1.1.1.4  christos {
   2510       1.1.1.2  christos 
   2511       1.1.1.4  christos #ifndef _XOPEN_SOURCE
   2512       1.1.1.4  christos make an error
   2513       1.1.1.4  christos #endif
   2514       1.1.1.4  christos   ;
   2515       1.1.1.4  christos   return 0;
   2516       1.1.1.4  christos }
   2517       1.1.1.4  christos _ACEOF
   2518       1.1.1.4  christos rm -f conftest.$ac_objext
   2519  1.1.1.7.12.1  christos if { (eval echo "$as_me:2519: \"$ac_compile\"") >&5
   2520       1.1.1.4  christos   (eval $ac_compile) 2>&5
   2521       1.1.1.4  christos   ac_status=$?
   2522  1.1.1.7.12.1  christos   echo "$as_me:2522: \$? = $ac_status" >&5
   2523       1.1.1.4  christos   (exit $ac_status); } &&
   2524       1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   2525  1.1.1.7.12.1  christos   { (eval echo "$as_me:2525: \"$ac_try\"") >&5
   2526       1.1.1.4  christos   (eval $ac_try) 2>&5
   2527       1.1.1.4  christos   ac_status=$?
   2528  1.1.1.7.12.1  christos   echo "$as_me:2528: \$? = $ac_status" >&5
   2529       1.1.1.4  christos   (exit $ac_status); }; }; then
   2530       1.1.1.4  christos   cf_cv_gnu_source=no
   2531       1.1.1.4  christos else
   2532       1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   2533       1.1.1.4  christos cat conftest.$ac_ext >&5
   2534       1.1.1.4  christos cf_save="$CPPFLAGS"
   2535       1.1.1.4  christos 	 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
   2536       1.1.1.4  christos 	 cat >conftest.$ac_ext <<_ACEOF
   2537  1.1.1.7.12.1  christos #line 2537 "configure"
   2538       1.1.1.4  christos #include "confdefs.h"
   2539       1.1.1.4  christos #include <sys/types.h>
   2540       1.1.1.4  christos int
   2541  1.1.1.7.12.1  christos main (void)
   2542       1.1.1.4  christos {
   2543       1.1.1.2  christos 
   2544       1.1.1.4  christos #ifdef _XOPEN_SOURCE
   2545       1.1.1.4  christos make an error
   2546       1.1.1.4  christos #endif
   2547       1.1.1.4  christos   ;
   2548       1.1.1.4  christos   return 0;
   2549       1.1.1.4  christos }
   2550       1.1.1.4  christos _ACEOF
   2551       1.1.1.4  christos rm -f conftest.$ac_objext
   2552  1.1.1.7.12.1  christos if { (eval echo "$as_me:2552: \"$ac_compile\"") >&5
   2553       1.1.1.4  christos   (eval $ac_compile) 2>&5
   2554       1.1.1.4  christos   ac_status=$?
   2555  1.1.1.7.12.1  christos   echo "$as_me:2555: \$? = $ac_status" >&5
   2556       1.1.1.4  christos   (exit $ac_status); } &&
   2557       1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   2558  1.1.1.7.12.1  christos   { (eval echo "$as_me:2558: \"$ac_try\"") >&5
   2559       1.1.1.4  christos   (eval $ac_try) 2>&5
   2560       1.1.1.4  christos   ac_status=$?
   2561  1.1.1.7.12.1  christos   echo "$as_me:2561: \$? = $ac_status" >&5
   2562       1.1.1.4  christos   (exit $ac_status); }; }; then
   2563       1.1.1.4  christos   cf_cv_gnu_source=no
   2564       1.1.1.4  christos else
   2565       1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   2566       1.1.1.4  christos cat conftest.$ac_ext >&5
   2567       1.1.1.4  christos cf_cv_gnu_source=yes
   2568       1.1.1.4  christos fi
   2569       1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   2570       1.1.1.4  christos 	CPPFLAGS="$cf_save"
   2571       1.1.1.2  christos 
   2572       1.1.1.4  christos fi
   2573       1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   2574       1.1.1.2  christos 
   2575       1.1.1.4  christos fi
   2576  1.1.1.7.12.1  christos echo "$as_me:2576: result: $cf_cv_gnu_source" >&5
   2577       1.1.1.4  christos echo "${ECHO_T}$cf_cv_gnu_source" >&6
   2578       1.1.1.7  christos 
   2579       1.1.1.7  christos if test "$cf_cv_gnu_source" = yes
   2580       1.1.1.7  christos then
   2581  1.1.1.7.12.1  christos echo "$as_me:2581: checking if we should also define _DEFAULT_SOURCE" >&5
   2582       1.1.1.7  christos echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
   2583       1.1.1.7  christos if test "${cf_cv_default_source+set}" = set; then
   2584       1.1.1.7  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2585       1.1.1.7  christos else
   2586       1.1.1.7  christos 
   2587       1.1.1.7  christos CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
   2588       1.1.1.7  christos 	cat >conftest.$ac_ext <<_ACEOF
   2589  1.1.1.7.12.1  christos #line 2589 "configure"
   2590       1.1.1.7  christos #include "confdefs.h"
   2591       1.1.1.7  christos #include <sys/types.h>
   2592       1.1.1.7  christos int
   2593  1.1.1.7.12.1  christos main (void)
   2594       1.1.1.7  christos {
   2595       1.1.1.7  christos 
   2596       1.1.1.7  christos #ifdef _DEFAULT_SOURCE
   2597       1.1.1.7  christos make an error
   2598       1.1.1.7  christos #endif
   2599       1.1.1.7  christos   ;
   2600       1.1.1.7  christos   return 0;
   2601       1.1.1.7  christos }
   2602       1.1.1.7  christos _ACEOF
   2603       1.1.1.7  christos rm -f conftest.$ac_objext
   2604  1.1.1.7.12.1  christos if { (eval echo "$as_me:2604: \"$ac_compile\"") >&5
   2605       1.1.1.7  christos   (eval $ac_compile) 2>&5
   2606       1.1.1.7  christos   ac_status=$?
   2607  1.1.1.7.12.1  christos   echo "$as_me:2607: \$? = $ac_status" >&5
   2608       1.1.1.7  christos   (exit $ac_status); } &&
   2609       1.1.1.7  christos          { ac_try='test -s conftest.$ac_objext'
   2610  1.1.1.7.12.1  christos   { (eval echo "$as_me:2610: \"$ac_try\"") >&5
   2611       1.1.1.7  christos   (eval $ac_try) 2>&5
   2612       1.1.1.7  christos   ac_status=$?
   2613  1.1.1.7.12.1  christos   echo "$as_me:2613: \$? = $ac_status" >&5
   2614       1.1.1.7  christos   (exit $ac_status); }; }; then
   2615       1.1.1.7  christos   cf_cv_default_source=no
   2616       1.1.1.7  christos else
   2617       1.1.1.7  christos   echo "$as_me: failed program was:" >&5
   2618       1.1.1.7  christos cat conftest.$ac_ext >&5
   2619       1.1.1.7  christos cf_cv_default_source=yes
   2620       1.1.1.7  christos fi
   2621       1.1.1.7  christos rm -f conftest.$ac_objext conftest.$ac_ext
   2622       1.1.1.7  christos 
   2623       1.1.1.7  christos fi
   2624  1.1.1.7.12.1  christos echo "$as_me:2624: result: $cf_cv_default_source" >&5
   2625       1.1.1.7  christos echo "${ECHO_T}$cf_cv_default_source" >&6
   2626       1.1.1.7  christos test "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE"
   2627       1.1.1.7  christos fi
   2628       1.1.1.2  christos 
   2629       1.1.1.2  christos 	;;
   2630       1.1.1.6  christos (minix*)
   2631       1.1.1.5  christos 	cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
   2632       1.1.1.5  christos 	;;
   2633       1.1.1.6  christos (mirbsd*)
   2634       1.1.1.4  christos 	# setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
   2635       1.1.1.4  christos 	cf_XOPEN_SOURCE=
   2636       1.1.1.2  christos 
   2637       1.1.1.4  christos cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
   2638       1.1.1.2  christos 
   2639       1.1.1.4  christos cf_save_CFLAGS="$CFLAGS"
   2640       1.1.1.4  christos cf_save_CPPFLAGS="$CPPFLAGS"
   2641       1.1.1.2  christos 
   2642       1.1.1.4  christos cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
   2643       1.1.1.4  christos 	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   2644       1.1.1.4  christos 		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
   2645       1.1.1.2  christos 
   2646       1.1.1.4  christos cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
   2647       1.1.1.4  christos 	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   2648       1.1.1.4  christos 		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
   2649       1.1.1.2  christos 
   2650  1.1.1.7.12.1  christos echo "$as_me:2650: checking if we should define _POSIX_C_SOURCE" >&5
   2651       1.1.1.4  christos echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
   2652       1.1.1.4  christos if test "${cf_cv_posix_c_source+set}" = set; then
   2653       1.1.1.4  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2654       1.1.1.4  christos else
   2655       1.1.1.2  christos 
   2656  1.1.1.7.12.1  christos echo "${as_me:-configure}:2656: testing if the symbol is already defined go no further ..." 1>&5
   2657       1.1.1.2  christos 
   2658       1.1.1.2  christos 	cat >conftest.$ac_ext <<_ACEOF
   2659  1.1.1.7.12.1  christos #line 2659 "configure"
   2660       1.1.1.2  christos #include "confdefs.h"
   2661       1.1.1.4  christos #include <sys/types.h>
   2662       1.1.1.4  christos int
   2663  1.1.1.7.12.1  christos main (void)
   2664       1.1.1.4  christos {
   2665       1.1.1.2  christos 
   2666       1.1.1.4  christos #ifndef _POSIX_C_SOURCE
   2667       1.1.1.4  christos make an error
   2668       1.1.1.2  christos #endif
   2669       1.1.1.4  christos   ;
   2670       1.1.1.4  christos   return 0;
   2671       1.1.1.4  christos }
   2672       1.1.1.4  christos _ACEOF
   2673       1.1.1.4  christos rm -f conftest.$ac_objext
   2674  1.1.1.7.12.1  christos if { (eval echo "$as_me:2674: \"$ac_compile\"") >&5
   2675       1.1.1.4  christos   (eval $ac_compile) 2>&5
   2676       1.1.1.4  christos   ac_status=$?
   2677  1.1.1.7.12.1  christos   echo "$as_me:2677: \$? = $ac_status" >&5
   2678       1.1.1.4  christos   (exit $ac_status); } &&
   2679       1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   2680  1.1.1.7.12.1  christos   { (eval echo "$as_me:2680: \"$ac_try\"") >&5
   2681       1.1.1.4  christos   (eval $ac_try) 2>&5
   2682       1.1.1.4  christos   ac_status=$?
   2683  1.1.1.7.12.1  christos   echo "$as_me:2683: \$? = $ac_status" >&5
   2684       1.1.1.4  christos   (exit $ac_status); }; }; then
   2685       1.1.1.4  christos   cf_cv_posix_c_source=no
   2686       1.1.1.4  christos else
   2687       1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   2688       1.1.1.4  christos cat conftest.$ac_ext >&5
   2689       1.1.1.4  christos cf_want_posix_source=no
   2690       1.1.1.6  christos 	 case .$cf_POSIX_C_SOURCE in
   2691       1.1.1.6  christos 	 (.[12]??*)
   2692       1.1.1.4  christos 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   2693       1.1.1.4  christos 		;;
   2694       1.1.1.6  christos 	 (.2)
   2695       1.1.1.4  christos 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   2696       1.1.1.4  christos 		cf_want_posix_source=yes
   2697       1.1.1.4  christos 		;;
   2698       1.1.1.6  christos 	 (.*)
   2699       1.1.1.4  christos 		cf_want_posix_source=yes
   2700       1.1.1.4  christos 		;;
   2701       1.1.1.4  christos 	 esac
   2702       1.1.1.4  christos 	 if test "$cf_want_posix_source" = yes ; then
   2703       1.1.1.4  christos 		cat >conftest.$ac_ext <<_ACEOF
   2704  1.1.1.7.12.1  christos #line 2704 "configure"
   2705       1.1.1.4  christos #include "confdefs.h"
   2706       1.1.1.4  christos #include <sys/types.h>
   2707       1.1.1.4  christos int
   2708  1.1.1.7.12.1  christos main (void)
   2709       1.1.1.4  christos {
   2710       1.1.1.4  christos 
   2711       1.1.1.4  christos #ifdef _POSIX_SOURCE
   2712       1.1.1.4  christos make an error
   2713       1.1.1.2  christos #endif
   2714       1.1.1.4  christos   ;
   2715       1.1.1.4  christos   return 0;
   2716       1.1.1.4  christos }
   2717       1.1.1.4  christos _ACEOF
   2718       1.1.1.4  christos rm -f conftest.$ac_objext
   2719  1.1.1.7.12.1  christos if { (eval echo "$as_me:2719: \"$ac_compile\"") >&5
   2720       1.1.1.4  christos   (eval $ac_compile) 2>&5
   2721       1.1.1.4  christos   ac_status=$?
   2722  1.1.1.7.12.1  christos   echo "$as_me:2722: \$? = $ac_status" >&5
   2723       1.1.1.4  christos   (exit $ac_status); } &&
   2724       1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   2725  1.1.1.7.12.1  christos   { (eval echo "$as_me:2725: \"$ac_try\"") >&5
   2726       1.1.1.4  christos   (eval $ac_try) 2>&5
   2727       1.1.1.4  christos   ac_status=$?
   2728  1.1.1.7.12.1  christos   echo "$as_me:2728: \$? = $ac_status" >&5
   2729       1.1.1.4  christos   (exit $ac_status); }; }; then
   2730       1.1.1.4  christos   :
   2731       1.1.1.4  christos else
   2732       1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   2733       1.1.1.4  christos cat conftest.$ac_ext >&5
   2734       1.1.1.4  christos cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
   2735       1.1.1.4  christos fi
   2736       1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   2737       1.1.1.4  christos 	 fi
   2738       1.1.1.4  christos 
   2739  1.1.1.7.12.1  christos echo "${as_me:-configure}:2739: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
   2740       1.1.1.2  christos 
   2741       1.1.1.4  christos 	 CFLAGS="$cf_trim_CFLAGS"
   2742       1.1.1.4  christos 	 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
   2743       1.1.1.4  christos 
   2744  1.1.1.7.12.1  christos echo "${as_me:-configure}:2744: testing if the second compile does not leave our definition intact error ..." 1>&5
   2745       1.1.1.4  christos 
   2746       1.1.1.4  christos 	 cat >conftest.$ac_ext <<_ACEOF
   2747  1.1.1.7.12.1  christos #line 2747 "configure"
   2748       1.1.1.4  christos #include "confdefs.h"
   2749       1.1.1.4  christos #include <sys/types.h>
   2750       1.1.1.2  christos int
   2751  1.1.1.7.12.1  christos main (void)
   2752       1.1.1.2  christos {
   2753       1.1.1.2  christos 
   2754       1.1.1.4  christos #ifndef _POSIX_C_SOURCE
   2755       1.1.1.4  christos make an error
   2756       1.1.1.4  christos #endif
   2757       1.1.1.2  christos   ;
   2758       1.1.1.2  christos   return 0;
   2759       1.1.1.2  christos }
   2760       1.1.1.2  christos _ACEOF
   2761       1.1.1.2  christos rm -f conftest.$ac_objext
   2762  1.1.1.7.12.1  christos if { (eval echo "$as_me:2762: \"$ac_compile\"") >&5
   2763       1.1.1.2  christos   (eval $ac_compile) 2>&5
   2764       1.1.1.2  christos   ac_status=$?
   2765  1.1.1.7.12.1  christos   echo "$as_me:2765: \$? = $ac_status" >&5
   2766       1.1.1.2  christos   (exit $ac_status); } &&
   2767       1.1.1.2  christos          { ac_try='test -s conftest.$ac_objext'
   2768  1.1.1.7.12.1  christos   { (eval echo "$as_me:2768: \"$ac_try\"") >&5
   2769       1.1.1.2  christos   (eval $ac_try) 2>&5
   2770       1.1.1.2  christos   ac_status=$?
   2771  1.1.1.7.12.1  christos   echo "$as_me:2771: \$? = $ac_status" >&5
   2772       1.1.1.2  christos   (exit $ac_status); }; }; then
   2773       1.1.1.4  christos   :
   2774       1.1.1.2  christos else
   2775       1.1.1.2  christos   echo "$as_me: failed program was:" >&5
   2776       1.1.1.2  christos cat conftest.$ac_ext >&5
   2777       1.1.1.4  christos cf_cv_posix_c_source=no
   2778       1.1.1.2  christos fi
   2779       1.1.1.2  christos rm -f conftest.$ac_objext conftest.$ac_ext
   2780       1.1.1.4  christos 	 CFLAGS="$cf_save_CFLAGS"
   2781       1.1.1.4  christos 	 CPPFLAGS="$cf_save_CPPFLAGS"
   2782       1.1.1.2  christos 
   2783       1.1.1.2  christos fi
   2784       1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   2785       1.1.1.2  christos 
   2786       1.1.1.4  christos fi
   2787  1.1.1.7.12.1  christos echo "$as_me:2787: result: $cf_cv_posix_c_source" >&5
   2788       1.1.1.4  christos echo "${ECHO_T}$cf_cv_posix_c_source" >&6
   2789       1.1.1.4  christos 
   2790       1.1.1.4  christos if test "$cf_cv_posix_c_source" != no ; then
   2791       1.1.1.4  christos 	CFLAGS="$cf_trim_CFLAGS"
   2792       1.1.1.4  christos 	CPPFLAGS="$cf_trim_CPPFLAGS"
   2793       1.1.1.2  christos 
   2794       1.1.1.2  christos cf_fix_cppflags=no
   2795       1.1.1.2  christos cf_new_cflags=
   2796       1.1.1.2  christos cf_new_cppflags=
   2797       1.1.1.2  christos cf_new_extra_cppflags=
   2798       1.1.1.2  christos 
   2799       1.1.1.4  christos for cf_add_cflags in $cf_cv_posix_c_source
   2800       1.1.1.2  christos do
   2801       1.1.1.2  christos case $cf_fix_cppflags in
   2802       1.1.1.6  christos (no)
   2803       1.1.1.6  christos 	case $cf_add_cflags in
   2804       1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   2805       1.1.1.2  christos 		case $cf_add_cflags in
   2806       1.1.1.6  christos 		(-D*)
   2807       1.1.1.2  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   2808       1.1.1.2  christos 
   2809       1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   2810       1.1.1.2  christos 				&& test -z "${cf_tst_cflags}" \
   2811       1.1.1.2  christos 				&& cf_fix_cppflags=yes
   2812       1.1.1.2  christos 
   2813       1.1.1.2  christos 			if test $cf_fix_cppflags = yes ; then
   2814  1.1.1.7.12.1  christos 
   2815  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2816  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2817  1.1.1.7.12.1  christos 
   2818       1.1.1.2  christos 				continue
   2819       1.1.1.2  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   2820  1.1.1.7.12.1  christos 
   2821  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2822  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2823  1.1.1.7.12.1  christos 
   2824       1.1.1.2  christos 				continue
   2825       1.1.1.2  christos 			fi
   2826       1.1.1.2  christos 			;;
   2827       1.1.1.2  christos 		esac
   2828       1.1.1.2  christos 		case "$CPPFLAGS" in
   2829       1.1.1.6  christos 		(*$cf_add_cflags)
   2830       1.1.1.2  christos 			;;
   2831       1.1.1.6  christos 		(*)
   2832       1.1.1.6  christos 			case $cf_add_cflags in
   2833       1.1.1.6  christos 			(-D*)
   2834       1.1.1.2  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   2835       1.1.1.2  christos 
   2836       1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   2837       1.1.1.2  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   2838       1.1.1.2  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   2839       1.1.1.2  christos 
   2840       1.1.1.2  christos 				;;
   2841       1.1.1.2  christos 			esac
   2842  1.1.1.7.12.1  christos 
   2843  1.1.1.7.12.1  christos 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   2844  1.1.1.7.12.1  christos 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   2845  1.1.1.7.12.1  christos 
   2846       1.1.1.2  christos 			;;
   2847       1.1.1.2  christos 		esac
   2848       1.1.1.2  christos 		;;
   2849       1.1.1.6  christos 	(*)
   2850  1.1.1.7.12.1  christos 
   2851  1.1.1.7.12.1  christos 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   2852  1.1.1.7.12.1  christos 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   2853  1.1.1.7.12.1  christos 
   2854       1.1.1.2  christos 		;;
   2855       1.1.1.2  christos 	esac
   2856       1.1.1.2  christos 	;;
   2857       1.1.1.6  christos (yes)
   2858  1.1.1.7.12.1  christos 
   2859  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2860  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2861       1.1.1.2  christos 
   2862       1.1.1.2  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   2863       1.1.1.2  christos 
   2864       1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   2865       1.1.1.2  christos 		&& test -z "${cf_tst_cflags}" \
   2866       1.1.1.2  christos 		&& cf_fix_cppflags=no
   2867       1.1.1.2  christos 	;;
   2868       1.1.1.2  christos esac
   2869       1.1.1.2  christos done
   2870       1.1.1.2  christos 
   2871       1.1.1.2  christos if test -n "$cf_new_cflags" ; then
   2872       1.1.1.2  christos 
   2873  1.1.1.7.12.1  christos 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   2874  1.1.1.7.12.1  christos 	CFLAGS="${CFLAGS}$cf_new_cflags"
   2875  1.1.1.7.12.1  christos 
   2876       1.1.1.2  christos fi
   2877       1.1.1.4  christos 
   2878       1.1.1.4  christos if test -n "$cf_new_cppflags" ; then
   2879       1.1.1.4  christos 
   2880  1.1.1.7.12.1  christos 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   2881  1.1.1.7.12.1  christos 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   2882  1.1.1.7.12.1  christos 
   2883       1.1.1.2  christos fi
   2884       1.1.1.2  christos 
   2885       1.1.1.4  christos if test -n "$cf_new_extra_cppflags" ; then
   2886       1.1.1.4  christos 
   2887  1.1.1.7.12.1  christos 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   2888  1.1.1.7.12.1  christos 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   2889  1.1.1.7.12.1  christos 
   2890       1.1.1.2  christos fi
   2891       1.1.1.2  christos 
   2892       1.1.1.2  christos fi
   2893       1.1.1.2  christos 
   2894       1.1.1.2  christos 	;;
   2895       1.1.1.6  christos (netbsd*)
   2896       1.1.1.3  christos 	cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
   2897       1.1.1.2  christos 	;;
   2898       1.1.1.6  christos (openbsd[4-9]*)
   2899       1.1.1.4  christos 	# setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
   2900       1.1.1.4  christos 	cf_xopen_source="-D_BSD_SOURCE"
   2901       1.1.1.4  christos 	cf_XOPEN_SOURCE=600
   2902       1.1.1.4  christos 	;;
   2903       1.1.1.6  christos (openbsd*)
   2904       1.1.1.2  christos 	# setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
   2905       1.1.1.2  christos 	;;
   2906       1.1.1.6  christos (osf[45]*)
   2907       1.1.1.2  christos 	cf_xopen_source="-D_OSF_SOURCE"
   2908       1.1.1.2  christos 	;;
   2909       1.1.1.6  christos (nto-qnx*)
   2910       1.1.1.2  christos 	cf_xopen_source="-D_QNX_SOURCE"
   2911       1.1.1.2  christos 	;;
   2912       1.1.1.6  christos (sco*)
   2913       1.1.1.2  christos 	# setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
   2914       1.1.1.2  christos 	;;
   2915       1.1.1.6  christos (solaris2.*)
   2916       1.1.1.2  christos 	cf_xopen_source="-D__EXTENSIONS__"
   2917       1.1.1.5  christos 	cf_cv_xopen_source=broken
   2918       1.1.1.5  christos 	;;
   2919       1.1.1.6  christos (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
   2920       1.1.1.5  christos 	cf_XOPEN_SOURCE=
   2921       1.1.1.5  christos 	cf_POSIX_C_SOURCE=
   2922       1.1.1.2  christos 	;;
   2923       1.1.1.6  christos (*)
   2924       1.1.1.4  christos 
   2925  1.1.1.7.12.1  christos echo "$as_me:2925: checking if we should define _XOPEN_SOURCE" >&5
   2926       1.1.1.2  christos echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
   2927       1.1.1.2  christos if test "${cf_cv_xopen_source+set}" = set; then
   2928       1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2929       1.1.1.2  christos else
   2930       1.1.1.2  christos 
   2931       1.1.1.2  christos 	cat >conftest.$ac_ext <<_ACEOF
   2932  1.1.1.7.12.1  christos #line 2932 "configure"
   2933       1.1.1.2  christos #include "confdefs.h"
   2934       1.1.1.4  christos 
   2935       1.1.1.4  christos #include <stdlib.h>
   2936       1.1.1.4  christos #include <string.h>
   2937       1.1.1.2  christos #include <sys/types.h>
   2938       1.1.1.4  christos 
   2939       1.1.1.2  christos int
   2940  1.1.1.7.12.1  christos main (void)
   2941       1.1.1.2  christos {
   2942       1.1.1.2  christos 
   2943       1.1.1.2  christos #ifndef _XOPEN_SOURCE
   2944       1.1.1.2  christos make an error
   2945       1.1.1.2  christos #endif
   2946       1.1.1.2  christos   ;
   2947       1.1.1.2  christos   return 0;
   2948       1.1.1.2  christos }
   2949       1.1.1.2  christos _ACEOF
   2950       1.1.1.2  christos rm -f conftest.$ac_objext
   2951  1.1.1.7.12.1  christos if { (eval echo "$as_me:2951: \"$ac_compile\"") >&5
   2952       1.1.1.2  christos   (eval $ac_compile) 2>&5
   2953       1.1.1.2  christos   ac_status=$?
   2954  1.1.1.7.12.1  christos   echo "$as_me:2954: \$? = $ac_status" >&5
   2955       1.1.1.2  christos   (exit $ac_status); } &&
   2956       1.1.1.2  christos          { ac_try='test -s conftest.$ac_objext'
   2957  1.1.1.7.12.1  christos   { (eval echo "$as_me:2957: \"$ac_try\"") >&5
   2958       1.1.1.2  christos   (eval $ac_try) 2>&5
   2959       1.1.1.2  christos   ac_status=$?
   2960  1.1.1.7.12.1  christos   echo "$as_me:2960: \$? = $ac_status" >&5
   2961       1.1.1.2  christos   (exit $ac_status); }; }; then
   2962       1.1.1.2  christos   cf_cv_xopen_source=no
   2963       1.1.1.2  christos else
   2964       1.1.1.2  christos   echo "$as_me: failed program was:" >&5
   2965       1.1.1.2  christos cat conftest.$ac_ext >&5
   2966       1.1.1.2  christos cf_save="$CPPFLAGS"
   2967       1.1.1.2  christos 	 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
   2968       1.1.1.2  christos 	 cat >conftest.$ac_ext <<_ACEOF
   2969  1.1.1.7.12.1  christos #line 2969 "configure"
   2970       1.1.1.2  christos #include "confdefs.h"
   2971       1.1.1.4  christos 
   2972       1.1.1.4  christos #include <stdlib.h>
   2973       1.1.1.4  christos #include <string.h>
   2974       1.1.1.2  christos #include <sys/types.h>
   2975       1.1.1.4  christos 
   2976       1.1.1.2  christos int
   2977  1.1.1.7.12.1  christos main (void)
   2978       1.1.1.2  christos {
   2979       1.1.1.2  christos 
   2980       1.1.1.2  christos #ifdef _XOPEN_SOURCE
   2981       1.1.1.2  christos make an error
   2982       1.1.1.2  christos #endif
   2983       1.1.1.2  christos   ;
   2984       1.1.1.2  christos   return 0;
   2985       1.1.1.2  christos }
   2986       1.1.1.2  christos _ACEOF
   2987       1.1.1.2  christos rm -f conftest.$ac_objext
   2988  1.1.1.7.12.1  christos if { (eval echo "$as_me:2988: \"$ac_compile\"") >&5
   2989       1.1.1.2  christos   (eval $ac_compile) 2>&5
   2990       1.1.1.2  christos   ac_status=$?
   2991  1.1.1.7.12.1  christos   echo "$as_me:2991: \$? = $ac_status" >&5
   2992       1.1.1.2  christos   (exit $ac_status); } &&
   2993       1.1.1.2  christos          { ac_try='test -s conftest.$ac_objext'
   2994  1.1.1.7.12.1  christos   { (eval echo "$as_me:2994: \"$ac_try\"") >&5
   2995       1.1.1.2  christos   (eval $ac_try) 2>&5
   2996       1.1.1.2  christos   ac_status=$?
   2997  1.1.1.7.12.1  christos   echo "$as_me:2997: \$? = $ac_status" >&5
   2998       1.1.1.2  christos   (exit $ac_status); }; }; then
   2999       1.1.1.2  christos   cf_cv_xopen_source=no
   3000       1.1.1.2  christos else
   3001       1.1.1.2  christos   echo "$as_me: failed program was:" >&5
   3002       1.1.1.2  christos cat conftest.$ac_ext >&5
   3003       1.1.1.2  christos cf_cv_xopen_source=$cf_XOPEN_SOURCE
   3004       1.1.1.2  christos fi
   3005       1.1.1.2  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3006       1.1.1.2  christos 	CPPFLAGS="$cf_save"
   3007       1.1.1.2  christos 
   3008       1.1.1.2  christos fi
   3009       1.1.1.2  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3010       1.1.1.2  christos 
   3011       1.1.1.2  christos fi
   3012  1.1.1.7.12.1  christos echo "$as_me:3012: result: $cf_cv_xopen_source" >&5
   3013       1.1.1.2  christos echo "${ECHO_T}$cf_cv_xopen_source" >&6
   3014       1.1.1.4  christos 
   3015       1.1.1.4  christos if test "$cf_cv_xopen_source" != no ; then
   3016       1.1.1.2  christos 
   3017       1.1.1.2  christos CFLAGS=`echo "$CFLAGS" | \
   3018       1.1.1.2  christos 	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3019       1.1.1.2  christos 		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3020       1.1.1.2  christos 
   3021       1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   3022       1.1.1.2  christos 	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3023       1.1.1.2  christos 		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3024       1.1.1.2  christos 
   3025       1.1.1.4  christos 	cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
   3026           1.1  christos 
   3027           1.1  christos cf_fix_cppflags=no
   3028           1.1  christos cf_new_cflags=
   3029           1.1  christos cf_new_cppflags=
   3030           1.1  christos cf_new_extra_cppflags=
   3031           1.1  christos 
   3032       1.1.1.2  christos for cf_add_cflags in $cf_temp_xopen_source
   3033           1.1  christos do
   3034           1.1  christos case $cf_fix_cppflags in
   3035       1.1.1.6  christos (no)
   3036       1.1.1.6  christos 	case $cf_add_cflags in
   3037       1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   3038           1.1  christos 		case $cf_add_cflags in
   3039       1.1.1.6  christos 		(-D*)
   3040           1.1  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   3041           1.1  christos 
   3042       1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3043       1.1.1.2  christos 				&& test -z "${cf_tst_cflags}" \
   3044       1.1.1.2  christos 				&& cf_fix_cppflags=yes
   3045           1.1  christos 
   3046           1.1  christos 			if test $cf_fix_cppflags = yes ; then
   3047  1.1.1.7.12.1  christos 
   3048  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3049  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3050  1.1.1.7.12.1  christos 
   3051           1.1  christos 				continue
   3052           1.1  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   3053  1.1.1.7.12.1  christos 
   3054  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3055  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3056  1.1.1.7.12.1  christos 
   3057           1.1  christos 				continue
   3058           1.1  christos 			fi
   3059           1.1  christos 			;;
   3060           1.1  christos 		esac
   3061           1.1  christos 		case "$CPPFLAGS" in
   3062       1.1.1.6  christos 		(*$cf_add_cflags)
   3063           1.1  christos 			;;
   3064       1.1.1.6  christos 		(*)
   3065       1.1.1.6  christos 			case $cf_add_cflags in
   3066       1.1.1.6  christos 			(-D*)
   3067       1.1.1.2  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   3068       1.1.1.2  christos 
   3069       1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   3070       1.1.1.2  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3071       1.1.1.2  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   3072       1.1.1.2  christos 
   3073       1.1.1.2  christos 				;;
   3074       1.1.1.2  christos 			esac
   3075  1.1.1.7.12.1  christos 
   3076  1.1.1.7.12.1  christos 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   3077  1.1.1.7.12.1  christos 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   3078  1.1.1.7.12.1  christos 
   3079           1.1  christos 			;;
   3080           1.1  christos 		esac
   3081           1.1  christos 		;;
   3082       1.1.1.6  christos 	(*)
   3083  1.1.1.7.12.1  christos 
   3084  1.1.1.7.12.1  christos 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   3085  1.1.1.7.12.1  christos 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   3086  1.1.1.7.12.1  christos 
   3087           1.1  christos 		;;
   3088           1.1  christos 	esac
   3089           1.1  christos 	;;
   3090       1.1.1.6  christos (yes)
   3091  1.1.1.7.12.1  christos 
   3092  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3093  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3094           1.1  christos 
   3095           1.1  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   3096           1.1  christos 
   3097       1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3098       1.1.1.2  christos 		&& test -z "${cf_tst_cflags}" \
   3099       1.1.1.2  christos 		&& cf_fix_cppflags=no
   3100           1.1  christos 	;;
   3101           1.1  christos esac
   3102           1.1  christos done
   3103           1.1  christos 
   3104           1.1  christos if test -n "$cf_new_cflags" ; then
   3105           1.1  christos 
   3106  1.1.1.7.12.1  christos 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   3107  1.1.1.7.12.1  christos 	CFLAGS="${CFLAGS}$cf_new_cflags"
   3108  1.1.1.7.12.1  christos 
   3109           1.1  christos fi
   3110           1.1  christos 
   3111           1.1  christos if test -n "$cf_new_cppflags" ; then
   3112           1.1  christos 
   3113  1.1.1.7.12.1  christos 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3114  1.1.1.7.12.1  christos 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   3115  1.1.1.7.12.1  christos 
   3116           1.1  christos fi
   3117           1.1  christos 
   3118           1.1  christos if test -n "$cf_new_extra_cppflags" ; then
   3119           1.1  christos 
   3120  1.1.1.7.12.1  christos 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   3121  1.1.1.7.12.1  christos 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   3122  1.1.1.7.12.1  christos 
   3123           1.1  christos fi
   3124           1.1  christos 
   3125       1.1.1.4  christos fi
   3126       1.1.1.2  christos 
   3127       1.1.1.2  christos cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
   3128       1.1.1.2  christos 
   3129       1.1.1.2  christos cf_save_CFLAGS="$CFLAGS"
   3130       1.1.1.2  christos cf_save_CPPFLAGS="$CPPFLAGS"
   3131       1.1.1.2  christos 
   3132       1.1.1.2  christos cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
   3133       1.1.1.2  christos 	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3134       1.1.1.2  christos 		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3135       1.1.1.2  christos 
   3136       1.1.1.2  christos cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
   3137       1.1.1.2  christos 	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3138       1.1.1.2  christos 		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3139       1.1.1.2  christos 
   3140  1.1.1.7.12.1  christos echo "$as_me:3140: checking if we should define _POSIX_C_SOURCE" >&5
   3141       1.1.1.2  christos echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
   3142       1.1.1.2  christos if test "${cf_cv_posix_c_source+set}" = set; then
   3143       1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3144       1.1.1.2  christos else
   3145       1.1.1.2  christos 
   3146  1.1.1.7.12.1  christos echo "${as_me:-configure}:3146: testing if the symbol is already defined go no further ..." 1>&5
   3147       1.1.1.2  christos 
   3148           1.1  christos 	cat >conftest.$ac_ext <<_ACEOF
   3149  1.1.1.7.12.1  christos #line 3149 "configure"
   3150           1.1  christos #include "confdefs.h"
   3151       1.1.1.2  christos #include <sys/types.h>
   3152       1.1.1.2  christos int
   3153  1.1.1.7.12.1  christos main (void)
   3154       1.1.1.2  christos {
   3155           1.1  christos 
   3156       1.1.1.2  christos #ifndef _POSIX_C_SOURCE
   3157       1.1.1.2  christos make an error
   3158           1.1  christos #endif
   3159       1.1.1.2  christos   ;
   3160       1.1.1.2  christos   return 0;
   3161       1.1.1.2  christos }
   3162       1.1.1.2  christos _ACEOF
   3163       1.1.1.2  christos rm -f conftest.$ac_objext
   3164  1.1.1.7.12.1  christos if { (eval echo "$as_me:3164: \"$ac_compile\"") >&5
   3165       1.1.1.2  christos   (eval $ac_compile) 2>&5
   3166       1.1.1.2  christos   ac_status=$?
   3167  1.1.1.7.12.1  christos   echo "$as_me:3167: \$? = $ac_status" >&5
   3168       1.1.1.2  christos   (exit $ac_status); } &&
   3169       1.1.1.2  christos          { ac_try='test -s conftest.$ac_objext'
   3170  1.1.1.7.12.1  christos   { (eval echo "$as_me:3170: \"$ac_try\"") >&5
   3171       1.1.1.2  christos   (eval $ac_try) 2>&5
   3172       1.1.1.2  christos   ac_status=$?
   3173  1.1.1.7.12.1  christos   echo "$as_me:3173: \$? = $ac_status" >&5
   3174       1.1.1.2  christos   (exit $ac_status); }; }; then
   3175       1.1.1.2  christos   cf_cv_posix_c_source=no
   3176       1.1.1.2  christos else
   3177       1.1.1.2  christos   echo "$as_me: failed program was:" >&5
   3178       1.1.1.2  christos cat conftest.$ac_ext >&5
   3179       1.1.1.2  christos cf_want_posix_source=no
   3180       1.1.1.6  christos 	 case .$cf_POSIX_C_SOURCE in
   3181       1.1.1.6  christos 	 (.[12]??*)
   3182       1.1.1.2  christos 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   3183       1.1.1.2  christos 		;;
   3184       1.1.1.6  christos 	 (.2)
   3185       1.1.1.2  christos 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   3186       1.1.1.2  christos 		cf_want_posix_source=yes
   3187       1.1.1.2  christos 		;;
   3188       1.1.1.6  christos 	 (.*)
   3189       1.1.1.2  christos 		cf_want_posix_source=yes
   3190       1.1.1.2  christos 		;;
   3191       1.1.1.2  christos 	 esac
   3192       1.1.1.2  christos 	 if test "$cf_want_posix_source" = yes ; then
   3193       1.1.1.2  christos 		cat >conftest.$ac_ext <<_ACEOF
   3194  1.1.1.7.12.1  christos #line 3194 "configure"
   3195       1.1.1.2  christos #include "confdefs.h"
   3196       1.1.1.2  christos #include <sys/types.h>
   3197       1.1.1.2  christos int
   3198  1.1.1.7.12.1  christos main (void)
   3199       1.1.1.2  christos {
   3200       1.1.1.2  christos 
   3201       1.1.1.2  christos #ifdef _POSIX_SOURCE
   3202       1.1.1.2  christos make an error
   3203           1.1  christos #endif
   3204       1.1.1.2  christos   ;
   3205       1.1.1.2  christos   return 0;
   3206       1.1.1.2  christos }
   3207       1.1.1.2  christos _ACEOF
   3208       1.1.1.2  christos rm -f conftest.$ac_objext
   3209  1.1.1.7.12.1  christos if { (eval echo "$as_me:3209: \"$ac_compile\"") >&5
   3210       1.1.1.2  christos   (eval $ac_compile) 2>&5
   3211       1.1.1.2  christos   ac_status=$?
   3212  1.1.1.7.12.1  christos   echo "$as_me:3212: \$? = $ac_status" >&5
   3213       1.1.1.2  christos   (exit $ac_status); } &&
   3214       1.1.1.2  christos          { ac_try='test -s conftest.$ac_objext'
   3215  1.1.1.7.12.1  christos   { (eval echo "$as_me:3215: \"$ac_try\"") >&5
   3216       1.1.1.2  christos   (eval $ac_try) 2>&5
   3217       1.1.1.2  christos   ac_status=$?
   3218  1.1.1.7.12.1  christos   echo "$as_me:3218: \$? = $ac_status" >&5
   3219       1.1.1.2  christos   (exit $ac_status); }; }; then
   3220       1.1.1.2  christos   :
   3221       1.1.1.2  christos else
   3222       1.1.1.2  christos   echo "$as_me: failed program was:" >&5
   3223       1.1.1.2  christos cat conftest.$ac_ext >&5
   3224       1.1.1.2  christos cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
   3225       1.1.1.2  christos fi
   3226       1.1.1.2  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3227       1.1.1.2  christos 	 fi
   3228       1.1.1.2  christos 
   3229  1.1.1.7.12.1  christos echo "${as_me:-configure}:3229: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
   3230       1.1.1.2  christos 
   3231       1.1.1.2  christos 	 CFLAGS="$cf_trim_CFLAGS"
   3232       1.1.1.2  christos 	 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
   3233       1.1.1.2  christos 
   3234  1.1.1.7.12.1  christos echo "${as_me:-configure}:3234: testing if the second compile does not leave our definition intact error ..." 1>&5
   3235           1.1  christos 
   3236       1.1.1.2  christos 	 cat >conftest.$ac_ext <<_ACEOF
   3237  1.1.1.7.12.1  christos #line 3237 "configure"
   3238       1.1.1.2  christos #include "confdefs.h"
   3239       1.1.1.2  christos #include <sys/types.h>
   3240           1.1  christos int
   3241  1.1.1.7.12.1  christos main (void)
   3242           1.1  christos {
   3243           1.1  christos 
   3244       1.1.1.2  christos #ifndef _POSIX_C_SOURCE
   3245       1.1.1.2  christos make an error
   3246       1.1.1.2  christos #endif
   3247           1.1  christos   ;
   3248           1.1  christos   return 0;
   3249           1.1  christos }
   3250           1.1  christos _ACEOF
   3251           1.1  christos rm -f conftest.$ac_objext
   3252  1.1.1.7.12.1  christos if { (eval echo "$as_me:3252: \"$ac_compile\"") >&5
   3253           1.1  christos   (eval $ac_compile) 2>&5
   3254           1.1  christos   ac_status=$?
   3255  1.1.1.7.12.1  christos   echo "$as_me:3255: \$? = $ac_status" >&5
   3256           1.1  christos   (exit $ac_status); } &&
   3257           1.1  christos          { ac_try='test -s conftest.$ac_objext'
   3258  1.1.1.7.12.1  christos   { (eval echo "$as_me:3258: \"$ac_try\"") >&5
   3259           1.1  christos   (eval $ac_try) 2>&5
   3260           1.1  christos   ac_status=$?
   3261  1.1.1.7.12.1  christos   echo "$as_me:3261: \$? = $ac_status" >&5
   3262           1.1  christos   (exit $ac_status); }; }; then
   3263       1.1.1.2  christos   :
   3264           1.1  christos else
   3265           1.1  christos   echo "$as_me: failed program was:" >&5
   3266           1.1  christos cat conftest.$ac_ext >&5
   3267       1.1.1.2  christos cf_cv_posix_c_source=no
   3268           1.1  christos fi
   3269           1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3270       1.1.1.2  christos 	 CFLAGS="$cf_save_CFLAGS"
   3271       1.1.1.2  christos 	 CPPFLAGS="$cf_save_CPPFLAGS"
   3272           1.1  christos 
   3273           1.1  christos fi
   3274       1.1.1.2  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3275           1.1  christos 
   3276       1.1.1.2  christos fi
   3277  1.1.1.7.12.1  christos echo "$as_me:3277: result: $cf_cv_posix_c_source" >&5
   3278       1.1.1.2  christos echo "${ECHO_T}$cf_cv_posix_c_source" >&6
   3279       1.1.1.2  christos 
   3280       1.1.1.2  christos if test "$cf_cv_posix_c_source" != no ; then
   3281       1.1.1.2  christos 	CFLAGS="$cf_trim_CFLAGS"
   3282       1.1.1.2  christos 	CPPFLAGS="$cf_trim_CPPFLAGS"
   3283           1.1  christos 
   3284           1.1  christos cf_fix_cppflags=no
   3285           1.1  christos cf_new_cflags=
   3286           1.1  christos cf_new_cppflags=
   3287           1.1  christos cf_new_extra_cppflags=
   3288           1.1  christos 
   3289       1.1.1.2  christos for cf_add_cflags in $cf_cv_posix_c_source
   3290           1.1  christos do
   3291           1.1  christos case $cf_fix_cppflags in
   3292       1.1.1.6  christos (no)
   3293       1.1.1.6  christos 	case $cf_add_cflags in
   3294       1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   3295           1.1  christos 		case $cf_add_cflags in
   3296       1.1.1.6  christos 		(-D*)
   3297           1.1  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   3298           1.1  christos 
   3299       1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3300       1.1.1.2  christos 				&& test -z "${cf_tst_cflags}" \
   3301       1.1.1.2  christos 				&& cf_fix_cppflags=yes
   3302           1.1  christos 
   3303           1.1  christos 			if test $cf_fix_cppflags = yes ; then
   3304  1.1.1.7.12.1  christos 
   3305  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3306  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3307  1.1.1.7.12.1  christos 
   3308           1.1  christos 				continue
   3309           1.1  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   3310  1.1.1.7.12.1  christos 
   3311  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3312  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3313  1.1.1.7.12.1  christos 
   3314           1.1  christos 				continue
   3315           1.1  christos 			fi
   3316           1.1  christos 			;;
   3317           1.1  christos 		esac
   3318           1.1  christos 		case "$CPPFLAGS" in
   3319       1.1.1.6  christos 		(*$cf_add_cflags)
   3320           1.1  christos 			;;
   3321       1.1.1.6  christos 		(*)
   3322       1.1.1.6  christos 			case $cf_add_cflags in
   3323       1.1.1.6  christos 			(-D*)
   3324       1.1.1.2  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   3325       1.1.1.2  christos 
   3326       1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   3327       1.1.1.2  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3328       1.1.1.2  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   3329       1.1.1.2  christos 
   3330       1.1.1.2  christos 				;;
   3331       1.1.1.2  christos 			esac
   3332  1.1.1.7.12.1  christos 
   3333  1.1.1.7.12.1  christos 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   3334  1.1.1.7.12.1  christos 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   3335  1.1.1.7.12.1  christos 
   3336           1.1  christos 			;;
   3337           1.1  christos 		esac
   3338           1.1  christos 		;;
   3339       1.1.1.6  christos 	(*)
   3340  1.1.1.7.12.1  christos 
   3341  1.1.1.7.12.1  christos 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   3342  1.1.1.7.12.1  christos 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   3343  1.1.1.7.12.1  christos 
   3344           1.1  christos 		;;
   3345           1.1  christos 	esac
   3346           1.1  christos 	;;
   3347       1.1.1.6  christos (yes)
   3348  1.1.1.7.12.1  christos 
   3349  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3350  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3351           1.1  christos 
   3352           1.1  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   3353           1.1  christos 
   3354       1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3355       1.1.1.2  christos 		&& test -z "${cf_tst_cflags}" \
   3356       1.1.1.2  christos 		&& cf_fix_cppflags=no
   3357           1.1  christos 	;;
   3358           1.1  christos esac
   3359           1.1  christos done
   3360           1.1  christos 
   3361           1.1  christos if test -n "$cf_new_cflags" ; then
   3362           1.1  christos 
   3363  1.1.1.7.12.1  christos 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   3364  1.1.1.7.12.1  christos 	CFLAGS="${CFLAGS}$cf_new_cflags"
   3365  1.1.1.7.12.1  christos 
   3366           1.1  christos fi
   3367           1.1  christos 
   3368           1.1  christos if test -n "$cf_new_cppflags" ; then
   3369           1.1  christos 
   3370  1.1.1.7.12.1  christos 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3371  1.1.1.7.12.1  christos 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   3372  1.1.1.7.12.1  christos 
   3373           1.1  christos fi
   3374           1.1  christos 
   3375           1.1  christos if test -n "$cf_new_extra_cppflags" ; then
   3376           1.1  christos 
   3377  1.1.1.7.12.1  christos 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   3378  1.1.1.7.12.1  christos 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   3379  1.1.1.7.12.1  christos 
   3380           1.1  christos fi
   3381           1.1  christos 
   3382       1.1.1.2  christos fi
   3383       1.1.1.2  christos 
   3384       1.1.1.2  christos 	;;
   3385       1.1.1.2  christos esac
   3386       1.1.1.2  christos 
   3387       1.1.1.2  christos if test -n "$cf_xopen_source" ; then
   3388       1.1.1.2  christos 
   3389       1.1.1.2  christos cf_fix_cppflags=no
   3390       1.1.1.2  christos cf_new_cflags=
   3391       1.1.1.2  christos cf_new_cppflags=
   3392       1.1.1.2  christos cf_new_extra_cppflags=
   3393       1.1.1.2  christos 
   3394       1.1.1.2  christos for cf_add_cflags in $cf_xopen_source
   3395       1.1.1.2  christos do
   3396       1.1.1.2  christos case $cf_fix_cppflags in
   3397       1.1.1.6  christos (no)
   3398       1.1.1.6  christos 	case $cf_add_cflags in
   3399       1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   3400       1.1.1.2  christos 		case $cf_add_cflags in
   3401       1.1.1.6  christos 		(-D*)
   3402       1.1.1.2  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   3403       1.1.1.2  christos 
   3404       1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3405       1.1.1.2  christos 				&& test -z "${cf_tst_cflags}" \
   3406       1.1.1.2  christos 				&& cf_fix_cppflags=yes
   3407       1.1.1.2  christos 
   3408       1.1.1.2  christos 			if test $cf_fix_cppflags = yes ; then
   3409  1.1.1.7.12.1  christos 
   3410  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3411  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3412  1.1.1.7.12.1  christos 
   3413       1.1.1.2  christos 				continue
   3414       1.1.1.2  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   3415  1.1.1.7.12.1  christos 
   3416  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3417  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3418  1.1.1.7.12.1  christos 
   3419       1.1.1.2  christos 				continue
   3420       1.1.1.2  christos 			fi
   3421       1.1.1.2  christos 			;;
   3422       1.1.1.2  christos 		esac
   3423       1.1.1.2  christos 		case "$CPPFLAGS" in
   3424       1.1.1.6  christos 		(*$cf_add_cflags)
   3425       1.1.1.2  christos 			;;
   3426       1.1.1.6  christos 		(*)
   3427       1.1.1.6  christos 			case $cf_add_cflags in
   3428       1.1.1.6  christos 			(-D*)
   3429       1.1.1.2  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   3430       1.1.1.2  christos 
   3431       1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   3432       1.1.1.2  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3433       1.1.1.2  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   3434       1.1.1.2  christos 
   3435       1.1.1.2  christos 				;;
   3436       1.1.1.2  christos 			esac
   3437  1.1.1.7.12.1  christos 
   3438  1.1.1.7.12.1  christos 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   3439  1.1.1.7.12.1  christos 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   3440  1.1.1.7.12.1  christos 
   3441       1.1.1.2  christos 			;;
   3442       1.1.1.2  christos 		esac
   3443       1.1.1.2  christos 		;;
   3444       1.1.1.6  christos 	(*)
   3445  1.1.1.7.12.1  christos 
   3446  1.1.1.7.12.1  christos 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   3447  1.1.1.7.12.1  christos 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   3448  1.1.1.7.12.1  christos 
   3449       1.1.1.2  christos 		;;
   3450       1.1.1.2  christos 	esac
   3451       1.1.1.2  christos 	;;
   3452       1.1.1.6  christos (yes)
   3453  1.1.1.7.12.1  christos 
   3454  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3455  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3456       1.1.1.2  christos 
   3457       1.1.1.2  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   3458       1.1.1.2  christos 
   3459       1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3460       1.1.1.2  christos 		&& test -z "${cf_tst_cflags}" \
   3461       1.1.1.2  christos 		&& cf_fix_cppflags=no
   3462       1.1.1.2  christos 	;;
   3463       1.1.1.2  christos esac
   3464       1.1.1.2  christos done
   3465       1.1.1.2  christos 
   3466       1.1.1.2  christos if test -n "$cf_new_cflags" ; then
   3467       1.1.1.5  christos 	test -n "$verbose" && echo "	add to \$CFLAGS $cf_new_cflags" 1>&6
   3468       1.1.1.5  christos 
   3469  1.1.1.7.12.1  christos echo "${as_me:-configure}:3469: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
   3470  1.1.1.7.12.1  christos 
   3471  1.1.1.7.12.1  christos 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   3472  1.1.1.7.12.1  christos 	CFLAGS="${CFLAGS}$cf_new_cflags"
   3473           1.1  christos 
   3474           1.1  christos fi
   3475       1.1.1.2  christos 
   3476       1.1.1.2  christos if test -n "$cf_new_cppflags" ; then
   3477       1.1.1.5  christos 	test -n "$verbose" && echo "	add to \$CPPFLAGS $cf_new_cppflags" 1>&6
   3478       1.1.1.5  christos 
   3479  1.1.1.7.12.1  christos echo "${as_me:-configure}:3479: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
   3480  1.1.1.7.12.1  christos 
   3481  1.1.1.7.12.1  christos 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3482  1.1.1.7.12.1  christos 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   3483       1.1.1.2  christos 
   3484       1.1.1.2  christos fi
   3485       1.1.1.2  christos 
   3486       1.1.1.2  christos if test -n "$cf_new_extra_cppflags" ; then
   3487       1.1.1.5  christos 	test -n "$verbose" && echo "	add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
   3488       1.1.1.5  christos 
   3489  1.1.1.7.12.1  christos echo "${as_me:-configure}:3489: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
   3490  1.1.1.7.12.1  christos 
   3491  1.1.1.7.12.1  christos 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   3492  1.1.1.7.12.1  christos 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   3493       1.1.1.2  christos 
   3494           1.1  christos fi
   3495           1.1  christos 
   3496           1.1  christos fi
   3497           1.1  christos 
   3498       1.1.1.4  christos if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
   3499  1.1.1.7.12.1  christos 	echo "$as_me:3499: checking if _XOPEN_SOURCE really is set" >&5
   3500       1.1.1.4  christos echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
   3501       1.1.1.4  christos 	cat >conftest.$ac_ext <<_ACEOF
   3502  1.1.1.7.12.1  christos #line 3502 "configure"
   3503       1.1.1.4  christos #include "confdefs.h"
   3504       1.1.1.4  christos #include <stdlib.h>
   3505       1.1.1.4  christos int
   3506  1.1.1.7.12.1  christos main (void)
   3507       1.1.1.4  christos {
   3508       1.1.1.4  christos 
   3509       1.1.1.4  christos #ifndef _XOPEN_SOURCE
   3510       1.1.1.4  christos make an error
   3511       1.1.1.4  christos #endif
   3512       1.1.1.4  christos   ;
   3513       1.1.1.4  christos   return 0;
   3514       1.1.1.4  christos }
   3515       1.1.1.4  christos _ACEOF
   3516       1.1.1.4  christos rm -f conftest.$ac_objext
   3517  1.1.1.7.12.1  christos if { (eval echo "$as_me:3517: \"$ac_compile\"") >&5
   3518       1.1.1.4  christos   (eval $ac_compile) 2>&5
   3519       1.1.1.4  christos   ac_status=$?
   3520  1.1.1.7.12.1  christos   echo "$as_me:3520: \$? = $ac_status" >&5
   3521       1.1.1.4  christos   (exit $ac_status); } &&
   3522       1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   3523  1.1.1.7.12.1  christos   { (eval echo "$as_me:3523: \"$ac_try\"") >&5
   3524       1.1.1.4  christos   (eval $ac_try) 2>&5
   3525       1.1.1.4  christos   ac_status=$?
   3526  1.1.1.7.12.1  christos   echo "$as_me:3526: \$? = $ac_status" >&5
   3527       1.1.1.4  christos   (exit $ac_status); }; }; then
   3528       1.1.1.4  christos   cf_XOPEN_SOURCE_set=yes
   3529       1.1.1.4  christos else
   3530       1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   3531       1.1.1.4  christos cat conftest.$ac_ext >&5
   3532       1.1.1.4  christos cf_XOPEN_SOURCE_set=no
   3533       1.1.1.4  christos fi
   3534       1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3535  1.1.1.7.12.1  christos 	echo "$as_me:3535: result: $cf_XOPEN_SOURCE_set" >&5
   3536       1.1.1.4  christos echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
   3537       1.1.1.4  christos 	if test $cf_XOPEN_SOURCE_set = yes
   3538       1.1.1.4  christos 	then
   3539       1.1.1.4  christos 		cat >conftest.$ac_ext <<_ACEOF
   3540  1.1.1.7.12.1  christos #line 3540 "configure"
   3541       1.1.1.4  christos #include "confdefs.h"
   3542       1.1.1.4  christos #include <stdlib.h>
   3543       1.1.1.4  christos int
   3544  1.1.1.7.12.1  christos main (void)
   3545       1.1.1.4  christos {
   3546       1.1.1.4  christos 
   3547       1.1.1.4  christos #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
   3548       1.1.1.4  christos make an error
   3549       1.1.1.4  christos #endif
   3550       1.1.1.4  christos   ;
   3551       1.1.1.4  christos   return 0;
   3552       1.1.1.4  christos }
   3553       1.1.1.4  christos _ACEOF
   3554       1.1.1.4  christos rm -f conftest.$ac_objext
   3555  1.1.1.7.12.1  christos if { (eval echo "$as_me:3555: \"$ac_compile\"") >&5
   3556       1.1.1.4  christos   (eval $ac_compile) 2>&5
   3557       1.1.1.4  christos   ac_status=$?
   3558  1.1.1.7.12.1  christos   echo "$as_me:3558: \$? = $ac_status" >&5
   3559       1.1.1.4  christos   (exit $ac_status); } &&
   3560       1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   3561  1.1.1.7.12.1  christos   { (eval echo "$as_me:3561: \"$ac_try\"") >&5
   3562       1.1.1.4  christos   (eval $ac_try) 2>&5
   3563       1.1.1.4  christos   ac_status=$?
   3564  1.1.1.7.12.1  christos   echo "$as_me:3564: \$? = $ac_status" >&5
   3565       1.1.1.4  christos   (exit $ac_status); }; }; then
   3566       1.1.1.4  christos   cf_XOPEN_SOURCE_set_ok=yes
   3567       1.1.1.4  christos else
   3568       1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   3569       1.1.1.4  christos cat conftest.$ac_ext >&5
   3570       1.1.1.4  christos cf_XOPEN_SOURCE_set_ok=no
   3571       1.1.1.4  christos fi
   3572       1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3573       1.1.1.4  christos 		if test $cf_XOPEN_SOURCE_set_ok = no
   3574       1.1.1.4  christos 		then
   3575  1.1.1.7.12.1  christos 			{ echo "$as_me:3575: WARNING: _XOPEN_SOURCE is lower than requested" >&5
   3576       1.1.1.4  christos echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
   3577       1.1.1.4  christos 		fi
   3578       1.1.1.4  christos 	else
   3579       1.1.1.4  christos 
   3580  1.1.1.7.12.1  christos echo "$as_me:3580: checking if we should define _XOPEN_SOURCE" >&5
   3581       1.1.1.4  christos echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
   3582       1.1.1.4  christos if test "${cf_cv_xopen_source+set}" = set; then
   3583       1.1.1.4  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3584       1.1.1.4  christos else
   3585       1.1.1.4  christos 
   3586       1.1.1.4  christos 	cat >conftest.$ac_ext <<_ACEOF
   3587  1.1.1.7.12.1  christos #line 3587 "configure"
   3588       1.1.1.4  christos #include "confdefs.h"
   3589       1.1.1.4  christos 
   3590       1.1.1.4  christos #include <stdlib.h>
   3591       1.1.1.4  christos #include <string.h>
   3592       1.1.1.4  christos #include <sys/types.h>
   3593       1.1.1.4  christos 
   3594       1.1.1.4  christos int
   3595  1.1.1.7.12.1  christos main (void)
   3596       1.1.1.4  christos {
   3597       1.1.1.4  christos 
   3598       1.1.1.4  christos #ifndef _XOPEN_SOURCE
   3599       1.1.1.4  christos make an error
   3600       1.1.1.4  christos #endif
   3601       1.1.1.4  christos   ;
   3602       1.1.1.4  christos   return 0;
   3603       1.1.1.4  christos }
   3604       1.1.1.4  christos _ACEOF
   3605       1.1.1.4  christos rm -f conftest.$ac_objext
   3606  1.1.1.7.12.1  christos if { (eval echo "$as_me:3606: \"$ac_compile\"") >&5
   3607       1.1.1.4  christos   (eval $ac_compile) 2>&5
   3608       1.1.1.4  christos   ac_status=$?
   3609  1.1.1.7.12.1  christos   echo "$as_me:3609: \$? = $ac_status" >&5
   3610       1.1.1.4  christos   (exit $ac_status); } &&
   3611       1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   3612  1.1.1.7.12.1  christos   { (eval echo "$as_me:3612: \"$ac_try\"") >&5
   3613       1.1.1.4  christos   (eval $ac_try) 2>&5
   3614       1.1.1.4  christos   ac_status=$?
   3615  1.1.1.7.12.1  christos   echo "$as_me:3615: \$? = $ac_status" >&5
   3616       1.1.1.4  christos   (exit $ac_status); }; }; then
   3617       1.1.1.4  christos   cf_cv_xopen_source=no
   3618       1.1.1.4  christos else
   3619       1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   3620       1.1.1.4  christos cat conftest.$ac_ext >&5
   3621       1.1.1.4  christos cf_save="$CPPFLAGS"
   3622       1.1.1.4  christos 	 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
   3623       1.1.1.4  christos 	 cat >conftest.$ac_ext <<_ACEOF
   3624  1.1.1.7.12.1  christos #line 3624 "configure"
   3625       1.1.1.4  christos #include "confdefs.h"
   3626       1.1.1.4  christos 
   3627       1.1.1.4  christos #include <stdlib.h>
   3628       1.1.1.4  christos #include <string.h>
   3629       1.1.1.4  christos #include <sys/types.h>
   3630       1.1.1.4  christos 
   3631       1.1.1.4  christos int
   3632  1.1.1.7.12.1  christos main (void)
   3633       1.1.1.4  christos {
   3634       1.1.1.4  christos 
   3635       1.1.1.4  christos #ifdef _XOPEN_SOURCE
   3636       1.1.1.4  christos make an error
   3637       1.1.1.4  christos #endif
   3638       1.1.1.4  christos   ;
   3639       1.1.1.4  christos   return 0;
   3640       1.1.1.4  christos }
   3641       1.1.1.4  christos _ACEOF
   3642       1.1.1.4  christos rm -f conftest.$ac_objext
   3643  1.1.1.7.12.1  christos if { (eval echo "$as_me:3643: \"$ac_compile\"") >&5
   3644       1.1.1.4  christos   (eval $ac_compile) 2>&5
   3645       1.1.1.4  christos   ac_status=$?
   3646  1.1.1.7.12.1  christos   echo "$as_me:3646: \$? = $ac_status" >&5
   3647       1.1.1.4  christos   (exit $ac_status); } &&
   3648       1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   3649  1.1.1.7.12.1  christos   { (eval echo "$as_me:3649: \"$ac_try\"") >&5
   3650       1.1.1.4  christos   (eval $ac_try) 2>&5
   3651       1.1.1.4  christos   ac_status=$?
   3652  1.1.1.7.12.1  christos   echo "$as_me:3652: \$? = $ac_status" >&5
   3653       1.1.1.4  christos   (exit $ac_status); }; }; then
   3654       1.1.1.4  christos   cf_cv_xopen_source=no
   3655       1.1.1.4  christos else
   3656       1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   3657       1.1.1.4  christos cat conftest.$ac_ext >&5
   3658       1.1.1.4  christos cf_cv_xopen_source=$cf_XOPEN_SOURCE
   3659       1.1.1.4  christos fi
   3660       1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3661       1.1.1.4  christos 	CPPFLAGS="$cf_save"
   3662       1.1.1.4  christos 
   3663       1.1.1.4  christos fi
   3664       1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3665       1.1.1.4  christos 
   3666       1.1.1.4  christos fi
   3667  1.1.1.7.12.1  christos echo "$as_me:3667: result: $cf_cv_xopen_source" >&5
   3668       1.1.1.4  christos echo "${ECHO_T}$cf_cv_xopen_source" >&6
   3669       1.1.1.4  christos 
   3670       1.1.1.4  christos if test "$cf_cv_xopen_source" != no ; then
   3671       1.1.1.4  christos 
   3672       1.1.1.4  christos CFLAGS=`echo "$CFLAGS" | \
   3673       1.1.1.4  christos 	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3674       1.1.1.4  christos 		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3675       1.1.1.4  christos 
   3676       1.1.1.4  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   3677       1.1.1.4  christos 	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3678       1.1.1.4  christos 		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3679       1.1.1.4  christos 
   3680       1.1.1.4  christos 	cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
   3681       1.1.1.4  christos 
   3682       1.1.1.4  christos cf_fix_cppflags=no
   3683       1.1.1.4  christos cf_new_cflags=
   3684       1.1.1.4  christos cf_new_cppflags=
   3685       1.1.1.4  christos cf_new_extra_cppflags=
   3686       1.1.1.4  christos 
   3687       1.1.1.4  christos for cf_add_cflags in $cf_temp_xopen_source
   3688       1.1.1.4  christos do
   3689       1.1.1.4  christos case $cf_fix_cppflags in
   3690       1.1.1.6  christos (no)
   3691       1.1.1.6  christos 	case $cf_add_cflags in
   3692       1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   3693       1.1.1.4  christos 		case $cf_add_cflags in
   3694       1.1.1.6  christos 		(-D*)
   3695       1.1.1.4  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   3696       1.1.1.4  christos 
   3697       1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3698       1.1.1.4  christos 				&& test -z "${cf_tst_cflags}" \
   3699       1.1.1.4  christos 				&& cf_fix_cppflags=yes
   3700       1.1.1.4  christos 
   3701       1.1.1.4  christos 			if test $cf_fix_cppflags = yes ; then
   3702  1.1.1.7.12.1  christos 
   3703  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3704  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3705  1.1.1.7.12.1  christos 
   3706       1.1.1.4  christos 				continue
   3707       1.1.1.4  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   3708  1.1.1.7.12.1  christos 
   3709  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3710  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3711  1.1.1.7.12.1  christos 
   3712       1.1.1.4  christos 				continue
   3713       1.1.1.4  christos 			fi
   3714       1.1.1.4  christos 			;;
   3715       1.1.1.4  christos 		esac
   3716       1.1.1.4  christos 		case "$CPPFLAGS" in
   3717       1.1.1.6  christos 		(*$cf_add_cflags)
   3718       1.1.1.4  christos 			;;
   3719       1.1.1.6  christos 		(*)
   3720       1.1.1.6  christos 			case $cf_add_cflags in
   3721       1.1.1.6  christos 			(-D*)
   3722       1.1.1.4  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   3723       1.1.1.4  christos 
   3724       1.1.1.4  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   3725       1.1.1.4  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3726       1.1.1.4  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   3727       1.1.1.4  christos 
   3728       1.1.1.4  christos 				;;
   3729       1.1.1.4  christos 			esac
   3730  1.1.1.7.12.1  christos 
   3731  1.1.1.7.12.1  christos 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   3732  1.1.1.7.12.1  christos 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   3733  1.1.1.7.12.1  christos 
   3734       1.1.1.4  christos 			;;
   3735       1.1.1.4  christos 		esac
   3736       1.1.1.4  christos 		;;
   3737       1.1.1.6  christos 	(*)
   3738  1.1.1.7.12.1  christos 
   3739  1.1.1.7.12.1  christos 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   3740  1.1.1.7.12.1  christos 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   3741  1.1.1.7.12.1  christos 
   3742       1.1.1.4  christos 		;;
   3743       1.1.1.4  christos 	esac
   3744       1.1.1.4  christos 	;;
   3745       1.1.1.6  christos (yes)
   3746  1.1.1.7.12.1  christos 
   3747  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3748  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3749       1.1.1.4  christos 
   3750       1.1.1.4  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   3751       1.1.1.4  christos 
   3752       1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3753       1.1.1.4  christos 		&& test -z "${cf_tst_cflags}" \
   3754       1.1.1.4  christos 		&& cf_fix_cppflags=no
   3755       1.1.1.4  christos 	;;
   3756       1.1.1.4  christos esac
   3757       1.1.1.4  christos done
   3758       1.1.1.4  christos 
   3759       1.1.1.4  christos if test -n "$cf_new_cflags" ; then
   3760       1.1.1.4  christos 
   3761  1.1.1.7.12.1  christos 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   3762  1.1.1.7.12.1  christos 	CFLAGS="${CFLAGS}$cf_new_cflags"
   3763  1.1.1.7.12.1  christos 
   3764       1.1.1.4  christos fi
   3765       1.1.1.4  christos 
   3766       1.1.1.4  christos if test -n "$cf_new_cppflags" ; then
   3767       1.1.1.4  christos 
   3768  1.1.1.7.12.1  christos 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3769  1.1.1.7.12.1  christos 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   3770  1.1.1.7.12.1  christos 
   3771       1.1.1.4  christos fi
   3772       1.1.1.4  christos 
   3773       1.1.1.4  christos if test -n "$cf_new_extra_cppflags" ; then
   3774       1.1.1.4  christos 
   3775  1.1.1.7.12.1  christos 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   3776  1.1.1.7.12.1  christos 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   3777  1.1.1.7.12.1  christos 
   3778       1.1.1.4  christos fi
   3779       1.1.1.4  christos 
   3780       1.1.1.4  christos fi
   3781       1.1.1.4  christos 
   3782       1.1.1.4  christos 	fi
   3783       1.1.1.4  christos fi
   3784       1.1.1.4  christos 
   3785       1.1.1.3  christos ac_ext=c
   3786       1.1.1.3  christos ac_cpp='$CPP $CPPFLAGS'
   3787       1.1.1.3  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3788       1.1.1.3  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3789       1.1.1.3  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3790       1.1.1.3  christos ac_main_return=return
   3791  1.1.1.7.12.1  christos echo "$as_me:3791: checking how to run the C preprocessor" >&5
   3792       1.1.1.3  christos echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
   3793       1.1.1.3  christos # On Suns, sometimes $CPP names a directory.
   3794       1.1.1.3  christos if test -n "$CPP" && test -d "$CPP"; then
   3795       1.1.1.3  christos   CPP=
   3796           1.1  christos fi
   3797       1.1.1.3  christos if test -z "$CPP"; then
   3798       1.1.1.3  christos   if test "${ac_cv_prog_CPP+set}" = set; then
   3799       1.1.1.3  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3800           1.1  christos else
   3801       1.1.1.3  christos       # Double quotes because CPP needs to be expanded
   3802       1.1.1.3  christos     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3803       1.1.1.3  christos     do
   3804       1.1.1.3  christos       ac_preproc_ok=false
   3805       1.1.1.3  christos for ac_c_preproc_warn_flag in '' yes
   3806       1.1.1.3  christos do
   3807       1.1.1.3  christos   # Use a header file that comes with gcc, so configuring glibc
   3808       1.1.1.3  christos   # with a fresh cross-compiler works.
   3809       1.1.1.3  christos   # On the NeXT, cc -E runs the code through the compiler's parser,
   3810       1.1.1.3  christos   # not just through cpp. "Syntax error" is here to catch this case.
   3811       1.1.1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   3812  1.1.1.7.12.1  christos #line 3812 "configure"
   3813           1.1  christos #include "confdefs.h"
   3814       1.1.1.3  christos #include <assert.h>
   3815       1.1.1.3  christos                      Syntax error
   3816       1.1.1.3  christos _ACEOF
   3817  1.1.1.7.12.1  christos if { (eval echo "$as_me:3817: \"$ac_cpp conftest.$ac_ext\"") >&5
   3818       1.1.1.3  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3819           1.1  christos   ac_status=$?
   3820       1.1.1.3  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   3821       1.1.1.3  christos   rm -f conftest.er1
   3822       1.1.1.3  christos   cat conftest.err >&5
   3823  1.1.1.7.12.1  christos   echo "$as_me:3823: \$? = $ac_status" >&5
   3824       1.1.1.3  christos   (exit $ac_status); } >/dev/null; then
   3825       1.1.1.3  christos   if test -s conftest.err; then
   3826       1.1.1.3  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   3827       1.1.1.3  christos   else
   3828       1.1.1.3  christos     ac_cpp_err=
   3829       1.1.1.3  christos   fi
   3830           1.1  christos else
   3831       1.1.1.3  christos   ac_cpp_err=yes
   3832           1.1  christos fi
   3833       1.1.1.3  christos if test -z "$ac_cpp_err"; then
   3834       1.1.1.3  christos   :
   3835       1.1.1.3  christos else
   3836       1.1.1.3  christos   echo "$as_me: failed program was:" >&5
   3837       1.1.1.3  christos   cat conftest.$ac_ext >&5
   3838       1.1.1.3  christos   # Broken: fails on valid input.
   3839       1.1.1.3  christos continue
   3840           1.1  christos fi
   3841       1.1.1.3  christos rm -f conftest.err conftest.$ac_ext
   3842           1.1  christos 
   3843       1.1.1.3  christos   # OK, works on sane cases.  Now check whether non-existent headers
   3844       1.1.1.3  christos   # can be detected and how.
   3845       1.1.1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   3846  1.1.1.7.12.1  christos #line 3846 "configure"
   3847       1.1.1.3  christos #include "confdefs.h"
   3848       1.1.1.3  christos #include <ac_nonexistent.h>
   3849       1.1.1.3  christos _ACEOF
   3850  1.1.1.7.12.1  christos if { (eval echo "$as_me:3850: \"$ac_cpp conftest.$ac_ext\"") >&5
   3851       1.1.1.3  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3852       1.1.1.3  christos   ac_status=$?
   3853       1.1.1.3  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   3854       1.1.1.3  christos   rm -f conftest.er1
   3855       1.1.1.3  christos   cat conftest.err >&5
   3856  1.1.1.7.12.1  christos   echo "$as_me:3856: \$? = $ac_status" >&5
   3857       1.1.1.3  christos   (exit $ac_status); } >/dev/null; then
   3858       1.1.1.3  christos   if test -s conftest.err; then
   3859       1.1.1.3  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   3860       1.1.1.3  christos   else
   3861       1.1.1.3  christos     ac_cpp_err=
   3862       1.1.1.3  christos   fi
   3863       1.1.1.3  christos else
   3864       1.1.1.3  christos   ac_cpp_err=yes
   3865       1.1.1.3  christos fi
   3866       1.1.1.3  christos if test -z "$ac_cpp_err"; then
   3867       1.1.1.3  christos   # Broken: success on invalid input.
   3868       1.1.1.3  christos continue
   3869       1.1.1.3  christos else
   3870       1.1.1.3  christos   echo "$as_me: failed program was:" >&5
   3871       1.1.1.3  christos   cat conftest.$ac_ext >&5
   3872       1.1.1.3  christos   # Passes both tests.
   3873       1.1.1.3  christos ac_preproc_ok=:
   3874       1.1.1.3  christos break
   3875       1.1.1.3  christos fi
   3876       1.1.1.3  christos rm -f conftest.err conftest.$ac_ext
   3877       1.1.1.3  christos 
   3878       1.1.1.3  christos done
   3879       1.1.1.3  christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3880       1.1.1.3  christos rm -f conftest.err conftest.$ac_ext
   3881       1.1.1.3  christos if $ac_preproc_ok; then
   3882       1.1.1.3  christos   break
   3883       1.1.1.3  christos fi
   3884       1.1.1.3  christos 
   3885       1.1.1.3  christos     done
   3886       1.1.1.3  christos     ac_cv_prog_CPP=$CPP
   3887       1.1.1.3  christos 
   3888       1.1.1.3  christos fi
   3889       1.1.1.3  christos   CPP=$ac_cv_prog_CPP
   3890       1.1.1.3  christos else
   3891       1.1.1.3  christos   ac_cv_prog_CPP=$CPP
   3892       1.1.1.3  christos fi
   3893  1.1.1.7.12.1  christos echo "$as_me:3893: result: $CPP" >&5
   3894       1.1.1.3  christos echo "${ECHO_T}$CPP" >&6
   3895       1.1.1.3  christos ac_preproc_ok=false
   3896       1.1.1.3  christos for ac_c_preproc_warn_flag in '' yes
   3897       1.1.1.3  christos do
   3898       1.1.1.3  christos   # Use a header file that comes with gcc, so configuring glibc
   3899       1.1.1.3  christos   # with a fresh cross-compiler works.
   3900       1.1.1.3  christos   # On the NeXT, cc -E runs the code through the compiler's parser,
   3901       1.1.1.3  christos   # not just through cpp. "Syntax error" is here to catch this case.
   3902       1.1.1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   3903  1.1.1.7.12.1  christos #line 3903 "configure"
   3904       1.1.1.3  christos #include "confdefs.h"
   3905       1.1.1.3  christos #include <assert.h>
   3906       1.1.1.3  christos                      Syntax error
   3907       1.1.1.3  christos _ACEOF
   3908  1.1.1.7.12.1  christos if { (eval echo "$as_me:3908: \"$ac_cpp conftest.$ac_ext\"") >&5
   3909       1.1.1.3  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3910       1.1.1.3  christos   ac_status=$?
   3911       1.1.1.3  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   3912       1.1.1.3  christos   rm -f conftest.er1
   3913       1.1.1.3  christos   cat conftest.err >&5
   3914  1.1.1.7.12.1  christos   echo "$as_me:3914: \$? = $ac_status" >&5
   3915       1.1.1.3  christos   (exit $ac_status); } >/dev/null; then
   3916       1.1.1.3  christos   if test -s conftest.err; then
   3917       1.1.1.3  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   3918       1.1.1.3  christos   else
   3919       1.1.1.3  christos     ac_cpp_err=
   3920       1.1.1.3  christos   fi
   3921       1.1.1.3  christos else
   3922       1.1.1.3  christos   ac_cpp_err=yes
   3923       1.1.1.3  christos fi
   3924       1.1.1.3  christos if test -z "$ac_cpp_err"; then
   3925       1.1.1.3  christos   :
   3926       1.1.1.3  christos else
   3927       1.1.1.3  christos   echo "$as_me: failed program was:" >&5
   3928       1.1.1.3  christos   cat conftest.$ac_ext >&5
   3929       1.1.1.3  christos   # Broken: fails on valid input.
   3930       1.1.1.3  christos continue
   3931       1.1.1.3  christos fi
   3932       1.1.1.3  christos rm -f conftest.err conftest.$ac_ext
   3933       1.1.1.3  christos 
   3934       1.1.1.3  christos   # OK, works on sane cases.  Now check whether non-existent headers
   3935       1.1.1.3  christos   # can be detected and how.
   3936       1.1.1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   3937  1.1.1.7.12.1  christos #line 3937 "configure"
   3938       1.1.1.3  christos #include "confdefs.h"
   3939       1.1.1.3  christos #include <ac_nonexistent.h>
   3940       1.1.1.3  christos _ACEOF
   3941  1.1.1.7.12.1  christos if { (eval echo "$as_me:3941: \"$ac_cpp conftest.$ac_ext\"") >&5
   3942       1.1.1.3  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3943       1.1.1.3  christos   ac_status=$?
   3944       1.1.1.3  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   3945       1.1.1.3  christos   rm -f conftest.er1
   3946       1.1.1.3  christos   cat conftest.err >&5
   3947  1.1.1.7.12.1  christos   echo "$as_me:3947: \$? = $ac_status" >&5
   3948       1.1.1.3  christos   (exit $ac_status); } >/dev/null; then
   3949       1.1.1.3  christos   if test -s conftest.err; then
   3950       1.1.1.3  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   3951       1.1.1.3  christos   else
   3952       1.1.1.3  christos     ac_cpp_err=
   3953       1.1.1.3  christos   fi
   3954       1.1.1.3  christos else
   3955       1.1.1.3  christos   ac_cpp_err=yes
   3956       1.1.1.3  christos fi
   3957       1.1.1.3  christos if test -z "$ac_cpp_err"; then
   3958       1.1.1.3  christos   # Broken: success on invalid input.
   3959       1.1.1.3  christos continue
   3960       1.1.1.3  christos else
   3961       1.1.1.3  christos   echo "$as_me: failed program was:" >&5
   3962       1.1.1.3  christos   cat conftest.$ac_ext >&5
   3963       1.1.1.3  christos   # Passes both tests.
   3964       1.1.1.3  christos ac_preproc_ok=:
   3965       1.1.1.3  christos break
   3966       1.1.1.3  christos fi
   3967       1.1.1.3  christos rm -f conftest.err conftest.$ac_ext
   3968       1.1.1.3  christos 
   3969       1.1.1.3  christos done
   3970       1.1.1.3  christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3971       1.1.1.3  christos rm -f conftest.err conftest.$ac_ext
   3972       1.1.1.3  christos if $ac_preproc_ok; then
   3973       1.1.1.3  christos   :
   3974       1.1.1.3  christos else
   3975  1.1.1.7.12.1  christos   { { echo "$as_me:3975: error: C preprocessor \"$CPP\" fails sanity check" >&5
   3976       1.1.1.3  christos echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
   3977       1.1.1.3  christos    { (exit 1); exit 1; }; }
   3978       1.1.1.3  christos fi
   3979       1.1.1.3  christos 
   3980       1.1.1.3  christos ac_ext=c
   3981       1.1.1.3  christos ac_cpp='$CPP $CPPFLAGS'
   3982       1.1.1.3  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3983       1.1.1.3  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3984       1.1.1.3  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3985       1.1.1.3  christos ac_main_return=return
   3986       1.1.1.3  christos 
   3987       1.1.1.3  christos for ac_header in fcntl.h
   3988       1.1.1.3  christos do
   3989       1.1.1.3  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3990  1.1.1.7.12.1  christos echo "$as_me:3990: checking for $ac_header" >&5
   3991       1.1.1.7  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   3992       1.1.1.7  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   3993       1.1.1.7  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3994       1.1.1.7  christos else
   3995       1.1.1.7  christos   cat >conftest.$ac_ext <<_ACEOF
   3996  1.1.1.7.12.1  christos #line 3996 "configure"
   3997       1.1.1.7  christos #include "confdefs.h"
   3998       1.1.1.7  christos #include <$ac_header>
   3999       1.1.1.7  christos _ACEOF
   4000  1.1.1.7.12.1  christos if { (eval echo "$as_me:4000: \"$ac_cpp conftest.$ac_ext\"") >&5
   4001       1.1.1.7  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   4002       1.1.1.7  christos   ac_status=$?
   4003       1.1.1.7  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   4004       1.1.1.7  christos   rm -f conftest.er1
   4005       1.1.1.7  christos   cat conftest.err >&5
   4006  1.1.1.7.12.1  christos   echo "$as_me:4006: \$? = $ac_status" >&5
   4007       1.1.1.7  christos   (exit $ac_status); } >/dev/null; then
   4008       1.1.1.7  christos   if test -s conftest.err; then
   4009       1.1.1.7  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   4010       1.1.1.7  christos   else
   4011       1.1.1.7  christos     ac_cpp_err=
   4012       1.1.1.7  christos   fi
   4013       1.1.1.7  christos else
   4014       1.1.1.7  christos   ac_cpp_err=yes
   4015       1.1.1.7  christos fi
   4016       1.1.1.7  christos if test -z "$ac_cpp_err"; then
   4017       1.1.1.7  christos   eval "$as_ac_Header=yes"
   4018       1.1.1.7  christos else
   4019       1.1.1.7  christos   echo "$as_me: failed program was:" >&5
   4020       1.1.1.7  christos   cat conftest.$ac_ext >&5
   4021       1.1.1.7  christos   eval "$as_ac_Header=no"
   4022       1.1.1.7  christos fi
   4023       1.1.1.7  christos rm -f conftest.err conftest.$ac_ext
   4024       1.1.1.7  christos fi
   4025  1.1.1.7.12.1  christos echo "$as_me:4025: result: `eval echo '${'$as_ac_Header'}'`" >&5
   4026       1.1.1.7  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   4027       1.1.1.7  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4028       1.1.1.7  christos   cat >>confdefs.h <<EOF
   4029       1.1.1.7  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4030       1.1.1.7  christos EOF
   4031       1.1.1.7  christos 
   4032       1.1.1.7  christos fi
   4033       1.1.1.7  christos done
   4034       1.1.1.7  christos 
   4035       1.1.1.7  christos for ac_header in \
   4036       1.1.1.7  christos unistd.h \
   4037       1.1.1.7  christos 
   4038       1.1.1.7  christos do
   4039       1.1.1.7  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4040  1.1.1.7.12.1  christos echo "$as_me:4040: checking for $ac_header" >&5
   4041       1.1.1.3  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   4042       1.1.1.3  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   4043       1.1.1.3  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4044       1.1.1.3  christos else
   4045       1.1.1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   4046  1.1.1.7.12.1  christos #line 4046 "configure"
   4047       1.1.1.3  christos #include "confdefs.h"
   4048       1.1.1.3  christos #include <$ac_header>
   4049       1.1.1.3  christos _ACEOF
   4050  1.1.1.7.12.1  christos if { (eval echo "$as_me:4050: \"$ac_cpp conftest.$ac_ext\"") >&5
   4051       1.1.1.3  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   4052       1.1.1.3  christos   ac_status=$?
   4053       1.1.1.3  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   4054       1.1.1.3  christos   rm -f conftest.er1
   4055       1.1.1.3  christos   cat conftest.err >&5
   4056  1.1.1.7.12.1  christos   echo "$as_me:4056: \$? = $ac_status" >&5
   4057       1.1.1.3  christos   (exit $ac_status); } >/dev/null; then
   4058       1.1.1.3  christos   if test -s conftest.err; then
   4059       1.1.1.3  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   4060       1.1.1.3  christos   else
   4061       1.1.1.3  christos     ac_cpp_err=
   4062       1.1.1.3  christos   fi
   4063       1.1.1.3  christos else
   4064       1.1.1.3  christos   ac_cpp_err=yes
   4065       1.1.1.3  christos fi
   4066       1.1.1.3  christos if test -z "$ac_cpp_err"; then
   4067       1.1.1.3  christos   eval "$as_ac_Header=yes"
   4068       1.1.1.3  christos else
   4069       1.1.1.3  christos   echo "$as_me: failed program was:" >&5
   4070       1.1.1.3  christos   cat conftest.$ac_ext >&5
   4071       1.1.1.3  christos   eval "$as_ac_Header=no"
   4072       1.1.1.3  christos fi
   4073       1.1.1.3  christos rm -f conftest.err conftest.$ac_ext
   4074       1.1.1.3  christos fi
   4075  1.1.1.7.12.1  christos echo "$as_me:4075: result: `eval echo '${'$as_ac_Header'}'`" >&5
   4076       1.1.1.3  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   4077       1.1.1.3  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4078       1.1.1.3  christos   cat >>confdefs.h <<EOF
   4079       1.1.1.3  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4080       1.1.1.3  christos EOF
   4081       1.1.1.3  christos 
   4082       1.1.1.3  christos fi
   4083       1.1.1.3  christos done
   4084       1.1.1.3  christos 
   4085  1.1.1.7.12.1  christos echo "$as_me:4085: checking for working mkstemp" >&5
   4086       1.1.1.4  christos echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
   4087       1.1.1.4  christos if test "${cf_cv_func_mkstemp+set}" = set; then
   4088       1.1.1.3  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4089       1.1.1.3  christos else
   4090       1.1.1.4  christos 
   4091       1.1.1.4  christos rm -rf conftest*
   4092       1.1.1.4  christos if test "$cross_compiling" = yes; then
   4093       1.1.1.4  christos   cf_cv_func_mkstemp=maybe
   4094       1.1.1.4  christos else
   4095       1.1.1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   4096  1.1.1.7.12.1  christos #line 4096 "configure"
   4097       1.1.1.3  christos #include "confdefs.h"
   4098       1.1.1.3  christos 
   4099       1.1.1.4  christos #include <sys/types.h>
   4100       1.1.1.7  christos #ifdef HAVE_UNISTD_H
   4101       1.1.1.7  christos #include <unistd.h>
   4102       1.1.1.7  christos #endif
   4103       1.1.1.4  christos #include <stdlib.h>
   4104       1.1.1.4  christos #include <stdio.h>
   4105       1.1.1.4  christos #include <string.h>
   4106       1.1.1.4  christos #include <sys/stat.h>
   4107       1.1.1.7  christos int main(void)
   4108       1.1.1.3  christos {
   4109       1.1.1.4  christos 	char *tmpl = "conftestXXXXXX";
   4110       1.1.1.4  christos 	char name[2][80];
   4111       1.1.1.4  christos 	int n;
   4112       1.1.1.4  christos 	int result = 0;
   4113       1.1.1.4  christos 	int fd;
   4114       1.1.1.4  christos 	struct stat sb;
   4115       1.1.1.3  christos 
   4116       1.1.1.4  christos 	umask(077);
   4117       1.1.1.4  christos 	for (n = 0; n < 2; ++n) {
   4118       1.1.1.4  christos 		strcpy(name[n], tmpl);
   4119       1.1.1.4  christos 		if ((fd = mkstemp(name[n])) >= 0) {
   4120       1.1.1.4  christos 			if (!strcmp(name[n], tmpl)
   4121       1.1.1.4  christos 			 || stat(name[n], &sb) != 0
   4122       1.1.1.4  christos 			 || (sb.st_mode & S_IFMT) != S_IFREG
   4123       1.1.1.4  christos 			 || (sb.st_mode & 077) != 0) {
   4124       1.1.1.4  christos 				result = 1;
   4125       1.1.1.4  christos 			}
   4126       1.1.1.4  christos 			close(fd);
   4127       1.1.1.4  christos 		}
   4128       1.1.1.4  christos 	}
   4129       1.1.1.4  christos 	if (result == 0
   4130       1.1.1.4  christos 	 && !strcmp(name[0], name[1]))
   4131       1.1.1.4  christos 		result = 1;
   4132       1.1.1.4  christos 	${cf_cv_main_return:-return}(result);
   4133       1.1.1.3  christos }
   4134       1.1.1.4  christos 
   4135       1.1.1.3  christos _ACEOF
   4136       1.1.1.4  christos rm -f conftest$ac_exeext
   4137  1.1.1.7.12.1  christos if { (eval echo "$as_me:4137: \"$ac_link\"") >&5
   4138       1.1.1.3  christos   (eval $ac_link) 2>&5
   4139       1.1.1.3  christos   ac_status=$?
   4140  1.1.1.7.12.1  christos   echo "$as_me:4140: \$? = $ac_status" >&5
   4141       1.1.1.4  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4142  1.1.1.7.12.1  christos   { (eval echo "$as_me:4142: \"$ac_try\"") >&5
   4143       1.1.1.3  christos   (eval $ac_try) 2>&5
   4144       1.1.1.3  christos   ac_status=$?
   4145  1.1.1.7.12.1  christos   echo "$as_me:4145: \$? = $ac_status" >&5
   4146       1.1.1.3  christos   (exit $ac_status); }; }; then
   4147       1.1.1.4  christos   cf_cv_func_mkstemp=yes
   4148       1.1.1.4  christos 
   4149       1.1.1.3  christos else
   4150       1.1.1.4  christos   echo "$as_me: program exited with status $ac_status" >&5
   4151       1.1.1.4  christos echo "$as_me: failed program was:" >&5
   4152       1.1.1.3  christos cat conftest.$ac_ext >&5
   4153       1.1.1.4  christos cf_cv_func_mkstemp=no
   4154       1.1.1.4  christos 
   4155       1.1.1.3  christos fi
   4156       1.1.1.4  christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4157       1.1.1.3  christos fi
   4158       1.1.1.3  christos 
   4159       1.1.1.3  christos fi
   4160  1.1.1.7.12.1  christos echo "$as_me:4160: result: $cf_cv_func_mkstemp" >&5
   4161       1.1.1.4  christos echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
   4162       1.1.1.4  christos if test "x$cf_cv_func_mkstemp" = xmaybe ; then
   4163  1.1.1.7.12.1  christos 	echo "$as_me:4163: checking for mkstemp" >&5
   4164       1.1.1.3  christos echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
   4165       1.1.1.3  christos if test "${ac_cv_func_mkstemp+set}" = set; then
   4166       1.1.1.3  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4167       1.1.1.3  christos else
   4168       1.1.1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   4169  1.1.1.7.12.1  christos #line 4169 "configure"
   4170       1.1.1.3  christos #include "confdefs.h"
   4171       1.1.1.3  christos /* System header to define __stub macros and hopefully few prototypes,
   4172       1.1.1.3  christos     which can conflict with char mkstemp (); below.  */
   4173       1.1.1.3  christos #include <assert.h>
   4174       1.1.1.3  christos /* Override any gcc2 internal prototype to avoid an error.  */
   4175       1.1.1.3  christos #ifdef __cplusplus
   4176       1.1.1.3  christos extern "C"
   4177       1.1.1.3  christos #endif
   4178       1.1.1.3  christos /* We use char because int might match the return type of a gcc2
   4179       1.1.1.3  christos    builtin and then its argument prototype would still apply.  */
   4180       1.1.1.3  christos char mkstemp ();
   4181       1.1.1.3  christos char (*f) ();
   4182       1.1.1.3  christos 
   4183       1.1.1.3  christos int
   4184  1.1.1.7.12.1  christos main (void)
   4185       1.1.1.3  christos {
   4186       1.1.1.3  christos /* The GNU C library defines this for functions which it implements
   4187       1.1.1.3  christos     to always fail with ENOSYS.  Some functions are actually named
   4188       1.1.1.3  christos     something starting with __ and the normal name is an alias.  */
   4189       1.1.1.3  christos #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
   4190       1.1.1.3  christos choke me
   4191       1.1.1.3  christos #else
   4192       1.1.1.4  christos f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
   4193       1.1.1.3  christos #endif
   4194       1.1.1.3  christos 
   4195       1.1.1.3  christos   ;
   4196       1.1.1.3  christos   return 0;
   4197       1.1.1.3  christos }
   4198       1.1.1.3  christos _ACEOF
   4199       1.1.1.3  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4200  1.1.1.7.12.1  christos if { (eval echo "$as_me:4200: \"$ac_link\"") >&5
   4201       1.1.1.3  christos   (eval $ac_link) 2>&5
   4202       1.1.1.3  christos   ac_status=$?
   4203  1.1.1.7.12.1  christos   echo "$as_me:4203: \$? = $ac_status" >&5
   4204       1.1.1.3  christos   (exit $ac_status); } &&
   4205       1.1.1.3  christos          { ac_try='test -s conftest$ac_exeext'
   4206  1.1.1.7.12.1  christos   { (eval echo "$as_me:4206: \"$ac_try\"") >&5
   4207       1.1.1.3  christos   (eval $ac_try) 2>&5
   4208       1.1.1.3  christos   ac_status=$?
   4209  1.1.1.7.12.1  christos   echo "$as_me:4209: \$? = $ac_status" >&5
   4210       1.1.1.3  christos   (exit $ac_status); }; }; then
   4211       1.1.1.3  christos   ac_cv_func_mkstemp=yes
   4212       1.1.1.3  christos else
   4213       1.1.1.3  christos   echo "$as_me: failed program was:" >&5
   4214       1.1.1.3  christos cat conftest.$ac_ext >&5
   4215       1.1.1.3  christos ac_cv_func_mkstemp=no
   4216       1.1.1.3  christos fi
   4217       1.1.1.3  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   4218       1.1.1.3  christos fi
   4219  1.1.1.7.12.1  christos echo "$as_me:4219: result: $ac_cv_func_mkstemp" >&5
   4220       1.1.1.3  christos echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
   4221       1.1.1.3  christos 
   4222       1.1.1.3  christos fi
   4223       1.1.1.3  christos if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
   4224       1.1.1.4  christos 
   4225       1.1.1.4  christos cat >>confdefs.h <<\EOF
   4226       1.1.1.3  christos #define HAVE_MKSTEMP 1
   4227       1.1.1.3  christos EOF
   4228       1.1.1.3  christos 
   4229       1.1.1.3  christos fi
   4230       1.1.1.3  christos 
   4231       1.1.1.5  christos for ac_func in vsnprintf
   4232       1.1.1.5  christos do
   4233       1.1.1.5  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   4234  1.1.1.7.12.1  christos echo "$as_me:4234: checking for $ac_func" >&5
   4235       1.1.1.5  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   4236       1.1.1.5  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   4237       1.1.1.5  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4238       1.1.1.5  christos else
   4239       1.1.1.5  christos   cat >conftest.$ac_ext <<_ACEOF
   4240  1.1.1.7.12.1  christos #line 4240 "configure"
   4241       1.1.1.5  christos #include "confdefs.h"
   4242       1.1.1.5  christos /* System header to define __stub macros and hopefully few prototypes,
   4243       1.1.1.5  christos     which can conflict with char $ac_func (); below.  */
   4244       1.1.1.5  christos #include <assert.h>
   4245       1.1.1.5  christos /* Override any gcc2 internal prototype to avoid an error.  */
   4246       1.1.1.5  christos #ifdef __cplusplus
   4247       1.1.1.5  christos extern "C"
   4248       1.1.1.5  christos #endif
   4249       1.1.1.5  christos /* We use char because int might match the return type of a gcc2
   4250       1.1.1.5  christos    builtin and then its argument prototype would still apply.  */
   4251       1.1.1.5  christos char $ac_func ();
   4252       1.1.1.5  christos char (*f) ();
   4253       1.1.1.5  christos 
   4254       1.1.1.5  christos int
   4255  1.1.1.7.12.1  christos main (void)
   4256       1.1.1.5  christos {
   4257       1.1.1.5  christos /* The GNU C library defines this for functions which it implements
   4258       1.1.1.5  christos     to always fail with ENOSYS.  Some functions are actually named
   4259       1.1.1.5  christos     something starting with __ and the normal name is an alias.  */
   4260       1.1.1.5  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   4261       1.1.1.5  christos choke me
   4262       1.1.1.5  christos #else
   4263       1.1.1.5  christos f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
   4264       1.1.1.5  christos #endif
   4265       1.1.1.5  christos 
   4266       1.1.1.5  christos   ;
   4267       1.1.1.5  christos   return 0;
   4268       1.1.1.5  christos }
   4269       1.1.1.5  christos _ACEOF
   4270       1.1.1.5  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4271  1.1.1.7.12.1  christos if { (eval echo "$as_me:4271: \"$ac_link\"") >&5
   4272       1.1.1.5  christos   (eval $ac_link) 2>&5
   4273       1.1.1.5  christos   ac_status=$?
   4274  1.1.1.7.12.1  christos   echo "$as_me:4274: \$? = $ac_status" >&5
   4275       1.1.1.5  christos   (exit $ac_status); } &&
   4276       1.1.1.5  christos          { ac_try='test -s conftest$ac_exeext'
   4277  1.1.1.7.12.1  christos   { (eval echo "$as_me:4277: \"$ac_try\"") >&5
   4278       1.1.1.5  christos   (eval $ac_try) 2>&5
   4279       1.1.1.5  christos   ac_status=$?
   4280  1.1.1.7.12.1  christos   echo "$as_me:4280: \$? = $ac_status" >&5
   4281       1.1.1.5  christos   (exit $ac_status); }; }; then
   4282       1.1.1.5  christos   eval "$as_ac_var=yes"
   4283       1.1.1.5  christos else
   4284       1.1.1.5  christos   echo "$as_me: failed program was:" >&5
   4285       1.1.1.5  christos cat conftest.$ac_ext >&5
   4286       1.1.1.5  christos eval "$as_ac_var=no"
   4287       1.1.1.5  christos fi
   4288       1.1.1.5  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   4289       1.1.1.5  christos fi
   4290  1.1.1.7.12.1  christos echo "$as_me:4290: result: `eval echo '${'$as_ac_var'}'`" >&5
   4291       1.1.1.5  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   4292       1.1.1.5  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   4293       1.1.1.5  christos   cat >>confdefs.h <<EOF
   4294       1.1.1.5  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   4295       1.1.1.5  christos EOF
   4296       1.1.1.5  christos 
   4297       1.1.1.5  christos fi
   4298       1.1.1.5  christos done
   4299       1.1.1.5  christos 
   4300  1.1.1.7.12.1  christos echo "$as_me:4300: checking for maximum table size" >&5
   4301       1.1.1.5  christos echo $ECHO_N "checking for maximum table size... $ECHO_C" >&6
   4302       1.1.1.5  christos 
   4303       1.1.1.5  christos # Check whether --with-max-table-size or --without-max-table-size was given.
   4304       1.1.1.5  christos if test "${with_max_table_size+set}" = set; then
   4305       1.1.1.5  christos   withval="$with_max_table_size"
   4306       1.1.1.5  christos 
   4307       1.1.1.5  christos fi;
   4308       1.1.1.5  christos if test -n "$with_max_table_size"
   4309       1.1.1.5  christos then
   4310  1.1.1.7.12.1  christos 	echo "$as_me:4310: result: $with_max_table_size" >&5
   4311       1.1.1.5  christos echo "${ECHO_T}$with_max_table_size" >&6
   4312       1.1.1.5  christos 	check=`expr "$with_max_table_size" + 0`
   4313       1.1.1.5  christos 	if test "x$check" != "x$with_max_table_size"
   4314       1.1.1.5  christos 	then
   4315  1.1.1.7.12.1  christos 		{ { echo "$as_me:4315: error: invalid value for --with-max-table-size: $with_max_table_size" >&5
   4316       1.1.1.5  christos echo "$as_me: error: invalid value for --with-max-table-size: $with_max_table_size" >&2;}
   4317       1.1.1.5  christos    { (exit 1); exit 1; }; }
   4318       1.1.1.5  christos 	fi
   4319       1.1.1.5  christos 
   4320       1.1.1.5  christos cat >>confdefs.h <<EOF
   4321       1.1.1.5  christos #define MAXTABLE $with_max_table_size
   4322       1.1.1.5  christos EOF
   4323       1.1.1.5  christos 
   4324       1.1.1.5  christos else
   4325  1.1.1.7.12.1  christos 	echo "$as_me:4325: result: default" >&5
   4326       1.1.1.5  christos echo "${ECHO_T}default" >&6
   4327       1.1.1.5  christos fi
   4328       1.1.1.5  christos 
   4329  1.1.1.7.12.1  christos echo "$as_me:4329: checking if backtracking extension is wanted" >&5
   4330       1.1.1.5  christos echo $ECHO_N "checking if backtracking extension is wanted... $ECHO_C" >&6
   4331       1.1.1.5  christos 
   4332       1.1.1.5  christos # Check whether --enable-btyacc or --disable-btyacc was given.
   4333       1.1.1.5  christos if test "${enable_btyacc+set}" = set; then
   4334       1.1.1.5  christos   enableval="$enable_btyacc"
   4335       1.1.1.5  christos 
   4336       1.1.1.5  christos fi;
   4337  1.1.1.7.12.1  christos echo "$as_me:4337: result: $enable_btyacc" >&5
   4338       1.1.1.5  christos echo "${ECHO_T}$enable_btyacc" >&6
   4339       1.1.1.5  christos if test "$enable_btyacc" = "yes"; then
   4340       1.1.1.5  christos 
   4341       1.1.1.5  christos cat >>confdefs.h <<\EOF
   4342       1.1.1.5  christos #define YYBTYACC 1
   4343       1.1.1.5  christos EOF
   4344       1.1.1.5  christos 
   4345       1.1.1.5  christos 	SKELETON=btyaccpar
   4346       1.1.1.5  christos else
   4347       1.1.1.5  christos 	SKELETON=yaccpar
   4348       1.1.1.5  christos fi
   4349       1.1.1.5  christos 
   4350       1.1.1.3  christos if ( test "$GCC" = yes || test "$GXX" = yes )
   4351       1.1.1.3  christos then
   4352  1.1.1.7.12.1  christos echo "$as_me:4352: checking if you want to check for gcc warnings" >&5
   4353       1.1.1.3  christos echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6
   4354       1.1.1.3  christos 
   4355       1.1.1.3  christos # Check whether --with-warnings or --without-warnings was given.
   4356       1.1.1.3  christos if test "${with_warnings+set}" = set; then
   4357       1.1.1.3  christos   withval="$with_warnings"
   4358       1.1.1.3  christos   cf_opt_with_warnings=$withval
   4359       1.1.1.3  christos else
   4360       1.1.1.3  christos   cf_opt_with_warnings=no
   4361       1.1.1.3  christos fi;
   4362  1.1.1.7.12.1  christos echo "$as_me:4362: result: $cf_opt_with_warnings" >&5
   4363       1.1.1.3  christos echo "${ECHO_T}$cf_opt_with_warnings" >&6
   4364       1.1.1.3  christos if test "$cf_opt_with_warnings" != no ; then
   4365       1.1.1.3  christos 
   4366       1.1.1.3  christos if test "$GCC" = yes
   4367       1.1.1.3  christos then
   4368       1.1.1.3  christos cat > conftest.i <<EOF
   4369       1.1.1.3  christos #ifndef GCC_PRINTF
   4370       1.1.1.3  christos #define GCC_PRINTF 0
   4371       1.1.1.3  christos #endif
   4372       1.1.1.3  christos #ifndef GCC_SCANF
   4373       1.1.1.3  christos #define GCC_SCANF 0
   4374       1.1.1.3  christos #endif
   4375       1.1.1.3  christos #ifndef GCC_NORETURN
   4376       1.1.1.3  christos #define GCC_NORETURN /* nothing */
   4377       1.1.1.3  christos #endif
   4378       1.1.1.3  christos #ifndef GCC_UNUSED
   4379       1.1.1.3  christos #define GCC_UNUSED /* nothing */
   4380       1.1.1.3  christos #endif
   4381       1.1.1.3  christos EOF
   4382       1.1.1.3  christos if test "$GCC" = yes
   4383       1.1.1.3  christos then
   4384  1.1.1.7.12.1  christos 	{ echo "$as_me:4384: checking for $CC __attribute__ directives..." >&5
   4385       1.1.1.3  christos echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
   4386       1.1.1.3  christos cat > conftest.$ac_ext <<EOF
   4387  1.1.1.7.12.1  christos #line 4387 "${as_me:-configure}"
   4388       1.1.1.3  christos #include "confdefs.h"
   4389       1.1.1.3  christos #include "conftest.h"
   4390       1.1.1.3  christos #include "conftest.i"
   4391       1.1.1.3  christos #if	GCC_PRINTF
   4392       1.1.1.3  christos #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
   4393       1.1.1.3  christos #else
   4394       1.1.1.3  christos #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
   4395       1.1.1.3  christos #endif
   4396       1.1.1.3  christos #if	GCC_SCANF
   4397       1.1.1.3  christos #define GCC_SCANFLIKE(fmt,var)  __attribute__((format(scanf,fmt,var)))
   4398       1.1.1.3  christos #else
   4399       1.1.1.3  christos #define GCC_SCANFLIKE(fmt,var)  /*nothing*/
   4400       1.1.1.3  christos #endif
   4401       1.1.1.3  christos extern void wow(char *,...) GCC_SCANFLIKE(1,2);
   4402       1.1.1.3  christos extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
   4403       1.1.1.3  christos extern void foo(void) GCC_NORETURN;
   4404       1.1.1.3  christos int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
   4405       1.1.1.3  christos EOF
   4406       1.1.1.3  christos 	cf_printf_attribute=no
   4407       1.1.1.3  christos 	cf_scanf_attribute=no
   4408       1.1.1.3  christos 	for cf_attribute in scanf printf unused noreturn
   4409       1.1.1.3  christos 	do
   4410       1.1.1.3  christos 
   4411       1.1.1.3  christos cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   4412       1.1.1.3  christos 
   4413       1.1.1.3  christos 		cf_directive="__attribute__(($cf_attribute))"
   4414       1.1.1.3  christos 		echo "checking for $CC $cf_directive" 1>&5
   4415       1.1.1.3  christos 
   4416       1.1.1.6  christos 		case $cf_attribute in
   4417       1.1.1.6  christos 		(printf)
   4418       1.1.1.3  christos 			cf_printf_attribute=yes
   4419       1.1.1.3  christos 			cat >conftest.h <<EOF
   4420       1.1.1.3  christos #define GCC_$cf_ATTRIBUTE 1
   4421       1.1.1.3  christos EOF
   4422       1.1.1.3  christos 			;;
   4423       1.1.1.6  christos 		(scanf)
   4424       1.1.1.3  christos 			cf_scanf_attribute=yes
   4425       1.1.1.3  christos 			cat >conftest.h <<EOF
   4426       1.1.1.3  christos #define GCC_$cf_ATTRIBUTE 1
   4427       1.1.1.3  christos EOF
   4428       1.1.1.3  christos 			;;
   4429       1.1.1.6  christos 		(*)
   4430       1.1.1.3  christos 			cat >conftest.h <<EOF
   4431       1.1.1.3  christos #define GCC_$cf_ATTRIBUTE $cf_directive
   4432       1.1.1.3  christos EOF
   4433       1.1.1.3  christos 			;;
   4434       1.1.1.3  christos 		esac
   4435       1.1.1.3  christos 
   4436  1.1.1.7.12.1  christos 		if { (eval echo "$as_me:4436: \"$ac_compile\"") >&5
   4437       1.1.1.3  christos   (eval $ac_compile) 2>&5
   4438       1.1.1.3  christos   ac_status=$?
   4439  1.1.1.7.12.1  christos   echo "$as_me:4439: \$? = $ac_status" >&5
   4440       1.1.1.3  christos   (exit $ac_status); }; then
   4441  1.1.1.7.12.1  christos 			test -n "$verbose" && echo "$as_me:4441: result: ... $cf_attribute" >&5
   4442       1.1.1.3  christos echo "${ECHO_T}... $cf_attribute" >&6
   4443       1.1.1.3  christos 			cat conftest.h >>confdefs.h
   4444       1.1.1.6  christos 			case $cf_attribute in
   4445       1.1.1.6  christos 			(noreturn)
   4446       1.1.1.4  christos 
   4447       1.1.1.4  christos cat >>confdefs.h <<EOF
   4448       1.1.1.4  christos #define GCC_NORETURN $cf_directive
   4449       1.1.1.3  christos EOF
   4450       1.1.1.4  christos 
   4451       1.1.1.4  christos 				;;
   4452       1.1.1.6  christos 			(printf)
   4453       1.1.1.4  christos 				cf_value='/* nothing */'
   4454       1.1.1.4  christos 				if test "$cf_printf_attribute" != no ; then
   4455       1.1.1.4  christos 					cf_value='__attribute__((format(printf,fmt,var)))'
   4456       1.1.1.4  christos 
   4457       1.1.1.4  christos cat >>confdefs.h <<\EOF
   4458       1.1.1.4  christos #define GCC_PRINTF 1
   4459       1.1.1.3  christos EOF
   4460       1.1.1.4  christos 
   4461       1.1.1.3  christos 				fi
   4462       1.1.1.4  christos 
   4463       1.1.1.4  christos cat >>confdefs.h <<EOF
   4464       1.1.1.4  christos #define GCC_PRINTFLIKE(fmt,var) $cf_value
   4465       1.1.1.4  christos EOF
   4466       1.1.1.4  christos 
   4467       1.1.1.3  christos 				;;
   4468       1.1.1.6  christos 			(scanf)
   4469       1.1.1.4  christos 				cf_value='/* nothing */'
   4470       1.1.1.4  christos 				if test "$cf_scanf_attribute" != no ; then
   4471       1.1.1.4  christos 					cf_value='__attribute__((format(scanf,fmt,var)))'
   4472       1.1.1.4  christos 
   4473       1.1.1.4  christos cat >>confdefs.h <<\EOF
   4474       1.1.1.4  christos #define GCC_SCANF 1
   4475       1.1.1.3  christos EOF
   4476       1.1.1.4  christos 
   4477       1.1.1.3  christos 				fi
   4478       1.1.1.4  christos 
   4479       1.1.1.4  christos cat >>confdefs.h <<EOF
   4480       1.1.1.4  christos #define GCC_SCANFLIKE(fmt,var) $cf_value
   4481       1.1.1.4  christos EOF
   4482       1.1.1.4  christos 
   4483       1.1.1.4  christos 				;;
   4484       1.1.1.6  christos 			(unused)
   4485       1.1.1.4  christos 
   4486       1.1.1.4  christos cat >>confdefs.h <<EOF
   4487       1.1.1.4  christos #define GCC_UNUSED $cf_directive
   4488       1.1.1.4  christos EOF
   4489       1.1.1.4  christos 
   4490       1.1.1.3  christos 				;;
   4491       1.1.1.3  christos 			esac
   4492       1.1.1.3  christos 		fi
   4493       1.1.1.3  christos 	done
   4494       1.1.1.3  christos else
   4495       1.1.1.3  christos 	fgrep define conftest.i >>confdefs.h
   4496       1.1.1.3  christos fi
   4497       1.1.1.3  christos rm -rf conftest*
   4498       1.1.1.3  christos fi
   4499       1.1.1.3  christos 
   4500       1.1.1.3  christos INTEL_COMPILER=no
   4501       1.1.1.3  christos 
   4502       1.1.1.3  christos if test "$GCC" = yes ; then
   4503       1.1.1.3  christos 	case $host_os in
   4504       1.1.1.6  christos 	(linux*|gnu*)
   4505  1.1.1.7.12.1  christos 		echo "$as_me:4505: checking if this is really Intel C compiler" >&5
   4506           1.1  christos echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
   4507           1.1  christos 		cf_save_CFLAGS="$CFLAGS"
   4508           1.1  christos 		CFLAGS="$CFLAGS -no-gcc"
   4509           1.1  christos 		cat >conftest.$ac_ext <<_ACEOF
   4510  1.1.1.7.12.1  christos #line 4510 "configure"
   4511           1.1  christos #include "confdefs.h"
   4512           1.1  christos 
   4513           1.1  christos int
   4514  1.1.1.7.12.1  christos main (void)
   4515           1.1  christos {
   4516           1.1  christos 
   4517           1.1  christos #ifdef __INTEL_COMPILER
   4518           1.1  christos #else
   4519           1.1  christos make an error
   4520           1.1  christos #endif
   4521           1.1  christos 
   4522           1.1  christos   ;
   4523           1.1  christos   return 0;
   4524           1.1  christos }
   4525           1.1  christos _ACEOF
   4526           1.1  christos rm -f conftest.$ac_objext
   4527  1.1.1.7.12.1  christos if { (eval echo "$as_me:4527: \"$ac_compile\"") >&5
   4528           1.1  christos   (eval $ac_compile) 2>&5
   4529           1.1  christos   ac_status=$?
   4530  1.1.1.7.12.1  christos   echo "$as_me:4530: \$? = $ac_status" >&5
   4531           1.1  christos   (exit $ac_status); } &&
   4532           1.1  christos          { ac_try='test -s conftest.$ac_objext'
   4533  1.1.1.7.12.1  christos   { (eval echo "$as_me:4533: \"$ac_try\"") >&5
   4534           1.1  christos   (eval $ac_try) 2>&5
   4535           1.1  christos   ac_status=$?
   4536  1.1.1.7.12.1  christos   echo "$as_me:4536: \$? = $ac_status" >&5
   4537           1.1  christos   (exit $ac_status); }; }; then
   4538           1.1  christos   INTEL_COMPILER=yes
   4539       1.1.1.5  christos cf_save_CFLAGS="$cf_save_CFLAGS -we147"
   4540           1.1  christos 
   4541           1.1  christos else
   4542           1.1  christos   echo "$as_me: failed program was:" >&5
   4543           1.1  christos cat conftest.$ac_ext >&5
   4544           1.1  christos fi
   4545           1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   4546           1.1  christos 		CFLAGS="$cf_save_CFLAGS"
   4547  1.1.1.7.12.1  christos 		echo "$as_me:4547: result: $INTEL_COMPILER" >&5
   4548           1.1  christos echo "${ECHO_T}$INTEL_COMPILER" >&6
   4549           1.1  christos 		;;
   4550           1.1  christos 	esac
   4551           1.1  christos fi
   4552           1.1  christos 
   4553       1.1.1.4  christos CLANG_COMPILER=no
   4554       1.1.1.4  christos 
   4555       1.1.1.4  christos if test "$GCC" = yes ; then
   4556  1.1.1.7.12.1  christos 	echo "$as_me:4556: checking if this is really Clang C compiler" >&5
   4557       1.1.1.4  christos echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
   4558       1.1.1.4  christos 	cf_save_CFLAGS="$CFLAGS"
   4559       1.1.1.4  christos 	CFLAGS="$CFLAGS -Qunused-arguments"
   4560       1.1.1.4  christos 	cat >conftest.$ac_ext <<_ACEOF
   4561  1.1.1.7.12.1  christos #line 4561 "configure"
   4562       1.1.1.4  christos #include "confdefs.h"
   4563       1.1.1.4  christos 
   4564       1.1.1.4  christos int
   4565  1.1.1.7.12.1  christos main (void)
   4566       1.1.1.4  christos {
   4567       1.1.1.4  christos 
   4568       1.1.1.4  christos #ifdef __clang__
   4569       1.1.1.4  christos #else
   4570       1.1.1.4  christos make an error
   4571       1.1.1.4  christos #endif
   4572       1.1.1.4  christos 
   4573       1.1.1.4  christos   ;
   4574       1.1.1.4  christos   return 0;
   4575       1.1.1.4  christos }
   4576       1.1.1.4  christos _ACEOF
   4577       1.1.1.4  christos rm -f conftest.$ac_objext
   4578  1.1.1.7.12.1  christos if { (eval echo "$as_me:4578: \"$ac_compile\"") >&5
   4579       1.1.1.4  christos   (eval $ac_compile) 2>&5
   4580       1.1.1.4  christos   ac_status=$?
   4581  1.1.1.7.12.1  christos   echo "$as_me:4581: \$? = $ac_status" >&5
   4582       1.1.1.4  christos   (exit $ac_status); } &&
   4583       1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   4584  1.1.1.7.12.1  christos   { (eval echo "$as_me:4584: \"$ac_try\"") >&5
   4585       1.1.1.4  christos   (eval $ac_try) 2>&5
   4586       1.1.1.4  christos   ac_status=$?
   4587  1.1.1.7.12.1  christos   echo "$as_me:4587: \$? = $ac_status" >&5
   4588       1.1.1.4  christos   (exit $ac_status); }; }; then
   4589       1.1.1.4  christos   CLANG_COMPILER=yes
   4590       1.1.1.4  christos cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
   4591       1.1.1.4  christos 
   4592       1.1.1.4  christos else
   4593       1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   4594       1.1.1.4  christos cat conftest.$ac_ext >&5
   4595       1.1.1.4  christos fi
   4596       1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   4597       1.1.1.4  christos 	CFLAGS="$cf_save_CFLAGS"
   4598  1.1.1.7.12.1  christos 	echo "$as_me:4598: result: $CLANG_COMPILER" >&5
   4599       1.1.1.4  christos echo "${ECHO_T}$CLANG_COMPILER" >&6
   4600       1.1.1.4  christos fi
   4601       1.1.1.4  christos 
   4602           1.1  christos cat > conftest.$ac_ext <<EOF
   4603  1.1.1.7.12.1  christos #line 4603 "${as_me:-configure}"
   4604           1.1  christos int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
   4605           1.1  christos EOF
   4606           1.1  christos 
   4607           1.1  christos if test "$INTEL_COMPILER" = yes
   4608           1.1  christos then
   4609           1.1  christos # The "-wdXXX" options suppress warnings:
   4610           1.1  christos # remark #1419: external declaration in primary source file
   4611           1.1  christos # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
   4612           1.1  christos # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
   4613           1.1  christos # remark #193: zero used for undefined preprocessing identifier
   4614           1.1  christos # remark #593: variable "curs_sb_left_arrow" was set but never used
   4615           1.1  christos # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
   4616           1.1  christos # remark #869: parameter "tw" was never referenced
   4617           1.1  christos # remark #981: operands are evaluated in unspecified order
   4618           1.1  christos # warning #279: controlling expression is constant
   4619           1.1  christos 
   4620  1.1.1.7.12.1  christos 	{ echo "$as_me:4620: checking for $CC warning options..." >&5
   4621           1.1  christos echo "$as_me: checking for $CC warning options..." >&6;}
   4622           1.1  christos 	cf_save_CFLAGS="$CFLAGS"
   4623           1.1  christos 	EXTRA_CFLAGS="-Wall"
   4624           1.1  christos 	for cf_opt in \
   4625           1.1  christos 		wd1419 \
   4626           1.1  christos 		wd1683 \
   4627           1.1  christos 		wd1684 \
   4628           1.1  christos 		wd193 \
   4629           1.1  christos 		wd593 \
   4630           1.1  christos 		wd279 \
   4631           1.1  christos 		wd810 \
   4632           1.1  christos 		wd869 \
   4633           1.1  christos 		wd981
   4634           1.1  christos 	do
   4635           1.1  christos 		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
   4636  1.1.1.7.12.1  christos 		if { (eval echo "$as_me:4636: \"$ac_compile\"") >&5
   4637           1.1  christos   (eval $ac_compile) 2>&5
   4638           1.1  christos   ac_status=$?
   4639  1.1.1.7.12.1  christos   echo "$as_me:4639: \$? = $ac_status" >&5
   4640           1.1  christos   (exit $ac_status); }; then
   4641  1.1.1.7.12.1  christos 			test -n "$verbose" && echo "$as_me:4641: result: ... -$cf_opt" >&5
   4642           1.1  christos echo "${ECHO_T}... -$cf_opt" >&6
   4643           1.1  christos 			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
   4644           1.1  christos 		fi
   4645           1.1  christos 	done
   4646           1.1  christos 	CFLAGS="$cf_save_CFLAGS"
   4647           1.1  christos 
   4648           1.1  christos elif test "$GCC" = yes
   4649           1.1  christos then
   4650  1.1.1.7.12.1  christos 	{ echo "$as_me:4650: checking for $CC warning options..." >&5
   4651           1.1  christos echo "$as_me: checking for $CC warning options..." >&6;}
   4652           1.1  christos 	cf_save_CFLAGS="$CFLAGS"
   4653       1.1.1.2  christos 	EXTRA_CFLAGS=
   4654           1.1  christos 	cf_warn_CONST=""
   4655           1.1  christos 	test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
   4656       1.1.1.5  christos 	cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
   4657       1.1.1.5  christos 	test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
   4658       1.1.1.2  christos 	for cf_opt in W Wall \
   4659           1.1  christos 		Wbad-function-cast \
   4660           1.1  christos 		Wcast-align \
   4661           1.1  christos 		Wcast-qual \
   4662       1.1.1.5  christos 		Wdeclaration-after-statement \
   4663       1.1.1.5  christos 		Wextra \
   4664           1.1  christos 		Winline \
   4665           1.1  christos 		Wmissing-declarations \
   4666           1.1  christos 		Wmissing-prototypes \
   4667           1.1  christos 		Wnested-externs \
   4668           1.1  christos 		Wpointer-arith \
   4669           1.1  christos 		Wshadow \
   4670           1.1  christos 		Wstrict-prototypes \
   4671       1.1.1.5  christos 		Wundef $cf_gcc_warnings $cf_warn_CONST Wwrite-strings
   4672           1.1  christos 	do
   4673           1.1  christos 		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
   4674  1.1.1.7.12.1  christos 		if { (eval echo "$as_me:4674: \"$ac_compile\"") >&5
   4675           1.1  christos   (eval $ac_compile) 2>&5
   4676           1.1  christos   ac_status=$?
   4677  1.1.1.7.12.1  christos   echo "$as_me:4677: \$? = $ac_status" >&5
   4678           1.1  christos   (exit $ac_status); }; then
   4679  1.1.1.7.12.1  christos 			test -n "$verbose" && echo "$as_me:4679: result: ... -$cf_opt" >&5
   4680           1.1  christos echo "${ECHO_T}... -$cf_opt" >&6
   4681       1.1.1.6  christos 			case $cf_opt in
   4682       1.1.1.6  christos 			(Wcast-qual)
   4683           1.1  christos 				CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
   4684           1.1  christos 				;;
   4685       1.1.1.6  christos 			(Winline)
   4686           1.1  christos 				case $GCC_VERSION in
   4687       1.1.1.6  christos 				([34].*)
   4688           1.1  christos 					test -n "$verbose" && echo "	feature is broken in gcc $GCC_VERSION" 1>&6
   4689           1.1  christos 
   4690  1.1.1.7.12.1  christos echo "${as_me:-configure}:4690: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
   4691       1.1.1.4  christos 
   4692       1.1.1.4  christos 					continue;;
   4693       1.1.1.4  christos 				esac
   4694       1.1.1.4  christos 				;;
   4695       1.1.1.6  christos 			(Wpointer-arith)
   4696       1.1.1.4  christos 				case $GCC_VERSION in
   4697       1.1.1.6  christos 				([12].*)
   4698       1.1.1.4  christos 					test -n "$verbose" && echo "	feature is broken in gcc $GCC_VERSION" 1>&6
   4699       1.1.1.4  christos 
   4700  1.1.1.7.12.1  christos echo "${as_me:-configure}:4700: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
   4701           1.1  christos 
   4702           1.1  christos 					continue;;
   4703           1.1  christos 				esac
   4704           1.1  christos 				;;
   4705           1.1  christos 			esac
   4706           1.1  christos 			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
   4707           1.1  christos 		fi
   4708           1.1  christos 	done
   4709           1.1  christos 	CFLAGS="$cf_save_CFLAGS"
   4710           1.1  christos fi
   4711       1.1.1.3  christos rm -rf conftest*
   4712           1.1  christos 
   4713           1.1  christos fi
   4714           1.1  christos fi
   4715           1.1  christos 
   4716  1.1.1.7.12.1  christos echo "$as_me:4716: checking if you want to see long compiling messages" >&5
   4717           1.1  christos echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
   4718           1.1  christos 
   4719           1.1  christos # Check whether --enable-echo or --disable-echo was given.
   4720           1.1  christos if test "${enable_echo+set}" = set; then
   4721           1.1  christos   enableval="$enable_echo"
   4722           1.1  christos   test "$enableval" != no && enableval=yes
   4723       1.1.1.6  christos 	if test "$enableval" != "yes" ; then
   4724           1.1  christos 
   4725       1.1.1.6  christos 	ECHO_LT='--silent'
   4726       1.1.1.6  christos 	ECHO_LD='@echo linking $@;'
   4727       1.1.1.6  christos 	RULE_CC='@echo compiling $<'
   4728       1.1.1.6  christos 	SHOW_CC='@echo compiling $@'
   4729       1.1.1.6  christos 	ECHO_CC='@'
   4730           1.1  christos 
   4731       1.1.1.6  christos 	else
   4732           1.1  christos 
   4733       1.1.1.6  christos 	ECHO_LT=''
   4734       1.1.1.6  christos 	ECHO_LD=''
   4735       1.1.1.6  christos 	RULE_CC=''
   4736       1.1.1.6  christos 	SHOW_CC=''
   4737       1.1.1.6  christos 	ECHO_CC=''
   4738           1.1  christos 
   4739       1.1.1.6  christos 	fi
   4740           1.1  christos else
   4741           1.1  christos   enableval=yes
   4742           1.1  christos 
   4743       1.1.1.6  christos 	ECHO_LT=''
   4744       1.1.1.6  christos 	ECHO_LD=''
   4745       1.1.1.6  christos 	RULE_CC=''
   4746       1.1.1.6  christos 	SHOW_CC=''
   4747       1.1.1.6  christos 	ECHO_CC=''
   4748           1.1  christos 
   4749           1.1  christos fi;
   4750  1.1.1.7.12.1  christos echo "$as_me:4750: result: $enableval" >&5
   4751           1.1  christos echo "${ECHO_T}$enableval" >&6
   4752           1.1  christos 
   4753  1.1.1.7.12.1  christos echo "$as_me:4753: checking if you want to use dmalloc for testing" >&5
   4754           1.1  christos echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
   4755           1.1  christos 
   4756           1.1  christos # Check whether --with-dmalloc or --without-dmalloc was given.
   4757           1.1  christos if test "${with_dmalloc+set}" = set; then
   4758           1.1  christos   withval="$with_dmalloc"
   4759       1.1.1.4  christos 
   4760       1.1.1.4  christos cat >>confdefs.h <<EOF
   4761           1.1  christos #define USE_DMALLOC 1
   4762           1.1  christos EOF
   4763           1.1  christos 
   4764           1.1  christos 	: ${with_cflags:=-g}
   4765           1.1  christos 	: ${with_no_leaks:=yes}
   4766           1.1  christos 	 with_dmalloc=yes
   4767           1.1  christos else
   4768           1.1  christos   with_dmalloc=
   4769           1.1  christos fi;
   4770  1.1.1.7.12.1  christos echo "$as_me:4770: result: ${with_dmalloc:-no}" >&5
   4771           1.1  christos echo "${ECHO_T}${with_dmalloc:-no}" >&6
   4772           1.1  christos 
   4773       1.1.1.6  christos case .$with_cflags in
   4774       1.1.1.6  christos (.*-g*)
   4775       1.1.1.6  christos 	case .$CFLAGS in
   4776       1.1.1.6  christos 	(.*-g*)
   4777           1.1  christos 		;;
   4778       1.1.1.6  christos 	(*)
   4779           1.1  christos 
   4780           1.1  christos cf_fix_cppflags=no
   4781           1.1  christos cf_new_cflags=
   4782           1.1  christos cf_new_cppflags=
   4783           1.1  christos cf_new_extra_cppflags=
   4784           1.1  christos 
   4785           1.1  christos for cf_add_cflags in -g
   4786           1.1  christos do
   4787           1.1  christos case $cf_fix_cppflags in
   4788       1.1.1.6  christos (no)
   4789       1.1.1.6  christos 	case $cf_add_cflags in
   4790       1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   4791           1.1  christos 		case $cf_add_cflags in
   4792       1.1.1.6  christos 		(-D*)
   4793           1.1  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   4794           1.1  christos 
   4795       1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   4796       1.1.1.2  christos 				&& test -z "${cf_tst_cflags}" \
   4797       1.1.1.2  christos 				&& cf_fix_cppflags=yes
   4798           1.1  christos 
   4799           1.1  christos 			if test $cf_fix_cppflags = yes ; then
   4800  1.1.1.7.12.1  christos 
   4801  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   4802  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   4803  1.1.1.7.12.1  christos 
   4804           1.1  christos 				continue
   4805           1.1  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   4806  1.1.1.7.12.1  christos 
   4807  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   4808  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   4809  1.1.1.7.12.1  christos 
   4810           1.1  christos 				continue
   4811           1.1  christos 			fi
   4812           1.1  christos 			;;
   4813           1.1  christos 		esac
   4814           1.1  christos 		case "$CPPFLAGS" in
   4815       1.1.1.6  christos 		(*$cf_add_cflags)
   4816           1.1  christos 			;;
   4817       1.1.1.6  christos 		(*)
   4818       1.1.1.6  christos 			case $cf_add_cflags in
   4819       1.1.1.6  christos 			(-D*)
   4820       1.1.1.2  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   4821       1.1.1.2  christos 
   4822       1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   4823       1.1.1.2  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   4824       1.1.1.2  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   4825       1.1.1.2  christos 
   4826       1.1.1.2  christos 				;;
   4827       1.1.1.2  christos 			esac
   4828  1.1.1.7.12.1  christos 
   4829  1.1.1.7.12.1  christos 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   4830  1.1.1.7.12.1  christos 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   4831  1.1.1.7.12.1  christos 
   4832           1.1  christos 			;;
   4833           1.1  christos 		esac
   4834           1.1  christos 		;;
   4835       1.1.1.6  christos 	(*)
   4836  1.1.1.7.12.1  christos 
   4837  1.1.1.7.12.1  christos 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   4838  1.1.1.7.12.1  christos 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   4839  1.1.1.7.12.1  christos 
   4840           1.1  christos 		;;
   4841           1.1  christos 	esac
   4842           1.1  christos 	;;
   4843       1.1.1.6  christos (yes)
   4844  1.1.1.7.12.1  christos 
   4845  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   4846  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   4847           1.1  christos 
   4848           1.1  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   4849           1.1  christos 
   4850       1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   4851       1.1.1.2  christos 		&& test -z "${cf_tst_cflags}" \
   4852       1.1.1.2  christos 		&& cf_fix_cppflags=no
   4853           1.1  christos 	;;
   4854           1.1  christos esac
   4855           1.1  christos done
   4856           1.1  christos 
   4857           1.1  christos if test -n "$cf_new_cflags" ; then
   4858           1.1  christos 
   4859  1.1.1.7.12.1  christos 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   4860  1.1.1.7.12.1  christos 	CFLAGS="${CFLAGS}$cf_new_cflags"
   4861  1.1.1.7.12.1  christos 
   4862           1.1  christos fi
   4863           1.1  christos 
   4864           1.1  christos if test -n "$cf_new_cppflags" ; then
   4865           1.1  christos 
   4866  1.1.1.7.12.1  christos 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   4867  1.1.1.7.12.1  christos 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   4868  1.1.1.7.12.1  christos 
   4869           1.1  christos fi
   4870           1.1  christos 
   4871           1.1  christos if test -n "$cf_new_extra_cppflags" ; then
   4872           1.1  christos 
   4873  1.1.1.7.12.1  christos 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   4874  1.1.1.7.12.1  christos 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   4875  1.1.1.7.12.1  christos 
   4876           1.1  christos fi
   4877           1.1  christos 
   4878           1.1  christos 		;;
   4879           1.1  christos 	esac
   4880           1.1  christos 	;;
   4881           1.1  christos esac
   4882           1.1  christos 
   4883           1.1  christos if test "$with_dmalloc" = yes ; then
   4884  1.1.1.7.12.1  christos 	echo "$as_me:4884: checking for dmalloc.h" >&5
   4885           1.1  christos echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
   4886           1.1  christos if test "${ac_cv_header_dmalloc_h+set}" = set; then
   4887           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4888           1.1  christos else
   4889           1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   4890  1.1.1.7.12.1  christos #line 4890 "configure"
   4891           1.1  christos #include "confdefs.h"
   4892           1.1  christos #include <dmalloc.h>
   4893           1.1  christos _ACEOF
   4894  1.1.1.7.12.1  christos if { (eval echo "$as_me:4894: \"$ac_cpp conftest.$ac_ext\"") >&5
   4895           1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   4896           1.1  christos   ac_status=$?
   4897           1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   4898           1.1  christos   rm -f conftest.er1
   4899           1.1  christos   cat conftest.err >&5
   4900  1.1.1.7.12.1  christos   echo "$as_me:4900: \$? = $ac_status" >&5
   4901           1.1  christos   (exit $ac_status); } >/dev/null; then
   4902           1.1  christos   if test -s conftest.err; then
   4903           1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   4904           1.1  christos   else
   4905           1.1  christos     ac_cpp_err=
   4906           1.1  christos   fi
   4907           1.1  christos else
   4908           1.1  christos   ac_cpp_err=yes
   4909           1.1  christos fi
   4910           1.1  christos if test -z "$ac_cpp_err"; then
   4911           1.1  christos   ac_cv_header_dmalloc_h=yes
   4912           1.1  christos else
   4913           1.1  christos   echo "$as_me: failed program was:" >&5
   4914           1.1  christos   cat conftest.$ac_ext >&5
   4915           1.1  christos   ac_cv_header_dmalloc_h=no
   4916           1.1  christos fi
   4917           1.1  christos rm -f conftest.err conftest.$ac_ext
   4918           1.1  christos fi
   4919  1.1.1.7.12.1  christos echo "$as_me:4919: result: $ac_cv_header_dmalloc_h" >&5
   4920           1.1  christos echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
   4921           1.1  christos if test $ac_cv_header_dmalloc_h = yes; then
   4922           1.1  christos 
   4923  1.1.1.7.12.1  christos echo "$as_me:4923: checking for dmalloc_debug in -ldmalloc" >&5
   4924           1.1  christos echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
   4925           1.1  christos if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
   4926           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4927           1.1  christos else
   4928           1.1  christos   ac_check_lib_save_LIBS=$LIBS
   4929           1.1  christos LIBS="-ldmalloc  $LIBS"
   4930           1.1  christos cat >conftest.$ac_ext <<_ACEOF
   4931  1.1.1.7.12.1  christos #line 4931 "configure"
   4932           1.1  christos #include "confdefs.h"
   4933           1.1  christos 
   4934           1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   4935           1.1  christos #ifdef __cplusplus
   4936           1.1  christos extern "C"
   4937           1.1  christos #endif
   4938           1.1  christos /* We use char because int might match the return type of a gcc2
   4939           1.1  christos    builtin and then its argument prototype would still apply.  */
   4940           1.1  christos char dmalloc_debug ();
   4941           1.1  christos int
   4942  1.1.1.7.12.1  christos main (void)
   4943           1.1  christos {
   4944           1.1  christos dmalloc_debug ();
   4945           1.1  christos   ;
   4946           1.1  christos   return 0;
   4947           1.1  christos }
   4948           1.1  christos _ACEOF
   4949           1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4950  1.1.1.7.12.1  christos if { (eval echo "$as_me:4950: \"$ac_link\"") >&5
   4951           1.1  christos   (eval $ac_link) 2>&5
   4952           1.1  christos   ac_status=$?
   4953  1.1.1.7.12.1  christos   echo "$as_me:4953: \$? = $ac_status" >&5
   4954           1.1  christos   (exit $ac_status); } &&
   4955           1.1  christos          { ac_try='test -s conftest$ac_exeext'
   4956  1.1.1.7.12.1  christos   { (eval echo "$as_me:4956: \"$ac_try\"") >&5
   4957           1.1  christos   (eval $ac_try) 2>&5
   4958           1.1  christos   ac_status=$?
   4959  1.1.1.7.12.1  christos   echo "$as_me:4959: \$? = $ac_status" >&5
   4960           1.1  christos   (exit $ac_status); }; }; then
   4961           1.1  christos   ac_cv_lib_dmalloc_dmalloc_debug=yes
   4962           1.1  christos else
   4963           1.1  christos   echo "$as_me: failed program was:" >&5
   4964           1.1  christos cat conftest.$ac_ext >&5
   4965           1.1  christos ac_cv_lib_dmalloc_dmalloc_debug=no
   4966           1.1  christos fi
   4967           1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   4968           1.1  christos LIBS=$ac_check_lib_save_LIBS
   4969           1.1  christos fi
   4970  1.1.1.7.12.1  christos echo "$as_me:4970: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
   4971           1.1  christos echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
   4972           1.1  christos if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
   4973           1.1  christos   cat >>confdefs.h <<EOF
   4974           1.1  christos #define HAVE_LIBDMALLOC 1
   4975           1.1  christos EOF
   4976           1.1  christos 
   4977           1.1  christos   LIBS="-ldmalloc $LIBS"
   4978           1.1  christos 
   4979           1.1  christos fi
   4980           1.1  christos 
   4981           1.1  christos fi
   4982           1.1  christos 
   4983           1.1  christos fi
   4984           1.1  christos 
   4985  1.1.1.7.12.1  christos echo "$as_me:4985: checking if you want to use dbmalloc for testing" >&5
   4986           1.1  christos echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
   4987           1.1  christos 
   4988           1.1  christos # Check whether --with-dbmalloc or --without-dbmalloc was given.
   4989           1.1  christos if test "${with_dbmalloc+set}" = set; then
   4990           1.1  christos   withval="$with_dbmalloc"
   4991       1.1.1.4  christos 
   4992       1.1.1.4  christos cat >>confdefs.h <<EOF
   4993           1.1  christos #define USE_DBMALLOC 1
   4994           1.1  christos EOF
   4995           1.1  christos 
   4996           1.1  christos 	: ${with_cflags:=-g}
   4997           1.1  christos 	: ${with_no_leaks:=yes}
   4998           1.1  christos 	 with_dbmalloc=yes
   4999           1.1  christos else
   5000           1.1  christos   with_dbmalloc=
   5001           1.1  christos fi;
   5002  1.1.1.7.12.1  christos echo "$as_me:5002: result: ${with_dbmalloc:-no}" >&5
   5003           1.1  christos echo "${ECHO_T}${with_dbmalloc:-no}" >&6
   5004           1.1  christos 
   5005       1.1.1.6  christos case .$with_cflags in
   5006       1.1.1.6  christos (.*-g*)
   5007       1.1.1.6  christos 	case .$CFLAGS in
   5008       1.1.1.6  christos 	(.*-g*)
   5009           1.1  christos 		;;
   5010       1.1.1.6  christos 	(*)
   5011           1.1  christos 
   5012           1.1  christos cf_fix_cppflags=no
   5013           1.1  christos cf_new_cflags=
   5014           1.1  christos cf_new_cppflags=
   5015           1.1  christos cf_new_extra_cppflags=
   5016           1.1  christos 
   5017           1.1  christos for cf_add_cflags in -g
   5018           1.1  christos do
   5019           1.1  christos case $cf_fix_cppflags in
   5020       1.1.1.6  christos (no)
   5021       1.1.1.6  christos 	case $cf_add_cflags in
   5022       1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   5023           1.1  christos 		case $cf_add_cflags in
   5024       1.1.1.6  christos 		(-D*)
   5025           1.1  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   5026           1.1  christos 
   5027       1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   5028       1.1.1.2  christos 				&& test -z "${cf_tst_cflags}" \
   5029       1.1.1.2  christos 				&& cf_fix_cppflags=yes
   5030           1.1  christos 
   5031           1.1  christos 			if test $cf_fix_cppflags = yes ; then
   5032  1.1.1.7.12.1  christos 
   5033  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   5034  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   5035  1.1.1.7.12.1  christos 
   5036           1.1  christos 				continue
   5037           1.1  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   5038  1.1.1.7.12.1  christos 
   5039  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   5040  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   5041  1.1.1.7.12.1  christos 
   5042           1.1  christos 				continue
   5043           1.1  christos 			fi
   5044           1.1  christos 			;;
   5045           1.1  christos 		esac
   5046           1.1  christos 		case "$CPPFLAGS" in
   5047       1.1.1.6  christos 		(*$cf_add_cflags)
   5048           1.1  christos 			;;
   5049       1.1.1.6  christos 		(*)
   5050       1.1.1.6  christos 			case $cf_add_cflags in
   5051       1.1.1.6  christos 			(-D*)
   5052       1.1.1.2  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   5053       1.1.1.2  christos 
   5054       1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   5055       1.1.1.2  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   5056       1.1.1.2  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   5057       1.1.1.2  christos 
   5058       1.1.1.2  christos 				;;
   5059       1.1.1.2  christos 			esac
   5060  1.1.1.7.12.1  christos 
   5061  1.1.1.7.12.1  christos 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   5062  1.1.1.7.12.1  christos 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   5063  1.1.1.7.12.1  christos 
   5064           1.1  christos 			;;
   5065           1.1  christos 		esac
   5066           1.1  christos 		;;
   5067       1.1.1.6  christos 	(*)
   5068  1.1.1.7.12.1  christos 
   5069  1.1.1.7.12.1  christos 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   5070  1.1.1.7.12.1  christos 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   5071  1.1.1.7.12.1  christos 
   5072           1.1  christos 		;;
   5073           1.1  christos 	esac
   5074           1.1  christos 	;;
   5075       1.1.1.6  christos (yes)
   5076  1.1.1.7.12.1  christos 
   5077  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   5078  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   5079           1.1  christos 
   5080           1.1  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   5081           1.1  christos 
   5082       1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   5083       1.1.1.2  christos 		&& test -z "${cf_tst_cflags}" \
   5084       1.1.1.2  christos 		&& cf_fix_cppflags=no
   5085           1.1  christos 	;;
   5086           1.1  christos esac
   5087           1.1  christos done
   5088           1.1  christos 
   5089           1.1  christos if test -n "$cf_new_cflags" ; then
   5090           1.1  christos 
   5091  1.1.1.7.12.1  christos 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   5092  1.1.1.7.12.1  christos 	CFLAGS="${CFLAGS}$cf_new_cflags"
   5093  1.1.1.7.12.1  christos 
   5094           1.1  christos fi
   5095           1.1  christos 
   5096           1.1  christos if test -n "$cf_new_cppflags" ; then
   5097           1.1  christos 
   5098  1.1.1.7.12.1  christos 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   5099  1.1.1.7.12.1  christos 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   5100  1.1.1.7.12.1  christos 
   5101           1.1  christos fi
   5102           1.1  christos 
   5103           1.1  christos if test -n "$cf_new_extra_cppflags" ; then
   5104           1.1  christos 
   5105  1.1.1.7.12.1  christos 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   5106  1.1.1.7.12.1  christos 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   5107  1.1.1.7.12.1  christos 
   5108           1.1  christos fi
   5109           1.1  christos 
   5110           1.1  christos 		;;
   5111           1.1  christos 	esac
   5112           1.1  christos 	;;
   5113           1.1  christos esac
   5114           1.1  christos 
   5115           1.1  christos if test "$with_dbmalloc" = yes ; then
   5116  1.1.1.7.12.1  christos 	echo "$as_me:5116: checking for dbmalloc.h" >&5
   5117           1.1  christos echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
   5118           1.1  christos if test "${ac_cv_header_dbmalloc_h+set}" = set; then
   5119           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5120           1.1  christos else
   5121           1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   5122  1.1.1.7.12.1  christos #line 5122 "configure"
   5123           1.1  christos #include "confdefs.h"
   5124           1.1  christos #include <dbmalloc.h>
   5125           1.1  christos _ACEOF
   5126  1.1.1.7.12.1  christos if { (eval echo "$as_me:5126: \"$ac_cpp conftest.$ac_ext\"") >&5
   5127           1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   5128           1.1  christos   ac_status=$?
   5129           1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   5130           1.1  christos   rm -f conftest.er1
   5131           1.1  christos   cat conftest.err >&5
   5132  1.1.1.7.12.1  christos   echo "$as_me:5132: \$? = $ac_status" >&5
   5133           1.1  christos   (exit $ac_status); } >/dev/null; then
   5134           1.1  christos   if test -s conftest.err; then
   5135           1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   5136           1.1  christos   else
   5137           1.1  christos     ac_cpp_err=
   5138           1.1  christos   fi
   5139           1.1  christos else
   5140           1.1  christos   ac_cpp_err=yes
   5141           1.1  christos fi
   5142           1.1  christos if test -z "$ac_cpp_err"; then
   5143           1.1  christos   ac_cv_header_dbmalloc_h=yes
   5144           1.1  christos else
   5145           1.1  christos   echo "$as_me: failed program was:" >&5
   5146           1.1  christos   cat conftest.$ac_ext >&5
   5147           1.1  christos   ac_cv_header_dbmalloc_h=no
   5148           1.1  christos fi
   5149           1.1  christos rm -f conftest.err conftest.$ac_ext
   5150           1.1  christos fi
   5151  1.1.1.7.12.1  christos echo "$as_me:5151: result: $ac_cv_header_dbmalloc_h" >&5
   5152           1.1  christos echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
   5153           1.1  christos if test $ac_cv_header_dbmalloc_h = yes; then
   5154           1.1  christos 
   5155  1.1.1.7.12.1  christos echo "$as_me:5155: checking for debug_malloc in -ldbmalloc" >&5
   5156           1.1  christos echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
   5157           1.1  christos if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
   5158           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5159           1.1  christos else
   5160           1.1  christos   ac_check_lib_save_LIBS=$LIBS
   5161           1.1  christos LIBS="-ldbmalloc  $LIBS"
   5162           1.1  christos cat >conftest.$ac_ext <<_ACEOF
   5163  1.1.1.7.12.1  christos #line 5163 "configure"
   5164           1.1  christos #include "confdefs.h"
   5165           1.1  christos 
   5166           1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   5167           1.1  christos #ifdef __cplusplus
   5168           1.1  christos extern "C"
   5169           1.1  christos #endif
   5170           1.1  christos /* We use char because int might match the return type of a gcc2
   5171           1.1  christos    builtin and then its argument prototype would still apply.  */
   5172           1.1  christos char debug_malloc ();
   5173           1.1  christos int
   5174  1.1.1.7.12.1  christos main (void)
   5175           1.1  christos {
   5176           1.1  christos debug_malloc ();
   5177           1.1  christos   ;
   5178           1.1  christos   return 0;
   5179           1.1  christos }
   5180           1.1  christos _ACEOF
   5181           1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   5182  1.1.1.7.12.1  christos if { (eval echo "$as_me:5182: \"$ac_link\"") >&5
   5183           1.1  christos   (eval $ac_link) 2>&5
   5184           1.1  christos   ac_status=$?
   5185  1.1.1.7.12.1  christos   echo "$as_me:5185: \$? = $ac_status" >&5
   5186           1.1  christos   (exit $ac_status); } &&
   5187           1.1  christos          { ac_try='test -s conftest$ac_exeext'
   5188  1.1.1.7.12.1  christos   { (eval echo "$as_me:5188: \"$ac_try\"") >&5
   5189           1.1  christos   (eval $ac_try) 2>&5
   5190           1.1  christos   ac_status=$?
   5191  1.1.1.7.12.1  christos   echo "$as_me:5191: \$? = $ac_status" >&5
   5192           1.1  christos   (exit $ac_status); }; }; then
   5193           1.1  christos   ac_cv_lib_dbmalloc_debug_malloc=yes
   5194           1.1  christos else
   5195           1.1  christos   echo "$as_me: failed program was:" >&5
   5196           1.1  christos cat conftest.$ac_ext >&5
   5197           1.1  christos ac_cv_lib_dbmalloc_debug_malloc=no
   5198           1.1  christos fi
   5199           1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   5200           1.1  christos LIBS=$ac_check_lib_save_LIBS
   5201           1.1  christos fi
   5202  1.1.1.7.12.1  christos echo "$as_me:5202: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
   5203           1.1  christos echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
   5204           1.1  christos if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
   5205           1.1  christos   cat >>confdefs.h <<EOF
   5206           1.1  christos #define HAVE_LIBDBMALLOC 1
   5207           1.1  christos EOF
   5208           1.1  christos 
   5209           1.1  christos   LIBS="-ldbmalloc $LIBS"
   5210           1.1  christos 
   5211           1.1  christos fi
   5212           1.1  christos 
   5213           1.1  christos fi
   5214           1.1  christos 
   5215           1.1  christos fi
   5216           1.1  christos 
   5217  1.1.1.7.12.1  christos echo "$as_me:5217: checking if you want to use valgrind for testing" >&5
   5218           1.1  christos echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
   5219           1.1  christos 
   5220           1.1  christos # Check whether --with-valgrind or --without-valgrind was given.
   5221           1.1  christos if test "${with_valgrind+set}" = set; then
   5222           1.1  christos   withval="$with_valgrind"
   5223       1.1.1.4  christos 
   5224       1.1.1.4  christos cat >>confdefs.h <<EOF
   5225           1.1  christos #define USE_VALGRIND 1
   5226           1.1  christos EOF
   5227           1.1  christos 
   5228           1.1  christos 	: ${with_cflags:=-g}
   5229           1.1  christos 	: ${with_no_leaks:=yes}
   5230           1.1  christos 	 with_valgrind=yes
   5231           1.1  christos else
   5232           1.1  christos   with_valgrind=
   5233           1.1  christos fi;
   5234  1.1.1.7.12.1  christos echo "$as_me:5234: result: ${with_valgrind:-no}" >&5
   5235           1.1  christos echo "${ECHO_T}${with_valgrind:-no}" >&6
   5236           1.1  christos 
   5237       1.1.1.6  christos case .$with_cflags in
   5238       1.1.1.6  christos (.*-g*)
   5239       1.1.1.6  christos 	case .$CFLAGS in
   5240       1.1.1.6  christos 	(.*-g*)
   5241           1.1  christos 		;;
   5242       1.1.1.6  christos 	(*)
   5243           1.1  christos 
   5244           1.1  christos cf_fix_cppflags=no
   5245           1.1  christos cf_new_cflags=
   5246           1.1  christos cf_new_cppflags=
   5247           1.1  christos cf_new_extra_cppflags=
   5248           1.1  christos 
   5249           1.1  christos for cf_add_cflags in -g
   5250           1.1  christos do
   5251           1.1  christos case $cf_fix_cppflags in
   5252       1.1.1.6  christos (no)
   5253       1.1.1.6  christos 	case $cf_add_cflags in
   5254       1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   5255           1.1  christos 		case $cf_add_cflags in
   5256       1.1.1.6  christos 		(-D*)
   5257           1.1  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   5258           1.1  christos 
   5259       1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   5260       1.1.1.2  christos 				&& test -z "${cf_tst_cflags}" \
   5261       1.1.1.2  christos 				&& cf_fix_cppflags=yes
   5262           1.1  christos 
   5263           1.1  christos 			if test $cf_fix_cppflags = yes ; then
   5264  1.1.1.7.12.1  christos 
   5265  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   5266  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   5267  1.1.1.7.12.1  christos 
   5268           1.1  christos 				continue
   5269           1.1  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   5270  1.1.1.7.12.1  christos 
   5271  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   5272  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   5273  1.1.1.7.12.1  christos 
   5274           1.1  christos 				continue
   5275           1.1  christos 			fi
   5276           1.1  christos 			;;
   5277           1.1  christos 		esac
   5278           1.1  christos 		case "$CPPFLAGS" in
   5279       1.1.1.6  christos 		(*$cf_add_cflags)
   5280           1.1  christos 			;;
   5281       1.1.1.6  christos 		(*)
   5282       1.1.1.6  christos 			case $cf_add_cflags in
   5283       1.1.1.6  christos 			(-D*)
   5284       1.1.1.2  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   5285       1.1.1.2  christos 
   5286       1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   5287       1.1.1.2  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   5288       1.1.1.2  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   5289       1.1.1.2  christos 
   5290       1.1.1.2  christos 				;;
   5291       1.1.1.2  christos 			esac
   5292  1.1.1.7.12.1  christos 
   5293  1.1.1.7.12.1  christos 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   5294  1.1.1.7.12.1  christos 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   5295  1.1.1.7.12.1  christos 
   5296           1.1  christos 			;;
   5297           1.1  christos 		esac
   5298           1.1  christos 		;;
   5299       1.1.1.6  christos 	(*)
   5300  1.1.1.7.12.1  christos 
   5301  1.1.1.7.12.1  christos 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   5302  1.1.1.7.12.1  christos 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   5303  1.1.1.7.12.1  christos 
   5304           1.1  christos 		;;
   5305           1.1  christos 	esac
   5306           1.1  christos 	;;
   5307       1.1.1.6  christos (yes)
   5308  1.1.1.7.12.1  christos 
   5309  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   5310  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   5311           1.1  christos 
   5312           1.1  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   5313           1.1  christos 
   5314       1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   5315       1.1.1.2  christos 		&& test -z "${cf_tst_cflags}" \
   5316       1.1.1.2  christos 		&& cf_fix_cppflags=no
   5317           1.1  christos 	;;
   5318           1.1  christos esac
   5319           1.1  christos done
   5320           1.1  christos 
   5321           1.1  christos if test -n "$cf_new_cflags" ; then
   5322           1.1  christos 
   5323  1.1.1.7.12.1  christos 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   5324  1.1.1.7.12.1  christos 	CFLAGS="${CFLAGS}$cf_new_cflags"
   5325  1.1.1.7.12.1  christos 
   5326           1.1  christos fi
   5327           1.1  christos 
   5328           1.1  christos if test -n "$cf_new_cppflags" ; then
   5329           1.1  christos 
   5330  1.1.1.7.12.1  christos 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   5331  1.1.1.7.12.1  christos 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   5332  1.1.1.7.12.1  christos 
   5333           1.1  christos fi
   5334           1.1  christos 
   5335           1.1  christos if test -n "$cf_new_extra_cppflags" ; then
   5336           1.1  christos 
   5337  1.1.1.7.12.1  christos 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   5338  1.1.1.7.12.1  christos 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   5339  1.1.1.7.12.1  christos 
   5340           1.1  christos fi
   5341           1.1  christos 
   5342           1.1  christos 		;;
   5343           1.1  christos 	esac
   5344           1.1  christos 	;;
   5345           1.1  christos esac
   5346           1.1  christos 
   5347  1.1.1.7.12.1  christos echo "$as_me:5347: checking if you want to perform memory-leak testing" >&5
   5348           1.1  christos echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
   5349           1.1  christos 
   5350           1.1  christos # Check whether --enable-leaks or --disable-leaks was given.
   5351           1.1  christos if test "${enable_leaks+set}" = set; then
   5352           1.1  christos   enableval="$enable_leaks"
   5353       1.1.1.2  christos   if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
   5354           1.1  christos else
   5355           1.1  christos   : ${with_no_leaks:=no}
   5356           1.1  christos fi;
   5357  1.1.1.7.12.1  christos echo "$as_me:5357: result: $with_no_leaks" >&5
   5358           1.1  christos echo "${ECHO_T}$with_no_leaks" >&6
   5359           1.1  christos 
   5360           1.1  christos if test "$with_no_leaks" = yes ; then
   5361       1.1.1.4  christos 
   5362       1.1.1.4  christos cat >>confdefs.h <<\EOF
   5363           1.1  christos #define NO_LEAKS 1
   5364           1.1  christos EOF
   5365           1.1  christos 
   5366       1.1.1.4  christos cat >>confdefs.h <<\EOF
   5367       1.1.1.3  christos #define YY_NO_LEAKS 1
   5368       1.1.1.3  christos EOF
   5369       1.1.1.3  christos 
   5370           1.1  christos fi
   5371           1.1  christos 
   5372       1.1.1.6  christos # Extract the first word of "groff", so it can be a program name with args.
   5373       1.1.1.6  christos set dummy groff; ac_word=$2
   5374  1.1.1.7.12.1  christos echo "$as_me:5374: checking for $ac_word" >&5
   5375       1.1.1.6  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5376       1.1.1.6  christos if test "${ac_cv_path_GROFF_PATH+set}" = set; then
   5377       1.1.1.6  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5378       1.1.1.6  christos else
   5379       1.1.1.6  christos   case $GROFF_PATH in
   5380       1.1.1.6  christos   [\\/]* | ?:[\\/]*)
   5381       1.1.1.6  christos   ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path.
   5382       1.1.1.6  christos   ;;
   5383       1.1.1.6  christos   *)
   5384       1.1.1.6  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   5385       1.1.1.6  christos ac_dummy="$PATH"
   5386       1.1.1.6  christos for ac_dir in $ac_dummy; do
   5387       1.1.1.6  christos   IFS=$ac_save_IFS
   5388       1.1.1.6  christos   test -z "$ac_dir" && ac_dir=.
   5389       1.1.1.6  christos   if $as_executable_p "$ac_dir/$ac_word"; then
   5390       1.1.1.6  christos    ac_cv_path_GROFF_PATH="$ac_dir/$ac_word"
   5391  1.1.1.7.12.1  christos    echo "$as_me:5391: found $ac_dir/$ac_word" >&5
   5392       1.1.1.6  christos    break
   5393       1.1.1.6  christos fi
   5394       1.1.1.6  christos done
   5395       1.1.1.6  christos 
   5396       1.1.1.6  christos   test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no"
   5397       1.1.1.6  christos   ;;
   5398       1.1.1.6  christos esac
   5399       1.1.1.6  christos fi
   5400       1.1.1.6  christos GROFF_PATH=$ac_cv_path_GROFF_PATH
   5401       1.1.1.6  christos 
   5402       1.1.1.6  christos if test -n "$GROFF_PATH"; then
   5403  1.1.1.7.12.1  christos   echo "$as_me:5403: result: $GROFF_PATH" >&5
   5404       1.1.1.6  christos echo "${ECHO_T}$GROFF_PATH" >&6
   5405       1.1.1.6  christos else
   5406  1.1.1.7.12.1  christos   echo "$as_me:5406: result: no" >&5
   5407       1.1.1.6  christos echo "${ECHO_T}no" >&6
   5408       1.1.1.6  christos fi
   5409       1.1.1.6  christos 
   5410  1.1.1.7.12.1  christos for ac_prog in nroff mandoc
   5411  1.1.1.7.12.1  christos do
   5412  1.1.1.7.12.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5413  1.1.1.7.12.1  christos set dummy $ac_prog; ac_word=$2
   5414  1.1.1.7.12.1  christos echo "$as_me:5414: checking for $ac_word" >&5
   5415       1.1.1.6  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5416       1.1.1.6  christos if test "${ac_cv_path_NROFF_PATH+set}" = set; then
   5417       1.1.1.6  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5418       1.1.1.6  christos else
   5419       1.1.1.6  christos   case $NROFF_PATH in
   5420       1.1.1.6  christos   [\\/]* | ?:[\\/]*)
   5421       1.1.1.6  christos   ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path.
   5422       1.1.1.6  christos   ;;
   5423       1.1.1.6  christos   *)
   5424       1.1.1.6  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   5425       1.1.1.6  christos ac_dummy="$PATH"
   5426       1.1.1.6  christos for ac_dir in $ac_dummy; do
   5427       1.1.1.6  christos   IFS=$ac_save_IFS
   5428       1.1.1.6  christos   test -z "$ac_dir" && ac_dir=.
   5429       1.1.1.6  christos   if $as_executable_p "$ac_dir/$ac_word"; then
   5430       1.1.1.6  christos    ac_cv_path_NROFF_PATH="$ac_dir/$ac_word"
   5431  1.1.1.7.12.1  christos    echo "$as_me:5431: found $ac_dir/$ac_word" >&5
   5432       1.1.1.6  christos    break
   5433       1.1.1.6  christos fi
   5434       1.1.1.6  christos done
   5435       1.1.1.6  christos 
   5436       1.1.1.6  christos   ;;
   5437       1.1.1.6  christos esac
   5438       1.1.1.6  christos fi
   5439       1.1.1.6  christos NROFF_PATH=$ac_cv_path_NROFF_PATH
   5440       1.1.1.6  christos 
   5441       1.1.1.6  christos if test -n "$NROFF_PATH"; then
   5442  1.1.1.7.12.1  christos   echo "$as_me:5442: result: $NROFF_PATH" >&5
   5443       1.1.1.6  christos echo "${ECHO_T}$NROFF_PATH" >&6
   5444       1.1.1.6  christos else
   5445  1.1.1.7.12.1  christos   echo "$as_me:5445: result: no" >&5
   5446  1.1.1.7.12.1  christos echo "${ECHO_T}no" >&6
   5447  1.1.1.7.12.1  christos fi
   5448  1.1.1.7.12.1  christos 
   5449  1.1.1.7.12.1  christos   test -n "$NROFF_PATH" && break
   5450  1.1.1.7.12.1  christos done
   5451  1.1.1.7.12.1  christos test -n "$NROFF_PATH" || NROFF_PATH="no"
   5452  1.1.1.7.12.1  christos 
   5453  1.1.1.7.12.1  christos # Extract the first word of "tbl", so it can be a program name with args.
   5454  1.1.1.7.12.1  christos set dummy tbl; ac_word=$2
   5455  1.1.1.7.12.1  christos echo "$as_me:5455: checking for $ac_word" >&5
   5456  1.1.1.7.12.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5457  1.1.1.7.12.1  christos if test "${ac_cv_path_TBL_PATH+set}" = set; then
   5458  1.1.1.7.12.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5459  1.1.1.7.12.1  christos else
   5460  1.1.1.7.12.1  christos   case $TBL_PATH in
   5461  1.1.1.7.12.1  christos   [\\/]* | ?:[\\/]*)
   5462  1.1.1.7.12.1  christos   ac_cv_path_TBL_PATH="$TBL_PATH" # Let the user override the test with a path.
   5463  1.1.1.7.12.1  christos   ;;
   5464  1.1.1.7.12.1  christos   *)
   5465  1.1.1.7.12.1  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   5466  1.1.1.7.12.1  christos ac_dummy="$PATH"
   5467  1.1.1.7.12.1  christos for ac_dir in $ac_dummy; do
   5468  1.1.1.7.12.1  christos   IFS=$ac_save_IFS
   5469  1.1.1.7.12.1  christos   test -z "$ac_dir" && ac_dir=.
   5470  1.1.1.7.12.1  christos   if $as_executable_p "$ac_dir/$ac_word"; then
   5471  1.1.1.7.12.1  christos    ac_cv_path_TBL_PATH="$ac_dir/$ac_word"
   5472  1.1.1.7.12.1  christos    echo "$as_me:5472: found $ac_dir/$ac_word" >&5
   5473  1.1.1.7.12.1  christos    break
   5474  1.1.1.7.12.1  christos fi
   5475  1.1.1.7.12.1  christos done
   5476  1.1.1.7.12.1  christos 
   5477  1.1.1.7.12.1  christos   test -z "$ac_cv_path_TBL_PATH" && ac_cv_path_TBL_PATH="cat"
   5478  1.1.1.7.12.1  christos   ;;
   5479  1.1.1.7.12.1  christos esac
   5480  1.1.1.7.12.1  christos fi
   5481  1.1.1.7.12.1  christos TBL_PATH=$ac_cv_path_TBL_PATH
   5482  1.1.1.7.12.1  christos 
   5483  1.1.1.7.12.1  christos if test -n "$TBL_PATH"; then
   5484  1.1.1.7.12.1  christos   echo "$as_me:5484: result: $TBL_PATH" >&5
   5485  1.1.1.7.12.1  christos echo "${ECHO_T}$TBL_PATH" >&6
   5486  1.1.1.7.12.1  christos else
   5487  1.1.1.7.12.1  christos   echo "$as_me:5487: result: no" >&5
   5488       1.1.1.6  christos echo "${ECHO_T}no" >&6
   5489       1.1.1.6  christos fi
   5490       1.1.1.6  christos 
   5491       1.1.1.6  christos if test "x$GROFF_PATH" = xno
   5492       1.1.1.6  christos then
   5493       1.1.1.6  christos 	NROFF_NOTE=
   5494       1.1.1.6  christos 	GROFF_NOTE="#"
   5495       1.1.1.6  christos else
   5496       1.1.1.6  christos 	NROFF_NOTE="#"
   5497       1.1.1.6  christos 	GROFF_NOTE=
   5498       1.1.1.6  christos fi
   5499       1.1.1.6  christos 
   5500  1.1.1.7.12.1  christos case "x${with_man2html}" in
   5501  1.1.1.7.12.1  christos (xno)
   5502  1.1.1.7.12.1  christos 	cf_man2html=no
   5503  1.1.1.7.12.1  christos 	;;
   5504  1.1.1.7.12.1  christos (x|xyes)
   5505  1.1.1.7.12.1  christos 	# Extract the first word of "man2html", so it can be a program name with args.
   5506  1.1.1.7.12.1  christos set dummy man2html; ac_word=$2
   5507  1.1.1.7.12.1  christos echo "$as_me:5507: checking for $ac_word" >&5
   5508  1.1.1.7.12.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5509  1.1.1.7.12.1  christos if test "${ac_cv_path_cf_man2html+set}" = set; then
   5510  1.1.1.7.12.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5511  1.1.1.7.12.1  christos else
   5512  1.1.1.7.12.1  christos   case $cf_man2html in
   5513  1.1.1.7.12.1  christos   [\\/]* | ?:[\\/]*)
   5514  1.1.1.7.12.1  christos   ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path.
   5515  1.1.1.7.12.1  christos   ;;
   5516  1.1.1.7.12.1  christos   *)
   5517  1.1.1.7.12.1  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   5518  1.1.1.7.12.1  christos ac_dummy="$PATH"
   5519  1.1.1.7.12.1  christos for ac_dir in $ac_dummy; do
   5520  1.1.1.7.12.1  christos   IFS=$ac_save_IFS
   5521  1.1.1.7.12.1  christos   test -z "$ac_dir" && ac_dir=.
   5522  1.1.1.7.12.1  christos   if $as_executable_p "$ac_dir/$ac_word"; then
   5523  1.1.1.7.12.1  christos    ac_cv_path_cf_man2html="$ac_dir/$ac_word"
   5524  1.1.1.7.12.1  christos    echo "$as_me:5524: found $ac_dir/$ac_word" >&5
   5525  1.1.1.7.12.1  christos    break
   5526  1.1.1.7.12.1  christos fi
   5527  1.1.1.7.12.1  christos done
   5528  1.1.1.7.12.1  christos 
   5529  1.1.1.7.12.1  christos   test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no"
   5530  1.1.1.7.12.1  christos   ;;
   5531  1.1.1.7.12.1  christos esac
   5532  1.1.1.7.12.1  christos fi
   5533  1.1.1.7.12.1  christos cf_man2html=$ac_cv_path_cf_man2html
   5534  1.1.1.7.12.1  christos 
   5535  1.1.1.7.12.1  christos if test -n "$cf_man2html"; then
   5536  1.1.1.7.12.1  christos   echo "$as_me:5536: result: $cf_man2html" >&5
   5537  1.1.1.7.12.1  christos echo "${ECHO_T}$cf_man2html" >&6
   5538  1.1.1.7.12.1  christos else
   5539  1.1.1.7.12.1  christos   echo "$as_me:5539: result: no" >&5
   5540  1.1.1.7.12.1  christos echo "${ECHO_T}no" >&6
   5541  1.1.1.7.12.1  christos fi
   5542  1.1.1.7.12.1  christos 
   5543  1.1.1.7.12.1  christos 	case "x$cf_man2html" in
   5544  1.1.1.7.12.1  christos 	(x/*)
   5545  1.1.1.7.12.1  christos 		echo "$as_me:5545: checking for the modified Earl Hood script" >&5
   5546  1.1.1.7.12.1  christos echo $ECHO_N "checking for the modified Earl Hood script... $ECHO_C" >&6
   5547  1.1.1.7.12.1  christos 		if ( $cf_man2html -help 2>&1 | grep 'Make an index of headers at the end' >/dev/null )
   5548  1.1.1.7.12.1  christos 		then
   5549  1.1.1.7.12.1  christos 			cf_man2html_ok=yes
   5550  1.1.1.7.12.1  christos 		else
   5551  1.1.1.7.12.1  christos 			cf_man2html=no
   5552  1.1.1.7.12.1  christos 			cf_man2html_ok=no
   5553  1.1.1.7.12.1  christos 		fi
   5554  1.1.1.7.12.1  christos 		echo "$as_me:5554: result: $cf_man2html_ok" >&5
   5555  1.1.1.7.12.1  christos echo "${ECHO_T}$cf_man2html_ok" >&6
   5556  1.1.1.7.12.1  christos 		;;
   5557  1.1.1.7.12.1  christos 	(*)
   5558  1.1.1.7.12.1  christos 		cf_man2html=no
   5559  1.1.1.7.12.1  christos 		;;
   5560  1.1.1.7.12.1  christos 	esac
   5561  1.1.1.7.12.1  christos esac
   5562  1.1.1.7.12.1  christos 
   5563  1.1.1.7.12.1  christos echo "$as_me:5563: checking for program to convert manpage to html" >&5
   5564       1.1.1.6  christos echo $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6
   5565       1.1.1.6  christos 
   5566       1.1.1.6  christos # Check whether --with-man2html or --without-man2html was given.
   5567       1.1.1.6  christos if test "${with_man2html+set}" = set; then
   5568       1.1.1.6  christos   withval="$with_man2html"
   5569       1.1.1.6  christos   cf_man2html=$withval
   5570       1.1.1.6  christos else
   5571  1.1.1.7.12.1  christos   cf_man2html=$cf_man2html
   5572       1.1.1.6  christos fi;
   5573       1.1.1.6  christos 
   5574       1.1.1.6  christos cf_with_groff=no
   5575       1.1.1.6  christos 
   5576       1.1.1.6  christos case $cf_man2html in
   5577       1.1.1.6  christos (yes)
   5578  1.1.1.7.12.1  christos 	echo "$as_me:5578: result: man2html" >&5
   5579       1.1.1.6  christos echo "${ECHO_T}man2html" >&6
   5580       1.1.1.6  christos 	# Extract the first word of "man2html", so it can be a program name with args.
   5581       1.1.1.6  christos set dummy man2html; ac_word=$2
   5582  1.1.1.7.12.1  christos echo "$as_me:5582: checking for $ac_word" >&5
   5583       1.1.1.6  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5584       1.1.1.6  christos if test "${ac_cv_path_cf_man2html+set}" = set; then
   5585       1.1.1.6  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5586       1.1.1.6  christos else
   5587       1.1.1.6  christos   case $cf_man2html in
   5588       1.1.1.6  christos   [\\/]* | ?:[\\/]*)
   5589       1.1.1.6  christos   ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path.
   5590       1.1.1.6  christos   ;;
   5591       1.1.1.6  christos   *)
   5592       1.1.1.6  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   5593       1.1.1.6  christos ac_dummy="$PATH"
   5594       1.1.1.6  christos for ac_dir in $ac_dummy; do
   5595       1.1.1.6  christos   IFS=$ac_save_IFS
   5596       1.1.1.6  christos   test -z "$ac_dir" && ac_dir=.
   5597       1.1.1.6  christos   if $as_executable_p "$ac_dir/$ac_word"; then
   5598       1.1.1.6  christos    ac_cv_path_cf_man2html="$ac_dir/$ac_word"
   5599  1.1.1.7.12.1  christos    echo "$as_me:5599: found $ac_dir/$ac_word" >&5
   5600       1.1.1.6  christos    break
   5601       1.1.1.6  christos fi
   5602       1.1.1.6  christos done
   5603       1.1.1.6  christos 
   5604       1.1.1.6  christos   test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no"
   5605       1.1.1.6  christos   ;;
   5606       1.1.1.6  christos esac
   5607       1.1.1.6  christos fi
   5608       1.1.1.6  christos cf_man2html=$ac_cv_path_cf_man2html
   5609       1.1.1.6  christos 
   5610       1.1.1.6  christos if test -n "$cf_man2html"; then
   5611  1.1.1.7.12.1  christos   echo "$as_me:5611: result: $cf_man2html" >&5
   5612       1.1.1.6  christos echo "${ECHO_T}$cf_man2html" >&6
   5613       1.1.1.6  christos else
   5614  1.1.1.7.12.1  christos   echo "$as_me:5614: result: no" >&5
   5615       1.1.1.6  christos echo "${ECHO_T}no" >&6
   5616       1.1.1.6  christos fi
   5617       1.1.1.6  christos 
   5618       1.1.1.6  christos 	;;
   5619       1.1.1.6  christos (no|groff|*/groff*)
   5620       1.1.1.6  christos 	cf_with_groff=yes
   5621       1.1.1.6  christos 	cf_man2html=$GROFF_PATH
   5622  1.1.1.7.12.1  christos 	echo "$as_me:5622: result: $cf_man2html" >&5
   5623       1.1.1.6  christos echo "${ECHO_T}$cf_man2html" >&6
   5624       1.1.1.6  christos 	;;
   5625       1.1.1.6  christos (*)
   5626  1.1.1.7.12.1  christos 	echo "$as_me:5626: result: $cf_man2html" >&5
   5627       1.1.1.6  christos echo "${ECHO_T}$cf_man2html" >&6
   5628       1.1.1.6  christos 	;;
   5629       1.1.1.6  christos esac
   5630       1.1.1.6  christos 
   5631       1.1.1.6  christos MAN2HTML_TEMP="man2html.tmp"
   5632       1.1.1.6  christos 	cat >$MAN2HTML_TEMP <<CF_EOF
   5633       1.1.1.7  christos #!$SHELL
   5634       1.1.1.6  christos # Temporary script generated by CF_WITH_MAN2HTML
   5635       1.1.1.6  christos # Convert inputs to html, sending result to standard output.
   5636       1.1.1.6  christos #
   5637       1.1.1.6  christos # Parameters:
   5638       1.1.1.6  christos # \${1} = rootname of file to convert
   5639       1.1.1.6  christos # \${2} = suffix of file to convert, e.g., "1"
   5640       1.1.1.6  christos # \${3} = macros to use, e.g., "man"
   5641       1.1.1.6  christos #
   5642       1.1.1.6  christos ROOT=\$1
   5643       1.1.1.6  christos TYPE=\$2
   5644       1.1.1.6  christos MACS=\$3
   5645       1.1.1.6  christos 
   5646       1.1.1.6  christos unset LANG
   5647       1.1.1.6  christos unset LC_ALL
   5648       1.1.1.6  christos unset LC_CTYPE
   5649       1.1.1.6  christos unset LANGUAGE
   5650       1.1.1.6  christos GROFF_NO_SGR=stupid
   5651       1.1.1.6  christos export GROFF_NO_SGR
   5652       1.1.1.6  christos 
   5653       1.1.1.6  christos CF_EOF
   5654       1.1.1.6  christos 
   5655       1.1.1.6  christos if test "x$cf_with_groff" = xyes
   5656       1.1.1.6  christos then
   5657       1.1.1.6  christos 	MAN2HTML_NOTE="$GROFF_NOTE"
   5658       1.1.1.6  christos 	MAN2HTML_PATH="$GROFF_PATH"
   5659       1.1.1.6  christos 	cat >>$MAN2HTML_TEMP <<CF_EOF
   5660  1.1.1.7.12.1  christos $SHELL -c "$TBL_PATH \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MACS}"
   5661       1.1.1.6  christos CF_EOF
   5662       1.1.1.6  christos else
   5663       1.1.1.6  christos 	MAN2HTML_NOTE=""
   5664       1.1.1.6  christos 
   5665       1.1.1.6  christos if test "x$prefix" != xNONE; then
   5666       1.1.1.6  christos 	cf_path_syntax="$prefix"
   5667       1.1.1.6  christos else
   5668       1.1.1.6  christos 	cf_path_syntax="$ac_default_prefix"
   5669       1.1.1.6  christos fi
   5670       1.1.1.6  christos 
   5671       1.1.1.6  christos case ".$cf_man2html" in
   5672       1.1.1.6  christos (.\$\(*\)*|.\'*\'*)
   5673       1.1.1.6  christos 	;;
   5674       1.1.1.6  christos (..|./*|.\\*)
   5675       1.1.1.6  christos 	;;
   5676       1.1.1.6  christos (.[a-zA-Z]:[\\/]*) # OS/2 EMX
   5677       1.1.1.6  christos 	;;
   5678       1.1.1.6  christos (.\${*prefix}*|.\${*dir}*)
   5679       1.1.1.6  christos 	eval cf_man2html="$cf_man2html"
   5680       1.1.1.6  christos 	case ".$cf_man2html" in
   5681       1.1.1.6  christos 	(.NONE/*)
   5682       1.1.1.6  christos 		cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%`
   5683       1.1.1.6  christos 		;;
   5684       1.1.1.6  christos 	esac
   5685       1.1.1.6  christos 	;;
   5686       1.1.1.6  christos (.no|.NONE/*)
   5687       1.1.1.6  christos 	cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%`
   5688       1.1.1.6  christos 	;;
   5689       1.1.1.6  christos (*)
   5690  1.1.1.7.12.1  christos 	{ { echo "$as_me:5690: error: expected a pathname, not \"$cf_man2html\"" >&5
   5691       1.1.1.6  christos echo "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;}
   5692       1.1.1.6  christos    { (exit 1); exit 1; }; }
   5693       1.1.1.6  christos 	;;
   5694       1.1.1.6  christos esac
   5695       1.1.1.6  christos 
   5696       1.1.1.6  christos 	MAN2HTML_PATH="$cf_man2html"
   5697  1.1.1.7.12.1  christos 	echo "$as_me:5697: checking for $cf_man2html top/bottom margins" >&5
   5698       1.1.1.6  christos echo $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6
   5699       1.1.1.6  christos 
   5700       1.1.1.6  christos 	# for this example, expect 3 lines of content, the remainder is head/foot
   5701       1.1.1.6  christos 	cat >conftest.in <<CF_EOF
   5702       1.1.1.6  christos .TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5
   5703       1.1.1.6  christos .SH SECTION
   5704       1.1.1.6  christos MARKER
   5705       1.1.1.6  christos CF_EOF
   5706       1.1.1.6  christos 
   5707  1.1.1.7.12.1  christos 	LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out
   5708       1.1.1.6  christos 
   5709       1.1.1.6  christos 	cf_man2html_1st=`fgrep -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'`
   5710       1.1.1.6  christos 	cf_man2html_top=`expr $cf_man2html_1st - 2`
   5711       1.1.1.6  christos 	cf_man2html_bot=`wc -l conftest.out |sed -e 's/[^0-9]//g'`
   5712       1.1.1.6  christos 	cf_man2html_bot=`expr $cf_man2html_bot - 2 - $cf_man2html_top`
   5713       1.1.1.6  christos 	cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot"
   5714       1.1.1.6  christos 
   5715  1.1.1.7.12.1  christos 	echo "$as_me:5715: result: $cf_man2html_top_bot" >&5
   5716       1.1.1.6  christos echo "${ECHO_T}$cf_man2html_top_bot" >&6
   5717       1.1.1.6  christos 
   5718  1.1.1.7.12.1  christos 	echo "$as_me:5718: checking for pagesize to use" >&5
   5719       1.1.1.6  christos echo $ECHO_N "checking for pagesize to use... $ECHO_C" >&6
   5720       1.1.1.6  christos 	for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
   5721       1.1.1.6  christos 	do
   5722       1.1.1.6  christos 	cat >>conftest.in <<CF_EOF
   5723       1.1.1.6  christos .nf
   5724       1.1.1.6  christos 0
   5725       1.1.1.6  christos 1
   5726       1.1.1.6  christos 2
   5727       1.1.1.6  christos 3
   5728       1.1.1.6  christos 4
   5729       1.1.1.6  christos 5
   5730       1.1.1.6  christos 6
   5731       1.1.1.6  christos 7
   5732       1.1.1.6  christos 8
   5733       1.1.1.6  christos 9
   5734       1.1.1.6  christos CF_EOF
   5735       1.1.1.6  christos 	done
   5736       1.1.1.6  christos 
   5737  1.1.1.7.12.1  christos 	LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out
   5738       1.1.1.6  christos 	cf_man2html_page=`fgrep -n HEAD1 conftest.out |tail -n 1 |sed -e 's/^[^0-9]*://' -e 's/:.*//'`
   5739       1.1.1.6  christos 	test -z "$cf_man2html_page" && cf_man2html_page=99999
   5740       1.1.1.6  christos 	test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999
   5741       1.1.1.6  christos 
   5742       1.1.1.6  christos 	rm -rf conftest*
   5743  1.1.1.7.12.1  christos 	echo "$as_me:5743: result: $cf_man2html_page" >&5
   5744       1.1.1.6  christos echo "${ECHO_T}$cf_man2html_page" >&6
   5745       1.1.1.6  christos 
   5746       1.1.1.6  christos 	cat >>$MAN2HTML_TEMP <<CF_EOF
   5747       1.1.1.6  christos : \${MAN2HTML_PATH=$MAN2HTML_PATH}
   5748       1.1.1.6  christos MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title="\$ROOT\(\$TYPE\)" -compress -pgsize $cf_man2html_page"
   5749       1.1.1.6  christos case \${TYPE} in
   5750       1.1.1.6  christos (ms)
   5751  1.1.1.7.12.1  christos 	$TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0 \$MAN2HTML_OPTS
   5752       1.1.1.6  christos 	;;
   5753       1.1.1.6  christos (*)
   5754  1.1.1.7.12.1  christos 	$TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH -\${MACS} | \$MAN2HTML_PATH $cf_man2html_top_bot \$MAN2HTML_OPTS
   5755       1.1.1.6  christos 	;;
   5756       1.1.1.6  christos esac
   5757       1.1.1.6  christos CF_EOF
   5758       1.1.1.6  christos fi
   5759       1.1.1.6  christos 
   5760       1.1.1.6  christos chmod 700 $MAN2HTML_TEMP
   5761       1.1.1.6  christos 
   5762  1.1.1.7.12.1  christos echo "$as_me:5762: checking for ANSI C header files" >&5
   5763       1.1.1.5  christos echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
   5764       1.1.1.5  christos if test "${ac_cv_header_stdc+set}" = set; then
   5765       1.1.1.5  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5766       1.1.1.5  christos else
   5767       1.1.1.5  christos   cat >conftest.$ac_ext <<_ACEOF
   5768  1.1.1.7.12.1  christos #line 5768 "configure"
   5769       1.1.1.5  christos #include "confdefs.h"
   5770       1.1.1.5  christos #include <stdlib.h>
   5771       1.1.1.5  christos #include <stdarg.h>
   5772       1.1.1.5  christos #include <string.h>
   5773       1.1.1.5  christos #include <float.h>
   5774       1.1.1.5  christos 
   5775       1.1.1.5  christos _ACEOF
   5776  1.1.1.7.12.1  christos if { (eval echo "$as_me:5776: \"$ac_cpp conftest.$ac_ext\"") >&5
   5777       1.1.1.5  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   5778       1.1.1.5  christos   ac_status=$?
   5779       1.1.1.5  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   5780       1.1.1.5  christos   rm -f conftest.er1
   5781       1.1.1.5  christos   cat conftest.err >&5
   5782  1.1.1.7.12.1  christos   echo "$as_me:5782: \$? = $ac_status" >&5
   5783       1.1.1.5  christos   (exit $ac_status); } >/dev/null; then
   5784       1.1.1.5  christos   if test -s conftest.err; then
   5785       1.1.1.5  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   5786       1.1.1.5  christos   else
   5787       1.1.1.5  christos     ac_cpp_err=
   5788       1.1.1.5  christos   fi
   5789       1.1.1.5  christos else
   5790       1.1.1.5  christos   ac_cpp_err=yes
   5791       1.1.1.5  christos fi
   5792       1.1.1.5  christos if test -z "$ac_cpp_err"; then
   5793       1.1.1.5  christos   ac_cv_header_stdc=yes
   5794       1.1.1.5  christos else
   5795       1.1.1.5  christos   echo "$as_me: failed program was:" >&5
   5796       1.1.1.5  christos   cat conftest.$ac_ext >&5
   5797       1.1.1.5  christos   ac_cv_header_stdc=no
   5798       1.1.1.5  christos fi
   5799       1.1.1.5  christos rm -f conftest.err conftest.$ac_ext
   5800       1.1.1.5  christos 
   5801       1.1.1.5  christos if test $ac_cv_header_stdc = yes; then
   5802       1.1.1.5  christos   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   5803       1.1.1.5  christos   cat >conftest.$ac_ext <<_ACEOF
   5804  1.1.1.7.12.1  christos #line 5804 "configure"
   5805       1.1.1.5  christos #include "confdefs.h"
   5806       1.1.1.5  christos #include <string.h>
   5807       1.1.1.5  christos 
   5808       1.1.1.5  christos _ACEOF
   5809       1.1.1.5  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5810       1.1.1.5  christos   egrep "memchr" >/dev/null 2>&1; then
   5811       1.1.1.5  christos   :
   5812       1.1.1.5  christos else
   5813       1.1.1.5  christos   ac_cv_header_stdc=no
   5814       1.1.1.5  christos fi
   5815       1.1.1.5  christos rm -rf conftest*
   5816       1.1.1.5  christos 
   5817       1.1.1.5  christos fi
   5818       1.1.1.5  christos 
   5819       1.1.1.5  christos if test $ac_cv_header_stdc = yes; then
   5820       1.1.1.5  christos   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   5821       1.1.1.5  christos   cat >conftest.$ac_ext <<_ACEOF
   5822  1.1.1.7.12.1  christos #line 5822 "configure"
   5823       1.1.1.5  christos #include "confdefs.h"
   5824       1.1.1.5  christos #include <stdlib.h>
   5825       1.1.1.5  christos 
   5826       1.1.1.5  christos _ACEOF
   5827       1.1.1.5  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5828       1.1.1.5  christos   egrep "free" >/dev/null 2>&1; then
   5829       1.1.1.5  christos   :
   5830       1.1.1.5  christos else
   5831       1.1.1.5  christos   ac_cv_header_stdc=no
   5832       1.1.1.5  christos fi
   5833       1.1.1.5  christos rm -rf conftest*
   5834       1.1.1.5  christos 
   5835       1.1.1.5  christos fi
   5836       1.1.1.5  christos 
   5837       1.1.1.5  christos if test $ac_cv_header_stdc = yes; then
   5838       1.1.1.5  christos   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   5839       1.1.1.5  christos   if test "$cross_compiling" = yes; then
   5840       1.1.1.5  christos   :
   5841       1.1.1.5  christos else
   5842       1.1.1.5  christos   cat >conftest.$ac_ext <<_ACEOF
   5843  1.1.1.7.12.1  christos #line 5843 "configure"
   5844       1.1.1.5  christos #include "confdefs.h"
   5845       1.1.1.5  christos #include <ctype.h>
   5846       1.1.1.5  christos #if ((' ' & 0x0FF) == 0x020)
   5847       1.1.1.5  christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   5848       1.1.1.5  christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   5849       1.1.1.5  christos #else
   5850       1.1.1.5  christos # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
   5851       1.1.1.5  christos                      || ('j' <= (c) && (c) <= 'r') \
   5852       1.1.1.5  christos                      || ('s' <= (c) && (c) <= 'z'))
   5853       1.1.1.5  christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   5854       1.1.1.5  christos #endif
   5855       1.1.1.5  christos 
   5856       1.1.1.5  christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   5857       1.1.1.5  christos int
   5858  1.1.1.7.12.1  christos main (void)
   5859       1.1.1.5  christos {
   5860       1.1.1.5  christos   int i;
   5861       1.1.1.5  christos   for (i = 0; i < 256; i++)
   5862       1.1.1.5  christos     if (XOR (islower (i), ISLOWER (i))
   5863       1.1.1.5  christos         || toupper (i) != TOUPPER (i))
   5864       1.1.1.5  christos       $ac_main_return(2);
   5865       1.1.1.5  christos   $ac_main_return (0);
   5866       1.1.1.5  christos }
   5867       1.1.1.5  christos _ACEOF
   5868       1.1.1.5  christos rm -f conftest$ac_exeext
   5869  1.1.1.7.12.1  christos if { (eval echo "$as_me:5869: \"$ac_link\"") >&5
   5870       1.1.1.5  christos   (eval $ac_link) 2>&5
   5871       1.1.1.5  christos   ac_status=$?
   5872  1.1.1.7.12.1  christos   echo "$as_me:5872: \$? = $ac_status" >&5
   5873       1.1.1.5  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   5874  1.1.1.7.12.1  christos   { (eval echo "$as_me:5874: \"$ac_try\"") >&5
   5875       1.1.1.5  christos   (eval $ac_try) 2>&5
   5876       1.1.1.5  christos   ac_status=$?
   5877  1.1.1.7.12.1  christos   echo "$as_me:5877: \$? = $ac_status" >&5
   5878       1.1.1.5  christos   (exit $ac_status); }; }; then
   5879       1.1.1.5  christos   :
   5880       1.1.1.5  christos else
   5881       1.1.1.5  christos   echo "$as_me: program exited with status $ac_status" >&5
   5882       1.1.1.5  christos echo "$as_me: failed program was:" >&5
   5883       1.1.1.5  christos cat conftest.$ac_ext >&5
   5884       1.1.1.5  christos ac_cv_header_stdc=no
   5885       1.1.1.5  christos fi
   5886       1.1.1.5  christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   5887       1.1.1.5  christos fi
   5888       1.1.1.5  christos fi
   5889       1.1.1.5  christos fi
   5890  1.1.1.7.12.1  christos echo "$as_me:5890: result: $ac_cv_header_stdc" >&5
   5891       1.1.1.5  christos echo "${ECHO_T}$ac_cv_header_stdc" >&6
   5892       1.1.1.5  christos if test $ac_cv_header_stdc = yes; then
   5893       1.1.1.5  christos 
   5894       1.1.1.5  christos cat >>confdefs.h <<\EOF
   5895       1.1.1.5  christos #define STDC_HEADERS 1
   5896       1.1.1.5  christos EOF
   5897       1.1.1.5  christos 
   5898       1.1.1.5  christos fi
   5899       1.1.1.5  christos 
   5900       1.1.1.5  christos # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   5901       1.1.1.5  christos 
   5902       1.1.1.5  christos for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   5903       1.1.1.5  christos                   inttypes.h stdint.h unistd.h
   5904       1.1.1.5  christos do
   5905       1.1.1.5  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5906  1.1.1.7.12.1  christos echo "$as_me:5906: checking for $ac_header" >&5
   5907       1.1.1.5  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   5908       1.1.1.5  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   5909       1.1.1.5  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5910       1.1.1.5  christos else
   5911       1.1.1.5  christos   cat >conftest.$ac_ext <<_ACEOF
   5912  1.1.1.7.12.1  christos #line 5912 "configure"
   5913       1.1.1.5  christos #include "confdefs.h"
   5914       1.1.1.5  christos $ac_includes_default
   5915       1.1.1.5  christos #include <$ac_header>
   5916       1.1.1.5  christos _ACEOF
   5917       1.1.1.5  christos rm -f conftest.$ac_objext
   5918  1.1.1.7.12.1  christos if { (eval echo "$as_me:5918: \"$ac_compile\"") >&5
   5919       1.1.1.5  christos   (eval $ac_compile) 2>&5
   5920       1.1.1.5  christos   ac_status=$?
   5921  1.1.1.7.12.1  christos   echo "$as_me:5921: \$? = $ac_status" >&5
   5922       1.1.1.5  christos   (exit $ac_status); } &&
   5923       1.1.1.5  christos          { ac_try='test -s conftest.$ac_objext'
   5924  1.1.1.7.12.1  christos   { (eval echo "$as_me:5924: \"$ac_try\"") >&5
   5925       1.1.1.5  christos   (eval $ac_try) 2>&5
   5926       1.1.1.5  christos   ac_status=$?
   5927  1.1.1.7.12.1  christos   echo "$as_me:5927: \$? = $ac_status" >&5
   5928       1.1.1.5  christos   (exit $ac_status); }; }; then
   5929       1.1.1.5  christos   eval "$as_ac_Header=yes"
   5930       1.1.1.5  christos else
   5931       1.1.1.5  christos   echo "$as_me: failed program was:" >&5
   5932       1.1.1.5  christos cat conftest.$ac_ext >&5
   5933       1.1.1.5  christos eval "$as_ac_Header=no"
   5934       1.1.1.5  christos fi
   5935       1.1.1.5  christos rm -f conftest.$ac_objext conftest.$ac_ext
   5936       1.1.1.5  christos fi
   5937  1.1.1.7.12.1  christos echo "$as_me:5937: result: `eval echo '${'$as_ac_Header'}'`" >&5
   5938       1.1.1.5  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   5939       1.1.1.5  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   5940       1.1.1.5  christos   cat >>confdefs.h <<EOF
   5941       1.1.1.5  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5942       1.1.1.5  christos EOF
   5943       1.1.1.5  christos 
   5944       1.1.1.5  christos fi
   5945       1.1.1.5  christos done
   5946       1.1.1.5  christos 
   5947  1.1.1.7.12.1  christos echo "$as_me:5947: checking for mode_t" >&5
   5948       1.1.1.5  christos echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
   5949       1.1.1.5  christos if test "${ac_cv_type_mode_t+set}" = set; then
   5950       1.1.1.5  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5951       1.1.1.5  christos else
   5952       1.1.1.5  christos   cat >conftest.$ac_ext <<_ACEOF
   5953  1.1.1.7.12.1  christos #line 5953 "configure"
   5954       1.1.1.5  christos #include "confdefs.h"
   5955       1.1.1.5  christos $ac_includes_default
   5956       1.1.1.5  christos int
   5957  1.1.1.7.12.1  christos main (void)
   5958       1.1.1.5  christos {
   5959       1.1.1.5  christos if ((mode_t *) 0)
   5960       1.1.1.5  christos   return 0;
   5961       1.1.1.5  christos if (sizeof (mode_t))
   5962       1.1.1.5  christos   return 0;
   5963       1.1.1.5  christos   ;
   5964       1.1.1.5  christos   return 0;
   5965       1.1.1.5  christos }
   5966       1.1.1.5  christos _ACEOF
   5967       1.1.1.5  christos rm -f conftest.$ac_objext
   5968  1.1.1.7.12.1  christos if { (eval echo "$as_me:5968: \"$ac_compile\"") >&5
   5969       1.1.1.5  christos   (eval $ac_compile) 2>&5
   5970       1.1.1.5  christos   ac_status=$?
   5971  1.1.1.7.12.1  christos   echo "$as_me:5971: \$? = $ac_status" >&5
   5972       1.1.1.5  christos   (exit $ac_status); } &&
   5973       1.1.1.5  christos          { ac_try='test -s conftest.$ac_objext'
   5974  1.1.1.7.12.1  christos   { (eval echo "$as_me:5974: \"$ac_try\"") >&5
   5975       1.1.1.5  christos   (eval $ac_try) 2>&5
   5976       1.1.1.5  christos   ac_status=$?
   5977  1.1.1.7.12.1  christos   echo "$as_me:5977: \$? = $ac_status" >&5
   5978       1.1.1.5  christos   (exit $ac_status); }; }; then
   5979       1.1.1.5  christos   ac_cv_type_mode_t=yes
   5980       1.1.1.5  christos else
   5981       1.1.1.5  christos   echo "$as_me: failed program was:" >&5
   5982       1.1.1.5  christos cat conftest.$ac_ext >&5
   5983       1.1.1.5  christos ac_cv_type_mode_t=no
   5984       1.1.1.5  christos fi
   5985       1.1.1.5  christos rm -f conftest.$ac_objext conftest.$ac_ext
   5986       1.1.1.5  christos fi
   5987  1.1.1.7.12.1  christos echo "$as_me:5987: result: $ac_cv_type_mode_t" >&5
   5988       1.1.1.5  christos echo "${ECHO_T}$ac_cv_type_mode_t" >&6
   5989       1.1.1.5  christos if test $ac_cv_type_mode_t = yes; then
   5990       1.1.1.5  christos   :
   5991       1.1.1.5  christos else
   5992       1.1.1.5  christos 
   5993       1.1.1.5  christos cat >>confdefs.h <<EOF
   5994       1.1.1.5  christos #define mode_t int
   5995       1.1.1.5  christos EOF
   5996       1.1.1.5  christos 
   5997       1.1.1.5  christos fi
   5998       1.1.1.5  christos 
   5999           1.1  christos ###	output makefile
   6000           1.1  christos ac_config_files="$ac_config_files makefile"
   6001           1.1  christos cat >confcache <<\_ACEOF
   6002           1.1  christos # This file is a shell script that caches the results of configure
   6003           1.1  christos # tests run on this system so they can be shared between configure
   6004           1.1  christos # scripts and configure runs, see configure's option --config-cache.
   6005           1.1  christos # It is not useful on other systems.  If it contains results you don't
   6006           1.1  christos # want to keep, you may remove or edit it.
   6007           1.1  christos #
   6008           1.1  christos # config.status only pays attention to the cache file if you give it
   6009           1.1  christos # the --recheck option to rerun configure.
   6010           1.1  christos #
   6011           1.1  christos # `ac_cv_env_foo' variables (set or unset) will be overriden when
   6012           1.1  christos # loading this file, other *unset* `ac_cv_foo' will be assigned the
   6013           1.1  christos # following values.
   6014           1.1  christos 
   6015           1.1  christos _ACEOF
   6016           1.1  christos 
   6017           1.1  christos # The following way of writing the cache mishandles newlines in values,
   6018           1.1  christos # but we know of no workaround that is simple, portable, and efficient.
   6019           1.1  christos # So, don't put newlines in cache variables' values.
   6020           1.1  christos # Ultrix sh set writes to stderr and can't be redirected directly,
   6021           1.1  christos # and sets the high bit in the cache file unless we assign to the vars.
   6022           1.1  christos {
   6023           1.1  christos   (set) 2>&1 |
   6024           1.1  christos     case `(ac_space=' '; set | grep ac_space) 2>&1` in
   6025           1.1  christos     *ac_space=\ *)
   6026           1.1  christos       # `set' does not quote correctly, so add quotes (double-quote
   6027           1.1  christos       # substitution turns \\\\ into \\, and sed turns \\ into \).
   6028           1.1  christos       sed -n \
   6029           1.1  christos         "s/'/'\\\\''/g;
   6030           1.1  christos     	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   6031           1.1  christos       ;;
   6032           1.1  christos     *)
   6033           1.1  christos       # `set' quotes correctly as required by POSIX, so do not add quotes.
   6034           1.1  christos       sed -n \
   6035           1.1  christos         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
   6036           1.1  christos       ;;
   6037           1.1  christos     esac;
   6038           1.1  christos } |
   6039           1.1  christos   sed '
   6040           1.1  christos      t clear
   6041           1.1  christos      : clear
   6042           1.1  christos      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   6043           1.1  christos      t end
   6044           1.1  christos      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   6045           1.1  christos      : end' >>confcache
   6046           1.1  christos if cmp -s $cache_file confcache; then :; else
   6047           1.1  christos   if test -w $cache_file; then
   6048           1.1  christos     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
   6049           1.1  christos     cat confcache >$cache_file
   6050           1.1  christos   else
   6051           1.1  christos     echo "not updating unwritable cache $cache_file"
   6052           1.1  christos   fi
   6053           1.1  christos fi
   6054           1.1  christos rm -f confcache
   6055           1.1  christos 
   6056           1.1  christos test "x$prefix" = xNONE && prefix=$ac_default_prefix
   6057           1.1  christos # Let make expand exec_prefix.
   6058           1.1  christos test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   6059           1.1  christos 
   6060           1.1  christos # VPATH may cause trouble with some makes, so we remove $(srcdir),
   6061           1.1  christos # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   6062           1.1  christos # trailing colons and then remove the whole line if VPATH becomes empty
   6063           1.1  christos # (actually we leave an empty line to preserve line numbers).
   6064           1.1  christos if test "x$srcdir" = x.; then
   6065           1.1  christos   ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
   6066           1.1  christos s/:*\$(srcdir):*/:/;
   6067           1.1  christos s/:*\${srcdir}:*/:/;
   6068           1.1  christos s/:*@srcdir@:*/:/;
   6069           1.1  christos s/^\([^=]*=[ 	]*\):*/\1/;
   6070           1.1  christos s/:*$//;
   6071           1.1  christos s/^[^=]*=[ 	]*$//;
   6072           1.1  christos }'
   6073           1.1  christos fi
   6074           1.1  christos 
   6075           1.1  christos DEFS=-DHAVE_CONFIG_H
   6076           1.1  christos 
   6077           1.1  christos : ${CONFIG_STATUS=./config.status}
   6078           1.1  christos ac_clean_files_save=$ac_clean_files
   6079           1.1  christos ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   6080  1.1.1.7.12.1  christos { echo "$as_me:6080: creating $CONFIG_STATUS" >&5
   6081           1.1  christos echo "$as_me: creating $CONFIG_STATUS" >&6;}
   6082           1.1  christos cat >$CONFIG_STATUS <<_ACEOF
   6083           1.1  christos #! $SHELL
   6084           1.1  christos # Generated automatically by configure.
   6085           1.1  christos # Run this file to recreate the current configuration.
   6086           1.1  christos # Compiler output produced by configure, useful for debugging
   6087           1.1  christos # configure, is in config.log if it exists.
   6088           1.1  christos 
   6089           1.1  christos debug=false
   6090           1.1  christos SHELL=\${CONFIG_SHELL-$SHELL}
   6091           1.1  christos ac_cs_invocation="\$0 \$@"
   6092           1.1  christos 
   6093           1.1  christos _ACEOF
   6094           1.1  christos 
   6095           1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   6096           1.1  christos # Be Bourne compatible
   6097           1.1  christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   6098           1.1  christos   emulate sh
   6099           1.1  christos   NULLCMD=:
   6100           1.1  christos elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
   6101           1.1  christos   set -o posix
   6102           1.1  christos fi
   6103           1.1  christos 
   6104           1.1  christos # Name of the executable.
   6105           1.1  christos as_me=`echo "$0" |sed 's,.*[\\/],,'`
   6106           1.1  christos 
   6107           1.1  christos if expr a : '\(a\)' >/dev/null 2>&1; then
   6108           1.1  christos   as_expr=expr
   6109           1.1  christos else
   6110           1.1  christos   as_expr=false
   6111           1.1  christos fi
   6112           1.1  christos 
   6113           1.1  christos rm -f conf$$ conf$$.exe conf$$.file
   6114           1.1  christos echo >conf$$.file
   6115           1.1  christos if ln -s conf$$.file conf$$ 2>/dev/null; then
   6116           1.1  christos   # We could just check for DJGPP; but this test a) works b) is more generic
   6117           1.1  christos   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
   6118           1.1  christos   if test -f conf$$.exe; then
   6119           1.1  christos     # Don't use ln at all; we don't have any links
   6120           1.1  christos     as_ln_s='cp -p'
   6121           1.1  christos   else
   6122           1.1  christos     as_ln_s='ln -s'
   6123           1.1  christos   fi
   6124           1.1  christos elif ln conf$$.file conf$$ 2>/dev/null; then
   6125           1.1  christos   as_ln_s=ln
   6126           1.1  christos else
   6127           1.1  christos   as_ln_s='cp -p'
   6128           1.1  christos fi
   6129           1.1  christos rm -f conf$$ conf$$.exe conf$$.file
   6130           1.1  christos 
   6131           1.1  christos as_executable_p="test -f"
   6132           1.1  christos 
   6133           1.1  christos # Support unset when possible.
   6134           1.1  christos if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
   6135           1.1  christos   as_unset=unset
   6136           1.1  christos else
   6137           1.1  christos   as_unset=false
   6138           1.1  christos fi
   6139           1.1  christos 
   6140           1.1  christos # NLS nuisances.
   6141           1.1  christos $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
   6142           1.1  christos $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
   6143           1.1  christos $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
   6144           1.1  christos $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
   6145           1.1  christos $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
   6146           1.1  christos $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
   6147           1.1  christos $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
   6148           1.1  christos $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
   6149           1.1  christos 
   6150           1.1  christos # IFS
   6151           1.1  christos # We need space, tab and new line, in precisely that order.
   6152           1.1  christos as_nl='
   6153           1.1  christos '
   6154           1.1  christos IFS=" 	$as_nl"
   6155           1.1  christos 
   6156           1.1  christos # CDPATH.
   6157           1.1  christos $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
   6158           1.1  christos 
   6159           1.1  christos exec 6>&1
   6160           1.1  christos 
   6161           1.1  christos _ACEOF
   6162           1.1  christos 
   6163           1.1  christos # Files that config.status was made for.
   6164           1.1  christos if test -n "$ac_config_files"; then
   6165           1.1  christos   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
   6166           1.1  christos fi
   6167           1.1  christos 
   6168           1.1  christos if test -n "$ac_config_headers"; then
   6169           1.1  christos   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
   6170           1.1  christos fi
   6171           1.1  christos 
   6172           1.1  christos if test -n "$ac_config_links"; then
   6173           1.1  christos   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
   6174           1.1  christos fi
   6175           1.1  christos 
   6176           1.1  christos if test -n "$ac_config_commands"; then
   6177           1.1  christos   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
   6178           1.1  christos fi
   6179           1.1  christos 
   6180           1.1  christos cat >>$CONFIG_STATUS <<\EOF
   6181           1.1  christos 
   6182           1.1  christos ac_cs_usage="\
   6183           1.1  christos \`$as_me' instantiates files from templates according to the
   6184           1.1  christos current configuration.
   6185           1.1  christos 
   6186           1.1  christos Usage: $0 [OPTIONS] [FILE]...
   6187           1.1  christos 
   6188           1.1  christos   -h, --help       print this help, then exit
   6189           1.1  christos   -V, --version    print version number, then exit
   6190           1.1  christos   -d, --debug      don't remove temporary files
   6191           1.1  christos       --recheck    update $as_me by reconfiguring in the same conditions
   6192           1.1  christos   --file=FILE[:TEMPLATE]
   6193           1.1  christos                    instantiate the configuration file FILE
   6194           1.1  christos   --header=FILE[:TEMPLATE]
   6195           1.1  christos                    instantiate the configuration header FILE
   6196           1.1  christos 
   6197           1.1  christos Configuration files:
   6198           1.1  christos $config_files
   6199           1.1  christos 
   6200           1.1  christos Configuration headers:
   6201           1.1  christos $config_headers
   6202           1.1  christos 
   6203       1.1.1.3  christos Report bugs to <dickey@invisible-island.net>."
   6204           1.1  christos EOF
   6205           1.1  christos 
   6206           1.1  christos cat >>$CONFIG_STATUS <<EOF
   6207           1.1  christos ac_cs_version="\\
   6208           1.1  christos config.status
   6209  1.1.1.7.12.1  christos configured by $0, generated by GNU Autoconf 2.52.20170501,
   6210           1.1  christos   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
   6211           1.1  christos 
   6212           1.1  christos Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
   6213           1.1  christos Free Software Foundation, Inc.
   6214           1.1  christos This config.status script is free software; the Free Software Foundation
   6215           1.1  christos gives unlimited permission to copy, distribute and modify it."
   6216           1.1  christos srcdir=$srcdir
   6217           1.1  christos INSTALL="$INSTALL"
   6218           1.1  christos EOF
   6219           1.1  christos 
   6220           1.1  christos cat >>$CONFIG_STATUS <<\EOF
   6221           1.1  christos # If no file are specified by the user, then we need to provide default
   6222           1.1  christos # value.  By we need to know if files were specified by the user.
   6223           1.1  christos ac_need_defaults=:
   6224           1.1  christos while test $# != 0
   6225           1.1  christos do
   6226           1.1  christos   case $1 in
   6227           1.1  christos   --*=*)
   6228           1.1  christos     ac_option=`expr "x$1" : 'x\([^=]*\)='`
   6229           1.1  christos     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
   6230           1.1  christos     shift
   6231           1.1  christos     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
   6232           1.1  christos     shift
   6233           1.1  christos     ;;
   6234           1.1  christos   -*);;
   6235           1.1  christos   *) # This is not an option, so the user has probably given explicit
   6236           1.1  christos      # arguments.
   6237           1.1  christos      ac_need_defaults=false;;
   6238           1.1  christos   esac
   6239           1.1  christos 
   6240           1.1  christos   case $1 in
   6241           1.1  christos   # Handling of the options.
   6242           1.1  christos EOF
   6243           1.1  christos cat >>$CONFIG_STATUS <<EOF
   6244           1.1  christos   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   6245           1.1  christos     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
   6246           1.1  christos     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
   6247           1.1  christos EOF
   6248           1.1  christos cat >>$CONFIG_STATUS <<\EOF
   6249           1.1  christos   --version | --vers* | -V )
   6250           1.1  christos     echo "$ac_cs_version"; exit 0 ;;
   6251           1.1  christos   --he | --h)
   6252           1.1  christos     # Conflict between --help and --header
   6253  1.1.1.7.12.1  christos     { { echo "$as_me:6253: error: ambiguous option: $1
   6254           1.1  christos Try \`$0 --help' for more information." >&5
   6255           1.1  christos echo "$as_me: error: ambiguous option: $1
   6256           1.1  christos Try \`$0 --help' for more information." >&2;}
   6257           1.1  christos    { (exit 1); exit 1; }; };;
   6258           1.1  christos   --help | --hel | -h )
   6259           1.1  christos     echo "$ac_cs_usage"; exit 0 ;;
   6260           1.1  christos   --debug | --d* | -d )
   6261           1.1  christos     debug=: ;;
   6262           1.1  christos   --file | --fil | --fi | --f )
   6263           1.1  christos     shift
   6264           1.1  christos     CONFIG_FILES="$CONFIG_FILES $1"
   6265           1.1  christos     ac_need_defaults=false;;
   6266           1.1  christos   --header | --heade | --head | --hea )
   6267           1.1  christos     shift
   6268           1.1  christos     CONFIG_HEADERS="$CONFIG_HEADERS $1"
   6269           1.1  christos     ac_need_defaults=false;;
   6270           1.1  christos 
   6271           1.1  christos   # This is an error.
   6272  1.1.1.7.12.1  christos   -*) { { echo "$as_me:6272: error: unrecognized option: $1
   6273           1.1  christos Try \`$0 --help' for more information." >&5
   6274           1.1  christos echo "$as_me: error: unrecognized option: $1
   6275           1.1  christos Try \`$0 --help' for more information." >&2;}
   6276           1.1  christos    { (exit 1); exit 1; }; } ;;
   6277           1.1  christos 
   6278           1.1  christos   *) ac_config_targets="$ac_config_targets $1" ;;
   6279           1.1  christos 
   6280           1.1  christos   esac
   6281           1.1  christos   shift
   6282           1.1  christos done
   6283           1.1  christos 
   6284           1.1  christos exec 5>>config.log
   6285           1.1  christos cat >&5 << _ACEOF
   6286           1.1  christos 
   6287           1.1  christos ## ----------------------- ##
   6288           1.1  christos ## Running config.status.  ##
   6289           1.1  christos ## ----------------------- ##
   6290           1.1  christos 
   6291  1.1.1.7.12.1  christos This file was extended by $as_me 2.52.20170501, executed with
   6292           1.1  christos   CONFIG_FILES    = $CONFIG_FILES
   6293           1.1  christos   CONFIG_HEADERS  = $CONFIG_HEADERS
   6294           1.1  christos   CONFIG_LINKS    = $CONFIG_LINKS
   6295           1.1  christos   CONFIG_COMMANDS = $CONFIG_COMMANDS
   6296           1.1  christos   > $ac_cs_invocation
   6297           1.1  christos on `(hostname || uname -n) 2>/dev/null | sed 1q`
   6298           1.1  christos 
   6299           1.1  christos _ACEOF
   6300           1.1  christos EOF
   6301           1.1  christos 
   6302           1.1  christos cat >>$CONFIG_STATUS <<\EOF
   6303           1.1  christos for ac_config_target in $ac_config_targets
   6304           1.1  christos do
   6305           1.1  christos   case "$ac_config_target" in
   6306           1.1  christos   # Handling of arguments.
   6307           1.1  christos   "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
   6308           1.1  christos   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
   6309  1.1.1.7.12.1  christos   *) { { echo "$as_me:6309: error: invalid argument: $ac_config_target" >&5
   6310           1.1  christos echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   6311           1.1  christos    { (exit 1); exit 1; }; };;
   6312           1.1  christos   esac
   6313           1.1  christos done
   6314           1.1  christos 
   6315           1.1  christos # If the user did not use the arguments to specify the items to instantiate,
   6316           1.1  christos # then the envvar interface is used.  Set only those that are not.
   6317           1.1  christos # We use the long form for the default assignment because of an extremely
   6318           1.1  christos # bizarre bug on SunOS 4.1.3.
   6319           1.1  christos if $ac_need_defaults; then
   6320           1.1  christos   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   6321           1.1  christos   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   6322           1.1  christos fi
   6323           1.1  christos 
   6324           1.1  christos # Create a temporary directory, and hook for its removal unless debugging.
   6325           1.1  christos $debug ||
   6326           1.1  christos {
   6327           1.1  christos   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
   6328           1.1  christos   trap '{ (exit 1); exit 1; }' 1 2 13 15
   6329           1.1  christos }
   6330           1.1  christos 
   6331           1.1  christos # Create a (secure) tmp directory for tmp files.
   6332           1.1  christos : ${TMPDIR=/tmp}
   6333           1.1  christos {
   6334           1.1  christos   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
   6335           1.1  christos   test -n "$tmp" && test -d "$tmp"
   6336           1.1  christos }  ||
   6337           1.1  christos {
   6338           1.1  christos   tmp=$TMPDIR/cs$$-$RANDOM
   6339           1.1  christos   (umask 077 && mkdir $tmp)
   6340           1.1  christos } ||
   6341           1.1  christos {
   6342           1.1  christos    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   6343           1.1  christos    { (exit 1); exit 1; }
   6344           1.1  christos }
   6345           1.1  christos 
   6346           1.1  christos EOF
   6347           1.1  christos 
   6348           1.1  christos cat >>$CONFIG_STATUS <<EOF
   6349           1.1  christos 
   6350           1.1  christos #
   6351           1.1  christos # CONFIG_FILES section.
   6352           1.1  christos #
   6353           1.1  christos 
   6354           1.1  christos # No need to generate the scripts if there are no CONFIG_FILES.
   6355           1.1  christos # This happens for instance when ./config.status config.h
   6356           1.1  christos if test -n "\$CONFIG_FILES"; then
   6357           1.1  christos   # Protect against being on the right side of a sed subst in config.status.
   6358           1.1  christos   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
   6359           1.1  christos    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
   6360           1.1  christos s,@SHELL@,$SHELL,;t t
   6361           1.1  christos s,@exec_prefix@,$exec_prefix,;t t
   6362           1.1  christos s,@prefix@,$prefix,;t t
   6363           1.1  christos s,@program_transform_name@,$program_transform_name,;t t
   6364           1.1  christos s,@bindir@,$bindir,;t t
   6365           1.1  christos s,@sbindir@,$sbindir,;t t
   6366           1.1  christos s,@libexecdir@,$libexecdir,;t t
   6367       1.1.1.4  christos s,@datarootdir@,$datarootdir,;t t
   6368           1.1  christos s,@datadir@,$datadir,;t t
   6369           1.1  christos s,@sysconfdir@,$sysconfdir,;t t
   6370           1.1  christos s,@sharedstatedir@,$sharedstatedir,;t t
   6371           1.1  christos s,@localstatedir@,$localstatedir,;t t
   6372           1.1  christos s,@libdir@,$libdir,;t t
   6373           1.1  christos s,@includedir@,$includedir,;t t
   6374           1.1  christos s,@oldincludedir@,$oldincludedir,;t t
   6375           1.1  christos s,@infodir@,$infodir,;t t
   6376           1.1  christos s,@mandir@,$mandir,;t t
   6377           1.1  christos s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
   6378           1.1  christos s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
   6379           1.1  christos s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
   6380           1.1  christos s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
   6381           1.1  christos s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
   6382           1.1  christos s,@build_alias@,$build_alias,;t t
   6383           1.1  christos s,@host_alias@,$host_alias,;t t
   6384           1.1  christos s,@target_alias@,$target_alias,;t t
   6385           1.1  christos s,@ECHO_C@,$ECHO_C,;t t
   6386           1.1  christos s,@ECHO_N@,$ECHO_N,;t t
   6387           1.1  christos s,@ECHO_T@,$ECHO_T,;t t
   6388           1.1  christos s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
   6389           1.1  christos s,@DEFS@,$DEFS,;t t
   6390           1.1  christos s,@LIBS@,$LIBS,;t t
   6391           1.1  christos s,@build@,$build,;t t
   6392           1.1  christos s,@build_cpu@,$build_cpu,;t t
   6393           1.1  christos s,@build_vendor@,$build_vendor,;t t
   6394           1.1  christos s,@build_os@,$build_os,;t t
   6395           1.1  christos s,@host@,$host,;t t
   6396           1.1  christos s,@host_cpu@,$host_cpu,;t t
   6397           1.1  christos s,@host_vendor@,$host_vendor,;t t
   6398           1.1  christos s,@host_os@,$host_os,;t t
   6399           1.1  christos s,@target@,$target,;t t
   6400           1.1  christos s,@target_cpu@,$target_cpu,;t t
   6401           1.1  christos s,@target_vendor@,$target_vendor,;t t
   6402           1.1  christos s,@target_os@,$target_os,;t t
   6403           1.1  christos s,@CC@,$CC,;t t
   6404           1.1  christos s,@CFLAGS@,$CFLAGS,;t t
   6405           1.1  christos s,@LDFLAGS@,$LDFLAGS,;t t
   6406           1.1  christos s,@CPPFLAGS@,$CPPFLAGS,;t t
   6407           1.1  christos s,@ac_ct_CC@,$ac_ct_CC,;t t
   6408           1.1  christos s,@EXEEXT@,$EXEEXT,;t t
   6409           1.1  christos s,@OBJEXT@,$OBJEXT,;t t
   6410       1.1.1.4  christos s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
   6411           1.1  christos s,@SET_MAKE@,$SET_MAKE,;t t
   6412           1.1  christos s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
   6413           1.1  christos s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
   6414           1.1  christos s,@INSTALL_DATA@,$INSTALL_DATA,;t t
   6415       1.1.1.2  christos s,@CTAGS@,$CTAGS,;t t
   6416       1.1.1.2  christos s,@ETAGS@,$ETAGS,;t t
   6417       1.1.1.2  christos s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
   6418       1.1.1.2  christos s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
   6419       1.1.1.5  christos s,@AWK@,$AWK,;t t
   6420       1.1.1.2  christos s,@LINT@,$LINT,;t t
   6421       1.1.1.2  christos s,@LINT_OPTS@,$LINT_OPTS,;t t
   6422       1.1.1.3  christos s,@CPP@,$CPP,;t t
   6423       1.1.1.5  christos s,@SKELETON@,$SKELETON,;t t
   6424           1.1  christos s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
   6425           1.1  christos s,@ECHO_LT@,$ECHO_LT,;t t
   6426           1.1  christos s,@ECHO_LD@,$ECHO_LD,;t t
   6427           1.1  christos s,@RULE_CC@,$RULE_CC,;t t
   6428           1.1  christos s,@SHOW_CC@,$SHOW_CC,;t t
   6429           1.1  christos s,@ECHO_CC@,$ECHO_CC,;t t
   6430       1.1.1.6  christos s,@GROFF_PATH@,$GROFF_PATH,;t t
   6431       1.1.1.6  christos s,@NROFF_PATH@,$NROFF_PATH,;t t
   6432  1.1.1.7.12.1  christos s,@TBL_PATH@,$TBL_PATH,;t t
   6433       1.1.1.6  christos s,@GROFF_NOTE@,$GROFF_NOTE,;t t
   6434       1.1.1.6  christos s,@NROFF_NOTE@,$NROFF_NOTE,;t t
   6435       1.1.1.6  christos s,@cf_man2html@,$cf_man2html,;t t
   6436       1.1.1.6  christos s,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t
   6437       1.1.1.6  christos s,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t
   6438       1.1.1.6  christos s,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t
   6439           1.1  christos CEOF
   6440           1.1  christos 
   6441           1.1  christos EOF
   6442           1.1  christos 
   6443           1.1  christos   cat >>$CONFIG_STATUS <<\EOF
   6444           1.1  christos   # Split the substitutions into bite-sized pieces for seds with
   6445           1.1  christos   # small command number limits, like on Digital OSF/1 and HP-UX.
   6446           1.1  christos   ac_max_sed_lines=48
   6447           1.1  christos   ac_sed_frag=1 # Number of current file.
   6448           1.1  christos   ac_beg=1 # First line for current file.
   6449           1.1  christos   ac_end=$ac_max_sed_lines # Line after last line for current file.
   6450           1.1  christos   ac_more_lines=:
   6451           1.1  christos   ac_sed_cmds=
   6452           1.1  christos   while $ac_more_lines; do
   6453           1.1  christos     if test $ac_beg -gt 1; then
   6454           1.1  christos       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   6455           1.1  christos     else
   6456           1.1  christos       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   6457           1.1  christos     fi
   6458           1.1  christos     if test ! -s $tmp/subs.frag; then
   6459           1.1  christos       ac_more_lines=false
   6460           1.1  christos     else
   6461           1.1  christos       # The purpose of the label and of the branching condition is to
   6462           1.1  christos       # speed up the sed processing (if there are no `@' at all, there
   6463           1.1  christos       # is no need to browse any of the substitutions).
   6464           1.1  christos       # These are the two extra sed commands mentioned above.
   6465           1.1  christos       (echo ':t
   6466           1.1  christos   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
   6467       1.1.1.7  christos       # It is possible to make a multiline substitution using escaped newlines.
   6468       1.1.1.7  christos       # Ensure that we do not split the substitution between script fragments.
   6469       1.1.1.7  christos       ac_BEG=$ac_end
   6470       1.1.1.7  christos       ac_END=`expr $ac_end + $ac_max_sed_lines`
   6471       1.1.1.7  christos       sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
   6472       1.1.1.7  christos       if test -s $tmp/subs.next; then
   6473       1.1.1.7  christos         grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
   6474       1.1.1.7  christos         if test ! -s $tmp/subs.edit; then
   6475       1.1.1.7  christos           grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
   6476       1.1.1.7  christos           if test ! -s $tmp/subs.edit; then
   6477       1.1.1.7  christos             if test $ac_beg -gt 1; then
   6478       1.1.1.7  christos               ac_end=`expr $ac_end - 1`
   6479       1.1.1.7  christos               continue
   6480       1.1.1.7  christos             fi
   6481       1.1.1.7  christos           fi
   6482       1.1.1.7  christos         fi
   6483       1.1.1.7  christos       fi
   6484       1.1.1.7  christos 
   6485           1.1  christos       if test -z "$ac_sed_cmds"; then
   6486       1.1.1.7  christos         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
   6487           1.1  christos       else
   6488       1.1.1.7  christos         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
   6489           1.1  christos       fi
   6490           1.1  christos       ac_sed_frag=`expr $ac_sed_frag + 1`
   6491           1.1  christos       ac_beg=$ac_end
   6492           1.1  christos       ac_end=`expr $ac_end + $ac_max_sed_lines`
   6493           1.1  christos     fi
   6494           1.1  christos   done
   6495           1.1  christos   if test -z "$ac_sed_cmds"; then
   6496           1.1  christos     ac_sed_cmds=cat
   6497           1.1  christos   fi
   6498           1.1  christos fi # test -n "$CONFIG_FILES"
   6499           1.1  christos 
   6500           1.1  christos EOF
   6501           1.1  christos cat >>$CONFIG_STATUS <<\EOF
   6502           1.1  christos for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
   6503           1.1  christos   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   6504           1.1  christos   case $ac_file in
   6505           1.1  christos   - | *:- | *:-:* ) # input from stdin
   6506           1.1  christos         cat >$tmp/stdin
   6507           1.1  christos         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   6508           1.1  christos         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   6509           1.1  christos   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   6510           1.1  christos         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   6511           1.1  christos   * )   ac_file_in=$ac_file.in ;;
   6512           1.1  christos   esac
   6513           1.1  christos 
   6514           1.1  christos   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
   6515           1.1  christos   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   6516           1.1  christos          X"$ac_file" : 'X\(//\)[^/]' \| \
   6517           1.1  christos          X"$ac_file" : 'X\(//\)$' \| \
   6518           1.1  christos          X"$ac_file" : 'X\(/\)' \| \
   6519           1.1  christos          .     : '\(.\)' 2>/dev/null ||
   6520           1.1  christos echo X"$ac_file" |
   6521           1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   6522           1.1  christos   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   6523           1.1  christos   	  /^X\(\/\/\)$/{ s//\1/; q; }
   6524           1.1  christos   	  /^X\(\/\).*/{ s//\1/; q; }
   6525           1.1  christos   	  s/.*/./; q'`
   6526           1.1  christos   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
   6527           1.1  christos     { case "$ac_dir" in
   6528           1.1  christos   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
   6529           1.1  christos   *)                      as_incr_dir=.;;
   6530           1.1  christos esac
   6531           1.1  christos as_dummy="$ac_dir"
   6532           1.1  christos for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
   6533           1.1  christos   case $as_mkdir_dir in
   6534           1.1  christos     # Skip DOS drivespec
   6535           1.1  christos     ?:) as_incr_dir=$as_mkdir_dir ;;
   6536           1.1  christos     *)
   6537           1.1  christos       as_incr_dir=$as_incr_dir/$as_mkdir_dir
   6538           1.1  christos       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
   6539           1.1  christos     ;;
   6540           1.1  christos   esac
   6541           1.1  christos done; }
   6542           1.1  christos 
   6543           1.1  christos     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
   6544           1.1  christos     # A "../" for each directory in $ac_dir_suffix.
   6545           1.1  christos     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
   6546           1.1  christos   else
   6547           1.1  christos     ac_dir_suffix= ac_dots=
   6548           1.1  christos   fi
   6549           1.1  christos 
   6550           1.1  christos   case $srcdir in
   6551           1.1  christos   .)  ac_srcdir=.
   6552           1.1  christos       if test -z "$ac_dots"; then
   6553           1.1  christos          ac_top_srcdir=.
   6554           1.1  christos       else
   6555           1.1  christos          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
   6556           1.1  christos       fi ;;
   6557           1.1  christos   [\\/]* | ?:[\\/]* )
   6558           1.1  christos       ac_srcdir=$srcdir$ac_dir_suffix;
   6559           1.1  christos       ac_top_srcdir=$srcdir ;;
   6560           1.1  christos   *) # Relative path.
   6561           1.1  christos     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
   6562           1.1  christos     ac_top_srcdir=$ac_dots$srcdir ;;
   6563           1.1  christos   esac
   6564           1.1  christos 
   6565           1.1  christos   case $INSTALL in
   6566           1.1  christos   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   6567           1.1  christos   *) ac_INSTALL=$ac_dots$INSTALL ;;
   6568           1.1  christos   esac
   6569           1.1  christos 
   6570           1.1  christos   if test x"$ac_file" != x-; then
   6571  1.1.1.7.12.1  christos     { echo "$as_me:6571: creating $ac_file" >&5
   6572           1.1  christos echo "$as_me: creating $ac_file" >&6;}
   6573           1.1  christos     rm -f "$ac_file"
   6574           1.1  christos   fi
   6575           1.1  christos   # Let's still pretend it is `configure' which instantiates (i.e., don't
   6576           1.1  christos   # use $as_me), people would be surprised to read:
   6577           1.1  christos   #    /* config.h.  Generated automatically by config.status.  */
   6578           1.1  christos   configure_input="Generated automatically from `echo $ac_file_in |
   6579           1.1  christos                                                  sed 's,.*/,,'` by configure."
   6580           1.1  christos 
   6581           1.1  christos   # First look for the input files in the build tree, otherwise in the
   6582           1.1  christos   # src tree.
   6583           1.1  christos   ac_file_inputs=`IFS=:
   6584           1.1  christos     for f in $ac_file_in; do
   6585           1.1  christos       case $f in
   6586           1.1  christos       -) echo $tmp/stdin ;;
   6587           1.1  christos       [\\/$]*)
   6588           1.1  christos          # Absolute (can't be DOS-style, as IFS=:)
   6589  1.1.1.7.12.1  christos          test -f "$f" || { { echo "$as_me:6589: error: cannot find input file: $f" >&5
   6590           1.1  christos echo "$as_me: error: cannot find input file: $f" >&2;}
   6591           1.1  christos    { (exit 1); exit 1; }; }
   6592           1.1  christos          echo $f;;
   6593           1.1  christos       *) # Relative
   6594           1.1  christos          if test -f "$f"; then
   6595           1.1  christos            # Build tree
   6596           1.1  christos            echo $f
   6597           1.1  christos          elif test -f "$srcdir/$f"; then
   6598           1.1  christos            # Source tree
   6599           1.1  christos            echo $srcdir/$f
   6600           1.1  christos          else
   6601           1.1  christos            # /dev/null tree
   6602  1.1.1.7.12.1  christos            { { echo "$as_me:6602: error: cannot find input file: $f" >&5
   6603           1.1  christos echo "$as_me: error: cannot find input file: $f" >&2;}
   6604           1.1  christos    { (exit 1); exit 1; }; }
   6605           1.1  christos          fi;;
   6606           1.1  christos       esac
   6607           1.1  christos     done` || { (exit 1); exit 1; }
   6608           1.1  christos EOF
   6609       1.1.1.4  christos cat >>$CONFIG_STATUS <<\EOF
   6610       1.1.1.4  christos   ac_warn_datarootdir=no
   6611       1.1.1.4  christos   if test x"$ac_file" != x-; then
   6612       1.1.1.4  christos     for ac_item in $ac_file_inputs
   6613       1.1.1.4  christos     do
   6614       1.1.1.4  christos       ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
   6615       1.1.1.4  christos       if test -n "$ac_seen"; then
   6616       1.1.1.4  christos         ac_used=`grep '@datarootdir@' $ac_item`
   6617       1.1.1.4  christos         if test -z "$ac_used"; then
   6618  1.1.1.7.12.1  christos           { echo "$as_me:6618: WARNING: datarootdir was used implicitly but not set:
   6619       1.1.1.4  christos $ac_seen" >&5
   6620       1.1.1.4  christos echo "$as_me: WARNING: datarootdir was used implicitly but not set:
   6621       1.1.1.4  christos $ac_seen" >&2;}
   6622       1.1.1.4  christos           ac_warn_datarootdir=yes
   6623       1.1.1.4  christos         fi
   6624       1.1.1.4  christos       fi
   6625       1.1.1.4  christos       ac_seen=`grep '${datarootdir}' $ac_item`
   6626       1.1.1.4  christos       if test -n "$ac_seen"; then
   6627  1.1.1.7.12.1  christos         { echo "$as_me:6627: WARNING: datarootdir was used explicitly but not set:
   6628       1.1.1.4  christos $ac_seen" >&5
   6629       1.1.1.4  christos echo "$as_me: WARNING: datarootdir was used explicitly but not set:
   6630       1.1.1.4  christos $ac_seen" >&2;}
   6631       1.1.1.4  christos         ac_warn_datarootdir=yes
   6632       1.1.1.4  christos       fi
   6633       1.1.1.4  christos     done
   6634       1.1.1.4  christos   fi
   6635       1.1.1.4  christos 
   6636       1.1.1.4  christos if test "x$ac_warn_datarootdir" = xyes; then
   6637       1.1.1.4  christos   ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
   6638       1.1.1.4  christos fi
   6639       1.1.1.4  christos 
   6640       1.1.1.4  christos EOF
   6641           1.1  christos cat >>$CONFIG_STATUS <<EOF
   6642           1.1  christos   sed "$ac_vpsub
   6643           1.1  christos $extrasub
   6644           1.1  christos EOF
   6645           1.1  christos cat >>$CONFIG_STATUS <<\EOF
   6646           1.1  christos :t
   6647           1.1  christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   6648           1.1  christos s,@configure_input@,$configure_input,;t t
   6649           1.1  christos s,@srcdir@,$ac_srcdir,;t t
   6650           1.1  christos s,@top_srcdir@,$ac_top_srcdir,;t t
   6651           1.1  christos s,@INSTALL@,$ac_INSTALL,;t t
   6652           1.1  christos " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
   6653           1.1  christos   rm -f $tmp/stdin
   6654           1.1  christos   if test x"$ac_file" != x-; then
   6655       1.1.1.4  christos     cp $tmp/out $ac_file
   6656       1.1.1.4  christos 
   6657       1.1.1.4  christos     for ac_name in prefix exec_prefix datarootdir
   6658       1.1.1.4  christos     do
   6659       1.1.1.4  christos         ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
   6660       1.1.1.4  christos         if test -n "$ac_seen"; then
   6661       1.1.1.4  christos             ac_init=`egrep '[ 	]*'$ac_name'[ 	]*=' $ac_file`
   6662       1.1.1.4  christos             if test -z "$ac_init"; then
   6663       1.1.1.4  christos               ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
   6664  1.1.1.7.12.1  christos               { echo "$as_me:6664: WARNING: Variable $ac_name is used but was not set:
   6665       1.1.1.4  christos $ac_seen" >&5
   6666       1.1.1.4  christos echo "$as_me: WARNING: Variable $ac_name is used but was not set:
   6667       1.1.1.4  christos $ac_seen" >&2;}
   6668       1.1.1.4  christos             fi
   6669       1.1.1.4  christos         fi
   6670       1.1.1.4  christos     done
   6671       1.1.1.4  christos     egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
   6672       1.1.1.4  christos     egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
   6673       1.1.1.4  christos     if test -s $tmp/out; then
   6674       1.1.1.4  christos       ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
   6675  1.1.1.7.12.1  christos       { echo "$as_me:6675: WARNING: Some variables may not be substituted:
   6676       1.1.1.4  christos $ac_seen" >&5
   6677       1.1.1.4  christos echo "$as_me: WARNING: Some variables may not be substituted:
   6678       1.1.1.4  christos $ac_seen" >&2;}
   6679       1.1.1.4  christos     fi
   6680           1.1  christos   else
   6681           1.1  christos     cat $tmp/out
   6682           1.1  christos   fi
   6683       1.1.1.4  christos   rm -f $tmp/out
   6684           1.1  christos 
   6685           1.1  christos done
   6686           1.1  christos EOF
   6687           1.1  christos cat >>$CONFIG_STATUS <<\EOF
   6688           1.1  christos 
   6689           1.1  christos #
   6690           1.1  christos # CONFIG_HEADER section.
   6691           1.1  christos #
   6692           1.1  christos 
   6693           1.1  christos # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
   6694           1.1  christos # NAME is the cpp macro being defined and VALUE is the value it is being given.
   6695           1.1  christos #
   6696           1.1  christos # ac_d sets the value in "#define NAME VALUE" lines.
   6697           1.1  christos ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
   6698           1.1  christos ac_dB='[ 	].*$,\1#\2'
   6699           1.1  christos ac_dC=' '
   6700           1.1  christos ac_dD=',;t'
   6701           1.1  christos # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
   6702           1.1  christos ac_iA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
   6703           1.1  christos ac_iB='\([ 	]\),\1#\2define\3'
   6704           1.1  christos ac_iC=' '
   6705           1.1  christos ac_iD='\4,;t'
   6706           1.1  christos # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
   6707           1.1  christos ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
   6708           1.1  christos ac_uB='$,\1#\2define\3'
   6709           1.1  christos ac_uC=' '
   6710           1.1  christos ac_uD=',;t'
   6711           1.1  christos 
   6712           1.1  christos for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
   6713           1.1  christos   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   6714           1.1  christos   case $ac_file in
   6715           1.1  christos   - | *:- | *:-:* ) # input from stdin
   6716           1.1  christos         cat >$tmp/stdin
   6717           1.1  christos         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   6718           1.1  christos         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   6719           1.1  christos   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   6720           1.1  christos         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   6721           1.1  christos   * )   ac_file_in=$ac_file.in ;;
   6722           1.1  christos   esac
   6723           1.1  christos 
   6724  1.1.1.7.12.1  christos   test x"$ac_file" != x- && { echo "$as_me:6724: creating $ac_file" >&5
   6725           1.1  christos echo "$as_me: creating $ac_file" >&6;}
   6726           1.1  christos 
   6727           1.1  christos   # First look for the input files in the build tree, otherwise in the
   6728           1.1  christos   # src tree.
   6729           1.1  christos   ac_file_inputs=`IFS=:
   6730           1.1  christos     for f in $ac_file_in; do
   6731           1.1  christos       case $f in
   6732           1.1  christos       -) echo $tmp/stdin ;;
   6733           1.1  christos       [\\/$]*)
   6734           1.1  christos          # Absolute (can't be DOS-style, as IFS=:)
   6735  1.1.1.7.12.1  christos          test -f "$f" || { { echo "$as_me:6735: error: cannot find input file: $f" >&5
   6736           1.1  christos echo "$as_me: error: cannot find input file: $f" >&2;}
   6737           1.1  christos    { (exit 1); exit 1; }; }
   6738           1.1  christos          echo $f;;
   6739           1.1  christos       *) # Relative
   6740           1.1  christos          if test -f "$f"; then
   6741           1.1  christos            # Build tree
   6742           1.1  christos            echo $f
   6743           1.1  christos          elif test -f "$srcdir/$f"; then
   6744           1.1  christos            # Source tree
   6745           1.1  christos            echo $srcdir/$f
   6746           1.1  christos          else
   6747           1.1  christos            # /dev/null tree
   6748  1.1.1.7.12.1  christos            { { echo "$as_me:6748: error: cannot find input file: $f" >&5
   6749           1.1  christos echo "$as_me: error: cannot find input file: $f" >&2;}
   6750           1.1  christos    { (exit 1); exit 1; }; }
   6751           1.1  christos          fi;;
   6752           1.1  christos       esac
   6753           1.1  christos     done` || { (exit 1); exit 1; }
   6754           1.1  christos   # Remove the trailing spaces.
   6755           1.1  christos   sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
   6756           1.1  christos 
   6757           1.1  christos EOF
   6758           1.1  christos 
   6759       1.1.1.4  christos # Transform confdefs.h into two sed scripts, `conftest.defines' and
   6760       1.1.1.4  christos # `conftest.undefs', that substitutes the proper values into
   6761       1.1.1.4  christos # config.h.in to produce config.h.  The first handles `#define'
   6762       1.1.1.4  christos # templates, and the second `#undef' templates.
   6763       1.1.1.4  christos # And first: Protect against being on the right side of a sed subst in
   6764       1.1.1.4  christos # config.status.  Protect against being in an unquoted here document
   6765       1.1.1.4  christos # in config.status.
   6766       1.1.1.4  christos rm -f conftest.defines conftest.undefs
   6767       1.1.1.4  christos # Using a here document instead of a string reduces the quoting nightmare.
   6768       1.1.1.4  christos # Putting comments in sed scripts is not portable.
   6769       1.1.1.4  christos #
   6770       1.1.1.4  christos # `end' is used to avoid that the second main sed command (meant for
   6771       1.1.1.4  christos # 0-ary CPP macros) applies to n-ary macro definitions.
   6772       1.1.1.4  christos # See the Autoconf documentation for `clear'.
   6773       1.1.1.4  christos cat >confdef2sed.sed <<\EOF
   6774       1.1.1.4  christos s/[\\&,]/\\&/g
   6775       1.1.1.4  christos s,[\\$`],\\&,g
   6776       1.1.1.4  christos t clear
   6777       1.1.1.4  christos : clear
   6778       1.1.1.4  christos s,^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
   6779       1.1.1.4  christos t end
   6780       1.1.1.4  christos s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
   6781       1.1.1.4  christos : end
   6782       1.1.1.4  christos EOF
   6783       1.1.1.4  christos # If some macros were called several times there might be several times
   6784       1.1.1.4  christos # the same #defines, which is useless.  Nevertheless, we may not want to
   6785       1.1.1.4  christos # sort them, since we want the *last* AC-DEFINE to be honored.
   6786       1.1.1.4  christos uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
   6787       1.1.1.4  christos sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
   6788       1.1.1.4  christos sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
   6789       1.1.1.4  christos rm -f confdef2sed.sed
   6790       1.1.1.4  christos 
   6791       1.1.1.4  christos # This sed command replaces #undef with comments.  This is necessary, for
   6792       1.1.1.4  christos # example, in the case of _POSIX_SOURCE, which is predefined and required
   6793       1.1.1.4  christos # on some systems where configure will not decide to define it.
   6794       1.1.1.4  christos cat >>conftest.undefs <<\EOF
   6795       1.1.1.4  christos s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
   6796       1.1.1.4  christos EOF
   6797       1.1.1.4  christos 
   6798       1.1.1.4  christos # Break up conftest.defines because some shells have a limit on the size
   6799       1.1.1.4  christos # of here documents, and old seds have small limits too (100 cmds).
   6800       1.1.1.4  christos echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
   6801       1.1.1.4  christos echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
   6802       1.1.1.4  christos echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
   6803       1.1.1.4  christos echo '  :' >>$CONFIG_STATUS
   6804           1.1  christos rm -f conftest.tail
   6805       1.1.1.4  christos while grep . conftest.defines >/dev/null
   6806           1.1  christos do
   6807       1.1.1.4  christos   # Write a limited-size here document to $tmp/defines.sed.
   6808       1.1.1.4  christos   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
   6809       1.1.1.4  christos   # Speed up: don't consider the non `#define' lines.
   6810       1.1.1.4  christos   echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
   6811       1.1.1.4  christos   # Work around the forget-to-reset-the-flag bug.
   6812       1.1.1.4  christos   echo 't clr' >>$CONFIG_STATUS
   6813       1.1.1.4  christos   echo ': clr' >>$CONFIG_STATUS
   6814       1.1.1.4  christos   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
   6815       1.1.1.4  christos   echo 'CEOF
   6816       1.1.1.4  christos   sed -f $tmp/defines.sed $tmp/in >$tmp/out
   6817       1.1.1.4  christos   rm -f $tmp/in
   6818       1.1.1.4  christos   mv $tmp/out $tmp/in
   6819       1.1.1.4  christos ' >>$CONFIG_STATUS
   6820       1.1.1.4  christos   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
   6821       1.1.1.4  christos   rm -f conftest.defines
   6822       1.1.1.4  christos   mv conftest.tail conftest.defines
   6823       1.1.1.4  christos done
   6824       1.1.1.4  christos rm -f conftest.defines
   6825       1.1.1.4  christos echo '  fi # egrep' >>$CONFIG_STATUS
   6826       1.1.1.4  christos echo >>$CONFIG_STATUS
   6827       1.1.1.4  christos 
   6828       1.1.1.4  christos # Break up conftest.undefs because some shells have a limit on the size
   6829       1.1.1.4  christos # of here documents, and old seds have small limits too (100 cmds).
   6830       1.1.1.4  christos echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
   6831       1.1.1.4  christos rm -f conftest.tail
   6832       1.1.1.4  christos while grep . conftest.undefs >/dev/null
   6833       1.1.1.4  christos do
   6834       1.1.1.4  christos   # Write a limited-size here document to $tmp/undefs.sed.
   6835       1.1.1.4  christos   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
   6836       1.1.1.4  christos   # Speed up: don't consider the non `#undef'
   6837       1.1.1.4  christos   echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
   6838       1.1.1.4  christos   # Work around the forget-to-reset-the-flag bug.
   6839       1.1.1.4  christos   echo 't clr' >>$CONFIG_STATUS
   6840       1.1.1.4  christos   echo ': clr' >>$CONFIG_STATUS
   6841       1.1.1.4  christos   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
   6842       1.1.1.4  christos   echo 'CEOF
   6843       1.1.1.4  christos   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
   6844       1.1.1.4  christos   rm -f $tmp/in
   6845       1.1.1.4  christos   mv $tmp/out $tmp/in
   6846       1.1.1.4  christos ' >>$CONFIG_STATUS
   6847       1.1.1.4  christos   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
   6848       1.1.1.4  christos   rm -f conftest.undefs
   6849       1.1.1.4  christos   mv conftest.tail conftest.undefs
   6850       1.1.1.4  christos done
   6851       1.1.1.4  christos rm -f conftest.undefs
   6852           1.1  christos 
   6853           1.1  christos cat >>$CONFIG_STATUS <<\EOF
   6854           1.1  christos   # Let's still pretend it is `configure' which instantiates (i.e., don't
   6855           1.1  christos   # use $as_me), people would be surprised to read:
   6856           1.1  christos   #    /* config.h.  Generated automatically by config.status.  */
   6857           1.1  christos   if test x"$ac_file" = x-; then
   6858           1.1  christos     echo "/* Generated automatically by configure.  */" >$tmp/config.h
   6859           1.1  christos   else
   6860           1.1  christos     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
   6861           1.1  christos   fi
   6862           1.1  christos   cat $tmp/in >>$tmp/config.h
   6863           1.1  christos   rm -f $tmp/in
   6864           1.1  christos   if test x"$ac_file" != x-; then
   6865           1.1  christos     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
   6866  1.1.1.7.12.1  christos       { echo "$as_me:6866: $ac_file is unchanged" >&5
   6867           1.1  christos echo "$as_me: $ac_file is unchanged" >&6;}
   6868           1.1  christos     else
   6869           1.1  christos       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   6870           1.1  christos          X"$ac_file" : 'X\(//\)[^/]' \| \
   6871           1.1  christos          X"$ac_file" : 'X\(//\)$' \| \
   6872           1.1  christos          X"$ac_file" : 'X\(/\)' \| \
   6873           1.1  christos          .     : '\(.\)' 2>/dev/null ||
   6874           1.1  christos echo X"$ac_file" |
   6875           1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   6876           1.1  christos   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   6877           1.1  christos   	  /^X\(\/\/\)$/{ s//\1/; q; }
   6878           1.1  christos   	  /^X\(\/\).*/{ s//\1/; q; }
   6879           1.1  christos   	  s/.*/./; q'`
   6880           1.1  christos       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
   6881           1.1  christos         { case "$ac_dir" in
   6882           1.1  christos   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
   6883           1.1  christos   *)                      as_incr_dir=.;;
   6884           1.1  christos esac
   6885           1.1  christos as_dummy="$ac_dir"
   6886           1.1  christos for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
   6887           1.1  christos   case $as_mkdir_dir in
   6888           1.1  christos     # Skip DOS drivespec
   6889           1.1  christos     ?:) as_incr_dir=$as_mkdir_dir ;;
   6890           1.1  christos     *)
   6891           1.1  christos       as_incr_dir=$as_incr_dir/$as_mkdir_dir
   6892           1.1  christos       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
   6893           1.1  christos     ;;
   6894           1.1  christos   esac
   6895           1.1  christos done; }
   6896           1.1  christos 
   6897           1.1  christos       fi
   6898           1.1  christos       rm -f $ac_file
   6899           1.1  christos       mv $tmp/config.h $ac_file
   6900           1.1  christos     fi
   6901           1.1  christos   else
   6902           1.1  christos     cat $tmp/config.h
   6903           1.1  christos     rm -f $tmp/config.h
   6904           1.1  christos   fi
   6905           1.1  christos done
   6906           1.1  christos EOF
   6907           1.1  christos 
   6908           1.1  christos cat >>$CONFIG_STATUS <<\EOF
   6909           1.1  christos 
   6910           1.1  christos { (exit 0); exit 0; }
   6911           1.1  christos EOF
   6912           1.1  christos chmod +x $CONFIG_STATUS
   6913           1.1  christos ac_clean_files=$ac_clean_files_save
   6914           1.1  christos 
   6915           1.1  christos # configure is writing to config.log, and then calls config.status.
   6916           1.1  christos # config.status does its own redirection, appending to config.log.
   6917           1.1  christos # Unfortunately, on DOS this fails, as config.log is still kept open
   6918           1.1  christos # by configure, so config.status won't be able to write to it; its
   6919           1.1  christos # output is simply discarded.  So we exec the FD to /dev/null,
   6920           1.1  christos # effectively closing config.log, so it can be properly (re)opened and
   6921           1.1  christos # appended to by config.status.  When coming back to configure, we
   6922           1.1  christos # need to make the FD available again.
   6923           1.1  christos if test "$no_create" != yes; then
   6924           1.1  christos   ac_cs_success=:
   6925           1.1  christos   exec 5>/dev/null
   6926           1.1  christos   $SHELL $CONFIG_STATUS || ac_cs_success=false
   6927           1.1  christos   exec 5>>config.log
   6928           1.1  christos   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   6929           1.1  christos   # would make configure fail if this is the last instruction.
   6930           1.1  christos   $ac_cs_success || { (exit 1); exit 1; }
   6931           1.1  christos fi
   6932           1.1  christos 
   6933       1.1.1.5  christos test -z "$cf_make_docs" && cf_make_docs=0
   6934       1.1.1.5  christos 
   6935       1.1.1.5  christos cf_output=makefile
   6936       1.1.1.5  christos test -f "$cf_output" || cf_output=Makefile
   6937       1.1.1.5  christos 
   6938       1.1.1.5  christos if test "$cf_make_docs" = 0
   6939       1.1.1.5  christos then
   6940       1.1.1.6  christos cat >>$cf_output <<CF_EOF
   6941       1.1.1.5  christos ################################################################################
   6942       1.1.1.6  christos ## generated by CF_MAKE_DOCS
   6943       1.1.1.5  christos .SUFFIXES : .html .1 .man .ps .pdf .txt
   6944       1.1.1.5  christos 
   6945       1.1.1.6  christos ${NROFF_NOTE}.1.txt :
   6946       1.1.1.6  christos ${NROFF_NOTE}	\$(SHELL) -c "tbl \$*.1 | nroff -man | col -bx" >\$@
   6947       1.1.1.5  christos 
   6948       1.1.1.6  christos ${GROFF_NOTE}.ps.pdf :
   6949       1.1.1.6  christos ${GROFF_NOTE}	ps2pdf \$*.ps
   6950       1.1.1.6  christos ${GROFF_NOTE}
   6951       1.1.1.6  christos ${GROFF_NOTE}.1.ps :
   6952       1.1.1.6  christos ${GROFF_NOTE}	\$(SHELL) -c "tbl \$*.1 | groff -man" >\$@
   6953       1.1.1.6  christos ${GROFF_NOTE}
   6954       1.1.1.6  christos ${GROFF_NOTE}.1.txt :
   6955       1.1.1.6  christos ${GROFF_NOTE}	GROFF_NO_SGR=stupid \$(SHELL) -c "tbl \$*.1 | nroff -Tascii -man | col -bx" >\$@
   6956       1.1.1.5  christos 
   6957       1.1.1.6  christos ${MAN2HTML_NOTE}.1.html :
   6958       1.1.1.6  christos ${MAN2HTML_NOTE}	./${MAN2HTML_TEMP} \$* 1 man >\$@
   6959       1.1.1.5  christos 
   6960       1.1.1.5  christos CF_EOF
   6961       1.1.1.5  christos 	cf_make_docs=1
   6962       1.1.1.5  christos fi
   6963       1.1.1.5  christos 
   6964       1.1.1.5  christos for cf_name in yacc
   6965       1.1.1.5  christos do
   6966       1.1.1.5  christos cat >>$cf_output <<CF_EOF
   6967       1.1.1.5  christos ################################################################################
   6968       1.1.1.6  christos ${NROFF_NOTE}docs docs-$cf_name :: $cf_name.txt
   6969       1.1.1.6  christos ${MAN2HTML_NOTE}docs docs-$cf_name :: $cf_name.html
   6970       1.1.1.6  christos ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.pdf
   6971       1.1.1.6  christos ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.ps
   6972       1.1.1.6  christos ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.txt
   6973       1.1.1.5  christos 
   6974       1.1.1.5  christos clean \\
   6975       1.1.1.5  christos docs-clean ::
   6976       1.1.1.6  christos ${NROFF_NOTE}	rm -f $cf_name.txt
   6977       1.1.1.6  christos ${MAN2HTML_NOTE}	rm -f $cf_name.html
   6978       1.1.1.6  christos ${GROFF_NOTE}	rm -f $cf_name.pdf
   6979       1.1.1.6  christos ${GROFF_NOTE}	rm -f $cf_name.ps
   6980       1.1.1.6  christos ${GROFF_NOTE}	rm -f $cf_name.txt
   6981       1.1.1.6  christos 
   6982       1.1.1.6  christos ${NROFF_NOTE}$cf_name.txt  : $cf_name.1
   6983       1.1.1.6  christos ${MAN2HTML_NOTE}$cf_name.html : $cf_name.1
   6984       1.1.1.6  christos ${GROFF_NOTE}$cf_name.pdf  : $cf_name.ps
   6985       1.1.1.6  christos ${GROFF_NOTE}$cf_name.ps   : $cf_name.1
   6986       1.1.1.6  christos ${GROFF_NOTE}$cf_name.txt  : $cf_name.1
   6987       1.1.1.5  christos CF_EOF
   6988       1.1.1.5  christos done
   6989       1.1.1.5  christos 
   6990