Home | History | Annotate | Line # | Download | only in dist
configure revision 1.1.1.6.2.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.6.2.1  pgoyette # Generated by Autoconf 2.52.20150926.
      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.6.2.1  pgoyette generated by GNU Autoconf 2.52.20150926.  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  christos main ()
   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  christos main ()
   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  christos main ()
   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  christos main ()
   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  christos main ()
   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  christos main ()
   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  christos main ()
   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.6.2.1  pgoyette (*[\ \	]-*)
   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.6.2.1  pgoyette 	cf_flags=`echo "$CC" | sed -e 's/^.*[ 	]\(-[^ 	]\)/\1/'`
   1959  1.1.1.6.2.1  pgoyette 	CC=`echo "$CC " | sed -e 's/[ 	]-[^ 	].*$//' -e 's/[ 	]*$//'`
   1960  1.1.1.6.2.1  pgoyette 	for cf_arg in $cf_flags
   1961  1.1.1.6.2.1  pgoyette 	do
   1962  1.1.1.6.2.1  pgoyette 		case "x$cf_arg" in
   1963  1.1.1.6.2.1  pgoyette 		(x-[IUDfgOW]*)
   1964          1.1  christos 
   1965      1.1.1.4  christos cf_fix_cppflags=no
   1966      1.1.1.4  christos cf_new_cflags=
   1967      1.1.1.4  christos cf_new_cppflags=
   1968      1.1.1.4  christos cf_new_extra_cppflags=
   1969      1.1.1.4  christos 
   1970      1.1.1.4  christos for cf_add_cflags in $cf_flags
   1971      1.1.1.4  christos do
   1972      1.1.1.4  christos case $cf_fix_cppflags in
   1973      1.1.1.6  christos (no)
   1974      1.1.1.6  christos 	case $cf_add_cflags in
   1975      1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   1976      1.1.1.4  christos 		case $cf_add_cflags in
   1977      1.1.1.6  christos 		(-D*)
   1978      1.1.1.4  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   1979      1.1.1.4  christos 
   1980      1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   1981      1.1.1.4  christos 				&& test -z "${cf_tst_cflags}" \
   1982      1.1.1.4  christos 				&& cf_fix_cppflags=yes
   1983      1.1.1.4  christos 
   1984      1.1.1.4  christos 			if test $cf_fix_cppflags = yes ; then
   1985      1.1.1.4  christos 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   1986      1.1.1.4  christos 				continue
   1987      1.1.1.4  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   1988      1.1.1.4  christos 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   1989      1.1.1.4  christos 				continue
   1990      1.1.1.4  christos 			fi
   1991      1.1.1.4  christos 			;;
   1992      1.1.1.4  christos 		esac
   1993      1.1.1.4  christos 		case "$CPPFLAGS" in
   1994      1.1.1.6  christos 		(*$cf_add_cflags)
   1995      1.1.1.4  christos 			;;
   1996      1.1.1.6  christos 		(*)
   1997      1.1.1.6  christos 			case $cf_add_cflags in
   1998      1.1.1.6  christos 			(-D*)
   1999      1.1.1.4  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   2000      1.1.1.4  christos 
   2001      1.1.1.4  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   2002      1.1.1.4  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   2003      1.1.1.4  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   2004      1.1.1.4  christos 
   2005      1.1.1.4  christos 				;;
   2006      1.1.1.4  christos 			esac
   2007      1.1.1.4  christos 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   2008      1.1.1.4  christos 			;;
   2009      1.1.1.4  christos 		esac
   2010      1.1.1.4  christos 		;;
   2011      1.1.1.6  christos 	(*)
   2012      1.1.1.4  christos 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   2013      1.1.1.4  christos 		;;
   2014      1.1.1.4  christos 	esac
   2015      1.1.1.4  christos 	;;
   2016      1.1.1.6  christos (yes)
   2017      1.1.1.4  christos 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   2018      1.1.1.4  christos 
   2019      1.1.1.4  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   2020      1.1.1.4  christos 
   2021      1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   2022      1.1.1.4  christos 		&& test -z "${cf_tst_cflags}" \
   2023      1.1.1.4  christos 		&& cf_fix_cppflags=no
   2024      1.1.1.4  christos 	;;
   2025      1.1.1.4  christos esac
   2026      1.1.1.4  christos done
   2027      1.1.1.4  christos 
   2028      1.1.1.4  christos if test -n "$cf_new_cflags" ; then
   2029      1.1.1.4  christos 
   2030      1.1.1.4  christos 	CFLAGS="$CFLAGS $cf_new_cflags"
   2031          1.1  christos fi
   2032      1.1.1.4  christos 
   2033      1.1.1.4  christos if test -n "$cf_new_cppflags" ; then
   2034      1.1.1.4  christos 
   2035      1.1.1.4  christos 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   2036          1.1  christos fi
   2037          1.1  christos 
   2038      1.1.1.4  christos if test -n "$cf_new_extra_cppflags" ; then
   2039          1.1  christos 
   2040      1.1.1.4  christos 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   2041          1.1  christos fi
   2042          1.1  christos 
   2043  1.1.1.6.2.1  pgoyette 			;;
   2044  1.1.1.6.2.1  pgoyette 		(*)
   2045  1.1.1.6.2.1  pgoyette 			CC="$CC $cf_arg"
   2046  1.1.1.6.2.1  pgoyette 			;;
   2047  1.1.1.6.2.1  pgoyette 		esac
   2048  1.1.1.6.2.1  pgoyette 	done
   2049  1.1.1.6.2.1  pgoyette 	test -n "$verbose" && echo "	resulting CC: '$CC'" 1>&6
   2050  1.1.1.6.2.1  pgoyette 
   2051  1.1.1.6.2.1  pgoyette echo "${as_me:-configure}:2051: testing resulting CC: '$CC' ..." 1>&5
   2052  1.1.1.6.2.1  pgoyette 
   2053  1.1.1.6.2.1  pgoyette 	test -n "$verbose" && echo "	resulting CFLAGS: '$CFLAGS'" 1>&6
   2054  1.1.1.6.2.1  pgoyette 
   2055  1.1.1.6.2.1  pgoyette echo "${as_me:-configure}:2055: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
   2056  1.1.1.6.2.1  pgoyette 
   2057  1.1.1.6.2.1  pgoyette 	test -n "$verbose" && echo "	resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
   2058  1.1.1.6.2.1  pgoyette 
   2059  1.1.1.6.2.1  pgoyette echo "${as_me:-configure}:2059: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
   2060  1.1.1.6.2.1  pgoyette 
   2061      1.1.1.4  christos 	;;
   2062      1.1.1.6  christos (*)
   2063  1.1.1.6.2.1  pgoyette 	echo "$as_me:2063: result: ok" >&5
   2064      1.1.1.4  christos echo "${ECHO_T}ok" >&6
   2065      1.1.1.4  christos 	;;
   2066      1.1.1.4  christos esac
   2067      1.1.1.4  christos 
   2068  1.1.1.6.2.1  pgoyette echo "$as_me:2068: checking whether ${MAKE-make} sets \${MAKE}" >&5
   2069          1.1  christos echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
   2070          1.1  christos set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
   2071          1.1  christos if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
   2072          1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2073          1.1  christos else
   2074          1.1  christos   cat >conftest.make <<\EOF
   2075          1.1  christos all:
   2076          1.1  christos 	@echo 'ac_maketemp="${MAKE}"'
   2077          1.1  christos EOF
   2078          1.1  christos # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   2079          1.1  christos eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
   2080          1.1  christos if test -n "$ac_maketemp"; then
   2081          1.1  christos   eval ac_cv_prog_make_${ac_make}_set=yes
   2082          1.1  christos else
   2083          1.1  christos   eval ac_cv_prog_make_${ac_make}_set=no
   2084          1.1  christos fi
   2085          1.1  christos rm -f conftest.make
   2086          1.1  christos fi
   2087          1.1  christos if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
   2088  1.1.1.6.2.1  pgoyette   echo "$as_me:2088: result: yes" >&5
   2089          1.1  christos echo "${ECHO_T}yes" >&6
   2090          1.1  christos   SET_MAKE=
   2091          1.1  christos else
   2092  1.1.1.6.2.1  pgoyette   echo "$as_me:2092: result: no" >&5
   2093          1.1  christos echo "${ECHO_T}no" >&6
   2094          1.1  christos   SET_MAKE="MAKE=${MAKE-make}"
   2095          1.1  christos fi
   2096          1.1  christos 
   2097          1.1  christos # Find a good install program.  We prefer a C program (faster),
   2098          1.1  christos # so one script is as good as another.  But avoid the broken or
   2099          1.1  christos # incompatible versions:
   2100          1.1  christos # SysV /etc/install, /usr/sbin/install
   2101          1.1  christos # SunOS /usr/etc/install
   2102          1.1  christos # IRIX /sbin/install
   2103          1.1  christos # AIX /bin/install
   2104          1.1  christos # AmigaOS /C/install, which installs bootblocks on floppy discs
   2105          1.1  christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   2106          1.1  christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   2107          1.1  christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   2108          1.1  christos # ./install, which can be erroneously created by make from ./install.sh.
   2109  1.1.1.6.2.1  pgoyette echo "$as_me:2109: checking for a BSD compatible install" >&5
   2110          1.1  christos echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
   2111          1.1  christos if test -z "$INSTALL"; then
   2112          1.1  christos if test "${ac_cv_path_install+set}" = set; then
   2113          1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2114          1.1  christos else
   2115          1.1  christos     ac_save_IFS=$IFS; IFS=$ac_path_separator
   2116          1.1  christos   for ac_dir in $PATH; do
   2117          1.1  christos     IFS=$ac_save_IFS
   2118          1.1  christos     # Account for people who put trailing slashes in PATH elements.
   2119          1.1  christos     case $ac_dir/ in
   2120          1.1  christos     / | ./ | .// | /cC/* \
   2121          1.1  christos     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
   2122          1.1  christos     | /usr/ucb/* ) ;;
   2123          1.1  christos     *)
   2124          1.1  christos       # OSF1 and SCO ODT 3.0 have their own names for install.
   2125          1.1  christos       # Don't use installbsd from OSF since it installs stuff as root
   2126          1.1  christos       # by default.
   2127          1.1  christos       for ac_prog in ginstall scoinst install; do
   2128          1.1  christos         if $as_executable_p "$ac_dir/$ac_prog"; then
   2129          1.1  christos 	  if test $ac_prog = install &&
   2130          1.1  christos             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
   2131          1.1  christos 	    # AIX install.  It has an incompatible calling convention.
   2132          1.1  christos 	    :
   2133          1.1  christos 	  elif test $ac_prog = install &&
   2134          1.1  christos 	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
   2135          1.1  christos 	    # program-specific install script used by HP pwplus--don't use.
   2136          1.1  christos 	    :
   2137          1.1  christos 	  else
   2138          1.1  christos 	    ac_cv_path_install="$ac_dir/$ac_prog -c"
   2139          1.1  christos 	    break 2
   2140          1.1  christos 	  fi
   2141          1.1  christos 	fi
   2142          1.1  christos       done
   2143          1.1  christos       ;;
   2144          1.1  christos     esac
   2145          1.1  christos   done
   2146          1.1  christos 
   2147          1.1  christos fi
   2148          1.1  christos   if test "${ac_cv_path_install+set}" = set; then
   2149          1.1  christos     INSTALL=$ac_cv_path_install
   2150          1.1  christos   else
   2151          1.1  christos     # As a last resort, use the slow shell script.  We don't cache a
   2152          1.1  christos     # path for INSTALL within a source directory, because that will
   2153          1.1  christos     # break other packages using the cache if that directory is
   2154          1.1  christos     # removed, or if the path is relative.
   2155          1.1  christos     INSTALL=$ac_install_sh
   2156          1.1  christos   fi
   2157          1.1  christos fi
   2158  1.1.1.6.2.1  pgoyette echo "$as_me:2158: result: $INSTALL" >&5
   2159          1.1  christos echo "${ECHO_T}$INSTALL" >&6
   2160          1.1  christos 
   2161          1.1  christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   2162          1.1  christos # It thinks the first close brace ends the variable substitution.
   2163          1.1  christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   2164          1.1  christos 
   2165          1.1  christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   2166          1.1  christos 
   2167          1.1  christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   2168          1.1  christos 
   2169  1.1.1.6.2.1  pgoyette echo "$as_me:2169: checking if filesystem supports mixed-case filenames" >&5
   2170      1.1.1.2  christos echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
   2171      1.1.1.2  christos if test "${cf_cv_mixedcase+set}" = set; then
   2172      1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2173      1.1.1.2  christos else
   2174      1.1.1.2  christos 
   2175      1.1.1.2  christos if test "$cross_compiling" = yes ; then
   2176      1.1.1.6  christos 	case $target_alias in
   2177      1.1.1.6  christos 	(*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
   2178      1.1.1.2  christos 		cf_cv_mixedcase=no
   2179      1.1.1.2  christos 		;;
   2180      1.1.1.6  christos 	(*)
   2181      1.1.1.2  christos 		cf_cv_mixedcase=yes
   2182      1.1.1.2  christos 		;;
   2183      1.1.1.2  christos 	esac
   2184      1.1.1.2  christos else
   2185      1.1.1.2  christos 	rm -f conftest CONFTEST
   2186      1.1.1.2  christos 	echo test >conftest
   2187      1.1.1.2  christos 	if test -f CONFTEST ; then
   2188      1.1.1.2  christos 		cf_cv_mixedcase=no
   2189      1.1.1.2  christos 	else
   2190      1.1.1.2  christos 		cf_cv_mixedcase=yes
   2191      1.1.1.2  christos 	fi
   2192      1.1.1.2  christos 	rm -f conftest CONFTEST
   2193      1.1.1.2  christos fi
   2194      1.1.1.2  christos 
   2195      1.1.1.2  christos fi
   2196  1.1.1.6.2.1  pgoyette echo "$as_me:2196: result: $cf_cv_mixedcase" >&5
   2197      1.1.1.2  christos echo "${ECHO_T}$cf_cv_mixedcase" >&6
   2198      1.1.1.4  christos test "$cf_cv_mixedcase" = yes &&
   2199      1.1.1.4  christos cat >>confdefs.h <<\EOF
   2200      1.1.1.2  christos #define MIXEDCASE_FILENAMES 1
   2201      1.1.1.2  christos EOF
   2202      1.1.1.2  christos 
   2203      1.1.1.2  christos for ac_prog in exctags ctags
   2204      1.1.1.2  christos do
   2205      1.1.1.2  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2206      1.1.1.2  christos set dummy $ac_prog; ac_word=$2
   2207  1.1.1.6.2.1  pgoyette echo "$as_me:2207: checking for $ac_word" >&5
   2208      1.1.1.2  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2209      1.1.1.2  christos if test "${ac_cv_prog_CTAGS+set}" = set; then
   2210      1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2211      1.1.1.2  christos else
   2212      1.1.1.2  christos   if test -n "$CTAGS"; then
   2213      1.1.1.2  christos   ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
   2214      1.1.1.2  christos else
   2215      1.1.1.2  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2216      1.1.1.2  christos ac_dummy="$PATH"
   2217      1.1.1.2  christos for ac_dir in $ac_dummy; do
   2218      1.1.1.2  christos   IFS=$ac_save_IFS
   2219      1.1.1.2  christos   test -z "$ac_dir" && ac_dir=.
   2220      1.1.1.2  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   2221      1.1.1.2  christos ac_cv_prog_CTAGS="$ac_prog"
   2222  1.1.1.6.2.1  pgoyette echo "$as_me:2222: found $ac_dir/$ac_word" >&5
   2223      1.1.1.2  christos break
   2224      1.1.1.2  christos done
   2225      1.1.1.2  christos 
   2226      1.1.1.2  christos fi
   2227      1.1.1.2  christos fi
   2228      1.1.1.2  christos CTAGS=$ac_cv_prog_CTAGS
   2229      1.1.1.2  christos if test -n "$CTAGS"; then
   2230  1.1.1.6.2.1  pgoyette   echo "$as_me:2230: result: $CTAGS" >&5
   2231      1.1.1.2  christos echo "${ECHO_T}$CTAGS" >&6
   2232      1.1.1.2  christos else
   2233  1.1.1.6.2.1  pgoyette   echo "$as_me:2233: result: no" >&5
   2234      1.1.1.2  christos echo "${ECHO_T}no" >&6
   2235      1.1.1.2  christos fi
   2236      1.1.1.2  christos 
   2237      1.1.1.2  christos   test -n "$CTAGS" && break
   2238      1.1.1.2  christos done
   2239      1.1.1.2  christos 
   2240      1.1.1.2  christos for ac_prog in exetags etags
   2241      1.1.1.2  christos do
   2242      1.1.1.2  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2243      1.1.1.2  christos set dummy $ac_prog; ac_word=$2
   2244  1.1.1.6.2.1  pgoyette echo "$as_me:2244: checking for $ac_word" >&5
   2245      1.1.1.2  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2246      1.1.1.2  christos if test "${ac_cv_prog_ETAGS+set}" = set; then
   2247      1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2248      1.1.1.2  christos else
   2249      1.1.1.2  christos   if test -n "$ETAGS"; then
   2250      1.1.1.2  christos   ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
   2251      1.1.1.2  christos else
   2252      1.1.1.2  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2253      1.1.1.2  christos ac_dummy="$PATH"
   2254      1.1.1.2  christos for ac_dir in $ac_dummy; do
   2255      1.1.1.2  christos   IFS=$ac_save_IFS
   2256      1.1.1.2  christos   test -z "$ac_dir" && ac_dir=.
   2257      1.1.1.2  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   2258      1.1.1.2  christos ac_cv_prog_ETAGS="$ac_prog"
   2259  1.1.1.6.2.1  pgoyette echo "$as_me:2259: found $ac_dir/$ac_word" >&5
   2260      1.1.1.2  christos break
   2261      1.1.1.2  christos done
   2262      1.1.1.2  christos 
   2263      1.1.1.2  christos fi
   2264      1.1.1.2  christos fi
   2265      1.1.1.2  christos ETAGS=$ac_cv_prog_ETAGS
   2266      1.1.1.2  christos if test -n "$ETAGS"; then
   2267  1.1.1.6.2.1  pgoyette   echo "$as_me:2267: result: $ETAGS" >&5
   2268      1.1.1.2  christos echo "${ECHO_T}$ETAGS" >&6
   2269      1.1.1.2  christos else
   2270  1.1.1.6.2.1  pgoyette   echo "$as_me:2270: result: no" >&5
   2271      1.1.1.2  christos echo "${ECHO_T}no" >&6
   2272      1.1.1.2  christos fi
   2273      1.1.1.2  christos 
   2274      1.1.1.2  christos   test -n "$ETAGS" && break
   2275      1.1.1.2  christos done
   2276      1.1.1.2  christos 
   2277      1.1.1.3  christos # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
   2278      1.1.1.3  christos set dummy ${CTAGS:-ctags}; ac_word=$2
   2279  1.1.1.6.2.1  pgoyette echo "$as_me:2279: checking for $ac_word" >&5
   2280      1.1.1.2  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2281      1.1.1.2  christos if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
   2282      1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2283      1.1.1.2  christos else
   2284      1.1.1.2  christos   if test -n "$MAKE_LOWER_TAGS"; then
   2285      1.1.1.2  christos   ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
   2286      1.1.1.2  christos else
   2287      1.1.1.2  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2288      1.1.1.2  christos ac_dummy="$PATH"
   2289      1.1.1.2  christos for ac_dir in $ac_dummy; do
   2290      1.1.1.2  christos   IFS=$ac_save_IFS
   2291      1.1.1.2  christos   test -z "$ac_dir" && ac_dir=.
   2292      1.1.1.2  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   2293      1.1.1.2  christos ac_cv_prog_MAKE_LOWER_TAGS="yes"
   2294  1.1.1.6.2.1  pgoyette echo "$as_me:2294: found $ac_dir/$ac_word" >&5
   2295      1.1.1.2  christos break
   2296      1.1.1.2  christos done
   2297      1.1.1.2  christos 
   2298      1.1.1.2  christos   test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
   2299      1.1.1.2  christos fi
   2300      1.1.1.2  christos fi
   2301      1.1.1.2  christos MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
   2302      1.1.1.2  christos if test -n "$MAKE_LOWER_TAGS"; then
   2303  1.1.1.6.2.1  pgoyette   echo "$as_me:2303: result: $MAKE_LOWER_TAGS" >&5
   2304      1.1.1.2  christos echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
   2305      1.1.1.2  christos else
   2306  1.1.1.6.2.1  pgoyette   echo "$as_me:2306: result: no" >&5
   2307      1.1.1.2  christos echo "${ECHO_T}no" >&6
   2308      1.1.1.2  christos fi
   2309      1.1.1.2  christos 
   2310      1.1.1.2  christos if test "$cf_cv_mixedcase" = yes ; then
   2311      1.1.1.3  christos 	# Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
   2312      1.1.1.3  christos set dummy ${ETAGS:-etags}; ac_word=$2
   2313  1.1.1.6.2.1  pgoyette echo "$as_me:2313: checking for $ac_word" >&5
   2314      1.1.1.2  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2315      1.1.1.2  christos if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
   2316      1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2317      1.1.1.2  christos else
   2318      1.1.1.2  christos   if test -n "$MAKE_UPPER_TAGS"; then
   2319      1.1.1.2  christos   ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
   2320      1.1.1.2  christos else
   2321      1.1.1.2  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2322      1.1.1.2  christos ac_dummy="$PATH"
   2323      1.1.1.2  christos for ac_dir in $ac_dummy; do
   2324      1.1.1.2  christos   IFS=$ac_save_IFS
   2325      1.1.1.2  christos   test -z "$ac_dir" && ac_dir=.
   2326      1.1.1.2  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   2327      1.1.1.2  christos ac_cv_prog_MAKE_UPPER_TAGS="yes"
   2328  1.1.1.6.2.1  pgoyette echo "$as_me:2328: found $ac_dir/$ac_word" >&5
   2329      1.1.1.2  christos break
   2330      1.1.1.2  christos done
   2331      1.1.1.2  christos 
   2332      1.1.1.2  christos   test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
   2333      1.1.1.2  christos fi
   2334      1.1.1.2  christos fi
   2335      1.1.1.2  christos MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
   2336      1.1.1.2  christos if test -n "$MAKE_UPPER_TAGS"; then
   2337  1.1.1.6.2.1  pgoyette   echo "$as_me:2337: result: $MAKE_UPPER_TAGS" >&5
   2338      1.1.1.2  christos echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
   2339      1.1.1.2  christos else
   2340  1.1.1.6.2.1  pgoyette   echo "$as_me:2340: result: no" >&5
   2341      1.1.1.2  christos echo "${ECHO_T}no" >&6
   2342      1.1.1.2  christos fi
   2343      1.1.1.2  christos 
   2344      1.1.1.2  christos else
   2345      1.1.1.2  christos 	MAKE_UPPER_TAGS=no
   2346      1.1.1.2  christos fi
   2347      1.1.1.2  christos 
   2348      1.1.1.2  christos if test "$MAKE_UPPER_TAGS" = yes ; then
   2349      1.1.1.2  christos 	MAKE_UPPER_TAGS=
   2350      1.1.1.2  christos else
   2351      1.1.1.2  christos 	MAKE_UPPER_TAGS="#"
   2352      1.1.1.2  christos fi
   2353      1.1.1.2  christos 
   2354      1.1.1.2  christos if test "$MAKE_LOWER_TAGS" = yes ; then
   2355      1.1.1.2  christos 	MAKE_LOWER_TAGS=
   2356      1.1.1.2  christos else
   2357      1.1.1.2  christos 	MAKE_LOWER_TAGS="#"
   2358      1.1.1.2  christos fi
   2359      1.1.1.2  christos 
   2360      1.1.1.5  christos for ac_prog in mawk gawk nawk awk
   2361      1.1.1.5  christos do
   2362      1.1.1.5  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2363      1.1.1.5  christos set dummy $ac_prog; ac_word=$2
   2364  1.1.1.6.2.1  pgoyette echo "$as_me:2364: checking for $ac_word" >&5
   2365      1.1.1.5  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2366      1.1.1.5  christos if test "${ac_cv_prog_AWK+set}" = set; then
   2367      1.1.1.5  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2368      1.1.1.5  christos else
   2369      1.1.1.5  christos   if test -n "$AWK"; then
   2370      1.1.1.5  christos   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   2371      1.1.1.5  christos else
   2372      1.1.1.5  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2373      1.1.1.5  christos ac_dummy="$PATH"
   2374      1.1.1.5  christos for ac_dir in $ac_dummy; do
   2375      1.1.1.5  christos   IFS=$ac_save_IFS
   2376      1.1.1.5  christos   test -z "$ac_dir" && ac_dir=.
   2377      1.1.1.5  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   2378      1.1.1.5  christos ac_cv_prog_AWK="$ac_prog"
   2379  1.1.1.6.2.1  pgoyette echo "$as_me:2379: found $ac_dir/$ac_word" >&5
   2380      1.1.1.5  christos break
   2381      1.1.1.5  christos done
   2382      1.1.1.5  christos 
   2383      1.1.1.5  christos fi
   2384      1.1.1.5  christos fi
   2385      1.1.1.5  christos AWK=$ac_cv_prog_AWK
   2386      1.1.1.5  christos if test -n "$AWK"; then
   2387  1.1.1.6.2.1  pgoyette   echo "$as_me:2387: result: $AWK" >&5
   2388      1.1.1.5  christos echo "${ECHO_T}$AWK" >&6
   2389      1.1.1.5  christos else
   2390  1.1.1.6.2.1  pgoyette   echo "$as_me:2390: result: no" >&5
   2391      1.1.1.5  christos echo "${ECHO_T}no" >&6
   2392      1.1.1.5  christos fi
   2393      1.1.1.5  christos 
   2394      1.1.1.5  christos   test -n "$AWK" && break
   2395      1.1.1.5  christos done
   2396      1.1.1.5  christos 
   2397  1.1.1.6.2.1  pgoyette test -z "$AWK" && { { echo "$as_me:2397: error: No awk program found" >&5
   2398      1.1.1.5  christos echo "$as_me: error: No awk program found" >&2;}
   2399      1.1.1.5  christos    { (exit 1); exit 1; }; }
   2400      1.1.1.5  christos 
   2401  1.1.1.6.2.1  pgoyette for ac_prog in lint cppcheck splint
   2402      1.1.1.2  christos do
   2403      1.1.1.2  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2404      1.1.1.2  christos set dummy $ac_prog; ac_word=$2
   2405  1.1.1.6.2.1  pgoyette echo "$as_me:2405: checking for $ac_word" >&5
   2406      1.1.1.2  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2407      1.1.1.2  christos if test "${ac_cv_prog_LINT+set}" = set; then
   2408      1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2409      1.1.1.2  christos else
   2410      1.1.1.2  christos   if test -n "$LINT"; then
   2411      1.1.1.2  christos   ac_cv_prog_LINT="$LINT" # Let the user override the test.
   2412      1.1.1.2  christos else
   2413      1.1.1.2  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2414      1.1.1.2  christos ac_dummy="$PATH"
   2415      1.1.1.2  christos for ac_dir in $ac_dummy; do
   2416      1.1.1.2  christos   IFS=$ac_save_IFS
   2417      1.1.1.2  christos   test -z "$ac_dir" && ac_dir=.
   2418      1.1.1.2  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   2419      1.1.1.2  christos ac_cv_prog_LINT="$ac_prog"
   2420  1.1.1.6.2.1  pgoyette echo "$as_me:2420: found $ac_dir/$ac_word" >&5
   2421      1.1.1.2  christos break
   2422      1.1.1.2  christos done
   2423      1.1.1.2  christos 
   2424      1.1.1.2  christos fi
   2425      1.1.1.2  christos fi
   2426      1.1.1.2  christos LINT=$ac_cv_prog_LINT
   2427      1.1.1.2  christos if test -n "$LINT"; then
   2428  1.1.1.6.2.1  pgoyette   echo "$as_me:2428: result: $LINT" >&5
   2429      1.1.1.2  christos echo "${ECHO_T}$LINT" >&6
   2430      1.1.1.2  christos else
   2431  1.1.1.6.2.1  pgoyette   echo "$as_me:2431: result: no" >&5
   2432      1.1.1.2  christos echo "${ECHO_T}no" >&6
   2433      1.1.1.2  christos fi
   2434      1.1.1.2  christos 
   2435      1.1.1.2  christos   test -n "$LINT" && break
   2436      1.1.1.2  christos done
   2437      1.1.1.2  christos 
   2438      1.1.1.4  christos cf_XOPEN_SOURCE=500
   2439      1.1.1.4  christos cf_POSIX_C_SOURCE=199506L
   2440      1.1.1.4  christos cf_xopen_source=
   2441      1.1.1.3  christos 
   2442      1.1.1.6  christos case $host_os in
   2443      1.1.1.6  christos (aix[4-7]*)
   2444      1.1.1.4  christos 	cf_xopen_source="-D_ALL_SOURCE"
   2445      1.1.1.3  christos 	;;
   2446  1.1.1.6.2.1  pgoyette (msys)
   2447      1.1.1.4  christos 	cf_XOPEN_SOURCE=600
   2448      1.1.1.3  christos 	;;
   2449      1.1.1.6  christos (darwin[0-8].*)
   2450      1.1.1.4  christos 	cf_xopen_source="-D_APPLE_C_SOURCE"
   2451      1.1.1.3  christos 	;;
   2452      1.1.1.6  christos (darwin*)
   2453      1.1.1.4  christos 	cf_xopen_source="-D_DARWIN_C_SOURCE"
   2454      1.1.1.4  christos 	cf_XOPEN_SOURCE=
   2455      1.1.1.3  christos 	;;
   2456      1.1.1.6  christos (freebsd*|dragonfly*)
   2457      1.1.1.4  christos 	# 5.x headers associate
   2458      1.1.1.4  christos 	#	_XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
   2459      1.1.1.4  christos 	#	_XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
   2460      1.1.1.4  christos 	cf_POSIX_C_SOURCE=200112L
   2461      1.1.1.4  christos 	cf_XOPEN_SOURCE=600
   2462      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"
   2463      1.1.1.4  christos 	;;
   2464      1.1.1.6  christos (hpux11*)
   2465      1.1.1.4  christos 	cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
   2466      1.1.1.4  christos 	;;
   2467      1.1.1.6  christos (hpux*)
   2468      1.1.1.4  christos 	cf_xopen_source="-D_HPUX_SOURCE"
   2469      1.1.1.4  christos 	;;
   2470      1.1.1.6  christos (irix[56].*)
   2471      1.1.1.4  christos 	cf_xopen_source="-D_SGI_SOURCE"
   2472      1.1.1.4  christos 	cf_XOPEN_SOURCE=
   2473      1.1.1.4  christos 	;;
   2474  1.1.1.6.2.1  pgoyette (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
   2475      1.1.1.3  christos 
   2476  1.1.1.6.2.1  pgoyette echo "$as_me:2476: checking if we must define _GNU_SOURCE" >&5
   2477      1.1.1.4  christos echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
   2478      1.1.1.4  christos if test "${cf_cv_gnu_source+set}" = set; then
   2479          1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2480          1.1  christos else
   2481          1.1  christos 
   2482      1.1.1.4  christos cat >conftest.$ac_ext <<_ACEOF
   2483  1.1.1.6.2.1  pgoyette #line 2483 "configure"
   2484      1.1.1.4  christos #include "confdefs.h"
   2485      1.1.1.4  christos #include <sys/types.h>
   2486      1.1.1.4  christos int
   2487      1.1.1.4  christos main ()
   2488      1.1.1.4  christos {
   2489      1.1.1.2  christos 
   2490      1.1.1.4  christos #ifndef _XOPEN_SOURCE
   2491      1.1.1.4  christos make an error
   2492      1.1.1.4  christos #endif
   2493      1.1.1.4  christos   ;
   2494      1.1.1.4  christos   return 0;
   2495      1.1.1.4  christos }
   2496      1.1.1.4  christos _ACEOF
   2497      1.1.1.4  christos rm -f conftest.$ac_objext
   2498  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:2498: \"$ac_compile\"") >&5
   2499      1.1.1.4  christos   (eval $ac_compile) 2>&5
   2500      1.1.1.4  christos   ac_status=$?
   2501  1.1.1.6.2.1  pgoyette   echo "$as_me:2501: \$? = $ac_status" >&5
   2502      1.1.1.4  christos   (exit $ac_status); } &&
   2503      1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   2504  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:2504: \"$ac_try\"") >&5
   2505      1.1.1.4  christos   (eval $ac_try) 2>&5
   2506      1.1.1.4  christos   ac_status=$?
   2507  1.1.1.6.2.1  pgoyette   echo "$as_me:2507: \$? = $ac_status" >&5
   2508      1.1.1.4  christos   (exit $ac_status); }; }; then
   2509      1.1.1.4  christos   cf_cv_gnu_source=no
   2510      1.1.1.4  christos else
   2511      1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   2512      1.1.1.4  christos cat conftest.$ac_ext >&5
   2513      1.1.1.4  christos cf_save="$CPPFLAGS"
   2514      1.1.1.4  christos 	 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
   2515      1.1.1.4  christos 	 cat >conftest.$ac_ext <<_ACEOF
   2516  1.1.1.6.2.1  pgoyette #line 2516 "configure"
   2517      1.1.1.4  christos #include "confdefs.h"
   2518      1.1.1.4  christos #include <sys/types.h>
   2519      1.1.1.4  christos int
   2520      1.1.1.4  christos main ()
   2521      1.1.1.4  christos {
   2522      1.1.1.2  christos 
   2523      1.1.1.4  christos #ifdef _XOPEN_SOURCE
   2524      1.1.1.4  christos make an error
   2525      1.1.1.4  christos #endif
   2526      1.1.1.4  christos   ;
   2527      1.1.1.4  christos   return 0;
   2528      1.1.1.4  christos }
   2529      1.1.1.4  christos _ACEOF
   2530      1.1.1.4  christos rm -f conftest.$ac_objext
   2531  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:2531: \"$ac_compile\"") >&5
   2532      1.1.1.4  christos   (eval $ac_compile) 2>&5
   2533      1.1.1.4  christos   ac_status=$?
   2534  1.1.1.6.2.1  pgoyette   echo "$as_me:2534: \$? = $ac_status" >&5
   2535      1.1.1.4  christos   (exit $ac_status); } &&
   2536      1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   2537  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:2537: \"$ac_try\"") >&5
   2538      1.1.1.4  christos   (eval $ac_try) 2>&5
   2539      1.1.1.4  christos   ac_status=$?
   2540  1.1.1.6.2.1  pgoyette   echo "$as_me:2540: \$? = $ac_status" >&5
   2541      1.1.1.4  christos   (exit $ac_status); }; }; then
   2542      1.1.1.4  christos   cf_cv_gnu_source=no
   2543      1.1.1.4  christos else
   2544      1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   2545      1.1.1.4  christos cat conftest.$ac_ext >&5
   2546      1.1.1.4  christos cf_cv_gnu_source=yes
   2547      1.1.1.4  christos fi
   2548      1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   2549      1.1.1.4  christos 	CPPFLAGS="$cf_save"
   2550      1.1.1.2  christos 
   2551      1.1.1.4  christos fi
   2552      1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   2553      1.1.1.2  christos 
   2554      1.1.1.4  christos fi
   2555  1.1.1.6.2.1  pgoyette echo "$as_me:2555: result: $cf_cv_gnu_source" >&5
   2556      1.1.1.4  christos echo "${ECHO_T}$cf_cv_gnu_source" >&6
   2557  1.1.1.6.2.1  pgoyette 
   2558  1.1.1.6.2.1  pgoyette if test "$cf_cv_gnu_source" = yes
   2559  1.1.1.6.2.1  pgoyette then
   2560  1.1.1.6.2.1  pgoyette echo "$as_me:2560: checking if we should also define _DEFAULT_SOURCE" >&5
   2561  1.1.1.6.2.1  pgoyette echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
   2562  1.1.1.6.2.1  pgoyette if test "${cf_cv_default_source+set}" = set; then
   2563  1.1.1.6.2.1  pgoyette   echo $ECHO_N "(cached) $ECHO_C" >&6
   2564  1.1.1.6.2.1  pgoyette else
   2565  1.1.1.6.2.1  pgoyette 
   2566  1.1.1.6.2.1  pgoyette CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
   2567  1.1.1.6.2.1  pgoyette 	cat >conftest.$ac_ext <<_ACEOF
   2568  1.1.1.6.2.1  pgoyette #line 2568 "configure"
   2569  1.1.1.6.2.1  pgoyette #include "confdefs.h"
   2570  1.1.1.6.2.1  pgoyette #include <sys/types.h>
   2571  1.1.1.6.2.1  pgoyette int
   2572  1.1.1.6.2.1  pgoyette main ()
   2573  1.1.1.6.2.1  pgoyette {
   2574  1.1.1.6.2.1  pgoyette 
   2575  1.1.1.6.2.1  pgoyette #ifdef _DEFAULT_SOURCE
   2576  1.1.1.6.2.1  pgoyette make an error
   2577  1.1.1.6.2.1  pgoyette #endif
   2578  1.1.1.6.2.1  pgoyette   ;
   2579  1.1.1.6.2.1  pgoyette   return 0;
   2580  1.1.1.6.2.1  pgoyette }
   2581  1.1.1.6.2.1  pgoyette _ACEOF
   2582  1.1.1.6.2.1  pgoyette rm -f conftest.$ac_objext
   2583  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:2583: \"$ac_compile\"") >&5
   2584  1.1.1.6.2.1  pgoyette   (eval $ac_compile) 2>&5
   2585  1.1.1.6.2.1  pgoyette   ac_status=$?
   2586  1.1.1.6.2.1  pgoyette   echo "$as_me:2586: \$? = $ac_status" >&5
   2587  1.1.1.6.2.1  pgoyette   (exit $ac_status); } &&
   2588  1.1.1.6.2.1  pgoyette          { ac_try='test -s conftest.$ac_objext'
   2589  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:2589: \"$ac_try\"") >&5
   2590  1.1.1.6.2.1  pgoyette   (eval $ac_try) 2>&5
   2591  1.1.1.6.2.1  pgoyette   ac_status=$?
   2592  1.1.1.6.2.1  pgoyette   echo "$as_me:2592: \$? = $ac_status" >&5
   2593  1.1.1.6.2.1  pgoyette   (exit $ac_status); }; }; then
   2594  1.1.1.6.2.1  pgoyette   cf_cv_default_source=no
   2595  1.1.1.6.2.1  pgoyette else
   2596  1.1.1.6.2.1  pgoyette   echo "$as_me: failed program was:" >&5
   2597  1.1.1.6.2.1  pgoyette cat conftest.$ac_ext >&5
   2598  1.1.1.6.2.1  pgoyette cf_cv_default_source=yes
   2599  1.1.1.6.2.1  pgoyette fi
   2600  1.1.1.6.2.1  pgoyette rm -f conftest.$ac_objext conftest.$ac_ext
   2601  1.1.1.6.2.1  pgoyette 
   2602  1.1.1.6.2.1  pgoyette fi
   2603  1.1.1.6.2.1  pgoyette echo "$as_me:2603: result: $cf_cv_default_source" >&5
   2604  1.1.1.6.2.1  pgoyette echo "${ECHO_T}$cf_cv_default_source" >&6
   2605  1.1.1.6.2.1  pgoyette test "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE"
   2606  1.1.1.6.2.1  pgoyette fi
   2607      1.1.1.2  christos 
   2608      1.1.1.2  christos 	;;
   2609      1.1.1.6  christos (minix*)
   2610      1.1.1.5  christos 	cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
   2611      1.1.1.5  christos 	;;
   2612      1.1.1.6  christos (mirbsd*)
   2613      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
   2614      1.1.1.4  christos 	cf_XOPEN_SOURCE=
   2615      1.1.1.2  christos 
   2616      1.1.1.4  christos cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
   2617      1.1.1.2  christos 
   2618      1.1.1.4  christos cf_save_CFLAGS="$CFLAGS"
   2619      1.1.1.4  christos cf_save_CPPFLAGS="$CPPFLAGS"
   2620      1.1.1.2  christos 
   2621      1.1.1.4  christos cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
   2622      1.1.1.4  christos 	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   2623      1.1.1.4  christos 		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
   2624      1.1.1.2  christos 
   2625      1.1.1.4  christos cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
   2626      1.1.1.4  christos 	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   2627      1.1.1.4  christos 		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
   2628      1.1.1.2  christos 
   2629  1.1.1.6.2.1  pgoyette echo "$as_me:2629: checking if we should define _POSIX_C_SOURCE" >&5
   2630      1.1.1.4  christos echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
   2631      1.1.1.4  christos if test "${cf_cv_posix_c_source+set}" = set; then
   2632      1.1.1.4  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2633      1.1.1.4  christos else
   2634      1.1.1.2  christos 
   2635  1.1.1.6.2.1  pgoyette echo "${as_me:-configure}:2635: testing if the symbol is already defined go no further ..." 1>&5
   2636      1.1.1.2  christos 
   2637      1.1.1.2  christos 	cat >conftest.$ac_ext <<_ACEOF
   2638  1.1.1.6.2.1  pgoyette #line 2638 "configure"
   2639      1.1.1.2  christos #include "confdefs.h"
   2640      1.1.1.4  christos #include <sys/types.h>
   2641      1.1.1.4  christos int
   2642      1.1.1.4  christos main ()
   2643      1.1.1.4  christos {
   2644      1.1.1.2  christos 
   2645      1.1.1.4  christos #ifndef _POSIX_C_SOURCE
   2646      1.1.1.4  christos make an error
   2647      1.1.1.2  christos #endif
   2648      1.1.1.4  christos   ;
   2649      1.1.1.4  christos   return 0;
   2650      1.1.1.4  christos }
   2651      1.1.1.4  christos _ACEOF
   2652      1.1.1.4  christos rm -f conftest.$ac_objext
   2653  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:2653: \"$ac_compile\"") >&5
   2654      1.1.1.4  christos   (eval $ac_compile) 2>&5
   2655      1.1.1.4  christos   ac_status=$?
   2656  1.1.1.6.2.1  pgoyette   echo "$as_me:2656: \$? = $ac_status" >&5
   2657      1.1.1.4  christos   (exit $ac_status); } &&
   2658      1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   2659  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:2659: \"$ac_try\"") >&5
   2660      1.1.1.4  christos   (eval $ac_try) 2>&5
   2661      1.1.1.4  christos   ac_status=$?
   2662  1.1.1.6.2.1  pgoyette   echo "$as_me:2662: \$? = $ac_status" >&5
   2663      1.1.1.4  christos   (exit $ac_status); }; }; then
   2664      1.1.1.4  christos   cf_cv_posix_c_source=no
   2665      1.1.1.4  christos else
   2666      1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   2667      1.1.1.4  christos cat conftest.$ac_ext >&5
   2668      1.1.1.4  christos cf_want_posix_source=no
   2669      1.1.1.6  christos 	 case .$cf_POSIX_C_SOURCE in
   2670      1.1.1.6  christos 	 (.[12]??*)
   2671      1.1.1.4  christos 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   2672      1.1.1.4  christos 		;;
   2673      1.1.1.6  christos 	 (.2)
   2674      1.1.1.4  christos 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   2675      1.1.1.4  christos 		cf_want_posix_source=yes
   2676      1.1.1.4  christos 		;;
   2677      1.1.1.6  christos 	 (.*)
   2678      1.1.1.4  christos 		cf_want_posix_source=yes
   2679      1.1.1.4  christos 		;;
   2680      1.1.1.4  christos 	 esac
   2681      1.1.1.4  christos 	 if test "$cf_want_posix_source" = yes ; then
   2682      1.1.1.4  christos 		cat >conftest.$ac_ext <<_ACEOF
   2683  1.1.1.6.2.1  pgoyette #line 2683 "configure"
   2684      1.1.1.4  christos #include "confdefs.h"
   2685      1.1.1.4  christos #include <sys/types.h>
   2686      1.1.1.4  christos int
   2687      1.1.1.4  christos main ()
   2688      1.1.1.4  christos {
   2689      1.1.1.4  christos 
   2690      1.1.1.4  christos #ifdef _POSIX_SOURCE
   2691      1.1.1.4  christos make an error
   2692      1.1.1.2  christos #endif
   2693      1.1.1.4  christos   ;
   2694      1.1.1.4  christos   return 0;
   2695      1.1.1.4  christos }
   2696      1.1.1.4  christos _ACEOF
   2697      1.1.1.4  christos rm -f conftest.$ac_objext
   2698  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:2698: \"$ac_compile\"") >&5
   2699      1.1.1.4  christos   (eval $ac_compile) 2>&5
   2700      1.1.1.4  christos   ac_status=$?
   2701  1.1.1.6.2.1  pgoyette   echo "$as_me:2701: \$? = $ac_status" >&5
   2702      1.1.1.4  christos   (exit $ac_status); } &&
   2703      1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   2704  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:2704: \"$ac_try\"") >&5
   2705      1.1.1.4  christos   (eval $ac_try) 2>&5
   2706      1.1.1.4  christos   ac_status=$?
   2707  1.1.1.6.2.1  pgoyette   echo "$as_me:2707: \$? = $ac_status" >&5
   2708      1.1.1.4  christos   (exit $ac_status); }; }; then
   2709      1.1.1.4  christos   :
   2710      1.1.1.4  christos else
   2711      1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   2712      1.1.1.4  christos cat conftest.$ac_ext >&5
   2713      1.1.1.4  christos cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
   2714      1.1.1.4  christos fi
   2715      1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   2716      1.1.1.4  christos 	 fi
   2717      1.1.1.4  christos 
   2718  1.1.1.6.2.1  pgoyette echo "${as_me:-configure}:2718: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
   2719      1.1.1.2  christos 
   2720      1.1.1.4  christos 	 CFLAGS="$cf_trim_CFLAGS"
   2721      1.1.1.4  christos 	 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
   2722      1.1.1.4  christos 
   2723  1.1.1.6.2.1  pgoyette echo "${as_me:-configure}:2723: testing if the second compile does not leave our definition intact error ..." 1>&5
   2724      1.1.1.4  christos 
   2725      1.1.1.4  christos 	 cat >conftest.$ac_ext <<_ACEOF
   2726  1.1.1.6.2.1  pgoyette #line 2726 "configure"
   2727      1.1.1.4  christos #include "confdefs.h"
   2728      1.1.1.4  christos #include <sys/types.h>
   2729      1.1.1.2  christos int
   2730      1.1.1.2  christos main ()
   2731      1.1.1.2  christos {
   2732      1.1.1.2  christos 
   2733      1.1.1.4  christos #ifndef _POSIX_C_SOURCE
   2734      1.1.1.4  christos make an error
   2735      1.1.1.4  christos #endif
   2736      1.1.1.2  christos   ;
   2737      1.1.1.2  christos   return 0;
   2738      1.1.1.2  christos }
   2739      1.1.1.2  christos _ACEOF
   2740      1.1.1.2  christos rm -f conftest.$ac_objext
   2741  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:2741: \"$ac_compile\"") >&5
   2742      1.1.1.2  christos   (eval $ac_compile) 2>&5
   2743      1.1.1.2  christos   ac_status=$?
   2744  1.1.1.6.2.1  pgoyette   echo "$as_me:2744: \$? = $ac_status" >&5
   2745      1.1.1.2  christos   (exit $ac_status); } &&
   2746      1.1.1.2  christos          { ac_try='test -s conftest.$ac_objext'
   2747  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:2747: \"$ac_try\"") >&5
   2748      1.1.1.2  christos   (eval $ac_try) 2>&5
   2749      1.1.1.2  christos   ac_status=$?
   2750  1.1.1.6.2.1  pgoyette   echo "$as_me:2750: \$? = $ac_status" >&5
   2751      1.1.1.2  christos   (exit $ac_status); }; }; then
   2752      1.1.1.4  christos   :
   2753      1.1.1.2  christos else
   2754      1.1.1.2  christos   echo "$as_me: failed program was:" >&5
   2755      1.1.1.2  christos cat conftest.$ac_ext >&5
   2756      1.1.1.4  christos cf_cv_posix_c_source=no
   2757      1.1.1.2  christos fi
   2758      1.1.1.2  christos rm -f conftest.$ac_objext conftest.$ac_ext
   2759      1.1.1.4  christos 	 CFLAGS="$cf_save_CFLAGS"
   2760      1.1.1.4  christos 	 CPPFLAGS="$cf_save_CPPFLAGS"
   2761      1.1.1.2  christos 
   2762      1.1.1.2  christos fi
   2763      1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   2764      1.1.1.2  christos 
   2765      1.1.1.4  christos fi
   2766  1.1.1.6.2.1  pgoyette echo "$as_me:2766: result: $cf_cv_posix_c_source" >&5
   2767      1.1.1.4  christos echo "${ECHO_T}$cf_cv_posix_c_source" >&6
   2768      1.1.1.4  christos 
   2769      1.1.1.4  christos if test "$cf_cv_posix_c_source" != no ; then
   2770      1.1.1.4  christos 	CFLAGS="$cf_trim_CFLAGS"
   2771      1.1.1.4  christos 	CPPFLAGS="$cf_trim_CPPFLAGS"
   2772      1.1.1.2  christos 
   2773      1.1.1.2  christos cf_fix_cppflags=no
   2774      1.1.1.2  christos cf_new_cflags=
   2775      1.1.1.2  christos cf_new_cppflags=
   2776      1.1.1.2  christos cf_new_extra_cppflags=
   2777      1.1.1.2  christos 
   2778      1.1.1.4  christos for cf_add_cflags in $cf_cv_posix_c_source
   2779      1.1.1.2  christos do
   2780      1.1.1.2  christos case $cf_fix_cppflags in
   2781      1.1.1.6  christos (no)
   2782      1.1.1.6  christos 	case $cf_add_cflags in
   2783      1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   2784      1.1.1.2  christos 		case $cf_add_cflags in
   2785      1.1.1.6  christos 		(-D*)
   2786      1.1.1.2  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   2787      1.1.1.2  christos 
   2788      1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   2789      1.1.1.2  christos 				&& test -z "${cf_tst_cflags}" \
   2790      1.1.1.2  christos 				&& cf_fix_cppflags=yes
   2791      1.1.1.2  christos 
   2792      1.1.1.2  christos 			if test $cf_fix_cppflags = yes ; then
   2793      1.1.1.2  christos 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   2794      1.1.1.2  christos 				continue
   2795      1.1.1.2  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   2796      1.1.1.2  christos 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   2797      1.1.1.2  christos 				continue
   2798      1.1.1.2  christos 			fi
   2799      1.1.1.2  christos 			;;
   2800      1.1.1.2  christos 		esac
   2801      1.1.1.2  christos 		case "$CPPFLAGS" in
   2802      1.1.1.6  christos 		(*$cf_add_cflags)
   2803      1.1.1.2  christos 			;;
   2804      1.1.1.6  christos 		(*)
   2805      1.1.1.6  christos 			case $cf_add_cflags in
   2806      1.1.1.6  christos 			(-D*)
   2807      1.1.1.2  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   2808      1.1.1.2  christos 
   2809      1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   2810      1.1.1.2  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   2811      1.1.1.2  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   2812      1.1.1.2  christos 
   2813      1.1.1.2  christos 				;;
   2814      1.1.1.2  christos 			esac
   2815      1.1.1.2  christos 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   2816      1.1.1.2  christos 			;;
   2817      1.1.1.2  christos 		esac
   2818      1.1.1.2  christos 		;;
   2819      1.1.1.6  christos 	(*)
   2820      1.1.1.2  christos 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   2821      1.1.1.2  christos 		;;
   2822      1.1.1.2  christos 	esac
   2823      1.1.1.2  christos 	;;
   2824      1.1.1.6  christos (yes)
   2825      1.1.1.2  christos 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   2826      1.1.1.2  christos 
   2827      1.1.1.2  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   2828      1.1.1.2  christos 
   2829      1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   2830      1.1.1.2  christos 		&& test -z "${cf_tst_cflags}" \
   2831      1.1.1.2  christos 		&& cf_fix_cppflags=no
   2832      1.1.1.2  christos 	;;
   2833      1.1.1.2  christos esac
   2834      1.1.1.2  christos done
   2835      1.1.1.2  christos 
   2836      1.1.1.2  christos if test -n "$cf_new_cflags" ; then
   2837      1.1.1.2  christos 
   2838      1.1.1.2  christos 	CFLAGS="$CFLAGS $cf_new_cflags"
   2839      1.1.1.2  christos fi
   2840      1.1.1.4  christos 
   2841      1.1.1.4  christos if test -n "$cf_new_cppflags" ; then
   2842      1.1.1.4  christos 
   2843      1.1.1.4  christos 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   2844      1.1.1.2  christos fi
   2845      1.1.1.2  christos 
   2846      1.1.1.4  christos if test -n "$cf_new_extra_cppflags" ; then
   2847      1.1.1.4  christos 
   2848      1.1.1.4  christos 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   2849      1.1.1.2  christos fi
   2850      1.1.1.2  christos 
   2851      1.1.1.2  christos fi
   2852      1.1.1.2  christos 
   2853      1.1.1.2  christos 	;;
   2854      1.1.1.6  christos (netbsd*)
   2855      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
   2856      1.1.1.2  christos 	;;
   2857      1.1.1.6  christos (openbsd[4-9]*)
   2858      1.1.1.4  christos 	# setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
   2859      1.1.1.4  christos 	cf_xopen_source="-D_BSD_SOURCE"
   2860      1.1.1.4  christos 	cf_XOPEN_SOURCE=600
   2861      1.1.1.4  christos 	;;
   2862      1.1.1.6  christos (openbsd*)
   2863      1.1.1.2  christos 	# setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
   2864      1.1.1.2  christos 	;;
   2865      1.1.1.6  christos (osf[45]*)
   2866      1.1.1.2  christos 	cf_xopen_source="-D_OSF_SOURCE"
   2867      1.1.1.2  christos 	;;
   2868      1.1.1.6  christos (nto-qnx*)
   2869      1.1.1.2  christos 	cf_xopen_source="-D_QNX_SOURCE"
   2870      1.1.1.2  christos 	;;
   2871      1.1.1.6  christos (sco*)
   2872      1.1.1.2  christos 	# setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
   2873      1.1.1.2  christos 	;;
   2874      1.1.1.6  christos (solaris2.*)
   2875      1.1.1.2  christos 	cf_xopen_source="-D__EXTENSIONS__"
   2876      1.1.1.5  christos 	cf_cv_xopen_source=broken
   2877      1.1.1.5  christos 	;;
   2878      1.1.1.6  christos (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
   2879      1.1.1.5  christos 	cf_XOPEN_SOURCE=
   2880      1.1.1.5  christos 	cf_POSIX_C_SOURCE=
   2881      1.1.1.2  christos 	;;
   2882      1.1.1.6  christos (*)
   2883      1.1.1.4  christos 
   2884  1.1.1.6.2.1  pgoyette echo "$as_me:2884: checking if we should define _XOPEN_SOURCE" >&5
   2885      1.1.1.2  christos echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
   2886      1.1.1.2  christos if test "${cf_cv_xopen_source+set}" = set; then
   2887      1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2888      1.1.1.2  christos else
   2889      1.1.1.2  christos 
   2890      1.1.1.2  christos 	cat >conftest.$ac_ext <<_ACEOF
   2891  1.1.1.6.2.1  pgoyette #line 2891 "configure"
   2892      1.1.1.2  christos #include "confdefs.h"
   2893      1.1.1.4  christos 
   2894      1.1.1.4  christos #include <stdlib.h>
   2895      1.1.1.4  christos #include <string.h>
   2896      1.1.1.2  christos #include <sys/types.h>
   2897      1.1.1.4  christos 
   2898      1.1.1.2  christos int
   2899      1.1.1.2  christos main ()
   2900      1.1.1.2  christos {
   2901      1.1.1.2  christos 
   2902      1.1.1.2  christos #ifndef _XOPEN_SOURCE
   2903      1.1.1.2  christos make an error
   2904      1.1.1.2  christos #endif
   2905      1.1.1.2  christos   ;
   2906      1.1.1.2  christos   return 0;
   2907      1.1.1.2  christos }
   2908      1.1.1.2  christos _ACEOF
   2909      1.1.1.2  christos rm -f conftest.$ac_objext
   2910  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:2910: \"$ac_compile\"") >&5
   2911      1.1.1.2  christos   (eval $ac_compile) 2>&5
   2912      1.1.1.2  christos   ac_status=$?
   2913  1.1.1.6.2.1  pgoyette   echo "$as_me:2913: \$? = $ac_status" >&5
   2914      1.1.1.2  christos   (exit $ac_status); } &&
   2915      1.1.1.2  christos          { ac_try='test -s conftest.$ac_objext'
   2916  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:2916: \"$ac_try\"") >&5
   2917      1.1.1.2  christos   (eval $ac_try) 2>&5
   2918      1.1.1.2  christos   ac_status=$?
   2919  1.1.1.6.2.1  pgoyette   echo "$as_me:2919: \$? = $ac_status" >&5
   2920      1.1.1.2  christos   (exit $ac_status); }; }; then
   2921      1.1.1.2  christos   cf_cv_xopen_source=no
   2922      1.1.1.2  christos else
   2923      1.1.1.2  christos   echo "$as_me: failed program was:" >&5
   2924      1.1.1.2  christos cat conftest.$ac_ext >&5
   2925      1.1.1.2  christos cf_save="$CPPFLAGS"
   2926      1.1.1.2  christos 	 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
   2927      1.1.1.2  christos 	 cat >conftest.$ac_ext <<_ACEOF
   2928  1.1.1.6.2.1  pgoyette #line 2928 "configure"
   2929      1.1.1.2  christos #include "confdefs.h"
   2930      1.1.1.4  christos 
   2931      1.1.1.4  christos #include <stdlib.h>
   2932      1.1.1.4  christos #include <string.h>
   2933      1.1.1.2  christos #include <sys/types.h>
   2934      1.1.1.4  christos 
   2935      1.1.1.2  christos int
   2936      1.1.1.2  christos main ()
   2937      1.1.1.2  christos {
   2938      1.1.1.2  christos 
   2939      1.1.1.2  christos #ifdef _XOPEN_SOURCE
   2940      1.1.1.2  christos make an error
   2941      1.1.1.2  christos #endif
   2942      1.1.1.2  christos   ;
   2943      1.1.1.2  christos   return 0;
   2944      1.1.1.2  christos }
   2945      1.1.1.2  christos _ACEOF
   2946      1.1.1.2  christos rm -f conftest.$ac_objext
   2947  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:2947: \"$ac_compile\"") >&5
   2948      1.1.1.2  christos   (eval $ac_compile) 2>&5
   2949      1.1.1.2  christos   ac_status=$?
   2950  1.1.1.6.2.1  pgoyette   echo "$as_me:2950: \$? = $ac_status" >&5
   2951      1.1.1.2  christos   (exit $ac_status); } &&
   2952      1.1.1.2  christos          { ac_try='test -s conftest.$ac_objext'
   2953  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:2953: \"$ac_try\"") >&5
   2954      1.1.1.2  christos   (eval $ac_try) 2>&5
   2955      1.1.1.2  christos   ac_status=$?
   2956  1.1.1.6.2.1  pgoyette   echo "$as_me:2956: \$? = $ac_status" >&5
   2957      1.1.1.2  christos   (exit $ac_status); }; }; then
   2958      1.1.1.2  christos   cf_cv_xopen_source=no
   2959      1.1.1.2  christos else
   2960      1.1.1.2  christos   echo "$as_me: failed program was:" >&5
   2961      1.1.1.2  christos cat conftest.$ac_ext >&5
   2962      1.1.1.2  christos cf_cv_xopen_source=$cf_XOPEN_SOURCE
   2963      1.1.1.2  christos fi
   2964      1.1.1.2  christos rm -f conftest.$ac_objext conftest.$ac_ext
   2965      1.1.1.2  christos 	CPPFLAGS="$cf_save"
   2966      1.1.1.2  christos 
   2967      1.1.1.2  christos fi
   2968      1.1.1.2  christos rm -f conftest.$ac_objext conftest.$ac_ext
   2969      1.1.1.2  christos 
   2970      1.1.1.2  christos fi
   2971  1.1.1.6.2.1  pgoyette echo "$as_me:2971: result: $cf_cv_xopen_source" >&5
   2972      1.1.1.2  christos echo "${ECHO_T}$cf_cv_xopen_source" >&6
   2973      1.1.1.4  christos 
   2974      1.1.1.4  christos if test "$cf_cv_xopen_source" != no ; then
   2975      1.1.1.2  christos 
   2976      1.1.1.2  christos CFLAGS=`echo "$CFLAGS" | \
   2977      1.1.1.2  christos 	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   2978      1.1.1.2  christos 		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
   2979      1.1.1.2  christos 
   2980      1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   2981      1.1.1.2  christos 	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   2982      1.1.1.2  christos 		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
   2983      1.1.1.2  christos 
   2984      1.1.1.4  christos 	cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
   2985          1.1  christos 
   2986          1.1  christos cf_fix_cppflags=no
   2987          1.1  christos cf_new_cflags=
   2988          1.1  christos cf_new_cppflags=
   2989          1.1  christos cf_new_extra_cppflags=
   2990          1.1  christos 
   2991      1.1.1.2  christos for cf_add_cflags in $cf_temp_xopen_source
   2992          1.1  christos do
   2993          1.1  christos case $cf_fix_cppflags in
   2994      1.1.1.6  christos (no)
   2995      1.1.1.6  christos 	case $cf_add_cflags in
   2996      1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   2997          1.1  christos 		case $cf_add_cflags in
   2998      1.1.1.6  christos 		(-D*)
   2999          1.1  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   3000          1.1  christos 
   3001      1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3002      1.1.1.2  christos 				&& test -z "${cf_tst_cflags}" \
   3003      1.1.1.2  christos 				&& cf_fix_cppflags=yes
   3004          1.1  christos 
   3005          1.1  christos 			if test $cf_fix_cppflags = yes ; then
   3006          1.1  christos 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   3007          1.1  christos 				continue
   3008          1.1  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   3009          1.1  christos 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   3010          1.1  christos 				continue
   3011          1.1  christos 			fi
   3012          1.1  christos 			;;
   3013          1.1  christos 		esac
   3014          1.1  christos 		case "$CPPFLAGS" in
   3015      1.1.1.6  christos 		(*$cf_add_cflags)
   3016          1.1  christos 			;;
   3017      1.1.1.6  christos 		(*)
   3018      1.1.1.6  christos 			case $cf_add_cflags in
   3019      1.1.1.6  christos 			(-D*)
   3020      1.1.1.2  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   3021      1.1.1.2  christos 
   3022      1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   3023      1.1.1.2  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3024      1.1.1.2  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   3025      1.1.1.2  christos 
   3026      1.1.1.2  christos 				;;
   3027      1.1.1.2  christos 			esac
   3028          1.1  christos 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   3029          1.1  christos 			;;
   3030          1.1  christos 		esac
   3031          1.1  christos 		;;
   3032      1.1.1.6  christos 	(*)
   3033          1.1  christos 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   3034          1.1  christos 		;;
   3035          1.1  christos 	esac
   3036          1.1  christos 	;;
   3037      1.1.1.6  christos (yes)
   3038          1.1  christos 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   3039          1.1  christos 
   3040          1.1  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   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=no
   3045          1.1  christos 	;;
   3046          1.1  christos esac
   3047          1.1  christos done
   3048          1.1  christos 
   3049          1.1  christos if test -n "$cf_new_cflags" ; then
   3050          1.1  christos 
   3051          1.1  christos 	CFLAGS="$CFLAGS $cf_new_cflags"
   3052          1.1  christos fi
   3053          1.1  christos 
   3054          1.1  christos if test -n "$cf_new_cppflags" ; then
   3055          1.1  christos 
   3056          1.1  christos 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   3057          1.1  christos fi
   3058          1.1  christos 
   3059          1.1  christos if test -n "$cf_new_extra_cppflags" ; then
   3060          1.1  christos 
   3061          1.1  christos 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   3062          1.1  christos fi
   3063          1.1  christos 
   3064      1.1.1.4  christos fi
   3065      1.1.1.2  christos 
   3066      1.1.1.2  christos cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
   3067      1.1.1.2  christos 
   3068      1.1.1.2  christos cf_save_CFLAGS="$CFLAGS"
   3069      1.1.1.2  christos cf_save_CPPFLAGS="$CPPFLAGS"
   3070      1.1.1.2  christos 
   3071      1.1.1.2  christos cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
   3072      1.1.1.2  christos 	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3073      1.1.1.2  christos 		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3074      1.1.1.2  christos 
   3075      1.1.1.2  christos cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
   3076      1.1.1.2  christos 	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3077      1.1.1.2  christos 		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3078      1.1.1.2  christos 
   3079  1.1.1.6.2.1  pgoyette echo "$as_me:3079: checking if we should define _POSIX_C_SOURCE" >&5
   3080      1.1.1.2  christos echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
   3081      1.1.1.2  christos if test "${cf_cv_posix_c_source+set}" = set; then
   3082      1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3083      1.1.1.2  christos else
   3084      1.1.1.2  christos 
   3085  1.1.1.6.2.1  pgoyette echo "${as_me:-configure}:3085: testing if the symbol is already defined go no further ..." 1>&5
   3086      1.1.1.2  christos 
   3087          1.1  christos 	cat >conftest.$ac_ext <<_ACEOF
   3088  1.1.1.6.2.1  pgoyette #line 3088 "configure"
   3089          1.1  christos #include "confdefs.h"
   3090      1.1.1.2  christos #include <sys/types.h>
   3091      1.1.1.2  christos int
   3092      1.1.1.2  christos main ()
   3093      1.1.1.2  christos {
   3094          1.1  christos 
   3095      1.1.1.2  christos #ifndef _POSIX_C_SOURCE
   3096      1.1.1.2  christos make an error
   3097          1.1  christos #endif
   3098      1.1.1.2  christos   ;
   3099      1.1.1.2  christos   return 0;
   3100      1.1.1.2  christos }
   3101      1.1.1.2  christos _ACEOF
   3102      1.1.1.2  christos rm -f conftest.$ac_objext
   3103  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:3103: \"$ac_compile\"") >&5
   3104      1.1.1.2  christos   (eval $ac_compile) 2>&5
   3105      1.1.1.2  christos   ac_status=$?
   3106  1.1.1.6.2.1  pgoyette   echo "$as_me:3106: \$? = $ac_status" >&5
   3107      1.1.1.2  christos   (exit $ac_status); } &&
   3108      1.1.1.2  christos          { ac_try='test -s conftest.$ac_objext'
   3109  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:3109: \"$ac_try\"") >&5
   3110      1.1.1.2  christos   (eval $ac_try) 2>&5
   3111      1.1.1.2  christos   ac_status=$?
   3112  1.1.1.6.2.1  pgoyette   echo "$as_me:3112: \$? = $ac_status" >&5
   3113      1.1.1.2  christos   (exit $ac_status); }; }; then
   3114      1.1.1.2  christos   cf_cv_posix_c_source=no
   3115      1.1.1.2  christos else
   3116      1.1.1.2  christos   echo "$as_me: failed program was:" >&5
   3117      1.1.1.2  christos cat conftest.$ac_ext >&5
   3118      1.1.1.2  christos cf_want_posix_source=no
   3119      1.1.1.6  christos 	 case .$cf_POSIX_C_SOURCE in
   3120      1.1.1.6  christos 	 (.[12]??*)
   3121      1.1.1.2  christos 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   3122      1.1.1.2  christos 		;;
   3123      1.1.1.6  christos 	 (.2)
   3124      1.1.1.2  christos 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   3125      1.1.1.2  christos 		cf_want_posix_source=yes
   3126      1.1.1.2  christos 		;;
   3127      1.1.1.6  christos 	 (.*)
   3128      1.1.1.2  christos 		cf_want_posix_source=yes
   3129      1.1.1.2  christos 		;;
   3130      1.1.1.2  christos 	 esac
   3131      1.1.1.2  christos 	 if test "$cf_want_posix_source" = yes ; then
   3132      1.1.1.2  christos 		cat >conftest.$ac_ext <<_ACEOF
   3133  1.1.1.6.2.1  pgoyette #line 3133 "configure"
   3134      1.1.1.2  christos #include "confdefs.h"
   3135      1.1.1.2  christos #include <sys/types.h>
   3136      1.1.1.2  christos int
   3137      1.1.1.2  christos main ()
   3138      1.1.1.2  christos {
   3139      1.1.1.2  christos 
   3140      1.1.1.2  christos #ifdef _POSIX_SOURCE
   3141      1.1.1.2  christos make an error
   3142          1.1  christos #endif
   3143      1.1.1.2  christos   ;
   3144      1.1.1.2  christos   return 0;
   3145      1.1.1.2  christos }
   3146      1.1.1.2  christos _ACEOF
   3147      1.1.1.2  christos rm -f conftest.$ac_objext
   3148  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:3148: \"$ac_compile\"") >&5
   3149      1.1.1.2  christos   (eval $ac_compile) 2>&5
   3150      1.1.1.2  christos   ac_status=$?
   3151  1.1.1.6.2.1  pgoyette   echo "$as_me:3151: \$? = $ac_status" >&5
   3152      1.1.1.2  christos   (exit $ac_status); } &&
   3153      1.1.1.2  christos          { ac_try='test -s conftest.$ac_objext'
   3154  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:3154: \"$ac_try\"") >&5
   3155      1.1.1.2  christos   (eval $ac_try) 2>&5
   3156      1.1.1.2  christos   ac_status=$?
   3157  1.1.1.6.2.1  pgoyette   echo "$as_me:3157: \$? = $ac_status" >&5
   3158      1.1.1.2  christos   (exit $ac_status); }; }; then
   3159      1.1.1.2  christos   :
   3160      1.1.1.2  christos else
   3161      1.1.1.2  christos   echo "$as_me: failed program was:" >&5
   3162      1.1.1.2  christos cat conftest.$ac_ext >&5
   3163      1.1.1.2  christos cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
   3164      1.1.1.2  christos fi
   3165      1.1.1.2  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3166      1.1.1.2  christos 	 fi
   3167      1.1.1.2  christos 
   3168  1.1.1.6.2.1  pgoyette echo "${as_me:-configure}:3168: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
   3169      1.1.1.2  christos 
   3170      1.1.1.2  christos 	 CFLAGS="$cf_trim_CFLAGS"
   3171      1.1.1.2  christos 	 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
   3172      1.1.1.2  christos 
   3173  1.1.1.6.2.1  pgoyette echo "${as_me:-configure}:3173: testing if the second compile does not leave our definition intact error ..." 1>&5
   3174          1.1  christos 
   3175      1.1.1.2  christos 	 cat >conftest.$ac_ext <<_ACEOF
   3176  1.1.1.6.2.1  pgoyette #line 3176 "configure"
   3177      1.1.1.2  christos #include "confdefs.h"
   3178      1.1.1.2  christos #include <sys/types.h>
   3179          1.1  christos int
   3180          1.1  christos main ()
   3181          1.1  christos {
   3182          1.1  christos 
   3183      1.1.1.2  christos #ifndef _POSIX_C_SOURCE
   3184      1.1.1.2  christos make an error
   3185      1.1.1.2  christos #endif
   3186          1.1  christos   ;
   3187          1.1  christos   return 0;
   3188          1.1  christos }
   3189          1.1  christos _ACEOF
   3190          1.1  christos rm -f conftest.$ac_objext
   3191  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:3191: \"$ac_compile\"") >&5
   3192          1.1  christos   (eval $ac_compile) 2>&5
   3193          1.1  christos   ac_status=$?
   3194  1.1.1.6.2.1  pgoyette   echo "$as_me:3194: \$? = $ac_status" >&5
   3195          1.1  christos   (exit $ac_status); } &&
   3196          1.1  christos          { ac_try='test -s conftest.$ac_objext'
   3197  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:3197: \"$ac_try\"") >&5
   3198          1.1  christos   (eval $ac_try) 2>&5
   3199          1.1  christos   ac_status=$?
   3200  1.1.1.6.2.1  pgoyette   echo "$as_me:3200: \$? = $ac_status" >&5
   3201          1.1  christos   (exit $ac_status); }; }; then
   3202      1.1.1.2  christos   :
   3203          1.1  christos else
   3204          1.1  christos   echo "$as_me: failed program was:" >&5
   3205          1.1  christos cat conftest.$ac_ext >&5
   3206      1.1.1.2  christos cf_cv_posix_c_source=no
   3207          1.1  christos fi
   3208          1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3209      1.1.1.2  christos 	 CFLAGS="$cf_save_CFLAGS"
   3210      1.1.1.2  christos 	 CPPFLAGS="$cf_save_CPPFLAGS"
   3211          1.1  christos 
   3212          1.1  christos fi
   3213      1.1.1.2  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3214          1.1  christos 
   3215      1.1.1.2  christos fi
   3216  1.1.1.6.2.1  pgoyette echo "$as_me:3216: result: $cf_cv_posix_c_source" >&5
   3217      1.1.1.2  christos echo "${ECHO_T}$cf_cv_posix_c_source" >&6
   3218      1.1.1.2  christos 
   3219      1.1.1.2  christos if test "$cf_cv_posix_c_source" != no ; then
   3220      1.1.1.2  christos 	CFLAGS="$cf_trim_CFLAGS"
   3221      1.1.1.2  christos 	CPPFLAGS="$cf_trim_CPPFLAGS"
   3222          1.1  christos 
   3223          1.1  christos cf_fix_cppflags=no
   3224          1.1  christos cf_new_cflags=
   3225          1.1  christos cf_new_cppflags=
   3226          1.1  christos cf_new_extra_cppflags=
   3227          1.1  christos 
   3228      1.1.1.2  christos for cf_add_cflags in $cf_cv_posix_c_source
   3229          1.1  christos do
   3230          1.1  christos case $cf_fix_cppflags in
   3231      1.1.1.6  christos (no)
   3232      1.1.1.6  christos 	case $cf_add_cflags in
   3233      1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   3234          1.1  christos 		case $cf_add_cflags in
   3235      1.1.1.6  christos 		(-D*)
   3236          1.1  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   3237          1.1  christos 
   3238      1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3239      1.1.1.2  christos 				&& test -z "${cf_tst_cflags}" \
   3240      1.1.1.2  christos 				&& cf_fix_cppflags=yes
   3241          1.1  christos 
   3242          1.1  christos 			if test $cf_fix_cppflags = yes ; then
   3243          1.1  christos 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   3244          1.1  christos 				continue
   3245          1.1  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   3246          1.1  christos 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   3247          1.1  christos 				continue
   3248          1.1  christos 			fi
   3249          1.1  christos 			;;
   3250          1.1  christos 		esac
   3251          1.1  christos 		case "$CPPFLAGS" in
   3252      1.1.1.6  christos 		(*$cf_add_cflags)
   3253          1.1  christos 			;;
   3254      1.1.1.6  christos 		(*)
   3255      1.1.1.6  christos 			case $cf_add_cflags in
   3256      1.1.1.6  christos 			(-D*)
   3257      1.1.1.2  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   3258      1.1.1.2  christos 
   3259      1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   3260      1.1.1.2  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3261      1.1.1.2  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   3262      1.1.1.2  christos 
   3263      1.1.1.2  christos 				;;
   3264      1.1.1.2  christos 			esac
   3265          1.1  christos 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   3266          1.1  christos 			;;
   3267          1.1  christos 		esac
   3268          1.1  christos 		;;
   3269      1.1.1.6  christos 	(*)
   3270          1.1  christos 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   3271          1.1  christos 		;;
   3272          1.1  christos 	esac
   3273          1.1  christos 	;;
   3274      1.1.1.6  christos (yes)
   3275          1.1  christos 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   3276          1.1  christos 
   3277          1.1  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   3278          1.1  christos 
   3279      1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3280      1.1.1.2  christos 		&& test -z "${cf_tst_cflags}" \
   3281      1.1.1.2  christos 		&& cf_fix_cppflags=no
   3282          1.1  christos 	;;
   3283          1.1  christos esac
   3284          1.1  christos done
   3285          1.1  christos 
   3286          1.1  christos if test -n "$cf_new_cflags" ; then
   3287          1.1  christos 
   3288          1.1  christos 	CFLAGS="$CFLAGS $cf_new_cflags"
   3289          1.1  christos fi
   3290          1.1  christos 
   3291          1.1  christos if test -n "$cf_new_cppflags" ; then
   3292          1.1  christos 
   3293          1.1  christos 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   3294          1.1  christos fi
   3295          1.1  christos 
   3296          1.1  christos if test -n "$cf_new_extra_cppflags" ; then
   3297          1.1  christos 
   3298          1.1  christos 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   3299          1.1  christos fi
   3300          1.1  christos 
   3301      1.1.1.2  christos fi
   3302      1.1.1.2  christos 
   3303      1.1.1.2  christos 	;;
   3304      1.1.1.2  christos esac
   3305      1.1.1.2  christos 
   3306      1.1.1.2  christos if test -n "$cf_xopen_source" ; then
   3307      1.1.1.2  christos 
   3308      1.1.1.2  christos cf_fix_cppflags=no
   3309      1.1.1.2  christos cf_new_cflags=
   3310      1.1.1.2  christos cf_new_cppflags=
   3311      1.1.1.2  christos cf_new_extra_cppflags=
   3312      1.1.1.2  christos 
   3313      1.1.1.2  christos for cf_add_cflags in $cf_xopen_source
   3314      1.1.1.2  christos do
   3315      1.1.1.2  christos case $cf_fix_cppflags in
   3316      1.1.1.6  christos (no)
   3317      1.1.1.6  christos 	case $cf_add_cflags in
   3318      1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   3319      1.1.1.2  christos 		case $cf_add_cflags in
   3320      1.1.1.6  christos 		(-D*)
   3321      1.1.1.2  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   3322      1.1.1.2  christos 
   3323      1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3324      1.1.1.2  christos 				&& test -z "${cf_tst_cflags}" \
   3325      1.1.1.2  christos 				&& cf_fix_cppflags=yes
   3326      1.1.1.2  christos 
   3327      1.1.1.2  christos 			if test $cf_fix_cppflags = yes ; then
   3328      1.1.1.2  christos 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   3329      1.1.1.2  christos 				continue
   3330      1.1.1.2  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   3331      1.1.1.2  christos 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   3332      1.1.1.2  christos 				continue
   3333      1.1.1.2  christos 			fi
   3334      1.1.1.2  christos 			;;
   3335      1.1.1.2  christos 		esac
   3336      1.1.1.2  christos 		case "$CPPFLAGS" in
   3337      1.1.1.6  christos 		(*$cf_add_cflags)
   3338      1.1.1.2  christos 			;;
   3339      1.1.1.6  christos 		(*)
   3340      1.1.1.6  christos 			case $cf_add_cflags in
   3341      1.1.1.6  christos 			(-D*)
   3342      1.1.1.2  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   3343      1.1.1.2  christos 
   3344      1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   3345      1.1.1.2  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3346      1.1.1.2  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   3347      1.1.1.2  christos 
   3348      1.1.1.2  christos 				;;
   3349      1.1.1.2  christos 			esac
   3350      1.1.1.2  christos 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   3351      1.1.1.2  christos 			;;
   3352      1.1.1.2  christos 		esac
   3353      1.1.1.2  christos 		;;
   3354      1.1.1.6  christos 	(*)
   3355      1.1.1.2  christos 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   3356      1.1.1.2  christos 		;;
   3357      1.1.1.2  christos 	esac
   3358      1.1.1.2  christos 	;;
   3359      1.1.1.6  christos (yes)
   3360      1.1.1.2  christos 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   3361      1.1.1.2  christos 
   3362      1.1.1.2  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   3363      1.1.1.2  christos 
   3364      1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3365      1.1.1.2  christos 		&& test -z "${cf_tst_cflags}" \
   3366      1.1.1.2  christos 		&& cf_fix_cppflags=no
   3367      1.1.1.2  christos 	;;
   3368      1.1.1.2  christos esac
   3369      1.1.1.2  christos done
   3370      1.1.1.2  christos 
   3371      1.1.1.2  christos if test -n "$cf_new_cflags" ; then
   3372      1.1.1.5  christos 	test -n "$verbose" && echo "	add to \$CFLAGS $cf_new_cflags" 1>&6
   3373      1.1.1.5  christos 
   3374  1.1.1.6.2.1  pgoyette echo "${as_me:-configure}:3374: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
   3375          1.1  christos 
   3376      1.1.1.2  christos 	CFLAGS="$CFLAGS $cf_new_cflags"
   3377          1.1  christos fi
   3378      1.1.1.2  christos 
   3379      1.1.1.2  christos if test -n "$cf_new_cppflags" ; then
   3380      1.1.1.5  christos 	test -n "$verbose" && echo "	add to \$CPPFLAGS $cf_new_cppflags" 1>&6
   3381      1.1.1.5  christos 
   3382  1.1.1.6.2.1  pgoyette echo "${as_me:-configure}:3382: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
   3383      1.1.1.2  christos 
   3384      1.1.1.2  christos 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   3385      1.1.1.2  christos fi
   3386      1.1.1.2  christos 
   3387      1.1.1.2  christos if test -n "$cf_new_extra_cppflags" ; then
   3388      1.1.1.5  christos 	test -n "$verbose" && echo "	add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
   3389      1.1.1.5  christos 
   3390  1.1.1.6.2.1  pgoyette echo "${as_me:-configure}:3390: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
   3391      1.1.1.2  christos 
   3392      1.1.1.2  christos 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   3393          1.1  christos fi
   3394          1.1  christos 
   3395          1.1  christos fi
   3396          1.1  christos 
   3397      1.1.1.4  christos if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
   3398  1.1.1.6.2.1  pgoyette 	echo "$as_me:3398: checking if _XOPEN_SOURCE really is set" >&5
   3399      1.1.1.4  christos echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
   3400      1.1.1.4  christos 	cat >conftest.$ac_ext <<_ACEOF
   3401  1.1.1.6.2.1  pgoyette #line 3401 "configure"
   3402      1.1.1.4  christos #include "confdefs.h"
   3403      1.1.1.4  christos #include <stdlib.h>
   3404      1.1.1.4  christos int
   3405      1.1.1.4  christos main ()
   3406      1.1.1.4  christos {
   3407      1.1.1.4  christos 
   3408      1.1.1.4  christos #ifndef _XOPEN_SOURCE
   3409      1.1.1.4  christos make an error
   3410      1.1.1.4  christos #endif
   3411      1.1.1.4  christos   ;
   3412      1.1.1.4  christos   return 0;
   3413      1.1.1.4  christos }
   3414      1.1.1.4  christos _ACEOF
   3415      1.1.1.4  christos rm -f conftest.$ac_objext
   3416  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:3416: \"$ac_compile\"") >&5
   3417      1.1.1.4  christos   (eval $ac_compile) 2>&5
   3418      1.1.1.4  christos   ac_status=$?
   3419  1.1.1.6.2.1  pgoyette   echo "$as_me:3419: \$? = $ac_status" >&5
   3420      1.1.1.4  christos   (exit $ac_status); } &&
   3421      1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   3422  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:3422: \"$ac_try\"") >&5
   3423      1.1.1.4  christos   (eval $ac_try) 2>&5
   3424      1.1.1.4  christos   ac_status=$?
   3425  1.1.1.6.2.1  pgoyette   echo "$as_me:3425: \$? = $ac_status" >&5
   3426      1.1.1.4  christos   (exit $ac_status); }; }; then
   3427      1.1.1.4  christos   cf_XOPEN_SOURCE_set=yes
   3428      1.1.1.4  christos else
   3429      1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   3430      1.1.1.4  christos cat conftest.$ac_ext >&5
   3431      1.1.1.4  christos cf_XOPEN_SOURCE_set=no
   3432      1.1.1.4  christos fi
   3433      1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3434  1.1.1.6.2.1  pgoyette 	echo "$as_me:3434: result: $cf_XOPEN_SOURCE_set" >&5
   3435      1.1.1.4  christos echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
   3436      1.1.1.4  christos 	if test $cf_XOPEN_SOURCE_set = yes
   3437      1.1.1.4  christos 	then
   3438      1.1.1.4  christos 		cat >conftest.$ac_ext <<_ACEOF
   3439  1.1.1.6.2.1  pgoyette #line 3439 "configure"
   3440      1.1.1.4  christos #include "confdefs.h"
   3441      1.1.1.4  christos #include <stdlib.h>
   3442      1.1.1.4  christos int
   3443      1.1.1.4  christos main ()
   3444      1.1.1.4  christos {
   3445      1.1.1.4  christos 
   3446      1.1.1.4  christos #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
   3447      1.1.1.4  christos make an error
   3448      1.1.1.4  christos #endif
   3449      1.1.1.4  christos   ;
   3450      1.1.1.4  christos   return 0;
   3451      1.1.1.4  christos }
   3452      1.1.1.4  christos _ACEOF
   3453      1.1.1.4  christos rm -f conftest.$ac_objext
   3454  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:3454: \"$ac_compile\"") >&5
   3455      1.1.1.4  christos   (eval $ac_compile) 2>&5
   3456      1.1.1.4  christos   ac_status=$?
   3457  1.1.1.6.2.1  pgoyette   echo "$as_me:3457: \$? = $ac_status" >&5
   3458      1.1.1.4  christos   (exit $ac_status); } &&
   3459      1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   3460  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:3460: \"$ac_try\"") >&5
   3461      1.1.1.4  christos   (eval $ac_try) 2>&5
   3462      1.1.1.4  christos   ac_status=$?
   3463  1.1.1.6.2.1  pgoyette   echo "$as_me:3463: \$? = $ac_status" >&5
   3464      1.1.1.4  christos   (exit $ac_status); }; }; then
   3465      1.1.1.4  christos   cf_XOPEN_SOURCE_set_ok=yes
   3466      1.1.1.4  christos else
   3467      1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   3468      1.1.1.4  christos cat conftest.$ac_ext >&5
   3469      1.1.1.4  christos cf_XOPEN_SOURCE_set_ok=no
   3470      1.1.1.4  christos fi
   3471      1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3472      1.1.1.4  christos 		if test $cf_XOPEN_SOURCE_set_ok = no
   3473      1.1.1.4  christos 		then
   3474  1.1.1.6.2.1  pgoyette 			{ echo "$as_me:3474: WARNING: _XOPEN_SOURCE is lower than requested" >&5
   3475      1.1.1.4  christos echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
   3476      1.1.1.4  christos 		fi
   3477      1.1.1.4  christos 	else
   3478      1.1.1.4  christos 
   3479  1.1.1.6.2.1  pgoyette echo "$as_me:3479: checking if we should define _XOPEN_SOURCE" >&5
   3480      1.1.1.4  christos echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
   3481      1.1.1.4  christos if test "${cf_cv_xopen_source+set}" = set; then
   3482      1.1.1.4  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3483      1.1.1.4  christos else
   3484      1.1.1.4  christos 
   3485      1.1.1.4  christos 	cat >conftest.$ac_ext <<_ACEOF
   3486  1.1.1.6.2.1  pgoyette #line 3486 "configure"
   3487      1.1.1.4  christos #include "confdefs.h"
   3488      1.1.1.4  christos 
   3489      1.1.1.4  christos #include <stdlib.h>
   3490      1.1.1.4  christos #include <string.h>
   3491      1.1.1.4  christos #include <sys/types.h>
   3492      1.1.1.4  christos 
   3493      1.1.1.4  christos int
   3494      1.1.1.4  christos main ()
   3495      1.1.1.4  christos {
   3496      1.1.1.4  christos 
   3497      1.1.1.4  christos #ifndef _XOPEN_SOURCE
   3498      1.1.1.4  christos make an error
   3499      1.1.1.4  christos #endif
   3500      1.1.1.4  christos   ;
   3501      1.1.1.4  christos   return 0;
   3502      1.1.1.4  christos }
   3503      1.1.1.4  christos _ACEOF
   3504      1.1.1.4  christos rm -f conftest.$ac_objext
   3505  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:3505: \"$ac_compile\"") >&5
   3506      1.1.1.4  christos   (eval $ac_compile) 2>&5
   3507      1.1.1.4  christos   ac_status=$?
   3508  1.1.1.6.2.1  pgoyette   echo "$as_me:3508: \$? = $ac_status" >&5
   3509      1.1.1.4  christos   (exit $ac_status); } &&
   3510      1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   3511  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:3511: \"$ac_try\"") >&5
   3512      1.1.1.4  christos   (eval $ac_try) 2>&5
   3513      1.1.1.4  christos   ac_status=$?
   3514  1.1.1.6.2.1  pgoyette   echo "$as_me:3514: \$? = $ac_status" >&5
   3515      1.1.1.4  christos   (exit $ac_status); }; }; then
   3516      1.1.1.4  christos   cf_cv_xopen_source=no
   3517      1.1.1.4  christos else
   3518      1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   3519      1.1.1.4  christos cat conftest.$ac_ext >&5
   3520      1.1.1.4  christos cf_save="$CPPFLAGS"
   3521      1.1.1.4  christos 	 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
   3522      1.1.1.4  christos 	 cat >conftest.$ac_ext <<_ACEOF
   3523  1.1.1.6.2.1  pgoyette #line 3523 "configure"
   3524      1.1.1.4  christos #include "confdefs.h"
   3525      1.1.1.4  christos 
   3526      1.1.1.4  christos #include <stdlib.h>
   3527      1.1.1.4  christos #include <string.h>
   3528      1.1.1.4  christos #include <sys/types.h>
   3529      1.1.1.4  christos 
   3530      1.1.1.4  christos int
   3531      1.1.1.4  christos main ()
   3532      1.1.1.4  christos {
   3533      1.1.1.4  christos 
   3534      1.1.1.4  christos #ifdef _XOPEN_SOURCE
   3535      1.1.1.4  christos make an error
   3536      1.1.1.4  christos #endif
   3537      1.1.1.4  christos   ;
   3538      1.1.1.4  christos   return 0;
   3539      1.1.1.4  christos }
   3540      1.1.1.4  christos _ACEOF
   3541      1.1.1.4  christos rm -f conftest.$ac_objext
   3542  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:3542: \"$ac_compile\"") >&5
   3543      1.1.1.4  christos   (eval $ac_compile) 2>&5
   3544      1.1.1.4  christos   ac_status=$?
   3545  1.1.1.6.2.1  pgoyette   echo "$as_me:3545: \$? = $ac_status" >&5
   3546      1.1.1.4  christos   (exit $ac_status); } &&
   3547      1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   3548  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:3548: \"$ac_try\"") >&5
   3549      1.1.1.4  christos   (eval $ac_try) 2>&5
   3550      1.1.1.4  christos   ac_status=$?
   3551  1.1.1.6.2.1  pgoyette   echo "$as_me:3551: \$? = $ac_status" >&5
   3552      1.1.1.4  christos   (exit $ac_status); }; }; then
   3553      1.1.1.4  christos   cf_cv_xopen_source=no
   3554      1.1.1.4  christos else
   3555      1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   3556      1.1.1.4  christos cat conftest.$ac_ext >&5
   3557      1.1.1.4  christos cf_cv_xopen_source=$cf_XOPEN_SOURCE
   3558      1.1.1.4  christos fi
   3559      1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3560      1.1.1.4  christos 	CPPFLAGS="$cf_save"
   3561      1.1.1.4  christos 
   3562      1.1.1.4  christos fi
   3563      1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3564      1.1.1.4  christos 
   3565      1.1.1.4  christos fi
   3566  1.1.1.6.2.1  pgoyette echo "$as_me:3566: result: $cf_cv_xopen_source" >&5
   3567      1.1.1.4  christos echo "${ECHO_T}$cf_cv_xopen_source" >&6
   3568      1.1.1.4  christos 
   3569      1.1.1.4  christos if test "$cf_cv_xopen_source" != no ; then
   3570      1.1.1.4  christos 
   3571      1.1.1.4  christos CFLAGS=`echo "$CFLAGS" | \
   3572      1.1.1.4  christos 	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3573      1.1.1.4  christos 		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3574      1.1.1.4  christos 
   3575      1.1.1.4  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   3576      1.1.1.4  christos 	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3577      1.1.1.4  christos 		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3578      1.1.1.4  christos 
   3579      1.1.1.4  christos 	cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
   3580      1.1.1.4  christos 
   3581      1.1.1.4  christos cf_fix_cppflags=no
   3582      1.1.1.4  christos cf_new_cflags=
   3583      1.1.1.4  christos cf_new_cppflags=
   3584      1.1.1.4  christos cf_new_extra_cppflags=
   3585      1.1.1.4  christos 
   3586      1.1.1.4  christos for cf_add_cflags in $cf_temp_xopen_source
   3587      1.1.1.4  christos do
   3588      1.1.1.4  christos case $cf_fix_cppflags in
   3589      1.1.1.6  christos (no)
   3590      1.1.1.6  christos 	case $cf_add_cflags in
   3591      1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   3592      1.1.1.4  christos 		case $cf_add_cflags in
   3593      1.1.1.6  christos 		(-D*)
   3594      1.1.1.4  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   3595      1.1.1.4  christos 
   3596      1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3597      1.1.1.4  christos 				&& test -z "${cf_tst_cflags}" \
   3598      1.1.1.4  christos 				&& cf_fix_cppflags=yes
   3599      1.1.1.4  christos 
   3600      1.1.1.4  christos 			if test $cf_fix_cppflags = yes ; then
   3601      1.1.1.4  christos 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   3602      1.1.1.4  christos 				continue
   3603      1.1.1.4  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   3604      1.1.1.4  christos 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   3605      1.1.1.4  christos 				continue
   3606      1.1.1.4  christos 			fi
   3607      1.1.1.4  christos 			;;
   3608      1.1.1.4  christos 		esac
   3609      1.1.1.4  christos 		case "$CPPFLAGS" in
   3610      1.1.1.6  christos 		(*$cf_add_cflags)
   3611      1.1.1.4  christos 			;;
   3612      1.1.1.6  christos 		(*)
   3613      1.1.1.6  christos 			case $cf_add_cflags in
   3614      1.1.1.6  christos 			(-D*)
   3615      1.1.1.4  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   3616      1.1.1.4  christos 
   3617      1.1.1.4  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   3618      1.1.1.4  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3619      1.1.1.4  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   3620      1.1.1.4  christos 
   3621      1.1.1.4  christos 				;;
   3622      1.1.1.4  christos 			esac
   3623      1.1.1.4  christos 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   3624      1.1.1.4  christos 			;;
   3625      1.1.1.4  christos 		esac
   3626      1.1.1.4  christos 		;;
   3627      1.1.1.6  christos 	(*)
   3628      1.1.1.4  christos 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   3629      1.1.1.4  christos 		;;
   3630      1.1.1.4  christos 	esac
   3631      1.1.1.4  christos 	;;
   3632      1.1.1.6  christos (yes)
   3633      1.1.1.4  christos 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   3634      1.1.1.4  christos 
   3635      1.1.1.4  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   3636      1.1.1.4  christos 
   3637      1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3638      1.1.1.4  christos 		&& test -z "${cf_tst_cflags}" \
   3639      1.1.1.4  christos 		&& cf_fix_cppflags=no
   3640      1.1.1.4  christos 	;;
   3641      1.1.1.4  christos esac
   3642      1.1.1.4  christos done
   3643      1.1.1.4  christos 
   3644      1.1.1.4  christos if test -n "$cf_new_cflags" ; then
   3645      1.1.1.4  christos 
   3646      1.1.1.4  christos 	CFLAGS="$CFLAGS $cf_new_cflags"
   3647      1.1.1.4  christos fi
   3648      1.1.1.4  christos 
   3649      1.1.1.4  christos if test -n "$cf_new_cppflags" ; then
   3650      1.1.1.4  christos 
   3651      1.1.1.4  christos 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   3652      1.1.1.4  christos fi
   3653      1.1.1.4  christos 
   3654      1.1.1.4  christos if test -n "$cf_new_extra_cppflags" ; then
   3655      1.1.1.4  christos 
   3656      1.1.1.4  christos 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   3657      1.1.1.4  christos fi
   3658      1.1.1.4  christos 
   3659      1.1.1.4  christos fi
   3660      1.1.1.4  christos 
   3661      1.1.1.4  christos 	fi
   3662      1.1.1.4  christos fi
   3663      1.1.1.4  christos 
   3664      1.1.1.3  christos ac_ext=c
   3665      1.1.1.3  christos ac_cpp='$CPP $CPPFLAGS'
   3666      1.1.1.3  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3667      1.1.1.3  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3668      1.1.1.3  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3669      1.1.1.3  christos ac_main_return=return
   3670  1.1.1.6.2.1  pgoyette echo "$as_me:3670: checking how to run the C preprocessor" >&5
   3671      1.1.1.3  christos echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
   3672      1.1.1.3  christos # On Suns, sometimes $CPP names a directory.
   3673      1.1.1.3  christos if test -n "$CPP" && test -d "$CPP"; then
   3674      1.1.1.3  christos   CPP=
   3675          1.1  christos fi
   3676      1.1.1.3  christos if test -z "$CPP"; then
   3677      1.1.1.3  christos   if test "${ac_cv_prog_CPP+set}" = set; then
   3678      1.1.1.3  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3679          1.1  christos else
   3680      1.1.1.3  christos       # Double quotes because CPP needs to be expanded
   3681      1.1.1.3  christos     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3682      1.1.1.3  christos     do
   3683      1.1.1.3  christos       ac_preproc_ok=false
   3684      1.1.1.3  christos for ac_c_preproc_warn_flag in '' yes
   3685      1.1.1.3  christos do
   3686      1.1.1.3  christos   # Use a header file that comes with gcc, so configuring glibc
   3687      1.1.1.3  christos   # with a fresh cross-compiler works.
   3688      1.1.1.3  christos   # On the NeXT, cc -E runs the code through the compiler's parser,
   3689      1.1.1.3  christos   # not just through cpp. "Syntax error" is here to catch this case.
   3690      1.1.1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   3691  1.1.1.6.2.1  pgoyette #line 3691 "configure"
   3692          1.1  christos #include "confdefs.h"
   3693      1.1.1.3  christos #include <assert.h>
   3694      1.1.1.3  christos                      Syntax error
   3695      1.1.1.3  christos _ACEOF
   3696  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:3696: \"$ac_cpp conftest.$ac_ext\"") >&5
   3697      1.1.1.3  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3698          1.1  christos   ac_status=$?
   3699      1.1.1.3  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   3700      1.1.1.3  christos   rm -f conftest.er1
   3701      1.1.1.3  christos   cat conftest.err >&5
   3702  1.1.1.6.2.1  pgoyette   echo "$as_me:3702: \$? = $ac_status" >&5
   3703      1.1.1.3  christos   (exit $ac_status); } >/dev/null; then
   3704      1.1.1.3  christos   if test -s conftest.err; then
   3705      1.1.1.3  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   3706      1.1.1.3  christos   else
   3707      1.1.1.3  christos     ac_cpp_err=
   3708      1.1.1.3  christos   fi
   3709          1.1  christos else
   3710      1.1.1.3  christos   ac_cpp_err=yes
   3711          1.1  christos fi
   3712      1.1.1.3  christos if test -z "$ac_cpp_err"; then
   3713      1.1.1.3  christos   :
   3714      1.1.1.3  christos else
   3715      1.1.1.3  christos   echo "$as_me: failed program was:" >&5
   3716      1.1.1.3  christos   cat conftest.$ac_ext >&5
   3717      1.1.1.3  christos   # Broken: fails on valid input.
   3718      1.1.1.3  christos continue
   3719          1.1  christos fi
   3720      1.1.1.3  christos rm -f conftest.err conftest.$ac_ext
   3721          1.1  christos 
   3722      1.1.1.3  christos   # OK, works on sane cases.  Now check whether non-existent headers
   3723      1.1.1.3  christos   # can be detected and how.
   3724      1.1.1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   3725  1.1.1.6.2.1  pgoyette #line 3725 "configure"
   3726      1.1.1.3  christos #include "confdefs.h"
   3727      1.1.1.3  christos #include <ac_nonexistent.h>
   3728      1.1.1.3  christos _ACEOF
   3729  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:3729: \"$ac_cpp conftest.$ac_ext\"") >&5
   3730      1.1.1.3  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3731      1.1.1.3  christos   ac_status=$?
   3732      1.1.1.3  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   3733      1.1.1.3  christos   rm -f conftest.er1
   3734      1.1.1.3  christos   cat conftest.err >&5
   3735  1.1.1.6.2.1  pgoyette   echo "$as_me:3735: \$? = $ac_status" >&5
   3736      1.1.1.3  christos   (exit $ac_status); } >/dev/null; then
   3737      1.1.1.3  christos   if test -s conftest.err; then
   3738      1.1.1.3  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   3739      1.1.1.3  christos   else
   3740      1.1.1.3  christos     ac_cpp_err=
   3741      1.1.1.3  christos   fi
   3742      1.1.1.3  christos else
   3743      1.1.1.3  christos   ac_cpp_err=yes
   3744      1.1.1.3  christos fi
   3745      1.1.1.3  christos if test -z "$ac_cpp_err"; then
   3746      1.1.1.3  christos   # Broken: success on invalid input.
   3747      1.1.1.3  christos continue
   3748      1.1.1.3  christos else
   3749      1.1.1.3  christos   echo "$as_me: failed program was:" >&5
   3750      1.1.1.3  christos   cat conftest.$ac_ext >&5
   3751      1.1.1.3  christos   # Passes both tests.
   3752      1.1.1.3  christos ac_preproc_ok=:
   3753      1.1.1.3  christos break
   3754      1.1.1.3  christos fi
   3755      1.1.1.3  christos rm -f conftest.err conftest.$ac_ext
   3756      1.1.1.3  christos 
   3757      1.1.1.3  christos done
   3758      1.1.1.3  christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3759      1.1.1.3  christos rm -f conftest.err conftest.$ac_ext
   3760      1.1.1.3  christos if $ac_preproc_ok; then
   3761      1.1.1.3  christos   break
   3762      1.1.1.3  christos fi
   3763      1.1.1.3  christos 
   3764      1.1.1.3  christos     done
   3765      1.1.1.3  christos     ac_cv_prog_CPP=$CPP
   3766      1.1.1.3  christos 
   3767      1.1.1.3  christos fi
   3768      1.1.1.3  christos   CPP=$ac_cv_prog_CPP
   3769      1.1.1.3  christos else
   3770      1.1.1.3  christos   ac_cv_prog_CPP=$CPP
   3771      1.1.1.3  christos fi
   3772  1.1.1.6.2.1  pgoyette echo "$as_me:3772: result: $CPP" >&5
   3773      1.1.1.3  christos echo "${ECHO_T}$CPP" >&6
   3774      1.1.1.3  christos ac_preproc_ok=false
   3775      1.1.1.3  christos for ac_c_preproc_warn_flag in '' yes
   3776      1.1.1.3  christos do
   3777      1.1.1.3  christos   # Use a header file that comes with gcc, so configuring glibc
   3778      1.1.1.3  christos   # with a fresh cross-compiler works.
   3779      1.1.1.3  christos   # On the NeXT, cc -E runs the code through the compiler's parser,
   3780      1.1.1.3  christos   # not just through cpp. "Syntax error" is here to catch this case.
   3781      1.1.1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   3782  1.1.1.6.2.1  pgoyette #line 3782 "configure"
   3783      1.1.1.3  christos #include "confdefs.h"
   3784      1.1.1.3  christos #include <assert.h>
   3785      1.1.1.3  christos                      Syntax error
   3786      1.1.1.3  christos _ACEOF
   3787  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:3787: \"$ac_cpp conftest.$ac_ext\"") >&5
   3788      1.1.1.3  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3789      1.1.1.3  christos   ac_status=$?
   3790      1.1.1.3  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   3791      1.1.1.3  christos   rm -f conftest.er1
   3792      1.1.1.3  christos   cat conftest.err >&5
   3793  1.1.1.6.2.1  pgoyette   echo "$as_me:3793: \$? = $ac_status" >&5
   3794      1.1.1.3  christos   (exit $ac_status); } >/dev/null; then
   3795      1.1.1.3  christos   if test -s conftest.err; then
   3796      1.1.1.3  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   3797      1.1.1.3  christos   else
   3798      1.1.1.3  christos     ac_cpp_err=
   3799      1.1.1.3  christos   fi
   3800      1.1.1.3  christos else
   3801      1.1.1.3  christos   ac_cpp_err=yes
   3802      1.1.1.3  christos fi
   3803      1.1.1.3  christos if test -z "$ac_cpp_err"; then
   3804      1.1.1.3  christos   :
   3805      1.1.1.3  christos else
   3806      1.1.1.3  christos   echo "$as_me: failed program was:" >&5
   3807      1.1.1.3  christos   cat conftest.$ac_ext >&5
   3808      1.1.1.3  christos   # Broken: fails on valid input.
   3809      1.1.1.3  christos continue
   3810      1.1.1.3  christos fi
   3811      1.1.1.3  christos rm -f conftest.err conftest.$ac_ext
   3812      1.1.1.3  christos 
   3813      1.1.1.3  christos   # OK, works on sane cases.  Now check whether non-existent headers
   3814      1.1.1.3  christos   # can be detected and how.
   3815      1.1.1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   3816  1.1.1.6.2.1  pgoyette #line 3816 "configure"
   3817      1.1.1.3  christos #include "confdefs.h"
   3818      1.1.1.3  christos #include <ac_nonexistent.h>
   3819      1.1.1.3  christos _ACEOF
   3820  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:3820: \"$ac_cpp conftest.$ac_ext\"") >&5
   3821      1.1.1.3  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3822      1.1.1.3  christos   ac_status=$?
   3823      1.1.1.3  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   3824      1.1.1.3  christos   rm -f conftest.er1
   3825      1.1.1.3  christos   cat conftest.err >&5
   3826  1.1.1.6.2.1  pgoyette   echo "$as_me:3826: \$? = $ac_status" >&5
   3827      1.1.1.3  christos   (exit $ac_status); } >/dev/null; then
   3828      1.1.1.3  christos   if test -s conftest.err; then
   3829      1.1.1.3  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   3830      1.1.1.3  christos   else
   3831      1.1.1.3  christos     ac_cpp_err=
   3832      1.1.1.3  christos   fi
   3833      1.1.1.3  christos else
   3834      1.1.1.3  christos   ac_cpp_err=yes
   3835      1.1.1.3  christos fi
   3836      1.1.1.3  christos if test -z "$ac_cpp_err"; then
   3837      1.1.1.3  christos   # Broken: success on invalid input.
   3838      1.1.1.3  christos continue
   3839      1.1.1.3  christos else
   3840      1.1.1.3  christos   echo "$as_me: failed program was:" >&5
   3841      1.1.1.3  christos   cat conftest.$ac_ext >&5
   3842      1.1.1.3  christos   # Passes both tests.
   3843      1.1.1.3  christos ac_preproc_ok=:
   3844      1.1.1.3  christos break
   3845      1.1.1.3  christos fi
   3846      1.1.1.3  christos rm -f conftest.err conftest.$ac_ext
   3847      1.1.1.3  christos 
   3848      1.1.1.3  christos done
   3849      1.1.1.3  christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3850      1.1.1.3  christos rm -f conftest.err conftest.$ac_ext
   3851      1.1.1.3  christos if $ac_preproc_ok; then
   3852      1.1.1.3  christos   :
   3853      1.1.1.3  christos else
   3854  1.1.1.6.2.1  pgoyette   { { echo "$as_me:3854: error: C preprocessor \"$CPP\" fails sanity check" >&5
   3855      1.1.1.3  christos echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
   3856      1.1.1.3  christos    { (exit 1); exit 1; }; }
   3857      1.1.1.3  christos fi
   3858      1.1.1.3  christos 
   3859      1.1.1.3  christos ac_ext=c
   3860      1.1.1.3  christos ac_cpp='$CPP $CPPFLAGS'
   3861      1.1.1.3  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3862      1.1.1.3  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3863      1.1.1.3  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3864      1.1.1.3  christos ac_main_return=return
   3865      1.1.1.3  christos 
   3866      1.1.1.3  christos for ac_header in fcntl.h
   3867      1.1.1.3  christos do
   3868      1.1.1.3  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3869  1.1.1.6.2.1  pgoyette echo "$as_me:3869: checking for $ac_header" >&5
   3870  1.1.1.6.2.1  pgoyette echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   3871  1.1.1.6.2.1  pgoyette if eval "test \"\${$as_ac_Header+set}\" = set"; then
   3872  1.1.1.6.2.1  pgoyette   echo $ECHO_N "(cached) $ECHO_C" >&6
   3873  1.1.1.6.2.1  pgoyette else
   3874  1.1.1.6.2.1  pgoyette   cat >conftest.$ac_ext <<_ACEOF
   3875  1.1.1.6.2.1  pgoyette #line 3875 "configure"
   3876  1.1.1.6.2.1  pgoyette #include "confdefs.h"
   3877  1.1.1.6.2.1  pgoyette #include <$ac_header>
   3878  1.1.1.6.2.1  pgoyette _ACEOF
   3879  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:3879: \"$ac_cpp conftest.$ac_ext\"") >&5
   3880  1.1.1.6.2.1  pgoyette   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3881  1.1.1.6.2.1  pgoyette   ac_status=$?
   3882  1.1.1.6.2.1  pgoyette   egrep -v '^ *\+' conftest.er1 >conftest.err
   3883  1.1.1.6.2.1  pgoyette   rm -f conftest.er1
   3884  1.1.1.6.2.1  pgoyette   cat conftest.err >&5
   3885  1.1.1.6.2.1  pgoyette   echo "$as_me:3885: \$? = $ac_status" >&5
   3886  1.1.1.6.2.1  pgoyette   (exit $ac_status); } >/dev/null; then
   3887  1.1.1.6.2.1  pgoyette   if test -s conftest.err; then
   3888  1.1.1.6.2.1  pgoyette     ac_cpp_err=$ac_c_preproc_warn_flag
   3889  1.1.1.6.2.1  pgoyette   else
   3890  1.1.1.6.2.1  pgoyette     ac_cpp_err=
   3891  1.1.1.6.2.1  pgoyette   fi
   3892  1.1.1.6.2.1  pgoyette else
   3893  1.1.1.6.2.1  pgoyette   ac_cpp_err=yes
   3894  1.1.1.6.2.1  pgoyette fi
   3895  1.1.1.6.2.1  pgoyette if test -z "$ac_cpp_err"; then
   3896  1.1.1.6.2.1  pgoyette   eval "$as_ac_Header=yes"
   3897  1.1.1.6.2.1  pgoyette else
   3898  1.1.1.6.2.1  pgoyette   echo "$as_me: failed program was:" >&5
   3899  1.1.1.6.2.1  pgoyette   cat conftest.$ac_ext >&5
   3900  1.1.1.6.2.1  pgoyette   eval "$as_ac_Header=no"
   3901  1.1.1.6.2.1  pgoyette fi
   3902  1.1.1.6.2.1  pgoyette rm -f conftest.err conftest.$ac_ext
   3903  1.1.1.6.2.1  pgoyette fi
   3904  1.1.1.6.2.1  pgoyette echo "$as_me:3904: result: `eval echo '${'$as_ac_Header'}'`" >&5
   3905  1.1.1.6.2.1  pgoyette echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   3906  1.1.1.6.2.1  pgoyette if test `eval echo '${'$as_ac_Header'}'` = yes; then
   3907  1.1.1.6.2.1  pgoyette   cat >>confdefs.h <<EOF
   3908  1.1.1.6.2.1  pgoyette #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   3909  1.1.1.6.2.1  pgoyette EOF
   3910  1.1.1.6.2.1  pgoyette 
   3911  1.1.1.6.2.1  pgoyette fi
   3912  1.1.1.6.2.1  pgoyette done
   3913  1.1.1.6.2.1  pgoyette 
   3914  1.1.1.6.2.1  pgoyette for ac_header in \
   3915  1.1.1.6.2.1  pgoyette unistd.h \
   3916  1.1.1.6.2.1  pgoyette 
   3917  1.1.1.6.2.1  pgoyette do
   3918  1.1.1.6.2.1  pgoyette as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3919  1.1.1.6.2.1  pgoyette echo "$as_me:3919: checking for $ac_header" >&5
   3920      1.1.1.3  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   3921      1.1.1.3  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   3922      1.1.1.3  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3923      1.1.1.3  christos else
   3924      1.1.1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   3925  1.1.1.6.2.1  pgoyette #line 3925 "configure"
   3926      1.1.1.3  christos #include "confdefs.h"
   3927      1.1.1.3  christos #include <$ac_header>
   3928      1.1.1.3  christos _ACEOF
   3929  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:3929: \"$ac_cpp conftest.$ac_ext\"") >&5
   3930      1.1.1.3  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3931      1.1.1.3  christos   ac_status=$?
   3932      1.1.1.3  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   3933      1.1.1.3  christos   rm -f conftest.er1
   3934      1.1.1.3  christos   cat conftest.err >&5
   3935  1.1.1.6.2.1  pgoyette   echo "$as_me:3935: \$? = $ac_status" >&5
   3936      1.1.1.3  christos   (exit $ac_status); } >/dev/null; then
   3937      1.1.1.3  christos   if test -s conftest.err; then
   3938      1.1.1.3  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   3939      1.1.1.3  christos   else
   3940      1.1.1.3  christos     ac_cpp_err=
   3941      1.1.1.3  christos   fi
   3942      1.1.1.3  christos else
   3943      1.1.1.3  christos   ac_cpp_err=yes
   3944      1.1.1.3  christos fi
   3945      1.1.1.3  christos if test -z "$ac_cpp_err"; then
   3946      1.1.1.3  christos   eval "$as_ac_Header=yes"
   3947      1.1.1.3  christos else
   3948      1.1.1.3  christos   echo "$as_me: failed program was:" >&5
   3949      1.1.1.3  christos   cat conftest.$ac_ext >&5
   3950      1.1.1.3  christos   eval "$as_ac_Header=no"
   3951      1.1.1.3  christos fi
   3952      1.1.1.3  christos rm -f conftest.err conftest.$ac_ext
   3953      1.1.1.3  christos fi
   3954  1.1.1.6.2.1  pgoyette echo "$as_me:3954: result: `eval echo '${'$as_ac_Header'}'`" >&5
   3955      1.1.1.3  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   3956      1.1.1.3  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   3957      1.1.1.3  christos   cat >>confdefs.h <<EOF
   3958      1.1.1.3  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   3959      1.1.1.3  christos EOF
   3960      1.1.1.3  christos 
   3961      1.1.1.3  christos fi
   3962      1.1.1.3  christos done
   3963      1.1.1.3  christos 
   3964  1.1.1.6.2.1  pgoyette echo "$as_me:3964: checking for working mkstemp" >&5
   3965      1.1.1.4  christos echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
   3966      1.1.1.4  christos if test "${cf_cv_func_mkstemp+set}" = set; then
   3967      1.1.1.3  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3968      1.1.1.3  christos else
   3969      1.1.1.4  christos 
   3970      1.1.1.4  christos rm -rf conftest*
   3971      1.1.1.4  christos if test "$cross_compiling" = yes; then
   3972      1.1.1.4  christos   cf_cv_func_mkstemp=maybe
   3973      1.1.1.4  christos else
   3974      1.1.1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   3975  1.1.1.6.2.1  pgoyette #line 3975 "configure"
   3976      1.1.1.3  christos #include "confdefs.h"
   3977      1.1.1.3  christos 
   3978      1.1.1.4  christos #include <sys/types.h>
   3979  1.1.1.6.2.1  pgoyette #ifdef HAVE_UNISTD_H
   3980  1.1.1.6.2.1  pgoyette #include <unistd.h>
   3981  1.1.1.6.2.1  pgoyette #endif
   3982      1.1.1.4  christos #include <stdlib.h>
   3983      1.1.1.4  christos #include <stdio.h>
   3984      1.1.1.4  christos #include <string.h>
   3985      1.1.1.4  christos #include <sys/stat.h>
   3986  1.1.1.6.2.1  pgoyette int main(void)
   3987      1.1.1.3  christos {
   3988      1.1.1.4  christos 	char *tmpl = "conftestXXXXXX";
   3989      1.1.1.4  christos 	char name[2][80];
   3990      1.1.1.4  christos 	int n;
   3991      1.1.1.4  christos 	int result = 0;
   3992      1.1.1.4  christos 	int fd;
   3993      1.1.1.4  christos 	struct stat sb;
   3994      1.1.1.3  christos 
   3995      1.1.1.4  christos 	umask(077);
   3996      1.1.1.4  christos 	for (n = 0; n < 2; ++n) {
   3997      1.1.1.4  christos 		strcpy(name[n], tmpl);
   3998      1.1.1.4  christos 		if ((fd = mkstemp(name[n])) >= 0) {
   3999      1.1.1.4  christos 			if (!strcmp(name[n], tmpl)
   4000      1.1.1.4  christos 			 || stat(name[n], &sb) != 0
   4001      1.1.1.4  christos 			 || (sb.st_mode & S_IFMT) != S_IFREG
   4002      1.1.1.4  christos 			 || (sb.st_mode & 077) != 0) {
   4003      1.1.1.4  christos 				result = 1;
   4004      1.1.1.4  christos 			}
   4005      1.1.1.4  christos 			close(fd);
   4006      1.1.1.4  christos 		}
   4007      1.1.1.4  christos 	}
   4008      1.1.1.4  christos 	if (result == 0
   4009      1.1.1.4  christos 	 && !strcmp(name[0], name[1]))
   4010      1.1.1.4  christos 		result = 1;
   4011      1.1.1.4  christos 	${cf_cv_main_return:-return}(result);
   4012      1.1.1.3  christos }
   4013      1.1.1.4  christos 
   4014      1.1.1.3  christos _ACEOF
   4015      1.1.1.4  christos rm -f conftest$ac_exeext
   4016  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:4016: \"$ac_link\"") >&5
   4017      1.1.1.3  christos   (eval $ac_link) 2>&5
   4018      1.1.1.3  christos   ac_status=$?
   4019  1.1.1.6.2.1  pgoyette   echo "$as_me:4019: \$? = $ac_status" >&5
   4020      1.1.1.4  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4021  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:4021: \"$ac_try\"") >&5
   4022      1.1.1.3  christos   (eval $ac_try) 2>&5
   4023      1.1.1.3  christos   ac_status=$?
   4024  1.1.1.6.2.1  pgoyette   echo "$as_me:4024: \$? = $ac_status" >&5
   4025      1.1.1.3  christos   (exit $ac_status); }; }; then
   4026      1.1.1.4  christos   cf_cv_func_mkstemp=yes
   4027      1.1.1.4  christos 
   4028      1.1.1.3  christos else
   4029      1.1.1.4  christos   echo "$as_me: program exited with status $ac_status" >&5
   4030      1.1.1.4  christos echo "$as_me: failed program was:" >&5
   4031      1.1.1.3  christos cat conftest.$ac_ext >&5
   4032      1.1.1.4  christos cf_cv_func_mkstemp=no
   4033      1.1.1.4  christos 
   4034      1.1.1.3  christos fi
   4035      1.1.1.4  christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4036      1.1.1.3  christos fi
   4037      1.1.1.3  christos 
   4038      1.1.1.3  christos fi
   4039  1.1.1.6.2.1  pgoyette echo "$as_me:4039: result: $cf_cv_func_mkstemp" >&5
   4040      1.1.1.4  christos echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
   4041      1.1.1.4  christos if test "x$cf_cv_func_mkstemp" = xmaybe ; then
   4042  1.1.1.6.2.1  pgoyette 	echo "$as_me:4042: checking for mkstemp" >&5
   4043      1.1.1.3  christos echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
   4044      1.1.1.3  christos if test "${ac_cv_func_mkstemp+set}" = set; then
   4045      1.1.1.3  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4046      1.1.1.3  christos else
   4047      1.1.1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   4048  1.1.1.6.2.1  pgoyette #line 4048 "configure"
   4049      1.1.1.3  christos #include "confdefs.h"
   4050      1.1.1.3  christos /* System header to define __stub macros and hopefully few prototypes,
   4051      1.1.1.3  christos     which can conflict with char mkstemp (); below.  */
   4052      1.1.1.3  christos #include <assert.h>
   4053      1.1.1.3  christos /* Override any gcc2 internal prototype to avoid an error.  */
   4054      1.1.1.3  christos #ifdef __cplusplus
   4055      1.1.1.3  christos extern "C"
   4056      1.1.1.3  christos #endif
   4057      1.1.1.3  christos /* We use char because int might match the return type of a gcc2
   4058      1.1.1.3  christos    builtin and then its argument prototype would still apply.  */
   4059      1.1.1.3  christos char mkstemp ();
   4060      1.1.1.3  christos char (*f) ();
   4061      1.1.1.3  christos 
   4062      1.1.1.3  christos int
   4063      1.1.1.3  christos main ()
   4064      1.1.1.3  christos {
   4065      1.1.1.3  christos /* The GNU C library defines this for functions which it implements
   4066      1.1.1.3  christos     to always fail with ENOSYS.  Some functions are actually named
   4067      1.1.1.3  christos     something starting with __ and the normal name is an alias.  */
   4068      1.1.1.3  christos #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
   4069      1.1.1.3  christos choke me
   4070      1.1.1.3  christos #else
   4071      1.1.1.4  christos f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
   4072      1.1.1.3  christos #endif
   4073      1.1.1.3  christos 
   4074      1.1.1.3  christos   ;
   4075      1.1.1.3  christos   return 0;
   4076      1.1.1.3  christos }
   4077      1.1.1.3  christos _ACEOF
   4078      1.1.1.3  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4079  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:4079: \"$ac_link\"") >&5
   4080      1.1.1.3  christos   (eval $ac_link) 2>&5
   4081      1.1.1.3  christos   ac_status=$?
   4082  1.1.1.6.2.1  pgoyette   echo "$as_me:4082: \$? = $ac_status" >&5
   4083      1.1.1.3  christos   (exit $ac_status); } &&
   4084      1.1.1.3  christos          { ac_try='test -s conftest$ac_exeext'
   4085  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:4085: \"$ac_try\"") >&5
   4086      1.1.1.3  christos   (eval $ac_try) 2>&5
   4087      1.1.1.3  christos   ac_status=$?
   4088  1.1.1.6.2.1  pgoyette   echo "$as_me:4088: \$? = $ac_status" >&5
   4089      1.1.1.3  christos   (exit $ac_status); }; }; then
   4090      1.1.1.3  christos   ac_cv_func_mkstemp=yes
   4091      1.1.1.3  christos else
   4092      1.1.1.3  christos   echo "$as_me: failed program was:" >&5
   4093      1.1.1.3  christos cat conftest.$ac_ext >&5
   4094      1.1.1.3  christos ac_cv_func_mkstemp=no
   4095      1.1.1.3  christos fi
   4096      1.1.1.3  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   4097      1.1.1.3  christos fi
   4098  1.1.1.6.2.1  pgoyette echo "$as_me:4098: result: $ac_cv_func_mkstemp" >&5
   4099      1.1.1.3  christos echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
   4100      1.1.1.3  christos 
   4101      1.1.1.3  christos fi
   4102      1.1.1.3  christos if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
   4103      1.1.1.4  christos 
   4104      1.1.1.4  christos cat >>confdefs.h <<\EOF
   4105      1.1.1.3  christos #define HAVE_MKSTEMP 1
   4106      1.1.1.3  christos EOF
   4107      1.1.1.3  christos 
   4108      1.1.1.3  christos fi
   4109      1.1.1.3  christos 
   4110      1.1.1.5  christos for ac_func in vsnprintf
   4111      1.1.1.5  christos do
   4112      1.1.1.5  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   4113  1.1.1.6.2.1  pgoyette echo "$as_me:4113: checking for $ac_func" >&5
   4114      1.1.1.5  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   4115      1.1.1.5  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   4116      1.1.1.5  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4117      1.1.1.5  christos else
   4118      1.1.1.5  christos   cat >conftest.$ac_ext <<_ACEOF
   4119  1.1.1.6.2.1  pgoyette #line 4119 "configure"
   4120      1.1.1.5  christos #include "confdefs.h"
   4121      1.1.1.5  christos /* System header to define __stub macros and hopefully few prototypes,
   4122      1.1.1.5  christos     which can conflict with char $ac_func (); below.  */
   4123      1.1.1.5  christos #include <assert.h>
   4124      1.1.1.5  christos /* Override any gcc2 internal prototype to avoid an error.  */
   4125      1.1.1.5  christos #ifdef __cplusplus
   4126      1.1.1.5  christos extern "C"
   4127      1.1.1.5  christos #endif
   4128      1.1.1.5  christos /* We use char because int might match the return type of a gcc2
   4129      1.1.1.5  christos    builtin and then its argument prototype would still apply.  */
   4130      1.1.1.5  christos char $ac_func ();
   4131      1.1.1.5  christos char (*f) ();
   4132      1.1.1.5  christos 
   4133      1.1.1.5  christos int
   4134      1.1.1.5  christos main ()
   4135      1.1.1.5  christos {
   4136      1.1.1.5  christos /* The GNU C library defines this for functions which it implements
   4137      1.1.1.5  christos     to always fail with ENOSYS.  Some functions are actually named
   4138      1.1.1.5  christos     something starting with __ and the normal name is an alias.  */
   4139      1.1.1.5  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   4140      1.1.1.5  christos choke me
   4141      1.1.1.5  christos #else
   4142      1.1.1.5  christos f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
   4143      1.1.1.5  christos #endif
   4144      1.1.1.5  christos 
   4145      1.1.1.5  christos   ;
   4146      1.1.1.5  christos   return 0;
   4147      1.1.1.5  christos }
   4148      1.1.1.5  christos _ACEOF
   4149      1.1.1.5  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4150  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:4150: \"$ac_link\"") >&5
   4151      1.1.1.5  christos   (eval $ac_link) 2>&5
   4152      1.1.1.5  christos   ac_status=$?
   4153  1.1.1.6.2.1  pgoyette   echo "$as_me:4153: \$? = $ac_status" >&5
   4154      1.1.1.5  christos   (exit $ac_status); } &&
   4155      1.1.1.5  christos          { ac_try='test -s conftest$ac_exeext'
   4156  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:4156: \"$ac_try\"") >&5
   4157      1.1.1.5  christos   (eval $ac_try) 2>&5
   4158      1.1.1.5  christos   ac_status=$?
   4159  1.1.1.6.2.1  pgoyette   echo "$as_me:4159: \$? = $ac_status" >&5
   4160      1.1.1.5  christos   (exit $ac_status); }; }; then
   4161      1.1.1.5  christos   eval "$as_ac_var=yes"
   4162      1.1.1.5  christos else
   4163      1.1.1.5  christos   echo "$as_me: failed program was:" >&5
   4164      1.1.1.5  christos cat conftest.$ac_ext >&5
   4165      1.1.1.5  christos eval "$as_ac_var=no"
   4166      1.1.1.5  christos fi
   4167      1.1.1.5  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   4168      1.1.1.5  christos fi
   4169  1.1.1.6.2.1  pgoyette echo "$as_me:4169: result: `eval echo '${'$as_ac_var'}'`" >&5
   4170      1.1.1.5  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   4171      1.1.1.5  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   4172      1.1.1.5  christos   cat >>confdefs.h <<EOF
   4173      1.1.1.5  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   4174      1.1.1.5  christos EOF
   4175      1.1.1.5  christos 
   4176      1.1.1.5  christos fi
   4177      1.1.1.5  christos done
   4178      1.1.1.5  christos 
   4179  1.1.1.6.2.1  pgoyette echo "$as_me:4179: checking for maximum table size" >&5
   4180      1.1.1.5  christos echo $ECHO_N "checking for maximum table size... $ECHO_C" >&6
   4181      1.1.1.5  christos 
   4182      1.1.1.5  christos # Check whether --with-max-table-size or --without-max-table-size was given.
   4183      1.1.1.5  christos if test "${with_max_table_size+set}" = set; then
   4184      1.1.1.5  christos   withval="$with_max_table_size"
   4185      1.1.1.5  christos 
   4186      1.1.1.5  christos fi;
   4187      1.1.1.5  christos if test -n "$with_max_table_size"
   4188      1.1.1.5  christos then
   4189  1.1.1.6.2.1  pgoyette 	echo "$as_me:4189: result: $with_max_table_size" >&5
   4190      1.1.1.5  christos echo "${ECHO_T}$with_max_table_size" >&6
   4191      1.1.1.5  christos 	check=`expr "$with_max_table_size" + 0`
   4192      1.1.1.5  christos 	if test "x$check" != "x$with_max_table_size"
   4193      1.1.1.5  christos 	then
   4194  1.1.1.6.2.1  pgoyette 		{ { echo "$as_me:4194: error: invalid value for --with-max-table-size: $with_max_table_size" >&5
   4195      1.1.1.5  christos echo "$as_me: error: invalid value for --with-max-table-size: $with_max_table_size" >&2;}
   4196      1.1.1.5  christos    { (exit 1); exit 1; }; }
   4197      1.1.1.5  christos 	fi
   4198      1.1.1.5  christos 
   4199      1.1.1.5  christos cat >>confdefs.h <<EOF
   4200      1.1.1.5  christos #define MAXTABLE $with_max_table_size
   4201      1.1.1.5  christos EOF
   4202      1.1.1.5  christos 
   4203      1.1.1.5  christos else
   4204  1.1.1.6.2.1  pgoyette 	echo "$as_me:4204: result: default" >&5
   4205      1.1.1.5  christos echo "${ECHO_T}default" >&6
   4206      1.1.1.5  christos fi
   4207      1.1.1.5  christos 
   4208  1.1.1.6.2.1  pgoyette echo "$as_me:4208: checking if backtracking extension is wanted" >&5
   4209      1.1.1.5  christos echo $ECHO_N "checking if backtracking extension is wanted... $ECHO_C" >&6
   4210      1.1.1.5  christos 
   4211      1.1.1.5  christos # Check whether --enable-btyacc or --disable-btyacc was given.
   4212      1.1.1.5  christos if test "${enable_btyacc+set}" = set; then
   4213      1.1.1.5  christos   enableval="$enable_btyacc"
   4214      1.1.1.5  christos 
   4215      1.1.1.5  christos fi;
   4216  1.1.1.6.2.1  pgoyette echo "$as_me:4216: result: $enable_btyacc" >&5
   4217      1.1.1.5  christos echo "${ECHO_T}$enable_btyacc" >&6
   4218      1.1.1.5  christos if test "$enable_btyacc" = "yes"; then
   4219      1.1.1.5  christos 
   4220      1.1.1.5  christos cat >>confdefs.h <<\EOF
   4221      1.1.1.5  christos #define YYBTYACC 1
   4222      1.1.1.5  christos EOF
   4223      1.1.1.5  christos 
   4224      1.1.1.5  christos 	SKELETON=btyaccpar
   4225      1.1.1.5  christos else
   4226      1.1.1.5  christos 	SKELETON=yaccpar
   4227      1.1.1.5  christos fi
   4228      1.1.1.5  christos 
   4229      1.1.1.3  christos if ( test "$GCC" = yes || test "$GXX" = yes )
   4230      1.1.1.3  christos then
   4231  1.1.1.6.2.1  pgoyette echo "$as_me:4231: checking if you want to check for gcc warnings" >&5
   4232      1.1.1.3  christos echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6
   4233      1.1.1.3  christos 
   4234      1.1.1.3  christos # Check whether --with-warnings or --without-warnings was given.
   4235      1.1.1.3  christos if test "${with_warnings+set}" = set; then
   4236      1.1.1.3  christos   withval="$with_warnings"
   4237      1.1.1.3  christos   cf_opt_with_warnings=$withval
   4238      1.1.1.3  christos else
   4239      1.1.1.3  christos   cf_opt_with_warnings=no
   4240      1.1.1.3  christos fi;
   4241  1.1.1.6.2.1  pgoyette echo "$as_me:4241: result: $cf_opt_with_warnings" >&5
   4242      1.1.1.3  christos echo "${ECHO_T}$cf_opt_with_warnings" >&6
   4243      1.1.1.3  christos if test "$cf_opt_with_warnings" != no ; then
   4244      1.1.1.3  christos 
   4245      1.1.1.3  christos if test "$GCC" = yes
   4246      1.1.1.3  christos then
   4247      1.1.1.3  christos cat > conftest.i <<EOF
   4248      1.1.1.3  christos #ifndef GCC_PRINTF
   4249      1.1.1.3  christos #define GCC_PRINTF 0
   4250      1.1.1.3  christos #endif
   4251      1.1.1.3  christos #ifndef GCC_SCANF
   4252      1.1.1.3  christos #define GCC_SCANF 0
   4253      1.1.1.3  christos #endif
   4254      1.1.1.3  christos #ifndef GCC_NORETURN
   4255      1.1.1.3  christos #define GCC_NORETURN /* nothing */
   4256      1.1.1.3  christos #endif
   4257      1.1.1.3  christos #ifndef GCC_UNUSED
   4258      1.1.1.3  christos #define GCC_UNUSED /* nothing */
   4259      1.1.1.3  christos #endif
   4260      1.1.1.3  christos EOF
   4261      1.1.1.3  christos if test "$GCC" = yes
   4262      1.1.1.3  christos then
   4263  1.1.1.6.2.1  pgoyette 	{ echo "$as_me:4263: checking for $CC __attribute__ directives..." >&5
   4264      1.1.1.3  christos echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
   4265      1.1.1.3  christos cat > conftest.$ac_ext <<EOF
   4266  1.1.1.6.2.1  pgoyette #line 4266 "${as_me:-configure}"
   4267      1.1.1.3  christos #include "confdefs.h"
   4268      1.1.1.3  christos #include "conftest.h"
   4269      1.1.1.3  christos #include "conftest.i"
   4270      1.1.1.3  christos #if	GCC_PRINTF
   4271      1.1.1.3  christos #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
   4272      1.1.1.3  christos #else
   4273      1.1.1.3  christos #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
   4274      1.1.1.3  christos #endif
   4275      1.1.1.3  christos #if	GCC_SCANF
   4276      1.1.1.3  christos #define GCC_SCANFLIKE(fmt,var)  __attribute__((format(scanf,fmt,var)))
   4277      1.1.1.3  christos #else
   4278      1.1.1.3  christos #define GCC_SCANFLIKE(fmt,var)  /*nothing*/
   4279      1.1.1.3  christos #endif
   4280      1.1.1.3  christos extern void wow(char *,...) GCC_SCANFLIKE(1,2);
   4281      1.1.1.3  christos extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
   4282      1.1.1.3  christos extern void foo(void) GCC_NORETURN;
   4283      1.1.1.3  christos int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
   4284      1.1.1.3  christos EOF
   4285      1.1.1.3  christos 	cf_printf_attribute=no
   4286      1.1.1.3  christos 	cf_scanf_attribute=no
   4287      1.1.1.3  christos 	for cf_attribute in scanf printf unused noreturn
   4288      1.1.1.3  christos 	do
   4289      1.1.1.3  christos 
   4290      1.1.1.3  christos cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   4291      1.1.1.3  christos 
   4292      1.1.1.3  christos 		cf_directive="__attribute__(($cf_attribute))"
   4293      1.1.1.3  christos 		echo "checking for $CC $cf_directive" 1>&5
   4294      1.1.1.3  christos 
   4295      1.1.1.6  christos 		case $cf_attribute in
   4296      1.1.1.6  christos 		(printf)
   4297      1.1.1.3  christos 			cf_printf_attribute=yes
   4298      1.1.1.3  christos 			cat >conftest.h <<EOF
   4299      1.1.1.3  christos #define GCC_$cf_ATTRIBUTE 1
   4300      1.1.1.3  christos EOF
   4301      1.1.1.3  christos 			;;
   4302      1.1.1.6  christos 		(scanf)
   4303      1.1.1.3  christos 			cf_scanf_attribute=yes
   4304      1.1.1.3  christos 			cat >conftest.h <<EOF
   4305      1.1.1.3  christos #define GCC_$cf_ATTRIBUTE 1
   4306      1.1.1.3  christos EOF
   4307      1.1.1.3  christos 			;;
   4308      1.1.1.6  christos 		(*)
   4309      1.1.1.3  christos 			cat >conftest.h <<EOF
   4310      1.1.1.3  christos #define GCC_$cf_ATTRIBUTE $cf_directive
   4311      1.1.1.3  christos EOF
   4312      1.1.1.3  christos 			;;
   4313      1.1.1.3  christos 		esac
   4314      1.1.1.3  christos 
   4315  1.1.1.6.2.1  pgoyette 		if { (eval echo "$as_me:4315: \"$ac_compile\"") >&5
   4316      1.1.1.3  christos   (eval $ac_compile) 2>&5
   4317      1.1.1.3  christos   ac_status=$?
   4318  1.1.1.6.2.1  pgoyette   echo "$as_me:4318: \$? = $ac_status" >&5
   4319      1.1.1.3  christos   (exit $ac_status); }; then
   4320  1.1.1.6.2.1  pgoyette 			test -n "$verbose" && echo "$as_me:4320: result: ... $cf_attribute" >&5
   4321      1.1.1.3  christos echo "${ECHO_T}... $cf_attribute" >&6
   4322      1.1.1.3  christos 			cat conftest.h >>confdefs.h
   4323      1.1.1.6  christos 			case $cf_attribute in
   4324      1.1.1.6  christos 			(noreturn)
   4325      1.1.1.4  christos 
   4326      1.1.1.4  christos cat >>confdefs.h <<EOF
   4327      1.1.1.4  christos #define GCC_NORETURN $cf_directive
   4328      1.1.1.3  christos EOF
   4329      1.1.1.4  christos 
   4330      1.1.1.4  christos 				;;
   4331      1.1.1.6  christos 			(printf)
   4332      1.1.1.4  christos 				cf_value='/* nothing */'
   4333      1.1.1.4  christos 				if test "$cf_printf_attribute" != no ; then
   4334      1.1.1.4  christos 					cf_value='__attribute__((format(printf,fmt,var)))'
   4335      1.1.1.4  christos 
   4336      1.1.1.4  christos cat >>confdefs.h <<\EOF
   4337      1.1.1.4  christos #define GCC_PRINTF 1
   4338      1.1.1.3  christos EOF
   4339      1.1.1.4  christos 
   4340      1.1.1.3  christos 				fi
   4341      1.1.1.4  christos 
   4342      1.1.1.4  christos cat >>confdefs.h <<EOF
   4343      1.1.1.4  christos #define GCC_PRINTFLIKE(fmt,var) $cf_value
   4344      1.1.1.4  christos EOF
   4345      1.1.1.4  christos 
   4346      1.1.1.3  christos 				;;
   4347      1.1.1.6  christos 			(scanf)
   4348      1.1.1.4  christos 				cf_value='/* nothing */'
   4349      1.1.1.4  christos 				if test "$cf_scanf_attribute" != no ; then
   4350      1.1.1.4  christos 					cf_value='__attribute__((format(scanf,fmt,var)))'
   4351      1.1.1.4  christos 
   4352      1.1.1.4  christos cat >>confdefs.h <<\EOF
   4353      1.1.1.4  christos #define GCC_SCANF 1
   4354      1.1.1.3  christos EOF
   4355      1.1.1.4  christos 
   4356      1.1.1.3  christos 				fi
   4357      1.1.1.4  christos 
   4358      1.1.1.4  christos cat >>confdefs.h <<EOF
   4359      1.1.1.4  christos #define GCC_SCANFLIKE(fmt,var) $cf_value
   4360      1.1.1.4  christos EOF
   4361      1.1.1.4  christos 
   4362      1.1.1.4  christos 				;;
   4363      1.1.1.6  christos 			(unused)
   4364      1.1.1.4  christos 
   4365      1.1.1.4  christos cat >>confdefs.h <<EOF
   4366      1.1.1.4  christos #define GCC_UNUSED $cf_directive
   4367      1.1.1.4  christos EOF
   4368      1.1.1.4  christos 
   4369      1.1.1.3  christos 				;;
   4370      1.1.1.3  christos 			esac
   4371      1.1.1.3  christos 		fi
   4372      1.1.1.3  christos 	done
   4373      1.1.1.3  christos else
   4374      1.1.1.3  christos 	fgrep define conftest.i >>confdefs.h
   4375      1.1.1.3  christos fi
   4376      1.1.1.3  christos rm -rf conftest*
   4377      1.1.1.3  christos fi
   4378      1.1.1.3  christos 
   4379      1.1.1.3  christos INTEL_COMPILER=no
   4380      1.1.1.3  christos 
   4381      1.1.1.3  christos if test "$GCC" = yes ; then
   4382      1.1.1.3  christos 	case $host_os in
   4383      1.1.1.6  christos 	(linux*|gnu*)
   4384  1.1.1.6.2.1  pgoyette 		echo "$as_me:4384: checking if this is really Intel C compiler" >&5
   4385          1.1  christos echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
   4386          1.1  christos 		cf_save_CFLAGS="$CFLAGS"
   4387          1.1  christos 		CFLAGS="$CFLAGS -no-gcc"
   4388          1.1  christos 		cat >conftest.$ac_ext <<_ACEOF
   4389  1.1.1.6.2.1  pgoyette #line 4389 "configure"
   4390          1.1  christos #include "confdefs.h"
   4391          1.1  christos 
   4392          1.1  christos int
   4393          1.1  christos main ()
   4394          1.1  christos {
   4395          1.1  christos 
   4396          1.1  christos #ifdef __INTEL_COMPILER
   4397          1.1  christos #else
   4398          1.1  christos make an error
   4399          1.1  christos #endif
   4400          1.1  christos 
   4401          1.1  christos   ;
   4402          1.1  christos   return 0;
   4403          1.1  christos }
   4404          1.1  christos _ACEOF
   4405          1.1  christos rm -f conftest.$ac_objext
   4406  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:4406: \"$ac_compile\"") >&5
   4407          1.1  christos   (eval $ac_compile) 2>&5
   4408          1.1  christos   ac_status=$?
   4409  1.1.1.6.2.1  pgoyette   echo "$as_me:4409: \$? = $ac_status" >&5
   4410          1.1  christos   (exit $ac_status); } &&
   4411          1.1  christos          { ac_try='test -s conftest.$ac_objext'
   4412  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:4412: \"$ac_try\"") >&5
   4413          1.1  christos   (eval $ac_try) 2>&5
   4414          1.1  christos   ac_status=$?
   4415  1.1.1.6.2.1  pgoyette   echo "$as_me:4415: \$? = $ac_status" >&5
   4416          1.1  christos   (exit $ac_status); }; }; then
   4417          1.1  christos   INTEL_COMPILER=yes
   4418      1.1.1.5  christos cf_save_CFLAGS="$cf_save_CFLAGS -we147"
   4419          1.1  christos 
   4420          1.1  christos else
   4421          1.1  christos   echo "$as_me: failed program was:" >&5
   4422          1.1  christos cat conftest.$ac_ext >&5
   4423          1.1  christos fi
   4424          1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   4425          1.1  christos 		CFLAGS="$cf_save_CFLAGS"
   4426  1.1.1.6.2.1  pgoyette 		echo "$as_me:4426: result: $INTEL_COMPILER" >&5
   4427          1.1  christos echo "${ECHO_T}$INTEL_COMPILER" >&6
   4428          1.1  christos 		;;
   4429          1.1  christos 	esac
   4430          1.1  christos fi
   4431          1.1  christos 
   4432      1.1.1.4  christos CLANG_COMPILER=no
   4433      1.1.1.4  christos 
   4434      1.1.1.4  christos if test "$GCC" = yes ; then
   4435  1.1.1.6.2.1  pgoyette 	echo "$as_me:4435: checking if this is really Clang C compiler" >&5
   4436      1.1.1.4  christos echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
   4437      1.1.1.4  christos 	cf_save_CFLAGS="$CFLAGS"
   4438      1.1.1.4  christos 	CFLAGS="$CFLAGS -Qunused-arguments"
   4439      1.1.1.4  christos 	cat >conftest.$ac_ext <<_ACEOF
   4440  1.1.1.6.2.1  pgoyette #line 4440 "configure"
   4441      1.1.1.4  christos #include "confdefs.h"
   4442      1.1.1.4  christos 
   4443      1.1.1.4  christos int
   4444      1.1.1.4  christos main ()
   4445      1.1.1.4  christos {
   4446      1.1.1.4  christos 
   4447      1.1.1.4  christos #ifdef __clang__
   4448      1.1.1.4  christos #else
   4449      1.1.1.4  christos make an error
   4450      1.1.1.4  christos #endif
   4451      1.1.1.4  christos 
   4452      1.1.1.4  christos   ;
   4453      1.1.1.4  christos   return 0;
   4454      1.1.1.4  christos }
   4455      1.1.1.4  christos _ACEOF
   4456      1.1.1.4  christos rm -f conftest.$ac_objext
   4457  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:4457: \"$ac_compile\"") >&5
   4458      1.1.1.4  christos   (eval $ac_compile) 2>&5
   4459      1.1.1.4  christos   ac_status=$?
   4460  1.1.1.6.2.1  pgoyette   echo "$as_me:4460: \$? = $ac_status" >&5
   4461      1.1.1.4  christos   (exit $ac_status); } &&
   4462      1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   4463  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:4463: \"$ac_try\"") >&5
   4464      1.1.1.4  christos   (eval $ac_try) 2>&5
   4465      1.1.1.4  christos   ac_status=$?
   4466  1.1.1.6.2.1  pgoyette   echo "$as_me:4466: \$? = $ac_status" >&5
   4467      1.1.1.4  christos   (exit $ac_status); }; }; then
   4468      1.1.1.4  christos   CLANG_COMPILER=yes
   4469      1.1.1.4  christos cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
   4470      1.1.1.4  christos 
   4471      1.1.1.4  christos else
   4472      1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   4473      1.1.1.4  christos cat conftest.$ac_ext >&5
   4474      1.1.1.4  christos fi
   4475      1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   4476      1.1.1.4  christos 	CFLAGS="$cf_save_CFLAGS"
   4477  1.1.1.6.2.1  pgoyette 	echo "$as_me:4477: result: $CLANG_COMPILER" >&5
   4478      1.1.1.4  christos echo "${ECHO_T}$CLANG_COMPILER" >&6
   4479      1.1.1.4  christos fi
   4480      1.1.1.4  christos 
   4481          1.1  christos cat > conftest.$ac_ext <<EOF
   4482  1.1.1.6.2.1  pgoyette #line 4482 "${as_me:-configure}"
   4483          1.1  christos int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
   4484          1.1  christos EOF
   4485          1.1  christos 
   4486          1.1  christos if test "$INTEL_COMPILER" = yes
   4487          1.1  christos then
   4488          1.1  christos # The "-wdXXX" options suppress warnings:
   4489          1.1  christos # remark #1419: external declaration in primary source file
   4490          1.1  christos # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
   4491          1.1  christos # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
   4492          1.1  christos # remark #193: zero used for undefined preprocessing identifier
   4493          1.1  christos # remark #593: variable "curs_sb_left_arrow" was set but never used
   4494          1.1  christos # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
   4495          1.1  christos # remark #869: parameter "tw" was never referenced
   4496          1.1  christos # remark #981: operands are evaluated in unspecified order
   4497          1.1  christos # warning #279: controlling expression is constant
   4498          1.1  christos 
   4499  1.1.1.6.2.1  pgoyette 	{ echo "$as_me:4499: checking for $CC warning options..." >&5
   4500          1.1  christos echo "$as_me: checking for $CC warning options..." >&6;}
   4501          1.1  christos 	cf_save_CFLAGS="$CFLAGS"
   4502          1.1  christos 	EXTRA_CFLAGS="-Wall"
   4503          1.1  christos 	for cf_opt in \
   4504          1.1  christos 		wd1419 \
   4505          1.1  christos 		wd1683 \
   4506          1.1  christos 		wd1684 \
   4507          1.1  christos 		wd193 \
   4508          1.1  christos 		wd593 \
   4509          1.1  christos 		wd279 \
   4510          1.1  christos 		wd810 \
   4511          1.1  christos 		wd869 \
   4512          1.1  christos 		wd981
   4513          1.1  christos 	do
   4514          1.1  christos 		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
   4515  1.1.1.6.2.1  pgoyette 		if { (eval echo "$as_me:4515: \"$ac_compile\"") >&5
   4516          1.1  christos   (eval $ac_compile) 2>&5
   4517          1.1  christos   ac_status=$?
   4518  1.1.1.6.2.1  pgoyette   echo "$as_me:4518: \$? = $ac_status" >&5
   4519          1.1  christos   (exit $ac_status); }; then
   4520  1.1.1.6.2.1  pgoyette 			test -n "$verbose" && echo "$as_me:4520: result: ... -$cf_opt" >&5
   4521          1.1  christos echo "${ECHO_T}... -$cf_opt" >&6
   4522          1.1  christos 			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
   4523          1.1  christos 		fi
   4524          1.1  christos 	done
   4525          1.1  christos 	CFLAGS="$cf_save_CFLAGS"
   4526          1.1  christos 
   4527          1.1  christos elif test "$GCC" = yes
   4528          1.1  christos then
   4529  1.1.1.6.2.1  pgoyette 	{ echo "$as_me:4529: checking for $CC warning options..." >&5
   4530          1.1  christos echo "$as_me: checking for $CC warning options..." >&6;}
   4531          1.1  christos 	cf_save_CFLAGS="$CFLAGS"
   4532      1.1.1.2  christos 	EXTRA_CFLAGS=
   4533          1.1  christos 	cf_warn_CONST=""
   4534          1.1  christos 	test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
   4535      1.1.1.5  christos 	cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
   4536      1.1.1.5  christos 	test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
   4537      1.1.1.2  christos 	for cf_opt in W Wall \
   4538          1.1  christos 		Wbad-function-cast \
   4539          1.1  christos 		Wcast-align \
   4540          1.1  christos 		Wcast-qual \
   4541      1.1.1.5  christos 		Wdeclaration-after-statement \
   4542      1.1.1.5  christos 		Wextra \
   4543          1.1  christos 		Winline \
   4544          1.1  christos 		Wmissing-declarations \
   4545          1.1  christos 		Wmissing-prototypes \
   4546          1.1  christos 		Wnested-externs \
   4547          1.1  christos 		Wpointer-arith \
   4548          1.1  christos 		Wshadow \
   4549          1.1  christos 		Wstrict-prototypes \
   4550      1.1.1.5  christos 		Wundef $cf_gcc_warnings $cf_warn_CONST Wwrite-strings
   4551          1.1  christos 	do
   4552          1.1  christos 		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
   4553  1.1.1.6.2.1  pgoyette 		if { (eval echo "$as_me:4553: \"$ac_compile\"") >&5
   4554          1.1  christos   (eval $ac_compile) 2>&5
   4555          1.1  christos   ac_status=$?
   4556  1.1.1.6.2.1  pgoyette   echo "$as_me:4556: \$? = $ac_status" >&5
   4557          1.1  christos   (exit $ac_status); }; then
   4558  1.1.1.6.2.1  pgoyette 			test -n "$verbose" && echo "$as_me:4558: result: ... -$cf_opt" >&5
   4559          1.1  christos echo "${ECHO_T}... -$cf_opt" >&6
   4560      1.1.1.6  christos 			case $cf_opt in
   4561      1.1.1.6  christos 			(Wcast-qual)
   4562          1.1  christos 				CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
   4563          1.1  christos 				;;
   4564      1.1.1.6  christos 			(Winline)
   4565          1.1  christos 				case $GCC_VERSION in
   4566      1.1.1.6  christos 				([34].*)
   4567          1.1  christos 					test -n "$verbose" && echo "	feature is broken in gcc $GCC_VERSION" 1>&6
   4568          1.1  christos 
   4569  1.1.1.6.2.1  pgoyette echo "${as_me:-configure}:4569: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
   4570      1.1.1.4  christos 
   4571      1.1.1.4  christos 					continue;;
   4572      1.1.1.4  christos 				esac
   4573      1.1.1.4  christos 				;;
   4574      1.1.1.6  christos 			(Wpointer-arith)
   4575      1.1.1.4  christos 				case $GCC_VERSION in
   4576      1.1.1.6  christos 				([12].*)
   4577      1.1.1.4  christos 					test -n "$verbose" && echo "	feature is broken in gcc $GCC_VERSION" 1>&6
   4578      1.1.1.4  christos 
   4579  1.1.1.6.2.1  pgoyette echo "${as_me:-configure}:4579: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
   4580          1.1  christos 
   4581          1.1  christos 					continue;;
   4582          1.1  christos 				esac
   4583          1.1  christos 				;;
   4584          1.1  christos 			esac
   4585          1.1  christos 			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
   4586          1.1  christos 		fi
   4587          1.1  christos 	done
   4588          1.1  christos 	CFLAGS="$cf_save_CFLAGS"
   4589          1.1  christos fi
   4590      1.1.1.3  christos rm -rf conftest*
   4591          1.1  christos 
   4592          1.1  christos fi
   4593          1.1  christos fi
   4594          1.1  christos 
   4595  1.1.1.6.2.1  pgoyette echo "$as_me:4595: checking if you want to see long compiling messages" >&5
   4596          1.1  christos echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
   4597          1.1  christos 
   4598          1.1  christos # Check whether --enable-echo or --disable-echo was given.
   4599          1.1  christos if test "${enable_echo+set}" = set; then
   4600          1.1  christos   enableval="$enable_echo"
   4601          1.1  christos   test "$enableval" != no && enableval=yes
   4602      1.1.1.6  christos 	if test "$enableval" != "yes" ; then
   4603          1.1  christos 
   4604      1.1.1.6  christos 	ECHO_LT='--silent'
   4605      1.1.1.6  christos 	ECHO_LD='@echo linking $@;'
   4606      1.1.1.6  christos 	RULE_CC='@echo compiling $<'
   4607      1.1.1.6  christos 	SHOW_CC='@echo compiling $@'
   4608      1.1.1.6  christos 	ECHO_CC='@'
   4609          1.1  christos 
   4610      1.1.1.6  christos 	else
   4611          1.1  christos 
   4612      1.1.1.6  christos 	ECHO_LT=''
   4613      1.1.1.6  christos 	ECHO_LD=''
   4614      1.1.1.6  christos 	RULE_CC=''
   4615      1.1.1.6  christos 	SHOW_CC=''
   4616      1.1.1.6  christos 	ECHO_CC=''
   4617          1.1  christos 
   4618      1.1.1.6  christos 	fi
   4619          1.1  christos else
   4620          1.1  christos   enableval=yes
   4621          1.1  christos 
   4622      1.1.1.6  christos 	ECHO_LT=''
   4623      1.1.1.6  christos 	ECHO_LD=''
   4624      1.1.1.6  christos 	RULE_CC=''
   4625      1.1.1.6  christos 	SHOW_CC=''
   4626      1.1.1.6  christos 	ECHO_CC=''
   4627          1.1  christos 
   4628          1.1  christos fi;
   4629  1.1.1.6.2.1  pgoyette echo "$as_me:4629: result: $enableval" >&5
   4630          1.1  christos echo "${ECHO_T}$enableval" >&6
   4631          1.1  christos 
   4632  1.1.1.6.2.1  pgoyette echo "$as_me:4632: checking if you want to use dmalloc for testing" >&5
   4633          1.1  christos echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
   4634          1.1  christos 
   4635          1.1  christos # Check whether --with-dmalloc or --without-dmalloc was given.
   4636          1.1  christos if test "${with_dmalloc+set}" = set; then
   4637          1.1  christos   withval="$with_dmalloc"
   4638      1.1.1.4  christos 
   4639      1.1.1.4  christos cat >>confdefs.h <<EOF
   4640          1.1  christos #define USE_DMALLOC 1
   4641          1.1  christos EOF
   4642          1.1  christos 
   4643          1.1  christos 	: ${with_cflags:=-g}
   4644          1.1  christos 	: ${with_no_leaks:=yes}
   4645          1.1  christos 	 with_dmalloc=yes
   4646          1.1  christos else
   4647          1.1  christos   with_dmalloc=
   4648          1.1  christos fi;
   4649  1.1.1.6.2.1  pgoyette echo "$as_me:4649: result: ${with_dmalloc:-no}" >&5
   4650          1.1  christos echo "${ECHO_T}${with_dmalloc:-no}" >&6
   4651          1.1  christos 
   4652      1.1.1.6  christos case .$with_cflags in
   4653      1.1.1.6  christos (.*-g*)
   4654      1.1.1.6  christos 	case .$CFLAGS in
   4655      1.1.1.6  christos 	(.*-g*)
   4656          1.1  christos 		;;
   4657      1.1.1.6  christos 	(*)
   4658          1.1  christos 
   4659          1.1  christos cf_fix_cppflags=no
   4660          1.1  christos cf_new_cflags=
   4661          1.1  christos cf_new_cppflags=
   4662          1.1  christos cf_new_extra_cppflags=
   4663          1.1  christos 
   4664          1.1  christos for cf_add_cflags in -g
   4665          1.1  christos do
   4666          1.1  christos case $cf_fix_cppflags in
   4667      1.1.1.6  christos (no)
   4668      1.1.1.6  christos 	case $cf_add_cflags in
   4669      1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   4670          1.1  christos 		case $cf_add_cflags in
   4671      1.1.1.6  christos 		(-D*)
   4672          1.1  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   4673          1.1  christos 
   4674      1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   4675      1.1.1.2  christos 				&& test -z "${cf_tst_cflags}" \
   4676      1.1.1.2  christos 				&& cf_fix_cppflags=yes
   4677          1.1  christos 
   4678          1.1  christos 			if test $cf_fix_cppflags = yes ; then
   4679          1.1  christos 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   4680          1.1  christos 				continue
   4681          1.1  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   4682          1.1  christos 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   4683          1.1  christos 				continue
   4684          1.1  christos 			fi
   4685          1.1  christos 			;;
   4686          1.1  christos 		esac
   4687          1.1  christos 		case "$CPPFLAGS" in
   4688      1.1.1.6  christos 		(*$cf_add_cflags)
   4689          1.1  christos 			;;
   4690      1.1.1.6  christos 		(*)
   4691      1.1.1.6  christos 			case $cf_add_cflags in
   4692      1.1.1.6  christos 			(-D*)
   4693      1.1.1.2  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   4694      1.1.1.2  christos 
   4695      1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   4696      1.1.1.2  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   4697      1.1.1.2  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   4698      1.1.1.2  christos 
   4699      1.1.1.2  christos 				;;
   4700      1.1.1.2  christos 			esac
   4701          1.1  christos 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   4702          1.1  christos 			;;
   4703          1.1  christos 		esac
   4704          1.1  christos 		;;
   4705      1.1.1.6  christos 	(*)
   4706          1.1  christos 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   4707          1.1  christos 		;;
   4708          1.1  christos 	esac
   4709          1.1  christos 	;;
   4710      1.1.1.6  christos (yes)
   4711          1.1  christos 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   4712          1.1  christos 
   4713          1.1  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   4714          1.1  christos 
   4715      1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   4716      1.1.1.2  christos 		&& test -z "${cf_tst_cflags}" \
   4717      1.1.1.2  christos 		&& cf_fix_cppflags=no
   4718          1.1  christos 	;;
   4719          1.1  christos esac
   4720          1.1  christos done
   4721          1.1  christos 
   4722          1.1  christos if test -n "$cf_new_cflags" ; then
   4723          1.1  christos 
   4724          1.1  christos 	CFLAGS="$CFLAGS $cf_new_cflags"
   4725          1.1  christos fi
   4726          1.1  christos 
   4727          1.1  christos if test -n "$cf_new_cppflags" ; then
   4728          1.1  christos 
   4729          1.1  christos 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   4730          1.1  christos fi
   4731          1.1  christos 
   4732          1.1  christos if test -n "$cf_new_extra_cppflags" ; then
   4733          1.1  christos 
   4734          1.1  christos 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   4735          1.1  christos fi
   4736          1.1  christos 
   4737          1.1  christos 		;;
   4738          1.1  christos 	esac
   4739          1.1  christos 	;;
   4740          1.1  christos esac
   4741          1.1  christos 
   4742          1.1  christos if test "$with_dmalloc" = yes ; then
   4743  1.1.1.6.2.1  pgoyette 	echo "$as_me:4743: checking for dmalloc.h" >&5
   4744          1.1  christos echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
   4745          1.1  christos if test "${ac_cv_header_dmalloc_h+set}" = set; then
   4746          1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4747          1.1  christos else
   4748          1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   4749  1.1.1.6.2.1  pgoyette #line 4749 "configure"
   4750          1.1  christos #include "confdefs.h"
   4751          1.1  christos #include <dmalloc.h>
   4752          1.1  christos _ACEOF
   4753  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:4753: \"$ac_cpp conftest.$ac_ext\"") >&5
   4754          1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   4755          1.1  christos   ac_status=$?
   4756          1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   4757          1.1  christos   rm -f conftest.er1
   4758          1.1  christos   cat conftest.err >&5
   4759  1.1.1.6.2.1  pgoyette   echo "$as_me:4759: \$? = $ac_status" >&5
   4760          1.1  christos   (exit $ac_status); } >/dev/null; then
   4761          1.1  christos   if test -s conftest.err; then
   4762          1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   4763          1.1  christos   else
   4764          1.1  christos     ac_cpp_err=
   4765          1.1  christos   fi
   4766          1.1  christos else
   4767          1.1  christos   ac_cpp_err=yes
   4768          1.1  christos fi
   4769          1.1  christos if test -z "$ac_cpp_err"; then
   4770          1.1  christos   ac_cv_header_dmalloc_h=yes
   4771          1.1  christos else
   4772          1.1  christos   echo "$as_me: failed program was:" >&5
   4773          1.1  christos   cat conftest.$ac_ext >&5
   4774          1.1  christos   ac_cv_header_dmalloc_h=no
   4775          1.1  christos fi
   4776          1.1  christos rm -f conftest.err conftest.$ac_ext
   4777          1.1  christos fi
   4778  1.1.1.6.2.1  pgoyette echo "$as_me:4778: result: $ac_cv_header_dmalloc_h" >&5
   4779          1.1  christos echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
   4780          1.1  christos if test $ac_cv_header_dmalloc_h = yes; then
   4781          1.1  christos 
   4782  1.1.1.6.2.1  pgoyette echo "$as_me:4782: checking for dmalloc_debug in -ldmalloc" >&5
   4783          1.1  christos echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
   4784          1.1  christos if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
   4785          1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4786          1.1  christos else
   4787          1.1  christos   ac_check_lib_save_LIBS=$LIBS
   4788          1.1  christos LIBS="-ldmalloc  $LIBS"
   4789          1.1  christos cat >conftest.$ac_ext <<_ACEOF
   4790  1.1.1.6.2.1  pgoyette #line 4790 "configure"
   4791          1.1  christos #include "confdefs.h"
   4792          1.1  christos 
   4793          1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   4794          1.1  christos #ifdef __cplusplus
   4795          1.1  christos extern "C"
   4796          1.1  christos #endif
   4797          1.1  christos /* We use char because int might match the return type of a gcc2
   4798          1.1  christos    builtin and then its argument prototype would still apply.  */
   4799          1.1  christos char dmalloc_debug ();
   4800          1.1  christos int
   4801          1.1  christos main ()
   4802          1.1  christos {
   4803          1.1  christos dmalloc_debug ();
   4804          1.1  christos   ;
   4805          1.1  christos   return 0;
   4806          1.1  christos }
   4807          1.1  christos _ACEOF
   4808          1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4809  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:4809: \"$ac_link\"") >&5
   4810          1.1  christos   (eval $ac_link) 2>&5
   4811          1.1  christos   ac_status=$?
   4812  1.1.1.6.2.1  pgoyette   echo "$as_me:4812: \$? = $ac_status" >&5
   4813          1.1  christos   (exit $ac_status); } &&
   4814          1.1  christos          { ac_try='test -s conftest$ac_exeext'
   4815  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:4815: \"$ac_try\"") >&5
   4816          1.1  christos   (eval $ac_try) 2>&5
   4817          1.1  christos   ac_status=$?
   4818  1.1.1.6.2.1  pgoyette   echo "$as_me:4818: \$? = $ac_status" >&5
   4819          1.1  christos   (exit $ac_status); }; }; then
   4820          1.1  christos   ac_cv_lib_dmalloc_dmalloc_debug=yes
   4821          1.1  christos else
   4822          1.1  christos   echo "$as_me: failed program was:" >&5
   4823          1.1  christos cat conftest.$ac_ext >&5
   4824          1.1  christos ac_cv_lib_dmalloc_dmalloc_debug=no
   4825          1.1  christos fi
   4826          1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   4827          1.1  christos LIBS=$ac_check_lib_save_LIBS
   4828          1.1  christos fi
   4829  1.1.1.6.2.1  pgoyette echo "$as_me:4829: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
   4830          1.1  christos echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
   4831          1.1  christos if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
   4832          1.1  christos   cat >>confdefs.h <<EOF
   4833          1.1  christos #define HAVE_LIBDMALLOC 1
   4834          1.1  christos EOF
   4835          1.1  christos 
   4836          1.1  christos   LIBS="-ldmalloc $LIBS"
   4837          1.1  christos 
   4838          1.1  christos fi
   4839          1.1  christos 
   4840          1.1  christos fi
   4841          1.1  christos 
   4842          1.1  christos fi
   4843          1.1  christos 
   4844  1.1.1.6.2.1  pgoyette echo "$as_me:4844: checking if you want to use dbmalloc for testing" >&5
   4845          1.1  christos echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
   4846          1.1  christos 
   4847          1.1  christos # Check whether --with-dbmalloc or --without-dbmalloc was given.
   4848          1.1  christos if test "${with_dbmalloc+set}" = set; then
   4849          1.1  christos   withval="$with_dbmalloc"
   4850      1.1.1.4  christos 
   4851      1.1.1.4  christos cat >>confdefs.h <<EOF
   4852          1.1  christos #define USE_DBMALLOC 1
   4853          1.1  christos EOF
   4854          1.1  christos 
   4855          1.1  christos 	: ${with_cflags:=-g}
   4856          1.1  christos 	: ${with_no_leaks:=yes}
   4857          1.1  christos 	 with_dbmalloc=yes
   4858          1.1  christos else
   4859          1.1  christos   with_dbmalloc=
   4860          1.1  christos fi;
   4861  1.1.1.6.2.1  pgoyette echo "$as_me:4861: result: ${with_dbmalloc:-no}" >&5
   4862          1.1  christos echo "${ECHO_T}${with_dbmalloc:-no}" >&6
   4863          1.1  christos 
   4864      1.1.1.6  christos case .$with_cflags in
   4865      1.1.1.6  christos (.*-g*)
   4866      1.1.1.6  christos 	case .$CFLAGS in
   4867      1.1.1.6  christos 	(.*-g*)
   4868          1.1  christos 		;;
   4869      1.1.1.6  christos 	(*)
   4870          1.1  christos 
   4871          1.1  christos cf_fix_cppflags=no
   4872          1.1  christos cf_new_cflags=
   4873          1.1  christos cf_new_cppflags=
   4874          1.1  christos cf_new_extra_cppflags=
   4875          1.1  christos 
   4876          1.1  christos for cf_add_cflags in -g
   4877          1.1  christos do
   4878          1.1  christos case $cf_fix_cppflags in
   4879      1.1.1.6  christos (no)
   4880      1.1.1.6  christos 	case $cf_add_cflags in
   4881      1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   4882          1.1  christos 		case $cf_add_cflags in
   4883      1.1.1.6  christos 		(-D*)
   4884          1.1  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   4885          1.1  christos 
   4886      1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   4887      1.1.1.2  christos 				&& test -z "${cf_tst_cflags}" \
   4888      1.1.1.2  christos 				&& cf_fix_cppflags=yes
   4889          1.1  christos 
   4890          1.1  christos 			if test $cf_fix_cppflags = yes ; then
   4891          1.1  christos 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   4892          1.1  christos 				continue
   4893          1.1  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   4894          1.1  christos 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   4895          1.1  christos 				continue
   4896          1.1  christos 			fi
   4897          1.1  christos 			;;
   4898          1.1  christos 		esac
   4899          1.1  christos 		case "$CPPFLAGS" in
   4900      1.1.1.6  christos 		(*$cf_add_cflags)
   4901          1.1  christos 			;;
   4902      1.1.1.6  christos 		(*)
   4903      1.1.1.6  christos 			case $cf_add_cflags in
   4904      1.1.1.6  christos 			(-D*)
   4905      1.1.1.2  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   4906      1.1.1.2  christos 
   4907      1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   4908      1.1.1.2  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   4909      1.1.1.2  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   4910      1.1.1.2  christos 
   4911      1.1.1.2  christos 				;;
   4912      1.1.1.2  christos 			esac
   4913          1.1  christos 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   4914          1.1  christos 			;;
   4915          1.1  christos 		esac
   4916          1.1  christos 		;;
   4917      1.1.1.6  christos 	(*)
   4918          1.1  christos 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   4919          1.1  christos 		;;
   4920          1.1  christos 	esac
   4921          1.1  christos 	;;
   4922      1.1.1.6  christos (yes)
   4923          1.1  christos 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   4924          1.1  christos 
   4925          1.1  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   4926          1.1  christos 
   4927      1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   4928      1.1.1.2  christos 		&& test -z "${cf_tst_cflags}" \
   4929      1.1.1.2  christos 		&& cf_fix_cppflags=no
   4930          1.1  christos 	;;
   4931          1.1  christos esac
   4932          1.1  christos done
   4933          1.1  christos 
   4934          1.1  christos if test -n "$cf_new_cflags" ; then
   4935          1.1  christos 
   4936          1.1  christos 	CFLAGS="$CFLAGS $cf_new_cflags"
   4937          1.1  christos fi
   4938          1.1  christos 
   4939          1.1  christos if test -n "$cf_new_cppflags" ; then
   4940          1.1  christos 
   4941          1.1  christos 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   4942          1.1  christos fi
   4943          1.1  christos 
   4944          1.1  christos if test -n "$cf_new_extra_cppflags" ; then
   4945          1.1  christos 
   4946          1.1  christos 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   4947          1.1  christos fi
   4948          1.1  christos 
   4949          1.1  christos 		;;
   4950          1.1  christos 	esac
   4951          1.1  christos 	;;
   4952          1.1  christos esac
   4953          1.1  christos 
   4954          1.1  christos if test "$with_dbmalloc" = yes ; then
   4955  1.1.1.6.2.1  pgoyette 	echo "$as_me:4955: checking for dbmalloc.h" >&5
   4956          1.1  christos echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
   4957          1.1  christos if test "${ac_cv_header_dbmalloc_h+set}" = set; then
   4958          1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4959          1.1  christos else
   4960          1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   4961  1.1.1.6.2.1  pgoyette #line 4961 "configure"
   4962          1.1  christos #include "confdefs.h"
   4963          1.1  christos #include <dbmalloc.h>
   4964          1.1  christos _ACEOF
   4965  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:4965: \"$ac_cpp conftest.$ac_ext\"") >&5
   4966          1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   4967          1.1  christos   ac_status=$?
   4968          1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   4969          1.1  christos   rm -f conftest.er1
   4970          1.1  christos   cat conftest.err >&5
   4971  1.1.1.6.2.1  pgoyette   echo "$as_me:4971: \$? = $ac_status" >&5
   4972          1.1  christos   (exit $ac_status); } >/dev/null; then
   4973          1.1  christos   if test -s conftest.err; then
   4974          1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   4975          1.1  christos   else
   4976          1.1  christos     ac_cpp_err=
   4977          1.1  christos   fi
   4978          1.1  christos else
   4979          1.1  christos   ac_cpp_err=yes
   4980          1.1  christos fi
   4981          1.1  christos if test -z "$ac_cpp_err"; then
   4982          1.1  christos   ac_cv_header_dbmalloc_h=yes
   4983          1.1  christos else
   4984          1.1  christos   echo "$as_me: failed program was:" >&5
   4985          1.1  christos   cat conftest.$ac_ext >&5
   4986          1.1  christos   ac_cv_header_dbmalloc_h=no
   4987          1.1  christos fi
   4988          1.1  christos rm -f conftest.err conftest.$ac_ext
   4989          1.1  christos fi
   4990  1.1.1.6.2.1  pgoyette echo "$as_me:4990: result: $ac_cv_header_dbmalloc_h" >&5
   4991          1.1  christos echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
   4992          1.1  christos if test $ac_cv_header_dbmalloc_h = yes; then
   4993          1.1  christos 
   4994  1.1.1.6.2.1  pgoyette echo "$as_me:4994: checking for debug_malloc in -ldbmalloc" >&5
   4995          1.1  christos echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
   4996          1.1  christos if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
   4997          1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4998          1.1  christos else
   4999          1.1  christos   ac_check_lib_save_LIBS=$LIBS
   5000          1.1  christos LIBS="-ldbmalloc  $LIBS"
   5001          1.1  christos cat >conftest.$ac_ext <<_ACEOF
   5002  1.1.1.6.2.1  pgoyette #line 5002 "configure"
   5003          1.1  christos #include "confdefs.h"
   5004          1.1  christos 
   5005          1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   5006          1.1  christos #ifdef __cplusplus
   5007          1.1  christos extern "C"
   5008          1.1  christos #endif
   5009          1.1  christos /* We use char because int might match the return type of a gcc2
   5010          1.1  christos    builtin and then its argument prototype would still apply.  */
   5011          1.1  christos char debug_malloc ();
   5012          1.1  christos int
   5013          1.1  christos main ()
   5014          1.1  christos {
   5015          1.1  christos debug_malloc ();
   5016          1.1  christos   ;
   5017          1.1  christos   return 0;
   5018          1.1  christos }
   5019          1.1  christos _ACEOF
   5020          1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   5021  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:5021: \"$ac_link\"") >&5
   5022          1.1  christos   (eval $ac_link) 2>&5
   5023          1.1  christos   ac_status=$?
   5024  1.1.1.6.2.1  pgoyette   echo "$as_me:5024: \$? = $ac_status" >&5
   5025          1.1  christos   (exit $ac_status); } &&
   5026          1.1  christos          { ac_try='test -s conftest$ac_exeext'
   5027  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:5027: \"$ac_try\"") >&5
   5028          1.1  christos   (eval $ac_try) 2>&5
   5029          1.1  christos   ac_status=$?
   5030  1.1.1.6.2.1  pgoyette   echo "$as_me:5030: \$? = $ac_status" >&5
   5031          1.1  christos   (exit $ac_status); }; }; then
   5032          1.1  christos   ac_cv_lib_dbmalloc_debug_malloc=yes
   5033          1.1  christos else
   5034          1.1  christos   echo "$as_me: failed program was:" >&5
   5035          1.1  christos cat conftest.$ac_ext >&5
   5036          1.1  christos ac_cv_lib_dbmalloc_debug_malloc=no
   5037          1.1  christos fi
   5038          1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   5039          1.1  christos LIBS=$ac_check_lib_save_LIBS
   5040          1.1  christos fi
   5041  1.1.1.6.2.1  pgoyette echo "$as_me:5041: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
   5042          1.1  christos echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
   5043          1.1  christos if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
   5044          1.1  christos   cat >>confdefs.h <<EOF
   5045          1.1  christos #define HAVE_LIBDBMALLOC 1
   5046          1.1  christos EOF
   5047          1.1  christos 
   5048          1.1  christos   LIBS="-ldbmalloc $LIBS"
   5049          1.1  christos 
   5050          1.1  christos fi
   5051          1.1  christos 
   5052          1.1  christos fi
   5053          1.1  christos 
   5054          1.1  christos fi
   5055          1.1  christos 
   5056  1.1.1.6.2.1  pgoyette echo "$as_me:5056: checking if you want to use valgrind for testing" >&5
   5057          1.1  christos echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
   5058          1.1  christos 
   5059          1.1  christos # Check whether --with-valgrind or --without-valgrind was given.
   5060          1.1  christos if test "${with_valgrind+set}" = set; then
   5061          1.1  christos   withval="$with_valgrind"
   5062      1.1.1.4  christos 
   5063      1.1.1.4  christos cat >>confdefs.h <<EOF
   5064          1.1  christos #define USE_VALGRIND 1
   5065          1.1  christos EOF
   5066          1.1  christos 
   5067          1.1  christos 	: ${with_cflags:=-g}
   5068          1.1  christos 	: ${with_no_leaks:=yes}
   5069          1.1  christos 	 with_valgrind=yes
   5070          1.1  christos else
   5071          1.1  christos   with_valgrind=
   5072          1.1  christos fi;
   5073  1.1.1.6.2.1  pgoyette echo "$as_me:5073: result: ${with_valgrind:-no}" >&5
   5074          1.1  christos echo "${ECHO_T}${with_valgrind:-no}" >&6
   5075          1.1  christos 
   5076      1.1.1.6  christos case .$with_cflags in
   5077      1.1.1.6  christos (.*-g*)
   5078      1.1.1.6  christos 	case .$CFLAGS in
   5079      1.1.1.6  christos 	(.*-g*)
   5080          1.1  christos 		;;
   5081      1.1.1.6  christos 	(*)
   5082          1.1  christos 
   5083          1.1  christos cf_fix_cppflags=no
   5084          1.1  christos cf_new_cflags=
   5085          1.1  christos cf_new_cppflags=
   5086          1.1  christos cf_new_extra_cppflags=
   5087          1.1  christos 
   5088          1.1  christos for cf_add_cflags in -g
   5089          1.1  christos do
   5090          1.1  christos case $cf_fix_cppflags in
   5091      1.1.1.6  christos (no)
   5092      1.1.1.6  christos 	case $cf_add_cflags in
   5093      1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   5094          1.1  christos 		case $cf_add_cflags in
   5095      1.1.1.6  christos 		(-D*)
   5096          1.1  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   5097          1.1  christos 
   5098      1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   5099      1.1.1.2  christos 				&& test -z "${cf_tst_cflags}" \
   5100      1.1.1.2  christos 				&& cf_fix_cppflags=yes
   5101          1.1  christos 
   5102          1.1  christos 			if test $cf_fix_cppflags = yes ; then
   5103          1.1  christos 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   5104          1.1  christos 				continue
   5105          1.1  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   5106          1.1  christos 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   5107          1.1  christos 				continue
   5108          1.1  christos 			fi
   5109          1.1  christos 			;;
   5110          1.1  christos 		esac
   5111          1.1  christos 		case "$CPPFLAGS" in
   5112      1.1.1.6  christos 		(*$cf_add_cflags)
   5113          1.1  christos 			;;
   5114      1.1.1.6  christos 		(*)
   5115      1.1.1.6  christos 			case $cf_add_cflags in
   5116      1.1.1.6  christos 			(-D*)
   5117      1.1.1.2  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   5118      1.1.1.2  christos 
   5119      1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   5120      1.1.1.2  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   5121      1.1.1.2  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   5122      1.1.1.2  christos 
   5123      1.1.1.2  christos 				;;
   5124      1.1.1.2  christos 			esac
   5125          1.1  christos 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   5126          1.1  christos 			;;
   5127          1.1  christos 		esac
   5128          1.1  christos 		;;
   5129      1.1.1.6  christos 	(*)
   5130          1.1  christos 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   5131          1.1  christos 		;;
   5132          1.1  christos 	esac
   5133          1.1  christos 	;;
   5134      1.1.1.6  christos (yes)
   5135          1.1  christos 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   5136          1.1  christos 
   5137          1.1  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   5138          1.1  christos 
   5139      1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   5140      1.1.1.2  christos 		&& test -z "${cf_tst_cflags}" \
   5141      1.1.1.2  christos 		&& cf_fix_cppflags=no
   5142          1.1  christos 	;;
   5143          1.1  christos esac
   5144          1.1  christos done
   5145          1.1  christos 
   5146          1.1  christos if test -n "$cf_new_cflags" ; then
   5147          1.1  christos 
   5148          1.1  christos 	CFLAGS="$CFLAGS $cf_new_cflags"
   5149          1.1  christos fi
   5150          1.1  christos 
   5151          1.1  christos if test -n "$cf_new_cppflags" ; then
   5152          1.1  christos 
   5153          1.1  christos 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   5154          1.1  christos fi
   5155          1.1  christos 
   5156          1.1  christos if test -n "$cf_new_extra_cppflags" ; then
   5157          1.1  christos 
   5158          1.1  christos 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   5159          1.1  christos fi
   5160          1.1  christos 
   5161          1.1  christos 		;;
   5162          1.1  christos 	esac
   5163          1.1  christos 	;;
   5164          1.1  christos esac
   5165          1.1  christos 
   5166  1.1.1.6.2.1  pgoyette echo "$as_me:5166: checking if you want to perform memory-leak testing" >&5
   5167          1.1  christos echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
   5168          1.1  christos 
   5169          1.1  christos # Check whether --enable-leaks or --disable-leaks was given.
   5170          1.1  christos if test "${enable_leaks+set}" = set; then
   5171          1.1  christos   enableval="$enable_leaks"
   5172      1.1.1.2  christos   if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
   5173          1.1  christos else
   5174          1.1  christos   : ${with_no_leaks:=no}
   5175          1.1  christos fi;
   5176  1.1.1.6.2.1  pgoyette echo "$as_me:5176: result: $with_no_leaks" >&5
   5177          1.1  christos echo "${ECHO_T}$with_no_leaks" >&6
   5178          1.1  christos 
   5179          1.1  christos if test "$with_no_leaks" = yes ; then
   5180      1.1.1.4  christos 
   5181      1.1.1.4  christos cat >>confdefs.h <<\EOF
   5182          1.1  christos #define NO_LEAKS 1
   5183          1.1  christos EOF
   5184          1.1  christos 
   5185      1.1.1.4  christos cat >>confdefs.h <<\EOF
   5186      1.1.1.3  christos #define YY_NO_LEAKS 1
   5187      1.1.1.3  christos EOF
   5188      1.1.1.3  christos 
   5189          1.1  christos fi
   5190          1.1  christos 
   5191      1.1.1.6  christos # Extract the first word of "groff", so it can be a program name with args.
   5192      1.1.1.6  christos set dummy groff; ac_word=$2
   5193  1.1.1.6.2.1  pgoyette echo "$as_me:5193: checking for $ac_word" >&5
   5194      1.1.1.6  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5195      1.1.1.6  christos if test "${ac_cv_path_GROFF_PATH+set}" = set; then
   5196      1.1.1.6  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5197      1.1.1.6  christos else
   5198      1.1.1.6  christos   case $GROFF_PATH in
   5199      1.1.1.6  christos   [\\/]* | ?:[\\/]*)
   5200      1.1.1.6  christos   ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path.
   5201      1.1.1.6  christos   ;;
   5202      1.1.1.6  christos   *)
   5203      1.1.1.6  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   5204      1.1.1.6  christos ac_dummy="$PATH"
   5205      1.1.1.6  christos for ac_dir in $ac_dummy; do
   5206      1.1.1.6  christos   IFS=$ac_save_IFS
   5207      1.1.1.6  christos   test -z "$ac_dir" && ac_dir=.
   5208      1.1.1.6  christos   if $as_executable_p "$ac_dir/$ac_word"; then
   5209      1.1.1.6  christos    ac_cv_path_GROFF_PATH="$ac_dir/$ac_word"
   5210  1.1.1.6.2.1  pgoyette    echo "$as_me:5210: found $ac_dir/$ac_word" >&5
   5211      1.1.1.6  christos    break
   5212      1.1.1.6  christos fi
   5213      1.1.1.6  christos done
   5214      1.1.1.6  christos 
   5215      1.1.1.6  christos   test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no"
   5216      1.1.1.6  christos   ;;
   5217      1.1.1.6  christos esac
   5218      1.1.1.6  christos fi
   5219      1.1.1.6  christos GROFF_PATH=$ac_cv_path_GROFF_PATH
   5220      1.1.1.6  christos 
   5221      1.1.1.6  christos if test -n "$GROFF_PATH"; then
   5222  1.1.1.6.2.1  pgoyette   echo "$as_me:5222: result: $GROFF_PATH" >&5
   5223      1.1.1.6  christos echo "${ECHO_T}$GROFF_PATH" >&6
   5224      1.1.1.6  christos else
   5225  1.1.1.6.2.1  pgoyette   echo "$as_me:5225: result: no" >&5
   5226      1.1.1.6  christos echo "${ECHO_T}no" >&6
   5227      1.1.1.6  christos fi
   5228      1.1.1.6  christos 
   5229      1.1.1.6  christos # Extract the first word of "nroff", so it can be a program name with args.
   5230      1.1.1.6  christos set dummy nroff; ac_word=$2
   5231  1.1.1.6.2.1  pgoyette echo "$as_me:5231: checking for $ac_word" >&5
   5232      1.1.1.6  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5233      1.1.1.6  christos if test "${ac_cv_path_NROFF_PATH+set}" = set; then
   5234      1.1.1.6  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5235      1.1.1.6  christos else
   5236      1.1.1.6  christos   case $NROFF_PATH in
   5237      1.1.1.6  christos   [\\/]* | ?:[\\/]*)
   5238      1.1.1.6  christos   ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path.
   5239      1.1.1.6  christos   ;;
   5240      1.1.1.6  christos   *)
   5241      1.1.1.6  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   5242      1.1.1.6  christos ac_dummy="$PATH"
   5243      1.1.1.6  christos for ac_dir in $ac_dummy; do
   5244      1.1.1.6  christos   IFS=$ac_save_IFS
   5245      1.1.1.6  christos   test -z "$ac_dir" && ac_dir=.
   5246      1.1.1.6  christos   if $as_executable_p "$ac_dir/$ac_word"; then
   5247      1.1.1.6  christos    ac_cv_path_NROFF_PATH="$ac_dir/$ac_word"
   5248  1.1.1.6.2.1  pgoyette    echo "$as_me:5248: found $ac_dir/$ac_word" >&5
   5249      1.1.1.6  christos    break
   5250      1.1.1.6  christos fi
   5251      1.1.1.6  christos done
   5252      1.1.1.6  christos 
   5253      1.1.1.6  christos   test -z "$ac_cv_path_NROFF_PATH" && ac_cv_path_NROFF_PATH="no"
   5254      1.1.1.6  christos   ;;
   5255      1.1.1.6  christos esac
   5256      1.1.1.6  christos fi
   5257      1.1.1.6  christos NROFF_PATH=$ac_cv_path_NROFF_PATH
   5258      1.1.1.6  christos 
   5259      1.1.1.6  christos if test -n "$NROFF_PATH"; then
   5260  1.1.1.6.2.1  pgoyette   echo "$as_me:5260: result: $NROFF_PATH" >&5
   5261      1.1.1.6  christos echo "${ECHO_T}$NROFF_PATH" >&6
   5262      1.1.1.6  christos else
   5263  1.1.1.6.2.1  pgoyette   echo "$as_me:5263: result: no" >&5
   5264      1.1.1.6  christos echo "${ECHO_T}no" >&6
   5265      1.1.1.6  christos fi
   5266      1.1.1.6  christos 
   5267      1.1.1.6  christos if test "x$GROFF_PATH" = xno
   5268      1.1.1.6  christos then
   5269      1.1.1.6  christos 	NROFF_NOTE=
   5270      1.1.1.6  christos 	GROFF_NOTE="#"
   5271      1.1.1.6  christos else
   5272      1.1.1.6  christos 	NROFF_NOTE="#"
   5273      1.1.1.6  christos 	GROFF_NOTE=
   5274      1.1.1.6  christos fi
   5275      1.1.1.6  christos 
   5276  1.1.1.6.2.1  pgoyette echo "$as_me:5276: checking for program to convert manpage to html" >&5
   5277      1.1.1.6  christos echo $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6
   5278      1.1.1.6  christos 
   5279      1.1.1.6  christos # Check whether --with-man2html or --without-man2html was given.
   5280      1.1.1.6  christos if test "${with_man2html+set}" = set; then
   5281      1.1.1.6  christos   withval="$with_man2html"
   5282      1.1.1.6  christos   cf_man2html=$withval
   5283      1.1.1.6  christos else
   5284      1.1.1.6  christos   cf_man2html=$GROFF_PATH
   5285      1.1.1.6  christos fi;
   5286      1.1.1.6  christos 
   5287      1.1.1.6  christos cf_with_groff=no
   5288      1.1.1.6  christos 
   5289      1.1.1.6  christos case $cf_man2html in
   5290      1.1.1.6  christos (yes)
   5291  1.1.1.6.2.1  pgoyette 	echo "$as_me:5291: result: man2html" >&5
   5292      1.1.1.6  christos echo "${ECHO_T}man2html" >&6
   5293      1.1.1.6  christos 	# Extract the first word of "man2html", so it can be a program name with args.
   5294      1.1.1.6  christos set dummy man2html; ac_word=$2
   5295  1.1.1.6.2.1  pgoyette echo "$as_me:5295: checking for $ac_word" >&5
   5296      1.1.1.6  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5297      1.1.1.6  christos if test "${ac_cv_path_cf_man2html+set}" = set; then
   5298      1.1.1.6  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5299      1.1.1.6  christos else
   5300      1.1.1.6  christos   case $cf_man2html in
   5301      1.1.1.6  christos   [\\/]* | ?:[\\/]*)
   5302      1.1.1.6  christos   ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path.
   5303      1.1.1.6  christos   ;;
   5304      1.1.1.6  christos   *)
   5305      1.1.1.6  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   5306      1.1.1.6  christos ac_dummy="$PATH"
   5307      1.1.1.6  christos for ac_dir in $ac_dummy; do
   5308      1.1.1.6  christos   IFS=$ac_save_IFS
   5309      1.1.1.6  christos   test -z "$ac_dir" && ac_dir=.
   5310      1.1.1.6  christos   if $as_executable_p "$ac_dir/$ac_word"; then
   5311      1.1.1.6  christos    ac_cv_path_cf_man2html="$ac_dir/$ac_word"
   5312  1.1.1.6.2.1  pgoyette    echo "$as_me:5312: found $ac_dir/$ac_word" >&5
   5313      1.1.1.6  christos    break
   5314      1.1.1.6  christos fi
   5315      1.1.1.6  christos done
   5316      1.1.1.6  christos 
   5317      1.1.1.6  christos   test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no"
   5318      1.1.1.6  christos   ;;
   5319      1.1.1.6  christos esac
   5320      1.1.1.6  christos fi
   5321      1.1.1.6  christos cf_man2html=$ac_cv_path_cf_man2html
   5322      1.1.1.6  christos 
   5323      1.1.1.6  christos if test -n "$cf_man2html"; then
   5324  1.1.1.6.2.1  pgoyette   echo "$as_me:5324: result: $cf_man2html" >&5
   5325      1.1.1.6  christos echo "${ECHO_T}$cf_man2html" >&6
   5326      1.1.1.6  christos else
   5327  1.1.1.6.2.1  pgoyette   echo "$as_me:5327: result: no" >&5
   5328      1.1.1.6  christos echo "${ECHO_T}no" >&6
   5329      1.1.1.6  christos fi
   5330      1.1.1.6  christos 
   5331      1.1.1.6  christos 	;;
   5332      1.1.1.6  christos (no|groff|*/groff*)
   5333      1.1.1.6  christos 	cf_with_groff=yes
   5334      1.1.1.6  christos 	cf_man2html=$GROFF_PATH
   5335  1.1.1.6.2.1  pgoyette 	echo "$as_me:5335: result: $cf_man2html" >&5
   5336      1.1.1.6  christos echo "${ECHO_T}$cf_man2html" >&6
   5337      1.1.1.6  christos 	;;
   5338      1.1.1.6  christos (*)
   5339  1.1.1.6.2.1  pgoyette 	echo "$as_me:5339: result: $cf_man2html" >&5
   5340      1.1.1.6  christos echo "${ECHO_T}$cf_man2html" >&6
   5341      1.1.1.6  christos 	;;
   5342      1.1.1.6  christos esac
   5343      1.1.1.6  christos 
   5344      1.1.1.6  christos MAN2HTML_TEMP="man2html.tmp"
   5345      1.1.1.6  christos 	cat >$MAN2HTML_TEMP <<CF_EOF
   5346  1.1.1.6.2.1  pgoyette #!$SHELL
   5347      1.1.1.6  christos # Temporary script generated by CF_WITH_MAN2HTML
   5348      1.1.1.6  christos # Convert inputs to html, sending result to standard output.
   5349      1.1.1.6  christos #
   5350      1.1.1.6  christos # Parameters:
   5351      1.1.1.6  christos # \${1} = rootname of file to convert
   5352      1.1.1.6  christos # \${2} = suffix of file to convert, e.g., "1"
   5353      1.1.1.6  christos # \${3} = macros to use, e.g., "man"
   5354      1.1.1.6  christos #
   5355      1.1.1.6  christos ROOT=\$1
   5356      1.1.1.6  christos TYPE=\$2
   5357      1.1.1.6  christos MACS=\$3
   5358      1.1.1.6  christos 
   5359      1.1.1.6  christos unset LANG
   5360      1.1.1.6  christos unset LC_ALL
   5361      1.1.1.6  christos unset LC_CTYPE
   5362      1.1.1.6  christos unset LANGUAGE
   5363      1.1.1.6  christos GROFF_NO_SGR=stupid
   5364      1.1.1.6  christos export GROFF_NO_SGR
   5365      1.1.1.6  christos 
   5366      1.1.1.6  christos CF_EOF
   5367      1.1.1.6  christos 
   5368      1.1.1.6  christos if test "x$cf_with_groff" = xyes
   5369      1.1.1.6  christos then
   5370      1.1.1.6  christos 	MAN2HTML_NOTE="$GROFF_NOTE"
   5371      1.1.1.6  christos 	MAN2HTML_PATH="$GROFF_PATH"
   5372      1.1.1.6  christos 	cat >>$MAN2HTML_TEMP <<CF_EOF
   5373  1.1.1.6.2.1  pgoyette $SHELL -c "tbl \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MACS}"
   5374      1.1.1.6  christos CF_EOF
   5375      1.1.1.6  christos else
   5376      1.1.1.6  christos 	MAN2HTML_NOTE=""
   5377      1.1.1.6  christos 
   5378      1.1.1.6  christos if test "x$prefix" != xNONE; then
   5379      1.1.1.6  christos 	cf_path_syntax="$prefix"
   5380      1.1.1.6  christos else
   5381      1.1.1.6  christos 	cf_path_syntax="$ac_default_prefix"
   5382      1.1.1.6  christos fi
   5383      1.1.1.6  christos 
   5384      1.1.1.6  christos case ".$cf_man2html" in
   5385      1.1.1.6  christos (.\$\(*\)*|.\'*\'*)
   5386      1.1.1.6  christos 	;;
   5387      1.1.1.6  christos (..|./*|.\\*)
   5388      1.1.1.6  christos 	;;
   5389      1.1.1.6  christos (.[a-zA-Z]:[\\/]*) # OS/2 EMX
   5390      1.1.1.6  christos 	;;
   5391      1.1.1.6  christos (.\${*prefix}*|.\${*dir}*)
   5392      1.1.1.6  christos 	eval cf_man2html="$cf_man2html"
   5393      1.1.1.6  christos 	case ".$cf_man2html" in
   5394      1.1.1.6  christos 	(.NONE/*)
   5395      1.1.1.6  christos 		cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%`
   5396      1.1.1.6  christos 		;;
   5397      1.1.1.6  christos 	esac
   5398      1.1.1.6  christos 	;;
   5399      1.1.1.6  christos (.no|.NONE/*)
   5400      1.1.1.6  christos 	cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%`
   5401      1.1.1.6  christos 	;;
   5402      1.1.1.6  christos (*)
   5403  1.1.1.6.2.1  pgoyette 	{ { echo "$as_me:5403: error: expected a pathname, not \"$cf_man2html\"" >&5
   5404      1.1.1.6  christos echo "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;}
   5405      1.1.1.6  christos    { (exit 1); exit 1; }; }
   5406      1.1.1.6  christos 	;;
   5407      1.1.1.6  christos esac
   5408      1.1.1.6  christos 
   5409      1.1.1.6  christos 	MAN2HTML_PATH="$cf_man2html"
   5410  1.1.1.6.2.1  pgoyette 	echo "$as_me:5410: checking for $cf_man2html top/bottom margins" >&5
   5411      1.1.1.6  christos echo $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6
   5412      1.1.1.6  christos 
   5413      1.1.1.6  christos 	# for this example, expect 3 lines of content, the remainder is head/foot
   5414      1.1.1.6  christos 	cat >conftest.in <<CF_EOF
   5415      1.1.1.6  christos .TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5
   5416      1.1.1.6  christos .SH SECTION
   5417      1.1.1.6  christos MARKER
   5418      1.1.1.6  christos CF_EOF
   5419      1.1.1.6  christos 
   5420      1.1.1.6  christos 	LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C nroff -man conftest.in >conftest.out
   5421      1.1.1.6  christos 
   5422      1.1.1.6  christos 	cf_man2html_1st=`fgrep -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'`
   5423      1.1.1.6  christos 	cf_man2html_top=`expr $cf_man2html_1st - 2`
   5424      1.1.1.6  christos 	cf_man2html_bot=`wc -l conftest.out |sed -e 's/[^0-9]//g'`
   5425      1.1.1.6  christos 	cf_man2html_bot=`expr $cf_man2html_bot - 2 - $cf_man2html_top`
   5426      1.1.1.6  christos 	cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot"
   5427      1.1.1.6  christos 
   5428  1.1.1.6.2.1  pgoyette 	echo "$as_me:5428: result: $cf_man2html_top_bot" >&5
   5429      1.1.1.6  christos echo "${ECHO_T}$cf_man2html_top_bot" >&6
   5430      1.1.1.6  christos 
   5431  1.1.1.6.2.1  pgoyette 	echo "$as_me:5431: checking for pagesize to use" >&5
   5432      1.1.1.6  christos echo $ECHO_N "checking for pagesize to use... $ECHO_C" >&6
   5433      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
   5434      1.1.1.6  christos 	do
   5435      1.1.1.6  christos 	cat >>conftest.in <<CF_EOF
   5436      1.1.1.6  christos .nf
   5437      1.1.1.6  christos 0
   5438      1.1.1.6  christos 1
   5439      1.1.1.6  christos 2
   5440      1.1.1.6  christos 3
   5441      1.1.1.6  christos 4
   5442      1.1.1.6  christos 5
   5443      1.1.1.6  christos 6
   5444      1.1.1.6  christos 7
   5445      1.1.1.6  christos 8
   5446      1.1.1.6  christos 9
   5447      1.1.1.6  christos CF_EOF
   5448      1.1.1.6  christos 	done
   5449      1.1.1.6  christos 
   5450      1.1.1.6  christos 	LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C nroff -man conftest.in >conftest.out
   5451      1.1.1.6  christos 	cf_man2html_page=`fgrep -n HEAD1 conftest.out |tail -n 1 |sed -e 's/^[^0-9]*://' -e 's/:.*//'`
   5452      1.1.1.6  christos 	test -z "$cf_man2html_page" && cf_man2html_page=99999
   5453      1.1.1.6  christos 	test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999
   5454      1.1.1.6  christos 
   5455      1.1.1.6  christos 	rm -rf conftest*
   5456  1.1.1.6.2.1  pgoyette 	echo "$as_me:5456: result: $cf_man2html_page" >&5
   5457      1.1.1.6  christos echo "${ECHO_T}$cf_man2html_page" >&6
   5458      1.1.1.6  christos 
   5459      1.1.1.6  christos 	cat >>$MAN2HTML_TEMP <<CF_EOF
   5460      1.1.1.6  christos : \${MAN2HTML_PATH=$MAN2HTML_PATH}
   5461      1.1.1.6  christos MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title="\$ROOT\(\$TYPE\)" -compress -pgsize $cf_man2html_page"
   5462      1.1.1.6  christos case \${TYPE} in
   5463      1.1.1.6  christos (ms)
   5464      1.1.1.6  christos 	tbl \${ROOT}.\${TYPE} | nroff -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0 \$MAN2HTML_OPTS
   5465      1.1.1.6  christos 	;;
   5466      1.1.1.6  christos (*)
   5467      1.1.1.6  christos 	tbl \${ROOT}.\${TYPE} | nroff -\${MACS} | \$MAN2HTML_PATH $cf_man2html_top_bot \$MAN2HTML_OPTS
   5468      1.1.1.6  christos 	;;
   5469      1.1.1.6  christos esac
   5470      1.1.1.6  christos CF_EOF
   5471      1.1.1.6  christos fi
   5472      1.1.1.6  christos 
   5473      1.1.1.6  christos chmod 700 $MAN2HTML_TEMP
   5474      1.1.1.6  christos 
   5475  1.1.1.6.2.1  pgoyette echo "$as_me:5475: checking for ANSI C header files" >&5
   5476      1.1.1.5  christos echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
   5477      1.1.1.5  christos if test "${ac_cv_header_stdc+set}" = set; then
   5478      1.1.1.5  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5479      1.1.1.5  christos else
   5480      1.1.1.5  christos   cat >conftest.$ac_ext <<_ACEOF
   5481  1.1.1.6.2.1  pgoyette #line 5481 "configure"
   5482      1.1.1.5  christos #include "confdefs.h"
   5483      1.1.1.5  christos #include <stdlib.h>
   5484      1.1.1.5  christos #include <stdarg.h>
   5485      1.1.1.5  christos #include <string.h>
   5486      1.1.1.5  christos #include <float.h>
   5487      1.1.1.5  christos 
   5488      1.1.1.5  christos _ACEOF
   5489  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:5489: \"$ac_cpp conftest.$ac_ext\"") >&5
   5490      1.1.1.5  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   5491      1.1.1.5  christos   ac_status=$?
   5492      1.1.1.5  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   5493      1.1.1.5  christos   rm -f conftest.er1
   5494      1.1.1.5  christos   cat conftest.err >&5
   5495  1.1.1.6.2.1  pgoyette   echo "$as_me:5495: \$? = $ac_status" >&5
   5496      1.1.1.5  christos   (exit $ac_status); } >/dev/null; then
   5497      1.1.1.5  christos   if test -s conftest.err; then
   5498      1.1.1.5  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   5499      1.1.1.5  christos   else
   5500      1.1.1.5  christos     ac_cpp_err=
   5501      1.1.1.5  christos   fi
   5502      1.1.1.5  christos else
   5503      1.1.1.5  christos   ac_cpp_err=yes
   5504      1.1.1.5  christos fi
   5505      1.1.1.5  christos if test -z "$ac_cpp_err"; then
   5506      1.1.1.5  christos   ac_cv_header_stdc=yes
   5507      1.1.1.5  christos else
   5508      1.1.1.5  christos   echo "$as_me: failed program was:" >&5
   5509      1.1.1.5  christos   cat conftest.$ac_ext >&5
   5510      1.1.1.5  christos   ac_cv_header_stdc=no
   5511      1.1.1.5  christos fi
   5512      1.1.1.5  christos rm -f conftest.err conftest.$ac_ext
   5513      1.1.1.5  christos 
   5514      1.1.1.5  christos if test $ac_cv_header_stdc = yes; then
   5515      1.1.1.5  christos   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   5516      1.1.1.5  christos   cat >conftest.$ac_ext <<_ACEOF
   5517  1.1.1.6.2.1  pgoyette #line 5517 "configure"
   5518      1.1.1.5  christos #include "confdefs.h"
   5519      1.1.1.5  christos #include <string.h>
   5520      1.1.1.5  christos 
   5521      1.1.1.5  christos _ACEOF
   5522      1.1.1.5  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5523      1.1.1.5  christos   egrep "memchr" >/dev/null 2>&1; then
   5524      1.1.1.5  christos   :
   5525      1.1.1.5  christos else
   5526      1.1.1.5  christos   ac_cv_header_stdc=no
   5527      1.1.1.5  christos fi
   5528      1.1.1.5  christos rm -rf conftest*
   5529      1.1.1.5  christos 
   5530      1.1.1.5  christos fi
   5531      1.1.1.5  christos 
   5532      1.1.1.5  christos if test $ac_cv_header_stdc = yes; then
   5533      1.1.1.5  christos   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   5534      1.1.1.5  christos   cat >conftest.$ac_ext <<_ACEOF
   5535  1.1.1.6.2.1  pgoyette #line 5535 "configure"
   5536      1.1.1.5  christos #include "confdefs.h"
   5537      1.1.1.5  christos #include <stdlib.h>
   5538      1.1.1.5  christos 
   5539      1.1.1.5  christos _ACEOF
   5540      1.1.1.5  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5541      1.1.1.5  christos   egrep "free" >/dev/null 2>&1; then
   5542      1.1.1.5  christos   :
   5543      1.1.1.5  christos else
   5544      1.1.1.5  christos   ac_cv_header_stdc=no
   5545      1.1.1.5  christos fi
   5546      1.1.1.5  christos rm -rf conftest*
   5547      1.1.1.5  christos 
   5548      1.1.1.5  christos fi
   5549      1.1.1.5  christos 
   5550      1.1.1.5  christos if test $ac_cv_header_stdc = yes; then
   5551      1.1.1.5  christos   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   5552      1.1.1.5  christos   if test "$cross_compiling" = yes; then
   5553      1.1.1.5  christos   :
   5554      1.1.1.5  christos else
   5555      1.1.1.5  christos   cat >conftest.$ac_ext <<_ACEOF
   5556  1.1.1.6.2.1  pgoyette #line 5556 "configure"
   5557      1.1.1.5  christos #include "confdefs.h"
   5558      1.1.1.5  christos #include <ctype.h>
   5559      1.1.1.5  christos #if ((' ' & 0x0FF) == 0x020)
   5560      1.1.1.5  christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   5561      1.1.1.5  christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   5562      1.1.1.5  christos #else
   5563      1.1.1.5  christos # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
   5564      1.1.1.5  christos                      || ('j' <= (c) && (c) <= 'r') \
   5565      1.1.1.5  christos                      || ('s' <= (c) && (c) <= 'z'))
   5566      1.1.1.5  christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   5567      1.1.1.5  christos #endif
   5568      1.1.1.5  christos 
   5569      1.1.1.5  christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   5570      1.1.1.5  christos int
   5571      1.1.1.5  christos main ()
   5572      1.1.1.5  christos {
   5573      1.1.1.5  christos   int i;
   5574      1.1.1.5  christos   for (i = 0; i < 256; i++)
   5575      1.1.1.5  christos     if (XOR (islower (i), ISLOWER (i))
   5576      1.1.1.5  christos         || toupper (i) != TOUPPER (i))
   5577      1.1.1.5  christos       $ac_main_return(2);
   5578      1.1.1.5  christos   $ac_main_return (0);
   5579      1.1.1.5  christos }
   5580      1.1.1.5  christos _ACEOF
   5581      1.1.1.5  christos rm -f conftest$ac_exeext
   5582  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:5582: \"$ac_link\"") >&5
   5583      1.1.1.5  christos   (eval $ac_link) 2>&5
   5584      1.1.1.5  christos   ac_status=$?
   5585  1.1.1.6.2.1  pgoyette   echo "$as_me:5585: \$? = $ac_status" >&5
   5586      1.1.1.5  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   5587  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:5587: \"$ac_try\"") >&5
   5588      1.1.1.5  christos   (eval $ac_try) 2>&5
   5589      1.1.1.5  christos   ac_status=$?
   5590  1.1.1.6.2.1  pgoyette   echo "$as_me:5590: \$? = $ac_status" >&5
   5591      1.1.1.5  christos   (exit $ac_status); }; }; then
   5592      1.1.1.5  christos   :
   5593      1.1.1.5  christos else
   5594      1.1.1.5  christos   echo "$as_me: program exited with status $ac_status" >&5
   5595      1.1.1.5  christos echo "$as_me: failed program was:" >&5
   5596      1.1.1.5  christos cat conftest.$ac_ext >&5
   5597      1.1.1.5  christos ac_cv_header_stdc=no
   5598      1.1.1.5  christos fi
   5599      1.1.1.5  christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   5600      1.1.1.5  christos fi
   5601      1.1.1.5  christos fi
   5602      1.1.1.5  christos fi
   5603  1.1.1.6.2.1  pgoyette echo "$as_me:5603: result: $ac_cv_header_stdc" >&5
   5604      1.1.1.5  christos echo "${ECHO_T}$ac_cv_header_stdc" >&6
   5605      1.1.1.5  christos if test $ac_cv_header_stdc = yes; then
   5606      1.1.1.5  christos 
   5607      1.1.1.5  christos cat >>confdefs.h <<\EOF
   5608      1.1.1.5  christos #define STDC_HEADERS 1
   5609      1.1.1.5  christos EOF
   5610      1.1.1.5  christos 
   5611      1.1.1.5  christos fi
   5612      1.1.1.5  christos 
   5613      1.1.1.5  christos # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   5614      1.1.1.5  christos 
   5615      1.1.1.5  christos for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   5616      1.1.1.5  christos                   inttypes.h stdint.h unistd.h
   5617      1.1.1.5  christos do
   5618      1.1.1.5  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5619  1.1.1.6.2.1  pgoyette echo "$as_me:5619: checking for $ac_header" >&5
   5620      1.1.1.5  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   5621      1.1.1.5  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   5622      1.1.1.5  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5623      1.1.1.5  christos else
   5624      1.1.1.5  christos   cat >conftest.$ac_ext <<_ACEOF
   5625  1.1.1.6.2.1  pgoyette #line 5625 "configure"
   5626      1.1.1.5  christos #include "confdefs.h"
   5627      1.1.1.5  christos $ac_includes_default
   5628      1.1.1.5  christos #include <$ac_header>
   5629      1.1.1.5  christos _ACEOF
   5630      1.1.1.5  christos rm -f conftest.$ac_objext
   5631  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:5631: \"$ac_compile\"") >&5
   5632      1.1.1.5  christos   (eval $ac_compile) 2>&5
   5633      1.1.1.5  christos   ac_status=$?
   5634  1.1.1.6.2.1  pgoyette   echo "$as_me:5634: \$? = $ac_status" >&5
   5635      1.1.1.5  christos   (exit $ac_status); } &&
   5636      1.1.1.5  christos          { ac_try='test -s conftest.$ac_objext'
   5637  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:5637: \"$ac_try\"") >&5
   5638      1.1.1.5  christos   (eval $ac_try) 2>&5
   5639      1.1.1.5  christos   ac_status=$?
   5640  1.1.1.6.2.1  pgoyette   echo "$as_me:5640: \$? = $ac_status" >&5
   5641      1.1.1.5  christos   (exit $ac_status); }; }; then
   5642      1.1.1.5  christos   eval "$as_ac_Header=yes"
   5643      1.1.1.5  christos else
   5644      1.1.1.5  christos   echo "$as_me: failed program was:" >&5
   5645      1.1.1.5  christos cat conftest.$ac_ext >&5
   5646      1.1.1.5  christos eval "$as_ac_Header=no"
   5647      1.1.1.5  christos fi
   5648      1.1.1.5  christos rm -f conftest.$ac_objext conftest.$ac_ext
   5649      1.1.1.5  christos fi
   5650  1.1.1.6.2.1  pgoyette echo "$as_me:5650: result: `eval echo '${'$as_ac_Header'}'`" >&5
   5651      1.1.1.5  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   5652      1.1.1.5  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   5653      1.1.1.5  christos   cat >>confdefs.h <<EOF
   5654      1.1.1.5  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5655      1.1.1.5  christos EOF
   5656      1.1.1.5  christos 
   5657      1.1.1.5  christos fi
   5658      1.1.1.5  christos done
   5659      1.1.1.5  christos 
   5660  1.1.1.6.2.1  pgoyette echo "$as_me:5660: checking for mode_t" >&5
   5661      1.1.1.5  christos echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
   5662      1.1.1.5  christos if test "${ac_cv_type_mode_t+set}" = set; then
   5663      1.1.1.5  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5664      1.1.1.5  christos else
   5665      1.1.1.5  christos   cat >conftest.$ac_ext <<_ACEOF
   5666  1.1.1.6.2.1  pgoyette #line 5666 "configure"
   5667      1.1.1.5  christos #include "confdefs.h"
   5668      1.1.1.5  christos $ac_includes_default
   5669      1.1.1.5  christos int
   5670      1.1.1.5  christos main ()
   5671      1.1.1.5  christos {
   5672      1.1.1.5  christos if ((mode_t *) 0)
   5673      1.1.1.5  christos   return 0;
   5674      1.1.1.5  christos if (sizeof (mode_t))
   5675      1.1.1.5  christos   return 0;
   5676      1.1.1.5  christos   ;
   5677      1.1.1.5  christos   return 0;
   5678      1.1.1.5  christos }
   5679      1.1.1.5  christos _ACEOF
   5680      1.1.1.5  christos rm -f conftest.$ac_objext
   5681  1.1.1.6.2.1  pgoyette if { (eval echo "$as_me:5681: \"$ac_compile\"") >&5
   5682      1.1.1.5  christos   (eval $ac_compile) 2>&5
   5683      1.1.1.5  christos   ac_status=$?
   5684  1.1.1.6.2.1  pgoyette   echo "$as_me:5684: \$? = $ac_status" >&5
   5685      1.1.1.5  christos   (exit $ac_status); } &&
   5686      1.1.1.5  christos          { ac_try='test -s conftest.$ac_objext'
   5687  1.1.1.6.2.1  pgoyette   { (eval echo "$as_me:5687: \"$ac_try\"") >&5
   5688      1.1.1.5  christos   (eval $ac_try) 2>&5
   5689      1.1.1.5  christos   ac_status=$?
   5690  1.1.1.6.2.1  pgoyette   echo "$as_me:5690: \$? = $ac_status" >&5
   5691      1.1.1.5  christos   (exit $ac_status); }; }; then
   5692      1.1.1.5  christos   ac_cv_type_mode_t=yes
   5693      1.1.1.5  christos else
   5694      1.1.1.5  christos   echo "$as_me: failed program was:" >&5
   5695      1.1.1.5  christos cat conftest.$ac_ext >&5
   5696      1.1.1.5  christos ac_cv_type_mode_t=no
   5697      1.1.1.5  christos fi
   5698      1.1.1.5  christos rm -f conftest.$ac_objext conftest.$ac_ext
   5699      1.1.1.5  christos fi
   5700  1.1.1.6.2.1  pgoyette echo "$as_me:5700: result: $ac_cv_type_mode_t" >&5
   5701      1.1.1.5  christos echo "${ECHO_T}$ac_cv_type_mode_t" >&6
   5702      1.1.1.5  christos if test $ac_cv_type_mode_t = yes; then
   5703      1.1.1.5  christos   :
   5704      1.1.1.5  christos else
   5705      1.1.1.5  christos 
   5706      1.1.1.5  christos cat >>confdefs.h <<EOF
   5707      1.1.1.5  christos #define mode_t int
   5708      1.1.1.5  christos EOF
   5709      1.1.1.5  christos 
   5710      1.1.1.5  christos fi
   5711      1.1.1.5  christos 
   5712          1.1  christos ###	output makefile
   5713          1.1  christos ac_config_files="$ac_config_files makefile"
   5714          1.1  christos cat >confcache <<\_ACEOF
   5715          1.1  christos # This file is a shell script that caches the results of configure
   5716          1.1  christos # tests run on this system so they can be shared between configure
   5717          1.1  christos # scripts and configure runs, see configure's option --config-cache.
   5718          1.1  christos # It is not useful on other systems.  If it contains results you don't
   5719          1.1  christos # want to keep, you may remove or edit it.
   5720          1.1  christos #
   5721          1.1  christos # config.status only pays attention to the cache file if you give it
   5722          1.1  christos # the --recheck option to rerun configure.
   5723          1.1  christos #
   5724          1.1  christos # `ac_cv_env_foo' variables (set or unset) will be overriden when
   5725          1.1  christos # loading this file, other *unset* `ac_cv_foo' will be assigned the
   5726          1.1  christos # following values.
   5727          1.1  christos 
   5728          1.1  christos _ACEOF
   5729          1.1  christos 
   5730          1.1  christos # The following way of writing the cache mishandles newlines in values,
   5731          1.1  christos # but we know of no workaround that is simple, portable, and efficient.
   5732          1.1  christos # So, don't put newlines in cache variables' values.
   5733          1.1  christos # Ultrix sh set writes to stderr and can't be redirected directly,
   5734          1.1  christos # and sets the high bit in the cache file unless we assign to the vars.
   5735          1.1  christos {
   5736          1.1  christos   (set) 2>&1 |
   5737          1.1  christos     case `(ac_space=' '; set | grep ac_space) 2>&1` in
   5738          1.1  christos     *ac_space=\ *)
   5739          1.1  christos       # `set' does not quote correctly, so add quotes (double-quote
   5740          1.1  christos       # substitution turns \\\\ into \\, and sed turns \\ into \).
   5741          1.1  christos       sed -n \
   5742          1.1  christos         "s/'/'\\\\''/g;
   5743          1.1  christos     	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   5744          1.1  christos       ;;
   5745          1.1  christos     *)
   5746          1.1  christos       # `set' quotes correctly as required by POSIX, so do not add quotes.
   5747          1.1  christos       sed -n \
   5748          1.1  christos         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
   5749          1.1  christos       ;;
   5750          1.1  christos     esac;
   5751          1.1  christos } |
   5752          1.1  christos   sed '
   5753          1.1  christos      t clear
   5754          1.1  christos      : clear
   5755          1.1  christos      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   5756          1.1  christos      t end
   5757          1.1  christos      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   5758          1.1  christos      : end' >>confcache
   5759          1.1  christos if cmp -s $cache_file confcache; then :; else
   5760          1.1  christos   if test -w $cache_file; then
   5761          1.1  christos     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
   5762          1.1  christos     cat confcache >$cache_file
   5763          1.1  christos   else
   5764          1.1  christos     echo "not updating unwritable cache $cache_file"
   5765          1.1  christos   fi
   5766          1.1  christos fi
   5767          1.1  christos rm -f confcache
   5768          1.1  christos 
   5769          1.1  christos test "x$prefix" = xNONE && prefix=$ac_default_prefix
   5770          1.1  christos # Let make expand exec_prefix.
   5771          1.1  christos test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   5772          1.1  christos 
   5773          1.1  christos # VPATH may cause trouble with some makes, so we remove $(srcdir),
   5774          1.1  christos # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   5775          1.1  christos # trailing colons and then remove the whole line if VPATH becomes empty
   5776          1.1  christos # (actually we leave an empty line to preserve line numbers).
   5777          1.1  christos if test "x$srcdir" = x.; then
   5778          1.1  christos   ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
   5779          1.1  christos s/:*\$(srcdir):*/:/;
   5780          1.1  christos s/:*\${srcdir}:*/:/;
   5781          1.1  christos s/:*@srcdir@:*/:/;
   5782          1.1  christos s/^\([^=]*=[ 	]*\):*/\1/;
   5783          1.1  christos s/:*$//;
   5784          1.1  christos s/^[^=]*=[ 	]*$//;
   5785          1.1  christos }'
   5786          1.1  christos fi
   5787          1.1  christos 
   5788          1.1  christos DEFS=-DHAVE_CONFIG_H
   5789          1.1  christos 
   5790          1.1  christos : ${CONFIG_STATUS=./config.status}
   5791          1.1  christos ac_clean_files_save=$ac_clean_files
   5792          1.1  christos ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   5793  1.1.1.6.2.1  pgoyette { echo "$as_me:5793: creating $CONFIG_STATUS" >&5
   5794          1.1  christos echo "$as_me: creating $CONFIG_STATUS" >&6;}
   5795          1.1  christos cat >$CONFIG_STATUS <<_ACEOF
   5796          1.1  christos #! $SHELL
   5797          1.1  christos # Generated automatically by configure.
   5798          1.1  christos # Run this file to recreate the current configuration.
   5799          1.1  christos # Compiler output produced by configure, useful for debugging
   5800          1.1  christos # configure, is in config.log if it exists.
   5801          1.1  christos 
   5802          1.1  christos debug=false
   5803          1.1  christos SHELL=\${CONFIG_SHELL-$SHELL}
   5804          1.1  christos ac_cs_invocation="\$0 \$@"
   5805          1.1  christos 
   5806          1.1  christos _ACEOF
   5807          1.1  christos 
   5808          1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   5809          1.1  christos # Be Bourne compatible
   5810          1.1  christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   5811          1.1  christos   emulate sh
   5812          1.1  christos   NULLCMD=:
   5813          1.1  christos elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
   5814          1.1  christos   set -o posix
   5815          1.1  christos fi
   5816          1.1  christos 
   5817          1.1  christos # Name of the executable.
   5818          1.1  christos as_me=`echo "$0" |sed 's,.*[\\/],,'`
   5819          1.1  christos 
   5820          1.1  christos if expr a : '\(a\)' >/dev/null 2>&1; then
   5821          1.1  christos   as_expr=expr
   5822          1.1  christos else
   5823          1.1  christos   as_expr=false
   5824          1.1  christos fi
   5825          1.1  christos 
   5826          1.1  christos rm -f conf$$ conf$$.exe conf$$.file
   5827          1.1  christos echo >conf$$.file
   5828          1.1  christos if ln -s conf$$.file conf$$ 2>/dev/null; then
   5829          1.1  christos   # We could just check for DJGPP; but this test a) works b) is more generic
   5830          1.1  christos   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
   5831          1.1  christos   if test -f conf$$.exe; then
   5832          1.1  christos     # Don't use ln at all; we don't have any links
   5833          1.1  christos     as_ln_s='cp -p'
   5834          1.1  christos   else
   5835          1.1  christos     as_ln_s='ln -s'
   5836          1.1  christos   fi
   5837          1.1  christos elif ln conf$$.file conf$$ 2>/dev/null; then
   5838          1.1  christos   as_ln_s=ln
   5839          1.1  christos else
   5840          1.1  christos   as_ln_s='cp -p'
   5841          1.1  christos fi
   5842          1.1  christos rm -f conf$$ conf$$.exe conf$$.file
   5843          1.1  christos 
   5844          1.1  christos as_executable_p="test -f"
   5845          1.1  christos 
   5846          1.1  christos # Support unset when possible.
   5847          1.1  christos if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
   5848          1.1  christos   as_unset=unset
   5849          1.1  christos else
   5850          1.1  christos   as_unset=false
   5851          1.1  christos fi
   5852          1.1  christos 
   5853          1.1  christos # NLS nuisances.
   5854          1.1  christos $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
   5855          1.1  christos $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
   5856          1.1  christos $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
   5857          1.1  christos $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
   5858          1.1  christos $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
   5859          1.1  christos $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
   5860          1.1  christos $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
   5861          1.1  christos $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
   5862          1.1  christos 
   5863          1.1  christos # IFS
   5864          1.1  christos # We need space, tab and new line, in precisely that order.
   5865          1.1  christos as_nl='
   5866          1.1  christos '
   5867          1.1  christos IFS=" 	$as_nl"
   5868          1.1  christos 
   5869          1.1  christos # CDPATH.
   5870          1.1  christos $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
   5871          1.1  christos 
   5872          1.1  christos exec 6>&1
   5873          1.1  christos 
   5874          1.1  christos _ACEOF
   5875          1.1  christos 
   5876          1.1  christos # Files that config.status was made for.
   5877          1.1  christos if test -n "$ac_config_files"; then
   5878          1.1  christos   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
   5879          1.1  christos fi
   5880          1.1  christos 
   5881          1.1  christos if test -n "$ac_config_headers"; then
   5882          1.1  christos   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
   5883          1.1  christos fi
   5884          1.1  christos 
   5885          1.1  christos if test -n "$ac_config_links"; then
   5886          1.1  christos   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
   5887          1.1  christos fi
   5888          1.1  christos 
   5889          1.1  christos if test -n "$ac_config_commands"; then
   5890          1.1  christos   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
   5891          1.1  christos fi
   5892          1.1  christos 
   5893          1.1  christos cat >>$CONFIG_STATUS <<\EOF
   5894          1.1  christos 
   5895          1.1  christos ac_cs_usage="\
   5896          1.1  christos \`$as_me' instantiates files from templates according to the
   5897          1.1  christos current configuration.
   5898          1.1  christos 
   5899          1.1  christos Usage: $0 [OPTIONS] [FILE]...
   5900          1.1  christos 
   5901          1.1  christos   -h, --help       print this help, then exit
   5902          1.1  christos   -V, --version    print version number, then exit
   5903          1.1  christos   -d, --debug      don't remove temporary files
   5904          1.1  christos       --recheck    update $as_me by reconfiguring in the same conditions
   5905          1.1  christos   --file=FILE[:TEMPLATE]
   5906          1.1  christos                    instantiate the configuration file FILE
   5907          1.1  christos   --header=FILE[:TEMPLATE]
   5908          1.1  christos                    instantiate the configuration header FILE
   5909          1.1  christos 
   5910          1.1  christos Configuration files:
   5911          1.1  christos $config_files
   5912          1.1  christos 
   5913          1.1  christos Configuration headers:
   5914          1.1  christos $config_headers
   5915          1.1  christos 
   5916      1.1.1.3  christos Report bugs to <dickey@invisible-island.net>."
   5917          1.1  christos EOF
   5918          1.1  christos 
   5919          1.1  christos cat >>$CONFIG_STATUS <<EOF
   5920          1.1  christos ac_cs_version="\\
   5921          1.1  christos config.status
   5922  1.1.1.6.2.1  pgoyette configured by $0, generated by GNU Autoconf 2.52.20150926,
   5923          1.1  christos   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
   5924          1.1  christos 
   5925          1.1  christos Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
   5926          1.1  christos Free Software Foundation, Inc.
   5927          1.1  christos This config.status script is free software; the Free Software Foundation
   5928          1.1  christos gives unlimited permission to copy, distribute and modify it."
   5929          1.1  christos srcdir=$srcdir
   5930          1.1  christos INSTALL="$INSTALL"
   5931          1.1  christos EOF
   5932          1.1  christos 
   5933          1.1  christos cat >>$CONFIG_STATUS <<\EOF
   5934          1.1  christos # If no file are specified by the user, then we need to provide default
   5935          1.1  christos # value.  By we need to know if files were specified by the user.
   5936          1.1  christos ac_need_defaults=:
   5937          1.1  christos while test $# != 0
   5938          1.1  christos do
   5939          1.1  christos   case $1 in
   5940          1.1  christos   --*=*)
   5941          1.1  christos     ac_option=`expr "x$1" : 'x\([^=]*\)='`
   5942          1.1  christos     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
   5943          1.1  christos     shift
   5944          1.1  christos     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
   5945          1.1  christos     shift
   5946          1.1  christos     ;;
   5947          1.1  christos   -*);;
   5948          1.1  christos   *) # This is not an option, so the user has probably given explicit
   5949          1.1  christos      # arguments.
   5950          1.1  christos      ac_need_defaults=false;;
   5951          1.1  christos   esac
   5952          1.1  christos 
   5953          1.1  christos   case $1 in
   5954          1.1  christos   # Handling of the options.
   5955          1.1  christos EOF
   5956          1.1  christos cat >>$CONFIG_STATUS <<EOF
   5957          1.1  christos   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   5958          1.1  christos     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
   5959          1.1  christos     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
   5960          1.1  christos EOF
   5961          1.1  christos cat >>$CONFIG_STATUS <<\EOF
   5962          1.1  christos   --version | --vers* | -V )
   5963          1.1  christos     echo "$ac_cs_version"; exit 0 ;;
   5964          1.1  christos   --he | --h)
   5965          1.1  christos     # Conflict between --help and --header
   5966  1.1.1.6.2.1  pgoyette     { { echo "$as_me:5966: error: ambiguous option: $1
   5967          1.1  christos Try \`$0 --help' for more information." >&5
   5968          1.1  christos echo "$as_me: error: ambiguous option: $1
   5969          1.1  christos Try \`$0 --help' for more information." >&2;}
   5970          1.1  christos    { (exit 1); exit 1; }; };;
   5971          1.1  christos   --help | --hel | -h )
   5972          1.1  christos     echo "$ac_cs_usage"; exit 0 ;;
   5973          1.1  christos   --debug | --d* | -d )
   5974          1.1  christos     debug=: ;;
   5975          1.1  christos   --file | --fil | --fi | --f )
   5976          1.1  christos     shift
   5977          1.1  christos     CONFIG_FILES="$CONFIG_FILES $1"
   5978          1.1  christos     ac_need_defaults=false;;
   5979          1.1  christos   --header | --heade | --head | --hea )
   5980          1.1  christos     shift
   5981          1.1  christos     CONFIG_HEADERS="$CONFIG_HEADERS $1"
   5982          1.1  christos     ac_need_defaults=false;;
   5983          1.1  christos 
   5984          1.1  christos   # This is an error.
   5985  1.1.1.6.2.1  pgoyette   -*) { { echo "$as_me:5985: error: unrecognized option: $1
   5986          1.1  christos Try \`$0 --help' for more information." >&5
   5987          1.1  christos echo "$as_me: error: unrecognized option: $1
   5988          1.1  christos Try \`$0 --help' for more information." >&2;}
   5989          1.1  christos    { (exit 1); exit 1; }; } ;;
   5990          1.1  christos 
   5991          1.1  christos   *) ac_config_targets="$ac_config_targets $1" ;;
   5992          1.1  christos 
   5993          1.1  christos   esac
   5994          1.1  christos   shift
   5995          1.1  christos done
   5996          1.1  christos 
   5997          1.1  christos exec 5>>config.log
   5998          1.1  christos cat >&5 << _ACEOF
   5999          1.1  christos 
   6000          1.1  christos ## ----------------------- ##
   6001          1.1  christos ## Running config.status.  ##
   6002          1.1  christos ## ----------------------- ##
   6003          1.1  christos 
   6004  1.1.1.6.2.1  pgoyette This file was extended by $as_me 2.52.20150926, executed with
   6005          1.1  christos   CONFIG_FILES    = $CONFIG_FILES
   6006          1.1  christos   CONFIG_HEADERS  = $CONFIG_HEADERS
   6007          1.1  christos   CONFIG_LINKS    = $CONFIG_LINKS
   6008          1.1  christos   CONFIG_COMMANDS = $CONFIG_COMMANDS
   6009          1.1  christos   > $ac_cs_invocation
   6010          1.1  christos on `(hostname || uname -n) 2>/dev/null | sed 1q`
   6011          1.1  christos 
   6012          1.1  christos _ACEOF
   6013          1.1  christos EOF
   6014          1.1  christos 
   6015          1.1  christos cat >>$CONFIG_STATUS <<\EOF
   6016          1.1  christos for ac_config_target in $ac_config_targets
   6017          1.1  christos do
   6018          1.1  christos   case "$ac_config_target" in
   6019          1.1  christos   # Handling of arguments.
   6020          1.1  christos   "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
   6021          1.1  christos   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
   6022  1.1.1.6.2.1  pgoyette   *) { { echo "$as_me:6022: error: invalid argument: $ac_config_target" >&5
   6023          1.1  christos echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   6024          1.1  christos    { (exit 1); exit 1; }; };;
   6025          1.1  christos   esac
   6026          1.1  christos done
   6027          1.1  christos 
   6028          1.1  christos # If the user did not use the arguments to specify the items to instantiate,
   6029          1.1  christos # then the envvar interface is used.  Set only those that are not.
   6030          1.1  christos # We use the long form for the default assignment because of an extremely
   6031          1.1  christos # bizarre bug on SunOS 4.1.3.
   6032          1.1  christos if $ac_need_defaults; then
   6033          1.1  christos   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   6034          1.1  christos   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   6035          1.1  christos fi
   6036          1.1  christos 
   6037          1.1  christos # Create a temporary directory, and hook for its removal unless debugging.
   6038          1.1  christos $debug ||
   6039          1.1  christos {
   6040          1.1  christos   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
   6041          1.1  christos   trap '{ (exit 1); exit 1; }' 1 2 13 15
   6042          1.1  christos }
   6043          1.1  christos 
   6044          1.1  christos # Create a (secure) tmp directory for tmp files.
   6045          1.1  christos : ${TMPDIR=/tmp}
   6046          1.1  christos {
   6047          1.1  christos   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
   6048          1.1  christos   test -n "$tmp" && test -d "$tmp"
   6049          1.1  christos }  ||
   6050          1.1  christos {
   6051          1.1  christos   tmp=$TMPDIR/cs$$-$RANDOM
   6052          1.1  christos   (umask 077 && mkdir $tmp)
   6053          1.1  christos } ||
   6054          1.1  christos {
   6055          1.1  christos    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   6056          1.1  christos    { (exit 1); exit 1; }
   6057          1.1  christos }
   6058          1.1  christos 
   6059          1.1  christos EOF
   6060          1.1  christos 
   6061          1.1  christos cat >>$CONFIG_STATUS <<EOF
   6062          1.1  christos 
   6063          1.1  christos #
   6064          1.1  christos # CONFIG_FILES section.
   6065          1.1  christos #
   6066          1.1  christos 
   6067          1.1  christos # No need to generate the scripts if there are no CONFIG_FILES.
   6068          1.1  christos # This happens for instance when ./config.status config.h
   6069          1.1  christos if test -n "\$CONFIG_FILES"; then
   6070          1.1  christos   # Protect against being on the right side of a sed subst in config.status.
   6071          1.1  christos   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
   6072          1.1  christos    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
   6073          1.1  christos s,@SHELL@,$SHELL,;t t
   6074          1.1  christos s,@exec_prefix@,$exec_prefix,;t t
   6075          1.1  christos s,@prefix@,$prefix,;t t
   6076          1.1  christos s,@program_transform_name@,$program_transform_name,;t t
   6077          1.1  christos s,@bindir@,$bindir,;t t
   6078          1.1  christos s,@sbindir@,$sbindir,;t t
   6079          1.1  christos s,@libexecdir@,$libexecdir,;t t
   6080      1.1.1.4  christos s,@datarootdir@,$datarootdir,;t t
   6081          1.1  christos s,@datadir@,$datadir,;t t
   6082          1.1  christos s,@sysconfdir@,$sysconfdir,;t t
   6083          1.1  christos s,@sharedstatedir@,$sharedstatedir,;t t
   6084          1.1  christos s,@localstatedir@,$localstatedir,;t t
   6085          1.1  christos s,@libdir@,$libdir,;t t
   6086          1.1  christos s,@includedir@,$includedir,;t t
   6087          1.1  christos s,@oldincludedir@,$oldincludedir,;t t
   6088          1.1  christos s,@infodir@,$infodir,;t t
   6089          1.1  christos s,@mandir@,$mandir,;t t
   6090          1.1  christos s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
   6091          1.1  christos s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
   6092          1.1  christos s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
   6093          1.1  christos s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
   6094          1.1  christos s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
   6095          1.1  christos s,@build_alias@,$build_alias,;t t
   6096          1.1  christos s,@host_alias@,$host_alias,;t t
   6097          1.1  christos s,@target_alias@,$target_alias,;t t
   6098          1.1  christos s,@ECHO_C@,$ECHO_C,;t t
   6099          1.1  christos s,@ECHO_N@,$ECHO_N,;t t
   6100          1.1  christos s,@ECHO_T@,$ECHO_T,;t t
   6101          1.1  christos s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
   6102          1.1  christos s,@DEFS@,$DEFS,;t t
   6103          1.1  christos s,@LIBS@,$LIBS,;t t
   6104          1.1  christos s,@build@,$build,;t t
   6105          1.1  christos s,@build_cpu@,$build_cpu,;t t
   6106          1.1  christos s,@build_vendor@,$build_vendor,;t t
   6107          1.1  christos s,@build_os@,$build_os,;t t
   6108          1.1  christos s,@host@,$host,;t t
   6109          1.1  christos s,@host_cpu@,$host_cpu,;t t
   6110          1.1  christos s,@host_vendor@,$host_vendor,;t t
   6111          1.1  christos s,@host_os@,$host_os,;t t
   6112          1.1  christos s,@target@,$target,;t t
   6113          1.1  christos s,@target_cpu@,$target_cpu,;t t
   6114          1.1  christos s,@target_vendor@,$target_vendor,;t t
   6115          1.1  christos s,@target_os@,$target_os,;t t
   6116          1.1  christos s,@CC@,$CC,;t t
   6117          1.1  christos s,@CFLAGS@,$CFLAGS,;t t
   6118          1.1  christos s,@LDFLAGS@,$LDFLAGS,;t t
   6119          1.1  christos s,@CPPFLAGS@,$CPPFLAGS,;t t
   6120          1.1  christos s,@ac_ct_CC@,$ac_ct_CC,;t t
   6121          1.1  christos s,@EXEEXT@,$EXEEXT,;t t
   6122          1.1  christos s,@OBJEXT@,$OBJEXT,;t t
   6123      1.1.1.4  christos s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
   6124          1.1  christos s,@SET_MAKE@,$SET_MAKE,;t t
   6125          1.1  christos s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
   6126          1.1  christos s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
   6127          1.1  christos s,@INSTALL_DATA@,$INSTALL_DATA,;t t
   6128      1.1.1.2  christos s,@CTAGS@,$CTAGS,;t t
   6129      1.1.1.2  christos s,@ETAGS@,$ETAGS,;t t
   6130      1.1.1.2  christos s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
   6131      1.1.1.2  christos s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
   6132      1.1.1.5  christos s,@AWK@,$AWK,;t t
   6133      1.1.1.2  christos s,@LINT@,$LINT,;t t
   6134      1.1.1.2  christos s,@LINT_OPTS@,$LINT_OPTS,;t t
   6135      1.1.1.3  christos s,@CPP@,$CPP,;t t
   6136      1.1.1.5  christos s,@SKELETON@,$SKELETON,;t t
   6137          1.1  christos s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
   6138          1.1  christos s,@ECHO_LT@,$ECHO_LT,;t t
   6139          1.1  christos s,@ECHO_LD@,$ECHO_LD,;t t
   6140          1.1  christos s,@RULE_CC@,$RULE_CC,;t t
   6141          1.1  christos s,@SHOW_CC@,$SHOW_CC,;t t
   6142          1.1  christos s,@ECHO_CC@,$ECHO_CC,;t t
   6143      1.1.1.6  christos s,@GROFF_PATH@,$GROFF_PATH,;t t
   6144      1.1.1.6  christos s,@NROFF_PATH@,$NROFF_PATH,;t t
   6145      1.1.1.6  christos s,@GROFF_NOTE@,$GROFF_NOTE,;t t
   6146      1.1.1.6  christos s,@NROFF_NOTE@,$NROFF_NOTE,;t t
   6147      1.1.1.6  christos s,@cf_man2html@,$cf_man2html,;t t
   6148      1.1.1.6  christos s,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t
   6149      1.1.1.6  christos s,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t
   6150      1.1.1.6  christos s,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t
   6151          1.1  christos CEOF
   6152          1.1  christos 
   6153          1.1  christos EOF
   6154          1.1  christos 
   6155          1.1  christos   cat >>$CONFIG_STATUS <<\EOF
   6156          1.1  christos   # Split the substitutions into bite-sized pieces for seds with
   6157          1.1  christos   # small command number limits, like on Digital OSF/1 and HP-UX.
   6158          1.1  christos   ac_max_sed_lines=48
   6159          1.1  christos   ac_sed_frag=1 # Number of current file.
   6160          1.1  christos   ac_beg=1 # First line for current file.
   6161          1.1  christos   ac_end=$ac_max_sed_lines # Line after last line for current file.
   6162          1.1  christos   ac_more_lines=:
   6163          1.1  christos   ac_sed_cmds=
   6164          1.1  christos   while $ac_more_lines; do
   6165          1.1  christos     if test $ac_beg -gt 1; then
   6166          1.1  christos       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   6167          1.1  christos     else
   6168          1.1  christos       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   6169          1.1  christos     fi
   6170          1.1  christos     if test ! -s $tmp/subs.frag; then
   6171          1.1  christos       ac_more_lines=false
   6172          1.1  christos     else
   6173          1.1  christos       # The purpose of the label and of the branching condition is to
   6174          1.1  christos       # speed up the sed processing (if there are no `@' at all, there
   6175          1.1  christos       # is no need to browse any of the substitutions).
   6176          1.1  christos       # These are the two extra sed commands mentioned above.
   6177          1.1  christos       (echo ':t
   6178          1.1  christos   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
   6179  1.1.1.6.2.1  pgoyette       # It is possible to make a multiline substitution using escaped newlines.
   6180  1.1.1.6.2.1  pgoyette       # Ensure that we do not split the substitution between script fragments.
   6181  1.1.1.6.2.1  pgoyette       ac_BEG=$ac_end
   6182  1.1.1.6.2.1  pgoyette       ac_END=`expr $ac_end + $ac_max_sed_lines`
   6183  1.1.1.6.2.1  pgoyette       sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
   6184  1.1.1.6.2.1  pgoyette       if test -s $tmp/subs.next; then
   6185  1.1.1.6.2.1  pgoyette         grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
   6186  1.1.1.6.2.1  pgoyette         if test ! -s $tmp/subs.edit; then
   6187  1.1.1.6.2.1  pgoyette           grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
   6188  1.1.1.6.2.1  pgoyette           if test ! -s $tmp/subs.edit; then
   6189  1.1.1.6.2.1  pgoyette             if test $ac_beg -gt 1; then
   6190  1.1.1.6.2.1  pgoyette               ac_end=`expr $ac_end - 1`
   6191  1.1.1.6.2.1  pgoyette               continue
   6192  1.1.1.6.2.1  pgoyette             fi
   6193  1.1.1.6.2.1  pgoyette           fi
   6194  1.1.1.6.2.1  pgoyette         fi
   6195  1.1.1.6.2.1  pgoyette       fi
   6196  1.1.1.6.2.1  pgoyette 
   6197          1.1  christos       if test -z "$ac_sed_cmds"; then
   6198  1.1.1.6.2.1  pgoyette         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
   6199          1.1  christos       else
   6200  1.1.1.6.2.1  pgoyette         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
   6201          1.1  christos       fi
   6202          1.1  christos       ac_sed_frag=`expr $ac_sed_frag + 1`
   6203          1.1  christos       ac_beg=$ac_end
   6204          1.1  christos       ac_end=`expr $ac_end + $ac_max_sed_lines`
   6205          1.1  christos     fi
   6206          1.1  christos   done
   6207          1.1  christos   if test -z "$ac_sed_cmds"; then
   6208          1.1  christos     ac_sed_cmds=cat
   6209          1.1  christos   fi
   6210          1.1  christos fi # test -n "$CONFIG_FILES"
   6211          1.1  christos 
   6212          1.1  christos EOF
   6213          1.1  christos cat >>$CONFIG_STATUS <<\EOF
   6214          1.1  christos for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
   6215          1.1  christos   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   6216          1.1  christos   case $ac_file in
   6217          1.1  christos   - | *:- | *:-:* ) # input from stdin
   6218          1.1  christos         cat >$tmp/stdin
   6219          1.1  christos         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   6220          1.1  christos         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   6221          1.1  christos   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   6222          1.1  christos         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   6223          1.1  christos   * )   ac_file_in=$ac_file.in ;;
   6224          1.1  christos   esac
   6225          1.1  christos 
   6226          1.1  christos   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
   6227          1.1  christos   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   6228          1.1  christos          X"$ac_file" : 'X\(//\)[^/]' \| \
   6229          1.1  christos          X"$ac_file" : 'X\(//\)$' \| \
   6230          1.1  christos          X"$ac_file" : 'X\(/\)' \| \
   6231          1.1  christos          .     : '\(.\)' 2>/dev/null ||
   6232          1.1  christos echo X"$ac_file" |
   6233          1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   6234          1.1  christos   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   6235          1.1  christos   	  /^X\(\/\/\)$/{ s//\1/; q; }
   6236          1.1  christos   	  /^X\(\/\).*/{ s//\1/; q; }
   6237          1.1  christos   	  s/.*/./; q'`
   6238          1.1  christos   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
   6239          1.1  christos     { case "$ac_dir" in
   6240          1.1  christos   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
   6241          1.1  christos   *)                      as_incr_dir=.;;
   6242          1.1  christos esac
   6243          1.1  christos as_dummy="$ac_dir"
   6244          1.1  christos for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
   6245          1.1  christos   case $as_mkdir_dir in
   6246          1.1  christos     # Skip DOS drivespec
   6247          1.1  christos     ?:) as_incr_dir=$as_mkdir_dir ;;
   6248          1.1  christos     *)
   6249          1.1  christos       as_incr_dir=$as_incr_dir/$as_mkdir_dir
   6250          1.1  christos       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
   6251          1.1  christos     ;;
   6252          1.1  christos   esac
   6253          1.1  christos done; }
   6254          1.1  christos 
   6255          1.1  christos     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
   6256          1.1  christos     # A "../" for each directory in $ac_dir_suffix.
   6257          1.1  christos     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
   6258          1.1  christos   else
   6259          1.1  christos     ac_dir_suffix= ac_dots=
   6260          1.1  christos   fi
   6261          1.1  christos 
   6262          1.1  christos   case $srcdir in
   6263          1.1  christos   .)  ac_srcdir=.
   6264          1.1  christos       if test -z "$ac_dots"; then
   6265          1.1  christos          ac_top_srcdir=.
   6266          1.1  christos       else
   6267          1.1  christos          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
   6268          1.1  christos       fi ;;
   6269          1.1  christos   [\\/]* | ?:[\\/]* )
   6270          1.1  christos       ac_srcdir=$srcdir$ac_dir_suffix;
   6271          1.1  christos       ac_top_srcdir=$srcdir ;;
   6272          1.1  christos   *) # Relative path.
   6273          1.1  christos     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
   6274          1.1  christos     ac_top_srcdir=$ac_dots$srcdir ;;
   6275          1.1  christos   esac
   6276          1.1  christos 
   6277          1.1  christos   case $INSTALL in
   6278          1.1  christos   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   6279          1.1  christos   *) ac_INSTALL=$ac_dots$INSTALL ;;
   6280          1.1  christos   esac
   6281          1.1  christos 
   6282          1.1  christos   if test x"$ac_file" != x-; then
   6283  1.1.1.6.2.1  pgoyette     { echo "$as_me:6283: creating $ac_file" >&5
   6284          1.1  christos echo "$as_me: creating $ac_file" >&6;}
   6285          1.1  christos     rm -f "$ac_file"
   6286          1.1  christos   fi
   6287          1.1  christos   # Let's still pretend it is `configure' which instantiates (i.e., don't
   6288          1.1  christos   # use $as_me), people would be surprised to read:
   6289          1.1  christos   #    /* config.h.  Generated automatically by config.status.  */
   6290          1.1  christos   configure_input="Generated automatically from `echo $ac_file_in |
   6291          1.1  christos                                                  sed 's,.*/,,'` by configure."
   6292          1.1  christos 
   6293          1.1  christos   # First look for the input files in the build tree, otherwise in the
   6294          1.1  christos   # src tree.
   6295          1.1  christos   ac_file_inputs=`IFS=:
   6296          1.1  christos     for f in $ac_file_in; do
   6297          1.1  christos       case $f in
   6298          1.1  christos       -) echo $tmp/stdin ;;
   6299          1.1  christos       [\\/$]*)
   6300          1.1  christos          # Absolute (can't be DOS-style, as IFS=:)
   6301  1.1.1.6.2.1  pgoyette          test -f "$f" || { { echo "$as_me:6301: error: cannot find input file: $f" >&5
   6302          1.1  christos echo "$as_me: error: cannot find input file: $f" >&2;}
   6303          1.1  christos    { (exit 1); exit 1; }; }
   6304          1.1  christos          echo $f;;
   6305          1.1  christos       *) # Relative
   6306          1.1  christos          if test -f "$f"; then
   6307          1.1  christos            # Build tree
   6308          1.1  christos            echo $f
   6309          1.1  christos          elif test -f "$srcdir/$f"; then
   6310          1.1  christos            # Source tree
   6311          1.1  christos            echo $srcdir/$f
   6312          1.1  christos          else
   6313          1.1  christos            # /dev/null tree
   6314  1.1.1.6.2.1  pgoyette            { { echo "$as_me:6314: error: cannot find input file: $f" >&5
   6315          1.1  christos echo "$as_me: error: cannot find input file: $f" >&2;}
   6316          1.1  christos    { (exit 1); exit 1; }; }
   6317          1.1  christos          fi;;
   6318          1.1  christos       esac
   6319          1.1  christos     done` || { (exit 1); exit 1; }
   6320          1.1  christos EOF
   6321      1.1.1.4  christos cat >>$CONFIG_STATUS <<\EOF
   6322      1.1.1.4  christos   ac_warn_datarootdir=no
   6323      1.1.1.4  christos   if test x"$ac_file" != x-; then
   6324      1.1.1.4  christos     for ac_item in $ac_file_inputs
   6325      1.1.1.4  christos     do
   6326      1.1.1.4  christos       ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
   6327      1.1.1.4  christos       if test -n "$ac_seen"; then
   6328      1.1.1.4  christos         ac_used=`grep '@datarootdir@' $ac_item`
   6329      1.1.1.4  christos         if test -z "$ac_used"; then
   6330  1.1.1.6.2.1  pgoyette           { echo "$as_me:6330: WARNING: datarootdir was used implicitly but not set:
   6331      1.1.1.4  christos $ac_seen" >&5
   6332      1.1.1.4  christos echo "$as_me: WARNING: datarootdir was used implicitly but not set:
   6333      1.1.1.4  christos $ac_seen" >&2;}
   6334      1.1.1.4  christos           ac_warn_datarootdir=yes
   6335      1.1.1.4  christos         fi
   6336      1.1.1.4  christos       fi
   6337      1.1.1.4  christos       ac_seen=`grep '${datarootdir}' $ac_item`
   6338      1.1.1.4  christos       if test -n "$ac_seen"; then
   6339  1.1.1.6.2.1  pgoyette         { echo "$as_me:6339: WARNING: datarootdir was used explicitly but not set:
   6340      1.1.1.4  christos $ac_seen" >&5
   6341      1.1.1.4  christos echo "$as_me: WARNING: datarootdir was used explicitly but not set:
   6342      1.1.1.4  christos $ac_seen" >&2;}
   6343      1.1.1.4  christos         ac_warn_datarootdir=yes
   6344      1.1.1.4  christos       fi
   6345      1.1.1.4  christos     done
   6346      1.1.1.4  christos   fi
   6347      1.1.1.4  christos 
   6348      1.1.1.4  christos if test "x$ac_warn_datarootdir" = xyes; then
   6349      1.1.1.4  christos   ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
   6350      1.1.1.4  christos fi
   6351      1.1.1.4  christos 
   6352      1.1.1.4  christos EOF
   6353          1.1  christos cat >>$CONFIG_STATUS <<EOF
   6354          1.1  christos   sed "$ac_vpsub
   6355          1.1  christos $extrasub
   6356          1.1  christos EOF
   6357          1.1  christos cat >>$CONFIG_STATUS <<\EOF
   6358          1.1  christos :t
   6359          1.1  christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   6360          1.1  christos s,@configure_input@,$configure_input,;t t
   6361          1.1  christos s,@srcdir@,$ac_srcdir,;t t
   6362          1.1  christos s,@top_srcdir@,$ac_top_srcdir,;t t
   6363          1.1  christos s,@INSTALL@,$ac_INSTALL,;t t
   6364          1.1  christos " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
   6365          1.1  christos   rm -f $tmp/stdin
   6366          1.1  christos   if test x"$ac_file" != x-; then
   6367      1.1.1.4  christos     cp $tmp/out $ac_file
   6368      1.1.1.4  christos 
   6369      1.1.1.4  christos     for ac_name in prefix exec_prefix datarootdir
   6370      1.1.1.4  christos     do
   6371      1.1.1.4  christos         ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
   6372      1.1.1.4  christos         if test -n "$ac_seen"; then
   6373      1.1.1.4  christos             ac_init=`egrep '[ 	]*'$ac_name'[ 	]*=' $ac_file`
   6374      1.1.1.4  christos             if test -z "$ac_init"; then
   6375      1.1.1.4  christos               ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
   6376  1.1.1.6.2.1  pgoyette               { echo "$as_me:6376: WARNING: Variable $ac_name is used but was not set:
   6377      1.1.1.4  christos $ac_seen" >&5
   6378      1.1.1.4  christos echo "$as_me: WARNING: Variable $ac_name is used but was not set:
   6379      1.1.1.4  christos $ac_seen" >&2;}
   6380      1.1.1.4  christos             fi
   6381      1.1.1.4  christos         fi
   6382      1.1.1.4  christos     done
   6383      1.1.1.4  christos     egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
   6384      1.1.1.4  christos     egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
   6385      1.1.1.4  christos     if test -s $tmp/out; then
   6386      1.1.1.4  christos       ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
   6387  1.1.1.6.2.1  pgoyette       { echo "$as_me:6387: WARNING: Some variables may not be substituted:
   6388      1.1.1.4  christos $ac_seen" >&5
   6389      1.1.1.4  christos echo "$as_me: WARNING: Some variables may not be substituted:
   6390      1.1.1.4  christos $ac_seen" >&2;}
   6391      1.1.1.4  christos     fi
   6392          1.1  christos   else
   6393          1.1  christos     cat $tmp/out
   6394          1.1  christos   fi
   6395      1.1.1.4  christos   rm -f $tmp/out
   6396          1.1  christos 
   6397          1.1  christos done
   6398          1.1  christos EOF
   6399          1.1  christos cat >>$CONFIG_STATUS <<\EOF
   6400          1.1  christos 
   6401          1.1  christos #
   6402          1.1  christos # CONFIG_HEADER section.
   6403          1.1  christos #
   6404          1.1  christos 
   6405          1.1  christos # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
   6406          1.1  christos # NAME is the cpp macro being defined and VALUE is the value it is being given.
   6407          1.1  christos #
   6408          1.1  christos # ac_d sets the value in "#define NAME VALUE" lines.
   6409          1.1  christos ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
   6410          1.1  christos ac_dB='[ 	].*$,\1#\2'
   6411          1.1  christos ac_dC=' '
   6412          1.1  christos ac_dD=',;t'
   6413          1.1  christos # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
   6414          1.1  christos ac_iA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
   6415          1.1  christos ac_iB='\([ 	]\),\1#\2define\3'
   6416          1.1  christos ac_iC=' '
   6417          1.1  christos ac_iD='\4,;t'
   6418          1.1  christos # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
   6419          1.1  christos ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
   6420          1.1  christos ac_uB='$,\1#\2define\3'
   6421          1.1  christos ac_uC=' '
   6422          1.1  christos ac_uD=',;t'
   6423          1.1  christos 
   6424          1.1  christos for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
   6425          1.1  christos   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   6426          1.1  christos   case $ac_file in
   6427          1.1  christos   - | *:- | *:-:* ) # input from stdin
   6428          1.1  christos         cat >$tmp/stdin
   6429          1.1  christos         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   6430          1.1  christos         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   6431          1.1  christos   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   6432          1.1  christos         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   6433          1.1  christos   * )   ac_file_in=$ac_file.in ;;
   6434          1.1  christos   esac
   6435          1.1  christos 
   6436  1.1.1.6.2.1  pgoyette   test x"$ac_file" != x- && { echo "$as_me:6436: creating $ac_file" >&5
   6437          1.1  christos echo "$as_me: creating $ac_file" >&6;}
   6438          1.1  christos 
   6439          1.1  christos   # First look for the input files in the build tree, otherwise in the
   6440          1.1  christos   # src tree.
   6441          1.1  christos   ac_file_inputs=`IFS=:
   6442          1.1  christos     for f in $ac_file_in; do
   6443          1.1  christos       case $f in
   6444          1.1  christos       -) echo $tmp/stdin ;;
   6445          1.1  christos       [\\/$]*)
   6446          1.1  christos          # Absolute (can't be DOS-style, as IFS=:)
   6447  1.1.1.6.2.1  pgoyette          test -f "$f" || { { echo "$as_me:6447: error: cannot find input file: $f" >&5
   6448          1.1  christos echo "$as_me: error: cannot find input file: $f" >&2;}
   6449          1.1  christos    { (exit 1); exit 1; }; }
   6450          1.1  christos          echo $f;;
   6451          1.1  christos       *) # Relative
   6452          1.1  christos          if test -f "$f"; then
   6453          1.1  christos            # Build tree
   6454          1.1  christos            echo $f
   6455          1.1  christos          elif test -f "$srcdir/$f"; then
   6456          1.1  christos            # Source tree
   6457          1.1  christos            echo $srcdir/$f
   6458          1.1  christos          else
   6459          1.1  christos            # /dev/null tree
   6460  1.1.1.6.2.1  pgoyette            { { echo "$as_me:6460: error: cannot find input file: $f" >&5
   6461          1.1  christos echo "$as_me: error: cannot find input file: $f" >&2;}
   6462          1.1  christos    { (exit 1); exit 1; }; }
   6463          1.1  christos          fi;;
   6464          1.1  christos       esac
   6465          1.1  christos     done` || { (exit 1); exit 1; }
   6466          1.1  christos   # Remove the trailing spaces.
   6467          1.1  christos   sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
   6468          1.1  christos 
   6469          1.1  christos EOF
   6470          1.1  christos 
   6471      1.1.1.4  christos # Transform confdefs.h into two sed scripts, `conftest.defines' and
   6472      1.1.1.4  christos # `conftest.undefs', that substitutes the proper values into
   6473      1.1.1.4  christos # config.h.in to produce config.h.  The first handles `#define'
   6474      1.1.1.4  christos # templates, and the second `#undef' templates.
   6475      1.1.1.4  christos # And first: Protect against being on the right side of a sed subst in
   6476      1.1.1.4  christos # config.status.  Protect against being in an unquoted here document
   6477      1.1.1.4  christos # in config.status.
   6478      1.1.1.4  christos rm -f conftest.defines conftest.undefs
   6479      1.1.1.4  christos # Using a here document instead of a string reduces the quoting nightmare.
   6480      1.1.1.4  christos # Putting comments in sed scripts is not portable.
   6481      1.1.1.4  christos #
   6482      1.1.1.4  christos # `end' is used to avoid that the second main sed command (meant for
   6483      1.1.1.4  christos # 0-ary CPP macros) applies to n-ary macro definitions.
   6484      1.1.1.4  christos # See the Autoconf documentation for `clear'.
   6485      1.1.1.4  christos cat >confdef2sed.sed <<\EOF
   6486      1.1.1.4  christos s/[\\&,]/\\&/g
   6487      1.1.1.4  christos s,[\\$`],\\&,g
   6488      1.1.1.4  christos t clear
   6489      1.1.1.4  christos : clear
   6490      1.1.1.4  christos s,^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
   6491      1.1.1.4  christos t end
   6492      1.1.1.4  christos s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
   6493      1.1.1.4  christos : end
   6494      1.1.1.4  christos EOF
   6495      1.1.1.4  christos # If some macros were called several times there might be several times
   6496      1.1.1.4  christos # the same #defines, which is useless.  Nevertheless, we may not want to
   6497      1.1.1.4  christos # sort them, since we want the *last* AC-DEFINE to be honored.
   6498      1.1.1.4  christos uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
   6499      1.1.1.4  christos sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
   6500      1.1.1.4  christos sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
   6501      1.1.1.4  christos rm -f confdef2sed.sed
   6502      1.1.1.4  christos 
   6503      1.1.1.4  christos # This sed command replaces #undef with comments.  This is necessary, for
   6504      1.1.1.4  christos # example, in the case of _POSIX_SOURCE, which is predefined and required
   6505      1.1.1.4  christos # on some systems where configure will not decide to define it.
   6506      1.1.1.4  christos cat >>conftest.undefs <<\EOF
   6507      1.1.1.4  christos s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
   6508      1.1.1.4  christos EOF
   6509      1.1.1.4  christos 
   6510      1.1.1.4  christos # Break up conftest.defines because some shells have a limit on the size
   6511      1.1.1.4  christos # of here documents, and old seds have small limits too (100 cmds).
   6512      1.1.1.4  christos echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
   6513      1.1.1.4  christos echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
   6514      1.1.1.4  christos echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
   6515      1.1.1.4  christos echo '  :' >>$CONFIG_STATUS
   6516          1.1  christos rm -f conftest.tail
   6517      1.1.1.4  christos while grep . conftest.defines >/dev/null
   6518          1.1  christos do
   6519      1.1.1.4  christos   # Write a limited-size here document to $tmp/defines.sed.
   6520      1.1.1.4  christos   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
   6521      1.1.1.4  christos   # Speed up: don't consider the non `#define' lines.
   6522      1.1.1.4  christos   echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
   6523      1.1.1.4  christos   # Work around the forget-to-reset-the-flag bug.
   6524      1.1.1.4  christos   echo 't clr' >>$CONFIG_STATUS
   6525      1.1.1.4  christos   echo ': clr' >>$CONFIG_STATUS
   6526      1.1.1.4  christos   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
   6527      1.1.1.4  christos   echo 'CEOF
   6528      1.1.1.4  christos   sed -f $tmp/defines.sed $tmp/in >$tmp/out
   6529      1.1.1.4  christos   rm -f $tmp/in
   6530      1.1.1.4  christos   mv $tmp/out $tmp/in
   6531      1.1.1.4  christos ' >>$CONFIG_STATUS
   6532      1.1.1.4  christos   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
   6533      1.1.1.4  christos   rm -f conftest.defines
   6534      1.1.1.4  christos   mv conftest.tail conftest.defines
   6535      1.1.1.4  christos done
   6536      1.1.1.4  christos rm -f conftest.defines
   6537      1.1.1.4  christos echo '  fi # egrep' >>$CONFIG_STATUS
   6538      1.1.1.4  christos echo >>$CONFIG_STATUS
   6539      1.1.1.4  christos 
   6540      1.1.1.4  christos # Break up conftest.undefs because some shells have a limit on the size
   6541      1.1.1.4  christos # of here documents, and old seds have small limits too (100 cmds).
   6542      1.1.1.4  christos echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
   6543      1.1.1.4  christos rm -f conftest.tail
   6544      1.1.1.4  christos while grep . conftest.undefs >/dev/null
   6545      1.1.1.4  christos do
   6546      1.1.1.4  christos   # Write a limited-size here document to $tmp/undefs.sed.
   6547      1.1.1.4  christos   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
   6548      1.1.1.4  christos   # Speed up: don't consider the non `#undef'
   6549      1.1.1.4  christos   echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
   6550      1.1.1.4  christos   # Work around the forget-to-reset-the-flag bug.
   6551      1.1.1.4  christos   echo 't clr' >>$CONFIG_STATUS
   6552      1.1.1.4  christos   echo ': clr' >>$CONFIG_STATUS
   6553      1.1.1.4  christos   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
   6554      1.1.1.4  christos   echo 'CEOF
   6555      1.1.1.4  christos   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
   6556      1.1.1.4  christos   rm -f $tmp/in
   6557      1.1.1.4  christos   mv $tmp/out $tmp/in
   6558      1.1.1.4  christos ' >>$CONFIG_STATUS
   6559      1.1.1.4  christos   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
   6560      1.1.1.4  christos   rm -f conftest.undefs
   6561      1.1.1.4  christos   mv conftest.tail conftest.undefs
   6562      1.1.1.4  christos done
   6563      1.1.1.4  christos rm -f conftest.undefs
   6564          1.1  christos 
   6565          1.1  christos cat >>$CONFIG_STATUS <<\EOF
   6566          1.1  christos   # Let's still pretend it is `configure' which instantiates (i.e., don't
   6567          1.1  christos   # use $as_me), people would be surprised to read:
   6568          1.1  christos   #    /* config.h.  Generated automatically by config.status.  */
   6569          1.1  christos   if test x"$ac_file" = x-; then
   6570          1.1  christos     echo "/* Generated automatically by configure.  */" >$tmp/config.h
   6571          1.1  christos   else
   6572          1.1  christos     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
   6573          1.1  christos   fi
   6574          1.1  christos   cat $tmp/in >>$tmp/config.h
   6575          1.1  christos   rm -f $tmp/in
   6576          1.1  christos   if test x"$ac_file" != x-; then
   6577          1.1  christos     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
   6578  1.1.1.6.2.1  pgoyette       { echo "$as_me:6578: $ac_file is unchanged" >&5
   6579          1.1  christos echo "$as_me: $ac_file is unchanged" >&6;}
   6580          1.1  christos     else
   6581          1.1  christos       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   6582          1.1  christos          X"$ac_file" : 'X\(//\)[^/]' \| \
   6583          1.1  christos          X"$ac_file" : 'X\(//\)$' \| \
   6584          1.1  christos          X"$ac_file" : 'X\(/\)' \| \
   6585          1.1  christos          .     : '\(.\)' 2>/dev/null ||
   6586          1.1  christos echo X"$ac_file" |
   6587          1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   6588          1.1  christos   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   6589          1.1  christos   	  /^X\(\/\/\)$/{ s//\1/; q; }
   6590          1.1  christos   	  /^X\(\/\).*/{ s//\1/; q; }
   6591          1.1  christos   	  s/.*/./; q'`
   6592          1.1  christos       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
   6593          1.1  christos         { case "$ac_dir" in
   6594          1.1  christos   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
   6595          1.1  christos   *)                      as_incr_dir=.;;
   6596          1.1  christos esac
   6597          1.1  christos as_dummy="$ac_dir"
   6598          1.1  christos for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
   6599          1.1  christos   case $as_mkdir_dir in
   6600          1.1  christos     # Skip DOS drivespec
   6601          1.1  christos     ?:) as_incr_dir=$as_mkdir_dir ;;
   6602          1.1  christos     *)
   6603          1.1  christos       as_incr_dir=$as_incr_dir/$as_mkdir_dir
   6604          1.1  christos       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
   6605          1.1  christos     ;;
   6606          1.1  christos   esac
   6607          1.1  christos done; }
   6608          1.1  christos 
   6609          1.1  christos       fi
   6610          1.1  christos       rm -f $ac_file
   6611          1.1  christos       mv $tmp/config.h $ac_file
   6612          1.1  christos     fi
   6613          1.1  christos   else
   6614          1.1  christos     cat $tmp/config.h
   6615          1.1  christos     rm -f $tmp/config.h
   6616          1.1  christos   fi
   6617          1.1  christos done
   6618          1.1  christos EOF
   6619          1.1  christos 
   6620          1.1  christos cat >>$CONFIG_STATUS <<\EOF
   6621          1.1  christos 
   6622          1.1  christos { (exit 0); exit 0; }
   6623          1.1  christos EOF
   6624          1.1  christos chmod +x $CONFIG_STATUS
   6625          1.1  christos ac_clean_files=$ac_clean_files_save
   6626          1.1  christos 
   6627          1.1  christos # configure is writing to config.log, and then calls config.status.
   6628          1.1  christos # config.status does its own redirection, appending to config.log.
   6629          1.1  christos # Unfortunately, on DOS this fails, as config.log is still kept open
   6630          1.1  christos # by configure, so config.status won't be able to write to it; its
   6631          1.1  christos # output is simply discarded.  So we exec the FD to /dev/null,
   6632          1.1  christos # effectively closing config.log, so it can be properly (re)opened and
   6633          1.1  christos # appended to by config.status.  When coming back to configure, we
   6634          1.1  christos # need to make the FD available again.
   6635          1.1  christos if test "$no_create" != yes; then
   6636          1.1  christos   ac_cs_success=:
   6637          1.1  christos   exec 5>/dev/null
   6638          1.1  christos   $SHELL $CONFIG_STATUS || ac_cs_success=false
   6639          1.1  christos   exec 5>>config.log
   6640          1.1  christos   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   6641          1.1  christos   # would make configure fail if this is the last instruction.
   6642          1.1  christos   $ac_cs_success || { (exit 1); exit 1; }
   6643          1.1  christos fi
   6644          1.1  christos 
   6645      1.1.1.5  christos test -z "$cf_make_docs" && cf_make_docs=0
   6646      1.1.1.5  christos 
   6647      1.1.1.5  christos cf_output=makefile
   6648      1.1.1.5  christos test -f "$cf_output" || cf_output=Makefile
   6649      1.1.1.5  christos 
   6650      1.1.1.5  christos if test "$cf_make_docs" = 0
   6651      1.1.1.5  christos then
   6652      1.1.1.6  christos cat >>$cf_output <<CF_EOF
   6653      1.1.1.5  christos ################################################################################
   6654      1.1.1.6  christos ## generated by CF_MAKE_DOCS
   6655      1.1.1.5  christos .SUFFIXES : .html .1 .man .ps .pdf .txt
   6656      1.1.1.5  christos 
   6657      1.1.1.6  christos ${NROFF_NOTE}.1.txt :
   6658      1.1.1.6  christos ${NROFF_NOTE}	\$(SHELL) -c "tbl \$*.1 | nroff -man | col -bx" >\$@
   6659      1.1.1.5  christos 
   6660      1.1.1.6  christos ${GROFF_NOTE}.ps.pdf :
   6661      1.1.1.6  christos ${GROFF_NOTE}	ps2pdf \$*.ps
   6662      1.1.1.6  christos ${GROFF_NOTE}
   6663      1.1.1.6  christos ${GROFF_NOTE}.1.ps :
   6664      1.1.1.6  christos ${GROFF_NOTE}	\$(SHELL) -c "tbl \$*.1 | groff -man" >\$@
   6665      1.1.1.6  christos ${GROFF_NOTE}
   6666      1.1.1.6  christos ${GROFF_NOTE}.1.txt :
   6667      1.1.1.6  christos ${GROFF_NOTE}	GROFF_NO_SGR=stupid \$(SHELL) -c "tbl \$*.1 | nroff -Tascii -man | col -bx" >\$@
   6668      1.1.1.5  christos 
   6669      1.1.1.6  christos ${MAN2HTML_NOTE}.1.html :
   6670      1.1.1.6  christos ${MAN2HTML_NOTE}	./${MAN2HTML_TEMP} \$* 1 man >\$@
   6671      1.1.1.5  christos 
   6672      1.1.1.5  christos CF_EOF
   6673      1.1.1.5  christos 	cf_make_docs=1
   6674      1.1.1.5  christos fi
   6675      1.1.1.5  christos 
   6676      1.1.1.5  christos for cf_name in yacc
   6677      1.1.1.5  christos do
   6678      1.1.1.5  christos cat >>$cf_output <<CF_EOF
   6679      1.1.1.5  christos ################################################################################
   6680      1.1.1.6  christos ${NROFF_NOTE}docs docs-$cf_name :: $cf_name.txt
   6681      1.1.1.6  christos ${MAN2HTML_NOTE}docs docs-$cf_name :: $cf_name.html
   6682      1.1.1.6  christos ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.pdf
   6683      1.1.1.6  christos ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.ps
   6684      1.1.1.6  christos ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.txt
   6685      1.1.1.5  christos 
   6686      1.1.1.5  christos clean \\
   6687      1.1.1.5  christos docs-clean ::
   6688      1.1.1.6  christos ${NROFF_NOTE}	rm -f $cf_name.txt
   6689      1.1.1.6  christos ${MAN2HTML_NOTE}	rm -f $cf_name.html
   6690      1.1.1.6  christos ${GROFF_NOTE}	rm -f $cf_name.pdf
   6691      1.1.1.6  christos ${GROFF_NOTE}	rm -f $cf_name.ps
   6692      1.1.1.6  christos ${GROFF_NOTE}	rm -f $cf_name.txt
   6693      1.1.1.6  christos 
   6694      1.1.1.6  christos ${NROFF_NOTE}$cf_name.txt  : $cf_name.1
   6695      1.1.1.6  christos ${MAN2HTML_NOTE}$cf_name.html : $cf_name.1
   6696      1.1.1.6  christos ${GROFF_NOTE}$cf_name.pdf  : $cf_name.ps
   6697      1.1.1.6  christos ${GROFF_NOTE}$cf_name.ps   : $cf_name.1
   6698      1.1.1.6  christos ${GROFF_NOTE}$cf_name.txt  : $cf_name.1
   6699      1.1.1.5  christos CF_EOF
   6700      1.1.1.5  christos done
   6701      1.1.1.5  christos 
   6702