Home | History | Annotate | Line # | Download | only in dist
configure revision 1.1.1.16
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by Autoconf 2.52.20210509.
      4 #
      5 # Copyright 2003-2020,2021	Thomas E. Dickey
      6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
      7 # Free Software Foundation, Inc.
      8 # This configure script is free software; the Free Software Foundation
      9 # gives unlimited permission to copy, distribute and modify it.
     10 
     11 # Avoid depending upon Character Ranges.
     12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     15 as_cr_digits='0123456789'
     16 as_cr_alnum=$as_cr_Letters$as_cr_digits
     17 
     18 # Sed expression to map a string onto a valid variable name.
     19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
     20 
     21 # Sed expression to map a string onto a valid CPP name.
     22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
     23 
     24 # Be Bourne compatible
     25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     26   emulate sh
     27   NULLCMD=:
     28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     29   set -o posix
     30 fi
     31 
     32 # Name of the executable.
     33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
     34 
     35 if expr a : '\(a\)' >/dev/null 2>&1; then
     36   as_expr=expr
     37 else
     38   as_expr=false
     39 fi
     40 
     41 rm -f conf$$ conf$$.exe conf$$.file
     42 echo >conf$$.file
     43 if ln -s conf$$.file conf$$ 2>/dev/null; then
     44   # We could just check for DJGPP; but this test a) works b) is more generic
     45   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     46   if test -f conf$$.exe; then
     47     # Don't use ln at all; we don't have any links
     48     as_ln_s='cp -p'
     49   else
     50     as_ln_s='ln -s'
     51   fi
     52 elif ln conf$$.file conf$$ 2>/dev/null; then
     53   as_ln_s=ln
     54 else
     55   as_ln_s='cp -p'
     56 fi
     57 rm -f conf$$ conf$$.exe conf$$.file
     58 
     59 as_executable_p="test -f"
     60 
     61 # Support unset when possible.
     62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
     63   as_unset="unset"
     64 else
     65   as_unset="false"
     66 fi
     67 
     68 # NLS nuisances.
     69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
     70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
     71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
     72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
     73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
     74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
     75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
     76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
     77 
     78 # IFS
     79 # We need space, tab and new line, in precisely that order.
     80 as_nl='
     81 '
     82 IFS=" 	$as_nl"
     83 
     84 # CDPATH.
     85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
     86 
     87 # Name of the host.
     88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     89 # so uname gets run too.
     90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
     91 
     92 exec 6>&1
     93 
     94 #
     95 # Initializations.
     96 #
     97 ac_default_prefix=/usr/local
     98 cross_compiling=no
     99 subdirs=
    100 MFLAGS=
    101 MAKEFLAGS=
    102 SHELL=${CONFIG_SHELL-/bin/sh}
    103 
    104 # Maximum number of lines to put in a shell here document.
    105 # This variable seems obsolete.  It should probably be removed, and
    106 # only ac_max_sed_lines should be used.
    107 : "${ac_max_here_lines=38}"
    108 
    109 ac_unique_file="charproc.c"
    110 # Factoring default headers for most tests.
    111 ac_includes_default="\
    112 #include <stdio.h>
    113 #if HAVE_SYS_TYPES_H
    114 # include <sys/types.h>
    115 #endif
    116 #if HAVE_SYS_STAT_H
    117 # include <sys/stat.h>
    118 #endif
    119 #if STDC_HEADERS
    120 # include <stdlib.h>
    121 # include <stddef.h>
    122 #else
    123 # if HAVE_STDLIB_H
    124 #  include <stdlib.h>
    125 # endif
    126 #endif
    127 #if HAVE_STRING_H
    128 # if !STDC_HEADERS && HAVE_MEMORY_H
    129 #  include <memory.h>
    130 # endif
    131 # include <string.h>
    132 #endif
    133 #if HAVE_STRINGS_H
    134 # include <strings.h>
    135 #endif
    136 #if HAVE_INTTYPES_H
    137 # include <inttypes.h>
    138 #else
    139 # if HAVE_STDINT_H
    140 #  include <stdint.h>
    141 # endif
    142 #endif
    143 #if HAVE_UNISTD_H
    144 # include <unistd.h>
    145 #endif"
    146 
    147 # Initialize some variables set by options.
    148 ac_init_help=
    149 ac_init_version=false
    150 # The variables have the same names as the options, with
    151 # dashes changed to underlines.
    152 cache_file=/dev/null
    153 exec_prefix=NONE
    154 no_create=
    155 no_recursion=
    156 prefix=NONE
    157 program_prefix=NONE
    158 program_suffix=NONE
    159 program_transform_name=s,x,x,
    160 silent=
    161 site=
    162 srcdir=
    163 verbose=
    164 x_includes=NONE
    165 x_libraries=NONE
    166 
    167 # Installation directory options.
    168 # These are left unexpanded so users can "make install exec_prefix=/foo"
    169 # and all the variables that are supposed to be based on exec_prefix
    170 # by default will actually change.
    171 # Use braces instead of parens because sh, perl, etc. also accept them.
    172 bindir='${exec_prefix}/bin'
    173 sbindir='${exec_prefix}/sbin'
    174 libexecdir='${exec_prefix}/libexec'
    175 datarootdir='${prefix}/share'
    176 datadir='${datarootdir}'
    177 sysconfdir='${prefix}/etc'
    178 sharedstatedir='${prefix}/com'
    179 localstatedir='${prefix}/var'
    180 runstatedir='${localstatedir}/run'
    181 libdir='${exec_prefix}/lib'
    182 includedir='${prefix}/include'
    183 oldincludedir='/usr/include'
    184 infodir='${datarootdir}/info'
    185 mandir='${datarootdir}/man'
    186 
    187 # Identity of this package.
    188 PACKAGE_NAME=
    189 PACKAGE_TARNAME=
    190 PACKAGE_VERSION=
    191 PACKAGE_STRING=
    192 PACKAGE_BUGREPORT=
    193 
    194 ac_prev=
    195 for ac_option
    196 do
    197   # If the previous option needs an argument, assign it.
    198   if test -n "$ac_prev"; then
    199     eval "$ac_prev=\$ac_option"
    200     ac_prev=
    201     continue
    202   fi
    203 
    204   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
    205 
    206   # Accept the important Cygnus configure options, so we can diagnose typos.
    207 
    208   case "$ac_option" in
    209 
    210   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    211     ac_prev=bindir ;;
    212   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    213     bindir=$ac_optarg ;;
    214 
    215   -build | --build | --buil | --bui | --bu)
    216     ac_prev=build_alias ;;
    217   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    218     build_alias=$ac_optarg ;;
    219 
    220   -cache-file | --cache-file | --cache-fil | --cache-fi \
    221   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    222     ac_prev=cache_file ;;
    223   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    224   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    225     cache_file=$ac_optarg ;;
    226 
    227   --config-cache | -C)
    228     cache_file=config.cache ;;
    229 
    230   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    231     ac_prev=datadir ;;
    232   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    233   | --da=*)
    234     datadir=$ac_optarg ;;
    235 
    236   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    237   | --dataroo | --dataro | --datar)
    238     ac_prev=datarootdir ;;
    239   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    240   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    241     datarootdir=$ac_optarg ;;
    242 
    243   -disable-* | --disable-*)
    244     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    245     # Reject names that are not valid shell variable names.
    246     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    247       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    248    { (exit 1); exit 1; }; }
    249     ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
    250     eval "enable_$ac_feature=no" ;;
    251 
    252   -enable-* | --enable-*)
    253     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    254     # Reject names that are not valid shell variable names.
    255     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    256       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    257    { (exit 1); exit 1; }; }
    258     ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
    259     case "$ac_option" in
    260       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    261       *) ac_optarg=yes ;;
    262     esac
    263     eval "enable_$ac_feature='$ac_optarg'" ;;
    264 
    265   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    266   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    267   | --exec | --exe | --ex)
    268     ac_prev=exec_prefix ;;
    269   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    270   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    271   | --exec=* | --exe=* | --ex=*)
    272     exec_prefix=$ac_optarg ;;
    273 
    274   -gas | --gas | --ga | --g)
    275     # Obsolete; use --with-gas.
    276     with_gas=yes ;;
    277 
    278   -help | --help | --hel | --he | -h)
    279     ac_init_help=long ;;
    280   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    281     ac_init_help=recursive ;;
    282   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    283     ac_init_help=short ;;
    284 
    285   -host | --host | --hos | --ho)
    286     ac_prev=host_alias ;;
    287   -host=* | --host=* | --hos=* | --ho=*)
    288     host_alias=$ac_optarg ;;
    289 
    290   -includedir | --includedir | --includedi | --included | --include \
    291   | --includ | --inclu | --incl | --inc)
    292     ac_prev=includedir ;;
    293   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    294   | --includ=* | --inclu=* | --incl=* | --inc=*)
    295     includedir=$ac_optarg ;;
    296 
    297   -infodir | --infodir | --infodi | --infod | --info | --inf)
    298     ac_prev=infodir ;;
    299   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    300     infodir=$ac_optarg ;;
    301 
    302   -libdir | --libdir | --libdi | --libd)
    303     ac_prev=libdir ;;
    304   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    305     libdir=$ac_optarg ;;
    306 
    307   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    308   | --libexe | --libex | --libe)
    309     ac_prev=libexecdir ;;
    310   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    311   | --libexe=* | --libex=* | --libe=*)
    312     libexecdir=$ac_optarg ;;
    313 
    314   -localstatedir | --localstatedir | --localstatedi | --localstated \
    315   | --localstate | --localstat | --localsta | --localst \
    316   | --locals | --local | --loca | --loc | --lo)
    317     ac_prev=localstatedir ;;
    318   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    319   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    320   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    321     localstatedir=$ac_optarg ;;
    322 
    323   -runstatedir | --runstatedir | --runstatedi | --runstated \
    324   | --runstate | --runstat | --runsta | --runst \
    325   | --runs | --run | --ru)
    326     ac_prev=runstatedir ;;
    327   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
    328   | --runstate=* | --runstat=* | --runsta=* | --runst=* \
    329   | --runs=* | --run=* | --ru=*)
    330     runstatedir=$ac_optarg ;;
    331 
    332   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    333     ac_prev=mandir ;;
    334   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    335     mandir=$ac_optarg ;;
    336 
    337   -nfp | --nfp | --nf)
    338     # Obsolete; use --without-fp.
    339     with_fp=no ;;
    340 
    341   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    342   | --no-cr | --no-c)
    343     no_create=yes ;;
    344 
    345   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    346   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    347     no_recursion=yes ;;
    348 
    349   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
    350   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
    351   | --oldin | --oldi | --old | --ol | --o)
    352     ac_prev=oldincludedir ;;
    353   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
    354   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    355   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    356     oldincludedir=$ac_optarg ;;
    357 
    358   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    359     ac_prev=prefix ;;
    360   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    361     prefix=$ac_optarg ;;
    362 
    363   -program-prefix | --program-prefix | --program-prefi | --program-pref \
    364   | --program-pre | --program-pr | --program-p)
    365     ac_prev=program_prefix ;;
    366   -program-prefix=* | --program-prefix=* | --program-prefi=* \
    367   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    368     program_prefix=$ac_optarg ;;
    369 
    370   -program-suffix | --program-suffix | --program-suffi | --program-suff \
    371   | --program-suf | --program-su | --program-s)
    372     ac_prev=program_suffix ;;
    373   -program-suffix=* | --program-suffix=* | --program-suffi=* \
    374   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    375     program_suffix=$ac_optarg ;;
    376 
    377   -program-transform-name | --program-transform-name \
    378   | --program-transform-nam | --program-transform-na \
    379   | --program-transform-n | --program-transform- \
    380   | --program-transform | --program-transfor \
    381   | --program-transfo | --program-transf \
    382   | --program-trans | --program-tran \
    383   | --progr-tra | --program-tr | --program-t)
    384     ac_prev=program_transform_name ;;
    385   -program-transform-name=* | --program-transform-name=* \
    386   | --program-transform-nam=* | --program-transform-na=* \
    387   | --program-transform-n=* | --program-transform-=* \
    388   | --program-transform=* | --program-transfor=* \
    389   | --program-transfo=* | --program-transf=* \
    390   | --program-trans=* | --program-tran=* \
    391   | --progr-tra=* | --program-tr=* | --program-t=*)
    392     program_transform_name=$ac_optarg ;;
    393 
    394   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    395   | -silent | --silent | --silen | --sile | --sil)
    396     silent=yes ;;
    397 
    398   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    399     ac_prev=sbindir ;;
    400   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    401   | --sbi=* | --sb=*)
    402     sbindir=$ac_optarg ;;
    403 
    404   -sharedstatedir | --sharedstatedir | --sharedstatedi \
    405   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
    406   | --sharedst | --shareds | --shared | --share | --shar \
    407   | --sha | --sh)
    408     ac_prev=sharedstatedir ;;
    409   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
    410   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
    411   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    412   | --sha=* | --sh=*)
    413     sharedstatedir=$ac_optarg ;;
    414 
    415   -site | --site | --sit)
    416     ac_prev=site ;;
    417   -site=* | --site=* | --sit=*)
    418     site=$ac_optarg ;;
    419 
    420   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    421     ac_prev=srcdir ;;
    422   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    423     srcdir=$ac_optarg ;;
    424 
    425   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
    426   | --syscon | --sysco | --sysc | --sys | --sy)
    427     ac_prev=sysconfdir ;;
    428   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    429   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    430     sysconfdir=$ac_optarg ;;
    431 
    432   -target | --target | --targe | --targ | --tar | --ta | --t)
    433     ac_prev=target_alias ;;
    434   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    435     target_alias=$ac_optarg ;;
    436 
    437   -v | -verbose | --verbose | --verbos | --verbo | --verb)
    438     verbose=yes ;;
    439 
    440   -version | --version | --versio | --versi | --vers | -V)
    441     ac_init_version=: ;;
    442 
    443   -with-* | --with-*)
    444     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    445     # Reject names that are not valid shell variable names.
    446     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    447       { echo "$as_me: error: invalid package name: $ac_package" >&2
    448    { (exit 1); exit 1; }; }
    449     ac_package=`echo "$ac_package" | sed 's/-/_/g'`
    450     case "$ac_option" in
    451       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    452       *) ac_optarg=yes ;;
    453     esac
    454     eval "with_$ac_package='$ac_optarg'" ;;
    455 
    456   -without-* | --without-*)
    457     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    458     # Reject names that are not valid shell variable names.
    459     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    460       { echo "$as_me: error: invalid package name: $ac_package" >&2
    461    { (exit 1); exit 1; }; }
    462     ac_package=`echo "$ac_package" | sed 's/-/_/g'`
    463     eval "with_$ac_package=no" ;;
    464 
    465   --x)
    466     # Obsolete; use --with-x.
    467     with_x=yes ;;
    468 
    469   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
    470   | --x-incl | --x-inc | --x-in | --x-i)
    471     ac_prev=x_includes ;;
    472   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    473   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    474     x_includes=$ac_optarg ;;
    475 
    476   -x-libraries | --x-libraries | --x-librarie | --x-librari \
    477   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    478     ac_prev=x_libraries ;;
    479   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    480   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    481     x_libraries=$ac_optarg ;;
    482 
    483   -*) { echo "$as_me: error: unrecognized option: $ac_option
    484 Try \`$0 --help' for more information." >&2
    485    { (exit 1); exit 1; }; }
    486     ;;
    487 
    488   *=*)
    489     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    490     # Reject names that are not valid shell variable names.
    491     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
    492       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    493    { (exit 1); exit 1; }; }
    494     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    495     eval "$ac_envvar='$ac_optarg'"
    496     export "$ac_envvar" ;;
    497 
    498   *)
    499     # FIXME: should be removed in autoconf 3.0.
    500     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    501     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    502       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    503     : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}"
    504     ;;
    505 
    506   esac
    507 done
    508 
    509 if test -n "$ac_prev"; then
    510   ac_option=--`echo "$ac_prev" | sed 's/_/-/g'`
    511   { echo "$as_me: error: missing argument to $ac_option" >&2
    512    { (exit 1); exit 1; }; }
    513 fi
    514 
    515 # Be sure to have absolute paths.
    516 for ac_var in exec_prefix prefix
    517 do
    518   eval ac_val=$`echo "$ac_var"`
    519   case "$ac_val" in
    520     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    521     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
    522    { (exit 1); exit 1; }; };;
    523   esac
    524 done
    525 
    526 # Be sure to have absolute paths.
    527 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
    528               localstatedir libdir includedir oldincludedir infodir mandir
    529 do
    530   eval ac_val=$`echo "$ac_var"`
    531   case "$ac_val" in
    532     [\\/$]* | ?:[\\/]* ) ;;
    533     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
    534    { (exit 1); exit 1; }; };;
    535   esac
    536 done
    537 
    538 # There might be people who depend on the old broken behavior: `$host'
    539 # used to hold the argument of --host etc.
    540 build=$build_alias
    541 host=$host_alias
    542 target=$target_alias
    543 
    544 # FIXME: should be removed in autoconf 3.0.
    545 if test "x$host_alias" != x; then
    546   if test "x$build_alias" = x; then
    547     cross_compiling=maybe
    548     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    549     If a cross compiler is detected then cross compile mode will be used." >&2
    550   elif test "x$build_alias" != "x$host_alias"; then
    551     cross_compiling=yes
    552   fi
    553 fi
    554 
    555 ac_tool_prefix=
    556 test -n "$host_alias" && ac_tool_prefix=$host_alias-
    557 
    558 test "$silent" = yes && exec 6>/dev/null
    559 
    560 # Find the source files, if location was not specified.
    561 if test -z "$srcdir"; then
    562   ac_srcdir_defaulted=yes
    563   # Try the directory containing this script, then its parent.
    564   ac_prog=$0
    565   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
    566   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
    567   srcdir=$ac_confdir
    568   if test ! -r "$srcdir/$ac_unique_file"; then
    569     srcdir=..
    570   fi
    571 else
    572   ac_srcdir_defaulted=no
    573 fi
    574 if test ! -r "$srcdir/$ac_unique_file"; then
    575   if test "$ac_srcdir_defaulted" = yes; then
    576     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
    577    { (exit 1); exit 1; }; }
    578   else
    579     { echo "$as_me: error: cannot find sources in $srcdir" >&2
    580    { (exit 1); exit 1; }; }
    581   fi
    582 fi
    583 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    584 ac_env_build_alias_set=${build_alias+set}
    585 ac_env_build_alias_value=$build_alias
    586 ac_cv_env_build_alias_set=${build_alias+set}
    587 ac_cv_env_build_alias_value=$build_alias
    588 ac_env_host_alias_set=${host_alias+set}
    589 ac_env_host_alias_value=$host_alias
    590 ac_cv_env_host_alias_set=${host_alias+set}
    591 ac_cv_env_host_alias_value=$host_alias
    592 ac_env_target_alias_set=${target_alias+set}
    593 ac_env_target_alias_value=$target_alias
    594 ac_cv_env_target_alias_set=${target_alias+set}
    595 ac_cv_env_target_alias_value=$target_alias
    596 ac_env_CC_set=${CC+set}
    597 ac_env_CC_value=$CC
    598 ac_cv_env_CC_set=${CC+set}
    599 ac_cv_env_CC_value=$CC
    600 ac_env_CFLAGS_set=${CFLAGS+set}
    601 ac_env_CFLAGS_value=$CFLAGS
    602 ac_cv_env_CFLAGS_set=${CFLAGS+set}
    603 ac_cv_env_CFLAGS_value=$CFLAGS
    604 ac_env_LDFLAGS_set=${LDFLAGS+set}
    605 ac_env_LDFLAGS_value=$LDFLAGS
    606 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    607 ac_cv_env_LDFLAGS_value=$LDFLAGS
    608 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    609 ac_env_CPPFLAGS_value=$CPPFLAGS
    610 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    611 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    612 ac_env_CPP_set=${CPP+set}
    613 ac_env_CPP_value=$CPP
    614 ac_cv_env_CPP_set=${CPP+set}
    615 ac_cv_env_CPP_value=$CPP
    616 
    617 #
    618 # Report the --help message.
    619 #
    620 if test "$ac_init_help" = "long"; then
    621   # Omit some internal or obsolete options to make the list less imposing.
    622   # This message is too long to be a string in the A/UX 3.1 sh.
    623   cat <<EOF
    624 \`configure' configures this package to adapt to many kinds of systems.
    625 
    626 Usage: $0 [OPTION]... [VAR=VALUE]...
    627 
    628 To assign environment variables (e.g., CC, CFLAGS...), specify them as
    629 VAR=VALUE.  See below for descriptions of some of the useful variables.
    630 
    631 Defaults for the options are specified in brackets.
    632 
    633 Configuration:
    634   -h, --help              display this help and exit
    635       --help=short        display options specific to this package
    636       --help=recursive    display the short help of all the included packages
    637   -V, --version           display version information and exit
    638   -q, --quiet, --silent   do not print \`checking...' messages
    639       --cache-file=FILE   cache test results in FILE [disabled]
    640   -C, --config-cache      alias for \`--cache-file=config.cache'
    641   -n, --no-create         do not create output files
    642       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    643 
    644 EOF
    645 
    646   cat <<EOF
    647 Installation directories:
    648   --prefix=PREFIX         install architecture-independent files in PREFIX
    649                           [$ac_default_prefix]
    650   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    651                           [PREFIX]
    652 
    653 By default, \`make install' will install all the files in
    654 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
    655 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
    656 for instance \`--prefix=\$HOME'.
    657 
    658 For better control, use the options below.
    659 
    660 Fine tuning of the installation directories:
    661   --bindir=DIR            user executables [EPREFIX/bin]
    662   --sbindir=DIR           system admin executables [EPREFIX/sbin]
    663   --libexecdir=DIR        program executables [EPREFIX/libexec]
    664   --datarootdir=DIR       read-only architecture-independent data [PREFIX/share]
    665   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
    666   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
    667   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
    668   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
    669   --runstatedir=DIR       extra definition of runtime data [LOCALSTATEDIR/run]
    670   --libdir=DIR            object code libraries [EPREFIX/lib]
    671   --includedir=DIR        C header files [PREFIX/include]
    672   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
    673   --infodir=DIR           info documentation [DATAROOTDIR/info]
    674   --mandir=DIR            man documentation [DATAROOTDIR/man]
    675 EOF
    676 
    677   cat <<\EOF
    678 
    679 Program names:
    680   --program-prefix=PREFIX            prepend PREFIX to installed program names
    681   --program-suffix=SUFFIX            append SUFFIX to installed program names
    682   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
    683 
    684 X features:
    685   --x-includes=DIR    X include files are in DIR
    686   --x-libraries=DIR   X library files are in DIR
    687 
    688 System types:
    689   --build=BUILD           configure for building on BUILD [guessed]
    690   --host=HOST       build programs to run on HOST [BUILD]
    691 EOF
    692 fi
    693 
    694 if test -n "$ac_init_help"; then
    695 
    696   cat <<\EOF
    697 
    698 Optional Features:
    699   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    700   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    701 
    702 Optional Packages:
    703   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    704   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    705 
    706 Compile/Install Options:
    707   --disable-full-tgetent  disable check for full tgetent function
    708   --with-app-class=XXX    override X applications class (default XTerm)
    709   --with-app-defaults=DIR directory in which to install resource files (EPREFIX/lib/X11/app-defaults)
    710   --with-icon-name=XXXX   override icon name (default: mini.xterm)
    711   --with-icon-symlink=XXX make symbolic link for icon name (default: xterm)
    712   --with-pixmapdir=DIR    directory in which to install pixmaps (DATADIR/pixmaps)
    713   --with-icondir=DIR      directory in which to install icons for desktop
    714   --with-icon-theme=XXX   install icons into desktop theme (hicolor)
    715   --disable-desktop       disable install of xterm desktop files
    716   --with-desktop-category=XXX  one or more desktop catgories or auto
    717   --with-reference=XXX    program to use as permissions-reference
    718   --with-xterm-symlink=XXX make symbolic link to installed xterm
    719   --disable-openpty       disable openpty, prefer other interfaces
    720   --disable-setuid        disable setuid in xterm, do not install setuid/setgid
    721   --disable-setgid        disable setgid in xterm, do not install setuid/setgid
    722   --with-setuid=XXX       use the given setuid user
    723   --with-utmp-setgid=XXX  use setgid to match utmp/utmpx file
    724   --with-utempter         use utempter library for access to utmp
    725   --with-tty-group=XXX    use XXX for the tty-group
    726   --with-x                use the X Window System
    727   --with-pkg-config{=path} enable/disable use of pkg-config
    728   --with-xpm=DIR          use Xpm library for colored icon, may specify path
    729   --without-xinerama      do not use Xinerama extension for multiscreen support
    730   --with-Xaw3d            link with Xaw 3d library
    731   --with-Xaw3dxft         link with Xaw 3d xft library
    732   --with-neXtaw           link with neXT Athena library
    733   --with-XawPlus          link with Athena-Plus library
    734   --disable-xcursor        disable cursorTheme resource
    735   --enable-narrowproto    enable narrow prototypes for X libraries
    736   --disable-imake         disable use of imake for definitions
    737   --with-man2html=XXX     use XXX rather than groff
    738 Terminal Configuration:
    739   --with-terminal-id=V    set default decTerminalID (default: vt420)
    740   --with-terminal-type=T  set default $TERM (default: xterm)
    741   --enable-backarrow-key  set default backarrowKey resource (default: true)
    742   --enable-backarrow-is-erase set default backarrowKeyIsErase resource (default: false)
    743   --enable-delete-is-del  set default deleteIsDEL resource (default: maybe)
    744   --enable-pty-erase      set default ptyInitialErase resource (default: maybe)
    745   --enable-alt-sends-esc  set default altSendsEscape resource (default: no)
    746   --enable-meta-sends-esc set default metaSendsEscape resource (default: no)
    747   --with-own-terminfo=P   set default $TERMINFO (default: from environment)
    748   --enable-env-terminfo   setenv $TERMINFO if --with-own-terminfo gives value
    749 Optional Features:
    750   --disable-active-icon   disable X11R6.3 active-icon feature
    751   --disable-ansi-color    disable ANSI color
    752   --disable-16-color      disable 16-color support
    753   --disable-256-color     disable 256-color support
    754   --disable-direct-color  disable direct-color support
    755   --disable-88-color      disable 88-color support
    756   --disable-blink-cursor  disable support for blinking cursor
    757   --enable-broken-osc     allow broken Linux OSC-strings
    758   --disable-broken-st     disallow broken string-terminators
    759   --enable-builtin-xpms   compile-in icon data
    760   --disable-c1-print      disallow -k8 option for printable 128-159
    761   --disable-bold-color    disable PC-style mapping of bold colors
    762   --disable-color-class   disable separate color class resources
    763   --disable-color-mode    disable default colorMode resource
    764   --disable-highlighting  disable support for color highlighting
    765   --disable-doublechars   disable support for double-size chars
    766   --disable-boxchars      disable fallback-support for box chars
    767   --enable-exec-xterm     enable "spawn-new-terminal" action
    768   --enable-double-buffer  enable double-buffering in default resources
    769   --disable-freetype      disable freetype library-support
    770   --with-freetype-config  configure script to use for FreeType
    771   --with-freetype-cflags  -D/-I options for compiling with FreeType
    772   --with-freetype-libs    -L/-l options to link FreeType
    773   --enable-hp-fkeys       enable support for HP-style function keys
    774   --enable-sco-fkeys      enable support for SCO-style function keys
    775   --disable-sun-fkeys     disable support for Sun-style function keys
    776   --disable-fifo-lines    disable FIFO-storage for saved-lines
    777   --disable-i18n          disable internationalization
    778   --disable-initial-erase disable setup for stty erase
    779   --disable-input-method  disable input-method
    780   --enable-load-vt-fonts  enable load-vt-fonts() action
    781   --enable-logging        enable logging
    782   --enable-logfile-exec   enable exec'd logfile filter
    783   --disable-maximize      disable actions for iconify/deiconify/maximize/restore
    784   --disable-num-lock      disable NumLock keypad support
    785   --disable-paste64       disable get/set base64 selection data
    786   --disable-pty-handshake disable pty-handshake support
    787   --enable-readline-mouse enable support for mouse in readline applications
    788   --disable-regex         disable regular-expression selections
    789   --with-pcre2            use PCRE2 for regular-expressions
    790   --with-pcre             use PCRE for regular-expressions
    791   --disable-rightbar      disable right-scrollbar support
    792   --disable-samename      disable check for redundant name-change
    793   --disable-selection-ops disable selection-action operations
    794   --disable-session-mgt   disable support for session management
    795   --disable-tcap-fkeys    disable termcap function-keys support
    796   --disable-tcap-query    disable compiled-in termcap-query support
    797   --disable-tek4014       disable tek4014 emulation
    798   --enable-toolbar        compile-in toolbar for pulldown menus
    799   --disable-vt52          disable VT52 emulation
    800   --disable-wide-attrs    disable wide-attribute support
    801   --disable-wide-chars    disable wide-character support
    802   --enable-16bit-chars    enable 16-bit character support
    803   --enable-mini-luit      enable mini-luit (built-in Latin9 support)
    804   --disable-luit          enable luit filter (Unicode translation)
    805   --enable-dabbrev        enable dynamic-abbreviation support
    806   --enable-dec-locator    enable DECterm Locator support
    807   --disable-screen-dumps  disable XHTML and SVG screen dumps
    808   --enable-regis-graphics enable ReGIS graphics support
    809   --disable-sixel-graphics disable sixel graphics support
    810   --disable-print-graphics disable screen dump to sixel support
    811   --disable-rectangles    disable VT420 rectangle support
    812   --disable-ziconbeep     disable -ziconbeep option
    813 Testing/development Options:
    814   --enable-trace          test: set to enable debugging traces
    815   --with-dmalloc          test: use Gray Watson's dmalloc library
    816   --with-dbmalloc         test: use Conor Cahill's dbmalloc library
    817   --with-valgrind         test: use valgrind
    818   --disable-leaks         test: free permanent memory, analyze leaks
    819   --disable-echo          do not display "compiling" commands
    820   --enable-xmc-glitch     test: enable xmc magic-cookie emulation
    821   --enable-warnings       test: turn on gcc compiler warnings
    822   --enable-stdnoreturn    enable C11 _Noreturn feature for diagnostics
    823   --disable-rpath-hack    don't add rpath options for additional libraries
    824 
    825 Some influential environment variables:
    826   CC          C compiler command
    827   CFLAGS      C compiler flags
    828   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    829               nonstandard directory <lib dir>
    830   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    831               headers in a nonstandard directory <include dir>
    832   CPP         C preprocessor
    833 
    834 Use these variables to override the choices made by `configure' or to help
    835 it to find libraries and programs with nonstandard names/locations.
    836 
    837 EOF
    838 fi
    839 
    840 if test "$ac_init_help" = "recursive"; then
    841   # If there are subdirs, report their specific --help.
    842   ac_popdir=`pwd`
    843   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
    844     cd "$ac_subdir"
    845     # A "../" for each directory in /$ac_subdir.
    846     ac_dots=`echo "$ac_subdir" |
    847              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    848 
    849     case "$srcdir" in
    850     .) # No --srcdir option.  We are building in place.
    851       ac_sub_srcdir="$srcdir" ;;
    852     [\\/]* | ?:[\\/]* ) # Absolute path.
    853       ac_sub_srcdir="$srcdir/$ac_subdir" ;;
    854     *) # Relative path.
    855       ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;;
    856     esac
    857 
    858     # Check for guested configure; otherwise get Cygnus style configure.
    859     if test -f "$ac_sub_srcdir/configure.gnu"; then
    860       echo
    861       $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
    862     elif test -f "$ac_sub_srcdir/configure"; then
    863       echo
    864       $SHELL "$ac_sub_srcdir/configure" --help=recursive
    865     elif test -f "$ac_sub_srcdir/configure.ac" ||
    866            test -f "$ac_sub_srcdir/configure.in"; then
    867       echo
    868       "$ac_configure" --help
    869     else
    870       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
    871     fi
    872     cd "$ac_popdir"
    873   done
    874 fi
    875 
    876 test -n "$ac_init_help" && exit 0
    877 if "$ac_init_version"; then
    878   cat <<\EOF
    879 
    880 Copyright 2003-2020,2021	Thomas E. Dickey
    881 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    882 Free Software Foundation, Inc.
    883 This configure script is free software; the Free Software Foundation
    884 gives unlimited permission to copy, distribute and modify it.
    885 EOF
    886   exit 0
    887 fi
    888 exec 5>config.log
    889 cat >&5 <<EOF
    890 This file contains any messages produced by compilers while
    891 running configure, to aid debugging if configure makes a mistake.
    892 
    893 It was created by $as_me, which was
    894 generated by GNU Autoconf 2.52.20210509.  Invocation command line was
    895 
    896   $ $0 $@
    897 
    898 EOF
    899 {
    900 cat <<_ASUNAME
    901 ## ---------- ##
    902 ## Platform.  ##
    903 ## ---------- ##
    904 
    905 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
    906 uname -m = `(uname -m) 2>/dev/null || echo unknown`
    907 uname -r = `(uname -r) 2>/dev/null || echo unknown`
    908 uname -s = `(uname -s) 2>/dev/null || echo unknown`
    909 uname -v = `(uname -v) 2>/dev/null || echo unknown`
    910 
    911 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
    912 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
    913 
    914 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
    915 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
    916 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
    917 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
    918 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
    919 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
    920 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
    921 
    922 PATH = $PATH
    923 
    924 _ASUNAME
    925 } >&5
    926 
    927 cat >&5 <<EOF
    928 ## ------------ ##
    929 ## Core tests.  ##
    930 ## ------------ ##
    931 
    932 EOF
    933 
    934 # Keep a trace of the command line.
    935 # Strip out --no-create and --no-recursion so they do not pile up.
    936 # Also quote any args containing shell meta-characters.
    937 ac_configure_args=
    938 ac_sep=
    939 for ac_arg
    940 do
    941   case "$ac_arg" in
    942   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    943   | --no-cr | --no-c) ;;
    944   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    945   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
    946   *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    947     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
    948     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    949     ac_sep=" " ;;
    950   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
    951      ac_sep=" " ;;
    952   esac
    953   # Get rid of the leading space.
    954 done
    955 
    956 # When interrupted or exit'd, cleanup temporary files, and complete
    957 # config.log.  We remove comments because anyway the quotes in there
    958 # would cause problems or look ugly.
    959 trap 'exit_status=$?
    960   # Save into config.log some information that might help in debugging.
    961   echo >&5
    962   echo "## ----------------- ##" >&5
    963   echo "## Cache variables.  ##" >&5
    964   echo "## ----------------- ##" >&5
    965   echo >&5
    966   # The following way of writing the cache mishandles newlines in values,
    967 {
    968   (set) 2>&1 |
    969     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    970     *ac_space=\ *)
    971       sed -n \
    972         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    973     	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
    974       ;;
    975     *)
    976       sed -n \
    977         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    978       ;;
    979     esac;
    980 } >&5
    981   sed "/^$/d" confdefs.h >conftest.log
    982   if test -s conftest.log; then
    983     echo >&5
    984     echo "## ------------ ##" >&5
    985     echo "## confdefs.h.  ##" >&5
    986     echo "## ------------ ##" >&5
    987     echo >&5
    988     cat conftest.log >&5
    989   fi
    990   (echo; echo) >&5
    991   test "$ac_signal" != 0 &&
    992     echo "$as_me: caught signal $ac_signal" >&5
    993   echo "$as_me: exit $exit_status" >&5
    994   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
    995     exit $exit_status
    996      ' 0
    997 for ac_signal in 1 2 13 15; do
    998   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal"
    999 done
   1000 ac_signal=0
   1001 
   1002 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   1003 rm -rf conftest* confdefs.h
   1004 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
   1005 echo >confdefs.h
   1006 
   1007 # Let the site file select an alternate cache file if it wants to.
   1008 # Prefer explicitly selected file to automatically selected ones.
   1009 if test -z "$CONFIG_SITE"; then
   1010   if test "x$prefix" != xNONE; then
   1011     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
   1012   else
   1013     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
   1014   fi
   1015 fi
   1016 for ac_site_file in $CONFIG_SITE; do
   1017   if test -r "$ac_site_file"; then
   1018     { echo "$as_me:1018: loading site script $ac_site_file" >&5
   1019 echo "$as_me: loading site script $ac_site_file" >&6;}
   1020     cat "$ac_site_file" >&5
   1021     . "$ac_site_file"
   1022   fi
   1023 done
   1024 
   1025 if test -r "$cache_file"; then
   1026   # Some versions of bash will fail to source /dev/null (special
   1027   # files actually), so we avoid doing that.
   1028   if test -f "$cache_file"; then
   1029     { echo "$as_me:1029: loading cache $cache_file" >&5
   1030 echo "$as_me: loading cache $cache_file" >&6;}
   1031     case $cache_file in
   1032       [\\/]* | ?:[\\/]* ) . $cache_file;;
   1033       *)                      . ./$cache_file;;
   1034     esac
   1035   fi
   1036 else
   1037   { echo "$as_me:1037: creating cache $cache_file" >&5
   1038 echo "$as_me: creating cache $cache_file" >&6;}
   1039   >$cache_file
   1040 fi
   1041 
   1042 # Check that the precious variables saved in the cache have kept the same
   1043 # value.
   1044 ac_cache_corrupted=false
   1045 for ac_var in `(set) 2>&1 |
   1046                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
   1047   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   1048   eval ac_new_set=\$ac_env_${ac_var}_set
   1049   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
   1050   eval ac_new_val="\$ac_env_${ac_var}_value"
   1051   case "$ac_old_set,$ac_new_set" in
   1052     set,)
   1053       { echo "$as_me:1053: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   1054 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   1055       ac_cache_corrupted=: ;;
   1056     ,set)
   1057       { echo "$as_me:1057: error: \`$ac_var' was not set in the previous run" >&5
   1058 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   1059       ac_cache_corrupted=: ;;
   1060     ,);;
   1061     *)
   1062       if test "x$ac_old_val" != "x$ac_new_val"; then
   1063         { echo "$as_me:1063: error: \`$ac_var' has changed since the previous run:" >&5
   1064 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   1065         { echo "$as_me:1065:   former value:  $ac_old_val" >&5
   1066 echo "$as_me:   former value:  $ac_old_val" >&2;}
   1067         { echo "$as_me:1067:   current value: $ac_new_val" >&5
   1068 echo "$as_me:   current value: $ac_new_val" >&2;}
   1069         ac_cache_corrupted=:
   1070       fi;;
   1071   esac
   1072   # Pass precious variables to config.status.  It doesn't matter if
   1073   # we pass some twice (in addition to the command line arguments).
   1074   if test "$ac_new_set" = set; then
   1075     case "$ac_new_val" in
   1076     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
   1077       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
   1078       ac_configure_args="$ac_configure_args '$ac_arg'"
   1079       ;;
   1080     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
   1081        ;;
   1082     esac
   1083   fi
   1084 done
   1085 if "$ac_cache_corrupted"; then
   1086   { echo "$as_me:1086: error: changes in the environment can compromise the build" >&5
   1087 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   1088   { { echo "$as_me:1088: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
   1089 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   1090    { (exit 1); exit 1; }; }
   1091 fi
   1092 
   1093 ac_ext=c
   1094 ac_cpp='$CPP $CPPFLAGS'
   1095 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
   1096 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
   1097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1098 ac_main_return="return"
   1099 
   1100 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
   1101   *c*,-n*) ECHO_N=
   1102            ECHO_C=      # newlines do not sed ;-) only broken shells would use this case anyway
   1103            ECHO_T='	'
   1104            ;;
   1105   *c*,*  ) ECHO_N=-n
   1106            ECHO_C=
   1107            ECHO_T=
   1108            ;;
   1109   *)       ECHO_N=
   1110            ECHO_C='\c'
   1111            ECHO_T=
   1112            ;;
   1113 esac
   1114 echo "#! $SHELL" >conftest.sh
   1115 echo  "exit 0"   >>conftest.sh
   1116 chmod +x conftest.sh
   1117 if { (echo "$as_me:1117: PATH=\".;.\"; conftest.sh") >&5
   1118   (PATH=".;."; conftest.sh) 2>&5
   1119   ac_status=$?
   1120   echo "$as_me:1120: \$? = $ac_status" >&5
   1121   (exit "$ac_status"); }; then
   1122   ac_path_separator=';'
   1123 else
   1124   ac_path_separator=:
   1125 fi
   1126 PATH_SEPARATOR="$ac_path_separator"
   1127 rm -f conftest.sh
   1128 
   1129 ac_config_headers="$ac_config_headers xtermcfg.h:xtermcfg.hin"
   1130 
   1131 ac_aux_dir=
   1132 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
   1133   if test -f "$ac_dir/install-sh"; then
   1134     ac_aux_dir=$ac_dir
   1135     ac_install_sh="$ac_aux_dir/install-sh -c"
   1136     break
   1137   elif test -f "$ac_dir/install.sh"; then
   1138     ac_aux_dir=$ac_dir
   1139     ac_install_sh="$ac_aux_dir/install.sh -c"
   1140     break
   1141   elif test -f "$ac_dir/shtool"; then
   1142     ac_aux_dir=$ac_dir
   1143     ac_install_sh="$ac_aux_dir/shtool install -c"
   1144     break
   1145   fi
   1146 done
   1147 if test -z "$ac_aux_dir"; then
   1148   { { echo "$as_me:1148: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
   1149 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
   1150    { (exit 1); exit 1; }; }
   1151 fi
   1152 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
   1153 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
   1154 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
   1155 
   1156 # Make sure we can run config.sub.
   1157 $ac_config_sub sun4 >/dev/null 2>&1 ||
   1158   { { echo "$as_me:1158: error: cannot run $ac_config_sub" >&5
   1159 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
   1160    { (exit 1); exit 1; }; }
   1161 
   1162 echo "$as_me:1162: checking build system type" >&5
   1163 echo $ECHO_N "checking build system type... $ECHO_C" >&6
   1164 if test "${ac_cv_build+set}" = set; then
   1165   echo $ECHO_N "(cached) $ECHO_C" >&6
   1166 else
   1167   ac_cv_build_alias=$build_alias
   1168 test -z "$ac_cv_build_alias" &&
   1169   ac_cv_build_alias=`$ac_config_guess`
   1170 test -z "$ac_cv_build_alias" &&
   1171   { { echo "$as_me:1171: error: cannot guess build type; you must specify one" >&5
   1172 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   1173    { (exit 1); exit 1; }; }
   1174 ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
   1175   { { echo "$as_me:1175: error: $ac_config_sub $ac_cv_build_alias failed." >&5
   1176 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
   1177    { (exit 1); exit 1; }; }
   1178 
   1179 fi
   1180 echo "$as_me:1180: result: $ac_cv_build" >&5
   1181 echo "${ECHO_T}$ac_cv_build" >&6
   1182 build=$ac_cv_build
   1183 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
   1184 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
   1185 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   1186 
   1187 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
   1188 	echo "$as_me:1188: checking host system type" >&5
   1189 echo $ECHO_N "checking host system type... $ECHO_C" >&6
   1190 if test "${ac_cv_host+set}" = set; then
   1191   echo $ECHO_N "(cached) $ECHO_C" >&6
   1192 else
   1193   ac_cv_host_alias=$host_alias
   1194 test -z "$ac_cv_host_alias" &&
   1195   ac_cv_host_alias=$ac_cv_build_alias
   1196 ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
   1197   { { echo "$as_me:1197: error: $ac_config_sub $ac_cv_host_alias failed" >&5
   1198 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
   1199    { (exit 1); exit 1; }; }
   1200 
   1201 fi
   1202 echo "$as_me:1202: result: $ac_cv_host" >&5
   1203 echo "${ECHO_T}$ac_cv_host" >&6
   1204 host=$ac_cv_host
   1205 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
   1206 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
   1207 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   1208 
   1209 	system_name="$host_os"
   1210 else
   1211 	system_name="`(uname -s -r) 2>/dev/null`"
   1212 	if test -z "$system_name" ; then
   1213 		system_name="`(hostname) 2>/dev/null`"
   1214 	fi
   1215 fi
   1216 test -n "$system_name" &&
   1217 cat >>confdefs.h <<EOF
   1218 #define SYSTEM_NAME "$system_name"
   1219 EOF
   1220 
   1221 if test "${cf_cv_system_name+set}" = set; then
   1222   echo $ECHO_N "(cached) $ECHO_C" >&6
   1223 else
   1224   cf_cv_system_name="$system_name"
   1225 fi
   1226 
   1227 test -z "$system_name" && system_name="$cf_cv_system_name"
   1228 test -n "$cf_cv_system_name" && echo "$as_me:1228: result: Configuring for $cf_cv_system_name" >&5
   1229 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
   1230 
   1231 if test ".$system_name" != ".$cf_cv_system_name" ; then
   1232 	echo "$as_me:1232: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
   1233 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
   1234 	{ { echo "$as_me:1234: error: \"Please remove config.cache and try again.\"" >&5
   1235 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
   1236    { (exit 1); exit 1; }; }
   1237 fi
   1238 
   1239 ###	checks for alternative programs
   1240 
   1241 case "$host_os" in
   1242 (openedition)	: "${CFLAGS=\"-O2 -Wc,dll -Wl,EDIT=NO\"}"
   1243 		: "${CPPFLAGS=\"-D_ALL_SOURCE\"}"
   1244 		: "${LIBS=\"/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x\"}"
   1245 		: "${CC=c89}";;
   1246 (darwin*)
   1247 		: "${LDFLAGS}=\"${LDFLAGS} -Wl,-bind_at_load\"";;
   1248 esac
   1249 
   1250 ac_ext=c
   1251 ac_cpp='$CPP $CPPFLAGS'
   1252 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
   1253 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
   1254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1255 ac_main_return="return"
   1256 if test -n "$ac_tool_prefix"; then
   1257   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   1258 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   1259 echo "$as_me:1259: checking for $ac_word" >&5
   1260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1261 if test "${ac_cv_prog_CC+set}" = set; then
   1262   echo $ECHO_N "(cached) $ECHO_C" >&6
   1263 else
   1264   if test -n "$CC"; then
   1265   ac_cv_prog_CC="$CC" # Let the user override the test.
   1266 else
   1267   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1268 ac_dummy="$PATH"
   1269 for ac_dir in $ac_dummy; do
   1270   IFS=$ac_save_IFS
   1271   test -z "$ac_dir" && ac_dir=.
   1272   $as_executable_p "$ac_dir/$ac_word" || continue
   1273 ac_cv_prog_CC="${ac_tool_prefix}gcc"
   1274 echo "$as_me:1274: found $ac_dir/$ac_word" >&5
   1275 break
   1276 done
   1277 
   1278 fi
   1279 fi
   1280 CC=$ac_cv_prog_CC
   1281 if test -n "$CC"; then
   1282   echo "$as_me:1282: result: $CC" >&5
   1283 echo "${ECHO_T}$CC" >&6
   1284 else
   1285   echo "$as_me:1285: result: no" >&5
   1286 echo "${ECHO_T}no" >&6
   1287 fi
   1288 
   1289 fi
   1290 if test -z "$ac_cv_prog_CC"; then
   1291   ac_ct_CC=$CC
   1292   # Extract the first word of "gcc", so it can be a program name with args.
   1293 set dummy gcc; ac_word=$2
   1294 echo "$as_me:1294: checking for $ac_word" >&5
   1295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1296 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1297   echo $ECHO_N "(cached) $ECHO_C" >&6
   1298 else
   1299   if test -n "$ac_ct_CC"; then
   1300   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1301 else
   1302   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1303 ac_dummy="$PATH"
   1304 for ac_dir in $ac_dummy; do
   1305   IFS=$ac_save_IFS
   1306   test -z "$ac_dir" && ac_dir=.
   1307   $as_executable_p "$ac_dir/$ac_word" || continue
   1308 ac_cv_prog_ac_ct_CC="gcc"
   1309 echo "$as_me:1309: found $ac_dir/$ac_word" >&5
   1310 break
   1311 done
   1312 
   1313 fi
   1314 fi
   1315 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1316 if test -n "$ac_ct_CC"; then
   1317   echo "$as_me:1317: result: $ac_ct_CC" >&5
   1318 echo "${ECHO_T}$ac_ct_CC" >&6
   1319 else
   1320   echo "$as_me:1320: result: no" >&5
   1321 echo "${ECHO_T}no" >&6
   1322 fi
   1323 
   1324   CC=$ac_ct_CC
   1325 else
   1326   CC="$ac_cv_prog_CC"
   1327 fi
   1328 
   1329 if test -z "$CC"; then
   1330   if test -n "$ac_tool_prefix"; then
   1331   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   1332 set dummy ${ac_tool_prefix}cc; ac_word=$2
   1333 echo "$as_me:1333: checking for $ac_word" >&5
   1334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1335 if test "${ac_cv_prog_CC+set}" = set; then
   1336   echo $ECHO_N "(cached) $ECHO_C" >&6
   1337 else
   1338   if test -n "$CC"; then
   1339   ac_cv_prog_CC="$CC" # Let the user override the test.
   1340 else
   1341   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1342 ac_dummy="$PATH"
   1343 for ac_dir in $ac_dummy; do
   1344   IFS=$ac_save_IFS
   1345   test -z "$ac_dir" && ac_dir=.
   1346   $as_executable_p "$ac_dir/$ac_word" || continue
   1347 ac_cv_prog_CC="${ac_tool_prefix}cc"
   1348 echo "$as_me:1348: found $ac_dir/$ac_word" >&5
   1349 break
   1350 done
   1351 
   1352 fi
   1353 fi
   1354 CC=$ac_cv_prog_CC
   1355 if test -n "$CC"; then
   1356   echo "$as_me:1356: result: $CC" >&5
   1357 echo "${ECHO_T}$CC" >&6
   1358 else
   1359   echo "$as_me:1359: result: no" >&5
   1360 echo "${ECHO_T}no" >&6
   1361 fi
   1362 
   1363 fi
   1364 if test -z "$ac_cv_prog_CC"; then
   1365   ac_ct_CC=$CC
   1366   # Extract the first word of "cc", so it can be a program name with args.
   1367 set dummy cc; ac_word=$2
   1368 echo "$as_me:1368: checking for $ac_word" >&5
   1369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1370 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1371   echo $ECHO_N "(cached) $ECHO_C" >&6
   1372 else
   1373   if test -n "$ac_ct_CC"; then
   1374   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1375 else
   1376   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1377 ac_dummy="$PATH"
   1378 for ac_dir in $ac_dummy; do
   1379   IFS=$ac_save_IFS
   1380   test -z "$ac_dir" && ac_dir=.
   1381   $as_executable_p "$ac_dir/$ac_word" || continue
   1382 ac_cv_prog_ac_ct_CC="cc"
   1383 echo "$as_me:1383: found $ac_dir/$ac_word" >&5
   1384 break
   1385 done
   1386 
   1387 fi
   1388 fi
   1389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1390 if test -n "$ac_ct_CC"; then
   1391   echo "$as_me:1391: result: $ac_ct_CC" >&5
   1392 echo "${ECHO_T}$ac_ct_CC" >&6
   1393 else
   1394   echo "$as_me:1394: result: no" >&5
   1395 echo "${ECHO_T}no" >&6
   1396 fi
   1397 
   1398   CC=$ac_ct_CC
   1399 else
   1400   CC="$ac_cv_prog_CC"
   1401 fi
   1402 
   1403 fi
   1404 if test -z "$CC"; then
   1405   # Extract the first word of "cc", so it can be a program name with args.
   1406 set dummy cc; ac_word=$2
   1407 echo "$as_me:1407: checking for $ac_word" >&5
   1408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1409 if test "${ac_cv_prog_CC+set}" = set; then
   1410   echo $ECHO_N "(cached) $ECHO_C" >&6
   1411 else
   1412   if test -n "$CC"; then
   1413   ac_cv_prog_CC="$CC" # Let the user override the test.
   1414 else
   1415   ac_prog_rejected=no
   1416   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1417 ac_dummy="$PATH"
   1418 for ac_dir in $ac_dummy; do
   1419   IFS=$ac_save_IFS
   1420   test -z "$ac_dir" && ac_dir=.
   1421   $as_executable_p "$ac_dir/$ac_word" || continue
   1422 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
   1423   ac_prog_rejected=yes
   1424   continue
   1425 fi
   1426 ac_cv_prog_CC="cc"
   1427 echo "$as_me:1427: found $ac_dir/$ac_word" >&5
   1428 break
   1429 done
   1430 
   1431 if test "$ac_prog_rejected" = yes; then
   1432   # We found a bogon in the path, so make sure we never use it.
   1433   set dummy $ac_cv_prog_CC
   1434   shift
   1435   if test $# != 0; then
   1436     # We chose a different compiler from the bogus one.
   1437     # However, it has the same basename, so the bogon will be chosen
   1438     # first if we set CC to just the basename; use the full file name.
   1439     shift
   1440     set dummy "$ac_dir/$ac_word" ${1+"$@"}
   1441     shift
   1442     ac_cv_prog_CC="$@"
   1443   fi
   1444 fi
   1445 fi
   1446 fi
   1447 CC=$ac_cv_prog_CC
   1448 if test -n "$CC"; then
   1449   echo "$as_me:1449: result: $CC" >&5
   1450 echo "${ECHO_T}$CC" >&6
   1451 else
   1452   echo "$as_me:1452: result: no" >&5
   1453 echo "${ECHO_T}no" >&6
   1454 fi
   1455 
   1456 fi
   1457 if test -z "$CC"; then
   1458   if test -n "$ac_tool_prefix"; then
   1459   for ac_prog in cl
   1460   do
   1461     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   1462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   1463 echo "$as_me:1463: checking for $ac_word" >&5
   1464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1465 if test "${ac_cv_prog_CC+set}" = set; then
   1466   echo $ECHO_N "(cached) $ECHO_C" >&6
   1467 else
   1468   if test -n "$CC"; then
   1469   ac_cv_prog_CC="$CC" # Let the user override the test.
   1470 else
   1471   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1472 ac_dummy="$PATH"
   1473 for ac_dir in $ac_dummy; do
   1474   IFS=$ac_save_IFS
   1475   test -z "$ac_dir" && ac_dir=.
   1476   $as_executable_p "$ac_dir/$ac_word" || continue
   1477 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   1478 echo "$as_me:1478: found $ac_dir/$ac_word" >&5
   1479 break
   1480 done
   1481 
   1482 fi
   1483 fi
   1484 CC=$ac_cv_prog_CC
   1485 if test -n "$CC"; then
   1486   echo "$as_me:1486: result: $CC" >&5
   1487 echo "${ECHO_T}$CC" >&6
   1488 else
   1489   echo "$as_me:1489: result: no" >&5
   1490 echo "${ECHO_T}no" >&6
   1491 fi
   1492 
   1493     test -n "$CC" && break
   1494   done
   1495 fi
   1496 if test -z "$CC"; then
   1497   ac_ct_CC=$CC
   1498   for ac_prog in cl
   1499 do
   1500   # Extract the first word of "$ac_prog", so it can be a program name with args.
   1501 set dummy $ac_prog; ac_word=$2
   1502 echo "$as_me:1502: checking for $ac_word" >&5
   1503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1505   echo $ECHO_N "(cached) $ECHO_C" >&6
   1506 else
   1507   if test -n "$ac_ct_CC"; then
   1508   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1509 else
   1510   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1511 ac_dummy="$PATH"
   1512 for ac_dir in $ac_dummy; do
   1513   IFS=$ac_save_IFS
   1514   test -z "$ac_dir" && ac_dir=.
   1515   $as_executable_p "$ac_dir/$ac_word" || continue
   1516 ac_cv_prog_ac_ct_CC="$ac_prog"
   1517 echo "$as_me:1517: found $ac_dir/$ac_word" >&5
   1518 break
   1519 done
   1520 
   1521 fi
   1522 fi
   1523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1524 if test -n "$ac_ct_CC"; then
   1525   echo "$as_me:1525: result: $ac_ct_CC" >&5
   1526 echo "${ECHO_T}$ac_ct_CC" >&6
   1527 else
   1528   echo "$as_me:1528: result: no" >&5
   1529 echo "${ECHO_T}no" >&6
   1530 fi
   1531 
   1532   test -n "$ac_ct_CC" && break
   1533 done
   1534 
   1535   CC=$ac_ct_CC
   1536 fi
   1537 
   1538 fi
   1539 
   1540 test -z "$CC" && { { echo "$as_me:1540: error: no acceptable cc found in \$PATH" >&5
   1541 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
   1542    { (exit 1); exit 1; }; }
   1543 
   1544 # Provide some information about the compiler.
   1545 echo "$as_me:1545:" \
   1546      "checking for C compiler version" >&5
   1547 ac_compiler=`set X $ac_compile; echo "$2"`
   1548 { (eval echo "$as_me:1548: \"$ac_compiler --version </dev/null >&5\"") >&5
   1549   (eval $ac_compiler --version </dev/null >&5) 2>&5
   1550   ac_status=$?
   1551   echo "$as_me:1551: \$? = $ac_status" >&5
   1552   (exit "$ac_status"); }
   1553 { (eval echo "$as_me:1553: \"$ac_compiler -v </dev/null >&5\"") >&5
   1554   (eval $ac_compiler -v </dev/null >&5) 2>&5
   1555   ac_status=$?
   1556   echo "$as_me:1556: \$? = $ac_status" >&5
   1557   (exit "$ac_status"); }
   1558 { (eval echo "$as_me:1558: \"$ac_compiler -V </dev/null >&5\"") >&5
   1559   (eval $ac_compiler -V </dev/null >&5) 2>&5
   1560   ac_status=$?
   1561   echo "$as_me:1561: \$? = $ac_status" >&5
   1562   (exit "$ac_status"); }
   1563 
   1564 cat >"conftest.$ac_ext" <<_ACEOF
   1565 #line 1565 "configure"
   1566 #include "confdefs.h"
   1567 
   1568 int
   1569 main (void)
   1570 {
   1571 
   1572   ;
   1573   return 0;
   1574 }
   1575 _ACEOF
   1576 ac_clean_files_save=$ac_clean_files
   1577 ac_clean_files="$ac_clean_files a.out a.exe"
   1578 # Try to create an executable without -o first, disregard a.out.
   1579 # It will help us diagnose broken compilers, and finding out an intuition
   1580 # of exeext.
   1581 echo "$as_me:1581: checking for C compiler default output" >&5
   1582 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
   1583 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
   1584 if { (eval echo "$as_me:1584: \"$ac_link_default\"") >&5
   1585   (eval $ac_link_default) 2>&5
   1586   ac_status=$?
   1587   echo "$as_me:1587: \$? = $ac_status" >&5
   1588   (exit "$ac_status"); }; then
   1589   # Find the output, starting from the most likely.  This scheme is
   1590 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
   1591 # resort.
   1592 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
   1593                 ls a.out conftest 2>/dev/null;
   1594                 ls a.* conftest.* 2>/dev/null`; do
   1595   case $ac_file in
   1596     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   1597     a.out ) # We found the default executable, but exeext='' is most
   1598             # certainly right.
   1599             break;;
   1600     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   1601           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
   1602           export ac_cv_exeext
   1603           break;;
   1604     * ) break;;
   1605   esac
   1606 done
   1607 else
   1608   echo "$as_me: failed program was:" >&5
   1609 cat "conftest.$ac_ext" >&5
   1610 { { echo "$as_me:1610: error: C compiler cannot create executables" >&5
   1611 echo "$as_me: error: C compiler cannot create executables" >&2;}
   1612    { (exit 77); exit 77; }; }
   1613 fi
   1614 
   1615 ac_exeext=$ac_cv_exeext
   1616 echo "$as_me:1616: result: $ac_file" >&5
   1617 echo "${ECHO_T}$ac_file" >&6
   1618 
   1619 # Check the compiler produces executables we can run.  If not, either
   1620 # the compiler is broken, or we cross compile.
   1621 echo "$as_me:1621: checking whether the C compiler works" >&5
   1622 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
   1623 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
   1624 # If not cross compiling, check that we can run a simple program.
   1625 if test "$cross_compiling" != yes; then
   1626   if { ac_try='./$ac_file'
   1627   { (eval echo "$as_me:1627: \"$ac_try\"") >&5
   1628   (eval $ac_try) 2>&5
   1629   ac_status=$?
   1630   echo "$as_me:1630: \$? = $ac_status" >&5
   1631   (exit "$ac_status"); }; }; then
   1632     cross_compiling=no
   1633   else
   1634     if test "$cross_compiling" = maybe; then
   1635 	cross_compiling=yes
   1636     else
   1637 	{ { echo "$as_me:1637: error: cannot run C compiled programs.
   1638 If you meant to cross compile, use \`--host'." >&5
   1639 echo "$as_me: error: cannot run C compiled programs.
   1640 If you meant to cross compile, use \`--host'." >&2;}
   1641    { (exit 1); exit 1; }; }
   1642     fi
   1643   fi
   1644 fi
   1645 echo "$as_me:1645: result: yes" >&5
   1646 echo "${ECHO_T}yes" >&6
   1647 
   1648 rm -f a.out a.exe "conftest$ac_cv_exeext"
   1649 ac_clean_files=$ac_clean_files_save
   1650 # Check the compiler produces executables we can run.  If not, either
   1651 # the compiler is broken, or we cross compile.
   1652 echo "$as_me:1652: checking whether we are cross compiling" >&5
   1653 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
   1654 echo "$as_me:1654: result: $cross_compiling" >&5
   1655 echo "${ECHO_T}$cross_compiling" >&6
   1656 
   1657 echo "$as_me:1657: checking for executable suffix" >&5
   1658 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
   1659 if { (eval echo "$as_me:1659: \"$ac_link\"") >&5
   1660   (eval $ac_link) 2>&5
   1661   ac_status=$?
   1662   echo "$as_me:1662: \$? = $ac_status" >&5
   1663   (exit "$ac_status"); }; then
   1664   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   1665 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   1666 # work properly (i.e., refer to `conftest.exe'), while it won't with
   1667 # `rm'.
   1668 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
   1669   case $ac_file in
   1670     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   1671     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   1672           export ac_cv_exeext
   1673           break;;
   1674     * ) break;;
   1675   esac
   1676 done
   1677 else
   1678   { { echo "$as_me:1678: error: cannot compute EXEEXT: cannot compile and link" >&5
   1679 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
   1680    { (exit 1); exit 1; }; }
   1681 fi
   1682 
   1683 rm -f "conftest$ac_cv_exeext"
   1684 echo "$as_me:1684: result: $ac_cv_exeext" >&5
   1685 echo "${ECHO_T}$ac_cv_exeext" >&6
   1686 
   1687 rm -f "conftest.$ac_ext"
   1688 EXEEXT=$ac_cv_exeext
   1689 ac_exeext=$EXEEXT
   1690 echo "$as_me:1690: checking for object suffix" >&5
   1691 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
   1692 if test "${ac_cv_objext+set}" = set; then
   1693   echo $ECHO_N "(cached) $ECHO_C" >&6
   1694 else
   1695   cat >"conftest.$ac_ext" <<_ACEOF
   1696 #line 1696 "configure"
   1697 #include "confdefs.h"
   1698 
   1699 int
   1700 main (void)
   1701 {
   1702 
   1703   ;
   1704   return 0;
   1705 }
   1706 _ACEOF
   1707 rm -f conftest.o conftest.obj
   1708 if { (eval echo "$as_me:1708: \"$ac_compile\"") >&5
   1709   (eval $ac_compile) 2>&5
   1710   ac_status=$?
   1711   echo "$as_me:1711: \$? = $ac_status" >&5
   1712   (exit "$ac_status"); }; then
   1713   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
   1714   case $ac_file in
   1715     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
   1716     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   1717        break;;
   1718   esac
   1719 done
   1720 else
   1721   echo "$as_me: failed program was:" >&5
   1722 cat "conftest.$ac_ext" >&5
   1723 { { echo "$as_me:1723: error: cannot compute OBJEXT: cannot compile" >&5
   1724 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
   1725    { (exit 1); exit 1; }; }
   1726 fi
   1727 
   1728 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
   1729 fi
   1730 echo "$as_me:1730: result: $ac_cv_objext" >&5
   1731 echo "${ECHO_T}$ac_cv_objext" >&6
   1732 OBJEXT=$ac_cv_objext
   1733 ac_objext=$OBJEXT
   1734 echo "$as_me:1734: checking whether we are using the GNU C compiler" >&5
   1735 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
   1736 if test "${ac_cv_c_compiler_gnu+set}" = set; then
   1737   echo $ECHO_N "(cached) $ECHO_C" >&6
   1738 else
   1739   cat >"conftest.$ac_ext" <<_ACEOF
   1740 #line 1740 "configure"
   1741 #include "confdefs.h"
   1742 
   1743 int
   1744 main (void)
   1745 {
   1746 #ifndef __GNUC__
   1747        choke me
   1748 #endif
   1749 
   1750   ;
   1751   return 0;
   1752 }
   1753 _ACEOF
   1754 rm -f "conftest.$ac_objext"
   1755 if { (eval echo "$as_me:1755: \"$ac_compile\"") >&5
   1756   (eval $ac_compile) 2>&5
   1757   ac_status=$?
   1758   echo "$as_me:1758: \$? = $ac_status" >&5
   1759   (exit "$ac_status"); } &&
   1760          { ac_try='test -s "conftest.$ac_objext"'
   1761   { (eval echo "$as_me:1761: \"$ac_try\"") >&5
   1762   (eval $ac_try) 2>&5
   1763   ac_status=$?
   1764   echo "$as_me:1764: \$? = $ac_status" >&5
   1765   (exit "$ac_status"); }; }; then
   1766   ac_compiler_gnu=yes
   1767 else
   1768   echo "$as_me: failed program was:" >&5
   1769 cat "conftest.$ac_ext" >&5
   1770 ac_compiler_gnu=no
   1771 fi
   1772 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   1773 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   1774 
   1775 fi
   1776 echo "$as_me:1776: result: $ac_cv_c_compiler_gnu" >&5
   1777 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
   1778 GCC=`test $ac_compiler_gnu = yes && echo yes`
   1779 ac_test_CFLAGS=${CFLAGS+set}
   1780 ac_save_CFLAGS=$CFLAGS
   1781 CFLAGS="-g"
   1782 echo "$as_me:1782: checking whether $CC accepts -g" >&5
   1783 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
   1784 if test "${ac_cv_prog_cc_g+set}" = set; then
   1785   echo $ECHO_N "(cached) $ECHO_C" >&6
   1786 else
   1787   cat >"conftest.$ac_ext" <<_ACEOF
   1788 #line 1788 "configure"
   1789 #include "confdefs.h"
   1790 
   1791 int
   1792 main (void)
   1793 {
   1794 
   1795   ;
   1796   return 0;
   1797 }
   1798 _ACEOF
   1799 rm -f "conftest.$ac_objext"
   1800 if { (eval echo "$as_me:1800: \"$ac_compile\"") >&5
   1801   (eval $ac_compile) 2>&5
   1802   ac_status=$?
   1803   echo "$as_me:1803: \$? = $ac_status" >&5
   1804   (exit "$ac_status"); } &&
   1805          { ac_try='test -s "conftest.$ac_objext"'
   1806   { (eval echo "$as_me:1806: \"$ac_try\"") >&5
   1807   (eval $ac_try) 2>&5
   1808   ac_status=$?
   1809   echo "$as_me:1809: \$? = $ac_status" >&5
   1810   (exit "$ac_status"); }; }; then
   1811   ac_cv_prog_cc_g=yes
   1812 else
   1813   echo "$as_me: failed program was:" >&5
   1814 cat "conftest.$ac_ext" >&5
   1815 ac_cv_prog_cc_g=no
   1816 fi
   1817 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   1818 fi
   1819 echo "$as_me:1819: result: $ac_cv_prog_cc_g" >&5
   1820 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
   1821 if test "$ac_test_CFLAGS" = set; then
   1822   CFLAGS=$ac_save_CFLAGS
   1823 elif test $ac_cv_prog_cc_g = yes; then
   1824   if test "$GCC" = yes; then
   1825     CFLAGS="-g -O2"
   1826   else
   1827     CFLAGS="-g"
   1828   fi
   1829 else
   1830   if test "$GCC" = yes; then
   1831     CFLAGS="-O2"
   1832   else
   1833     CFLAGS=
   1834   fi
   1835 fi
   1836 # Some people use a C++ compiler to compile C.  Since we use `exit',
   1837 # in C++ we need to declare it.  In case someone uses the same compiler
   1838 # for both compiling C and C++ we need to have the C++ compiler decide
   1839 # the declaration of exit, since it's the most demanding environment.
   1840 cat >"conftest.$ac_ext" <<_ACEOF
   1841 #ifndef __cplusplus
   1842   choke me
   1843 #endif
   1844 _ACEOF
   1845 rm -f "conftest.$ac_objext"
   1846 if { (eval echo "$as_me:1846: \"$ac_compile\"") >&5
   1847   (eval $ac_compile) 2>&5
   1848   ac_status=$?
   1849   echo "$as_me:1849: \$? = $ac_status" >&5
   1850   (exit "$ac_status"); } &&
   1851          { ac_try='test -s "conftest.$ac_objext"'
   1852   { (eval echo "$as_me:1852: \"$ac_try\"") >&5
   1853   (eval $ac_try) 2>&5
   1854   ac_status=$?
   1855   echo "$as_me:1855: \$? = $ac_status" >&5
   1856   (exit "$ac_status"); }; }; then
   1857   for ac_declaration in \
   1858    ''\
   1859    '#include <stdlib.h>' \
   1860    'extern "C" void std::exit (int) throw (); using std::exit;' \
   1861    'extern "C" void std::exit (int); using std::exit;' \
   1862    'extern "C" void exit (int) throw ();' \
   1863    'extern "C" void exit (int);' \
   1864    'void exit (int);'
   1865 do
   1866   cat >"conftest.$ac_ext" <<_ACEOF
   1867 #line 1867 "configure"
   1868 #include "confdefs.h"
   1869 #include <stdlib.h>
   1870 $ac_declaration
   1871 int
   1872 main (void)
   1873 {
   1874 exit (42);
   1875   ;
   1876   return 0;
   1877 }
   1878 _ACEOF
   1879 rm -f "conftest.$ac_objext"
   1880 if { (eval echo "$as_me:1880: \"$ac_compile\"") >&5
   1881   (eval $ac_compile) 2>&5
   1882   ac_status=$?
   1883   echo "$as_me:1883: \$? = $ac_status" >&5
   1884   (exit "$ac_status"); } &&
   1885          { ac_try='test -s "conftest.$ac_objext"'
   1886   { (eval echo "$as_me:1886: \"$ac_try\"") >&5
   1887   (eval $ac_try) 2>&5
   1888   ac_status=$?
   1889   echo "$as_me:1889: \$? = $ac_status" >&5
   1890   (exit "$ac_status"); }; }; then
   1891   :
   1892 else
   1893   echo "$as_me: failed program was:" >&5
   1894 cat "conftest.$ac_ext" >&5
   1895 continue
   1896 fi
   1897 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   1898   cat >"conftest.$ac_ext" <<_ACEOF
   1899 #line 1899 "configure"
   1900 #include "confdefs.h"
   1901 $ac_declaration
   1902 int
   1903 main (void)
   1904 {
   1905 exit (42);
   1906   ;
   1907   return 0;
   1908 }
   1909 _ACEOF
   1910 rm -f "conftest.$ac_objext"
   1911 if { (eval echo "$as_me:1911: \"$ac_compile\"") >&5
   1912   (eval $ac_compile) 2>&5
   1913   ac_status=$?
   1914   echo "$as_me:1914: \$? = $ac_status" >&5
   1915   (exit "$ac_status"); } &&
   1916          { ac_try='test -s "conftest.$ac_objext"'
   1917   { (eval echo "$as_me:1917: \"$ac_try\"") >&5
   1918   (eval $ac_try) 2>&5
   1919   ac_status=$?
   1920   echo "$as_me:1920: \$? = $ac_status" >&5
   1921   (exit "$ac_status"); }; }; then
   1922   break
   1923 else
   1924   echo "$as_me: failed program was:" >&5
   1925 cat "conftest.$ac_ext" >&5
   1926 fi
   1927 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   1928 done
   1929 rm -rf conftest*
   1930 if test -n "$ac_declaration"; then
   1931   echo '#ifdef __cplusplus' >>confdefs.h
   1932   echo "$ac_declaration"    >>confdefs.h
   1933   echo '#endif'             >>confdefs.h
   1934 fi
   1935 
   1936 else
   1937   echo "$as_me: failed program was:" >&5
   1938 cat "conftest.$ac_ext" >&5
   1939 fi
   1940 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   1941 ac_ext=c
   1942 ac_cpp='$CPP $CPPFLAGS'
   1943 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
   1944 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
   1945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1946 ac_main_return="return"
   1947 
   1948 GCC_VERSION=none
   1949 if test "$GCC" = yes ; then
   1950 	echo "$as_me:1950: checking version of $CC" >&5
   1951 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
   1952 	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.].*//'`"
   1953 	test -z "$GCC_VERSION" && GCC_VERSION=unknown
   1954 	echo "$as_me:1954: result: $GCC_VERSION" >&5
   1955 echo "${ECHO_T}$GCC_VERSION" >&6
   1956 fi
   1957 
   1958 INTEL_COMPILER=no
   1959 
   1960 if test "$GCC" = yes ; then
   1961 	case "$host_os" in
   1962 	(linux*|gnu*)
   1963 		echo "$as_me:1963: checking if this is really Intel C compiler" >&5
   1964 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
   1965 		cf_save_CFLAGS="$CFLAGS"
   1966 		CFLAGS="$CFLAGS -no-gcc"
   1967 		cat >"conftest.$ac_ext" <<_ACEOF
   1968 #line 1968 "configure"
   1969 #include "confdefs.h"
   1970 
   1971 int
   1972 main (void)
   1973 {
   1974 
   1975 #ifdef __INTEL_COMPILER
   1976 #else
   1977 make an error
   1978 #endif
   1979 
   1980   ;
   1981   return 0;
   1982 }
   1983 _ACEOF
   1984 rm -f "conftest.$ac_objext"
   1985 if { (eval echo "$as_me:1985: \"$ac_compile\"") >&5
   1986   (eval $ac_compile) 2>&5
   1987   ac_status=$?
   1988   echo "$as_me:1988: \$? = $ac_status" >&5
   1989   (exit "$ac_status"); } &&
   1990          { ac_try='test -s "conftest.$ac_objext"'
   1991   { (eval echo "$as_me:1991: \"$ac_try\"") >&5
   1992   (eval $ac_try) 2>&5
   1993   ac_status=$?
   1994   echo "$as_me:1994: \$? = $ac_status" >&5
   1995   (exit "$ac_status"); }; }; then
   1996   INTEL_COMPILER=yes
   1997 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
   1998 
   1999 else
   2000   echo "$as_me: failed program was:" >&5
   2001 cat "conftest.$ac_ext" >&5
   2002 fi
   2003 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   2004 		CFLAGS="$cf_save_CFLAGS"
   2005 		echo "$as_me:2005: result: $INTEL_COMPILER" >&5
   2006 echo "${ECHO_T}$INTEL_COMPILER" >&6
   2007 		;;
   2008 	esac
   2009 fi
   2010 
   2011 CLANG_COMPILER=no
   2012 
   2013 if test "$GCC" = yes ; then
   2014 	echo "$as_me:2014: checking if this is really Clang C compiler" >&5
   2015 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
   2016 	cf_save_CFLAGS="$CFLAGS"
   2017 	cat >"conftest.$ac_ext" <<_ACEOF
   2018 #line 2018 "configure"
   2019 #include "confdefs.h"
   2020 
   2021 int
   2022 main (void)
   2023 {
   2024 
   2025 #ifdef __clang__
   2026 #else
   2027 make an error
   2028 #endif
   2029 
   2030   ;
   2031   return 0;
   2032 }
   2033 _ACEOF
   2034 rm -f "conftest.$ac_objext"
   2035 if { (eval echo "$as_me:2035: \"$ac_compile\"") >&5
   2036   (eval $ac_compile) 2>&5
   2037   ac_status=$?
   2038   echo "$as_me:2038: \$? = $ac_status" >&5
   2039   (exit "$ac_status"); } &&
   2040          { ac_try='test -s "conftest.$ac_objext"'
   2041   { (eval echo "$as_me:2041: \"$ac_try\"") >&5
   2042   (eval $ac_try) 2>&5
   2043   ac_status=$?
   2044   echo "$as_me:2044: \$? = $ac_status" >&5
   2045   (exit "$ac_status"); }; }; then
   2046   CLANG_COMPILER=yes
   2047 
   2048 else
   2049   echo "$as_me: failed program was:" >&5
   2050 cat "conftest.$ac_ext" >&5
   2051 fi
   2052 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   2053 	CFLAGS="$cf_save_CFLAGS"
   2054 	echo "$as_me:2054: result: $CLANG_COMPILER" >&5
   2055 echo "${ECHO_T}$CLANG_COMPILER" >&6
   2056 fi
   2057 
   2058 CLANG_VERSION=none
   2059 
   2060 if test "x$CLANG_COMPILER" = "xyes" ; then
   2061 	case "$CC" in
   2062 	(c[1-9][0-9]|*/c[1-9][0-9])
   2063 		{ echo "$as_me:2063: WARNING: replacing broken compiler alias $CC" >&5
   2064 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
   2065 		CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
   2066 		CC=clang
   2067 		;;
   2068 	esac
   2069 
   2070 	echo "$as_me:2070: checking version of $CC" >&5
   2071 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
   2072 	CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
   2073 	test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
   2074 	echo "$as_me:2074: result: $CLANG_VERSION" >&5
   2075 echo "${ECHO_T}$CLANG_VERSION" >&6
   2076 
   2077 	for cf_clang_opt in \
   2078 		-Qunused-arguments \
   2079 		-Wno-error=implicit-function-declaration
   2080 	do
   2081 		echo "$as_me:2081: checking if option $cf_clang_opt works" >&5
   2082 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
   2083 		cf_save_CFLAGS="$CFLAGS"
   2084 		CFLAGS="$CFLAGS $cf_clang_opt"
   2085 		cat >"conftest.$ac_ext" <<_ACEOF
   2086 #line 2086 "configure"
   2087 #include "confdefs.h"
   2088 
   2089 			#include <stdio.h>
   2090 int
   2091 main (void)
   2092 {
   2093 
   2094 			printf("hello!\\n");
   2095   ;
   2096   return 0;
   2097 }
   2098 _ACEOF
   2099 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   2100 if { (eval echo "$as_me:2100: \"$ac_link\"") >&5
   2101   (eval $ac_link) 2>&5
   2102   ac_status=$?
   2103   echo "$as_me:2103: \$? = $ac_status" >&5
   2104   (exit "$ac_status"); } &&
   2105          { ac_try='test -s "conftest$ac_exeext"'
   2106   { (eval echo "$as_me:2106: \"$ac_try\"") >&5
   2107   (eval $ac_try) 2>&5
   2108   ac_status=$?
   2109   echo "$as_me:2109: \$? = $ac_status" >&5
   2110   (exit "$ac_status"); }; }; then
   2111 
   2112 			cf_clang_optok=yes
   2113 else
   2114   echo "$as_me: failed program was:" >&5
   2115 cat "conftest.$ac_ext" >&5
   2116 
   2117 			cf_clang_optok=no
   2118 fi
   2119 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   2120 		echo "$as_me:2120: result: $cf_clang_optok" >&5
   2121 echo "${ECHO_T}$cf_clang_optok" >&6
   2122 		CFLAGS="$cf_save_CFLAGS"
   2123 		if test "$cf_clang_optok" = yes; then
   2124 			test -n "$verbose" && echo "	adding option $cf_clang_opt" 1>&6
   2125 
   2126 echo "${as_me:-configure}:2126: testing adding option $cf_clang_opt ..." 1>&5
   2127 
   2128 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   2129 	CFLAGS="${CFLAGS}$cf_clang_opt"
   2130 
   2131 		fi
   2132 	done
   2133 fi
   2134 
   2135 echo "$as_me:2135: checking for $CC option to accept ANSI C" >&5
   2136 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
   2137 if test "${ac_cv_prog_cc_stdc+set}" = set; then
   2138   echo $ECHO_N "(cached) $ECHO_C" >&6
   2139 else
   2140   ac_cv_prog_cc_stdc=no
   2141 ac_save_CC=$CC
   2142 cat >"conftest.$ac_ext" <<_ACEOF
   2143 #line 2143 "configure"
   2144 #include "confdefs.h"
   2145 #include <stdarg.h>
   2146 #include <stdio.h>
   2147 #include <sys/types.h>
   2148 #include <sys/stat.h>
   2149 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   2150 struct buf { int x; };
   2151 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   2152 static char *e (p, i)
   2153      char **p;
   2154      int i;
   2155 {
   2156   return p[i];
   2157 }
   2158 static char *f (char * (*g) (char **, int), char **p, ...)
   2159 {
   2160   char *s;
   2161   va_list v;
   2162   va_start (v,p);
   2163   s = g (p, va_arg (v,int));
   2164   va_end (v);
   2165   return s;
   2166 }
   2167 int test (int i, double x);
   2168 struct s1 {int (*f) (int a);};
   2169 struct s2 {int (*f) (double a);};
   2170 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   2171 int argc;
   2172 char **argv;
   2173 int
   2174 main (void)
   2175 {
   2176 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   2177   ;
   2178   return 0;
   2179 }
   2180 _ACEOF
   2181 # Don't try gcc -ansi; that turns off useful extensions and
   2182 # breaks some systems' header files.
   2183 # AIX			-qlanglvl=ansi
   2184 # Ultrix and OSF/1	-std1
   2185 # HP-UX 10.20 and later	-Ae
   2186 # HP-UX older versions	-Aa -D_HPUX_SOURCE
   2187 # SVR4			-Xc -D__EXTENSIONS__
   2188 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   2189 do
   2190   CC="$ac_save_CC $ac_arg"
   2191   rm -f "conftest.$ac_objext"
   2192 if { (eval echo "$as_me:2192: \"$ac_compile\"") >&5
   2193   (eval $ac_compile) 2>&5
   2194   ac_status=$?
   2195   echo "$as_me:2195: \$? = $ac_status" >&5
   2196   (exit "$ac_status"); } &&
   2197          { ac_try='test -s "conftest.$ac_objext"'
   2198   { (eval echo "$as_me:2198: \"$ac_try\"") >&5
   2199   (eval $ac_try) 2>&5
   2200   ac_status=$?
   2201   echo "$as_me:2201: \$? = $ac_status" >&5
   2202   (exit "$ac_status"); }; }; then
   2203   ac_cv_prog_cc_stdc=$ac_arg
   2204 break
   2205 else
   2206   echo "$as_me: failed program was:" >&5
   2207 cat "conftest.$ac_ext" >&5
   2208 fi
   2209 rm -f "conftest.$ac_objext"
   2210 done
   2211 rm -f "conftest.$ac_ext" "conftest.$ac_objext"
   2212 CC=$ac_save_CC
   2213 
   2214 fi
   2215 
   2216 case "x$ac_cv_prog_cc_stdc" in
   2217   x|xno)
   2218     echo "$as_me:2218: result: none needed" >&5
   2219 echo "${ECHO_T}none needed" >&6 ;;
   2220   *)
   2221     echo "$as_me:2221: result: $ac_cv_prog_cc_stdc" >&5
   2222 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
   2223     CC="$CC $ac_cv_prog_cc_stdc" ;;
   2224 esac
   2225 
   2226 # This should have been defined by AC_PROG_CC
   2227 : "${CC:=cc}"
   2228 
   2229 echo "$as_me:2229: checking \$CFLAGS variable" >&5
   2230 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
   2231 case "x$CFLAGS" in
   2232 (*-[IUD]*)
   2233 	echo "$as_me:2233: result: broken" >&5
   2234 echo "${ECHO_T}broken" >&6
   2235 	{ echo "$as_me:2235: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
   2236 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
   2237 	cf_flags="$CFLAGS"
   2238 	CFLAGS=
   2239 	for cf_arg in $cf_flags
   2240 	do
   2241 
   2242 cf_fix_cppflags=no
   2243 cf_new_cflags=
   2244 cf_new_cppflags=
   2245 cf_new_extra_cppflags=
   2246 
   2247 for cf_add_cflags in $cf_arg
   2248 do
   2249 case "$cf_fix_cppflags" in
   2250 (no)
   2251 	case "$cf_add_cflags" in
   2252 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   2253 		case "$cf_add_cflags" in
   2254 		(-D*)
   2255 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   2256 
   2257 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   2258 				&& test -z "${cf_tst_cflags}" \
   2259 				&& cf_fix_cppflags=yes
   2260 
   2261 			if test "$cf_fix_cppflags" = yes ; then
   2262 
   2263 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2264 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2265 
   2266 				continue
   2267 			elif test "${cf_tst_cflags}" = "\"'" ; then
   2268 
   2269 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2270 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2271 
   2272 				continue
   2273 			fi
   2274 			;;
   2275 		esac
   2276 		case "$CPPFLAGS" in
   2277 		(*$cf_add_cflags)
   2278 			;;
   2279 		(*)
   2280 			case "$cf_add_cflags" in
   2281 			(-D*)
   2282 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   2283 
   2284 CPPFLAGS=`echo "$CPPFLAGS" | \
   2285 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   2286 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   2287 
   2288 				;;
   2289 			esac
   2290 
   2291 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   2292 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   2293 
   2294 			;;
   2295 		esac
   2296 		;;
   2297 	(*)
   2298 
   2299 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   2300 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   2301 
   2302 		;;
   2303 	esac
   2304 	;;
   2305 (yes)
   2306 
   2307 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2308 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2309 
   2310 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   2311 
   2312 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   2313 		&& test -z "${cf_tst_cflags}" \
   2314 		&& cf_fix_cppflags=no
   2315 	;;
   2316 esac
   2317 done
   2318 
   2319 if test -n "$cf_new_cflags" ; then
   2320 
   2321 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   2322 	CFLAGS="${CFLAGS}$cf_new_cflags"
   2323 
   2324 fi
   2325 
   2326 if test -n "$cf_new_cppflags" ; then
   2327 
   2328 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   2329 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   2330 
   2331 fi
   2332 
   2333 if test -n "$cf_new_extra_cppflags" ; then
   2334 
   2335 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   2336 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   2337 
   2338 fi
   2339 
   2340 	done
   2341 	;;
   2342 (*)
   2343 	echo "$as_me:2343: result: ok" >&5
   2344 echo "${ECHO_T}ok" >&6
   2345 	;;
   2346 esac
   2347 
   2348 echo "$as_me:2348: checking \$CC variable" >&5
   2349 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
   2350 case "$CC" in
   2351 (*[\ \	]-*)
   2352 	echo "$as_me:2352: result: broken" >&5
   2353 echo "${ECHO_T}broken" >&6
   2354 	{ echo "$as_me:2354: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
   2355 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
   2356 	# humor him...
   2357 	cf_prog=`echo "$CC" | sed -e 's/	/ /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
   2358 	cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
   2359 	CC="$cf_prog"
   2360 	for cf_arg in $cf_flags
   2361 	do
   2362 		case "x$cf_arg" in
   2363 		(x-[IUDfgOW]*)
   2364 
   2365 cf_fix_cppflags=no
   2366 cf_new_cflags=
   2367 cf_new_cppflags=
   2368 cf_new_extra_cppflags=
   2369 
   2370 for cf_add_cflags in $cf_arg
   2371 do
   2372 case "$cf_fix_cppflags" in
   2373 (no)
   2374 	case "$cf_add_cflags" in
   2375 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   2376 		case "$cf_add_cflags" in
   2377 		(-D*)
   2378 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   2379 
   2380 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   2381 				&& test -z "${cf_tst_cflags}" \
   2382 				&& cf_fix_cppflags=yes
   2383 
   2384 			if test "$cf_fix_cppflags" = yes ; then
   2385 
   2386 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2387 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2388 
   2389 				continue
   2390 			elif test "${cf_tst_cflags}" = "\"'" ; then
   2391 
   2392 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2393 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2394 
   2395 				continue
   2396 			fi
   2397 			;;
   2398 		esac
   2399 		case "$CPPFLAGS" in
   2400 		(*$cf_add_cflags)
   2401 			;;
   2402 		(*)
   2403 			case "$cf_add_cflags" in
   2404 			(-D*)
   2405 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   2406 
   2407 CPPFLAGS=`echo "$CPPFLAGS" | \
   2408 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   2409 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   2410 
   2411 				;;
   2412 			esac
   2413 
   2414 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   2415 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   2416 
   2417 			;;
   2418 		esac
   2419 		;;
   2420 	(*)
   2421 
   2422 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   2423 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   2424 
   2425 		;;
   2426 	esac
   2427 	;;
   2428 (yes)
   2429 
   2430 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2431 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2432 
   2433 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   2434 
   2435 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   2436 		&& test -z "${cf_tst_cflags}" \
   2437 		&& cf_fix_cppflags=no
   2438 	;;
   2439 esac
   2440 done
   2441 
   2442 if test -n "$cf_new_cflags" ; then
   2443 
   2444 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   2445 	CFLAGS="${CFLAGS}$cf_new_cflags"
   2446 
   2447 fi
   2448 
   2449 if test -n "$cf_new_cppflags" ; then
   2450 
   2451 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   2452 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   2453 
   2454 fi
   2455 
   2456 if test -n "$cf_new_extra_cppflags" ; then
   2457 
   2458 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   2459 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   2460 
   2461 fi
   2462 
   2463 			;;
   2464 		(*)
   2465 			CC="$CC $cf_arg"
   2466 			;;
   2467 		esac
   2468 	done
   2469 	test -n "$verbose" && echo "	resulting CC: '$CC'" 1>&6
   2470 
   2471 echo "${as_me:-configure}:2471: testing resulting CC: '$CC' ..." 1>&5
   2472 
   2473 	test -n "$verbose" && echo "	resulting CFLAGS: '$CFLAGS'" 1>&6
   2474 
   2475 echo "${as_me:-configure}:2475: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
   2476 
   2477 	test -n "$verbose" && echo "	resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
   2478 
   2479 echo "${as_me:-configure}:2479: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
   2480 
   2481 	;;
   2482 (*)
   2483 	echo "$as_me:2483: result: ok" >&5
   2484 echo "${ECHO_T}ok" >&6
   2485 	;;
   2486 esac
   2487 
   2488 for ac_prog in ggrep grep
   2489 do
   2490   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2491 set dummy $ac_prog; ac_word=$2
   2492 echo "$as_me:2492: checking for $ac_word" >&5
   2493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2494 if test "${ac_cv_prog_GREP+set}" = set; then
   2495   echo $ECHO_N "(cached) $ECHO_C" >&6
   2496 else
   2497   if test -n "$GREP"; then
   2498   ac_cv_prog_GREP="$GREP" # Let the user override the test.
   2499 else
   2500   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2501 ac_dummy="$PATH"
   2502 for ac_dir in $ac_dummy; do
   2503   IFS=$ac_save_IFS
   2504   test -z "$ac_dir" && ac_dir=.
   2505   $as_executable_p "$ac_dir/$ac_word" || continue
   2506 ac_cv_prog_GREP="$ac_prog"
   2507 echo "$as_me:2507: found $ac_dir/$ac_word" >&5
   2508 break
   2509 done
   2510 
   2511 fi
   2512 fi
   2513 GREP=$ac_cv_prog_GREP
   2514 if test -n "$GREP"; then
   2515   echo "$as_me:2515: result: $GREP" >&5
   2516 echo "${ECHO_T}$GREP" >&6
   2517 else
   2518   echo "$as_me:2518: result: no" >&5
   2519 echo "${ECHO_T}no" >&6
   2520 fi
   2521 
   2522   test -n "$GREP" && break
   2523 done
   2524 test -n "$GREP" || GREP=": "
   2525 
   2526 echo "$as_me:2526: checking for egrep" >&5
   2527 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
   2528 if test "${ac_cv_path_EGREP+set}" = set; then
   2529   echo $ECHO_N "(cached) $ECHO_C" >&6
   2530 else
   2531   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   2532    then ac_cv_path_EGREP="$GREP -E"
   2533    else
   2534      for ac_prog in gegrep egrep
   2535 do
   2536   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2537 set dummy $ac_prog; ac_word=$2
   2538 echo "$as_me:2538: checking for $ac_word" >&5
   2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2540 if test "${ac_cv_path_EGREP+set}" = set; then
   2541   echo $ECHO_N "(cached) $ECHO_C" >&6
   2542 else
   2543   case $EGREP in
   2544   [\\/]* | ?:[\\/]*)
   2545   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
   2546   ;;
   2547   *)
   2548   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2549 ac_dummy="$PATH"
   2550 for ac_dir in $ac_dummy; do
   2551   IFS=$ac_save_IFS
   2552   test -z "$ac_dir" && ac_dir=.
   2553   if $as_executable_p "$ac_dir/$ac_word"; then
   2554    ac_cv_path_EGREP="$ac_dir/$ac_word"
   2555    echo "$as_me:2555: found $ac_dir/$ac_word" >&5
   2556    break
   2557 fi
   2558 done
   2559 
   2560   ;;
   2561 esac
   2562 fi
   2563 EGREP=$ac_cv_path_EGREP
   2564 
   2565 if test -n "$EGREP"; then
   2566   echo "$as_me:2566: result: $EGREP" >&5
   2567 echo "${ECHO_T}$EGREP" >&6
   2568 else
   2569   echo "$as_me:2569: result: no" >&5
   2570 echo "${ECHO_T}no" >&6
   2571 fi
   2572 
   2573   test -n "$EGREP" && break
   2574 done
   2575 test -n "$EGREP" || EGREP=": "
   2576 
   2577      test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:2577: error: cannot find workable egrep" >&5
   2578 echo "$as_me: error: cannot find workable egrep" >&2;}
   2579    { (exit 1); exit 1; }; }
   2580    fi
   2581 fi
   2582 echo "$as_me:2582: result: $ac_cv_path_EGREP" >&5
   2583 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
   2584  EGREP="$ac_cv_path_EGREP"
   2585 
   2586 ac_ext=c
   2587 ac_cpp='$CPP $CPPFLAGS'
   2588 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
   2589 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
   2590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2591 ac_main_return="return"
   2592 echo "$as_me:2592: checking how to run the C preprocessor" >&5
   2593 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
   2594 # On Suns, sometimes $CPP names a directory.
   2595 if test -n "$CPP" && test -d "$CPP"; then
   2596   CPP=
   2597 fi
   2598 if test -z "$CPP"; then
   2599   if test "${ac_cv_prog_CPP+set}" = set; then
   2600   echo $ECHO_N "(cached) $ECHO_C" >&6
   2601 else
   2602       # Double quotes because CPP needs to be expanded
   2603     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   2604     do
   2605       ac_preproc_ok=false
   2606 for ac_c_preproc_warn_flag in '' yes
   2607 do
   2608   # Use a header file that comes with gcc, so configuring glibc
   2609   # with a fresh cross-compiler works.
   2610   # On the NeXT, cc -E runs the code through the compiler's parser,
   2611   # not just through cpp. "Syntax error" is here to catch this case.
   2612   cat >"conftest.$ac_ext" <<_ACEOF
   2613 #line 2613 "configure"
   2614 #include "confdefs.h"
   2615 #include <assert.h>
   2616                      Syntax error
   2617 _ACEOF
   2618 if { (eval echo "$as_me:2618: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   2619   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   2620   ac_status=$?
   2621   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   2622   rm -f conftest.er1
   2623   cat conftest.err >&5
   2624   echo "$as_me:2624: \$? = $ac_status" >&5
   2625   (exit "$ac_status"); } >/dev/null; then
   2626   if test -s conftest.err; then
   2627     ac_cpp_err=$ac_c_preproc_warn_flag
   2628   else
   2629     ac_cpp_err=
   2630   fi
   2631 else
   2632   ac_cpp_err=yes
   2633 fi
   2634 if test -z "$ac_cpp_err"; then
   2635   :
   2636 else
   2637   echo "$as_me: failed program was:" >&5
   2638   cat "conftest.$ac_ext" >&5
   2639   # Broken: fails on valid input.
   2640 continue
   2641 fi
   2642 rm -f conftest.err "conftest.$ac_ext"
   2643 
   2644   # OK, works on sane cases.  Now check whether non-existent headers
   2645   # can be detected and how.
   2646   cat >"conftest.$ac_ext" <<_ACEOF
   2647 #line 2647 "configure"
   2648 #include "confdefs.h"
   2649 #include <ac_nonexistent.h>
   2650 _ACEOF
   2651 if { (eval echo "$as_me:2651: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   2652   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   2653   ac_status=$?
   2654   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   2655   rm -f conftest.er1
   2656   cat conftest.err >&5
   2657   echo "$as_me:2657: \$? = $ac_status" >&5
   2658   (exit "$ac_status"); } >/dev/null; then
   2659   if test -s conftest.err; then
   2660     ac_cpp_err=$ac_c_preproc_warn_flag
   2661   else
   2662     ac_cpp_err=
   2663   fi
   2664 else
   2665   ac_cpp_err=yes
   2666 fi
   2667 if test -z "$ac_cpp_err"; then
   2668   # Broken: success on invalid input.
   2669 continue
   2670 else
   2671   echo "$as_me: failed program was:" >&5
   2672   cat "conftest.$ac_ext" >&5
   2673   # Passes both tests.
   2674 ac_preproc_ok=:
   2675 break
   2676 fi
   2677 rm -f conftest.err "conftest.$ac_ext"
   2678 
   2679 done
   2680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   2681 rm -f conftest.err "conftest.$ac_ext"
   2682 if $ac_preproc_ok; then
   2683   break
   2684 fi
   2685 
   2686     done
   2687     ac_cv_prog_CPP=$CPP
   2688 
   2689 fi
   2690   CPP=$ac_cv_prog_CPP
   2691 else
   2692   ac_cv_prog_CPP=$CPP
   2693 fi
   2694 echo "$as_me:2694: result: $CPP" >&5
   2695 echo "${ECHO_T}$CPP" >&6
   2696 ac_preproc_ok=false
   2697 for ac_c_preproc_warn_flag in '' yes
   2698 do
   2699   # Use a header file that comes with gcc, so configuring glibc
   2700   # with a fresh cross-compiler works.
   2701   # On the NeXT, cc -E runs the code through the compiler's parser,
   2702   # not just through cpp. "Syntax error" is here to catch this case.
   2703   cat >"conftest.$ac_ext" <<_ACEOF
   2704 #line 2704 "configure"
   2705 #include "confdefs.h"
   2706 #include <assert.h>
   2707                      Syntax error
   2708 _ACEOF
   2709 if { (eval echo "$as_me:2709: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   2710   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   2711   ac_status=$?
   2712   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   2713   rm -f conftest.er1
   2714   cat conftest.err >&5
   2715   echo "$as_me:2715: \$? = $ac_status" >&5
   2716   (exit "$ac_status"); } >/dev/null; then
   2717   if test -s conftest.err; then
   2718     ac_cpp_err=$ac_c_preproc_warn_flag
   2719   else
   2720     ac_cpp_err=
   2721   fi
   2722 else
   2723   ac_cpp_err=yes
   2724 fi
   2725 if test -z "$ac_cpp_err"; then
   2726   :
   2727 else
   2728   echo "$as_me: failed program was:" >&5
   2729   cat "conftest.$ac_ext" >&5
   2730   # Broken: fails on valid input.
   2731 continue
   2732 fi
   2733 rm -f conftest.err "conftest.$ac_ext"
   2734 
   2735   # OK, works on sane cases.  Now check whether non-existent headers
   2736   # can be detected and how.
   2737   cat >"conftest.$ac_ext" <<_ACEOF
   2738 #line 2738 "configure"
   2739 #include "confdefs.h"
   2740 #include <ac_nonexistent.h>
   2741 _ACEOF
   2742 if { (eval echo "$as_me:2742: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   2743   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   2744   ac_status=$?
   2745   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   2746   rm -f conftest.er1
   2747   cat conftest.err >&5
   2748   echo "$as_me:2748: \$? = $ac_status" >&5
   2749   (exit "$ac_status"); } >/dev/null; then
   2750   if test -s conftest.err; then
   2751     ac_cpp_err=$ac_c_preproc_warn_flag
   2752   else
   2753     ac_cpp_err=
   2754   fi
   2755 else
   2756   ac_cpp_err=yes
   2757 fi
   2758 if test -z "$ac_cpp_err"; then
   2759   # Broken: success on invalid input.
   2760 continue
   2761 else
   2762   echo "$as_me: failed program was:" >&5
   2763   cat "conftest.$ac_ext" >&5
   2764   # Passes both tests.
   2765 ac_preproc_ok=:
   2766 break
   2767 fi
   2768 rm -f conftest.err "conftest.$ac_ext"
   2769 
   2770 done
   2771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   2772 rm -f conftest.err "conftest.$ac_ext"
   2773 if $ac_preproc_ok; then
   2774   :
   2775 else
   2776   { { echo "$as_me:2776: error: C preprocessor \"$CPP\" fails sanity check" >&5
   2777 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
   2778    { (exit 1); exit 1; }; }
   2779 fi
   2780 
   2781 ac_ext=c
   2782 ac_cpp='$CPP $CPPFLAGS'
   2783 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
   2784 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
   2785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2786 ac_main_return="return"
   2787 
   2788 for ac_prog in mawk gawk nawk awk
   2789 do
   2790   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2791 set dummy $ac_prog; ac_word=$2
   2792 echo "$as_me:2792: checking for $ac_word" >&5
   2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2794 if test "${ac_cv_prog_AWK+set}" = set; then
   2795   echo $ECHO_N "(cached) $ECHO_C" >&6
   2796 else
   2797   if test -n "$AWK"; then
   2798   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   2799 else
   2800   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2801 ac_dummy="$PATH"
   2802 for ac_dir in $ac_dummy; do
   2803   IFS=$ac_save_IFS
   2804   test -z "$ac_dir" && ac_dir=.
   2805   $as_executable_p "$ac_dir/$ac_word" || continue
   2806 ac_cv_prog_AWK="$ac_prog"
   2807 echo "$as_me:2807: found $ac_dir/$ac_word" >&5
   2808 break
   2809 done
   2810 
   2811 fi
   2812 fi
   2813 AWK=$ac_cv_prog_AWK
   2814 if test -n "$AWK"; then
   2815   echo "$as_me:2815: result: $AWK" >&5
   2816 echo "${ECHO_T}$AWK" >&6
   2817 else
   2818   echo "$as_me:2818: result: no" >&5
   2819 echo "${ECHO_T}no" >&6
   2820 fi
   2821 
   2822   test -n "$AWK" && break
   2823 done
   2824 
   2825 # Find a good install program.  We prefer a C program (faster),
   2826 # so one script is as good as another.  But avoid the broken or
   2827 # incompatible versions:
   2828 # SysV /etc/install, /usr/sbin/install
   2829 # SunOS /usr/etc/install
   2830 # IRIX /sbin/install
   2831 # AIX /bin/install
   2832 # AmigaOS /C/install, which installs bootblocks on floppy discs
   2833 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   2834 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   2835 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   2836 # ./install, which can be erroneously created by make from ./install.sh.
   2837 echo "$as_me:2837: checking for a BSD compatible install" >&5
   2838 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
   2839 if test -z "$INSTALL"; then
   2840 if test "${ac_cv_path_install+set}" = set; then
   2841   echo $ECHO_N "(cached) $ECHO_C" >&6
   2842 else
   2843     ac_save_IFS=$IFS; IFS=$ac_path_separator
   2844   for ac_dir in $PATH; do
   2845     IFS=$ac_save_IFS
   2846     # Account for people who put trailing slashes in PATH elements.
   2847     case $ac_dir/ in
   2848     / | ./ | .// | /cC/* \
   2849     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
   2850     | /usr/ucb/* ) ;;
   2851     *)
   2852       # OSF1 and SCO ODT 3.0 have their own names for install.
   2853       # Don't use installbsd from OSF since it installs stuff as root
   2854       # by default.
   2855       for ac_prog in ginstall scoinst install; do
   2856         if $as_executable_p "$ac_dir/$ac_prog"; then
   2857 	  if test $ac_prog = install &&
   2858             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
   2859 	    # AIX install.  It has an incompatible calling convention.
   2860 	    :
   2861 	  elif test $ac_prog = install &&
   2862 	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
   2863 	    # program-specific install script used by HP pwplus--don't use.
   2864 	    :
   2865 	  else
   2866 	    ac_cv_path_install="$ac_dir/$ac_prog -c"
   2867 	    break 2
   2868 	  fi
   2869 	fi
   2870       done
   2871       ;;
   2872     esac
   2873   done
   2874 
   2875 fi
   2876   if test "${ac_cv_path_install+set}" = set; then
   2877     INSTALL=$ac_cv_path_install
   2878   else
   2879     # As a last resort, use the slow shell script.  We don't cache a
   2880     # path for INSTALL within a source directory, because that will
   2881     # break other packages using the cache if that directory is
   2882     # removed, or if the path is relative.
   2883     INSTALL=$ac_install_sh
   2884   fi
   2885 fi
   2886 echo "$as_me:2886: result: $INSTALL" >&5
   2887 echo "${ECHO_T}$INSTALL" >&6
   2888 
   2889 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   2890 # It thinks the first close brace ends the variable substitution.
   2891 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   2892 
   2893 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   2894 
   2895 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   2896 
   2897 echo "$as_me:2897: checking whether ln -s works" >&5
   2898 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
   2899 LN_S=$as_ln_s
   2900 if test "$LN_S" = "ln -s"; then
   2901   echo "$as_me:2901: result: yes" >&5
   2902 echo "${ECHO_T}yes" >&6
   2903 else
   2904   echo "$as_me:2904: result: no, using $LN_S" >&5
   2905 echo "${ECHO_T}no, using $LN_S" >&6
   2906 fi
   2907 
   2908 test "$program_prefix" != NONE &&
   2909   program_transform_name="s,^,$program_prefix,;$program_transform_name"
   2910 # Use a double $ so make ignores it.
   2911 test "$program_suffix" != NONE &&
   2912   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
   2913 # Double any \ or $.  echo might interpret backslashes.
   2914 # By default was `s,x,x', remove it if useless.
   2915 cat <<\_ACEOF >conftest.sed
   2916 s/[\\$]/&&/g;s/;s,x,x,$//
   2917 _ACEOF
   2918 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
   2919 rm conftest.sed
   2920 
   2921 for ac_prog in lint cppcheck splint
   2922 do
   2923   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2924 set dummy $ac_prog; ac_word=$2
   2925 echo "$as_me:2925: checking for $ac_word" >&5
   2926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2927 if test "${ac_cv_prog_LINT+set}" = set; then
   2928   echo $ECHO_N "(cached) $ECHO_C" >&6
   2929 else
   2930   if test -n "$LINT"; then
   2931   ac_cv_prog_LINT="$LINT" # Let the user override the test.
   2932 else
   2933   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2934 ac_dummy="$PATH"
   2935 for ac_dir in $ac_dummy; do
   2936   IFS=$ac_save_IFS
   2937   test -z "$ac_dir" && ac_dir=.
   2938   $as_executable_p "$ac_dir/$ac_word" || continue
   2939 ac_cv_prog_LINT="$ac_prog"
   2940 echo "$as_me:2940: found $ac_dir/$ac_word" >&5
   2941 break
   2942 done
   2943 
   2944 fi
   2945 fi
   2946 LINT=$ac_cv_prog_LINT
   2947 if test -n "$LINT"; then
   2948   echo "$as_me:2948: result: $LINT" >&5
   2949 echo "${ECHO_T}$LINT" >&6
   2950 else
   2951   echo "$as_me:2951: result: no" >&5
   2952 echo "${ECHO_T}no" >&6
   2953 fi
   2954 
   2955   test -n "$LINT" && break
   2956 done
   2957 
   2958 case "x$LINT" in
   2959 (xcppcheck|x*/cppcheck)
   2960 	test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
   2961 	;;
   2962 esac
   2963 
   2964 ###	checks for compiler characteristics
   2965 
   2966 echo "$as_me:2966: checking if the POSIX test-macros are already defined" >&5
   2967 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
   2968 if test "${cf_cv_posix_visible+set}" = set; then
   2969   echo $ECHO_N "(cached) $ECHO_C" >&6
   2970 else
   2971 
   2972 cat >"conftest.$ac_ext" <<_ACEOF
   2973 #line 2973 "configure"
   2974 #include "confdefs.h"
   2975 #include <stdio.h>
   2976 int
   2977 main (void)
   2978 {
   2979 
   2980 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
   2981 	&& defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
   2982 	&& defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
   2983 	&& defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
   2984 #error conflicting symbols found
   2985 #endif
   2986 
   2987   ;
   2988   return 0;
   2989 }
   2990 _ACEOF
   2991 rm -f "conftest.$ac_objext"
   2992 if { (eval echo "$as_me:2992: \"$ac_compile\"") >&5
   2993   (eval $ac_compile) 2>&5
   2994   ac_status=$?
   2995   echo "$as_me:2995: \$? = $ac_status" >&5
   2996   (exit "$ac_status"); } &&
   2997          { ac_try='test -s "conftest.$ac_objext"'
   2998   { (eval echo "$as_me:2998: \"$ac_try\"") >&5
   2999   (eval $ac_try) 2>&5
   3000   ac_status=$?
   3001   echo "$as_me:3001: \$? = $ac_status" >&5
   3002   (exit "$ac_status"); }; }; then
   3003   cf_cv_posix_visible=no
   3004 else
   3005   echo "$as_me: failed program was:" >&5
   3006 cat "conftest.$ac_ext" >&5
   3007 cf_cv_posix_visible=yes
   3008 fi
   3009 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   3010 
   3011 fi
   3012 echo "$as_me:3012: result: $cf_cv_posix_visible" >&5
   3013 echo "${ECHO_T}$cf_cv_posix_visible" >&6
   3014 
   3015 if test "$cf_cv_posix_visible" = no; then
   3016 
   3017 cf_XOPEN_SOURCE=700
   3018 cf_POSIX_C_SOURCE=199506L
   3019 cf_xopen_source=
   3020 
   3021 case "$host_os" in
   3022 (aix[4-7]*)
   3023 	cf_xopen_source="-D_ALL_SOURCE"
   3024 	;;
   3025 (msys)
   3026 	cf_XOPEN_SOURCE=600
   3027 	;;
   3028 (darwin[0-8].*)
   3029 	cf_xopen_source="-D_APPLE_C_SOURCE"
   3030 	;;
   3031 (darwin*)
   3032 	cf_xopen_source="-D_DARWIN_C_SOURCE"
   3033 	cf_XOPEN_SOURCE=
   3034 	;;
   3035 (freebsd*|dragonfly*|midnightbsd*)
   3036 	# 5.x headers associate
   3037 	#	_XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
   3038 	#	_XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
   3039 	cf_POSIX_C_SOURCE=200112L
   3040 	cf_XOPEN_SOURCE=600
   3041 	cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
   3042 	;;
   3043 (hpux11*)
   3044 	cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
   3045 	;;
   3046 (hpux*)
   3047 	cf_xopen_source="-D_HPUX_SOURCE"
   3048 	;;
   3049 (irix[56].*)
   3050 	cf_xopen_source="-D_SGI_SOURCE"
   3051 	cf_XOPEN_SOURCE=
   3052 	;;
   3053 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
   3054 
   3055 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
   3056 
   3057 echo "$as_me:3057: checking if this is the GNU C library" >&5
   3058 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
   3059 if test "${cf_cv_gnu_library+set}" = set; then
   3060   echo $ECHO_N "(cached) $ECHO_C" >&6
   3061 else
   3062 
   3063 cat >"conftest.$ac_ext" <<_ACEOF
   3064 #line 3064 "configure"
   3065 #include "confdefs.h"
   3066 #include <sys/types.h>
   3067 int
   3068 main (void)
   3069 {
   3070 
   3071 	#if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
   3072 		return 0;
   3073 	#elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
   3074 		return 0;
   3075 	#else
   3076 	#	error not GNU C library
   3077 	#endif
   3078   ;
   3079   return 0;
   3080 }
   3081 _ACEOF
   3082 rm -f "conftest.$ac_objext"
   3083 if { (eval echo "$as_me:3083: \"$ac_compile\"") >&5
   3084   (eval $ac_compile) 2>&5
   3085   ac_status=$?
   3086   echo "$as_me:3086: \$? = $ac_status" >&5
   3087   (exit "$ac_status"); } &&
   3088          { ac_try='test -s "conftest.$ac_objext"'
   3089   { (eval echo "$as_me:3089: \"$ac_try\"") >&5
   3090   (eval $ac_try) 2>&5
   3091   ac_status=$?
   3092   echo "$as_me:3092: \$? = $ac_status" >&5
   3093   (exit "$ac_status"); }; }; then
   3094   cf_cv_gnu_library=yes
   3095 else
   3096   echo "$as_me: failed program was:" >&5
   3097 cat "conftest.$ac_ext" >&5
   3098 cf_cv_gnu_library=no
   3099 fi
   3100 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   3101 
   3102 fi
   3103 echo "$as_me:3103: result: $cf_cv_gnu_library" >&5
   3104 echo "${ECHO_T}$cf_cv_gnu_library" >&6
   3105 
   3106 if test x$cf_cv_gnu_library = xyes; then
   3107 
   3108 	# With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
   3109 	# was changed to help a little.  newlib incorporated the change about 4
   3110 	# years later.
   3111 	echo "$as_me:3111: checking if _DEFAULT_SOURCE can be used as a basis" >&5
   3112 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
   3113 if test "${cf_cv_gnu_library_219+set}" = set; then
   3114   echo $ECHO_N "(cached) $ECHO_C" >&6
   3115 else
   3116 
   3117 		cf_save="$CPPFLAGS"
   3118 
   3119 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3120 	CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
   3121 
   3122 		cat >"conftest.$ac_ext" <<_ACEOF
   3123 #line 3123 "configure"
   3124 #include "confdefs.h"
   3125 #include <sys/types.h>
   3126 int
   3127 main (void)
   3128 {
   3129 
   3130 			#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
   3131 				return 0;
   3132 			#elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
   3133 				return 0;
   3134 			#else
   3135 			#	error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
   3136 			#endif
   3137   ;
   3138   return 0;
   3139 }
   3140 _ACEOF
   3141 rm -f "conftest.$ac_objext"
   3142 if { (eval echo "$as_me:3142: \"$ac_compile\"") >&5
   3143   (eval $ac_compile) 2>&5
   3144   ac_status=$?
   3145   echo "$as_me:3145: \$? = $ac_status" >&5
   3146   (exit "$ac_status"); } &&
   3147          { ac_try='test -s "conftest.$ac_objext"'
   3148   { (eval echo "$as_me:3148: \"$ac_try\"") >&5
   3149   (eval $ac_try) 2>&5
   3150   ac_status=$?
   3151   echo "$as_me:3151: \$? = $ac_status" >&5
   3152   (exit "$ac_status"); }; }; then
   3153   cf_cv_gnu_library_219=yes
   3154 else
   3155   echo "$as_me: failed program was:" >&5
   3156 cat "conftest.$ac_ext" >&5
   3157 cf_cv_gnu_library_219=no
   3158 fi
   3159 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   3160 		CPPFLAGS="$cf_save"
   3161 
   3162 fi
   3163 echo "$as_me:3163: result: $cf_cv_gnu_library_219" >&5
   3164 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
   3165 
   3166 	if test "x$cf_cv_gnu_library_219" = xyes; then
   3167 		cf_save="$CPPFLAGS"
   3168 		echo "$as_me:3168: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
   3169 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
   3170 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
   3171   echo $ECHO_N "(cached) $ECHO_C" >&6
   3172 else
   3173 
   3174 cf_fix_cppflags=no
   3175 cf_new_cflags=
   3176 cf_new_cppflags=
   3177 cf_new_extra_cppflags=
   3178 
   3179 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
   3180 do
   3181 case "$cf_fix_cppflags" in
   3182 (no)
   3183 	case "$cf_add_cflags" in
   3184 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   3185 		case "$cf_add_cflags" in
   3186 		(-D*)
   3187 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   3188 
   3189 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3190 				&& test -z "${cf_tst_cflags}" \
   3191 				&& cf_fix_cppflags=yes
   3192 
   3193 			if test "$cf_fix_cppflags" = yes ; then
   3194 
   3195 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3196 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3197 
   3198 				continue
   3199 			elif test "${cf_tst_cflags}" = "\"'" ; then
   3200 
   3201 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3202 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3203 
   3204 				continue
   3205 			fi
   3206 			;;
   3207 		esac
   3208 		case "$CPPFLAGS" in
   3209 		(*$cf_add_cflags)
   3210 			;;
   3211 		(*)
   3212 			case "$cf_add_cflags" in
   3213 			(-D*)
   3214 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   3215 
   3216 CPPFLAGS=`echo "$CPPFLAGS" | \
   3217 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3218 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   3219 
   3220 				;;
   3221 			esac
   3222 
   3223 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   3224 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   3225 
   3226 			;;
   3227 		esac
   3228 		;;
   3229 	(*)
   3230 
   3231 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   3232 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   3233 
   3234 		;;
   3235 	esac
   3236 	;;
   3237 (yes)
   3238 
   3239 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3240 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3241 
   3242 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   3243 
   3244 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3245 		&& test -z "${cf_tst_cflags}" \
   3246 		&& cf_fix_cppflags=no
   3247 	;;
   3248 esac
   3249 done
   3250 
   3251 if test -n "$cf_new_cflags" ; then
   3252 
   3253 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   3254 	CFLAGS="${CFLAGS}$cf_new_cflags"
   3255 
   3256 fi
   3257 
   3258 if test -n "$cf_new_cppflags" ; then
   3259 
   3260 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3261 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   3262 
   3263 fi
   3264 
   3265 if test -n "$cf_new_extra_cppflags" ; then
   3266 
   3267 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   3268 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   3269 
   3270 fi
   3271 
   3272 			cat >"conftest.$ac_ext" <<_ACEOF
   3273 #line 3273 "configure"
   3274 #include "confdefs.h"
   3275 
   3276 				#include <limits.h>
   3277 				#include <sys/types.h>
   3278 
   3279 int
   3280 main (void)
   3281 {
   3282 
   3283 				#if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
   3284 					return 0;
   3285 				#else
   3286 				#	error GNU C library is too old
   3287 				#endif
   3288   ;
   3289   return 0;
   3290 }
   3291 _ACEOF
   3292 rm -f "conftest.$ac_objext"
   3293 if { (eval echo "$as_me:3293: \"$ac_compile\"") >&5
   3294   (eval $ac_compile) 2>&5
   3295   ac_status=$?
   3296   echo "$as_me:3296: \$? = $ac_status" >&5
   3297   (exit "$ac_status"); } &&
   3298          { ac_try='test -s "conftest.$ac_objext"'
   3299   { (eval echo "$as_me:3299: \"$ac_try\"") >&5
   3300   (eval $ac_try) 2>&5
   3301   ac_status=$?
   3302   echo "$as_me:3302: \$? = $ac_status" >&5
   3303   (exit "$ac_status"); }; }; then
   3304   cf_cv_gnu_dftsrc_219=yes
   3305 else
   3306   echo "$as_me: failed program was:" >&5
   3307 cat "conftest.$ac_ext" >&5
   3308 cf_cv_gnu_dftsrc_219=no
   3309 fi
   3310 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   3311 
   3312 fi
   3313 echo "$as_me:3313: result: $cf_cv_gnu_dftsrc_219" >&5
   3314 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
   3315 		test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
   3316 	else
   3317 		cf_cv_gnu_dftsrc_219=maybe
   3318 	fi
   3319 
   3320 	if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
   3321 
   3322 		echo "$as_me:3322: checking if we must define _GNU_SOURCE" >&5
   3323 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
   3324 if test "${cf_cv_gnu_source+set}" = set; then
   3325   echo $ECHO_N "(cached) $ECHO_C" >&6
   3326 else
   3327 
   3328 		cat >"conftest.$ac_ext" <<_ACEOF
   3329 #line 3329 "configure"
   3330 #include "confdefs.h"
   3331 #include <sys/types.h>
   3332 int
   3333 main (void)
   3334 {
   3335 
   3336 			#ifndef _XOPEN_SOURCE
   3337 			#error	expected _XOPEN_SOURCE to be defined
   3338 			#endif
   3339   ;
   3340   return 0;
   3341 }
   3342 _ACEOF
   3343 rm -f "conftest.$ac_objext"
   3344 if { (eval echo "$as_me:3344: \"$ac_compile\"") >&5
   3345   (eval $ac_compile) 2>&5
   3346   ac_status=$?
   3347   echo "$as_me:3347: \$? = $ac_status" >&5
   3348   (exit "$ac_status"); } &&
   3349          { ac_try='test -s "conftest.$ac_objext"'
   3350   { (eval echo "$as_me:3350: \"$ac_try\"") >&5
   3351   (eval $ac_try) 2>&5
   3352   ac_status=$?
   3353   echo "$as_me:3353: \$? = $ac_status" >&5
   3354   (exit "$ac_status"); }; }; then
   3355   cf_cv_gnu_source=no
   3356 else
   3357   echo "$as_me: failed program was:" >&5
   3358 cat "conftest.$ac_ext" >&5
   3359 cf_save="$CPPFLAGS"
   3360 
   3361 cf_fix_cppflags=no
   3362 cf_new_cflags=
   3363 cf_new_cppflags=
   3364 cf_new_extra_cppflags=
   3365 
   3366 for cf_add_cflags in -D_GNU_SOURCE
   3367 do
   3368 case "$cf_fix_cppflags" in
   3369 (no)
   3370 	case "$cf_add_cflags" in
   3371 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   3372 		case "$cf_add_cflags" in
   3373 		(-D*)
   3374 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   3375 
   3376 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3377 				&& test -z "${cf_tst_cflags}" \
   3378 				&& cf_fix_cppflags=yes
   3379 
   3380 			if test "$cf_fix_cppflags" = yes ; then
   3381 
   3382 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3383 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3384 
   3385 				continue
   3386 			elif test "${cf_tst_cflags}" = "\"'" ; then
   3387 
   3388 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3389 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3390 
   3391 				continue
   3392 			fi
   3393 			;;
   3394 		esac
   3395 		case "$CPPFLAGS" in
   3396 		(*$cf_add_cflags)
   3397 			;;
   3398 		(*)
   3399 			case "$cf_add_cflags" in
   3400 			(-D*)
   3401 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   3402 
   3403 CPPFLAGS=`echo "$CPPFLAGS" | \
   3404 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3405 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   3406 
   3407 				;;
   3408 			esac
   3409 
   3410 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   3411 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   3412 
   3413 			;;
   3414 		esac
   3415 		;;
   3416 	(*)
   3417 
   3418 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   3419 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   3420 
   3421 		;;
   3422 	esac
   3423 	;;
   3424 (yes)
   3425 
   3426 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3427 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3428 
   3429 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   3430 
   3431 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3432 		&& test -z "${cf_tst_cflags}" \
   3433 		&& cf_fix_cppflags=no
   3434 	;;
   3435 esac
   3436 done
   3437 
   3438 if test -n "$cf_new_cflags" ; then
   3439 
   3440 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   3441 	CFLAGS="${CFLAGS}$cf_new_cflags"
   3442 
   3443 fi
   3444 
   3445 if test -n "$cf_new_cppflags" ; then
   3446 
   3447 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3448 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   3449 
   3450 fi
   3451 
   3452 if test -n "$cf_new_extra_cppflags" ; then
   3453 
   3454 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   3455 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   3456 
   3457 fi
   3458 
   3459 			 cat >"conftest.$ac_ext" <<_ACEOF
   3460 #line 3460 "configure"
   3461 #include "confdefs.h"
   3462 #include <sys/types.h>
   3463 int
   3464 main (void)
   3465 {
   3466 
   3467 				#ifdef _XOPEN_SOURCE
   3468 				#error	expected _XOPEN_SOURCE to be undefined
   3469 				#endif
   3470   ;
   3471   return 0;
   3472 }
   3473 _ACEOF
   3474 rm -f "conftest.$ac_objext"
   3475 if { (eval echo "$as_me:3475: \"$ac_compile\"") >&5
   3476   (eval $ac_compile) 2>&5
   3477   ac_status=$?
   3478   echo "$as_me:3478: \$? = $ac_status" >&5
   3479   (exit "$ac_status"); } &&
   3480          { ac_try='test -s "conftest.$ac_objext"'
   3481   { (eval echo "$as_me:3481: \"$ac_try\"") >&5
   3482   (eval $ac_try) 2>&5
   3483   ac_status=$?
   3484   echo "$as_me:3484: \$? = $ac_status" >&5
   3485   (exit "$ac_status"); }; }; then
   3486   cf_cv_gnu_source=no
   3487 else
   3488   echo "$as_me: failed program was:" >&5
   3489 cat "conftest.$ac_ext" >&5
   3490 cf_cv_gnu_source=yes
   3491 fi
   3492 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   3493 			CPPFLAGS="$cf_save"
   3494 
   3495 fi
   3496 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   3497 
   3498 fi
   3499 echo "$as_me:3499: result: $cf_cv_gnu_source" >&5
   3500 echo "${ECHO_T}$cf_cv_gnu_source" >&6
   3501 
   3502 		if test "$cf_cv_gnu_source" = yes
   3503 		then
   3504 		echo "$as_me:3504: checking if we should also define _DEFAULT_SOURCE" >&5
   3505 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
   3506 if test "${cf_cv_default_source+set}" = set; then
   3507   echo $ECHO_N "(cached) $ECHO_C" >&6
   3508 else
   3509 
   3510 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3511 	CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
   3512 
   3513 			cat >"conftest.$ac_ext" <<_ACEOF
   3514 #line 3514 "configure"
   3515 #include "confdefs.h"
   3516 #include <sys/types.h>
   3517 int
   3518 main (void)
   3519 {
   3520 
   3521 				#ifdef _DEFAULT_SOURCE
   3522 				#error	expected _DEFAULT_SOURCE to be undefined
   3523 				#endif
   3524   ;
   3525   return 0;
   3526 }
   3527 _ACEOF
   3528 rm -f "conftest.$ac_objext"
   3529 if { (eval echo "$as_me:3529: \"$ac_compile\"") >&5
   3530   (eval $ac_compile) 2>&5
   3531   ac_status=$?
   3532   echo "$as_me:3532: \$? = $ac_status" >&5
   3533   (exit "$ac_status"); } &&
   3534          { ac_try='test -s "conftest.$ac_objext"'
   3535   { (eval echo "$as_me:3535: \"$ac_try\"") >&5
   3536   (eval $ac_try) 2>&5
   3537   ac_status=$?
   3538   echo "$as_me:3538: \$? = $ac_status" >&5
   3539   (exit "$ac_status"); }; }; then
   3540   cf_cv_default_source=no
   3541 else
   3542   echo "$as_me: failed program was:" >&5
   3543 cat "conftest.$ac_ext" >&5
   3544 cf_cv_default_source=yes
   3545 fi
   3546 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   3547 
   3548 fi
   3549 echo "$as_me:3549: result: $cf_cv_default_source" >&5
   3550 echo "${ECHO_T}$cf_cv_default_source" >&6
   3551 			if test "$cf_cv_default_source" = yes
   3552 			then
   3553 
   3554 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3555 	CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
   3556 
   3557 			fi
   3558 		fi
   3559 	fi
   3560 
   3561 fi
   3562 
   3563 	;;
   3564 (minix*)
   3565 	cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
   3566 	;;
   3567 (mirbsd*)
   3568 	# setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
   3569 	cf_XOPEN_SOURCE=
   3570 
   3571 if test "$cf_cv_posix_visible" = no; then
   3572 
   3573 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
   3574 
   3575 cf_save_CFLAGS="$CFLAGS"
   3576 cf_save_CPPFLAGS="$CPPFLAGS"
   3577 
   3578 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
   3579 	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3580 		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3581 
   3582 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
   3583 	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3584 		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3585 
   3586 echo "$as_me:3586: checking if we should define _POSIX_C_SOURCE" >&5
   3587 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
   3588 if test "${cf_cv_posix_c_source+set}" = set; then
   3589   echo $ECHO_N "(cached) $ECHO_C" >&6
   3590 else
   3591 
   3592 echo "${as_me:-configure}:3592: testing if the symbol is already defined go no further ..." 1>&5
   3593 
   3594 	cat >"conftest.$ac_ext" <<_ACEOF
   3595 #line 3595 "configure"
   3596 #include "confdefs.h"
   3597 #include <sys/types.h>
   3598 int
   3599 main (void)
   3600 {
   3601 
   3602 #ifndef _POSIX_C_SOURCE
   3603 make an error
   3604 #endif
   3605   ;
   3606   return 0;
   3607 }
   3608 _ACEOF
   3609 rm -f "conftest.$ac_objext"
   3610 if { (eval echo "$as_me:3610: \"$ac_compile\"") >&5
   3611   (eval $ac_compile) 2>&5
   3612   ac_status=$?
   3613   echo "$as_me:3613: \$? = $ac_status" >&5
   3614   (exit "$ac_status"); } &&
   3615          { ac_try='test -s "conftest.$ac_objext"'
   3616   { (eval echo "$as_me:3616: \"$ac_try\"") >&5
   3617   (eval $ac_try) 2>&5
   3618   ac_status=$?
   3619   echo "$as_me:3619: \$? = $ac_status" >&5
   3620   (exit "$ac_status"); }; }; then
   3621   cf_cv_posix_c_source=no
   3622 else
   3623   echo "$as_me: failed program was:" >&5
   3624 cat "conftest.$ac_ext" >&5
   3625 cf_want_posix_source=no
   3626 	 case .$cf_POSIX_C_SOURCE in
   3627 	 (.[12]??*)
   3628 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   3629 		;;
   3630 	 (.2)
   3631 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   3632 		cf_want_posix_source=yes
   3633 		;;
   3634 	 (.*)
   3635 		cf_want_posix_source=yes
   3636 		;;
   3637 	 esac
   3638 	 if test "$cf_want_posix_source" = yes ; then
   3639 		cat >"conftest.$ac_ext" <<_ACEOF
   3640 #line 3640 "configure"
   3641 #include "confdefs.h"
   3642 #include <sys/types.h>
   3643 int
   3644 main (void)
   3645 {
   3646 
   3647 #ifdef _POSIX_SOURCE
   3648 make an error
   3649 #endif
   3650   ;
   3651   return 0;
   3652 }
   3653 _ACEOF
   3654 rm -f "conftest.$ac_objext"
   3655 if { (eval echo "$as_me:3655: \"$ac_compile\"") >&5
   3656   (eval $ac_compile) 2>&5
   3657   ac_status=$?
   3658   echo "$as_me:3658: \$? = $ac_status" >&5
   3659   (exit "$ac_status"); } &&
   3660          { ac_try='test -s "conftest.$ac_objext"'
   3661   { (eval echo "$as_me:3661: \"$ac_try\"") >&5
   3662   (eval $ac_try) 2>&5
   3663   ac_status=$?
   3664   echo "$as_me:3664: \$? = $ac_status" >&5
   3665   (exit "$ac_status"); }; }; then
   3666   :
   3667 else
   3668   echo "$as_me: failed program was:" >&5
   3669 cat "conftest.$ac_ext" >&5
   3670 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
   3671 fi
   3672 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   3673 	 fi
   3674 
   3675 echo "${as_me:-configure}:3675: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
   3676 
   3677 	 CFLAGS="$cf_trim_CFLAGS"
   3678 	 CPPFLAGS="$cf_trim_CPPFLAGS"
   3679 
   3680 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3681 	CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
   3682 
   3683 echo "${as_me:-configure}:3683: testing if the second compile does not leave our definition intact error ..." 1>&5
   3684 
   3685 	 cat >"conftest.$ac_ext" <<_ACEOF
   3686 #line 3686 "configure"
   3687 #include "confdefs.h"
   3688 #include <sys/types.h>
   3689 int
   3690 main (void)
   3691 {
   3692 
   3693 #ifndef _POSIX_C_SOURCE
   3694 make an error
   3695 #endif
   3696   ;
   3697   return 0;
   3698 }
   3699 _ACEOF
   3700 rm -f "conftest.$ac_objext"
   3701 if { (eval echo "$as_me:3701: \"$ac_compile\"") >&5
   3702   (eval $ac_compile) 2>&5
   3703   ac_status=$?
   3704   echo "$as_me:3704: \$? = $ac_status" >&5
   3705   (exit "$ac_status"); } &&
   3706          { ac_try='test -s "conftest.$ac_objext"'
   3707   { (eval echo "$as_me:3707: \"$ac_try\"") >&5
   3708   (eval $ac_try) 2>&5
   3709   ac_status=$?
   3710   echo "$as_me:3710: \$? = $ac_status" >&5
   3711   (exit "$ac_status"); }; }; then
   3712   :
   3713 else
   3714   echo "$as_me: failed program was:" >&5
   3715 cat "conftest.$ac_ext" >&5
   3716 cf_cv_posix_c_source=no
   3717 fi
   3718 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   3719 	 CFLAGS="$cf_save_CFLAGS"
   3720 	 CPPFLAGS="$cf_save_CPPFLAGS"
   3721 
   3722 fi
   3723 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   3724 
   3725 fi
   3726 echo "$as_me:3726: result: $cf_cv_posix_c_source" >&5
   3727 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
   3728 
   3729 if test "$cf_cv_posix_c_source" != no ; then
   3730 	CFLAGS="$cf_trim_CFLAGS"
   3731 	CPPFLAGS="$cf_trim_CPPFLAGS"
   3732 
   3733 cf_fix_cppflags=no
   3734 cf_new_cflags=
   3735 cf_new_cppflags=
   3736 cf_new_extra_cppflags=
   3737 
   3738 for cf_add_cflags in $cf_cv_posix_c_source
   3739 do
   3740 case "$cf_fix_cppflags" in
   3741 (no)
   3742 	case "$cf_add_cflags" in
   3743 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   3744 		case "$cf_add_cflags" in
   3745 		(-D*)
   3746 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   3747 
   3748 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3749 				&& test -z "${cf_tst_cflags}" \
   3750 				&& cf_fix_cppflags=yes
   3751 
   3752 			if test "$cf_fix_cppflags" = yes ; then
   3753 
   3754 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3755 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3756 
   3757 				continue
   3758 			elif test "${cf_tst_cflags}" = "\"'" ; then
   3759 
   3760 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3761 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3762 
   3763 				continue
   3764 			fi
   3765 			;;
   3766 		esac
   3767 		case "$CPPFLAGS" in
   3768 		(*$cf_add_cflags)
   3769 			;;
   3770 		(*)
   3771 			case "$cf_add_cflags" in
   3772 			(-D*)
   3773 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   3774 
   3775 CPPFLAGS=`echo "$CPPFLAGS" | \
   3776 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3777 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   3778 
   3779 				;;
   3780 			esac
   3781 
   3782 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   3783 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   3784 
   3785 			;;
   3786 		esac
   3787 		;;
   3788 	(*)
   3789 
   3790 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   3791 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   3792 
   3793 		;;
   3794 	esac
   3795 	;;
   3796 (yes)
   3797 
   3798 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3799 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3800 
   3801 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   3802 
   3803 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3804 		&& test -z "${cf_tst_cflags}" \
   3805 		&& cf_fix_cppflags=no
   3806 	;;
   3807 esac
   3808 done
   3809 
   3810 if test -n "$cf_new_cflags" ; then
   3811 
   3812 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   3813 	CFLAGS="${CFLAGS}$cf_new_cflags"
   3814 
   3815 fi
   3816 
   3817 if test -n "$cf_new_cppflags" ; then
   3818 
   3819 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3820 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   3821 
   3822 fi
   3823 
   3824 if test -n "$cf_new_extra_cppflags" ; then
   3825 
   3826 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   3827 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   3828 
   3829 fi
   3830 
   3831 fi
   3832 
   3833 fi # cf_cv_posix_visible
   3834 
   3835 	;;
   3836 (netbsd*)
   3837 	cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
   3838 	;;
   3839 (openbsd[6-9]*)
   3840 	# OpenBSD 6.x has broken locale support, both compile-time and runtime.
   3841 	# see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
   3842 	# Abusing the conformance level is a workaround.
   3843 	{ echo "$as_me:3843: WARNING: this system does not provide usable locale support" >&5
   3844 echo "$as_me: WARNING: this system does not provide usable locale support" >&2;}
   3845 	cf_xopen_source="-D_BSD_SOURCE"
   3846 	cf_XOPEN_SOURCE=700
   3847 	;;
   3848 (openbsd[4-5]*)
   3849 	# setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
   3850 	cf_xopen_source="-D_BSD_SOURCE"
   3851 	cf_XOPEN_SOURCE=600
   3852 	;;
   3853 (openbsd*)
   3854 	# setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
   3855 	;;
   3856 (osf[45]*)
   3857 	cf_xopen_source="-D_OSF_SOURCE"
   3858 	;;
   3859 (nto-qnx*)
   3860 	cf_xopen_source="-D_QNX_SOURCE"
   3861 	;;
   3862 (sco*)
   3863 	# setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
   3864 	;;
   3865 (solaris2.*)
   3866 	cf_xopen_source="-D__EXTENSIONS__"
   3867 	cf_cv_xopen_source=broken
   3868 	;;
   3869 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
   3870 	cf_XOPEN_SOURCE=
   3871 	cf_POSIX_C_SOURCE=
   3872 	;;
   3873 (*)
   3874 
   3875 echo "$as_me:3875: checking if we should define _XOPEN_SOURCE" >&5
   3876 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
   3877 if test "${cf_cv_xopen_source+set}" = set; then
   3878   echo $ECHO_N "(cached) $ECHO_C" >&6
   3879 else
   3880 
   3881 	cat >"conftest.$ac_ext" <<_ACEOF
   3882 #line 3882 "configure"
   3883 #include "confdefs.h"
   3884 
   3885 #include <stdlib.h>
   3886 #include <string.h>
   3887 #include <sys/types.h>
   3888 
   3889 int
   3890 main (void)
   3891 {
   3892 
   3893 #ifndef _XOPEN_SOURCE
   3894 make an error
   3895 #endif
   3896   ;
   3897   return 0;
   3898 }
   3899 _ACEOF
   3900 rm -f "conftest.$ac_objext"
   3901 if { (eval echo "$as_me:3901: \"$ac_compile\"") >&5
   3902   (eval $ac_compile) 2>&5
   3903   ac_status=$?
   3904   echo "$as_me:3904: \$? = $ac_status" >&5
   3905   (exit "$ac_status"); } &&
   3906          { ac_try='test -s "conftest.$ac_objext"'
   3907   { (eval echo "$as_me:3907: \"$ac_try\"") >&5
   3908   (eval $ac_try) 2>&5
   3909   ac_status=$?
   3910   echo "$as_me:3910: \$? = $ac_status" >&5
   3911   (exit "$ac_status"); }; }; then
   3912   cf_cv_xopen_source=no
   3913 else
   3914   echo "$as_me: failed program was:" >&5
   3915 cat "conftest.$ac_ext" >&5
   3916 cf_save="$CPPFLAGS"
   3917 
   3918 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3919 	CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
   3920 
   3921 	 cat >"conftest.$ac_ext" <<_ACEOF
   3922 #line 3922 "configure"
   3923 #include "confdefs.h"
   3924 
   3925 #include <stdlib.h>
   3926 #include <string.h>
   3927 #include <sys/types.h>
   3928 
   3929 int
   3930 main (void)
   3931 {
   3932 
   3933 #ifdef _XOPEN_SOURCE
   3934 make an error
   3935 #endif
   3936   ;
   3937   return 0;
   3938 }
   3939 _ACEOF
   3940 rm -f "conftest.$ac_objext"
   3941 if { (eval echo "$as_me:3941: \"$ac_compile\"") >&5
   3942   (eval $ac_compile) 2>&5
   3943   ac_status=$?
   3944   echo "$as_me:3944: \$? = $ac_status" >&5
   3945   (exit "$ac_status"); } &&
   3946          { ac_try='test -s "conftest.$ac_objext"'
   3947   { (eval echo "$as_me:3947: \"$ac_try\"") >&5
   3948   (eval $ac_try) 2>&5
   3949   ac_status=$?
   3950   echo "$as_me:3950: \$? = $ac_status" >&5
   3951   (exit "$ac_status"); }; }; then
   3952   cf_cv_xopen_source=no
   3953 else
   3954   echo "$as_me: failed program was:" >&5
   3955 cat "conftest.$ac_ext" >&5
   3956 cf_cv_xopen_source=$cf_XOPEN_SOURCE
   3957 fi
   3958 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   3959 	CPPFLAGS="$cf_save"
   3960 
   3961 fi
   3962 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   3963 
   3964 fi
   3965 echo "$as_me:3965: result: $cf_cv_xopen_source" >&5
   3966 echo "${ECHO_T}$cf_cv_xopen_source" >&6
   3967 
   3968 if test "$cf_cv_xopen_source" != no ; then
   3969 
   3970 CFLAGS=`echo "$CFLAGS" | \
   3971 	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3972 		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3973 
   3974 CPPFLAGS=`echo "$CPPFLAGS" | \
   3975 	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3976 		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3977 
   3978 	cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
   3979 
   3980 cf_fix_cppflags=no
   3981 cf_new_cflags=
   3982 cf_new_cppflags=
   3983 cf_new_extra_cppflags=
   3984 
   3985 for cf_add_cflags in $cf_temp_xopen_source
   3986 do
   3987 case "$cf_fix_cppflags" in
   3988 (no)
   3989 	case "$cf_add_cflags" in
   3990 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   3991 		case "$cf_add_cflags" in
   3992 		(-D*)
   3993 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   3994 
   3995 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3996 				&& test -z "${cf_tst_cflags}" \
   3997 				&& cf_fix_cppflags=yes
   3998 
   3999 			if test "$cf_fix_cppflags" = yes ; then
   4000 
   4001 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   4002 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   4003 
   4004 				continue
   4005 			elif test "${cf_tst_cflags}" = "\"'" ; then
   4006 
   4007 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   4008 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   4009 
   4010 				continue
   4011 			fi
   4012 			;;
   4013 		esac
   4014 		case "$CPPFLAGS" in
   4015 		(*$cf_add_cflags)
   4016 			;;
   4017 		(*)
   4018 			case "$cf_add_cflags" in
   4019 			(-D*)
   4020 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   4021 
   4022 CPPFLAGS=`echo "$CPPFLAGS" | \
   4023 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   4024 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   4025 
   4026 				;;
   4027 			esac
   4028 
   4029 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   4030 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   4031 
   4032 			;;
   4033 		esac
   4034 		;;
   4035 	(*)
   4036 
   4037 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   4038 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   4039 
   4040 		;;
   4041 	esac
   4042 	;;
   4043 (yes)
   4044 
   4045 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   4046 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   4047 
   4048 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   4049 
   4050 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   4051 		&& test -z "${cf_tst_cflags}" \
   4052 		&& cf_fix_cppflags=no
   4053 	;;
   4054 esac
   4055 done
   4056 
   4057 if test -n "$cf_new_cflags" ; then
   4058 
   4059 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   4060 	CFLAGS="${CFLAGS}$cf_new_cflags"
   4061 
   4062 fi
   4063 
   4064 if test -n "$cf_new_cppflags" ; then
   4065 
   4066 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   4067 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   4068 
   4069 fi
   4070 
   4071 if test -n "$cf_new_extra_cppflags" ; then
   4072 
   4073 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   4074 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   4075 
   4076 fi
   4077 
   4078 fi
   4079 
   4080 if test "$cf_cv_posix_visible" = no; then
   4081 
   4082 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
   4083 
   4084 cf_save_CFLAGS="$CFLAGS"
   4085 cf_save_CPPFLAGS="$CPPFLAGS"
   4086 
   4087 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
   4088 	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   4089 		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
   4090 
   4091 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
   4092 	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   4093 		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
   4094 
   4095 echo "$as_me:4095: checking if we should define _POSIX_C_SOURCE" >&5
   4096 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
   4097 if test "${cf_cv_posix_c_source+set}" = set; then
   4098   echo $ECHO_N "(cached) $ECHO_C" >&6
   4099 else
   4100 
   4101 echo "${as_me:-configure}:4101: testing if the symbol is already defined go no further ..." 1>&5
   4102 
   4103 	cat >"conftest.$ac_ext" <<_ACEOF
   4104 #line 4104 "configure"
   4105 #include "confdefs.h"
   4106 #include <sys/types.h>
   4107 int
   4108 main (void)
   4109 {
   4110 
   4111 #ifndef _POSIX_C_SOURCE
   4112 make an error
   4113 #endif
   4114   ;
   4115   return 0;
   4116 }
   4117 _ACEOF
   4118 rm -f "conftest.$ac_objext"
   4119 if { (eval echo "$as_me:4119: \"$ac_compile\"") >&5
   4120   (eval $ac_compile) 2>&5
   4121   ac_status=$?
   4122   echo "$as_me:4122: \$? = $ac_status" >&5
   4123   (exit "$ac_status"); } &&
   4124          { ac_try='test -s "conftest.$ac_objext"'
   4125   { (eval echo "$as_me:4125: \"$ac_try\"") >&5
   4126   (eval $ac_try) 2>&5
   4127   ac_status=$?
   4128   echo "$as_me:4128: \$? = $ac_status" >&5
   4129   (exit "$ac_status"); }; }; then
   4130   cf_cv_posix_c_source=no
   4131 else
   4132   echo "$as_me: failed program was:" >&5
   4133 cat "conftest.$ac_ext" >&5
   4134 cf_want_posix_source=no
   4135 	 case .$cf_POSIX_C_SOURCE in
   4136 	 (.[12]??*)
   4137 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   4138 		;;
   4139 	 (.2)
   4140 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   4141 		cf_want_posix_source=yes
   4142 		;;
   4143 	 (.*)
   4144 		cf_want_posix_source=yes
   4145 		;;
   4146 	 esac
   4147 	 if test "$cf_want_posix_source" = yes ; then
   4148 		cat >"conftest.$ac_ext" <<_ACEOF
   4149 #line 4149 "configure"
   4150 #include "confdefs.h"
   4151 #include <sys/types.h>
   4152 int
   4153 main (void)
   4154 {
   4155 
   4156 #ifdef _POSIX_SOURCE
   4157 make an error
   4158 #endif
   4159   ;
   4160   return 0;
   4161 }
   4162 _ACEOF
   4163 rm -f "conftest.$ac_objext"
   4164 if { (eval echo "$as_me:4164: \"$ac_compile\"") >&5
   4165   (eval $ac_compile) 2>&5
   4166   ac_status=$?
   4167   echo "$as_me:4167: \$? = $ac_status" >&5
   4168   (exit "$ac_status"); } &&
   4169          { ac_try='test -s "conftest.$ac_objext"'
   4170   { (eval echo "$as_me:4170: \"$ac_try\"") >&5
   4171   (eval $ac_try) 2>&5
   4172   ac_status=$?
   4173   echo "$as_me:4173: \$? = $ac_status" >&5
   4174   (exit "$ac_status"); }; }; then
   4175   :
   4176 else
   4177   echo "$as_me: failed program was:" >&5
   4178 cat "conftest.$ac_ext" >&5
   4179 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
   4180 fi
   4181 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   4182 	 fi
   4183 
   4184 echo "${as_me:-configure}:4184: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
   4185 
   4186 	 CFLAGS="$cf_trim_CFLAGS"
   4187 	 CPPFLAGS="$cf_trim_CPPFLAGS"
   4188 
   4189 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   4190 	CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
   4191 
   4192 echo "${as_me:-configure}:4192: testing if the second compile does not leave our definition intact error ..." 1>&5
   4193 
   4194 	 cat >"conftest.$ac_ext" <<_ACEOF
   4195 #line 4195 "configure"
   4196 #include "confdefs.h"
   4197 #include <sys/types.h>
   4198 int
   4199 main (void)
   4200 {
   4201 
   4202 #ifndef _POSIX_C_SOURCE
   4203 make an error
   4204 #endif
   4205   ;
   4206   return 0;
   4207 }
   4208 _ACEOF
   4209 rm -f "conftest.$ac_objext"
   4210 if { (eval echo "$as_me:4210: \"$ac_compile\"") >&5
   4211   (eval $ac_compile) 2>&5
   4212   ac_status=$?
   4213   echo "$as_me:4213: \$? = $ac_status" >&5
   4214   (exit "$ac_status"); } &&
   4215          { ac_try='test -s "conftest.$ac_objext"'
   4216   { (eval echo "$as_me:4216: \"$ac_try\"") >&5
   4217   (eval $ac_try) 2>&5
   4218   ac_status=$?
   4219   echo "$as_me:4219: \$? = $ac_status" >&5
   4220   (exit "$ac_status"); }; }; then
   4221   :
   4222 else
   4223   echo "$as_me: failed program was:" >&5
   4224 cat "conftest.$ac_ext" >&5
   4225 cf_cv_posix_c_source=no
   4226 fi
   4227 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   4228 	 CFLAGS="$cf_save_CFLAGS"
   4229 	 CPPFLAGS="$cf_save_CPPFLAGS"
   4230 
   4231 fi
   4232 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   4233 
   4234 fi
   4235 echo "$as_me:4235: result: $cf_cv_posix_c_source" >&5
   4236 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
   4237 
   4238 if test "$cf_cv_posix_c_source" != no ; then
   4239 	CFLAGS="$cf_trim_CFLAGS"
   4240 	CPPFLAGS="$cf_trim_CPPFLAGS"
   4241 
   4242 cf_fix_cppflags=no
   4243 cf_new_cflags=
   4244 cf_new_cppflags=
   4245 cf_new_extra_cppflags=
   4246 
   4247 for cf_add_cflags in $cf_cv_posix_c_source
   4248 do
   4249 case "$cf_fix_cppflags" in
   4250 (no)
   4251 	case "$cf_add_cflags" in
   4252 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   4253 		case "$cf_add_cflags" in
   4254 		(-D*)
   4255 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   4256 
   4257 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   4258 				&& test -z "${cf_tst_cflags}" \
   4259 				&& cf_fix_cppflags=yes
   4260 
   4261 			if test "$cf_fix_cppflags" = yes ; then
   4262 
   4263 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   4264 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   4265 
   4266 				continue
   4267 			elif test "${cf_tst_cflags}" = "\"'" ; then
   4268 
   4269 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   4270 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   4271 
   4272 				continue
   4273 			fi
   4274 			;;
   4275 		esac
   4276 		case "$CPPFLAGS" in
   4277 		(*$cf_add_cflags)
   4278 			;;
   4279 		(*)
   4280 			case "$cf_add_cflags" in
   4281 			(-D*)
   4282 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   4283 
   4284 CPPFLAGS=`echo "$CPPFLAGS" | \
   4285 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   4286 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   4287 
   4288 				;;
   4289 			esac
   4290 
   4291 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   4292 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   4293 
   4294 			;;
   4295 		esac
   4296 		;;
   4297 	(*)
   4298 
   4299 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   4300 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   4301 
   4302 		;;
   4303 	esac
   4304 	;;
   4305 (yes)
   4306 
   4307 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   4308 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   4309 
   4310 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   4311 
   4312 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   4313 		&& test -z "${cf_tst_cflags}" \
   4314 		&& cf_fix_cppflags=no
   4315 	;;
   4316 esac
   4317 done
   4318 
   4319 if test -n "$cf_new_cflags" ; then
   4320 
   4321 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   4322 	CFLAGS="${CFLAGS}$cf_new_cflags"
   4323 
   4324 fi
   4325 
   4326 if test -n "$cf_new_cppflags" ; then
   4327 
   4328 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   4329 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   4330 
   4331 fi
   4332 
   4333 if test -n "$cf_new_extra_cppflags" ; then
   4334 
   4335 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   4336 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   4337 
   4338 fi
   4339 
   4340 fi
   4341 
   4342 fi # cf_cv_posix_visible
   4343 
   4344 	;;
   4345 esac
   4346 
   4347 if test -n "$cf_xopen_source" ; then
   4348 
   4349 cf_fix_cppflags=no
   4350 cf_new_cflags=
   4351 cf_new_cppflags=
   4352 cf_new_extra_cppflags=
   4353 
   4354 for cf_add_cflags in $cf_xopen_source
   4355 do
   4356 case "$cf_fix_cppflags" in
   4357 (no)
   4358 	case "$cf_add_cflags" in
   4359 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   4360 		case "$cf_add_cflags" in
   4361 		(-D*)
   4362 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   4363 
   4364 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   4365 				&& test -z "${cf_tst_cflags}" \
   4366 				&& cf_fix_cppflags=yes
   4367 
   4368 			if test "$cf_fix_cppflags" = yes ; then
   4369 
   4370 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   4371 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   4372 
   4373 				continue
   4374 			elif test "${cf_tst_cflags}" = "\"'" ; then
   4375 
   4376 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   4377 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   4378 
   4379 				continue
   4380 			fi
   4381 			;;
   4382 		esac
   4383 		case "$CPPFLAGS" in
   4384 		(*$cf_add_cflags)
   4385 			;;
   4386 		(*)
   4387 			case "$cf_add_cflags" in
   4388 			(-D*)
   4389 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   4390 
   4391 CPPFLAGS=`echo "$CPPFLAGS" | \
   4392 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   4393 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   4394 
   4395 				;;
   4396 			esac
   4397 
   4398 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   4399 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   4400 
   4401 			;;
   4402 		esac
   4403 		;;
   4404 	(*)
   4405 
   4406 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   4407 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   4408 
   4409 		;;
   4410 	esac
   4411 	;;
   4412 (yes)
   4413 
   4414 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   4415 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   4416 
   4417 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   4418 
   4419 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   4420 		&& test -z "${cf_tst_cflags}" \
   4421 		&& cf_fix_cppflags=no
   4422 	;;
   4423 esac
   4424 done
   4425 
   4426 if test -n "$cf_new_cflags" ; then
   4427 	test -n "$verbose" && echo "	add to \$CFLAGS $cf_new_cflags" 1>&6
   4428 
   4429 echo "${as_me:-configure}:4429: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
   4430 
   4431 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   4432 	CFLAGS="${CFLAGS}$cf_new_cflags"
   4433 
   4434 fi
   4435 
   4436 if test -n "$cf_new_cppflags" ; then
   4437 	test -n "$verbose" && echo "	add to \$CPPFLAGS $cf_new_cppflags" 1>&6
   4438 
   4439 echo "${as_me:-configure}:4439: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
   4440 
   4441 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   4442 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   4443 
   4444 fi
   4445 
   4446 if test -n "$cf_new_extra_cppflags" ; then
   4447 	test -n "$verbose" && echo "	add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
   4448 
   4449 echo "${as_me:-configure}:4449: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
   4450 
   4451 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   4452 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   4453 
   4454 fi
   4455 
   4456 fi
   4457 
   4458 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
   4459 	echo "$as_me:4459: checking if _XOPEN_SOURCE really is set" >&5
   4460 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
   4461 	cat >"conftest.$ac_ext" <<_ACEOF
   4462 #line 4462 "configure"
   4463 #include "confdefs.h"
   4464 #include <stdlib.h>
   4465 int
   4466 main (void)
   4467 {
   4468 
   4469 #ifndef _XOPEN_SOURCE
   4470 make an error
   4471 #endif
   4472   ;
   4473   return 0;
   4474 }
   4475 _ACEOF
   4476 rm -f "conftest.$ac_objext"
   4477 if { (eval echo "$as_me:4477: \"$ac_compile\"") >&5
   4478   (eval $ac_compile) 2>&5
   4479   ac_status=$?
   4480   echo "$as_me:4480: \$? = $ac_status" >&5
   4481   (exit "$ac_status"); } &&
   4482          { ac_try='test -s "conftest.$ac_objext"'
   4483   { (eval echo "$as_me:4483: \"$ac_try\"") >&5
   4484   (eval $ac_try) 2>&5
   4485   ac_status=$?
   4486   echo "$as_me:4486: \$? = $ac_status" >&5
   4487   (exit "$ac_status"); }; }; then
   4488   cf_XOPEN_SOURCE_set=yes
   4489 else
   4490   echo "$as_me: failed program was:" >&5
   4491 cat "conftest.$ac_ext" >&5
   4492 cf_XOPEN_SOURCE_set=no
   4493 fi
   4494 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   4495 	echo "$as_me:4495: result: $cf_XOPEN_SOURCE_set" >&5
   4496 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
   4497 	if test "$cf_XOPEN_SOURCE_set" = yes
   4498 	then
   4499 		cat >"conftest.$ac_ext" <<_ACEOF
   4500 #line 4500 "configure"
   4501 #include "confdefs.h"
   4502 #include <stdlib.h>
   4503 int
   4504 main (void)
   4505 {
   4506 
   4507 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
   4508 make an error
   4509 #endif
   4510   ;
   4511   return 0;
   4512 }
   4513 _ACEOF
   4514 rm -f "conftest.$ac_objext"
   4515 if { (eval echo "$as_me:4515: \"$ac_compile\"") >&5
   4516   (eval $ac_compile) 2>&5
   4517   ac_status=$?
   4518   echo "$as_me:4518: \$? = $ac_status" >&5
   4519   (exit "$ac_status"); } &&
   4520          { ac_try='test -s "conftest.$ac_objext"'
   4521   { (eval echo "$as_me:4521: \"$ac_try\"") >&5
   4522   (eval $ac_try) 2>&5
   4523   ac_status=$?
   4524   echo "$as_me:4524: \$? = $ac_status" >&5
   4525   (exit "$ac_status"); }; }; then
   4526   cf_XOPEN_SOURCE_set_ok=yes
   4527 else
   4528   echo "$as_me: failed program was:" >&5
   4529 cat "conftest.$ac_ext" >&5
   4530 cf_XOPEN_SOURCE_set_ok=no
   4531 fi
   4532 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   4533 		if test "$cf_XOPEN_SOURCE_set_ok" = no
   4534 		then
   4535 			{ echo "$as_me:4535: WARNING: _XOPEN_SOURCE is lower than requested" >&5
   4536 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
   4537 		fi
   4538 	else
   4539 
   4540 echo "$as_me:4540: checking if we should define _XOPEN_SOURCE" >&5
   4541 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
   4542 if test "${cf_cv_xopen_source+set}" = set; then
   4543   echo $ECHO_N "(cached) $ECHO_C" >&6
   4544 else
   4545 
   4546 	cat >"conftest.$ac_ext" <<_ACEOF
   4547 #line 4547 "configure"
   4548 #include "confdefs.h"
   4549 
   4550 #include <stdlib.h>
   4551 #include <string.h>
   4552 #include <sys/types.h>
   4553 
   4554 int
   4555 main (void)
   4556 {
   4557 
   4558 #ifndef _XOPEN_SOURCE
   4559 make an error
   4560 #endif
   4561   ;
   4562   return 0;
   4563 }
   4564 _ACEOF
   4565 rm -f "conftest.$ac_objext"
   4566 if { (eval echo "$as_me:4566: \"$ac_compile\"") >&5
   4567   (eval $ac_compile) 2>&5
   4568   ac_status=$?
   4569   echo "$as_me:4569: \$? = $ac_status" >&5
   4570   (exit "$ac_status"); } &&
   4571          { ac_try='test -s "conftest.$ac_objext"'
   4572   { (eval echo "$as_me:4572: \"$ac_try\"") >&5
   4573   (eval $ac_try) 2>&5
   4574   ac_status=$?
   4575   echo "$as_me:4575: \$? = $ac_status" >&5
   4576   (exit "$ac_status"); }; }; then
   4577   cf_cv_xopen_source=no
   4578 else
   4579   echo "$as_me: failed program was:" >&5
   4580 cat "conftest.$ac_ext" >&5
   4581 cf_save="$CPPFLAGS"
   4582 
   4583 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   4584 	CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
   4585 
   4586 	 cat >"conftest.$ac_ext" <<_ACEOF
   4587 #line 4587 "configure"
   4588 #include "confdefs.h"
   4589 
   4590 #include <stdlib.h>
   4591 #include <string.h>
   4592 #include <sys/types.h>
   4593 
   4594 int
   4595 main (void)
   4596 {
   4597 
   4598 #ifdef _XOPEN_SOURCE
   4599 make an error
   4600 #endif
   4601   ;
   4602   return 0;
   4603 }
   4604 _ACEOF
   4605 rm -f "conftest.$ac_objext"
   4606 if { (eval echo "$as_me:4606: \"$ac_compile\"") >&5
   4607   (eval $ac_compile) 2>&5
   4608   ac_status=$?
   4609   echo "$as_me:4609: \$? = $ac_status" >&5
   4610   (exit "$ac_status"); } &&
   4611          { ac_try='test -s "conftest.$ac_objext"'
   4612   { (eval echo "$as_me:4612: \"$ac_try\"") >&5
   4613   (eval $ac_try) 2>&5
   4614   ac_status=$?
   4615   echo "$as_me:4615: \$? = $ac_status" >&5
   4616   (exit "$ac_status"); }; }; then
   4617   cf_cv_xopen_source=no
   4618 else
   4619   echo "$as_me: failed program was:" >&5
   4620 cat "conftest.$ac_ext" >&5
   4621 cf_cv_xopen_source=$cf_XOPEN_SOURCE
   4622 fi
   4623 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   4624 	CPPFLAGS="$cf_save"
   4625 
   4626 fi
   4627 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   4628 
   4629 fi
   4630 echo "$as_me:4630: result: $cf_cv_xopen_source" >&5
   4631 echo "${ECHO_T}$cf_cv_xopen_source" >&6
   4632 
   4633 if test "$cf_cv_xopen_source" != no ; then
   4634 
   4635 CFLAGS=`echo "$CFLAGS" | \
   4636 	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   4637 		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
   4638 
   4639 CPPFLAGS=`echo "$CPPFLAGS" | \
   4640 	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   4641 		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
   4642 
   4643 	cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
   4644 
   4645 cf_fix_cppflags=no
   4646 cf_new_cflags=
   4647 cf_new_cppflags=
   4648 cf_new_extra_cppflags=
   4649 
   4650 for cf_add_cflags in $cf_temp_xopen_source
   4651 do
   4652 case "$cf_fix_cppflags" in
   4653 (no)
   4654 	case "$cf_add_cflags" in
   4655 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   4656 		case "$cf_add_cflags" in
   4657 		(-D*)
   4658 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   4659 
   4660 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   4661 				&& test -z "${cf_tst_cflags}" \
   4662 				&& cf_fix_cppflags=yes
   4663 
   4664 			if test "$cf_fix_cppflags" = yes ; then
   4665 
   4666 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   4667 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   4668 
   4669 				continue
   4670 			elif test "${cf_tst_cflags}" = "\"'" ; then
   4671 
   4672 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   4673 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   4674 
   4675 				continue
   4676 			fi
   4677 			;;
   4678 		esac
   4679 		case "$CPPFLAGS" in
   4680 		(*$cf_add_cflags)
   4681 			;;
   4682 		(*)
   4683 			case "$cf_add_cflags" in
   4684 			(-D*)
   4685 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   4686 
   4687 CPPFLAGS=`echo "$CPPFLAGS" | \
   4688 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   4689 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   4690 
   4691 				;;
   4692 			esac
   4693 
   4694 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   4695 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   4696 
   4697 			;;
   4698 		esac
   4699 		;;
   4700 	(*)
   4701 
   4702 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   4703 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   4704 
   4705 		;;
   4706 	esac
   4707 	;;
   4708 (yes)
   4709 
   4710 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   4711 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   4712 
   4713 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   4714 
   4715 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   4716 		&& test -z "${cf_tst_cflags}" \
   4717 		&& cf_fix_cppflags=no
   4718 	;;
   4719 esac
   4720 done
   4721 
   4722 if test -n "$cf_new_cflags" ; then
   4723 
   4724 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   4725 	CFLAGS="${CFLAGS}$cf_new_cflags"
   4726 
   4727 fi
   4728 
   4729 if test -n "$cf_new_cppflags" ; then
   4730 
   4731 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   4732 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   4733 
   4734 fi
   4735 
   4736 if test -n "$cf_new_extra_cppflags" ; then
   4737 
   4738 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   4739 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   4740 
   4741 fi
   4742 
   4743 fi
   4744 
   4745 	fi
   4746 fi
   4747 fi # cf_cv_posix_visible
   4748 
   4749 echo "$as_me:4749: checking if SIGWINCH is defined" >&5
   4750 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
   4751 if test "${cf_cv_define_sigwinch+set}" = set; then
   4752   echo $ECHO_N "(cached) $ECHO_C" >&6
   4753 else
   4754 
   4755 	cat >"conftest.$ac_ext" <<_ACEOF
   4756 #line 4756 "configure"
   4757 #include "confdefs.h"
   4758 
   4759 #include <sys/types.h>
   4760 #include <sys/signal.h>
   4761 
   4762 int
   4763 main (void)
   4764 {
   4765 int x = SIGWINCH; (void)x
   4766   ;
   4767   return 0;
   4768 }
   4769 _ACEOF
   4770 rm -f "conftest.$ac_objext"
   4771 if { (eval echo "$as_me:4771: \"$ac_compile\"") >&5
   4772   (eval $ac_compile) 2>&5
   4773   ac_status=$?
   4774   echo "$as_me:4774: \$? = $ac_status" >&5
   4775   (exit "$ac_status"); } &&
   4776          { ac_try='test -s "conftest.$ac_objext"'
   4777   { (eval echo "$as_me:4777: \"$ac_try\"") >&5
   4778   (eval $ac_try) 2>&5
   4779   ac_status=$?
   4780   echo "$as_me:4780: \$? = $ac_status" >&5
   4781   (exit "$ac_status"); }; }; then
   4782   cf_cv_define_sigwinch=yes
   4783 else
   4784   echo "$as_me: failed program was:" >&5
   4785 cat "conftest.$ac_ext" >&5
   4786 cat >"conftest.$ac_ext" <<_ACEOF
   4787 #line 4787 "configure"
   4788 #include "confdefs.h"
   4789 
   4790 #undef _XOPEN_SOURCE
   4791 #undef _POSIX_SOURCE
   4792 #undef _POSIX_C_SOURCE
   4793 #include <sys/types.h>
   4794 #include <sys/signal.h>
   4795 
   4796 int
   4797 main (void)
   4798 {
   4799 int x = SIGWINCH; (void)x
   4800   ;
   4801   return 0;
   4802 }
   4803 _ACEOF
   4804 rm -f "conftest.$ac_objext"
   4805 if { (eval echo "$as_me:4805: \"$ac_compile\"") >&5
   4806   (eval $ac_compile) 2>&5
   4807   ac_status=$?
   4808   echo "$as_me:4808: \$? = $ac_status" >&5
   4809   (exit "$ac_status"); } &&
   4810          { ac_try='test -s "conftest.$ac_objext"'
   4811   { (eval echo "$as_me:4811: \"$ac_try\"") >&5
   4812   (eval $ac_try) 2>&5
   4813   ac_status=$?
   4814   echo "$as_me:4814: \$? = $ac_status" >&5
   4815   (exit "$ac_status"); }; }; then
   4816   cf_cv_define_sigwinch=maybe
   4817 else
   4818   echo "$as_me: failed program was:" >&5
   4819 cat "conftest.$ac_ext" >&5
   4820 cf_cv_define_sigwinch=no
   4821 fi
   4822 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   4823 
   4824 fi
   4825 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   4826 
   4827 fi
   4828 echo "$as_me:4828: result: $cf_cv_define_sigwinch" >&5
   4829 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
   4830 
   4831 if test "$cf_cv_define_sigwinch" = maybe ; then
   4832 echo "$as_me:4832: checking for actual SIGWINCH definition" >&5
   4833 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
   4834 if test "${cf_cv_fixup_sigwinch+set}" = set; then
   4835   echo $ECHO_N "(cached) $ECHO_C" >&6
   4836 else
   4837 
   4838 cf_cv_fixup_sigwinch=unknown
   4839 cf_sigwinch=32
   4840 while test "$cf_sigwinch" != 1
   4841 do
   4842 	cat >"conftest.$ac_ext" <<_ACEOF
   4843 #line 4843 "configure"
   4844 #include "confdefs.h"
   4845 
   4846 #undef _XOPEN_SOURCE
   4847 #undef _POSIX_SOURCE
   4848 #undef _POSIX_C_SOURCE
   4849 #include <sys/types.h>
   4850 #include <sys/signal.h>
   4851 
   4852 int
   4853 main (void)
   4854 {
   4855 
   4856 #if SIGWINCH != $cf_sigwinch
   4857 make an error
   4858 #endif
   4859 int x = SIGWINCH; (void)x
   4860   ;
   4861   return 0;
   4862 }
   4863 _ACEOF
   4864 rm -f "conftest.$ac_objext"
   4865 if { (eval echo "$as_me:4865: \"$ac_compile\"") >&5
   4866   (eval $ac_compile) 2>&5
   4867   ac_status=$?
   4868   echo "$as_me:4868: \$? = $ac_status" >&5
   4869   (exit "$ac_status"); } &&
   4870          { ac_try='test -s "conftest.$ac_objext"'
   4871   { (eval echo "$as_me:4871: \"$ac_try\"") >&5
   4872   (eval $ac_try) 2>&5
   4873   ac_status=$?
   4874   echo "$as_me:4874: \$? = $ac_status" >&5
   4875   (exit "$ac_status"); }; }; then
   4876   cf_cv_fixup_sigwinch=$cf_sigwinch
   4877 	 break
   4878 else
   4879   echo "$as_me: failed program was:" >&5
   4880 cat "conftest.$ac_ext" >&5
   4881 fi
   4882 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   4883 
   4884 cf_sigwinch="`expr "$cf_sigwinch" - 1`"
   4885 done
   4886 
   4887 fi
   4888 echo "$as_me:4888: result: $cf_cv_fixup_sigwinch" >&5
   4889 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
   4890 
   4891 	if test "$cf_cv_fixup_sigwinch" != unknown ; then
   4892 		CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
   4893 	fi
   4894 fi
   4895 
   4896 ###	checks for header files
   4897 
   4898 for ac_header in \
   4899 ncurses/curses.h \
   4900 ncurses/term.h \
   4901 stdlib.h \
   4902 sys/ptem.h sys/ttydefaults.h \
   4903 term.h \
   4904 termios.h \
   4905 unistd.h \
   4906 wchar.h \
   4907 
   4908 do
   4909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4910 echo "$as_me:4910: checking for $ac_header" >&5
   4911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   4912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   4913   echo $ECHO_N "(cached) $ECHO_C" >&6
   4914 else
   4915   cat >"conftest.$ac_ext" <<_ACEOF
   4916 #line 4916 "configure"
   4917 #include "confdefs.h"
   4918 #include <$ac_header>
   4919 _ACEOF
   4920 if { (eval echo "$as_me:4920: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   4921   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   4922   ac_status=$?
   4923   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   4924   rm -f conftest.er1
   4925   cat conftest.err >&5
   4926   echo "$as_me:4926: \$? = $ac_status" >&5
   4927   (exit "$ac_status"); } >/dev/null; then
   4928   if test -s conftest.err; then
   4929     ac_cpp_err=$ac_c_preproc_warn_flag
   4930   else
   4931     ac_cpp_err=
   4932   fi
   4933 else
   4934   ac_cpp_err=yes
   4935 fi
   4936 if test -z "$ac_cpp_err"; then
   4937   eval "$as_ac_Header=yes"
   4938 else
   4939   echo "$as_me: failed program was:" >&5
   4940   cat "conftest.$ac_ext" >&5
   4941   eval "$as_ac_Header=no"
   4942 fi
   4943 rm -f conftest.err "conftest.$ac_ext"
   4944 fi
   4945 echo "$as_me:4945: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
   4946 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
   4947 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
   4948   cat >>confdefs.h <<EOF
   4949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4950 EOF
   4951 
   4952 fi
   4953 done
   4954 
   4955 echo "$as_me:4955: checking whether time.h and sys/time.h may both be included" >&5
   4956 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
   4957 if test "${ac_cv_header_time+set}" = set; then
   4958   echo $ECHO_N "(cached) $ECHO_C" >&6
   4959 else
   4960   cat >"conftest.$ac_ext" <<_ACEOF
   4961 #line 4961 "configure"
   4962 #include "confdefs.h"
   4963 #include <sys/types.h>
   4964 #include <sys/time.h>
   4965 #include <time.h>
   4966 
   4967 int
   4968 main (void)
   4969 {
   4970 if ((struct tm *) 0)
   4971 return 0;
   4972   ;
   4973   return 0;
   4974 }
   4975 _ACEOF
   4976 rm -f "conftest.$ac_objext"
   4977 if { (eval echo "$as_me:4977: \"$ac_compile\"") >&5
   4978   (eval $ac_compile) 2>&5
   4979   ac_status=$?
   4980   echo "$as_me:4980: \$? = $ac_status" >&5
   4981   (exit "$ac_status"); } &&
   4982          { ac_try='test -s "conftest.$ac_objext"'
   4983   { (eval echo "$as_me:4983: \"$ac_try\"") >&5
   4984   (eval $ac_try) 2>&5
   4985   ac_status=$?
   4986   echo "$as_me:4986: \$? = $ac_status" >&5
   4987   (exit "$ac_status"); }; }; then
   4988   ac_cv_header_time=yes
   4989 else
   4990   echo "$as_me: failed program was:" >&5
   4991 cat "conftest.$ac_ext" >&5
   4992 ac_cv_header_time=no
   4993 fi
   4994 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   4995 fi
   4996 echo "$as_me:4996: result: $ac_cv_header_time" >&5
   4997 echo "${ECHO_T}$ac_cv_header_time" >&6
   4998 if test $ac_cv_header_time = yes; then
   4999 
   5000 cat >>confdefs.h <<\EOF
   5001 #define TIME_WITH_SYS_TIME 1
   5002 EOF
   5003 
   5004 fi
   5005 
   5006 echo "$as_me:5006: checking for nl_langinfo and CODESET" >&5
   5007 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
   5008 if test "${am_cv_langinfo_codeset+set}" = set; then
   5009   echo $ECHO_N "(cached) $ECHO_C" >&6
   5010 else
   5011   cat >"conftest.$ac_ext" <<_ACEOF
   5012 #line 5012 "configure"
   5013 #include "confdefs.h"
   5014 #include <langinfo.h>
   5015 int
   5016 main (void)
   5017 {
   5018 char* cs = nl_langinfo(CODESET); (void)cs
   5019   ;
   5020   return 0;
   5021 }
   5022 _ACEOF
   5023 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   5024 if { (eval echo "$as_me:5024: \"$ac_link\"") >&5
   5025   (eval $ac_link) 2>&5
   5026   ac_status=$?
   5027   echo "$as_me:5027: \$? = $ac_status" >&5
   5028   (exit "$ac_status"); } &&
   5029          { ac_try='test -s "conftest$ac_exeext"'
   5030   { (eval echo "$as_me:5030: \"$ac_try\"") >&5
   5031   (eval $ac_try) 2>&5
   5032   ac_status=$?
   5033   echo "$as_me:5033: \$? = $ac_status" >&5
   5034   (exit "$ac_status"); }; }; then
   5035   am_cv_langinfo_codeset=yes
   5036 else
   5037   echo "$as_me: failed program was:" >&5
   5038 cat "conftest.$ac_ext" >&5
   5039 am_cv_langinfo_codeset=no
   5040 fi
   5041 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   5042 
   5043 fi
   5044 echo "$as_me:5044: result: $am_cv_langinfo_codeset" >&5
   5045 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
   5046 	if test "$am_cv_langinfo_codeset" = yes; then
   5047 
   5048 cat >>confdefs.h <<\EOF
   5049 #define HAVE_LANGINFO_CODESET 1
   5050 EOF
   5051 
   5052 	fi
   5053 
   5054 ###	checks for typedefs
   5055 
   5056 echo "$as_me:5056: checking for signal global datatype" >&5
   5057 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
   5058 if test "${cf_cv_sig_atomic_t+set}" = set; then
   5059   echo $ECHO_N "(cached) $ECHO_C" >&6
   5060 else
   5061 
   5062 	for cf_type in \
   5063 		"volatile sig_atomic_t" \
   5064 		"sig_atomic_t" \
   5065 		"int"
   5066 	do
   5067 	cat >"conftest.$ac_ext" <<_ACEOF
   5068 #line 5068 "configure"
   5069 #include "confdefs.h"
   5070 
   5071 #include <sys/types.h>
   5072 #include <signal.h>
   5073 #include <stdio.h>
   5074 
   5075 extern $cf_type x;
   5076 $cf_type x;
   5077 static void handler(int sig)
   5078 {
   5079 	(void)sig;
   5080 	x = 5;
   5081 }
   5082 int
   5083 main (void)
   5084 {
   5085 signal(SIGINT, handler);
   5086 		 x = 1
   5087   ;
   5088   return 0;
   5089 }
   5090 _ACEOF
   5091 rm -f "conftest.$ac_objext"
   5092 if { (eval echo "$as_me:5092: \"$ac_compile\"") >&5
   5093   (eval $ac_compile) 2>&5
   5094   ac_status=$?
   5095   echo "$as_me:5095: \$? = $ac_status" >&5
   5096   (exit "$ac_status"); } &&
   5097          { ac_try='test -s "conftest.$ac_objext"'
   5098   { (eval echo "$as_me:5098: \"$ac_try\"") >&5
   5099   (eval $ac_try) 2>&5
   5100   ac_status=$?
   5101   echo "$as_me:5101: \$? = $ac_status" >&5
   5102   (exit "$ac_status"); }; }; then
   5103   cf_cv_sig_atomic_t=$cf_type
   5104 else
   5105   echo "$as_me: failed program was:" >&5
   5106 cat "conftest.$ac_ext" >&5
   5107 cf_cv_sig_atomic_t=no
   5108 fi
   5109 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   5110 		test "$cf_cv_sig_atomic_t" != no && break
   5111 	done
   5112 
   5113 fi
   5114 
   5115 echo "$as_me:5115: result: $cf_cv_sig_atomic_t" >&5
   5116 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
   5117 test "$cf_cv_sig_atomic_t" != no &&
   5118 cat >>confdefs.h <<EOF
   5119 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
   5120 EOF
   5121 
   5122 echo "$as_me:5122: checking for ANSI C header files" >&5
   5123 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
   5124 if test "${ac_cv_header_stdc+set}" = set; then
   5125   echo $ECHO_N "(cached) $ECHO_C" >&6
   5126 else
   5127   cat >"conftest.$ac_ext" <<_ACEOF
   5128 #line 5128 "configure"
   5129 #include "confdefs.h"
   5130 #include <stdlib.h>
   5131 #include <stdarg.h>
   5132 #include <string.h>
   5133 #include <float.h>
   5134 
   5135 _ACEOF
   5136 if { (eval echo "$as_me:5136: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   5137   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   5138   ac_status=$?
   5139   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   5140   rm -f conftest.er1
   5141   cat conftest.err >&5
   5142   echo "$as_me:5142: \$? = $ac_status" >&5
   5143   (exit "$ac_status"); } >/dev/null; then
   5144   if test -s conftest.err; then
   5145     ac_cpp_err=$ac_c_preproc_warn_flag
   5146   else
   5147     ac_cpp_err=
   5148   fi
   5149 else
   5150   ac_cpp_err=yes
   5151 fi
   5152 if test -z "$ac_cpp_err"; then
   5153   ac_cv_header_stdc=yes
   5154 else
   5155   echo "$as_me: failed program was:" >&5
   5156   cat "conftest.$ac_ext" >&5
   5157   ac_cv_header_stdc=no
   5158 fi
   5159 rm -f conftest.err "conftest.$ac_ext"
   5160 
   5161 if test $ac_cv_header_stdc = yes; then
   5162   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   5163   cat >"conftest.$ac_ext" <<_ACEOF
   5164 #line 5164 "configure"
   5165 #include "confdefs.h"
   5166 #include <string.h>
   5167 
   5168 _ACEOF
   5169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5170   $EGREP "memchr" >/dev/null 2>&1; then
   5171   :
   5172 else
   5173   ac_cv_header_stdc=no
   5174 fi
   5175 rm -rf conftest*
   5176 
   5177 fi
   5178 
   5179 if test $ac_cv_header_stdc = yes; then
   5180   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   5181   cat >"conftest.$ac_ext" <<_ACEOF
   5182 #line 5182 "configure"
   5183 #include "confdefs.h"
   5184 #include <stdlib.h>
   5185 
   5186 _ACEOF
   5187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5188   $EGREP "free" >/dev/null 2>&1; then
   5189   :
   5190 else
   5191   ac_cv_header_stdc=no
   5192 fi
   5193 rm -rf conftest*
   5194 
   5195 fi
   5196 
   5197 if test $ac_cv_header_stdc = yes; then
   5198   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   5199   if test "$cross_compiling" = yes; then
   5200   :
   5201 else
   5202   cat >"conftest.$ac_ext" <<_ACEOF
   5203 #line 5203 "configure"
   5204 #include "confdefs.h"
   5205 #include <ctype.h>
   5206 #if ((' ' & 0x0FF) == 0x020)
   5207 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   5208 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   5209 #else
   5210 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
   5211                      || ('j' <= (c) && (c) <= 'r') \
   5212                      || ('s' <= (c) && (c) <= 'z'))
   5213 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   5214 #endif
   5215 
   5216 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   5217 int
   5218 main (void)
   5219 {
   5220   int i;
   5221   for (i = 0; i < 256; i++)
   5222     if (XOR (islower (i), ISLOWER (i))
   5223         || toupper (i) != TOUPPER (i))
   5224       $ac_main_return(2);
   5225   $ac_main_return (0);
   5226 }
   5227 _ACEOF
   5228 rm -f "conftest$ac_exeext"
   5229 if { (eval echo "$as_me:5229: \"$ac_link\"") >&5
   5230   (eval $ac_link) 2>&5
   5231   ac_status=$?
   5232   echo "$as_me:5232: \$? = $ac_status" >&5
   5233   (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
   5234   { (eval echo "$as_me:5234: \"$ac_try\"") >&5
   5235   (eval $ac_try) 2>&5
   5236   ac_status=$?
   5237   echo "$as_me:5237: \$? = $ac_status" >&5
   5238   (exit "$ac_status"); }; }; then
   5239   :
   5240 else
   5241   echo "$as_me: program exited with status $ac_status" >&5
   5242 echo "$as_me: failed program was:" >&5
   5243 cat "conftest.$ac_ext" >&5
   5244 ac_cv_header_stdc=no
   5245 fi
   5246 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
   5247 fi
   5248 fi
   5249 fi
   5250 echo "$as_me:5250: result: $ac_cv_header_stdc" >&5
   5251 echo "${ECHO_T}$ac_cv_header_stdc" >&6
   5252 if test $ac_cv_header_stdc = yes; then
   5253 
   5254 cat >>confdefs.h <<\EOF
   5255 #define STDC_HEADERS 1
   5256 EOF
   5257 
   5258 fi
   5259 
   5260 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   5261 
   5262 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   5263                   inttypes.h stdint.h unistd.h
   5264 do
   5265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5266 echo "$as_me:5266: checking for $ac_header" >&5
   5267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   5268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   5269   echo $ECHO_N "(cached) $ECHO_C" >&6
   5270 else
   5271   cat >"conftest.$ac_ext" <<_ACEOF
   5272 #line 5272 "configure"
   5273 #include "confdefs.h"
   5274 $ac_includes_default
   5275 #include <$ac_header>
   5276 _ACEOF
   5277 rm -f "conftest.$ac_objext"
   5278 if { (eval echo "$as_me:5278: \"$ac_compile\"") >&5
   5279   (eval $ac_compile) 2>&5
   5280   ac_status=$?
   5281   echo "$as_me:5281: \$? = $ac_status" >&5
   5282   (exit "$ac_status"); } &&
   5283          { ac_try='test -s "conftest.$ac_objext"'
   5284   { (eval echo "$as_me:5284: \"$ac_try\"") >&5
   5285   (eval $ac_try) 2>&5
   5286   ac_status=$?
   5287   echo "$as_me:5287: \$? = $ac_status" >&5
   5288   (exit "$ac_status"); }; }; then
   5289   eval "$as_ac_Header=yes"
   5290 else
   5291   echo "$as_me: failed program was:" >&5
   5292 cat "conftest.$ac_ext" >&5
   5293 eval "$as_ac_Header=no"
   5294 fi
   5295 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   5296 fi
   5297 echo "$as_me:5297: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
   5298 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
   5299 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
   5300   cat >>confdefs.h <<EOF
   5301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5302 EOF
   5303 
   5304 fi
   5305 done
   5306 
   5307 echo "$as_me:5307: checking for time_t" >&5
   5308 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
   5309 if test "${ac_cv_type_time_t+set}" = set; then
   5310   echo $ECHO_N "(cached) $ECHO_C" >&6
   5311 else
   5312   cat >"conftest.$ac_ext" <<_ACEOF
   5313 #line 5313 "configure"
   5314 #include "confdefs.h"
   5315 $ac_includes_default
   5316 int
   5317 main (void)
   5318 {
   5319 if ((time_t *) 0)
   5320   return 0;
   5321 if (sizeof (time_t))
   5322   return 0;
   5323   ;
   5324   return 0;
   5325 }
   5326 _ACEOF
   5327 rm -f "conftest.$ac_objext"
   5328 if { (eval echo "$as_me:5328: \"$ac_compile\"") >&5
   5329   (eval $ac_compile) 2>&5
   5330   ac_status=$?
   5331   echo "$as_me:5331: \$? = $ac_status" >&5
   5332   (exit "$ac_status"); } &&
   5333          { ac_try='test -s "conftest.$ac_objext"'
   5334   { (eval echo "$as_me:5334: \"$ac_try\"") >&5
   5335   (eval $ac_try) 2>&5
   5336   ac_status=$?
   5337   echo "$as_me:5337: \$? = $ac_status" >&5
   5338   (exit "$ac_status"); }; }; then
   5339   ac_cv_type_time_t=yes
   5340 else
   5341   echo "$as_me: failed program was:" >&5
   5342 cat "conftest.$ac_ext" >&5
   5343 ac_cv_type_time_t=no
   5344 fi
   5345 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   5346 fi
   5347 echo "$as_me:5347: result: $ac_cv_type_time_t" >&5
   5348 echo "${ECHO_T}$ac_cv_type_time_t" >&6
   5349 if test "$ac_cv_type_time_t" = yes; then
   5350   :
   5351 else
   5352 
   5353 cat >>confdefs.h <<EOF
   5354 #define time_t long
   5355 EOF
   5356 
   5357 fi
   5358 
   5359 echo "$as_me:5359: checking for cc_t in <termios.h> or <termio.h>" >&5
   5360 echo $ECHO_N "checking for cc_t in <termios.h> or <termio.h>... $ECHO_C" >&6
   5361 if test "${cf_cv_type_cc_t+set}" = set; then
   5362   echo $ECHO_N "(cached) $ECHO_C" >&6
   5363 else
   5364 
   5365 	cat >"conftest.$ac_ext" <<_ACEOF
   5366 #line 5366 "configure"
   5367 #include "confdefs.h"
   5368 
   5369 #include <sys/types.h>
   5370 #if defined(HAVE_TERMIOS_H)
   5371 #include <termios.h>
   5372 #else
   5373 #include <termio.h>
   5374 #include <sys/ioctl.h>
   5375 #endif
   5376 
   5377 int
   5378 main (void)
   5379 {
   5380 cc_t x; (void)x
   5381   ;
   5382   return 0;
   5383 }
   5384 _ACEOF
   5385 rm -f "conftest.$ac_objext"
   5386 if { (eval echo "$as_me:5386: \"$ac_compile\"") >&5
   5387   (eval $ac_compile) 2>&5
   5388   ac_status=$?
   5389   echo "$as_me:5389: \$? = $ac_status" >&5
   5390   (exit "$ac_status"); } &&
   5391          { ac_try='test -s "conftest.$ac_objext"'
   5392   { (eval echo "$as_me:5392: \"$ac_try\"") >&5
   5393   (eval $ac_try) 2>&5
   5394   ac_status=$?
   5395   echo "$as_me:5395: \$? = $ac_status" >&5
   5396   (exit "$ac_status"); }; }; then
   5397   cf_cv_type_cc_t=yes
   5398 else
   5399   echo "$as_me: failed program was:" >&5
   5400 cat "conftest.$ac_ext" >&5
   5401 cf_cv_type_cc_t=no
   5402 fi
   5403 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   5404 
   5405 fi
   5406 
   5407 echo "$as_me:5407: result: $cf_cv_type_cc_t" >&5
   5408 echo "${ECHO_T}$cf_cv_type_cc_t" >&6
   5409 test $cf_cv_type_cc_t = no &&
   5410 cat >>confdefs.h <<\EOF
   5411 #define cc_t unsigned char
   5412 EOF
   5413 
   5414 echo "$as_me:5414: checking for mode_t" >&5
   5415 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
   5416 if test "${ac_cv_type_mode_t+set}" = set; then
   5417   echo $ECHO_N "(cached) $ECHO_C" >&6
   5418 else
   5419   cat >"conftest.$ac_ext" <<_ACEOF
   5420 #line 5420 "configure"
   5421 #include "confdefs.h"
   5422 $ac_includes_default
   5423 int
   5424 main (void)
   5425 {
   5426 if ((mode_t *) 0)
   5427   return 0;
   5428 if (sizeof (mode_t))
   5429   return 0;
   5430   ;
   5431   return 0;
   5432 }
   5433 _ACEOF
   5434 rm -f "conftest.$ac_objext"
   5435 if { (eval echo "$as_me:5435: \"$ac_compile\"") >&5
   5436   (eval $ac_compile) 2>&5
   5437   ac_status=$?
   5438   echo "$as_me:5438: \$? = $ac_status" >&5
   5439   (exit "$ac_status"); } &&
   5440          { ac_try='test -s "conftest.$ac_objext"'
   5441   { (eval echo "$as_me:5441: \"$ac_try\"") >&5
   5442   (eval $ac_try) 2>&5
   5443   ac_status=$?
   5444   echo "$as_me:5444: \$? = $ac_status" >&5
   5445   (exit "$ac_status"); }; }; then
   5446   ac_cv_type_mode_t=yes
   5447 else
   5448   echo "$as_me: failed program was:" >&5
   5449 cat "conftest.$ac_ext" >&5
   5450 ac_cv_type_mode_t=no
   5451 fi
   5452 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   5453 fi
   5454 echo "$as_me:5454: result: $ac_cv_type_mode_t" >&5
   5455 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
   5456 if test "$ac_cv_type_mode_t" = yes; then
   5457   :
   5458 else
   5459 
   5460 cat >>confdefs.h <<EOF
   5461 #define mode_t int
   5462 EOF
   5463 
   5464 fi
   5465 
   5466 echo "$as_me:5466: checking for pid_t" >&5
   5467 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
   5468 if test "${ac_cv_type_pid_t+set}" = set; then
   5469   echo $ECHO_N "(cached) $ECHO_C" >&6
   5470 else
   5471   cat >"conftest.$ac_ext" <<_ACEOF
   5472 #line 5472 "configure"
   5473 #include "confdefs.h"
   5474 $ac_includes_default
   5475 int
   5476 main (void)
   5477 {
   5478 if ((pid_t *) 0)
   5479   return 0;
   5480 if (sizeof (pid_t))
   5481   return 0;
   5482   ;
   5483   return 0;
   5484 }
   5485 _ACEOF
   5486 rm -f "conftest.$ac_objext"
   5487 if { (eval echo "$as_me:5487: \"$ac_compile\"") >&5
   5488   (eval $ac_compile) 2>&5
   5489   ac_status=$?
   5490   echo "$as_me:5490: \$? = $ac_status" >&5
   5491   (exit "$ac_status"); } &&
   5492          { ac_try='test -s "conftest.$ac_objext"'
   5493   { (eval echo "$as_me:5493: \"$ac_try\"") >&5
   5494   (eval $ac_try) 2>&5
   5495   ac_status=$?
   5496   echo "$as_me:5496: \$? = $ac_status" >&5
   5497   (exit "$ac_status"); }; }; then
   5498   ac_cv_type_pid_t=yes
   5499 else
   5500   echo "$as_me: failed program was:" >&5
   5501 cat "conftest.$ac_ext" >&5
   5502 ac_cv_type_pid_t=no
   5503 fi
   5504 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   5505 fi
   5506 echo "$as_me:5506: result: $ac_cv_type_pid_t" >&5
   5507 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
   5508 if test "$ac_cv_type_pid_t" = yes; then
   5509   :
   5510 else
   5511 
   5512 cat >>confdefs.h <<EOF
   5513 #define pid_t int
   5514 EOF
   5515 
   5516 fi
   5517 
   5518 echo "$as_me:5518: checking for uid_t in sys/types.h" >&5
   5519 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
   5520 if test "${ac_cv_type_uid_t+set}" = set; then
   5521   echo $ECHO_N "(cached) $ECHO_C" >&6
   5522 else
   5523   cat >"conftest.$ac_ext" <<_ACEOF
   5524 #line 5524 "configure"
   5525 #include "confdefs.h"
   5526 #include <sys/types.h>
   5527 
   5528 _ACEOF
   5529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5530   $EGREP "uid_t" >/dev/null 2>&1; then
   5531   ac_cv_type_uid_t=yes
   5532 else
   5533   ac_cv_type_uid_t=no
   5534 fi
   5535 rm -rf conftest*
   5536 
   5537 fi
   5538 echo "$as_me:5538: result: $ac_cv_type_uid_t" >&5
   5539 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
   5540 if test $ac_cv_type_uid_t = no; then
   5541 
   5542 cat >>confdefs.h <<\EOF
   5543 #define uid_t int
   5544 EOF
   5545 
   5546 cat >>confdefs.h <<\EOF
   5547 #define gid_t int
   5548 EOF
   5549 
   5550 fi
   5551 
   5552 echo "$as_me:5552: checking for off_t" >&5
   5553 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
   5554 if test "${ac_cv_type_off_t+set}" = set; then
   5555   echo $ECHO_N "(cached) $ECHO_C" >&6
   5556 else
   5557   cat >"conftest.$ac_ext" <<_ACEOF
   5558 #line 5558 "configure"
   5559 #include "confdefs.h"
   5560 $ac_includes_default
   5561 int
   5562 main (void)
   5563 {
   5564 if ((off_t *) 0)
   5565   return 0;
   5566 if (sizeof (off_t))
   5567   return 0;
   5568   ;
   5569   return 0;
   5570 }
   5571 _ACEOF
   5572 rm -f "conftest.$ac_objext"
   5573 if { (eval echo "$as_me:5573: \"$ac_compile\"") >&5
   5574   (eval $ac_compile) 2>&5
   5575   ac_status=$?
   5576   echo "$as_me:5576: \$? = $ac_status" >&5
   5577   (exit "$ac_status"); } &&
   5578          { ac_try='test -s "conftest.$ac_objext"'
   5579   { (eval echo "$as_me:5579: \"$ac_try\"") >&5
   5580   (eval $ac_try) 2>&5
   5581   ac_status=$?
   5582   echo "$as_me:5582: \$? = $ac_status" >&5
   5583   (exit "$ac_status"); }; }; then
   5584   ac_cv_type_off_t=yes
   5585 else
   5586   echo "$as_me: failed program was:" >&5
   5587 cat "conftest.$ac_ext" >&5
   5588 ac_cv_type_off_t=no
   5589 fi
   5590 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   5591 fi
   5592 echo "$as_me:5592: result: $ac_cv_type_off_t" >&5
   5593 echo "${ECHO_T}$ac_cv_type_off_t" >&6
   5594 if test "$ac_cv_type_off_t" = yes; then
   5595   :
   5596 else
   5597 
   5598 cat >>confdefs.h <<EOF
   5599 #define off_t long
   5600 EOF
   5601 
   5602 fi
   5603 
   5604 ###	checks for library functions
   5605 
   5606 for ac_func in \
   5607 	gethostname \
   5608 	getusershell \
   5609 	endusershell \
   5610 	getlogin \
   5611 	initgroups \
   5612 	mkdtemp \
   5613 	putenv \
   5614 	unsetenv \
   5615 	sched_yield \
   5616 	setpgid \
   5617 	strftime \
   5618 	tcgetattr \
   5619 	waitpid \
   5620 	wcswidth \
   5621 	wcwidth
   5622 do
   5623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   5624 echo "$as_me:5624: checking for $ac_func" >&5
   5625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   5626 if eval "test \"\${$as_ac_var+set}\" = set"; then
   5627   echo $ECHO_N "(cached) $ECHO_C" >&6
   5628 else
   5629   cat >"conftest.$ac_ext" <<_ACEOF
   5630 #line 5630 "configure"
   5631 #include "confdefs.h"
   5632 #define $ac_func autoconf_temporary
   5633 #include <limits.h>	/* least-intrusive standard header which defines gcc2 __stub macros */
   5634 #undef $ac_func
   5635 
   5636 #ifdef __cplusplus
   5637 extern "C"
   5638 #endif
   5639 
   5640 /* We use char because int might match the return type of a gcc2
   5641    builtin and then its argument prototype would still apply.  */
   5642 char $ac_func (void);
   5643 
   5644 int
   5645 main (void)
   5646 {
   5647 
   5648 /* The GNU C library defines stubs for functions which it implements
   5649     to always fail with ENOSYS.  Some functions are actually named
   5650     something starting with __ and the normal name is an alias.  */
   5651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   5652 #error found stub for $ac_func
   5653 #endif
   5654 
   5655 	return $ac_func ();
   5656   ;
   5657   return 0;
   5658 }
   5659 _ACEOF
   5660 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   5661 if { (eval echo "$as_me:5661: \"$ac_link\"") >&5
   5662   (eval $ac_link) 2>&5
   5663   ac_status=$?
   5664   echo "$as_me:5664: \$? = $ac_status" >&5
   5665   (exit "$ac_status"); } &&
   5666          { ac_try='test -s "conftest$ac_exeext"'
   5667   { (eval echo "$as_me:5667: \"$ac_try\"") >&5
   5668   (eval $ac_try) 2>&5
   5669   ac_status=$?
   5670   echo "$as_me:5670: \$? = $ac_status" >&5
   5671   (exit "$ac_status"); }; }; then
   5672   eval "$as_ac_var=yes"
   5673 else
   5674   echo "$as_me: failed program was:" >&5
   5675 cat "conftest.$ac_ext" >&5
   5676 eval "$as_ac_var=no"
   5677 fi
   5678 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   5679 fi
   5680 echo "$as_me:5680: result: `eval echo '${'"$as_ac_var"'}'`" >&5
   5681 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
   5682 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
   5683   cat >>confdefs.h <<EOF
   5684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   5685 EOF
   5686 
   5687 fi
   5688 done
   5689 
   5690 for ac_header in lastlog.h paths.h
   5691 do
   5692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5693 echo "$as_me:5693: checking for $ac_header" >&5
   5694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   5695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   5696   echo $ECHO_N "(cached) $ECHO_C" >&6
   5697 else
   5698   cat >"conftest.$ac_ext" <<_ACEOF
   5699 #line 5699 "configure"
   5700 #include "confdefs.h"
   5701 #include <$ac_header>
   5702 _ACEOF
   5703 if { (eval echo "$as_me:5703: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   5704   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   5705   ac_status=$?
   5706   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   5707   rm -f conftest.er1
   5708   cat conftest.err >&5
   5709   echo "$as_me:5709: \$? = $ac_status" >&5
   5710   (exit "$ac_status"); } >/dev/null; then
   5711   if test -s conftest.err; then
   5712     ac_cpp_err=$ac_c_preproc_warn_flag
   5713   else
   5714     ac_cpp_err=
   5715   fi
   5716 else
   5717   ac_cpp_err=yes
   5718 fi
   5719 if test -z "$ac_cpp_err"; then
   5720   eval "$as_ac_Header=yes"
   5721 else
   5722   echo "$as_me: failed program was:" >&5
   5723   cat "conftest.$ac_ext" >&5
   5724   eval "$as_ac_Header=no"
   5725 fi
   5726 rm -f conftest.err "conftest.$ac_ext"
   5727 fi
   5728 echo "$as_me:5728: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
   5729 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
   5730 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
   5731   cat >>confdefs.h <<EOF
   5732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5733 EOF
   5734 
   5735 fi
   5736 done
   5737 
   5738 echo "$as_me:5738: checking for lastlog path" >&5
   5739 echo $ECHO_N "checking for lastlog path... $ECHO_C" >&6
   5740 if test "${cf_cv_path_lastlog+set}" = set; then
   5741   echo $ECHO_N "(cached) $ECHO_C" >&6
   5742 else
   5743 
   5744 cat >"conftest.$ac_ext" <<_ACEOF
   5745 #line 5745 "configure"
   5746 #include "confdefs.h"
   5747 
   5748 #include <sys/types.h>
   5749 #ifdef HAVE_LASTLOG_H
   5750 #include <lastlog.h>
   5751 #else
   5752 #ifdef HAVE_PATHS_H
   5753 #include <paths.h>
   5754 #endif
   5755 #endif
   5756 int
   5757 main (void)
   5758 {
   5759 char *path = _PATH_LASTLOG; (void)path
   5760   ;
   5761   return 0;
   5762 }
   5763 _ACEOF
   5764 rm -f "conftest.$ac_objext"
   5765 if { (eval echo "$as_me:5765: \"$ac_compile\"") >&5
   5766   (eval $ac_compile) 2>&5
   5767   ac_status=$?
   5768   echo "$as_me:5768: \$? = $ac_status" >&5
   5769   (exit "$ac_status"); } &&
   5770          { ac_try='test -s "conftest.$ac_objext"'
   5771   { (eval echo "$as_me:5771: \"$ac_try\"") >&5
   5772   (eval $ac_try) 2>&5
   5773   ac_status=$?
   5774   echo "$as_me:5774: \$? = $ac_status" >&5
   5775   (exit "$ac_status"); }; }; then
   5776   cf_cv_path_lastlog="_PATH_LASTLOG"
   5777 else
   5778   echo "$as_me: failed program was:" >&5
   5779 cat "conftest.$ac_ext" >&5
   5780 if test -f /usr/adm/lastlog ; then
   5781 	 	cf_cv_path_lastlog=/usr/adm/lastlog
   5782 	else
   5783 		cf_cv_path_lastlog=no
   5784 	fi
   5785 fi
   5786 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   5787 
   5788 fi
   5789 echo "$as_me:5789: result: $cf_cv_path_lastlog" >&5
   5790 echo "${ECHO_T}$cf_cv_path_lastlog" >&6
   5791 test "$cf_cv_path_lastlog" != no &&
   5792 cat >>confdefs.h <<\EOF
   5793 #define USE_LASTLOG 1
   5794 EOF
   5795 
   5796 echo "$as_me:5796: checking for utmp implementation" >&5
   5797 echo $ECHO_N "checking for utmp implementation... $ECHO_C" >&6
   5798 if test "${cf_cv_have_utmp+set}" = set; then
   5799   echo $ECHO_N "(cached) $ECHO_C" >&6
   5800 else
   5801 
   5802 	cf_cv_have_utmp=no
   5803 for cf_header in utmpx utmp ; do
   5804 cf_utmp_includes="
   5805 #include <sys/types.h>
   5806 #include <${cf_header}.h>
   5807 #define getutent getutxent
   5808 #ifdef USE_LASTLOG
   5809 #include <lastlog.h>	/* may conflict with utmpx.h on Linux */
   5810 #endif
   5811 "
   5812 	cat >"conftest.$ac_ext" <<_ACEOF
   5813 #line 5813 "configure"
   5814 #include "confdefs.h"
   5815 $cf_utmp_includes
   5816 int
   5817 main (void)
   5818 {
   5819 struct $cf_header x;
   5820 	 char *name = x.ut_name; /* utmp.h and compatible definitions */
   5821 	 (void)x;
   5822 	 (void)name;
   5823 
   5824   ;
   5825   return 0;
   5826 }
   5827 _ACEOF
   5828 rm -f "conftest.$ac_objext"
   5829 if { (eval echo "$as_me:5829: \"$ac_compile\"") >&5
   5830   (eval $ac_compile) 2>&5
   5831   ac_status=$?
   5832   echo "$as_me:5832: \$? = $ac_status" >&5
   5833   (exit "$ac_status"); } &&
   5834          { ac_try='test -s "conftest.$ac_objext"'
   5835   { (eval echo "$as_me:5835: \"$ac_try\"") >&5
   5836   (eval $ac_try) 2>&5
   5837   ac_status=$?
   5838   echo "$as_me:5838: \$? = $ac_status" >&5
   5839   (exit "$ac_status"); }; }; then
   5840   cf_cv_have_utmp=$cf_header
   5841 	 break
   5842 else
   5843   echo "$as_me: failed program was:" >&5
   5844 cat "conftest.$ac_ext" >&5
   5845 
   5846 	cat >"conftest.$ac_ext" <<_ACEOF
   5847 #line 5847 "configure"
   5848 #include "confdefs.h"
   5849 $cf_utmp_includes
   5850 int
   5851 main (void)
   5852 {
   5853 struct $cf_header x;
   5854 	 char *name = x.ut_user; /* utmpx.h must declare this */
   5855 	 (void)x;
   5856 	 (void)name;
   5857 
   5858   ;
   5859   return 0;
   5860 }
   5861 _ACEOF
   5862 rm -f "conftest.$ac_objext"
   5863 if { (eval echo "$as_me:5863: \"$ac_compile\"") >&5
   5864   (eval $ac_compile) 2>&5
   5865   ac_status=$?
   5866   echo "$as_me:5866: \$? = $ac_status" >&5
   5867   (exit "$ac_status"); } &&
   5868          { ac_try='test -s "conftest.$ac_objext"'
   5869   { (eval echo "$as_me:5869: \"$ac_try\"") >&5
   5870   (eval $ac_try) 2>&5
   5871   ac_status=$?
   5872   echo "$as_me:5872: \$? = $ac_status" >&5
   5873   (exit "$ac_status"); }; }; then
   5874   cf_cv_have_utmp=$cf_header
   5875 	 break
   5876 
   5877 else
   5878   echo "$as_me: failed program was:" >&5
   5879 cat "conftest.$ac_ext" >&5
   5880 fi
   5881 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   5882 fi
   5883 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   5884 done
   5885 
   5886 fi
   5887 echo "$as_me:5887: result: $cf_cv_have_utmp" >&5
   5888 echo "${ECHO_T}$cf_cv_have_utmp" >&6
   5889 
   5890 if test "$cf_cv_have_utmp" != no ; then
   5891 
   5892 cat >>confdefs.h <<\EOF
   5893 #define HAVE_UTMP 1
   5894 EOF
   5895 
   5896 	test "$cf_cv_have_utmp" = utmpx &&
   5897 cat >>confdefs.h <<\EOF
   5898 #define UTMPX_FOR_UTMP 1
   5899 EOF
   5900 
   5901 if test "$cf_cv_have_utmp" != no ; then
   5902 echo "$as_me:5902: checking if ${cf_cv_have_utmp}.ut_host is declared" >&5
   5903 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_host is declared... $ECHO_C" >&6
   5904 if test "${cf_cv_have_utmp_ut_host+set}" = set; then
   5905   echo $ECHO_N "(cached) $ECHO_C" >&6
   5906 else
   5907 
   5908 	cat >"conftest.$ac_ext" <<_ACEOF
   5909 #line 5909 "configure"
   5910 #include "confdefs.h"
   5911 
   5912 #include <sys/types.h>
   5913 #include <${cf_cv_have_utmp}.h>
   5914 int
   5915 main (void)
   5916 {
   5917 struct $cf_cv_have_utmp x;
   5918 	 char *y = &x.ut_host[0];
   5919 	 (void)x;
   5920 	 (void)y
   5921   ;
   5922   return 0;
   5923 }
   5924 _ACEOF
   5925 rm -f "conftest.$ac_objext"
   5926 if { (eval echo "$as_me:5926: \"$ac_compile\"") >&5
   5927   (eval $ac_compile) 2>&5
   5928   ac_status=$?
   5929   echo "$as_me:5929: \$? = $ac_status" >&5
   5930   (exit "$ac_status"); } &&
   5931          { ac_try='test -s "conftest.$ac_objext"'
   5932   { (eval echo "$as_me:5932: \"$ac_try\"") >&5
   5933   (eval $ac_try) 2>&5
   5934   ac_status=$?
   5935   echo "$as_me:5935: \$? = $ac_status" >&5
   5936   (exit "$ac_status"); }; }; then
   5937   cf_cv_have_utmp_ut_host=yes
   5938 else
   5939   echo "$as_me: failed program was:" >&5
   5940 cat "conftest.$ac_ext" >&5
   5941 cf_cv_have_utmp_ut_host=no
   5942 fi
   5943 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   5944 
   5945 fi
   5946 
   5947 echo "$as_me:5947: result: $cf_cv_have_utmp_ut_host" >&5
   5948 echo "${ECHO_T}$cf_cv_have_utmp_ut_host" >&6
   5949 test "$cf_cv_have_utmp_ut_host" != no &&
   5950 cat >>confdefs.h <<\EOF
   5951 #define HAVE_UTMP_UT_HOST 1
   5952 EOF
   5953 
   5954 fi
   5955 
   5956 if test "$cf_cv_have_utmp" != no ; then
   5957 echo "$as_me:5957: checking if ${cf_cv_have_utmp}.ut_syslen is declared" >&5
   5958 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_syslen is declared... $ECHO_C" >&6
   5959 if test "${cf_cv_have_utmp_ut_syslen+set}" = set; then
   5960   echo $ECHO_N "(cached) $ECHO_C" >&6
   5961 else
   5962 
   5963 	cat >"conftest.$ac_ext" <<_ACEOF
   5964 #line 5964 "configure"
   5965 #include "confdefs.h"
   5966 
   5967 #include <sys/types.h>
   5968 #include <${cf_cv_have_utmp}.h>
   5969 int
   5970 main (void)
   5971 {
   5972 struct $cf_cv_have_utmp x;
   5973 	 int y = x.ut_syslen;
   5974 	 (void)x;
   5975 	 (void)y
   5976   ;
   5977   return 0;
   5978 }
   5979 _ACEOF
   5980 rm -f "conftest.$ac_objext"
   5981 if { (eval echo "$as_me:5981: \"$ac_compile\"") >&5
   5982   (eval $ac_compile) 2>&5
   5983   ac_status=$?
   5984   echo "$as_me:5984: \$? = $ac_status" >&5
   5985   (exit "$ac_status"); } &&
   5986          { ac_try='test -s "conftest.$ac_objext"'
   5987   { (eval echo "$as_me:5987: \"$ac_try\"") >&5
   5988   (eval $ac_try) 2>&5
   5989   ac_status=$?
   5990   echo "$as_me:5990: \$? = $ac_status" >&5
   5991   (exit "$ac_status"); }; }; then
   5992   cf_cv_have_utmp_ut_syslen=yes
   5993 else
   5994   echo "$as_me: failed program was:" >&5
   5995 cat "conftest.$ac_ext" >&5
   5996 cf_cv_have_utmp_ut_syslen=no
   5997 fi
   5998 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   5999 
   6000 fi
   6001 
   6002 echo "$as_me:6002: result: $cf_cv_have_utmp_ut_syslen" >&5
   6003 echo "${ECHO_T}$cf_cv_have_utmp_ut_syslen" >&6
   6004 test "$cf_cv_have_utmp_ut_syslen" != no &&
   6005 cat >>confdefs.h <<\EOF
   6006 #define HAVE_UTMP_UT_SYSLEN 1
   6007 EOF
   6008 
   6009 fi
   6010 
   6011 if test "$cf_cv_have_utmp" != no ; then
   6012 echo "$as_me:6012: checking if ${cf_cv_have_utmp}.ut_name is declared" >&5
   6013 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_name is declared... $ECHO_C" >&6
   6014 if test "${cf_cv_have_utmp_ut_name+set}" = set; then
   6015   echo $ECHO_N "(cached) $ECHO_C" >&6
   6016 else
   6017 
   6018 	cf_cv_have_utmp_ut_name=no
   6019 cf_utmp_includes="
   6020 #include <sys/types.h>
   6021 #include <${cf_cv_have_utmp}.h>
   6022 #define getutent getutxent
   6023 #ifdef USE_LASTLOG
   6024 #include <lastlog.h>		/* may conflict with utmpx.h on Linux */
   6025 #endif
   6026 "
   6027 for cf_header in ut_name ut_user ; do
   6028 	cat >"conftest.$ac_ext" <<_ACEOF
   6029 #line 6029 "configure"
   6030 #include "confdefs.h"
   6031 $cf_utmp_includes
   6032 int
   6033 main (void)
   6034 {
   6035 struct $cf_cv_have_utmp x;
   6036 	 char *name = x.$cf_header;
   6037 	 (void)x;
   6038 	 (void)name;
   6039 
   6040   ;
   6041   return 0;
   6042 }
   6043 _ACEOF
   6044 rm -f "conftest.$ac_objext"
   6045 if { (eval echo "$as_me:6045: \"$ac_compile\"") >&5
   6046   (eval $ac_compile) 2>&5
   6047   ac_status=$?
   6048   echo "$as_me:6048: \$? = $ac_status" >&5
   6049   (exit "$ac_status"); } &&
   6050          { ac_try='test -s "conftest.$ac_objext"'
   6051   { (eval echo "$as_me:6051: \"$ac_try\"") >&5
   6052   (eval $ac_try) 2>&5
   6053   ac_status=$?
   6054   echo "$as_me:6054: \$? = $ac_status" >&5
   6055   (exit "$ac_status"); }; }; then
   6056   cf_cv_have_utmp_ut_name=$cf_header
   6057 	 break
   6058 else
   6059   echo "$as_me: failed program was:" >&5
   6060 cat "conftest.$ac_ext" >&5
   6061 fi
   6062 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   6063 done
   6064 
   6065 fi
   6066 echo "$as_me:6066: result: $cf_cv_have_utmp_ut_name" >&5
   6067 echo "${ECHO_T}$cf_cv_have_utmp_ut_name" >&6
   6068 
   6069 case "$cf_cv_have_utmp_ut_name" in
   6070 (no)
   6071 	{ { echo "$as_me:6071: error: Cannot find declaration for ut.ut_name" >&5
   6072 echo "$as_me: error: Cannot find declaration for ut.ut_name" >&2;}
   6073    { (exit 1); exit 1; }; }
   6074 	;;
   6075 (ut_user)
   6076 
   6077 cat >>confdefs.h <<\EOF
   6078 #define ut_name ut_user
   6079 EOF
   6080 
   6081 	;;
   6082 esac
   6083 fi
   6084 
   6085 if test "$cf_cv_have_utmp" != no ; then
   6086 echo "$as_me:6086: checking for exit-status in $cf_cv_have_utmp" >&5
   6087 echo $ECHO_N "checking for exit-status in $cf_cv_have_utmp... $ECHO_C" >&6
   6088 if test "${cf_cv_have_utmp_ut_xstatus+set}" = set; then
   6089   echo $ECHO_N "(cached) $ECHO_C" >&6
   6090 else
   6091 
   6092 for cf_result in \
   6093 	ut_exit.__e_exit \
   6094 	ut_exit.e_exit \
   6095 	ut_exit.ut_e_exit \
   6096 	ut_exit.ut_exit
   6097 do
   6098 cat >"conftest.$ac_ext" <<_ACEOF
   6099 #line 6099 "configure"
   6100 #include "confdefs.h"
   6101 
   6102 #include <sys/types.h>
   6103 #include <${cf_cv_have_utmp}.h>
   6104 int
   6105 main (void)
   6106 {
   6107 struct $cf_cv_have_utmp x;
   6108 	 long y = x.$cf_result = 0;
   6109 	 (void)x;
   6110 	 (void)y
   6111   ;
   6112   return 0;
   6113 }
   6114 _ACEOF
   6115 rm -f "conftest.$ac_objext"
   6116 if { (eval echo "$as_me:6116: \"$ac_compile\"") >&5
   6117   (eval $ac_compile) 2>&5
   6118   ac_status=$?
   6119   echo "$as_me:6119: \$? = $ac_status" >&5
   6120   (exit "$ac_status"); } &&
   6121          { ac_try='test -s "conftest.$ac_objext"'
   6122   { (eval echo "$as_me:6122: \"$ac_try\"") >&5
   6123   (eval $ac_try) 2>&5
   6124   ac_status=$?
   6125   echo "$as_me:6125: \$? = $ac_status" >&5
   6126   (exit "$ac_status"); }; }; then
   6127   cf_cv_have_utmp_ut_xstatus=$cf_result
   6128 	 break
   6129 else
   6130   echo "$as_me: failed program was:" >&5
   6131 cat "conftest.$ac_ext" >&5
   6132 cf_cv_have_utmp_ut_xstatus=no
   6133 fi
   6134 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   6135 done
   6136 
   6137 fi
   6138 echo "$as_me:6138: result: $cf_cv_have_utmp_ut_xstatus" >&5
   6139 echo "${ECHO_T}$cf_cv_have_utmp_ut_xstatus" >&6
   6140 if test "$cf_cv_have_utmp_ut_xstatus" != no ; then
   6141 
   6142 cat >>confdefs.h <<\EOF
   6143 #define HAVE_UTMP_UT_XSTATUS 1
   6144 EOF
   6145 
   6146 cat >>confdefs.h <<EOF
   6147 #define ut_xstatus $cf_cv_have_utmp_ut_xstatus
   6148 EOF
   6149 
   6150 fi
   6151 fi
   6152 
   6153 if test "$cf_cv_have_utmp" != no ; then
   6154 echo "$as_me:6154: checking if ${cf_cv_have_utmp}.ut_xtime is declared" >&5
   6155 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_xtime is declared... $ECHO_C" >&6
   6156 if test "${cf_cv_have_utmp_ut_xtime+set}" = set; then
   6157   echo $ECHO_N "(cached) $ECHO_C" >&6
   6158 else
   6159 
   6160 	cat >"conftest.$ac_ext" <<_ACEOF
   6161 #line 6161 "configure"
   6162 #include "confdefs.h"
   6163 
   6164 #include <sys/types.h>
   6165 #include <${cf_cv_have_utmp}.h>
   6166 int
   6167 main (void)
   6168 {
   6169 struct $cf_cv_have_utmp x;
   6170 	 long y = x.ut_xtime = 0;
   6171 	 (void)x;
   6172 	 (void)y
   6173   ;
   6174   return 0;
   6175 }
   6176 _ACEOF
   6177 rm -f "conftest.$ac_objext"
   6178 if { (eval echo "$as_me:6178: \"$ac_compile\"") >&5
   6179   (eval $ac_compile) 2>&5
   6180   ac_status=$?
   6181   echo "$as_me:6181: \$? = $ac_status" >&5
   6182   (exit "$ac_status"); } &&
   6183          { ac_try='test -s "conftest.$ac_objext"'
   6184   { (eval echo "$as_me:6184: \"$ac_try\"") >&5
   6185   (eval $ac_try) 2>&5
   6186   ac_status=$?
   6187   echo "$as_me:6187: \$? = $ac_status" >&5
   6188   (exit "$ac_status"); }; }; then
   6189   cf_cv_have_utmp_ut_xtime=yes
   6190 else
   6191   echo "$as_me: failed program was:" >&5
   6192 cat "conftest.$ac_ext" >&5
   6193 cat >"conftest.$ac_ext" <<_ACEOF
   6194 #line 6194 "configure"
   6195 #include "confdefs.h"
   6196 
   6197 #include <sys/types.h>
   6198 #include <${cf_cv_have_utmp}.h>
   6199 int
   6200 main (void)
   6201 {
   6202 struct $cf_cv_have_utmp x;
   6203 	 long y = x.ut_tv.tv_sec;
   6204 	 (void)x;
   6205 	 (void)y
   6206   ;
   6207   return 0;
   6208 }
   6209 _ACEOF
   6210 rm -f "conftest.$ac_objext"
   6211 if { (eval echo "$as_me:6211: \"$ac_compile\"") >&5
   6212   (eval $ac_compile) 2>&5
   6213   ac_status=$?
   6214   echo "$as_me:6214: \$? = $ac_status" >&5
   6215   (exit "$ac_status"); } &&
   6216          { ac_try='test -s "conftest.$ac_objext"'
   6217   { (eval echo "$as_me:6217: \"$ac_try\"") >&5
   6218   (eval $ac_try) 2>&5
   6219   ac_status=$?
   6220   echo "$as_me:6220: \$? = $ac_status" >&5
   6221   (exit "$ac_status"); }; }; then
   6222   cf_cv_have_utmp_ut_xtime=define
   6223 else
   6224   echo "$as_me: failed program was:" >&5
   6225 cat "conftest.$ac_ext" >&5
   6226 cf_cv_have_utmp_ut_xtime=no
   6227 fi
   6228 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   6229 
   6230 fi
   6231 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   6232 
   6233 fi
   6234 echo "$as_me:6234: result: $cf_cv_have_utmp_ut_xtime" >&5
   6235 echo "${ECHO_T}$cf_cv_have_utmp_ut_xtime" >&6
   6236 if test "$cf_cv_have_utmp_ut_xtime" != no ; then
   6237 
   6238 cat >>confdefs.h <<\EOF
   6239 #define HAVE_UTMP_UT_XTIME 1
   6240 EOF
   6241 
   6242 	if test "$cf_cv_have_utmp_ut_xtime" = define ; then
   6243 
   6244 cat >>confdefs.h <<\EOF
   6245 #define ut_xtime ut_tv.tv_sec
   6246 EOF
   6247 
   6248 	fi
   6249 fi
   6250 fi
   6251 
   6252 if test "$cf_cv_have_utmp" != no ; then
   6253 echo "$as_me:6253: checking if ${cf_cv_have_utmp}.ut_session is declared" >&5
   6254 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_session is declared... $ECHO_C" >&6
   6255 if test "${cf_cv_have_utmp_ut_session+set}" = set; then
   6256   echo $ECHO_N "(cached) $ECHO_C" >&6
   6257 else
   6258 
   6259 	cat >"conftest.$ac_ext" <<_ACEOF
   6260 #line 6260 "configure"
   6261 #include "confdefs.h"
   6262 
   6263 #include <sys/types.h>
   6264 #include <${cf_cv_have_utmp}.h>
   6265 int
   6266 main (void)
   6267 {
   6268 static struct $cf_cv_have_utmp x;
   6269 	 long y = x.ut_session;
   6270 	 (void)x;
   6271 	 (void)y
   6272   ;
   6273   return 0;
   6274 }
   6275 _ACEOF
   6276 rm -f "conftest.$ac_objext"
   6277 if { (eval echo "$as_me:6277: \"$ac_compile\"") >&5
   6278   (eval $ac_compile) 2>&5
   6279   ac_status=$?
   6280   echo "$as_me:6280: \$? = $ac_status" >&5
   6281   (exit "$ac_status"); } &&
   6282          { ac_try='test -s "conftest.$ac_objext"'
   6283   { (eval echo "$as_me:6283: \"$ac_try\"") >&5
   6284   (eval $ac_try) 2>&5
   6285   ac_status=$?
   6286   echo "$as_me:6286: \$? = $ac_status" >&5
   6287   (exit "$ac_status"); }; }; then
   6288   cf_cv_have_utmp_ut_session=yes
   6289 else
   6290   echo "$as_me: failed program was:" >&5
   6291 cat "conftest.$ac_ext" >&5
   6292 cf_cv_have_utmp_ut_session=no
   6293 fi
   6294 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   6295 
   6296 fi
   6297 echo "$as_me:6297: result: $cf_cv_have_utmp_ut_session" >&5
   6298 echo "${ECHO_T}$cf_cv_have_utmp_ut_session" >&6
   6299 if test "$cf_cv_have_utmp_ut_session" != no ; then
   6300 
   6301 cat >>confdefs.h <<\EOF
   6302 #define HAVE_UTMP_UT_SESSION 1
   6303 EOF
   6304 
   6305 fi
   6306 fi
   6307 
   6308 echo "$as_me:6308: checking if $cf_cv_have_utmp is SYSV flavor" >&5
   6309 echo $ECHO_N "checking if $cf_cv_have_utmp is SYSV flavor... $ECHO_C" >&6
   6310 if test "${cf_cv_sysv_utmp+set}" = set; then
   6311   echo $ECHO_N "(cached) $ECHO_C" >&6
   6312 else
   6313 
   6314 test "$cf_cv_have_utmp" = "utmp" && cf_prefix="ut" || cf_prefix="utx"
   6315 cat >"conftest.$ac_ext" <<_ACEOF
   6316 #line 6316 "configure"
   6317 #include "confdefs.h"
   6318 
   6319 #include <sys/types.h>
   6320 #include <${cf_cv_have_utmp}.h>
   6321 int
   6322 main (void)
   6323 {
   6324 
   6325 struct $cf_cv_have_utmp x;
   6326 	set${cf_prefix}ent ();
   6327 	get${cf_prefix}id(&x);
   6328 	put${cf_prefix}line(&x);
   6329 	end${cf_prefix}ent();
   6330   ;
   6331   return 0;
   6332 }
   6333 _ACEOF
   6334 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   6335 if { (eval echo "$as_me:6335: \"$ac_link\"") >&5
   6336   (eval $ac_link) 2>&5
   6337   ac_status=$?
   6338   echo "$as_me:6338: \$? = $ac_status" >&5
   6339   (exit "$ac_status"); } &&
   6340          { ac_try='test -s "conftest$ac_exeext"'
   6341   { (eval echo "$as_me:6341: \"$ac_try\"") >&5
   6342   (eval $ac_try) 2>&5
   6343   ac_status=$?
   6344   echo "$as_me:6344: \$? = $ac_status" >&5
   6345   (exit "$ac_status"); }; }; then
   6346   cf_cv_sysv_utmp=yes
   6347 else
   6348   echo "$as_me: failed program was:" >&5
   6349 cat "conftest.$ac_ext" >&5
   6350 cf_cv_sysv_utmp=no
   6351 fi
   6352 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   6353 
   6354 fi
   6355 echo "$as_me:6355: result: $cf_cv_sysv_utmp" >&5
   6356 echo "${ECHO_T}$cf_cv_sysv_utmp" >&6
   6357 test "$cf_cv_sysv_utmp" = yes &&
   6358 cat >>confdefs.h <<\EOF
   6359 #define USE_SYSV_UTMP 1
   6360 EOF
   6361 
   6362 fi
   6363 
   6364 for ac_header in lastlog.h
   6365 do
   6366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   6367 echo "$as_me:6367: checking for $ac_header" >&5
   6368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   6369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6370   echo $ECHO_N "(cached) $ECHO_C" >&6
   6371 else
   6372   cat >"conftest.$ac_ext" <<_ACEOF
   6373 #line 6373 "configure"
   6374 #include "confdefs.h"
   6375 #include <$ac_header>
   6376 _ACEOF
   6377 if { (eval echo "$as_me:6377: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   6378   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   6379   ac_status=$?
   6380   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   6381   rm -f conftest.er1
   6382   cat conftest.err >&5
   6383   echo "$as_me:6383: \$? = $ac_status" >&5
   6384   (exit "$ac_status"); } >/dev/null; then
   6385   if test -s conftest.err; then
   6386     ac_cpp_err=$ac_c_preproc_warn_flag
   6387   else
   6388     ac_cpp_err=
   6389   fi
   6390 else
   6391   ac_cpp_err=yes
   6392 fi
   6393 if test -z "$ac_cpp_err"; then
   6394   eval "$as_ac_Header=yes"
   6395 else
   6396   echo "$as_me: failed program was:" >&5
   6397   cat "conftest.$ac_ext" >&5
   6398   eval "$as_ac_Header=no"
   6399 fi
   6400 rm -f conftest.err "conftest.$ac_ext"
   6401 fi
   6402 echo "$as_me:6402: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
   6403 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
   6404 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
   6405   cat >>confdefs.h <<EOF
   6406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   6407 EOF
   6408 
   6409 fi
   6410 done
   6411 
   6412 echo "$as_me:6412: checking for struct lastlog" >&5
   6413 echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
   6414 if test "${cf_cv_struct_lastlog+set}" = set; then
   6415   echo $ECHO_N "(cached) $ECHO_C" >&6
   6416 else
   6417 
   6418 if test "$cross_compiling" = yes; then
   6419 
   6420 cf_cv_struct_lastlog=unknown
   6421 else
   6422   cat >"conftest.$ac_ext" <<_ACEOF
   6423 #line 6423 "configure"
   6424 #include "confdefs.h"
   6425 
   6426 #include <sys/types.h>
   6427 #include <time.h>
   6428 #include <lastlog.h>
   6429 
   6430 int main(void)
   6431 {
   6432 	struct lastlog data;
   6433 	return (sizeof(data.ll_time) != sizeof(time_t));
   6434 }
   6435 _ACEOF
   6436 rm -f "conftest$ac_exeext"
   6437 if { (eval echo "$as_me:6437: \"$ac_link\"") >&5
   6438   (eval $ac_link) 2>&5
   6439   ac_status=$?
   6440   echo "$as_me:6440: \$? = $ac_status" >&5
   6441   (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
   6442   { (eval echo "$as_me:6442: \"$ac_try\"") >&5
   6443   (eval $ac_try) 2>&5
   6444   ac_status=$?
   6445   echo "$as_me:6445: \$? = $ac_status" >&5
   6446   (exit "$ac_status"); }; }; then
   6447 
   6448 cf_cv_struct_lastlog=yes
   6449 else
   6450   echo "$as_me: program exited with status $ac_status" >&5
   6451 echo "$as_me: failed program was:" >&5
   6452 cat "conftest.$ac_ext" >&5
   6453 
   6454 cf_cv_struct_lastlog=no
   6455 fi
   6456 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
   6457 fi
   6458 fi
   6459 echo "$as_me:6459: result: $cf_cv_struct_lastlog" >&5
   6460 echo "${ECHO_T}$cf_cv_struct_lastlog" >&6
   6461 
   6462 test $cf_cv_struct_lastlog != no &&
   6463 cat >>confdefs.h <<\EOF
   6464 #define USE_STRUCT_LASTLOG 1
   6465 EOF
   6466 
   6467 for ac_header in \
   6468 sys/param.h \
   6469 
   6470 do
   6471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   6472 echo "$as_me:6472: checking for $ac_header" >&5
   6473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   6474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6475   echo $ECHO_N "(cached) $ECHO_C" >&6
   6476 else
   6477   cat >"conftest.$ac_ext" <<_ACEOF
   6478 #line 6478 "configure"
   6479 #include "confdefs.h"
   6480 #include <$ac_header>
   6481 _ACEOF
   6482 if { (eval echo "$as_me:6482: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   6483   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   6484   ac_status=$?
   6485   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   6486   rm -f conftest.er1
   6487   cat conftest.err >&5
   6488   echo "$as_me:6488: \$? = $ac_status" >&5
   6489   (exit "$ac_status"); } >/dev/null; then
   6490   if test -s conftest.err; then
   6491     ac_cpp_err=$ac_c_preproc_warn_flag
   6492   else
   6493     ac_cpp_err=
   6494   fi
   6495 else
   6496   ac_cpp_err=yes
   6497 fi
   6498 if test -z "$ac_cpp_err"; then
   6499   eval "$as_ac_Header=yes"
   6500 else
   6501   echo "$as_me: failed program was:" >&5
   6502   cat "conftest.$ac_ext" >&5
   6503   eval "$as_ac_Header=no"
   6504 fi
   6505 rm -f conftest.err "conftest.$ac_ext"
   6506 fi
   6507 echo "$as_me:6507: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
   6508 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
   6509 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
   6510   cat >>confdefs.h <<EOF
   6511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   6512 EOF
   6513 
   6514 fi
   6515 done
   6516 
   6517 echo "$as_me:6517: checking if POSIX saved-ids are supported" >&5
   6518 echo $ECHO_N "checking if POSIX saved-ids are supported... $ECHO_C" >&6
   6519 if test "${cf_cv_posix_saved_ids+set}" = set; then
   6520   echo $ECHO_N "(cached) $ECHO_C" >&6
   6521 else
   6522 
   6523 cat >"conftest.$ac_ext" <<_ACEOF
   6524 #line 6524 "configure"
   6525 #include "confdefs.h"
   6526 
   6527 #include <unistd.h>
   6528 #ifdef HAVE_SYS_PARAM_H
   6529 #include <sys/param.h>		/* this may define "BSD" */
   6530 #endif
   6531 
   6532 int
   6533 main (void)
   6534 {
   6535 
   6536 #if defined(_POSIX_SAVED_IDS) && (_POSIX_SAVED_IDS > 0)
   6537 	void *p = (void *) seteuid;
   6538 	int x = seteuid(geteuid());
   6539 	(void)p;
   6540 	(void)x;
   6541 #elif defined(BSD) && (BSD >= 199103)
   6542 /* The BSD's may implement the runtime check - and it fails.
   6543  * However, saved-ids work almost like POSIX (close enough for most uses).
   6544  */
   6545 #else
   6546 make an error
   6547 #endif
   6548 
   6549   ;
   6550   return 0;
   6551 }
   6552 _ACEOF
   6553 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   6554 if { (eval echo "$as_me:6554: \"$ac_link\"") >&5
   6555   (eval $ac_link) 2>&5
   6556   ac_status=$?
   6557   echo "$as_me:6557: \$? = $ac_status" >&5
   6558   (exit "$ac_status"); } &&
   6559          { ac_try='test -s "conftest$ac_exeext"'
   6560   { (eval echo "$as_me:6560: \"$ac_try\"") >&5
   6561   (eval $ac_try) 2>&5
   6562   ac_status=$?
   6563   echo "$as_me:6563: \$? = $ac_status" >&5
   6564   (exit "$ac_status"); }; }; then
   6565   cf_cv_posix_saved_ids=yes
   6566 
   6567 else
   6568   echo "$as_me: failed program was:" >&5
   6569 cat "conftest.$ac_ext" >&5
   6570 
   6571 if test "$cross_compiling" = yes; then
   6572   cf_cv_posix_saved_ids=unknown
   6573 else
   6574   cat >"conftest.$ac_ext" <<_ACEOF
   6575 #line 6575 "configure"
   6576 #include "confdefs.h"
   6577 
   6578 #ifdef HAVE_STDLIB_H
   6579 #include <stdlib.h>
   6580 #endif
   6581 #include <unistd.h>
   6582 int main(void)
   6583 {
   6584 	void *p = (void *) seteuid;
   6585 	long code = sysconf(_SC_SAVED_IDS);
   6586 	(void)p;
   6587 	${cf_cv_main_return:-return}  ((code > 0) ? 0 : 1);
   6588 }
   6589 _ACEOF
   6590 rm -f "conftest$ac_exeext"
   6591 if { (eval echo "$as_me:6591: \"$ac_link\"") >&5
   6592   (eval $ac_link) 2>&5
   6593   ac_status=$?
   6594   echo "$as_me:6594: \$? = $ac_status" >&5
   6595   (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
   6596   { (eval echo "$as_me:6596: \"$ac_try\"") >&5
   6597   (eval $ac_try) 2>&5
   6598   ac_status=$?
   6599   echo "$as_me:6599: \$? = $ac_status" >&5
   6600   (exit "$ac_status"); }; }; then
   6601   cf_cv_posix_saved_ids=yes
   6602 else
   6603   echo "$as_me: program exited with status $ac_status" >&5
   6604 echo "$as_me: failed program was:" >&5
   6605 cat "conftest.$ac_ext" >&5
   6606 cf_cv_posix_saved_ids=no
   6607 fi
   6608 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
   6609 fi
   6610 
   6611 fi
   6612 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   6613 
   6614 fi
   6615 echo "$as_me:6615: result: $cf_cv_posix_saved_ids" >&5
   6616 echo "${ECHO_T}$cf_cv_posix_saved_ids" >&6
   6617 
   6618 test "$cf_cv_posix_saved_ids" = yes &&
   6619 cat >>confdefs.h <<\EOF
   6620 #define HAVE_POSIX_SAVED_IDS 1
   6621 EOF
   6622 
   6623 # compute a reasonable value for $TERM to give tgetent(), since we may be
   6624 # running in 'screen', which sets $TERMCAP to a specific entry that is not
   6625 # necessarily in /etc/termcap - unsetenv is not portable, so we cannot simply
   6626 # discard $TERMCAP.
   6627 cf_TERMVAR=vt100
   6628 if test -n "$TERMCAP"
   6629 then
   6630 	cf_TERMCAP=`echo "$TERMCAP" | tr '\n' ' ' | sed -e 's/^..|//' -e 's/|.*//'`
   6631 	case "$cf_TERMCAP" in
   6632 	(screen*.*)
   6633 		;;
   6634 	(*)
   6635 		cf_TERMVAR="$cf_TERMCAP"
   6636 		;;
   6637 	esac
   6638 fi
   6639 test -z "$cf_TERMVAR" && cf_TERMVAR=vt100
   6640 
   6641 # BSD termcap used no header file
   6642 # SVr4 provided termcap prototypes as a legacy feature in term.h
   6643 # GNU termcap provided termcap prototypes in termcap.h
   6644 # ncurses provides termcap prototypes in both term.h and termcap.h
   6645 #
   6646 # The terminfo-based termcap interfaces do not provide a full tgetent (i.e., do
   6647 # not return the text of the termcap entry in the buffer), but as a special
   6648 # case, FreeBSD provides ncurses' termcap.h with a modified termcap reader that
   6649 # returns the termcap text.
   6650 
   6651 for ac_header in termcap.h
   6652 do
   6653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   6654 echo "$as_me:6654: checking for $ac_header" >&5
   6655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   6656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6657   echo $ECHO_N "(cached) $ECHO_C" >&6
   6658 else
   6659   cat >"conftest.$ac_ext" <<_ACEOF
   6660 #line 6660 "configure"
   6661 #include "confdefs.h"
   6662 #include <$ac_header>
   6663 _ACEOF
   6664 if { (eval echo "$as_me:6664: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   6665   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   6666   ac_status=$?
   6667   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   6668   rm -f conftest.er1
   6669   cat conftest.err >&5
   6670   echo "$as_me:6670: \$? = $ac_status" >&5
   6671   (exit "$ac_status"); } >/dev/null; then
   6672   if test -s conftest.err; then
   6673     ac_cpp_err=$ac_c_preproc_warn_flag
   6674   else
   6675     ac_cpp_err=
   6676   fi
   6677 else
   6678   ac_cpp_err=yes
   6679 fi
   6680 if test -z "$ac_cpp_err"; then
   6681   eval "$as_ac_Header=yes"
   6682 else
   6683   echo "$as_me: failed program was:" >&5
   6684   cat "conftest.$ac_ext" >&5
   6685   eval "$as_ac_Header=no"
   6686 fi
   6687 rm -f conftest.err "conftest.$ac_ext"
   6688 fi
   6689 echo "$as_me:6689: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
   6690 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
   6691 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
   6692   cat >>confdefs.h <<EOF
   6693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   6694 EOF
   6695 
   6696 fi
   6697 done
   6698 
   6699 echo "$as_me:6699: checking if we want full tgetent function" >&5
   6700 echo $ECHO_N "checking if we want full tgetent function... $ECHO_C" >&6
   6701 
   6702 # Check whether --enable-full-tgetent or --disable-full-tgetent was given.
   6703 if test "${enable_full_tgetent+set}" = set; then
   6704   enableval="$enable_full_tgetent"
   6705   test "$enableval" != no && enableval=yes
   6706 	if test "$enableval" != "yes" ; then
   6707     cf_full_tgetent=no
   6708 	else
   6709 		cf_full_tgetent=yes
   6710 	fi
   6711 else
   6712   enableval=yes
   6713 	cf_full_tgetent=yes
   6714 
   6715 fi;
   6716 echo "$as_me:6716: result: $cf_full_tgetent" >&5
   6717 echo "${ECHO_T}$cf_full_tgetent" >&6
   6718 
   6719 if test "$cf_full_tgetent" = yes ; then
   6720 	cf_test_message="full tgetent"
   6721 else
   6722 	cf_test_message="tgetent"
   6723 fi
   6724 
   6725 echo "$as_me:6725: checking for $cf_test_message function" >&5
   6726 echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6
   6727 if test "${cf_cv_lib_tgetent+set}" = set; then
   6728   echo $ECHO_N "(cached) $ECHO_C" >&6
   6729 else
   6730 
   6731 cf_save_LIBS="$LIBS"
   6732 cf_cv_lib_tgetent=no
   6733 if test "$cf_full_tgetent" = yes ; then
   6734 	cf_TERMLIB="otermcap termcap termlib ncurses curses"
   6735 	cf_TERMTST="buffer[0] == 0"
   6736 else
   6737 	cf_TERMLIB="termlib ncurses curses"
   6738 	cf_TERMTST="0"
   6739 fi
   6740 for cf_termlib in '' $cf_TERMLIB ; do
   6741 	LIBS="$cf_save_LIBS"
   6742 	test -n "$cf_termlib" && {
   6743 cf_add_libs="$LIBS"
   6744 # reverse order
   6745 cf_add_0lib=
   6746 for cf_add_1lib in -l$cf_termlib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   6747 # filter duplicates
   6748 for cf_add_1lib in $cf_add_0lib; do
   6749 	for cf_add_2lib in $cf_add_libs; do
   6750 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   6751 			cf_add_1lib=
   6752 			break
   6753 		fi
   6754 	done
   6755 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   6756 done
   6757 LIBS="$cf_add_libs"
   6758  }
   6759 	if test "$cross_compiling" = yes; then
   6760   echo "cross-compiling, cannot verify if a termcap/tgetent is present in $cf_termlib" 1>&5
   6761 else
   6762   cat >"conftest.$ac_ext" <<_ACEOF
   6763 #line 6763 "configure"
   6764 #include "confdefs.h"
   6765 
   6766 #ifdef HAVE_TERMCAP_H
   6767 #include <termcap.h>
   6768 #endif
   6769 /* terminfo implementations ignore the buffer argument, making it useless for
   6770  * the xterm application, which uses this information to make a new TERMCAP
   6771  * environment variable.
   6772  */
   6773 int main(void)
   6774 {
   6775 	char buffer[1024];
   6776 	buffer[0] = 0;
   6777 	tgetent(buffer, "$cf_TERMVAR");
   6778 	${cf_cv_main_return:-return} ($cf_TERMTST); }
   6779 _ACEOF
   6780 rm -f "conftest$ac_exeext"
   6781 if { (eval echo "$as_me:6781: \"$ac_link\"") >&5
   6782   (eval $ac_link) 2>&5
   6783   ac_status=$?
   6784   echo "$as_me:6784: \$? = $ac_status" >&5
   6785   (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
   6786   { (eval echo "$as_me:6786: \"$ac_try\"") >&5
   6787   (eval $ac_try) 2>&5
   6788   ac_status=$?
   6789   echo "$as_me:6789: \$? = $ac_status" >&5
   6790   (exit "$ac_status"); }; }; then
   6791   echo "yes, there is a termcap/tgetent in $cf_termlib" 1>&5
   6792 	 if test -n "$cf_termlib" ; then
   6793 	 	cf_cv_lib_tgetent="-l$cf_termlib"
   6794 	 else
   6795 	 	cf_cv_lib_tgetent=yes
   6796 	 fi
   6797 	 break
   6798 else
   6799   echo "$as_me: program exited with status $ac_status" >&5
   6800 echo "$as_me: failed program was:" >&5
   6801 cat "conftest.$ac_ext" >&5
   6802 echo "no, there is no termcap/tgetent in $cf_termlib" 1>&5
   6803 fi
   6804 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
   6805 fi
   6806 done
   6807 LIBS="$cf_save_LIBS"
   6808 
   6809 fi
   6810 echo "$as_me:6810: result: $cf_cv_lib_tgetent" >&5
   6811 echo "${ECHO_T}$cf_cv_lib_tgetent" >&6
   6812 
   6813 # If we found a working tgetent(), set LIBS and check for termcap.h.
   6814 # (LIBS cannot be set inside AC_CACHE_CHECK; the commands there should
   6815 # not have side effects other than setting the cache variable, because
   6816 # they are not executed when a cached value exists.)
   6817 if test "x$cf_cv_lib_tgetent" != xno ; then
   6818 	test "x$cf_cv_lib_tgetent" != xyes && {
   6819 cf_add_libs="$LIBS"
   6820 # reverse order
   6821 cf_add_0lib=
   6822 for cf_add_1lib in $cf_cv_lib_tgetent; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   6823 # filter duplicates
   6824 for cf_add_1lib in $cf_add_0lib; do
   6825 	for cf_add_2lib in $cf_add_libs; do
   6826 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   6827 			cf_add_1lib=
   6828 			break
   6829 		fi
   6830 	done
   6831 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   6832 done
   6833 LIBS="$cf_add_libs"
   6834  }
   6835 
   6836 cat >>confdefs.h <<\EOF
   6837 #define USE_TERMCAP 1
   6838 EOF
   6839 
   6840 	if test "$cf_full_tgetent" = no ; then
   6841 		cat >"conftest.$ac_ext" <<_ACEOF
   6842 #line 6842 "configure"
   6843 #include "confdefs.h"
   6844 
   6845 #include <termcap.h>
   6846 int
   6847 main (void)
   6848 {
   6849 
   6850 #ifdef NCURSES_VERSION
   6851 make an error
   6852 #endif
   6853   ;
   6854   return 0;
   6855 }
   6856 _ACEOF
   6857 rm -f "conftest.$ac_objext"
   6858 if { (eval echo "$as_me:6858: \"$ac_compile\"") >&5
   6859   (eval $ac_compile) 2>&5
   6860   ac_status=$?
   6861   echo "$as_me:6861: \$? = $ac_status" >&5
   6862   (exit "$ac_status"); } &&
   6863          { ac_try='test -s "conftest.$ac_objext"'
   6864   { (eval echo "$as_me:6864: \"$ac_try\"") >&5
   6865   (eval $ac_try) 2>&5
   6866   ac_status=$?
   6867   echo "$as_me:6867: \$? = $ac_status" >&5
   6868   (exit "$ac_status"); }; }; then
   6869   cat >>confdefs.h <<\EOF
   6870 #define HAVE_TERMCAP_H 1
   6871 EOF
   6872 
   6873 else
   6874   echo "$as_me: failed program was:" >&5
   6875 cat "conftest.$ac_ext" >&5
   6876 fi
   6877 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   6878 	else
   6879 
   6880 for ac_header in termcap.h
   6881 do
   6882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   6883 echo "$as_me:6883: checking for $ac_header" >&5
   6884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   6885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6886   echo $ECHO_N "(cached) $ECHO_C" >&6
   6887 else
   6888   cat >"conftest.$ac_ext" <<_ACEOF
   6889 #line 6889 "configure"
   6890 #include "confdefs.h"
   6891 #include <$ac_header>
   6892 _ACEOF
   6893 if { (eval echo "$as_me:6893: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   6894   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   6895   ac_status=$?
   6896   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   6897   rm -f conftest.er1
   6898   cat conftest.err >&5
   6899   echo "$as_me:6899: \$? = $ac_status" >&5
   6900   (exit "$ac_status"); } >/dev/null; then
   6901   if test -s conftest.err; then
   6902     ac_cpp_err=$ac_c_preproc_warn_flag
   6903   else
   6904     ac_cpp_err=
   6905   fi
   6906 else
   6907   ac_cpp_err=yes
   6908 fi
   6909 if test -z "$ac_cpp_err"; then
   6910   eval "$as_ac_Header=yes"
   6911 else
   6912   echo "$as_me: failed program was:" >&5
   6913   cat "conftest.$ac_ext" >&5
   6914   eval "$as_ac_Header=no"
   6915 fi
   6916 rm -f conftest.err "conftest.$ac_ext"
   6917 fi
   6918 echo "$as_me:6918: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
   6919 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
   6920 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
   6921   cat >>confdefs.h <<EOF
   6922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   6923 EOF
   6924 
   6925 fi
   6926 done
   6927 
   6928 	fi
   6929 else
   6930         # If we didn't find a tgetent() that supports the buffer
   6931         # argument, look again to see whether we can find even
   6932         # a crippled one.  A crippled tgetent() is still useful to
   6933         # validate values for the TERM environment variable given to
   6934         # child processes.
   6935 	echo "$as_me:6935: checking for partial tgetent function" >&5
   6936 echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6
   6937 if test "${cf_cv_lib_part_tgetent+set}" = set; then
   6938   echo $ECHO_N "(cached) $ECHO_C" >&6
   6939 else
   6940 
   6941 	cf_cv_lib_part_tgetent=no
   6942 	for cf_termlib in $cf_TERMLIB ; do
   6943 		LIBS="$cf_save_LIBS -l$cf_termlib"
   6944 		cat >"conftest.$ac_ext" <<_ACEOF
   6945 #line 6945 "configure"
   6946 #include "confdefs.h"
   6947 
   6948 int
   6949 main (void)
   6950 {
   6951 tgetent(0, "$cf_TERMVAR")
   6952   ;
   6953   return 0;
   6954 }
   6955 _ACEOF
   6956 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   6957 if { (eval echo "$as_me:6957: \"$ac_link\"") >&5
   6958   (eval $ac_link) 2>&5
   6959   ac_status=$?
   6960   echo "$as_me:6960: \$? = $ac_status" >&5
   6961   (exit "$ac_status"); } &&
   6962          { ac_try='test -s "conftest$ac_exeext"'
   6963   { (eval echo "$as_me:6963: \"$ac_try\"") >&5
   6964   (eval $ac_try) 2>&5
   6965   ac_status=$?
   6966   echo "$as_me:6966: \$? = $ac_status" >&5
   6967   (exit "$ac_status"); }; }; then
   6968   echo "there is a terminfo/tgetent in $cf_termlib" 1>&5
   6969 			 cf_cv_lib_part_tgetent="-l$cf_termlib"
   6970 			 break
   6971 else
   6972   echo "$as_me: failed program was:" >&5
   6973 cat "conftest.$ac_ext" >&5
   6974 fi
   6975 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   6976 	done
   6977 	LIBS="$cf_save_LIBS"
   6978 
   6979 fi
   6980 echo "$as_me:6980: result: $cf_cv_lib_part_tgetent" >&5
   6981 echo "${ECHO_T}$cf_cv_lib_part_tgetent" >&6
   6982 
   6983 	if test "$cf_cv_lib_part_tgetent" != no ; then
   6984 
   6985 cf_add_libs="$LIBS"
   6986 # reverse order
   6987 cf_add_0lib=
   6988 for cf_add_1lib in $cf_cv_lib_part_tgetent; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   6989 # filter duplicates
   6990 for cf_add_1lib in $cf_add_0lib; do
   6991 	for cf_add_2lib in $cf_add_libs; do
   6992 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   6993 			cf_add_1lib=
   6994 			break
   6995 		fi
   6996 	done
   6997 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   6998 done
   6999 LIBS="$cf_add_libs"
   7000 
   7001 for ac_header in termcap.h
   7002 do
   7003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   7004 echo "$as_me:7004: checking for $ac_header" >&5
   7005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   7006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   7007   echo $ECHO_N "(cached) $ECHO_C" >&6
   7008 else
   7009   cat >"conftest.$ac_ext" <<_ACEOF
   7010 #line 7010 "configure"
   7011 #include "confdefs.h"
   7012 #include <$ac_header>
   7013 _ACEOF
   7014 if { (eval echo "$as_me:7014: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   7015   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   7016   ac_status=$?
   7017   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   7018   rm -f conftest.er1
   7019   cat conftest.err >&5
   7020   echo "$as_me:7020: \$? = $ac_status" >&5
   7021   (exit "$ac_status"); } >/dev/null; then
   7022   if test -s conftest.err; then
   7023     ac_cpp_err=$ac_c_preproc_warn_flag
   7024   else
   7025     ac_cpp_err=
   7026   fi
   7027 else
   7028   ac_cpp_err=yes
   7029 fi
   7030 if test -z "$ac_cpp_err"; then
   7031   eval "$as_ac_Header=yes"
   7032 else
   7033   echo "$as_me: failed program was:" >&5
   7034   cat "conftest.$ac_ext" >&5
   7035   eval "$as_ac_Header=no"
   7036 fi
   7037 rm -f conftest.err "conftest.$ac_ext"
   7038 fi
   7039 echo "$as_me:7039: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
   7040 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
   7041 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
   7042   cat >>confdefs.h <<EOF
   7043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   7044 EOF
   7045 
   7046 fi
   7047 done
   7048 
   7049                 # If this is linking against ncurses, we'll trigger the
   7050                 # ifdef in resize.c that turns the termcap stuff back off.
   7051 
   7052 cat >>confdefs.h <<\EOF
   7053 #define USE_TERMINFO 1
   7054 EOF
   7055 
   7056 	fi
   7057 fi
   7058 
   7059 echo "$as_me:7059: checking for X applications class" >&5
   7060 echo $ECHO_N "checking for X applications class... $ECHO_C" >&6
   7061 
   7062 # Check whether --with-app-class or --without-app-class was given.
   7063 if test "${with_app_class+set}" = set; then
   7064   withval="$with_app_class"
   7065   APP_CLASS=$withval
   7066 else
   7067   APP_CLASS=XTerm
   7068 fi;
   7069 
   7070 case x$APP_CLASS in
   7071 (*[/@,%]*)
   7072 	{ echo "$as_me:7072: WARNING: X applications class cannot contain punctuation" >&5
   7073 echo "$as_me: WARNING: X applications class cannot contain punctuation" >&2;}
   7074 	APP_CLASS=XTerm
   7075 	;;
   7076 (x[A-Z]*)
   7077 	;;
   7078 (*)
   7079 	{ echo "$as_me:7079: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&5
   7080 echo "$as_me: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&2;}
   7081 	APP_CLASS=XTerm
   7082 	;;
   7083 esac
   7084 
   7085 echo "$as_me:7085: result: $APP_CLASS" >&5
   7086 echo "${ECHO_T}$APP_CLASS" >&6
   7087 
   7088 echo "$as_me:7088: checking for directory to install resource files" >&5
   7089 echo $ECHO_N "checking for directory to install resource files... $ECHO_C" >&6
   7090 
   7091 # Check whether --with-app-defaults or --without-app-defaults was given.
   7092 if test "${with_app_defaults+set}" = set; then
   7093   withval="$with_app_defaults"
   7094   APPSDIR=$withval
   7095 else
   7096   APPSDIR='${exec_prefix}/lib/X11/app-defaults'
   7097 fi;
   7098 
   7099 if test "x$APPSDIR" = xauto
   7100 then
   7101 	APPSDIR='${exec_prefix}/lib/X11/app-defaults'
   7102 	for cf_path in \
   7103 		/opt/local/share/X11/app-defaults \
   7104 		/opt/X11/share/X11/app-defaults \
   7105 		/usr/share/X11/app-defaults \
   7106 		/usr/X11/share/X11/app-defaults \
   7107 		/usr/X11/lib/X11/app-defaults \
   7108 		/usr/lib/X11/app-defaults \
   7109 		/etc/X11/app-defaults \
   7110 		/usr/pkg/lib/X11/app-defaults \
   7111 		/usr/X11R7/lib/X11/app-defaults \
   7112 		/usr/X11R6/lib/X11/app-defaults \
   7113 		/usr/X11R5/lib/X11/app-defaults \
   7114 		/usr/X11R4/lib/X11/app-defaults \
   7115 		/usr/local/lib/X11/app-defaults \
   7116 		/usr/local/share/X11/app-defaults \
   7117 		/usr/lib64/X11/app-defaults
   7118 	do
   7119 		if test -d "$cf_path" ; then
   7120 			APPSDIR="$cf_path"
   7121 			break
   7122 		fi
   7123 	done
   7124 else
   7125 	cf_path=$APPSDIR
   7126 
   7127 if test "x$prefix" != xNONE; then
   7128 	cf_path_syntax="$prefix"
   7129 else
   7130 	cf_path_syntax="$ac_default_prefix"
   7131 fi
   7132 
   7133 case ".$cf_path" in
   7134 (.\$\(*\)*|.\'*\'*)
   7135 	;;
   7136 (..|./*|.\\*)
   7137 	;;
   7138 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
   7139 	;;
   7140 (.\$\{*prefix\}*|.\$\{*dir\}*)
   7141 	eval cf_path="$cf_path"
   7142 	case ".$cf_path" in
   7143 	(.NONE/*)
   7144 		cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
   7145 		;;
   7146 	esac
   7147 	;;
   7148 (.no|.NONE/*)
   7149 	cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
   7150 	;;
   7151 (*)
   7152 	{ { echo "$as_me:7152: error: expected a pathname, not \"$cf_path\"" >&5
   7153 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
   7154    { (exit 1); exit 1; }; }
   7155 	;;
   7156 esac
   7157 
   7158 fi
   7159 
   7160 echo "$as_me:7160: result: $APPSDIR" >&5
   7161 echo "${ECHO_T}$APPSDIR" >&6
   7162 
   7163 no_appsdir=
   7164 if test "$APPSDIR" = no
   7165 then
   7166 	no_appsdir="#"
   7167 else
   7168 	EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(APPSDIR)"
   7169 fi
   7170 
   7171 echo "$as_me:7171: checking for the icon name" >&5
   7172 echo $ECHO_N "checking for the icon name... $ECHO_C" >&6
   7173 
   7174 # Check whether --with-icon-name or --without-icon-name was given.
   7175 if test "${with_icon_name+set}" = set; then
   7176   withval="$with_icon_name"
   7177   ICON_NAME="$withval"
   7178 else
   7179   ICON_NAME=mini.xterm
   7180 fi;
   7181 case "x$ICON_NAME" in
   7182 (xyes|xno|x)
   7183 	ICON_NAME=mini.xterm
   7184 	;;
   7185 esac
   7186 
   7187 echo "$as_me:7187: result: $ICON_NAME" >&5
   7188 echo "${ECHO_T}$ICON_NAME" >&6
   7189 
   7190 echo "$as_me:7190: checking for icon symlink to use" >&5
   7191 echo $ECHO_N "checking for icon symlink to use... $ECHO_C" >&6
   7192 
   7193 # Check whether --with-icon-symlink or --without-icon-symlink was given.
   7194 if test "${with_icon_symlink+set}" = set; then
   7195   withval="$with_icon_symlink"
   7196   ICON_SYMLINK="$withval"
   7197 else
   7198   ICON_SYMLINK=NONE
   7199 fi;
   7200 case "x$ICON_SYMLINK" in
   7201 (xyes)
   7202 	ICON_SYMLINK=xterm
   7203 	;;
   7204 (xno|x)
   7205 	ICON_SYMLINK=NONE
   7206 	;;
   7207 esac
   7208 
   7209 echo "$as_me:7209: result: $ICON_SYMLINK" >&5
   7210 echo "${ECHO_T}$ICON_SYMLINK" >&6
   7211 
   7212 # Install all icons except for the overused "terminal".
   7213 cf_cv_icon_list=
   7214 for my_item in $srcdir/icons/*.svg
   7215 do
   7216 	test -f "$my_item" || continue
   7217 	cf_icon_name=`echo "$my_item" |sed -e "s,.svg,," -e "s,^$srcdir/,,"`
   7218 	case $cf_icon_name in
   7219 	(*_48x48)
   7220 		continue
   7221 		;;
   7222 	esac
   7223 	test -n "$verbose" && echo "	adding $cf_icon_name to icon-list" 1>&6
   7224 
   7225 echo "${as_me:-configure}:7225: testing adding $cf_icon_name to icon-list ..." 1>&5
   7226 
   7227 	cf_cv_icon_list="$cf_cv_icon_list $cf_icon_name"
   7228 	if test -f "${cf_icon_name}_48x48.png"
   7229 	then
   7230 		test -n "$verbose" && echo "	adding ${cf_icon_name}_48x48 to icon-list" 1>&6
   7231 
   7232 echo "${as_me:-configure}:7232: testing adding ${cf_icon_name}_48x48 to icon-list ..." 1>&5
   7233 
   7234 		cf_cv_icon_list="$cf_cv_icon_list ${cf_icon_name}_48x48"
   7235 	fi
   7236 done
   7237 
   7238 echo "$as_me:7238: checking for directory to install pixmaps" >&5
   7239 echo $ECHO_N "checking for directory to install pixmaps... $ECHO_C" >&6
   7240 
   7241 # Check whether --with-pixmapdir or --without-pixmapdir was given.
   7242 if test "${with_pixmapdir+set}" = set; then
   7243   withval="$with_pixmapdir"
   7244   PIXMAPDIR=$withval
   7245 else
   7246   test -z "$PIXMAPDIR" && PIXMAPDIR='${datadir}/pixmaps'
   7247 fi;
   7248 
   7249 if test "x$PIXMAPDIR" = xauto
   7250 then
   7251 	PIXMAPDIR='${datadir}/pixmaps'
   7252 	for cf_path in \
   7253 		/usr/share/pixmaps \
   7254 		/usr/X11R6/share/pixmaps
   7255 	do
   7256 		if test -d "$cf_path" ; then
   7257 			PIXMAPDIR="$cf_path"
   7258 			break
   7259 		fi
   7260 	done
   7261 else
   7262 	cf_path=$PIXMAPDIR
   7263 
   7264 if test "x$prefix" != xNONE; then
   7265 	cf_path_syntax="$prefix"
   7266 else
   7267 	cf_path_syntax="$ac_default_prefix"
   7268 fi
   7269 
   7270 case ".$cf_path" in
   7271 (.\$\(*\)*|.\'*\'*)
   7272 	;;
   7273 (..|./*|.\\*)
   7274 	;;
   7275 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
   7276 	;;
   7277 (.\$\{*prefix\}*|.\$\{*dir\}*)
   7278 	eval cf_path="$cf_path"
   7279 	case ".$cf_path" in
   7280 	(.NONE/*)
   7281 		cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
   7282 		;;
   7283 	esac
   7284 	;;
   7285 (.no|.NONE/*)
   7286 	cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
   7287 	;;
   7288 (*)
   7289 	{ { echo "$as_me:7289: error: expected a pathname, not \"$cf_path\"" >&5
   7290 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
   7291    { (exit 1); exit 1; }; }
   7292 	;;
   7293 esac
   7294 
   7295 fi
   7296 echo "$as_me:7296: result: $PIXMAPDIR" >&5
   7297 echo "${ECHO_T}$PIXMAPDIR" >&6
   7298 
   7299 no_pixmapdir=
   7300 if test "$PIXMAPDIR" = no
   7301 then
   7302 	no_pixmapdir="#"
   7303 else
   7304 	EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(PIXMAPDIR)"
   7305 fi
   7306 
   7307 echo "$as_me:7307: checking for directory to install icons" >&5
   7308 echo $ECHO_N "checking for directory to install icons... $ECHO_C" >&6
   7309 
   7310 # Check whether --with-icondir or --without-icondir was given.
   7311 if test "${with_icondir+set}" = set; then
   7312   withval="$with_icondir"
   7313   ICONDIR=$withval
   7314 else
   7315   test -z "$ICONDIR" && ICONDIR=no
   7316 fi;
   7317 
   7318 if test "x$ICONDIR" = xauto
   7319 then
   7320 	ICONDIR='${datadir}/icons'
   7321 	for cf_path in \
   7322 		/usr/share/icons \
   7323 		/usr/X11R6/share/icons
   7324 	do
   7325 		if test -d "$cf_path" ; then
   7326 			ICONDIR="$cf_path"
   7327 			break
   7328 		fi
   7329 	done
   7330 else
   7331 	cf_path=$ICONDIR
   7332 
   7333 if test "x$prefix" != xNONE; then
   7334 	cf_path_syntax="$prefix"
   7335 else
   7336 	cf_path_syntax="$ac_default_prefix"
   7337 fi
   7338 
   7339 case ".$cf_path" in
   7340 (.\$\(*\)*|.\'*\'*)
   7341 	;;
   7342 (..|./*|.\\*)
   7343 	;;
   7344 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
   7345 	;;
   7346 (.\$\{*prefix\}*|.\$\{*dir\}*)
   7347 	eval cf_path="$cf_path"
   7348 	case ".$cf_path" in
   7349 	(.NONE/*)
   7350 		cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
   7351 		;;
   7352 	esac
   7353 	;;
   7354 (.no|.NONE/*)
   7355 	cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
   7356 	;;
   7357 (*)
   7358 	{ { echo "$as_me:7358: error: expected a pathname, not \"$cf_path\"" >&5
   7359 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
   7360    { (exit 1); exit 1; }; }
   7361 	;;
   7362 esac
   7363 
   7364 fi
   7365 echo "$as_me:7365: result: $ICONDIR" >&5
   7366 echo "${ECHO_T}$ICONDIR" >&6
   7367 
   7368 no_icondir=
   7369 if test "$ICONDIR" = no
   7370 then
   7371 	no_icondir="#"
   7372 else
   7373 	EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(ICONDIR)"
   7374 fi
   7375 
   7376 echo "$as_me:7376: checking if icon theme should be used" >&5
   7377 echo $ECHO_N "checking if icon theme should be used... $ECHO_C" >&6
   7378 
   7379 # Check whether --with-icon-theme or --without-icon-theme was given.
   7380 if test "${with_icon_theme+set}" = set; then
   7381   withval="$with_icon_theme"
   7382   ICON_THEME=$withval
   7383 else
   7384   ICON_THEME=no
   7385 fi;
   7386 
   7387 case "x$ICON_THEME" in
   7388 (xno)
   7389 	;;
   7390 (x|xyes)
   7391 	ICON_THEME=hicolor
   7392 	;;
   7393 esac
   7394 echo "$as_me:7394: result: $ICON_THEME" >&5
   7395 echo "${ECHO_T}$ICON_THEME" >&6
   7396 
   7397 if test "x$ICON_THEME" = xno
   7398 then
   7399 	if test "x$ICONDIR" != xno
   7400 	then
   7401 		test -n "$verbose" && echo "	ignoring icondir without theme" 1>&6
   7402 
   7403 echo "${as_me:-configure}:7403: testing ignoring icondir without theme ..." 1>&5
   7404 
   7405 		no_icondir="#"
   7406 	fi
   7407 else
   7408 	if test "x$ICONDIR" = xno
   7409 	then
   7410 		{ { echo "$as_me:7410: error: icondir must be set for icon theme" >&5
   7411 echo "$as_me: error: icondir must be set for icon theme" >&2;}
   7412    { (exit 1); exit 1; }; }
   7413 	fi
   7414 fi
   7415 
   7416 : ${ICON_FORMAT:=".svg .png .xpm"}
   7417 
   7418 ICON_LIST=
   7419 
   7420 if test "x$ICON_THEME" != xno
   7421 then
   7422 	cf_icon_list="$cf_cv_icon_list"
   7423 else
   7424 	cf_icon_list="icons/${ICON_NAME}_48x48"
   7425 fi
   7426 
   7427 echo "$as_me:7427: checking for icon(s) to install" >&5
   7428 echo $ECHO_N "checking for icon(s) to install... $ECHO_C" >&6
   7429 for cf_name in $cf_icon_list
   7430 do
   7431 	test -n "$verbose" && echo "	using $ICON_FORMAT" 1>&6
   7432 
   7433 echo "${as_me:-configure}:7433: testing using $ICON_FORMAT ..." 1>&5
   7434 
   7435 	for cf_suffix in $ICON_FORMAT
   7436 	do
   7437 		cf_icon="${cf_name}${cf_suffix}"
   7438 		cf_left=`echo "$cf_icon" | sed -e 's/:.*//'`
   7439 		if test ! -f "${cf_left}"
   7440 		then
   7441 			if test "x$srcdir" != "x."
   7442 			then
   7443 				cf_icon="${srcdir}/${cf_left}"
   7444 				cf_left=`echo "$cf_icon" | sed -e 's/:.*//'`
   7445 				if test ! -f "${cf_left}"
   7446 				then
   7447 					continue
   7448 				fi
   7449 			else
   7450 				continue
   7451 			fi
   7452 		fi
   7453 		if test "x$ICON_THEME" != xno
   7454 		then
   7455 			cf_base=`basename "$cf_left"`
   7456 			cf_trim=`echo "$cf_base" | sed -e 's/_[0-9][0-9]x[0-9][0-9]\././'`
   7457 			case "x${cf_base}" in
   7458 			(*:*)
   7459 				cf_next=$cf_base
   7460 				# user-defined mapping
   7461 				;;
   7462 			(*.png)
   7463 				cf_size=`file "$cf_left"|sed -e 's/^[^:]*://' -e 's/^.*[^0-9]\([0-9][0-9]* x [0-9][0-9]*\)[^0-9].*$/\1/' -e 's/ //g'`
   7464 				if test -z "$cf_size"
   7465 				then
   7466 					{ echo "$as_me:7466: WARNING: cannot determine size of $cf_left" >&5
   7467 echo "$as_me: WARNING: cannot determine size of $cf_left" >&2;}
   7468 					continue
   7469 				fi
   7470 				cf_next="$cf_size/apps/$cf_trim"
   7471 				;;
   7472 			(*.svg)
   7473 				cf_next="scalable/apps/$cf_trim"
   7474 				;;
   7475 			(*.xpm)
   7476 				test -n "$verbose" && echo "	ignored XPM file in icon theme" 1>&6
   7477 
   7478 echo "${as_me:-configure}:7478: testing ignored XPM file in icon theme ..." 1>&5
   7479 
   7480 				continue
   7481 				;;
   7482 			(*_[0-9][0-9]*x[0-9][0-9]*.*)
   7483 				cf_size=`echo "$cf_left"|sed -e 's/^.*_\([0-9][0-9]*x[0-9][0-9]*\)\..*$/\1/'`
   7484 				cf_left=`echo "$cf_left"|sed -e 's/^\(.*\)_\([0-9][0-9]*x[0-9][0-9]*\)\(\..*\)$/\1\3/'`
   7485 				cf_next="$cf_size/apps/$cf_base"
   7486 				;;
   7487 			esac
   7488 			test -n "$verbose" && echo "	adding $cf_next" 1>&6
   7489 
   7490 echo "${as_me:-configure}:7490: testing adding $cf_next ..." 1>&5
   7491 
   7492 			cf_icon="${cf_icon}:${cf_next}"
   7493 		fi
   7494 		test -n "$ICON_LIST" && ICON_LIST="$ICON_LIST "
   7495 		ICON_LIST="$ICON_LIST${cf_icon}"
   7496 		if test -z "$ICON_NAME"
   7497 		then
   7498 			ICON_NAME=`basename "$cf_icon" | sed -e 's/[.:].*//'`
   7499 		fi
   7500 	done
   7501 done
   7502 
   7503 if test -n "$verbose"
   7504 then
   7505 	echo "$as_me:7505: checking result" >&5
   7506 echo $ECHO_N "checking result... $ECHO_C" >&6
   7507 fi
   7508 echo "$as_me:7508: result: $ICON_LIST" >&5
   7509 echo "${ECHO_T}$ICON_LIST" >&6
   7510 
   7511 if test -z "$ICON_LIST"
   7512 then
   7513 	{ { echo "$as_me:7513: error: no icons found" >&5
   7514 echo "$as_me: error: no icons found" >&2;}
   7515    { (exit 1); exit 1; }; }
   7516 fi
   7517 
   7518 echo "$as_me:7518: checking for icon name" >&5
   7519 echo $ECHO_N "checking for icon name... $ECHO_C" >&6
   7520 echo "$as_me:7520: result: $ICON_NAME" >&5
   7521 echo "${ECHO_T}$ICON_NAME" >&6
   7522 
   7523 # Comment-out the install-desktop rule if the desktop-utils are not found.
   7524 echo "$as_me:7524: checking if you want to install desktop files" >&5
   7525 echo $ECHO_N "checking if you want to install desktop files... $ECHO_C" >&6
   7526 
   7527 # Check whether --enable-desktop or --disable-desktop was given.
   7528 if test "${enable_desktop+set}" = set; then
   7529   enableval="$enable_desktop"
   7530   test "$enableval" != no && enableval=yes
   7531 	if test "$enableval" != "yes" ; then
   7532     enable_desktop=$enableval
   7533 	else
   7534 		enable_desktop=$enableval
   7535 	fi
   7536 else
   7537   enableval=yes
   7538 	enable_desktop=$enableval
   7539 
   7540 fi;
   7541 echo "$as_me:7541: result: $enable_desktop" >&5
   7542 echo "${ECHO_T}$enable_desktop" >&6
   7543 
   7544 desktop_utils=
   7545 if test "$enable_desktop" = yes ; then
   7546 # Extract the first word of "desktop-file-install", so it can be a program name with args.
   7547 set dummy desktop-file-install; ac_word=$2
   7548 echo "$as_me:7548: checking for $ac_word" >&5
   7549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   7550 if test "${ac_cv_prog_desktop_utils+set}" = set; then
   7551   echo $ECHO_N "(cached) $ECHO_C" >&6
   7552 else
   7553   if test -n "$desktop_utils"; then
   7554   ac_cv_prog_desktop_utils="$desktop_utils" # Let the user override the test.
   7555 else
   7556   ac_save_IFS=$IFS; IFS=$ac_path_separator
   7557 ac_dummy="$PATH"
   7558 for ac_dir in $ac_dummy; do
   7559   IFS=$ac_save_IFS
   7560   test -z "$ac_dir" && ac_dir=.
   7561   $as_executable_p "$ac_dir/$ac_word" || continue
   7562 ac_cv_prog_desktop_utils="yes"
   7563 echo "$as_me:7563: found $ac_dir/$ac_word" >&5
   7564 break
   7565 done
   7566 
   7567   test -z "$ac_cv_prog_desktop_utils" && ac_cv_prog_desktop_utils="no"
   7568 fi
   7569 fi
   7570 desktop_utils=$ac_cv_prog_desktop_utils
   7571 if test -n "$desktop_utils"; then
   7572   echo "$as_me:7572: result: $desktop_utils" >&5
   7573 echo "${ECHO_T}$desktop_utils" >&6
   7574 else
   7575   echo "$as_me:7575: result: no" >&5
   7576 echo "${ECHO_T}no" >&6
   7577 fi
   7578 
   7579 fi
   7580 
   7581 test "$desktop_utils" = yes && desktop_utils= || desktop_utils="#"
   7582 
   7583 if test -z "$desktop_utils"
   7584 then
   7585 	echo "$as_me:7585: checking for requested desktop-category" >&5
   7586 echo $ECHO_N "checking for requested desktop-category... $ECHO_C" >&6
   7587 
   7588 # Check whether --with-desktop-category or --without-desktop-category was given.
   7589 if test "${with_desktop_category+set}" = set; then
   7590   withval="$with_desktop_category"
   7591   cf_desktop_want=$withval
   7592 else
   7593   cf_desktop_want=auto
   7594 fi;
   7595 	echo "$as_me:7595: result: $cf_desktop_want" >&5
   7596 echo "${ECHO_T}$cf_desktop_want" >&6
   7597 
   7598 	if test "$cf_desktop_want" = auto
   7599 	then
   7600 		rm -rf conftest*
   7601 		cf_desktop_also=
   7602 		for cf_desktop_dir in  \
   7603 			/usr/share/app-install \
   7604 			/usr/share/applications
   7605 		do
   7606 			if test -d $cf_desktop_dir
   7607 			then
   7608 				find $cf_desktop_dir -name '*.desktop' | \
   7609 				while true
   7610 				do
   7611 					read cf_desktop_path
   7612 					test -z "$cf_desktop_path" && break
   7613 					cf_desktop_name=`basename "$cf_desktop_path" .desktop`
   7614 					case $cf_desktop_name in
   7615 					(xterm|*-xterm|*rxvt*|*konsole|*[Tt]erminal)
   7616 						test -n "$verbose" && echo "	inspect $cf_desktop_path" 1>&6
   7617 
   7618 echo "${as_me:-configure}:7618: testing inspect $cf_desktop_path ..." 1>&5
   7619 
   7620 						${EGREP-egrep} '^Categories=' "$cf_desktop_path" | \
   7621 							tr ';' '\n' | \
   7622 							sed -e 's%^.*=%%' -e '/^$/d' >>conftest.1
   7623 						;;
   7624 					esac
   7625 				done
   7626 			fi
   7627 		done
   7628 		if test -s conftest.1
   7629 		then
   7630 			cf_desktop_last=
   7631 			sort conftest.1 | \
   7632 			while true
   7633 			do
   7634 				read cf_desktop_this
   7635 				test -z "$cf_desktop_this" && break
   7636 				if test -s conftest.2
   7637 				then
   7638 					grep -w "$cf_desktop_this" conftest.2 >/dev/null && continue
   7639 				elif test -s conftest.3
   7640 				then
   7641 					grep -w "$cf_desktop_this" conftest.3 >/dev/null && continue
   7642 				fi
   7643 				case "$cf_desktop_this" in
   7644 				(-*)
   7645 					;;
   7646 				(Qt*|*Xfce*|*[ABCDEFGHIJKLMNOPQRSTUVWXYZ][ABCDEFGHIJKLMNOPQRSTUVWXYZ]*)
   7647 					test -n "$verbose" && echo "	ignored $cf_desktop_this" 1>&6
   7648 
   7649 echo "${as_me:-configure}:7649: testing ignored $cf_desktop_this ..." 1>&5
   7650 
   7651 					echo "$cf_desktop_this" >> conftest.3
   7652 					;;
   7653 				(System|TerminalEmulator|*)
   7654 					test -n "$verbose" && echo "	applied $cf_desktop_this" 1>&6
   7655 
   7656 echo "${as_me:-configure}:7656: testing applied $cf_desktop_this ..." 1>&5
   7657 
   7658 					test "x$cf_desktop_last" != "x$cf_desktop_this" && echo "$cf_desktop_this" >>conftest.2
   7659 					;;
   7660 				esac
   7661 				cf_desktop_last=$cf_desktop_this
   7662 			done
   7663 			cf_desktop_want="`tr '\n' ';' < conftest.2`"
   7664 		fi
   7665 		if test -n "$cf_desktop_want"
   7666 		then
   7667 			if test "$cf_desktop_want" = auto
   7668 			then
   7669 				cf_desktop_want=
   7670 			else
   7671 				# do a sanity check on the semicolon-separated list, ignore on failure
   7672 				cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/[^;]//g'`
   7673 				test -z "$cf_desktop_test" && cf_desktop_want=
   7674 				cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/^.*;$/./g'`
   7675 				test -z "$cf_desktop_test" && cf_desktop_want=
   7676 			fi
   7677 		fi
   7678 		if test -z "$cf_desktop_want"
   7679 		then
   7680 			cf_desktop_want="`echo "System|TerminalEmulator|*" | sed -e 's/\*//g' -e 's/|/;/g' -e 's/;*$/;/g'`"
   7681 			test -n "$verbose" && echo "	no usable value found for desktop category" 1>&6
   7682 
   7683 echo "${as_me:-configure}:7683: testing no usable value found for desktop category ..." 1>&5
   7684 
   7685 		fi
   7686 	fi
   7687 	DESKTOP_CATEGORY=`echo "$cf_desktop_want" | sed -e 's/[ ,]/;/g'`
   7688 	test -n "$verbose" && echo "	will use Categories=$DESKTOP_CATEGORY" 1>&6
   7689 
   7690 echo "${as_me:-configure}:7690: testing will use Categories=$DESKTOP_CATEGORY ..." 1>&5
   7691 
   7692 fi
   7693 
   7694 echo "$as_me:7694: checking for install-permissions reference" >&5
   7695 echo $ECHO_N "checking for install-permissions reference... $ECHO_C" >&6
   7696 
   7697 # Check whether --with-reference or --without-reference was given.
   7698 if test "${with_reference+set}" = set; then
   7699   withval="$with_reference"
   7700   with_reference=$withval
   7701 else
   7702   with_reference=xterm
   7703 fi;
   7704 echo "$as_me:7704: result: $with_reference" >&5
   7705 echo "${ECHO_T}$with_reference" >&6
   7706 
   7707 with_full_paths=yes
   7708 
   7709 	echo "$as_me:7709: checking for PATH separator" >&5
   7710 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
   7711 	case "$cf_cv_system_name" in
   7712 	(os2*)	PATH_SEPARATOR=';'  ;;
   7713 	(*)	${PATH_SEPARATOR:=':'}  ;;
   7714 	esac
   7715 
   7716 	echo "$as_me:7716: result: $PATH_SEPARATOR" >&5
   7717 echo "${ECHO_T}$PATH_SEPARATOR" >&6
   7718 
   7719 test -z "$XTERM_PATH" && XTERM_PATH="$with_reference"
   7720 for ac_prog in $XTERM_PATH $with_reference
   7721 do
   7722   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7723 set dummy $ac_prog; ac_word=$2
   7724 echo "$as_me:7724: checking for $ac_word" >&5
   7725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   7726 if test "${ac_cv_path_XTERM_PATH+set}" = set; then
   7727   echo $ECHO_N "(cached) $ECHO_C" >&6
   7728 else
   7729   case $XTERM_PATH in
   7730   [\\/]* | ?:[\\/]*)
   7731   ac_cv_path_XTERM_PATH="$XTERM_PATH" # Let the user override the test with a path.
   7732   ;;
   7733   *)
   7734   ac_save_IFS=$IFS; IFS=$ac_path_separator
   7735 ac_dummy="$PATH"
   7736 for ac_dir in $ac_dummy; do
   7737   IFS=$ac_save_IFS
   7738   test -z "$ac_dir" && ac_dir=.
   7739   if $as_executable_p "$ac_dir/$ac_word"; then
   7740    ac_cv_path_XTERM_PATH="$ac_dir/$ac_word"
   7741    echo "$as_me:7741: found $ac_dir/$ac_word" >&5
   7742    break
   7743 fi
   7744 done
   7745 
   7746   ;;
   7747 esac
   7748 fi
   7749 XTERM_PATH=$ac_cv_path_XTERM_PATH
   7750 
   7751 if test -n "$XTERM_PATH"; then
   7752   echo "$as_me:7752: result: $XTERM_PATH" >&5
   7753 echo "${ECHO_T}$XTERM_PATH" >&6
   7754 else
   7755   echo "$as_me:7755: result: no" >&5
   7756 echo "${ECHO_T}no" >&6
   7757 fi
   7758 
   7759   test -n "$XTERM_PATH" && break
   7760 done
   7761 test -n "$XTERM_PATH" || XTERM_PATH="$XTERM_PATH"
   7762 
   7763 cf_path_prog=""
   7764 cf_path_args=""
   7765 IFS="${IFS:- 	}"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
   7766 for cf_temp in $ac_cv_path_XTERM_PATH
   7767 do
   7768 	if test -z "$cf_path_prog" ; then
   7769 		if test "$with_full_paths" = yes ; then
   7770 
   7771 if test "x$prefix" != xNONE; then
   7772 	cf_path_syntax="$prefix"
   7773 else
   7774 	cf_path_syntax="$ac_default_prefix"
   7775 fi
   7776 
   7777 case ".$cf_temp" in
   7778 (.\$\(*\)*|.\'*\'*)
   7779 	;;
   7780 (..|./*|.\\*)
   7781 	;;
   7782 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
   7783 	;;
   7784 (.\$\{*prefix\}*|.\$\{*dir\}*)
   7785 	eval cf_temp="$cf_temp"
   7786 	case ".$cf_temp" in
   7787 	(.NONE/*)
   7788 		cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
   7789 		;;
   7790 	esac
   7791 	;;
   7792 (.no|.NONE/*)
   7793 	cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
   7794 	;;
   7795 (*)
   7796 	break
   7797 	;;
   7798 esac
   7799 
   7800 			cf_path_prog="$cf_temp"
   7801 		else
   7802 			cf_path_prog="`basename "$cf_temp"`"
   7803 		fi
   7804 	elif test -z "$cf_path_args" ; then
   7805 		cf_path_args="$cf_temp"
   7806 	else
   7807 		cf_path_args="$cf_path_args $cf_temp"
   7808 	fi
   7809 done
   7810 IFS="$cf_save_ifs"
   7811 
   7812 if test -n "$cf_path_prog" ; then
   7813 
   7814 echo "${as_me:-configure}:7814: testing defining path for ${cf_path_prog} ..." 1>&5
   7815 
   7816 cat >>confdefs.h <<EOF
   7817 #define XTERM_PATH_PATH "$cf_path_prog"
   7818 EOF
   7819 
   7820 	test -n "$cf_path_args" &&
   7821 cat >>confdefs.h <<EOF
   7822 #define XTERM_PATH_ARGS "$cf_path_args"
   7823 EOF
   7824 
   7825 fi
   7826 
   7827 # If any of --program-prefix, --program-suffix or --program-transform-name is
   7828 # given, accept an option tell the makefile to create a symbolic link, e.g.,
   7829 # to "xterm" on install.
   7830 XTERM_SYMLINK=NONE
   7831 
   7832 if test "$program_transform_name" != "'s,,,'" ; then
   7833 cf_name=`echo "$program_transform_name" | sed -e 's,\\$\\$,$,g'`
   7834 cf_name=`echo xterm |sed -e "$cf_name"`
   7835 echo "$as_me:7835: checking for symbolic link to create to $cf_name" >&5
   7836 echo $ECHO_N "checking for symbolic link to create to $cf_name... $ECHO_C" >&6
   7837 
   7838 # Check whether --with-xterm-symlink or --without-xterm-symlink was given.
   7839 if test "${with_xterm_symlink+set}" = set; then
   7840   withval="$with_xterm_symlink"
   7841   with_symlink=$withval
   7842 else
   7843   with_symlink=xterm
   7844 fi;
   7845 echo "$as_me:7845: result: $with_symlink" >&5
   7846 echo "${ECHO_T}$with_symlink" >&6
   7847 test "$with_symlink" = yes && with_symlink=xterm
   7848 test -n "$with_symlink" && \
   7849 	test "$with_symlink" != no && \
   7850 	test "$with_symlink" != "$cf_name" && \
   7851 	XTERM_SYMLINK="$with_symlink"
   7852 fi
   7853 
   7854 echo "$as_me:7854: checking if you want to disable openpty" >&5
   7855 echo $ECHO_N "checking if you want to disable openpty... $ECHO_C" >&6
   7856 
   7857 # Check whether --enable-openpty or --disable-openpty was given.
   7858 if test "${enable_openpty+set}" = set; then
   7859   enableval="$enable_openpty"
   7860   test "$enableval" != no && enableval=yes
   7861 	if test "$enableval" != "yes" ; then
   7862     disable_openpty=yes
   7863 	else
   7864 		disable_openpty=no
   7865 	fi
   7866 else
   7867   enableval=yes
   7868 	disable_openpty=no
   7869 
   7870 fi;
   7871 echo "$as_me:7871: result: $disable_openpty" >&5
   7872 echo "${ECHO_T}$disable_openpty" >&6
   7873 
   7874 echo "$as_me:7874: checking if you want to disable setuid" >&5
   7875 echo $ECHO_N "checking if you want to disable setuid... $ECHO_C" >&6
   7876 
   7877 # Check whether --enable-setuid or --disable-setuid was given.
   7878 if test "${enable_setuid+set}" = set; then
   7879   enableval="$enable_setuid"
   7880   test "$enableval" != no && enableval=yes
   7881 	if test "$enableval" != "yes" ; then
   7882     disable_setuid=yes
   7883 	else
   7884 		disable_setuid=no
   7885 	fi
   7886 else
   7887   enableval=yes
   7888 	disable_setuid=no
   7889 
   7890 fi;
   7891 echo "$as_me:7891: result: $disable_setuid" >&5
   7892 echo "${ECHO_T}$disable_setuid" >&6
   7893 
   7894 echo "$as_me:7894: checking if you want to disable setgid" >&5
   7895 echo $ECHO_N "checking if you want to disable setgid... $ECHO_C" >&6
   7896 
   7897 # Check whether --enable-setgid or --disable-setgid was given.
   7898 if test "${enable_setgid+set}" = set; then
   7899   enableval="$enable_setgid"
   7900   test "$enableval" != no && enableval=yes
   7901 	if test "$enableval" != "yes" ; then
   7902     disable_setgid=yes
   7903 	else
   7904 		disable_setgid=no
   7905 	fi
   7906 else
   7907   enableval=yes
   7908 	disable_setgid=no
   7909 
   7910 fi;
   7911 echo "$as_me:7911: result: $disable_setgid" >&5
   7912 echo "${ECHO_T}$disable_setgid" >&6
   7913 
   7914 echo "$as_me:7914: checking if you want to run xterm setuid to a given user" >&5
   7915 echo $ECHO_N "checking if you want to run xterm setuid to a given user... $ECHO_C" >&6
   7916 
   7917 # Check whether --with-setuid or --without-setuid was given.
   7918 if test "${with_setuid+set}" = set; then
   7919   withval="$with_setuid"
   7920   use_given_setuid=$withval
   7921 else
   7922   use_given_setuid=no
   7923 fi;
   7924 echo "$as_me:7924: result: $use_given_setuid" >&5
   7925 echo "${ECHO_T}$use_given_setuid" >&6
   7926 
   7927 if test "$use_given_setuid" != no ; then
   7928 	if test "$use_given_setuid" = yes ; then
   7929 		cf_cv_given_setuid=root
   7930 	else
   7931 		cf_cv_given_setuid=$use_given_setuid
   7932 	fi
   7933 	# inherit SINSTALL_OPTS from environment to allow packager to customize it.
   7934 	SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid"
   7935 fi
   7936 
   7937 echo "$as_me:7937: checking if you want to run xterm setgid to match utmp/utmpx file" >&5
   7938 echo $ECHO_N "checking if you want to run xterm setgid to match utmp/utmpx file... $ECHO_C" >&6
   7939 
   7940 # Check whether --with-utmp-setgid or --without-utmp-setgid was given.
   7941 if test "${with_utmp_setgid+set}" = set; then
   7942   withval="$with_utmp_setgid"
   7943   use_utmp_setgid=$withval
   7944 else
   7945   use_utmp_setgid=no
   7946 fi;
   7947 echo "$as_me:7947: result: $use_utmp_setgid" >&5
   7948 echo "${ECHO_T}$use_utmp_setgid" >&6
   7949 
   7950 if test "$use_utmp_setgid" != no ; then
   7951 	if test "$use_utmp_setgid" = yes ; then
   7952 
   7953 if test $cf_cv_have_utmp != no ; then
   7954 echo "$as_me:7954: checking for utmp/utmpx group" >&5
   7955 echo $ECHO_N "checking for utmp/utmpx group... $ECHO_C" >&6
   7956 if test "${cf_cv_utmp_group+set}" = set; then
   7957   echo $ECHO_N "(cached) $ECHO_C" >&6
   7958 else
   7959 
   7960 for cf_utmp_path in /var/adm /var/run
   7961 do
   7962 	for cf_utmp_file in utmpx utmp
   7963 	do
   7964 		if test -f $cf_utmp_path/$cf_utmp_file
   7965 		then
   7966 			cf_cv_utmp_group=root
   7967 
   7968 			cf_option="-lL"
   7969 
   7970 			# Expect listing to have fields like this:
   7971 			#-r--r--r--   1 user      group       34293 Jul 18 16:29 pathname
   7972 			ls "$cf_option" "$cf_utmp_path/$cf_utmp_file" >conftest
   7973 			read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest
   7974 			if test -z "$cf_rest" ; then
   7975 				cf_option="${cf_option}g"
   7976 				ls "$cf_option" "$cf_utmp_path/$cf_utmp_file" >conftest
   7977 				read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest
   7978 			fi
   7979 			rm -f conftest
   7980 
   7981 			# If we have a pathname, and the date fields look right, assume we've
   7982 			# captured the group as well.
   7983 			if test -n "$cf_rest" ; then
   7984 				cf_test=`echo "${cf_date2}${cf_date3}" | sed -e 's/[0-9:]//g'`
   7985 				if test -z "$cf_test" ; then
   7986 					cf_cv_utmp_group=$cf_grp;
   7987 				fi
   7988 			fi
   7989 			break
   7990 		fi
   7991 	done
   7992 	test -n "$cf_cv_utmp_group" && break
   7993 done
   7994 
   7995 fi
   7996 echo "$as_me:7996: result: $cf_cv_utmp_group" >&5
   7997 echo "${ECHO_T}$cf_cv_utmp_group" >&6
   7998 else
   7999 	{ { echo "$as_me:7999: error: cannot find utmp group" >&5
   8000 echo "$as_me: error: cannot find utmp group" >&2;}
   8001    { (exit 1); exit 1; }; }
   8002 fi
   8003 
   8004 	else
   8005 		cf_cv_utmp_group=$use_utmp_setgid
   8006 	fi
   8007 	if test "$cf_cv_posix_saved_ids" != yes ; then
   8008 		{ { echo "$as_me:8008: error: Your system does not support POSIX saved-ids" >&5
   8009 echo "$as_me: error: Your system does not support POSIX saved-ids" >&2;}
   8010    { (exit 1); exit 1; }; }
   8011 	fi
   8012 
   8013 cat >>confdefs.h <<\EOF
   8014 #define USE_UTMP_SETGID 1
   8015 EOF
   8016 
   8017 	SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group"
   8018 fi
   8019 
   8020 echo "$as_me:8020: checking if you want to link with utempter" >&5
   8021 echo $ECHO_N "checking if you want to link with utempter... $ECHO_C" >&6
   8022 
   8023 # Check whether --with-utempter or --without-utempter was given.
   8024 if test "${with_utempter+set}" = set; then
   8025   withval="$with_utempter"
   8026   use_utempter=$withval
   8027 else
   8028   use_utempter=no
   8029 fi;
   8030 echo "$as_me:8030: result: $use_utempter" >&5
   8031 echo "${ECHO_T}$use_utempter" >&6
   8032 
   8033 if test "$use_utempter" = yes ; then
   8034 
   8035 echo "$as_me:8035: checking if we can link with utempter library" >&5
   8036 echo $ECHO_N "checking if we can link with utempter library... $ECHO_C" >&6
   8037 if test "${cf_cv_have_utempter+set}" = set; then
   8038   echo $ECHO_N "(cached) $ECHO_C" >&6
   8039 else
   8040 
   8041 cf_save_LIBS="$LIBS"
   8042 
   8043 cf_add_libs="$LIBS"
   8044 # reverse order
   8045 cf_add_0lib=
   8046 for cf_add_1lib in -lutempter; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   8047 # filter duplicates
   8048 for cf_add_1lib in $cf_add_0lib; do
   8049 	for cf_add_2lib in $cf_add_libs; do
   8050 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   8051 			cf_add_1lib=
   8052 			break
   8053 		fi
   8054 	done
   8055 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   8056 done
   8057 LIBS="$cf_add_libs"
   8058 
   8059 cat >"conftest.$ac_ext" <<_ACEOF
   8060 #line 8060 "configure"
   8061 #include "confdefs.h"
   8062 
   8063 #include <utempter.h>
   8064 
   8065 int
   8066 main (void)
   8067 {
   8068 
   8069 	addToUtmp("/dev/tty", 0, 1);
   8070 	removeFromUtmp();
   8071 
   8072   ;
   8073   return 0;
   8074 }
   8075 _ACEOF
   8076 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   8077 if { (eval echo "$as_me:8077: \"$ac_link\"") >&5
   8078   (eval $ac_link) 2>&5
   8079   ac_status=$?
   8080   echo "$as_me:8080: \$? = $ac_status" >&5
   8081   (exit "$ac_status"); } &&
   8082          { ac_try='test -s "conftest$ac_exeext"'
   8083   { (eval echo "$as_me:8083: \"$ac_try\"") >&5
   8084   (eval $ac_try) 2>&5
   8085   ac_status=$?
   8086   echo "$as_me:8086: \$? = $ac_status" >&5
   8087   (exit "$ac_status"); }; }; then
   8088 
   8089 	cf_cv_have_utempter=yes
   8090 else
   8091   echo "$as_me: failed program was:" >&5
   8092 cat "conftest.$ac_ext" >&5
   8093 
   8094 	cf_cv_have_utempter=no
   8095 fi
   8096 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   8097 LIBS="$cf_save_LIBS"
   8098 
   8099 fi
   8100 echo "$as_me:8100: result: $cf_cv_have_utempter" >&5
   8101 echo "${ECHO_T}$cf_cv_have_utempter" >&6
   8102 if test "$cf_cv_have_utempter" = yes ; then
   8103 
   8104 cat >>confdefs.h <<\EOF
   8105 #define USE_UTEMPTER 1
   8106 EOF
   8107 
   8108 cf_add_libs="$LIBS"
   8109 # reverse order
   8110 cf_add_0lib=
   8111 for cf_add_1lib in -lutempter; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   8112 # filter duplicates
   8113 for cf_add_1lib in $cf_add_0lib; do
   8114 	for cf_add_2lib in $cf_add_libs; do
   8115 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   8116 			cf_add_1lib=
   8117 			break
   8118 		fi
   8119 	done
   8120 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   8121 done
   8122 LIBS="$cf_add_libs"
   8123 
   8124 fi
   8125 
   8126 	test "$cf_cv_have_utempter" != yes && use_utempter=no
   8127 else
   8128 	use_utempter=no
   8129 fi
   8130 
   8131 # Some configurations permit (or require) either setuid or setgid mode.
   8132 # Let the user decide.
   8133 if test "$use_utempter" = yes ; then
   8134 	if test "${enable_setuid+set}" != set ; then
   8135 		disable_setuid=yes
   8136 		test -n "$verbose" && echo "	No --disable-setuid option given, force to yes" 1>&6
   8137 
   8138 echo "${as_me:-configure}:8138: testing No --disable-setuid option given, force to yes ..." 1>&5
   8139 
   8140 	fi
   8141 fi
   8142 
   8143 ###	checks for external data
   8144 
   8145 echo "$as_me:8145: checking if external errno is declared" >&5
   8146 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
   8147 if test "${cf_cv_dcl_errno+set}" = set; then
   8148   echo $ECHO_N "(cached) $ECHO_C" >&6
   8149 else
   8150 
   8151 	cat >"conftest.$ac_ext" <<_ACEOF
   8152 #line 8152 "configure"
   8153 #include "confdefs.h"
   8154 
   8155 #ifdef HAVE_STDLIB_H
   8156 #include <stdlib.h>
   8157 #endif
   8158 #include <stdio.h>
   8159 #include <sys/types.h>
   8160 #include <errno.h>
   8161 int
   8162 main (void)
   8163 {
   8164 int x = (int) errno; (void)x
   8165   ;
   8166   return 0;
   8167 }
   8168 _ACEOF
   8169 rm -f "conftest.$ac_objext"
   8170 if { (eval echo "$as_me:8170: \"$ac_compile\"") >&5
   8171   (eval $ac_compile) 2>&5
   8172   ac_status=$?
   8173   echo "$as_me:8173: \$? = $ac_status" >&5
   8174   (exit "$ac_status"); } &&
   8175          { ac_try='test -s "conftest.$ac_objext"'
   8176   { (eval echo "$as_me:8176: \"$ac_try\"") >&5
   8177   (eval $ac_try) 2>&5
   8178   ac_status=$?
   8179   echo "$as_me:8179: \$? = $ac_status" >&5
   8180   (exit "$ac_status"); }; }; then
   8181   cf_cv_dcl_errno=yes
   8182 else
   8183   echo "$as_me: failed program was:" >&5
   8184 cat "conftest.$ac_ext" >&5
   8185 cf_cv_dcl_errno=no
   8186 fi
   8187 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   8188 
   8189 fi
   8190 echo "$as_me:8190: result: $cf_cv_dcl_errno" >&5
   8191 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
   8192 
   8193 if test "$cf_cv_dcl_errno" = no ; then
   8194 
   8195 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   8196 
   8197 	cat >>confdefs.h <<EOF
   8198 #define $cf_result 1
   8199 EOF
   8200 
   8201 fi
   8202 
   8203 # It's possible (for near-UNIX clones) that the data doesn't exist
   8204 
   8205 echo "$as_me:8205: checking if external errno exists" >&5
   8206 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
   8207 if test "${cf_cv_have_errno+set}" = set; then
   8208   echo $ECHO_N "(cached) $ECHO_C" >&6
   8209 else
   8210 
   8211 	cat >"conftest.$ac_ext" <<_ACEOF
   8212 #line 8212 "configure"
   8213 #include "confdefs.h"
   8214 
   8215 #undef errno
   8216 extern int errno;
   8217 
   8218 int
   8219 main (void)
   8220 {
   8221 errno = 2
   8222   ;
   8223   return 0;
   8224 }
   8225 _ACEOF
   8226 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   8227 if { (eval echo "$as_me:8227: \"$ac_link\"") >&5
   8228   (eval $ac_link) 2>&5
   8229   ac_status=$?
   8230   echo "$as_me:8230: \$? = $ac_status" >&5
   8231   (exit "$ac_status"); } &&
   8232          { ac_try='test -s "conftest$ac_exeext"'
   8233   { (eval echo "$as_me:8233: \"$ac_try\"") >&5
   8234   (eval $ac_try) 2>&5
   8235   ac_status=$?
   8236   echo "$as_me:8236: \$? = $ac_status" >&5
   8237   (exit "$ac_status"); }; }; then
   8238   cf_cv_have_errno=yes
   8239 else
   8240   echo "$as_me: failed program was:" >&5
   8241 cat "conftest.$ac_ext" >&5
   8242 cf_cv_have_errno=no
   8243 fi
   8244 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   8245 
   8246 fi
   8247 echo "$as_me:8247: result: $cf_cv_have_errno" >&5
   8248 echo "${ECHO_T}$cf_cv_have_errno" >&6
   8249 
   8250 if test "$cf_cv_have_errno" = yes ; then
   8251 
   8252 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   8253 
   8254 	cat >>confdefs.h <<EOF
   8255 #define $cf_result 1
   8256 EOF
   8257 
   8258 fi
   8259 
   8260 echo "$as_me:8260: checking for explicit tty group name" >&5
   8261 echo $ECHO_N "checking for explicit tty group name... $ECHO_C" >&6
   8262 
   8263 # Check whether --with-tty-group or --without-tty-group was given.
   8264 if test "${with_tty_group+set}" = set; then
   8265   withval="$with_tty_group"
   8266   cf_tty_group=$withval
   8267 else
   8268   cf_tty_group=auto...
   8269 fi;
   8270 test -z "$cf_tty_group"    && cf_tty_group=auto...
   8271 test "$cf_tty_group" = yes && cf_tty_group=auto...
   8272 echo "$as_me:8272: result: $cf_tty_group" >&5
   8273 echo "${ECHO_T}$cf_tty_group" >&6
   8274 
   8275 if test "$cf_tty_group" = "auto..." ; then
   8276 echo "$as_me:8276: checking for tty group name" >&5
   8277 echo $ECHO_N "checking for tty group name... $ECHO_C" >&6
   8278 if test "${cf_cv_tty_group_name+set}" = set; then
   8279   echo $ECHO_N "(cached) $ECHO_C" >&6
   8280 else
   8281 
   8282 # If we are configuring as root, it is hard to get a clue about the tty group.
   8283 # But we'll guess based on how our connection is set up - assuming it is done
   8284 # properly.
   8285 
   8286 cf_uid="`id | sed -e 's/^^=*=//' -e 's/(.*$//'`"
   8287 # )vi
   8288 if test "$cf_uid" != 0 ; then
   8289 cf_cv_tty_group_name=
   8290 cf_tty_name="`tty`"
   8291 test "$cf_tty_name" = "not a tty" && cf_tty_name=/dev/tty
   8292 test -z "$cf_tty_name" && cf_tty_name=/dev/tty
   8293 if test -c "$cf_tty_name"
   8294 then
   8295 	cf_option="-lL"
   8296 
   8297 	# Expect listing to have fields like this:
   8298 	#-rwxrwxrwx   1 user      group       34293 Jul 18 16:29 pathname
   8299 	ls $cf_option "$cf_tty_name" >conftest.out
   8300 	read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out
   8301 	if test -z "$cf_rest" ; then
   8302 		cf_option="${cf_option}g"
   8303 		ls "$cf_option" "$cf_tty_name" >conftest.out
   8304 		read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out
   8305 	fi
   8306 	rm -f conftest.out
   8307 	cf_cv_tty_group_name=$cf_grp
   8308 fi
   8309 fi
   8310 
   8311 # If we cannot deduce the tty group, fall back on hardcoded cases
   8312 
   8313 if test -z "$cf_cv_tty_group_name"
   8314 then
   8315 case $host_os in
   8316 (osf*)
   8317 	cf_cv_tty_group_name="terminal"
   8318 	;;
   8319 (*)
   8320 	cf_cv_tty_group_name="unknown"
   8321 	if ( ${EGREP-egrep} '^tty:' /etc/group 2>/dev/null 1>/dev/null ) then
   8322 		cf_cv_tty_group_name="tty"
   8323 	fi
   8324 	;;
   8325 esac
   8326 fi
   8327 
   8328 fi
   8329 echo "$as_me:8329: result: $cf_cv_tty_group_name" >&5
   8330 echo "${ECHO_T}$cf_cv_tty_group_name" >&6
   8331 cf_tty_group="$cf_cv_tty_group_name"
   8332 else
   8333 	# if configure option, always do this
   8334 
   8335 cat >>confdefs.h <<\EOF
   8336 #define USE_TTY_GROUP 1
   8337 EOF
   8338 
   8339 fi
   8340 
   8341 cat >>confdefs.h <<EOF
   8342 #define TTY_GROUP_NAME "$cf_tty_group"
   8343 EOF
   8344 
   8345 # This is only a double-check that the group-name we obtained above really
   8346 # does apply to the device.  We cannot perform this test if we are in batch
   8347 # mode, or if we are cross-compiling.
   8348 
   8349 echo "$as_me:8349: checking if we may use the $cf_tty_group group" >&5
   8350 echo $ECHO_N "checking if we may use the $cf_tty_group group... $ECHO_C" >&6
   8351 if test "${cf_cv_tty_group+set}" = set; then
   8352   echo $ECHO_N "(cached) $ECHO_C" >&6
   8353 else
   8354 
   8355 cf_tty_name="`tty`"
   8356 if test "$cf_tty_name" != "not a tty"
   8357 then
   8358 if test "$cross_compiling" = yes; then
   8359   cf_cv_tty_group=unknown
   8360 else
   8361   cat >"conftest.$ac_ext" <<_ACEOF
   8362 #line 8362 "configure"
   8363 #include "confdefs.h"
   8364 
   8365 #include <unistd.h>
   8366 #include <sys/types.h>
   8367 #include <sys/stat.h>
   8368 #include <grp.h>
   8369 int main(void)
   8370 {
   8371 	struct stat sb;
   8372 	struct group *ttygrp;
   8373 	int fd;
   8374 	char *name;
   8375 
   8376 	for (fd = 0; fd < 3; ++fd) {
   8377 		if ((name = ttyname(fd)) != 0)
   8378 			break;
   8379 	}
   8380 	if (name == 0)
   8381 		name = "/dev/tty";
   8382 
   8383 	ttygrp = getgrnam(TTY_GROUP_NAME);
   8384 	endgrent();
   8385 
   8386 	if (ttygrp != 0
   8387 	 && name != 0
   8388 	 && stat(name, &sb) == 0
   8389 	 && sb.st_gid != getgid()
   8390 	 && sb.st_gid == ttygrp->gr_gid) {
   8391 		${cf_cv_main_return:-return} (0);
   8392 	}
   8393 	${cf_cv_main_return:-return} (1);
   8394 }
   8395 
   8396 _ACEOF
   8397 rm -f "conftest$ac_exeext"
   8398 if { (eval echo "$as_me:8398: \"$ac_link\"") >&5
   8399   (eval $ac_link) 2>&5
   8400   ac_status=$?
   8401   echo "$as_me:8401: \$? = $ac_status" >&5
   8402   (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
   8403   { (eval echo "$as_me:8403: \"$ac_try\"") >&5
   8404   (eval $ac_try) 2>&5
   8405   ac_status=$?
   8406   echo "$as_me:8406: \$? = $ac_status" >&5
   8407   (exit "$ac_status"); }; }; then
   8408   cf_cv_tty_group=yes
   8409 else
   8410   echo "$as_me: program exited with status $ac_status" >&5
   8411 echo "$as_me: failed program was:" >&5
   8412 cat "conftest.$ac_ext" >&5
   8413 cf_cv_tty_group=no
   8414 fi
   8415 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
   8416 fi
   8417 elif test "$cross_compiling" = yes; then
   8418 	cf_cv_tty_group=unknown
   8419 else
   8420 	cf_cv_tty_group=yes
   8421 fi
   8422 
   8423 fi
   8424 echo "$as_me:8424: result: $cf_cv_tty_group" >&5
   8425 echo "${ECHO_T}$cf_cv_tty_group" >&6
   8426 
   8427 if test $cf_cv_tty_group = no ; then
   8428 	{ echo "$as_me:8428: WARNING: Cannot use $cf_tty_group group" >&5
   8429 echo "$as_me: WARNING: Cannot use $cf_tty_group group" >&2;}
   8430 else
   8431 	cat >>confdefs.h <<\EOF
   8432 #define USE_TTY_GROUP 1
   8433 EOF
   8434 
   8435 fi
   8436 
   8437 ###	checks for system services and user specified options
   8438 
   8439 echo "$as_me:8439: checking for X" >&5
   8440 echo $ECHO_N "checking for X... $ECHO_C" >&6
   8441 
   8442 # Check whether --with-x or --without-x was given.
   8443 if test "${with_x+set}" = set; then
   8444   withval="$with_x"
   8445 
   8446 fi;
   8447 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
   8448 if test "x$with_x" = xno; then
   8449   # The user explicitly disabled X.
   8450   have_x=disabled
   8451 else
   8452   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
   8453     # Both variables are already set.
   8454     have_x=yes
   8455   else
   8456     if test "${ac_cv_have_x+set}" = set; then
   8457   echo $ECHO_N "(cached) $ECHO_C" >&6
   8458 else
   8459   # One or both of the vars are not set, and there is no cached value.
   8460 ac_x_includes=no ac_x_libraries=no
   8461 rm -fr conftest.dir
   8462 if mkdir conftest.dir; then
   8463   cd conftest.dir
   8464   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
   8465   cat >Imakefile <<'EOF'
   8466 acfindx:
   8467 	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
   8468 EOF
   8469   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
   8470     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   8471     eval "`${MAKE-make} acfindx 2>/dev/null | grep -v make`"
   8472     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
   8473     for ac_extension in a so sl dylib dll; do
   8474       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
   8475          test -f "$ac_im_libdir/libX11.$ac_extension"; then
   8476         ac_im_usrlibdir=$ac_im_libdir; break
   8477       fi
   8478     done
   8479     # Screen out bogus values from the imake configuration.  They are
   8480     # bogus both because they are the default anyway, and because
   8481     # using them would break gcc on systems where it needs fixed includes.
   8482     case $ac_im_incroot in
   8483 	/usr/include) ;;
   8484 	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
   8485     esac
   8486     case $ac_im_usrlibdir in
   8487 	/usr/lib | /lib) ;;
   8488 	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
   8489     esac
   8490   fi
   8491   cd ..
   8492   rm -fr conftest.dir
   8493 fi
   8494 
   8495 # Standard set of common directories for X headers.
   8496 # Check X11 before X11Rn because it is often a symlink to the current release.
   8497 ac_x_header_dirs='
   8498 /usr/X11/include
   8499 /usr/X11R7/include
   8500 /usr/X11R6/include
   8501 /usr/X11R5/include
   8502 /usr/X11R4/include
   8503 
   8504 /opt/local/include
   8505 /opt/X11/include
   8506 
   8507 /usr/include/X11
   8508 /usr/include/X11R7
   8509 /usr/include/X11R6
   8510 /usr/include/X11R5
   8511 /usr/include/X11R4
   8512 
   8513 /usr/local/X11/include
   8514 /usr/local/X11R7/include
   8515 /usr/local/X11R6/include
   8516 /usr/local/X11R5/include
   8517 /usr/local/X11R4/include
   8518 
   8519 /usr/local/include/X11
   8520 /usr/local/include/X11R7
   8521 /usr/local/include/X11R6
   8522 /usr/local/include/X11R5
   8523 /usr/local/include/X11R4
   8524 
   8525 /usr/X386/include
   8526 /usr/x386/include
   8527 /usr/XFree86/include/X11
   8528 
   8529 /usr/include
   8530 /usr/local/include
   8531 /usr/unsupported/include
   8532 /usr/athena/include
   8533 /usr/local/x11r5/include
   8534 /usr/lpp/Xamples/include
   8535 
   8536 /usr/openwin/include
   8537 /usr/openwin/share/include'
   8538 
   8539 if test "$ac_x_includes" = no; then
   8540   # Guess where to find include files, by looking for Intrinsic.h.
   8541   # First, try using that file with no special directory specified.
   8542   cat >"conftest.$ac_ext" <<_ACEOF
   8543 #line 8543 "configure"
   8544 #include "confdefs.h"
   8545 #include <X11/Intrinsic.h>
   8546 _ACEOF
   8547 if { (eval echo "$as_me:8547: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   8548   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   8549   ac_status=$?
   8550   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   8551   rm -f conftest.er1
   8552   cat conftest.err >&5
   8553   echo "$as_me:8553: \$? = $ac_status" >&5
   8554   (exit "$ac_status"); } >/dev/null; then
   8555   if test -s conftest.err; then
   8556     ac_cpp_err=$ac_c_preproc_warn_flag
   8557   else
   8558     ac_cpp_err=
   8559   fi
   8560 else
   8561   ac_cpp_err=yes
   8562 fi
   8563 if test -z "$ac_cpp_err"; then
   8564   # We can compile using X headers with no special include directory.
   8565 ac_x_includes=
   8566 else
   8567   echo "$as_me: failed program was:" >&5
   8568   cat "conftest.$ac_ext" >&5
   8569   for ac_dir in $ac_x_header_dirs; do
   8570   if test -r "$ac_dir/X11/Intrinsic.h"; then
   8571     ac_x_includes=$ac_dir
   8572     break
   8573   fi
   8574 done
   8575 fi
   8576 rm -f conftest.err "conftest.$ac_ext"
   8577 fi # $ac_x_includes = no
   8578 
   8579 if test "$ac_x_libraries" = no; then
   8580   # Check for the libraries.
   8581   # See if we find them without any special options.
   8582   # Don't add to $LIBS permanently.
   8583   ac_save_LIBS=$LIBS
   8584   LIBS="-lXt $LIBS"
   8585   cat >"conftest.$ac_ext" <<_ACEOF
   8586 #line 8586 "configure"
   8587 #include "confdefs.h"
   8588 #include <X11/Intrinsic.h>
   8589 int
   8590 main (void)
   8591 {
   8592 XtMalloc (0)
   8593   ;
   8594   return 0;
   8595 }
   8596 _ACEOF
   8597 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   8598 if { (eval echo "$as_me:8598: \"$ac_link\"") >&5
   8599   (eval $ac_link) 2>&5
   8600   ac_status=$?
   8601   echo "$as_me:8601: \$? = $ac_status" >&5
   8602   (exit "$ac_status"); } &&
   8603          { ac_try='test -s "conftest$ac_exeext"'
   8604   { (eval echo "$as_me:8604: \"$ac_try\"") >&5
   8605   (eval $ac_try) 2>&5
   8606   ac_status=$?
   8607   echo "$as_me:8607: \$? = $ac_status" >&5
   8608   (exit "$ac_status"); }; }; then
   8609   LIBS=$ac_save_LIBS
   8610 # We can link X programs with no special library path.
   8611 ac_x_libraries=
   8612 else
   8613   echo "$as_me: failed program was:" >&5
   8614 cat "conftest.$ac_ext" >&5
   8615 LIBS=$ac_save_LIBS
   8616 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
   8617 do
   8618   # Don't even attempt the hair of trying to link an X program!
   8619   for ac_extension in a so sl dylib dll; do
   8620     if test -r "$ac_dir/libXt.$ac_extension"; then
   8621       ac_x_libraries=$ac_dir
   8622       break 2
   8623     fi
   8624   done
   8625 done
   8626 fi
   8627 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   8628 fi # $ac_x_libraries = no
   8629 
   8630 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
   8631   # Didn't find X anywhere.  Cache the known absence of X.
   8632   ac_cv_have_x="have_x=no"
   8633 else
   8634   # Record where we found X for the cache.
   8635   ac_cv_have_x="have_x=yes \
   8636 	        ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
   8637 fi
   8638 fi
   8639 
   8640   fi
   8641   eval "$ac_cv_have_x"
   8642 fi # $with_x != no
   8643 
   8644 if test "$have_x" != yes; then
   8645   echo "$as_me:8645: result: $have_x" >&5
   8646 echo "${ECHO_T}$have_x" >&6
   8647   no_x=yes
   8648 else
   8649   # If each of the values was on the command line, it overrides each guess.
   8650   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
   8651   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
   8652   # Update the cache value to reflect the command line values.
   8653   ac_cv_have_x="have_x=yes \
   8654 		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
   8655   echo "$as_me:8655: result: libraries $x_libraries, headers $x_includes" >&5
   8656 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
   8657 fi
   8658 
   8659 if test "$no_x" = yes; then
   8660   # Not all programs may use this symbol, but it does not hurt to define it.
   8661 
   8662 cat >>confdefs.h <<\EOF
   8663 #define X_DISPLAY_MISSING 1
   8664 EOF
   8665 
   8666   X_CFLAGS=
   8667   X_PRE_LIBS=
   8668   X_LIBS=
   8669   X_EXTRA_LIBS=
   8670 else
   8671   if test -n "$x_includes"; then
   8672     X_CFLAGS="$X_CFLAGS -I$x_includes"
   8673   fi
   8674 
   8675   # It would also be nice to do this for all -L options, not just this one.
   8676   if test -n "$x_libraries"; then
   8677     X_LIBS="$X_LIBS -L$x_libraries"
   8678     # For Solaris; some versions of Sun CC require a space after -R and
   8679     # others require no space.  Words are not sufficient . . . .
   8680     case `(uname -sr) 2>/dev/null` in
   8681     "SunOS 5"*)
   8682       echo "$as_me:8682: checking whether -R must be followed by a space" >&5
   8683 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
   8684       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
   8685       cat >"conftest.$ac_ext" <<_ACEOF
   8686 #line 8686 "configure"
   8687 #include "confdefs.h"
   8688 
   8689 int
   8690 main (void)
   8691 {
   8692 
   8693   ;
   8694   return 0;
   8695 }
   8696 _ACEOF
   8697 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   8698 if { (eval echo "$as_me:8698: \"$ac_link\"") >&5
   8699   (eval $ac_link) 2>&5
   8700   ac_status=$?
   8701   echo "$as_me:8701: \$? = $ac_status" >&5
   8702   (exit "$ac_status"); } &&
   8703          { ac_try='test -s "conftest$ac_exeext"'
   8704   { (eval echo "$as_me:8704: \"$ac_try\"") >&5
   8705   (eval $ac_try) 2>&5
   8706   ac_status=$?
   8707   echo "$as_me:8707: \$? = $ac_status" >&5
   8708   (exit "$ac_status"); }; }; then
   8709   ac_R_nospace=yes
   8710 else
   8711   echo "$as_me: failed program was:" >&5
   8712 cat "conftest.$ac_ext" >&5
   8713 ac_R_nospace=no
   8714 fi
   8715 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   8716       if test $ac_R_nospace = yes; then
   8717 	echo "$as_me:8717: result: no" >&5
   8718 echo "${ECHO_T}no" >&6
   8719 	X_LIBS="$X_LIBS -R$x_libraries"
   8720       else
   8721 	LIBS="$ac_xsave_LIBS -R $x_libraries"
   8722 	cat >"conftest.$ac_ext" <<_ACEOF
   8723 #line 8723 "configure"
   8724 #include "confdefs.h"
   8725 
   8726 int
   8727 main (void)
   8728 {
   8729 
   8730   ;
   8731   return 0;
   8732 }
   8733 _ACEOF
   8734 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   8735 if { (eval echo "$as_me:8735: \"$ac_link\"") >&5
   8736   (eval $ac_link) 2>&5
   8737   ac_status=$?
   8738   echo "$as_me:8738: \$? = $ac_status" >&5
   8739   (exit "$ac_status"); } &&
   8740          { ac_try='test -s "conftest$ac_exeext"'
   8741   { (eval echo "$as_me:8741: \"$ac_try\"") >&5
   8742   (eval $ac_try) 2>&5
   8743   ac_status=$?
   8744   echo "$as_me:8744: \$? = $ac_status" >&5
   8745   (exit "$ac_status"); }; }; then
   8746   ac_R_space=yes
   8747 else
   8748   echo "$as_me: failed program was:" >&5
   8749 cat "conftest.$ac_ext" >&5
   8750 ac_R_space=no
   8751 fi
   8752 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   8753 	if test $ac_R_space = yes; then
   8754 	  echo "$as_me:8754: result: yes" >&5
   8755 echo "${ECHO_T}yes" >&6
   8756 	  X_LIBS="$X_LIBS -R $x_libraries"
   8757 	else
   8758 	  echo "$as_me:8758: result: neither works" >&5
   8759 echo "${ECHO_T}neither works" >&6
   8760 	fi
   8761       fi
   8762       LIBS=$ac_xsave_LIBS
   8763     esac
   8764   fi
   8765 
   8766   # Check for system-dependent libraries X programs must link with.
   8767   # Do this before checking for the system-independent R6 libraries
   8768   # (-lICE), since we may need -lsocket or whatever for X linking.
   8769 
   8770   if test "$ISC" = yes; then
   8771     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
   8772   else
   8773     # Martyn Johnson says this is needed for Ultrix, if the X
   8774     # libraries were built with DECnet support.  And Karl Berry says
   8775     # the Alpha needs dnet_stub (dnet does not exist).
   8776     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
   8777     cat >"conftest.$ac_ext" <<_ACEOF
   8778 #line 8778 "configure"
   8779 #include "confdefs.h"
   8780 
   8781 /* Override any gcc2 internal prototype to avoid an error.  */
   8782 #ifdef __cplusplus
   8783 extern "C"
   8784 #endif
   8785 /* We use char because int might match the return type of a gcc2
   8786    builtin and then its argument prototype would still apply.  */
   8787 char XOpenDisplay ();
   8788 int
   8789 main (void)
   8790 {
   8791 XOpenDisplay ();
   8792   ;
   8793   return 0;
   8794 }
   8795 _ACEOF
   8796 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   8797 if { (eval echo "$as_me:8797: \"$ac_link\"") >&5
   8798   (eval $ac_link) 2>&5
   8799   ac_status=$?
   8800   echo "$as_me:8800: \$? = $ac_status" >&5
   8801   (exit "$ac_status"); } &&
   8802          { ac_try='test -s "conftest$ac_exeext"'
   8803   { (eval echo "$as_me:8803: \"$ac_try\"") >&5
   8804   (eval $ac_try) 2>&5
   8805   ac_status=$?
   8806   echo "$as_me:8806: \$? = $ac_status" >&5
   8807   (exit "$ac_status"); }; }; then
   8808   :
   8809 else
   8810   echo "$as_me: failed program was:" >&5
   8811 cat "conftest.$ac_ext" >&5
   8812 echo "$as_me:8812: checking for dnet_ntoa in -ldnet" >&5
   8813 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
   8814 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
   8815   echo $ECHO_N "(cached) $ECHO_C" >&6
   8816 else
   8817   ac_check_lib_save_LIBS=$LIBS
   8818 LIBS="-ldnet  $LIBS"
   8819 cat >"conftest.$ac_ext" <<_ACEOF
   8820 #line 8820 "configure"
   8821 #include "confdefs.h"
   8822 
   8823 /* Override any gcc2 internal prototype to avoid an error.  */
   8824 #ifdef __cplusplus
   8825 extern "C"
   8826 #endif
   8827 /* We use char because int might match the return type of a gcc2
   8828    builtin and then its argument prototype would still apply.  */
   8829 char dnet_ntoa ();
   8830 int
   8831 main (void)
   8832 {
   8833 dnet_ntoa ();
   8834   ;
   8835   return 0;
   8836 }
   8837 _ACEOF
   8838 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   8839 if { (eval echo "$as_me:8839: \"$ac_link\"") >&5
   8840   (eval $ac_link) 2>&5
   8841   ac_status=$?
   8842   echo "$as_me:8842: \$? = $ac_status" >&5
   8843   (exit "$ac_status"); } &&
   8844          { ac_try='test -s "conftest$ac_exeext"'
   8845   { (eval echo "$as_me:8845: \"$ac_try\"") >&5
   8846   (eval $ac_try) 2>&5
   8847   ac_status=$?
   8848   echo "$as_me:8848: \$? = $ac_status" >&5
   8849   (exit "$ac_status"); }; }; then
   8850   ac_cv_lib_dnet_dnet_ntoa=yes
   8851 else
   8852   echo "$as_me: failed program was:" >&5
   8853 cat "conftest.$ac_ext" >&5
   8854 ac_cv_lib_dnet_dnet_ntoa=no
   8855 fi
   8856 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   8857 LIBS=$ac_check_lib_save_LIBS
   8858 fi
   8859 echo "$as_me:8859: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
   8860 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
   8861 if test "$ac_cv_lib_dnet_dnet_ntoa" = yes; then
   8862   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
   8863 fi
   8864 
   8865     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
   8866       echo "$as_me:8866: checking for dnet_ntoa in -ldnet_stub" >&5
   8867 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
   8868 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
   8869   echo $ECHO_N "(cached) $ECHO_C" >&6
   8870 else
   8871   ac_check_lib_save_LIBS=$LIBS
   8872 LIBS="-ldnet_stub  $LIBS"
   8873 cat >"conftest.$ac_ext" <<_ACEOF
   8874 #line 8874 "configure"
   8875 #include "confdefs.h"
   8876 
   8877 /* Override any gcc2 internal prototype to avoid an error.  */
   8878 #ifdef __cplusplus
   8879 extern "C"
   8880 #endif
   8881 /* We use char because int might match the return type of a gcc2
   8882    builtin and then its argument prototype would still apply.  */
   8883 char dnet_ntoa ();
   8884 int
   8885 main (void)
   8886 {
   8887 dnet_ntoa ();
   8888   ;
   8889   return 0;
   8890 }
   8891 _ACEOF
   8892 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   8893 if { (eval echo "$as_me:8893: \"$ac_link\"") >&5
   8894   (eval $ac_link) 2>&5
   8895   ac_status=$?
   8896   echo "$as_me:8896: \$? = $ac_status" >&5
   8897   (exit "$ac_status"); } &&
   8898          { ac_try='test -s "conftest$ac_exeext"'
   8899   { (eval echo "$as_me:8899: \"$ac_try\"") >&5
   8900   (eval $ac_try) 2>&5
   8901   ac_status=$?
   8902   echo "$as_me:8902: \$? = $ac_status" >&5
   8903   (exit "$ac_status"); }; }; then
   8904   ac_cv_lib_dnet_stub_dnet_ntoa=yes
   8905 else
   8906   echo "$as_me: failed program was:" >&5
   8907 cat "conftest.$ac_ext" >&5
   8908 ac_cv_lib_dnet_stub_dnet_ntoa=no
   8909 fi
   8910 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   8911 LIBS=$ac_check_lib_save_LIBS
   8912 fi
   8913 echo "$as_me:8913: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
   8914 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
   8915 if test "$ac_cv_lib_dnet_stub_dnet_ntoa" = yes; then
   8916   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
   8917 fi
   8918 
   8919     fi
   8920 fi
   8921 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   8922     LIBS="$ac_xsave_LIBS"
   8923 
   8924     # msh (at] cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
   8925     # to get the SysV transport functions.
   8926     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
   8927     # needs -lnsl.
   8928     # The nsl library prevents programs from opening the X display
   8929     # on Irix 5.2, according to T.E. Dickey.
   8930     # The functions gethostbyname, getservbyname, and inet_addr are
   8931     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
   8932     echo "$as_me:8932: checking for gethostbyname" >&5
   8933 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
   8934 if test "${ac_cv_func_gethostbyname+set}" = set; then
   8935   echo $ECHO_N "(cached) $ECHO_C" >&6
   8936 else
   8937   cat >"conftest.$ac_ext" <<_ACEOF
   8938 #line 8938 "configure"
   8939 #include "confdefs.h"
   8940 #define gethostbyname autoconf_temporary
   8941 #include <limits.h>	/* least-intrusive standard header which defines gcc2 __stub macros */
   8942 #undef gethostbyname
   8943 
   8944 #ifdef __cplusplus
   8945 extern "C"
   8946 #endif
   8947 
   8948 /* We use char because int might match the return type of a gcc2
   8949    builtin and then its argument prototype would still apply.  */
   8950 char gethostbyname (void);
   8951 
   8952 int
   8953 main (void)
   8954 {
   8955 
   8956 /* The GNU C library defines stubs for functions which it implements
   8957     to always fail with ENOSYS.  Some functions are actually named
   8958     something starting with __ and the normal name is an alias.  */
   8959 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
   8960 #error found stub for gethostbyname
   8961 #endif
   8962 
   8963 	return gethostbyname ();
   8964   ;
   8965   return 0;
   8966 }
   8967 _ACEOF
   8968 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   8969 if { (eval echo "$as_me:8969: \"$ac_link\"") >&5
   8970   (eval $ac_link) 2>&5
   8971   ac_status=$?
   8972   echo "$as_me:8972: \$? = $ac_status" >&5
   8973   (exit "$ac_status"); } &&
   8974          { ac_try='test -s "conftest$ac_exeext"'
   8975   { (eval echo "$as_me:8975: \"$ac_try\"") >&5
   8976   (eval $ac_try) 2>&5
   8977   ac_status=$?
   8978   echo "$as_me:8978: \$? = $ac_status" >&5
   8979   (exit "$ac_status"); }; }; then
   8980   ac_cv_func_gethostbyname=yes
   8981 else
   8982   echo "$as_me: failed program was:" >&5
   8983 cat "conftest.$ac_ext" >&5
   8984 ac_cv_func_gethostbyname=no
   8985 fi
   8986 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   8987 fi
   8988 echo "$as_me:8988: result: $ac_cv_func_gethostbyname" >&5
   8989 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
   8990 
   8991     if test $ac_cv_func_gethostbyname = no; then
   8992       echo "$as_me:8992: checking for gethostbyname in -lnsl" >&5
   8993 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
   8994 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
   8995   echo $ECHO_N "(cached) $ECHO_C" >&6
   8996 else
   8997   ac_check_lib_save_LIBS=$LIBS
   8998 LIBS="-lnsl  $LIBS"
   8999 cat >"conftest.$ac_ext" <<_ACEOF
   9000 #line 9000 "configure"
   9001 #include "confdefs.h"
   9002 
   9003 /* Override any gcc2 internal prototype to avoid an error.  */
   9004 #ifdef __cplusplus
   9005 extern "C"
   9006 #endif
   9007 /* We use char because int might match the return type of a gcc2
   9008    builtin and then its argument prototype would still apply.  */
   9009 char gethostbyname ();
   9010 int
   9011 main (void)
   9012 {
   9013 gethostbyname ();
   9014   ;
   9015   return 0;
   9016 }
   9017 _ACEOF
   9018 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   9019 if { (eval echo "$as_me:9019: \"$ac_link\"") >&5
   9020   (eval $ac_link) 2>&5
   9021   ac_status=$?
   9022   echo "$as_me:9022: \$? = $ac_status" >&5
   9023   (exit "$ac_status"); } &&
   9024          { ac_try='test -s "conftest$ac_exeext"'
   9025   { (eval echo "$as_me:9025: \"$ac_try\"") >&5
   9026   (eval $ac_try) 2>&5
   9027   ac_status=$?
   9028   echo "$as_me:9028: \$? = $ac_status" >&5
   9029   (exit "$ac_status"); }; }; then
   9030   ac_cv_lib_nsl_gethostbyname=yes
   9031 else
   9032   echo "$as_me: failed program was:" >&5
   9033 cat "conftest.$ac_ext" >&5
   9034 ac_cv_lib_nsl_gethostbyname=no
   9035 fi
   9036 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   9037 LIBS=$ac_check_lib_save_LIBS
   9038 fi
   9039 echo "$as_me:9039: result: $ac_cv_lib_nsl_gethostbyname" >&5
   9040 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
   9041 if test "$ac_cv_lib_nsl_gethostbyname" = yes; then
   9042   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
   9043 fi
   9044 
   9045       if test $ac_cv_lib_nsl_gethostbyname = no; then
   9046         echo "$as_me:9046: checking for gethostbyname in -lbsd" >&5
   9047 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
   9048 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
   9049   echo $ECHO_N "(cached) $ECHO_C" >&6
   9050 else
   9051   ac_check_lib_save_LIBS=$LIBS
   9052 LIBS="-lbsd  $LIBS"
   9053 cat >"conftest.$ac_ext" <<_ACEOF
   9054 #line 9054 "configure"
   9055 #include "confdefs.h"
   9056 
   9057 /* Override any gcc2 internal prototype to avoid an error.  */
   9058 #ifdef __cplusplus
   9059 extern "C"
   9060 #endif
   9061 /* We use char because int might match the return type of a gcc2
   9062    builtin and then its argument prototype would still apply.  */
   9063 char gethostbyname ();
   9064 int
   9065 main (void)
   9066 {
   9067 gethostbyname ();
   9068   ;
   9069   return 0;
   9070 }
   9071 _ACEOF
   9072 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   9073 if { (eval echo "$as_me:9073: \"$ac_link\"") >&5
   9074   (eval $ac_link) 2>&5
   9075   ac_status=$?
   9076   echo "$as_me:9076: \$? = $ac_status" >&5
   9077   (exit "$ac_status"); } &&
   9078          { ac_try='test -s "conftest$ac_exeext"'
   9079   { (eval echo "$as_me:9079: \"$ac_try\"") >&5
   9080   (eval $ac_try) 2>&5
   9081   ac_status=$?
   9082   echo "$as_me:9082: \$? = $ac_status" >&5
   9083   (exit "$ac_status"); }; }; then
   9084   ac_cv_lib_bsd_gethostbyname=yes
   9085 else
   9086   echo "$as_me: failed program was:" >&5
   9087 cat "conftest.$ac_ext" >&5
   9088 ac_cv_lib_bsd_gethostbyname=no
   9089 fi
   9090 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   9091 LIBS=$ac_check_lib_save_LIBS
   9092 fi
   9093 echo "$as_me:9093: result: $ac_cv_lib_bsd_gethostbyname" >&5
   9094 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
   9095 if test "$ac_cv_lib_bsd_gethostbyname" = yes; then
   9096   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
   9097 fi
   9098 
   9099       fi
   9100     fi
   9101 
   9102     # lieder (at] skyler.mavd.honeywell.com says without -lsocket,
   9103     # socket/setsockopt and other routines are undefined under SCO ODT
   9104     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
   9105     # on later versions), says Simon Leinen: it contains gethostby*
   9106     # variants that don't use the nameserver (or something).  -lsocket
   9107     # must be given before -lnsl if both are needed.  We assume that
   9108     # if connect needs -lnsl, so does gethostbyname.
   9109     echo "$as_me:9109: checking for connect" >&5
   9110 echo $ECHO_N "checking for connect... $ECHO_C" >&6
   9111 if test "${ac_cv_func_connect+set}" = set; then
   9112   echo $ECHO_N "(cached) $ECHO_C" >&6
   9113 else
   9114   cat >"conftest.$ac_ext" <<_ACEOF
   9115 #line 9115 "configure"
   9116 #include "confdefs.h"
   9117 #define connect autoconf_temporary
   9118 #include <limits.h>	/* least-intrusive standard header which defines gcc2 __stub macros */
   9119 #undef connect
   9120 
   9121 #ifdef __cplusplus
   9122 extern "C"
   9123 #endif
   9124 
   9125 /* We use char because int might match the return type of a gcc2
   9126    builtin and then its argument prototype would still apply.  */
   9127 char connect (void);
   9128 
   9129 int
   9130 main (void)
   9131 {
   9132 
   9133 /* The GNU C library defines stubs for functions which it implements
   9134     to always fail with ENOSYS.  Some functions are actually named
   9135     something starting with __ and the normal name is an alias.  */
   9136 #if defined (__stub_connect) || defined (__stub___connect)
   9137 #error found stub for connect
   9138 #endif
   9139 
   9140 	return connect ();
   9141   ;
   9142   return 0;
   9143 }
   9144 _ACEOF
   9145 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   9146 if { (eval echo "$as_me:9146: \"$ac_link\"") >&5
   9147   (eval $ac_link) 2>&5
   9148   ac_status=$?
   9149   echo "$as_me:9149: \$? = $ac_status" >&5
   9150   (exit "$ac_status"); } &&
   9151          { ac_try='test -s "conftest$ac_exeext"'
   9152   { (eval echo "$as_me:9152: \"$ac_try\"") >&5
   9153   (eval $ac_try) 2>&5
   9154   ac_status=$?
   9155   echo "$as_me:9155: \$? = $ac_status" >&5
   9156   (exit "$ac_status"); }; }; then
   9157   ac_cv_func_connect=yes
   9158 else
   9159   echo "$as_me: failed program was:" >&5
   9160 cat "conftest.$ac_ext" >&5
   9161 ac_cv_func_connect=no
   9162 fi
   9163 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   9164 fi
   9165 echo "$as_me:9165: result: $ac_cv_func_connect" >&5
   9166 echo "${ECHO_T}$ac_cv_func_connect" >&6
   9167 
   9168     if test $ac_cv_func_connect = no; then
   9169       echo "$as_me:9169: checking for connect in -lsocket" >&5
   9170 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
   9171 if test "${ac_cv_lib_socket_connect+set}" = set; then
   9172   echo $ECHO_N "(cached) $ECHO_C" >&6
   9173 else
   9174   ac_check_lib_save_LIBS=$LIBS
   9175 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
   9176 cat >"conftest.$ac_ext" <<_ACEOF
   9177 #line 9177 "configure"
   9178 #include "confdefs.h"
   9179 
   9180 /* Override any gcc2 internal prototype to avoid an error.  */
   9181 #ifdef __cplusplus
   9182 extern "C"
   9183 #endif
   9184 /* We use char because int might match the return type of a gcc2
   9185    builtin and then its argument prototype would still apply.  */
   9186 char connect ();
   9187 int
   9188 main (void)
   9189 {
   9190 connect ();
   9191   ;
   9192   return 0;
   9193 }
   9194 _ACEOF
   9195 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   9196 if { (eval echo "$as_me:9196: \"$ac_link\"") >&5
   9197   (eval $ac_link) 2>&5
   9198   ac_status=$?
   9199   echo "$as_me:9199: \$? = $ac_status" >&5
   9200   (exit "$ac_status"); } &&
   9201          { ac_try='test -s "conftest$ac_exeext"'
   9202   { (eval echo "$as_me:9202: \"$ac_try\"") >&5
   9203   (eval $ac_try) 2>&5
   9204   ac_status=$?
   9205   echo "$as_me:9205: \$? = $ac_status" >&5
   9206   (exit "$ac_status"); }; }; then
   9207   ac_cv_lib_socket_connect=yes
   9208 else
   9209   echo "$as_me: failed program was:" >&5
   9210 cat "conftest.$ac_ext" >&5
   9211 ac_cv_lib_socket_connect=no
   9212 fi
   9213 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   9214 LIBS=$ac_check_lib_save_LIBS
   9215 fi
   9216 echo "$as_me:9216: result: $ac_cv_lib_socket_connect" >&5
   9217 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
   9218 if test "$ac_cv_lib_socket_connect" = yes; then
   9219   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
   9220 fi
   9221 
   9222     fi
   9223 
   9224     # Guillermo Gomez says -lposix is necessary on A/UX.
   9225     echo "$as_me:9225: checking for remove" >&5
   9226 echo $ECHO_N "checking for remove... $ECHO_C" >&6
   9227 if test "${ac_cv_func_remove+set}" = set; then
   9228   echo $ECHO_N "(cached) $ECHO_C" >&6
   9229 else
   9230   cat >"conftest.$ac_ext" <<_ACEOF
   9231 #line 9231 "configure"
   9232 #include "confdefs.h"
   9233 #define remove autoconf_temporary
   9234 #include <limits.h>	/* least-intrusive standard header which defines gcc2 __stub macros */
   9235 #undef remove
   9236 
   9237 #ifdef __cplusplus
   9238 extern "C"
   9239 #endif
   9240 
   9241 /* We use char because int might match the return type of a gcc2
   9242    builtin and then its argument prototype would still apply.  */
   9243 char remove (void);
   9244 
   9245 int
   9246 main (void)
   9247 {
   9248 
   9249 /* The GNU C library defines stubs for functions which it implements
   9250     to always fail with ENOSYS.  Some functions are actually named
   9251     something starting with __ and the normal name is an alias.  */
   9252 #if defined (__stub_remove) || defined (__stub___remove)
   9253 #error found stub for remove
   9254 #endif
   9255 
   9256 	return remove ();
   9257   ;
   9258   return 0;
   9259 }
   9260 _ACEOF
   9261 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   9262 if { (eval echo "$as_me:9262: \"$ac_link\"") >&5
   9263   (eval $ac_link) 2>&5
   9264   ac_status=$?
   9265   echo "$as_me:9265: \$? = $ac_status" >&5
   9266   (exit "$ac_status"); } &&
   9267          { ac_try='test -s "conftest$ac_exeext"'
   9268   { (eval echo "$as_me:9268: \"$ac_try\"") >&5
   9269   (eval $ac_try) 2>&5
   9270   ac_status=$?
   9271   echo "$as_me:9271: \$? = $ac_status" >&5
   9272   (exit "$ac_status"); }; }; then
   9273   ac_cv_func_remove=yes
   9274 else
   9275   echo "$as_me: failed program was:" >&5
   9276 cat "conftest.$ac_ext" >&5
   9277 ac_cv_func_remove=no
   9278 fi
   9279 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   9280 fi
   9281 echo "$as_me:9281: result: $ac_cv_func_remove" >&5
   9282 echo "${ECHO_T}$ac_cv_func_remove" >&6
   9283 
   9284     if test $ac_cv_func_remove = no; then
   9285       echo "$as_me:9285: checking for remove in -lposix" >&5
   9286 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
   9287 if test "${ac_cv_lib_posix_remove+set}" = set; then
   9288   echo $ECHO_N "(cached) $ECHO_C" >&6
   9289 else
   9290   ac_check_lib_save_LIBS=$LIBS
   9291 LIBS="-lposix  $LIBS"
   9292 cat >"conftest.$ac_ext" <<_ACEOF
   9293 #line 9293 "configure"
   9294 #include "confdefs.h"
   9295 
   9296 /* Override any gcc2 internal prototype to avoid an error.  */
   9297 #ifdef __cplusplus
   9298 extern "C"
   9299 #endif
   9300 /* We use char because int might match the return type of a gcc2
   9301    builtin and then its argument prototype would still apply.  */
   9302 char remove ();
   9303 int
   9304 main (void)
   9305 {
   9306 remove ();
   9307   ;
   9308   return 0;
   9309 }
   9310 _ACEOF
   9311 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   9312 if { (eval echo "$as_me:9312: \"$ac_link\"") >&5
   9313   (eval $ac_link) 2>&5
   9314   ac_status=$?
   9315   echo "$as_me:9315: \$? = $ac_status" >&5
   9316   (exit "$ac_status"); } &&
   9317          { ac_try='test -s "conftest$ac_exeext"'
   9318   { (eval echo "$as_me:9318: \"$ac_try\"") >&5
   9319   (eval $ac_try) 2>&5
   9320   ac_status=$?
   9321   echo "$as_me:9321: \$? = $ac_status" >&5
   9322   (exit "$ac_status"); }; }; then
   9323   ac_cv_lib_posix_remove=yes
   9324 else
   9325   echo "$as_me: failed program was:" >&5
   9326 cat "conftest.$ac_ext" >&5
   9327 ac_cv_lib_posix_remove=no
   9328 fi
   9329 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   9330 LIBS=$ac_check_lib_save_LIBS
   9331 fi
   9332 echo "$as_me:9332: result: $ac_cv_lib_posix_remove" >&5
   9333 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
   9334 if test "$ac_cv_lib_posix_remove" = yes; then
   9335   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
   9336 fi
   9337 
   9338     fi
   9339 
   9340     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
   9341     echo "$as_me:9341: checking for shmat" >&5
   9342 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
   9343 if test "${ac_cv_func_shmat+set}" = set; then
   9344   echo $ECHO_N "(cached) $ECHO_C" >&6
   9345 else
   9346   cat >"conftest.$ac_ext" <<_ACEOF
   9347 #line 9347 "configure"
   9348 #include "confdefs.h"
   9349 #define shmat autoconf_temporary
   9350 #include <limits.h>	/* least-intrusive standard header which defines gcc2 __stub macros */
   9351 #undef shmat
   9352 
   9353 #ifdef __cplusplus
   9354 extern "C"
   9355 #endif
   9356 
   9357 /* We use char because int might match the return type of a gcc2
   9358    builtin and then its argument prototype would still apply.  */
   9359 char shmat (void);
   9360 
   9361 int
   9362 main (void)
   9363 {
   9364 
   9365 /* The GNU C library defines stubs for functions which it implements
   9366     to always fail with ENOSYS.  Some functions are actually named
   9367     something starting with __ and the normal name is an alias.  */
   9368 #if defined (__stub_shmat) || defined (__stub___shmat)
   9369 #error found stub for shmat
   9370 #endif
   9371 
   9372 	return shmat ();
   9373   ;
   9374   return 0;
   9375 }
   9376 _ACEOF
   9377 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   9378 if { (eval echo "$as_me:9378: \"$ac_link\"") >&5
   9379   (eval $ac_link) 2>&5
   9380   ac_status=$?
   9381   echo "$as_me:9381: \$? = $ac_status" >&5
   9382   (exit "$ac_status"); } &&
   9383          { ac_try='test -s "conftest$ac_exeext"'
   9384   { (eval echo "$as_me:9384: \"$ac_try\"") >&5
   9385   (eval $ac_try) 2>&5
   9386   ac_status=$?
   9387   echo "$as_me:9387: \$? = $ac_status" >&5
   9388   (exit "$ac_status"); }; }; then
   9389   ac_cv_func_shmat=yes
   9390 else
   9391   echo "$as_me: failed program was:" >&5
   9392 cat "conftest.$ac_ext" >&5
   9393 ac_cv_func_shmat=no
   9394 fi
   9395 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   9396 fi
   9397 echo "$as_me:9397: result: $ac_cv_func_shmat" >&5
   9398 echo "${ECHO_T}$ac_cv_func_shmat" >&6
   9399 
   9400     if test $ac_cv_func_shmat = no; then
   9401       echo "$as_me:9401: checking for shmat in -lipc" >&5
   9402 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
   9403 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
   9404   echo $ECHO_N "(cached) $ECHO_C" >&6
   9405 else
   9406   ac_check_lib_save_LIBS=$LIBS
   9407 LIBS="-lipc  $LIBS"
   9408 cat >"conftest.$ac_ext" <<_ACEOF
   9409 #line 9409 "configure"
   9410 #include "confdefs.h"
   9411 
   9412 /* Override any gcc2 internal prototype to avoid an error.  */
   9413 #ifdef __cplusplus
   9414 extern "C"
   9415 #endif
   9416 /* We use char because int might match the return type of a gcc2
   9417    builtin and then its argument prototype would still apply.  */
   9418 char shmat ();
   9419 int
   9420 main (void)
   9421 {
   9422 shmat ();
   9423   ;
   9424   return 0;
   9425 }
   9426 _ACEOF
   9427 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   9428 if { (eval echo "$as_me:9428: \"$ac_link\"") >&5
   9429   (eval $ac_link) 2>&5
   9430   ac_status=$?
   9431   echo "$as_me:9431: \$? = $ac_status" >&5
   9432   (exit "$ac_status"); } &&
   9433          { ac_try='test -s "conftest$ac_exeext"'
   9434   { (eval echo "$as_me:9434: \"$ac_try\"") >&5
   9435   (eval $ac_try) 2>&5
   9436   ac_status=$?
   9437   echo "$as_me:9437: \$? = $ac_status" >&5
   9438   (exit "$ac_status"); }; }; then
   9439   ac_cv_lib_ipc_shmat=yes
   9440 else
   9441   echo "$as_me: failed program was:" >&5
   9442 cat "conftest.$ac_ext" >&5
   9443 ac_cv_lib_ipc_shmat=no
   9444 fi
   9445 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   9446 LIBS=$ac_check_lib_save_LIBS
   9447 fi
   9448 echo "$as_me:9448: result: $ac_cv_lib_ipc_shmat" >&5
   9449 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
   9450 if test "$ac_cv_lib_ipc_shmat" = yes; then
   9451   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
   9452 fi
   9453 
   9454     fi
   9455   fi
   9456 
   9457   # Check for libraries that X11R6 Xt/Xaw programs need.
   9458   ac_save_LDFLAGS=$LDFLAGS
   9459   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
   9460   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
   9461   # check for ICE first), but we must link in the order -lSM -lICE or
   9462   # we get undefined symbols.  So assume we have SM if we have ICE.
   9463   # These have to be linked with before -lX11, unlike the other
   9464   # libraries we check for below, so use a different variable.
   9465   # John Interrante, Karl Berry
   9466   echo "$as_me:9466: checking for IceConnectionNumber in -lICE" >&5
   9467 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
   9468 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
   9469   echo $ECHO_N "(cached) $ECHO_C" >&6
   9470 else
   9471   ac_check_lib_save_LIBS=$LIBS
   9472 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
   9473 cat >"conftest.$ac_ext" <<_ACEOF
   9474 #line 9474 "configure"
   9475 #include "confdefs.h"
   9476 
   9477 /* Override any gcc2 internal prototype to avoid an error.  */
   9478 #ifdef __cplusplus
   9479 extern "C"
   9480 #endif
   9481 /* We use char because int might match the return type of a gcc2
   9482    builtin and then its argument prototype would still apply.  */
   9483 char IceConnectionNumber ();
   9484 int
   9485 main (void)
   9486 {
   9487 IceConnectionNumber ();
   9488   ;
   9489   return 0;
   9490 }
   9491 _ACEOF
   9492 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   9493 if { (eval echo "$as_me:9493: \"$ac_link\"") >&5
   9494   (eval $ac_link) 2>&5
   9495   ac_status=$?
   9496   echo "$as_me:9496: \$? = $ac_status" >&5
   9497   (exit "$ac_status"); } &&
   9498          { ac_try='test -s "conftest$ac_exeext"'
   9499   { (eval echo "$as_me:9499: \"$ac_try\"") >&5
   9500   (eval $ac_try) 2>&5
   9501   ac_status=$?
   9502   echo "$as_me:9502: \$? = $ac_status" >&5
   9503   (exit "$ac_status"); }; }; then
   9504   ac_cv_lib_ICE_IceConnectionNumber=yes
   9505 else
   9506   echo "$as_me: failed program was:" >&5
   9507 cat "conftest.$ac_ext" >&5
   9508 ac_cv_lib_ICE_IceConnectionNumber=no
   9509 fi
   9510 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   9511 LIBS=$ac_check_lib_save_LIBS
   9512 fi
   9513 echo "$as_me:9513: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
   9514 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
   9515 if test "$ac_cv_lib_ICE_IceConnectionNumber" = yes; then
   9516   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
   9517 fi
   9518 
   9519   LDFLAGS=$ac_save_LDFLAGS
   9520 
   9521 fi
   9522 
   9523 echo "$as_me:9523: checking for sys/wait.h that is POSIX.1 compatible" >&5
   9524 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
   9525 if test "${ac_cv_header_sys_wait_h+set}" = set; then
   9526   echo $ECHO_N "(cached) $ECHO_C" >&6
   9527 else
   9528   cat >"conftest.$ac_ext" <<_ACEOF
   9529 #line 9529 "configure"
   9530 #include "confdefs.h"
   9531 #include <sys/types.h>
   9532 #include <sys/wait.h>
   9533 #ifndef WEXITSTATUS
   9534 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
   9535 #endif
   9536 #ifndef WIFEXITED
   9537 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
   9538 #endif
   9539 
   9540 int
   9541 main (void)
   9542 {
   9543   int s;
   9544   wait (&s);
   9545   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
   9546   ;
   9547   return 0;
   9548 }
   9549 _ACEOF
   9550 rm -f "conftest.$ac_objext"
   9551 if { (eval echo "$as_me:9551: \"$ac_compile\"") >&5
   9552   (eval $ac_compile) 2>&5
   9553   ac_status=$?
   9554   echo "$as_me:9554: \$? = $ac_status" >&5
   9555   (exit "$ac_status"); } &&
   9556          { ac_try='test -s "conftest.$ac_objext"'
   9557   { (eval echo "$as_me:9557: \"$ac_try\"") >&5
   9558   (eval $ac_try) 2>&5
   9559   ac_status=$?
   9560   echo "$as_me:9560: \$? = $ac_status" >&5
   9561   (exit "$ac_status"); }; }; then
   9562   ac_cv_header_sys_wait_h=yes
   9563 else
   9564   echo "$as_me: failed program was:" >&5
   9565 cat "conftest.$ac_ext" >&5
   9566 ac_cv_header_sys_wait_h=no
   9567 fi
   9568 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   9569 fi
   9570 echo "$as_me:9570: result: $ac_cv_header_sys_wait_h" >&5
   9571 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
   9572 if test $ac_cv_header_sys_wait_h = yes; then
   9573 
   9574 cat >>confdefs.h <<\EOF
   9575 #define HAVE_SYS_WAIT_H 1
   9576 EOF
   9577 
   9578 fi
   9579 
   9580 echo "$as_me:9580: checking for POSIX wait functions" >&5
   9581 echo $ECHO_N "checking for POSIX wait functions... $ECHO_C" >&6
   9582 if test "${cf_cv_posix_wait+set}" = set; then
   9583   echo $ECHO_N "(cached) $ECHO_C" >&6
   9584 else
   9585 
   9586 cat >"conftest.$ac_ext" <<_ACEOF
   9587 #line 9587 "configure"
   9588 #include "confdefs.h"
   9589 
   9590 #include <stdlib.h>
   9591 #include <stdio.h>
   9592 #include <sys/types.h>
   9593 #ifdef HAVE_SYS_WAIT_H
   9594 #include <sys/wait.h>
   9595 #endif
   9596 
   9597 int
   9598 main (void)
   9599 {
   9600 
   9601 	int stat_loc;
   9602 	pid_t pid = waitpid(-1, &stat_loc, WNOHANG|WUNTRACED);
   9603 	pid_t pid2 = wait(&stat_loc);
   9604 	(void)pid;
   9605 	(void)pid2;
   9606 
   9607   ;
   9608   return 0;
   9609 }
   9610 _ACEOF
   9611 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   9612 if { (eval echo "$as_me:9612: \"$ac_link\"") >&5
   9613   (eval $ac_link) 2>&5
   9614   ac_status=$?
   9615   echo "$as_me:9615: \$? = $ac_status" >&5
   9616   (exit "$ac_status"); } &&
   9617          { ac_try='test -s "conftest$ac_exeext"'
   9618   { (eval echo "$as_me:9618: \"$ac_try\"") >&5
   9619   (eval $ac_try) 2>&5
   9620   ac_status=$?
   9621   echo "$as_me:9621: \$? = $ac_status" >&5
   9622   (exit "$ac_status"); }; }; then
   9623   cf_cv_posix_wait=yes
   9624 else
   9625   echo "$as_me: failed program was:" >&5
   9626 cat "conftest.$ac_ext" >&5
   9627 cf_cv_posix_wait=no
   9628 fi
   9629 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   9630 
   9631 fi
   9632 echo "$as_me:9632: result: $cf_cv_posix_wait" >&5
   9633 echo "${ECHO_T}$cf_cv_posix_wait" >&6
   9634 test "$cf_cv_posix_wait" = yes &&
   9635 cat >>confdefs.h <<\EOF
   9636 #define USE_POSIX_WAIT 1
   9637 EOF
   9638 
   9639 echo "$as_me:9639: checking if external sys_nerr is declared" >&5
   9640 echo $ECHO_N "checking if external sys_nerr is declared... $ECHO_C" >&6
   9641 if test "${cf_cv_dcl_sys_nerr+set}" = set; then
   9642   echo $ECHO_N "(cached) $ECHO_C" >&6
   9643 else
   9644 
   9645 	cat >"conftest.$ac_ext" <<_ACEOF
   9646 #line 9646 "configure"
   9647 #include "confdefs.h"
   9648 
   9649 #ifdef HAVE_STDLIB_H
   9650 #include <stdlib.h>
   9651 #endif
   9652 #include <stdio.h>
   9653 #include <sys/types.h>
   9654 #include <errno.h>
   9655 int
   9656 main (void)
   9657 {
   9658 int x = (int) sys_nerr; (void)x
   9659   ;
   9660   return 0;
   9661 }
   9662 _ACEOF
   9663 rm -f "conftest.$ac_objext"
   9664 if { (eval echo "$as_me:9664: \"$ac_compile\"") >&5
   9665   (eval $ac_compile) 2>&5
   9666   ac_status=$?
   9667   echo "$as_me:9667: \$? = $ac_status" >&5
   9668   (exit "$ac_status"); } &&
   9669          { ac_try='test -s "conftest.$ac_objext"'
   9670   { (eval echo "$as_me:9670: \"$ac_try\"") >&5
   9671   (eval $ac_try) 2>&5
   9672   ac_status=$?
   9673   echo "$as_me:9673: \$? = $ac_status" >&5
   9674   (exit "$ac_status"); }; }; then
   9675   cf_cv_dcl_sys_nerr=yes
   9676 else
   9677   echo "$as_me: failed program was:" >&5
   9678 cat "conftest.$ac_ext" >&5
   9679 cf_cv_dcl_sys_nerr=no
   9680 fi
   9681 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   9682 
   9683 fi
   9684 echo "$as_me:9684: result: $cf_cv_dcl_sys_nerr" >&5
   9685 echo "${ECHO_T}$cf_cv_dcl_sys_nerr" >&6
   9686 
   9687 if test "$cf_cv_dcl_sys_nerr" = no ; then
   9688 
   9689 cf_result=`echo "decl_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   9690 
   9691 	cat >>confdefs.h <<EOF
   9692 #define $cf_result 1
   9693 EOF
   9694 
   9695 fi
   9696 
   9697 # It's possible (for near-UNIX clones) that the data doesn't exist
   9698 
   9699 echo "$as_me:9699: checking if external sys_nerr exists" >&5
   9700 echo $ECHO_N "checking if external sys_nerr exists... $ECHO_C" >&6
   9701 if test "${cf_cv_have_sys_nerr+set}" = set; then
   9702   echo $ECHO_N "(cached) $ECHO_C" >&6
   9703 else
   9704 
   9705 	cat >"conftest.$ac_ext" <<_ACEOF
   9706 #line 9706 "configure"
   9707 #include "confdefs.h"
   9708 
   9709 #undef sys_nerr
   9710 extern int sys_nerr;
   9711 
   9712 int
   9713 main (void)
   9714 {
   9715 sys_nerr = 2
   9716   ;
   9717   return 0;
   9718 }
   9719 _ACEOF
   9720 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   9721 if { (eval echo "$as_me:9721: \"$ac_link\"") >&5
   9722   (eval $ac_link) 2>&5
   9723   ac_status=$?
   9724   echo "$as_me:9724: \$? = $ac_status" >&5
   9725   (exit "$ac_status"); } &&
   9726          { ac_try='test -s "conftest$ac_exeext"'
   9727   { (eval echo "$as_me:9727: \"$ac_try\"") >&5
   9728   (eval $ac_try) 2>&5
   9729   ac_status=$?
   9730   echo "$as_me:9730: \$? = $ac_status" >&5
   9731   (exit "$ac_status"); }; }; then
   9732   cf_cv_have_sys_nerr=yes
   9733 else
   9734   echo "$as_me: failed program was:" >&5
   9735 cat "conftest.$ac_ext" >&5
   9736 cf_cv_have_sys_nerr=no
   9737 fi
   9738 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   9739 
   9740 fi
   9741 echo "$as_me:9741: result: $cf_cv_have_sys_nerr" >&5
   9742 echo "${ECHO_T}$cf_cv_have_sys_nerr" >&6
   9743 
   9744 if test "$cf_cv_have_sys_nerr" = yes ; then
   9745 
   9746 cf_result=`echo "have_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   9747 
   9748 	cat >>confdefs.h <<EOF
   9749 #define $cf_result 1
   9750 EOF
   9751 
   9752 fi
   9753 
   9754 echo "$as_me:9754: checking if external sys_errlist is declared" >&5
   9755 echo $ECHO_N "checking if external sys_errlist is declared... $ECHO_C" >&6
   9756 if test "${cf_cv_dcl_sys_errlist+set}" = set; then
   9757   echo $ECHO_N "(cached) $ECHO_C" >&6
   9758 else
   9759 
   9760 	cat >"conftest.$ac_ext" <<_ACEOF
   9761 #line 9761 "configure"
   9762 #include "confdefs.h"
   9763 
   9764 #ifdef HAVE_STDLIB_H
   9765 #include <stdlib.h>
   9766 #endif
   9767 #include <stdio.h>
   9768 #include <sys/types.h>
   9769 #include <errno.h>
   9770 int
   9771 main (void)
   9772 {
   9773 int x = (int) sys_errlist; (void)x
   9774   ;
   9775   return 0;
   9776 }
   9777 _ACEOF
   9778 rm -f "conftest.$ac_objext"
   9779 if { (eval echo "$as_me:9779: \"$ac_compile\"") >&5
   9780   (eval $ac_compile) 2>&5
   9781   ac_status=$?
   9782   echo "$as_me:9782: \$? = $ac_status" >&5
   9783   (exit "$ac_status"); } &&
   9784          { ac_try='test -s "conftest.$ac_objext"'
   9785   { (eval echo "$as_me:9785: \"$ac_try\"") >&5
   9786   (eval $ac_try) 2>&5
   9787   ac_status=$?
   9788   echo "$as_me:9788: \$? = $ac_status" >&5
   9789   (exit "$ac_status"); }; }; then
   9790   cf_cv_dcl_sys_errlist=yes
   9791 else
   9792   echo "$as_me: failed program was:" >&5
   9793 cat "conftest.$ac_ext" >&5
   9794 cf_cv_dcl_sys_errlist=no
   9795 fi
   9796 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   9797 
   9798 fi
   9799 echo "$as_me:9799: result: $cf_cv_dcl_sys_errlist" >&5
   9800 echo "${ECHO_T}$cf_cv_dcl_sys_errlist" >&6
   9801 
   9802 if test "$cf_cv_dcl_sys_errlist" = no ; then
   9803 
   9804 cf_result=`echo "decl_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   9805 
   9806 	cat >>confdefs.h <<EOF
   9807 #define $cf_result 1
   9808 EOF
   9809 
   9810 fi
   9811 
   9812 # It's possible (for near-UNIX clones) that the data doesn't exist
   9813 
   9814 echo "$as_me:9814: checking if external sys_errlist exists" >&5
   9815 echo $ECHO_N "checking if external sys_errlist exists... $ECHO_C" >&6
   9816 if test "${cf_cv_have_sys_errlist+set}" = set; then
   9817   echo $ECHO_N "(cached) $ECHO_C" >&6
   9818 else
   9819 
   9820 	cat >"conftest.$ac_ext" <<_ACEOF
   9821 #line 9821 "configure"
   9822 #include "confdefs.h"
   9823 
   9824 #undef sys_errlist
   9825 extern int sys_errlist;
   9826 
   9827 int
   9828 main (void)
   9829 {
   9830 sys_errlist = 2
   9831   ;
   9832   return 0;
   9833 }
   9834 _ACEOF
   9835 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   9836 if { (eval echo "$as_me:9836: \"$ac_link\"") >&5
   9837   (eval $ac_link) 2>&5
   9838   ac_status=$?
   9839   echo "$as_me:9839: \$? = $ac_status" >&5
   9840   (exit "$ac_status"); } &&
   9841          { ac_try='test -s "conftest$ac_exeext"'
   9842   { (eval echo "$as_me:9842: \"$ac_try\"") >&5
   9843   (eval $ac_try) 2>&5
   9844   ac_status=$?
   9845   echo "$as_me:9845: \$? = $ac_status" >&5
   9846   (exit "$ac_status"); }; }; then
   9847   cf_cv_have_sys_errlist=yes
   9848 else
   9849   echo "$as_me: failed program was:" >&5
   9850 cat "conftest.$ac_ext" >&5
   9851 cf_cv_have_sys_errlist=no
   9852 fi
   9853 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   9854 
   9855 fi
   9856 echo "$as_me:9856: result: $cf_cv_have_sys_errlist" >&5
   9857 echo "${ECHO_T}$cf_cv_have_sys_errlist" >&6
   9858 
   9859 if test "$cf_cv_have_sys_errlist" = yes ; then
   9860 
   9861 cf_result=`echo "have_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   9862 
   9863 	cat >>confdefs.h <<EOF
   9864 #define $cf_result 1
   9865 EOF
   9866 
   9867 fi
   9868 
   9869 cf_save_LIBS_CF_SYSV="$LIBS"
   9870 cf_save_CFLAGS_CF_SYSV="$CFLAGS"
   9871 cf_save_CPPFLAGS_CF_SYSV="$CPPFLAGS"
   9872 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
   9873 for cf_X_CFLAGS in $X_CFLAGS
   9874 do
   9875 	case "x$cf_X_CFLAGS" in
   9876 	x-[IUD]*)
   9877 		CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
   9878 		;;
   9879 	*)
   9880 		CFLAGS="$CFLAGS $cf_X_CFLAGS"
   9881 		;;
   9882 	esac
   9883 done
   9884 
   9885 for ac_header in \
   9886 termios.h \
   9887 stdlib.h \
   9888 X11/Intrinsic.h \
   9889 
   9890 do
   9891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   9892 echo "$as_me:9892: checking for $ac_header" >&5
   9893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   9894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   9895   echo $ECHO_N "(cached) $ECHO_C" >&6
   9896 else
   9897   cat >"conftest.$ac_ext" <<_ACEOF
   9898 #line 9898 "configure"
   9899 #include "confdefs.h"
   9900 #include <$ac_header>
   9901 _ACEOF
   9902 if { (eval echo "$as_me:9902: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   9903   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   9904   ac_status=$?
   9905   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   9906   rm -f conftest.er1
   9907   cat conftest.err >&5
   9908   echo "$as_me:9908: \$? = $ac_status" >&5
   9909   (exit "$ac_status"); } >/dev/null; then
   9910   if test -s conftest.err; then
   9911     ac_cpp_err=$ac_c_preproc_warn_flag
   9912   else
   9913     ac_cpp_err=
   9914   fi
   9915 else
   9916   ac_cpp_err=yes
   9917 fi
   9918 if test -z "$ac_cpp_err"; then
   9919   eval "$as_ac_Header=yes"
   9920 else
   9921   echo "$as_me: failed program was:" >&5
   9922   cat "conftest.$ac_ext" >&5
   9923   eval "$as_ac_Header=no"
   9924 fi
   9925 rm -f conftest.err "conftest.$ac_ext"
   9926 fi
   9927 echo "$as_me:9927: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
   9928 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
   9929 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
   9930   cat >>confdefs.h <<EOF
   9931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   9932 EOF
   9933 
   9934 fi
   9935 done
   9936 
   9937 echo "$as_me:9937: checking if we should define SYSV" >&5
   9938 echo $ECHO_N "checking if we should define SYSV... $ECHO_C" >&6
   9939 if test "${cf_cv_sysv+set}" = set; then
   9940   echo $ECHO_N "(cached) $ECHO_C" >&6
   9941 else
   9942 
   9943 cat >"conftest.$ac_ext" <<_ACEOF
   9944 #line 9944 "configure"
   9945 #include "confdefs.h"
   9946 
   9947 #undef  SYSV
   9948 #define SYSV 1			/* get Xos.h to declare sys_errlist[] */
   9949 #ifdef HAVE_STDLIB_H
   9950 #include <stdlib.h>		/* look for wchar_t */
   9951 #endif
   9952 #ifdef HAVE_X11_INTRINSIC_H
   9953 #include <X11/Intrinsic.h>	/* Intrinsic.h has other traps... */
   9954 #endif
   9955 #ifdef HAVE_TERMIOS_H		/* needed for HPUX 10.20 */
   9956 #include <termios.h>
   9957 #define STRUCT_TERMIOS struct termios
   9958 #else
   9959 #define STRUCT_TERMIOS struct termio
   9960 #endif
   9961 #include <curses.h>
   9962 #include <term.h>		/* eliminate most BSD hacks */
   9963 #include <errno.h>		/* declare sys_errlist on older systems */
   9964 #include <sys/termio.h>		/* eliminate most of the remaining ones */
   9965 
   9966 int
   9967 main (void)
   9968 {
   9969 
   9970 static STRUCT_TERMIOS d_tio;
   9971 	d_tio.c_cc[VINTR] = 0;
   9972 	d_tio.c_cc[VQUIT] = 0;
   9973 	d_tio.c_cc[VERASE] = 0;
   9974 	d_tio.c_cc[VKILL] = 0;
   9975 	d_tio.c_cc[VEOF] = 0;
   9976 	d_tio.c_cc[VEOL] = 0;
   9977 	d_tio.c_cc[VMIN] = 0;
   9978 	d_tio.c_cc[VTIME] = 0;
   9979 #if defined(HAVE_SYS_ERRLIST) && !defined(DECL_SYS_ERRLIST)
   9980 sys_errlist[0] = "";		/* Cygwin mis-declares this */
   9981 #endif
   9982 
   9983   ;
   9984   return 0;
   9985 }
   9986 _ACEOF
   9987 rm -f "conftest.$ac_objext"
   9988 if { (eval echo "$as_me:9988: \"$ac_compile\"") >&5
   9989   (eval $ac_compile) 2>&5
   9990   ac_status=$?
   9991   echo "$as_me:9991: \$? = $ac_status" >&5
   9992   (exit "$ac_status"); } &&
   9993          { ac_try='test -s "conftest.$ac_objext"'
   9994   { (eval echo "$as_me:9994: \"$ac_try\"") >&5
   9995   (eval $ac_try) 2>&5
   9996   ac_status=$?
   9997   echo "$as_me:9997: \$? = $ac_status" >&5
   9998   (exit "$ac_status"); }; }; then
   9999   cf_cv_sysv=yes
   10000 else
   10001   echo "$as_me: failed program was:" >&5
   10002 cat "conftest.$ac_ext" >&5
   10003 cf_cv_sysv=no
   10004 fi
   10005 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   10006 
   10007 fi
   10008 echo "$as_me:10008: result: $cf_cv_sysv" >&5
   10009 echo "${ECHO_T}$cf_cv_sysv" >&6
   10010 test "$cf_cv_sysv" = yes &&
   10011 cat >>confdefs.h <<\EOF
   10012 #define SYSV 1
   10013 EOF
   10014 
   10015 LIBS="$cf_save_LIBS_CF_SYSV"
   10016 CFLAGS="$cf_save_CFLAGS_CF_SYSV"
   10017 CPPFLAGS="$cf_save_CPPFLAGS_CF_SYSV"
   10018 
   10019 echo "$as_me:10019: checking for elf_begin in -lelf" >&5
   10020 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
   10021 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
   10022   echo $ECHO_N "(cached) $ECHO_C" >&6
   10023 else
   10024   ac_check_lib_save_LIBS=$LIBS
   10025 LIBS="-lelf  $LIBS"
   10026 cat >"conftest.$ac_ext" <<_ACEOF
   10027 #line 10027 "configure"
   10028 #include "confdefs.h"
   10029 
   10030 /* Override any gcc2 internal prototype to avoid an error.  */
   10031 #ifdef __cplusplus
   10032 extern "C"
   10033 #endif
   10034 /* We use char because int might match the return type of a gcc2
   10035    builtin and then its argument prototype would still apply.  */
   10036 char elf_begin ();
   10037 int
   10038 main (void)
   10039 {
   10040 elf_begin ();
   10041   ;
   10042   return 0;
   10043 }
   10044 _ACEOF
   10045 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   10046 if { (eval echo "$as_me:10046: \"$ac_link\"") >&5
   10047   (eval $ac_link) 2>&5
   10048   ac_status=$?
   10049   echo "$as_me:10049: \$? = $ac_status" >&5
   10050   (exit "$ac_status"); } &&
   10051          { ac_try='test -s "conftest$ac_exeext"'
   10052   { (eval echo "$as_me:10052: \"$ac_try\"") >&5
   10053   (eval $ac_try) 2>&5
   10054   ac_status=$?
   10055   echo "$as_me:10055: \$? = $ac_status" >&5
   10056   (exit "$ac_status"); }; }; then
   10057   ac_cv_lib_elf_elf_begin=yes
   10058 else
   10059   echo "$as_me: failed program was:" >&5
   10060 cat "conftest.$ac_ext" >&5
   10061 ac_cv_lib_elf_elf_begin=no
   10062 fi
   10063 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   10064 LIBS=$ac_check_lib_save_LIBS
   10065 fi
   10066 echo "$as_me:10066: result: $ac_cv_lib_elf_elf_begin" >&5
   10067 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
   10068 if test "$ac_cv_lib_elf_elf_begin" = yes; then
   10069 
   10070 echo "$as_me:10070: checking if this is an SVR4 system" >&5
   10071 echo $ECHO_N "checking if this is an SVR4 system... $ECHO_C" >&6
   10072 if test "${cf_cv_svr4+set}" = set; then
   10073   echo $ECHO_N "(cached) $ECHO_C" >&6
   10074 else
   10075 
   10076 cat >"conftest.$ac_ext" <<_ACEOF
   10077 #line 10077 "configure"
   10078 #include "confdefs.h"
   10079 
   10080 #if defined(__CYGWIN__)
   10081 make an error
   10082 #endif
   10083 #include <elf.h>
   10084 #include <sys/termio.h>
   10085 
   10086 int
   10087 main (void)
   10088 {
   10089 
   10090 static struct termio d_tio;
   10091 	d_tio.c_cc[VINTR] = 0;
   10092 	d_tio.c_cc[VQUIT] = 0;
   10093 	d_tio.c_cc[VERASE] = 0;
   10094 	d_tio.c_cc[VKILL] = 0;
   10095 	d_tio.c_cc[VEOF] = 0;
   10096 	d_tio.c_cc[VEOL] = 0;
   10097 	d_tio.c_cc[VMIN] = 0;
   10098 	d_tio.c_cc[VTIME] = 0;
   10099 	d_tio.c_cc[VLNEXT] = 0;
   10100 
   10101   ;
   10102   return 0;
   10103 }
   10104 _ACEOF
   10105 rm -f "conftest.$ac_objext"
   10106 if { (eval echo "$as_me:10106: \"$ac_compile\"") >&5
   10107   (eval $ac_compile) 2>&5
   10108   ac_status=$?
   10109   echo "$as_me:10109: \$? = $ac_status" >&5
   10110   (exit "$ac_status"); } &&
   10111          { ac_try='test -s "conftest.$ac_objext"'
   10112   { (eval echo "$as_me:10112: \"$ac_try\"") >&5
   10113   (eval $ac_try) 2>&5
   10114   ac_status=$?
   10115   echo "$as_me:10115: \$? = $ac_status" >&5
   10116   (exit "$ac_status"); }; }; then
   10117   cf_cv_svr4=yes
   10118 else
   10119   echo "$as_me: failed program was:" >&5
   10120 cat "conftest.$ac_ext" >&5
   10121 cf_cv_svr4=no
   10122 fi
   10123 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   10124 
   10125 fi
   10126 echo "$as_me:10126: result: $cf_cv_svr4" >&5
   10127 echo "${ECHO_T}$cf_cv_svr4" >&6
   10128 
   10129 fi
   10130 
   10131 test "$cf_cv_svr4" = yes &&
   10132 cat >>confdefs.h <<\EOF
   10133 #define SVR4 1
   10134 EOF
   10135 
   10136 echo "$as_me:10136: checking if you want to use pkg-config" >&5
   10137 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
   10138 
   10139 # Check whether --with-pkg-config or --without-pkg-config was given.
   10140 if test "${with_pkg_config+set}" = set; then
   10141   withval="$with_pkg_config"
   10142   cf_pkg_config=$withval
   10143 else
   10144   cf_pkg_config=yes
   10145 fi;
   10146 echo "$as_me:10146: result: $cf_pkg_config" >&5
   10147 echo "${ECHO_T}$cf_pkg_config" >&6
   10148 
   10149 case "$cf_pkg_config" in
   10150 (no)
   10151 	PKG_CONFIG=none
   10152 	;;
   10153 (yes)
   10154 
   10155 if test -n "$ac_tool_prefix"; then
   10156   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   10157 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   10158 echo "$as_me:10158: checking for $ac_word" >&5
   10159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10160 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
   10161   echo $ECHO_N "(cached) $ECHO_C" >&6
   10162 else
   10163   case $PKG_CONFIG in
   10164   [\\/]* | ?:[\\/]*)
   10165   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   10166   ;;
   10167   *)
   10168   ac_save_IFS=$IFS; IFS=$ac_path_separator
   10169 ac_dummy="$PATH"
   10170 for ac_dir in $ac_dummy; do
   10171   IFS=$ac_save_IFS
   10172   test -z "$ac_dir" && ac_dir=.
   10173   if $as_executable_p "$ac_dir/$ac_word"; then
   10174    ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
   10175    echo "$as_me:10175: found $ac_dir/$ac_word" >&5
   10176    break
   10177 fi
   10178 done
   10179 
   10180   ;;
   10181 esac
   10182 fi
   10183 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   10184 
   10185 if test -n "$PKG_CONFIG"; then
   10186   echo "$as_me:10186: result: $PKG_CONFIG" >&5
   10187 echo "${ECHO_T}$PKG_CONFIG" >&6
   10188 else
   10189   echo "$as_me:10189: result: no" >&5
   10190 echo "${ECHO_T}no" >&6
   10191 fi
   10192 
   10193 fi
   10194 if test -z "$ac_cv_path_PKG_CONFIG"; then
   10195   ac_pt_PKG_CONFIG=$PKG_CONFIG
   10196   # Extract the first word of "pkg-config", so it can be a program name with args.
   10197 set dummy pkg-config; ac_word=$2
   10198 echo "$as_me:10198: checking for $ac_word" >&5
   10199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10200 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
   10201   echo $ECHO_N "(cached) $ECHO_C" >&6
   10202 else
   10203   case $ac_pt_PKG_CONFIG in
   10204   [\\/]* | ?:[\\/]*)
   10205   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   10206   ;;
   10207   *)
   10208   ac_save_IFS=$IFS; IFS=$ac_path_separator
   10209 ac_dummy="$PATH"
   10210 for ac_dir in $ac_dummy; do
   10211   IFS=$ac_save_IFS
   10212   test -z "$ac_dir" && ac_dir=.
   10213   if $as_executable_p "$ac_dir/$ac_word"; then
   10214    ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
   10215    echo "$as_me:10215: found $ac_dir/$ac_word" >&5
   10216    break
   10217 fi
   10218 done
   10219 
   10220   test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
   10221   ;;
   10222 esac
   10223 fi
   10224 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   10225 
   10226 if test -n "$ac_pt_PKG_CONFIG"; then
   10227   echo "$as_me:10227: result: $ac_pt_PKG_CONFIG" >&5
   10228 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
   10229 else
   10230   echo "$as_me:10230: result: no" >&5
   10231 echo "${ECHO_T}no" >&6
   10232 fi
   10233 
   10234   PKG_CONFIG=$ac_pt_PKG_CONFIG
   10235 else
   10236   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   10237 fi
   10238 
   10239 	;;
   10240 (*)
   10241 	PKG_CONFIG=$withval
   10242 	;;
   10243 esac
   10244 
   10245 test -z "$PKG_CONFIG" && PKG_CONFIG=none
   10246 if test "$PKG_CONFIG" != none ; then
   10247 
   10248 if test "x$prefix" != xNONE; then
   10249 	cf_path_syntax="$prefix"
   10250 else
   10251 	cf_path_syntax="$ac_default_prefix"
   10252 fi
   10253 
   10254 case ".$PKG_CONFIG" in
   10255 (.\$\(*\)*|.\'*\'*)
   10256 	;;
   10257 (..|./*|.\\*)
   10258 	;;
   10259 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
   10260 	;;
   10261 (.\$\{*prefix\}*|.\$\{*dir\}*)
   10262 	eval PKG_CONFIG="$PKG_CONFIG"
   10263 	case ".$PKG_CONFIG" in
   10264 	(.NONE/*)
   10265 		PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
   10266 		;;
   10267 	esac
   10268 	;;
   10269 (.no|.NONE/*)
   10270 	PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
   10271 	;;
   10272 (*)
   10273 	{ { echo "$as_me:10273: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
   10274 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
   10275    { (exit 1); exit 1; }; }
   10276 	;;
   10277 esac
   10278 
   10279 elif test "x$cf_pkg_config" != xno ; then
   10280 	{ echo "$as_me:10280: WARNING: pkg-config is not installed" >&5
   10281 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
   10282 fi
   10283 
   10284 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new) (and
   10285 # in some cases has installed dummy files in the former, other cases replaced
   10286 # it with a link to the new location).  This complicates the configure script.
   10287 # Check for that pitfall, and recover using pkg-config
   10288 #
   10289 # If none of these are set, the configuration is almost certainly broken.
   10290 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
   10291 then
   10292 
   10293 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then
   10294 	test -n "$verbose" && echo "	found package x11" 1>&6
   10295 
   10296 echo "${as_me:-configure}:10296: testing found package x11 ..." 1>&5
   10297 
   10298 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`"
   10299 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "x11" 2>/dev/null`"
   10300 	test -n "$verbose" && echo "	package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
   10301 
   10302 echo "${as_me:-configure}:10302: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   10303 
   10304 	test -n "$verbose" && echo "	package x11 LIBS: $cf_pkgconfig_libs" 1>&6
   10305 
   10306 echo "${as_me:-configure}:10306: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
   10307 
   10308 cf_fix_cppflags=no
   10309 cf_new_cflags=
   10310 cf_new_cppflags=
   10311 cf_new_extra_cppflags=
   10312 
   10313 for cf_add_cflags in $cf_pkgconfig_incs
   10314 do
   10315 case "$cf_fix_cppflags" in
   10316 (no)
   10317 	case "$cf_add_cflags" in
   10318 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   10319 		case "$cf_add_cflags" in
   10320 		(-D*)
   10321 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   10322 
   10323 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   10324 				&& test -z "${cf_tst_cflags}" \
   10325 				&& cf_fix_cppflags=yes
   10326 
   10327 			if test "$cf_fix_cppflags" = yes ; then
   10328 
   10329 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10330 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10331 
   10332 				continue
   10333 			elif test "${cf_tst_cflags}" = "\"'" ; then
   10334 
   10335 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10336 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10337 
   10338 				continue
   10339 			fi
   10340 			;;
   10341 		esac
   10342 		case "$CPPFLAGS" in
   10343 		(*$cf_add_cflags)
   10344 			;;
   10345 		(*)
   10346 			case "$cf_add_cflags" in
   10347 			(-D*)
   10348 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   10349 
   10350 CPPFLAGS=`echo "$CPPFLAGS" | \
   10351 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   10352 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   10353 
   10354 				;;
   10355 			esac
   10356 
   10357 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   10358 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   10359 
   10360 			;;
   10361 		esac
   10362 		;;
   10363 	(*)
   10364 
   10365 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   10366 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   10367 
   10368 		;;
   10369 	esac
   10370 	;;
   10371 (yes)
   10372 
   10373 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10374 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10375 
   10376 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   10377 
   10378 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   10379 		&& test -z "${cf_tst_cflags}" \
   10380 		&& cf_fix_cppflags=no
   10381 	;;
   10382 esac
   10383 done
   10384 
   10385 if test -n "$cf_new_cflags" ; then
   10386 
   10387 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   10388 	CFLAGS="${CFLAGS}$cf_new_cflags"
   10389 
   10390 fi
   10391 
   10392 if test -n "$cf_new_cppflags" ; then
   10393 
   10394 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   10395 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   10396 
   10397 fi
   10398 
   10399 if test -n "$cf_new_extra_cppflags" ; then
   10400 
   10401 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   10402 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   10403 
   10404 fi
   10405 
   10406 cf_add_libs="$LIBS"
   10407 # reverse order
   10408 cf_add_0lib=
   10409 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   10410 # filter duplicates
   10411 for cf_add_1lib in $cf_add_0lib; do
   10412 	for cf_add_2lib in $cf_add_libs; do
   10413 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   10414 			cf_add_1lib=
   10415 			break
   10416 		fi
   10417 	done
   10418 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   10419 done
   10420 LIBS="$cf_add_libs"
   10421 
   10422 	:
   10423 else
   10424 	cf_pkgconfig_incs=
   10425 	cf_pkgconfig_libs=
   10426 	{ echo "$as_me:10426: WARNING: unable to find X11 library" >&5
   10427 echo "$as_me: WARNING: unable to find X11 library" >&2;}
   10428 fi
   10429 
   10430 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then
   10431 	test -n "$verbose" && echo "	found package ice" 1>&6
   10432 
   10433 echo "${as_me:-configure}:10433: testing found package ice ..." 1>&5
   10434 
   10435 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`"
   10436 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "ice" 2>/dev/null`"
   10437 	test -n "$verbose" && echo "	package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
   10438 
   10439 echo "${as_me:-configure}:10439: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   10440 
   10441 	test -n "$verbose" && echo "	package ice LIBS: $cf_pkgconfig_libs" 1>&6
   10442 
   10443 echo "${as_me:-configure}:10443: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
   10444 
   10445 cf_fix_cppflags=no
   10446 cf_new_cflags=
   10447 cf_new_cppflags=
   10448 cf_new_extra_cppflags=
   10449 
   10450 for cf_add_cflags in $cf_pkgconfig_incs
   10451 do
   10452 case "$cf_fix_cppflags" in
   10453 (no)
   10454 	case "$cf_add_cflags" in
   10455 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   10456 		case "$cf_add_cflags" in
   10457 		(-D*)
   10458 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   10459 
   10460 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   10461 				&& test -z "${cf_tst_cflags}" \
   10462 				&& cf_fix_cppflags=yes
   10463 
   10464 			if test "$cf_fix_cppflags" = yes ; then
   10465 
   10466 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10467 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10468 
   10469 				continue
   10470 			elif test "${cf_tst_cflags}" = "\"'" ; then
   10471 
   10472 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10473 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10474 
   10475 				continue
   10476 			fi
   10477 			;;
   10478 		esac
   10479 		case "$CPPFLAGS" in
   10480 		(*$cf_add_cflags)
   10481 			;;
   10482 		(*)
   10483 			case "$cf_add_cflags" in
   10484 			(-D*)
   10485 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   10486 
   10487 CPPFLAGS=`echo "$CPPFLAGS" | \
   10488 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   10489 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   10490 
   10491 				;;
   10492 			esac
   10493 
   10494 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   10495 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   10496 
   10497 			;;
   10498 		esac
   10499 		;;
   10500 	(*)
   10501 
   10502 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   10503 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   10504 
   10505 		;;
   10506 	esac
   10507 	;;
   10508 (yes)
   10509 
   10510 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10511 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10512 
   10513 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   10514 
   10515 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   10516 		&& test -z "${cf_tst_cflags}" \
   10517 		&& cf_fix_cppflags=no
   10518 	;;
   10519 esac
   10520 done
   10521 
   10522 if test -n "$cf_new_cflags" ; then
   10523 
   10524 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   10525 	CFLAGS="${CFLAGS}$cf_new_cflags"
   10526 
   10527 fi
   10528 
   10529 if test -n "$cf_new_cppflags" ; then
   10530 
   10531 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   10532 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   10533 
   10534 fi
   10535 
   10536 if test -n "$cf_new_extra_cppflags" ; then
   10537 
   10538 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   10539 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   10540 
   10541 fi
   10542 
   10543 cf_add_libs="$LIBS"
   10544 # reverse order
   10545 cf_add_0lib=
   10546 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   10547 # filter duplicates
   10548 for cf_add_1lib in $cf_add_0lib; do
   10549 	for cf_add_2lib in $cf_add_libs; do
   10550 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   10551 			cf_add_1lib=
   10552 			break
   10553 		fi
   10554 	done
   10555 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   10556 done
   10557 LIBS="$cf_add_libs"
   10558 
   10559 	:
   10560 else
   10561 	cf_pkgconfig_incs=
   10562 	cf_pkgconfig_libs=
   10563 	{ echo "$as_me:10563: WARNING: unable to find ICE library" >&5
   10564 echo "$as_me: WARNING: unable to find ICE library" >&2;}
   10565 fi
   10566 
   10567 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then
   10568 	test -n "$verbose" && echo "	found package sm" 1>&6
   10569 
   10570 echo "${as_me:-configure}:10570: testing found package sm ..." 1>&5
   10571 
   10572 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`"
   10573 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "sm" 2>/dev/null`"
   10574 	test -n "$verbose" && echo "	package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
   10575 
   10576 echo "${as_me:-configure}:10576: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   10577 
   10578 	test -n "$verbose" && echo "	package sm LIBS: $cf_pkgconfig_libs" 1>&6
   10579 
   10580 echo "${as_me:-configure}:10580: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
   10581 
   10582 cf_fix_cppflags=no
   10583 cf_new_cflags=
   10584 cf_new_cppflags=
   10585 cf_new_extra_cppflags=
   10586 
   10587 for cf_add_cflags in $cf_pkgconfig_incs
   10588 do
   10589 case "$cf_fix_cppflags" in
   10590 (no)
   10591 	case "$cf_add_cflags" in
   10592 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   10593 		case "$cf_add_cflags" in
   10594 		(-D*)
   10595 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   10596 
   10597 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   10598 				&& test -z "${cf_tst_cflags}" \
   10599 				&& cf_fix_cppflags=yes
   10600 
   10601 			if test "$cf_fix_cppflags" = yes ; then
   10602 
   10603 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10604 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10605 
   10606 				continue
   10607 			elif test "${cf_tst_cflags}" = "\"'" ; then
   10608 
   10609 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10610 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10611 
   10612 				continue
   10613 			fi
   10614 			;;
   10615 		esac
   10616 		case "$CPPFLAGS" in
   10617 		(*$cf_add_cflags)
   10618 			;;
   10619 		(*)
   10620 			case "$cf_add_cflags" in
   10621 			(-D*)
   10622 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   10623 
   10624 CPPFLAGS=`echo "$CPPFLAGS" | \
   10625 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   10626 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   10627 
   10628 				;;
   10629 			esac
   10630 
   10631 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   10632 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   10633 
   10634 			;;
   10635 		esac
   10636 		;;
   10637 	(*)
   10638 
   10639 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   10640 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   10641 
   10642 		;;
   10643 	esac
   10644 	;;
   10645 (yes)
   10646 
   10647 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10648 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10649 
   10650 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   10651 
   10652 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   10653 		&& test -z "${cf_tst_cflags}" \
   10654 		&& cf_fix_cppflags=no
   10655 	;;
   10656 esac
   10657 done
   10658 
   10659 if test -n "$cf_new_cflags" ; then
   10660 
   10661 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   10662 	CFLAGS="${CFLAGS}$cf_new_cflags"
   10663 
   10664 fi
   10665 
   10666 if test -n "$cf_new_cppflags" ; then
   10667 
   10668 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   10669 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   10670 
   10671 fi
   10672 
   10673 if test -n "$cf_new_extra_cppflags" ; then
   10674 
   10675 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   10676 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   10677 
   10678 fi
   10679 
   10680 cf_add_libs="$LIBS"
   10681 # reverse order
   10682 cf_add_0lib=
   10683 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   10684 # filter duplicates
   10685 for cf_add_1lib in $cf_add_0lib; do
   10686 	for cf_add_2lib in $cf_add_libs; do
   10687 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   10688 			cf_add_1lib=
   10689 			break
   10690 		fi
   10691 	done
   10692 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   10693 done
   10694 LIBS="$cf_add_libs"
   10695 
   10696 	:
   10697 else
   10698 	cf_pkgconfig_incs=
   10699 	cf_pkgconfig_libs=
   10700 	{ echo "$as_me:10700: WARNING: unable to find SM library" >&5
   10701 echo "$as_me: WARNING: unable to find SM library" >&2;}
   10702 fi
   10703 
   10704 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then
   10705 	test -n "$verbose" && echo "	found package xt" 1>&6
   10706 
   10707 echo "${as_me:-configure}:10707: testing found package xt ..." 1>&5
   10708 
   10709 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`"
   10710 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "xt" 2>/dev/null`"
   10711 	test -n "$verbose" && echo "	package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
   10712 
   10713 echo "${as_me:-configure}:10713: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   10714 
   10715 	test -n "$verbose" && echo "	package xt LIBS: $cf_pkgconfig_libs" 1>&6
   10716 
   10717 echo "${as_me:-configure}:10717: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
   10718 
   10719 cf_fix_cppflags=no
   10720 cf_new_cflags=
   10721 cf_new_cppflags=
   10722 cf_new_extra_cppflags=
   10723 
   10724 for cf_add_cflags in $cf_pkgconfig_incs
   10725 do
   10726 case "$cf_fix_cppflags" in
   10727 (no)
   10728 	case "$cf_add_cflags" in
   10729 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   10730 		case "$cf_add_cflags" in
   10731 		(-D*)
   10732 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   10733 
   10734 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   10735 				&& test -z "${cf_tst_cflags}" \
   10736 				&& cf_fix_cppflags=yes
   10737 
   10738 			if test "$cf_fix_cppflags" = yes ; then
   10739 
   10740 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10741 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10742 
   10743 				continue
   10744 			elif test "${cf_tst_cflags}" = "\"'" ; then
   10745 
   10746 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10747 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10748 
   10749 				continue
   10750 			fi
   10751 			;;
   10752 		esac
   10753 		case "$CPPFLAGS" in
   10754 		(*$cf_add_cflags)
   10755 			;;
   10756 		(*)
   10757 			case "$cf_add_cflags" in
   10758 			(-D*)
   10759 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   10760 
   10761 CPPFLAGS=`echo "$CPPFLAGS" | \
   10762 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   10763 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   10764 
   10765 				;;
   10766 			esac
   10767 
   10768 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   10769 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   10770 
   10771 			;;
   10772 		esac
   10773 		;;
   10774 	(*)
   10775 
   10776 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   10777 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   10778 
   10779 		;;
   10780 	esac
   10781 	;;
   10782 (yes)
   10783 
   10784 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10785 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10786 
   10787 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   10788 
   10789 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   10790 		&& test -z "${cf_tst_cflags}" \
   10791 		&& cf_fix_cppflags=no
   10792 	;;
   10793 esac
   10794 done
   10795 
   10796 if test -n "$cf_new_cflags" ; then
   10797 
   10798 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   10799 	CFLAGS="${CFLAGS}$cf_new_cflags"
   10800 
   10801 fi
   10802 
   10803 if test -n "$cf_new_cppflags" ; then
   10804 
   10805 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   10806 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   10807 
   10808 fi
   10809 
   10810 if test -n "$cf_new_extra_cppflags" ; then
   10811 
   10812 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   10813 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   10814 
   10815 fi
   10816 
   10817 cf_add_libs="$LIBS"
   10818 # reverse order
   10819 cf_add_0lib=
   10820 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   10821 # filter duplicates
   10822 for cf_add_1lib in $cf_add_0lib; do
   10823 	for cf_add_2lib in $cf_add_libs; do
   10824 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   10825 			cf_add_1lib=
   10826 			break
   10827 		fi
   10828 	done
   10829 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   10830 done
   10831 LIBS="$cf_add_libs"
   10832 
   10833 	:
   10834 else
   10835 	cf_pkgconfig_incs=
   10836 	cf_pkgconfig_libs=
   10837 	{ echo "$as_me:10837: WARNING: unable to find Xt library" >&5
   10838 echo "$as_me: WARNING: unable to find Xt library" >&2;}
   10839 fi
   10840 
   10841 else
   10842 	LIBS="$X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
   10843 fi
   10844 
   10845 cf_have_X_LIBS=no
   10846 
   10847 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then
   10848 	test -n "$verbose" && echo "	found package xt" 1>&6
   10849 
   10850 echo "${as_me:-configure}:10850: testing found package xt ..." 1>&5
   10851 
   10852 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`"
   10853 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "xt" 2>/dev/null`"
   10854 	test -n "$verbose" && echo "	package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
   10855 
   10856 echo "${as_me:-configure}:10856: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   10857 
   10858 	test -n "$verbose" && echo "	package xt LIBS: $cf_pkgconfig_libs" 1>&6
   10859 
   10860 echo "${as_me:-configure}:10860: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
   10861 
   10862 cf_fix_cppflags=no
   10863 cf_new_cflags=
   10864 cf_new_cppflags=
   10865 cf_new_extra_cppflags=
   10866 
   10867 for cf_add_cflags in $cf_pkgconfig_incs
   10868 do
   10869 case "$cf_fix_cppflags" in
   10870 (no)
   10871 	case "$cf_add_cflags" in
   10872 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   10873 		case "$cf_add_cflags" in
   10874 		(-D*)
   10875 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   10876 
   10877 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   10878 				&& test -z "${cf_tst_cflags}" \
   10879 				&& cf_fix_cppflags=yes
   10880 
   10881 			if test "$cf_fix_cppflags" = yes ; then
   10882 
   10883 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10884 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10885 
   10886 				continue
   10887 			elif test "${cf_tst_cflags}" = "\"'" ; then
   10888 
   10889 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10890 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10891 
   10892 				continue
   10893 			fi
   10894 			;;
   10895 		esac
   10896 		case "$CPPFLAGS" in
   10897 		(*$cf_add_cflags)
   10898 			;;
   10899 		(*)
   10900 			case "$cf_add_cflags" in
   10901 			(-D*)
   10902 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   10903 
   10904 CPPFLAGS=`echo "$CPPFLAGS" | \
   10905 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   10906 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   10907 
   10908 				;;
   10909 			esac
   10910 
   10911 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   10912 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   10913 
   10914 			;;
   10915 		esac
   10916 		;;
   10917 	(*)
   10918 
   10919 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   10920 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   10921 
   10922 		;;
   10923 	esac
   10924 	;;
   10925 (yes)
   10926 
   10927 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10928 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10929 
   10930 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   10931 
   10932 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   10933 		&& test -z "${cf_tst_cflags}" \
   10934 		&& cf_fix_cppflags=no
   10935 	;;
   10936 esac
   10937 done
   10938 
   10939 if test -n "$cf_new_cflags" ; then
   10940 
   10941 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   10942 	CFLAGS="${CFLAGS}$cf_new_cflags"
   10943 
   10944 fi
   10945 
   10946 if test -n "$cf_new_cppflags" ; then
   10947 
   10948 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   10949 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   10950 
   10951 fi
   10952 
   10953 if test -n "$cf_new_extra_cppflags" ; then
   10954 
   10955 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   10956 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   10957 
   10958 fi
   10959 
   10960 cf_add_libs="$LIBS"
   10961 # reverse order
   10962 cf_add_0lib=
   10963 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   10964 # filter duplicates
   10965 for cf_add_1lib in $cf_add_0lib; do
   10966 	for cf_add_2lib in $cf_add_libs; do
   10967 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   10968 			cf_add_1lib=
   10969 			break
   10970 		fi
   10971 	done
   10972 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   10973 done
   10974 LIBS="$cf_add_libs"
   10975 
   10976 	case "x$LIBS" in
   10977 	(*-lX11*)
   10978 		;;
   10979 	(*)
   10980 # we have an "xt" package, but it may omit Xt's dependency on X11
   10981 echo "$as_me:10981: checking for usable X dependency" >&5
   10982 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
   10983 if test "${cf_cv_xt_x11_compat+set}" = set; then
   10984   echo $ECHO_N "(cached) $ECHO_C" >&6
   10985 else
   10986 
   10987 cat >"conftest.$ac_ext" <<_ACEOF
   10988 #line 10988 "configure"
   10989 #include "confdefs.h"
   10990 
   10991 #include <X11/Xlib.h>
   10992 
   10993 int
   10994 main (void)
   10995 {
   10996 
   10997 	int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
   10998 	int rc2 = XClearWindow((Display*) 0, (Window) 0);
   10999 	int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
   11000 	int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
   11001 
   11002   ;
   11003   return 0;
   11004 }
   11005 _ACEOF
   11006 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   11007 if { (eval echo "$as_me:11007: \"$ac_link\"") >&5
   11008   (eval $ac_link) 2>&5
   11009   ac_status=$?
   11010   echo "$as_me:11010: \$? = $ac_status" >&5
   11011   (exit "$ac_status"); } &&
   11012          { ac_try='test -s "conftest$ac_exeext"'
   11013   { (eval echo "$as_me:11013: \"$ac_try\"") >&5
   11014   (eval $ac_try) 2>&5
   11015   ac_status=$?
   11016   echo "$as_me:11016: \$? = $ac_status" >&5
   11017   (exit "$ac_status"); }; }; then
   11018   cf_cv_xt_x11_compat=yes
   11019 else
   11020   echo "$as_me: failed program was:" >&5
   11021 cat "conftest.$ac_ext" >&5
   11022 cf_cv_xt_x11_compat=no
   11023 fi
   11024 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   11025 fi
   11026 echo "$as_me:11026: result: $cf_cv_xt_x11_compat" >&5
   11027 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
   11028 		if test "$cf_cv_xt_x11_compat" = no
   11029 		then
   11030 			test -n "$verbose" && echo "	work around broken X11 dependency" 1>&6
   11031 
   11032 echo "${as_me:-configure}:11032: testing work around broken X11 dependency ..." 1>&5
   11033 
   11034 			# 2010/11/19 - good enough until a working Xt on Xcb is delivered.
   11035 
   11036 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then
   11037 	test -n "$verbose" && echo "	found package x11" 1>&6
   11038 
   11039 echo "${as_me:-configure}:11039: testing found package x11 ..." 1>&5
   11040 
   11041 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`"
   11042 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "x11" 2>/dev/null`"
   11043 	test -n "$verbose" && echo "	package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
   11044 
   11045 echo "${as_me:-configure}:11045: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   11046 
   11047 	test -n "$verbose" && echo "	package x11 LIBS: $cf_pkgconfig_libs" 1>&6
   11048 
   11049 echo "${as_me:-configure}:11049: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
   11050 
   11051 cf_fix_cppflags=no
   11052 cf_new_cflags=
   11053 cf_new_cppflags=
   11054 cf_new_extra_cppflags=
   11055 
   11056 for cf_add_cflags in $cf_pkgconfig_incs
   11057 do
   11058 case "$cf_fix_cppflags" in
   11059 (no)
   11060 	case "$cf_add_cflags" in
   11061 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   11062 		case "$cf_add_cflags" in
   11063 		(-D*)
   11064 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   11065 
   11066 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   11067 				&& test -z "${cf_tst_cflags}" \
   11068 				&& cf_fix_cppflags=yes
   11069 
   11070 			if test "$cf_fix_cppflags" = yes ; then
   11071 
   11072 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11073 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11074 
   11075 				continue
   11076 			elif test "${cf_tst_cflags}" = "\"'" ; then
   11077 
   11078 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11079 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11080 
   11081 				continue
   11082 			fi
   11083 			;;
   11084 		esac
   11085 		case "$CPPFLAGS" in
   11086 		(*$cf_add_cflags)
   11087 			;;
   11088 		(*)
   11089 			case "$cf_add_cflags" in
   11090 			(-D*)
   11091 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   11092 
   11093 CPPFLAGS=`echo "$CPPFLAGS" | \
   11094 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   11095 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   11096 
   11097 				;;
   11098 			esac
   11099 
   11100 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   11101 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   11102 
   11103 			;;
   11104 		esac
   11105 		;;
   11106 	(*)
   11107 
   11108 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   11109 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   11110 
   11111 		;;
   11112 	esac
   11113 	;;
   11114 (yes)
   11115 
   11116 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11117 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11118 
   11119 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   11120 
   11121 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   11122 		&& test -z "${cf_tst_cflags}" \
   11123 		&& cf_fix_cppflags=no
   11124 	;;
   11125 esac
   11126 done
   11127 
   11128 if test -n "$cf_new_cflags" ; then
   11129 
   11130 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   11131 	CFLAGS="${CFLAGS}$cf_new_cflags"
   11132 
   11133 fi
   11134 
   11135 if test -n "$cf_new_cppflags" ; then
   11136 
   11137 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   11138 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   11139 
   11140 fi
   11141 
   11142 if test -n "$cf_new_extra_cppflags" ; then
   11143 
   11144 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   11145 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   11146 
   11147 fi
   11148 
   11149 cf_add_libs="$LIBS"
   11150 # reverse order
   11151 cf_add_0lib=
   11152 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   11153 # filter duplicates
   11154 for cf_add_1lib in $cf_add_0lib; do
   11155 	for cf_add_2lib in $cf_add_libs; do
   11156 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   11157 			cf_add_1lib=
   11158 			break
   11159 		fi
   11160 	done
   11161 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   11162 done
   11163 LIBS="$cf_add_libs"
   11164 
   11165 	:
   11166 else
   11167 	cf_pkgconfig_incs=
   11168 	cf_pkgconfig_libs=
   11169 
   11170 test -n "$verbose" && echo "	...before $LIBS" 1>&6
   11171 
   11172 echo "${as_me:-configure}:11172: testing ...before $LIBS ..." 1>&5
   11173 
   11174 LIBS=`echo "$LIBS" | sed -e "s/[ 	][ 	]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's%  % %g'`
   11175 test -n "$verbose" && echo "	...after  $LIBS" 1>&6
   11176 
   11177 echo "${as_me:-configure}:11177: testing ...after  $LIBS ..." 1>&5
   11178 
   11179 fi
   11180 
   11181 		fi
   11182 		;;
   11183 	esac
   11184 
   11185 echo "$as_me:11185: checking for usable X Toolkit package" >&5
   11186 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
   11187 if test "${cf_cv_xt_ice_compat+set}" = set; then
   11188   echo $ECHO_N "(cached) $ECHO_C" >&6
   11189 else
   11190 
   11191 cat >"conftest.$ac_ext" <<_ACEOF
   11192 #line 11192 "configure"
   11193 #include "confdefs.h"
   11194 
   11195 #include <X11/Shell.h>
   11196 
   11197 int
   11198 main (void)
   11199 {
   11200 int num = IceConnectionNumber(0); (void) num
   11201 
   11202   ;
   11203   return 0;
   11204 }
   11205 _ACEOF
   11206 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   11207 if { (eval echo "$as_me:11207: \"$ac_link\"") >&5
   11208   (eval $ac_link) 2>&5
   11209   ac_status=$?
   11210   echo "$as_me:11210: \$? = $ac_status" >&5
   11211   (exit "$ac_status"); } &&
   11212          { ac_try='test -s "conftest$ac_exeext"'
   11213   { (eval echo "$as_me:11213: \"$ac_try\"") >&5
   11214   (eval $ac_try) 2>&5
   11215   ac_status=$?
   11216   echo "$as_me:11216: \$? = $ac_status" >&5
   11217   (exit "$ac_status"); }; }; then
   11218   cf_cv_xt_ice_compat=yes
   11219 else
   11220   echo "$as_me: failed program was:" >&5
   11221 cat "conftest.$ac_ext" >&5
   11222 cf_cv_xt_ice_compat=no
   11223 fi
   11224 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   11225 fi
   11226 echo "$as_me:11226: result: $cf_cv_xt_ice_compat" >&5
   11227 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
   11228 
   11229 	if test "$cf_cv_xt_ice_compat" = no
   11230 	then
   11231 		# workaround for broken ".pc" files used for X Toolkit.
   11232 		case "x$X_PRE_LIBS" in
   11233 		(*-lICE*)
   11234 			case "x$LIBS" in
   11235 			(*-lICE*)
   11236 				;;
   11237 			(*)
   11238 				test -n "$verbose" && echo "	work around broken ICE dependency" 1>&6
   11239 
   11240 echo "${as_me:-configure}:11240: testing work around broken ICE dependency ..." 1>&5
   11241 
   11242 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then
   11243 	test -n "$verbose" && echo "	found package ice" 1>&6
   11244 
   11245 echo "${as_me:-configure}:11245: testing found package ice ..." 1>&5
   11246 
   11247 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`"
   11248 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "ice" 2>/dev/null`"
   11249 	test -n "$verbose" && echo "	package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
   11250 
   11251 echo "${as_me:-configure}:11251: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   11252 
   11253 	test -n "$verbose" && echo "	package ice LIBS: $cf_pkgconfig_libs" 1>&6
   11254 
   11255 echo "${as_me:-configure}:11255: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
   11256 
   11257 cf_fix_cppflags=no
   11258 cf_new_cflags=
   11259 cf_new_cppflags=
   11260 cf_new_extra_cppflags=
   11261 
   11262 for cf_add_cflags in $cf_pkgconfig_incs
   11263 do
   11264 case "$cf_fix_cppflags" in
   11265 (no)
   11266 	case "$cf_add_cflags" in
   11267 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   11268 		case "$cf_add_cflags" in
   11269 		(-D*)
   11270 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   11271 
   11272 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   11273 				&& test -z "${cf_tst_cflags}" \
   11274 				&& cf_fix_cppflags=yes
   11275 
   11276 			if test "$cf_fix_cppflags" = yes ; then
   11277 
   11278 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11279 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11280 
   11281 				continue
   11282 			elif test "${cf_tst_cflags}" = "\"'" ; then
   11283 
   11284 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11285 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11286 
   11287 				continue
   11288 			fi
   11289 			;;
   11290 		esac
   11291 		case "$CPPFLAGS" in
   11292 		(*$cf_add_cflags)
   11293 			;;
   11294 		(*)
   11295 			case "$cf_add_cflags" in
   11296 			(-D*)
   11297 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   11298 
   11299 CPPFLAGS=`echo "$CPPFLAGS" | \
   11300 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   11301 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   11302 
   11303 				;;
   11304 			esac
   11305 
   11306 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   11307 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   11308 
   11309 			;;
   11310 		esac
   11311 		;;
   11312 	(*)
   11313 
   11314 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   11315 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   11316 
   11317 		;;
   11318 	esac
   11319 	;;
   11320 (yes)
   11321 
   11322 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11323 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11324 
   11325 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   11326 
   11327 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   11328 		&& test -z "${cf_tst_cflags}" \
   11329 		&& cf_fix_cppflags=no
   11330 	;;
   11331 esac
   11332 done
   11333 
   11334 if test -n "$cf_new_cflags" ; then
   11335 
   11336 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   11337 	CFLAGS="${CFLAGS}$cf_new_cflags"
   11338 
   11339 fi
   11340 
   11341 if test -n "$cf_new_cppflags" ; then
   11342 
   11343 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   11344 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   11345 
   11346 fi
   11347 
   11348 if test -n "$cf_new_extra_cppflags" ; then
   11349 
   11350 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   11351 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   11352 
   11353 fi
   11354 
   11355 cf_add_libs="$LIBS"
   11356 # reverse order
   11357 cf_add_0lib=
   11358 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   11359 # filter duplicates
   11360 for cf_add_1lib in $cf_add_0lib; do
   11361 	for cf_add_2lib in $cf_add_libs; do
   11362 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   11363 			cf_add_1lib=
   11364 			break
   11365 		fi
   11366 	done
   11367 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   11368 done
   11369 LIBS="$cf_add_libs"
   11370 
   11371 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then
   11372 	test -n "$verbose" && echo "	found package sm" 1>&6
   11373 
   11374 echo "${as_me:-configure}:11374: testing found package sm ..." 1>&5
   11375 
   11376 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`"
   11377 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "sm" 2>/dev/null`"
   11378 	test -n "$verbose" && echo "	package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
   11379 
   11380 echo "${as_me:-configure}:11380: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   11381 
   11382 	test -n "$verbose" && echo "	package sm LIBS: $cf_pkgconfig_libs" 1>&6
   11383 
   11384 echo "${as_me:-configure}:11384: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
   11385 
   11386 cf_fix_cppflags=no
   11387 cf_new_cflags=
   11388 cf_new_cppflags=
   11389 cf_new_extra_cppflags=
   11390 
   11391 for cf_add_cflags in $cf_pkgconfig_incs
   11392 do
   11393 case "$cf_fix_cppflags" in
   11394 (no)
   11395 	case "$cf_add_cflags" in
   11396 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   11397 		case "$cf_add_cflags" in
   11398 		(-D*)
   11399 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   11400 
   11401 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   11402 				&& test -z "${cf_tst_cflags}" \
   11403 				&& cf_fix_cppflags=yes
   11404 
   11405 			if test "$cf_fix_cppflags" = yes ; then
   11406 
   11407 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11408 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11409 
   11410 				continue
   11411 			elif test "${cf_tst_cflags}" = "\"'" ; then
   11412 
   11413 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11414 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11415 
   11416 				continue
   11417 			fi
   11418 			;;
   11419 		esac
   11420 		case "$CPPFLAGS" in
   11421 		(*$cf_add_cflags)
   11422 			;;
   11423 		(*)
   11424 			case "$cf_add_cflags" in
   11425 			(-D*)
   11426 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   11427 
   11428 CPPFLAGS=`echo "$CPPFLAGS" | \
   11429 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   11430 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   11431 
   11432 				;;
   11433 			esac
   11434 
   11435 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   11436 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   11437 
   11438 			;;
   11439 		esac
   11440 		;;
   11441 	(*)
   11442 
   11443 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   11444 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   11445 
   11446 		;;
   11447 	esac
   11448 	;;
   11449 (yes)
   11450 
   11451 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11452 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11453 
   11454 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   11455 
   11456 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   11457 		&& test -z "${cf_tst_cflags}" \
   11458 		&& cf_fix_cppflags=no
   11459 	;;
   11460 esac
   11461 done
   11462 
   11463 if test -n "$cf_new_cflags" ; then
   11464 
   11465 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   11466 	CFLAGS="${CFLAGS}$cf_new_cflags"
   11467 
   11468 fi
   11469 
   11470 if test -n "$cf_new_cppflags" ; then
   11471 
   11472 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   11473 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   11474 
   11475 fi
   11476 
   11477 if test -n "$cf_new_extra_cppflags" ; then
   11478 
   11479 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   11480 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   11481 
   11482 fi
   11483 
   11484 cf_add_libs="$LIBS"
   11485 # reverse order
   11486 cf_add_0lib=
   11487 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   11488 # filter duplicates
   11489 for cf_add_1lib in $cf_add_0lib; do
   11490 	for cf_add_2lib in $cf_add_libs; do
   11491 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   11492 			cf_add_1lib=
   11493 			break
   11494 		fi
   11495 	done
   11496 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   11497 done
   11498 LIBS="$cf_add_libs"
   11499 
   11500 	:
   11501 else
   11502 	cf_pkgconfig_incs=
   11503 	cf_pkgconfig_libs=
   11504 	:
   11505 fi
   11506 
   11507 else
   11508 	cf_pkgconfig_incs=
   11509 	cf_pkgconfig_libs=
   11510 
   11511 test -n "$verbose" && echo "	...before $LIBS" 1>&6
   11512 
   11513 echo "${as_me:-configure}:11513: testing ...before $LIBS ..." 1>&5
   11514 
   11515 LIBS=`echo "$LIBS" | sed -e "s/[ 	][ 	]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's%  % %g'`
   11516 test -n "$verbose" && echo "	...after  $LIBS" 1>&6
   11517 
   11518 echo "${as_me:-configure}:11518: testing ...after  $LIBS ..." 1>&5
   11519 
   11520 fi
   11521 
   11522 				;;
   11523 			esac
   11524 			;;
   11525 		esac
   11526 	fi
   11527 
   11528 	cf_have_X_LIBS=yes
   11529 
   11530 else
   11531 	cf_pkgconfig_incs=
   11532 	cf_pkgconfig_libs=
   11533 
   11534 	LDFLAGS="$X_LIBS $LDFLAGS"
   11535 
   11536 test -n "$verbose" && echo "	checking additions to CFLAGS" 1>&6
   11537 
   11538 echo "${as_me:-configure}:11538: testing checking additions to CFLAGS ..." 1>&5
   11539 
   11540 cf_check_cflags="$CFLAGS"
   11541 cf_check_cppflags="$CPPFLAGS"
   11542 
   11543 cf_fix_cppflags=no
   11544 cf_new_cflags=
   11545 cf_new_cppflags=
   11546 cf_new_extra_cppflags=
   11547 
   11548 for cf_add_cflags in $X_CFLAGS
   11549 do
   11550 case "$cf_fix_cppflags" in
   11551 (no)
   11552 	case "$cf_add_cflags" in
   11553 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   11554 		case "$cf_add_cflags" in
   11555 		(-D*)
   11556 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   11557 
   11558 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   11559 				&& test -z "${cf_tst_cflags}" \
   11560 				&& cf_fix_cppflags=yes
   11561 
   11562 			if test "$cf_fix_cppflags" = yes ; then
   11563 
   11564 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11565 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11566 
   11567 				continue
   11568 			elif test "${cf_tst_cflags}" = "\"'" ; then
   11569 
   11570 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11571 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11572 
   11573 				continue
   11574 			fi
   11575 			;;
   11576 		esac
   11577 		case "$CPPFLAGS" in
   11578 		(*$cf_add_cflags)
   11579 			;;
   11580 		(*)
   11581 			case "$cf_add_cflags" in
   11582 			(-D*)
   11583 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   11584 
   11585 CPPFLAGS=`echo "$CPPFLAGS" | \
   11586 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   11587 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   11588 
   11589 				;;
   11590 			esac
   11591 
   11592 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   11593 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   11594 
   11595 			;;
   11596 		esac
   11597 		;;
   11598 	(*)
   11599 
   11600 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   11601 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   11602 
   11603 		;;
   11604 	esac
   11605 	;;
   11606 (yes)
   11607 
   11608 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11609 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11610 
   11611 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   11612 
   11613 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   11614 		&& test -z "${cf_tst_cflags}" \
   11615 		&& cf_fix_cppflags=no
   11616 	;;
   11617 esac
   11618 done
   11619 
   11620 if test -n "$cf_new_cflags" ; then
   11621 	test -n "$verbose" && echo "	add to \$CFLAGS $cf_new_cflags" 1>&6
   11622 
   11623 echo "${as_me:-configure}:11623: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
   11624 
   11625 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   11626 	CFLAGS="${CFLAGS}$cf_new_cflags"
   11627 
   11628 fi
   11629 
   11630 if test -n "$cf_new_cppflags" ; then
   11631 	test -n "$verbose" && echo "	add to \$CPPFLAGS $cf_new_cppflags" 1>&6
   11632 
   11633 echo "${as_me:-configure}:11633: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
   11634 
   11635 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   11636 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   11637 
   11638 fi
   11639 
   11640 if test -n "$cf_new_extra_cppflags" ; then
   11641 	test -n "$verbose" && echo "	add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
   11642 
   11643 echo "${as_me:-configure}:11643: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
   11644 
   11645 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   11646 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   11647 
   11648 fi
   11649 
   11650 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
   11651 cat >"conftest.$ac_ext" <<_ACEOF
   11652 #line 11652 "configure"
   11653 #include "confdefs.h"
   11654 #include <stdio.h>
   11655 int
   11656 main (void)
   11657 {
   11658 printf("Hello world");
   11659   ;
   11660   return 0;
   11661 }
   11662 _ACEOF
   11663 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   11664 if { (eval echo "$as_me:11664: \"$ac_link\"") >&5
   11665   (eval $ac_link) 2>&5
   11666   ac_status=$?
   11667   echo "$as_me:11667: \$? = $ac_status" >&5
   11668   (exit "$ac_status"); } &&
   11669          { ac_try='test -s "conftest$ac_exeext"'
   11670   { (eval echo "$as_me:11670: \"$ac_try\"") >&5
   11671   (eval $ac_try) 2>&5
   11672   ac_status=$?
   11673   echo "$as_me:11673: \$? = $ac_status" >&5
   11674   (exit "$ac_status"); }; }; then
   11675   :
   11676 else
   11677   echo "$as_me: failed program was:" >&5
   11678 cat "conftest.$ac_ext" >&5
   11679 test -n "$verbose" && echo "	test-compile failed.  Undoing change to \$CFLAGS" 1>&6
   11680 
   11681 echo "${as_me:-configure}:11681: testing test-compile failed.  Undoing change to \$CFLAGS ..." 1>&5
   11682 
   11683 	 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
   11684 		 test -n "$verbose" && echo "	but keeping change to \$CPPFLAGS" 1>&6
   11685 
   11686 echo "${as_me:-configure}:11686: testing but keeping change to \$CPPFLAGS ..." 1>&5
   11687 
   11688 	 fi
   11689 	 CFLAGS="$cf_check_cflags"
   11690 fi
   11691 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   11692 fi
   11693 
   11694 	echo "$as_me:11694: checking for XOpenDisplay" >&5
   11695 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
   11696 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
   11697   echo $ECHO_N "(cached) $ECHO_C" >&6
   11698 else
   11699   cat >"conftest.$ac_ext" <<_ACEOF
   11700 #line 11700 "configure"
   11701 #include "confdefs.h"
   11702 #define XOpenDisplay autoconf_temporary
   11703 #include <limits.h>	/* least-intrusive standard header which defines gcc2 __stub macros */
   11704 #undef XOpenDisplay
   11705 
   11706 #ifdef __cplusplus
   11707 extern "C"
   11708 #endif
   11709 
   11710 /* We use char because int might match the return type of a gcc2
   11711    builtin and then its argument prototype would still apply.  */
   11712 char XOpenDisplay (void);
   11713 
   11714 int
   11715 main (void)
   11716 {
   11717 
   11718 /* The GNU C library defines stubs for functions which it implements
   11719     to always fail with ENOSYS.  Some functions are actually named
   11720     something starting with __ and the normal name is an alias.  */
   11721 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
   11722 #error found stub for XOpenDisplay
   11723 #endif
   11724 
   11725 	return XOpenDisplay ();
   11726   ;
   11727   return 0;
   11728 }
   11729 _ACEOF
   11730 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   11731 if { (eval echo "$as_me:11731: \"$ac_link\"") >&5
   11732   (eval $ac_link) 2>&5
   11733   ac_status=$?
   11734   echo "$as_me:11734: \$? = $ac_status" >&5
   11735   (exit "$ac_status"); } &&
   11736          { ac_try='test -s "conftest$ac_exeext"'
   11737   { (eval echo "$as_me:11737: \"$ac_try\"") >&5
   11738   (eval $ac_try) 2>&5
   11739   ac_status=$?
   11740   echo "$as_me:11740: \$? = $ac_status" >&5
   11741   (exit "$ac_status"); }; }; then
   11742   ac_cv_func_XOpenDisplay=yes
   11743 else
   11744   echo "$as_me: failed program was:" >&5
   11745 cat "conftest.$ac_ext" >&5
   11746 ac_cv_func_XOpenDisplay=no
   11747 fi
   11748 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   11749 fi
   11750 echo "$as_me:11750: result: $ac_cv_func_XOpenDisplay" >&5
   11751 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
   11752 if test "$ac_cv_func_XOpenDisplay" = yes; then
   11753   :
   11754 else
   11755 
   11756 	echo "$as_me:11756: checking for XOpenDisplay in -lX11" >&5
   11757 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
   11758 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
   11759   echo $ECHO_N "(cached) $ECHO_C" >&6
   11760 else
   11761   ac_check_lib_save_LIBS=$LIBS
   11762 LIBS="-lX11  $LIBS"
   11763 cat >"conftest.$ac_ext" <<_ACEOF
   11764 #line 11764 "configure"
   11765 #include "confdefs.h"
   11766 
   11767 /* Override any gcc2 internal prototype to avoid an error.  */
   11768 #ifdef __cplusplus
   11769 extern "C"
   11770 #endif
   11771 /* We use char because int might match the return type of a gcc2
   11772    builtin and then its argument prototype would still apply.  */
   11773 char XOpenDisplay ();
   11774 int
   11775 main (void)
   11776 {
   11777 XOpenDisplay ();
   11778   ;
   11779   return 0;
   11780 }
   11781 _ACEOF
   11782 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   11783 if { (eval echo "$as_me:11783: \"$ac_link\"") >&5
   11784   (eval $ac_link) 2>&5
   11785   ac_status=$?
   11786   echo "$as_me:11786: \$? = $ac_status" >&5
   11787   (exit "$ac_status"); } &&
   11788          { ac_try='test -s "conftest$ac_exeext"'
   11789   { (eval echo "$as_me:11789: \"$ac_try\"") >&5
   11790   (eval $ac_try) 2>&5
   11791   ac_status=$?
   11792   echo "$as_me:11792: \$? = $ac_status" >&5
   11793   (exit "$ac_status"); }; }; then
   11794   ac_cv_lib_X11_XOpenDisplay=yes
   11795 else
   11796   echo "$as_me: failed program was:" >&5
   11797 cat "conftest.$ac_ext" >&5
   11798 ac_cv_lib_X11_XOpenDisplay=no
   11799 fi
   11800 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   11801 LIBS=$ac_check_lib_save_LIBS
   11802 fi
   11803 echo "$as_me:11803: result: $ac_cv_lib_X11_XOpenDisplay" >&5
   11804 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
   11805 if test "$ac_cv_lib_X11_XOpenDisplay" = yes; then
   11806 
   11807 cf_add_libs="$LIBS"
   11808 # reverse order
   11809 cf_add_0lib=
   11810 for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   11811 # filter duplicates
   11812 for cf_add_1lib in $cf_add_0lib; do
   11813 	for cf_add_2lib in $cf_add_libs; do
   11814 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   11815 			cf_add_1lib=
   11816 			break
   11817 		fi
   11818 	done
   11819 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   11820 done
   11821 LIBS="$cf_add_libs"
   11822 
   11823 fi
   11824 
   11825 fi
   11826 
   11827 	echo "$as_me:11827: checking for XtAppInitialize" >&5
   11828 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
   11829 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
   11830   echo $ECHO_N "(cached) $ECHO_C" >&6
   11831 else
   11832   cat >"conftest.$ac_ext" <<_ACEOF
   11833 #line 11833 "configure"
   11834 #include "confdefs.h"
   11835 #define XtAppInitialize autoconf_temporary
   11836 #include <limits.h>	/* least-intrusive standard header which defines gcc2 __stub macros */
   11837 #undef XtAppInitialize
   11838 
   11839 #ifdef __cplusplus
   11840 extern "C"
   11841 #endif
   11842 
   11843 /* We use char because int might match the return type of a gcc2
   11844    builtin and then its argument prototype would still apply.  */
   11845 char XtAppInitialize (void);
   11846 
   11847 int
   11848 main (void)
   11849 {
   11850 
   11851 /* The GNU C library defines stubs for functions which it implements
   11852     to always fail with ENOSYS.  Some functions are actually named
   11853     something starting with __ and the normal name is an alias.  */
   11854 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
   11855 #error found stub for XtAppInitialize
   11856 #endif
   11857 
   11858 	return XtAppInitialize ();
   11859   ;
   11860   return 0;
   11861 }
   11862 _ACEOF
   11863 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   11864 if { (eval echo "$as_me:11864: \"$ac_link\"") >&5
   11865   (eval $ac_link) 2>&5
   11866   ac_status=$?
   11867   echo "$as_me:11867: \$? = $ac_status" >&5
   11868   (exit "$ac_status"); } &&
   11869          { ac_try='test -s "conftest$ac_exeext"'
   11870   { (eval echo "$as_me:11870: \"$ac_try\"") >&5
   11871   (eval $ac_try) 2>&5
   11872   ac_status=$?
   11873   echo "$as_me:11873: \$? = $ac_status" >&5
   11874   (exit "$ac_status"); }; }; then
   11875   ac_cv_func_XtAppInitialize=yes
   11876 else
   11877   echo "$as_me: failed program was:" >&5
   11878 cat "conftest.$ac_ext" >&5
   11879 ac_cv_func_XtAppInitialize=no
   11880 fi
   11881 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   11882 fi
   11883 echo "$as_me:11883: result: $ac_cv_func_XtAppInitialize" >&5
   11884 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
   11885 if test "$ac_cv_func_XtAppInitialize" = yes; then
   11886   :
   11887 else
   11888 
   11889 	echo "$as_me:11889: checking for XtAppInitialize in -lXt" >&5
   11890 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
   11891 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
   11892   echo $ECHO_N "(cached) $ECHO_C" >&6
   11893 else
   11894   ac_check_lib_save_LIBS=$LIBS
   11895 LIBS="-lXt  $LIBS"
   11896 cat >"conftest.$ac_ext" <<_ACEOF
   11897 #line 11897 "configure"
   11898 #include "confdefs.h"
   11899 
   11900 /* Override any gcc2 internal prototype to avoid an error.  */
   11901 #ifdef __cplusplus
   11902 extern "C"
   11903 #endif
   11904 /* We use char because int might match the return type of a gcc2
   11905    builtin and then its argument prototype would still apply.  */
   11906 char XtAppInitialize ();
   11907 int
   11908 main (void)
   11909 {
   11910 XtAppInitialize ();
   11911   ;
   11912   return 0;
   11913 }
   11914 _ACEOF
   11915 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   11916 if { (eval echo "$as_me:11916: \"$ac_link\"") >&5
   11917   (eval $ac_link) 2>&5
   11918   ac_status=$?
   11919   echo "$as_me:11919: \$? = $ac_status" >&5
   11920   (exit "$ac_status"); } &&
   11921          { ac_try='test -s "conftest$ac_exeext"'
   11922   { (eval echo "$as_me:11922: \"$ac_try\"") >&5
   11923   (eval $ac_try) 2>&5
   11924   ac_status=$?
   11925   echo "$as_me:11925: \$? = $ac_status" >&5
   11926   (exit "$ac_status"); }; }; then
   11927   ac_cv_lib_Xt_XtAppInitialize=yes
   11928 else
   11929   echo "$as_me: failed program was:" >&5
   11930 cat "conftest.$ac_ext" >&5
   11931 ac_cv_lib_Xt_XtAppInitialize=no
   11932 fi
   11933 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   11934 LIBS=$ac_check_lib_save_LIBS
   11935 fi
   11936 echo "$as_me:11936: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
   11937 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
   11938 if test "$ac_cv_lib_Xt_XtAppInitialize" = yes; then
   11939 
   11940 cat >>confdefs.h <<\EOF
   11941 #define HAVE_LIBXT 1
   11942 EOF
   11943 
   11944 		 cf_have_X_LIBS=Xt
   11945 		 LIBS="-lXt $LIBS"
   11946 fi
   11947 
   11948 fi
   11949 
   11950 fi
   11951 
   11952 if test "$cf_have_X_LIBS" = no ; then
   11953 	{ echo "$as_me:11953: WARNING: Unable to successfully link X Toolkit library (-lXt) with
   11954 test program.  You will have to check and add the proper libraries by hand
   11955 to makefile." >&5
   11956 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
   11957 test program.  You will have to check and add the proper libraries by hand
   11958 to makefile." >&2;}
   11959 fi
   11960 
   11961 for ac_header in \
   11962 	X11/DECkeysym.h \
   11963 	X11/Sunkeysym.h \
   11964 	X11/XF86keysym.h \
   11965 	X11/XKBlib.h \
   11966 	X11/TranslateI.h \
   11967 	X11/Xpoll.h \
   11968 	X11/extensions/XKB.h \
   11969 
   11970 do
   11971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   11972 echo "$as_me:11972: checking for $ac_header" >&5
   11973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   11974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   11975   echo $ECHO_N "(cached) $ECHO_C" >&6
   11976 else
   11977   cat >"conftest.$ac_ext" <<_ACEOF
   11978 #line 11978 "configure"
   11979 #include "confdefs.h"
   11980 #include <$ac_header>
   11981 _ACEOF
   11982 if { (eval echo "$as_me:11982: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   11983   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   11984   ac_status=$?
   11985   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   11986   rm -f conftest.er1
   11987   cat conftest.err >&5
   11988   echo "$as_me:11988: \$? = $ac_status" >&5
   11989   (exit "$ac_status"); } >/dev/null; then
   11990   if test -s conftest.err; then
   11991     ac_cpp_err=$ac_c_preproc_warn_flag
   11992   else
   11993     ac_cpp_err=
   11994   fi
   11995 else
   11996   ac_cpp_err=yes
   11997 fi
   11998 if test -z "$ac_cpp_err"; then
   11999   eval "$as_ac_Header=yes"
   12000 else
   12001   echo "$as_me: failed program was:" >&5
   12002   cat "conftest.$ac_ext" >&5
   12003   eval "$as_ac_Header=no"
   12004 fi
   12005 rm -f conftest.err "conftest.$ac_ext"
   12006 fi
   12007 echo "$as_me:12007: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
   12008 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
   12009 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
   12010   cat >>confdefs.h <<EOF
   12011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   12012 EOF
   12013 
   12014 fi
   12015 done
   12016 
   12017 ICON_SUFFIX=.xbm
   12018 
   12019 cf_save_cppflags="${CPPFLAGS}"
   12020 cf_save_ldflags="${LDFLAGS}"
   12021 
   12022 echo "$as_me:12022: checking if you want to use the Xpm library for colored icon" >&5
   12023 echo $ECHO_N "checking if you want to use the Xpm library for colored icon... $ECHO_C" >&6
   12024 
   12025 # Check whether --with-xpm or --without-xpm was given.
   12026 if test "${with_xpm+set}" = set; then
   12027   withval="$with_xpm"
   12028   cf_Xpm_library="$withval"
   12029 else
   12030   cf_Xpm_library=yes
   12031 fi;
   12032 echo "$as_me:12032: result: $cf_Xpm_library" >&5
   12033 echo "${ECHO_T}$cf_Xpm_library" >&6
   12034 
   12035 if test "$cf_Xpm_library" != no ; then
   12036     if test "$cf_Xpm_library" != yes ; then
   12037 	CPPFLAGS="$CPPFLAGS -I$withval/include"
   12038 	LDFLAGS="$LDFLAGS -L$withval/lib"
   12039     fi
   12040     echo "$as_me:12040: checking for X11/xpm.h" >&5
   12041 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
   12042 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
   12043   echo $ECHO_N "(cached) $ECHO_C" >&6
   12044 else
   12045   cat >"conftest.$ac_ext" <<_ACEOF
   12046 #line 12046 "configure"
   12047 #include "confdefs.h"
   12048 #include <X11/xpm.h>
   12049 _ACEOF
   12050 if { (eval echo "$as_me:12050: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   12051   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   12052   ac_status=$?
   12053   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   12054   rm -f conftest.er1
   12055   cat conftest.err >&5
   12056   echo "$as_me:12056: \$? = $ac_status" >&5
   12057   (exit "$ac_status"); } >/dev/null; then
   12058   if test -s conftest.err; then
   12059     ac_cpp_err=$ac_c_preproc_warn_flag
   12060   else
   12061     ac_cpp_err=
   12062   fi
   12063 else
   12064   ac_cpp_err=yes
   12065 fi
   12066 if test -z "$ac_cpp_err"; then
   12067   ac_cv_header_X11_xpm_h=yes
   12068 else
   12069   echo "$as_me: failed program was:" >&5
   12070   cat "conftest.$ac_ext" >&5
   12071   ac_cv_header_X11_xpm_h=no
   12072 fi
   12073 rm -f conftest.err "conftest.$ac_ext"
   12074 fi
   12075 echo "$as_me:12075: result: $ac_cv_header_X11_xpm_h" >&5
   12076 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
   12077 if test "$ac_cv_header_X11_xpm_h" = yes; then
   12078 
   12079 	echo "$as_me:12079: checking for XpmCreatePixmapFromData in -lXpm" >&5
   12080 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
   12081 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
   12082   echo $ECHO_N "(cached) $ECHO_C" >&6
   12083 else
   12084   ac_check_lib_save_LIBS=$LIBS
   12085 LIBS="-lXpm -lX11 $X_LIBS $LIBS"
   12086 cat >"conftest.$ac_ext" <<_ACEOF
   12087 #line 12087 "configure"
   12088 #include "confdefs.h"
   12089 
   12090 /* Override any gcc2 internal prototype to avoid an error.  */
   12091 #ifdef __cplusplus
   12092 extern "C"
   12093 #endif
   12094 /* We use char because int might match the return type of a gcc2
   12095    builtin and then its argument prototype would still apply.  */
   12096 char XpmCreatePixmapFromData ();
   12097 int
   12098 main (void)
   12099 {
   12100 XpmCreatePixmapFromData ();
   12101   ;
   12102   return 0;
   12103 }
   12104 _ACEOF
   12105 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   12106 if { (eval echo "$as_me:12106: \"$ac_link\"") >&5
   12107   (eval $ac_link) 2>&5
   12108   ac_status=$?
   12109   echo "$as_me:12109: \$? = $ac_status" >&5
   12110   (exit "$ac_status"); } &&
   12111          { ac_try='test -s "conftest$ac_exeext"'
   12112   { (eval echo "$as_me:12112: \"$ac_try\"") >&5
   12113   (eval $ac_try) 2>&5
   12114   ac_status=$?
   12115   echo "$as_me:12115: \$? = $ac_status" >&5
   12116   (exit "$ac_status"); }; }; then
   12117   ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
   12118 else
   12119   echo "$as_me: failed program was:" >&5
   12120 cat "conftest.$ac_ext" >&5
   12121 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
   12122 fi
   12123 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   12124 LIBS=$ac_check_lib_save_LIBS
   12125 fi
   12126 echo "$as_me:12126: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
   12127 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
   12128 if test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = yes; then
   12129 
   12130 cat >>confdefs.h <<\EOF
   12131 #define HAVE_LIBXPM 1
   12132 EOF
   12133 
   12134 	    ICON_SUFFIX=.xpm
   12135 	    LIBS="-lXpm $LIBS"
   12136 else
   12137   CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}"
   12138 fi
   12139 
   12140 else
   12141   CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}"
   12142 fi
   12143 
   12144 fi
   12145 
   12146 echo "$as_me:12146: checking if you want to use the Xinerama extension" >&5
   12147 echo $ECHO_N "checking if you want to use the Xinerama extension... $ECHO_C" >&6
   12148 
   12149 # Check whether --with-xinerama or --without-xinerama was given.
   12150 if test "${with_xinerama+set}" = set; then
   12151   withval="$with_xinerama"
   12152   cf_with_xinerama="$withval"
   12153 else
   12154   cf_with_xinerama=yes
   12155 fi;
   12156 echo "$as_me:12156: result: $cf_with_xinerama" >&5
   12157 echo "${ECHO_T}$cf_with_xinerama" >&6
   12158 if test "$cf_with_xinerama" = yes; then
   12159 
   12160 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xinerama"; then
   12161 	test -n "$verbose" && echo "	found package xinerama" 1>&6
   12162 
   12163 echo "${as_me:-configure}:12163: testing found package xinerama ..." 1>&5
   12164 
   12165 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xinerama" 2>/dev/null`"
   12166 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "xinerama" 2>/dev/null`"
   12167 	test -n "$verbose" && echo "	package xinerama CFLAGS: $cf_pkgconfig_incs" 1>&6
   12168 
   12169 echo "${as_me:-configure}:12169: testing package xinerama CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   12170 
   12171 	test -n "$verbose" && echo "	package xinerama LIBS: $cf_pkgconfig_libs" 1>&6
   12172 
   12173 echo "${as_me:-configure}:12173: testing package xinerama LIBS: $cf_pkgconfig_libs ..." 1>&5
   12174 
   12175 cf_fix_cppflags=no
   12176 cf_new_cflags=
   12177 cf_new_cppflags=
   12178 cf_new_extra_cppflags=
   12179 
   12180 for cf_add_cflags in $cf_pkgconfig_incs
   12181 do
   12182 case "$cf_fix_cppflags" in
   12183 (no)
   12184 	case "$cf_add_cflags" in
   12185 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   12186 		case "$cf_add_cflags" in
   12187 		(-D*)
   12188 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   12189 
   12190 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   12191 				&& test -z "${cf_tst_cflags}" \
   12192 				&& cf_fix_cppflags=yes
   12193 
   12194 			if test "$cf_fix_cppflags" = yes ; then
   12195 
   12196 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12197 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12198 
   12199 				continue
   12200 			elif test "${cf_tst_cflags}" = "\"'" ; then
   12201 
   12202 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12203 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12204 
   12205 				continue
   12206 			fi
   12207 			;;
   12208 		esac
   12209 		case "$CPPFLAGS" in
   12210 		(*$cf_add_cflags)
   12211 			;;
   12212 		(*)
   12213 			case "$cf_add_cflags" in
   12214 			(-D*)
   12215 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   12216 
   12217 CPPFLAGS=`echo "$CPPFLAGS" | \
   12218 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   12219 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   12220 
   12221 				;;
   12222 			esac
   12223 
   12224 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   12225 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   12226 
   12227 			;;
   12228 		esac
   12229 		;;
   12230 	(*)
   12231 
   12232 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   12233 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   12234 
   12235 		;;
   12236 	esac
   12237 	;;
   12238 (yes)
   12239 
   12240 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12241 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12242 
   12243 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   12244 
   12245 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   12246 		&& test -z "${cf_tst_cflags}" \
   12247 		&& cf_fix_cppflags=no
   12248 	;;
   12249 esac
   12250 done
   12251 
   12252 if test -n "$cf_new_cflags" ; then
   12253 
   12254 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   12255 	CFLAGS="${CFLAGS}$cf_new_cflags"
   12256 
   12257 fi
   12258 
   12259 if test -n "$cf_new_cppflags" ; then
   12260 
   12261 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   12262 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   12263 
   12264 fi
   12265 
   12266 if test -n "$cf_new_extra_cppflags" ; then
   12267 
   12268 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   12269 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   12270 
   12271 fi
   12272 
   12273 cf_add_libs="$LIBS"
   12274 # reverse order
   12275 cf_add_0lib=
   12276 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   12277 # filter duplicates
   12278 for cf_add_1lib in $cf_add_0lib; do
   12279 	for cf_add_2lib in $cf_add_libs; do
   12280 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   12281 			cf_add_1lib=
   12282 			break
   12283 		fi
   12284 	done
   12285 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   12286 done
   12287 LIBS="$cf_add_libs"
   12288 
   12289 	cat >>confdefs.h <<\EOF
   12290 #define HAVE_X11_EXTENSIONS_XINERAMA_H 1
   12291 EOF
   12292 
   12293 else
   12294 	cf_pkgconfig_incs=
   12295 	cf_pkgconfig_libs=
   12296 
   12297 	echo "$as_me:12297: checking for XineramaQueryScreens in -lXinerama" >&5
   12298 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6
   12299 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
   12300   echo $ECHO_N "(cached) $ECHO_C" >&6
   12301 else
   12302   ac_check_lib_save_LIBS=$LIBS
   12303 LIBS="-lXinerama  $LIBS"
   12304 cat >"conftest.$ac_ext" <<_ACEOF
   12305 #line 12305 "configure"
   12306 #include "confdefs.h"
   12307 
   12308 /* Override any gcc2 internal prototype to avoid an error.  */
   12309 #ifdef __cplusplus
   12310 extern "C"
   12311 #endif
   12312 /* We use char because int might match the return type of a gcc2
   12313    builtin and then its argument prototype would still apply.  */
   12314 char XineramaQueryScreens ();
   12315 int
   12316 main (void)
   12317 {
   12318 XineramaQueryScreens ();
   12319   ;
   12320   return 0;
   12321 }
   12322 _ACEOF
   12323 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   12324 if { (eval echo "$as_me:12324: \"$ac_link\"") >&5
   12325   (eval $ac_link) 2>&5
   12326   ac_status=$?
   12327   echo "$as_me:12327: \$? = $ac_status" >&5
   12328   (exit "$ac_status"); } &&
   12329          { ac_try='test -s "conftest$ac_exeext"'
   12330   { (eval echo "$as_me:12330: \"$ac_try\"") >&5
   12331   (eval $ac_try) 2>&5
   12332   ac_status=$?
   12333   echo "$as_me:12333: \$? = $ac_status" >&5
   12334   (exit "$ac_status"); }; }; then
   12335   ac_cv_lib_Xinerama_XineramaQueryScreens=yes
   12336 else
   12337   echo "$as_me: failed program was:" >&5
   12338 cat "conftest.$ac_ext" >&5
   12339 ac_cv_lib_Xinerama_XineramaQueryScreens=no
   12340 fi
   12341 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   12342 LIBS=$ac_check_lib_save_LIBS
   12343 fi
   12344 echo "$as_me:12344: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
   12345 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6
   12346 if test "$ac_cv_lib_Xinerama_XineramaQueryScreens" = yes; then
   12347 
   12348 cf_add_libs="$LIBS"
   12349 # reverse order
   12350 cf_add_0lib=
   12351 for cf_add_1lib in -lXinerama; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   12352 # filter duplicates
   12353 for cf_add_1lib in $cf_add_0lib; do
   12354 	for cf_add_2lib in $cf_add_libs; do
   12355 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   12356 			cf_add_1lib=
   12357 			break
   12358 		fi
   12359 	done
   12360 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   12361 done
   12362 LIBS="$cf_add_libs"
   12363 
   12364 for ac_header in \
   12365 			X11/extensions/Xinerama.h \
   12366 
   12367 do
   12368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   12369 echo "$as_me:12369: checking for $ac_header" >&5
   12370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   12371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   12372   echo $ECHO_N "(cached) $ECHO_C" >&6
   12373 else
   12374   cat >"conftest.$ac_ext" <<_ACEOF
   12375 #line 12375 "configure"
   12376 #include "confdefs.h"
   12377 #include <$ac_header>
   12378 _ACEOF
   12379 if { (eval echo "$as_me:12379: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   12380   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   12381   ac_status=$?
   12382   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   12383   rm -f conftest.er1
   12384   cat conftest.err >&5
   12385   echo "$as_me:12385: \$? = $ac_status" >&5
   12386   (exit "$ac_status"); } >/dev/null; then
   12387   if test -s conftest.err; then
   12388     ac_cpp_err=$ac_c_preproc_warn_flag
   12389   else
   12390     ac_cpp_err=
   12391   fi
   12392 else
   12393   ac_cpp_err=yes
   12394 fi
   12395 if test -z "$ac_cpp_err"; then
   12396   eval "$as_ac_Header=yes"
   12397 else
   12398   echo "$as_me: failed program was:" >&5
   12399   cat "conftest.$ac_ext" >&5
   12400   eval "$as_ac_Header=no"
   12401 fi
   12402 rm -f conftest.err "conftest.$ac_ext"
   12403 fi
   12404 echo "$as_me:12404: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
   12405 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
   12406 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
   12407   cat >>confdefs.h <<EOF
   12408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   12409 EOF
   12410 
   12411 fi
   12412 done
   12413 
   12414 fi
   12415 
   12416 fi
   12417 
   12418 fi
   12419 
   12420 cf_x_athena=${cf_x_athena:-Xaw}
   12421 
   12422 echo "$as_me:12422: checking if you want to link with Xaw 3d library" >&5
   12423 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
   12424 withval=
   12425 
   12426 # Check whether --with-Xaw3d or --without-Xaw3d was given.
   12427 if test "${with_Xaw3d+set}" = set; then
   12428   withval="$with_Xaw3d"
   12429 
   12430 fi;
   12431 if test "$withval" = yes ; then
   12432 	cf_x_athena=Xaw3d
   12433 	echo "$as_me:12433: result: yes" >&5
   12434 echo "${ECHO_T}yes" >&6
   12435 else
   12436 	echo "$as_me:12436: result: no" >&5
   12437 echo "${ECHO_T}no" >&6
   12438 fi
   12439 
   12440 echo "$as_me:12440: checking if you want to link with Xaw 3d xft library" >&5
   12441 echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6
   12442 withval=
   12443 
   12444 # Check whether --with-Xaw3dxft or --without-Xaw3dxft was given.
   12445 if test "${with_Xaw3dxft+set}" = set; then
   12446   withval="$with_Xaw3dxft"
   12447 
   12448 fi;
   12449 if test "$withval" = yes ; then
   12450 	cf_x_athena=Xaw3dxft
   12451 	echo "$as_me:12451: result: yes" >&5
   12452 echo "${ECHO_T}yes" >&6
   12453 else
   12454 	echo "$as_me:12454: result: no" >&5
   12455 echo "${ECHO_T}no" >&6
   12456 fi
   12457 
   12458 echo "$as_me:12458: checking if you want to link with neXT Athena library" >&5
   12459 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
   12460 withval=
   12461 
   12462 # Check whether --with-neXtaw or --without-neXtaw was given.
   12463 if test "${with_neXtaw+set}" = set; then
   12464   withval="$with_neXtaw"
   12465 
   12466 fi;
   12467 if test "$withval" = yes ; then
   12468 	cf_x_athena=neXtaw
   12469 	echo "$as_me:12469: result: yes" >&5
   12470 echo "${ECHO_T}yes" >&6
   12471 else
   12472 	echo "$as_me:12472: result: no" >&5
   12473 echo "${ECHO_T}no" >&6
   12474 fi
   12475 
   12476 echo "$as_me:12476: checking if you want to link with Athena-Plus library" >&5
   12477 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
   12478 withval=
   12479 
   12480 # Check whether --with-XawPlus or --without-XawPlus was given.
   12481 if test "${with_XawPlus+set}" = set; then
   12482   withval="$with_XawPlus"
   12483 
   12484 fi;
   12485 if test "$withval" = yes ; then
   12486 	cf_x_athena=XawPlus
   12487 	echo "$as_me:12487: result: yes" >&5
   12488 echo "${ECHO_T}yes" >&6
   12489 else
   12490 	echo "$as_me:12490: result: no" >&5
   12491 echo "${ECHO_T}no" >&6
   12492 fi
   12493 
   12494 cf_x_athena_lib=""
   12495 
   12496 if test "$PKG_CONFIG" != none ; then
   12497 	cf_athena_list=
   12498 	test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
   12499 	for cf_athena_pkg in \
   12500 		$cf_athena_list \
   12501 		${cf_x_athena} \
   12502 		${cf_x_athena}-devel \
   12503 		lib${cf_x_athena} \
   12504 		lib${cf_x_athena}-devel
   12505 	do
   12506 
   12507 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_athena_pkg"; then
   12508 	test -n "$verbose" && echo "	found package $cf_athena_pkg" 1>&6
   12509 
   12510 echo "${as_me:-configure}:12510: testing found package $cf_athena_pkg ..." 1>&5
   12511 
   12512 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_athena_pkg" 2>/dev/null`"
   12513 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "$cf_athena_pkg" 2>/dev/null`"
   12514 	test -n "$verbose" && echo "	package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
   12515 
   12516 echo "${as_me:-configure}:12516: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   12517 
   12518 	test -n "$verbose" && echo "	package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
   12519 
   12520 echo "${as_me:-configure}:12520: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
   12521 
   12522 cf_fix_cppflags=no
   12523 cf_new_cflags=
   12524 cf_new_cppflags=
   12525 cf_new_extra_cppflags=
   12526 
   12527 for cf_add_cflags in $cf_pkgconfig_incs
   12528 do
   12529 case "$cf_fix_cppflags" in
   12530 (no)
   12531 	case "$cf_add_cflags" in
   12532 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   12533 		case "$cf_add_cflags" in
   12534 		(-D*)
   12535 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   12536 
   12537 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   12538 				&& test -z "${cf_tst_cflags}" \
   12539 				&& cf_fix_cppflags=yes
   12540 
   12541 			if test "$cf_fix_cppflags" = yes ; then
   12542 
   12543 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12544 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12545 
   12546 				continue
   12547 			elif test "${cf_tst_cflags}" = "\"'" ; then
   12548 
   12549 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12550 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12551 
   12552 				continue
   12553 			fi
   12554 			;;
   12555 		esac
   12556 		case "$CPPFLAGS" in
   12557 		(*$cf_add_cflags)
   12558 			;;
   12559 		(*)
   12560 			case "$cf_add_cflags" in
   12561 			(-D*)
   12562 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   12563 
   12564 CPPFLAGS=`echo "$CPPFLAGS" | \
   12565 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   12566 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   12567 
   12568 				;;
   12569 			esac
   12570 
   12571 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   12572 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   12573 
   12574 			;;
   12575 		esac
   12576 		;;
   12577 	(*)
   12578 
   12579 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   12580 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   12581 
   12582 		;;
   12583 	esac
   12584 	;;
   12585 (yes)
   12586 
   12587 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12588 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12589 
   12590 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   12591 
   12592 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   12593 		&& test -z "${cf_tst_cflags}" \
   12594 		&& cf_fix_cppflags=no
   12595 	;;
   12596 esac
   12597 done
   12598 
   12599 if test -n "$cf_new_cflags" ; then
   12600 
   12601 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   12602 	CFLAGS="${CFLAGS}$cf_new_cflags"
   12603 
   12604 fi
   12605 
   12606 if test -n "$cf_new_cppflags" ; then
   12607 
   12608 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   12609 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   12610 
   12611 fi
   12612 
   12613 if test -n "$cf_new_extra_cppflags" ; then
   12614 
   12615 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   12616 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   12617 
   12618 fi
   12619 
   12620 cf_add_libs="$LIBS"
   12621 # reverse order
   12622 cf_add_0lib=
   12623 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   12624 # filter duplicates
   12625 for cf_add_1lib in $cf_add_0lib; do
   12626 	for cf_add_2lib in $cf_add_libs; do
   12627 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   12628 			cf_add_1lib=
   12629 			break
   12630 		fi
   12631 	done
   12632 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   12633 done
   12634 LIBS="$cf_add_libs"
   12635 
   12636 			cf_x_athena_lib="$cf_pkgconfig_libs"
   12637 
   12638 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   12639 
   12640 			cat >>confdefs.h <<EOF
   12641 #define $cf_x_athena_LIBS 1
   12642 EOF
   12643 
   12644 	for cf_trim_lib in Xmu Xt X11
   12645 	do
   12646 		case "$LIBS" in
   12647 		(*-l$cf_trim_lib\ *-l$cf_trim_lib*)
   12648 			LIBS=`echo "$LIBS " | sed -e 's/  / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
   12649 			test -n "$verbose" && echo "	..trimmed $LIBS" 1>&6
   12650 
   12651 echo "${as_me:-configure}:12651: testing ..trimmed $LIBS ..." 1>&5
   12652 
   12653 			;;
   12654 		esac
   12655 	done
   12656 
   12657 echo "$as_me:12657: checking for usable $cf_x_athena/Xmu package" >&5
   12658 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
   12659 if test "${cf_cv_xaw_compat+set}" = set; then
   12660   echo $ECHO_N "(cached) $ECHO_C" >&6
   12661 else
   12662 
   12663 cat >"conftest.$ac_ext" <<_ACEOF
   12664 #line 12664 "configure"
   12665 #include "confdefs.h"
   12666 
   12667 #include <X11/Xmu/CharSet.h>
   12668 
   12669 int
   12670 main (void)
   12671 {
   12672 
   12673 int check = XmuCompareISOLatin1("big", "small");
   12674 (void)check;
   12675 
   12676   ;
   12677   return 0;
   12678 }
   12679 _ACEOF
   12680 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   12681 if { (eval echo "$as_me:12681: \"$ac_link\"") >&5
   12682   (eval $ac_link) 2>&5
   12683   ac_status=$?
   12684   echo "$as_me:12684: \$? = $ac_status" >&5
   12685   (exit "$ac_status"); } &&
   12686          { ac_try='test -s "conftest$ac_exeext"'
   12687   { (eval echo "$as_me:12687: \"$ac_try\"") >&5
   12688   (eval $ac_try) 2>&5
   12689   ac_status=$?
   12690   echo "$as_me:12690: \$? = $ac_status" >&5
   12691   (exit "$ac_status"); }; }; then
   12692   cf_cv_xaw_compat=yes
   12693 else
   12694   echo "$as_me: failed program was:" >&5
   12695 cat "conftest.$ac_ext" >&5
   12696 cf_cv_xaw_compat=no
   12697 fi
   12698 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   12699 fi
   12700 echo "$as_me:12700: result: $cf_cv_xaw_compat" >&5
   12701 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
   12702 
   12703 			if test "$cf_cv_xaw_compat" = no
   12704 			then
   12705 				# workaround for broken ".pc" files...
   12706 				case "$cf_x_athena_lib" in
   12707 				(*-lXmu*)
   12708 					;;
   12709 				(*)
   12710 					test -n "$verbose" && echo "	work around broken package" 1>&6
   12711 
   12712 echo "${as_me:-configure}:12712: testing work around broken package ..." 1>&5
   12713 
   12714 					cf_save_xmu="$LIBS"
   12715 					cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^  *//' -e 's/ .*//'`
   12716 
   12717 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xmu"; then
   12718 	test -n "$verbose" && echo "	found package xmu" 1>&6
   12719 
   12720 echo "${as_me:-configure}:12720: testing found package xmu ..." 1>&5
   12721 
   12722 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xmu" 2>/dev/null`"
   12723 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "xmu" 2>/dev/null`"
   12724 	test -n "$verbose" && echo "	package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
   12725 
   12726 echo "${as_me:-configure}:12726: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   12727 
   12728 	test -n "$verbose" && echo "	package xmu LIBS: $cf_pkgconfig_libs" 1>&6
   12729 
   12730 echo "${as_me:-configure}:12730: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
   12731 
   12732 cf_fix_cppflags=no
   12733 cf_new_cflags=
   12734 cf_new_cppflags=
   12735 cf_new_extra_cppflags=
   12736 
   12737 for cf_add_cflags in $cf_pkgconfig_incs
   12738 do
   12739 case "$cf_fix_cppflags" in
   12740 (no)
   12741 	case "$cf_add_cflags" in
   12742 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   12743 		case "$cf_add_cflags" in
   12744 		(-D*)
   12745 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   12746 
   12747 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   12748 				&& test -z "${cf_tst_cflags}" \
   12749 				&& cf_fix_cppflags=yes
   12750 
   12751 			if test "$cf_fix_cppflags" = yes ; then
   12752 
   12753 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12754 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12755 
   12756 				continue
   12757 			elif test "${cf_tst_cflags}" = "\"'" ; then
   12758 
   12759 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12760 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12761 
   12762 				continue
   12763 			fi
   12764 			;;
   12765 		esac
   12766 		case "$CPPFLAGS" in
   12767 		(*$cf_add_cflags)
   12768 			;;
   12769 		(*)
   12770 			case "$cf_add_cflags" in
   12771 			(-D*)
   12772 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   12773 
   12774 CPPFLAGS=`echo "$CPPFLAGS" | \
   12775 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   12776 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   12777 
   12778 				;;
   12779 			esac
   12780 
   12781 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   12782 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   12783 
   12784 			;;
   12785 		esac
   12786 		;;
   12787 	(*)
   12788 
   12789 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   12790 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   12791 
   12792 		;;
   12793 	esac
   12794 	;;
   12795 (yes)
   12796 
   12797 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12798 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12799 
   12800 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   12801 
   12802 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   12803 		&& test -z "${cf_tst_cflags}" \
   12804 		&& cf_fix_cppflags=no
   12805 	;;
   12806 esac
   12807 done
   12808 
   12809 if test -n "$cf_new_cflags" ; then
   12810 
   12811 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   12812 	CFLAGS="${CFLAGS}$cf_new_cflags"
   12813 
   12814 fi
   12815 
   12816 if test -n "$cf_new_cppflags" ; then
   12817 
   12818 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   12819 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   12820 
   12821 fi
   12822 
   12823 if test -n "$cf_new_extra_cppflags" ; then
   12824 
   12825 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   12826 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   12827 
   12828 fi
   12829 
   12830 cf_add_libs="$LIBS"
   12831 # reverse order
   12832 cf_add_0lib=
   12833 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   12834 # filter duplicates
   12835 for cf_add_1lib in $cf_add_0lib; do
   12836 	for cf_add_2lib in $cf_add_libs; do
   12837 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   12838 			cf_add_1lib=
   12839 			break
   12840 		fi
   12841 	done
   12842 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   12843 done
   12844 LIBS="$cf_add_libs"
   12845 
   12846 							LIBS="$cf_save_xmu"
   12847 
   12848 test -n "$verbose" && echo "	...before $LIBS" 1>&6
   12849 
   12850 echo "${as_me:-configure}:12850: testing ...before $LIBS ..." 1>&5
   12851 
   12852 LIBS=`echo "$LIBS" | sed -e "s/[ 	][ 	]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's%  % %g'`
   12853 test -n "$verbose" && echo "	...after  $LIBS" 1>&6
   12854 
   12855 echo "${as_me:-configure}:12855: testing ...after  $LIBS ..." 1>&5
   12856 
   12857 else
   12858 	cf_pkgconfig_incs=
   12859 	cf_pkgconfig_libs=
   12860 
   12861 test -n "$verbose" && echo "	...before $LIBS" 1>&6
   12862 
   12863 echo "${as_me:-configure}:12863: testing ...before $LIBS ..." 1>&5
   12864 
   12865 LIBS=`echo "$LIBS" | sed -e "s/[ 	][ 	]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's%  % %g'`
   12866 test -n "$verbose" && echo "	...after  $LIBS" 1>&6
   12867 
   12868 echo "${as_me:-configure}:12868: testing ...after  $LIBS ..." 1>&5
   12869 
   12870 fi
   12871 
   12872 	for cf_trim_lib in Xmu Xt X11
   12873 	do
   12874 		case "$LIBS" in
   12875 		(*-l$cf_trim_lib\ *-l$cf_trim_lib*)
   12876 			LIBS=`echo "$LIBS " | sed -e 's/  / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
   12877 			test -n "$verbose" && echo "	..trimmed $LIBS" 1>&6
   12878 
   12879 echo "${as_me:-configure}:12879: testing ..trimmed $LIBS ..." 1>&5
   12880 
   12881 			;;
   12882 		esac
   12883 	done
   12884 
   12885 					;;
   12886 				esac
   12887 			fi
   12888 
   12889 			break
   12890 else
   12891 	cf_pkgconfig_incs=
   12892 	cf_pkgconfig_libs=
   12893 	:
   12894 fi
   12895 
   12896 	done
   12897 fi
   12898 
   12899 if test -z "$cf_x_athena_lib" ; then
   12900 
   12901 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "Xext"; then
   12902 	test -n "$verbose" && echo "	found package Xext" 1>&6
   12903 
   12904 echo "${as_me:-configure}:12904: testing found package Xext ..." 1>&5
   12905 
   12906 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "Xext" 2>/dev/null`"
   12907 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "Xext" 2>/dev/null`"
   12908 	test -n "$verbose" && echo "	package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
   12909 
   12910 echo "${as_me:-configure}:12910: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   12911 
   12912 	test -n "$verbose" && echo "	package Xext LIBS: $cf_pkgconfig_libs" 1>&6
   12913 
   12914 echo "${as_me:-configure}:12914: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
   12915 
   12916 cf_fix_cppflags=no
   12917 cf_new_cflags=
   12918 cf_new_cppflags=
   12919 cf_new_extra_cppflags=
   12920 
   12921 for cf_add_cflags in $cf_pkgconfig_incs
   12922 do
   12923 case "$cf_fix_cppflags" in
   12924 (no)
   12925 	case "$cf_add_cflags" in
   12926 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   12927 		case "$cf_add_cflags" in
   12928 		(-D*)
   12929 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   12930 
   12931 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   12932 				&& test -z "${cf_tst_cflags}" \
   12933 				&& cf_fix_cppflags=yes
   12934 
   12935 			if test "$cf_fix_cppflags" = yes ; then
   12936 
   12937 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12938 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12939 
   12940 				continue
   12941 			elif test "${cf_tst_cflags}" = "\"'" ; then
   12942 
   12943 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12944 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12945 
   12946 				continue
   12947 			fi
   12948 			;;
   12949 		esac
   12950 		case "$CPPFLAGS" in
   12951 		(*$cf_add_cflags)
   12952 			;;
   12953 		(*)
   12954 			case "$cf_add_cflags" in
   12955 			(-D*)
   12956 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   12957 
   12958 CPPFLAGS=`echo "$CPPFLAGS" | \
   12959 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   12960 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   12961 
   12962 				;;
   12963 			esac
   12964 
   12965 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   12966 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   12967 
   12968 			;;
   12969 		esac
   12970 		;;
   12971 	(*)
   12972 
   12973 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   12974 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   12975 
   12976 		;;
   12977 	esac
   12978 	;;
   12979 (yes)
   12980 
   12981 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12982 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12983 
   12984 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   12985 
   12986 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   12987 		&& test -z "${cf_tst_cflags}" \
   12988 		&& cf_fix_cppflags=no
   12989 	;;
   12990 esac
   12991 done
   12992 
   12993 if test -n "$cf_new_cflags" ; then
   12994 
   12995 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   12996 	CFLAGS="${CFLAGS}$cf_new_cflags"
   12997 
   12998 fi
   12999 
   13000 if test -n "$cf_new_cppflags" ; then
   13001 
   13002 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   13003 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   13004 
   13005 fi
   13006 
   13007 if test -n "$cf_new_extra_cppflags" ; then
   13008 
   13009 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   13010 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   13011 
   13012 fi
   13013 
   13014 cf_add_libs="$LIBS"
   13015 # reverse order
   13016 cf_add_0lib=
   13017 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   13018 # filter duplicates
   13019 for cf_add_1lib in $cf_add_0lib; do
   13020 	for cf_add_2lib in $cf_add_libs; do
   13021 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   13022 			cf_add_1lib=
   13023 			break
   13024 		fi
   13025 	done
   13026 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   13027 done
   13028 LIBS="$cf_add_libs"
   13029 
   13030 	:
   13031 else
   13032 	cf_pkgconfig_incs=
   13033 	cf_pkgconfig_libs=
   13034 
   13035 	echo "$as_me:13035: checking for XextCreateExtension in -lXext" >&5
   13036 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
   13037 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
   13038   echo $ECHO_N "(cached) $ECHO_C" >&6
   13039 else
   13040   ac_check_lib_save_LIBS=$LIBS
   13041 LIBS="-lXext  $LIBS"
   13042 cat >"conftest.$ac_ext" <<_ACEOF
   13043 #line 13043 "configure"
   13044 #include "confdefs.h"
   13045 
   13046 /* Override any gcc2 internal prototype to avoid an error.  */
   13047 #ifdef __cplusplus
   13048 extern "C"
   13049 #endif
   13050 /* We use char because int might match the return type of a gcc2
   13051    builtin and then its argument prototype would still apply.  */
   13052 char XextCreateExtension ();
   13053 int
   13054 main (void)
   13055 {
   13056 XextCreateExtension ();
   13057   ;
   13058   return 0;
   13059 }
   13060 _ACEOF
   13061 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   13062 if { (eval echo "$as_me:13062: \"$ac_link\"") >&5
   13063   (eval $ac_link) 2>&5
   13064   ac_status=$?
   13065   echo "$as_me:13065: \$? = $ac_status" >&5
   13066   (exit "$ac_status"); } &&
   13067          { ac_try='test -s "conftest$ac_exeext"'
   13068   { (eval echo "$as_me:13068: \"$ac_try\"") >&5
   13069   (eval $ac_try) 2>&5
   13070   ac_status=$?
   13071   echo "$as_me:13071: \$? = $ac_status" >&5
   13072   (exit "$ac_status"); }; }; then
   13073   ac_cv_lib_Xext_XextCreateExtension=yes
   13074 else
   13075   echo "$as_me: failed program was:" >&5
   13076 cat "conftest.$ac_ext" >&5
   13077 ac_cv_lib_Xext_XextCreateExtension=no
   13078 fi
   13079 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   13080 LIBS=$ac_check_lib_save_LIBS
   13081 fi
   13082 echo "$as_me:13082: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
   13083 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
   13084 if test "$ac_cv_lib_Xext_XextCreateExtension" = yes; then
   13085 
   13086 cf_add_libs="$LIBS"
   13087 # reverse order
   13088 cf_add_0lib=
   13089 for cf_add_1lib in -lXext; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   13090 # filter duplicates
   13091 for cf_add_1lib in $cf_add_0lib; do
   13092 	for cf_add_2lib in $cf_add_libs; do
   13093 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   13094 			cf_add_1lib=
   13095 			break
   13096 		fi
   13097 	done
   13098 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   13099 done
   13100 LIBS="$cf_add_libs"
   13101 
   13102 fi
   13103 
   13104 fi
   13105 
   13106 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new) (and
   13107 # in some cases has installed dummy files in the former, other cases replaced
   13108 # it with a link to the new location).  This complicates the configure script.
   13109 # Check for that pitfall, and recover using pkg-config
   13110 #
   13111 # If none of these are set, the configuration is almost certainly broken.
   13112 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
   13113 then
   13114 
   13115 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then
   13116 	test -n "$verbose" && echo "	found package x11" 1>&6
   13117 
   13118 echo "${as_me:-configure}:13118: testing found package x11 ..." 1>&5
   13119 
   13120 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`"
   13121 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "x11" 2>/dev/null`"
   13122 	test -n "$verbose" && echo "	package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
   13123 
   13124 echo "${as_me:-configure}:13124: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   13125 
   13126 	test -n "$verbose" && echo "	package x11 LIBS: $cf_pkgconfig_libs" 1>&6
   13127 
   13128 echo "${as_me:-configure}:13128: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
   13129 
   13130 cf_fix_cppflags=no
   13131 cf_new_cflags=
   13132 cf_new_cppflags=
   13133 cf_new_extra_cppflags=
   13134 
   13135 for cf_add_cflags in $cf_pkgconfig_incs
   13136 do
   13137 case "$cf_fix_cppflags" in
   13138 (no)
   13139 	case "$cf_add_cflags" in
   13140 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   13141 		case "$cf_add_cflags" in
   13142 		(-D*)
   13143 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   13144 
   13145 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   13146 				&& test -z "${cf_tst_cflags}" \
   13147 				&& cf_fix_cppflags=yes
   13148 
   13149 			if test "$cf_fix_cppflags" = yes ; then
   13150 
   13151 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13152 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13153 
   13154 				continue
   13155 			elif test "${cf_tst_cflags}" = "\"'" ; then
   13156 
   13157 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13158 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13159 
   13160 				continue
   13161 			fi
   13162 			;;
   13163 		esac
   13164 		case "$CPPFLAGS" in
   13165 		(*$cf_add_cflags)
   13166 			;;
   13167 		(*)
   13168 			case "$cf_add_cflags" in
   13169 			(-D*)
   13170 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   13171 
   13172 CPPFLAGS=`echo "$CPPFLAGS" | \
   13173 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   13174 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   13175 
   13176 				;;
   13177 			esac
   13178 
   13179 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   13180 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   13181 
   13182 			;;
   13183 		esac
   13184 		;;
   13185 	(*)
   13186 
   13187 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   13188 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   13189 
   13190 		;;
   13191 	esac
   13192 	;;
   13193 (yes)
   13194 
   13195 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13196 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13197 
   13198 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   13199 
   13200 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   13201 		&& test -z "${cf_tst_cflags}" \
   13202 		&& cf_fix_cppflags=no
   13203 	;;
   13204 esac
   13205 done
   13206 
   13207 if test -n "$cf_new_cflags" ; then
   13208 
   13209 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   13210 	CFLAGS="${CFLAGS}$cf_new_cflags"
   13211 
   13212 fi
   13213 
   13214 if test -n "$cf_new_cppflags" ; then
   13215 
   13216 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   13217 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   13218 
   13219 fi
   13220 
   13221 if test -n "$cf_new_extra_cppflags" ; then
   13222 
   13223 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   13224 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   13225 
   13226 fi
   13227 
   13228 cf_add_libs="$LIBS"
   13229 # reverse order
   13230 cf_add_0lib=
   13231 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   13232 # filter duplicates
   13233 for cf_add_1lib in $cf_add_0lib; do
   13234 	for cf_add_2lib in $cf_add_libs; do
   13235 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   13236 			cf_add_1lib=
   13237 			break
   13238 		fi
   13239 	done
   13240 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   13241 done
   13242 LIBS="$cf_add_libs"
   13243 
   13244 	:
   13245 else
   13246 	cf_pkgconfig_incs=
   13247 	cf_pkgconfig_libs=
   13248 	{ echo "$as_me:13248: WARNING: unable to find X11 library" >&5
   13249 echo "$as_me: WARNING: unable to find X11 library" >&2;}
   13250 fi
   13251 
   13252 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then
   13253 	test -n "$verbose" && echo "	found package ice" 1>&6
   13254 
   13255 echo "${as_me:-configure}:13255: testing found package ice ..." 1>&5
   13256 
   13257 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`"
   13258 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "ice" 2>/dev/null`"
   13259 	test -n "$verbose" && echo "	package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
   13260 
   13261 echo "${as_me:-configure}:13261: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   13262 
   13263 	test -n "$verbose" && echo "	package ice LIBS: $cf_pkgconfig_libs" 1>&6
   13264 
   13265 echo "${as_me:-configure}:13265: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
   13266 
   13267 cf_fix_cppflags=no
   13268 cf_new_cflags=
   13269 cf_new_cppflags=
   13270 cf_new_extra_cppflags=
   13271 
   13272 for cf_add_cflags in $cf_pkgconfig_incs
   13273 do
   13274 case "$cf_fix_cppflags" in
   13275 (no)
   13276 	case "$cf_add_cflags" in
   13277 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   13278 		case "$cf_add_cflags" in
   13279 		(-D*)
   13280 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   13281 
   13282 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   13283 				&& test -z "${cf_tst_cflags}" \
   13284 				&& cf_fix_cppflags=yes
   13285 
   13286 			if test "$cf_fix_cppflags" = yes ; then
   13287 
   13288 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13289 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13290 
   13291 				continue
   13292 			elif test "${cf_tst_cflags}" = "\"'" ; then
   13293 
   13294 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13295 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13296 
   13297 				continue
   13298 			fi
   13299 			;;
   13300 		esac
   13301 		case "$CPPFLAGS" in
   13302 		(*$cf_add_cflags)
   13303 			;;
   13304 		(*)
   13305 			case "$cf_add_cflags" in
   13306 			(-D*)
   13307 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   13308 
   13309 CPPFLAGS=`echo "$CPPFLAGS" | \
   13310 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   13311 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   13312 
   13313 				;;
   13314 			esac
   13315 
   13316 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   13317 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   13318 
   13319 			;;
   13320 		esac
   13321 		;;
   13322 	(*)
   13323 
   13324 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   13325 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   13326 
   13327 		;;
   13328 	esac
   13329 	;;
   13330 (yes)
   13331 
   13332 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13333 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13334 
   13335 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   13336 
   13337 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   13338 		&& test -z "${cf_tst_cflags}" \
   13339 		&& cf_fix_cppflags=no
   13340 	;;
   13341 esac
   13342 done
   13343 
   13344 if test -n "$cf_new_cflags" ; then
   13345 
   13346 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   13347 	CFLAGS="${CFLAGS}$cf_new_cflags"
   13348 
   13349 fi
   13350 
   13351 if test -n "$cf_new_cppflags" ; then
   13352 
   13353 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   13354 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   13355 
   13356 fi
   13357 
   13358 if test -n "$cf_new_extra_cppflags" ; then
   13359 
   13360 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   13361 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   13362 
   13363 fi
   13364 
   13365 cf_add_libs="$LIBS"
   13366 # reverse order
   13367 cf_add_0lib=
   13368 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   13369 # filter duplicates
   13370 for cf_add_1lib in $cf_add_0lib; do
   13371 	for cf_add_2lib in $cf_add_libs; do
   13372 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   13373 			cf_add_1lib=
   13374 			break
   13375 		fi
   13376 	done
   13377 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   13378 done
   13379 LIBS="$cf_add_libs"
   13380 
   13381 	:
   13382 else
   13383 	cf_pkgconfig_incs=
   13384 	cf_pkgconfig_libs=
   13385 	{ echo "$as_me:13385: WARNING: unable to find ICE library" >&5
   13386 echo "$as_me: WARNING: unable to find ICE library" >&2;}
   13387 fi
   13388 
   13389 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then
   13390 	test -n "$verbose" && echo "	found package sm" 1>&6
   13391 
   13392 echo "${as_me:-configure}:13392: testing found package sm ..." 1>&5
   13393 
   13394 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`"
   13395 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "sm" 2>/dev/null`"
   13396 	test -n "$verbose" && echo "	package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
   13397 
   13398 echo "${as_me:-configure}:13398: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   13399 
   13400 	test -n "$verbose" && echo "	package sm LIBS: $cf_pkgconfig_libs" 1>&6
   13401 
   13402 echo "${as_me:-configure}:13402: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
   13403 
   13404 cf_fix_cppflags=no
   13405 cf_new_cflags=
   13406 cf_new_cppflags=
   13407 cf_new_extra_cppflags=
   13408 
   13409 for cf_add_cflags in $cf_pkgconfig_incs
   13410 do
   13411 case "$cf_fix_cppflags" in
   13412 (no)
   13413 	case "$cf_add_cflags" in
   13414 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   13415 		case "$cf_add_cflags" in
   13416 		(-D*)
   13417 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   13418 
   13419 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   13420 				&& test -z "${cf_tst_cflags}" \
   13421 				&& cf_fix_cppflags=yes
   13422 
   13423 			if test "$cf_fix_cppflags" = yes ; then
   13424 
   13425 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13426 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13427 
   13428 				continue
   13429 			elif test "${cf_tst_cflags}" = "\"'" ; then
   13430 
   13431 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13432 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13433 
   13434 				continue
   13435 			fi
   13436 			;;
   13437 		esac
   13438 		case "$CPPFLAGS" in
   13439 		(*$cf_add_cflags)
   13440 			;;
   13441 		(*)
   13442 			case "$cf_add_cflags" in
   13443 			(-D*)
   13444 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   13445 
   13446 CPPFLAGS=`echo "$CPPFLAGS" | \
   13447 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   13448 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   13449 
   13450 				;;
   13451 			esac
   13452 
   13453 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   13454 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   13455 
   13456 			;;
   13457 		esac
   13458 		;;
   13459 	(*)
   13460 
   13461 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   13462 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   13463 
   13464 		;;
   13465 	esac
   13466 	;;
   13467 (yes)
   13468 
   13469 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13470 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13471 
   13472 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   13473 
   13474 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   13475 		&& test -z "${cf_tst_cflags}" \
   13476 		&& cf_fix_cppflags=no
   13477 	;;
   13478 esac
   13479 done
   13480 
   13481 if test -n "$cf_new_cflags" ; then
   13482 
   13483 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   13484 	CFLAGS="${CFLAGS}$cf_new_cflags"
   13485 
   13486 fi
   13487 
   13488 if test -n "$cf_new_cppflags" ; then
   13489 
   13490 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   13491 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   13492 
   13493 fi
   13494 
   13495 if test -n "$cf_new_extra_cppflags" ; then
   13496 
   13497 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   13498 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   13499 
   13500 fi
   13501 
   13502 cf_add_libs="$LIBS"
   13503 # reverse order
   13504 cf_add_0lib=
   13505 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   13506 # filter duplicates
   13507 for cf_add_1lib in $cf_add_0lib; do
   13508 	for cf_add_2lib in $cf_add_libs; do
   13509 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   13510 			cf_add_1lib=
   13511 			break
   13512 		fi
   13513 	done
   13514 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   13515 done
   13516 LIBS="$cf_add_libs"
   13517 
   13518 	:
   13519 else
   13520 	cf_pkgconfig_incs=
   13521 	cf_pkgconfig_libs=
   13522 	{ echo "$as_me:13522: WARNING: unable to find SM library" >&5
   13523 echo "$as_me: WARNING: unable to find SM library" >&2;}
   13524 fi
   13525 
   13526 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then
   13527 	test -n "$verbose" && echo "	found package xt" 1>&6
   13528 
   13529 echo "${as_me:-configure}:13529: testing found package xt ..." 1>&5
   13530 
   13531 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`"
   13532 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "xt" 2>/dev/null`"
   13533 	test -n "$verbose" && echo "	package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
   13534 
   13535 echo "${as_me:-configure}:13535: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   13536 
   13537 	test -n "$verbose" && echo "	package xt LIBS: $cf_pkgconfig_libs" 1>&6
   13538 
   13539 echo "${as_me:-configure}:13539: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
   13540 
   13541 cf_fix_cppflags=no
   13542 cf_new_cflags=
   13543 cf_new_cppflags=
   13544 cf_new_extra_cppflags=
   13545 
   13546 for cf_add_cflags in $cf_pkgconfig_incs
   13547 do
   13548 case "$cf_fix_cppflags" in
   13549 (no)
   13550 	case "$cf_add_cflags" in
   13551 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   13552 		case "$cf_add_cflags" in
   13553 		(-D*)
   13554 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   13555 
   13556 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   13557 				&& test -z "${cf_tst_cflags}" \
   13558 				&& cf_fix_cppflags=yes
   13559 
   13560 			if test "$cf_fix_cppflags" = yes ; then
   13561 
   13562 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13563 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13564 
   13565 				continue
   13566 			elif test "${cf_tst_cflags}" = "\"'" ; then
   13567 
   13568 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13569 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13570 
   13571 				continue
   13572 			fi
   13573 			;;
   13574 		esac
   13575 		case "$CPPFLAGS" in
   13576 		(*$cf_add_cflags)
   13577 			;;
   13578 		(*)
   13579 			case "$cf_add_cflags" in
   13580 			(-D*)
   13581 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   13582 
   13583 CPPFLAGS=`echo "$CPPFLAGS" | \
   13584 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   13585 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   13586 
   13587 				;;
   13588 			esac
   13589 
   13590 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   13591 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   13592 
   13593 			;;
   13594 		esac
   13595 		;;
   13596 	(*)
   13597 
   13598 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   13599 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   13600 
   13601 		;;
   13602 	esac
   13603 	;;
   13604 (yes)
   13605 
   13606 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13607 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13608 
   13609 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   13610 
   13611 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   13612 		&& test -z "${cf_tst_cflags}" \
   13613 		&& cf_fix_cppflags=no
   13614 	;;
   13615 esac
   13616 done
   13617 
   13618 if test -n "$cf_new_cflags" ; then
   13619 
   13620 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   13621 	CFLAGS="${CFLAGS}$cf_new_cflags"
   13622 
   13623 fi
   13624 
   13625 if test -n "$cf_new_cppflags" ; then
   13626 
   13627 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   13628 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   13629 
   13630 fi
   13631 
   13632 if test -n "$cf_new_extra_cppflags" ; then
   13633 
   13634 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   13635 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   13636 
   13637 fi
   13638 
   13639 cf_add_libs="$LIBS"
   13640 # reverse order
   13641 cf_add_0lib=
   13642 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   13643 # filter duplicates
   13644 for cf_add_1lib in $cf_add_0lib; do
   13645 	for cf_add_2lib in $cf_add_libs; do
   13646 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   13647 			cf_add_1lib=
   13648 			break
   13649 		fi
   13650 	done
   13651 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   13652 done
   13653 LIBS="$cf_add_libs"
   13654 
   13655 	:
   13656 else
   13657 	cf_pkgconfig_incs=
   13658 	cf_pkgconfig_libs=
   13659 	{ echo "$as_me:13659: WARNING: unable to find Xt library" >&5
   13660 echo "$as_me: WARNING: unable to find Xt library" >&2;}
   13661 fi
   13662 
   13663 else
   13664 	LIBS="$X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
   13665 fi
   13666 
   13667 cf_have_X_LIBS=no
   13668 
   13669 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then
   13670 	test -n "$verbose" && echo "	found package xt" 1>&6
   13671 
   13672 echo "${as_me:-configure}:13672: testing found package xt ..." 1>&5
   13673 
   13674 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`"
   13675 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "xt" 2>/dev/null`"
   13676 	test -n "$verbose" && echo "	package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
   13677 
   13678 echo "${as_me:-configure}:13678: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   13679 
   13680 	test -n "$verbose" && echo "	package xt LIBS: $cf_pkgconfig_libs" 1>&6
   13681 
   13682 echo "${as_me:-configure}:13682: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
   13683 
   13684 cf_fix_cppflags=no
   13685 cf_new_cflags=
   13686 cf_new_cppflags=
   13687 cf_new_extra_cppflags=
   13688 
   13689 for cf_add_cflags in $cf_pkgconfig_incs
   13690 do
   13691 case "$cf_fix_cppflags" in
   13692 (no)
   13693 	case "$cf_add_cflags" in
   13694 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   13695 		case "$cf_add_cflags" in
   13696 		(-D*)
   13697 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   13698 
   13699 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   13700 				&& test -z "${cf_tst_cflags}" \
   13701 				&& cf_fix_cppflags=yes
   13702 
   13703 			if test "$cf_fix_cppflags" = yes ; then
   13704 
   13705 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13706 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13707 
   13708 				continue
   13709 			elif test "${cf_tst_cflags}" = "\"'" ; then
   13710 
   13711 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13712 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13713 
   13714 				continue
   13715 			fi
   13716 			;;
   13717 		esac
   13718 		case "$CPPFLAGS" in
   13719 		(*$cf_add_cflags)
   13720 			;;
   13721 		(*)
   13722 			case "$cf_add_cflags" in
   13723 			(-D*)
   13724 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   13725 
   13726 CPPFLAGS=`echo "$CPPFLAGS" | \
   13727 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   13728 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   13729 
   13730 				;;
   13731 			esac
   13732 
   13733 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   13734 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   13735 
   13736 			;;
   13737 		esac
   13738 		;;
   13739 	(*)
   13740 
   13741 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   13742 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   13743 
   13744 		;;
   13745 	esac
   13746 	;;
   13747 (yes)
   13748 
   13749 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13750 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13751 
   13752 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   13753 
   13754 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   13755 		&& test -z "${cf_tst_cflags}" \
   13756 		&& cf_fix_cppflags=no
   13757 	;;
   13758 esac
   13759 done
   13760 
   13761 if test -n "$cf_new_cflags" ; then
   13762 
   13763 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   13764 	CFLAGS="${CFLAGS}$cf_new_cflags"
   13765 
   13766 fi
   13767 
   13768 if test -n "$cf_new_cppflags" ; then
   13769 
   13770 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   13771 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   13772 
   13773 fi
   13774 
   13775 if test -n "$cf_new_extra_cppflags" ; then
   13776 
   13777 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   13778 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   13779 
   13780 fi
   13781 
   13782 cf_add_libs="$LIBS"
   13783 # reverse order
   13784 cf_add_0lib=
   13785 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   13786 # filter duplicates
   13787 for cf_add_1lib in $cf_add_0lib; do
   13788 	for cf_add_2lib in $cf_add_libs; do
   13789 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   13790 			cf_add_1lib=
   13791 			break
   13792 		fi
   13793 	done
   13794 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   13795 done
   13796 LIBS="$cf_add_libs"
   13797 
   13798 	case "x$LIBS" in
   13799 	(*-lX11*)
   13800 		;;
   13801 	(*)
   13802 # we have an "xt" package, but it may omit Xt's dependency on X11
   13803 echo "$as_me:13803: checking for usable X dependency" >&5
   13804 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
   13805 if test "${cf_cv_xt_x11_compat+set}" = set; then
   13806   echo $ECHO_N "(cached) $ECHO_C" >&6
   13807 else
   13808 
   13809 cat >"conftest.$ac_ext" <<_ACEOF
   13810 #line 13810 "configure"
   13811 #include "confdefs.h"
   13812 
   13813 #include <X11/Xlib.h>
   13814 
   13815 int
   13816 main (void)
   13817 {
   13818 
   13819 	int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
   13820 	int rc2 = XClearWindow((Display*) 0, (Window) 0);
   13821 	int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
   13822 	int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
   13823 
   13824   ;
   13825   return 0;
   13826 }
   13827 _ACEOF
   13828 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   13829 if { (eval echo "$as_me:13829: \"$ac_link\"") >&5
   13830   (eval $ac_link) 2>&5
   13831   ac_status=$?
   13832   echo "$as_me:13832: \$? = $ac_status" >&5
   13833   (exit "$ac_status"); } &&
   13834          { ac_try='test -s "conftest$ac_exeext"'
   13835   { (eval echo "$as_me:13835: \"$ac_try\"") >&5
   13836   (eval $ac_try) 2>&5
   13837   ac_status=$?
   13838   echo "$as_me:13838: \$? = $ac_status" >&5
   13839   (exit "$ac_status"); }; }; then
   13840   cf_cv_xt_x11_compat=yes
   13841 else
   13842   echo "$as_me: failed program was:" >&5
   13843 cat "conftest.$ac_ext" >&5
   13844 cf_cv_xt_x11_compat=no
   13845 fi
   13846 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   13847 fi
   13848 echo "$as_me:13848: result: $cf_cv_xt_x11_compat" >&5
   13849 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
   13850 		if test "$cf_cv_xt_x11_compat" = no
   13851 		then
   13852 			test -n "$verbose" && echo "	work around broken X11 dependency" 1>&6
   13853 
   13854 echo "${as_me:-configure}:13854: testing work around broken X11 dependency ..." 1>&5
   13855 
   13856 			# 2010/11/19 - good enough until a working Xt on Xcb is delivered.
   13857 
   13858 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then
   13859 	test -n "$verbose" && echo "	found package x11" 1>&6
   13860 
   13861 echo "${as_me:-configure}:13861: testing found package x11 ..." 1>&5
   13862 
   13863 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`"
   13864 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "x11" 2>/dev/null`"
   13865 	test -n "$verbose" && echo "	package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
   13866 
   13867 echo "${as_me:-configure}:13867: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   13868 
   13869 	test -n "$verbose" && echo "	package x11 LIBS: $cf_pkgconfig_libs" 1>&6
   13870 
   13871 echo "${as_me:-configure}:13871: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
   13872 
   13873 cf_fix_cppflags=no
   13874 cf_new_cflags=
   13875 cf_new_cppflags=
   13876 cf_new_extra_cppflags=
   13877 
   13878 for cf_add_cflags in $cf_pkgconfig_incs
   13879 do
   13880 case "$cf_fix_cppflags" in
   13881 (no)
   13882 	case "$cf_add_cflags" in
   13883 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   13884 		case "$cf_add_cflags" in
   13885 		(-D*)
   13886 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   13887 
   13888 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   13889 				&& test -z "${cf_tst_cflags}" \
   13890 				&& cf_fix_cppflags=yes
   13891 
   13892 			if test "$cf_fix_cppflags" = yes ; then
   13893 
   13894 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13895 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13896 
   13897 				continue
   13898 			elif test "${cf_tst_cflags}" = "\"'" ; then
   13899 
   13900 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13901 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13902 
   13903 				continue
   13904 			fi
   13905 			;;
   13906 		esac
   13907 		case "$CPPFLAGS" in
   13908 		(*$cf_add_cflags)
   13909 			;;
   13910 		(*)
   13911 			case "$cf_add_cflags" in
   13912 			(-D*)
   13913 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   13914 
   13915 CPPFLAGS=`echo "$CPPFLAGS" | \
   13916 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   13917 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   13918 
   13919 				;;
   13920 			esac
   13921 
   13922 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   13923 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   13924 
   13925 			;;
   13926 		esac
   13927 		;;
   13928 	(*)
   13929 
   13930 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   13931 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   13932 
   13933 		;;
   13934 	esac
   13935 	;;
   13936 (yes)
   13937 
   13938 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13939 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13940 
   13941 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   13942 
   13943 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   13944 		&& test -z "${cf_tst_cflags}" \
   13945 		&& cf_fix_cppflags=no
   13946 	;;
   13947 esac
   13948 done
   13949 
   13950 if test -n "$cf_new_cflags" ; then
   13951 
   13952 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   13953 	CFLAGS="${CFLAGS}$cf_new_cflags"
   13954 
   13955 fi
   13956 
   13957 if test -n "$cf_new_cppflags" ; then
   13958 
   13959 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   13960 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   13961 
   13962 fi
   13963 
   13964 if test -n "$cf_new_extra_cppflags" ; then
   13965 
   13966 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   13967 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   13968 
   13969 fi
   13970 
   13971 cf_add_libs="$LIBS"
   13972 # reverse order
   13973 cf_add_0lib=
   13974 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   13975 # filter duplicates
   13976 for cf_add_1lib in $cf_add_0lib; do
   13977 	for cf_add_2lib in $cf_add_libs; do
   13978 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   13979 			cf_add_1lib=
   13980 			break
   13981 		fi
   13982 	done
   13983 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   13984 done
   13985 LIBS="$cf_add_libs"
   13986 
   13987 	:
   13988 else
   13989 	cf_pkgconfig_incs=
   13990 	cf_pkgconfig_libs=
   13991 
   13992 test -n "$verbose" && echo "	...before $LIBS" 1>&6
   13993 
   13994 echo "${as_me:-configure}:13994: testing ...before $LIBS ..." 1>&5
   13995 
   13996 LIBS=`echo "$LIBS" | sed -e "s/[ 	][ 	]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's%  % %g'`
   13997 test -n "$verbose" && echo "	...after  $LIBS" 1>&6
   13998 
   13999 echo "${as_me:-configure}:13999: testing ...after  $LIBS ..." 1>&5
   14000 
   14001 fi
   14002 
   14003 		fi
   14004 		;;
   14005 	esac
   14006 
   14007 echo "$as_me:14007: checking for usable X Toolkit package" >&5
   14008 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
   14009 if test "${cf_cv_xt_ice_compat+set}" = set; then
   14010   echo $ECHO_N "(cached) $ECHO_C" >&6
   14011 else
   14012 
   14013 cat >"conftest.$ac_ext" <<_ACEOF
   14014 #line 14014 "configure"
   14015 #include "confdefs.h"
   14016 
   14017 #include <X11/Shell.h>
   14018 
   14019 int
   14020 main (void)
   14021 {
   14022 int num = IceConnectionNumber(0); (void) num
   14023 
   14024   ;
   14025   return 0;
   14026 }
   14027 _ACEOF
   14028 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   14029 if { (eval echo "$as_me:14029: \"$ac_link\"") >&5
   14030   (eval $ac_link) 2>&5
   14031   ac_status=$?
   14032   echo "$as_me:14032: \$? = $ac_status" >&5
   14033   (exit "$ac_status"); } &&
   14034          { ac_try='test -s "conftest$ac_exeext"'
   14035   { (eval echo "$as_me:14035: \"$ac_try\"") >&5
   14036   (eval $ac_try) 2>&5
   14037   ac_status=$?
   14038   echo "$as_me:14038: \$? = $ac_status" >&5
   14039   (exit "$ac_status"); }; }; then
   14040   cf_cv_xt_ice_compat=yes
   14041 else
   14042   echo "$as_me: failed program was:" >&5
   14043 cat "conftest.$ac_ext" >&5
   14044 cf_cv_xt_ice_compat=no
   14045 fi
   14046 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   14047 fi
   14048 echo "$as_me:14048: result: $cf_cv_xt_ice_compat" >&5
   14049 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
   14050 
   14051 	if test "$cf_cv_xt_ice_compat" = no
   14052 	then
   14053 		# workaround for broken ".pc" files used for X Toolkit.
   14054 		case "x$X_PRE_LIBS" in
   14055 		(*-lICE*)
   14056 			case "x$LIBS" in
   14057 			(*-lICE*)
   14058 				;;
   14059 			(*)
   14060 				test -n "$verbose" && echo "	work around broken ICE dependency" 1>&6
   14061 
   14062 echo "${as_me:-configure}:14062: testing work around broken ICE dependency ..." 1>&5
   14063 
   14064 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then
   14065 	test -n "$verbose" && echo "	found package ice" 1>&6
   14066 
   14067 echo "${as_me:-configure}:14067: testing found package ice ..." 1>&5
   14068 
   14069 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`"
   14070 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "ice" 2>/dev/null`"
   14071 	test -n "$verbose" && echo "	package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
   14072 
   14073 echo "${as_me:-configure}:14073: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   14074 
   14075 	test -n "$verbose" && echo "	package ice LIBS: $cf_pkgconfig_libs" 1>&6
   14076 
   14077 echo "${as_me:-configure}:14077: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
   14078 
   14079 cf_fix_cppflags=no
   14080 cf_new_cflags=
   14081 cf_new_cppflags=
   14082 cf_new_extra_cppflags=
   14083 
   14084 for cf_add_cflags in $cf_pkgconfig_incs
   14085 do
   14086 case "$cf_fix_cppflags" in
   14087 (no)
   14088 	case "$cf_add_cflags" in
   14089 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   14090 		case "$cf_add_cflags" in
   14091 		(-D*)
   14092 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   14093 
   14094 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   14095 				&& test -z "${cf_tst_cflags}" \
   14096 				&& cf_fix_cppflags=yes
   14097 
   14098 			if test "$cf_fix_cppflags" = yes ; then
   14099 
   14100 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   14101 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   14102 
   14103 				continue
   14104 			elif test "${cf_tst_cflags}" = "\"'" ; then
   14105 
   14106 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   14107 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   14108 
   14109 				continue
   14110 			fi
   14111 			;;
   14112 		esac
   14113 		case "$CPPFLAGS" in
   14114 		(*$cf_add_cflags)
   14115 			;;
   14116 		(*)
   14117 			case "$cf_add_cflags" in
   14118 			(-D*)
   14119 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   14120 
   14121 CPPFLAGS=`echo "$CPPFLAGS" | \
   14122 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   14123 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   14124 
   14125 				;;
   14126 			esac
   14127 
   14128 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   14129 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   14130 
   14131 			;;
   14132 		esac
   14133 		;;
   14134 	(*)
   14135 
   14136 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   14137 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   14138 
   14139 		;;
   14140 	esac
   14141 	;;
   14142 (yes)
   14143 
   14144 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   14145 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   14146 
   14147 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   14148 
   14149 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   14150 		&& test -z "${cf_tst_cflags}" \
   14151 		&& cf_fix_cppflags=no
   14152 	;;
   14153 esac
   14154 done
   14155 
   14156 if test -n "$cf_new_cflags" ; then
   14157 
   14158 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   14159 	CFLAGS="${CFLAGS}$cf_new_cflags"
   14160 
   14161 fi
   14162 
   14163 if test -n "$cf_new_cppflags" ; then
   14164 
   14165 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   14166 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   14167 
   14168 fi
   14169 
   14170 if test -n "$cf_new_extra_cppflags" ; then
   14171 
   14172 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   14173 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   14174 
   14175 fi
   14176 
   14177 cf_add_libs="$LIBS"
   14178 # reverse order
   14179 cf_add_0lib=
   14180 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   14181 # filter duplicates
   14182 for cf_add_1lib in $cf_add_0lib; do
   14183 	for cf_add_2lib in $cf_add_libs; do
   14184 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   14185 			cf_add_1lib=
   14186 			break
   14187 		fi
   14188 	done
   14189 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   14190 done
   14191 LIBS="$cf_add_libs"
   14192 
   14193 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then
   14194 	test -n "$verbose" && echo "	found package sm" 1>&6
   14195 
   14196 echo "${as_me:-configure}:14196: testing found package sm ..." 1>&5
   14197 
   14198 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`"
   14199 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "sm" 2>/dev/null`"
   14200 	test -n "$verbose" && echo "	package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
   14201 
   14202 echo "${as_me:-configure}:14202: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   14203 
   14204 	test -n "$verbose" && echo "	package sm LIBS: $cf_pkgconfig_libs" 1>&6
   14205 
   14206 echo "${as_me:-configure}:14206: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
   14207 
   14208 cf_fix_cppflags=no
   14209 cf_new_cflags=
   14210 cf_new_cppflags=
   14211 cf_new_extra_cppflags=
   14212 
   14213 for cf_add_cflags in $cf_pkgconfig_incs
   14214 do
   14215 case "$cf_fix_cppflags" in
   14216 (no)
   14217 	case "$cf_add_cflags" in
   14218 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   14219 		case "$cf_add_cflags" in
   14220 		(-D*)
   14221 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   14222 
   14223 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   14224 				&& test -z "${cf_tst_cflags}" \
   14225 				&& cf_fix_cppflags=yes
   14226 
   14227 			if test "$cf_fix_cppflags" = yes ; then
   14228 
   14229 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   14230 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   14231 
   14232 				continue
   14233 			elif test "${cf_tst_cflags}" = "\"'" ; then
   14234 
   14235 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   14236 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   14237 
   14238 				continue
   14239 			fi
   14240 			;;
   14241 		esac
   14242 		case "$CPPFLAGS" in
   14243 		(*$cf_add_cflags)
   14244 			;;
   14245 		(*)
   14246 			case "$cf_add_cflags" in
   14247 			(-D*)
   14248 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   14249 
   14250 CPPFLAGS=`echo "$CPPFLAGS" | \
   14251 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   14252 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   14253 
   14254 				;;
   14255 			esac
   14256 
   14257 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   14258 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   14259 
   14260 			;;
   14261 		esac
   14262 		;;
   14263 	(*)
   14264 
   14265 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   14266 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   14267 
   14268 		;;
   14269 	esac
   14270 	;;
   14271 (yes)
   14272 
   14273 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   14274 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   14275 
   14276 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   14277 
   14278 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   14279 		&& test -z "${cf_tst_cflags}" \
   14280 		&& cf_fix_cppflags=no
   14281 	;;
   14282 esac
   14283 done
   14284 
   14285 if test -n "$cf_new_cflags" ; then
   14286 
   14287 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   14288 	CFLAGS="${CFLAGS}$cf_new_cflags"
   14289 
   14290 fi
   14291 
   14292 if test -n "$cf_new_cppflags" ; then
   14293 
   14294 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   14295 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   14296 
   14297 fi
   14298 
   14299 if test -n "$cf_new_extra_cppflags" ; then
   14300 
   14301 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   14302 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   14303 
   14304 fi
   14305 
   14306 cf_add_libs="$LIBS"
   14307 # reverse order
   14308 cf_add_0lib=
   14309 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   14310 # filter duplicates
   14311 for cf_add_1lib in $cf_add_0lib; do
   14312 	for cf_add_2lib in $cf_add_libs; do
   14313 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   14314 			cf_add_1lib=
   14315 			break
   14316 		fi
   14317 	done
   14318 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   14319 done
   14320 LIBS="$cf_add_libs"
   14321 
   14322 	:
   14323 else
   14324 	cf_pkgconfig_incs=
   14325 	cf_pkgconfig_libs=
   14326 	:
   14327 fi
   14328 
   14329 else
   14330 	cf_pkgconfig_incs=
   14331 	cf_pkgconfig_libs=
   14332 
   14333 test -n "$verbose" && echo "	...before $LIBS" 1>&6
   14334 
   14335 echo "${as_me:-configure}:14335: testing ...before $LIBS ..." 1>&5
   14336 
   14337 LIBS=`echo "$LIBS" | sed -e "s/[ 	][ 	]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's%  % %g'`
   14338 test -n "$verbose" && echo "	...after  $LIBS" 1>&6
   14339 
   14340 echo "${as_me:-configure}:14340: testing ...after  $LIBS ..." 1>&5
   14341 
   14342 fi
   14343 
   14344 				;;
   14345 			esac
   14346 			;;
   14347 		esac
   14348 	fi
   14349 
   14350 	cf_have_X_LIBS=yes
   14351 
   14352 else
   14353 	cf_pkgconfig_incs=
   14354 	cf_pkgconfig_libs=
   14355 
   14356 	LDFLAGS="$X_LIBS $LDFLAGS"
   14357 
   14358 test -n "$verbose" && echo "	checking additions to CFLAGS" 1>&6
   14359 
   14360 echo "${as_me:-configure}:14360: testing checking additions to CFLAGS ..." 1>&5
   14361 
   14362 cf_check_cflags="$CFLAGS"
   14363 cf_check_cppflags="$CPPFLAGS"
   14364 
   14365 cf_fix_cppflags=no
   14366 cf_new_cflags=
   14367 cf_new_cppflags=
   14368 cf_new_extra_cppflags=
   14369 
   14370 for cf_add_cflags in $X_CFLAGS
   14371 do
   14372 case "$cf_fix_cppflags" in
   14373 (no)
   14374 	case "$cf_add_cflags" in
   14375 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   14376 		case "$cf_add_cflags" in
   14377 		(-D*)
   14378 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   14379 
   14380 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   14381 				&& test -z "${cf_tst_cflags}" \
   14382 				&& cf_fix_cppflags=yes
   14383 
   14384 			if test "$cf_fix_cppflags" = yes ; then
   14385 
   14386 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   14387 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   14388 
   14389 				continue
   14390 			elif test "${cf_tst_cflags}" = "\"'" ; then
   14391 
   14392 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   14393 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   14394 
   14395 				continue
   14396 			fi
   14397 			;;
   14398 		esac
   14399 		case "$CPPFLAGS" in
   14400 		(*$cf_add_cflags)
   14401 			;;
   14402 		(*)
   14403 			case "$cf_add_cflags" in
   14404 			(-D*)
   14405 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   14406 
   14407 CPPFLAGS=`echo "$CPPFLAGS" | \
   14408 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   14409 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   14410 
   14411 				;;
   14412 			esac
   14413 
   14414 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   14415 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   14416 
   14417 			;;
   14418 		esac
   14419 		;;
   14420 	(*)
   14421 
   14422 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   14423 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   14424 
   14425 		;;
   14426 	esac
   14427 	;;
   14428 (yes)
   14429 
   14430 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   14431 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   14432 
   14433 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   14434 
   14435 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   14436 		&& test -z "${cf_tst_cflags}" \
   14437 		&& cf_fix_cppflags=no
   14438 	;;
   14439 esac
   14440 done
   14441 
   14442 if test -n "$cf_new_cflags" ; then
   14443 	test -n "$verbose" && echo "	add to \$CFLAGS $cf_new_cflags" 1>&6
   14444 
   14445 echo "${as_me:-configure}:14445: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
   14446 
   14447 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   14448 	CFLAGS="${CFLAGS}$cf_new_cflags"
   14449 
   14450 fi
   14451 
   14452 if test -n "$cf_new_cppflags" ; then
   14453 	test -n "$verbose" && echo "	add to \$CPPFLAGS $cf_new_cppflags" 1>&6
   14454 
   14455 echo "${as_me:-configure}:14455: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
   14456 
   14457 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   14458 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   14459 
   14460 fi
   14461 
   14462 if test -n "$cf_new_extra_cppflags" ; then
   14463 	test -n "$verbose" && echo "	add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
   14464 
   14465 echo "${as_me:-configure}:14465: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
   14466 
   14467 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   14468 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   14469 
   14470 fi
   14471 
   14472 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
   14473 cat >"conftest.$ac_ext" <<_ACEOF
   14474 #line 14474 "configure"
   14475 #include "confdefs.h"
   14476 #include <stdio.h>
   14477 int
   14478 main (void)
   14479 {
   14480 printf("Hello world");
   14481   ;
   14482   return 0;
   14483 }
   14484 _ACEOF
   14485 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   14486 if { (eval echo "$as_me:14486: \"$ac_link\"") >&5
   14487   (eval $ac_link) 2>&5
   14488   ac_status=$?
   14489   echo "$as_me:14489: \$? = $ac_status" >&5
   14490   (exit "$ac_status"); } &&
   14491          { ac_try='test -s "conftest$ac_exeext"'
   14492   { (eval echo "$as_me:14492: \"$ac_try\"") >&5
   14493   (eval $ac_try) 2>&5
   14494   ac_status=$?
   14495   echo "$as_me:14495: \$? = $ac_status" >&5
   14496   (exit "$ac_status"); }; }; then
   14497   :
   14498 else
   14499   echo "$as_me: failed program was:" >&5
   14500 cat "conftest.$ac_ext" >&5
   14501 test -n "$verbose" && echo "	test-compile failed.  Undoing change to \$CFLAGS" 1>&6
   14502 
   14503 echo "${as_me:-configure}:14503: testing test-compile failed.  Undoing change to \$CFLAGS ..." 1>&5
   14504 
   14505 	 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
   14506 		 test -n "$verbose" && echo "	but keeping change to \$CPPFLAGS" 1>&6
   14507 
   14508 echo "${as_me:-configure}:14508: testing but keeping change to \$CPPFLAGS ..." 1>&5
   14509 
   14510 	 fi
   14511 	 CFLAGS="$cf_check_cflags"
   14512 fi
   14513 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   14514 fi
   14515 
   14516 	echo "$as_me:14516: checking for XOpenDisplay" >&5
   14517 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
   14518 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
   14519   echo $ECHO_N "(cached) $ECHO_C" >&6
   14520 else
   14521   cat >"conftest.$ac_ext" <<_ACEOF
   14522 #line 14522 "configure"
   14523 #include "confdefs.h"
   14524 #define XOpenDisplay autoconf_temporary
   14525 #include <limits.h>	/* least-intrusive standard header which defines gcc2 __stub macros */
   14526 #undef XOpenDisplay
   14527 
   14528 #ifdef __cplusplus
   14529 extern "C"
   14530 #endif
   14531 
   14532 /* We use char because int might match the return type of a gcc2
   14533    builtin and then its argument prototype would still apply.  */
   14534 char XOpenDisplay (void);
   14535 
   14536 int
   14537 main (void)
   14538 {
   14539 
   14540 /* The GNU C library defines stubs for functions which it implements
   14541     to always fail with ENOSYS.  Some functions are actually named
   14542     something starting with __ and the normal name is an alias.  */
   14543 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
   14544 #error found stub for XOpenDisplay
   14545 #endif
   14546 
   14547 	return XOpenDisplay ();
   14548   ;
   14549   return 0;
   14550 }
   14551 _ACEOF
   14552 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   14553 if { (eval echo "$as_me:14553: \"$ac_link\"") >&5
   14554   (eval $ac_link) 2>&5
   14555   ac_status=$?
   14556   echo "$as_me:14556: \$? = $ac_status" >&5
   14557   (exit "$ac_status"); } &&
   14558          { ac_try='test -s "conftest$ac_exeext"'
   14559   { (eval echo "$as_me:14559: \"$ac_try\"") >&5
   14560   (eval $ac_try) 2>&5
   14561   ac_status=$?
   14562   echo "$as_me:14562: \$? = $ac_status" >&5
   14563   (exit "$ac_status"); }; }; then
   14564   ac_cv_func_XOpenDisplay=yes
   14565 else
   14566   echo "$as_me: failed program was:" >&5
   14567 cat "conftest.$ac_ext" >&5
   14568 ac_cv_func_XOpenDisplay=no
   14569 fi
   14570 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   14571 fi
   14572 echo "$as_me:14572: result: $ac_cv_func_XOpenDisplay" >&5
   14573 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
   14574 if test "$ac_cv_func_XOpenDisplay" = yes; then
   14575   :
   14576 else
   14577 
   14578 	echo "$as_me:14578: checking for XOpenDisplay in -lX11" >&5
   14579 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
   14580 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
   14581   echo $ECHO_N "(cached) $ECHO_C" >&6
   14582 else
   14583   ac_check_lib_save_LIBS=$LIBS
   14584 LIBS="-lX11  $LIBS"
   14585 cat >"conftest.$ac_ext" <<_ACEOF
   14586 #line 14586 "configure"
   14587 #include "confdefs.h"
   14588 
   14589 /* Override any gcc2 internal prototype to avoid an error.  */
   14590 #ifdef __cplusplus
   14591 extern "C"
   14592 #endif
   14593 /* We use char because int might match the return type of a gcc2
   14594    builtin and then its argument prototype would still apply.  */
   14595 char XOpenDisplay ();
   14596 int
   14597 main (void)
   14598 {
   14599 XOpenDisplay ();
   14600   ;
   14601   return 0;
   14602 }
   14603 _ACEOF
   14604 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   14605 if { (eval echo "$as_me:14605: \"$ac_link\"") >&5
   14606   (eval $ac_link) 2>&5
   14607   ac_status=$?
   14608   echo "$as_me:14608: \$? = $ac_status" >&5
   14609   (exit "$ac_status"); } &&
   14610          { ac_try='test -s "conftest$ac_exeext"'
   14611   { (eval echo "$as_me:14611: \"$ac_try\"") >&5
   14612   (eval $ac_try) 2>&5
   14613   ac_status=$?
   14614   echo "$as_me:14614: \$? = $ac_status" >&5
   14615   (exit "$ac_status"); }; }; then
   14616   ac_cv_lib_X11_XOpenDisplay=yes
   14617 else
   14618   echo "$as_me: failed program was:" >&5
   14619 cat "conftest.$ac_ext" >&5
   14620 ac_cv_lib_X11_XOpenDisplay=no
   14621 fi
   14622 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   14623 LIBS=$ac_check_lib_save_LIBS
   14624 fi
   14625 echo "$as_me:14625: result: $ac_cv_lib_X11_XOpenDisplay" >&5
   14626 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
   14627 if test "$ac_cv_lib_X11_XOpenDisplay" = yes; then
   14628 
   14629 cf_add_libs="$LIBS"
   14630 # reverse order
   14631 cf_add_0lib=
   14632 for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   14633 # filter duplicates
   14634 for cf_add_1lib in $cf_add_0lib; do
   14635 	for cf_add_2lib in $cf_add_libs; do
   14636 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   14637 			cf_add_1lib=
   14638 			break
   14639 		fi
   14640 	done
   14641 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   14642 done
   14643 LIBS="$cf_add_libs"
   14644 
   14645 fi
   14646 
   14647 fi
   14648 
   14649 	echo "$as_me:14649: checking for XtAppInitialize" >&5
   14650 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
   14651 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
   14652   echo $ECHO_N "(cached) $ECHO_C" >&6
   14653 else
   14654   cat >"conftest.$ac_ext" <<_ACEOF
   14655 #line 14655 "configure"
   14656 #include "confdefs.h"
   14657 #define XtAppInitialize autoconf_temporary
   14658 #include <limits.h>	/* least-intrusive standard header which defines gcc2 __stub macros */
   14659 #undef XtAppInitialize
   14660 
   14661 #ifdef __cplusplus
   14662 extern "C"
   14663 #endif
   14664 
   14665 /* We use char because int might match the return type of a gcc2
   14666    builtin and then its argument prototype would still apply.  */
   14667 char XtAppInitialize (void);
   14668 
   14669 int
   14670 main (void)
   14671 {
   14672 
   14673 /* The GNU C library defines stubs for functions which it implements
   14674     to always fail with ENOSYS.  Some functions are actually named
   14675     something starting with __ and the normal name is an alias.  */
   14676 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
   14677 #error found stub for XtAppInitialize
   14678 #endif
   14679 
   14680 	return XtAppInitialize ();
   14681   ;
   14682   return 0;
   14683 }
   14684 _ACEOF
   14685 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   14686 if { (eval echo "$as_me:14686: \"$ac_link\"") >&5
   14687   (eval $ac_link) 2>&5
   14688   ac_status=$?
   14689   echo "$as_me:14689: \$? = $ac_status" >&5
   14690   (exit "$ac_status"); } &&
   14691          { ac_try='test -s "conftest$ac_exeext"'
   14692   { (eval echo "$as_me:14692: \"$ac_try\"") >&5
   14693   (eval $ac_try) 2>&5
   14694   ac_status=$?
   14695   echo "$as_me:14695: \$? = $ac_status" >&5
   14696   (exit "$ac_status"); }; }; then
   14697   ac_cv_func_XtAppInitialize=yes
   14698 else
   14699   echo "$as_me: failed program was:" >&5
   14700 cat "conftest.$ac_ext" >&5
   14701 ac_cv_func_XtAppInitialize=no
   14702 fi
   14703 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   14704 fi
   14705 echo "$as_me:14705: result: $ac_cv_func_XtAppInitialize" >&5
   14706 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
   14707 if test "$ac_cv_func_XtAppInitialize" = yes; then
   14708   :
   14709 else
   14710 
   14711 	echo "$as_me:14711: checking for XtAppInitialize in -lXt" >&5
   14712 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
   14713 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
   14714   echo $ECHO_N "(cached) $ECHO_C" >&6
   14715 else
   14716   ac_check_lib_save_LIBS=$LIBS
   14717 LIBS="-lXt  $LIBS"
   14718 cat >"conftest.$ac_ext" <<_ACEOF
   14719 #line 14719 "configure"
   14720 #include "confdefs.h"
   14721 
   14722 /* Override any gcc2 internal prototype to avoid an error.  */
   14723 #ifdef __cplusplus
   14724 extern "C"
   14725 #endif
   14726 /* We use char because int might match the return type of a gcc2
   14727    builtin and then its argument prototype would still apply.  */
   14728 char XtAppInitialize ();
   14729 int
   14730 main (void)
   14731 {
   14732 XtAppInitialize ();
   14733   ;
   14734   return 0;
   14735 }
   14736 _ACEOF
   14737 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   14738 if { (eval echo "$as_me:14738: \"$ac_link\"") >&5
   14739   (eval $ac_link) 2>&5
   14740   ac_status=$?
   14741   echo "$as_me:14741: \$? = $ac_status" >&5
   14742   (exit "$ac_status"); } &&
   14743          { ac_try='test -s "conftest$ac_exeext"'
   14744   { (eval echo "$as_me:14744: \"$ac_try\"") >&5
   14745   (eval $ac_try) 2>&5
   14746   ac_status=$?
   14747   echo "$as_me:14747: \$? = $ac_status" >&5
   14748   (exit "$ac_status"); }; }; then
   14749   ac_cv_lib_Xt_XtAppInitialize=yes
   14750 else
   14751   echo "$as_me: failed program was:" >&5
   14752 cat "conftest.$ac_ext" >&5
   14753 ac_cv_lib_Xt_XtAppInitialize=no
   14754 fi
   14755 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   14756 LIBS=$ac_check_lib_save_LIBS
   14757 fi
   14758 echo "$as_me:14758: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
   14759 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
   14760 if test "$ac_cv_lib_Xt_XtAppInitialize" = yes; then
   14761 
   14762 cat >>confdefs.h <<\EOF
   14763 #define HAVE_LIBXT 1
   14764 EOF
   14765 
   14766 		 cf_have_X_LIBS=Xt
   14767 		 LIBS="-lXt $LIBS"
   14768 fi
   14769 
   14770 fi
   14771 
   14772 fi
   14773 
   14774 if test "$cf_have_X_LIBS" = no ; then
   14775 	{ echo "$as_me:14775: WARNING: Unable to successfully link X Toolkit library (-lXt) with
   14776 test program.  You will have to check and add the proper libraries by hand
   14777 to makefile." >&5
   14778 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
   14779 test program.  You will have to check and add the proper libraries by hand
   14780 to makefile." >&2;}
   14781 fi
   14782 
   14783 cf_x_athena_root=$cf_x_athena
   14784 cf_x_athena_inc=""
   14785 
   14786 for cf_path in default \
   14787 	/usr/contrib/X11R6 \
   14788 	/usr/contrib/X11R5 \
   14789 	/usr/lib/X11R5 \
   14790 	/usr/local
   14791 do
   14792 	if test -z "$cf_x_athena_inc" ; then
   14793 
   14794 cf_save_LIBS_CF_X_ATHENA_CPPFLAGS="$LIBS"
   14795 cf_save_CFLAGS_CF_X_ATHENA_CPPFLAGS="$CFLAGS"
   14796 cf_save_CPPFLAGS_CF_X_ATHENA_CPPFLAGS="$CPPFLAGS"
   14797 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
   14798 for cf_X_CFLAGS in $X_CFLAGS
   14799 do
   14800 	case "x$cf_X_CFLAGS" in
   14801 	x-[IUD]*)
   14802 		CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
   14803 		;;
   14804 	*)
   14805 		CFLAGS="$CFLAGS $cf_X_CFLAGS"
   14806 		;;
   14807 	esac
   14808 done
   14809 
   14810 		cf_test=X11/$cf_x_athena_root/SimpleMenu.h
   14811 		if test "$cf_path" != default ; then
   14812 
   14813 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   14814 	CPPFLAGS="${CPPFLAGS}-I$cf_path/include"
   14815 
   14816 			echo "$as_me:14816: checking for $cf_test in $cf_path" >&5
   14817 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
   14818 		else
   14819 			echo "$as_me:14819: checking for $cf_test" >&5
   14820 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
   14821 		fi
   14822 		cat >"conftest.$ac_ext" <<_ACEOF
   14823 #line 14823 "configure"
   14824 #include "confdefs.h"
   14825 
   14826 #include <X11/Intrinsic.h>
   14827 #include <$cf_test>
   14828 int
   14829 main (void)
   14830 {
   14831 
   14832   ;
   14833   return 0;
   14834 }
   14835 _ACEOF
   14836 rm -f "conftest.$ac_objext"
   14837 if { (eval echo "$as_me:14837: \"$ac_compile\"") >&5
   14838   (eval $ac_compile) 2>&5
   14839   ac_status=$?
   14840   echo "$as_me:14840: \$? = $ac_status" >&5
   14841   (exit "$ac_status"); } &&
   14842          { ac_try='test -s "conftest.$ac_objext"'
   14843   { (eval echo "$as_me:14843: \"$ac_try\"") >&5
   14844   (eval $ac_try) 2>&5
   14845   ac_status=$?
   14846   echo "$as_me:14846: \$? = $ac_status" >&5
   14847   (exit "$ac_status"); }; }; then
   14848   cf_result=yes
   14849 else
   14850   echo "$as_me: failed program was:" >&5
   14851 cat "conftest.$ac_ext" >&5
   14852 cf_result=no
   14853 fi
   14854 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   14855 		echo "$as_me:14855: result: $cf_result" >&5
   14856 echo "${ECHO_T}$cf_result" >&6
   14857 
   14858 LIBS="$cf_save_LIBS_CF_X_ATHENA_CPPFLAGS"
   14859 CFLAGS="$cf_save_CFLAGS_CF_X_ATHENA_CPPFLAGS"
   14860 CPPFLAGS="$cf_save_CPPFLAGS_CF_X_ATHENA_CPPFLAGS"
   14861 
   14862 		if test "$cf_result" = yes ; then
   14863 			test "$cf_path"  = default && cf_x_athena_inc=default
   14864 			test "$cf_path" != default && cf_x_athena_inc="$cf_path/include"
   14865 			break
   14866 		fi
   14867 	fi
   14868 done
   14869 
   14870 if test -z "$cf_x_athena_inc" ; then
   14871 	{ echo "$as_me:14871: WARNING: Unable to find Athena header files" >&5
   14872 echo "$as_me: WARNING: Unable to find Athena header files" >&2;}
   14873 elif test "$cf_x_athena_inc" != default ; then
   14874 
   14875 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   14876 	CPPFLAGS="${CPPFLAGS}-I$cf_x_athena_inc"
   14877 
   14878 fi
   14879 
   14880 cf_x_athena_root=$cf_x_athena
   14881 cf_x_athena_lib=""
   14882 
   14883 for cf_path in default \
   14884 	/usr/contrib/X11R6 \
   14885 	/usr/contrib/X11R5 \
   14886 	/usr/lib/X11R5 \
   14887 	/usr/local
   14888 do
   14889 	for cf_lib in \
   14890 		${cf_x_athena_root} \
   14891 		${cf_x_athena_root}7 \
   14892 		${cf_x_athena_root}6
   14893 	do
   14894 	for cf_libs in \
   14895 		"-l$cf_lib -lXmu" \
   14896 		"-l$cf_lib -lXpm -lXmu" \
   14897 		"-l${cf_lib}_s -lXmu_s"
   14898 	do
   14899 		test -n "$cf_x_athena_lib" && break
   14900 
   14901 cf_save_LIBS_CF_X_ATHENA_LIBS="$LIBS"
   14902 cf_save_CFLAGS_CF_X_ATHENA_LIBS="$CFLAGS"
   14903 cf_save_CPPFLAGS_CF_X_ATHENA_LIBS="$CPPFLAGS"
   14904 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
   14905 for cf_X_CFLAGS in $X_CFLAGS
   14906 do
   14907 	case "x$cf_X_CFLAGS" in
   14908 	x-[IUD]*)
   14909 		CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
   14910 		;;
   14911 	*)
   14912 		CFLAGS="$CFLAGS $cf_X_CFLAGS"
   14913 		;;
   14914 	esac
   14915 done
   14916 
   14917 		cf_test=XawSimpleMenuAddGlobalActions
   14918 		test "$cf_path" != default && cf_libs="-L$cf_path/lib $cf_libs"
   14919 
   14920 cf_add_libs="$LIBS"
   14921 # reverse order
   14922 cf_add_0lib=
   14923 for cf_add_1lib in $cf_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   14924 # filter duplicates
   14925 for cf_add_1lib in $cf_add_0lib; do
   14926 	for cf_add_2lib in $cf_add_libs; do
   14927 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   14928 			cf_add_1lib=
   14929 			break
   14930 		fi
   14931 	done
   14932 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   14933 done
   14934 LIBS="$cf_add_libs"
   14935 
   14936 		echo "$as_me:14936: checking for $cf_test in $cf_libs" >&5
   14937 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
   14938 		cat >"conftest.$ac_ext" <<_ACEOF
   14939 #line 14939 "configure"
   14940 #include "confdefs.h"
   14941 
   14942 #include <X11/Intrinsic.h>
   14943 #include <X11/$cf_x_athena_root/SimpleMenu.h>
   14944 
   14945 int
   14946 main (void)
   14947 {
   14948 
   14949 $cf_test((XtAppContext) 0)
   14950   ;
   14951   return 0;
   14952 }
   14953 _ACEOF
   14954 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   14955 if { (eval echo "$as_me:14955: \"$ac_link\"") >&5
   14956   (eval $ac_link) 2>&5
   14957   ac_status=$?
   14958   echo "$as_me:14958: \$? = $ac_status" >&5
   14959   (exit "$ac_status"); } &&
   14960          { ac_try='test -s "conftest$ac_exeext"'
   14961   { (eval echo "$as_me:14961: \"$ac_try\"") >&5
   14962   (eval $ac_try) 2>&5
   14963   ac_status=$?
   14964   echo "$as_me:14964: \$? = $ac_status" >&5
   14965   (exit "$ac_status"); }; }; then
   14966   cf_result=yes
   14967 else
   14968   echo "$as_me: failed program was:" >&5
   14969 cat "conftest.$ac_ext" >&5
   14970 cf_result=no
   14971 fi
   14972 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   14973 		echo "$as_me:14973: result: $cf_result" >&5
   14974 echo "${ECHO_T}$cf_result" >&6
   14975 
   14976 LIBS="$cf_save_LIBS_CF_X_ATHENA_LIBS"
   14977 CFLAGS="$cf_save_CFLAGS_CF_X_ATHENA_LIBS"
   14978 CPPFLAGS="$cf_save_CPPFLAGS_CF_X_ATHENA_LIBS"
   14979 
   14980 		if test "$cf_result" = yes ; then
   14981 			cf_x_athena_lib="$cf_libs"
   14982 			break
   14983 		fi
   14984 	done # cf_libs
   14985 		test -n "$cf_x_athena_lib" && break
   14986 	done # cf_lib
   14987 done
   14988 
   14989 if test -z "$cf_x_athena_lib" ; then
   14990 	{ { echo "$as_me:14990: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
   14991 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
   14992    { (exit 1); exit 1; }; }
   14993 fi
   14994 
   14995 cf_add_libs="$LIBS"
   14996 # reverse order
   14997 cf_add_0lib=
   14998 for cf_add_1lib in $cf_x_athena_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   14999 # filter duplicates
   15000 for cf_add_1lib in $cf_add_0lib; do
   15001 	for cf_add_2lib in $cf_add_libs; do
   15002 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   15003 			cf_add_1lib=
   15004 			break
   15005 		fi
   15006 	done
   15007 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   15008 done
   15009 LIBS="$cf_add_libs"
   15010 
   15011 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   15012 
   15013 cat >>confdefs.h <<EOF
   15014 #define $cf_x_athena_LIBS 1
   15015 EOF
   15016 
   15017 fi
   15018 
   15019 for ac_header in X11/Xpoll.h
   15020 do
   15021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   15022 echo "$as_me:15022: checking for $ac_header" >&5
   15023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   15024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   15025   echo $ECHO_N "(cached) $ECHO_C" >&6
   15026 else
   15027   cat >"conftest.$ac_ext" <<_ACEOF
   15028 #line 15028 "configure"
   15029 #include "confdefs.h"
   15030 #include <$ac_header>
   15031 _ACEOF
   15032 if { (eval echo "$as_me:15032: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   15033   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   15034   ac_status=$?
   15035   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   15036   rm -f conftest.er1
   15037   cat conftest.err >&5
   15038   echo "$as_me:15038: \$? = $ac_status" >&5
   15039   (exit "$ac_status"); } >/dev/null; then
   15040   if test -s conftest.err; then
   15041     ac_cpp_err=$ac_c_preproc_warn_flag
   15042   else
   15043     ac_cpp_err=
   15044   fi
   15045 else
   15046   ac_cpp_err=yes
   15047 fi
   15048 if test -z "$ac_cpp_err"; then
   15049   eval "$as_ac_Header=yes"
   15050 else
   15051   echo "$as_me: failed program was:" >&5
   15052   cat "conftest.$ac_ext" >&5
   15053   eval "$as_ac_Header=no"
   15054 fi
   15055 rm -f conftest.err "conftest.$ac_ext"
   15056 fi
   15057 echo "$as_me:15057: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
   15058 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
   15059 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
   15060   cat >>confdefs.h <<EOF
   15061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   15062 EOF
   15063 
   15064 fi
   15065 done
   15066 
   15067 echo "$as_me:15067: checking for declaration of fd_set" >&5
   15068 echo $ECHO_N "checking for declaration of fd_set... $ECHO_C" >&6
   15069 if test "${cf_cv_type_fd_set+set}" = set; then
   15070   echo $ECHO_N "(cached) $ECHO_C" >&6
   15071 else
   15072 
   15073 echo "${as_me:-configure}:15073: testing sys/types alone ..." 1>&5
   15074 
   15075 cat >"conftest.$ac_ext" <<_ACEOF
   15076 #line 15076 "configure"
   15077 #include "confdefs.h"
   15078 
   15079 #include <sys/types.h>
   15080 int
   15081 main (void)
   15082 {
   15083 fd_set x; (void)x
   15084   ;
   15085   return 0;
   15086 }
   15087 _ACEOF
   15088 rm -f "conftest.$ac_objext"
   15089 if { (eval echo "$as_me:15089: \"$ac_compile\"") >&5
   15090   (eval $ac_compile) 2>&5
   15091   ac_status=$?
   15092   echo "$as_me:15092: \$? = $ac_status" >&5
   15093   (exit "$ac_status"); } &&
   15094          { ac_try='test -s "conftest.$ac_objext"'
   15095   { (eval echo "$as_me:15095: \"$ac_try\"") >&5
   15096   (eval $ac_try) 2>&5
   15097   ac_status=$?
   15098   echo "$as_me:15098: \$? = $ac_status" >&5
   15099   (exit "$ac_status"); }; }; then
   15100   cf_cv_type_fd_set=sys/types.h
   15101 else
   15102   echo "$as_me: failed program was:" >&5
   15103 cat "conftest.$ac_ext" >&5
   15104 
   15105 echo "${as_me:-configure}:15105: testing X11/Xpoll.h ..." 1>&5
   15106 
   15107 cat >"conftest.$ac_ext" <<_ACEOF
   15108 #line 15108 "configure"
   15109 #include "confdefs.h"
   15110 
   15111 #ifdef HAVE_X11_XPOLL_H
   15112 #include <X11/Xpoll.h>
   15113 #endif
   15114 int
   15115 main (void)
   15116 {
   15117 fd_set x; (void)x
   15118   ;
   15119   return 0;
   15120 }
   15121 _ACEOF
   15122 rm -f "conftest.$ac_objext"
   15123 if { (eval echo "$as_me:15123: \"$ac_compile\"") >&5
   15124   (eval $ac_compile) 2>&5
   15125   ac_status=$?
   15126   echo "$as_me:15126: \$? = $ac_status" >&5
   15127   (exit "$ac_status"); } &&
   15128          { ac_try='test -s "conftest.$ac_objext"'
   15129   { (eval echo "$as_me:15129: \"$ac_try\"") >&5
   15130   (eval $ac_try) 2>&5
   15131   ac_status=$?
   15132   echo "$as_me:15132: \$? = $ac_status" >&5
   15133   (exit "$ac_status"); }; }; then
   15134   cf_cv_type_fd_set=X11/Xpoll.h
   15135 else
   15136   echo "$as_me: failed program was:" >&5
   15137 cat "conftest.$ac_ext" >&5
   15138 
   15139 echo "${as_me:-configure}:15139: testing sys/select.h ..." 1>&5
   15140 
   15141 cat >"conftest.$ac_ext" <<_ACEOF
   15142 #line 15142 "configure"
   15143 #include "confdefs.h"
   15144 
   15145 #include <sys/types.h>
   15146 #include <sys/select.h>
   15147 int
   15148 main (void)
   15149 {
   15150 fd_set x; (void)x
   15151   ;
   15152   return 0;
   15153 }
   15154 _ACEOF
   15155 rm -f "conftest.$ac_objext"
   15156 if { (eval echo "$as_me:15156: \"$ac_compile\"") >&5
   15157   (eval $ac_compile) 2>&5
   15158   ac_status=$?
   15159   echo "$as_me:15159: \$? = $ac_status" >&5
   15160   (exit "$ac_status"); } &&
   15161          { ac_try='test -s "conftest.$ac_objext"'
   15162   { (eval echo "$as_me:15162: \"$ac_try\"") >&5
   15163   (eval $ac_try) 2>&5
   15164   ac_status=$?
   15165   echo "$as_me:15165: \$? = $ac_status" >&5
   15166   (exit "$ac_status"); }; }; then
   15167   cf_cv_type_fd_set=sys/select.h
   15168 else
   15169   echo "$as_me: failed program was:" >&5
   15170 cat "conftest.$ac_ext" >&5
   15171 cf_cv_type_fd_set=unknown
   15172 fi
   15173 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   15174 fi
   15175 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   15176 fi
   15177 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   15178 fi
   15179 echo "$as_me:15179: result: $cf_cv_type_fd_set" >&5
   15180 echo "${ECHO_T}$cf_cv_type_fd_set" >&6
   15181 if test $cf_cv_type_fd_set = sys/select.h ; then
   15182 
   15183 cat >>confdefs.h <<\EOF
   15184 #define USE_SYS_SELECT_H 1
   15185 EOF
   15186 
   15187 fi
   15188 
   15189 echo "$as_me:15189: checking for declaration of fd_mask" >&5
   15190 echo $ECHO_N "checking for declaration of fd_mask... $ECHO_C" >&6
   15191 if test "${cf_cv_type_fd_mask+set}" = set; then
   15192   echo $ECHO_N "(cached) $ECHO_C" >&6
   15193 else
   15194 
   15195     if test x$cf_cv_type_fd_set = xX11/Xpoll.h ; then
   15196         cat >"conftest.$ac_ext" <<_ACEOF
   15197 #line 15197 "configure"
   15198 #include "confdefs.h"
   15199 
   15200 #include <X11/Xpoll.h>
   15201 int
   15202 main (void)
   15203 {
   15204 fd_mask x
   15205   ;
   15206   return 0;
   15207 }
   15208 _ACEOF
   15209 rm -f "conftest.$ac_objext"
   15210 if { (eval echo "$as_me:15210: \"$ac_compile\"") >&5
   15211   (eval $ac_compile) 2>&5
   15212   ac_status=$?
   15213   echo "$as_me:15213: \$? = $ac_status" >&5
   15214   (exit "$ac_status"); } &&
   15215          { ac_try='test -s "conftest.$ac_objext"'
   15216   { (eval echo "$as_me:15216: \"$ac_try\"") >&5
   15217   (eval $ac_try) 2>&5
   15218   ac_status=$?
   15219   echo "$as_me:15219: \$? = $ac_status" >&5
   15220   (exit "$ac_status"); }; }; then
   15221   :
   15222 else
   15223   echo "$as_me: failed program was:" >&5
   15224 cat "conftest.$ac_ext" >&5
   15225 
   15226 echo "${as_me:-configure}:15226: testing if we must define CSRG_BASED ..." 1>&5
   15227 
   15228 # Xosdefs.h on Mac OS X may not define this (but it should).
   15229             cat >"conftest.$ac_ext" <<_ACEOF
   15230 #line 15230 "configure"
   15231 #include "confdefs.h"
   15232 
   15233 #define CSRG_BASED
   15234 #include <X11/Xpoll.h>
   15235 int
   15236 main (void)
   15237 {
   15238 fd_mask x
   15239   ;
   15240   return 0;
   15241 }
   15242 _ACEOF
   15243 rm -f "conftest.$ac_objext"
   15244 if { (eval echo "$as_me:15244: \"$ac_compile\"") >&5
   15245   (eval $ac_compile) 2>&5
   15246   ac_status=$?
   15247   echo "$as_me:15247: \$? = $ac_status" >&5
   15248   (exit "$ac_status"); } &&
   15249          { ac_try='test -s "conftest.$ac_objext"'
   15250   { (eval echo "$as_me:15250: \"$ac_try\"") >&5
   15251   (eval $ac_try) 2>&5
   15252   ac_status=$?
   15253   echo "$as_me:15253: \$? = $ac_status" >&5
   15254   (exit "$ac_status"); }; }; then
   15255   cf_cv_type_fd_mask=CSRG_BASED
   15256 else
   15257   echo "$as_me: failed program was:" >&5
   15258 cat "conftest.$ac_ext" >&5
   15259 fi
   15260 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   15261 fi
   15262 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   15263     else
   15264         cf_cv_type_fd_mask=$cf_cv_type_fd_set
   15265     fi
   15266 
   15267 fi
   15268 echo "$as_me:15268: result: $cf_cv_type_fd_mask" >&5
   15269 echo "${ECHO_T}$cf_cv_type_fd_mask" >&6
   15270 if test x$cf_cv_type_fd_mask = xCSRG_BASED ; then
   15271 
   15272 cat >>confdefs.h <<\EOF
   15273 #define CSRG_BASED 1
   15274 EOF
   15275 
   15276 fi
   15277 
   15278 echo "$as_me:15278: checking for IRIX 6.5 baud-rate redefinitions" >&5
   15279 echo $ECHO_N "checking for IRIX 6.5 baud-rate redefinitions... $ECHO_C" >&6
   15280 if test "${cf_cv_termio_c_ispeed+set}" = set; then
   15281   echo $ECHO_N "(cached) $ECHO_C" >&6
   15282 else
   15283 
   15284 cat >"conftest.$ac_ext" <<_ACEOF
   15285 #line 15285 "configure"
   15286 #include "confdefs.h"
   15287 
   15288 #include <sys/types.h>
   15289 #include <sys/termio.h>
   15290 int
   15291 main (void)
   15292 {
   15293 
   15294 struct termio foo;
   15295 foo.c_ispeed = B38400;
   15296 foo.c_ospeed = B9600;
   15297 (void)foo;
   15298 
   15299   ;
   15300   return 0;
   15301 }
   15302 _ACEOF
   15303 rm -f "conftest.$ac_objext"
   15304 if { (eval echo "$as_me:15304: \"$ac_compile\"") >&5
   15305   (eval $ac_compile) 2>&5
   15306   ac_status=$?
   15307   echo "$as_me:15307: \$? = $ac_status" >&5
   15308   (exit "$ac_status"); } &&
   15309          { ac_try='test -s "conftest.$ac_objext"'
   15310   { (eval echo "$as_me:15310: \"$ac_try\"") >&5
   15311   (eval $ac_try) 2>&5
   15312   ac_status=$?
   15313   echo "$as_me:15313: \$? = $ac_status" >&5
   15314   (exit "$ac_status"); }; }; then
   15315   cf_cv_termio_c_ispeed=yes
   15316 
   15317 else
   15318   echo "$as_me: failed program was:" >&5
   15319 cat "conftest.$ac_ext" >&5
   15320 cf_cv_termio_c_ispeed=no
   15321 fi
   15322 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   15323 
   15324 fi
   15325 echo "$as_me:15325: result: $cf_cv_termio_c_ispeed" >&5
   15326 echo "${ECHO_T}$cf_cv_termio_c_ispeed" >&6
   15327 test "$cf_cv_termio_c_ispeed" = yes &&
   15328 cat >>confdefs.h <<\EOF
   15329 #define HAVE_TERMIO_C_ISPEED 1
   15330 EOF
   15331 
   15332 echo "$as_me:15332: checking for termios type tcflag_t" >&5
   15333 echo $ECHO_N "checking for termios type tcflag_t... $ECHO_C" >&6
   15334 if test "${cf_cv_havetype_tcflag_t+set}" = set; then
   15335   echo $ECHO_N "(cached) $ECHO_C" >&6
   15336 else
   15337 
   15338 	cat >"conftest.$ac_ext" <<_ACEOF
   15339 #line 15339 "configure"
   15340 #include "confdefs.h"
   15341 #include <termios.h>
   15342 int
   15343 main (void)
   15344 {
   15345 
   15346 		tcflag_t x = 0; (void)x
   15347   ;
   15348   return 0;
   15349 }
   15350 _ACEOF
   15351 rm -f "conftest.$ac_objext"
   15352 if { (eval echo "$as_me:15352: \"$ac_compile\"") >&5
   15353   (eval $ac_compile) 2>&5
   15354   ac_status=$?
   15355   echo "$as_me:15355: \$? = $ac_status" >&5
   15356   (exit "$ac_status"); } &&
   15357          { ac_try='test -s "conftest.$ac_objext"'
   15358   { (eval echo "$as_me:15358: \"$ac_try\"") >&5
   15359   (eval $ac_try) 2>&5
   15360   ac_status=$?
   15361   echo "$as_me:15361: \$? = $ac_status" >&5
   15362   (exit "$ac_status"); }; }; then
   15363   cf_cv_havetype_tcflag_t=yes
   15364 else
   15365   echo "$as_me: failed program was:" >&5
   15366 cat "conftest.$ac_ext" >&5
   15367 cf_cv_havetype_tcflag_t=no
   15368 fi
   15369 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   15370 
   15371 fi
   15372 echo "$as_me:15372: result: $cf_cv_havetype_tcflag_t" >&5
   15373 echo "${ECHO_T}$cf_cv_havetype_tcflag_t" >&6
   15374 test "$cf_cv_havetype_tcflag_t" = no &&
   15375 cat >>confdefs.h <<\EOF
   15376 #define tcflag_t unsigned long
   15377 EOF
   15378 
   15379 echo "$as_me:15379: checking for termios type speed_t" >&5
   15380 echo $ECHO_N "checking for termios type speed_t... $ECHO_C" >&6
   15381 if test "${cf_cv_havetype_speed_t+set}" = set; then
   15382   echo $ECHO_N "(cached) $ECHO_C" >&6
   15383 else
   15384 
   15385 	cat >"conftest.$ac_ext" <<_ACEOF
   15386 #line 15386 "configure"
   15387 #include "confdefs.h"
   15388 #include <termios.h>
   15389 int
   15390 main (void)
   15391 {
   15392 
   15393 		speed_t x = 0; (void)x
   15394   ;
   15395   return 0;
   15396 }
   15397 _ACEOF
   15398 rm -f "conftest.$ac_objext"
   15399 if { (eval echo "$as_me:15399: \"$ac_compile\"") >&5
   15400   (eval $ac_compile) 2>&5
   15401   ac_status=$?
   15402   echo "$as_me:15402: \$? = $ac_status" >&5
   15403   (exit "$ac_status"); } &&
   15404          { ac_try='test -s "conftest.$ac_objext"'
   15405   { (eval echo "$as_me:15405: \"$ac_try\"") >&5
   15406   (eval $ac_try) 2>&5
   15407   ac_status=$?
   15408   echo "$as_me:15408: \$? = $ac_status" >&5
   15409   (exit "$ac_status"); }; }; then
   15410   cf_cv_havetype_speed_t=yes
   15411 else
   15412   echo "$as_me: failed program was:" >&5
   15413 cat "conftest.$ac_ext" >&5
   15414 cf_cv_havetype_speed_t=no
   15415 fi
   15416 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   15417 
   15418 fi
   15419 echo "$as_me:15419: result: $cf_cv_havetype_speed_t" >&5
   15420 echo "${ECHO_T}$cf_cv_havetype_speed_t" >&6
   15421 test "$cf_cv_havetype_speed_t" = no &&
   15422 cat >>confdefs.h <<\EOF
   15423 #define speed_t unsigned short
   15424 EOF
   15425 
   15426 echo "$as_me:15426: checking for termios type cc_t" >&5
   15427 echo $ECHO_N "checking for termios type cc_t... $ECHO_C" >&6
   15428 if test "${cf_cv_havetype_cc_t+set}" = set; then
   15429   echo $ECHO_N "(cached) $ECHO_C" >&6
   15430 else
   15431 
   15432 	cat >"conftest.$ac_ext" <<_ACEOF
   15433 #line 15433 "configure"
   15434 #include "confdefs.h"
   15435 #include <termios.h>
   15436 int
   15437 main (void)
   15438 {
   15439 
   15440 		cc_t x = 0; (void)x
   15441   ;
   15442   return 0;
   15443 }
   15444 _ACEOF
   15445 rm -f "conftest.$ac_objext"
   15446 if { (eval echo "$as_me:15446: \"$ac_compile\"") >&5
   15447   (eval $ac_compile) 2>&5
   15448   ac_status=$?
   15449   echo "$as_me:15449: \$? = $ac_status" >&5
   15450   (exit "$ac_status"); } &&
   15451          { ac_try='test -s "conftest.$ac_objext"'
   15452   { (eval echo "$as_me:15452: \"$ac_try\"") >&5
   15453   (eval $ac_try) 2>&5
   15454   ac_status=$?
   15455   echo "$as_me:15455: \$? = $ac_status" >&5
   15456   (exit "$ac_status"); }; }; then
   15457   cf_cv_havetype_cc_t=yes
   15458 else
   15459   echo "$as_me: failed program was:" >&5
   15460 cat "conftest.$ac_ext" >&5
   15461 cf_cv_havetype_cc_t=no
   15462 fi
   15463 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   15464 
   15465 fi
   15466 echo "$as_me:15466: result: $cf_cv_havetype_cc_t" >&5
   15467 echo "${ECHO_T}$cf_cv_havetype_cc_t" >&6
   15468 test "$cf_cv_havetype_cc_t" = no &&
   15469 cat >>confdefs.h <<\EOF
   15470 #define cc_t unsigned char
   15471 EOF
   15472 
   15473 # The Xcursor library is normally (weakly) linked via the X11 library rather
   15474 # than directly to applications.  xterm can select a cursor theme; users can
   15475 # also use environment variables to select cursor size.  We would only notice
   15476 # the library if there are development files for it.  Provide a way to disable
   15477 # the feature if it is unwanted.
   15478 echo "$as_me:15478: checking if we expect to use the Xcursor library" >&5
   15479 echo $ECHO_N "checking if we expect to use the Xcursor library... $ECHO_C" >&6
   15480 
   15481 # Check whether --enable-xcursor or --disable-xcursor was given.
   15482 if test "${enable_xcursor+set}" = set; then
   15483   enableval="$enable_xcursor"
   15484   test "$enableval" != no && enableval=yes
   15485 	if test "$enableval" != "yes" ; then
   15486     enable_xcursor=no
   15487 	else
   15488 		enable_xcursor=yes
   15489 	fi
   15490 else
   15491   enableval=yes
   15492 	enable_xcursor=yes
   15493 
   15494 fi;
   15495 echo "$as_me:15495: result: $enable_xcursor" >&5
   15496 echo "${ECHO_T}$enable_xcursor" >&6
   15497 if test "$enable_xcursor" = yes; then
   15498 
   15499 cat >>confdefs.h <<\EOF
   15500 #define HAVE_LIB_XCURSOR 1
   15501 EOF
   15502 
   15503 fi
   15504 
   15505 LIBS="$LIBS $X_EXTRA_LIBS"
   15506 
   15507 for ac_header in \
   15508 stropts.h \
   15509 
   15510 do
   15511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   15512 echo "$as_me:15512: checking for $ac_header" >&5
   15513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   15514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   15515   echo $ECHO_N "(cached) $ECHO_C" >&6
   15516 else
   15517   cat >"conftest.$ac_ext" <<_ACEOF
   15518 #line 15518 "configure"
   15519 #include "confdefs.h"
   15520 #include <$ac_header>
   15521 _ACEOF
   15522 if { (eval echo "$as_me:15522: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   15523   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   15524   ac_status=$?
   15525   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   15526   rm -f conftest.er1
   15527   cat conftest.err >&5
   15528   echo "$as_me:15528: \$? = $ac_status" >&5
   15529   (exit "$ac_status"); } >/dev/null; then
   15530   if test -s conftest.err; then
   15531     ac_cpp_err=$ac_c_preproc_warn_flag
   15532   else
   15533     ac_cpp_err=
   15534   fi
   15535 else
   15536   ac_cpp_err=yes
   15537 fi
   15538 if test -z "$ac_cpp_err"; then
   15539   eval "$as_ac_Header=yes"
   15540 else
   15541   echo "$as_me: failed program was:" >&5
   15542   cat "conftest.$ac_ext" >&5
   15543   eval "$as_ac_Header=no"
   15544 fi
   15545 rm -f conftest.err "conftest.$ac_ext"
   15546 fi
   15547 echo "$as_me:15547: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
   15548 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
   15549 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
   15550   cat >>confdefs.h <<EOF
   15551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   15552 EOF
   15553 
   15554 fi
   15555 done
   15556 
   15557 cf_func_grantpt="grantpt ptsname"
   15558 cf_prefer_openpt=no
   15559 case $host_os in
   15560 (darwin[0-9].*)
   15561 	;;
   15562 (openbsd[0-9].*)
   15563 	# The POSIX entrypoints exist, but have never worked.
   15564 	;;
   15565 (linux*)
   15566 	cf_func_grantpt="$cf_func_grantpt posix_openpt"
   15567 	cf_prefer_openpt=yes
   15568 	;;
   15569 (*)
   15570 	cf_func_grantpt="$cf_func_grantpt posix_openpt"
   15571 	;;
   15572 esac
   15573 
   15574 for ac_func in $cf_func_grantpt
   15575 do
   15576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15577 echo "$as_me:15577: checking for $ac_func" >&5
   15578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   15579 if eval "test \"\${$as_ac_var+set}\" = set"; then
   15580   echo $ECHO_N "(cached) $ECHO_C" >&6
   15581 else
   15582   cat >"conftest.$ac_ext" <<_ACEOF
   15583 #line 15583 "configure"
   15584 #include "confdefs.h"
   15585 #define $ac_func autoconf_temporary
   15586 #include <limits.h>	/* least-intrusive standard header which defines gcc2 __stub macros */
   15587 #undef $ac_func
   15588 
   15589 #ifdef __cplusplus
   15590 extern "C"
   15591 #endif
   15592 
   15593 /* We use char because int might match the return type of a gcc2
   15594    builtin and then its argument prototype would still apply.  */
   15595 char $ac_func (void);
   15596 
   15597 int
   15598 main (void)
   15599 {
   15600 
   15601 /* The GNU C library defines stubs for functions which it implements
   15602     to always fail with ENOSYS.  Some functions are actually named
   15603     something starting with __ and the normal name is an alias.  */
   15604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   15605 #error found stub for $ac_func
   15606 #endif
   15607 
   15608 	return $ac_func ();
   15609   ;
   15610   return 0;
   15611 }
   15612 _ACEOF
   15613 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   15614 if { (eval echo "$as_me:15614: \"$ac_link\"") >&5
   15615   (eval $ac_link) 2>&5
   15616   ac_status=$?
   15617   echo "$as_me:15617: \$? = $ac_status" >&5
   15618   (exit "$ac_status"); } &&
   15619          { ac_try='test -s "conftest$ac_exeext"'
   15620   { (eval echo "$as_me:15620: \"$ac_try\"") >&5
   15621   (eval $ac_try) 2>&5
   15622   ac_status=$?
   15623   echo "$as_me:15623: \$? = $ac_status" >&5
   15624   (exit "$ac_status"); }; }; then
   15625   eval "$as_ac_var=yes"
   15626 else
   15627   echo "$as_me: failed program was:" >&5
   15628 cat "conftest.$ac_ext" >&5
   15629 eval "$as_ac_var=no"
   15630 fi
   15631 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   15632 fi
   15633 echo "$as_me:15633: result: `eval echo '${'"$as_ac_var"'}'`" >&5
   15634 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
   15635 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
   15636   cat >>confdefs.h <<EOF
   15637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15638 EOF
   15639 
   15640 fi
   15641 done
   15642 
   15643 cf_grantpt_opts=
   15644 if test "x$ac_cv_func_grantpt" = "xyes" ; then
   15645 	echo "$as_me:15645: checking if grantpt really works" >&5
   15646 echo $ECHO_N "checking if grantpt really works... $ECHO_C" >&6
   15647 	cat >"conftest.$ac_ext" <<_ACEOF
   15648 #line 15648 "configure"
   15649 #include "confdefs.h"
   15650 
   15651 #include <stdlib.h>
   15652 #include <stdio.h>
   15653 #include <termios.h>
   15654 #include <unistd.h>
   15655 #include <signal.h>
   15656 #include <fcntl.h>
   15657 #include <errno.h>
   15658 
   15659 #ifndef HAVE_POSIX_OPENPT
   15660 #undef posix_openpt
   15661 #define posix_openpt(mode) open("/dev/ptmx", mode)
   15662 #endif
   15663 
   15664 #ifdef HAVE_STROPTS_H
   15665 #include <stropts.h>
   15666 #endif
   15667 
   15668 static void failed(int code)
   15669 {
   15670 	perror("conftest");
   15671 	exit(code);
   15672 }
   15673 
   15674 static void my_timeout(int sig)
   15675 {
   15676 	(void)sig;
   15677 	exit(99);
   15678 }
   15679 
   15680 int
   15681 main (void)
   15682 {
   15683 
   15684 	int code = 0;
   15685 	int pty;
   15686 	int tty;
   15687 	char *slave;
   15688 	struct termios tio;
   15689 
   15690 	(void)tio;
   15691 	signal(SIGALRM, my_timeout);
   15692 
   15693 	if (alarm(2) == 9)
   15694 		failed(9);
   15695 	else if ((pty = posix_openpt(O_RDWR)) < 0)
   15696 		failed(1);
   15697 	else if (grantpt(pty) < 0)
   15698 		failed(2);
   15699 	else if (unlockpt(pty) < 0)
   15700 		failed(3);
   15701 	else if ((slave = ptsname(pty)) == 0)
   15702 		failed(4);
   15703 #if (CONFTEST == 3) || defined(CONFTEST_isatty)
   15704 	else if (!isatty(pty))
   15705 		failed(4);
   15706 #endif
   15707 #if CONFTEST >= 4
   15708     else if (tcgetattr(pty, &tio) < 0)
   15709 		failed(20);
   15710     else if (tcsetattr(pty, TCSAFLUSH, &tio) < 0)
   15711 		failed(21);
   15712 #endif
   15713 	/* BSD posix_openpt does not treat pty as a terminal until slave is opened.
   15714 	 * Linux does treat it that way.
   15715 	 */
   15716 	else if ((tty = open(slave, O_RDWR)) < 0)
   15717 		failed(5);
   15718 #ifdef CONFTEST
   15719 #ifdef I_PUSH
   15720 #if (CONFTEST == 0) || defined(CONFTEST_ptem)
   15721     else if (ioctl(tty, I_PUSH, "ptem") < 0)
   15722 		failed(10);
   15723 #endif
   15724 #if (CONFTEST == 1) || defined(CONFTEST_ldterm)
   15725     else if (ioctl(tty, I_PUSH, "ldterm") < 0)
   15726 		failed(11);
   15727 #endif
   15728 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat)
   15729     else if (ioctl(tty, I_PUSH, "ttcompat") < 0)
   15730 		failed(12);
   15731 #endif
   15732 #endif /* I_PUSH */
   15733 #if CONFTEST >= 5
   15734     else if (tcgetattr(tty, &tio) < 0)
   15735 		failed(30);
   15736     else if (tcsetattr(tty, TCSAFLUSH, &tio) < 0)
   15737 		failed(31);
   15738 #endif
   15739 #endif /* CONFTEST */
   15740     (void) tty;
   15741 	${cf_cv_main_return:-return}(code);
   15742 
   15743   ;
   15744   return 0;
   15745 }
   15746 _ACEOF
   15747 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   15748 if { (eval echo "$as_me:15748: \"$ac_link\"") >&5
   15749   (eval $ac_link) 2>&5
   15750   ac_status=$?
   15751   echo "$as_me:15751: \$? = $ac_status" >&5
   15752   (exit "$ac_status"); } &&
   15753          { ac_try='test -s "conftest$ac_exeext"'
   15754   { (eval echo "$as_me:15754: \"$ac_try\"") >&5
   15755   (eval $ac_try) 2>&5
   15756   ac_status=$?
   15757   echo "$as_me:15757: \$? = $ac_status" >&5
   15758   (exit "$ac_status"); }; }; then
   15759 
   15760 	if test "$cross_compiling" = yes; then
   15761   ac_cv_func_grantpt=maybe
   15762 else
   15763   cat >"conftest.$ac_ext" <<_ACEOF
   15764 #line 15764 "configure"
   15765 #include "confdefs.h"
   15766 
   15767 #include <stdlib.h>
   15768 #include <stdio.h>
   15769 #include <termios.h>
   15770 #include <unistd.h>
   15771 #include <signal.h>
   15772 #include <fcntl.h>
   15773 #include <errno.h>
   15774 
   15775 #ifndef HAVE_POSIX_OPENPT
   15776 #undef posix_openpt
   15777 #define posix_openpt(mode) open("/dev/ptmx", mode)
   15778 #endif
   15779 
   15780 #ifdef HAVE_STROPTS_H
   15781 #include <stropts.h>
   15782 #endif
   15783 
   15784 static void failed(int code)
   15785 {
   15786 	perror("conftest");
   15787 	exit(code);
   15788 }
   15789 
   15790 static void my_timeout(int sig)
   15791 {
   15792 	(void)sig;
   15793 	exit(99);
   15794 }
   15795 
   15796 int main(void)
   15797 {
   15798 
   15799 	int code = 0;
   15800 	int pty;
   15801 	int tty;
   15802 	char *slave;
   15803 	struct termios tio;
   15804 
   15805 	(void)tio;
   15806 	signal(SIGALRM, my_timeout);
   15807 
   15808 	if (alarm(2) == 9)
   15809 		failed(9);
   15810 	else if ((pty = posix_openpt(O_RDWR)) < 0)
   15811 		failed(1);
   15812 	else if (grantpt(pty) < 0)
   15813 		failed(2);
   15814 	else if (unlockpt(pty) < 0)
   15815 		failed(3);
   15816 	else if ((slave = ptsname(pty)) == 0)
   15817 		failed(4);
   15818 #if (CONFTEST == 3) || defined(CONFTEST_isatty)
   15819 	else if (!isatty(pty))
   15820 		failed(4);
   15821 #endif
   15822 #if CONFTEST >= 4
   15823     else if (tcgetattr(pty, &tio) < 0)
   15824 		failed(20);
   15825     else if (tcsetattr(pty, TCSAFLUSH, &tio) < 0)
   15826 		failed(21);
   15827 #endif
   15828 	/* BSD posix_openpt does not treat pty as a terminal until slave is opened.
   15829 	 * Linux does treat it that way.
   15830 	 */
   15831 	else if ((tty = open(slave, O_RDWR)) < 0)
   15832 		failed(5);
   15833 #ifdef CONFTEST
   15834 #ifdef I_PUSH
   15835 #if (CONFTEST == 0) || defined(CONFTEST_ptem)
   15836     else if (ioctl(tty, I_PUSH, "ptem") < 0)
   15837 		failed(10);
   15838 #endif
   15839 #if (CONFTEST == 1) || defined(CONFTEST_ldterm)
   15840     else if (ioctl(tty, I_PUSH, "ldterm") < 0)
   15841 		failed(11);
   15842 #endif
   15843 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat)
   15844     else if (ioctl(tty, I_PUSH, "ttcompat") < 0)
   15845 		failed(12);
   15846 #endif
   15847 #endif /* I_PUSH */
   15848 #if CONFTEST >= 5
   15849     else if (tcgetattr(tty, &tio) < 0)
   15850 		failed(30);
   15851     else if (tcsetattr(tty, TCSAFLUSH, &tio) < 0)
   15852 		failed(31);
   15853 #endif
   15854 #endif /* CONFTEST */
   15855     (void) tty;
   15856 	${cf_cv_main_return:-return}(code);
   15857 
   15858 }
   15859 
   15860 _ACEOF
   15861 rm -f "conftest$ac_exeext"
   15862 if { (eval echo "$as_me:15862: \"$ac_link\"") >&5
   15863   (eval $ac_link) 2>&5
   15864   ac_status=$?
   15865   echo "$as_me:15865: \$? = $ac_status" >&5
   15866   (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
   15867   { (eval echo "$as_me:15867: \"$ac_try\"") >&5
   15868   (eval $ac_try) 2>&5
   15869   ac_status=$?
   15870   echo "$as_me:15870: \$? = $ac_status" >&5
   15871   (exit "$ac_status"); }; }; then
   15872   :
   15873 else
   15874   echo "$as_me: program exited with status $ac_status" >&5
   15875 echo "$as_me: failed program was:" >&5
   15876 cat "conftest.$ac_ext" >&5
   15877 ac_cv_func_grantpt=no
   15878 
   15879 fi
   15880 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
   15881 fi
   15882 
   15883 else
   15884   echo "$as_me: failed program was:" >&5
   15885 cat "conftest.$ac_ext" >&5
   15886 ac_cv_func_grantpt=no
   15887 fi
   15888 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   15889 	echo "$as_me:15889: result: $ac_cv_func_grantpt" >&5
   15890 echo "${ECHO_T}$ac_cv_func_grantpt" >&6
   15891 
   15892 	if test "x$ac_cv_func_grantpt" != "xno" ; then
   15893 
   15894 		if test "x$ac_cv_func_grantpt" = "xyes" ; then
   15895 			echo "$as_me:15895: checking for pty features" >&5
   15896 echo $ECHO_N "checking for pty features... $ECHO_C" >&6
   15897 			if test "x$ac_cv_header_stropts_h" = xyes
   15898 			then
   15899 				cf_pty_this=0
   15900 			else
   15901 				cf_pty_this=3
   15902 			fi
   15903 
   15904 			cf_pty_defines=
   15905 			while test $cf_pty_this != 6
   15906 			do
   15907 
   15908 				cf_pty_feature=
   15909 				cf_pty_next="`expr $cf_pty_this + 1`"
   15910 
   15911 echo "${as_me:-configure}:15911: testing pty feature test $cf_pty_next:5 ..." 1>&5
   15912 
   15913 				if test "$cross_compiling" = yes; then
   15914   { { echo "$as_me:15914: error: cannot run test program while cross compiling" >&5
   15915 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   15916    { (exit 1); exit 1; }; }
   15917 else
   15918   cat >"conftest.$ac_ext" <<_ACEOF
   15919 #line 15919 "configure"
   15920 #include "confdefs.h"
   15921 #define CONFTEST $cf_pty_this
   15922 $cf_pty_defines
   15923 
   15924 #include <stdlib.h>
   15925 #include <stdio.h>
   15926 #include <termios.h>
   15927 #include <unistd.h>
   15928 #include <signal.h>
   15929 #include <fcntl.h>
   15930 #include <errno.h>
   15931 
   15932 #ifndef HAVE_POSIX_OPENPT
   15933 #undef posix_openpt
   15934 #define posix_openpt(mode) open("/dev/ptmx", mode)
   15935 #endif
   15936 
   15937 #ifdef HAVE_STROPTS_H
   15938 #include <stropts.h>
   15939 #endif
   15940 
   15941 static void failed(int code)
   15942 {
   15943 	perror("conftest");
   15944 	exit(code);
   15945 }
   15946 
   15947 static void my_timeout(int sig)
   15948 {
   15949 	(void)sig;
   15950 	exit(99);
   15951 }
   15952 
   15953 int main(void)
   15954 {
   15955 
   15956 	int code = 0;
   15957 	int pty;
   15958 	int tty;
   15959 	char *slave;
   15960 	struct termios tio;
   15961 
   15962 	(void)tio;
   15963 	signal(SIGALRM, my_timeout);
   15964 
   15965 	if (alarm(2) == 9)
   15966 		failed(9);
   15967 	else if ((pty = posix_openpt(O_RDWR)) < 0)
   15968 		failed(1);
   15969 	else if (grantpt(pty) < 0)
   15970 		failed(2);
   15971 	else if (unlockpt(pty) < 0)
   15972 		failed(3);
   15973 	else if ((slave = ptsname(pty)) == 0)
   15974 		failed(4);
   15975 #if (CONFTEST == 3) || defined(CONFTEST_isatty)
   15976 	else if (!isatty(pty))
   15977 		failed(4);
   15978 #endif
   15979 #if CONFTEST >= 4
   15980     else if (tcgetattr(pty, &tio) < 0)
   15981 		failed(20);
   15982     else if (tcsetattr(pty, TCSAFLUSH, &tio) < 0)
   15983 		failed(21);
   15984 #endif
   15985 	/* BSD posix_openpt does not treat pty as a terminal until slave is opened.
   15986 	 * Linux does treat it that way.
   15987 	 */
   15988 	else if ((tty = open(slave, O_RDWR)) < 0)
   15989 		failed(5);
   15990 #ifdef CONFTEST
   15991 #ifdef I_PUSH
   15992 #if (CONFTEST == 0) || defined(CONFTEST_ptem)
   15993     else if (ioctl(tty, I_PUSH, "ptem") < 0)
   15994 		failed(10);
   15995 #endif
   15996 #if (CONFTEST == 1) || defined(CONFTEST_ldterm)
   15997     else if (ioctl(tty, I_PUSH, "ldterm") < 0)
   15998 		failed(11);
   15999 #endif
   16000 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat)
   16001     else if (ioctl(tty, I_PUSH, "ttcompat") < 0)
   16002 		failed(12);
   16003 #endif
   16004 #endif /* I_PUSH */
   16005 #if CONFTEST >= 5
   16006     else if (tcgetattr(tty, &tio) < 0)
   16007 		failed(30);
   16008     else if (tcsetattr(tty, TCSAFLUSH, &tio) < 0)
   16009 		failed(31);
   16010 #endif
   16011 #endif /* CONFTEST */
   16012     (void) tty;
   16013 	${cf_cv_main_return:-return}(code);
   16014 
   16015 }
   16016 
   16017 _ACEOF
   16018 rm -f "conftest$ac_exeext"
   16019 if { (eval echo "$as_me:16019: \"$ac_link\"") >&5
   16020   (eval $ac_link) 2>&5
   16021   ac_status=$?
   16022   echo "$as_me:16022: \$? = $ac_status" >&5
   16023   (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
   16024   { (eval echo "$as_me:16024: \"$ac_try\"") >&5
   16025   (eval $ac_try) 2>&5
   16026   ac_status=$?
   16027   echo "$as_me:16027: \$? = $ac_status" >&5
   16028   (exit "$ac_status"); }; }; then
   16029 
   16030 				case $cf_pty_next in
   16031 				(1) # - streams
   16032 					cf_pty_feature=ptem
   16033 					;;
   16034 				(2) # - streams
   16035 					cf_pty_feature=ldterm
   16036 					;;
   16037 				(3) # - streams
   16038 					cf_pty_feature=ttcompat
   16039 					;;
   16040 				(4)
   16041 					cf_pty_feature=pty_isatty
   16042 					;;
   16043 				(5)
   16044 					cf_pty_feature=pty_tcsetattr
   16045 					;;
   16046 				(6)
   16047 					cf_pty_feature=tty_tcsetattr
   16048 					;;
   16049 				esac
   16050 
   16051 else
   16052   echo "$as_me: program exited with status $ac_status" >&5
   16053 echo "$as_me: failed program was:" >&5
   16054 cat "conftest.$ac_ext" >&5
   16055 
   16056 				case $cf_pty_next in
   16057 				(1|2|3)
   16058 
   16059 echo "${as_me:-configure}:16059: testing skipping remaining streams features $cf_pty_this..2 ..." 1>&5
   16060 
   16061 					cf_pty_next=3
   16062 					;;
   16063 				esac
   16064 
   16065 fi
   16066 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
   16067 fi
   16068 				if test -n "$cf_pty_feature"
   16069 				then
   16070 					cf_pty_defines="$cf_pty_defines
   16071 #define CONFTEST_$cf_pty_feature 1
   16072 "
   16073 					cf_grantpt_opts="$cf_grantpt_opts $cf_pty_feature"
   16074 				fi
   16075 
   16076 				cf_pty_this=$cf_pty_next
   16077 			done
   16078 			echo "$as_me:16078: result: $cf_grantpt_opts" >&5
   16079 echo "${ECHO_T}$cf_grantpt_opts" >&6
   16080 			cf_grantpt_opts=`echo "$cf_grantpt_opts" | sed -e 's/ isatty//'`
   16081 		fi
   16082 	fi
   16083 fi
   16084 
   16085 if test "x$cf_prefer_posix_openpt" = "xyes" && test "x$ac_cv_func_posix_openpt" = "xyes" ; then
   16086 	test -n "$verbose" && echo "	prefer posix_openpt over openpty" 1>&6
   16087 
   16088 echo "${as_me:-configure}:16088: testing prefer posix_openpt over openpty ..." 1>&5
   16089 
   16090 elif test "x$disable_openpty" != "xyes" || test -z "$cf_grantpt_opts" ; then
   16091 	echo "$as_me:16091: checking for openpty in -lutil" >&5
   16092 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
   16093 if test "${ac_cv_lib_util_openpty+set}" = set; then
   16094   echo $ECHO_N "(cached) $ECHO_C" >&6
   16095 else
   16096   ac_check_lib_save_LIBS=$LIBS
   16097 LIBS="-lutil  $LIBS"
   16098 cat >"conftest.$ac_ext" <<_ACEOF
   16099 #line 16099 "configure"
   16100 #include "confdefs.h"
   16101 
   16102 /* Override any gcc2 internal prototype to avoid an error.  */
   16103 #ifdef __cplusplus
   16104 extern "C"
   16105 #endif
   16106 /* We use char because int might match the return type of a gcc2
   16107    builtin and then its argument prototype would still apply.  */
   16108 char openpty ();
   16109 int
   16110 main (void)
   16111 {
   16112 openpty ();
   16113   ;
   16114   return 0;
   16115 }
   16116 _ACEOF
   16117 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   16118 if { (eval echo "$as_me:16118: \"$ac_link\"") >&5
   16119   (eval $ac_link) 2>&5
   16120   ac_status=$?
   16121   echo "$as_me:16121: \$? = $ac_status" >&5
   16122   (exit "$ac_status"); } &&
   16123          { ac_try='test -s "conftest$ac_exeext"'
   16124   { (eval echo "$as_me:16124: \"$ac_try\"") >&5
   16125   (eval $ac_try) 2>&5
   16126   ac_status=$?
   16127   echo "$as_me:16127: \$? = $ac_status" >&5
   16128   (exit "$ac_status"); }; }; then
   16129   ac_cv_lib_util_openpty=yes
   16130 else
   16131   echo "$as_me: failed program was:" >&5
   16132 cat "conftest.$ac_ext" >&5
   16133 ac_cv_lib_util_openpty=no
   16134 fi
   16135 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   16136 LIBS=$ac_check_lib_save_LIBS
   16137 fi
   16138 echo "$as_me:16138: result: $ac_cv_lib_util_openpty" >&5
   16139 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
   16140 if test "$ac_cv_lib_util_openpty" = yes; then
   16141   cf_have_openpty=yes
   16142 else
   16143   cf_have_openpty=no
   16144 fi
   16145 
   16146 	if test "$cf_have_openpty" = yes ; then
   16147 		ac_cv_func_grantpt=no
   16148 		LIBS="-lutil $LIBS"
   16149 
   16150 cat >>confdefs.h <<\EOF
   16151 #define HAVE_OPENPTY 1
   16152 EOF
   16153 
   16154 for ac_header in \
   16155 			util.h \
   16156 			libutil.h \
   16157 			pty.h \
   16158 
   16159 do
   16160 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16161 echo "$as_me:16161: checking for $ac_header" >&5
   16162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   16163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   16164   echo $ECHO_N "(cached) $ECHO_C" >&6
   16165 else
   16166   cat >"conftest.$ac_ext" <<_ACEOF
   16167 #line 16167 "configure"
   16168 #include "confdefs.h"
   16169 #include <$ac_header>
   16170 _ACEOF
   16171 if { (eval echo "$as_me:16171: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   16172   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   16173   ac_status=$?
   16174   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   16175   rm -f conftest.er1
   16176   cat conftest.err >&5
   16177   echo "$as_me:16177: \$? = $ac_status" >&5
   16178   (exit "$ac_status"); } >/dev/null; then
   16179   if test -s conftest.err; then
   16180     ac_cpp_err=$ac_c_preproc_warn_flag
   16181   else
   16182     ac_cpp_err=
   16183   fi
   16184 else
   16185   ac_cpp_err=yes
   16186 fi
   16187 if test -z "$ac_cpp_err"; then
   16188   eval "$as_ac_Header=yes"
   16189 else
   16190   echo "$as_me: failed program was:" >&5
   16191   cat "conftest.$ac_ext" >&5
   16192   eval "$as_ac_Header=no"
   16193 fi
   16194 rm -f conftest.err "conftest.$ac_ext"
   16195 fi
   16196 echo "$as_me:16196: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
   16197 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
   16198 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
   16199   cat >>confdefs.h <<EOF
   16200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16201 EOF
   16202 
   16203 fi
   16204 done
   16205 
   16206 	fi
   16207 fi
   16208 
   16209 if test "x$ac_cv_func_grantpt" != xno
   16210 then
   16211 	test -n "$verbose" && echo "	will rely upon grantpt" 1>&6
   16212 
   16213 echo "${as_me:-configure}:16213: testing will rely upon grantpt ..." 1>&5
   16214 
   16215 cat >>confdefs.h <<\EOF
   16216 #define HAVE_WORKING_GRANTPT 1
   16217 EOF
   16218 
   16219 	for cf_feature in $cf_grantpt_opts
   16220 	do
   16221 		cf_feature=`echo "$cf_feature" | sed -e 's/ //g'`
   16222 
   16223 cf_FEATURE=`echo "$cf_feature" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   16224 
   16225 		cat >>confdefs.h <<EOF
   16226 #define HAVE_GRANTPT_$cf_FEATURE 1
   16227 EOF
   16228 
   16229 	done
   16230 elif test "x$cf_have_openpty" = xno
   16231 then
   16232 	test -n "$verbose" && echo "	will rely upon BSD-pseudoterminals" 1>&6
   16233 
   16234 echo "${as_me:-configure}:16234: testing will rely upon BSD-pseudoterminals ..." 1>&5
   16235 
   16236 else
   16237 	test -n "$verbose" && echo "	will rely upon openpty" 1>&6
   16238 
   16239 echo "${as_me:-configure}:16239: testing will rely upon openpty ..." 1>&5
   16240 
   16241 fi
   16242 
   16243 echo "$as_me:16243: checking if we can use XkbQueryExtension" >&5
   16244 echo $ECHO_N "checking if we can use XkbQueryExtension... $ECHO_C" >&6
   16245 if test "${cf_cv_xkb_query_extension+set}" = set; then
   16246   echo $ECHO_N "(cached) $ECHO_C" >&6
   16247 else
   16248 
   16249 cat >"conftest.$ac_ext" <<_ACEOF
   16250 #line 16250 "configure"
   16251 #include "confdefs.h"
   16252 
   16253 #include <X11/Xlib.h>
   16254 #include <X11/extensions/XKB.h>
   16255 #include <X11/XKBlib.h>
   16256 
   16257 int
   16258 main (void)
   16259 {
   16260 
   16261 	int xkbmajor = XkbMajorVersion;
   16262 	int xkbminor = XkbMinorVersion;
   16263 	int xkbopcode, xkbevent, xkberror;
   16264 
   16265 	if (XkbLibraryVersion(&xkbmajor, &xkbminor)
   16266 	    && XkbQueryExtension((Display *)0,
   16267 				 &xkbopcode,
   16268 				 &xkbevent,
   16269 				 &xkberror,
   16270 				 &xkbmajor,
   16271 				 &xkbminor))
   16272 		 return 0;
   16273 
   16274   ;
   16275   return 0;
   16276 }
   16277 _ACEOF
   16278 rm -f "conftest.$ac_objext"
   16279 if { (eval echo "$as_me:16279: \"$ac_compile\"") >&5
   16280   (eval $ac_compile) 2>&5
   16281   ac_status=$?
   16282   echo "$as_me:16282: \$? = $ac_status" >&5
   16283   (exit "$ac_status"); } &&
   16284          { ac_try='test -s "conftest.$ac_objext"'
   16285   { (eval echo "$as_me:16285: \"$ac_try\"") >&5
   16286   (eval $ac_try) 2>&5
   16287   ac_status=$?
   16288   echo "$as_me:16288: \$? = $ac_status" >&5
   16289   (exit "$ac_status"); }; }; then
   16290 
   16291 cf_cv_xkb_query_extension=yes
   16292 
   16293 else
   16294   echo "$as_me: failed program was:" >&5
   16295 cat "conftest.$ac_ext" >&5
   16296 
   16297 cf_cv_xkb_query_extension=no
   16298 
   16299 fi
   16300 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   16301 
   16302 fi
   16303 echo "$as_me:16303: result: $cf_cv_xkb_query_extension" >&5
   16304 echo "${ECHO_T}$cf_cv_xkb_query_extension" >&6
   16305 
   16306 if test $cf_cv_xkb_query_extension = yes
   16307 then
   16308 
   16309 for ac_func in XkbQueryExtension
   16310 do
   16311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16312 echo "$as_me:16312: checking for $ac_func" >&5
   16313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   16314 if eval "test \"\${$as_ac_var+set}\" = set"; then
   16315   echo $ECHO_N "(cached) $ECHO_C" >&6
   16316 else
   16317   cat >"conftest.$ac_ext" <<_ACEOF
   16318 #line 16318 "configure"
   16319 #include "confdefs.h"
   16320 #define $ac_func autoconf_temporary
   16321 #include <limits.h>	/* least-intrusive standard header which defines gcc2 __stub macros */
   16322 #undef $ac_func
   16323 
   16324 #ifdef __cplusplus
   16325 extern "C"
   16326 #endif
   16327 
   16328 /* We use char because int might match the return type of a gcc2
   16329    builtin and then its argument prototype would still apply.  */
   16330 char $ac_func (void);
   16331 
   16332 int
   16333 main (void)
   16334 {
   16335 
   16336 /* The GNU C library defines stubs for functions which it implements
   16337     to always fail with ENOSYS.  Some functions are actually named
   16338     something starting with __ and the normal name is an alias.  */
   16339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   16340 #error found stub for $ac_func
   16341 #endif
   16342 
   16343 	return $ac_func ();
   16344   ;
   16345   return 0;
   16346 }
   16347 _ACEOF
   16348 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   16349 if { (eval echo "$as_me:16349: \"$ac_link\"") >&5
   16350   (eval $ac_link) 2>&5
   16351   ac_status=$?
   16352   echo "$as_me:16352: \$? = $ac_status" >&5
   16353   (exit "$ac_status"); } &&
   16354          { ac_try='test -s "conftest$ac_exeext"'
   16355   { (eval echo "$as_me:16355: \"$ac_try\"") >&5
   16356   (eval $ac_try) 2>&5
   16357   ac_status=$?
   16358   echo "$as_me:16358: \$? = $ac_status" >&5
   16359   (exit "$ac_status"); }; }; then
   16360   eval "$as_ac_var=yes"
   16361 else
   16362   echo "$as_me: failed program was:" >&5
   16363 cat "conftest.$ac_ext" >&5
   16364 eval "$as_ac_var=no"
   16365 fi
   16366 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   16367 fi
   16368 echo "$as_me:16368: result: `eval echo '${'"$as_ac_var"'}'`" >&5
   16369 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
   16370 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
   16371   cat >>confdefs.h <<EOF
   16372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16373 EOF
   16374 
   16375 fi
   16376 done
   16377 
   16378 fi
   16379 
   16380 echo "$as_me:16380: checking if we can use XkbKeycodeToKeysym" >&5
   16381 echo $ECHO_N "checking if we can use XkbKeycodeToKeysym... $ECHO_C" >&6
   16382 if test "${cf_cv_xkb_keycode_to_keysym+set}" = set; then
   16383   echo $ECHO_N "(cached) $ECHO_C" >&6
   16384 else
   16385 
   16386 cat >"conftest.$ac_ext" <<_ACEOF
   16387 #line 16387 "configure"
   16388 #include "confdefs.h"
   16389 
   16390 #include <X11/Xlib.h>
   16391 #include <X11/XKBlib.h>
   16392 
   16393 int
   16394 main (void)
   16395 {
   16396 
   16397     KeySym keysym = XkbKeycodeToKeysym((Display *)0, 0, 0, 0);
   16398 	(void)keysym;
   16399 
   16400   ;
   16401   return 0;
   16402 }
   16403 _ACEOF
   16404 rm -f "conftest.$ac_objext"
   16405 if { (eval echo "$as_me:16405: \"$ac_compile\"") >&5
   16406   (eval $ac_compile) 2>&5
   16407   ac_status=$?
   16408   echo "$as_me:16408: \$? = $ac_status" >&5
   16409   (exit "$ac_status"); } &&
   16410          { ac_try='test -s "conftest.$ac_objext"'
   16411   { (eval echo "$as_me:16411: \"$ac_try\"") >&5
   16412   (eval $ac_try) 2>&5
   16413   ac_status=$?
   16414   echo "$as_me:16414: \$? = $ac_status" >&5
   16415   (exit "$ac_status"); }; }; then
   16416 
   16417 cf_cv_xkb_keycode_to_keysym=yes
   16418 
   16419 else
   16420   echo "$as_me: failed program was:" >&5
   16421 cat "conftest.$ac_ext" >&5
   16422 
   16423 cf_cv_xkb_keycode_to_keysym=no
   16424 
   16425 fi
   16426 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   16427 
   16428 fi
   16429 echo "$as_me:16429: result: $cf_cv_xkb_keycode_to_keysym" >&5
   16430 echo "${ECHO_T}$cf_cv_xkb_keycode_to_keysym" >&6
   16431 
   16432 if test $cf_cv_xkb_keycode_to_keysym = yes
   16433 then
   16434 
   16435 for ac_func in XkbKeycodeToKeysym
   16436 do
   16437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16438 echo "$as_me:16438: checking for $ac_func" >&5
   16439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   16440 if eval "test \"\${$as_ac_var+set}\" = set"; then
   16441   echo $ECHO_N "(cached) $ECHO_C" >&6
   16442 else
   16443   cat >"conftest.$ac_ext" <<_ACEOF
   16444 #line 16444 "configure"
   16445 #include "confdefs.h"
   16446 #define $ac_func autoconf_temporary
   16447 #include <limits.h>	/* least-intrusive standard header which defines gcc2 __stub macros */
   16448 #undef $ac_func
   16449 
   16450 #ifdef __cplusplus
   16451 extern "C"
   16452 #endif
   16453 
   16454 /* We use char because int might match the return type of a gcc2
   16455    builtin and then its argument prototype would still apply.  */
   16456 char $ac_func (void);
   16457 
   16458 int
   16459 main (void)
   16460 {
   16461 
   16462 /* The GNU C library defines stubs for functions which it implements
   16463     to always fail with ENOSYS.  Some functions are actually named
   16464     something starting with __ and the normal name is an alias.  */
   16465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   16466 #error found stub for $ac_func
   16467 #endif
   16468 
   16469 	return $ac_func ();
   16470   ;
   16471   return 0;
   16472 }
   16473 _ACEOF
   16474 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   16475 if { (eval echo "$as_me:16475: \"$ac_link\"") >&5
   16476   (eval $ac_link) 2>&5
   16477   ac_status=$?
   16478   echo "$as_me:16478: \$? = $ac_status" >&5
   16479   (exit "$ac_status"); } &&
   16480          { ac_try='test -s "conftest$ac_exeext"'
   16481   { (eval echo "$as_me:16481: \"$ac_try\"") >&5
   16482   (eval $ac_try) 2>&5
   16483   ac_status=$?
   16484   echo "$as_me:16484: \$? = $ac_status" >&5
   16485   (exit "$ac_status"); }; }; then
   16486   eval "$as_ac_var=yes"
   16487 else
   16488   echo "$as_me: failed program was:" >&5
   16489 cat "conftest.$ac_ext" >&5
   16490 eval "$as_ac_var=no"
   16491 fi
   16492 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   16493 fi
   16494 echo "$as_me:16494: result: `eval echo '${'"$as_ac_var"'}'`" >&5
   16495 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
   16496 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
   16497   cat >>confdefs.h <<EOF
   16498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16499 EOF
   16500 
   16501 fi
   16502 done
   16503 
   16504 fi
   16505 
   16506 cf_save_LIBS_CF_XKB_BELL_EXT="$LIBS"
   16507 cf_save_CFLAGS_CF_XKB_BELL_EXT="$CFLAGS"
   16508 cf_save_CPPFLAGS_CF_XKB_BELL_EXT="$CPPFLAGS"
   16509 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
   16510 for cf_X_CFLAGS in $X_CFLAGS
   16511 do
   16512 	case "x$cf_X_CFLAGS" in
   16513 	x-[IUD]*)
   16514 		CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
   16515 		;;
   16516 	*)
   16517 		CFLAGS="$CFLAGS $cf_X_CFLAGS"
   16518 		;;
   16519 	esac
   16520 done
   16521 
   16522 echo "$as_me:16522: checking for XKB Bell extension" >&5
   16523 echo $ECHO_N "checking for XKB Bell extension... $ECHO_C" >&6
   16524 if test "${cf_cv_xkb_bell_ext+set}" = set; then
   16525   echo $ECHO_N "(cached) $ECHO_C" >&6
   16526 else
   16527 
   16528 cat >"conftest.$ac_ext" <<_ACEOF
   16529 #line 16529 "configure"
   16530 #include "confdefs.h"
   16531 
   16532 #include <X11/Intrinsic.h>
   16533 #include <X11/XKBlib.h>		/* has the prototype */
   16534 #include <X11/extensions/XKBbells.h>	/* has the XkbBI_xxx definitions */
   16535 
   16536 int
   16537 main (void)
   16538 {
   16539 
   16540 	int x = (XkbBI_Info |XkbBI_MinorError |XkbBI_MajorError |XkbBI_TerminalBell |XkbBI_MarginBell);
   16541 	Atom y = 0;
   16542 	(void)x;
   16543 	XkbBell((Display *)0, (Widget)0, 0, y);
   16544 
   16545   ;
   16546   return 0;
   16547 }
   16548 _ACEOF
   16549 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   16550 if { (eval echo "$as_me:16550: \"$ac_link\"") >&5
   16551   (eval $ac_link) 2>&5
   16552   ac_status=$?
   16553   echo "$as_me:16553: \$? = $ac_status" >&5
   16554   (exit "$ac_status"); } &&
   16555          { ac_try='test -s "conftest$ac_exeext"'
   16556   { (eval echo "$as_me:16556: \"$ac_try\"") >&5
   16557   (eval $ac_try) 2>&5
   16558   ac_status=$?
   16559   echo "$as_me:16559: \$? = $ac_status" >&5
   16560   (exit "$ac_status"); }; }; then
   16561   cf_cv_xkb_bell_ext=yes
   16562 else
   16563   echo "$as_me: failed program was:" >&5
   16564 cat "conftest.$ac_ext" >&5
   16565 cf_cv_xkb_bell_ext=no
   16566 fi
   16567 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   16568 
   16569 fi
   16570 echo "$as_me:16570: result: $cf_cv_xkb_bell_ext" >&5
   16571 echo "${ECHO_T}$cf_cv_xkb_bell_ext" >&6
   16572 test "$cf_cv_xkb_bell_ext" = yes &&
   16573 cat >>confdefs.h <<\EOF
   16574 #define HAVE_XKB_BELL_EXT 1
   16575 EOF
   16576 
   16577 LIBS="$cf_save_LIBS_CF_XKB_BELL_EXT"
   16578 CFLAGS="$cf_save_CFLAGS_CF_XKB_BELL_EXT"
   16579 CPPFLAGS="$cf_save_CPPFLAGS_CF_XKB_BELL_EXT"
   16580 
   16581 for ac_func in Xutf8LookupString
   16582 do
   16583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16584 echo "$as_me:16584: checking for $ac_func" >&5
   16585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   16586 if eval "test \"\${$as_ac_var+set}\" = set"; then
   16587   echo $ECHO_N "(cached) $ECHO_C" >&6
   16588 else
   16589   cat >"conftest.$ac_ext" <<_ACEOF
   16590 #line 16590 "configure"
   16591 #include "confdefs.h"
   16592 #define $ac_func autoconf_temporary
   16593 #include <limits.h>	/* least-intrusive standard header which defines gcc2 __stub macros */
   16594 #undef $ac_func
   16595 
   16596 #ifdef __cplusplus
   16597 extern "C"
   16598 #endif
   16599 
   16600 /* We use char because int might match the return type of a gcc2
   16601    builtin and then its argument prototype would still apply.  */
   16602 char $ac_func (void);
   16603 
   16604 int
   16605 main (void)
   16606 {
   16607 
   16608 /* The GNU C library defines stubs for functions which it implements
   16609     to always fail with ENOSYS.  Some functions are actually named
   16610     something starting with __ and the normal name is an alias.  */
   16611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   16612 #error found stub for $ac_func
   16613 #endif
   16614 
   16615 	return $ac_func ();
   16616   ;
   16617   return 0;
   16618 }
   16619 _ACEOF
   16620 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   16621 if { (eval echo "$as_me:16621: \"$ac_link\"") >&5
   16622   (eval $ac_link) 2>&5
   16623   ac_status=$?
   16624   echo "$as_me:16624: \$? = $ac_status" >&5
   16625   (exit "$ac_status"); } &&
   16626          { ac_try='test -s "conftest$ac_exeext"'
   16627   { (eval echo "$as_me:16627: \"$ac_try\"") >&5
   16628   (eval $ac_try) 2>&5
   16629   ac_status=$?
   16630   echo "$as_me:16630: \$? = $ac_status" >&5
   16631   (exit "$ac_status"); }; }; then
   16632   eval "$as_ac_var=yes"
   16633 else
   16634   echo "$as_me: failed program was:" >&5
   16635 cat "conftest.$ac_ext" >&5
   16636 eval "$as_ac_var=no"
   16637 fi
   16638 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   16639 fi
   16640 echo "$as_me:16640: result: `eval echo '${'"$as_ac_var"'}'`" >&5
   16641 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
   16642 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
   16643   cat >>confdefs.h <<EOF
   16644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16645 EOF
   16646 
   16647 else
   16648 
   16649 	EXTRAHDRS="$EXTRAHDRS xutf8.h"
   16650 	EXTRASRCS="$EXTRASRCS xutf8.c"
   16651 	EXTRAOBJS="$EXTRAOBJS xutf8.o"
   16652 
   16653 fi
   16654 done
   16655 
   16656 echo "$as_me:16656: checking if you want narrow prototypes for X libraries" >&5
   16657 echo $ECHO_N "checking if you want narrow prototypes for X libraries... $ECHO_C" >&6
   16658 
   16659 case `$ac_config_guess` in
   16660 (*freebsd*|*gnu*|*irix5*|*irix6*|*netbsd*|*openbsd*|*qnx*|*sco*|*sgi*)
   16661 	cf_default_narrowproto=yes
   16662 	;;
   16663 (*)
   16664 	cf_default_narrowproto=no
   16665 	;;
   16666 esac
   16667 
   16668 # Check whether --enable-narrowproto or --disable-narrowproto was given.
   16669 if test "${enable_narrowproto+set}" = set; then
   16670   enableval="$enable_narrowproto"
   16671   test "$enableval" != no && enableval=yes
   16672 	if test "$enableval" != "$cf_default_narrowproto" ; then
   16673     enable_narrowproto=$enableval
   16674 	else
   16675 		enable_narrowproto=$cf_default_narrowproto
   16676 	fi
   16677 else
   16678   enableval=$cf_default_narrowproto
   16679 	enable_narrowproto=$cf_default_narrowproto
   16680 
   16681 fi;
   16682 echo "$as_me:16682: result: $enable_narrowproto" >&5
   16683 echo "${ECHO_T}$enable_narrowproto" >&6
   16684 
   16685 echo "$as_me:16685: checking if we should use imake to help" >&5
   16686 echo $ECHO_N "checking if we should use imake to help... $ECHO_C" >&6
   16687 
   16688 # Check whether --enable-imake or --disable-imake was given.
   16689 if test "${enable_imake+set}" = set; then
   16690   enableval="$enable_imake"
   16691   test "$enableval" != no && enableval=yes
   16692 	if test "$enableval" != "yes" ; then
   16693     enable_imake=no
   16694 	else
   16695 		enable_imake=yes
   16696 	fi
   16697 else
   16698   enableval=yes
   16699 	enable_imake=yes
   16700 
   16701 fi;
   16702 echo "$as_me:16702: result: $enable_imake" >&5
   16703 echo "${ECHO_T}$enable_imake" >&6
   16704 
   16705 if test "$enable_imake" = yes ; then
   16706 
   16707 for ac_prog in xmkmf imake
   16708 do
   16709   # Extract the first word of "$ac_prog", so it can be a program name with args.
   16710 set dummy $ac_prog; ac_word=$2
   16711 echo "$as_me:16711: checking for $ac_word" >&5
   16712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   16713 if test "${ac_cv_path_IMAKE+set}" = set; then
   16714   echo $ECHO_N "(cached) $ECHO_C" >&6
   16715 else
   16716   case $IMAKE in
   16717   [\\/]* | ?:[\\/]*)
   16718   ac_cv_path_IMAKE="$IMAKE" # Let the user override the test with a path.
   16719   ;;
   16720   *)
   16721   ac_save_IFS=$IFS; IFS=$ac_path_separator
   16722 ac_dummy="$PATH"
   16723 for ac_dir in $ac_dummy; do
   16724   IFS=$ac_save_IFS
   16725   test -z "$ac_dir" && ac_dir=.
   16726   if $as_executable_p "$ac_dir/$ac_word"; then
   16727    ac_cv_path_IMAKE="$ac_dir/$ac_word"
   16728    echo "$as_me:16728: found $ac_dir/$ac_word" >&5
   16729    break
   16730 fi
   16731 done
   16732 
   16733   ;;
   16734 esac
   16735 fi
   16736 IMAKE=$ac_cv_path_IMAKE
   16737 
   16738 if test -n "$IMAKE"; then
   16739   echo "$as_me:16739: result: $IMAKE" >&5
   16740 echo "${ECHO_T}$IMAKE" >&6
   16741 else
   16742   echo "$as_me:16742: result: no" >&5
   16743 echo "${ECHO_T}no" >&6
   16744 fi
   16745 
   16746   test -n "$IMAKE" && break
   16747 done
   16748 
   16749 if test -n "$IMAKE" ; then
   16750 
   16751 case $IMAKE in
   16752 (*/imake)
   16753 	cf_imake_opts="-DUseInstalled=YES"
   16754 	;;
   16755 (*/util/xmkmf)
   16756 	# A single parameter tells xmkmf where the config-files are:
   16757 	cf_imake_opts="`echo "$IMAKE"|sed -e s,/config/util/xmkmf,,`"
   16758 	;;
   16759 (*)
   16760 	cf_imake_opts=
   16761 	;;
   16762 esac
   16763 
   16764 # If it's installed properly, imake (or its wrapper, xmkmf) will point to the
   16765 # config directory.
   16766 if mkdir conftestdir; then
   16767 	CDPATH=; export CDPATH
   16768 	cf_makefile=`cd "$srcdir" || exit;pwd`/Imakefile
   16769 	cd conftestdir
   16770 
   16771 	cat >fix_cflags.sed <<'CF_EOF'
   16772 s/\\//g
   16773 s/[ 	][ 	]*/ /g
   16774 s/"//g
   16775 :pack
   16776 s/\(=[^ ][^ ]*\) \([^-]\)/\1	\2/g
   16777 t pack
   16778 s/\(-D[a-zA-Z0-9_][a-zA-Z0-9_]*\)=\([^\'0-9 ][^ ]*\)/\1='\\"\2\\"'/g
   16779 s/^IMAKE[ ]/IMAKE_CFLAGS="/
   16780 s/	/ /g
   16781 s/$/"/
   16782 CF_EOF
   16783 
   16784 	cat >fix_lflags.sed <<'CF_EOF'
   16785 s/^IMAKE[ 	]*/IMAKE_LOADFLAGS="/
   16786 s/$/"/
   16787 CF_EOF
   16788 
   16789 	echo >./Imakefile
   16790 	test -f "$cf_makefile" && cat "$cf_makefile" >>./Imakefile
   16791 
   16792 	cat >> ./Imakefile <<'CF_EOF'
   16793 findstddefs:
   16794 	@echo IMAKE ${ALLDEFINES} $(MAIN_DEFINES) $(VENDORMANDEFS)       | sed -f fix_cflags.sed
   16795 	@echo IMAKE ${EXTRA_LOAD_FLAGS} | sed -f fix_lflags.sed
   16796 CF_EOF
   16797 
   16798 	if ( $IMAKE "$cf_imake_opts" 1>/dev/null 2>&5 && test -f Makefile)
   16799 	then
   16800 		test -n "$verbose" && echo "	Using $IMAKE $cf_imake_opts" 1>&6
   16801 
   16802 echo "${as_me:-configure}:16802: testing Using $IMAKE $cf_imake_opts ..." 1>&5
   16803 
   16804 	else
   16805 		# sometimes imake doesn't have the config path compiled in.  Find it.
   16806 		cf_config=
   16807 		for cf_libpath in $X_LIBS $LIBS ; do
   16808 			case "$cf_libpath" in
   16809 			(-L*)
   16810 				cf_libpath=`echo ".$cf_libpath" | sed -e 's/^...//'`
   16811 				cf_libpath="$cf_libpath/X11/config"
   16812 				if test -d "$cf_libpath" ; then
   16813 					cf_config="$cf_libpath"
   16814 					break
   16815 				fi
   16816 				;;
   16817 			esac
   16818 		done
   16819 		if test -z "$cf_config" ; then
   16820 			{ echo "$as_me:16820: WARNING: Could not find imake config-directory" >&5
   16821 echo "$as_me: WARNING: Could not find imake config-directory" >&2;}
   16822 		else
   16823 			cf_imake_opts="$cf_imake_opts -I$cf_config"
   16824 			if ( "$IMAKE" -v "$cf_imake_opts" 2>&5)
   16825 			then
   16826 				test -n "$verbose" && echo "	Using $IMAKE $cf_config" 1>&6
   16827 
   16828 echo "${as_me:-configure}:16828: testing Using $IMAKE $cf_config ..." 1>&5
   16829 
   16830 			else
   16831 				{ echo "$as_me:16831: WARNING: Cannot run $IMAKE" >&5
   16832 echo "$as_me: WARNING: Cannot run $IMAKE" >&2;}
   16833 			fi
   16834 		fi
   16835 	fi
   16836 
   16837 	# GNU make sometimes prints "make[1]: Entering...", which
   16838 	# would confuse us.
   16839 	eval "`make findstddefs 2>/dev/null | grep -v make`"
   16840 
   16841 	cd ..
   16842 	rm -rf conftestdir
   16843 
   16844 	# We use ${ALLDEFINES} rather than ${STD_DEFINES} because the former
   16845 	# declares XTFUNCPROTO there.  However, some vendors (e.g., SGI) have
   16846 	# modified it to support site.cf, adding a kludge for the /usr/include
   16847 	# directory.  Try to filter that out, otherwise gcc won't find its
   16848 	# headers.
   16849 	if test -n "$GCC" ; then
   16850 	    if test -n "$IMAKE_CFLAGS" ; then
   16851 		cf_nostdinc=""
   16852 		cf_std_incl=""
   16853 		cf_cpp_opts=""
   16854 		for cf_opt in $IMAKE_CFLAGS
   16855 		do
   16856 		    case "$cf_opt" in
   16857 		    (-nostdinc)
   16858 			cf_nostdinc="$cf_opt"
   16859 			;;
   16860 		    (-I/usr/include)
   16861 			cf_std_incl="$cf_opt"
   16862 			;;
   16863 		    (*)
   16864 			cf_cpp_opts="$cf_cpp_opts $cf_opt"
   16865 			;;
   16866 		    esac
   16867 		done
   16868 		if test -z "$cf_nostdinc" ; then
   16869 		    IMAKE_CFLAGS="$cf_cpp_opts $cf_std_incl"
   16870 		elif test -z "$cf_std_incl" ; then
   16871 		    IMAKE_CFLAGS="$cf_cpp_opts $cf_nostdinc"
   16872 		else
   16873 		    test -n "$verbose" && echo "	suppressed \"$cf_nostdinc\" and \"$cf_std_incl\"" 1>&6
   16874 
   16875 echo "${as_me:-configure}:16875: testing suppressed \"$cf_nostdinc\" and \"$cf_std_incl\" ..." 1>&5
   16876 
   16877 		    IMAKE_CFLAGS="$cf_cpp_opts"
   16878 		fi
   16879 	    fi
   16880 	fi
   16881 fi
   16882 
   16883 # Some imake configurations define PROJECTROOT with an empty value.  Remove
   16884 # the empty definition.
   16885 case $IMAKE_CFLAGS in
   16886 (*-DPROJECTROOT=/*)
   16887 	;;
   16888 (*)
   16889 	IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" |sed -e "s,-DPROJECTROOT=[ 	], ,"`
   16890 	;;
   16891 esac
   16892 
   16893 fi
   16894 
   16895 test -n "$verbose" && echo "	IMAKE_CFLAGS $IMAKE_CFLAGS" 1>&6
   16896 
   16897 echo "${as_me:-configure}:16897: testing IMAKE_CFLAGS $IMAKE_CFLAGS ..." 1>&5
   16898 
   16899 test -n "$verbose" && echo "	IMAKE_LOADFLAGS $IMAKE_LOADFLAGS" 1>&6
   16900 
   16901 echo "${as_me:-configure}:16901: testing IMAKE_LOADFLAGS $IMAKE_LOADFLAGS ..." 1>&5
   16902 
   16903 fi
   16904 
   16905 if test -n "$IMAKE" && test -n "$IMAKE_CFLAGS" ; then
   16906 
   16907 cf_fix_cppflags=no
   16908 cf_new_cflags=
   16909 cf_new_cppflags=
   16910 cf_new_extra_cppflags=
   16911 
   16912 for cf_add_cflags in $IMAKE_CFLAGS
   16913 do
   16914 case "$cf_fix_cppflags" in
   16915 (no)
   16916 	case "$cf_add_cflags" in
   16917 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   16918 		case "$cf_add_cflags" in
   16919 		(-D*)
   16920 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   16921 
   16922 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   16923 				&& test -z "${cf_tst_cflags}" \
   16924 				&& cf_fix_cppflags=yes
   16925 
   16926 			if test "$cf_fix_cppflags" = yes ; then
   16927 
   16928 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   16929 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   16930 
   16931 				continue
   16932 			elif test "${cf_tst_cflags}" = "\"'" ; then
   16933 
   16934 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   16935 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   16936 
   16937 				continue
   16938 			fi
   16939 			;;
   16940 		esac
   16941 		case "$CPPFLAGS" in
   16942 		(*$cf_add_cflags)
   16943 			;;
   16944 		(*)
   16945 			case "$cf_add_cflags" in
   16946 			(-D*)
   16947 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   16948 
   16949 CPPFLAGS=`echo "$CPPFLAGS" | \
   16950 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   16951 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   16952 
   16953 				;;
   16954 			esac
   16955 
   16956 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   16957 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   16958 
   16959 			;;
   16960 		esac
   16961 		;;
   16962 	(*)
   16963 
   16964 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   16965 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   16966 
   16967 		;;
   16968 	esac
   16969 	;;
   16970 (yes)
   16971 
   16972 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   16973 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   16974 
   16975 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   16976 
   16977 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   16978 		&& test -z "${cf_tst_cflags}" \
   16979 		&& cf_fix_cppflags=no
   16980 	;;
   16981 esac
   16982 done
   16983 
   16984 if test -n "$cf_new_cflags" ; then
   16985 
   16986 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   16987 	CFLAGS="${CFLAGS}$cf_new_cflags"
   16988 
   16989 fi
   16990 
   16991 if test -n "$cf_new_cppflags" ; then
   16992 
   16993 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   16994 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   16995 
   16996 fi
   16997 
   16998 if test -n "$cf_new_extra_cppflags" ; then
   16999 
   17000 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   17001 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   17002 
   17003 fi
   17004 
   17005 else
   17006 	IMAKE_CFLAGS=
   17007 	IMAKE_LOADFLAGS=
   17008 	test -n "$verbose" && echo "	make fallback definitions" 1>&6
   17009 
   17010 echo "${as_me:-configure}:17010: testing make fallback definitions ..." 1>&5
   17011 
   17012 	# We prefer config.guess' values when we can get them, to avoid
   17013 	# inconsistent results with uname (AIX for instance).  However,
   17014 	# config.guess is not always consistent either.
   17015 	case $host_os in
   17016 	(*[0-9].[0-9]*)
   17017 		UNAME_RELEASE="$host_os"
   17018 		;;
   17019 	(*)
   17020 		UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
   17021 		;;
   17022 	esac
   17023 
   17024 	case .$UNAME_RELEASE in
   17025 	(*[0-9].[0-9]*)
   17026 		OSMAJORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/\..*//'`
   17027 		OSMINORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/^[^.]*\.//' -e 's/\..*//' -e 's/[^0-9].*//' `
   17028 		test -z "$OSMAJORVERSION" && OSMAJORVERSION=1
   17029 		test -z "$OSMINORVERSION" && OSMINORVERSION=0
   17030 		IMAKE_CFLAGS="-DOSMAJORVERSION=$OSMAJORVERSION -DOSMINORVERSION=$OSMINORVERSION $IMAKE_CFLAGS"
   17031 		;;
   17032 	esac
   17033 
   17034 	# FUNCPROTO is standard with X11R6, but XFree86 drops it, leaving some
   17035 	# fallback/fragments for NeedPrototypes, etc.
   17036 	IMAKE_CFLAGS="-DFUNCPROTO=15 $IMAKE_CFLAGS"
   17037 
   17038 	# If this is not set properly, Xaw's scrollbars will not work
   17039 	if test "$enable_narrowproto" = yes ; then
   17040 		IMAKE_CFLAGS="-DNARROWPROTO=1 $IMAKE_CFLAGS"
   17041 	fi
   17042 
   17043 	# Other special definitions:
   17044 	case $host_os in
   17045 	(aix*)
   17046 		# imake on AIX 5.1 defines AIXV3.  really.
   17047 		IMAKE_CFLAGS="-DAIXV3 -DAIXV4 $IMAKE_CFLAGS"
   17048 		;;
   17049 	(irix[56].*)
   17050 		# these are needed to make SIGWINCH work in xterm
   17051 		IMAKE_CFLAGS="-DSYSV -DSVR4 $IMAKE_CFLAGS"
   17052 		;;
   17053 	esac
   17054 
   17055 cf_fix_cppflags=no
   17056 cf_new_cflags=
   17057 cf_new_cppflags=
   17058 cf_new_extra_cppflags=
   17059 
   17060 for cf_add_cflags in $IMAKE_CFLAGS
   17061 do
   17062 case "$cf_fix_cppflags" in
   17063 (no)
   17064 	case "$cf_add_cflags" in
   17065 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   17066 		case "$cf_add_cflags" in
   17067 		(-D*)
   17068 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   17069 
   17070 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   17071 				&& test -z "${cf_tst_cflags}" \
   17072 				&& cf_fix_cppflags=yes
   17073 
   17074 			if test "$cf_fix_cppflags" = yes ; then
   17075 
   17076 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   17077 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   17078 
   17079 				continue
   17080 			elif test "${cf_tst_cflags}" = "\"'" ; then
   17081 
   17082 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   17083 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   17084 
   17085 				continue
   17086 			fi
   17087 			;;
   17088 		esac
   17089 		case "$CPPFLAGS" in
   17090 		(*$cf_add_cflags)
   17091 			;;
   17092 		(*)
   17093 			case "$cf_add_cflags" in
   17094 			(-D*)
   17095 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   17096 
   17097 CPPFLAGS=`echo "$CPPFLAGS" | \
   17098 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   17099 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   17100 
   17101 				;;
   17102 			esac
   17103 
   17104 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   17105 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   17106 
   17107 			;;
   17108 		esac
   17109 		;;
   17110 	(*)
   17111 
   17112 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   17113 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   17114 
   17115 		;;
   17116 	esac
   17117 	;;
   17118 (yes)
   17119 
   17120 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   17121 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   17122 
   17123 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   17124 
   17125 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   17126 		&& test -z "${cf_tst_cflags}" \
   17127 		&& cf_fix_cppflags=no
   17128 	;;
   17129 esac
   17130 done
   17131 
   17132 if test -n "$cf_new_cflags" ; then
   17133 
   17134 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   17135 	CFLAGS="${CFLAGS}$cf_new_cflags"
   17136 
   17137 fi
   17138 
   17139 if test -n "$cf_new_cppflags" ; then
   17140 
   17141 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   17142 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   17143 
   17144 fi
   17145 
   17146 if test -n "$cf_new_extra_cppflags" ; then
   17147 
   17148 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   17149 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   17150 
   17151 fi
   17152 
   17153 fi
   17154 
   17155 # Extract the first word of "groff", so it can be a program name with args.
   17156 set dummy groff; ac_word=$2
   17157 echo "$as_me:17157: checking for $ac_word" >&5
   17158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   17159 if test "${ac_cv_path_GROFF_PATH+set}" = set; then
   17160   echo $ECHO_N "(cached) $ECHO_C" >&6
   17161 else
   17162   case $GROFF_PATH in
   17163   [\\/]* | ?:[\\/]*)
   17164   ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path.
   17165   ;;
   17166   *)
   17167   ac_save_IFS=$IFS; IFS=$ac_path_separator
   17168 ac_dummy="$PATH"
   17169 for ac_dir in $ac_dummy; do
   17170   IFS=$ac_save_IFS
   17171   test -z "$ac_dir" && ac_dir=.
   17172   if $as_executable_p "$ac_dir/$ac_word"; then
   17173    ac_cv_path_GROFF_PATH="$ac_dir/$ac_word"
   17174    echo "$as_me:17174: found $ac_dir/$ac_word" >&5
   17175    break
   17176 fi
   17177 done
   17178 
   17179   test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no"
   17180   ;;
   17181 esac
   17182 fi
   17183 GROFF_PATH=$ac_cv_path_GROFF_PATH
   17184 
   17185 if test -n "$GROFF_PATH"; then
   17186   echo "$as_me:17186: result: $GROFF_PATH" >&5
   17187 echo "${ECHO_T}$GROFF_PATH" >&6
   17188 else
   17189   echo "$as_me:17189: result: no" >&5
   17190 echo "${ECHO_T}no" >&6
   17191 fi
   17192 
   17193 for ac_prog in nroff mandoc
   17194 do
   17195   # Extract the first word of "$ac_prog", so it can be a program name with args.
   17196 set dummy $ac_prog; ac_word=$2
   17197 echo "$as_me:17197: checking for $ac_word" >&5
   17198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   17199 if test "${ac_cv_path_NROFF_PATH+set}" = set; then
   17200   echo $ECHO_N "(cached) $ECHO_C" >&6
   17201 else
   17202   case $NROFF_PATH in
   17203   [\\/]* | ?:[\\/]*)
   17204   ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path.
   17205   ;;
   17206   *)
   17207   ac_save_IFS=$IFS; IFS=$ac_path_separator
   17208 ac_dummy="$PATH"
   17209 for ac_dir in $ac_dummy; do
   17210   IFS=$ac_save_IFS
   17211   test -z "$ac_dir" && ac_dir=.
   17212   if $as_executable_p "$ac_dir/$ac_word"; then
   17213    ac_cv_path_NROFF_PATH="$ac_dir/$ac_word"
   17214    echo "$as_me:17214: found $ac_dir/$ac_word" >&5
   17215    break
   17216 fi
   17217 done
   17218 
   17219   ;;
   17220 esac
   17221 fi
   17222 NROFF_PATH=$ac_cv_path_NROFF_PATH
   17223 
   17224 if test -n "$NROFF_PATH"; then
   17225   echo "$as_me:17225: result: $NROFF_PATH" >&5
   17226 echo "${ECHO_T}$NROFF_PATH" >&6
   17227 else
   17228   echo "$as_me:17228: result: no" >&5
   17229 echo "${ECHO_T}no" >&6
   17230 fi
   17231 
   17232   test -n "$NROFF_PATH" && break
   17233 done
   17234 test -n "$NROFF_PATH" || NROFF_PATH="no"
   17235 
   17236 # Extract the first word of "tbl", so it can be a program name with args.
   17237 set dummy tbl; ac_word=$2
   17238 echo "$as_me:17238: checking for $ac_word" >&5
   17239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   17240 if test "${ac_cv_path_TBL_PATH+set}" = set; then
   17241   echo $ECHO_N "(cached) $ECHO_C" >&6
   17242 else
   17243   case $TBL_PATH in
   17244   [\\/]* | ?:[\\/]*)
   17245   ac_cv_path_TBL_PATH="$TBL_PATH" # Let the user override the test with a path.
   17246   ;;
   17247   *)
   17248   ac_save_IFS=$IFS; IFS=$ac_path_separator
   17249 ac_dummy="$PATH"
   17250 for ac_dir in $ac_dummy; do
   17251   IFS=$ac_save_IFS
   17252   test -z "$ac_dir" && ac_dir=.
   17253   if $as_executable_p "$ac_dir/$ac_word"; then
   17254    ac_cv_path_TBL_PATH="$ac_dir/$ac_word"
   17255    echo "$as_me:17255: found $ac_dir/$ac_word" >&5
   17256    break
   17257 fi
   17258 done
   17259 
   17260   test -z "$ac_cv_path_TBL_PATH" && ac_cv_path_TBL_PATH="cat"
   17261   ;;
   17262 esac
   17263 fi
   17264 TBL_PATH=$ac_cv_path_TBL_PATH
   17265 
   17266 if test -n "$TBL_PATH"; then
   17267   echo "$as_me:17267: result: $TBL_PATH" >&5
   17268 echo "${ECHO_T}$TBL_PATH" >&6
   17269 else
   17270   echo "$as_me:17270: result: no" >&5
   17271 echo "${ECHO_T}no" >&6
   17272 fi
   17273 
   17274 if test "x$GROFF_PATH" = xno
   17275 then
   17276 	NROFF_NOTE=
   17277 	GROFF_NOTE="#"
   17278 else
   17279 	NROFF_NOTE="#"
   17280 	GROFF_NOTE=
   17281 fi
   17282 
   17283 echo "$as_me:17283: checking for fgrep" >&5
   17284 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
   17285 if test "${ac_cv_path_FGREP+set}" = set; then
   17286   echo $ECHO_N "(cached) $ECHO_C" >&6
   17287 else
   17288   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   17289    then ac_cv_path_FGREP="$GREP -F"
   17290    else
   17291      for ac_prog in gfgrep fgrep
   17292 do
   17293   # Extract the first word of "$ac_prog", so it can be a program name with args.
   17294 set dummy $ac_prog; ac_word=$2
   17295 echo "$as_me:17295: checking for $ac_word" >&5
   17296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   17297 if test "${ac_cv_path_FGREP+set}" = set; then
   17298   echo $ECHO_N "(cached) $ECHO_C" >&6
   17299 else
   17300   case $FGREP in
   17301   [\\/]* | ?:[\\/]*)
   17302   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
   17303   ;;
   17304   *)
   17305   ac_save_IFS=$IFS; IFS=$ac_path_separator
   17306 ac_dummy="$PATH"
   17307 for ac_dir in $ac_dummy; do
   17308   IFS=$ac_save_IFS
   17309   test -z "$ac_dir" && ac_dir=.
   17310   if $as_executable_p "$ac_dir/$ac_word"; then
   17311    ac_cv_path_FGREP="$ac_dir/$ac_word"
   17312    echo "$as_me:17312: found $ac_dir/$ac_word" >&5
   17313    break
   17314 fi
   17315 done
   17316 
   17317   ;;
   17318 esac
   17319 fi
   17320 FGREP=$ac_cv_path_FGREP
   17321 
   17322 if test -n "$FGREP"; then
   17323   echo "$as_me:17323: result: $FGREP" >&5
   17324 echo "${ECHO_T}$FGREP" >&6
   17325 else
   17326   echo "$as_me:17326: result: no" >&5
   17327 echo "${ECHO_T}no" >&6
   17328 fi
   17329 
   17330   test -n "$FGREP" && break
   17331 done
   17332 test -n "$FGREP" || FGREP=": "
   17333 
   17334      test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:17334: error: cannot find workable fgrep" >&5
   17335 echo "$as_me: error: cannot find workable fgrep" >&2;}
   17336    { (exit 1); exit 1; }; }
   17337    fi
   17338 fi
   17339 echo "$as_me:17339: result: $ac_cv_path_FGREP" >&5
   17340 echo "${ECHO_T}$ac_cv_path_FGREP" >&6
   17341  FGREP="$ac_cv_path_FGREP"
   17342 
   17343 case "x${with_man2html}" in
   17344 (xno)
   17345 	cf_man2html=no
   17346 	;;
   17347 (x|xyes)
   17348 	# Extract the first word of "man2html", so it can be a program name with args.
   17349 set dummy man2html; ac_word=$2
   17350 echo "$as_me:17350: checking for $ac_word" >&5
   17351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   17352 if test "${ac_cv_path_cf_man2html+set}" = set; then
   17353   echo $ECHO_N "(cached) $ECHO_C" >&6
   17354 else
   17355   case $cf_man2html in
   17356   [\\/]* | ?:[\\/]*)
   17357   ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path.
   17358   ;;
   17359   *)
   17360   ac_save_IFS=$IFS; IFS=$ac_path_separator
   17361 ac_dummy="$PATH"
   17362 for ac_dir in $ac_dummy; do
   17363   IFS=$ac_save_IFS
   17364   test -z "$ac_dir" && ac_dir=.
   17365   if $as_executable_p "$ac_dir/$ac_word"; then
   17366    ac_cv_path_cf_man2html="$ac_dir/$ac_word"
   17367    echo "$as_me:17367: found $ac_dir/$ac_word" >&5
   17368    break
   17369 fi
   17370 done
   17371 
   17372   test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no"
   17373   ;;
   17374 esac
   17375 fi
   17376 cf_man2html=$ac_cv_path_cf_man2html
   17377 
   17378 if test -n "$cf_man2html"; then
   17379   echo "$as_me:17379: result: $cf_man2html" >&5
   17380 echo "${ECHO_T}$cf_man2html" >&6
   17381 else
   17382   echo "$as_me:17382: result: no" >&5
   17383 echo "${ECHO_T}no" >&6
   17384 fi
   17385 
   17386 	case "x$cf_man2html" in
   17387 	(x/*)
   17388 		echo "$as_me:17388: checking for the modified Earl Hood script" >&5
   17389 echo $ECHO_N "checking for the modified Earl Hood script... $ECHO_C" >&6
   17390 		if ( $cf_man2html -help 2>&1 | grep 'Make an index of headers at the end' >/dev/null )
   17391 		then
   17392 			cf_man2html_ok=yes
   17393 		else
   17394 			cf_man2html=no
   17395 			cf_man2html_ok=no
   17396 		fi
   17397 		echo "$as_me:17397: result: $cf_man2html_ok" >&5
   17398 echo "${ECHO_T}$cf_man2html_ok" >&6
   17399 		;;
   17400 	(*)
   17401 		cf_man2html=no
   17402 		;;
   17403 	esac
   17404 esac
   17405 
   17406 echo "$as_me:17406: checking for program to convert manpage to html" >&5
   17407 echo $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6
   17408 
   17409 # Check whether --with-man2html or --without-man2html was given.
   17410 if test "${with_man2html+set}" = set; then
   17411   withval="$with_man2html"
   17412   cf_man2html=$withval
   17413 else
   17414   cf_man2html=$cf_man2html
   17415 fi;
   17416 
   17417 cf_with_groff=no
   17418 
   17419 case $cf_man2html in
   17420 (yes)
   17421 	echo "$as_me:17421: result: man2html" >&5
   17422 echo "${ECHO_T}man2html" >&6
   17423 	# Extract the first word of "man2html", so it can be a program name with args.
   17424 set dummy man2html; ac_word=$2
   17425 echo "$as_me:17425: checking for $ac_word" >&5
   17426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   17427 if test "${ac_cv_path_cf_man2html+set}" = set; then
   17428   echo $ECHO_N "(cached) $ECHO_C" >&6
   17429 else
   17430   case $cf_man2html in
   17431   [\\/]* | ?:[\\/]*)
   17432   ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path.
   17433   ;;
   17434   *)
   17435   ac_save_IFS=$IFS; IFS=$ac_path_separator
   17436 ac_dummy="$PATH"
   17437 for ac_dir in $ac_dummy; do
   17438   IFS=$ac_save_IFS
   17439   test -z "$ac_dir" && ac_dir=.
   17440   if $as_executable_p "$ac_dir/$ac_word"; then
   17441    ac_cv_path_cf_man2html="$ac_dir/$ac_word"
   17442    echo "$as_me:17442: found $ac_dir/$ac_word" >&5
   17443    break
   17444 fi
   17445 done
   17446 
   17447   test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no"
   17448   ;;
   17449 esac
   17450 fi
   17451 cf_man2html=$ac_cv_path_cf_man2html
   17452 
   17453 if test -n "$cf_man2html"; then
   17454   echo "$as_me:17454: result: $cf_man2html" >&5
   17455 echo "${ECHO_T}$cf_man2html" >&6
   17456 else
   17457   echo "$as_me:17457: result: no" >&5
   17458 echo "${ECHO_T}no" >&6
   17459 fi
   17460 
   17461 	;;
   17462 (no|groff|*/groff*)
   17463 	cf_with_groff=yes
   17464 	cf_man2html=$GROFF_PATH
   17465 	echo "$as_me:17465: result: $cf_man2html" >&5
   17466 echo "${ECHO_T}$cf_man2html" >&6
   17467 	;;
   17468 (*)
   17469 	echo "$as_me:17469: result: $cf_man2html" >&5
   17470 echo "${ECHO_T}$cf_man2html" >&6
   17471 	;;
   17472 esac
   17473 
   17474 MAN2HTML_TEMP="man2html.tmp"
   17475 	cat >$MAN2HTML_TEMP <<CF_EOF
   17476 #!$SHELL
   17477 # Temporary script generated by CF_WITH_MAN2HTML
   17478 # Convert inputs to html, sending result to standard output.
   17479 #
   17480 # Parameters:
   17481 # \${1} = rootname of file to convert
   17482 # \${2} = suffix of file to convert, e.g., "1"
   17483 # \${3} = macros to use, e.g., "man"
   17484 #
   17485 ROOT=\$1
   17486 TYPE=\$2
   17487 MACS=\$3
   17488 
   17489 unset LANG
   17490 unset LC_ALL
   17491 unset LC_CTYPE
   17492 unset LANGUAGE
   17493 GROFF_NO_SGR=stupid
   17494 export GROFF_NO_SGR
   17495 
   17496 CF_EOF
   17497 
   17498 NROFF_OPTS=
   17499 if test "x$cf_with_groff" = xyes
   17500 then
   17501 	MAN2HTML_NOTE="$GROFF_NOTE"
   17502 	MAN2HTML_PATH="$GROFF_PATH"
   17503 	cat >>$MAN2HTML_TEMP <<CF_EOF
   17504 $SHELL -c "$TBL_PATH \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MACS}"
   17505 CF_EOF
   17506 else
   17507 	# disable hyphenation if this is groff
   17508 	if test "x$GROFF_PATH" != xno
   17509 	then
   17510 		echo "$as_me:17510: checking if nroff is really groff" >&5
   17511 echo $ECHO_N "checking if nroff is really groff... $ECHO_C" >&6
   17512 		cf_check_groff="`$NROFF_PATH --version 2>/dev/null | grep groff`"
   17513 		test -n "$cf_check_groff" && cf_check_groff=yes
   17514 		test -n "$cf_check_groff" || cf_check_groff=no
   17515 		echo "$as_me:17515: result: $cf_check_groff" >&5
   17516 echo "${ECHO_T}$cf_check_groff" >&6
   17517 		test "x$cf_check_groff" = xyes && NROFF_OPTS="-rHY=0"
   17518 	fi
   17519 	MAN2HTML_NOTE=""
   17520 
   17521 if test "x$prefix" != xNONE; then
   17522 	cf_path_syntax="$prefix"
   17523 else
   17524 	cf_path_syntax="$ac_default_prefix"
   17525 fi
   17526 
   17527 case ".$cf_man2html" in
   17528 (.\$\(*\)*|.\'*\'*)
   17529 	;;
   17530 (..|./*|.\\*)
   17531 	;;
   17532 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
   17533 	;;
   17534 (.\$\{*prefix\}*|.\$\{*dir\}*)
   17535 	eval cf_man2html="$cf_man2html"
   17536 	case ".$cf_man2html" in
   17537 	(.NONE/*)
   17538 		cf_man2html=`echo "$cf_man2html" | sed -e s%NONE%$cf_path_syntax%`
   17539 		;;
   17540 	esac
   17541 	;;
   17542 (.no|.NONE/*)
   17543 	cf_man2html=`echo "$cf_man2html" | sed -e s%NONE%$cf_path_syntax%`
   17544 	;;
   17545 (*)
   17546 	{ { echo "$as_me:17546: error: expected a pathname, not \"$cf_man2html\"" >&5
   17547 echo "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;}
   17548    { (exit 1); exit 1; }; }
   17549 	;;
   17550 esac
   17551 
   17552 	MAN2HTML_PATH="$cf_man2html"
   17553 	echo "$as_me:17553: checking for $cf_man2html top/bottom margins" >&5
   17554 echo $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6
   17555 
   17556 	# for this example, expect 3 lines of content, the remainder is head/foot
   17557 	cat >conftest.in <<CF_EOF
   17558 .TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5
   17559 .SH SECTION
   17560 MARKER
   17561 CF_EOF
   17562 
   17563 	LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out
   17564 
   17565 	cf_man2html_1st="`${FGREP-fgrep} -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'`"
   17566 	cf_man2html_top=`expr "$cf_man2html_1st" - 2`
   17567 	cf_man2html_bot="`wc -l conftest.out |sed -e 's/[^0-9]//g'`"
   17568 	cf_man2html_bot=`expr "$cf_man2html_bot" - 2 - "$cf_man2html_top"`
   17569 	cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot"
   17570 
   17571 	echo "$as_me:17571: result: $cf_man2html_top_bot" >&5
   17572 echo "${ECHO_T}$cf_man2html_top_bot" >&6
   17573 
   17574 	echo "$as_me:17574: checking for pagesize to use" >&5
   17575 echo $ECHO_N "checking for pagesize to use... $ECHO_C" >&6
   17576 	for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
   17577 	do
   17578 	cat >>conftest.in <<CF_EOF
   17579 .nf
   17580 0
   17581 1
   17582 2
   17583 3
   17584 4
   17585 5
   17586 6
   17587 7
   17588 8
   17589 9
   17590 CF_EOF
   17591 	done
   17592 
   17593 	LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out
   17594 	cf_man2html_page="`${FGREP-fgrep} -n HEAD1 conftest.out |sed -n '$p' |sed -e 's/^[^0-9]*://' -e 's/:.*//'`"
   17595 	test -z "$cf_man2html_page" && cf_man2html_page=99999
   17596 	test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999
   17597 
   17598 	rm -rf conftest*
   17599 	echo "$as_me:17599: result: $cf_man2html_page" >&5
   17600 echo "${ECHO_T}$cf_man2html_page" >&6
   17601 
   17602 	cat >>$MAN2HTML_TEMP <<CF_EOF
   17603 : \${MAN2HTML_PATH=$MAN2HTML_PATH}
   17604 MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title=\"\$ROOT(\$TYPE)\" -compress -pgsize $cf_man2html_page"
   17605 case \${TYPE} in
   17606 (ms)
   17607 	$TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH $NROFF_OPTS -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0 \$MAN2HTML_OPTS
   17608 	;;
   17609 (*)
   17610 	$TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH $NROFF_OPTS -\${MACS} | \$MAN2HTML_PATH $cf_man2html_top_bot \$MAN2HTML_OPTS
   17611 	;;
   17612 esac
   17613 CF_EOF
   17614 fi
   17615 
   17616 chmod 700 $MAN2HTML_TEMP
   17617 
   17618 # If we have already established that there is a full termcap implementation,
   17619 # suppress the definitions for terminfo that we make have imported from the
   17620 # imake-file.
   17621 if test "x$cf_cv_lib_tgetent" != xno || test "x$cf_cv_lib_part_tgetent" != xno ; then
   17622 	case "$IMAKE_CFLAGS" in
   17623 	(*-DUSE_TERMINFO\ -DHAVE_TIGETSTR*)
   17624 
   17625 	test -n "$verbose" && echo "	removing terminfo flags from IMAKE_CFLAGS" 1>&6
   17626 
   17627 echo "${as_me:-configure}:17627: testing removing terminfo flags from IMAKE_CFLAGS ..." 1>&5
   17628 
   17629 	IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" | sed -e 's/-DUSE_TERMINFO[ 	]*-DHAVE_TIGETSTR[ 	]*//'`
   17630 	test -n "$verbose" && echo "	...result $IMAKE_CFLAGS" 1>&6
   17631 
   17632 echo "${as_me:-configure}:17632: testing ...result $IMAKE_CFLAGS ..." 1>&5
   17633 
   17634 	test -n "$verbose" && echo "	removing terminfo flags from CPPFLAGS" 1>&6
   17635 
   17636 echo "${as_me:-configure}:17636: testing removing terminfo flags from CPPFLAGS ..." 1>&5
   17637 
   17638 	CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/-DUSE_TERMINFO[ 	]*-DHAVE_TIGETSTR[ 	]*//'`
   17639 	test -n "$verbose" && echo "	...result $CPPFLAGS" 1>&6
   17640 
   17641 echo "${as_me:-configure}:17641: testing ...result $CPPFLAGS ..." 1>&5
   17642 
   17643 		;;
   17644 	esac
   17645 fi
   17646 
   17647 echo "$as_me:17647: checking for default terminal-id" >&5
   17648 echo $ECHO_N "checking for default terminal-id... $ECHO_C" >&6
   17649 
   17650 # Check whether --with-terminal-id or --without-terminal-id was given.
   17651 if test "${with_terminal_id+set}" = set; then
   17652   withval="$with_terminal_id"
   17653   default_termid=$withval
   17654 else
   17655   default_termid=vt420
   17656 fi;
   17657 echo "$as_me:17657: result: $default_termid" >&5
   17658 echo "${ECHO_T}$default_termid" >&6
   17659 case $default_termid in
   17660 (vt*)	default_termid=`echo $default_termid | sed -e 's/^..//'`
   17661 	;;
   17662 esac
   17663 
   17664 cat >>confdefs.h <<EOF
   17665 #define DFT_DECID "$default_termid"
   17666 EOF
   17667 
   17668 echo "$as_me:17668: checking for default terminal-type" >&5
   17669 echo $ECHO_N "checking for default terminal-type... $ECHO_C" >&6
   17670 
   17671 # Check whether --with-terminal-type or --without-terminal-type was given.
   17672 if test "${with_terminal_type+set}" = set; then
   17673   withval="$with_terminal_type"
   17674   default_TERM=$withval
   17675 else
   17676   default_TERM=xterm
   17677 fi;
   17678 echo "$as_me:17678: result: $default_TERM" >&5
   17679 echo "${ECHO_T}$default_TERM" >&6
   17680 
   17681 cat >>confdefs.h <<EOF
   17682 #define DFT_TERMTYPE "$default_TERM"
   17683 EOF
   17684 
   17685 ###############################################################################
   17686 echo "$as_me:17686: checking if backarrow-key should be BS" >&5
   17687 echo $ECHO_N "checking if backarrow-key should be BS... $ECHO_C" >&6
   17688 
   17689 # Check whether --enable-backarrow-key or --disable-backarrow-key was given.
   17690 if test "${enable_backarrow_key+set}" = set; then
   17691   enableval="$enable_backarrow_key"
   17692   test "$enableval" != no && enableval=yes
   17693 	if test "$enableval" != "yes" ; then
   17694     backarrow_is_bs=$enableval
   17695 	else
   17696 		backarrow_is_bs=yes
   17697 	fi
   17698 else
   17699   enableval=yes
   17700 	backarrow_is_bs=yes
   17701 
   17702 fi;
   17703 
   17704 echo "$as_me:17704: result: $backarrow_is_bs" >&5
   17705 echo "${ECHO_T}$backarrow_is_bs" >&6
   17706 case $backarrow_is_bs in
   17707 (yes)
   17708 	backarrow_is_bs=true
   17709 	;;
   17710 (no)
   17711 	backarrow_is_bs=false
   17712 	;;
   17713 esac
   17714 cf_xbool1=`echo "$backarrow_is_bs"|sed -e 's/^\(.\).*/\1/'`
   17715 
   17716 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   17717 
   17718 cf_xbool2=`echo "$backarrow_is_bs"|sed -e 's/^.//'`
   17719 backarrow_is_bs=${cf_xbool1}${cf_xbool2}
   17720 
   17721 cat >>confdefs.h <<EOF
   17722 #define DEF_BACKARO_BS $backarrow_is_bs
   17723 EOF
   17724 
   17725 echo "$as_me:17725: checking if backarrow-key should be treated as erase" >&5
   17726 echo $ECHO_N "checking if backarrow-key should be treated as erase... $ECHO_C" >&6
   17727 
   17728 # Check whether --enable-backarrow-is-erase or --disable-backarrow-is-erase was given.
   17729 if test "${enable_backarrow_is_erase+set}" = set; then
   17730   enableval="$enable_backarrow_is_erase"
   17731   test "$enableval" != yes && enableval=no
   17732 	if test "$enableval" != "no" ; then
   17733     backarrow_is_erase=$enableval
   17734 	else
   17735 		backarrow_is_erase=no
   17736 	fi
   17737 else
   17738   enableval=no
   17739 	backarrow_is_erase=no
   17740 
   17741 fi;
   17742 
   17743 echo "$as_me:17743: result: $backarrow_is_erase" >&5
   17744 echo "${ECHO_T}$backarrow_is_erase" >&6
   17745 case $backarrow_is_erase in
   17746 (yes)
   17747 	backarrow_is_erase=true
   17748 	;;
   17749 (no)
   17750 	backarrow_is_erase=false
   17751 	;;
   17752 esac
   17753 cf_xbool1=`echo "$backarrow_is_erase"|sed -e 's/^\(.\).*/\1/'`
   17754 
   17755 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   17756 
   17757 cf_xbool2=`echo "$backarrow_is_erase"|sed -e 's/^.//'`
   17758 backarrow_is_erase=${cf_xbool1}${cf_xbool2}
   17759 
   17760 cat >>confdefs.h <<EOF
   17761 #define DEF_BACKARO_ERASE $backarrow_is_erase
   17762 EOF
   17763 
   17764 echo "$as_me:17764: checking for default backspace/DEL setting" >&5
   17765 echo $ECHO_N "checking for default backspace/DEL setting... $ECHO_C" >&6
   17766 
   17767 # Check whether --enable-delete-is-del or --disable-delete-is-del was given.
   17768 if test "${enable_delete_is_del+set}" = set; then
   17769   enableval="$enable_delete_is_del"
   17770   delete_is_del=$enableval
   17771 else
   17772   delete_is_del=maybe
   17773 fi;
   17774 
   17775 echo "$as_me:17775: result: $delete_is_del" >&5
   17776 echo "${ECHO_T}$delete_is_del" >&6
   17777 case $delete_is_del in
   17778 (yes)
   17779 	delete_is_del=true
   17780 	;;
   17781 (no)
   17782 	delete_is_del=false
   17783 	;;
   17784 esac
   17785 cf_xbool1=`echo "$delete_is_del"|sed -e 's/^\(.\).*/\1/'`
   17786 
   17787 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   17788 
   17789 cf_xbool2=`echo "$delete_is_del"|sed -e 's/^.//'`
   17790 delete_is_del=${cf_xbool1}${cf_xbool2}
   17791 
   17792 cat >>confdefs.h <<EOF
   17793 #define DEFDELETE_DEL $delete_is_del
   17794 EOF
   17795 
   17796 echo "$as_me:17796: checking for default pty initial erase setting" >&5
   17797 echo $ECHO_N "checking for default pty initial erase setting... $ECHO_C" >&6
   17798 
   17799 # Check whether --enable-pty-erase or --disable-pty-erase was given.
   17800 if test "${enable_pty_erase+set}" = set; then
   17801   enableval="$enable_pty_erase"
   17802   initial_erase=$enableval
   17803 else
   17804   initial_erase=False
   17805 fi;
   17806 
   17807 echo "$as_me:17807: result: $initial_erase" >&5
   17808 echo "${ECHO_T}$initial_erase" >&6
   17809 case $initial_erase in
   17810 (yes)
   17811 	initial_erase=true
   17812 	;;
   17813 (no)
   17814 	initial_erase=false
   17815 	;;
   17816 esac
   17817 cf_xbool1=`echo "$initial_erase"|sed -e 's/^\(.\).*/\1/'`
   17818 
   17819 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   17820 
   17821 cf_xbool2=`echo "$initial_erase"|sed -e 's/^.//'`
   17822 initial_erase=${cf_xbool1}${cf_xbool2}
   17823 
   17824 cat >>confdefs.h <<EOF
   17825 #define DEF_INITIAL_ERASE $initial_erase
   17826 EOF
   17827 
   17828 echo "$as_me:17828: checking if alt should send ESC" >&5
   17829 echo $ECHO_N "checking if alt should send ESC... $ECHO_C" >&6
   17830 
   17831 # Check whether --enable-alt-sends-esc or --disable-alt-sends-esc was given.
   17832 if test "${enable_alt_sends_esc+set}" = set; then
   17833   enableval="$enable_alt_sends_esc"
   17834   test "$enableval" != yes && enableval=no
   17835 	if test "$enableval" != "no" ; then
   17836     alt_sends_esc=$enableval
   17837 	else
   17838 		alt_sends_esc=no
   17839 	fi
   17840 else
   17841   enableval=no
   17842 	alt_sends_esc=no
   17843 
   17844 fi;
   17845 
   17846 echo "$as_me:17846: result: $alt_sends_esc" >&5
   17847 echo "${ECHO_T}$alt_sends_esc" >&6
   17848 case $alt_sends_esc in
   17849 (yes)
   17850 	alt_sends_esc=true
   17851 	;;
   17852 (no)
   17853 	alt_sends_esc=false
   17854 	;;
   17855 esac
   17856 cf_xbool1=`echo "$alt_sends_esc"|sed -e 's/^\(.\).*/\1/'`
   17857 
   17858 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   17859 
   17860 cf_xbool2=`echo "$alt_sends_esc"|sed -e 's/^.//'`
   17861 alt_sends_esc=${cf_xbool1}${cf_xbool2}
   17862 
   17863 cat >>confdefs.h <<EOF
   17864 #define DEF_ALT_SENDS_ESC $alt_sends_esc
   17865 EOF
   17866 
   17867 echo "$as_me:17867: checking if meta should send ESC" >&5
   17868 echo $ECHO_N "checking if meta should send ESC... $ECHO_C" >&6
   17869 
   17870 # Check whether --enable-meta-sends-esc or --disable-meta-sends-esc was given.
   17871 if test "${enable_meta_sends_esc+set}" = set; then
   17872   enableval="$enable_meta_sends_esc"
   17873   test "$enableval" != yes && enableval=no
   17874 	if test "$enableval" != "no" ; then
   17875     meta_sends_esc=$enableval
   17876 	else
   17877 		meta_sends_esc=no
   17878 	fi
   17879 else
   17880   enableval=no
   17881 	meta_sends_esc=no
   17882 
   17883 fi;
   17884 
   17885 echo "$as_me:17885: result: $meta_sends_esc" >&5
   17886 echo "${ECHO_T}$meta_sends_esc" >&6
   17887 case $meta_sends_esc in
   17888 (yes)
   17889 	meta_sends_esc=true
   17890 	;;
   17891 (no)
   17892 	meta_sends_esc=false
   17893 	;;
   17894 esac
   17895 cf_xbool1=`echo "$meta_sends_esc"|sed -e 's/^\(.\).*/\1/'`
   17896 
   17897 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   17898 
   17899 cf_xbool2=`echo "$meta_sends_esc"|sed -e 's/^.//'`
   17900 meta_sends_esc=${cf_xbool1}${cf_xbool2}
   17901 
   17902 cat >>confdefs.h <<EOF
   17903 #define DEF_META_SENDS_ESC $meta_sends_esc
   17904 EOF
   17905 
   17906 ###############################################################################
   17907 # Extract the first word of "tic", so it can be a program name with args.
   17908 set dummy tic; ac_word=$2
   17909 echo "$as_me:17909: checking for $ac_word" >&5
   17910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   17911 if test "${ac_cv_prog_cf_tic_prog+set}" = set; then
   17912   echo $ECHO_N "(cached) $ECHO_C" >&6
   17913 else
   17914   if test -n "$cf_tic_prog"; then
   17915   ac_cv_prog_cf_tic_prog="$cf_tic_prog" # Let the user override the test.
   17916 else
   17917   ac_save_IFS=$IFS; IFS=$ac_path_separator
   17918 ac_dummy="$PATH"
   17919 for ac_dir in $ac_dummy; do
   17920   IFS=$ac_save_IFS
   17921   test -z "$ac_dir" && ac_dir=.
   17922   $as_executable_p "$ac_dir/$ac_word" || continue
   17923 ac_cv_prog_cf_tic_prog="yes"
   17924 echo "$as_me:17924: found $ac_dir/$ac_word" >&5
   17925 break
   17926 done
   17927 
   17928   test -z "$ac_cv_prog_cf_tic_prog" && ac_cv_prog_cf_tic_prog="no"
   17929 fi
   17930 fi
   17931 cf_tic_prog=$ac_cv_prog_cf_tic_prog
   17932 if test -n "$cf_tic_prog"; then
   17933   echo "$as_me:17933: result: $cf_tic_prog" >&5
   17934 echo "${ECHO_T}$cf_tic_prog" >&6
   17935 else
   17936   echo "$as_me:17936: result: no" >&5
   17937 echo "${ECHO_T}no" >&6
   17938 fi
   17939 
   17940 if test "$cf_tic_prog" = yes ; then
   17941 	if test -n "$TERMINFO"
   17942 	then
   17943 		case "$TERMINFO" in
   17944 		(/*)
   17945 			test -d "$TERMINFO" || unset TERMINFO
   17946 			;;
   17947 		(*)
   17948 			unset TERMINFO
   17949 			;;
   17950 		esac
   17951 	fi
   17952 	echo "$as_me:17952: checking for private terminfo-directory" >&5
   17953 echo $ECHO_N "checking for private terminfo-directory... $ECHO_C" >&6
   17954 
   17955 # Check whether --with-own-terminfo or --without-own-terminfo was given.
   17956 if test "${with_own_terminfo+set}" = set; then
   17957   withval="$with_own_terminfo"
   17958   TERMINFO_DIR=$withval
   17959 else
   17960   TERMINFO_DIR=${TERMINFO-none}
   17961 fi;
   17962 	echo "$as_me:17962: result: $TERMINFO_DIR" >&5
   17963 echo "${ECHO_T}$TERMINFO_DIR" >&6
   17964 	if test "$TERMINFO_DIR" = yes ; then
   17965 		{ echo "$as_me:17965: WARNING: no value given" >&5
   17966 echo "$as_me: WARNING: no value given" >&2;}
   17967 	elif test "$TERMINFO_DIR" != none ; then
   17968 		if test -d "$TERMINFO_DIR" ; then
   17969 
   17970 cat >>confdefs.h <<EOF
   17971 #define OWN_TERMINFO_DIR "$TERMINFO_DIR"
   17972 EOF
   17973 
   17974 			echo "$as_me:17974: checking if \$TERMINFO should also be set" >&5
   17975 echo $ECHO_N "checking if \$TERMINFO should also be set... $ECHO_C" >&6
   17976 
   17977 # Check whether --enable-env-terminfo or --disable-env-terminfo was given.
   17978 if test "${enable_env_terminfo+set}" = set; then
   17979   enableval="$enable_env_terminfo"
   17980   cf_env_terminfo=yes
   17981 else
   17982   cf_env_terminfo=no
   17983 fi;
   17984 			echo "$as_me:17984: result: $cf_env_terminfo" >&5
   17985 echo "${ECHO_T}$cf_env_terminfo" >&6
   17986 			test $cf_env_terminfo = yes &&
   17987 
   17988 cat >>confdefs.h <<\EOF
   17989 #define OWN_TERMINFO_ENV 1
   17990 EOF
   17991 
   17992 		else
   17993 			{ echo "$as_me:17993: WARNING: not a directory" >&5
   17994 echo "$as_me: WARNING: not a directory" >&2;}
   17995 		fi
   17996 	elif test "$prefix" != NONE ; then
   17997 		TERMINFO_DIR='${prefix}/lib/terminfo'
   17998 	elif test -d /usr/lib/terminfo ; then
   17999 		TERMINFO_DIR=/usr/lib/terminfo
   18000 	else
   18001 		TERMINFO_DIR=
   18002 	fi
   18003 	SET_TERMINFO=
   18004 	if test -n "$TERMINFO_DIR" ; then
   18005 		TERMINFO_DIR='$(DESTDIR)'$TERMINFO_DIR
   18006 		SET_TERMINFO='TERMINFO=$(TERMINFO_DIR)'
   18007 	fi
   18008 	no_ticprog=
   18009 else
   18010 	no_ticprog="#"
   18011 	TERMINFO_DIR=
   18012 	SET_TERMINFO=
   18013 fi
   18014 
   18015 ###############################################################################
   18016 
   18017 echo "$as_me:18017: checking if you want active-icons" >&5
   18018 echo $ECHO_N "checking if you want active-icons... $ECHO_C" >&6
   18019 
   18020 # Check whether --enable-active-icon or --disable-active-icon was given.
   18021 if test "${enable_active_icon+set}" = set; then
   18022   enableval="$enable_active_icon"
   18023   test "$enableval" != no && enableval=yes
   18024 	if test "$enableval" != "yes" ; then
   18025     enable_active_icon=no
   18026 	else
   18027 		enable_active_icon=yes
   18028 	fi
   18029 else
   18030   enableval=yes
   18031 	enable_active_icon=yes
   18032 
   18033 fi;
   18034 echo "$as_me:18034: result: $enable_active_icon" >&5
   18035 echo "${ECHO_T}$enable_active_icon" >&6
   18036 if test "$enable_active_icon" = no ; then
   18037 
   18038 cat >>confdefs.h <<\EOF
   18039 #define NO_ACTIVE_ICON 1
   18040 EOF
   18041 
   18042 fi
   18043 
   18044 echo "$as_me:18044: checking if you want ANSI color" >&5
   18045 echo $ECHO_N "checking if you want ANSI color... $ECHO_C" >&6
   18046 
   18047 # Check whether --enable-ansi-color or --disable-ansi-color was given.
   18048 if test "${enable_ansi_color+set}" = set; then
   18049   enableval="$enable_ansi_color"
   18050   test "$enableval" != no && enableval=yes
   18051 	if test "$enableval" != "yes" ; then
   18052     enable_ansi_color=no
   18053 	else
   18054 		enable_ansi_color=yes
   18055 	fi
   18056 else
   18057   enableval=yes
   18058 	enable_ansi_color=yes
   18059 
   18060 fi;
   18061 echo "$as_me:18061: result: $enable_ansi_color" >&5
   18062 echo "${ECHO_T}$enable_ansi_color" >&6
   18063 test "$enable_ansi_color" = no &&
   18064 cat >>confdefs.h <<\EOF
   18065 #define OPT_ISO_COLORS 0
   18066 EOF
   18067 
   18068 if test "$enable_ansi_color" = yes ; then
   18069 
   18070 	echo "$as_me:18070: checking if you want 16 colors like aixterm" >&5
   18071 echo $ECHO_N "checking if you want 16 colors like aixterm... $ECHO_C" >&6
   18072 
   18073 # Check whether --enable-16-color or --disable-16-color was given.
   18074 if test "${enable_16_color+set}" = set; then
   18075   enableval="$enable_16_color"
   18076   test "$enableval" != no && enableval=yes
   18077 	if test "$enableval" != "yes" ; then
   18078     enable_16_color=no
   18079 	else
   18080 		enable_16_color=yes
   18081 	fi
   18082 else
   18083   enableval=yes
   18084 	enable_16_color=yes
   18085 
   18086 fi;
   18087 	echo "$as_me:18087: result: $enable_16_color" >&5
   18088 echo "${ECHO_T}$enable_16_color" >&6
   18089 	test "$enable_16_color" = no &&
   18090 cat >>confdefs.h <<\EOF
   18091 #define OPT_AIX_COLORS 0
   18092 EOF
   18093 
   18094 	echo "$as_me:18094: checking if you want 256 colors" >&5
   18095 echo $ECHO_N "checking if you want 256 colors... $ECHO_C" >&6
   18096 
   18097 # Check whether --enable-256-color or --disable-256-color was given.
   18098 if test "${enable_256_color+set}" = set; then
   18099   enableval="$enable_256_color"
   18100   test "$enableval" != no && enableval=yes
   18101 	if test "$enableval" != "yes" ; then
   18102     enable_256_color=no
   18103 	else
   18104 		enable_256_color=yes
   18105 	fi
   18106 else
   18107   enableval=yes
   18108 	enable_256_color=yes
   18109 
   18110 fi;
   18111 	echo "$as_me:18111: result: $enable_256_color" >&5
   18112 echo "${ECHO_T}$enable_256_color" >&6
   18113 
   18114 	if test "$enable_256_color" = yes ; then
   18115 
   18116 		CHARPROC_DEPS="$CHARPROC_DEPS 256colres.h"
   18117 		EXTRAHDRS="$EXTRAHDRS 256colres.h"
   18118 
   18119 cat >>confdefs.h <<\EOF
   18120 #define OPT_256_COLORS 1
   18121 EOF
   18122 
   18123 		echo "$as_me:18123: checking if you want direct-color support" >&5
   18124 echo $ECHO_N "checking if you want direct-color support... $ECHO_C" >&6
   18125 
   18126 # Check whether --enable-direct-color or --disable-direct-color was given.
   18127 if test "${enable_direct_color+set}" = set; then
   18128   enableval="$enable_direct_color"
   18129   test "$enableval" != no && enableval=yes
   18130 	if test "$enableval" != "yes" ; then
   18131     enable_direct_color=no
   18132 	else
   18133 		enable_direct_color=yes
   18134 	fi
   18135 else
   18136   enableval=yes
   18137 	enable_direct_color=yes
   18138 
   18139 fi;
   18140 		echo "$as_me:18140: result: $enable_direct_color" >&5
   18141 echo "${ECHO_T}$enable_direct_color" >&6
   18142 		if test "$enable_direct_color" = yes ; then
   18143 
   18144 cat >>confdefs.h <<\EOF
   18145 #define OPT_DIRECT_COLOR 1
   18146 EOF
   18147 
   18148 		fi
   18149 
   18150 	else
   18151 
   18152 		echo "$as_me:18152: checking if you want 88 colors" >&5
   18153 echo $ECHO_N "checking if you want 88 colors... $ECHO_C" >&6
   18154 
   18155 # Check whether --enable-88-color or --disable-88-color was given.
   18156 if test "${enable_88_color+set}" = set; then
   18157   enableval="$enable_88_color"
   18158   test "$enableval" != no && enableval=yes
   18159 	if test "$enableval" != "yes" ; then
   18160     enable_88_color=no
   18161 	else
   18162 		enable_88_color=yes
   18163 	fi
   18164 else
   18165   enableval=yes
   18166 	enable_88_color=yes
   18167 
   18168 fi;
   18169 		echo "$as_me:18169: result: $enable_88_color" >&5
   18170 echo "${ECHO_T}$enable_88_color" >&6
   18171 		if test "$enable_88_color" = yes ; then
   18172 			CHARPROC_DEPS="$CHARPROC_DEPS 88colres.h"
   18173 			EXTRAHDRS="$EXTRAHDRS 88colres.h"
   18174 
   18175 cat >>confdefs.h <<\EOF
   18176 #define OPT_88_COLORS 1
   18177 EOF
   18178 
   18179 		fi
   18180 
   18181 	fi
   18182 
   18183 fi
   18184 
   18185 echo "$as_me:18185: checking if you want blinking cursor" >&5
   18186 echo $ECHO_N "checking if you want blinking cursor... $ECHO_C" >&6
   18187 
   18188 # Check whether --enable-blink-cursor or --disable-blink-cursor was given.
   18189 if test "${enable_blink_cursor+set}" = set; then
   18190   enableval="$enable_blink_cursor"
   18191   test "$enableval" != no && enableval=yes
   18192 	if test "$enableval" != "yes" ; then
   18193     enable_blink_curs=no
   18194 	else
   18195 		enable_blink_curs=yes
   18196 	fi
   18197 else
   18198   enableval=yes
   18199 	enable_blink_curs=yes
   18200 
   18201 fi;
   18202 echo "$as_me:18202: result: $enable_blink_curs" >&5
   18203 echo "${ECHO_T}$enable_blink_curs" >&6
   18204 test "$enable_blink_curs" = no &&
   18205 cat >>confdefs.h <<\EOF
   18206 #define OPT_BLINK_CURS 0
   18207 EOF
   18208 
   18209 echo "$as_me:18209: checking if you want to ignore Linux's broken palette-strings" >&5
   18210 echo $ECHO_N "checking if you want to ignore Linux's broken palette-strings... $ECHO_C" >&6
   18211 
   18212 case $host_os in
   18213 (linux*)
   18214 	assume_broken_osc=yes ;;
   18215 (*)
   18216 	assume_broken_osc=no ;;
   18217 esac
   18218 
   18219 # Check whether --enable-broken-osc or --disable-broken-osc was given.
   18220 if test "${enable_broken_osc+set}" = set; then
   18221   enableval="$enable_broken_osc"
   18222   test "$enableval" != no && enableval=yes
   18223 	if test "$enableval" != "$assume_broken_osc" ; then
   18224     enable_broken_osc=$enableval
   18225 	else
   18226 		enable_broken_osc=$enableval
   18227 	fi
   18228 else
   18229   enableval=$assume_broken_osc
   18230 	enable_broken_osc=$enableval
   18231 
   18232 fi;
   18233 echo "$as_me:18233: result: $enable_broken_osc" >&5
   18234 echo "${ECHO_T}$enable_broken_osc" >&6
   18235 if test "$enable_broken_osc" = yes ; then
   18236 
   18237 cat >>confdefs.h <<\EOF
   18238 #define OPT_BROKEN_OSC 1
   18239 EOF
   18240 
   18241 else
   18242 
   18243 cat >>confdefs.h <<\EOF
   18244 #define OPT_BROKEN_OSC 0
   18245 EOF
   18246 
   18247 fi
   18248 
   18249 echo "$as_me:18249: checking if you want to allow broken string-terminators" >&5
   18250 echo $ECHO_N "checking if you want to allow broken string-terminators... $ECHO_C" >&6
   18251 
   18252 # Check whether --enable-broken-st or --disable-broken-st was given.
   18253 if test "${enable_broken_st+set}" = set; then
   18254   enableval="$enable_broken_st"
   18255   test "$enableval" != yes && enableval=no
   18256 	if test "$enableval" != "no" ; then
   18257     enable_broken_st=no
   18258 	else
   18259 		enable_broken_st=yes
   18260 	fi
   18261 else
   18262   enableval=no
   18263 	enable_broken_st=yes
   18264 
   18265 fi;
   18266 echo "$as_me:18266: result: $enable_broken_st" >&5
   18267 echo "${ECHO_T}$enable_broken_st" >&6
   18268 test "$enable_broken_st" = no &&
   18269 cat >>confdefs.h <<\EOF
   18270 #define OPT_BROKEN_ST 0
   18271 EOF
   18272 
   18273 echo "$as_me:18273: checking if you want to compile-in icon data" >&5
   18274 echo $ECHO_N "checking if you want to compile-in icon data... $ECHO_C" >&6
   18275 
   18276 # Check whether --enable-builtin-xpms or --disable-builtin-xpms was given.
   18277 if test "${enable_builtin_xpms+set}" = set; then
   18278   enableval="$enable_builtin_xpms"
   18279   test "$enableval" != yes && enableval=no
   18280 	if test "$enableval" != "no" ; then
   18281     enable_builtin_xpms=yes
   18282 	else
   18283 		enable_builtin_xpms=no
   18284 	fi
   18285 else
   18286   enableval=no
   18287 	enable_builtin_xpms=no
   18288 
   18289 fi;
   18290 echo "$as_me:18290: result: $enable_builtin_xpms" >&5
   18291 echo "${ECHO_T}$enable_builtin_xpms" >&6
   18292 test "$enable_builtin_xpms" = yes &&
   18293 cat >>confdefs.h <<\EOF
   18294 #define OPT_BUILTIN_XPMS 1
   18295 EOF
   18296 
   18297 echo "$as_me:18297: checking if you want printable 128-159" >&5
   18298 echo $ECHO_N "checking if you want printable 128-159... $ECHO_C" >&6
   18299 
   18300 # Check whether --enable-c1-print or --disable-c1-print was given.
   18301 if test "${enable_c1_print+set}" = set; then
   18302   enableval="$enable_c1_print"
   18303   test "$enableval" != no && enableval=yes
   18304 	if test "$enableval" != "yes" ; then
   18305     enable_c1_print=no
   18306 	else
   18307 		enable_c1_print=yes
   18308 	fi
   18309 else
   18310   enableval=yes
   18311 	enable_c1_print=yes
   18312 
   18313 fi;
   18314 echo "$as_me:18314: result: $enable_c1_print" >&5
   18315 echo "${ECHO_T}$enable_c1_print" >&6
   18316 test "$enable_c1_print" = no &&
   18317 cat >>confdefs.h <<\EOF
   18318 #define OPT_C1_PRINT 0
   18319 EOF
   18320 
   18321 if test "$enable_ansi_color" = yes ; then
   18322 
   18323 	echo "$as_me:18323: checking if you want bold colors mapped like IBM PC" >&5
   18324 echo $ECHO_N "checking if you want bold colors mapped like IBM PC... $ECHO_C" >&6
   18325 
   18326 # Check whether --enable-bold-color or --disable-bold-color was given.
   18327 if test "${enable_bold_color+set}" = set; then
   18328   enableval="$enable_bold_color"
   18329   test "$enableval" != no && enableval=yes
   18330 	if test "$enableval" != "yes" ; then
   18331     enable_pc_color=no
   18332 	else
   18333 		enable_pc_color=yes
   18334 	fi
   18335 else
   18336   enableval=yes
   18337 	enable_pc_color=yes
   18338 
   18339 fi;
   18340 	echo "$as_me:18340: result: $enable_pc_color" >&5
   18341 echo "${ECHO_T}$enable_pc_color" >&6
   18342 	test "$enable_pc_color" = no &&
   18343 cat >>confdefs.h <<\EOF
   18344 #define OPT_PC_COLORS 0
   18345 EOF
   18346 
   18347 	echo "$as_me:18347: checking if you want separate color-classes" >&5
   18348 echo $ECHO_N "checking if you want separate color-classes... $ECHO_C" >&6
   18349 
   18350 # Check whether --enable-color-class or --disable-color-class was given.
   18351 if test "${enable_color_class+set}" = set; then
   18352   enableval="$enable_color_class"
   18353   test "$enableval" != no && enableval=yes
   18354 	if test "$enableval" != "yes" ; then
   18355     enable_color_class=no
   18356 	else
   18357 		enable_color_class=yes
   18358 	fi
   18359 else
   18360   enableval=yes
   18361 	enable_color_class=yes
   18362 
   18363 fi;
   18364 	echo "$as_me:18364: result: $enable_color_class" >&5
   18365 echo "${ECHO_T}$enable_color_class" >&6
   18366 	test "$enable_color_class" = no &&
   18367 cat >>confdefs.h <<\EOF
   18368 #define OPT_COLOR_CLASS 0
   18369 EOF
   18370 
   18371 	echo "$as_me:18371: checking if you want color-mode enabled by default" >&5
   18372 echo $ECHO_N "checking if you want color-mode enabled by default... $ECHO_C" >&6
   18373 
   18374 # Check whether --enable-color-mode or --disable-color-mode was given.
   18375 if test "${enable_color_mode+set}" = set; then
   18376   enableval="$enable_color_mode"
   18377   test "$enableval" != no && enableval=yes
   18378 	if test "$enableval" != "yes" ; then
   18379     default_colormode=no
   18380 	else
   18381 		default_colormode=yes
   18382 	fi
   18383 else
   18384   enableval=yes
   18385 	default_colormode=yes
   18386 
   18387 fi;
   18388 	echo "$as_me:18388: result: $default_colormode" >&5
   18389 echo "${ECHO_T}$default_colormode" >&6
   18390 	test "$default_colormode" = no &&
   18391 cat >>confdefs.h <<\EOF
   18392 #define DFT_COLORMODE 0
   18393 EOF
   18394 
   18395 fi
   18396 
   18397 echo "$as_me:18397: checking if you want support for color highlighting" >&5
   18398 echo $ECHO_N "checking if you want support for color highlighting... $ECHO_C" >&6
   18399 
   18400 # Check whether --enable-highlighting or --disable-highlighting was given.
   18401 if test "${enable_highlighting+set}" = set; then
   18402   enableval="$enable_highlighting"
   18403   test "$enableval" != no && enableval=yes
   18404 	if test "$enableval" != "yes" ; then
   18405     default_highlight=no
   18406 	else
   18407 		default_highlight=yes
   18408 	fi
   18409 else
   18410   enableval=yes
   18411 	default_highlight=yes
   18412 
   18413 fi;
   18414 echo "$as_me:18414: result: $default_highlight" >&5
   18415 echo "${ECHO_T}$default_highlight" >&6
   18416 test "$default_highlight" = no &&
   18417 cat >>confdefs.h <<\EOF
   18418 #define OPT_HIGHLIGHT_COLOR 0
   18419 EOF
   18420 
   18421 echo "$as_me:18421: checking if you want support for doublesize characters" >&5
   18422 echo $ECHO_N "checking if you want support for doublesize characters... $ECHO_C" >&6
   18423 
   18424 # Check whether --enable-doublechars or --disable-doublechars was given.
   18425 if test "${enable_doublechars+set}" = set; then
   18426   enableval="$enable_doublechars"
   18427   test "$enableval" != no && enableval=yes
   18428 	if test "$enableval" != "yes" ; then
   18429     enable_doublechars=no
   18430 	else
   18431 		enable_doublechars=yes
   18432 	fi
   18433 else
   18434   enableval=yes
   18435 	enable_doublechars=yes
   18436 
   18437 fi;
   18438 echo "$as_me:18438: result: $enable_doublechars" >&5
   18439 echo "${ECHO_T}$enable_doublechars" >&6
   18440 test "$enable_doublechars" = no &&
   18441 cat >>confdefs.h <<\EOF
   18442 #define OPT_DEC_CHRSET 0
   18443 EOF
   18444 
   18445 echo "$as_me:18445: checking if you want fallback-support for box characters" >&5
   18446 echo $ECHO_N "checking if you want fallback-support for box characters... $ECHO_C" >&6
   18447 
   18448 # Check whether --enable-boxchars or --disable-boxchars was given.
   18449 if test "${enable_boxchars+set}" = set; then
   18450   enableval="$enable_boxchars"
   18451   test "$enableval" != no && enableval=yes
   18452 	if test "$enableval" != "yes" ; then
   18453     enable_boxchars=no
   18454 	else
   18455 		enable_boxchars=yes
   18456 	fi
   18457 else
   18458   enableval=yes
   18459 	enable_boxchars=yes
   18460 
   18461 fi;
   18462 echo "$as_me:18462: result: $enable_boxchars" >&5
   18463 echo "${ECHO_T}$enable_boxchars" >&6
   18464 test "$enable_boxchars" = no &&
   18465 cat >>confdefs.h <<\EOF
   18466 #define OPT_BOX_CHARS 0
   18467 EOF
   18468 
   18469 echo "$as_me:18469: checking if you want to allow spawning new xterms" >&5
   18470 echo $ECHO_N "checking if you want to allow spawning new xterms... $ECHO_C" >&6
   18471 
   18472 # Check whether --enable-exec-xterm or --disable-exec-xterm was given.
   18473 if test "${enable_exec_xterm+set}" = set; then
   18474   enableval="$enable_exec_xterm"
   18475   test "$enableval" != yes && enableval=no
   18476 	if test "$enableval" != "no" ; then
   18477     enable_exec_xterm=yes
   18478 	else
   18479 		enable_exec_xterm=no
   18480 	fi
   18481 else
   18482   enableval=no
   18483 	enable_exec_xterm=no
   18484 
   18485 fi;
   18486 echo "$as_me:18486: result: $enable_exec_xterm" >&5
   18487 echo "${ECHO_T}$enable_exec_xterm" >&6
   18488 if test "$enable_exec_xterm" = yes ; then
   18489 
   18490 echo "$as_me:18490: checking for proc tree with cwd-support" >&5
   18491 echo $ECHO_N "checking for proc tree with cwd-support... $ECHO_C" >&6
   18492 if test "${cf_cv_procfs_cwd+set}" = set; then
   18493   echo $ECHO_N "(cached) $ECHO_C" >&6
   18494 else
   18495 
   18496 cf_cv_procfs_cwd=no
   18497 for cf_path in /proc /compat/linux/proc /usr/compat/linux/proc
   18498 do
   18499 	if test -d "$cf_path" && \
   18500 	   test -d "$cf_path"/$$ && \
   18501 	   { test -d "$cf_path"/$$/cwd || \
   18502 	     test -L "$cf_path"/$$/cwd; }; then
   18503 		cf_cv_procfs_cwd="$cf_path"
   18504 		break
   18505 	fi
   18506 done
   18507 
   18508 fi
   18509 echo "$as_me:18509: result: $cf_cv_procfs_cwd" >&5
   18510 echo "${ECHO_T}$cf_cv_procfs_cwd" >&6
   18511 
   18512 	if test "$cf_cv_procfs_cwd" = no ; then
   18513 		{ echo "$as_me:18513: WARNING: no suitable proc filesystem found" >&5
   18514 echo "$as_me: WARNING: no suitable proc filesystem found" >&2;}
   18515 	else
   18516 
   18517 cat >>confdefs.h <<EOF
   18518 #define PROCFS_ROOT "$cf_cv_procfs_cwd"
   18519 EOF
   18520 
   18521 cat >>confdefs.h <<\EOF
   18522 #define OPT_EXEC_XTERM 1
   18523 EOF
   18524 
   18525 	fi
   18526 fi
   18527 
   18528 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "Xext"; then
   18529 	test -n "$verbose" && echo "	found package Xext" 1>&6
   18530 
   18531 echo "${as_me:-configure}:18531: testing found package Xext ..." 1>&5
   18532 
   18533 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "Xext" 2>/dev/null`"
   18534 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "Xext" 2>/dev/null`"
   18535 	test -n "$verbose" && echo "	package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
   18536 
   18537 echo "${as_me:-configure}:18537: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   18538 
   18539 	test -n "$verbose" && echo "	package Xext LIBS: $cf_pkgconfig_libs" 1>&6
   18540 
   18541 echo "${as_me:-configure}:18541: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
   18542 
   18543 cf_fix_cppflags=no
   18544 cf_new_cflags=
   18545 cf_new_cppflags=
   18546 cf_new_extra_cppflags=
   18547 
   18548 for cf_add_cflags in $cf_pkgconfig_incs
   18549 do
   18550 case "$cf_fix_cppflags" in
   18551 (no)
   18552 	case "$cf_add_cflags" in
   18553 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   18554 		case "$cf_add_cflags" in
   18555 		(-D*)
   18556 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   18557 
   18558 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   18559 				&& test -z "${cf_tst_cflags}" \
   18560 				&& cf_fix_cppflags=yes
   18561 
   18562 			if test "$cf_fix_cppflags" = yes ; then
   18563 
   18564 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   18565 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   18566 
   18567 				continue
   18568 			elif test "${cf_tst_cflags}" = "\"'" ; then
   18569 
   18570 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   18571 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   18572 
   18573 				continue
   18574 			fi
   18575 			;;
   18576 		esac
   18577 		case "$CPPFLAGS" in
   18578 		(*$cf_add_cflags)
   18579 			;;
   18580 		(*)
   18581 			case "$cf_add_cflags" in
   18582 			(-D*)
   18583 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   18584 
   18585 CPPFLAGS=`echo "$CPPFLAGS" | \
   18586 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   18587 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   18588 
   18589 				;;
   18590 			esac
   18591 
   18592 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   18593 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   18594 
   18595 			;;
   18596 		esac
   18597 		;;
   18598 	(*)
   18599 
   18600 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   18601 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   18602 
   18603 		;;
   18604 	esac
   18605 	;;
   18606 (yes)
   18607 
   18608 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   18609 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   18610 
   18611 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   18612 
   18613 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   18614 		&& test -z "${cf_tst_cflags}" \
   18615 		&& cf_fix_cppflags=no
   18616 	;;
   18617 esac
   18618 done
   18619 
   18620 if test -n "$cf_new_cflags" ; then
   18621 
   18622 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   18623 	CFLAGS="${CFLAGS}$cf_new_cflags"
   18624 
   18625 fi
   18626 
   18627 if test -n "$cf_new_cppflags" ; then
   18628 
   18629 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   18630 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   18631 
   18632 fi
   18633 
   18634 if test -n "$cf_new_extra_cppflags" ; then
   18635 
   18636 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   18637 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   18638 
   18639 fi
   18640 
   18641 cf_add_libs="$LIBS"
   18642 # reverse order
   18643 cf_add_0lib=
   18644 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   18645 # filter duplicates
   18646 for cf_add_1lib in $cf_add_0lib; do
   18647 	for cf_add_2lib in $cf_add_libs; do
   18648 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   18649 			cf_add_1lib=
   18650 			break
   18651 		fi
   18652 	done
   18653 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   18654 done
   18655 LIBS="$cf_add_libs"
   18656 
   18657 	:
   18658 else
   18659 	cf_pkgconfig_incs=
   18660 	cf_pkgconfig_libs=
   18661 
   18662 	echo "$as_me:18662: checking for XextCreateExtension in -lXext" >&5
   18663 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
   18664 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
   18665   echo $ECHO_N "(cached) $ECHO_C" >&6
   18666 else
   18667   ac_check_lib_save_LIBS=$LIBS
   18668 LIBS="-lXext  $LIBS"
   18669 cat >"conftest.$ac_ext" <<_ACEOF
   18670 #line 18670 "configure"
   18671 #include "confdefs.h"
   18672 
   18673 /* Override any gcc2 internal prototype to avoid an error.  */
   18674 #ifdef __cplusplus
   18675 extern "C"
   18676 #endif
   18677 /* We use char because int might match the return type of a gcc2
   18678    builtin and then its argument prototype would still apply.  */
   18679 char XextCreateExtension ();
   18680 int
   18681 main (void)
   18682 {
   18683 XextCreateExtension ();
   18684   ;
   18685   return 0;
   18686 }
   18687 _ACEOF
   18688 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   18689 if { (eval echo "$as_me:18689: \"$ac_link\"") >&5
   18690   (eval $ac_link) 2>&5
   18691   ac_status=$?
   18692   echo "$as_me:18692: \$? = $ac_status" >&5
   18693   (exit "$ac_status"); } &&
   18694          { ac_try='test -s "conftest$ac_exeext"'
   18695   { (eval echo "$as_me:18695: \"$ac_try\"") >&5
   18696   (eval $ac_try) 2>&5
   18697   ac_status=$?
   18698   echo "$as_me:18698: \$? = $ac_status" >&5
   18699   (exit "$ac_status"); }; }; then
   18700   ac_cv_lib_Xext_XextCreateExtension=yes
   18701 else
   18702   echo "$as_me: failed program was:" >&5
   18703 cat "conftest.$ac_ext" >&5
   18704 ac_cv_lib_Xext_XextCreateExtension=no
   18705 fi
   18706 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   18707 LIBS=$ac_check_lib_save_LIBS
   18708 fi
   18709 echo "$as_me:18709: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
   18710 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
   18711 if test "$ac_cv_lib_Xext_XextCreateExtension" = yes; then
   18712 
   18713 cf_add_libs="$LIBS"
   18714 # reverse order
   18715 cf_add_0lib=
   18716 for cf_add_1lib in -lXext; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   18717 # filter duplicates
   18718 for cf_add_1lib in $cf_add_0lib; do
   18719 	for cf_add_2lib in $cf_add_libs; do
   18720 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   18721 			cf_add_1lib=
   18722 			break
   18723 		fi
   18724 	done
   18725 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   18726 done
   18727 LIBS="$cf_add_libs"
   18728 
   18729 fi
   18730 
   18731 fi
   18732 
   18733 echo "$as_me:18733: checking for X11/extensions/Xdbe.h" >&5
   18734 echo $ECHO_N "checking for X11/extensions/Xdbe.h... $ECHO_C" >&6
   18735 if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then
   18736   echo $ECHO_N "(cached) $ECHO_C" >&6
   18737 else
   18738   cat >"conftest.$ac_ext" <<_ACEOF
   18739 #line 18739 "configure"
   18740 #include "confdefs.h"
   18741 #include <X11/extensions/Xdbe.h>
   18742 _ACEOF
   18743 if { (eval echo "$as_me:18743: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   18744   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   18745   ac_status=$?
   18746   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   18747   rm -f conftest.er1
   18748   cat conftest.err >&5
   18749   echo "$as_me:18749: \$? = $ac_status" >&5
   18750   (exit "$ac_status"); } >/dev/null; then
   18751   if test -s conftest.err; then
   18752     ac_cpp_err=$ac_c_preproc_warn_flag
   18753   else
   18754     ac_cpp_err=
   18755   fi
   18756 else
   18757   ac_cpp_err=yes
   18758 fi
   18759 if test -z "$ac_cpp_err"; then
   18760   ac_cv_header_X11_extensions_Xdbe_h=yes
   18761 else
   18762   echo "$as_me: failed program was:" >&5
   18763   cat "conftest.$ac_ext" >&5
   18764   ac_cv_header_X11_extensions_Xdbe_h=no
   18765 fi
   18766 rm -f conftest.err "conftest.$ac_ext"
   18767 fi
   18768 echo "$as_me:18768: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5
   18769 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xdbe_h" >&6
   18770 if test "$ac_cv_header_X11_extensions_Xdbe_h" = yes; then
   18771 
   18772 cat >>confdefs.h <<\EOF
   18773 #define HAVE_X11_EXTENSIONS_XDBE_H 1
   18774 EOF
   18775 
   18776 	echo "$as_me:18776: checking for XdbeSwapBuffers" >&5
   18777 echo $ECHO_N "checking for XdbeSwapBuffers... $ECHO_C" >&6
   18778 if test "${ac_cv_func_XdbeSwapBuffers+set}" = set; then
   18779   echo $ECHO_N "(cached) $ECHO_C" >&6
   18780 else
   18781   cat >"conftest.$ac_ext" <<_ACEOF
   18782 #line 18782 "configure"
   18783 #include "confdefs.h"
   18784 #define XdbeSwapBuffers autoconf_temporary
   18785 #include <limits.h>	/* least-intrusive standard header which defines gcc2 __stub macros */
   18786 #undef XdbeSwapBuffers
   18787 
   18788 #ifdef __cplusplus
   18789 extern "C"
   18790 #endif
   18791 
   18792 /* We use char because int might match the return type of a gcc2
   18793    builtin and then its argument prototype would still apply.  */
   18794 char XdbeSwapBuffers (void);
   18795 
   18796 int
   18797 main (void)
   18798 {
   18799 
   18800 /* The GNU C library defines stubs for functions which it implements
   18801     to always fail with ENOSYS.  Some functions are actually named
   18802     something starting with __ and the normal name is an alias.  */
   18803 #if defined (__stub_XdbeSwapBuffers) || defined (__stub___XdbeSwapBuffers)
   18804 #error found stub for XdbeSwapBuffers
   18805 #endif
   18806 
   18807 	return XdbeSwapBuffers ();
   18808   ;
   18809   return 0;
   18810 }
   18811 _ACEOF
   18812 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   18813 if { (eval echo "$as_me:18813: \"$ac_link\"") >&5
   18814   (eval $ac_link) 2>&5
   18815   ac_status=$?
   18816   echo "$as_me:18816: \$? = $ac_status" >&5
   18817   (exit "$ac_status"); } &&
   18818          { ac_try='test -s "conftest$ac_exeext"'
   18819   { (eval echo "$as_me:18819: \"$ac_try\"") >&5
   18820   (eval $ac_try) 2>&5
   18821   ac_status=$?
   18822   echo "$as_me:18822: \$? = $ac_status" >&5
   18823   (exit "$ac_status"); }; }; then
   18824   ac_cv_func_XdbeSwapBuffers=yes
   18825 else
   18826   echo "$as_me: failed program was:" >&5
   18827 cat "conftest.$ac_ext" >&5
   18828 ac_cv_func_XdbeSwapBuffers=no
   18829 fi
   18830 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   18831 fi
   18832 echo "$as_me:18832: result: $ac_cv_func_XdbeSwapBuffers" >&5
   18833 echo "${ECHO_T}$ac_cv_func_XdbeSwapBuffers" >&6
   18834 if test "$ac_cv_func_XdbeSwapBuffers" = yes; then
   18835 
   18836 cat >>confdefs.h <<\EOF
   18837 #define HAVE_XDBESWAPBUFFERS 1
   18838 EOF
   18839 
   18840 				   cf_x_ext_double_buffer=yes
   18841 fi
   18842 
   18843 fi
   18844 
   18845 double_buffer=False
   18846 if test "$cf_x_ext_double_buffer" = yes ; then
   18847 	echo "$as_me:18847: checking if you want to enable double-buffering in default resources" >&5
   18848 echo $ECHO_N "checking if you want to enable double-buffering in default resources... $ECHO_C" >&6
   18849 
   18850 # Check whether --enable-double-buffer or --disable-double-buffer was given.
   18851 if test "${enable_double_buffer+set}" = set; then
   18852   enableval="$enable_double_buffer"
   18853   test "$enableval" != yes && enableval=no
   18854 	if test "$enableval" != "no" ; then
   18855     enable_double_bfr=yes
   18856 	else
   18857 		enable_double_bfr=no
   18858 	fi
   18859 else
   18860   enableval=no
   18861 	enable_double_bfr=no
   18862 
   18863 fi;
   18864 	echo "$as_me:18864: result: $enable_double_bfr" >&5
   18865 echo "${ECHO_T}$enable_double_bfr" >&6
   18866 	if test "$enable_double_bfr" = yes ; then
   18867 
   18868 cat >>confdefs.h <<\EOF
   18869 #define OPT_DOUBLE_BUFFER 1
   18870 EOF
   18871 
   18872 		double_buffer=True
   18873 	fi
   18874 fi
   18875 
   18876 echo "$as_me:18876: checking if you want to use FreeType library" >&5
   18877 echo $ECHO_N "checking if you want to use FreeType library... $ECHO_C" >&6
   18878 
   18879 # Check whether --enable-freetype or --disable-freetype was given.
   18880 if test "${enable_freetype+set}" = set; then
   18881   enableval="$enable_freetype"
   18882   test "$enableval" != no && enableval=yes
   18883 	if test "$enableval" != "yes" ; then
   18884     enable_freetype=no
   18885 	else
   18886 		enable_freetype=yes
   18887 	fi
   18888 else
   18889   enableval=yes
   18890 	enable_freetype=yes
   18891 
   18892 fi;
   18893 echo "$as_me:18893: result: $enable_freetype" >&5
   18894 echo "${ECHO_T}$enable_freetype" >&6
   18895 if test "$enable_freetype" = yes ; then
   18896 
   18897 cf_cv_x_freetype_incs=no
   18898 cf_cv_x_freetype_libs=no
   18899 cf_extra_freetype_libs=
   18900 FREETYPE_CONFIG=none
   18901 FREETYPE_PARAMS=
   18902 
   18903 echo "$as_me:18903: checking for FreeType configuration script" >&5
   18904 echo $ECHO_N "checking for FreeType configuration script... $ECHO_C" >&6
   18905 
   18906 # Check whether --with-freetype-config or --without-freetype-config was given.
   18907 if test "${with_freetype_config+set}" = set; then
   18908   withval="$with_freetype_config"
   18909   cf_cv_x_freetype_cfgs="$withval"
   18910 else
   18911   cf_cv_x_freetype_cfgs=auto
   18912 fi;
   18913 test -z $cf_cv_x_freetype_cfgs && cf_cv_x_freetype_cfgs=auto
   18914 test $cf_cv_x_freetype_cfgs = no && cf_cv_x_freetype_cfgs=none
   18915 echo "$as_me:18915: result: $cf_cv_x_freetype_cfgs" >&5
   18916 echo "${ECHO_T}$cf_cv_x_freetype_cfgs" >&6
   18917 
   18918 case $cf_cv_x_freetype_cfgs in
   18919 (none)
   18920 	echo "$as_me:18920: checking if you specified -D/-I options for FreeType" >&5
   18921 echo $ECHO_N "checking if you specified -D/-I options for FreeType... $ECHO_C" >&6
   18922 
   18923 # Check whether --with-freetype-cflags or --without-freetype-cflags was given.
   18924 if test "${with_freetype_cflags+set}" = set; then
   18925   withval="$with_freetype_cflags"
   18926   cf_cv_x_freetype_incs="$with_freetype_cflags"
   18927 else
   18928   cf_cv_x_freetype_incs=no
   18929 fi;
   18930 	echo "$as_me:18930: result: $cf_cv_x_freetype_incs" >&5
   18931 echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6
   18932 
   18933 	echo "$as_me:18933: checking if you specified -L/-l options for FreeType" >&5
   18934 echo $ECHO_N "checking if you specified -L/-l options for FreeType... $ECHO_C" >&6
   18935 
   18936 # Check whether --with-freetype-libs or --without-freetype-libs was given.
   18937 if test "${with_freetype_libs+set}" = set; then
   18938   withval="$with_freetype_libs"
   18939   cf_cv_x_freetype_libs="$with_freetype_libs"
   18940 else
   18941   cf_cv_x_freetype_libs=no
   18942 fi;
   18943 	echo "$as_me:18943: result: $cf_cv_x_freetype_libs" >&5
   18944 echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6
   18945 	;;
   18946 (auto)
   18947 	if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then
   18948 		FREETYPE_CONFIG=$PKG_CONFIG
   18949 		FREETYPE_PARAMS=xft
   18950 	else
   18951 		# Extract the first word of "freetype-config", so it can be a program name with args.
   18952 set dummy freetype-config; ac_word=$2
   18953 echo "$as_me:18953: checking for $ac_word" >&5
   18954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   18955 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
   18956   echo $ECHO_N "(cached) $ECHO_C" >&6
   18957 else
   18958   case $FREETYPE_CONFIG in
   18959   [\\/]* | ?:[\\/]*)
   18960   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
   18961   ;;
   18962   *)
   18963   ac_save_IFS=$IFS; IFS=$ac_path_separator
   18964 ac_dummy="$PATH"
   18965 for ac_dir in $ac_dummy; do
   18966   IFS=$ac_save_IFS
   18967   test -z "$ac_dir" && ac_dir=.
   18968   if $as_executable_p "$ac_dir/$ac_word"; then
   18969    ac_cv_path_FREETYPE_CONFIG="$ac_dir/$ac_word"
   18970    echo "$as_me:18970: found $ac_dir/$ac_word" >&5
   18971    break
   18972 fi
   18973 done
   18974 
   18975   test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="none"
   18976   ;;
   18977 esac
   18978 fi
   18979 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
   18980 
   18981 if test -n "$FREETYPE_CONFIG"; then
   18982   echo "$as_me:18982: result: $FREETYPE_CONFIG" >&5
   18983 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
   18984 else
   18985   echo "$as_me:18985: result: no" >&5
   18986 echo "${ECHO_T}no" >&6
   18987 fi
   18988 
   18989 		if test "$FREETYPE_CONFIG" != none; then
   18990 			FREETYPE_CONFIG=$FREETYPE_CONFIG
   18991 			cf_extra_freetype_libs="-lXft"
   18992 		else
   18993 			# Extract the first word of "xft-config", so it can be a program name with args.
   18994 set dummy xft-config; ac_word=$2
   18995 echo "$as_me:18995: checking for $ac_word" >&5
   18996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   18997 if test "${ac_cv_path_FREETYPE_OLD_CONFIG+set}" = set; then
   18998   echo $ECHO_N "(cached) $ECHO_C" >&6
   18999 else
   19000   case $FREETYPE_OLD_CONFIG in
   19001   [\\/]* | ?:[\\/]*)
   19002   ac_cv_path_FREETYPE_OLD_CONFIG="$FREETYPE_OLD_CONFIG" # Let the user override the test with a path.
   19003   ;;
   19004   *)
   19005   ac_save_IFS=$IFS; IFS=$ac_path_separator
   19006 ac_dummy="$PATH"
   19007 for ac_dir in $ac_dummy; do
   19008   IFS=$ac_save_IFS
   19009   test -z "$ac_dir" && ac_dir=.
   19010   if $as_executable_p "$ac_dir/$ac_word"; then
   19011    ac_cv_path_FREETYPE_OLD_CONFIG="$ac_dir/$ac_word"
   19012    echo "$as_me:19012: found $ac_dir/$ac_word" >&5
   19013    break
   19014 fi
   19015 done
   19016 
   19017   test -z "$ac_cv_path_FREETYPE_OLD_CONFIG" && ac_cv_path_FREETYPE_OLD_CONFIG="none"
   19018   ;;
   19019 esac
   19020 fi
   19021 FREETYPE_OLD_CONFIG=$ac_cv_path_FREETYPE_OLD_CONFIG
   19022 
   19023 if test -n "$FREETYPE_OLD_CONFIG"; then
   19024   echo "$as_me:19024: result: $FREETYPE_OLD_CONFIG" >&5
   19025 echo "${ECHO_T}$FREETYPE_OLD_CONFIG" >&6
   19026 else
   19027   echo "$as_me:19027: result: no" >&5
   19028 echo "${ECHO_T}no" >&6
   19029 fi
   19030 
   19031 			if test "$FREETYPE_OLD_CONFIG" != none; then
   19032 				FREETYPE_CONFIG=$FREETYPE_OLD_CONFIG
   19033 			fi
   19034 		fi
   19035 	fi
   19036 	;;
   19037 (pkg*)
   19038 	if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then
   19039 		FREETYPE_CONFIG=$cf_cv_x_freetype_cfgs
   19040 		FREETYPE_PARAMS=xft
   19041 	else
   19042 		{ echo "$as_me:19042: WARNING: cannot find pkg-config for Xft" >&5
   19043 echo "$as_me: WARNING: cannot find pkg-config for Xft" >&2;}
   19044 	fi
   19045 	;;
   19046 (*)
   19047 	# Extract the first word of "$cf_cv_x_freetype_cfgs", so it can be a program name with args.
   19048 set dummy $cf_cv_x_freetype_cfgs; ac_word=$2
   19049 echo "$as_me:19049: checking for $ac_word" >&5
   19050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   19051 if test "${ac_cv_path_FREETYPE_XFT_CONFIG+set}" = set; then
   19052   echo $ECHO_N "(cached) $ECHO_C" >&6
   19053 else
   19054   case $FREETYPE_XFT_CONFIG in
   19055   [\\/]* | ?:[\\/]*)
   19056   ac_cv_path_FREETYPE_XFT_CONFIG="$FREETYPE_XFT_CONFIG" # Let the user override the test with a path.
   19057   ;;
   19058   *)
   19059   ac_save_IFS=$IFS; IFS=$ac_path_separator
   19060 ac_dummy="$PATH"
   19061 for ac_dir in $ac_dummy; do
   19062   IFS=$ac_save_IFS
   19063   test -z "$ac_dir" && ac_dir=.
   19064   if $as_executable_p "$ac_dir/$ac_word"; then
   19065    ac_cv_path_FREETYPE_XFT_CONFIG="$ac_dir/$ac_word"
   19066    echo "$as_me:19066: found $ac_dir/$ac_word" >&5
   19067    break
   19068 fi
   19069 done
   19070 
   19071   test -z "$ac_cv_path_FREETYPE_XFT_CONFIG" && ac_cv_path_FREETYPE_XFT_CONFIG="none"
   19072   ;;
   19073 esac
   19074 fi
   19075 FREETYPE_XFT_CONFIG=$ac_cv_path_FREETYPE_XFT_CONFIG
   19076 
   19077 if test -n "$FREETYPE_XFT_CONFIG"; then
   19078   echo "$as_me:19078: result: $FREETYPE_XFT_CONFIG" >&5
   19079 echo "${ECHO_T}$FREETYPE_XFT_CONFIG" >&6
   19080 else
   19081   echo "$as_me:19081: result: no" >&5
   19082 echo "${ECHO_T}no" >&6
   19083 fi
   19084 
   19085 	if test "$FREETYPE_XFT_CONFIG" != none; then
   19086 		FREETYPE_CONFIG=$FREETYPE_XFT_CONFIG
   19087 	else
   19088 		{ echo "$as_me:19088: WARNING: cannot find config script for Xft" >&5
   19089 echo "$as_me: WARNING: cannot find config script for Xft" >&2;}
   19090 	fi
   19091 	;;
   19092 esac
   19093 
   19094 if test "$FREETYPE_CONFIG" != none ; then
   19095 	echo "$as_me:19095: checking for FreeType config" >&5
   19096 echo $ECHO_N "checking for FreeType config... $ECHO_C" >&6
   19097 	echo "$as_me:19097: result: $FREETYPE_CONFIG $FREETYPE_PARAMS" >&5
   19098 echo "${ECHO_T}$FREETYPE_CONFIG $FREETYPE_PARAMS" >&6
   19099 
   19100 	if test "$cf_cv_x_freetype_incs" = no ; then
   19101 		echo "$as_me:19101: checking for $FREETYPE_CONFIG cflags" >&5
   19102 echo $ECHO_N "checking for $FREETYPE_CONFIG cflags... $ECHO_C" >&6
   19103 		cf_cv_x_freetype_incs="`$FREETYPE_CONFIG $FREETYPE_PARAMS --cflags 2>/dev/null`"
   19104 		echo "$as_me:19104: result: $cf_cv_x_freetype_incs" >&5
   19105 echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6
   19106 	fi
   19107 
   19108 	if test "$cf_cv_x_freetype_libs" = no ; then
   19109 		echo "$as_me:19109: checking for $FREETYPE_CONFIG libs" >&5
   19110 echo $ECHO_N "checking for $FREETYPE_CONFIG libs... $ECHO_C" >&6
   19111 		cf_cv_x_freetype_libs="$cf_extra_freetype_libs `$FREETYPE_CONFIG $FREETYPE_PARAMS --libs 2>/dev/null`"
   19112 		echo "$as_me:19112: result: $cf_cv_x_freetype_libs" >&5
   19113 echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6
   19114 	fi
   19115 fi
   19116 
   19117 if test "$cf_cv_x_freetype_incs" = no ; then
   19118 	cf_cv_x_freetype_incs=
   19119 fi
   19120 
   19121 if test "$cf_cv_x_freetype_libs" = no ; then
   19122 	cf_cv_x_freetype_libs=-lXft
   19123 fi
   19124 
   19125 echo "$as_me:19125: checking if we can link with FreeType libraries" >&5
   19126 echo $ECHO_N "checking if we can link with FreeType libraries... $ECHO_C" >&6
   19127 
   19128 cf_save_LIBS="$LIBS"
   19129 cf_save_INCS="$CPPFLAGS"
   19130 
   19131 cf_add_libs="$LIBS"
   19132 # reverse order
   19133 cf_add_0lib=
   19134 for cf_add_1lib in $cf_cv_x_freetype_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   19135 # filter duplicates
   19136 for cf_add_1lib in $cf_add_0lib; do
   19137 	for cf_add_2lib in $cf_add_libs; do
   19138 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   19139 			cf_add_1lib=
   19140 			break
   19141 		fi
   19142 	done
   19143 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   19144 done
   19145 LIBS="$cf_add_libs"
   19146 
   19147 CPPFLAGS="$CPPFLAGS $cf_cv_x_freetype_incs"
   19148 
   19149 cat >"conftest.$ac_ext" <<_ACEOF
   19150 #line 19150 "configure"
   19151 #include "confdefs.h"
   19152 
   19153 #include <X11/Xlib.h>
   19154 #include <X11/extensions/Xrender.h>
   19155 #include <X11/Xft/Xft.h>
   19156 int
   19157 main (void)
   19158 {
   19159 
   19160 	XftPattern  *pat = XftNameParse ("name"); (void)pat
   19161   ;
   19162   return 0;
   19163 }
   19164 _ACEOF
   19165 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   19166 if { (eval echo "$as_me:19166: \"$ac_link\"") >&5
   19167   (eval $ac_link) 2>&5
   19168   ac_status=$?
   19169   echo "$as_me:19169: \$? = $ac_status" >&5
   19170   (exit "$ac_status"); } &&
   19171          { ac_try='test -s "conftest$ac_exeext"'
   19172   { (eval echo "$as_me:19172: \"$ac_try\"") >&5
   19173   (eval $ac_try) 2>&5
   19174   ac_status=$?
   19175   echo "$as_me:19175: \$? = $ac_status" >&5
   19176   (exit "$ac_status"); }; }; then
   19177   cf_cv_found_freetype=yes
   19178 else
   19179   echo "$as_me: failed program was:" >&5
   19180 cat "conftest.$ac_ext" >&5
   19181 cf_cv_found_freetype=no
   19182 fi
   19183 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   19184 echo "$as_me:19184: result: $cf_cv_found_freetype" >&5
   19185 echo "${ECHO_T}$cf_cv_found_freetype" >&6
   19186 
   19187 LIBS="$cf_save_LIBS"
   19188 CPPFLAGS="$cf_save_INCS"
   19189 
   19190 if test "$cf_cv_found_freetype" = yes ; then
   19191 
   19192 cf_add_libs="$LIBS"
   19193 # reverse order
   19194 cf_add_0lib=
   19195 for cf_add_1lib in $cf_cv_x_freetype_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   19196 # filter duplicates
   19197 for cf_add_1lib in $cf_add_0lib; do
   19198 	for cf_add_2lib in $cf_add_libs; do
   19199 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   19200 			cf_add_1lib=
   19201 			break
   19202 		fi
   19203 	done
   19204 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   19205 done
   19206 LIBS="$cf_add_libs"
   19207 
   19208 cf_fix_cppflags=no
   19209 cf_new_cflags=
   19210 cf_new_cppflags=
   19211 cf_new_extra_cppflags=
   19212 
   19213 for cf_add_cflags in $cf_cv_x_freetype_incs
   19214 do
   19215 case "$cf_fix_cppflags" in
   19216 (no)
   19217 	case "$cf_add_cflags" in
   19218 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   19219 		case "$cf_add_cflags" in
   19220 		(-D*)
   19221 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   19222 
   19223 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   19224 				&& test -z "${cf_tst_cflags}" \
   19225 				&& cf_fix_cppflags=yes
   19226 
   19227 			if test "$cf_fix_cppflags" = yes ; then
   19228 
   19229 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   19230 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   19231 
   19232 				continue
   19233 			elif test "${cf_tst_cflags}" = "\"'" ; then
   19234 
   19235 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   19236 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   19237 
   19238 				continue
   19239 			fi
   19240 			;;
   19241 		esac
   19242 		case "$CPPFLAGS" in
   19243 		(*$cf_add_cflags)
   19244 			;;
   19245 		(*)
   19246 			case "$cf_add_cflags" in
   19247 			(-D*)
   19248 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   19249 
   19250 CPPFLAGS=`echo "$CPPFLAGS" | \
   19251 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   19252 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   19253 
   19254 				;;
   19255 			esac
   19256 
   19257 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   19258 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   19259 
   19260 			;;
   19261 		esac
   19262 		;;
   19263 	(*)
   19264 
   19265 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   19266 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   19267 
   19268 		;;
   19269 	esac
   19270 	;;
   19271 (yes)
   19272 
   19273 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   19274 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   19275 
   19276 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   19277 
   19278 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   19279 		&& test -z "${cf_tst_cflags}" \
   19280 		&& cf_fix_cppflags=no
   19281 	;;
   19282 esac
   19283 done
   19284 
   19285 if test -n "$cf_new_cflags" ; then
   19286 
   19287 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   19288 	CFLAGS="${CFLAGS}$cf_new_cflags"
   19289 
   19290 fi
   19291 
   19292 if test -n "$cf_new_cppflags" ; then
   19293 
   19294 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   19295 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   19296 
   19297 fi
   19298 
   19299 if test -n "$cf_new_extra_cppflags" ; then
   19300 
   19301 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   19302 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   19303 
   19304 fi
   19305 
   19306 cat >>confdefs.h <<\EOF
   19307 #define XRENDERFONT 1
   19308 EOF
   19309 
   19310 for ac_func in \
   19311 	XftDrawCharSpec \
   19312 	XftDrawSetClip \
   19313 	XftDrawSetClipRectangles \
   19314 
   19315 do
   19316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   19317 echo "$as_me:19317: checking for $ac_func" >&5
   19318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   19319 if eval "test \"\${$as_ac_var+set}\" = set"; then
   19320   echo $ECHO_N "(cached) $ECHO_C" >&6
   19321 else
   19322   cat >"conftest.$ac_ext" <<_ACEOF
   19323 #line 19323 "configure"
   19324 #include "confdefs.h"
   19325 #define $ac_func autoconf_temporary
   19326 #include <limits.h>	/* least-intrusive standard header which defines gcc2 __stub macros */
   19327 #undef $ac_func
   19328 
   19329 #ifdef __cplusplus
   19330 extern "C"
   19331 #endif
   19332 
   19333 /* We use char because int might match the return type of a gcc2
   19334    builtin and then its argument prototype would still apply.  */
   19335 char $ac_func (void);
   19336 
   19337 int
   19338 main (void)
   19339 {
   19340 
   19341 /* The GNU C library defines stubs for functions which it implements
   19342     to always fail with ENOSYS.  Some functions are actually named
   19343     something starting with __ and the normal name is an alias.  */
   19344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   19345 #error found stub for $ac_func
   19346 #endif
   19347 
   19348 	return $ac_func ();
   19349   ;
   19350   return 0;
   19351 }
   19352 _ACEOF
   19353 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   19354 if { (eval echo "$as_me:19354: \"$ac_link\"") >&5
   19355   (eval $ac_link) 2>&5
   19356   ac_status=$?
   19357   echo "$as_me:19357: \$? = $ac_status" >&5
   19358   (exit "$ac_status"); } &&
   19359          { ac_try='test -s "conftest$ac_exeext"'
   19360   { (eval echo "$as_me:19360: \"$ac_try\"") >&5
   19361   (eval $ac_try) 2>&5
   19362   ac_status=$?
   19363   echo "$as_me:19363: \$? = $ac_status" >&5
   19364   (exit "$ac_status"); }; }; then
   19365   eval "$as_ac_var=yes"
   19366 else
   19367   echo "$as_me: failed program was:" >&5
   19368 cat "conftest.$ac_ext" >&5
   19369 eval "$as_ac_var=no"
   19370 fi
   19371 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   19372 fi
   19373 echo "$as_me:19373: result: `eval echo '${'"$as_ac_var"'}'`" >&5
   19374 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
   19375 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
   19376   cat >>confdefs.h <<EOF
   19377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   19378 EOF
   19379 
   19380 fi
   19381 done
   19382 
   19383 else
   19384 	{ echo "$as_me:19384: WARNING: No libraries found for FreeType" >&5
   19385 echo "$as_me: WARNING: No libraries found for FreeType" >&2;}
   19386 	CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//`
   19387 fi
   19388 
   19389 # FIXME: revisit this if needed
   19390 
   19391 if test "$cf_cv_found_freetype" = yes ; then
   19392 echo "$as_me:19392: checking for usable Xft/fontconfig package" >&5
   19393 echo $ECHO_N "checking for usable Xft/fontconfig package... $ECHO_C" >&6
   19394 if test "${cf_cv_xft_compat+set}" = set; then
   19395   echo $ECHO_N "(cached) $ECHO_C" >&6
   19396 else
   19397 
   19398 cat >"conftest.$ac_ext" <<_ACEOF
   19399 #line 19399 "configure"
   19400 #include "confdefs.h"
   19401 
   19402 #include <X11/Xft/Xft.h>
   19403 
   19404 int
   19405 main (void)
   19406 {
   19407 
   19408 	XftPattern *pat = 0;
   19409 	XftPatternBuild(pat,
   19410 					XFT_FAMILY, XftTypeString, "mono",
   19411 					(void *) 0);
   19412 
   19413   ;
   19414   return 0;
   19415 }
   19416 _ACEOF
   19417 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   19418 if { (eval echo "$as_me:19418: \"$ac_link\"") >&5
   19419   (eval $ac_link) 2>&5
   19420   ac_status=$?
   19421   echo "$as_me:19421: \$? = $ac_status" >&5
   19422   (exit "$ac_status"); } &&
   19423          { ac_try='test -s "conftest$ac_exeext"'
   19424   { (eval echo "$as_me:19424: \"$ac_try\"") >&5
   19425   (eval $ac_try) 2>&5
   19426   ac_status=$?
   19427   echo "$as_me:19427: \$? = $ac_status" >&5
   19428   (exit "$ac_status"); }; }; then
   19429   cf_cv_xft_compat=yes
   19430 else
   19431   echo "$as_me: failed program was:" >&5
   19432 cat "conftest.$ac_ext" >&5
   19433 cf_cv_xft_compat=no
   19434 fi
   19435 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   19436 
   19437 fi
   19438 echo "$as_me:19438: result: $cf_cv_xft_compat" >&5
   19439 echo "${ECHO_T}$cf_cv_xft_compat" >&6
   19440 
   19441 if test "$cf_cv_xft_compat" = no
   19442 then
   19443 	# workaround for broken ".pc" files used for Xft.
   19444 	case "$cf_cv_x_freetype_libs" in
   19445 	(*-lfontconfig*)
   19446 		;;
   19447 	(*)
   19448 		test -n "$verbose" && echo "	work around broken package" 1>&6
   19449 
   19450 echo "${as_me:-configure}:19450: testing work around broken package ..." 1>&5
   19451 
   19452 		cf_save_fontconfig="$LIBS"
   19453 
   19454 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "fontconfig"; then
   19455 	test -n "$verbose" && echo "	found package fontconfig" 1>&6
   19456 
   19457 echo "${as_me:-configure}:19457: testing found package fontconfig ..." 1>&5
   19458 
   19459 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`"
   19460 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "fontconfig" 2>/dev/null`"
   19461 	test -n "$verbose" && echo "	package fontconfig CFLAGS: $cf_pkgconfig_incs" 1>&6
   19462 
   19463 echo "${as_me:-configure}:19463: testing package fontconfig CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   19464 
   19465 	test -n "$verbose" && echo "	package fontconfig LIBS: $cf_pkgconfig_libs" 1>&6
   19466 
   19467 echo "${as_me:-configure}:19467: testing package fontconfig LIBS: $cf_pkgconfig_libs ..." 1>&5
   19468 
   19469 cf_fix_cppflags=no
   19470 cf_new_cflags=
   19471 cf_new_cppflags=
   19472 cf_new_extra_cppflags=
   19473 
   19474 for cf_add_cflags in $cf_pkgconfig_incs
   19475 do
   19476 case "$cf_fix_cppflags" in
   19477 (no)
   19478 	case "$cf_add_cflags" in
   19479 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   19480 		case "$cf_add_cflags" in
   19481 		(-D*)
   19482 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   19483 
   19484 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   19485 				&& test -z "${cf_tst_cflags}" \
   19486 				&& cf_fix_cppflags=yes
   19487 
   19488 			if test "$cf_fix_cppflags" = yes ; then
   19489 
   19490 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   19491 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   19492 
   19493 				continue
   19494 			elif test "${cf_tst_cflags}" = "\"'" ; then
   19495 
   19496 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   19497 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   19498 
   19499 				continue
   19500 			fi
   19501 			;;
   19502 		esac
   19503 		case "$CPPFLAGS" in
   19504 		(*$cf_add_cflags)
   19505 			;;
   19506 		(*)
   19507 			case "$cf_add_cflags" in
   19508 			(-D*)
   19509 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   19510 
   19511 CPPFLAGS=`echo "$CPPFLAGS" | \
   19512 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   19513 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   19514 
   19515 				;;
   19516 			esac
   19517 
   19518 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   19519 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   19520 
   19521 			;;
   19522 		esac
   19523 		;;
   19524 	(*)
   19525 
   19526 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   19527 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   19528 
   19529 		;;
   19530 	esac
   19531 	;;
   19532 (yes)
   19533 
   19534 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   19535 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   19536 
   19537 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   19538 
   19539 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   19540 		&& test -z "${cf_tst_cflags}" \
   19541 		&& cf_fix_cppflags=no
   19542 	;;
   19543 esac
   19544 done
   19545 
   19546 if test -n "$cf_new_cflags" ; then
   19547 
   19548 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   19549 	CFLAGS="${CFLAGS}$cf_new_cflags"
   19550 
   19551 fi
   19552 
   19553 if test -n "$cf_new_cppflags" ; then
   19554 
   19555 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   19556 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   19557 
   19558 fi
   19559 
   19560 if test -n "$cf_new_extra_cppflags" ; then
   19561 
   19562 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   19563 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   19564 
   19565 fi
   19566 
   19567 cf_add_libs="$LIBS"
   19568 # reverse order
   19569 cf_add_0lib=
   19570 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   19571 # filter duplicates
   19572 for cf_add_1lib in $cf_add_0lib; do
   19573 	for cf_add_2lib in $cf_add_libs; do
   19574 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   19575 			cf_add_1lib=
   19576 			break
   19577 		fi
   19578 	done
   19579 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   19580 done
   19581 LIBS="$cf_add_libs"
   19582 
   19583 cf_fix_cppflags=no
   19584 cf_new_cflags=
   19585 cf_new_cppflags=
   19586 cf_new_extra_cppflags=
   19587 
   19588 for cf_add_cflags in $cf_pkgconfig_incs
   19589 do
   19590 case "$cf_fix_cppflags" in
   19591 (no)
   19592 	case "$cf_add_cflags" in
   19593 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   19594 		case "$cf_add_cflags" in
   19595 		(-D*)
   19596 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   19597 
   19598 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   19599 				&& test -z "${cf_tst_cflags}" \
   19600 				&& cf_fix_cppflags=yes
   19601 
   19602 			if test "$cf_fix_cppflags" = yes ; then
   19603 
   19604 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   19605 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   19606 
   19607 				continue
   19608 			elif test "${cf_tst_cflags}" = "\"'" ; then
   19609 
   19610 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   19611 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   19612 
   19613 				continue
   19614 			fi
   19615 			;;
   19616 		esac
   19617 		case "$CPPFLAGS" in
   19618 		(*$cf_add_cflags)
   19619 			;;
   19620 		(*)
   19621 			case "$cf_add_cflags" in
   19622 			(-D*)
   19623 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   19624 
   19625 CPPFLAGS=`echo "$CPPFLAGS" | \
   19626 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   19627 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   19628 
   19629 				;;
   19630 			esac
   19631 
   19632 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   19633 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   19634 
   19635 			;;
   19636 		esac
   19637 		;;
   19638 	(*)
   19639 
   19640 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   19641 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   19642 
   19643 		;;
   19644 	esac
   19645 	;;
   19646 (yes)
   19647 
   19648 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   19649 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   19650 
   19651 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   19652 
   19653 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   19654 		&& test -z "${cf_tst_cflags}" \
   19655 		&& cf_fix_cppflags=no
   19656 	;;
   19657 esac
   19658 done
   19659 
   19660 if test -n "$cf_new_cflags" ; then
   19661 
   19662 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   19663 	CFLAGS="${CFLAGS}$cf_new_cflags"
   19664 
   19665 fi
   19666 
   19667 if test -n "$cf_new_cppflags" ; then
   19668 
   19669 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   19670 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   19671 
   19672 fi
   19673 
   19674 if test -n "$cf_new_extra_cppflags" ; then
   19675 
   19676 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   19677 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   19678 
   19679 fi
   19680 
   19681 				LIBS="$cf_save_fontconfig"
   19682 
   19683 test -n "$verbose" && echo "	...before $LIBS" 1>&6
   19684 
   19685 echo "${as_me:-configure}:19685: testing ...before $LIBS ..." 1>&5
   19686 
   19687 LIBS=`echo "$LIBS" | sed -e "s/[ 	][ 	]*/ /g" -e "s%-lXft %-lXft $cf_pkgconfig_libs %" -e 's%  % %g'`
   19688 test -n "$verbose" && echo "	...after  $LIBS" 1>&6
   19689 
   19690 echo "${as_me:-configure}:19690: testing ...after  $LIBS ..." 1>&5
   19691 
   19692 else
   19693 	cf_pkgconfig_incs=
   19694 	cf_pkgconfig_libs=
   19695 
   19696 test -n "$verbose" && echo "	...before $LIBS" 1>&6
   19697 
   19698 echo "${as_me:-configure}:19698: testing ...before $LIBS ..." 1>&5
   19699 
   19700 LIBS=`echo "$LIBS" | sed -e "s/[ 	][ 	]*/ /g" -e "s%-lXft %-lXft -lfontconfig %" -e 's%  % %g'`
   19701 test -n "$verbose" && echo "	...after  $LIBS" 1>&6
   19702 
   19703 echo "${as_me:-configure}:19703: testing ...after  $LIBS ..." 1>&5
   19704 
   19705 fi
   19706 
   19707 		;;
   19708 	esac
   19709 fi
   19710 fi
   19711 
   19712 else
   19713 	CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//`
   19714 fi
   19715 
   19716 echo "$as_me:19716: checking if you want support for HP-style function keys" >&5
   19717 echo $ECHO_N "checking if you want support for HP-style function keys... $ECHO_C" >&6
   19718 
   19719 # Check whether --enable-hp-fkeys or --disable-hp-fkeys was given.
   19720 if test "${enable_hp_fkeys+set}" = set; then
   19721   enableval="$enable_hp_fkeys"
   19722   test "$enableval" != yes && enableval=no
   19723 	if test "$enableval" != "no" ; then
   19724     enable_hp_fkeys=yes
   19725 	else
   19726 		enable_hp_fkeys=no
   19727 	fi
   19728 else
   19729   enableval=no
   19730 	enable_hp_fkeys=no
   19731 
   19732 fi;
   19733 echo "$as_me:19733: result: $enable_hp_fkeys" >&5
   19734 echo "${ECHO_T}$enable_hp_fkeys" >&6
   19735 if test "$enable_hp_fkeys" = yes ; then
   19736 
   19737 cat >>confdefs.h <<\EOF
   19738 #define OPT_HP_FUNC_KEYS 1
   19739 EOF
   19740 
   19741 fi
   19742 
   19743 echo "$as_me:19743: checking if you want support for SCO-style function keys" >&5
   19744 echo $ECHO_N "checking if you want support for SCO-style function keys... $ECHO_C" >&6
   19745 
   19746 # Check whether --enable-sco-fkeys or --disable-sco-fkeys was given.
   19747 if test "${enable_sco_fkeys+set}" = set; then
   19748   enableval="$enable_sco_fkeys"
   19749   test "$enableval" != yes && enableval=no
   19750 	if test "$enableval" != "no" ; then
   19751     enable_sco_fkeys=yes
   19752 	else
   19753 		enable_sco_fkeys=no
   19754 	fi
   19755 else
   19756   enableval=no
   19757 	enable_sco_fkeys=no
   19758 
   19759 fi;
   19760 echo "$as_me:19760: result: $enable_sco_fkeys" >&5
   19761 echo "${ECHO_T}$enable_sco_fkeys" >&6
   19762 if test "$enable_sco_fkeys" = yes ; then
   19763 
   19764 cat >>confdefs.h <<\EOF
   19765 #define OPT_SCO_FUNC_KEYS 1
   19766 EOF
   19767 
   19768 fi
   19769 
   19770 echo "$as_me:19770: checking if you want support for Sun-style function keys" >&5
   19771 echo $ECHO_N "checking if you want support for Sun-style function keys... $ECHO_C" >&6
   19772 
   19773 # Check whether --enable-sun-fkeys or --disable-sun-fkeys was given.
   19774 if test "${enable_sun_fkeys+set}" = set; then
   19775   enableval="$enable_sun_fkeys"
   19776   test "$enableval" != no && enableval=yes
   19777 	if test "$enableval" != "yes" ; then
   19778     enable_sun_fkeys=no
   19779 	else
   19780 		enable_sun_fkeys=yes
   19781 	fi
   19782 else
   19783   enableval=yes
   19784 	enable_sun_fkeys=yes
   19785 
   19786 fi;
   19787 echo "$as_me:19787: result: $enable_sun_fkeys" >&5
   19788 echo "${ECHO_T}$enable_sun_fkeys" >&6
   19789 if test "$enable_sun_fkeys" = no ; then
   19790 
   19791 cat >>confdefs.h <<\EOF
   19792 #define OPT_SUN_FUNC_KEYS 0
   19793 EOF
   19794 
   19795 fi
   19796 
   19797 echo "$as_me:19797: checking if you want saved-lines stored as a FIFO" >&5
   19798 echo $ECHO_N "checking if you want saved-lines stored as a FIFO... $ECHO_C" >&6
   19799 
   19800 # Check whether --enable-fifo-lines or --disable-fifo-lines was given.
   19801 if test "${enable_fifo_lines+set}" = set; then
   19802   enableval="$enable_fifo_lines"
   19803   test "$enableval" != no && enableval=yes
   19804 	if test "$enableval" != "yes" ; then
   19805     enable_fifo_lines=no
   19806 	else
   19807 		enable_fifo_lines=yes
   19808 	fi
   19809 else
   19810   enableval=yes
   19811 	enable_fifo_lines=yes
   19812 
   19813 fi;
   19814 echo "$as_me:19814: result: $enable_fifo_lines" >&5
   19815 echo "${ECHO_T}$enable_fifo_lines" >&6
   19816 if test "$enable_fifo_lines" = yes ; then
   19817 
   19818 cat >>confdefs.h <<\EOF
   19819 #define OPT_FIFO_LINES 1
   19820 EOF
   19821 
   19822 fi
   19823 
   19824 echo "$as_me:19824: checking if you want support for internationalization" >&5
   19825 echo $ECHO_N "checking if you want support for internationalization... $ECHO_C" >&6
   19826 
   19827 # Check whether --enable-i18n or --disable-i18n was given.
   19828 if test "${enable_i18n+set}" = set; then
   19829   enableval="$enable_i18n"
   19830   test "$enableval" != no && enableval=yes
   19831 	if test "$enableval" != "yes" ; then
   19832     enable_i18n=no
   19833 	else
   19834 		enable_i18n=yes
   19835 	fi
   19836 else
   19837   enableval=yes
   19838 	enable_i18n=yes
   19839 
   19840 fi;
   19841 echo "$as_me:19841: result: $enable_i18n" >&5
   19842 echo "${ECHO_T}$enable_i18n" >&6
   19843 if test "$enable_i18n" = no ; then
   19844 
   19845 cat >>confdefs.h <<\EOF
   19846 #define OPT_I18N_SUPPORT 0
   19847 EOF
   19848 
   19849 fi
   19850 
   19851 echo "$as_me:19851: checking if you want support for initial-erase setup" >&5
   19852 echo $ECHO_N "checking if you want support for initial-erase setup... $ECHO_C" >&6
   19853 
   19854 # Check whether --enable-initial-erase or --disable-initial-erase was given.
   19855 if test "${enable_initial_erase+set}" = set; then
   19856   enableval="$enable_initial_erase"
   19857   test "$enableval" != no && enableval=yes
   19858 	if test "$enableval" != "yes" ; then
   19859     enable_ie=no
   19860 	else
   19861 		enable_ie=yes
   19862 	fi
   19863 else
   19864   enableval=yes
   19865 	enable_ie=yes
   19866 
   19867 fi;
   19868 echo "$as_me:19868: result: $enable_ie" >&5
   19869 echo "${ECHO_T}$enable_ie" >&6
   19870 if test "$enable_ie" = no ; then
   19871 
   19872 cat >>confdefs.h <<\EOF
   19873 #define OPT_INITIAL_ERASE 0
   19874 EOF
   19875 
   19876 fi
   19877 
   19878 echo "$as_me:19878: checking if you want support for input-method" >&5
   19879 echo $ECHO_N "checking if you want support for input-method... $ECHO_C" >&6
   19880 
   19881 # Check whether --enable-input-method or --disable-input-method was given.
   19882 if test "${enable_input_method+set}" = set; then
   19883   enableval="$enable_input_method"
   19884   test "$enableval" != no && enableval=yes
   19885 	if test "$enableval" != "yes" ; then
   19886     enable_ximp=no
   19887 	else
   19888 		enable_ximp=$enable_i18n
   19889 	fi
   19890 else
   19891   enableval=yes
   19892 	enable_ximp=$enable_i18n
   19893 
   19894 fi;
   19895 echo "$as_me:19895: result: $enable_ximp" >&5
   19896 echo "${ECHO_T}$enable_ximp" >&6
   19897 
   19898 echo "$as_me:19898: checking if X libraries support input-method" >&5
   19899 echo $ECHO_N "checking if X libraries support input-method... $ECHO_C" >&6
   19900 if test "${cf_cv_input_method+set}" = set; then
   19901   echo $ECHO_N "(cached) $ECHO_C" >&6
   19902 else
   19903 
   19904 cat >"conftest.$ac_ext" <<_ACEOF
   19905 #line 19905 "configure"
   19906 #include "confdefs.h"
   19907 
   19908 #include <X11/IntrinsicP.h>
   19909 #include <X11/Xatom.h>
   19910 #include <X11/Xutil.h>
   19911 #include <X11/Xmu/Atoms.h>
   19912 #include <X11/Xmu/Converters.h>
   19913 #include <X11/Xaw/XawImP.h>
   19914 
   19915 int
   19916 main (void)
   19917 {
   19918 
   19919 {
   19920 	XIM xim;
   19921 	XIMStyles *xim_styles = 0;
   19922 	XIMStyle input_style;
   19923 	Widget w = XtCreateWidget("none", (WidgetClass)0, None, (ArgList)0, 0);
   19924 
   19925 	XSetLocaleModifiers("@im=none");
   19926 	xim = XOpenIM(XtDisplay(w), NULL, NULL, NULL);
   19927 	XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL);
   19928 	XCloseIM(xim);
   19929 	input_style = (XIMPreeditNothing | XIMStatusNothing);
   19930 	(void)xim_styles;
   19931 	(void)input_style;
   19932 }
   19933 
   19934   ;
   19935   return 0;
   19936 }
   19937 _ACEOF
   19938 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   19939 if { (eval echo "$as_me:19939: \"$ac_link\"") >&5
   19940   (eval $ac_link) 2>&5
   19941   ac_status=$?
   19942   echo "$as_me:19942: \$? = $ac_status" >&5
   19943   (exit "$ac_status"); } &&
   19944          { ac_try='test -s "conftest$ac_exeext"'
   19945   { (eval echo "$as_me:19945: \"$ac_try\"") >&5
   19946   (eval $ac_try) 2>&5
   19947   ac_status=$?
   19948   echo "$as_me:19948: \$? = $ac_status" >&5
   19949   (exit "$ac_status"); }; }; then
   19950   cf_cv_input_method=yes
   19951 else
   19952   echo "$as_me: failed program was:" >&5
   19953 cat "conftest.$ac_ext" >&5
   19954 cf_cv_input_method=no
   19955 fi
   19956 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   19957 fi
   19958 echo "$as_me:19958: result: $cf_cv_input_method" >&5
   19959 echo "${ECHO_T}$cf_cv_input_method" >&6
   19960 
   19961 test "$cf_cv_input_method" = no && enable_ximp=no
   19962 if test "$enable_ximp" != no ; then
   19963 	if test "$enable_i18n" = no ; then
   19964 		{ echo "$as_me:19964: WARNING: input-methor relies upon internationalization" >&5
   19965 echo "$as_me: WARNING: input-methor relies upon internationalization" >&2;}
   19966 		enable_ximp=no
   19967 	fi
   19968 fi
   19969 if test "$enable_ximp" = no ; then
   19970 
   19971 cat >>confdefs.h <<\EOF
   19972 #define OPT_INPUT_METHOD 0
   19973 EOF
   19974 
   19975 fi
   19976 
   19977 echo "$as_me:19977: checking if you want support for load-vt-fonts" >&5
   19978 echo $ECHO_N "checking if you want support for load-vt-fonts... $ECHO_C" >&6
   19979 
   19980 # Check whether --enable-load-vt-fonts or --disable-load-vt-fonts was given.
   19981 if test "${enable_load_vt_fonts+set}" = set; then
   19982   enableval="$enable_load_vt_fonts"
   19983   test "$enableval" != yes && enableval=no
   19984 	if test "$enableval" != "no" ; then
   19985     enable_load_vt_fonts=yes
   19986 	else
   19987 		enable_load_vt_fonts=no
   19988 	fi
   19989 else
   19990   enableval=no
   19991 	enable_load_vt_fonts=no
   19992 
   19993 fi;
   19994 echo "$as_me:19994: result: $enable_load_vt_fonts" >&5
   19995 echo "${ECHO_T}$enable_load_vt_fonts" >&6
   19996 if test "$enable_load_vt_fonts" = yes ; then
   19997 
   19998 cat >>confdefs.h <<\EOF
   19999 #define OPT_LOAD_VTFONTS 1
   20000 EOF
   20001 
   20002 fi
   20003 
   20004 echo "$as_me:20004: checking if you want support for logging" >&5
   20005 echo $ECHO_N "checking if you want support for logging... $ECHO_C" >&6
   20006 
   20007 # Check whether --enable-logging or --disable-logging was given.
   20008 if test "${enable_logging+set}" = set; then
   20009   enableval="$enable_logging"
   20010   test "$enableval" != yes && enableval=no
   20011 	if test "$enableval" != "no" ; then
   20012     enable_logging=yes
   20013 	else
   20014 		enable_logging=no
   20015 	fi
   20016 else
   20017   enableval=no
   20018 	enable_logging=no
   20019 
   20020 fi;
   20021 echo "$as_me:20021: result: $enable_logging" >&5
   20022 echo "${ECHO_T}$enable_logging" >&6
   20023 if test "$enable_logging" = yes ; then
   20024 
   20025 cat >>confdefs.h <<\EOF
   20026 #define ALLOWLOGGING 1
   20027 EOF
   20028 
   20029 	echo "$as_me:20029: checking if you want to allow logging via a pipe" >&5
   20030 echo $ECHO_N "checking if you want to allow logging via a pipe... $ECHO_C" >&6
   20031 
   20032 # Check whether --enable-logfile-exec or --disable-logfile-exec was given.
   20033 if test "${enable_logfile_exec+set}" = set; then
   20034   enableval="$enable_logfile_exec"
   20035   test "$enableval" != yes && enableval=no
   20036 	if test "$enableval" != "no" ; then
   20037     enable_log_exec=yes
   20038 	else
   20039 		enable_log_exec=no
   20040 	fi
   20041 else
   20042   enableval=no
   20043 	enable_log_exec=no
   20044 
   20045 fi;
   20046 	echo "$as_me:20046: result: $enable_log_exec" >&5
   20047 echo "${ECHO_T}$enable_log_exec" >&6
   20048 	if test "$enable_log_exec" = yes ; then
   20049 
   20050 cat >>confdefs.h <<\EOF
   20051 #define ALLOWLOGFILEEXEC 1
   20052 EOF
   20053 
   20054 	fi
   20055 fi
   20056 
   20057 echo "$as_me:20057: checking if you want support for iconify/maximize translations" >&5
   20058 echo $ECHO_N "checking if you want support for iconify/maximize translations... $ECHO_C" >&6
   20059 
   20060 # Check whether --enable-maximize or --disable-maximize was given.
   20061 if test "${enable_maximize+set}" = set; then
   20062   enableval="$enable_maximize"
   20063   test "$enableval" != no && enableval=yes
   20064 	if test "$enableval" != "yes" ; then
   20065     enable_maximize=no
   20066 	else
   20067 		enable_maximize=yes
   20068 	fi
   20069 else
   20070   enableval=yes
   20071 	enable_maximize=yes
   20072 
   20073 fi;
   20074 echo "$as_me:20074: result: $enable_maximize" >&5
   20075 echo "${ECHO_T}$enable_maximize" >&6
   20076 test "$enable_maximize" = no &&
   20077 cat >>confdefs.h <<\EOF
   20078 #define OPT_MAXIMIZE 0
   20079 EOF
   20080 
   20081 echo "$as_me:20081: checking if you want NumLock to override keyboard tables" >&5
   20082 echo $ECHO_N "checking if you want NumLock to override keyboard tables... $ECHO_C" >&6
   20083 
   20084 # Check whether --enable-num-lock or --disable-num-lock was given.
   20085 if test "${enable_num_lock+set}" = set; then
   20086   enableval="$enable_num_lock"
   20087   test "$enableval" != no && enableval=yes
   20088 	if test "$enableval" != "yes" ; then
   20089     enable_numlock=no
   20090 	else
   20091 		enable_numlock=yes
   20092 	fi
   20093 else
   20094   enableval=yes
   20095 	enable_numlock=yes
   20096 
   20097 fi;
   20098 echo "$as_me:20098: result: $enable_numlock" >&5
   20099 echo "${ECHO_T}$enable_numlock" >&6
   20100 test "$enable_numlock" = no &&
   20101 cat >>confdefs.h <<\EOF
   20102 #define OPT_NUM_LOCK 0
   20103 EOF
   20104 
   20105 echo "$as_me:20105: checking if you want support for get/set of base64 selection data" >&5
   20106 echo $ECHO_N "checking if you want support for get/set of base64 selection data... $ECHO_C" >&6
   20107 
   20108 # Check whether --enable-paste64 or --disable-paste64 was given.
   20109 if test "${enable_paste64+set}" = set; then
   20110   enableval="$enable_paste64"
   20111   test "$enableval" != no && enableval=yes
   20112 	if test "$enableval" != "yes" ; then
   20113     enable_paste64=no
   20114 	else
   20115 		enable_paste64=yes
   20116 	fi
   20117 else
   20118   enableval=yes
   20119 	enable_paste64=yes
   20120 
   20121 fi;
   20122 echo "$as_me:20122: result: $enable_paste64" >&5
   20123 echo "${ECHO_T}$enable_paste64" >&6
   20124 if test "$enable_paste64" = yes ; then
   20125 
   20126 cat >>confdefs.h <<\EOF
   20127 #define OPT_PASTE64 1
   20128 EOF
   20129 
   20130 else
   20131 
   20132 cat >>confdefs.h <<\EOF
   20133 #define OPT_PASTE64 0
   20134 EOF
   20135 
   20136 fi
   20137 
   20138 echo "$as_me:20138: checking if you want support for pty-handshaking" >&5
   20139 echo $ECHO_N "checking if you want support for pty-handshaking... $ECHO_C" >&6
   20140 
   20141 # Check whether --enable-pty-handshake or --disable-pty-handshake was given.
   20142 if test "${enable_pty_handshake+set}" = set; then
   20143   enableval="$enable_pty_handshake"
   20144   test "$enableval" != no && enableval=yes
   20145 	if test "$enableval" != "yes" ; then
   20146     enable_pty_handshake=no
   20147 	else
   20148 		enable_pty_handshake=yes
   20149 	fi
   20150 else
   20151   enableval=yes
   20152 	enable_pty_handshake=yes
   20153 
   20154 fi;
   20155 echo "$as_me:20155: result: $enable_pty_handshake" >&5
   20156 echo "${ECHO_T}$enable_pty_handshake" >&6
   20157 if test "$enable_pty_handshake" = yes ; then
   20158 
   20159 cat >>confdefs.h <<\EOF
   20160 #define OPT_PTY_HANDSHAKE 1
   20161 EOF
   20162 
   20163 else
   20164 
   20165 cat >>confdefs.h <<\EOF
   20166 #define OPT_PTY_HANDSHAKE 0
   20167 EOF
   20168 
   20169 fi
   20170 
   20171 echo "$as_me:20171: checking if you want support for mouse in readline applications" >&5
   20172 echo $ECHO_N "checking if you want support for mouse in readline applications... $ECHO_C" >&6
   20173 
   20174 # Check whether --enable-readline-mouse or --disable-readline-mouse was given.
   20175 if test "${enable_readline_mouse+set}" = set; then
   20176   enableval="$enable_readline_mouse"
   20177   test "$enableval" != yes && enableval=no
   20178 	if test "$enableval" != "no" ; then
   20179     enable_readline_mouse=yes
   20180 	else
   20181 		enable_readline_mouse=no
   20182 	fi
   20183 else
   20184   enableval=no
   20185 	enable_readline_mouse=no
   20186 
   20187 fi;
   20188 echo "$as_me:20188: result: $enable_readline_mouse" >&5
   20189 echo "${ECHO_T}$enable_readline_mouse" >&6
   20190 if test "$enable_readline_mouse" = yes ; then
   20191 
   20192 cat >>confdefs.h <<\EOF
   20193 #define OPT_READLINE 1
   20194 EOF
   20195 
   20196 fi
   20197 
   20198 echo "$as_me:20198: checking if you want support for regular-expression selections" >&5
   20199 echo $ECHO_N "checking if you want support for regular-expression selections... $ECHO_C" >&6
   20200 
   20201 # Check whether --enable-regex or --disable-regex was given.
   20202 if test "${enable_regex+set}" = set; then
   20203   enableval="$enable_regex"
   20204   test "$enableval" != no && enableval=yes
   20205 	if test "$enableval" != "yes" ; then
   20206     enable_regex=no
   20207 	else
   20208 		enable_regex=yes
   20209 	fi
   20210 else
   20211   enableval=yes
   20212 	enable_regex=yes
   20213 
   20214 fi;
   20215 echo "$as_me:20215: result: $enable_regex" >&5
   20216 echo "${ECHO_T}$enable_regex" >&6
   20217 if test "$enable_regex" = yes ; then
   20218 
   20219 echo "$as_me:20219: checking if you want to use PCRE2 for regular-expressions" >&5
   20220 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
   20221 
   20222 # Check whether --with-pcre2 or --without-pcre2 was given.
   20223 if test "${with_pcre2+set}" = set; then
   20224   withval="$with_pcre2"
   20225 
   20226 fi;
   20227 test -z "$with_pcre2" && with_pcre2=no
   20228 echo "$as_me:20228: result: $with_pcre2" >&5
   20229 echo "${ECHO_T}$with_pcre2" >&6
   20230 
   20231 if test "x$with_pcre2" != xno ; then
   20232 	cf_with_pcre2_ok=no
   20233 	for cf_with_pcre2 in libpcre2 libpcre2-posix libpcre
   20234 	do
   20235 
   20236 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_with_pcre2"; then
   20237 	test -n "$verbose" && echo "	found package $cf_with_pcre2" 1>&6
   20238 
   20239 echo "${as_me:-configure}:20239: testing found package $cf_with_pcre2 ..." 1>&5
   20240 
   20241 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_with_pcre2" 2>/dev/null`"
   20242 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "$cf_with_pcre2" 2>/dev/null`"
   20243 	test -n "$verbose" && echo "	package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
   20244 
   20245 echo "${as_me:-configure}:20245: testing package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   20246 
   20247 	test -n "$verbose" && echo "	package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs" 1>&6
   20248 
   20249 echo "${as_me:-configure}:20249: testing package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
   20250 
   20251 cf_fix_cppflags=no
   20252 cf_new_cflags=
   20253 cf_new_cppflags=
   20254 cf_new_extra_cppflags=
   20255 
   20256 for cf_add_cflags in $cf_pkgconfig_incs
   20257 do
   20258 case "$cf_fix_cppflags" in
   20259 (no)
   20260 	case "$cf_add_cflags" in
   20261 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   20262 		case "$cf_add_cflags" in
   20263 		(-D*)
   20264 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   20265 
   20266 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   20267 				&& test -z "${cf_tst_cflags}" \
   20268 				&& cf_fix_cppflags=yes
   20269 
   20270 			if test "$cf_fix_cppflags" = yes ; then
   20271 
   20272 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   20273 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   20274 
   20275 				continue
   20276 			elif test "${cf_tst_cflags}" = "\"'" ; then
   20277 
   20278 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   20279 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   20280 
   20281 				continue
   20282 			fi
   20283 			;;
   20284 		esac
   20285 		case "$CPPFLAGS" in
   20286 		(*$cf_add_cflags)
   20287 			;;
   20288 		(*)
   20289 			case "$cf_add_cflags" in
   20290 			(-D*)
   20291 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   20292 
   20293 CPPFLAGS=`echo "$CPPFLAGS" | \
   20294 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   20295 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   20296 
   20297 				;;
   20298 			esac
   20299 
   20300 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   20301 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   20302 
   20303 			;;
   20304 		esac
   20305 		;;
   20306 	(*)
   20307 
   20308 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   20309 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   20310 
   20311 		;;
   20312 	esac
   20313 	;;
   20314 (yes)
   20315 
   20316 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   20317 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   20318 
   20319 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   20320 
   20321 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   20322 		&& test -z "${cf_tst_cflags}" \
   20323 		&& cf_fix_cppflags=no
   20324 	;;
   20325 esac
   20326 done
   20327 
   20328 if test -n "$cf_new_cflags" ; then
   20329 
   20330 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   20331 	CFLAGS="${CFLAGS}$cf_new_cflags"
   20332 
   20333 fi
   20334 
   20335 if test -n "$cf_new_cppflags" ; then
   20336 
   20337 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   20338 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   20339 
   20340 fi
   20341 
   20342 if test -n "$cf_new_extra_cppflags" ; then
   20343 
   20344 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   20345 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   20346 
   20347 fi
   20348 
   20349 cf_add_libs="$LIBS"
   20350 # reverse order
   20351 cf_add_0lib=
   20352 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   20353 # filter duplicates
   20354 for cf_add_1lib in $cf_add_0lib; do
   20355 	for cf_add_2lib in $cf_add_libs; do
   20356 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   20357 			cf_add_1lib=
   20358 			break
   20359 		fi
   20360 	done
   20361 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   20362 done
   20363 LIBS="$cf_add_libs"
   20364 
   20365 	cf_with_pcre2_ok=yes; break
   20366 else
   20367 	cf_pkgconfig_incs=
   20368 	cf_pkgconfig_libs=
   20369 	:
   20370 fi
   20371 
   20372 	done
   20373 	cf_with_pcre2_ok=yes || { { echo "$as_me:20373: error: Cannot find PCRE2 library" >&5
   20374 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
   20375    { (exit 1); exit 1; }; }
   20376 
   20377 cat >>confdefs.h <<\EOF
   20378 #define HAVE_LIB_PCRE2 1
   20379 EOF
   20380 
   20381 	# if pkgconfig gave no results, look for the libraries directly
   20382 	case "$LIBS" in
   20383 	(*pcre2-posix*|*pcreposix*)
   20384 		;;
   20385 	(*)
   20386 		echo "$as_me:20386: checking for regcomp in -lpcre2-posix" >&5
   20387 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
   20388 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
   20389   echo $ECHO_N "(cached) $ECHO_C" >&6
   20390 else
   20391   ac_check_lib_save_LIBS=$LIBS
   20392 LIBS="-lpcre2-posix  $LIBS"
   20393 cat >"conftest.$ac_ext" <<_ACEOF
   20394 #line 20394 "configure"
   20395 #include "confdefs.h"
   20396 
   20397 /* Override any gcc2 internal prototype to avoid an error.  */
   20398 #ifdef __cplusplus
   20399 extern "C"
   20400 #endif
   20401 /* We use char because int might match the return type of a gcc2
   20402    builtin and then its argument prototype would still apply.  */
   20403 char regcomp ();
   20404 int
   20405 main (void)
   20406 {
   20407 regcomp ();
   20408   ;
   20409   return 0;
   20410 }
   20411 _ACEOF
   20412 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   20413 if { (eval echo "$as_me:20413: \"$ac_link\"") >&5
   20414   (eval $ac_link) 2>&5
   20415   ac_status=$?
   20416   echo "$as_me:20416: \$? = $ac_status" >&5
   20417   (exit "$ac_status"); } &&
   20418          { ac_try='test -s "conftest$ac_exeext"'
   20419   { (eval echo "$as_me:20419: \"$ac_try\"") >&5
   20420   (eval $ac_try) 2>&5
   20421   ac_status=$?
   20422   echo "$as_me:20422: \$? = $ac_status" >&5
   20423   (exit "$ac_status"); }; }; then
   20424   ac_cv_lib_pcre2_posix_regcomp=yes
   20425 else
   20426   echo "$as_me: failed program was:" >&5
   20427 cat "conftest.$ac_ext" >&5
   20428 ac_cv_lib_pcre2_posix_regcomp=no
   20429 fi
   20430 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   20431 LIBS=$ac_check_lib_save_LIBS
   20432 fi
   20433 echo "$as_me:20433: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
   20434 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
   20435 if test "$ac_cv_lib_pcre2_posix_regcomp" = yes; then
   20436 
   20437 cf_add_libs="$LIBS"
   20438 # reverse order
   20439 cf_add_0lib=
   20440 for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   20441 # filter duplicates
   20442 for cf_add_1lib in $cf_add_0lib; do
   20443 	for cf_add_2lib in $cf_add_libs; do
   20444 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   20445 			cf_add_1lib=
   20446 			break
   20447 		fi
   20448 	done
   20449 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   20450 done
   20451 LIBS="$cf_add_libs"
   20452 
   20453 else
   20454   echo "$as_me:20454: checking for regcomp in -lpcreposix" >&5
   20455 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
   20456 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
   20457   echo $ECHO_N "(cached) $ECHO_C" >&6
   20458 else
   20459   ac_check_lib_save_LIBS=$LIBS
   20460 LIBS="-lpcreposix  $LIBS"
   20461 cat >"conftest.$ac_ext" <<_ACEOF
   20462 #line 20462 "configure"
   20463 #include "confdefs.h"
   20464 
   20465 /* Override any gcc2 internal prototype to avoid an error.  */
   20466 #ifdef __cplusplus
   20467 extern "C"
   20468 #endif
   20469 /* We use char because int might match the return type of a gcc2
   20470    builtin and then its argument prototype would still apply.  */
   20471 char regcomp ();
   20472 int
   20473 main (void)
   20474 {
   20475 regcomp ();
   20476   ;
   20477   return 0;
   20478 }
   20479 _ACEOF
   20480 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   20481 if { (eval echo "$as_me:20481: \"$ac_link\"") >&5
   20482   (eval $ac_link) 2>&5
   20483   ac_status=$?
   20484   echo "$as_me:20484: \$? = $ac_status" >&5
   20485   (exit "$ac_status"); } &&
   20486          { ac_try='test -s "conftest$ac_exeext"'
   20487   { (eval echo "$as_me:20487: \"$ac_try\"") >&5
   20488   (eval $ac_try) 2>&5
   20489   ac_status=$?
   20490   echo "$as_me:20490: \$? = $ac_status" >&5
   20491   (exit "$ac_status"); }; }; then
   20492   ac_cv_lib_pcreposix_regcomp=yes
   20493 else
   20494   echo "$as_me: failed program was:" >&5
   20495 cat "conftest.$ac_ext" >&5
   20496 ac_cv_lib_pcreposix_regcomp=no
   20497 fi
   20498 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   20499 LIBS=$ac_check_lib_save_LIBS
   20500 fi
   20501 echo "$as_me:20501: result: $ac_cv_lib_pcreposix_regcomp" >&5
   20502 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
   20503 if test "$ac_cv_lib_pcreposix_regcomp" = yes; then
   20504 
   20505 cf_add_libs="$LIBS"
   20506 # reverse order
   20507 cf_add_0lib=
   20508 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   20509 # filter duplicates
   20510 for cf_add_1lib in $cf_add_0lib; do
   20511 	for cf_add_2lib in $cf_add_libs; do
   20512 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   20513 			cf_add_1lib=
   20514 			break
   20515 		fi
   20516 	done
   20517 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   20518 done
   20519 LIBS="$cf_add_libs"
   20520 
   20521 else
   20522   { { echo "$as_me:20522: error: Cannot find PCRE2 POSIX library" >&5
   20523 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
   20524    { (exit 1); exit 1; }; }
   20525 fi
   20526 
   20527 fi
   20528 
   20529 		;;
   20530 	esac
   20531 
   20532 	# either way, check for the library header files
   20533 
   20534 for ac_header in pcre2posix.h pcreposix.h
   20535 do
   20536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   20537 echo "$as_me:20537: checking for $ac_header" >&5
   20538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   20539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   20540   echo $ECHO_N "(cached) $ECHO_C" >&6
   20541 else
   20542   cat >"conftest.$ac_ext" <<_ACEOF
   20543 #line 20543 "configure"
   20544 #include "confdefs.h"
   20545 #include <$ac_header>
   20546 _ACEOF
   20547 if { (eval echo "$as_me:20547: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   20548   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   20549   ac_status=$?
   20550   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   20551   rm -f conftest.er1
   20552   cat conftest.err >&5
   20553   echo "$as_me:20553: \$? = $ac_status" >&5
   20554   (exit "$ac_status"); } >/dev/null; then
   20555   if test -s conftest.err; then
   20556     ac_cpp_err=$ac_c_preproc_warn_flag
   20557   else
   20558     ac_cpp_err=
   20559   fi
   20560 else
   20561   ac_cpp_err=yes
   20562 fi
   20563 if test -z "$ac_cpp_err"; then
   20564   eval "$as_ac_Header=yes"
   20565 else
   20566   echo "$as_me: failed program was:" >&5
   20567   cat "conftest.$ac_ext" >&5
   20568   eval "$as_ac_Header=no"
   20569 fi
   20570 rm -f conftest.err "conftest.$ac_ext"
   20571 fi
   20572 echo "$as_me:20572: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
   20573 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
   20574 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
   20575   cat >>confdefs.h <<EOF
   20576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   20577 EOF
   20578 
   20579 fi
   20580 done
   20581 
   20582 fi
   20583 
   20584 	if test "$with_pcre2" = no ; then
   20585 
   20586 echo "$as_me:20586: checking if you want to use PCRE for regular-expressions" >&5
   20587 echo $ECHO_N "checking if you want to use PCRE for regular-expressions... $ECHO_C" >&6
   20588 
   20589 # Check whether --with-pcre or --without-pcre was given.
   20590 if test "${with_pcre+set}" = set; then
   20591   withval="$with_pcre"
   20592 
   20593 fi;
   20594 test -z "$with_pcre" && with_pcre=no
   20595 echo "$as_me:20595: result: $with_pcre" >&5
   20596 echo "${ECHO_T}$with_pcre" >&6
   20597 
   20598 if test "$with_pcre" != no ; then
   20599 
   20600 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "libpcre"; then
   20601 	test -n "$verbose" && echo "	found package libpcre" 1>&6
   20602 
   20603 echo "${as_me:-configure}:20603: testing found package libpcre ..." 1>&5
   20604 
   20605 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "libpcre" 2>/dev/null`"
   20606 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "libpcre" 2>/dev/null`"
   20607 	test -n "$verbose" && echo "	package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6
   20608 
   20609 echo "${as_me:-configure}:20609: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   20610 
   20611 	test -n "$verbose" && echo "	package libpcre LIBS: $cf_pkgconfig_libs" 1>&6
   20612 
   20613 echo "${as_me:-configure}:20613: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5
   20614 
   20615 cf_fix_cppflags=no
   20616 cf_new_cflags=
   20617 cf_new_cppflags=
   20618 cf_new_extra_cppflags=
   20619 
   20620 for cf_add_cflags in $cf_pkgconfig_incs
   20621 do
   20622 case "$cf_fix_cppflags" in
   20623 (no)
   20624 	case "$cf_add_cflags" in
   20625 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   20626 		case "$cf_add_cflags" in
   20627 		(-D*)
   20628 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   20629 
   20630 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   20631 				&& test -z "${cf_tst_cflags}" \
   20632 				&& cf_fix_cppflags=yes
   20633 
   20634 			if test "$cf_fix_cppflags" = yes ; then
   20635 
   20636 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   20637 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   20638 
   20639 				continue
   20640 			elif test "${cf_tst_cflags}" = "\"'" ; then
   20641 
   20642 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   20643 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   20644 
   20645 				continue
   20646 			fi
   20647 			;;
   20648 		esac
   20649 		case "$CPPFLAGS" in
   20650 		(*$cf_add_cflags)
   20651 			;;
   20652 		(*)
   20653 			case "$cf_add_cflags" in
   20654 			(-D*)
   20655 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   20656 
   20657 CPPFLAGS=`echo "$CPPFLAGS" | \
   20658 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   20659 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   20660 
   20661 				;;
   20662 			esac
   20663 
   20664 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   20665 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   20666 
   20667 			;;
   20668 		esac
   20669 		;;
   20670 	(*)
   20671 
   20672 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   20673 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   20674 
   20675 		;;
   20676 	esac
   20677 	;;
   20678 (yes)
   20679 
   20680 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   20681 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   20682 
   20683 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   20684 
   20685 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   20686 		&& test -z "${cf_tst_cflags}" \
   20687 		&& cf_fix_cppflags=no
   20688 	;;
   20689 esac
   20690 done
   20691 
   20692 if test -n "$cf_new_cflags" ; then
   20693 
   20694 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   20695 	CFLAGS="${CFLAGS}$cf_new_cflags"
   20696 
   20697 fi
   20698 
   20699 if test -n "$cf_new_cppflags" ; then
   20700 
   20701 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   20702 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   20703 
   20704 fi
   20705 
   20706 if test -n "$cf_new_extra_cppflags" ; then
   20707 
   20708 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   20709 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   20710 
   20711 fi
   20712 
   20713 cf_add_libs="$LIBS"
   20714 # reverse order
   20715 cf_add_0lib=
   20716 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   20717 # filter duplicates
   20718 for cf_add_1lib in $cf_add_0lib; do
   20719 	for cf_add_2lib in $cf_add_libs; do
   20720 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   20721 			cf_add_1lib=
   20722 			break
   20723 		fi
   20724 	done
   20725 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   20726 done
   20727 LIBS="$cf_add_libs"
   20728 
   20729 	:
   20730 else
   20731 	cf_pkgconfig_incs=
   20732 	cf_pkgconfig_libs=
   20733 
   20734 echo "$as_me:20734: checking for pcre_compile in -lpcre" >&5
   20735 echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
   20736 if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
   20737   echo $ECHO_N "(cached) $ECHO_C" >&6
   20738 else
   20739   ac_check_lib_save_LIBS=$LIBS
   20740 LIBS="-lpcre  $LIBS"
   20741 cat >"conftest.$ac_ext" <<_ACEOF
   20742 #line 20742 "configure"
   20743 #include "confdefs.h"
   20744 
   20745 /* Override any gcc2 internal prototype to avoid an error.  */
   20746 #ifdef __cplusplus
   20747 extern "C"
   20748 #endif
   20749 /* We use char because int might match the return type of a gcc2
   20750    builtin and then its argument prototype would still apply.  */
   20751 char pcre_compile ();
   20752 int
   20753 main (void)
   20754 {
   20755 pcre_compile ();
   20756   ;
   20757   return 0;
   20758 }
   20759 _ACEOF
   20760 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   20761 if { (eval echo "$as_me:20761: \"$ac_link\"") >&5
   20762   (eval $ac_link) 2>&5
   20763   ac_status=$?
   20764   echo "$as_me:20764: \$? = $ac_status" >&5
   20765   (exit "$ac_status"); } &&
   20766          { ac_try='test -s "conftest$ac_exeext"'
   20767   { (eval echo "$as_me:20767: \"$ac_try\"") >&5
   20768   (eval $ac_try) 2>&5
   20769   ac_status=$?
   20770   echo "$as_me:20770: \$? = $ac_status" >&5
   20771   (exit "$ac_status"); }; }; then
   20772   ac_cv_lib_pcre_pcre_compile=yes
   20773 else
   20774   echo "$as_me: failed program was:" >&5
   20775 cat "conftest.$ac_ext" >&5
   20776 ac_cv_lib_pcre_pcre_compile=no
   20777 fi
   20778 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   20779 LIBS=$ac_check_lib_save_LIBS
   20780 fi
   20781 echo "$as_me:20781: result: $ac_cv_lib_pcre_pcre_compile" >&5
   20782 echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
   20783 if test "$ac_cv_lib_pcre_pcre_compile" = yes; then
   20784   cat >>confdefs.h <<EOF
   20785 #define HAVE_LIBPCRE 1
   20786 EOF
   20787 
   20788   LIBS="-lpcre $LIBS"
   20789 
   20790 else
   20791   { { echo "$as_me:20791: error: Cannot find PCRE library" >&5
   20792 echo "$as_me: error: Cannot find PCRE library" >&2;}
   20793    { (exit 1); exit 1; }; }
   20794 fi
   20795 
   20796 fi
   20797 
   20798 cat >>confdefs.h <<\EOF
   20799 #define HAVE_LIB_PCRE 1
   20800 EOF
   20801 
   20802 	case $LIBS in
   20803 	(*pcreposix*)
   20804 		;;
   20805 	(*)
   20806 		echo "$as_me:20806: checking for pcreposix_regcomp in -lpcreposix" >&5
   20807 echo $ECHO_N "checking for pcreposix_regcomp in -lpcreposix... $ECHO_C" >&6
   20808 if test "${ac_cv_lib_pcreposix_pcreposix_regcomp+set}" = set; then
   20809   echo $ECHO_N "(cached) $ECHO_C" >&6
   20810 else
   20811   ac_check_lib_save_LIBS=$LIBS
   20812 LIBS="-lpcreposix  $LIBS"
   20813 cat >"conftest.$ac_ext" <<_ACEOF
   20814 #line 20814 "configure"
   20815 #include "confdefs.h"
   20816 
   20817 /* Override any gcc2 internal prototype to avoid an error.  */
   20818 #ifdef __cplusplus
   20819 extern "C"
   20820 #endif
   20821 /* We use char because int might match the return type of a gcc2
   20822    builtin and then its argument prototype would still apply.  */
   20823 char pcreposix_regcomp ();
   20824 int
   20825 main (void)
   20826 {
   20827 pcreposix_regcomp ();
   20828   ;
   20829   return 0;
   20830 }
   20831 _ACEOF
   20832 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   20833 if { (eval echo "$as_me:20833: \"$ac_link\"") >&5
   20834   (eval $ac_link) 2>&5
   20835   ac_status=$?
   20836   echo "$as_me:20836: \$? = $ac_status" >&5
   20837   (exit "$ac_status"); } &&
   20838          { ac_try='test -s "conftest$ac_exeext"'
   20839   { (eval echo "$as_me:20839: \"$ac_try\"") >&5
   20840   (eval $ac_try) 2>&5
   20841   ac_status=$?
   20842   echo "$as_me:20842: \$? = $ac_status" >&5
   20843   (exit "$ac_status"); }; }; then
   20844   ac_cv_lib_pcreposix_pcreposix_regcomp=yes
   20845 else
   20846   echo "$as_me: failed program was:" >&5
   20847 cat "conftest.$ac_ext" >&5
   20848 ac_cv_lib_pcreposix_pcreposix_regcomp=no
   20849 fi
   20850 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   20851 LIBS=$ac_check_lib_save_LIBS
   20852 fi
   20853 echo "$as_me:20853: result: $ac_cv_lib_pcreposix_pcreposix_regcomp" >&5
   20854 echo "${ECHO_T}$ac_cv_lib_pcreposix_pcreposix_regcomp" >&6
   20855 if test "$ac_cv_lib_pcreposix_pcreposix_regcomp" = yes; then
   20856 
   20857 cat >>confdefs.h <<\EOF
   20858 #define HAVE_PCREPOSIX_H 1
   20859 EOF
   20860 
   20861 cf_add_libs="$LIBS"
   20862 # reverse order
   20863 cf_add_0lib=
   20864 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   20865 # filter duplicates
   20866 for cf_add_1lib in $cf_add_0lib; do
   20867 	for cf_add_2lib in $cf_add_libs; do
   20868 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   20869 			cf_add_1lib=
   20870 			break
   20871 		fi
   20872 	done
   20873 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   20874 done
   20875 LIBS="$cf_add_libs"
   20876 
   20877 else
   20878   echo "$as_me:20878: checking for regcomp in -lpcreposix" >&5
   20879 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
   20880 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
   20881   echo $ECHO_N "(cached) $ECHO_C" >&6
   20882 else
   20883   ac_check_lib_save_LIBS=$LIBS
   20884 LIBS="-lpcreposix  $LIBS"
   20885 cat >"conftest.$ac_ext" <<_ACEOF
   20886 #line 20886 "configure"
   20887 #include "confdefs.h"
   20888 
   20889 /* Override any gcc2 internal prototype to avoid an error.  */
   20890 #ifdef __cplusplus
   20891 extern "C"
   20892 #endif
   20893 /* We use char because int might match the return type of a gcc2
   20894    builtin and then its argument prototype would still apply.  */
   20895 char regcomp ();
   20896 int
   20897 main (void)
   20898 {
   20899 regcomp ();
   20900   ;
   20901   return 0;
   20902 }
   20903 _ACEOF
   20904 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   20905 if { (eval echo "$as_me:20905: \"$ac_link\"") >&5
   20906   (eval $ac_link) 2>&5
   20907   ac_status=$?
   20908   echo "$as_me:20908: \$? = $ac_status" >&5
   20909   (exit "$ac_status"); } &&
   20910          { ac_try='test -s "conftest$ac_exeext"'
   20911   { (eval echo "$as_me:20911: \"$ac_try\"") >&5
   20912   (eval $ac_try) 2>&5
   20913   ac_status=$?
   20914   echo "$as_me:20914: \$? = $ac_status" >&5
   20915   (exit "$ac_status"); }; }; then
   20916   ac_cv_lib_pcreposix_regcomp=yes
   20917 else
   20918   echo "$as_me: failed program was:" >&5
   20919 cat "conftest.$ac_ext" >&5
   20920 ac_cv_lib_pcreposix_regcomp=no
   20921 fi
   20922 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   20923 LIBS=$ac_check_lib_save_LIBS
   20924 fi
   20925 echo "$as_me:20925: result: $ac_cv_lib_pcreposix_regcomp" >&5
   20926 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
   20927 if test "$ac_cv_lib_pcreposix_regcomp" = yes; then
   20928 
   20929 cat >>confdefs.h <<\EOF
   20930 #define HAVE_PCREPOSIX_H 1
   20931 EOF
   20932 
   20933 cf_add_libs="$LIBS"
   20934 # reverse order
   20935 cf_add_0lib=
   20936 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   20937 # filter duplicates
   20938 for cf_add_1lib in $cf_add_0lib; do
   20939 	for cf_add_2lib in $cf_add_libs; do
   20940 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   20941 			cf_add_1lib=
   20942 			break
   20943 		fi
   20944 	done
   20945 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   20946 done
   20947 LIBS="$cf_add_libs"
   20948 
   20949 else
   20950   { { echo "$as_me:20950: error: Cannot find PCRE POSIX library" >&5
   20951 echo "$as_me: error: Cannot find PCRE POSIX library" >&2;}
   20952    { (exit 1); exit 1; }; }
   20953 fi
   20954 
   20955 fi
   20956 
   20957 		;;
   20958 	esac
   20959 fi
   20960 
   20961 		if test "$with_pcre" = no ; then
   20962 
   20963 cf_regex_func=no
   20964 cf_regex_libs=
   20965 case "$host_os" in
   20966 (mingw*)
   20967 	# -lsystre -ltre -lintl -liconv
   20968 	echo "$as_me:20968: checking for regcomp in -lsystre" >&5
   20969 echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6
   20970 if test "${ac_cv_lib_systre_regcomp+set}" = set; then
   20971   echo $ECHO_N "(cached) $ECHO_C" >&6
   20972 else
   20973   ac_check_lib_save_LIBS=$LIBS
   20974 LIBS="-lsystre  $LIBS"
   20975 cat >"conftest.$ac_ext" <<_ACEOF
   20976 #line 20976 "configure"
   20977 #include "confdefs.h"
   20978 
   20979 /* Override any gcc2 internal prototype to avoid an error.  */
   20980 #ifdef __cplusplus
   20981 extern "C"
   20982 #endif
   20983 /* We use char because int might match the return type of a gcc2
   20984    builtin and then its argument prototype would still apply.  */
   20985 char regcomp ();
   20986 int
   20987 main (void)
   20988 {
   20989 regcomp ();
   20990   ;
   20991   return 0;
   20992 }
   20993 _ACEOF
   20994 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   20995 if { (eval echo "$as_me:20995: \"$ac_link\"") >&5
   20996   (eval $ac_link) 2>&5
   20997   ac_status=$?
   20998   echo "$as_me:20998: \$? = $ac_status" >&5
   20999   (exit "$ac_status"); } &&
   21000          { ac_try='test -s "conftest$ac_exeext"'
   21001   { (eval echo "$as_me:21001: \"$ac_try\"") >&5
   21002   (eval $ac_try) 2>&5
   21003   ac_status=$?
   21004   echo "$as_me:21004: \$? = $ac_status" >&5
   21005   (exit "$ac_status"); }; }; then
   21006   ac_cv_lib_systre_regcomp=yes
   21007 else
   21008   echo "$as_me: failed program was:" >&5
   21009 cat "conftest.$ac_ext" >&5
   21010 ac_cv_lib_systre_regcomp=no
   21011 fi
   21012 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   21013 LIBS=$ac_check_lib_save_LIBS
   21014 fi
   21015 echo "$as_me:21015: result: $ac_cv_lib_systre_regcomp" >&5
   21016 echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6
   21017 if test "$ac_cv_lib_systre_regcomp" = yes; then
   21018 
   21019 		echo "$as_me:21019: checking for libiconv_open in -liconv" >&5
   21020 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
   21021 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
   21022   echo $ECHO_N "(cached) $ECHO_C" >&6
   21023 else
   21024   ac_check_lib_save_LIBS=$LIBS
   21025 LIBS="-liconv  $LIBS"
   21026 cat >"conftest.$ac_ext" <<_ACEOF
   21027 #line 21027 "configure"
   21028 #include "confdefs.h"
   21029 
   21030 /* Override any gcc2 internal prototype to avoid an error.  */
   21031 #ifdef __cplusplus
   21032 extern "C"
   21033 #endif
   21034 /* We use char because int might match the return type of a gcc2
   21035    builtin and then its argument prototype would still apply.  */
   21036 char libiconv_open ();
   21037 int
   21038 main (void)
   21039 {
   21040 libiconv_open ();
   21041   ;
   21042   return 0;
   21043 }
   21044 _ACEOF
   21045 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   21046 if { (eval echo "$as_me:21046: \"$ac_link\"") >&5
   21047   (eval $ac_link) 2>&5
   21048   ac_status=$?
   21049   echo "$as_me:21049: \$? = $ac_status" >&5
   21050   (exit "$ac_status"); } &&
   21051          { ac_try='test -s "conftest$ac_exeext"'
   21052   { (eval echo "$as_me:21052: \"$ac_try\"") >&5
   21053   (eval $ac_try) 2>&5
   21054   ac_status=$?
   21055   echo "$as_me:21055: \$? = $ac_status" >&5
   21056   (exit "$ac_status"); }; }; then
   21057   ac_cv_lib_iconv_libiconv_open=yes
   21058 else
   21059   echo "$as_me: failed program was:" >&5
   21060 cat "conftest.$ac_ext" >&5
   21061 ac_cv_lib_iconv_libiconv_open=no
   21062 fi
   21063 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   21064 LIBS=$ac_check_lib_save_LIBS
   21065 fi
   21066 echo "$as_me:21066: result: $ac_cv_lib_iconv_libiconv_open" >&5
   21067 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
   21068 if test "$ac_cv_lib_iconv_libiconv_open" = yes; then
   21069 
   21070 cf_add_libs="$LIBS"
   21071 # reverse order
   21072 cf_add_0lib=
   21073 for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   21074 # filter duplicates
   21075 for cf_add_1lib in $cf_add_0lib; do
   21076 	for cf_add_2lib in $cf_add_libs; do
   21077 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   21078 			cf_add_1lib=
   21079 			break
   21080 		fi
   21081 	done
   21082 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   21083 done
   21084 LIBS="$cf_add_libs"
   21085 
   21086 fi
   21087 
   21088 		echo "$as_me:21088: checking for libintl_gettext in -lintl" >&5
   21089 echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6
   21090 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
   21091   echo $ECHO_N "(cached) $ECHO_C" >&6
   21092 else
   21093   ac_check_lib_save_LIBS=$LIBS
   21094 LIBS="-lintl  $LIBS"
   21095 cat >"conftest.$ac_ext" <<_ACEOF
   21096 #line 21096 "configure"
   21097 #include "confdefs.h"
   21098 
   21099 /* Override any gcc2 internal prototype to avoid an error.  */
   21100 #ifdef __cplusplus
   21101 extern "C"
   21102 #endif
   21103 /* We use char because int might match the return type of a gcc2
   21104    builtin and then its argument prototype would still apply.  */
   21105 char libintl_gettext ();
   21106 int
   21107 main (void)
   21108 {
   21109 libintl_gettext ();
   21110   ;
   21111   return 0;
   21112 }
   21113 _ACEOF
   21114 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   21115 if { (eval echo "$as_me:21115: \"$ac_link\"") >&5
   21116   (eval $ac_link) 2>&5
   21117   ac_status=$?
   21118   echo "$as_me:21118: \$? = $ac_status" >&5
   21119   (exit "$ac_status"); } &&
   21120          { ac_try='test -s "conftest$ac_exeext"'
   21121   { (eval echo "$as_me:21121: \"$ac_try\"") >&5
   21122   (eval $ac_try) 2>&5
   21123   ac_status=$?
   21124   echo "$as_me:21124: \$? = $ac_status" >&5
   21125   (exit "$ac_status"); }; }; then
   21126   ac_cv_lib_intl_libintl_gettext=yes
   21127 else
   21128   echo "$as_me: failed program was:" >&5
   21129 cat "conftest.$ac_ext" >&5
   21130 ac_cv_lib_intl_libintl_gettext=no
   21131 fi
   21132 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   21133 LIBS=$ac_check_lib_save_LIBS
   21134 fi
   21135 echo "$as_me:21135: result: $ac_cv_lib_intl_libintl_gettext" >&5
   21136 echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6
   21137 if test "$ac_cv_lib_intl_libintl_gettext" = yes; then
   21138 
   21139 cf_add_libs="$LIBS"
   21140 # reverse order
   21141 cf_add_0lib=
   21142 for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   21143 # filter duplicates
   21144 for cf_add_1lib in $cf_add_0lib; do
   21145 	for cf_add_2lib in $cf_add_libs; do
   21146 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   21147 			cf_add_1lib=
   21148 			break
   21149 		fi
   21150 	done
   21151 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   21152 done
   21153 LIBS="$cf_add_libs"
   21154 
   21155 fi
   21156 
   21157 		echo "$as_me:21157: checking for tre_regcomp in -ltre" >&5
   21158 echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6
   21159 if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then
   21160   echo $ECHO_N "(cached) $ECHO_C" >&6
   21161 else
   21162   ac_check_lib_save_LIBS=$LIBS
   21163 LIBS="-ltre  $LIBS"
   21164 cat >"conftest.$ac_ext" <<_ACEOF
   21165 #line 21165 "configure"
   21166 #include "confdefs.h"
   21167 
   21168 /* Override any gcc2 internal prototype to avoid an error.  */
   21169 #ifdef __cplusplus
   21170 extern "C"
   21171 #endif
   21172 /* We use char because int might match the return type of a gcc2
   21173    builtin and then its argument prototype would still apply.  */
   21174 char tre_regcomp ();
   21175 int
   21176 main (void)
   21177 {
   21178 tre_regcomp ();
   21179   ;
   21180   return 0;
   21181 }
   21182 _ACEOF
   21183 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   21184 if { (eval echo "$as_me:21184: \"$ac_link\"") >&5
   21185   (eval $ac_link) 2>&5
   21186   ac_status=$?
   21187   echo "$as_me:21187: \$? = $ac_status" >&5
   21188   (exit "$ac_status"); } &&
   21189          { ac_try='test -s "conftest$ac_exeext"'
   21190   { (eval echo "$as_me:21190: \"$ac_try\"") >&5
   21191   (eval $ac_try) 2>&5
   21192   ac_status=$?
   21193   echo "$as_me:21193: \$? = $ac_status" >&5
   21194   (exit "$ac_status"); }; }; then
   21195   ac_cv_lib_tre_tre_regcomp=yes
   21196 else
   21197   echo "$as_me: failed program was:" >&5
   21198 cat "conftest.$ac_ext" >&5
   21199 ac_cv_lib_tre_tre_regcomp=no
   21200 fi
   21201 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   21202 LIBS=$ac_check_lib_save_LIBS
   21203 fi
   21204 echo "$as_me:21204: result: $ac_cv_lib_tre_tre_regcomp" >&5
   21205 echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6
   21206 if test "$ac_cv_lib_tre_tre_regcomp" = yes; then
   21207 
   21208 cf_add_libs="$LIBS"
   21209 # reverse order
   21210 cf_add_0lib=
   21211 for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   21212 # filter duplicates
   21213 for cf_add_1lib in $cf_add_0lib; do
   21214 	for cf_add_2lib in $cf_add_libs; do
   21215 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   21216 			cf_add_1lib=
   21217 			break
   21218 		fi
   21219 	done
   21220 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   21221 done
   21222 LIBS="$cf_add_libs"
   21223 
   21224 fi
   21225 
   21226 cf_add_libs="$LIBS"
   21227 # reverse order
   21228 cf_add_0lib=
   21229 for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   21230 # filter duplicates
   21231 for cf_add_1lib in $cf_add_0lib; do
   21232 	for cf_add_2lib in $cf_add_libs; do
   21233 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   21234 			cf_add_1lib=
   21235 			break
   21236 		fi
   21237 	done
   21238 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   21239 done
   21240 LIBS="$cf_add_libs"
   21241 
   21242 		cf_regex_func=regcomp
   21243 
   21244 else
   21245 
   21246 		echo "$as_me:21246: checking for regcomp in -lgnurx" >&5
   21247 echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6
   21248 if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then
   21249   echo $ECHO_N "(cached) $ECHO_C" >&6
   21250 else
   21251   ac_check_lib_save_LIBS=$LIBS
   21252 LIBS="-lgnurx  $LIBS"
   21253 cat >"conftest.$ac_ext" <<_ACEOF
   21254 #line 21254 "configure"
   21255 #include "confdefs.h"
   21256 
   21257 /* Override any gcc2 internal prototype to avoid an error.  */
   21258 #ifdef __cplusplus
   21259 extern "C"
   21260 #endif
   21261 /* We use char because int might match the return type of a gcc2
   21262    builtin and then its argument prototype would still apply.  */
   21263 char regcomp ();
   21264 int
   21265 main (void)
   21266 {
   21267 regcomp ();
   21268   ;
   21269   return 0;
   21270 }
   21271 _ACEOF
   21272 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   21273 if { (eval echo "$as_me:21273: \"$ac_link\"") >&5
   21274   (eval $ac_link) 2>&5
   21275   ac_status=$?
   21276   echo "$as_me:21276: \$? = $ac_status" >&5
   21277   (exit "$ac_status"); } &&
   21278          { ac_try='test -s "conftest$ac_exeext"'
   21279   { (eval echo "$as_me:21279: \"$ac_try\"") >&5
   21280   (eval $ac_try) 2>&5
   21281   ac_status=$?
   21282   echo "$as_me:21282: \$? = $ac_status" >&5
   21283   (exit "$ac_status"); }; }; then
   21284   ac_cv_lib_gnurx_regcomp=yes
   21285 else
   21286   echo "$as_me: failed program was:" >&5
   21287 cat "conftest.$ac_ext" >&5
   21288 ac_cv_lib_gnurx_regcomp=no
   21289 fi
   21290 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   21291 LIBS=$ac_check_lib_save_LIBS
   21292 fi
   21293 echo "$as_me:21293: result: $ac_cv_lib_gnurx_regcomp" >&5
   21294 echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6
   21295 if test "$ac_cv_lib_gnurx_regcomp" = yes; then
   21296 
   21297 cf_add_libs="$LIBS"
   21298 # reverse order
   21299 cf_add_0lib=
   21300 for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   21301 # filter duplicates
   21302 for cf_add_1lib in $cf_add_0lib; do
   21303 	for cf_add_2lib in $cf_add_libs; do
   21304 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   21305 			cf_add_1lib=
   21306 			break
   21307 		fi
   21308 	done
   21309 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   21310 done
   21311 LIBS="$cf_add_libs"
   21312 
   21313 			cf_regex_func=regcomp
   21314 fi
   21315 
   21316 fi
   21317 
   21318 	;;
   21319 (*)
   21320 	cf_regex_libs="regex re"
   21321 	echo "$as_me:21321: checking for regcomp" >&5
   21322 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
   21323 if test "${ac_cv_func_regcomp+set}" = set; then
   21324   echo $ECHO_N "(cached) $ECHO_C" >&6
   21325 else
   21326   cat >"conftest.$ac_ext" <<_ACEOF
   21327 #line 21327 "configure"
   21328 #include "confdefs.h"
   21329 #define regcomp autoconf_temporary
   21330 #include <limits.h>	/* least-intrusive standard header which defines gcc2 __stub macros */
   21331 #undef regcomp
   21332 
   21333 #ifdef __cplusplus
   21334 extern "C"
   21335 #endif
   21336 
   21337 /* We use char because int might match the return type of a gcc2
   21338    builtin and then its argument prototype would still apply.  */
   21339 char regcomp (void);
   21340 
   21341 int
   21342 main (void)
   21343 {
   21344 
   21345 /* The GNU C library defines stubs for functions which it implements
   21346     to always fail with ENOSYS.  Some functions are actually named
   21347     something starting with __ and the normal name is an alias.  */
   21348 #if defined (__stub_regcomp) || defined (__stub___regcomp)
   21349 #error found stub for regcomp
   21350 #endif
   21351 
   21352 	return regcomp ();
   21353   ;
   21354   return 0;
   21355 }
   21356 _ACEOF
   21357 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   21358 if { (eval echo "$as_me:21358: \"$ac_link\"") >&5
   21359   (eval $ac_link) 2>&5
   21360   ac_status=$?
   21361   echo "$as_me:21361: \$? = $ac_status" >&5
   21362   (exit "$ac_status"); } &&
   21363          { ac_try='test -s "conftest$ac_exeext"'
   21364   { (eval echo "$as_me:21364: \"$ac_try\"") >&5
   21365   (eval $ac_try) 2>&5
   21366   ac_status=$?
   21367   echo "$as_me:21367: \$? = $ac_status" >&5
   21368   (exit "$ac_status"); }; }; then
   21369   ac_cv_func_regcomp=yes
   21370 else
   21371   echo "$as_me: failed program was:" >&5
   21372 cat "conftest.$ac_ext" >&5
   21373 ac_cv_func_regcomp=no
   21374 fi
   21375 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   21376 fi
   21377 echo "$as_me:21377: result: $ac_cv_func_regcomp" >&5
   21378 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
   21379 if test "$ac_cv_func_regcomp" = yes; then
   21380   cf_regex_func=regcomp
   21381 else
   21382 
   21383 		for cf_regex_lib in $cf_regex_libs
   21384 		do
   21385 			as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
   21386 echo "$as_me:21386: checking for regcomp in -l$cf_regex_lib" >&5
   21387 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
   21388 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
   21389   echo $ECHO_N "(cached) $ECHO_C" >&6
   21390 else
   21391   ac_check_lib_save_LIBS=$LIBS
   21392 LIBS="-l$cf_regex_lib  $LIBS"
   21393 cat >"conftest.$ac_ext" <<_ACEOF
   21394 #line 21394 "configure"
   21395 #include "confdefs.h"
   21396 
   21397 /* Override any gcc2 internal prototype to avoid an error.  */
   21398 #ifdef __cplusplus
   21399 extern "C"
   21400 #endif
   21401 /* We use char because int might match the return type of a gcc2
   21402    builtin and then its argument prototype would still apply.  */
   21403 char regcomp ();
   21404 int
   21405 main (void)
   21406 {
   21407 regcomp ();
   21408   ;
   21409   return 0;
   21410 }
   21411 _ACEOF
   21412 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   21413 if { (eval echo "$as_me:21413: \"$ac_link\"") >&5
   21414   (eval $ac_link) 2>&5
   21415   ac_status=$?
   21416   echo "$as_me:21416: \$? = $ac_status" >&5
   21417   (exit "$ac_status"); } &&
   21418          { ac_try='test -s "conftest$ac_exeext"'
   21419   { (eval echo "$as_me:21419: \"$ac_try\"") >&5
   21420   (eval $ac_try) 2>&5
   21421   ac_status=$?
   21422   echo "$as_me:21422: \$? = $ac_status" >&5
   21423   (exit "$ac_status"); }; }; then
   21424   eval "$as_ac_Lib=yes"
   21425 else
   21426   echo "$as_me: failed program was:" >&5
   21427 cat "conftest.$ac_ext" >&5
   21428 eval "$as_ac_Lib=no"
   21429 fi
   21430 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   21431 LIBS=$ac_check_lib_save_LIBS
   21432 fi
   21433 echo "$as_me:21433: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
   21434 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
   21435 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
   21436 
   21437 cf_add_libs="$LIBS"
   21438 # reverse order
   21439 cf_add_0lib=
   21440 for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   21441 # filter duplicates
   21442 for cf_add_1lib in $cf_add_0lib; do
   21443 	for cf_add_2lib in $cf_add_libs; do
   21444 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   21445 			cf_add_1lib=
   21446 			break
   21447 		fi
   21448 	done
   21449 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   21450 done
   21451 LIBS="$cf_add_libs"
   21452 
   21453 					cf_regex_func=regcomp
   21454 					break
   21455 fi
   21456 
   21457 		done
   21458 
   21459 fi
   21460 
   21461 	;;
   21462 esac
   21463 
   21464 if test "$cf_regex_func" = no ; then
   21465 	echo "$as_me:21465: checking for compile" >&5
   21466 echo $ECHO_N "checking for compile... $ECHO_C" >&6
   21467 if test "${ac_cv_func_compile+set}" = set; then
   21468   echo $ECHO_N "(cached) $ECHO_C" >&6
   21469 else
   21470   cat >"conftest.$ac_ext" <<_ACEOF
   21471 #line 21471 "configure"
   21472 #include "confdefs.h"
   21473 #define compile autoconf_temporary
   21474 #include <limits.h>	/* least-intrusive standard header which defines gcc2 __stub macros */
   21475 #undef compile
   21476 
   21477 #ifdef __cplusplus
   21478 extern "C"
   21479 #endif
   21480 
   21481 /* We use char because int might match the return type of a gcc2
   21482    builtin and then its argument prototype would still apply.  */
   21483 char compile (void);
   21484 
   21485 int
   21486 main (void)
   21487 {
   21488 
   21489 /* The GNU C library defines stubs for functions which it implements
   21490     to always fail with ENOSYS.  Some functions are actually named
   21491     something starting with __ and the normal name is an alias.  */
   21492 #if defined (__stub_compile) || defined (__stub___compile)
   21493 #error found stub for compile
   21494 #endif
   21495 
   21496 	return compile ();
   21497   ;
   21498   return 0;
   21499 }
   21500 _ACEOF
   21501 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   21502 if { (eval echo "$as_me:21502: \"$ac_link\"") >&5
   21503   (eval $ac_link) 2>&5
   21504   ac_status=$?
   21505   echo "$as_me:21505: \$? = $ac_status" >&5
   21506   (exit "$ac_status"); } &&
   21507          { ac_try='test -s "conftest$ac_exeext"'
   21508   { (eval echo "$as_me:21508: \"$ac_try\"") >&5
   21509   (eval $ac_try) 2>&5
   21510   ac_status=$?
   21511   echo "$as_me:21511: \$? = $ac_status" >&5
   21512   (exit "$ac_status"); }; }; then
   21513   ac_cv_func_compile=yes
   21514 else
   21515   echo "$as_me: failed program was:" >&5
   21516 cat "conftest.$ac_ext" >&5
   21517 ac_cv_func_compile=no
   21518 fi
   21519 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   21520 fi
   21521 echo "$as_me:21521: result: $ac_cv_func_compile" >&5
   21522 echo "${ECHO_T}$ac_cv_func_compile" >&6
   21523 if test "$ac_cv_func_compile" = yes; then
   21524   cf_regex_func=compile
   21525 else
   21526 
   21527 		echo "$as_me:21527: checking for compile in -lgen" >&5
   21528 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
   21529 if test "${ac_cv_lib_gen_compile+set}" = set; then
   21530   echo $ECHO_N "(cached) $ECHO_C" >&6
   21531 else
   21532   ac_check_lib_save_LIBS=$LIBS
   21533 LIBS="-lgen  $LIBS"
   21534 cat >"conftest.$ac_ext" <<_ACEOF
   21535 #line 21535 "configure"
   21536 #include "confdefs.h"
   21537 
   21538 /* Override any gcc2 internal prototype to avoid an error.  */
   21539 #ifdef __cplusplus
   21540 extern "C"
   21541 #endif
   21542 /* We use char because int might match the return type of a gcc2
   21543    builtin and then its argument prototype would still apply.  */
   21544 char compile ();
   21545 int
   21546 main (void)
   21547 {
   21548 compile ();
   21549   ;
   21550   return 0;
   21551 }
   21552 _ACEOF
   21553 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   21554 if { (eval echo "$as_me:21554: \"$ac_link\"") >&5
   21555   (eval $ac_link) 2>&5
   21556   ac_status=$?
   21557   echo "$as_me:21557: \$? = $ac_status" >&5
   21558   (exit "$ac_status"); } &&
   21559          { ac_try='test -s "conftest$ac_exeext"'
   21560   { (eval echo "$as_me:21560: \"$ac_try\"") >&5
   21561   (eval $ac_try) 2>&5
   21562   ac_status=$?
   21563   echo "$as_me:21563: \$? = $ac_status" >&5
   21564   (exit "$ac_status"); }; }; then
   21565   ac_cv_lib_gen_compile=yes
   21566 else
   21567   echo "$as_me: failed program was:" >&5
   21568 cat "conftest.$ac_ext" >&5
   21569 ac_cv_lib_gen_compile=no
   21570 fi
   21571 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   21572 LIBS=$ac_check_lib_save_LIBS
   21573 fi
   21574 echo "$as_me:21574: result: $ac_cv_lib_gen_compile" >&5
   21575 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
   21576 if test "$ac_cv_lib_gen_compile" = yes; then
   21577 
   21578 cf_add_libs="$LIBS"
   21579 # reverse order
   21580 cf_add_0lib=
   21581 for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   21582 # filter duplicates
   21583 for cf_add_1lib in $cf_add_0lib; do
   21584 	for cf_add_2lib in $cf_add_libs; do
   21585 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   21586 			cf_add_1lib=
   21587 			break
   21588 		fi
   21589 	done
   21590 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   21591 done
   21592 LIBS="$cf_add_libs"
   21593 
   21594 				cf_regex_func=compile
   21595 fi
   21596 
   21597 fi
   21598 
   21599 fi
   21600 
   21601 if test "$cf_regex_func" = no ; then
   21602 	{ echo "$as_me:21602: WARNING: cannot find regular expression library" >&5
   21603 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
   21604 fi
   21605 
   21606 echo "$as_me:21606: checking for regular-expression headers" >&5
   21607 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
   21608 if test "${cf_cv_regex_hdrs+set}" = set; then
   21609   echo $ECHO_N "(cached) $ECHO_C" >&6
   21610 else
   21611 
   21612 cf_cv_regex_hdrs=no
   21613 case "$cf_regex_func" in
   21614 (compile)
   21615 	for cf_regex_hdr in regexp.h regexpr.h
   21616 	do
   21617 		cat >"conftest.$ac_ext" <<_ACEOF
   21618 #line 21618 "configure"
   21619 #include "confdefs.h"
   21620 #include <$cf_regex_hdr>
   21621 int
   21622 main (void)
   21623 {
   21624 
   21625 			char *p = compile("", "", "", 0);
   21626 			int x = step("", "");
   21627 			(void)p;
   21628 			(void)x;
   21629 
   21630   ;
   21631   return 0;
   21632 }
   21633 _ACEOF
   21634 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   21635 if { (eval echo "$as_me:21635: \"$ac_link\"") >&5
   21636   (eval $ac_link) 2>&5
   21637   ac_status=$?
   21638   echo "$as_me:21638: \$? = $ac_status" >&5
   21639   (exit "$ac_status"); } &&
   21640          { ac_try='test -s "conftest$ac_exeext"'
   21641   { (eval echo "$as_me:21641: \"$ac_try\"") >&5
   21642   (eval $ac_try) 2>&5
   21643   ac_status=$?
   21644   echo "$as_me:21644: \$? = $ac_status" >&5
   21645   (exit "$ac_status"); }; }; then
   21646 
   21647 			cf_cv_regex_hdrs=$cf_regex_hdr
   21648 			break
   21649 
   21650 else
   21651   echo "$as_me: failed program was:" >&5
   21652 cat "conftest.$ac_ext" >&5
   21653 fi
   21654 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   21655 	done
   21656 	;;
   21657 (*)
   21658 	for cf_regex_hdr in regex.h
   21659 	do
   21660 		cat >"conftest.$ac_ext" <<_ACEOF
   21661 #line 21661 "configure"
   21662 #include "confdefs.h"
   21663 #include <sys/types.h>
   21664 #include <$cf_regex_hdr>
   21665 int
   21666 main (void)
   21667 {
   21668 
   21669 			regex_t *p = 0;
   21670 			int x = regcomp(p, "", 0);
   21671 			int y = regexec(p, "", 0, 0, 0);
   21672 			(void)x;
   21673 			(void)y;
   21674 			regfree(p);
   21675 
   21676   ;
   21677   return 0;
   21678 }
   21679 _ACEOF
   21680 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   21681 if { (eval echo "$as_me:21681: \"$ac_link\"") >&5
   21682   (eval $ac_link) 2>&5
   21683   ac_status=$?
   21684   echo "$as_me:21684: \$? = $ac_status" >&5
   21685   (exit "$ac_status"); } &&
   21686          { ac_try='test -s "conftest$ac_exeext"'
   21687   { (eval echo "$as_me:21687: \"$ac_try\"") >&5
   21688   (eval $ac_try) 2>&5
   21689   ac_status=$?
   21690   echo "$as_me:21690: \$? = $ac_status" >&5
   21691   (exit "$ac_status"); }; }; then
   21692 
   21693 			cf_cv_regex_hdrs=$cf_regex_hdr
   21694 			break
   21695 
   21696 else
   21697   echo "$as_me: failed program was:" >&5
   21698 cat "conftest.$ac_ext" >&5
   21699 fi
   21700 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   21701 	done
   21702 	;;
   21703 esac
   21704 
   21705 fi
   21706 echo "$as_me:21706: result: $cf_cv_regex_hdrs" >&5
   21707 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
   21708 
   21709 case "$cf_cv_regex_hdrs" in
   21710 	(no)		{ echo "$as_me:21710: WARNING: no regular expression header found" >&5
   21711 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
   21712 	(regex.h)
   21713 cat >>confdefs.h <<\EOF
   21714 #define HAVE_REGEX_H_FUNCS 1
   21715 EOF
   21716  ;;
   21717 	(regexp.h)
   21718 cat >>confdefs.h <<\EOF
   21719 #define HAVE_REGEXP_H_FUNCS 1
   21720 EOF
   21721  ;;
   21722 	(regexpr.h)
   21723 cat >>confdefs.h <<\EOF
   21724 #define HAVE_REGEXPR_H_FUNCS 1
   21725 EOF
   21726  ;;
   21727 esac
   21728 
   21729 			if test "X$cf_cv_regex_hdrs" != "Xregex.h" ; then
   21730 				{ { echo "$as_me:21730: error: Only POSIX, PCRE, or PCRE2 regular expressions are supported" >&5
   21731 echo "$as_me: error: Only POSIX, PCRE, or PCRE2 regular expressions are supported" >&2;}
   21732    { (exit 1); exit 1; }; }
   21733 			fi
   21734 		fi
   21735 	fi
   21736 
   21737 cat >>confdefs.h <<\EOF
   21738 #define OPT_SELECT_REGEX 1
   21739 EOF
   21740 
   21741 fi
   21742 
   21743 echo "$as_me:21743: checking if you want support for right-scrollbar" >&5
   21744 echo $ECHO_N "checking if you want support for right-scrollbar... $ECHO_C" >&6
   21745 
   21746 # Check whether --enable-rightbar or --disable-rightbar was given.
   21747 if test "${enable_rightbar+set}" = set; then
   21748   enableval="$enable_rightbar"
   21749   test "$enableval" != no && enableval=yes
   21750 	if test "$enableval" != "yes" ; then
   21751     enable_rightbar=no
   21752 	else
   21753 		enable_rightbar=yes
   21754 	fi
   21755 else
   21756   enableval=yes
   21757 	enable_rightbar=yes
   21758 
   21759 fi;
   21760 echo "$as_me:21760: result: $enable_rightbar" >&5
   21761 echo "${ECHO_T}$enable_rightbar" >&6
   21762 if test "$enable_rightbar" = yes ; then
   21763 
   21764 cat >>confdefs.h <<\EOF
   21765 #define SCROLLBAR_RIGHT 1
   21766 EOF
   21767 
   21768 fi
   21769 
   21770 echo "$as_me:21770: checking if you want check for redundant name-change" >&5
   21771 echo $ECHO_N "checking if you want check for redundant name-change... $ECHO_C" >&6
   21772 
   21773 # Check whether --enable-samename or --disable-samename was given.
   21774 if test "${enable_samename+set}" = set; then
   21775   enableval="$enable_samename"
   21776   test "$enableval" != no && enableval=yes
   21777 	if test "$enableval" != "yes" ; then
   21778     enable_samename=no
   21779 	else
   21780 		enable_samename=yes
   21781 	fi
   21782 else
   21783   enableval=yes
   21784 	enable_samename=yes
   21785 
   21786 fi;
   21787 echo "$as_me:21787: result: $enable_samename" >&5
   21788 echo "${ECHO_T}$enable_samename" >&6
   21789 test "$enable_samename" = no &&
   21790 cat >>confdefs.h <<\EOF
   21791 #define OPT_SAME_NAME 0
   21792 EOF
   21793 
   21794 echo "$as_me:21794: checking if you want support for selection-actions" >&5
   21795 echo $ECHO_N "checking if you want support for selection-actions... $ECHO_C" >&6
   21796 
   21797 # Check whether --enable-selection-ops or --disable-selection-ops was given.
   21798 if test "${enable_selection_ops+set}" = set; then
   21799   enableval="$enable_selection_ops"
   21800   test "$enableval" != no && enableval=yes
   21801 	if test "$enableval" != "yes" ; then
   21802     enable_selection_ops=no
   21803 	else
   21804 		enable_selection_ops=yes
   21805 	fi
   21806 else
   21807   enableval=yes
   21808 	enable_selection_ops=yes
   21809 
   21810 fi;
   21811 echo "$as_me:21811: result: $enable_selection_ops" >&5
   21812 echo "${ECHO_T}$enable_selection_ops" >&6
   21813 test "$enable_selection_ops" = no &&
   21814 cat >>confdefs.h <<\EOF
   21815 #define OPT_SELECTION_OPS 0
   21816 EOF
   21817 
   21818 echo "$as_me:21818: checking if you want support for session management" >&5
   21819 echo $ECHO_N "checking if you want support for session management... $ECHO_C" >&6
   21820 
   21821 # Check whether --enable-session-mgt or --disable-session-mgt was given.
   21822 if test "${enable_session_mgt+set}" = set; then
   21823   enableval="$enable_session_mgt"
   21824   test "$enableval" != no && enableval=yes
   21825 	if test "$enableval" != "yes" ; then
   21826     enable_session_mgt=no
   21827 	else
   21828 		enable_session_mgt=yes
   21829 	fi
   21830 else
   21831   enableval=yes
   21832 	enable_session_mgt=yes
   21833 
   21834 fi;
   21835 echo "$as_me:21835: result: $enable_session_mgt" >&5
   21836 echo "${ECHO_T}$enable_session_mgt" >&6
   21837 test "$enable_session_mgt" = no &&
   21838 cat >>confdefs.h <<\EOF
   21839 #define OPT_SESSION_MGT 0
   21840 EOF
   21841 
   21842 echo "$as_me:21842: checking if you want to use termcap function-keys" >&5
   21843 echo $ECHO_N "checking if you want to use termcap function-keys... $ECHO_C" >&6
   21844 
   21845 # Check whether --enable-tcap-fkeys or --disable-tcap-fkeys was given.
   21846 if test "${enable_tcap_fkeys+set}" = set; then
   21847   enableval="$enable_tcap_fkeys"
   21848   test "$enableval" != no && enableval=yes
   21849 	if test "$enableval" != "yes" ; then
   21850     enable_tcap_fkeys=no
   21851 	else
   21852 		enable_tcap_fkeys=yes
   21853 	fi
   21854 else
   21855   enableval=yes
   21856 	enable_tcap_fkeys=yes
   21857 
   21858 fi;
   21859 echo "$as_me:21859: result: $enable_tcap_fkeys" >&5
   21860 echo "${ECHO_T}$enable_tcap_fkeys" >&6
   21861 test "$enable_tcap_fkeys" = yes &&
   21862 cat >>confdefs.h <<\EOF
   21863 #define OPT_TCAP_FKEYS 1
   21864 EOF
   21865 
   21866 echo "$as_me:21866: checking if you want to use termcap-query/report" >&5
   21867 echo $ECHO_N "checking if you want to use termcap-query/report... $ECHO_C" >&6
   21868 
   21869 # Check whether --enable-tcap-query or --disable-tcap-query was given.
   21870 if test "${enable_tcap_query+set}" = set; then
   21871   enableval="$enable_tcap_query"
   21872   test "$enableval" != no && enableval=yes
   21873 	if test "$enableval" != "yes" ; then
   21874     enable_tcap_query=no
   21875 	else
   21876 		enable_tcap_query=yes
   21877 	fi
   21878 else
   21879   enableval=yes
   21880 	enable_tcap_query=yes
   21881 
   21882 fi;
   21883 echo "$as_me:21883: result: $enable_tcap_query" >&5
   21884 echo "${ECHO_T}$enable_tcap_query" >&6
   21885 test "$enable_tcap_query" = yes &&
   21886 cat >>confdefs.h <<\EOF
   21887 #define OPT_TCAP_QUERY 1
   21888 EOF
   21889 
   21890 echo "$as_me:21890: checking if you want support for tek4014" >&5
   21891 echo $ECHO_N "checking if you want support for tek4014... $ECHO_C" >&6
   21892 
   21893 # Check whether --enable-tek4014 or --disable-tek4014 was given.
   21894 if test "${enable_tek4014+set}" = set; then
   21895   enableval="$enable_tek4014"
   21896   test "$enableval" != no && enableval=yes
   21897 	if test "$enableval" != "yes" ; then
   21898     enable_tek4014=no
   21899 	else
   21900 		enable_tek4014=yes
   21901 	fi
   21902 else
   21903   enableval=yes
   21904 	enable_tek4014=yes
   21905 
   21906 fi;
   21907 echo "$as_me:21907: result: $enable_tek4014" >&5
   21908 echo "${ECHO_T}$enable_tek4014" >&6
   21909 if test "$enable_tek4014" = no ; then
   21910 
   21911 cat >>confdefs.h <<\EOF
   21912 #define OPT_TEK4014 0
   21913 EOF
   21914 
   21915 else
   21916 	EXTRAHDRS="$EXTRAHDRS Tekparse.h"
   21917 	EXTRASRCS="$EXTRASRCS TekPrsTbl.c Tekproc.c"
   21918 	EXTRAOBJS="$EXTRAOBJS TekPrsTbl.o Tekproc.o"
   21919 fi
   21920 
   21921 echo "$as_me:21921: checking if you want pulldown menus with a toolbar" >&5
   21922 echo $ECHO_N "checking if you want pulldown menus with a toolbar... $ECHO_C" >&6
   21923 
   21924 # Check whether --enable-toolbar or --disable-toolbar was given.
   21925 if test "${enable_toolbar+set}" = set; then
   21926   enableval="$enable_toolbar"
   21927   test "$enableval" != yes && enableval=no
   21928 	if test "$enableval" != "no" ; then
   21929     enable_toolbar=yes
   21930 	else
   21931 		enable_toolbar=no
   21932 	fi
   21933 else
   21934   enableval=no
   21935 	enable_toolbar=no
   21936 
   21937 fi;
   21938 echo "$as_me:21938: result: $enable_toolbar" >&5
   21939 echo "${ECHO_T}$enable_toolbar" >&6
   21940 if test "$enable_toolbar" = yes ; then
   21941 
   21942 cat >>confdefs.h <<\EOF
   21943 #define OPT_TOOLBAR 1
   21944 EOF
   21945 
   21946 fi
   21947 
   21948 echo "$as_me:21948: checking if you want VT52 emulation" >&5
   21949 echo $ECHO_N "checking if you want VT52 emulation... $ECHO_C" >&6
   21950 
   21951 # Check whether --enable-vt52 or --disable-vt52 was given.
   21952 if test "${enable_vt52+set}" = set; then
   21953   enableval="$enable_vt52"
   21954   test "$enableval" != no && enableval=yes
   21955 	if test "$enableval" != "yes" ; then
   21956     enable_vt52=no
   21957 	else
   21958 		enable_vt52=yes
   21959 	fi
   21960 else
   21961   enableval=yes
   21962 	enable_vt52=yes
   21963 
   21964 fi;
   21965 echo "$as_me:21965: result: $enable_vt52" >&5
   21966 echo "${ECHO_T}$enable_vt52" >&6
   21967 test "$enable_vt52" = no &&
   21968 cat >>confdefs.h <<\EOF
   21969 #define OPT_VT52_MODE 0
   21970 EOF
   21971 
   21972 echo "$as_me:21972: checking if you want wide-attribute support" >&5
   21973 echo $ECHO_N "checking if you want wide-attribute support... $ECHO_C" >&6
   21974 
   21975 # Check whether --enable-wide-attrs or --disable-wide-attrs was given.
   21976 if test "${enable_wide_attrs+set}" = set; then
   21977   enableval="$enable_wide_attrs"
   21978   test "$enableval" != no && enableval=yes
   21979 	if test "$enableval" != "yes" ; then
   21980     enable_wattr=no
   21981 	else
   21982 		enable_wattr=yes
   21983 	fi
   21984 else
   21985   enableval=yes
   21986 	enable_wattr=yes
   21987 
   21988 fi;
   21989 echo "$as_me:21989: result: $enable_wattr" >&5
   21990 echo "${ECHO_T}$enable_wattr" >&6
   21991 
   21992 if test x$enable_wattr = xno && test x$enable_direct_color = xyes ; then
   21993 	{ echo "$as_me:21993: WARNING: overriding wide-attributes to support direct color" >&5
   21994 echo "$as_me: WARNING: overriding wide-attributes to support direct color" >&2;}
   21995 	enable_wattr=yes
   21996 fi
   21997 
   21998 echo "$as_me:21998: checking if you want wide-character support" >&5
   21999 echo $ECHO_N "checking if you want wide-character support... $ECHO_C" >&6
   22000 
   22001 # Check whether --enable-wide-chars or --disable-wide-chars was given.
   22002 if test "${enable_wide_chars+set}" = set; then
   22003   enableval="$enable_wide_chars"
   22004   test "$enableval" != no && enableval=yes
   22005 	if test "$enableval" != "yes" ; then
   22006     enable_wchar=no
   22007 	else
   22008 		enable_wchar=yes
   22009 	fi
   22010 else
   22011   enableval=yes
   22012 	enable_wchar=yes
   22013 
   22014 fi;
   22015 echo "$as_me:22015: result: $enable_wchar" >&5
   22016 echo "${ECHO_T}$enable_wchar" >&6
   22017 test "x$enable_wattr" = xno &&
   22018 cat >>confdefs.h <<\EOF
   22019 #define OPT_WIDE_ATTRS 0
   22020 EOF
   22021 
   22022 echo "$as_me:22022: checking if you want only 16-bit character support" >&5
   22023 echo $ECHO_N "checking if you want only 16-bit character support... $ECHO_C" >&6
   22024 
   22025 # Check whether --enable-16bit-chars or --disable-16bit-chars was given.
   22026 if test "${enable_16bit_chars+set}" = set; then
   22027   enableval="$enable_16bit_chars"
   22028   test "$enableval" != yes && enableval=no
   22029 	if test "$enableval" != "no" ; then
   22030     enable_16bit_chars=yes
   22031 	else
   22032 		enable_16bit_chars=no
   22033 	fi
   22034 else
   22035   enableval=no
   22036 	enable_16bit_chars=no
   22037 
   22038 fi;
   22039 echo "$as_me:22039: result: $enable_16bit_chars" >&5
   22040 echo "${ECHO_T}$enable_16bit_chars" >&6
   22041 
   22042 if test "$enable_16bit_chars" = yes ; then
   22043 
   22044 cat >>confdefs.h <<\EOF
   22045 #define OPT_WIDER_ICHAR 0
   22046 EOF
   22047 
   22048 	enable_wchar=yes
   22049 fi
   22050 
   22051 if test "$enable_wchar" = yes ; then
   22052 
   22053 echo "$as_me:22053: checking if you want to use mini-luit/Latin9 built-in support" >&5
   22054 echo $ECHO_N "checking if you want to use mini-luit/Latin9 built-in support... $ECHO_C" >&6
   22055 
   22056 # Check whether --enable-mini-luit or --disable-mini-luit was given.
   22057 if test "${enable_mini_luit+set}" = set; then
   22058   enableval="$enable_mini_luit"
   22059   test "$enableval" != yes && enableval=no
   22060 	if test "$enableval" != "no" ; then
   22061     enable_mini_luit=yes
   22062 	else
   22063 		enable_mini_luit=no
   22064 	fi
   22065 else
   22066   enableval=no
   22067 	enable_mini_luit=no
   22068 
   22069 fi;
   22070 echo "$as_me:22070: result: $enable_mini_luit" >&5
   22071 echo "${ECHO_T}$enable_mini_luit" >&6
   22072 if test "$enable_mini_luit" = yes ; then
   22073 
   22074 cat >>confdefs.h <<\EOF
   22075 #define OPT_MINI_LUIT 1
   22076 EOF
   22077 
   22078 fi
   22079 
   22080 echo "$as_me:22080: checking if you want to use luit" >&5
   22081 echo $ECHO_N "checking if you want to use luit... $ECHO_C" >&6
   22082 
   22083 # Check whether --enable-luit or --disable-luit was given.
   22084 if test "${enable_luit+set}" = set; then
   22085   enableval="$enable_luit"
   22086   test "$enableval" != no && enableval=yes
   22087 	if test "$enableval" != "yes" ; then
   22088     enable_luit=no
   22089 	else
   22090 		enable_luit=yes
   22091 	fi
   22092 else
   22093   enableval=yes
   22094 	enable_luit=yes
   22095 
   22096 fi;
   22097 echo "$as_me:22097: result: $enable_luit" >&5
   22098 echo "${ECHO_T}$enable_luit" >&6
   22099 if test "$enable_luit" = yes ; then
   22100 
   22101 cat >>confdefs.h <<\EOF
   22102 #define OPT_LUIT_PROG 1
   22103 EOF
   22104 
   22105 test -z "$LUIT" && LUIT="xterm-filter"
   22106 for ac_prog in $LUIT xterm-filter bluit luit
   22107 do
   22108   # Extract the first word of "$ac_prog", so it can be a program name with args.
   22109 set dummy $ac_prog; ac_word=$2
   22110 echo "$as_me:22110: checking for $ac_word" >&5
   22111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   22112 if test "${ac_cv_path_LUIT+set}" = set; then
   22113   echo $ECHO_N "(cached) $ECHO_C" >&6
   22114 else
   22115   case $LUIT in
   22116   [\\/]* | ?:[\\/]*)
   22117   ac_cv_path_LUIT="$LUIT" # Let the user override the test with a path.
   22118   ;;
   22119   *)
   22120   ac_save_IFS=$IFS; IFS=$ac_path_separator
   22121 ac_dummy="$PATH"
   22122 for ac_dir in $ac_dummy; do
   22123   IFS=$ac_save_IFS
   22124   test -z "$ac_dir" && ac_dir=.
   22125   if $as_executable_p "$ac_dir/$ac_word"; then
   22126    ac_cv_path_LUIT="$ac_dir/$ac_word"
   22127    echo "$as_me:22127: found $ac_dir/$ac_word" >&5
   22128    break
   22129 fi
   22130 done
   22131 
   22132   ;;
   22133 esac
   22134 fi
   22135 LUIT=$ac_cv_path_LUIT
   22136 
   22137 if test -n "$LUIT"; then
   22138   echo "$as_me:22138: result: $LUIT" >&5
   22139 echo "${ECHO_T}$LUIT" >&6
   22140 else
   22141   echo "$as_me:22141: result: no" >&5
   22142 echo "${ECHO_T}no" >&6
   22143 fi
   22144 
   22145   test -n "$LUIT" && break
   22146 done
   22147 test -n "$LUIT" || LUIT="$LUIT"
   22148 
   22149 cf_path_prog=""
   22150 cf_path_args=""
   22151 IFS="${IFS:- 	}"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
   22152 for cf_temp in $ac_cv_path_LUIT
   22153 do
   22154 	if test -z "$cf_path_prog" ; then
   22155 		if test "$with_full_paths" = yes ; then
   22156 
   22157 if test "x$prefix" != xNONE; then
   22158 	cf_path_syntax="$prefix"
   22159 else
   22160 	cf_path_syntax="$ac_default_prefix"
   22161 fi
   22162 
   22163 case ".$cf_temp" in
   22164 (.\$\(*\)*|.\'*\'*)
   22165 	;;
   22166 (..|./*|.\\*)
   22167 	;;
   22168 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
   22169 	;;
   22170 (.\$\{*prefix\}*|.\$\{*dir\}*)
   22171 	eval cf_temp="$cf_temp"
   22172 	case ".$cf_temp" in
   22173 	(.NONE/*)
   22174 		cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
   22175 		;;
   22176 	esac
   22177 	;;
   22178 (.no|.NONE/*)
   22179 	cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
   22180 	;;
   22181 (*)
   22182 	break
   22183 	;;
   22184 esac
   22185 
   22186 			cf_path_prog="$cf_temp"
   22187 		else
   22188 			cf_path_prog="`basename "$cf_temp"`"
   22189 		fi
   22190 	elif test -z "$cf_path_args" ; then
   22191 		cf_path_args="$cf_temp"
   22192 	else
   22193 		cf_path_args="$cf_path_args $cf_temp"
   22194 	fi
   22195 done
   22196 IFS="$cf_save_ifs"
   22197 
   22198 if test -n "$cf_path_prog" ; then
   22199 
   22200 echo "${as_me:-configure}:22200: testing defining path for ${cf_path_prog} ..." 1>&5
   22201 
   22202 cat >>confdefs.h <<EOF
   22203 #define LUIT_PATH "$cf_path_prog"
   22204 EOF
   22205 
   22206 	test -n "$cf_path_args" &&
   22207 cat >>confdefs.h <<EOF
   22208 #define LUIT_ARGS "$cf_path_args"
   22209 EOF
   22210 
   22211 fi
   22212 
   22213 fi
   22214 
   22215 cat >>confdefs.h <<\EOF
   22216 #define OPT_WIDE_CHARS 1
   22217 EOF
   22218 
   22219 	EXTRAHDRS="$EXTRAHDRS charclass.h precompose.h wcwidth.h"
   22220 	EXTRASRCS="$EXTRASRCS charclass.c precompose.c wcwidth.c"
   22221 	EXTRAOBJS="$EXTRAOBJS charclass.o precompose.o wcwidth.o"
   22222 fi
   22223 
   22224 echo "$as_me:22224: checking if you want dynamic-abbreviation support" >&5
   22225 echo $ECHO_N "checking if you want dynamic-abbreviation support... $ECHO_C" >&6
   22226 
   22227 # Check whether --enable-dabbrev or --disable-dabbrev was given.
   22228 if test "${enable_dabbrev+set}" = set; then
   22229   enableval="$enable_dabbrev"
   22230   test "$enableval" != yes && enableval=no
   22231 	if test "$enableval" != "no" ; then
   22232     enable_dabbrev=yes
   22233 	else
   22234 		enable_dabbrev=no
   22235 	fi
   22236 else
   22237   enableval=no
   22238 	enable_dabbrev=no
   22239 
   22240 fi;
   22241 echo "$as_me:22241: result: $enable_dabbrev" >&5
   22242 echo "${ECHO_T}$enable_dabbrev" >&6
   22243 if test "$enable_dabbrev" = yes ; then
   22244 
   22245 cat >>confdefs.h <<\EOF
   22246 #define OPT_DABBREV 1
   22247 EOF
   22248 
   22249 fi
   22250 
   22251 echo "$as_me:22251: checking if you want DECterm Locator support" >&5
   22252 echo $ECHO_N "checking if you want DECterm Locator support... $ECHO_C" >&6
   22253 
   22254 # Check whether --enable-dec-locator or --disable-dec-locator was given.
   22255 if test "${enable_dec_locator+set}" = set; then
   22256   enableval="$enable_dec_locator"
   22257   test "$enableval" != yes && enableval=no
   22258 	if test "$enableval" != "no" ; then
   22259     enable_dec_locator=yes
   22260 	else
   22261 		enable_dec_locator=no
   22262 	fi
   22263 else
   22264   enableval=no
   22265 	enable_dec_locator=no
   22266 
   22267 fi;
   22268 echo "$as_me:22268: result: $enable_dec_locator" >&5
   22269 echo "${ECHO_T}$enable_dec_locator" >&6
   22270 if test "$enable_dec_locator" = yes ; then
   22271 
   22272 cat >>confdefs.h <<\EOF
   22273 #define OPT_DEC_LOCATOR 1
   22274 EOF
   22275 
   22276 fi
   22277 
   22278 echo "$as_me:22278: checking if you want XHTML and SVG screen dump support" >&5
   22279 echo $ECHO_N "checking if you want XHTML and SVG screen dump support... $ECHO_C" >&6
   22280 
   22281 # Check whether --enable-screen-dumps or --disable-screen-dumps was given.
   22282 if test "${enable_screen_dumps+set}" = set; then
   22283   enableval="$enable_screen_dumps"
   22284   test "$enableval" != no && enableval=yes
   22285 	if test "$enableval" != "yes" ; then
   22286     enable_screen_dumps=no
   22287 	else
   22288 		enable_screen_dumps=yes
   22289 	fi
   22290 else
   22291   enableval=yes
   22292 	enable_screen_dumps=yes
   22293 
   22294 fi;
   22295 echo "$as_me:22295: result: $enable_screen_dumps" >&5
   22296 echo "${ECHO_T}$enable_screen_dumps" >&6
   22297 if test "$enable_screen_dumps" = yes ; then
   22298 	EXTRASRCS="$EXTRASRCS html.c svg.c"
   22299 	EXTRAOBJS="$EXTRAOBJS html.o svg.o"
   22300 else
   22301 
   22302 cat >>confdefs.h <<\EOF
   22303 #define OPT_SCREEN_DUMPS 0
   22304 EOF
   22305 
   22306 fi
   22307 
   22308 echo "$as_me:22308: checking if you want ReGIS graphics support" >&5
   22309 echo $ECHO_N "checking if you want ReGIS graphics support... $ECHO_C" >&6
   22310 
   22311 # Check whether --enable-regis-graphics or --disable-regis-graphics was given.
   22312 if test "${enable_regis_graphics+set}" = set; then
   22313   enableval="$enable_regis_graphics"
   22314   test "$enableval" != yes && enableval=no
   22315 	if test "$enableval" != "no" ; then
   22316     enable_regis_graphics=yes
   22317 	else
   22318 		enable_regis_graphics=no
   22319 	fi
   22320 else
   22321   enableval=no
   22322 	enable_regis_graphics=no
   22323 
   22324 fi;
   22325 echo "$as_me:22325: result: $enable_regis_graphics" >&5
   22326 echo "${ECHO_T}$enable_regis_graphics" >&6
   22327 if test "$enable_regis_graphics" = yes ; then
   22328 
   22329 cat >>confdefs.h <<\EOF
   22330 #define OPT_REGIS_GRAPHICS 1
   22331 EOF
   22332 
   22333 	EXTRAHDRS="$EXTRAHDRS graphics_regis.h"
   22334 	EXTRASRCS="$EXTRASRCS graphics_regis.c"
   22335 	EXTRAOBJS="$EXTRAOBJS graphics_regis.o"
   22336 
   22337 echo "$as_me:22337: checking if -lm needed for math functions" >&5
   22338 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
   22339 if test "${cf_cv_need_libm+set}" = set; then
   22340   echo $ECHO_N "(cached) $ECHO_C" >&6
   22341 else
   22342 
   22343 	cat >"conftest.$ac_ext" <<_ACEOF
   22344 #line 22344 "configure"
   22345 #include "confdefs.h"
   22346 
   22347 	#include <stdio.h>
   22348 	#include <stdlib.h>
   22349 	#include <math.h>
   22350 
   22351 int
   22352 main (void)
   22353 {
   22354 double x = rand(); printf("result = %g\\n", sin(x))
   22355   ;
   22356   return 0;
   22357 }
   22358 _ACEOF
   22359 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   22360 if { (eval echo "$as_me:22360: \"$ac_link\"") >&5
   22361   (eval $ac_link) 2>&5
   22362   ac_status=$?
   22363   echo "$as_me:22363: \$? = $ac_status" >&5
   22364   (exit "$ac_status"); } &&
   22365          { ac_try='test -s "conftest$ac_exeext"'
   22366   { (eval echo "$as_me:22366: \"$ac_try\"") >&5
   22367   (eval $ac_try) 2>&5
   22368   ac_status=$?
   22369   echo "$as_me:22369: \$? = $ac_status" >&5
   22370   (exit "$ac_status"); }; }; then
   22371   cf_cv_need_libm=no
   22372 else
   22373   echo "$as_me: failed program was:" >&5
   22374 cat "conftest.$ac_ext" >&5
   22375 cf_cv_need_libm=yes
   22376 fi
   22377 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   22378 fi
   22379 echo "$as_me:22379: result: $cf_cv_need_libm" >&5
   22380 echo "${ECHO_T}$cf_cv_need_libm" >&6
   22381 if test "$cf_cv_need_libm" = yes
   22382 then
   22383 
   22384 cf_add_libs="$LIBS"
   22385 # reverse order
   22386 cf_add_0lib=
   22387 for cf_add_1lib in -lm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   22388 # filter duplicates
   22389 for cf_add_1lib in $cf_add_0lib; do
   22390 	for cf_add_2lib in $cf_add_libs; do
   22391 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   22392 			cf_add_1lib=
   22393 			break
   22394 		fi
   22395 	done
   22396 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   22397 done
   22398 LIBS="$cf_add_libs"
   22399 
   22400 fi
   22401 
   22402 fi
   22403 
   22404 echo "$as_me:22404: checking if you want sixel graphics support" >&5
   22405 echo $ECHO_N "checking if you want sixel graphics support... $ECHO_C" >&6
   22406 
   22407 # Check whether --enable-sixel-graphics or --disable-sixel-graphics was given.
   22408 if test "${enable_sixel_graphics+set}" = set; then
   22409   enableval="$enable_sixel_graphics"
   22410   test "$enableval" != no && enableval=yes
   22411 	if test "$enableval" != "yes" ; then
   22412     enable_sixel_graphics=no
   22413 	else
   22414 		enable_sixel_graphics=yes
   22415 	fi
   22416 else
   22417   enableval=yes
   22418 	enable_sixel_graphics=yes
   22419 
   22420 fi;
   22421 echo "$as_me:22421: result: $enable_sixel_graphics" >&5
   22422 echo "${ECHO_T}$enable_sixel_graphics" >&6
   22423 if test "$enable_sixel_graphics" = yes ; then
   22424 
   22425 cat >>confdefs.h <<\EOF
   22426 #define OPT_SIXEL_GRAPHICS 1
   22427 EOF
   22428 
   22429 	EXTRAHDRS="$EXTRAHDRS graphics_sixel.h"
   22430 	EXTRASRCS="$EXTRASRCS graphics_sixel.c"
   22431 	EXTRAOBJS="$EXTRAOBJS graphics_sixel.o"
   22432 fi
   22433 
   22434 if test "$enable_regis_graphics" = yes || test "$enable_sixel_graphics" = yes ; then
   22435 
   22436 cat >>confdefs.h <<\EOF
   22437 #define OPT_GRAPHICS 1
   22438 EOF
   22439 
   22440 	EXTRAHDRS="$EXTRAHDRS graphics.h"
   22441 	EXTRASRCS="$EXTRASRCS graphics.c"
   22442 	EXTRAOBJS="$EXTRAOBJS graphics.o"
   22443 fi
   22444 
   22445 echo "$as_me:22445: checking if you want sixel screen dump support" >&5
   22446 echo $ECHO_N "checking if you want sixel screen dump support... $ECHO_C" >&6
   22447 
   22448 # Check whether --enable-print-graphics or --disable-print-graphics was given.
   22449 if test "${enable_print_graphics+set}" = set; then
   22450   enableval="$enable_print_graphics"
   22451   test "$enableval" != no && enableval=yes
   22452 	if test "$enableval" != "yes" ; then
   22453     enable_print_graphics=no
   22454 	else
   22455 		enable_print_graphics=$enable_regis_graphics
   22456 	fi
   22457 else
   22458   enableval=yes
   22459 	enable_print_graphics=$enable_regis_graphics
   22460 
   22461 fi;
   22462 echo "$as_me:22462: result: $enable_print_graphics" >&5
   22463 echo "${ECHO_T}$enable_print_graphics" >&6
   22464 if test "$enable_print_graphics" = yes ; then
   22465 
   22466 cat >>confdefs.h <<\EOF
   22467 #define OPT_PRINT_GRAPHICS 1
   22468 EOF
   22469 
   22470 fi
   22471 
   22472 echo "$as_me:22472: checking if you want VT420 rectangle support" >&5
   22473 echo $ECHO_N "checking if you want VT420 rectangle support... $ECHO_C" >&6
   22474 
   22475 # Check whether --enable-rectangles or --disable-rectangles was given.
   22476 if test "${enable_rectangles+set}" = set; then
   22477   enableval="$enable_rectangles"
   22478   test "$enableval" != no && enableval=yes
   22479 	if test "$enableval" != "yes" ; then
   22480     enable_rectangles=no
   22481 	else
   22482 		enable_rectangles=yes
   22483 	fi
   22484 else
   22485   enableval=yes
   22486 	enable_rectangles=yes
   22487 
   22488 fi;
   22489 echo "$as_me:22489: result: $enable_rectangles" >&5
   22490 echo "${ECHO_T}$enable_rectangles" >&6
   22491 if test "$enable_rectangles" = yes ; then
   22492 
   22493 cat >>confdefs.h <<\EOF
   22494 #define OPT_DEC_RECTOPS 1
   22495 EOF
   22496 
   22497 fi
   22498 
   22499 echo "$as_me:22499: checking if you want -ziconbeep option" >&5
   22500 echo $ECHO_N "checking if you want -ziconbeep option... $ECHO_C" >&6
   22501 
   22502 # Check whether --enable-ziconbeep or --disable-ziconbeep was given.
   22503 if test "${enable_ziconbeep+set}" = set; then
   22504   enableval="$enable_ziconbeep"
   22505   test "$enableval" != no && enableval=yes
   22506 	if test "$enableval" != "yes" ; then
   22507     enable_ziconbeep=no
   22508 	else
   22509 		enable_ziconbeep=yes
   22510 	fi
   22511 else
   22512   enableval=yes
   22513 	enable_ziconbeep=yes
   22514 
   22515 fi;
   22516 echo "$as_me:22516: result: $enable_ziconbeep" >&5
   22517 echo "${ECHO_T}$enable_ziconbeep" >&6
   22518 test "$enable_ziconbeep" = no &&
   22519 cat >>confdefs.h <<\EOF
   22520 #define OPT_ZICONBEEP 0
   22521 EOF
   22522 
   22523 ###############################################################################
   22524 
   22525 echo "$as_me:22525: checking if you want debugging traces" >&5
   22526 echo $ECHO_N "checking if you want debugging traces... $ECHO_C" >&6
   22527 
   22528 # Check whether --enable-trace or --disable-trace was given.
   22529 if test "${enable_trace+set}" = set; then
   22530   enableval="$enable_trace"
   22531   test "$enableval" != yes && enableval=no
   22532 	if test "$enableval" != "no" ; then
   22533     enable_trace=yes
   22534 	else
   22535 		enable_trace=no
   22536 	fi
   22537 else
   22538   enableval=no
   22539 	enable_trace=no
   22540 
   22541 fi;
   22542 echo "$as_me:22542: result: $enable_trace" >&5
   22543 echo "${ECHO_T}$enable_trace" >&6
   22544 if test "$enable_trace" = yes ; then
   22545 
   22546 cat >>confdefs.h <<\EOF
   22547 #define OPT_TRACE 1
   22548 EOF
   22549 
   22550 	EXTRASRCS="$EXTRASRCS trace.c"
   22551 	EXTRAOBJS="$EXTRAOBJS trace.o"
   22552 fi
   22553 
   22554 echo "$as_me:22554: checking if you want to use dmalloc for testing" >&5
   22555 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
   22556 
   22557 # Check whether --with-dmalloc or --without-dmalloc was given.
   22558 if test "${with_dmalloc+set}" = set; then
   22559   withval="$with_dmalloc"
   22560 
   22561 cat >>confdefs.h <<EOF
   22562 #define USE_DMALLOC 1
   22563 EOF
   22564 
   22565 	: "${with_cflags:=-g}"
   22566 	: "${enable_leaks:=no}"
   22567 	 with_dmalloc=yes
   22568 else
   22569   with_dmalloc=
   22570 fi;
   22571 echo "$as_me:22571: result: ${with_dmalloc:-no}" >&5
   22572 echo "${ECHO_T}${with_dmalloc:-no}" >&6
   22573 
   22574 case ".$with_cflags" in
   22575 (.*-g*)
   22576 	case .$CFLAGS in
   22577 	(.*-g*)
   22578 		;;
   22579 	(*)
   22580 
   22581 cf_fix_cppflags=no
   22582 cf_new_cflags=
   22583 cf_new_cppflags=
   22584 cf_new_extra_cppflags=
   22585 
   22586 for cf_add_cflags in -g
   22587 do
   22588 case "$cf_fix_cppflags" in
   22589 (no)
   22590 	case "$cf_add_cflags" in
   22591 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   22592 		case "$cf_add_cflags" in
   22593 		(-D*)
   22594 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   22595 
   22596 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   22597 				&& test -z "${cf_tst_cflags}" \
   22598 				&& cf_fix_cppflags=yes
   22599 
   22600 			if test "$cf_fix_cppflags" = yes ; then
   22601 
   22602 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   22603 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   22604 
   22605 				continue
   22606 			elif test "${cf_tst_cflags}" = "\"'" ; then
   22607 
   22608 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   22609 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   22610 
   22611 				continue
   22612 			fi
   22613 			;;
   22614 		esac
   22615 		case "$CPPFLAGS" in
   22616 		(*$cf_add_cflags)
   22617 			;;
   22618 		(*)
   22619 			case "$cf_add_cflags" in
   22620 			(-D*)
   22621 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   22622 
   22623 CPPFLAGS=`echo "$CPPFLAGS" | \
   22624 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   22625 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   22626 
   22627 				;;
   22628 			esac
   22629 
   22630 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   22631 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   22632 
   22633 			;;
   22634 		esac
   22635 		;;
   22636 	(*)
   22637 
   22638 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   22639 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   22640 
   22641 		;;
   22642 	esac
   22643 	;;
   22644 (yes)
   22645 
   22646 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   22647 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   22648 
   22649 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   22650 
   22651 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   22652 		&& test -z "${cf_tst_cflags}" \
   22653 		&& cf_fix_cppflags=no
   22654 	;;
   22655 esac
   22656 done
   22657 
   22658 if test -n "$cf_new_cflags" ; then
   22659 
   22660 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   22661 	CFLAGS="${CFLAGS}$cf_new_cflags"
   22662 
   22663 fi
   22664 
   22665 if test -n "$cf_new_cppflags" ; then
   22666 
   22667 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   22668 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   22669 
   22670 fi
   22671 
   22672 if test -n "$cf_new_extra_cppflags" ; then
   22673 
   22674 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   22675 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   22676 
   22677 fi
   22678 
   22679 		;;
   22680 	esac
   22681 	;;
   22682 esac
   22683 
   22684 if test "$with_dmalloc" = yes ; then
   22685 	echo "$as_me:22685: checking for dmalloc.h" >&5
   22686 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
   22687 if test "${ac_cv_header_dmalloc_h+set}" = set; then
   22688   echo $ECHO_N "(cached) $ECHO_C" >&6
   22689 else
   22690   cat >"conftest.$ac_ext" <<_ACEOF
   22691 #line 22691 "configure"
   22692 #include "confdefs.h"
   22693 #include <dmalloc.h>
   22694 _ACEOF
   22695 if { (eval echo "$as_me:22695: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   22696   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   22697   ac_status=$?
   22698   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   22699   rm -f conftest.er1
   22700   cat conftest.err >&5
   22701   echo "$as_me:22701: \$? = $ac_status" >&5
   22702   (exit "$ac_status"); } >/dev/null; then
   22703   if test -s conftest.err; then
   22704     ac_cpp_err=$ac_c_preproc_warn_flag
   22705   else
   22706     ac_cpp_err=
   22707   fi
   22708 else
   22709   ac_cpp_err=yes
   22710 fi
   22711 if test -z "$ac_cpp_err"; then
   22712   ac_cv_header_dmalloc_h=yes
   22713 else
   22714   echo "$as_me: failed program was:" >&5
   22715   cat "conftest.$ac_ext" >&5
   22716   ac_cv_header_dmalloc_h=no
   22717 fi
   22718 rm -f conftest.err "conftest.$ac_ext"
   22719 fi
   22720 echo "$as_me:22720: result: $ac_cv_header_dmalloc_h" >&5
   22721 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
   22722 if test "$ac_cv_header_dmalloc_h" = yes; then
   22723 
   22724 echo "$as_me:22724: checking for dmalloc_debug in -ldmalloc" >&5
   22725 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
   22726 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
   22727   echo $ECHO_N "(cached) $ECHO_C" >&6
   22728 else
   22729   ac_check_lib_save_LIBS=$LIBS
   22730 LIBS="-ldmalloc  $LIBS"
   22731 cat >"conftest.$ac_ext" <<_ACEOF
   22732 #line 22732 "configure"
   22733 #include "confdefs.h"
   22734 
   22735 /* Override any gcc2 internal prototype to avoid an error.  */
   22736 #ifdef __cplusplus
   22737 extern "C"
   22738 #endif
   22739 /* We use char because int might match the return type of a gcc2
   22740    builtin and then its argument prototype would still apply.  */
   22741 char dmalloc_debug ();
   22742 int
   22743 main (void)
   22744 {
   22745 dmalloc_debug ();
   22746   ;
   22747   return 0;
   22748 }
   22749 _ACEOF
   22750 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   22751 if { (eval echo "$as_me:22751: \"$ac_link\"") >&5
   22752   (eval $ac_link) 2>&5
   22753   ac_status=$?
   22754   echo "$as_me:22754: \$? = $ac_status" >&5
   22755   (exit "$ac_status"); } &&
   22756          { ac_try='test -s "conftest$ac_exeext"'
   22757   { (eval echo "$as_me:22757: \"$ac_try\"") >&5
   22758   (eval $ac_try) 2>&5
   22759   ac_status=$?
   22760   echo "$as_me:22760: \$? = $ac_status" >&5
   22761   (exit "$ac_status"); }; }; then
   22762   ac_cv_lib_dmalloc_dmalloc_debug=yes
   22763 else
   22764   echo "$as_me: failed program was:" >&5
   22765 cat "conftest.$ac_ext" >&5
   22766 ac_cv_lib_dmalloc_dmalloc_debug=no
   22767 fi
   22768 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   22769 LIBS=$ac_check_lib_save_LIBS
   22770 fi
   22771 echo "$as_me:22771: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
   22772 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
   22773 if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then
   22774   cat >>confdefs.h <<EOF
   22775 #define HAVE_LIBDMALLOC 1
   22776 EOF
   22777 
   22778   LIBS="-ldmalloc $LIBS"
   22779 
   22780 fi
   22781 
   22782 fi
   22783 
   22784 fi
   22785 
   22786 echo "$as_me:22786: checking if you want to use dbmalloc for testing" >&5
   22787 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
   22788 
   22789 # Check whether --with-dbmalloc or --without-dbmalloc was given.
   22790 if test "${with_dbmalloc+set}" = set; then
   22791   withval="$with_dbmalloc"
   22792 
   22793 cat >>confdefs.h <<EOF
   22794 #define USE_DBMALLOC 1
   22795 EOF
   22796 
   22797 	: "${with_cflags:=-g}"
   22798 	: "${enable_leaks:=no}"
   22799 	 with_dbmalloc=yes
   22800 else
   22801   with_dbmalloc=
   22802 fi;
   22803 echo "$as_me:22803: result: ${with_dbmalloc:-no}" >&5
   22804 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
   22805 
   22806 case ".$with_cflags" in
   22807 (.*-g*)
   22808 	case .$CFLAGS in
   22809 	(.*-g*)
   22810 		;;
   22811 	(*)
   22812 
   22813 cf_fix_cppflags=no
   22814 cf_new_cflags=
   22815 cf_new_cppflags=
   22816 cf_new_extra_cppflags=
   22817 
   22818 for cf_add_cflags in -g
   22819 do
   22820 case "$cf_fix_cppflags" in
   22821 (no)
   22822 	case "$cf_add_cflags" in
   22823 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   22824 		case "$cf_add_cflags" in
   22825 		(-D*)
   22826 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   22827 
   22828 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   22829 				&& test -z "${cf_tst_cflags}" \
   22830 				&& cf_fix_cppflags=yes
   22831 
   22832 			if test "$cf_fix_cppflags" = yes ; then
   22833 
   22834 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   22835 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   22836 
   22837 				continue
   22838 			elif test "${cf_tst_cflags}" = "\"'" ; then
   22839 
   22840 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   22841 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   22842 
   22843 				continue
   22844 			fi
   22845 			;;
   22846 		esac
   22847 		case "$CPPFLAGS" in
   22848 		(*$cf_add_cflags)
   22849 			;;
   22850 		(*)
   22851 			case "$cf_add_cflags" in
   22852 			(-D*)
   22853 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   22854 
   22855 CPPFLAGS=`echo "$CPPFLAGS" | \
   22856 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   22857 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   22858 
   22859 				;;
   22860 			esac
   22861 
   22862 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   22863 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   22864 
   22865 			;;
   22866 		esac
   22867 		;;
   22868 	(*)
   22869 
   22870 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   22871 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   22872 
   22873 		;;
   22874 	esac
   22875 	;;
   22876 (yes)
   22877 
   22878 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   22879 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   22880 
   22881 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   22882 
   22883 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   22884 		&& test -z "${cf_tst_cflags}" \
   22885 		&& cf_fix_cppflags=no
   22886 	;;
   22887 esac
   22888 done
   22889 
   22890 if test -n "$cf_new_cflags" ; then
   22891 
   22892 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   22893 	CFLAGS="${CFLAGS}$cf_new_cflags"
   22894 
   22895 fi
   22896 
   22897 if test -n "$cf_new_cppflags" ; then
   22898 
   22899 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   22900 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   22901 
   22902 fi
   22903 
   22904 if test -n "$cf_new_extra_cppflags" ; then
   22905 
   22906 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   22907 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   22908 
   22909 fi
   22910 
   22911 		;;
   22912 	esac
   22913 	;;
   22914 esac
   22915 
   22916 if test "$with_dbmalloc" = yes ; then
   22917 	echo "$as_me:22917: checking for dbmalloc.h" >&5
   22918 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
   22919 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
   22920   echo $ECHO_N "(cached) $ECHO_C" >&6
   22921 else
   22922   cat >"conftest.$ac_ext" <<_ACEOF
   22923 #line 22923 "configure"
   22924 #include "confdefs.h"
   22925 #include <dbmalloc.h>
   22926 _ACEOF
   22927 if { (eval echo "$as_me:22927: \"$ac_cpp "conftest.$ac_ext"\"") >&5
   22928   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
   22929   ac_status=$?
   22930   $EGREP -v '^ *\+' conftest.er1 >conftest.err
   22931   rm -f conftest.er1
   22932   cat conftest.err >&5
   22933   echo "$as_me:22933: \$? = $ac_status" >&5
   22934   (exit "$ac_status"); } >/dev/null; then
   22935   if test -s conftest.err; then
   22936     ac_cpp_err=$ac_c_preproc_warn_flag
   22937   else
   22938     ac_cpp_err=
   22939   fi
   22940 else
   22941   ac_cpp_err=yes
   22942 fi
   22943 if test -z "$ac_cpp_err"; then
   22944   ac_cv_header_dbmalloc_h=yes
   22945 else
   22946   echo "$as_me: failed program was:" >&5
   22947   cat "conftest.$ac_ext" >&5
   22948   ac_cv_header_dbmalloc_h=no
   22949 fi
   22950 rm -f conftest.err "conftest.$ac_ext"
   22951 fi
   22952 echo "$as_me:22952: result: $ac_cv_header_dbmalloc_h" >&5
   22953 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
   22954 if test "$ac_cv_header_dbmalloc_h" = yes; then
   22955 
   22956 echo "$as_me:22956: checking for debug_malloc in -ldbmalloc" >&5
   22957 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
   22958 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
   22959   echo $ECHO_N "(cached) $ECHO_C" >&6
   22960 else
   22961   ac_check_lib_save_LIBS=$LIBS
   22962 LIBS="-ldbmalloc  $LIBS"
   22963 cat >"conftest.$ac_ext" <<_ACEOF
   22964 #line 22964 "configure"
   22965 #include "confdefs.h"
   22966 
   22967 /* Override any gcc2 internal prototype to avoid an error.  */
   22968 #ifdef __cplusplus
   22969 extern "C"
   22970 #endif
   22971 /* We use char because int might match the return type of a gcc2
   22972    builtin and then its argument prototype would still apply.  */
   22973 char debug_malloc ();
   22974 int
   22975 main (void)
   22976 {
   22977 debug_malloc ();
   22978   ;
   22979   return 0;
   22980 }
   22981 _ACEOF
   22982 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   22983 if { (eval echo "$as_me:22983: \"$ac_link\"") >&5
   22984   (eval $ac_link) 2>&5
   22985   ac_status=$?
   22986   echo "$as_me:22986: \$? = $ac_status" >&5
   22987   (exit "$ac_status"); } &&
   22988          { ac_try='test -s "conftest$ac_exeext"'
   22989   { (eval echo "$as_me:22989: \"$ac_try\"") >&5
   22990   (eval $ac_try) 2>&5
   22991   ac_status=$?
   22992   echo "$as_me:22992: \$? = $ac_status" >&5
   22993   (exit "$ac_status"); }; }; then
   22994   ac_cv_lib_dbmalloc_debug_malloc=yes
   22995 else
   22996   echo "$as_me: failed program was:" >&5
   22997 cat "conftest.$ac_ext" >&5
   22998 ac_cv_lib_dbmalloc_debug_malloc=no
   22999 fi
   23000 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   23001 LIBS=$ac_check_lib_save_LIBS
   23002 fi
   23003 echo "$as_me:23003: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
   23004 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
   23005 if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then
   23006   cat >>confdefs.h <<EOF
   23007 #define HAVE_LIBDBMALLOC 1
   23008 EOF
   23009 
   23010   LIBS="-ldbmalloc $LIBS"
   23011 
   23012 fi
   23013 
   23014 fi
   23015 
   23016 fi
   23017 
   23018 echo "$as_me:23018: checking if you want to use valgrind for testing" >&5
   23019 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
   23020 
   23021 # Check whether --with-valgrind or --without-valgrind was given.
   23022 if test "${with_valgrind+set}" = set; then
   23023   withval="$with_valgrind"
   23024 
   23025 cat >>confdefs.h <<EOF
   23026 #define USE_VALGRIND 1
   23027 EOF
   23028 
   23029 	: "${with_cflags:=-g}"
   23030 	: "${enable_leaks:=no}"
   23031 	 with_valgrind=yes
   23032 else
   23033   with_valgrind=
   23034 fi;
   23035 echo "$as_me:23035: result: ${with_valgrind:-no}" >&5
   23036 echo "${ECHO_T}${with_valgrind:-no}" >&6
   23037 
   23038 case ".$with_cflags" in
   23039 (.*-g*)
   23040 	case .$CFLAGS in
   23041 	(.*-g*)
   23042 		;;
   23043 	(*)
   23044 
   23045 cf_fix_cppflags=no
   23046 cf_new_cflags=
   23047 cf_new_cppflags=
   23048 cf_new_extra_cppflags=
   23049 
   23050 for cf_add_cflags in -g
   23051 do
   23052 case "$cf_fix_cppflags" in
   23053 (no)
   23054 	case "$cf_add_cflags" in
   23055 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   23056 		case "$cf_add_cflags" in
   23057 		(-D*)
   23058 			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   23059 
   23060 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   23061 				&& test -z "${cf_tst_cflags}" \
   23062 				&& cf_fix_cppflags=yes
   23063 
   23064 			if test "$cf_fix_cppflags" = yes ; then
   23065 
   23066 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   23067 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   23068 
   23069 				continue
   23070 			elif test "${cf_tst_cflags}" = "\"'" ; then
   23071 
   23072 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   23073 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   23074 
   23075 				continue
   23076 			fi
   23077 			;;
   23078 		esac
   23079 		case "$CPPFLAGS" in
   23080 		(*$cf_add_cflags)
   23081 			;;
   23082 		(*)
   23083 			case "$cf_add_cflags" in
   23084 			(-D*)
   23085 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   23086 
   23087 CPPFLAGS=`echo "$CPPFLAGS" | \
   23088 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   23089 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   23090 
   23091 				;;
   23092 			esac
   23093 
   23094 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   23095 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   23096 
   23097 			;;
   23098 		esac
   23099 		;;
   23100 	(*)
   23101 
   23102 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   23103 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   23104 
   23105 		;;
   23106 	esac
   23107 	;;
   23108 (yes)
   23109 
   23110 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   23111 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   23112 
   23113 	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
   23114 
   23115 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   23116 		&& test -z "${cf_tst_cflags}" \
   23117 		&& cf_fix_cppflags=no
   23118 	;;
   23119 esac
   23120 done
   23121 
   23122 if test -n "$cf_new_cflags" ; then
   23123 
   23124 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   23125 	CFLAGS="${CFLAGS}$cf_new_cflags"
   23126 
   23127 fi
   23128 
   23129 if test -n "$cf_new_cppflags" ; then
   23130 
   23131 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   23132 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   23133 
   23134 fi
   23135 
   23136 if test -n "$cf_new_extra_cppflags" ; then
   23137 
   23138 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   23139 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   23140 
   23141 fi
   23142 
   23143 		;;
   23144 	esac
   23145 	;;
   23146 esac
   23147 
   23148 echo "$as_me:23148: checking if you want to perform memory-leak testing" >&5
   23149 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
   23150 
   23151 # Check whether --enable-leaks or --disable-leaks was given.
   23152 if test "${enable_leaks+set}" = set; then
   23153   enableval="$enable_leaks"
   23154   enable_leaks=$enableval
   23155 else
   23156   enable_leaks=yes
   23157 fi;
   23158 if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
   23159 echo "$as_me:23159: result: $with_no_leaks" >&5
   23160 echo "${ECHO_T}$with_no_leaks" >&6
   23161 
   23162 if test "$enable_leaks" = no ; then
   23163 
   23164 cat >>confdefs.h <<\EOF
   23165 #define NO_LEAKS 1
   23166 EOF
   23167 
   23168 cat >>confdefs.h <<\EOF
   23169 #define YY_NO_LEAKS 1
   23170 EOF
   23171 
   23172 fi
   23173 
   23174 echo "$as_me:23174: checking if you want to see long compiling messages" >&5
   23175 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
   23176 
   23177 # Check whether --enable-echo or --disable-echo was given.
   23178 if test "${enable_echo+set}" = set; then
   23179   enableval="$enable_echo"
   23180   test "$enableval" != no && enableval=yes
   23181 	if test "$enableval" != "yes" ; then
   23182 
   23183 	ECHO_LT='--silent'
   23184 	ECHO_LD='@echo linking $@;'
   23185 	RULE_CC='@echo compiling $<'
   23186 	SHOW_CC='@echo compiling $@'
   23187 	ECHO_CC='@'
   23188 
   23189 	else
   23190 
   23191 	ECHO_LT=''
   23192 	ECHO_LD=''
   23193 	RULE_CC=''
   23194 	SHOW_CC=''
   23195 	ECHO_CC=''
   23196 
   23197 	fi
   23198 else
   23199   enableval=yes
   23200 
   23201 	ECHO_LT=''
   23202 	ECHO_LD=''
   23203 	RULE_CC=''
   23204 	SHOW_CC=''
   23205 	ECHO_CC=''
   23206 
   23207 fi;
   23208 echo "$as_me:23208: result: $enableval" >&5
   23209 echo "${ECHO_T}$enableval" >&6
   23210 
   23211 echo "$as_me:23211: checking if you want magic cookie emulation" >&5
   23212 echo $ECHO_N "checking if you want magic cookie emulation... $ECHO_C" >&6
   23213 
   23214 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
   23215 if test "${enable_xmc_glitch+set}" = set; then
   23216   enableval="$enable_xmc_glitch"
   23217   test "$enableval" != yes && enableval=no
   23218 	if test "$enableval" != "no" ; then
   23219     enable_xmc=yes
   23220 	else
   23221 		enable_xmc=no
   23222 	fi
   23223 else
   23224   enableval=no
   23225 	enable_xmc=no
   23226 
   23227 fi;
   23228 echo "$as_me:23228: result: $enable_xmc" >&5
   23229 echo "${ECHO_T}$enable_xmc" >&6
   23230 if test "$enable_xmc" = yes ; then
   23231 
   23232 cat >>confdefs.h <<\EOF
   23233 #define OPT_XMC_GLITCH 1
   23234 EOF
   23235 
   23236 	EXTRASRCS="$EXTRASRCS testxmc.c"
   23237 	EXTRAOBJS="$EXTRAOBJS testxmc.o"
   23238 fi
   23239 
   23240 for ac_func in tigetstr
   23241 do
   23242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   23243 echo "$as_me:23243: checking for $ac_func" >&5
   23244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   23245 if eval "test \"\${$as_ac_var+set}\" = set"; then
   23246   echo $ECHO_N "(cached) $ECHO_C" >&6
   23247 else
   23248   cat >"conftest.$ac_ext" <<_ACEOF
   23249 #line 23249 "configure"
   23250 #include "confdefs.h"
   23251 #define $ac_func autoconf_temporary
   23252 #include <limits.h>	/* least-intrusive standard header which defines gcc2 __stub macros */
   23253 #undef $ac_func
   23254 
   23255 #ifdef __cplusplus
   23256 extern "C"
   23257 #endif
   23258 
   23259 /* We use char because int might match the return type of a gcc2
   23260    builtin and then its argument prototype would still apply.  */
   23261 char $ac_func (void);
   23262 
   23263 int
   23264 main (void)
   23265 {
   23266 
   23267 /* The GNU C library defines stubs for functions which it implements
   23268     to always fail with ENOSYS.  Some functions are actually named
   23269     something starting with __ and the normal name is an alias.  */
   23270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   23271 #error found stub for $ac_func
   23272 #endif
   23273 
   23274 	return $ac_func ();
   23275   ;
   23276   return 0;
   23277 }
   23278 _ACEOF
   23279 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   23280 if { (eval echo "$as_me:23280: \"$ac_link\"") >&5
   23281   (eval $ac_link) 2>&5
   23282   ac_status=$?
   23283   echo "$as_me:23283: \$? = $ac_status" >&5
   23284   (exit "$ac_status"); } &&
   23285          { ac_try='test -s "conftest$ac_exeext"'
   23286   { (eval echo "$as_me:23286: \"$ac_try\"") >&5
   23287   (eval $ac_try) 2>&5
   23288   ac_status=$?
   23289   echo "$as_me:23289: \$? = $ac_status" >&5
   23290   (exit "$ac_status"); }; }; then
   23291   eval "$as_ac_var=yes"
   23292 else
   23293   echo "$as_me: failed program was:" >&5
   23294 cat "conftest.$ac_ext" >&5
   23295 eval "$as_ac_var=no"
   23296 fi
   23297 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   23298 fi
   23299 echo "$as_me:23299: result: `eval echo '${'"$as_ac_var"'}'`" >&5
   23300 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
   23301 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
   23302   cat >>confdefs.h <<EOF
   23303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   23304 EOF
   23305 
   23306 fi
   23307 done
   23308 
   23309 if test -n "$cf_cv_lib_part_tgetent"; then
   23310 
   23311 for ac_func in use_extended_names
   23312 do
   23313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   23314 echo "$as_me:23314: checking for $ac_func" >&5
   23315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   23316 if eval "test \"\${$as_ac_var+set}\" = set"; then
   23317   echo $ECHO_N "(cached) $ECHO_C" >&6
   23318 else
   23319   cat >"conftest.$ac_ext" <<_ACEOF
   23320 #line 23320 "configure"
   23321 #include "confdefs.h"
   23322 #define $ac_func autoconf_temporary
   23323 #include <limits.h>	/* least-intrusive standard header which defines gcc2 __stub macros */
   23324 #undef $ac_func
   23325 
   23326 #ifdef __cplusplus
   23327 extern "C"
   23328 #endif
   23329 
   23330 /* We use char because int might match the return type of a gcc2
   23331    builtin and then its argument prototype would still apply.  */
   23332 char $ac_func (void);
   23333 
   23334 int
   23335 main (void)
   23336 {
   23337 
   23338 /* The GNU C library defines stubs for functions which it implements
   23339     to always fail with ENOSYS.  Some functions are actually named
   23340     something starting with __ and the normal name is an alias.  */
   23341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   23342 #error found stub for $ac_func
   23343 #endif
   23344 
   23345 	return $ac_func ();
   23346   ;
   23347   return 0;
   23348 }
   23349 _ACEOF
   23350 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   23351 if { (eval echo "$as_me:23351: \"$ac_link\"") >&5
   23352   (eval $ac_link) 2>&5
   23353   ac_status=$?
   23354   echo "$as_me:23354: \$? = $ac_status" >&5
   23355   (exit "$ac_status"); } &&
   23356          { ac_try='test -s "conftest$ac_exeext"'
   23357   { (eval echo "$as_me:23357: \"$ac_try\"") >&5
   23358   (eval $ac_try) 2>&5
   23359   ac_status=$?
   23360   echo "$as_me:23360: \$? = $ac_status" >&5
   23361   (exit "$ac_status"); }; }; then
   23362   eval "$as_ac_var=yes"
   23363 else
   23364   echo "$as_me: failed program was:" >&5
   23365 cat "conftest.$ac_ext" >&5
   23366 eval "$as_ac_var=no"
   23367 fi
   23368 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   23369 fi
   23370 echo "$as_me:23370: result: `eval echo '${'"$as_ac_var"'}'`" >&5
   23371 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
   23372 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
   23373   cat >>confdefs.h <<EOF
   23374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   23375 EOF
   23376 
   23377 fi
   23378 done
   23379 
   23380 fi
   23381 
   23382 echo "$as_me:23382: checking if you want to use C11 _Noreturn feature" >&5
   23383 echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6
   23384 
   23385 # Check whether --enable-stdnoreturn or --disable-stdnoreturn was given.
   23386 if test "${enable_stdnoreturn+set}" = set; then
   23387   enableval="$enable_stdnoreturn"
   23388   test "$enableval" != yes && enableval=no
   23389 	if test "$enableval" != "no" ; then
   23390     enable_stdnoreturn=yes
   23391 	else
   23392 		enable_stdnoreturn=no
   23393 	fi
   23394 else
   23395   enableval=no
   23396 	enable_stdnoreturn=no
   23397 
   23398 fi;
   23399 echo "$as_me:23399: result: $enable_stdnoreturn" >&5
   23400 echo "${ECHO_T}$enable_stdnoreturn" >&6
   23401 
   23402 if test $enable_stdnoreturn = yes; then
   23403 echo "$as_me:23403: checking for C11 _Noreturn feature" >&5
   23404 echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6
   23405 if test "${cf_cv_c11_noreturn+set}" = set; then
   23406   echo $ECHO_N "(cached) $ECHO_C" >&6
   23407 else
   23408   cat >"conftest.$ac_ext" <<_ACEOF
   23409 #line 23409 "configure"
   23410 #include "confdefs.h"
   23411 
   23412 #include <stdio.h>
   23413 #include <stdlib.h>
   23414 #include <stdnoreturn.h>
   23415 static _Noreturn void giveup(void) { exit(0); }
   23416 
   23417 int
   23418 main (void)
   23419 {
   23420 if (feof(stdin)) giveup()
   23421   ;
   23422   return 0;
   23423 }
   23424 _ACEOF
   23425 rm -f "conftest.$ac_objext"
   23426 if { (eval echo "$as_me:23426: \"$ac_compile\"") >&5
   23427   (eval $ac_compile) 2>&5
   23428   ac_status=$?
   23429   echo "$as_me:23429: \$? = $ac_status" >&5
   23430   (exit "$ac_status"); } &&
   23431          { ac_try='test -s "conftest.$ac_objext"'
   23432   { (eval echo "$as_me:23432: \"$ac_try\"") >&5
   23433   (eval $ac_try) 2>&5
   23434   ac_status=$?
   23435   echo "$as_me:23435: \$? = $ac_status" >&5
   23436   (exit "$ac_status"); }; }; then
   23437   cf_cv_c11_noreturn=yes
   23438 else
   23439   echo "$as_me: failed program was:" >&5
   23440 cat "conftest.$ac_ext" >&5
   23441 cf_cv_c11_noreturn=no
   23442 fi
   23443 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   23444 
   23445 fi
   23446 echo "$as_me:23446: result: $cf_cv_c11_noreturn" >&5
   23447 echo "${ECHO_T}$cf_cv_c11_noreturn" >&6
   23448 else
   23449 	cf_cv_c11_noreturn=no,
   23450 fi
   23451 
   23452 if test "$cf_cv_c11_noreturn" = yes; then
   23453 
   23454 cat >>confdefs.h <<\EOF
   23455 #define HAVE_STDNORETURN_H 1
   23456 EOF
   23457 
   23458 cat >>confdefs.h <<EOF
   23459 #define STDC_NORETURN _Noreturn
   23460 EOF
   23461 
   23462 	HAVE_STDNORETURN_H=1
   23463 else
   23464 	HAVE_STDNORETURN_H=0
   23465 fi
   23466 
   23467 if test "$GCC" = yes || test "$GXX" = yes
   23468 then
   23469 
   23470 if test "$GCC" = yes || test "$GXX" = yes
   23471 then
   23472 	case $CFLAGS in
   23473 	(*-Werror=*)
   23474 		test -n "$verbose" && echo "	repairing CFLAGS: $CFLAGS" 1>&6
   23475 
   23476 echo "${as_me:-configure}:23476: testing repairing CFLAGS: $CFLAGS ..." 1>&5
   23477 
   23478 		cf_temp_flags=
   23479 		for cf_temp_scan in $CFLAGS
   23480 		do
   23481 			case "x$cf_temp_scan" in
   23482 			(x-Werror=*)
   23483 
   23484 	test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
   23485 	EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
   23486 
   23487 				;;
   23488 			(*)
   23489 
   23490 	test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
   23491 	cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
   23492 
   23493 				;;
   23494 			esac
   23495 		done
   23496 		CFLAGS="$cf_temp_flags"
   23497 		test -n "$verbose" && echo "	... fixed $CFLAGS" 1>&6
   23498 
   23499 echo "${as_me:-configure}:23499: testing ... fixed $CFLAGS ..." 1>&5
   23500 
   23501 		test -n "$verbose" && echo "	... extra $EXTRA_CFLAGS" 1>&6
   23502 
   23503 echo "${as_me:-configure}:23503: testing ... extra $EXTRA_CFLAGS ..." 1>&5
   23504 
   23505 		;;
   23506 	esac
   23507 fi
   23508 
   23509 if test "$GCC" = yes || test "$GXX" = yes
   23510 then
   23511 	case $CPPFLAGS in
   23512 	(*-Werror=*)
   23513 		test -n "$verbose" && echo "	repairing CPPFLAGS: $CPPFLAGS" 1>&6
   23514 
   23515 echo "${as_me:-configure}:23515: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
   23516 
   23517 		cf_temp_flags=
   23518 		for cf_temp_scan in $CPPFLAGS
   23519 		do
   23520 			case "x$cf_temp_scan" in
   23521 			(x-Werror=*)
   23522 
   23523 	test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
   23524 	EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
   23525 
   23526 				;;
   23527 			(*)
   23528 
   23529 	test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
   23530 	cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
   23531 
   23532 				;;
   23533 			esac
   23534 		done
   23535 		CPPFLAGS="$cf_temp_flags"
   23536 		test -n "$verbose" && echo "	... fixed $CPPFLAGS" 1>&6
   23537 
   23538 echo "${as_me:-configure}:23538: testing ... fixed $CPPFLAGS ..." 1>&5
   23539 
   23540 		test -n "$verbose" && echo "	... extra $EXTRA_CFLAGS" 1>&6
   23541 
   23542 echo "${as_me:-configure}:23542: testing ... extra $EXTRA_CFLAGS ..." 1>&5
   23543 
   23544 		;;
   23545 	esac
   23546 fi
   23547 
   23548 if test "$GCC" = yes || test "$GXX" = yes
   23549 then
   23550 	case $LDFLAGS in
   23551 	(*-Werror=*)
   23552 		test -n "$verbose" && echo "	repairing LDFLAGS: $LDFLAGS" 1>&6
   23553 
   23554 echo "${as_me:-configure}:23554: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
   23555 
   23556 		cf_temp_flags=
   23557 		for cf_temp_scan in $LDFLAGS
   23558 		do
   23559 			case "x$cf_temp_scan" in
   23560 			(x-Werror=*)
   23561 
   23562 	test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
   23563 	EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
   23564 
   23565 				;;
   23566 			(*)
   23567 
   23568 	test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
   23569 	cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
   23570 
   23571 				;;
   23572 			esac
   23573 		done
   23574 		LDFLAGS="$cf_temp_flags"
   23575 		test -n "$verbose" && echo "	... fixed $LDFLAGS" 1>&6
   23576 
   23577 echo "${as_me:-configure}:23577: testing ... fixed $LDFLAGS ..." 1>&5
   23578 
   23579 		test -n "$verbose" && echo "	... extra $EXTRA_CFLAGS" 1>&6
   23580 
   23581 echo "${as_me:-configure}:23581: testing ... extra $EXTRA_CFLAGS ..." 1>&5
   23582 
   23583 		;;
   23584 	esac
   23585 fi
   23586 
   23587 echo "$as_me:23587: checking if you want to turn on gcc warnings" >&5
   23588 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
   23589 
   23590 # Check whether --enable-warnings or --disable-warnings was given.
   23591 if test "${enable_warnings+set}" = set; then
   23592   enableval="$enable_warnings"
   23593   test "$enableval" != yes && enableval=no
   23594 	if test "$enableval" != "no" ; then
   23595     enable_warnings=yes
   23596 	else
   23597 		enable_warnings=no
   23598 	fi
   23599 else
   23600   enableval=no
   23601 	enable_warnings=no
   23602 
   23603 fi;
   23604 echo "$as_me:23604: result: $enable_warnings" >&5
   23605 echo "${ECHO_T}$enable_warnings" >&6
   23606 if test "$enable_warnings" = "yes"
   23607 then
   23608 
   23609 if test "$GCC" = yes || test "$GXX" = yes
   23610 then
   23611 cat > conftest.i <<EOF
   23612 #ifndef GCC_PRINTF
   23613 #define GCC_PRINTF 0
   23614 #endif
   23615 #ifndef GCC_SCANF
   23616 #define GCC_SCANF 0
   23617 #endif
   23618 #ifndef GCC_NORETURN
   23619 #define GCC_NORETURN /* nothing */
   23620 #endif
   23621 #ifndef GCC_UNUSED
   23622 #define GCC_UNUSED /* nothing */
   23623 #endif
   23624 EOF
   23625 if test "$GCC" = yes
   23626 then
   23627 	{ echo "$as_me:23627: checking for $CC __attribute__ directives..." >&5
   23628 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
   23629 cat > "conftest.$ac_ext" <<EOF
   23630 #line 23630 "${as_me:-configure}"
   23631 #include "confdefs.h"
   23632 #include "conftest.h"
   23633 #include "conftest.i"
   23634 #if	GCC_PRINTF
   23635 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
   23636 #else
   23637 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
   23638 #endif
   23639 #if	GCC_SCANF
   23640 #define GCC_SCANFLIKE(fmt,var)  __attribute__((format(scanf,fmt,var)))
   23641 #else
   23642 #define GCC_SCANFLIKE(fmt,var)  /*nothing*/
   23643 #endif
   23644 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
   23645 extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2);
   23646 extern GCC_NORETURN void foo(void);
   23647 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
   23648 EOF
   23649 	cf_printf_attribute=no
   23650 	cf_scanf_attribute=no
   23651 	for cf_attribute in scanf printf unused noreturn
   23652 	do
   23653 
   23654 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   23655 
   23656 		cf_directive="__attribute__(($cf_attribute))"
   23657 		echo "checking for $CC $cf_directive" 1>&5
   23658 
   23659 		case "$cf_attribute" in
   23660 		(printf)
   23661 			cf_printf_attribute=yes
   23662 			cat >conftest.h <<EOF
   23663 #define GCC_$cf_ATTRIBUTE 1
   23664 EOF
   23665 			;;
   23666 		(scanf)
   23667 			cf_scanf_attribute=yes
   23668 			cat >conftest.h <<EOF
   23669 #define GCC_$cf_ATTRIBUTE 1
   23670 EOF
   23671 			;;
   23672 		(*)
   23673 			cat >conftest.h <<EOF
   23674 #define GCC_$cf_ATTRIBUTE $cf_directive
   23675 EOF
   23676 			;;
   23677 		esac
   23678 
   23679 		if { (eval echo "$as_me:23679: \"$ac_compile\"") >&5
   23680   (eval $ac_compile) 2>&5
   23681   ac_status=$?
   23682   echo "$as_me:23682: \$? = $ac_status" >&5
   23683   (exit "$ac_status"); }; then
   23684 			test -n "$verbose" && echo "$as_me:23684: result: ... $cf_attribute" >&5
   23685 echo "${ECHO_T}... $cf_attribute" >&6
   23686 			cat conftest.h >>confdefs.h
   23687 			case "$cf_attribute" in
   23688 			(noreturn)
   23689 
   23690 cat >>confdefs.h <<EOF
   23691 #define GCC_NORETURN $cf_directive
   23692 EOF
   23693 
   23694 				;;
   23695 			(printf)
   23696 				cf_value='/* nothing */'
   23697 				if test "$cf_printf_attribute" != no ; then
   23698 					cf_value='__attribute__((format(printf,fmt,var)))'
   23699 
   23700 cat >>confdefs.h <<\EOF
   23701 #define GCC_PRINTF 1
   23702 EOF
   23703 
   23704 				fi
   23705 
   23706 cat >>confdefs.h <<EOF
   23707 #define GCC_PRINTFLIKE(fmt,var) $cf_value
   23708 EOF
   23709 
   23710 				;;
   23711 			(scanf)
   23712 				cf_value='/* nothing */'
   23713 				if test "$cf_scanf_attribute" != no ; then
   23714 					cf_value='__attribute__((format(scanf,fmt,var)))'
   23715 
   23716 cat >>confdefs.h <<\EOF
   23717 #define GCC_SCANF 1
   23718 EOF
   23719 
   23720 				fi
   23721 
   23722 cat >>confdefs.h <<EOF
   23723 #define GCC_SCANFLIKE(fmt,var) $cf_value
   23724 EOF
   23725 
   23726 				;;
   23727 			(unused)
   23728 
   23729 cat >>confdefs.h <<EOF
   23730 #define GCC_UNUSED $cf_directive
   23731 EOF
   23732 
   23733 				;;
   23734 			esac
   23735 		fi
   23736 	done
   23737 else
   23738 	${FGREP-fgrep} define conftest.i >>confdefs.h
   23739 fi
   23740 rm -rf ./conftest*
   23741 fi
   23742 
   23743 if test "x$have_x" = xyes; then
   23744 
   23745 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
   23746 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
   23747 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
   23748 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
   23749 for cf_X_CFLAGS in $X_CFLAGS
   23750 do
   23751 	case "x$cf_X_CFLAGS" in
   23752 	x-[IUD]*)
   23753 		CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
   23754 		;;
   23755 	*)
   23756 		CFLAGS="$CFLAGS $cf_X_CFLAGS"
   23757 		;;
   23758 	esac
   23759 done
   23760 
   23761 cat >"conftest.$ac_ext" <<_ACEOF
   23762 #line 23762 "configure"
   23763 #include "confdefs.h"
   23764 
   23765 #include <stdlib.h>
   23766 #include <X11/Intrinsic.h>
   23767 
   23768 int
   23769 main (void)
   23770 {
   23771 String foo = malloc(1); free((void*)foo)
   23772   ;
   23773   return 0;
   23774 }
   23775 _ACEOF
   23776 rm -f "conftest.$ac_objext"
   23777 if { (eval echo "$as_me:23777: \"$ac_compile\"") >&5
   23778   (eval $ac_compile) 2>&5
   23779   ac_status=$?
   23780   echo "$as_me:23780: \$? = $ac_status" >&5
   23781   (exit "$ac_status"); } &&
   23782          { ac_try='test -s "conftest.$ac_objext"'
   23783   { (eval echo "$as_me:23783: \"$ac_try\"") >&5
   23784   (eval $ac_try) 2>&5
   23785   ac_status=$?
   23786   echo "$as_me:23786: \$? = $ac_status" >&5
   23787   (exit "$ac_status"); }; }; then
   23788 
   23789 echo "$as_me:23789: checking for X11/Xt const-feature" >&5
   23790 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
   23791 if test "${cf_cv_const_x_string+set}" = set; then
   23792   echo $ECHO_N "(cached) $ECHO_C" >&6
   23793 else
   23794 
   23795 	cat >"conftest.$ac_ext" <<_ACEOF
   23796 #line 23796 "configure"
   23797 #include "confdefs.h"
   23798 
   23799 #define _CONST_X_STRING	/* X11R7.8 (perhaps) */
   23800 #undef  XTSTRINGDEFINES	/* X11R5 and later */
   23801 #include <stdlib.h>
   23802 #include <X11/Intrinsic.h>
   23803 
   23804 int
   23805 main (void)
   23806 {
   23807 String foo = malloc(1); *foo = 0
   23808   ;
   23809   return 0;
   23810 }
   23811 _ACEOF
   23812 rm -f "conftest.$ac_objext"
   23813 if { (eval echo "$as_me:23813: \"$ac_compile\"") >&5
   23814   (eval $ac_compile) 2>&5
   23815   ac_status=$?
   23816   echo "$as_me:23816: \$? = $ac_status" >&5
   23817   (exit "$ac_status"); } &&
   23818          { ac_try='test -s "conftest.$ac_objext"'
   23819   { (eval echo "$as_me:23819: \"$ac_try\"") >&5
   23820   (eval $ac_try) 2>&5
   23821   ac_status=$?
   23822   echo "$as_me:23822: \$? = $ac_status" >&5
   23823   (exit "$ac_status"); }; }; then
   23824 
   23825 			cf_cv_const_x_string=no
   23826 
   23827 else
   23828   echo "$as_me: failed program was:" >&5
   23829 cat "conftest.$ac_ext" >&5
   23830 
   23831 			cf_cv_const_x_string=yes
   23832 
   23833 fi
   23834 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   23835 
   23836 fi
   23837 echo "$as_me:23837: result: $cf_cv_const_x_string" >&5
   23838 echo "${ECHO_T}$cf_cv_const_x_string" >&6
   23839 
   23840 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
   23841 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
   23842 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
   23843 
   23844 case "$cf_cv_const_x_string" in
   23845 (no)
   23846 
   23847 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   23848 	CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
   23849 
   23850 	;;
   23851 (*)
   23852 
   23853 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   23854 	CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
   23855 
   23856 	;;
   23857 esac
   23858 
   23859 else
   23860   echo "$as_me: failed program was:" >&5
   23861 cat "conftest.$ac_ext" >&5
   23862 fi
   23863 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
   23864  fi
   23865 cat > "conftest.$ac_ext" <<EOF
   23866 #line 23866 "${as_me:-configure}"
   23867 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
   23868 EOF
   23869 if test "$INTEL_COMPILER" = yes
   23870 then
   23871 # The "-wdXXX" options suppress warnings:
   23872 # remark #1419: external declaration in primary source file
   23873 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
   23874 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
   23875 # remark #193: zero used for undefined preprocessing identifier
   23876 # remark #593: variable "curs_sb_left_arrow" was set but never used
   23877 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
   23878 # remark #869: parameter "tw" was never referenced
   23879 # remark #981: operands are evaluated in unspecified order
   23880 # warning #279: controlling expression is constant
   23881 
   23882 	{ echo "$as_me:23882: checking for $CC warning options..." >&5
   23883 echo "$as_me: checking for $CC warning options..." >&6;}
   23884 	cf_save_CFLAGS="$CFLAGS"
   23885 	EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
   23886 	for cf_opt in \
   23887 		wd1419 \
   23888 		wd1683 \
   23889 		wd1684 \
   23890 		wd193 \
   23891 		wd593 \
   23892 		wd279 \
   23893 		wd810 \
   23894 		wd869 \
   23895 		wd981
   23896 	do
   23897 		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
   23898 		if { (eval echo "$as_me:23898: \"$ac_compile\"") >&5
   23899   (eval $ac_compile) 2>&5
   23900   ac_status=$?
   23901   echo "$as_me:23901: \$? = $ac_status" >&5
   23902   (exit "$ac_status"); }; then
   23903 			test -n "$verbose" && echo "$as_me:23903: result: ... -$cf_opt" >&5
   23904 echo "${ECHO_T}... -$cf_opt" >&6
   23905 			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
   23906 		fi
   23907 	done
   23908 	CFLAGS="$cf_save_CFLAGS"
   23909 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
   23910 then
   23911 	{ echo "$as_me:23911: checking for $CC warning options..." >&5
   23912 echo "$as_me: checking for $CC warning options..." >&6;}
   23913 	cf_save_CFLAGS="$CFLAGS"
   23914 	cf_warn_CONST=""
   23915 	test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
   23916 	cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
   23917 	test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
   23918 	for cf_opt in W Wall \
   23919 		Wbad-function-cast \
   23920 		Wcast-align \
   23921 		Wcast-qual \
   23922 		Wdeclaration-after-statement \
   23923 		Wextra \
   23924 		Winline \
   23925 		Wmissing-declarations \
   23926 		Wmissing-prototypes \
   23927 		Wnested-externs \
   23928 		Wpointer-arith \
   23929 		Wshadow \
   23930 		Wstrict-prototypes \
   23931 		Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum Wno-cast-qual
   23932 	do
   23933 		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
   23934 		if { (eval echo "$as_me:23934: \"$ac_compile\"") >&5
   23935   (eval $ac_compile) 2>&5
   23936   ac_status=$?
   23937   echo "$as_me:23937: \$? = $ac_status" >&5
   23938   (exit "$ac_status"); }; then
   23939 			test -n "$verbose" && echo "$as_me:23939: result: ... -$cf_opt" >&5
   23940 echo "${ECHO_T}... -$cf_opt" >&6
   23941 			case "$cf_opt" in
   23942 			(Winline)
   23943 				case "$GCC_VERSION" in
   23944 				([34].*)
   23945 					test -n "$verbose" && echo "	feature is broken in gcc $GCC_VERSION" 1>&6
   23946 
   23947 echo "${as_me:-configure}:23947: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
   23948 
   23949 					continue;;
   23950 				esac
   23951 				;;
   23952 			(Wpointer-arith)
   23953 				case "$GCC_VERSION" in
   23954 				([12].*)
   23955 					test -n "$verbose" && echo "	feature is broken in gcc $GCC_VERSION" 1>&6
   23956 
   23957 echo "${as_me:-configure}:23957: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
   23958 
   23959 					continue;;
   23960 				esac
   23961 				;;
   23962 			esac
   23963 			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
   23964 		fi
   23965 	done
   23966 	CFLAGS="$cf_save_CFLAGS"
   23967 fi
   23968 rm -rf ./conftest*
   23969 
   23970 fi
   23971 
   23972 fi
   23973 
   23974 test "$disable_setuid" = yes &&
   23975 cat >>confdefs.h <<\EOF
   23976 #define DISABLE_SETUID 1
   23977 EOF
   23978 
   23979 test "$disable_setgid" = yes &&
   23980 cat >>confdefs.h <<\EOF
   23981 #define DISABLE_SETGID 1
   23982 EOF
   23983 
   23984 if test $disable_setuid = yes ; then
   23985 	MAY_SETUID="#"
   23986 	NOT_SETUID=
   23987 elif test $disable_setgid = yes ; then
   23988 	MAY_SETUID="#"
   23989 	NOT_SETUID=
   23990 else
   23991 	MAY_SETUID=
   23992 	NOT_SETUID="#"
   23993 fi
   23994 
   23995 ###	remove from CPPFLAGS the optional features we define in xtermcfg.h
   23996 ###	or other conflicting symbols that may be defined via imake:
   23997 for cf_def in \
   23998 	__STDC__ \
   23999 	ALLOWLOGGING \
   24000 	ALLOWLOGFILEEXEC \
   24001 	OPT_LUIT_PROG \
   24002 	OPT_WIDE_CHARS \
   24003 	SCROLLBAR_RIGHT \
   24004 	USE_TTY_GROUP \
   24005 	USE_UTEMPTER \
   24006 	XRENDERFONT
   24007 do
   24008 	CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-D$cf_def//`
   24009 done
   24010 
   24011 echo "$as_me:24011: checking if filesystem supports mixed-case filenames" >&5
   24012 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
   24013 if test "${cf_cv_mixedcase+set}" = set; then
   24014   echo $ECHO_N "(cached) $ECHO_C" >&6
   24015 else
   24016 
   24017 if test "$cross_compiling" = yes ; then
   24018 	case "$target_alias" in
   24019 	(*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
   24020 		cf_cv_mixedcase=no
   24021 		;;
   24022 	(*)
   24023 		cf_cv_mixedcase=yes
   24024 		;;
   24025 	esac
   24026 else
   24027 	rm -f conftest CONFTEST
   24028 	echo test >conftest
   24029 	if test -f CONFTEST ; then
   24030 		cf_cv_mixedcase=no
   24031 	else
   24032 		cf_cv_mixedcase=yes
   24033 	fi
   24034 	rm -f conftest CONFTEST
   24035 fi
   24036 
   24037 fi
   24038 echo "$as_me:24038: result: $cf_cv_mixedcase" >&5
   24039 echo "${ECHO_T}$cf_cv_mixedcase" >&6
   24040 test "$cf_cv_mixedcase" = yes &&
   24041 cat >>confdefs.h <<\EOF
   24042 #define MIXEDCASE_FILENAMES 1
   24043 EOF
   24044 
   24045 for ac_prog in exctags ctags
   24046 do
   24047   # Extract the first word of "$ac_prog", so it can be a program name with args.
   24048 set dummy $ac_prog; ac_word=$2
   24049 echo "$as_me:24049: checking for $ac_word" >&5
   24050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   24051 if test "${ac_cv_prog_CTAGS+set}" = set; then
   24052   echo $ECHO_N "(cached) $ECHO_C" >&6
   24053 else
   24054   if test -n "$CTAGS"; then
   24055   ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
   24056 else
   24057   ac_save_IFS=$IFS; IFS=$ac_path_separator
   24058 ac_dummy="$PATH"
   24059 for ac_dir in $ac_dummy; do
   24060   IFS=$ac_save_IFS
   24061   test -z "$ac_dir" && ac_dir=.
   24062   $as_executable_p "$ac_dir/$ac_word" || continue
   24063 ac_cv_prog_CTAGS="$ac_prog"
   24064 echo "$as_me:24064: found $ac_dir/$ac_word" >&5
   24065 break
   24066 done
   24067 
   24068 fi
   24069 fi
   24070 CTAGS=$ac_cv_prog_CTAGS
   24071 if test -n "$CTAGS"; then
   24072   echo "$as_me:24072: result: $CTAGS" >&5
   24073 echo "${ECHO_T}$CTAGS" >&6
   24074 else
   24075   echo "$as_me:24075: result: no" >&5
   24076 echo "${ECHO_T}no" >&6
   24077 fi
   24078 
   24079   test -n "$CTAGS" && break
   24080 done
   24081 
   24082 for ac_prog in exetags etags
   24083 do
   24084   # Extract the first word of "$ac_prog", so it can be a program name with args.
   24085 set dummy $ac_prog; ac_word=$2
   24086 echo "$as_me:24086: checking for $ac_word" >&5
   24087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   24088 if test "${ac_cv_prog_ETAGS+set}" = set; then
   24089   echo $ECHO_N "(cached) $ECHO_C" >&6
   24090 else
   24091   if test -n "$ETAGS"; then
   24092   ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
   24093 else
   24094   ac_save_IFS=$IFS; IFS=$ac_path_separator
   24095 ac_dummy="$PATH"
   24096 for ac_dir in $ac_dummy; do
   24097   IFS=$ac_save_IFS
   24098   test -z "$ac_dir" && ac_dir=.
   24099   $as_executable_p "$ac_dir/$ac_word" || continue
   24100 ac_cv_prog_ETAGS="$ac_prog"
   24101 echo "$as_me:24101: found $ac_dir/$ac_word" >&5
   24102 break
   24103 done
   24104 
   24105 fi
   24106 fi
   24107 ETAGS=$ac_cv_prog_ETAGS
   24108 if test -n "$ETAGS"; then
   24109   echo "$as_me:24109: result: $ETAGS" >&5
   24110 echo "${ECHO_T}$ETAGS" >&6
   24111 else
   24112   echo "$as_me:24112: result: no" >&5
   24113 echo "${ECHO_T}no" >&6
   24114 fi
   24115 
   24116   test -n "$ETAGS" && break
   24117 done
   24118 
   24119 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
   24120 set dummy ${CTAGS:-ctags}; ac_word=$2
   24121 echo "$as_me:24121: checking for $ac_word" >&5
   24122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   24123 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
   24124   echo $ECHO_N "(cached) $ECHO_C" >&6
   24125 else
   24126   if test -n "$MAKE_LOWER_TAGS"; then
   24127   ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
   24128 else
   24129   ac_save_IFS=$IFS; IFS=$ac_path_separator
   24130 ac_dummy="$PATH"
   24131 for ac_dir in $ac_dummy; do
   24132   IFS=$ac_save_IFS
   24133   test -z "$ac_dir" && ac_dir=.
   24134   $as_executable_p "$ac_dir/$ac_word" || continue
   24135 ac_cv_prog_MAKE_LOWER_TAGS="yes"
   24136 echo "$as_me:24136: found $ac_dir/$ac_word" >&5
   24137 break
   24138 done
   24139 
   24140   test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
   24141 fi
   24142 fi
   24143 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
   24144 if test -n "$MAKE_LOWER_TAGS"; then
   24145   echo "$as_me:24145: result: $MAKE_LOWER_TAGS" >&5
   24146 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
   24147 else
   24148   echo "$as_me:24148: result: no" >&5
   24149 echo "${ECHO_T}no" >&6
   24150 fi
   24151 
   24152 if test "$cf_cv_mixedcase" = yes ; then
   24153 	# Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
   24154 set dummy ${ETAGS:-etags}; ac_word=$2
   24155 echo "$as_me:24155: checking for $ac_word" >&5
   24156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   24157 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
   24158   echo $ECHO_N "(cached) $ECHO_C" >&6
   24159 else
   24160   if test -n "$MAKE_UPPER_TAGS"; then
   24161   ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
   24162 else
   24163   ac_save_IFS=$IFS; IFS=$ac_path_separator
   24164 ac_dummy="$PATH"
   24165 for ac_dir in $ac_dummy; do
   24166   IFS=$ac_save_IFS
   24167   test -z "$ac_dir" && ac_dir=.
   24168   $as_executable_p "$ac_dir/$ac_word" || continue
   24169 ac_cv_prog_MAKE_UPPER_TAGS="yes"
   24170 echo "$as_me:24170: found $ac_dir/$ac_word" >&5
   24171 break
   24172 done
   24173 
   24174   test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
   24175 fi
   24176 fi
   24177 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
   24178 if test -n "$MAKE_UPPER_TAGS"; then
   24179   echo "$as_me:24179: result: $MAKE_UPPER_TAGS" >&5
   24180 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
   24181 else
   24182   echo "$as_me:24182: result: no" >&5
   24183 echo "${ECHO_T}no" >&6
   24184 fi
   24185 
   24186 else
   24187 	MAKE_UPPER_TAGS=no
   24188 fi
   24189 
   24190 if test "$MAKE_UPPER_TAGS" = yes ; then
   24191 	MAKE_UPPER_TAGS=
   24192 else
   24193 	MAKE_UPPER_TAGS="#"
   24194 fi
   24195 
   24196 if test "$MAKE_LOWER_TAGS" = yes ; then
   24197 	MAKE_LOWER_TAGS=
   24198 else
   24199 	MAKE_LOWER_TAGS="#"
   24200 fi
   24201 
   24202 LD_RPATH_OPT=
   24203 if test "x$cf_cv_enable_rpath" != xno
   24204 then
   24205 	echo "$as_me:24205: checking for an rpath option" >&5
   24206 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
   24207 	case "$cf_cv_system_name" in
   24208 	(irix*)
   24209 		if test "$GCC" = yes; then
   24210 			LD_RPATH_OPT="-Wl,-rpath,"
   24211 		else
   24212 			LD_RPATH_OPT="-rpath "
   24213 		fi
   24214 		;;
   24215 	(linux*|gnu*|k*bsd*-gnu|freebsd*)
   24216 		LD_RPATH_OPT="-Wl,-rpath,"
   24217 		;;
   24218 	(openbsd[2-9].*|mirbsd*)
   24219 		LD_RPATH_OPT="-Wl,-rpath,"
   24220 		;;
   24221 	(dragonfly*)
   24222 		LD_RPATH_OPT="-rpath "
   24223 		;;
   24224 	(netbsd*)
   24225 		LD_RPATH_OPT="-Wl,-rpath,"
   24226 		;;
   24227 	(osf*|mls+*)
   24228 		LD_RPATH_OPT="-rpath "
   24229 		;;
   24230 	(solaris2*)
   24231 		LD_RPATH_OPT="-R"
   24232 		;;
   24233 	(*)
   24234 		;;
   24235 	esac
   24236 	echo "$as_me:24236: result: $LD_RPATH_OPT" >&5
   24237 echo "${ECHO_T}$LD_RPATH_OPT" >&6
   24238 
   24239 	case "x$LD_RPATH_OPT" in
   24240 	(x-R*)
   24241 		echo "$as_me:24241: checking if we need a space after rpath option" >&5
   24242 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
   24243 		cf_save_LIBS="$LIBS"
   24244 
   24245 cf_add_libs="$LIBS"
   24246 # reverse order
   24247 cf_add_0lib=
   24248 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
   24249 # filter duplicates
   24250 for cf_add_1lib in $cf_add_0lib; do
   24251 	for cf_add_2lib in $cf_add_libs; do
   24252 		if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
   24253 			cf_add_1lib=
   24254 			break
   24255 		fi
   24256 	done
   24257 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
   24258 done
   24259 LIBS="$cf_add_libs"
   24260 
   24261 		cat >"conftest.$ac_ext" <<_ACEOF
   24262 #line 24262 "configure"
   24263 #include "confdefs.h"
   24264 
   24265 int
   24266 main (void)
   24267 {
   24268 
   24269   ;
   24270   return 0;
   24271 }
   24272 _ACEOF
   24273 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   24274 if { (eval echo "$as_me:24274: \"$ac_link\"") >&5
   24275   (eval $ac_link) 2>&5
   24276   ac_status=$?
   24277   echo "$as_me:24277: \$? = $ac_status" >&5
   24278   (exit "$ac_status"); } &&
   24279          { ac_try='test -s "conftest$ac_exeext"'
   24280   { (eval echo "$as_me:24280: \"$ac_try\"") >&5
   24281   (eval $ac_try) 2>&5
   24282   ac_status=$?
   24283   echo "$as_me:24283: \$? = $ac_status" >&5
   24284   (exit "$ac_status"); }; }; then
   24285   cf_rpath_space=no
   24286 else
   24287   echo "$as_me: failed program was:" >&5
   24288 cat "conftest.$ac_ext" >&5
   24289 cf_rpath_space=yes
   24290 fi
   24291 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   24292 		LIBS="$cf_save_LIBS"
   24293 		echo "$as_me:24293: result: $cf_rpath_space" >&5
   24294 echo "${ECHO_T}$cf_rpath_space" >&6
   24295 		test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
   24296 		;;
   24297 	esac
   24298 fi
   24299 
   24300 echo "$as_me:24300: checking if rpath-hack should be disabled" >&5
   24301 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
   24302 
   24303 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
   24304 if test "${enable_rpath_hack+set}" = set; then
   24305   enableval="$enable_rpath_hack"
   24306   test "$enableval" != no && enableval=yes
   24307 	if test "$enableval" != "yes" ; then
   24308     enable_rpath_hack=no
   24309 	else
   24310 		enable_rpath_hack=yes
   24311 	fi
   24312 else
   24313   enableval=yes
   24314 	enable_rpath_hack=yes
   24315 
   24316 fi;
   24317 if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi
   24318 echo "$as_me:24318: result: $cf_disable_rpath_hack" >&5
   24319 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
   24320 
   24321 if test "$enable_rpath_hack" = yes ; then
   24322 
   24323 echo "$as_me:24323: checking for updated LDFLAGS" >&5
   24324 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
   24325 if test -n "$LD_RPATH_OPT" ; then
   24326 	echo "$as_me:24326: result: maybe" >&5
   24327 echo "${ECHO_T}maybe" >&6
   24328 
   24329 	for ac_prog in ldd
   24330 do
   24331   # Extract the first word of "$ac_prog", so it can be a program name with args.
   24332 set dummy $ac_prog; ac_word=$2
   24333 echo "$as_me:24333: checking for $ac_word" >&5
   24334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   24335 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
   24336   echo $ECHO_N "(cached) $ECHO_C" >&6
   24337 else
   24338   if test -n "$cf_ldd_prog"; then
   24339   ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
   24340 else
   24341   ac_save_IFS=$IFS; IFS=$ac_path_separator
   24342 ac_dummy="$PATH"
   24343 for ac_dir in $ac_dummy; do
   24344   IFS=$ac_save_IFS
   24345   test -z "$ac_dir" && ac_dir=.
   24346   $as_executable_p "$ac_dir/$ac_word" || continue
   24347 ac_cv_prog_cf_ldd_prog="$ac_prog"
   24348 echo "$as_me:24348: found $ac_dir/$ac_word" >&5
   24349 break
   24350 done
   24351 
   24352 fi
   24353 fi
   24354 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
   24355 if test -n "$cf_ldd_prog"; then
   24356   echo "$as_me:24356: result: $cf_ldd_prog" >&5
   24357 echo "${ECHO_T}$cf_ldd_prog" >&6
   24358 else
   24359   echo "$as_me:24359: result: no" >&5
   24360 echo "${ECHO_T}no" >&6
   24361 fi
   24362 
   24363   test -n "$cf_ldd_prog" && break
   24364 done
   24365 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
   24366 
   24367 	cf_rpath_list="/usr/lib /lib"
   24368 	if test "$cf_ldd_prog" != no
   24369 	then
   24370 		cf_rpath_oops=
   24371 
   24372 cat >"conftest.$ac_ext" <<_ACEOF
   24373 #line 24373 "configure"
   24374 #include "confdefs.h"
   24375 #include <stdio.h>
   24376 int
   24377 main (void)
   24378 {
   24379 printf("Hello");
   24380   ;
   24381   return 0;
   24382 }
   24383 _ACEOF
   24384 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
   24385 if { (eval echo "$as_me:24385: \"$ac_link\"") >&5
   24386   (eval $ac_link) 2>&5
   24387   ac_status=$?
   24388   echo "$as_me:24388: \$? = $ac_status" >&5
   24389   (exit "$ac_status"); } &&
   24390          { ac_try='test -s "conftest$ac_exeext"'
   24391   { (eval echo "$as_me:24391: \"$ac_try\"") >&5
   24392   (eval $ac_try) 2>&5
   24393   ac_status=$?
   24394   echo "$as_me:24394: \$? = $ac_status" >&5
   24395   (exit "$ac_status"); }; }; then
   24396   cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
   24397 		 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ 	]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
   24398 else
   24399   echo "$as_me: failed program was:" >&5
   24400 cat "conftest.$ac_ext" >&5
   24401 fi
   24402 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
   24403 
   24404 		# If we passed the link-test, but get a "not found" on a given library,
   24405 		# this could be due to inept reconfiguration of gcc to make it only
   24406 		# partly honor /usr/local/lib (or whatever).  Sometimes this behavior
   24407 		# is intentional, e.g., installing gcc in /usr/bin and suppressing the
   24408 		# /usr/local libraries.
   24409 		if test -n "$cf_rpath_oops"
   24410 		then
   24411 			for cf_rpath_src in $cf_rpath_oops
   24412 			do
   24413 				for cf_rpath_dir in \
   24414 					/usr/local \
   24415 					/usr/pkg \
   24416 					/opt/sfw
   24417 				do
   24418 					if test -f "$cf_rpath_dir/lib/$cf_rpath_src"
   24419 					then
   24420 						test -n "$verbose" && echo "	...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
   24421 
   24422 echo "${as_me:-configure}:24422: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
   24423 
   24424 						LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
   24425 						break
   24426 					fi
   24427 				done
   24428 			done
   24429 		fi
   24430 	fi
   24431 
   24432 	test -n "$verbose" && echo "	...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
   24433 
   24434 echo "${as_me:-configure}:24434: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
   24435 
   24436 test -n "$verbose" && echo "	...checking LDFLAGS $LDFLAGS" 1>&6
   24437 
   24438 echo "${as_me:-configure}:24438: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
   24439 
   24440 cf_rpath_dst=
   24441 for cf_rpath_src in $LDFLAGS
   24442 do
   24443 	case "$cf_rpath_src" in
   24444 	(-L*)
   24445 
   24446 		# check if this refers to a directory which we will ignore
   24447 		cf_rpath_skip=no
   24448 		if test -n "$cf_rpath_list"
   24449 		then
   24450 			for cf_rpath_item in $cf_rpath_list
   24451 			do
   24452 				if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
   24453 				then
   24454 					cf_rpath_skip=yes
   24455 					break
   24456 				fi
   24457 			done
   24458 		fi
   24459 
   24460 		if test "$cf_rpath_skip" = no
   24461 		then
   24462 			# transform the option
   24463 			if test "$LD_RPATH_OPT" = "-R " ; then
   24464 				cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
   24465 			else
   24466 				cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
   24467 			fi
   24468 
   24469 			# if we have not already added this, add it now
   24470 			cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
   24471 			if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
   24472 			then
   24473 				test -n "$verbose" && echo "	...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
   24474 
   24475 echo "${as_me:-configure}:24475: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
   24476 
   24477 				EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
   24478 			fi
   24479 		fi
   24480 		;;
   24481 	esac
   24482 	cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
   24483 done
   24484 LDFLAGS=$cf_rpath_dst
   24485 
   24486 test -n "$verbose" && echo "	...checked LDFLAGS $LDFLAGS" 1>&6
   24487 
   24488 echo "${as_me:-configure}:24488: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
   24489 
   24490 test -n "$verbose" && echo "	...checking LIBS $LIBS" 1>&6
   24491 
   24492 echo "${as_me:-configure}:24492: testing ...checking LIBS $LIBS ..." 1>&5
   24493 
   24494 cf_rpath_dst=
   24495 for cf_rpath_src in $LIBS
   24496 do
   24497 	case "$cf_rpath_src" in
   24498 	(-L*)
   24499 
   24500 		# check if this refers to a directory which we will ignore
   24501 		cf_rpath_skip=no
   24502 		if test -n "$cf_rpath_list"
   24503 		then
   24504 			for cf_rpath_item in $cf_rpath_list
   24505 			do
   24506 				if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
   24507 				then
   24508 					cf_rpath_skip=yes
   24509 					break
   24510 				fi
   24511 			done
   24512 		fi
   24513 
   24514 		if test "$cf_rpath_skip" = no
   24515 		then
   24516 			# transform the option
   24517 			if test "$LD_RPATH_OPT" = "-R " ; then
   24518 				cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
   24519 			else
   24520 				cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
   24521 			fi
   24522 
   24523 			# if we have not already added this, add it now
   24524 			cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
   24525 			if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
   24526 			then
   24527 				test -n "$verbose" && echo "	...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
   24528 
   24529 echo "${as_me:-configure}:24529: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
   24530 
   24531 				EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
   24532 			fi
   24533 		fi
   24534 		;;
   24535 	esac
   24536 	cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
   24537 done
   24538 LIBS=$cf_rpath_dst
   24539 
   24540 test -n "$verbose" && echo "	...checked LIBS $LIBS" 1>&6
   24541 
   24542 echo "${as_me:-configure}:24542: testing ...checked LIBS $LIBS ..." 1>&5
   24543 
   24544 	test -n "$verbose" && echo "	...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
   24545 
   24546 echo "${as_me:-configure}:24546: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
   24547 
   24548 else
   24549 	echo "$as_me:24549: result: no" >&5
   24550 echo "${ECHO_T}no" >&6
   24551 fi
   24552 
   24553 fi
   24554 
   24555 # Force plink.sh to not trim pcre's libraries, which have the same symbol
   24556 # names as the system regexp.
   24557 if test "$with_pcre" != no
   24558 then
   24559 	LIBS=`echo "$LIBS" | sed -e 's/-lpcre/-kpcre/g'`
   24560 fi
   24561 
   24562 ###	output xtermcfg.h, etc
   24563 ac_config_files="$ac_config_files Makefile df-install minstall:minstall.in"
   24564 
   24565 cat >confcache <<\_ACEOF
   24566 # This file is a shell script that caches the results of configure
   24567 # tests run on this system so they can be shared between configure
   24568 # scripts and configure runs, see configure's option --config-cache.
   24569 # It is not useful on other systems.  If it contains results you don't
   24570 # want to keep, you may remove or edit it.
   24571 #
   24572 # config.status only pays attention to the cache file if you give it
   24573 # the --recheck option to rerun configure.
   24574 #
   24575 # `ac_cv_env_foo' variables (set or unset) will be overriden when
   24576 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   24577 # following values.
   24578 
   24579 _ACEOF
   24580 
   24581 # The following way of writing the cache mishandles newlines in values,
   24582 # but we know of no workaround that is simple, portable, and efficient.
   24583 # So, don't put newlines in cache variables' values.
   24584 # Ultrix sh set writes to stderr and can't be redirected directly,
   24585 # and sets the high bit in the cache file unless we assign to the vars.
   24586 {
   24587   (set) 2>&1 |
   24588     case `(ac_space=' '; set | grep ac_space) 2>&1` in
   24589     *ac_space=\ *)
   24590       # `set' does not quote correctly, so add quotes (double-quote
   24591       # substitution turns \\\\ into \\, and sed turns \\ into \).
   24592       sed -n \
   24593         "s/'/'\\\\''/g;
   24594     	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   24595       ;;
   24596     *)
   24597       # `set' quotes correctly as required by POSIX, so do not add quotes.
   24598       sed -n \
   24599         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
   24600       ;;
   24601     esac;
   24602 } |
   24603   sed '
   24604      t clear
   24605      : clear
   24606      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   24607      t end
   24608      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   24609      : end' >>confcache
   24610 if cmp -s $cache_file confcache; then :; else
   24611   if test -w $cache_file; then
   24612     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
   24613     cat confcache >$cache_file
   24614   else
   24615     echo "not updating unwritable cache $cache_file"
   24616   fi
   24617 fi
   24618 rm -f confcache
   24619 
   24620 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   24621 # Let make expand exec_prefix.
   24622 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   24623 
   24624 # VPATH may cause trouble with some makes, so we remove $(srcdir),
   24625 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   24626 # trailing colons and then remove the whole line if VPATH becomes empty
   24627 # (actually we leave an empty line to preserve line numbers).
   24628 if test "x$srcdir" = x.; then
   24629   ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
   24630 s/:*\$(srcdir):*/:/;
   24631 s/:*\${srcdir}:*/:/;
   24632 s/:*@srcdir@:*/:/;
   24633 s/^\([^=]*=[ 	]*\):*/\1/;
   24634 s/:*$//;
   24635 s/^[^=]*=[ 	]*$//;
   24636 }'
   24637 fi
   24638 
   24639 DEFS=-DHAVE_CONFIG_H
   24640 
   24641 : "${CONFIG_STATUS=./config.status}"
   24642 ac_clean_files_save=$ac_clean_files
   24643 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   24644 { echo "$as_me:24644: creating $CONFIG_STATUS" >&5
   24645 echo "$as_me: creating $CONFIG_STATUS" >&6;}
   24646 cat >"$CONFIG_STATUS" <<_ACEOF
   24647 #! $SHELL
   24648 # Generated automatically by configure.
   24649 # Run this file to recreate the current configuration.
   24650 # Compiler output produced by configure, useful for debugging
   24651 # configure, is in config.log if it exists.
   24652 
   24653 debug=false
   24654 SHELL=\${CONFIG_SHELL-$SHELL}
   24655 ac_cs_invocation="\$0 \$@"
   24656 
   24657 CLICOLOR_FORCE= GREP_OPTIONS=
   24658 unset CLICOLOR_FORCE GREP_OPTIONS
   24659 _ACEOF
   24660 
   24661 cat >>"$CONFIG_STATUS" <<\_ACEOF
   24662 # Be Bourne compatible
   24663 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   24664   emulate sh
   24665   NULLCMD=:
   24666 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
   24667   set -o posix
   24668 fi
   24669 
   24670 # Name of the executable.
   24671 as_me=`echo "$0" |sed 's,.*[\\/],,'`
   24672 
   24673 if expr a : '\(a\)' >/dev/null 2>&1; then
   24674   as_expr=expr
   24675 else
   24676   as_expr=false
   24677 fi
   24678 
   24679 rm -f conf$$ conf$$.exe conf$$.file
   24680 echo >conf$$.file
   24681 if ln -s conf$$.file conf$$ 2>/dev/null; then
   24682   # We could just check for DJGPP; but this test a) works b) is more generic
   24683   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
   24684   if test -f conf$$.exe; then
   24685     # Don't use ln at all; we don't have any links
   24686     as_ln_s='cp -p'
   24687   else
   24688     as_ln_s='ln -s'
   24689   fi
   24690 elif ln conf$$.file conf$$ 2>/dev/null; then
   24691   as_ln_s=ln
   24692 else
   24693   as_ln_s='cp -p'
   24694 fi
   24695 rm -f conf$$ conf$$.exe conf$$.file
   24696 
   24697 as_executable_p="test -f"
   24698 
   24699 # Support unset when possible.
   24700 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
   24701   as_unset="unset"
   24702 else
   24703   as_unset="false"
   24704 fi
   24705 
   24706 # NLS nuisances.
   24707 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
   24708 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
   24709 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
   24710 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
   24711 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
   24712 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
   24713 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
   24714 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
   24715 
   24716 # IFS
   24717 # We need space, tab and new line, in precisely that order.
   24718 as_nl='
   24719 '
   24720 IFS=" 	$as_nl"
   24721 
   24722 # CDPATH.
   24723 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
   24724 
   24725 exec 6>&1
   24726 
   24727 _ACEOF
   24728 
   24729 # Files that config.status was made for.
   24730 if test -n "$ac_config_files"; then
   24731   echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS"
   24732 fi
   24733 
   24734 if test -n "$ac_config_headers"; then
   24735   echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS"
   24736 fi
   24737 
   24738 if test -n "$ac_config_links"; then
   24739   echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS"
   24740 fi
   24741 
   24742 if test -n "$ac_config_commands"; then
   24743   echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS"
   24744 fi
   24745 
   24746 cat >>"$CONFIG_STATUS" <<\EOF
   24747 
   24748 ac_cs_usage="\
   24749 \`$as_me' instantiates files from templates according to the
   24750 current configuration.
   24751 
   24752 Usage: $0 [OPTIONS] [FILE]...
   24753 
   24754   -h, --help       print this help, then exit
   24755   -V, --version    print version number, then exit
   24756   -d, --debug      don't remove temporary files
   24757       --recheck    update $as_me by reconfiguring in the same conditions
   24758   --file=FILE[:TEMPLATE]
   24759                    instantiate the configuration file FILE
   24760   --header=FILE[:TEMPLATE]
   24761                    instantiate the configuration header FILE
   24762 
   24763 Configuration files:
   24764 $config_files
   24765 
   24766 Configuration headers:
   24767 $config_headers
   24768 
   24769 Report bugs to <dickey@invisible-island.net>."
   24770 EOF
   24771 
   24772 cat >>"$CONFIG_STATUS" <<EOF
   24773 ac_cs_version="\\
   24774 config.status
   24775 configured by $0, generated by GNU Autoconf 2.52.20210509,
   24776   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
   24777 
   24778 Copyright 2003-2020,2021	Thomas E. Dickey
   24779 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
   24780 Free Software Foundation, Inc.
   24781 This config.status script is free software; the Free Software Foundation
   24782 gives unlimited permission to copy, distribute and modify it."
   24783 srcdir="$srcdir"
   24784 INSTALL="$INSTALL"
   24785 EOF
   24786 
   24787 cat >>"$CONFIG_STATUS" <<\EOF
   24788 # If no file are specified by the user, then we need to provide default
   24789 # value.  By we need to know if files were specified by the user.
   24790 ac_need_defaults=:
   24791 while test $# != 0
   24792 do
   24793   case $1 in
   24794   --*=*)
   24795     ac_option=`expr "x$1" : 'x\([^=]*\)='`
   24796     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
   24797     shift
   24798     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
   24799     shift
   24800     ;;
   24801   -*);;
   24802   *) # This is not an option, so the user has probably given explicit
   24803      # arguments.
   24804      ac_need_defaults=false;;
   24805   esac
   24806 
   24807   case $1 in
   24808   # Handling of the options.
   24809 EOF
   24810 cat >>"$CONFIG_STATUS" <<EOF
   24811   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   24812     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
   24813     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
   24814 EOF
   24815 cat >>"$CONFIG_STATUS" <<\EOF
   24816   --version | --vers* | -V )
   24817     echo "$ac_cs_version"; exit 0 ;;
   24818   --he | --h)
   24819     # Conflict between --help and --header
   24820     { { echo "$as_me:24820: error: ambiguous option: $1
   24821 Try \`$0 --help' for more information." >&5
   24822 echo "$as_me: error: ambiguous option: $1
   24823 Try \`$0 --help' for more information." >&2;}
   24824    { (exit 1); exit 1; }; };;
   24825   --help | --hel | -h )
   24826     echo "$ac_cs_usage"; exit 0 ;;
   24827   --debug | --d* | -d )
   24828     debug=: ;;
   24829   --file | --fil | --fi | --f )
   24830     shift
   24831     CONFIG_FILES="$CONFIG_FILES $1"
   24832     ac_need_defaults=false;;
   24833   --header | --heade | --head | --hea )
   24834     shift
   24835     CONFIG_HEADERS="$CONFIG_HEADERS $1"
   24836     ac_need_defaults=false;;
   24837 
   24838   # This is an error.
   24839   -*) { { echo "$as_me:24839: error: unrecognized option: $1
   24840 Try \`$0 --help' for more information." >&5
   24841 echo "$as_me: error: unrecognized option: $1
   24842 Try \`$0 --help' for more information." >&2;}
   24843    { (exit 1); exit 1; }; } ;;
   24844 
   24845   *) ac_config_targets="$ac_config_targets $1" ;;
   24846 
   24847   esac
   24848   shift
   24849 done
   24850 
   24851 exec 5>>config.log
   24852 cat >&5 << _ACEOF
   24853 
   24854 ## ----------------------- ##
   24855 ## Running config.status.  ##
   24856 ## ----------------------- ##
   24857 
   24858 This file was extended by $as_me 2.52.20210509, executed with
   24859   CONFIG_FILES    = $CONFIG_FILES
   24860   CONFIG_HEADERS  = $CONFIG_HEADERS
   24861   CONFIG_LINKS    = $CONFIG_LINKS
   24862   CONFIG_COMMANDS = $CONFIG_COMMANDS
   24863   > "$ac_cs_invocation"
   24864 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   24865 
   24866 _ACEOF
   24867 EOF
   24868 
   24869 cat >>"$CONFIG_STATUS" <<\EOF
   24870 for ac_config_target in $ac_config_targets
   24871 do
   24872   case "$ac_config_target" in
   24873   # Handling of arguments.
   24874   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   24875   "df-install" ) CONFIG_FILES="$CONFIG_FILES df-install" ;;
   24876   "minstall" ) CONFIG_FILES="$CONFIG_FILES minstall:minstall.in" ;;
   24877   "xtermcfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xtermcfg.h:xtermcfg.hin" ;;
   24878   *) { { echo "$as_me:24878: error: invalid argument: $ac_config_target" >&5
   24879 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   24880    { (exit 1); exit 1; }; };;
   24881   esac
   24882 done
   24883 
   24884 # If the user did not use the arguments to specify the items to instantiate,
   24885 # then the envvar interface is used.  Set only those that are not.
   24886 # We use the long form for the default assignment because of an extremely
   24887 # bizarre bug on SunOS 4.1.3.
   24888 if "$ac_need_defaults"; then
   24889   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   24890   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   24891 fi
   24892 
   24893 # Create a temporary directory, and hook for its removal unless debugging.
   24894 $debug ||
   24895 {
   24896   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
   24897   trap '{ (exit 1); exit 1; }' 1 2 13 15
   24898 }
   24899 
   24900 # Create a (secure) tmp directory for tmp files.
   24901 : ${TMPDIR=/tmp}
   24902 {
   24903   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
   24904   test -n "$tmp" && test -d "$tmp"
   24905 }  ||
   24906 {
   24907   tmp=$TMPDIR/cs$$-$RANDOM
   24908   (umask 077 && mkdir $tmp)
   24909 } ||
   24910 {
   24911    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   24912    { (exit 1); exit 1; }
   24913 }
   24914 
   24915 EOF
   24916 
   24917 cat >>"$CONFIG_STATUS" <<EOF
   24918 
   24919 #
   24920 # CONFIG_FILES section.
   24921 #
   24922 
   24923 # No need to generate the scripts if there are no CONFIG_FILES.
   24924 # This happens for instance when ./config.status config.h
   24925 if test -n "\$CONFIG_FILES"; then
   24926   # Protect against being on the right side of a sed subst in config.status.
   24927   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
   24928    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
   24929 s,@SHELL@,$SHELL,;t t
   24930 s,@exec_prefix@,$exec_prefix,;t t
   24931 s,@prefix@,$prefix,;t t
   24932 s,@program_transform_name@,$program_transform_name,;t t
   24933 s,@bindir@,$bindir,;t t
   24934 s,@sbindir@,$sbindir,;t t
   24935 s,@libexecdir@,$libexecdir,;t t
   24936 s,@datarootdir@,$datarootdir,;t t
   24937 s,@datadir@,$datadir,;t t
   24938 s,@sysconfdir@,$sysconfdir,;t t
   24939 s,@sharedstatedir@,$sharedstatedir,;t t
   24940 s,@localstatedir@,$localstatedir,;t t
   24941 s,@runstatedir@,$runstatedir,;t t
   24942 s,@libdir@,$libdir,;t t
   24943 s,@includedir@,$includedir,;t t
   24944 s,@oldincludedir@,$oldincludedir,;t t
   24945 s,@infodir@,$infodir,;t t
   24946 s,@mandir@,$mandir,;t t
   24947 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
   24948 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
   24949 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
   24950 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
   24951 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
   24952 s,@build_alias@,$build_alias,;t t
   24953 s,@host_alias@,$host_alias,;t t
   24954 s,@target_alias@,$target_alias,;t t
   24955 s,@ECHO_C@,$ECHO_C,;t t
   24956 s,@ECHO_N@,$ECHO_N,;t t
   24957 s,@ECHO_T@,$ECHO_T,;t t
   24958 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
   24959 s,@DEFS@,$DEFS,;t t
   24960 s,@LIBS@,$LIBS,;t t
   24961 s,@build@,$build,;t t
   24962 s,@build_cpu@,$build_cpu,;t t
   24963 s,@build_vendor@,$build_vendor,;t t
   24964 s,@build_os@,$build_os,;t t
   24965 s,@host@,$host,;t t
   24966 s,@host_cpu@,$host_cpu,;t t
   24967 s,@host_vendor@,$host_vendor,;t t
   24968 s,@host_os@,$host_os,;t t
   24969 s,@CC@,$CC,;t t
   24970 s,@CFLAGS@,$CFLAGS,;t t
   24971 s,@LDFLAGS@,$LDFLAGS,;t t
   24972 s,@CPPFLAGS@,$CPPFLAGS,;t t
   24973 s,@ac_ct_CC@,$ac_ct_CC,;t t
   24974 s,@EXEEXT@,$EXEEXT,;t t
   24975 s,@OBJEXT@,$OBJEXT,;t t
   24976 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
   24977 s,@CPP@,$CPP,;t t
   24978 s,@GREP@,$GREP,;t t
   24979 s,@EGREP@,$EGREP,;t t
   24980 s,@AWK@,$AWK,;t t
   24981 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
   24982 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
   24983 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
   24984 s,@LN_S@,$LN_S,;t t
   24985 s,@LINT@,$LINT,;t t
   24986 s,@LINT_OPTS@,$LINT_OPTS,;t t
   24987 s,@APP_CLASS@,$APP_CLASS,;t t
   24988 s,@APPSDIR@,$APPSDIR,;t t
   24989 s,@no_appsdir@,$no_appsdir,;t t
   24990 s,@ICON_NAME@,$ICON_NAME,;t t
   24991 s,@ICON_SYMLINK@,$ICON_SYMLINK,;t t
   24992 s,@PIXMAPDIR@,$PIXMAPDIR,;t t
   24993 s,@no_pixmapdir@,$no_pixmapdir,;t t
   24994 s,@ICONDIR@,$ICONDIR,;t t
   24995 s,@no_icondir@,$no_icondir,;t t
   24996 s,@ICON_FORMAT@,$ICON_FORMAT,;t t
   24997 s,@ICON_THEME@,$ICON_THEME,;t t
   24998 s,@ICON_LIST@,$ICON_LIST,;t t
   24999 s,@desktop_utils@,$desktop_utils,;t t
   25000 s,@DESKTOP_FLAGS@,$DESKTOP_FLAGS,;t t
   25001 s,@DESKTOP_CATEGORY@,$DESKTOP_CATEGORY,;t t
   25002 s,@XTERM_PATH@,$XTERM_PATH,;t t
   25003 s,@XTERM_SYMLINK@,$XTERM_SYMLINK,;t t
   25004 s,@SINSTALL_OPTS@,$SINSTALL_OPTS,;t t
   25005 s,@X_CFLAGS@,$X_CFLAGS,;t t
   25006 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
   25007 s,@X_LIBS@,$X_LIBS,;t t
   25008 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
   25009 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
   25010 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
   25011 s,@ICON_SUFFIX@,$ICON_SUFFIX,;t t
   25012 s,@IMAKE@,$IMAKE,;t t
   25013 s,@IMAKE_CFLAGS@,$IMAKE_CFLAGS,;t t
   25014 s,@IMAKE_LOADFLAGS@,$IMAKE_LOADFLAGS,;t t
   25015 s,@GROFF_PATH@,$GROFF_PATH,;t t
   25016 s,@NROFF_PATH@,$NROFF_PATH,;t t
   25017 s,@TBL_PATH@,$TBL_PATH,;t t
   25018 s,@GROFF_NOTE@,$GROFF_NOTE,;t t
   25019 s,@NROFF_NOTE@,$NROFF_NOTE,;t t
   25020 s,@FGREP@,$FGREP,;t t
   25021 s,@cf_man2html@,$cf_man2html,;t t
   25022 s,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t
   25023 s,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t
   25024 s,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t
   25025 s,@default_termid@,$default_termid,;t t
   25026 s,@default_TERM@,$default_TERM,;t t
   25027 s,@backarrow_is_bs@,$backarrow_is_bs,;t t
   25028 s,@backarrow_is_erase@,$backarrow_is_erase,;t t
   25029 s,@delete_is_del@,$delete_is_del,;t t
   25030 s,@initial_erase@,$initial_erase,;t t
   25031 s,@alt_sends_esc@,$alt_sends_esc,;t t
   25032 s,@meta_sends_esc@,$meta_sends_esc,;t t
   25033 s,@cf_tic_prog@,$cf_tic_prog,;t t
   25034 s,@no_ticprog@,$no_ticprog,;t t
   25035 s,@TERMINFO_DIR@,$TERMINFO_DIR,;t t
   25036 s,@SET_TERMINFO@,$SET_TERMINFO,;t t
   25037 s,@double_buffer@,$double_buffer,;t t
   25038 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
   25039 s,@FREETYPE_OLD_CONFIG@,$FREETYPE_OLD_CONFIG,;t t
   25040 s,@FREETYPE_XFT_CONFIG@,$FREETYPE_XFT_CONFIG,;t t
   25041 s,@HAVE_TYPE_FCCHAR32@,$HAVE_TYPE_FCCHAR32,;t t
   25042 s,@HAVE_TYPE_XFTCHARSPEC@,$HAVE_TYPE_XFTCHARSPEC,;t t
   25043 s,@LUIT@,$LUIT,;t t
   25044 s,@ECHO_LT@,$ECHO_LT,;t t
   25045 s,@ECHO_LD@,$ECHO_LD,;t t
   25046 s,@RULE_CC@,$RULE_CC,;t t
   25047 s,@SHOW_CC@,$SHOW_CC,;t t
   25048 s,@ECHO_CC@,$ECHO_CC,;t t
   25049 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
   25050 s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t
   25051 s,@STDC_NORETURN@,$STDC_NORETURN,;t t
   25052 s,@CHARPROC_DEPS@,$CHARPROC_DEPS,;t t
   25053 s,@EXTRAHDRS@,$EXTRAHDRS,;t t
   25054 s,@EXTRASRCS@,$EXTRASRCS,;t t
   25055 s,@EXTRAOBJS@,$EXTRAOBJS,;t t
   25056 s,@MAY_SETUID@,$MAY_SETUID,;t t
   25057 s,@NOT_SETUID@,$NOT_SETUID,;t t
   25058 s,@CTAGS@,$CTAGS,;t t
   25059 s,@ETAGS@,$ETAGS,;t t
   25060 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
   25061 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
   25062 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
   25063 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
   25064 CEOF
   25065 
   25066 EOF
   25067 
   25068   cat >>"$CONFIG_STATUS" <<\EOF
   25069   # Split the substitutions into bite-sized pieces for seds with
   25070   # small command number limits, like on Digital OSF/1 and HP-UX.
   25071   ac_max_sed_lines=48
   25072   ac_sed_frag=1 # Number of current file.
   25073   ac_beg=1 # First line for current file.
   25074   ac_end=$ac_max_sed_lines # Line after last line for current file.
   25075   ac_more_lines=:
   25076   ac_sed_cmds=
   25077   while "$ac_more_lines"; do
   25078     if test "$ac_beg" -gt 1; then
   25079       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   25080     else
   25081       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   25082     fi
   25083     if test ! -s $tmp/subs.frag; then
   25084       ac_more_lines=false
   25085     else
   25086       # The purpose of the label and of the branching condition is to
   25087       # speed up the sed processing (if there are no `@' at all, there
   25088       # is no need to browse any of the substitutions).
   25089       # These are the two extra sed commands mentioned above.
   25090       (echo ':t
   25091   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
   25092       # It is possible to make a multiline substitution using escaped newlines.
   25093       # Ensure that we do not split the substitution between script fragments.
   25094       ac_BEG=$ac_end
   25095       ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
   25096       sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
   25097       if test -s $tmp/subs.next; then
   25098         grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
   25099         if test ! -s $tmp/subs.edit; then
   25100           grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
   25101           if test ! -s $tmp/subs.edit; then
   25102             if test "$ac_beg" -gt 1; then
   25103               ac_end=`expr "$ac_end" - 1`
   25104               continue
   25105             fi
   25106           fi
   25107         fi
   25108       fi
   25109 
   25110       if test -z "$ac_sed_cmds"; then
   25111         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
   25112       else
   25113         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
   25114       fi
   25115       ac_sed_frag=`expr "$ac_sed_frag" + 1`
   25116       ac_beg=$ac_end
   25117       ac_end=`expr "$ac_end" + "$ac_max_sed_lines"`
   25118     fi
   25119   done
   25120   if test -z "$ac_sed_cmds"; then
   25121     ac_sed_cmds=cat
   25122   fi
   25123 fi # test -n "$CONFIG_FILES"
   25124 
   25125 EOF
   25126 cat >>"$CONFIG_STATUS" <<\EOF
   25127 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
   25128   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   25129   case "$ac_file" in
   25130   - | *:- | *:-:* ) # input from stdin
   25131         cat >$tmp/stdin
   25132         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   25133         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   25134   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   25135         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   25136   * )   ac_file_in=$ac_file.in ;;
   25137   esac
   25138 
   25139   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
   25140   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   25141          X"$ac_file" : 'X\(//\)[^/]' \| \
   25142          X"$ac_file" : 'X\(//\)$' \| \
   25143          X"$ac_file" : 'X\(/\)' \| \
   25144          .     : '\(.\)' 2>/dev/null ||
   25145 echo X"$ac_file" |
   25146     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   25147   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   25148   	  /^X\(\/\/\)$/{ s//\1/; q; }
   25149   	  /^X\(\/\).*/{ s//\1/; q; }
   25150   	  s/.*/./; q'`
   25151   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
   25152     { case "$ac_dir" in
   25153   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
   25154   *)                      as_incr_dir=.;;
   25155 esac
   25156 as_dummy="$ac_dir"
   25157 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
   25158   case $as_mkdir_dir in
   25159     # Skip DOS drivespec
   25160     ?:) as_incr_dir=$as_mkdir_dir ;;
   25161     *)
   25162       as_incr_dir=$as_incr_dir/$as_mkdir_dir
   25163       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
   25164     ;;
   25165   esac
   25166 done; }
   25167 
   25168     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
   25169     # A "../" for each directory in $ac_dir_suffix.
   25170     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
   25171   else
   25172     ac_dir_suffix= ac_dots=
   25173   fi
   25174 
   25175   case "$srcdir" in
   25176   .)  ac_srcdir=.
   25177       if test -z "$ac_dots"; then
   25178          ac_top_srcdir=.
   25179       else
   25180          ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'`
   25181       fi ;;
   25182   [\\/]* | ?:[\\/]* )
   25183       ac_srcdir="$srcdir$ac_dir_suffix";
   25184       ac_top_srcdir="$srcdir" ;;
   25185   *) # Relative path.
   25186     ac_srcdir="$ac_dots$srcdir$ac_dir_suffix"
   25187     ac_top_srcdir="$ac_dots$srcdir" ;;
   25188   esac
   25189 
   25190   case $INSTALL in
   25191   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   25192   *) ac_INSTALL=$ac_dots$INSTALL ;;
   25193   esac
   25194 
   25195   if test x"$ac_file" != x-; then
   25196     { echo "$as_me:25196: creating $ac_file" >&5
   25197 echo "$as_me: creating $ac_file" >&6;}
   25198     rm -f "$ac_file"
   25199   fi
   25200   # Let's still pretend it is `configure' which instantiates (i.e., don't
   25201   # use $as_me), people would be surprised to read:
   25202   #    /* config.h.  Generated automatically by config.status.  */
   25203   configure_input="Generated automatically from `echo $ac_file_in |
   25204                                                  sed 's,.*/,,'` by configure."
   25205 
   25206   # First look for the input files in the build tree, otherwise in the
   25207   # src tree.
   25208   ac_file_inputs=`IFS=:
   25209     for f in $ac_file_in; do
   25210       case $f in
   25211       -) echo $tmp/stdin ;;
   25212       [\\/$]*)
   25213          # Absolute (can't be DOS-style, as IFS=:)
   25214          test -f "$f" || { { echo "$as_me:25214: error: cannot find input file: $f" >&5
   25215 echo "$as_me: error: cannot find input file: $f" >&2;}
   25216    { (exit 1); exit 1; }; }
   25217          echo $f;;
   25218       *) # Relative
   25219          if test -f "$f"; then
   25220            # Build tree
   25221            echo $f
   25222          elif test -f "$srcdir/$f"; then
   25223            # Source tree
   25224            echo "$srcdir/$f"
   25225          else
   25226            # /dev/null tree
   25227            { { echo "$as_me:25227: error: cannot find input file: $f" >&5
   25228 echo "$as_me: error: cannot find input file: $f" >&2;}
   25229    { (exit 1); exit 1; }; }
   25230          fi;;
   25231       esac
   25232     done` || { (exit 1); exit 1; }
   25233 EOF
   25234 cat >>"$CONFIG_STATUS" <<\EOF
   25235   ac_warn_datarootdir=no
   25236   if test x"$ac_file" != x-; then
   25237     for ac_item in $ac_file_inputs
   25238     do
   25239       ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"`
   25240       if test -n "$ac_seen"; then
   25241         ac_used=`grep '@datarootdir@' "$ac_item"`
   25242         if test -z "$ac_used"; then
   25243           { echo "$as_me:25243: WARNING: datarootdir was used implicitly but not set:
   25244 $ac_seen" >&5
   25245 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
   25246 $ac_seen" >&2;}
   25247           ac_warn_datarootdir=yes
   25248         fi
   25249       fi
   25250       ac_seen=`grep '${datarootdir}' "$ac_item"`
   25251       if test -n "$ac_seen"; then
   25252         { echo "$as_me:25252: WARNING: datarootdir was used explicitly but not set:
   25253 $ac_seen" >&5
   25254 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
   25255 $ac_seen" >&2;}
   25256         ac_warn_datarootdir=yes
   25257       fi
   25258     done
   25259   fi
   25260 
   25261 if test "x$ac_warn_datarootdir" = xyes; then
   25262   ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
   25263 fi
   25264 
   25265 EOF
   25266 cat >>"$CONFIG_STATUS" <<EOF
   25267   sed "$ac_vpsub
   25268 $extrasub
   25269 EOF
   25270 cat >>"$CONFIG_STATUS" <<\EOF
   25271 :t
   25272 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   25273 s,@configure_input@,$configure_input,;t t
   25274 s,@srcdir@,$ac_srcdir,;t t
   25275 s,@top_srcdir@,$ac_top_srcdir,;t t
   25276 s,@INSTALL@,$ac_INSTALL,;t t
   25277 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
   25278   rm -f $tmp/stdin
   25279   if test x"$ac_file" != x-; then
   25280     cp "$tmp/out" "$ac_file"
   25281 
   25282     for ac_name in prefix exec_prefix datarootdir
   25283     do
   25284         ac_seen=`${FGREP-fgrep} -n '${'$ac_name'[:=].*}' "$ac_file"`
   25285         if test -n "$ac_seen"; then
   25286             ac_init=`${EGREP-egrep} '[ 	]*'$ac_name'[ 	]*=' "$ac_file"`
   25287             if test -z "$ac_init"; then
   25288               ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
   25289               { echo "$as_me:25289: WARNING: Variable $ac_name is used but was not set:
   25290 $ac_seen" >&5
   25291 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
   25292 $ac_seen" >&2;}
   25293             fi
   25294         fi
   25295     done
   25296     ${EGREP-egrep} -n '@[a-z_][a-z_0-9]+@' "$ac_file" >$tmp/out
   25297     ${EGREP-egrep} -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>$tmp/out
   25298     if test -s $tmp/out; then
   25299       ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
   25300       { echo "$as_me:25300: WARNING: Some variables may not be substituted:
   25301 $ac_seen" >&5
   25302 echo "$as_me: WARNING: Some variables may not be substituted:
   25303 $ac_seen" >&2;}
   25304     fi
   25305   else
   25306     cat $tmp/out
   25307   fi
   25308   rm -f $tmp/out
   25309 
   25310 done
   25311 EOF
   25312 cat >>"$CONFIG_STATUS" <<\EOF
   25313 
   25314 #
   25315 # CONFIG_HEADER section.
   25316 #
   25317 
   25318 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
   25319 # NAME is the cpp macro being defined and VALUE is the value it is being given.
   25320 #
   25321 # ac_d sets the value in "#define NAME VALUE" lines.
   25322 ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
   25323 ac_dB='[ 	].*$,\1#\2'
   25324 ac_dC=' '
   25325 ac_dD=',;t'
   25326 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
   25327 ac_iA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
   25328 ac_iB='\([ 	]\),\1#\2define\3'
   25329 ac_iC=' '
   25330 ac_iD='\4,;t'
   25331 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
   25332 ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
   25333 ac_uB='$,\1#\2define\3'
   25334 ac_uC=' '
   25335 ac_uD=',;t'
   25336 
   25337 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
   25338   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   25339   case "$ac_file" in
   25340   - | *:- | *:-:* ) # input from stdin
   25341         cat >$tmp/stdin
   25342         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   25343         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   25344   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   25345         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   25346   * )   ac_file_in=$ac_file.in ;;
   25347   esac
   25348 
   25349   test x"$ac_file" != x- && { echo "$as_me:25349: creating $ac_file" >&5
   25350 echo "$as_me: creating $ac_file" >&6;}
   25351 
   25352   # First look for the input files in the build tree, otherwise in the
   25353   # src tree.
   25354   ac_file_inputs=`IFS=:
   25355     for f in $ac_file_in; do
   25356       case $f in
   25357       -) echo $tmp/stdin ;;
   25358       [\\/$]*)
   25359          # Absolute (can't be DOS-style, as IFS=:)
   25360          test -f "$f" || { { echo "$as_me:25360: error: cannot find input file: $f" >&5
   25361 echo "$as_me: error: cannot find input file: $f" >&2;}
   25362    { (exit 1); exit 1; }; }
   25363          echo $f;;
   25364       *) # Relative
   25365          if test -f "$f"; then
   25366            # Build tree
   25367            echo $f
   25368          elif test -f "$srcdir/$f"; then
   25369            # Source tree
   25370            echo "$srcdir/$f"
   25371          else
   25372            # /dev/null tree
   25373            { { echo "$as_me:25373: error: cannot find input file: $f" >&5
   25374 echo "$as_me: error: cannot find input file: $f" >&2;}
   25375    { (exit 1); exit 1; }; }
   25376          fi;;
   25377       esac
   25378     done` || { (exit 1); exit 1; }
   25379   # Remove the trailing spaces.
   25380   sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
   25381 
   25382 EOF
   25383 
   25384 # Transform confdefs.h into two sed scripts, `conftest.defines' and
   25385 # `conftest.undefs', that substitutes the proper values into
   25386 # config.h.in to produce config.h.  The first handles `#define'
   25387 # templates, and the second `#undef' templates.
   25388 # And first: Protect against being on the right side of a sed subst in
   25389 # config.status.  Protect against being in an unquoted here document
   25390 # in config.status.
   25391 rm -f conftest.defines conftest.undefs
   25392 # Using a here document instead of a string reduces the quoting nightmare.
   25393 # Putting comments in sed scripts is not portable.
   25394 #
   25395 # `end' is used to avoid that the second main sed command (meant for
   25396 # 0-ary CPP macros) applies to n-ary macro definitions.
   25397 # See the Autoconf documentation for `clear'.
   25398 cat >confdef2sed.sed <<\EOF
   25399 s/[\\&,]/\\&/g
   25400 s,[\\$`],\\&,g
   25401 t clear
   25402 : clear
   25403 s,^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
   25404 t end
   25405 s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
   25406 : end
   25407 EOF
   25408 # If some macros were called several times there might be several times
   25409 # the same #defines, which is useless.  Nevertheless, we may not want to
   25410 # sort them, since we want the *last* AC-DEFINE to be honored.
   25411 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
   25412 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
   25413 sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
   25414 rm -f confdef2sed.sed
   25415 
   25416 # This sed command replaces #undef with comments.  This is necessary, for
   25417 # example, in the case of _POSIX_SOURCE, which is predefined and required
   25418 # on some systems where configure will not decide to define it.
   25419 cat >>conftest.undefs <<\EOF
   25420 s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
   25421 EOF
   25422 
   25423 # Break up conftest.defines because some shells have a limit on the size
   25424 # of here documents, and old seds have small limits too (100 cmds).
   25425 echo '  # Handle all the #define templates only if necessary.' >>"$CONFIG_STATUS"
   25426 echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>"$CONFIG_STATUS"
   25427 echo '  # If there are no defines, we may have an empty if/fi' >>"$CONFIG_STATUS"
   25428 echo '  :' >>"$CONFIG_STATUS"
   25429 rm -f conftest.tail
   25430 while grep . conftest.defines >/dev/null
   25431 do
   25432   # Write a limited-size here document to $tmp/defines.sed.
   25433   echo '  cat >$tmp/defines.sed <<CEOF' >>"$CONFIG_STATUS"
   25434   # Speed up: don't consider the non `#define' lines.
   25435   echo '/^[ 	]*#[ 	]*define/!b' >>"$CONFIG_STATUS"
   25436   # Work around the forget-to-reset-the-flag bug.
   25437   echo 't clr' >>"$CONFIG_STATUS"
   25438   echo ': clr' >>"$CONFIG_STATUS"
   25439   sed "${ac_max_here_lines}q" conftest.defines >>"$CONFIG_STATUS"
   25440   echo 'CEOF
   25441   sed -f $tmp/defines.sed $tmp/in >$tmp/out
   25442   rm -f $tmp/in
   25443   mv $tmp/out $tmp/in
   25444 ' >>"$CONFIG_STATUS"
   25445   sed "1,${ac_max_here_lines}d" conftest.defines >conftest.tail
   25446   rm -f conftest.defines
   25447   mv conftest.tail conftest.defines
   25448 done
   25449 rm -f conftest.defines
   25450 echo '  fi # egrep' >>"$CONFIG_STATUS"
   25451 echo >>"$CONFIG_STATUS"
   25452 
   25453 # Break up conftest.undefs because some shells have a limit on the size
   25454 # of here documents, and old seds have small limits too (100 cmds).
   25455 echo '  # Handle all the #undef templates' >>"$CONFIG_STATUS"
   25456 rm -f conftest.tail
   25457 while grep . conftest.undefs >/dev/null
   25458 do
   25459   # Write a limited-size here document to $tmp/undefs.sed.
   25460   echo '  cat >$tmp/undefs.sed <<CEOF' >>"$CONFIG_STATUS"
   25461   # Speed up: don't consider the non `#undef'
   25462   echo '/^[ 	]*#[ 	]*undef/!b' >>"$CONFIG_STATUS"
   25463   # Work around the forget-to-reset-the-flag bug.
   25464   echo 't clr' >>"$CONFIG_STATUS"
   25465   echo ': clr' >>"$CONFIG_STATUS"
   25466   sed "${ac_max_here_lines}q" conftest.undefs >>"$CONFIG_STATUS"
   25467   echo 'CEOF
   25468   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
   25469   rm -f $tmp/in
   25470   mv $tmp/out $tmp/in
   25471 ' >>"$CONFIG_STATUS"
   25472   sed "1,${ac_max_here_lines}d" conftest.undefs >conftest.tail
   25473   rm -f conftest.undefs
   25474   mv conftest.tail conftest.undefs
   25475 done
   25476 rm -f conftest.undefs
   25477 
   25478 cat >>"$CONFIG_STATUS" <<\EOF
   25479   # Let's still pretend it is `configure' which instantiates (i.e., don't
   25480   # use $as_me), people would be surprised to read:
   25481   #    /* config.h.  Generated automatically by config.status.  */
   25482   if test x"$ac_file" = x-; then
   25483     echo "/* Generated automatically by configure.  */" >$tmp/config.h
   25484   else
   25485     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
   25486   fi
   25487   cat $tmp/in >>$tmp/config.h
   25488   rm -f $tmp/in
   25489   if test x"$ac_file" != x-; then
   25490     if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
   25491       { echo "$as_me:25491: $ac_file is unchanged" >&5
   25492 echo "$as_me: $ac_file is unchanged" >&6;}
   25493     else
   25494       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   25495          X"$ac_file" : 'X\(//\)[^/]' \| \
   25496          X"$ac_file" : 'X\(//\)$' \| \
   25497          X"$ac_file" : 'X\(/\)' \| \
   25498          .     : '\(.\)' 2>/dev/null ||
   25499 echo X"$ac_file" |
   25500     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   25501   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   25502   	  /^X\(\/\/\)$/{ s//\1/; q; }
   25503   	  /^X\(\/\).*/{ s//\1/; q; }
   25504   	  s/.*/./; q'`
   25505       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
   25506         { case "$ac_dir" in
   25507   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
   25508   *)                      as_incr_dir=.;;
   25509 esac
   25510 as_dummy="$ac_dir"
   25511 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
   25512   case $as_mkdir_dir in
   25513     # Skip DOS drivespec
   25514     ?:) as_incr_dir=$as_mkdir_dir ;;
   25515     *)
   25516       as_incr_dir=$as_incr_dir/$as_mkdir_dir
   25517       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
   25518     ;;
   25519   esac
   25520 done; }
   25521 
   25522       fi
   25523       rm -f "$ac_file"
   25524       mv "$tmp/config.h" "$ac_file"
   25525     fi
   25526   else
   25527     cat $tmp/config.h
   25528     rm -f $tmp/config.h
   25529   fi
   25530 done
   25531 EOF
   25532 
   25533 cat >>"$CONFIG_STATUS" <<\EOF
   25534 
   25535 { (exit 0); exit 0; }
   25536 EOF
   25537 chmod +x "$CONFIG_STATUS"
   25538 ac_clean_files=$ac_clean_files_save
   25539 
   25540 # configure is writing to config.log, and then calls config.status.
   25541 # config.status does its own redirection, appending to config.log.
   25542 # Unfortunately, on DOS this fails, as config.log is still kept open
   25543 # by configure, so config.status won't be able to write to it; its
   25544 # output is simply discarded.  So we exec the FD to /dev/null,
   25545 # effectively closing config.log, so it can be properly (re)opened and
   25546 # appended to by config.status.  When coming back to configure, we
   25547 # need to make the FD available again.
   25548 if test "$no_create" != yes; then
   25549   ac_cs_success=:
   25550   exec 5>/dev/null
   25551   $SHELL "$CONFIG_STATUS" || ac_cs_success=false
   25552   exec 5>>config.log
   25553   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   25554   # would make configure fail if this is the last instruction.
   25555   "$ac_cs_success" || { (exit 1); exit 1; }
   25556 fi
   25557 
   25558