Home | History | Annotate | Line # | Download | only in dist
configure revision 1.1.1.13
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by Autoconf 2.52.20170501.
      4 #
      5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
      6 # Free Software Foundation, Inc.
      7 # This configure script is free software; the Free Software Foundation
      8 # gives unlimited permission to copy, distribute and modify it.
      9 
     10 # Avoid depending upon Character Ranges.
     11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     14 as_cr_digits='0123456789'
     15 as_cr_alnum=$as_cr_Letters$as_cr_digits
     16 
     17 # Sed expression to map a string onto a valid variable name.
     18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
     19 
     20 # Sed expression to map a string onto a valid CPP name.
     21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
     22 
     23 # Be Bourne compatible
     24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     25   emulate sh
     26   NULLCMD=:
     27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     28   set -o posix
     29 fi
     30 
     31 # Name of the executable.
     32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
     33 
     34 if expr a : '\(a\)' >/dev/null 2>&1; then
     35   as_expr=expr
     36 else
     37   as_expr=false
     38 fi
     39 
     40 rm -f conf$$ conf$$.exe conf$$.file
     41 echo >conf$$.file
     42 if ln -s conf$$.file conf$$ 2>/dev/null; then
     43   # We could just check for DJGPP; but this test a) works b) is more generic
     44   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     45   if test -f conf$$.exe; then
     46     # Don't use ln at all; we don't have any links
     47     as_ln_s='cp -p'
     48   else
     49     as_ln_s='ln -s'
     50   fi
     51 elif ln conf$$.file conf$$ 2>/dev/null; then
     52   as_ln_s=ln
     53 else
     54   as_ln_s='cp -p'
     55 fi
     56 rm -f conf$$ conf$$.exe conf$$.file
     57 
     58 as_executable_p="test -f"
     59 
     60 # Support unset when possible.
     61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
     62   as_unset=unset
     63 else
     64   as_unset=false
     65 fi
     66 
     67 # NLS nuisances.
     68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
     69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
     70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
     71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
     72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
     73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
     74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
     75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
     76 
     77 # IFS
     78 # We need space, tab and new line, in precisely that order.
     79 as_nl='
     80 '
     81 IFS=" 	$as_nl"
     82 
     83 # CDPATH.
     84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
     85 
     86 # Name of the host.
     87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     88 # so uname gets run too.
     89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
     90 
     91 exec 6>&1
     92 
     93 #
     94 # Initializations.
     95 #
     96 ac_default_prefix=/usr/local
     97 cross_compiling=no
     98 subdirs=
     99 MFLAGS= MAKEFLAGS=
    100 SHELL=${CONFIG_SHELL-/bin/sh}
    101 
    102 # Maximum number of lines to put in a shell here document.
    103 # This variable seems obsolete.  It should probably be removed, and
    104 # only ac_max_sed_lines should be used.
    105 : ${ac_max_here_lines=38}
    106 
    107 ac_unique_file="charproc.c"
    108 # Factoring default headers for most tests.
    109 ac_includes_default="\
    110 #include <stdio.h>
    111 #if HAVE_SYS_TYPES_H
    112 # include <sys/types.h>
    113 #endif
    114 #if HAVE_SYS_STAT_H
    115 # include <sys/stat.h>
    116 #endif
    117 #if STDC_HEADERS
    118 # include <stdlib.h>
    119 # include <stddef.h>
    120 #else
    121 # if HAVE_STDLIB_H
    122 #  include <stdlib.h>
    123 # endif
    124 #endif
    125 #if HAVE_STRING_H
    126 # if !STDC_HEADERS && HAVE_MEMORY_H
    127 #  include <memory.h>
    128 # endif
    129 # include <string.h>
    130 #endif
    131 #if HAVE_STRINGS_H
    132 # include <strings.h>
    133 #endif
    134 #if HAVE_INTTYPES_H
    135 # include <inttypes.h>
    136 #else
    137 # if HAVE_STDINT_H
    138 #  include <stdint.h>
    139 # endif
    140 #endif
    141 #if HAVE_UNISTD_H
    142 # include <unistd.h>
    143 #endif"
    144 
    145 # Initialize some variables set by options.
    146 ac_init_help=
    147 ac_init_version=false
    148 # The variables have the same names as the options, with
    149 # dashes changed to underlines.
    150 cache_file=/dev/null
    151 exec_prefix=NONE
    152 no_create=
    153 no_recursion=
    154 prefix=NONE
    155 program_prefix=NONE
    156 program_suffix=NONE
    157 program_transform_name=s,x,x,
    158 silent=
    159 site=
    160 srcdir=
    161 verbose=
    162 x_includes=NONE
    163 x_libraries=NONE
    164 
    165 # Installation directory options.
    166 # These are left unexpanded so users can "make install exec_prefix=/foo"
    167 # and all the variables that are supposed to be based on exec_prefix
    168 # by default will actually change.
    169 # Use braces instead of parens because sh, perl, etc. also accept them.
    170 bindir='${exec_prefix}/bin'
    171 sbindir='${exec_prefix}/sbin'
    172 libexecdir='${exec_prefix}/libexec'
    173 datarootdir='${prefix}/share'
    174 datadir='${datarootdir}'
    175 sysconfdir='${prefix}/etc'
    176 sharedstatedir='${prefix}/com'
    177 localstatedir='${prefix}/var'
    178 libdir='${exec_prefix}/lib'
    179 includedir='${prefix}/include'
    180 oldincludedir='/usr/include'
    181 infodir='${datarootdir}/info'
    182 mandir='${datarootdir}/man'
    183 
    184 # Identity of this package.
    185 PACKAGE_NAME=
    186 PACKAGE_TARNAME=
    187 PACKAGE_VERSION=
    188 PACKAGE_STRING=
    189 PACKAGE_BUGREPORT=
    190 
    191 ac_prev=
    192 for ac_option
    193 do
    194   # If the previous option needs an argument, assign it.
    195   if test -n "$ac_prev"; then
    196     eval "$ac_prev=\$ac_option"
    197     ac_prev=
    198     continue
    199   fi
    200 
    201   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
    202 
    203   # Accept the important Cygnus configure options, so we can diagnose typos.
    204 
    205   case $ac_option in
    206 
    207   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    208     ac_prev=bindir ;;
    209   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    210     bindir=$ac_optarg ;;
    211 
    212   -build | --build | --buil | --bui | --bu)
    213     ac_prev=build_alias ;;
    214   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    215     build_alias=$ac_optarg ;;
    216 
    217   -cache-file | --cache-file | --cache-fil | --cache-fi \
    218   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    219     ac_prev=cache_file ;;
    220   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    221   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    222     cache_file=$ac_optarg ;;
    223 
    224   --config-cache | -C)
    225     cache_file=config.cache ;;
    226 
    227   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    228     ac_prev=datadir ;;
    229   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    230   | --da=*)
    231     datadir=$ac_optarg ;;
    232 
    233   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    234   | --dataroo | --dataro | --datar)
    235     ac_prev=datarootdir ;;
    236   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    237   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    238     datarootdir=$ac_optarg ;;
    239 
    240   -disable-* | --disable-*)
    241     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    242     # Reject names that are not valid shell variable names.
    243     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    244       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    245    { (exit 1); exit 1; }; }
    246     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    247     eval "enable_$ac_feature=no" ;;
    248 
    249   -enable-* | --enable-*)
    250     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    251     # Reject names that are not valid shell variable names.
    252     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    253       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    254    { (exit 1); exit 1; }; }
    255     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    256     case $ac_option in
    257       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    258       *) ac_optarg=yes ;;
    259     esac
    260     eval "enable_$ac_feature='$ac_optarg'" ;;
    261 
    262   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    263   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    264   | --exec | --exe | --ex)
    265     ac_prev=exec_prefix ;;
    266   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    267   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    268   | --exec=* | --exe=* | --ex=*)
    269     exec_prefix=$ac_optarg ;;
    270 
    271   -gas | --gas | --ga | --g)
    272     # Obsolete; use --with-gas.
    273     with_gas=yes ;;
    274 
    275   -help | --help | --hel | --he | -h)
    276     ac_init_help=long ;;
    277   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    278     ac_init_help=recursive ;;
    279   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    280     ac_init_help=short ;;
    281 
    282   -host | --host | --hos | --ho)
    283     ac_prev=host_alias ;;
    284   -host=* | --host=* | --hos=* | --ho=*)
    285     host_alias=$ac_optarg ;;
    286 
    287   -includedir | --includedir | --includedi | --included | --include \
    288   | --includ | --inclu | --incl | --inc)
    289     ac_prev=includedir ;;
    290   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    291   | --includ=* | --inclu=* | --incl=* | --inc=*)
    292     includedir=$ac_optarg ;;
    293 
    294   -infodir | --infodir | --infodi | --infod | --info | --inf)
    295     ac_prev=infodir ;;
    296   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    297     infodir=$ac_optarg ;;
    298 
    299   -libdir | --libdir | --libdi | --libd)
    300     ac_prev=libdir ;;
    301   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    302     libdir=$ac_optarg ;;
    303 
    304   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    305   | --libexe | --libex | --libe)
    306     ac_prev=libexecdir ;;
    307   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    308   | --libexe=* | --libex=* | --libe=*)
    309     libexecdir=$ac_optarg ;;
    310 
    311   -localstatedir | --localstatedir | --localstatedi | --localstated \
    312   | --localstate | --localstat | --localsta | --localst \
    313   | --locals | --local | --loca | --loc | --lo)
    314     ac_prev=localstatedir ;;
    315   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    316   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    317   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    318     localstatedir=$ac_optarg ;;
    319 
    320   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    321     ac_prev=mandir ;;
    322   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    323     mandir=$ac_optarg ;;
    324 
    325   -nfp | --nfp | --nf)
    326     # Obsolete; use --without-fp.
    327     with_fp=no ;;
    328 
    329   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    330   | --no-cr | --no-c)
    331     no_create=yes ;;
    332 
    333   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    334   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    335     no_recursion=yes ;;
    336 
    337   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
    338   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
    339   | --oldin | --oldi | --old | --ol | --o)
    340     ac_prev=oldincludedir ;;
    341   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
    342   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    343   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    344     oldincludedir=$ac_optarg ;;
    345 
    346   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    347     ac_prev=prefix ;;
    348   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    349     prefix=$ac_optarg ;;
    350 
    351   -program-prefix | --program-prefix | --program-prefi | --program-pref \
    352   | --program-pre | --program-pr | --program-p)
    353     ac_prev=program_prefix ;;
    354   -program-prefix=* | --program-prefix=* | --program-prefi=* \
    355   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    356     program_prefix=$ac_optarg ;;
    357 
    358   -program-suffix | --program-suffix | --program-suffi | --program-suff \
    359   | --program-suf | --program-su | --program-s)
    360     ac_prev=program_suffix ;;
    361   -program-suffix=* | --program-suffix=* | --program-suffi=* \
    362   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    363     program_suffix=$ac_optarg ;;
    364 
    365   -program-transform-name | --program-transform-name \
    366   | --program-transform-nam | --program-transform-na \
    367   | --program-transform-n | --program-transform- \
    368   | --program-transform | --program-transfor \
    369   | --program-transfo | --program-transf \
    370   | --program-trans | --program-tran \
    371   | --progr-tra | --program-tr | --program-t)
    372     ac_prev=program_transform_name ;;
    373   -program-transform-name=* | --program-transform-name=* \
    374   | --program-transform-nam=* | --program-transform-na=* \
    375   | --program-transform-n=* | --program-transform-=* \
    376   | --program-transform=* | --program-transfor=* \
    377   | --program-transfo=* | --program-transf=* \
    378   | --program-trans=* | --program-tran=* \
    379   | --progr-tra=* | --program-tr=* | --program-t=*)
    380     program_transform_name=$ac_optarg ;;
    381 
    382   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    383   | -silent | --silent | --silen | --sile | --sil)
    384     silent=yes ;;
    385 
    386   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    387     ac_prev=sbindir ;;
    388   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    389   | --sbi=* | --sb=*)
    390     sbindir=$ac_optarg ;;
    391 
    392   -sharedstatedir | --sharedstatedir | --sharedstatedi \
    393   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
    394   | --sharedst | --shareds | --shared | --share | --shar \
    395   | --sha | --sh)
    396     ac_prev=sharedstatedir ;;
    397   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
    398   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
    399   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    400   | --sha=* | --sh=*)
    401     sharedstatedir=$ac_optarg ;;
    402 
    403   -site | --site | --sit)
    404     ac_prev=site ;;
    405   -site=* | --site=* | --sit=*)
    406     site=$ac_optarg ;;
    407 
    408   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    409     ac_prev=srcdir ;;
    410   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    411     srcdir=$ac_optarg ;;
    412 
    413   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
    414   | --syscon | --sysco | --sysc | --sys | --sy)
    415     ac_prev=sysconfdir ;;
    416   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    417   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    418     sysconfdir=$ac_optarg ;;
    419 
    420   -target | --target | --targe | --targ | --tar | --ta | --t)
    421     ac_prev=target_alias ;;
    422   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    423     target_alias=$ac_optarg ;;
    424 
    425   -v | -verbose | --verbose | --verbos | --verbo | --verb)
    426     verbose=yes ;;
    427 
    428   -version | --version | --versio | --versi | --vers | -V)
    429     ac_init_version=: ;;
    430 
    431   -with-* | --with-*)
    432     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    433     # Reject names that are not valid shell variable names.
    434     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    435       { echo "$as_me: error: invalid package name: $ac_package" >&2
    436    { (exit 1); exit 1; }; }
    437     ac_package=`echo $ac_package| sed 's/-/_/g'`
    438     case $ac_option in
    439       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    440       *) ac_optarg=yes ;;
    441     esac
    442     eval "with_$ac_package='$ac_optarg'" ;;
    443 
    444   -without-* | --without-*)
    445     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    446     # Reject names that are not valid shell variable names.
    447     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    448       { echo "$as_me: error: invalid package name: $ac_package" >&2
    449    { (exit 1); exit 1; }; }
    450     ac_package=`echo $ac_package | sed 's/-/_/g'`
    451     eval "with_$ac_package=no" ;;
    452 
    453   --x)
    454     # Obsolete; use --with-x.
    455     with_x=yes ;;
    456 
    457   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
    458   | --x-incl | --x-inc | --x-in | --x-i)
    459     ac_prev=x_includes ;;
    460   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    461   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    462     x_includes=$ac_optarg ;;
    463 
    464   -x-libraries | --x-libraries | --x-librarie | --x-librari \
    465   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    466     ac_prev=x_libraries ;;
    467   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    468   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    469     x_libraries=$ac_optarg ;;
    470 
    471   -*) { echo "$as_me: error: unrecognized option: $ac_option
    472 Try \`$0 --help' for more information." >&2
    473    { (exit 1); exit 1; }; }
    474     ;;
    475 
    476   *=*)
    477     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    478     # Reject names that are not valid shell variable names.
    479     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
    480       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    481    { (exit 1); exit 1; }; }
    482     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    483     eval "$ac_envvar='$ac_optarg'"
    484     export $ac_envvar ;;
    485 
    486   *)
    487     # FIXME: should be removed in autoconf 3.0.
    488     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    489     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    490       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    491     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    492     ;;
    493 
    494   esac
    495 done
    496 
    497 if test -n "$ac_prev"; then
    498   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    499   { echo "$as_me: error: missing argument to $ac_option" >&2
    500    { (exit 1); exit 1; }; }
    501 fi
    502 
    503 # Be sure to have absolute paths.
    504 for ac_var in exec_prefix prefix
    505 do
    506   eval ac_val=$`echo $ac_var`
    507   case $ac_val in
    508     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    509     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
    510    { (exit 1); exit 1; }; };;
    511   esac
    512 done
    513 
    514 # Be sure to have absolute paths.
    515 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
    516               localstatedir libdir includedir oldincludedir infodir mandir
    517 do
    518   eval ac_val=$`echo $ac_var`
    519   case $ac_val in
    520     [\\/$]* | ?:[\\/]* ) ;;
    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 # There might be people who depend on the old broken behavior: `$host'
    527 # used to hold the argument of --host etc.
    528 build=$build_alias
    529 host=$host_alias
    530 target=$target_alias
    531 
    532 # FIXME: should be removed in autoconf 3.0.
    533 if test "x$host_alias" != x; then
    534   if test "x$build_alias" = x; then
    535     cross_compiling=maybe
    536     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    537     If a cross compiler is detected then cross compile mode will be used." >&2
    538   elif test "x$build_alias" != "x$host_alias"; then
    539     cross_compiling=yes
    540   fi
    541 fi
    542 
    543 ac_tool_prefix=
    544 test -n "$host_alias" && ac_tool_prefix=$host_alias-
    545 
    546 test "$silent" = yes && exec 6>/dev/null
    547 
    548 # Find the source files, if location was not specified.
    549 if test -z "$srcdir"; then
    550   ac_srcdir_defaulted=yes
    551   # Try the directory containing this script, then its parent.
    552   ac_prog=$0
    553   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
    554   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
    555   srcdir=$ac_confdir
    556   if test ! -r $srcdir/$ac_unique_file; then
    557     srcdir=..
    558   fi
    559 else
    560   ac_srcdir_defaulted=no
    561 fi
    562 if test ! -r $srcdir/$ac_unique_file; then
    563   if test "$ac_srcdir_defaulted" = yes; then
    564     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
    565    { (exit 1); exit 1; }; }
    566   else
    567     { echo "$as_me: error: cannot find sources in $srcdir" >&2
    568    { (exit 1); exit 1; }; }
    569   fi
    570 fi
    571 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    572 ac_env_build_alias_set=${build_alias+set}
    573 ac_env_build_alias_value=$build_alias
    574 ac_cv_env_build_alias_set=${build_alias+set}
    575 ac_cv_env_build_alias_value=$build_alias
    576 ac_env_host_alias_set=${host_alias+set}
    577 ac_env_host_alias_value=$host_alias
    578 ac_cv_env_host_alias_set=${host_alias+set}
    579 ac_cv_env_host_alias_value=$host_alias
    580 ac_env_target_alias_set=${target_alias+set}
    581 ac_env_target_alias_value=$target_alias
    582 ac_cv_env_target_alias_set=${target_alias+set}
    583 ac_cv_env_target_alias_value=$target_alias
    584 ac_env_CC_set=${CC+set}
    585 ac_env_CC_value=$CC
    586 ac_cv_env_CC_set=${CC+set}
    587 ac_cv_env_CC_value=$CC
    588 ac_env_CFLAGS_set=${CFLAGS+set}
    589 ac_env_CFLAGS_value=$CFLAGS
    590 ac_cv_env_CFLAGS_set=${CFLAGS+set}
    591 ac_cv_env_CFLAGS_value=$CFLAGS
    592 ac_env_LDFLAGS_set=${LDFLAGS+set}
    593 ac_env_LDFLAGS_value=$LDFLAGS
    594 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    595 ac_cv_env_LDFLAGS_value=$LDFLAGS
    596 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    597 ac_env_CPPFLAGS_value=$CPPFLAGS
    598 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    599 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    600 ac_env_CPP_set=${CPP+set}
    601 ac_env_CPP_value=$CPP
    602 ac_cv_env_CPP_set=${CPP+set}
    603 ac_cv_env_CPP_value=$CPP
    604 
    605 #
    606 # Report the --help message.
    607 #
    608 if test "$ac_init_help" = "long"; then
    609   # Omit some internal or obsolete options to make the list less imposing.
    610   # This message is too long to be a string in the A/UX 3.1 sh.
    611   cat <<EOF
    612 \`configure' configures this package to adapt to many kinds of systems.
    613 
    614 Usage: $0 [OPTION]... [VAR=VALUE]...
    615 
    616 To assign environment variables (e.g., CC, CFLAGS...), specify them as
    617 VAR=VALUE.  See below for descriptions of some of the useful variables.
    618 
    619 Defaults for the options are specified in brackets.
    620 
    621 Configuration:
    622   -h, --help              display this help and exit
    623       --help=short        display options specific to this package
    624       --help=recursive    display the short help of all the included packages
    625   -V, --version           display version information and exit
    626   -q, --quiet, --silent   do not print \`checking...' messages
    627       --cache-file=FILE   cache test results in FILE [disabled]
    628   -C, --config-cache      alias for \`--cache-file=config.cache'
    629   -n, --no-create         do not create output files
    630       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    631 
    632 EOF
    633 
    634   cat <<EOF
    635 Installation directories:
    636   --prefix=PREFIX         install architecture-independent files in PREFIX
    637                           [$ac_default_prefix]
    638   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    639                           [PREFIX]
    640 
    641 By default, \`make install' will install all the files in
    642 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
    643 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
    644 for instance \`--prefix=\$HOME'.
    645 
    646 For better control, use the options below.
    647 
    648 Fine tuning of the installation directories:
    649   --bindir=DIR            user executables [EPREFIX/bin]
    650   --sbindir=DIR           system admin executables [EPREFIX/sbin]
    651   --libexecdir=DIR        program executables [EPREFIX/libexec]
    652   --datarootdir=DIR       read-only architecture-independent data [PREFIX/share]
    653   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
    654   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
    655   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
    656   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
    657   --libdir=DIR            object code libraries [EPREFIX/lib]
    658   --includedir=DIR        C header files [PREFIX/include]
    659   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
    660   --infodir=DIR           info documentation [DATAROOTDIR/info]
    661   --mandir=DIR            man documentation [DATAROOTDIR/man]
    662 EOF
    663 
    664   cat <<\EOF
    665 
    666 Program names:
    667   --program-prefix=PREFIX            prepend PREFIX to installed program names
    668   --program-suffix=SUFFIX            append SUFFIX to installed program names
    669   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
    670 
    671 X features:
    672   --x-includes=DIR    X include files are in DIR
    673   --x-libraries=DIR   X library files are in DIR
    674 
    675 System types:
    676   --build=BUILD           configure for building on BUILD [guessed]
    677   --host=HOST       build programs to run on HOST [BUILD]
    678 EOF
    679 fi
    680 
    681 if test -n "$ac_init_help"; then
    682 
    683   cat <<\EOF
    684 
    685 Optional Features:
    686   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    687   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    688 
    689 Optional Packages:
    690   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    691   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    692 
    693 Compile/Install Options:
    694   --disable-full-tgetent  disable check for full tgetent function
    695   --with-app-class=XXX    override X applications class (default XTerm)
    696   --with-app-defaults=DIR directory in which to install resource files (EPREFIX/lib/X11/app-defaults)
    697   --with-icon-name=XXXX   override icon name (default: xterm-color)
    698   --with-icon-symlink=XXX make symbolic link for icon name (default: xterm)
    699   --with-pixmapdir=DIR    directory in which to install pixmaps (DATADIR/pixmaps)
    700   --with-icondir=DIR      directory in which to install icons for desktop
    701   --with-icon-theme=XXX   install icons into desktop theme (hicolor)
    702   --disable-desktop       disable install of xterm desktop files
    703   --with-desktop-category=XXX  one or more desktop catgories or auto
    704   --with-reference=XXX    program to use as permissions-reference
    705   --with-xterm-symlink=XXX make symbolic link to installed xterm
    706   --disable-openpty       disable openpty, prefer other interfaces
    707   --disable-setuid        disable setuid in xterm, do not install setuid/setgid
    708   --disable-setgid        disable setgid in xterm, do not install setuid/setgid
    709   --with-setuid=XXX       use the given setuid user
    710   --with-utmp-setgid=XXX  use setgid to match utmp/utmpx file
    711   --with-utempter         use utempter library for access to utmp
    712   --with-tty-group=XXX    use XXX for the tty-group
    713   --with-x                use the X Window System
    714   --with-pkg-config{=path} enable/disable use of pkg-config
    715   --with-xpm=DIR          use Xpm library for colored icon, may specify path
    716   --without-xinerama      do not use Xinerama extension for multiscreen support
    717   --with-Xaw3d            link with Xaw 3d library
    718   --with-Xaw3dxft         link with Xaw 3d xft library
    719   --with-neXtaw           link with neXT Athena library
    720   --with-XawPlus          link with Athena-Plus library
    721   --enable-narrowproto    enable narrow prototypes for X libraries
    722   --disable-imake         disable use of imake for definitions
    723   --with-man2html=XXX     use XXX rather than groff
    724 Terminal Configuration:
    725   --with-terminal-id=V    set default decTerminalID (default: vt420)
    726   --with-terminal-type=T  set default $TERM (default: xterm)
    727   --enable-backarrow-key  set default backarrowKey resource (default: true)
    728   --enable-backarrow-is-erase set default backarrowKeyIsErase resource (default: false)
    729   --enable-delete-is-del  set default deleteIsDEL resource (default: maybe)
    730   --enable-pty-erase      set default ptyInitialErase resource (default: maybe)
    731   --enable-alt-sends-esc  set default altSendsEscape resource (default: no)
    732   --enable-meta-sends-esc set default metaSendsEscape resource (default: no)
    733   --with-own-terminfo=P   set default $TERMINFO (default: from environment)
    734   --enable-env-terminfo   setenv $TERMINFO if --with-own-terminfo gives value
    735 Optional Features:
    736   --disable-active-icon   disable X11R6.3 active-icon feature
    737   --disable-ansi-color    disable ANSI color
    738   --disable-16-color      disable 16-color support
    739   --enable-256-color      enable 256-color support
    740   --enable-88-color       enable 88-color support
    741   --disable-blink-cursor  disable support for blinking cursor
    742   --enable-broken-osc     allow broken Linux OSC-strings
    743   --disable-broken-st     disallow broken string-terminators
    744   --enable-builtin-xpms   compile-in icon data
    745   --disable-c1-print      disallow -k8 option for printable 128-159
    746   --disable-bold-color    disable PC-style mapping of bold colors
    747   --disable-color-class   disable separate color class resources
    748   --disable-color-mode    disable default colorMode resource
    749   --disable-highlighting  disable support for color highlighting
    750   --disable-doublechars   disable support for double-size chars
    751   --disable-boxchars      disable fallback-support for box chars
    752   --enable-exec-xterm     enable "spawn-new-terminal" action
    753   --enable-double-buffer  enable double-buffering
    754   --disable-freetype      disable freetype library-support
    755   --with-freetype-config  configure script to use for FreeType
    756   --with-freetype-cflags  -D/-I options for compiling with FreeType
    757   --with-freetype-libs    -L/-l options to link FreeType
    758   --enable-hp-fkeys       enable support for HP-style function keys
    759   --enable-sco-fkeys      enable support for SCO-style function keys
    760   --disable-sun-fkeys     disable support for Sun-style function keys
    761   --disable-fifo-lines    disable FIFO-storage for saved-lines
    762   --disable-i18n          disable internationalization
    763   --disable-initial-erase disable setup for stty erase
    764   --disable-input-method  disable input-method
    765   --enable-load-vt-fonts  enable load-vt-fonts() action
    766   --enable-logging        enable logging
    767   --enable-logfile-exec   enable exec'd logfile filter
    768   --disable-maximize      disable actions for iconify/deiconify/maximize/restore
    769   --disable-num-lock      disable NumLock keypad support
    770   --disable-paste64       disable get/set base64 selection data
    771   --disable-pty-handshake disable pty-handshake support
    772   --enable-readline-mouse enable support for mouse in readline applications
    773   --disable-regex         disable regular-expression selections
    774   --with-pcre             use PCRE for regular-expressions
    775   --disable-rightbar      disable right-scrollbar support
    776   --disable-samename      disable check for redundant name-change
    777   --disable-selection-ops disable selection-action operations
    778   --disable-session-mgt   disable support for session management
    779   --disable-tcap-fkeys    disable termcap function-keys support
    780   --disable-tcap-query    disable compiled-in termcap-query support
    781   --disable-tek4014       disable tek4014 emulation
    782   --enable-toolbar        compile-in toolbar for pulldown menus
    783   --disable-vt52          disable VT52 emulation
    784   --disable-wide-attrs    disable wide-attribute support
    785   --disable-wide-chars    disable wide-character support
    786   --enable-16bit-chars    enable 16-bit character support
    787   --enable-mini-luit      enable mini-luit (built-in Latin9 support)
    788   --disable-luit          enable luit filter (Unicode translation)
    789   --enable-dabbrev        enable dynamic-abbreviation support
    790   --enable-dec-locator    enable DECterm Locator support
    791   --enable-screen-dumps   enable XHTML and SVG screen dumps
    792   --enable-regis-graphics enable ReGIS graphics support
    793   --enable-sixel-graphics enable sixel graphics support
    794   --disable-rectangles    disable VT420 rectangle support
    795   --disable-ziconbeep     disable -ziconbeep option
    796 Testing/development Options:
    797   --enable-trace          test: set to enable debugging traces
    798   --with-dmalloc          test: use Gray Watson's dmalloc library
    799   --with-dbmalloc         test: use Conor Cahill's dbmalloc library
    800   --with-valgrind         test: use valgrind
    801   --disable-leaks         test: free permanent memory, analyze leaks
    802   --disable-echo          do not display "compiling" commands
    803   --enable-xmc-glitch     test: enable xmc magic-cookie emulation
    804   --enable-warnings       test: turn on GCC compiler warnings
    805   --disable-rpath-hack    don't add rpath options for additional libraries
    806 
    807 Some influential environment variables:
    808   CC          C compiler command
    809   CFLAGS      C compiler flags
    810   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    811               nonstandard directory <lib dir>
    812   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    813               headers in a nonstandard directory <include dir>
    814   CPP         C preprocessor
    815 
    816 Use these variables to override the choices made by `configure' or to help
    817 it to find libraries and programs with nonstandard names/locations.
    818 
    819 EOF
    820 fi
    821 
    822 if test "$ac_init_help" = "recursive"; then
    823   # If there are subdirs, report their specific --help.
    824   ac_popdir=`pwd`
    825   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
    826     cd $ac_subdir
    827     # A "../" for each directory in /$ac_subdir.
    828     ac_dots=`echo $ac_subdir |
    829              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    830 
    831     case $srcdir in
    832     .) # No --srcdir option.  We are building in place.
    833       ac_sub_srcdir=$srcdir ;;
    834     [\\/]* | ?:[\\/]* ) # Absolute path.
    835       ac_sub_srcdir=$srcdir/$ac_subdir ;;
    836     *) # Relative path.
    837       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
    838     esac
    839 
    840     # Check for guested configure; otherwise get Cygnus style configure.
    841     if test -f $ac_sub_srcdir/configure.gnu; then
    842       echo
    843       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
    844     elif test -f $ac_sub_srcdir/configure; then
    845       echo
    846       $SHELL $ac_sub_srcdir/configure  --help=recursive
    847     elif test -f $ac_sub_srcdir/configure.ac ||
    848            test -f $ac_sub_srcdir/configure.in; then
    849       echo
    850       $ac_configure --help
    851     else
    852       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
    853     fi
    854     cd $ac_popdir
    855   done
    856 fi
    857 
    858 test -n "$ac_init_help" && exit 0
    859 if $ac_init_version; then
    860   cat <<\EOF
    861 
    862 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    863 Free Software Foundation, Inc.
    864 This configure script is free software; the Free Software Foundation
    865 gives unlimited permission to copy, distribute and modify it.
    866 EOF
    867   exit 0
    868 fi
    869 exec 5>config.log
    870 cat >&5 <<EOF
    871 This file contains any messages produced by compilers while
    872 running configure, to aid debugging if configure makes a mistake.
    873 
    874 It was created by $as_me, which was
    875 generated by GNU Autoconf 2.52.20170501.  Invocation command line was
    876 
    877   $ $0 $@
    878 
    879 EOF
    880 {
    881 cat <<_ASUNAME
    882 ## ---------- ##
    883 ## Platform.  ##
    884 ## ---------- ##
    885 
    886 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
    887 uname -m = `(uname -m) 2>/dev/null || echo unknown`
    888 uname -r = `(uname -r) 2>/dev/null || echo unknown`
    889 uname -s = `(uname -s) 2>/dev/null || echo unknown`
    890 uname -v = `(uname -v) 2>/dev/null || echo unknown`
    891 
    892 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
    893 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
    894 
    895 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
    896 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
    897 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
    898 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
    899 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
    900 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
    901 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
    902 
    903 PATH = $PATH
    904 
    905 _ASUNAME
    906 } >&5
    907 
    908 cat >&5 <<EOF
    909 ## ------------ ##
    910 ## Core tests.  ##
    911 ## ------------ ##
    912 
    913 EOF
    914 
    915 # Keep a trace of the command line.
    916 # Strip out --no-create and --no-recursion so they do not pile up.
    917 # Also quote any args containing shell meta-characters.
    918 ac_configure_args=
    919 ac_sep=
    920 for ac_arg
    921 do
    922   case $ac_arg in
    923   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    924   | --no-cr | --no-c) ;;
    925   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    926   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
    927   *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    928     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
    929     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    930     ac_sep=" " ;;
    931   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
    932      ac_sep=" " ;;
    933   esac
    934   # Get rid of the leading space.
    935 done
    936 
    937 # When interrupted or exit'd, cleanup temporary files, and complete
    938 # config.log.  We remove comments because anyway the quotes in there
    939 # would cause problems or look ugly.
    940 trap 'exit_status=$?
    941   # Save into config.log some information that might help in debugging.
    942   echo >&5
    943   echo "## ----------------- ##" >&5
    944   echo "## Cache variables.  ##" >&5
    945   echo "## ----------------- ##" >&5
    946   echo >&5
    947   # The following way of writing the cache mishandles newlines in values,
    948 {
    949   (set) 2>&1 |
    950     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    951     *ac_space=\ *)
    952       sed -n \
    953         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    954     	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
    955       ;;
    956     *)
    957       sed -n \
    958         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    959       ;;
    960     esac;
    961 } >&5
    962   sed "/^$/d" confdefs.h >conftest.log
    963   if test -s conftest.log; then
    964     echo >&5
    965     echo "## ------------ ##" >&5
    966     echo "## confdefs.h.  ##" >&5
    967     echo "## ------------ ##" >&5
    968     echo >&5
    969     cat conftest.log >&5
    970   fi
    971   (echo; echo) >&5
    972   test "$ac_signal" != 0 &&
    973     echo "$as_me: caught signal $ac_signal" >&5
    974   echo "$as_me: exit $exit_status" >&5
    975   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
    976     exit $exit_status
    977      ' 0
    978 for ac_signal in 1 2 13 15; do
    979   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
    980 done
    981 ac_signal=0
    982 
    983 # confdefs.h avoids OS command line length limits that DEFS can exceed.
    984 rm -rf conftest* confdefs.h
    985 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    986 echo >confdefs.h
    987 
    988 # Let the site file select an alternate cache file if it wants to.
    989 # Prefer explicitly selected file to automatically selected ones.
    990 if test -z "$CONFIG_SITE"; then
    991   if test "x$prefix" != xNONE; then
    992     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
    993   else
    994     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
    995   fi
    996 fi
    997 for ac_site_file in $CONFIG_SITE; do
    998   if test -r "$ac_site_file"; then
    999     { echo "$as_me:999: loading site script $ac_site_file" >&5
   1000 echo "$as_me: loading site script $ac_site_file" >&6;}
   1001     cat "$ac_site_file" >&5
   1002     . "$ac_site_file"
   1003   fi
   1004 done
   1005 
   1006 if test -r "$cache_file"; then
   1007   # Some versions of bash will fail to source /dev/null (special
   1008   # files actually), so we avoid doing that.
   1009   if test -f "$cache_file"; then
   1010     { echo "$as_me:1010: loading cache $cache_file" >&5
   1011 echo "$as_me: loading cache $cache_file" >&6;}
   1012     case $cache_file in
   1013       [\\/]* | ?:[\\/]* ) . $cache_file;;
   1014       *)                      . ./$cache_file;;
   1015     esac
   1016   fi
   1017 else
   1018   { echo "$as_me:1018: creating cache $cache_file" >&5
   1019 echo "$as_me: creating cache $cache_file" >&6;}
   1020   >$cache_file
   1021 fi
   1022 
   1023 # Check that the precious variables saved in the cache have kept the same
   1024 # value.
   1025 ac_cache_corrupted=false
   1026 for ac_var in `(set) 2>&1 |
   1027                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
   1028   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   1029   eval ac_new_set=\$ac_env_${ac_var}_set
   1030   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
   1031   eval ac_new_val="\$ac_env_${ac_var}_value"
   1032   case $ac_old_set,$ac_new_set in
   1033     set,)
   1034       { echo "$as_me:1034: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   1035 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   1036       ac_cache_corrupted=: ;;
   1037     ,set)
   1038       { echo "$as_me:1038: error: \`$ac_var' was not set in the previous run" >&5
   1039 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   1040       ac_cache_corrupted=: ;;
   1041     ,);;
   1042     *)
   1043       if test "x$ac_old_val" != "x$ac_new_val"; then
   1044         { echo "$as_me:1044: error: \`$ac_var' has changed since the previous run:" >&5
   1045 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   1046         { echo "$as_me:1046:   former value:  $ac_old_val" >&5
   1047 echo "$as_me:   former value:  $ac_old_val" >&2;}
   1048         { echo "$as_me:1048:   current value: $ac_new_val" >&5
   1049 echo "$as_me:   current value: $ac_new_val" >&2;}
   1050         ac_cache_corrupted=:
   1051       fi;;
   1052   esac
   1053   # Pass precious variables to config.status.  It doesn't matter if
   1054   # we pass some twice (in addition to the command line arguments).
   1055   if test "$ac_new_set" = set; then
   1056     case $ac_new_val in
   1057     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
   1058       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
   1059       ac_configure_args="$ac_configure_args '$ac_arg'"
   1060       ;;
   1061     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
   1062        ;;
   1063     esac
   1064   fi
   1065 done
   1066 if $ac_cache_corrupted; then
   1067   { echo "$as_me:1067: error: changes in the environment can compromise the build" >&5
   1068 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   1069   { { echo "$as_me:1069: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
   1070 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   1071    { (exit 1); exit 1; }; }
   1072 fi
   1073 
   1074 ac_ext=c
   1075 ac_cpp='$CPP $CPPFLAGS'
   1076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1079 ac_main_return=return
   1080 
   1081 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
   1082   *c*,-n*) ECHO_N= ECHO_C=	# newlines do not sed ;-) only broken shells would use this case anyway
   1083 		   ECHO_T='	' ;;
   1084   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
   1085   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
   1086 esac
   1087 echo "#! $SHELL" >conftest.sh
   1088 echo  "exit 0"   >>conftest.sh
   1089 chmod +x conftest.sh
   1090 if { (echo "$as_me:1090: PATH=\".;.\"; conftest.sh") >&5
   1091   (PATH=".;."; conftest.sh) 2>&5
   1092   ac_status=$?
   1093   echo "$as_me:1093: \$? = $ac_status" >&5
   1094   (exit $ac_status); }; then
   1095   ac_path_separator=';'
   1096 else
   1097   ac_path_separator=:
   1098 fi
   1099 PATH_SEPARATOR="$ac_path_separator"
   1100 rm -f conftest.sh
   1101 
   1102 ac_config_headers="$ac_config_headers xtermcfg.h:xtermcfg.hin"
   1103 
   1104 ac_aux_dir=
   1105 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
   1106   if test -f $ac_dir/install-sh; then
   1107     ac_aux_dir=$ac_dir
   1108     ac_install_sh="$ac_aux_dir/install-sh -c"
   1109     break
   1110   elif test -f $ac_dir/install.sh; then
   1111     ac_aux_dir=$ac_dir
   1112     ac_install_sh="$ac_aux_dir/install.sh -c"
   1113     break
   1114   elif test -f $ac_dir/shtool; then
   1115     ac_aux_dir=$ac_dir
   1116     ac_install_sh="$ac_aux_dir/shtool install -c"
   1117     break
   1118   fi
   1119 done
   1120 if test -z "$ac_aux_dir"; then
   1121   { { echo "$as_me:1121: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
   1122 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
   1123    { (exit 1); exit 1; }; }
   1124 fi
   1125 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
   1126 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
   1127 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
   1128 
   1129 # Make sure we can run config.sub.
   1130 $ac_config_sub sun4 >/dev/null 2>&1 ||
   1131   { { echo "$as_me:1131: error: cannot run $ac_config_sub" >&5
   1132 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
   1133    { (exit 1); exit 1; }; }
   1134 
   1135 echo "$as_me:1135: checking build system type" >&5
   1136 echo $ECHO_N "checking build system type... $ECHO_C" >&6
   1137 if test "${ac_cv_build+set}" = set; then
   1138   echo $ECHO_N "(cached) $ECHO_C" >&6
   1139 else
   1140   ac_cv_build_alias=$build_alias
   1141 test -z "$ac_cv_build_alias" &&
   1142   ac_cv_build_alias=`$ac_config_guess`
   1143 test -z "$ac_cv_build_alias" &&
   1144   { { echo "$as_me:1144: error: cannot guess build type; you must specify one" >&5
   1145 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   1146    { (exit 1); exit 1; }; }
   1147 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
   1148   { { echo "$as_me:1148: error: $ac_config_sub $ac_cv_build_alias failed." >&5
   1149 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
   1150    { (exit 1); exit 1; }; }
   1151 
   1152 fi
   1153 echo "$as_me:1153: result: $ac_cv_build" >&5
   1154 echo "${ECHO_T}$ac_cv_build" >&6
   1155 build=$ac_cv_build
   1156 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
   1157 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
   1158 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   1159 
   1160 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
   1161 	echo "$as_me:1161: checking host system type" >&5
   1162 echo $ECHO_N "checking host system type... $ECHO_C" >&6
   1163 if test "${ac_cv_host+set}" = set; then
   1164   echo $ECHO_N "(cached) $ECHO_C" >&6
   1165 else
   1166   ac_cv_host_alias=$host_alias
   1167 test -z "$ac_cv_host_alias" &&
   1168   ac_cv_host_alias=$ac_cv_build_alias
   1169 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
   1170   { { echo "$as_me:1170: error: $ac_config_sub $ac_cv_host_alias failed" >&5
   1171 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
   1172    { (exit 1); exit 1; }; }
   1173 
   1174 fi
   1175 echo "$as_me:1175: result: $ac_cv_host" >&5
   1176 echo "${ECHO_T}$ac_cv_host" >&6
   1177 host=$ac_cv_host
   1178 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
   1179 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
   1180 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   1181 
   1182 	system_name="$host_os"
   1183 else
   1184 	system_name="`(uname -s -r) 2>/dev/null`"
   1185 	if test -z "$system_name" ; then
   1186 		system_name="`(hostname) 2>/dev/null`"
   1187 	fi
   1188 fi
   1189 test -n "$system_name" &&
   1190 cat >>confdefs.h <<EOF
   1191 #define SYSTEM_NAME "$system_name"
   1192 EOF
   1193 
   1194 if test "${cf_cv_system_name+set}" = set; then
   1195   echo $ECHO_N "(cached) $ECHO_C" >&6
   1196 else
   1197   cf_cv_system_name="$system_name"
   1198 fi
   1199 
   1200 test -z "$system_name" && system_name="$cf_cv_system_name"
   1201 test -n "$cf_cv_system_name" && echo "$as_me:1201: result: Configuring for $cf_cv_system_name" >&5
   1202 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
   1203 
   1204 if test ".$system_name" != ".$cf_cv_system_name" ; then
   1205 	echo "$as_me:1205: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
   1206 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
   1207 	{ { echo "$as_me:1207: error: \"Please remove config.cache and try again.\"" >&5
   1208 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
   1209    { (exit 1); exit 1; }; }
   1210 fi
   1211 
   1212 ###	checks for alternative programs
   1213 
   1214 case "$host_os" in
   1215 (openedition)	: ${CFLAGS="-O2 -Wc,dll -Wl,EDIT=NO"}
   1216 		: ${CPPFLAGS="-D_ALL_SOURCE"}
   1217 		: ${LIBS="/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x"}
   1218 		: ${CC=c89};;
   1219 (darwin*)
   1220 		: ${LDFLAGS}="${LDFLAGS} -Wl,-bind_at_load";;
   1221 esac
   1222 
   1223 ac_ext=c
   1224 ac_cpp='$CPP $CPPFLAGS'
   1225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1228 ac_main_return=return
   1229 if test -n "$ac_tool_prefix"; then
   1230   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   1231 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   1232 echo "$as_me:1232: checking for $ac_word" >&5
   1233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1234 if test "${ac_cv_prog_CC+set}" = set; then
   1235   echo $ECHO_N "(cached) $ECHO_C" >&6
   1236 else
   1237   if test -n "$CC"; then
   1238   ac_cv_prog_CC="$CC" # Let the user override the test.
   1239 else
   1240   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1241 ac_dummy="$PATH"
   1242 for ac_dir in $ac_dummy; do
   1243   IFS=$ac_save_IFS
   1244   test -z "$ac_dir" && ac_dir=.
   1245   $as_executable_p "$ac_dir/$ac_word" || continue
   1246 ac_cv_prog_CC="${ac_tool_prefix}gcc"
   1247 echo "$as_me:1247: found $ac_dir/$ac_word" >&5
   1248 break
   1249 done
   1250 
   1251 fi
   1252 fi
   1253 CC=$ac_cv_prog_CC
   1254 if test -n "$CC"; then
   1255   echo "$as_me:1255: result: $CC" >&5
   1256 echo "${ECHO_T}$CC" >&6
   1257 else
   1258   echo "$as_me:1258: result: no" >&5
   1259 echo "${ECHO_T}no" >&6
   1260 fi
   1261 
   1262 fi
   1263 if test -z "$ac_cv_prog_CC"; then
   1264   ac_ct_CC=$CC
   1265   # Extract the first word of "gcc", so it can be a program name with args.
   1266 set dummy gcc; ac_word=$2
   1267 echo "$as_me:1267: checking for $ac_word" >&5
   1268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1269 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1270   echo $ECHO_N "(cached) $ECHO_C" >&6
   1271 else
   1272   if test -n "$ac_ct_CC"; then
   1273   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1274 else
   1275   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1276 ac_dummy="$PATH"
   1277 for ac_dir in $ac_dummy; do
   1278   IFS=$ac_save_IFS
   1279   test -z "$ac_dir" && ac_dir=.
   1280   $as_executable_p "$ac_dir/$ac_word" || continue
   1281 ac_cv_prog_ac_ct_CC="gcc"
   1282 echo "$as_me:1282: found $ac_dir/$ac_word" >&5
   1283 break
   1284 done
   1285 
   1286 fi
   1287 fi
   1288 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1289 if test -n "$ac_ct_CC"; then
   1290   echo "$as_me:1290: result: $ac_ct_CC" >&5
   1291 echo "${ECHO_T}$ac_ct_CC" >&6
   1292 else
   1293   echo "$as_me:1293: result: no" >&5
   1294 echo "${ECHO_T}no" >&6
   1295 fi
   1296 
   1297   CC=$ac_ct_CC
   1298 else
   1299   CC="$ac_cv_prog_CC"
   1300 fi
   1301 
   1302 if test -z "$CC"; then
   1303   if test -n "$ac_tool_prefix"; then
   1304   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   1305 set dummy ${ac_tool_prefix}cc; ac_word=$2
   1306 echo "$as_me:1306: checking for $ac_word" >&5
   1307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1308 if test "${ac_cv_prog_CC+set}" = set; then
   1309   echo $ECHO_N "(cached) $ECHO_C" >&6
   1310 else
   1311   if test -n "$CC"; then
   1312   ac_cv_prog_CC="$CC" # Let the user override the test.
   1313 else
   1314   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1315 ac_dummy="$PATH"
   1316 for ac_dir in $ac_dummy; do
   1317   IFS=$ac_save_IFS
   1318   test -z "$ac_dir" && ac_dir=.
   1319   $as_executable_p "$ac_dir/$ac_word" || continue
   1320 ac_cv_prog_CC="${ac_tool_prefix}cc"
   1321 echo "$as_me:1321: found $ac_dir/$ac_word" >&5
   1322 break
   1323 done
   1324 
   1325 fi
   1326 fi
   1327 CC=$ac_cv_prog_CC
   1328 if test -n "$CC"; then
   1329   echo "$as_me:1329: result: $CC" >&5
   1330 echo "${ECHO_T}$CC" >&6
   1331 else
   1332   echo "$as_me:1332: result: no" >&5
   1333 echo "${ECHO_T}no" >&6
   1334 fi
   1335 
   1336 fi
   1337 if test -z "$ac_cv_prog_CC"; then
   1338   ac_ct_CC=$CC
   1339   # Extract the first word of "cc", so it can be a program name with args.
   1340 set dummy cc; ac_word=$2
   1341 echo "$as_me:1341: checking for $ac_word" >&5
   1342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1343 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1344   echo $ECHO_N "(cached) $ECHO_C" >&6
   1345 else
   1346   if test -n "$ac_ct_CC"; then
   1347   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1348 else
   1349   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1350 ac_dummy="$PATH"
   1351 for ac_dir in $ac_dummy; do
   1352   IFS=$ac_save_IFS
   1353   test -z "$ac_dir" && ac_dir=.
   1354   $as_executable_p "$ac_dir/$ac_word" || continue
   1355 ac_cv_prog_ac_ct_CC="cc"
   1356 echo "$as_me:1356: found $ac_dir/$ac_word" >&5
   1357 break
   1358 done
   1359 
   1360 fi
   1361 fi
   1362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1363 if test -n "$ac_ct_CC"; then
   1364   echo "$as_me:1364: result: $ac_ct_CC" >&5
   1365 echo "${ECHO_T}$ac_ct_CC" >&6
   1366 else
   1367   echo "$as_me:1367: result: no" >&5
   1368 echo "${ECHO_T}no" >&6
   1369 fi
   1370 
   1371   CC=$ac_ct_CC
   1372 else
   1373   CC="$ac_cv_prog_CC"
   1374 fi
   1375 
   1376 fi
   1377 if test -z "$CC"; then
   1378   # Extract the first word of "cc", so it can be a program name with args.
   1379 set dummy cc; ac_word=$2
   1380 echo "$as_me:1380: checking for $ac_word" >&5
   1381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1382 if test "${ac_cv_prog_CC+set}" = set; then
   1383   echo $ECHO_N "(cached) $ECHO_C" >&6
   1384 else
   1385   if test -n "$CC"; then
   1386   ac_cv_prog_CC="$CC" # Let the user override the test.
   1387 else
   1388   ac_prog_rejected=no
   1389   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1390 ac_dummy="$PATH"
   1391 for ac_dir in $ac_dummy; do
   1392   IFS=$ac_save_IFS
   1393   test -z "$ac_dir" && ac_dir=.
   1394   $as_executable_p "$ac_dir/$ac_word" || continue
   1395 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
   1396   ac_prog_rejected=yes
   1397   continue
   1398 fi
   1399 ac_cv_prog_CC="cc"
   1400 echo "$as_me:1400: found $ac_dir/$ac_word" >&5
   1401 break
   1402 done
   1403 
   1404 if test $ac_prog_rejected = yes; then
   1405   # We found a bogon in the path, so make sure we never use it.
   1406   set dummy $ac_cv_prog_CC
   1407   shift
   1408   if test $# != 0; then
   1409     # We chose a different compiler from the bogus one.
   1410     # However, it has the same basename, so the bogon will be chosen
   1411     # first if we set CC to just the basename; use the full file name.
   1412     shift
   1413     set dummy "$ac_dir/$ac_word" ${1+"$@"}
   1414     shift
   1415     ac_cv_prog_CC="$@"
   1416   fi
   1417 fi
   1418 fi
   1419 fi
   1420 CC=$ac_cv_prog_CC
   1421 if test -n "$CC"; then
   1422   echo "$as_me:1422: result: $CC" >&5
   1423 echo "${ECHO_T}$CC" >&6
   1424 else
   1425   echo "$as_me:1425: result: no" >&5
   1426 echo "${ECHO_T}no" >&6
   1427 fi
   1428 
   1429 fi
   1430 if test -z "$CC"; then
   1431   if test -n "$ac_tool_prefix"; then
   1432   for ac_prog in cl
   1433   do
   1434     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   1435 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   1436 echo "$as_me:1436: checking for $ac_word" >&5
   1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1438 if test "${ac_cv_prog_CC+set}" = set; then
   1439   echo $ECHO_N "(cached) $ECHO_C" >&6
   1440 else
   1441   if test -n "$CC"; then
   1442   ac_cv_prog_CC="$CC" # Let the user override the test.
   1443 else
   1444   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1445 ac_dummy="$PATH"
   1446 for ac_dir in $ac_dummy; do
   1447   IFS=$ac_save_IFS
   1448   test -z "$ac_dir" && ac_dir=.
   1449   $as_executable_p "$ac_dir/$ac_word" || continue
   1450 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   1451 echo "$as_me:1451: found $ac_dir/$ac_word" >&5
   1452 break
   1453 done
   1454 
   1455 fi
   1456 fi
   1457 CC=$ac_cv_prog_CC
   1458 if test -n "$CC"; then
   1459   echo "$as_me:1459: result: $CC" >&5
   1460 echo "${ECHO_T}$CC" >&6
   1461 else
   1462   echo "$as_me:1462: result: no" >&5
   1463 echo "${ECHO_T}no" >&6
   1464 fi
   1465 
   1466     test -n "$CC" && break
   1467   done
   1468 fi
   1469 if test -z "$CC"; then
   1470   ac_ct_CC=$CC
   1471   for ac_prog in cl
   1472 do
   1473   # Extract the first word of "$ac_prog", so it can be a program name with args.
   1474 set dummy $ac_prog; ac_word=$2
   1475 echo "$as_me:1475: checking for $ac_word" >&5
   1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1478   echo $ECHO_N "(cached) $ECHO_C" >&6
   1479 else
   1480   if test -n "$ac_ct_CC"; then
   1481   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1482 else
   1483   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1484 ac_dummy="$PATH"
   1485 for ac_dir in $ac_dummy; do
   1486   IFS=$ac_save_IFS
   1487   test -z "$ac_dir" && ac_dir=.
   1488   $as_executable_p "$ac_dir/$ac_word" || continue
   1489 ac_cv_prog_ac_ct_CC="$ac_prog"
   1490 echo "$as_me:1490: found $ac_dir/$ac_word" >&5
   1491 break
   1492 done
   1493 
   1494 fi
   1495 fi
   1496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1497 if test -n "$ac_ct_CC"; then
   1498   echo "$as_me:1498: result: $ac_ct_CC" >&5
   1499 echo "${ECHO_T}$ac_ct_CC" >&6
   1500 else
   1501   echo "$as_me:1501: result: no" >&5
   1502 echo "${ECHO_T}no" >&6
   1503 fi
   1504 
   1505   test -n "$ac_ct_CC" && break
   1506 done
   1507 
   1508   CC=$ac_ct_CC
   1509 fi
   1510 
   1511 fi
   1512 
   1513 test -z "$CC" && { { echo "$as_me:1513: error: no acceptable cc found in \$PATH" >&5
   1514 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
   1515    { (exit 1); exit 1; }; }
   1516 
   1517 # Provide some information about the compiler.
   1518 echo "$as_me:1518:" \
   1519      "checking for C compiler version" >&5
   1520 ac_compiler=`set X $ac_compile; echo $2`
   1521 { (eval echo "$as_me:1521: \"$ac_compiler --version </dev/null >&5\"") >&5
   1522   (eval $ac_compiler --version </dev/null >&5) 2>&5
   1523   ac_status=$?
   1524   echo "$as_me:1524: \$? = $ac_status" >&5
   1525   (exit $ac_status); }
   1526 { (eval echo "$as_me:1526: \"$ac_compiler -v </dev/null >&5\"") >&5
   1527   (eval $ac_compiler -v </dev/null >&5) 2>&5
   1528   ac_status=$?
   1529   echo "$as_me:1529: \$? = $ac_status" >&5
   1530   (exit $ac_status); }
   1531 { (eval echo "$as_me:1531: \"$ac_compiler -V </dev/null >&5\"") >&5
   1532   (eval $ac_compiler -V </dev/null >&5) 2>&5
   1533   ac_status=$?
   1534   echo "$as_me:1534: \$? = $ac_status" >&5
   1535   (exit $ac_status); }
   1536 
   1537 cat >conftest.$ac_ext <<_ACEOF
   1538 #line 1538 "configure"
   1539 #include "confdefs.h"
   1540 
   1541 int
   1542 main (void)
   1543 {
   1544 
   1545   ;
   1546   return 0;
   1547 }
   1548 _ACEOF
   1549 ac_clean_files_save=$ac_clean_files
   1550 ac_clean_files="$ac_clean_files a.out a.exe"
   1551 # Try to create an executable without -o first, disregard a.out.
   1552 # It will help us diagnose broken compilers, and finding out an intuition
   1553 # of exeext.
   1554 echo "$as_me:1554: checking for C compiler default output" >&5
   1555 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
   1556 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   1557 if { (eval echo "$as_me:1557: \"$ac_link_default\"") >&5
   1558   (eval $ac_link_default) 2>&5
   1559   ac_status=$?
   1560   echo "$as_me:1560: \$? = $ac_status" >&5
   1561   (exit $ac_status); }; then
   1562   # Find the output, starting from the most likely.  This scheme is
   1563 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
   1564 # resort.
   1565 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
   1566                 ls a.out conftest 2>/dev/null;
   1567                 ls a.* conftest.* 2>/dev/null`; do
   1568   case $ac_file in
   1569     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   1570     a.out ) # We found the default executable, but exeext='' is most
   1571             # certainly right.
   1572             break;;
   1573     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   1574           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
   1575           export ac_cv_exeext
   1576           break;;
   1577     * ) break;;
   1578   esac
   1579 done
   1580 else
   1581   echo "$as_me: failed program was:" >&5
   1582 cat conftest.$ac_ext >&5
   1583 { { echo "$as_me:1583: error: C compiler cannot create executables" >&5
   1584 echo "$as_me: error: C compiler cannot create executables" >&2;}
   1585    { (exit 77); exit 77; }; }
   1586 fi
   1587 
   1588 ac_exeext=$ac_cv_exeext
   1589 echo "$as_me:1589: result: $ac_file" >&5
   1590 echo "${ECHO_T}$ac_file" >&6
   1591 
   1592 # Check the compiler produces executables we can run.  If not, either
   1593 # the compiler is broken, or we cross compile.
   1594 echo "$as_me:1594: checking whether the C compiler works" >&5
   1595 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
   1596 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
   1597 # If not cross compiling, check that we can run a simple program.
   1598 if test "$cross_compiling" != yes; then
   1599   if { ac_try='./$ac_file'
   1600   { (eval echo "$as_me:1600: \"$ac_try\"") >&5
   1601   (eval $ac_try) 2>&5
   1602   ac_status=$?
   1603   echo "$as_me:1603: \$? = $ac_status" >&5
   1604   (exit $ac_status); }; }; then
   1605     cross_compiling=no
   1606   else
   1607     if test "$cross_compiling" = maybe; then
   1608 	cross_compiling=yes
   1609     else
   1610 	{ { echo "$as_me:1610: error: cannot run C compiled programs.
   1611 If you meant to cross compile, use \`--host'." >&5
   1612 echo "$as_me: error: cannot run C compiled programs.
   1613 If you meant to cross compile, use \`--host'." >&2;}
   1614    { (exit 1); exit 1; }; }
   1615     fi
   1616   fi
   1617 fi
   1618 echo "$as_me:1618: result: yes" >&5
   1619 echo "${ECHO_T}yes" >&6
   1620 
   1621 rm -f a.out a.exe conftest$ac_cv_exeext
   1622 ac_clean_files=$ac_clean_files_save
   1623 # Check the compiler produces executables we can run.  If not, either
   1624 # the compiler is broken, or we cross compile.
   1625 echo "$as_me:1625: checking whether we are cross compiling" >&5
   1626 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
   1627 echo "$as_me:1627: result: $cross_compiling" >&5
   1628 echo "${ECHO_T}$cross_compiling" >&6
   1629 
   1630 echo "$as_me:1630: checking for executable suffix" >&5
   1631 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
   1632 if { (eval echo "$as_me:1632: \"$ac_link\"") >&5
   1633   (eval $ac_link) 2>&5
   1634   ac_status=$?
   1635   echo "$as_me:1635: \$? = $ac_status" >&5
   1636   (exit $ac_status); }; then
   1637   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   1638 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   1639 # work properly (i.e., refer to `conftest.exe'), while it won't with
   1640 # `rm'.
   1641 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
   1642   case $ac_file in
   1643     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   1644     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   1645           export ac_cv_exeext
   1646           break;;
   1647     * ) break;;
   1648   esac
   1649 done
   1650 else
   1651   { { echo "$as_me:1651: error: cannot compute EXEEXT: cannot compile and link" >&5
   1652 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
   1653    { (exit 1); exit 1; }; }
   1654 fi
   1655 
   1656 rm -f conftest$ac_cv_exeext
   1657 echo "$as_me:1657: result: $ac_cv_exeext" >&5
   1658 echo "${ECHO_T}$ac_cv_exeext" >&6
   1659 
   1660 rm -f conftest.$ac_ext
   1661 EXEEXT=$ac_cv_exeext
   1662 ac_exeext=$EXEEXT
   1663 echo "$as_me:1663: checking for object suffix" >&5
   1664 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
   1665 if test "${ac_cv_objext+set}" = set; then
   1666   echo $ECHO_N "(cached) $ECHO_C" >&6
   1667 else
   1668   cat >conftest.$ac_ext <<_ACEOF
   1669 #line 1669 "configure"
   1670 #include "confdefs.h"
   1671 
   1672 int
   1673 main (void)
   1674 {
   1675 
   1676   ;
   1677   return 0;
   1678 }
   1679 _ACEOF
   1680 rm -f conftest.o conftest.obj
   1681 if { (eval echo "$as_me:1681: \"$ac_compile\"") >&5
   1682   (eval $ac_compile) 2>&5
   1683   ac_status=$?
   1684   echo "$as_me:1684: \$? = $ac_status" >&5
   1685   (exit $ac_status); }; then
   1686   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
   1687   case $ac_file in
   1688     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
   1689     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   1690        break;;
   1691   esac
   1692 done
   1693 else
   1694   echo "$as_me: failed program was:" >&5
   1695 cat conftest.$ac_ext >&5
   1696 { { echo "$as_me:1696: error: cannot compute OBJEXT: cannot compile" >&5
   1697 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
   1698    { (exit 1); exit 1; }; }
   1699 fi
   1700 
   1701 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   1702 fi
   1703 echo "$as_me:1703: result: $ac_cv_objext" >&5
   1704 echo "${ECHO_T}$ac_cv_objext" >&6
   1705 OBJEXT=$ac_cv_objext
   1706 ac_objext=$OBJEXT
   1707 echo "$as_me:1707: checking whether we are using the GNU C compiler" >&5
   1708 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
   1709 if test "${ac_cv_c_compiler_gnu+set}" = set; then
   1710   echo $ECHO_N "(cached) $ECHO_C" >&6
   1711 else
   1712   cat >conftest.$ac_ext <<_ACEOF
   1713 #line 1713 "configure"
   1714 #include "confdefs.h"
   1715 
   1716 int
   1717 main (void)
   1718 {
   1719 #ifndef __GNUC__
   1720        choke me
   1721 #endif
   1722 
   1723   ;
   1724   return 0;
   1725 }
   1726 _ACEOF
   1727 rm -f conftest.$ac_objext
   1728 if { (eval echo "$as_me:1728: \"$ac_compile\"") >&5
   1729   (eval $ac_compile) 2>&5
   1730   ac_status=$?
   1731   echo "$as_me:1731: \$? = $ac_status" >&5
   1732   (exit $ac_status); } &&
   1733          { ac_try='test -s conftest.$ac_objext'
   1734   { (eval echo "$as_me:1734: \"$ac_try\"") >&5
   1735   (eval $ac_try) 2>&5
   1736   ac_status=$?
   1737   echo "$as_me:1737: \$? = $ac_status" >&5
   1738   (exit $ac_status); }; }; then
   1739   ac_compiler_gnu=yes
   1740 else
   1741   echo "$as_me: failed program was:" >&5
   1742 cat conftest.$ac_ext >&5
   1743 ac_compiler_gnu=no
   1744 fi
   1745 rm -f conftest.$ac_objext conftest.$ac_ext
   1746 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   1747 
   1748 fi
   1749 echo "$as_me:1749: result: $ac_cv_c_compiler_gnu" >&5
   1750 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
   1751 GCC=`test $ac_compiler_gnu = yes && echo yes`
   1752 ac_test_CFLAGS=${CFLAGS+set}
   1753 ac_save_CFLAGS=$CFLAGS
   1754 CFLAGS="-g"
   1755 echo "$as_me:1755: checking whether $CC accepts -g" >&5
   1756 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
   1757 if test "${ac_cv_prog_cc_g+set}" = set; then
   1758   echo $ECHO_N "(cached) $ECHO_C" >&6
   1759 else
   1760   cat >conftest.$ac_ext <<_ACEOF
   1761 #line 1761 "configure"
   1762 #include "confdefs.h"
   1763 
   1764 int
   1765 main (void)
   1766 {
   1767 
   1768   ;
   1769   return 0;
   1770 }
   1771 _ACEOF
   1772 rm -f conftest.$ac_objext
   1773 if { (eval echo "$as_me:1773: \"$ac_compile\"") >&5
   1774   (eval $ac_compile) 2>&5
   1775   ac_status=$?
   1776   echo "$as_me:1776: \$? = $ac_status" >&5
   1777   (exit $ac_status); } &&
   1778          { ac_try='test -s conftest.$ac_objext'
   1779   { (eval echo "$as_me:1779: \"$ac_try\"") >&5
   1780   (eval $ac_try) 2>&5
   1781   ac_status=$?
   1782   echo "$as_me:1782: \$? = $ac_status" >&5
   1783   (exit $ac_status); }; }; then
   1784   ac_cv_prog_cc_g=yes
   1785 else
   1786   echo "$as_me: failed program was:" >&5
   1787 cat conftest.$ac_ext >&5
   1788 ac_cv_prog_cc_g=no
   1789 fi
   1790 rm -f conftest.$ac_objext conftest.$ac_ext
   1791 fi
   1792 echo "$as_me:1792: result: $ac_cv_prog_cc_g" >&5
   1793 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
   1794 if test "$ac_test_CFLAGS" = set; then
   1795   CFLAGS=$ac_save_CFLAGS
   1796 elif test $ac_cv_prog_cc_g = yes; then
   1797   if test "$GCC" = yes; then
   1798     CFLAGS="-g -O2"
   1799   else
   1800     CFLAGS="-g"
   1801   fi
   1802 else
   1803   if test "$GCC" = yes; then
   1804     CFLAGS="-O2"
   1805   else
   1806     CFLAGS=
   1807   fi
   1808 fi
   1809 # Some people use a C++ compiler to compile C.  Since we use `exit',
   1810 # in C++ we need to declare it.  In case someone uses the same compiler
   1811 # for both compiling C and C++ we need to have the C++ compiler decide
   1812 # the declaration of exit, since it's the most demanding environment.
   1813 cat >conftest.$ac_ext <<_ACEOF
   1814 #ifndef __cplusplus
   1815   choke me
   1816 #endif
   1817 _ACEOF
   1818 rm -f conftest.$ac_objext
   1819 if { (eval echo "$as_me:1819: \"$ac_compile\"") >&5
   1820   (eval $ac_compile) 2>&5
   1821   ac_status=$?
   1822   echo "$as_me:1822: \$? = $ac_status" >&5
   1823   (exit $ac_status); } &&
   1824          { ac_try='test -s conftest.$ac_objext'
   1825   { (eval echo "$as_me:1825: \"$ac_try\"") >&5
   1826   (eval $ac_try) 2>&5
   1827   ac_status=$?
   1828   echo "$as_me:1828: \$? = $ac_status" >&5
   1829   (exit $ac_status); }; }; then
   1830   for ac_declaration in \
   1831    ''\
   1832    '#include <stdlib.h>' \
   1833    'extern "C" void std::exit (int) throw (); using std::exit;' \
   1834    'extern "C" void std::exit (int); using std::exit;' \
   1835    'extern "C" void exit (int) throw ();' \
   1836    'extern "C" void exit (int);' \
   1837    'void exit (int);'
   1838 do
   1839   cat >conftest.$ac_ext <<_ACEOF
   1840 #line 1840 "configure"
   1841 #include "confdefs.h"
   1842 #include <stdlib.h>
   1843 $ac_declaration
   1844 int
   1845 main (void)
   1846 {
   1847 exit (42);
   1848   ;
   1849   return 0;
   1850 }
   1851 _ACEOF
   1852 rm -f conftest.$ac_objext
   1853 if { (eval echo "$as_me:1853: \"$ac_compile\"") >&5
   1854   (eval $ac_compile) 2>&5
   1855   ac_status=$?
   1856   echo "$as_me:1856: \$? = $ac_status" >&5
   1857   (exit $ac_status); } &&
   1858          { ac_try='test -s conftest.$ac_objext'
   1859   { (eval echo "$as_me:1859: \"$ac_try\"") >&5
   1860   (eval $ac_try) 2>&5
   1861   ac_status=$?
   1862   echo "$as_me:1862: \$? = $ac_status" >&5
   1863   (exit $ac_status); }; }; then
   1864   :
   1865 else
   1866   echo "$as_me: failed program was:" >&5
   1867 cat conftest.$ac_ext >&5
   1868 continue
   1869 fi
   1870 rm -f conftest.$ac_objext conftest.$ac_ext
   1871   cat >conftest.$ac_ext <<_ACEOF
   1872 #line 1872 "configure"
   1873 #include "confdefs.h"
   1874 $ac_declaration
   1875 int
   1876 main (void)
   1877 {
   1878 exit (42);
   1879   ;
   1880   return 0;
   1881 }
   1882 _ACEOF
   1883 rm -f conftest.$ac_objext
   1884 if { (eval echo "$as_me:1884: \"$ac_compile\"") >&5
   1885   (eval $ac_compile) 2>&5
   1886   ac_status=$?
   1887   echo "$as_me:1887: \$? = $ac_status" >&5
   1888   (exit $ac_status); } &&
   1889          { ac_try='test -s conftest.$ac_objext'
   1890   { (eval echo "$as_me:1890: \"$ac_try\"") >&5
   1891   (eval $ac_try) 2>&5
   1892   ac_status=$?
   1893   echo "$as_me:1893: \$? = $ac_status" >&5
   1894   (exit $ac_status); }; }; then
   1895   break
   1896 else
   1897   echo "$as_me: failed program was:" >&5
   1898 cat conftest.$ac_ext >&5
   1899 fi
   1900 rm -f conftest.$ac_objext conftest.$ac_ext
   1901 done
   1902 rm -rf conftest*
   1903 if test -n "$ac_declaration"; then
   1904   echo '#ifdef __cplusplus' >>confdefs.h
   1905   echo $ac_declaration      >>confdefs.h
   1906   echo '#endif'             >>confdefs.h
   1907 fi
   1908 
   1909 else
   1910   echo "$as_me: failed program was:" >&5
   1911 cat conftest.$ac_ext >&5
   1912 fi
   1913 rm -f conftest.$ac_objext conftest.$ac_ext
   1914 ac_ext=c
   1915 ac_cpp='$CPP $CPPFLAGS'
   1916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1919 ac_main_return=return
   1920 
   1921 GCC_VERSION=none
   1922 if test "$GCC" = yes ; then
   1923 	echo "$as_me:1923: checking version of $CC" >&5
   1924 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
   1925 	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.].*//'`"
   1926 	test -z "$GCC_VERSION" && GCC_VERSION=unknown
   1927 	echo "$as_me:1927: result: $GCC_VERSION" >&5
   1928 echo "${ECHO_T}$GCC_VERSION" >&6
   1929 fi
   1930 
   1931 echo "$as_me:1931: checking for $CC option to accept ANSI C" >&5
   1932 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
   1933 if test "${ac_cv_prog_cc_stdc+set}" = set; then
   1934   echo $ECHO_N "(cached) $ECHO_C" >&6
   1935 else
   1936   ac_cv_prog_cc_stdc=no
   1937 ac_save_CC=$CC
   1938 cat >conftest.$ac_ext <<_ACEOF
   1939 #line 1939 "configure"
   1940 #include "confdefs.h"
   1941 #include <stdarg.h>
   1942 #include <stdio.h>
   1943 #include <sys/types.h>
   1944 #include <sys/stat.h>
   1945 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   1946 struct buf { int x; };
   1947 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   1948 static char *e (p, i)
   1949      char **p;
   1950      int i;
   1951 {
   1952   return p[i];
   1953 }
   1954 static char *f (char * (*g) (char **, int), char **p, ...)
   1955 {
   1956   char *s;
   1957   va_list v;
   1958   va_start (v,p);
   1959   s = g (p, va_arg (v,int));
   1960   va_end (v);
   1961   return s;
   1962 }
   1963 int test (int i, double x);
   1964 struct s1 {int (*f) (int a);};
   1965 struct s2 {int (*f) (double a);};
   1966 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   1967 int argc;
   1968 char **argv;
   1969 int
   1970 main (void)
   1971 {
   1972 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   1973   ;
   1974   return 0;
   1975 }
   1976 _ACEOF
   1977 # Don't try gcc -ansi; that turns off useful extensions and
   1978 # breaks some systems' header files.
   1979 # AIX			-qlanglvl=ansi
   1980 # Ultrix and OSF/1	-std1
   1981 # HP-UX 10.20 and later	-Ae
   1982 # HP-UX older versions	-Aa -D_HPUX_SOURCE
   1983 # SVR4			-Xc -D__EXTENSIONS__
   1984 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   1985 do
   1986   CC="$ac_save_CC $ac_arg"
   1987   rm -f conftest.$ac_objext
   1988 if { (eval echo "$as_me:1988: \"$ac_compile\"") >&5
   1989   (eval $ac_compile) 2>&5
   1990   ac_status=$?
   1991   echo "$as_me:1991: \$? = $ac_status" >&5
   1992   (exit $ac_status); } &&
   1993          { ac_try='test -s conftest.$ac_objext'
   1994   { (eval echo "$as_me:1994: \"$ac_try\"") >&5
   1995   (eval $ac_try) 2>&5
   1996   ac_status=$?
   1997   echo "$as_me:1997: \$? = $ac_status" >&5
   1998   (exit $ac_status); }; }; then
   1999   ac_cv_prog_cc_stdc=$ac_arg
   2000 break
   2001 else
   2002   echo "$as_me: failed program was:" >&5
   2003 cat conftest.$ac_ext >&5
   2004 fi
   2005 rm -f conftest.$ac_objext
   2006 done
   2007 rm -f conftest.$ac_ext conftest.$ac_objext
   2008 CC=$ac_save_CC
   2009 
   2010 fi
   2011 
   2012 case "x$ac_cv_prog_cc_stdc" in
   2013   x|xno)
   2014     echo "$as_me:2014: result: none needed" >&5
   2015 echo "${ECHO_T}none needed" >&6 ;;
   2016   *)
   2017     echo "$as_me:2017: result: $ac_cv_prog_cc_stdc" >&5
   2018 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
   2019     CC="$CC $ac_cv_prog_cc_stdc" ;;
   2020 esac
   2021 
   2022 # This should have been defined by AC_PROG_CC
   2023 : ${CC:=cc}
   2024 
   2025 echo "$as_me:2025: checking \$CC variable" >&5
   2026 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
   2027 case "$CC" in
   2028 (*[\ \	]-*)
   2029 	echo "$as_me:2029: result: broken" >&5
   2030 echo "${ECHO_T}broken" >&6
   2031 	{ echo "$as_me:2031: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
   2032 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
   2033 	# humor him...
   2034 	cf_prog=`echo "$CC" | sed -e 's/	/ /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
   2035 	cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
   2036 	CC="$cf_prog"
   2037 	for cf_arg in $cf_flags
   2038 	do
   2039 		case "x$cf_arg" in
   2040 		(x-[IUDfgOW]*)
   2041 
   2042 cf_fix_cppflags=no
   2043 cf_new_cflags=
   2044 cf_new_cppflags=
   2045 cf_new_extra_cppflags=
   2046 
   2047 for cf_add_cflags in $cf_arg
   2048 do
   2049 case $cf_fix_cppflags in
   2050 (no)
   2051 	case $cf_add_cflags in
   2052 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   2053 		case $cf_add_cflags in
   2054 		(-D*)
   2055 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   2056 
   2057 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   2058 				&& test -z "${cf_tst_cflags}" \
   2059 				&& cf_fix_cppflags=yes
   2060 
   2061 			if test $cf_fix_cppflags = yes ; then
   2062 
   2063 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2064 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2065 
   2066 				continue
   2067 			elif test "${cf_tst_cflags}" = "\"'" ; then
   2068 
   2069 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2070 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2071 
   2072 				continue
   2073 			fi
   2074 			;;
   2075 		esac
   2076 		case "$CPPFLAGS" in
   2077 		(*$cf_add_cflags)
   2078 			;;
   2079 		(*)
   2080 			case $cf_add_cflags in
   2081 			(-D*)
   2082 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   2083 
   2084 CPPFLAGS=`echo "$CPPFLAGS" | \
   2085 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   2086 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   2087 
   2088 				;;
   2089 			esac
   2090 
   2091 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   2092 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   2093 
   2094 			;;
   2095 		esac
   2096 		;;
   2097 	(*)
   2098 
   2099 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   2100 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   2101 
   2102 		;;
   2103 	esac
   2104 	;;
   2105 (yes)
   2106 
   2107 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2108 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2109 
   2110 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   2111 
   2112 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   2113 		&& test -z "${cf_tst_cflags}" \
   2114 		&& cf_fix_cppflags=no
   2115 	;;
   2116 esac
   2117 done
   2118 
   2119 if test -n "$cf_new_cflags" ; then
   2120 
   2121 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   2122 	CFLAGS="${CFLAGS}$cf_new_cflags"
   2123 
   2124 fi
   2125 
   2126 if test -n "$cf_new_cppflags" ; then
   2127 
   2128 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   2129 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   2130 
   2131 fi
   2132 
   2133 if test -n "$cf_new_extra_cppflags" ; then
   2134 
   2135 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   2136 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   2137 
   2138 fi
   2139 
   2140 			;;
   2141 		(*)
   2142 			CC="$CC $cf_arg"
   2143 			;;
   2144 		esac
   2145 	done
   2146 	test -n "$verbose" && echo "	resulting CC: '$CC'" 1>&6
   2147 
   2148 echo "${as_me:-configure}:2148: testing resulting CC: '$CC' ..." 1>&5
   2149 
   2150 	test -n "$verbose" && echo "	resulting CFLAGS: '$CFLAGS'" 1>&6
   2151 
   2152 echo "${as_me:-configure}:2152: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
   2153 
   2154 	test -n "$verbose" && echo "	resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
   2155 
   2156 echo "${as_me:-configure}:2156: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
   2157 
   2158 	;;
   2159 (*)
   2160 	echo "$as_me:2160: result: ok" >&5
   2161 echo "${ECHO_T}ok" >&6
   2162 	;;
   2163 esac
   2164 
   2165 ac_ext=c
   2166 ac_cpp='$CPP $CPPFLAGS'
   2167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2170 ac_main_return=return
   2171 echo "$as_me:2171: checking how to run the C preprocessor" >&5
   2172 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
   2173 # On Suns, sometimes $CPP names a directory.
   2174 if test -n "$CPP" && test -d "$CPP"; then
   2175   CPP=
   2176 fi
   2177 if test -z "$CPP"; then
   2178   if test "${ac_cv_prog_CPP+set}" = set; then
   2179   echo $ECHO_N "(cached) $ECHO_C" >&6
   2180 else
   2181       # Double quotes because CPP needs to be expanded
   2182     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   2183     do
   2184       ac_preproc_ok=false
   2185 for ac_c_preproc_warn_flag in '' yes
   2186 do
   2187   # Use a header file that comes with gcc, so configuring glibc
   2188   # with a fresh cross-compiler works.
   2189   # On the NeXT, cc -E runs the code through the compiler's parser,
   2190   # not just through cpp. "Syntax error" is here to catch this case.
   2191   cat >conftest.$ac_ext <<_ACEOF
   2192 #line 2192 "configure"
   2193 #include "confdefs.h"
   2194 #include <assert.h>
   2195                      Syntax error
   2196 _ACEOF
   2197 if { (eval echo "$as_me:2197: \"$ac_cpp conftest.$ac_ext\"") >&5
   2198   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   2199   ac_status=$?
   2200   egrep -v '^ *\+' conftest.er1 >conftest.err
   2201   rm -f conftest.er1
   2202   cat conftest.err >&5
   2203   echo "$as_me:2203: \$? = $ac_status" >&5
   2204   (exit $ac_status); } >/dev/null; then
   2205   if test -s conftest.err; then
   2206     ac_cpp_err=$ac_c_preproc_warn_flag
   2207   else
   2208     ac_cpp_err=
   2209   fi
   2210 else
   2211   ac_cpp_err=yes
   2212 fi
   2213 if test -z "$ac_cpp_err"; then
   2214   :
   2215 else
   2216   echo "$as_me: failed program was:" >&5
   2217   cat conftest.$ac_ext >&5
   2218   # Broken: fails on valid input.
   2219 continue
   2220 fi
   2221 rm -f conftest.err conftest.$ac_ext
   2222 
   2223   # OK, works on sane cases.  Now check whether non-existent headers
   2224   # can be detected and how.
   2225   cat >conftest.$ac_ext <<_ACEOF
   2226 #line 2226 "configure"
   2227 #include "confdefs.h"
   2228 #include <ac_nonexistent.h>
   2229 _ACEOF
   2230 if { (eval echo "$as_me:2230: \"$ac_cpp conftest.$ac_ext\"") >&5
   2231   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   2232   ac_status=$?
   2233   egrep -v '^ *\+' conftest.er1 >conftest.err
   2234   rm -f conftest.er1
   2235   cat conftest.err >&5
   2236   echo "$as_me:2236: \$? = $ac_status" >&5
   2237   (exit $ac_status); } >/dev/null; then
   2238   if test -s conftest.err; then
   2239     ac_cpp_err=$ac_c_preproc_warn_flag
   2240   else
   2241     ac_cpp_err=
   2242   fi
   2243 else
   2244   ac_cpp_err=yes
   2245 fi
   2246 if test -z "$ac_cpp_err"; then
   2247   # Broken: success on invalid input.
   2248 continue
   2249 else
   2250   echo "$as_me: failed program was:" >&5
   2251   cat conftest.$ac_ext >&5
   2252   # Passes both tests.
   2253 ac_preproc_ok=:
   2254 break
   2255 fi
   2256 rm -f conftest.err conftest.$ac_ext
   2257 
   2258 done
   2259 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   2260 rm -f conftest.err conftest.$ac_ext
   2261 if $ac_preproc_ok; then
   2262   break
   2263 fi
   2264 
   2265     done
   2266     ac_cv_prog_CPP=$CPP
   2267 
   2268 fi
   2269   CPP=$ac_cv_prog_CPP
   2270 else
   2271   ac_cv_prog_CPP=$CPP
   2272 fi
   2273 echo "$as_me:2273: result: $CPP" >&5
   2274 echo "${ECHO_T}$CPP" >&6
   2275 ac_preproc_ok=false
   2276 for ac_c_preproc_warn_flag in '' yes
   2277 do
   2278   # Use a header file that comes with gcc, so configuring glibc
   2279   # with a fresh cross-compiler works.
   2280   # On the NeXT, cc -E runs the code through the compiler's parser,
   2281   # not just through cpp. "Syntax error" is here to catch this case.
   2282   cat >conftest.$ac_ext <<_ACEOF
   2283 #line 2283 "configure"
   2284 #include "confdefs.h"
   2285 #include <assert.h>
   2286                      Syntax error
   2287 _ACEOF
   2288 if { (eval echo "$as_me:2288: \"$ac_cpp conftest.$ac_ext\"") >&5
   2289   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   2290   ac_status=$?
   2291   egrep -v '^ *\+' conftest.er1 >conftest.err
   2292   rm -f conftest.er1
   2293   cat conftest.err >&5
   2294   echo "$as_me:2294: \$? = $ac_status" >&5
   2295   (exit $ac_status); } >/dev/null; then
   2296   if test -s conftest.err; then
   2297     ac_cpp_err=$ac_c_preproc_warn_flag
   2298   else
   2299     ac_cpp_err=
   2300   fi
   2301 else
   2302   ac_cpp_err=yes
   2303 fi
   2304 if test -z "$ac_cpp_err"; then
   2305   :
   2306 else
   2307   echo "$as_me: failed program was:" >&5
   2308   cat conftest.$ac_ext >&5
   2309   # Broken: fails on valid input.
   2310 continue
   2311 fi
   2312 rm -f conftest.err conftest.$ac_ext
   2313 
   2314   # OK, works on sane cases.  Now check whether non-existent headers
   2315   # can be detected and how.
   2316   cat >conftest.$ac_ext <<_ACEOF
   2317 #line 2317 "configure"
   2318 #include "confdefs.h"
   2319 #include <ac_nonexistent.h>
   2320 _ACEOF
   2321 if { (eval echo "$as_me:2321: \"$ac_cpp conftest.$ac_ext\"") >&5
   2322   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   2323   ac_status=$?
   2324   egrep -v '^ *\+' conftest.er1 >conftest.err
   2325   rm -f conftest.er1
   2326   cat conftest.err >&5
   2327   echo "$as_me:2327: \$? = $ac_status" >&5
   2328   (exit $ac_status); } >/dev/null; then
   2329   if test -s conftest.err; then
   2330     ac_cpp_err=$ac_c_preproc_warn_flag
   2331   else
   2332     ac_cpp_err=
   2333   fi
   2334 else
   2335   ac_cpp_err=yes
   2336 fi
   2337 if test -z "$ac_cpp_err"; then
   2338   # Broken: success on invalid input.
   2339 continue
   2340 else
   2341   echo "$as_me: failed program was:" >&5
   2342   cat conftest.$ac_ext >&5
   2343   # Passes both tests.
   2344 ac_preproc_ok=:
   2345 break
   2346 fi
   2347 rm -f conftest.err conftest.$ac_ext
   2348 
   2349 done
   2350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   2351 rm -f conftest.err conftest.$ac_ext
   2352 if $ac_preproc_ok; then
   2353   :
   2354 else
   2355   { { echo "$as_me:2355: error: C preprocessor \"$CPP\" fails sanity check" >&5
   2356 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
   2357    { (exit 1); exit 1; }; }
   2358 fi
   2359 
   2360 ac_ext=c
   2361 ac_cpp='$CPP $CPPFLAGS'
   2362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2365 ac_main_return=return
   2366 
   2367 for ac_prog in mawk gawk nawk awk
   2368 do
   2369   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2370 set dummy $ac_prog; ac_word=$2
   2371 echo "$as_me:2371: checking for $ac_word" >&5
   2372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2373 if test "${ac_cv_prog_AWK+set}" = set; then
   2374   echo $ECHO_N "(cached) $ECHO_C" >&6
   2375 else
   2376   if test -n "$AWK"; then
   2377   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   2378 else
   2379   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2380 ac_dummy="$PATH"
   2381 for ac_dir in $ac_dummy; do
   2382   IFS=$ac_save_IFS
   2383   test -z "$ac_dir" && ac_dir=.
   2384   $as_executable_p "$ac_dir/$ac_word" || continue
   2385 ac_cv_prog_AWK="$ac_prog"
   2386 echo "$as_me:2386: found $ac_dir/$ac_word" >&5
   2387 break
   2388 done
   2389 
   2390 fi
   2391 fi
   2392 AWK=$ac_cv_prog_AWK
   2393 if test -n "$AWK"; then
   2394   echo "$as_me:2394: result: $AWK" >&5
   2395 echo "${ECHO_T}$AWK" >&6
   2396 else
   2397   echo "$as_me:2397: result: no" >&5
   2398 echo "${ECHO_T}no" >&6
   2399 fi
   2400 
   2401   test -n "$AWK" && break
   2402 done
   2403 
   2404 # Find a good install program.  We prefer a C program (faster),
   2405 # so one script is as good as another.  But avoid the broken or
   2406 # incompatible versions:
   2407 # SysV /etc/install, /usr/sbin/install
   2408 # SunOS /usr/etc/install
   2409 # IRIX /sbin/install
   2410 # AIX /bin/install
   2411 # AmigaOS /C/install, which installs bootblocks on floppy discs
   2412 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   2413 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   2414 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   2415 # ./install, which can be erroneously created by make from ./install.sh.
   2416 echo "$as_me:2416: checking for a BSD compatible install" >&5
   2417 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
   2418 if test -z "$INSTALL"; then
   2419 if test "${ac_cv_path_install+set}" = set; then
   2420   echo $ECHO_N "(cached) $ECHO_C" >&6
   2421 else
   2422     ac_save_IFS=$IFS; IFS=$ac_path_separator
   2423   for ac_dir in $PATH; do
   2424     IFS=$ac_save_IFS
   2425     # Account for people who put trailing slashes in PATH elements.
   2426     case $ac_dir/ in
   2427     / | ./ | .// | /cC/* \
   2428     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
   2429     | /usr/ucb/* ) ;;
   2430     *)
   2431       # OSF1 and SCO ODT 3.0 have their own names for install.
   2432       # Don't use installbsd from OSF since it installs stuff as root
   2433       # by default.
   2434       for ac_prog in ginstall scoinst install; do
   2435         if $as_executable_p "$ac_dir/$ac_prog"; then
   2436 	  if test $ac_prog = install &&
   2437             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
   2438 	    # AIX install.  It has an incompatible calling convention.
   2439 	    :
   2440 	  elif test $ac_prog = install &&
   2441 	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
   2442 	    # program-specific install script used by HP pwplus--don't use.
   2443 	    :
   2444 	  else
   2445 	    ac_cv_path_install="$ac_dir/$ac_prog -c"
   2446 	    break 2
   2447 	  fi
   2448 	fi
   2449       done
   2450       ;;
   2451     esac
   2452   done
   2453 
   2454 fi
   2455   if test "${ac_cv_path_install+set}" = set; then
   2456     INSTALL=$ac_cv_path_install
   2457   else
   2458     # As a last resort, use the slow shell script.  We don't cache a
   2459     # path for INSTALL within a source directory, because that will
   2460     # break other packages using the cache if that directory is
   2461     # removed, or if the path is relative.
   2462     INSTALL=$ac_install_sh
   2463   fi
   2464 fi
   2465 echo "$as_me:2465: result: $INSTALL" >&5
   2466 echo "${ECHO_T}$INSTALL" >&6
   2467 
   2468 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   2469 # It thinks the first close brace ends the variable substitution.
   2470 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   2471 
   2472 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   2473 
   2474 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   2475 
   2476 echo "$as_me:2476: checking whether ln -s works" >&5
   2477 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
   2478 LN_S=$as_ln_s
   2479 if test "$LN_S" = "ln -s"; then
   2480   echo "$as_me:2480: result: yes" >&5
   2481 echo "${ECHO_T}yes" >&6
   2482 else
   2483   echo "$as_me:2483: result: no, using $LN_S" >&5
   2484 echo "${ECHO_T}no, using $LN_S" >&6
   2485 fi
   2486 
   2487 test "$program_prefix" != NONE &&
   2488   program_transform_name="s,^,$program_prefix,;$program_transform_name"
   2489 # Use a double $ so make ignores it.
   2490 test "$program_suffix" != NONE &&
   2491   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
   2492 # Double any \ or $.  echo might interpret backslashes.
   2493 # By default was `s,x,x', remove it if useless.
   2494 cat <<\_ACEOF >conftest.sed
   2495 s/[\\$]/&&/g;s/;s,x,x,$//
   2496 _ACEOF
   2497 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
   2498 rm conftest.sed
   2499 
   2500 for ac_prog in lint cppcheck splint
   2501 do
   2502   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2503 set dummy $ac_prog; ac_word=$2
   2504 echo "$as_me:2504: checking for $ac_word" >&5
   2505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2506 if test "${ac_cv_prog_LINT+set}" = set; then
   2507   echo $ECHO_N "(cached) $ECHO_C" >&6
   2508 else
   2509   if test -n "$LINT"; then
   2510   ac_cv_prog_LINT="$LINT" # Let the user override the test.
   2511 else
   2512   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2513 ac_dummy="$PATH"
   2514 for ac_dir in $ac_dummy; do
   2515   IFS=$ac_save_IFS
   2516   test -z "$ac_dir" && ac_dir=.
   2517   $as_executable_p "$ac_dir/$ac_word" || continue
   2518 ac_cv_prog_LINT="$ac_prog"
   2519 echo "$as_me:2519: found $ac_dir/$ac_word" >&5
   2520 break
   2521 done
   2522 
   2523 fi
   2524 fi
   2525 LINT=$ac_cv_prog_LINT
   2526 if test -n "$LINT"; then
   2527   echo "$as_me:2527: result: $LINT" >&5
   2528 echo "${ECHO_T}$LINT" >&6
   2529 else
   2530   echo "$as_me:2530: result: no" >&5
   2531 echo "${ECHO_T}no" >&6
   2532 fi
   2533 
   2534   test -n "$LINT" && break
   2535 done
   2536 
   2537 ###	checks for compiler characteristics
   2538 
   2539 cf_XOPEN_SOURCE=700
   2540 cf_POSIX_C_SOURCE=199506L
   2541 cf_xopen_source=
   2542 
   2543 case $host_os in
   2544 (aix[4-7]*)
   2545 	cf_xopen_source="-D_ALL_SOURCE"
   2546 	;;
   2547 (msys)
   2548 	cf_XOPEN_SOURCE=600
   2549 	;;
   2550 (darwin[0-8].*)
   2551 	cf_xopen_source="-D_APPLE_C_SOURCE"
   2552 	;;
   2553 (darwin*)
   2554 	cf_xopen_source="-D_DARWIN_C_SOURCE"
   2555 	cf_XOPEN_SOURCE=
   2556 	;;
   2557 (freebsd*|dragonfly*)
   2558 	# 5.x headers associate
   2559 	#	_XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
   2560 	#	_XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
   2561 	cf_POSIX_C_SOURCE=200112L
   2562 	cf_XOPEN_SOURCE=600
   2563 	cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
   2564 	;;
   2565 (hpux11*)
   2566 	cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
   2567 	;;
   2568 (hpux*)
   2569 	cf_xopen_source="-D_HPUX_SOURCE"
   2570 	;;
   2571 (irix[56].*)
   2572 	cf_xopen_source="-D_SGI_SOURCE"
   2573 	cf_XOPEN_SOURCE=
   2574 	;;
   2575 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
   2576 
   2577 echo "$as_me:2577: checking if we must define _GNU_SOURCE" >&5
   2578 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
   2579 if test "${cf_cv_gnu_source+set}" = set; then
   2580   echo $ECHO_N "(cached) $ECHO_C" >&6
   2581 else
   2582 
   2583 cat >conftest.$ac_ext <<_ACEOF
   2584 #line 2584 "configure"
   2585 #include "confdefs.h"
   2586 #include <sys/types.h>
   2587 int
   2588 main (void)
   2589 {
   2590 
   2591 #ifndef _XOPEN_SOURCE
   2592 make an error
   2593 #endif
   2594   ;
   2595   return 0;
   2596 }
   2597 _ACEOF
   2598 rm -f conftest.$ac_objext
   2599 if { (eval echo "$as_me:2599: \"$ac_compile\"") >&5
   2600   (eval $ac_compile) 2>&5
   2601   ac_status=$?
   2602   echo "$as_me:2602: \$? = $ac_status" >&5
   2603   (exit $ac_status); } &&
   2604          { ac_try='test -s conftest.$ac_objext'
   2605   { (eval echo "$as_me:2605: \"$ac_try\"") >&5
   2606   (eval $ac_try) 2>&5
   2607   ac_status=$?
   2608   echo "$as_me:2608: \$? = $ac_status" >&5
   2609   (exit $ac_status); }; }; then
   2610   cf_cv_gnu_source=no
   2611 else
   2612   echo "$as_me: failed program was:" >&5
   2613 cat conftest.$ac_ext >&5
   2614 cf_save="$CPPFLAGS"
   2615 	 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
   2616 	 cat >conftest.$ac_ext <<_ACEOF
   2617 #line 2617 "configure"
   2618 #include "confdefs.h"
   2619 #include <sys/types.h>
   2620 int
   2621 main (void)
   2622 {
   2623 
   2624 #ifdef _XOPEN_SOURCE
   2625 make an error
   2626 #endif
   2627   ;
   2628   return 0;
   2629 }
   2630 _ACEOF
   2631 rm -f conftest.$ac_objext
   2632 if { (eval echo "$as_me:2632: \"$ac_compile\"") >&5
   2633   (eval $ac_compile) 2>&5
   2634   ac_status=$?
   2635   echo "$as_me:2635: \$? = $ac_status" >&5
   2636   (exit $ac_status); } &&
   2637          { ac_try='test -s conftest.$ac_objext'
   2638   { (eval echo "$as_me:2638: \"$ac_try\"") >&5
   2639   (eval $ac_try) 2>&5
   2640   ac_status=$?
   2641   echo "$as_me:2641: \$? = $ac_status" >&5
   2642   (exit $ac_status); }; }; then
   2643   cf_cv_gnu_source=no
   2644 else
   2645   echo "$as_me: failed program was:" >&5
   2646 cat conftest.$ac_ext >&5
   2647 cf_cv_gnu_source=yes
   2648 fi
   2649 rm -f conftest.$ac_objext conftest.$ac_ext
   2650 	CPPFLAGS="$cf_save"
   2651 
   2652 fi
   2653 rm -f conftest.$ac_objext conftest.$ac_ext
   2654 
   2655 fi
   2656 echo "$as_me:2656: result: $cf_cv_gnu_source" >&5
   2657 echo "${ECHO_T}$cf_cv_gnu_source" >&6
   2658 
   2659 if test "$cf_cv_gnu_source" = yes
   2660 then
   2661 echo "$as_me:2661: checking if we should also define _DEFAULT_SOURCE" >&5
   2662 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
   2663 if test "${cf_cv_default_source+set}" = set; then
   2664   echo $ECHO_N "(cached) $ECHO_C" >&6
   2665 else
   2666 
   2667 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
   2668 	cat >conftest.$ac_ext <<_ACEOF
   2669 #line 2669 "configure"
   2670 #include "confdefs.h"
   2671 #include <sys/types.h>
   2672 int
   2673 main (void)
   2674 {
   2675 
   2676 #ifdef _DEFAULT_SOURCE
   2677 make an error
   2678 #endif
   2679   ;
   2680   return 0;
   2681 }
   2682 _ACEOF
   2683 rm -f conftest.$ac_objext
   2684 if { (eval echo "$as_me:2684: \"$ac_compile\"") >&5
   2685   (eval $ac_compile) 2>&5
   2686   ac_status=$?
   2687   echo "$as_me:2687: \$? = $ac_status" >&5
   2688   (exit $ac_status); } &&
   2689          { ac_try='test -s conftest.$ac_objext'
   2690   { (eval echo "$as_me:2690: \"$ac_try\"") >&5
   2691   (eval $ac_try) 2>&5
   2692   ac_status=$?
   2693   echo "$as_me:2693: \$? = $ac_status" >&5
   2694   (exit $ac_status); }; }; then
   2695   cf_cv_default_source=no
   2696 else
   2697   echo "$as_me: failed program was:" >&5
   2698 cat conftest.$ac_ext >&5
   2699 cf_cv_default_source=yes
   2700 fi
   2701 rm -f conftest.$ac_objext conftest.$ac_ext
   2702 
   2703 fi
   2704 echo "$as_me:2704: result: $cf_cv_default_source" >&5
   2705 echo "${ECHO_T}$cf_cv_default_source" >&6
   2706 test "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE"
   2707 fi
   2708 
   2709 	;;
   2710 (minix*)
   2711 	cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
   2712 	;;
   2713 (mirbsd*)
   2714 	# setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
   2715 	cf_XOPEN_SOURCE=
   2716 
   2717 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
   2718 
   2719 cf_save_CFLAGS="$CFLAGS"
   2720 cf_save_CPPFLAGS="$CPPFLAGS"
   2721 
   2722 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
   2723 	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   2724 		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
   2725 
   2726 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
   2727 	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   2728 		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
   2729 
   2730 echo "$as_me:2730: checking if we should define _POSIX_C_SOURCE" >&5
   2731 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
   2732 if test "${cf_cv_posix_c_source+set}" = set; then
   2733   echo $ECHO_N "(cached) $ECHO_C" >&6
   2734 else
   2735 
   2736 echo "${as_me:-configure}:2736: testing if the symbol is already defined go no further ..." 1>&5
   2737 
   2738 	cat >conftest.$ac_ext <<_ACEOF
   2739 #line 2739 "configure"
   2740 #include "confdefs.h"
   2741 #include <sys/types.h>
   2742 int
   2743 main (void)
   2744 {
   2745 
   2746 #ifndef _POSIX_C_SOURCE
   2747 make an error
   2748 #endif
   2749   ;
   2750   return 0;
   2751 }
   2752 _ACEOF
   2753 rm -f conftest.$ac_objext
   2754 if { (eval echo "$as_me:2754: \"$ac_compile\"") >&5
   2755   (eval $ac_compile) 2>&5
   2756   ac_status=$?
   2757   echo "$as_me:2757: \$? = $ac_status" >&5
   2758   (exit $ac_status); } &&
   2759          { ac_try='test -s conftest.$ac_objext'
   2760   { (eval echo "$as_me:2760: \"$ac_try\"") >&5
   2761   (eval $ac_try) 2>&5
   2762   ac_status=$?
   2763   echo "$as_me:2763: \$? = $ac_status" >&5
   2764   (exit $ac_status); }; }; then
   2765   cf_cv_posix_c_source=no
   2766 else
   2767   echo "$as_me: failed program was:" >&5
   2768 cat conftest.$ac_ext >&5
   2769 cf_want_posix_source=no
   2770 	 case .$cf_POSIX_C_SOURCE in
   2771 	 (.[12]??*)
   2772 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   2773 		;;
   2774 	 (.2)
   2775 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   2776 		cf_want_posix_source=yes
   2777 		;;
   2778 	 (.*)
   2779 		cf_want_posix_source=yes
   2780 		;;
   2781 	 esac
   2782 	 if test "$cf_want_posix_source" = yes ; then
   2783 		cat >conftest.$ac_ext <<_ACEOF
   2784 #line 2784 "configure"
   2785 #include "confdefs.h"
   2786 #include <sys/types.h>
   2787 int
   2788 main (void)
   2789 {
   2790 
   2791 #ifdef _POSIX_SOURCE
   2792 make an error
   2793 #endif
   2794   ;
   2795   return 0;
   2796 }
   2797 _ACEOF
   2798 rm -f conftest.$ac_objext
   2799 if { (eval echo "$as_me:2799: \"$ac_compile\"") >&5
   2800   (eval $ac_compile) 2>&5
   2801   ac_status=$?
   2802   echo "$as_me:2802: \$? = $ac_status" >&5
   2803   (exit $ac_status); } &&
   2804          { ac_try='test -s conftest.$ac_objext'
   2805   { (eval echo "$as_me:2805: \"$ac_try\"") >&5
   2806   (eval $ac_try) 2>&5
   2807   ac_status=$?
   2808   echo "$as_me:2808: \$? = $ac_status" >&5
   2809   (exit $ac_status); }; }; then
   2810   :
   2811 else
   2812   echo "$as_me: failed program was:" >&5
   2813 cat conftest.$ac_ext >&5
   2814 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
   2815 fi
   2816 rm -f conftest.$ac_objext conftest.$ac_ext
   2817 	 fi
   2818 
   2819 echo "${as_me:-configure}:2819: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
   2820 
   2821 	 CFLAGS="$cf_trim_CFLAGS"
   2822 	 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
   2823 
   2824 echo "${as_me:-configure}:2824: testing if the second compile does not leave our definition intact error ..." 1>&5
   2825 
   2826 	 cat >conftest.$ac_ext <<_ACEOF
   2827 #line 2827 "configure"
   2828 #include "confdefs.h"
   2829 #include <sys/types.h>
   2830 int
   2831 main (void)
   2832 {
   2833 
   2834 #ifndef _POSIX_C_SOURCE
   2835 make an error
   2836 #endif
   2837   ;
   2838   return 0;
   2839 }
   2840 _ACEOF
   2841 rm -f conftest.$ac_objext
   2842 if { (eval echo "$as_me:2842: \"$ac_compile\"") >&5
   2843   (eval $ac_compile) 2>&5
   2844   ac_status=$?
   2845   echo "$as_me:2845: \$? = $ac_status" >&5
   2846   (exit $ac_status); } &&
   2847          { ac_try='test -s conftest.$ac_objext'
   2848   { (eval echo "$as_me:2848: \"$ac_try\"") >&5
   2849   (eval $ac_try) 2>&5
   2850   ac_status=$?
   2851   echo "$as_me:2851: \$? = $ac_status" >&5
   2852   (exit $ac_status); }; }; then
   2853   :
   2854 else
   2855   echo "$as_me: failed program was:" >&5
   2856 cat conftest.$ac_ext >&5
   2857 cf_cv_posix_c_source=no
   2858 fi
   2859 rm -f conftest.$ac_objext conftest.$ac_ext
   2860 	 CFLAGS="$cf_save_CFLAGS"
   2861 	 CPPFLAGS="$cf_save_CPPFLAGS"
   2862 
   2863 fi
   2864 rm -f conftest.$ac_objext conftest.$ac_ext
   2865 
   2866 fi
   2867 echo "$as_me:2867: result: $cf_cv_posix_c_source" >&5
   2868 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
   2869 
   2870 if test "$cf_cv_posix_c_source" != no ; then
   2871 	CFLAGS="$cf_trim_CFLAGS"
   2872 	CPPFLAGS="$cf_trim_CPPFLAGS"
   2873 
   2874 cf_fix_cppflags=no
   2875 cf_new_cflags=
   2876 cf_new_cppflags=
   2877 cf_new_extra_cppflags=
   2878 
   2879 for cf_add_cflags in $cf_cv_posix_c_source
   2880 do
   2881 case $cf_fix_cppflags in
   2882 (no)
   2883 	case $cf_add_cflags in
   2884 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   2885 		case $cf_add_cflags in
   2886 		(-D*)
   2887 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   2888 
   2889 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   2890 				&& test -z "${cf_tst_cflags}" \
   2891 				&& cf_fix_cppflags=yes
   2892 
   2893 			if test $cf_fix_cppflags = yes ; then
   2894 
   2895 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2896 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2897 
   2898 				continue
   2899 			elif test "${cf_tst_cflags}" = "\"'" ; then
   2900 
   2901 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2902 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2903 
   2904 				continue
   2905 			fi
   2906 			;;
   2907 		esac
   2908 		case "$CPPFLAGS" in
   2909 		(*$cf_add_cflags)
   2910 			;;
   2911 		(*)
   2912 			case $cf_add_cflags in
   2913 			(-D*)
   2914 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   2915 
   2916 CPPFLAGS=`echo "$CPPFLAGS" | \
   2917 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   2918 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   2919 
   2920 				;;
   2921 			esac
   2922 
   2923 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   2924 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   2925 
   2926 			;;
   2927 		esac
   2928 		;;
   2929 	(*)
   2930 
   2931 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   2932 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   2933 
   2934 		;;
   2935 	esac
   2936 	;;
   2937 (yes)
   2938 
   2939 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2940 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2941 
   2942 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   2943 
   2944 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   2945 		&& test -z "${cf_tst_cflags}" \
   2946 		&& cf_fix_cppflags=no
   2947 	;;
   2948 esac
   2949 done
   2950 
   2951 if test -n "$cf_new_cflags" ; then
   2952 
   2953 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   2954 	CFLAGS="${CFLAGS}$cf_new_cflags"
   2955 
   2956 fi
   2957 
   2958 if test -n "$cf_new_cppflags" ; then
   2959 
   2960 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   2961 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   2962 
   2963 fi
   2964 
   2965 if test -n "$cf_new_extra_cppflags" ; then
   2966 
   2967 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   2968 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   2969 
   2970 fi
   2971 
   2972 fi
   2973 
   2974 	;;
   2975 (netbsd*)
   2976 	cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
   2977 	;;
   2978 (openbsd[4-9]*)
   2979 	# setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
   2980 	cf_xopen_source="-D_BSD_SOURCE"
   2981 	cf_XOPEN_SOURCE=600
   2982 	;;
   2983 (openbsd*)
   2984 	# setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
   2985 	;;
   2986 (osf[45]*)
   2987 	cf_xopen_source="-D_OSF_SOURCE"
   2988 	;;
   2989 (nto-qnx*)
   2990 	cf_xopen_source="-D_QNX_SOURCE"
   2991 	;;
   2992 (sco*)
   2993 	# setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
   2994 	;;
   2995 (solaris2.*)
   2996 	cf_xopen_source="-D__EXTENSIONS__"
   2997 	cf_cv_xopen_source=broken
   2998 	;;
   2999 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
   3000 	cf_XOPEN_SOURCE=
   3001 	cf_POSIX_C_SOURCE=
   3002 	;;
   3003 (*)
   3004 
   3005 echo "$as_me:3005: checking if we should define _XOPEN_SOURCE" >&5
   3006 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
   3007 if test "${cf_cv_xopen_source+set}" = set; then
   3008   echo $ECHO_N "(cached) $ECHO_C" >&6
   3009 else
   3010 
   3011 	cat >conftest.$ac_ext <<_ACEOF
   3012 #line 3012 "configure"
   3013 #include "confdefs.h"
   3014 
   3015 #include <stdlib.h>
   3016 #include <string.h>
   3017 #include <sys/types.h>
   3018 
   3019 int
   3020 main (void)
   3021 {
   3022 
   3023 #ifndef _XOPEN_SOURCE
   3024 make an error
   3025 #endif
   3026   ;
   3027   return 0;
   3028 }
   3029 _ACEOF
   3030 rm -f conftest.$ac_objext
   3031 if { (eval echo "$as_me:3031: \"$ac_compile\"") >&5
   3032   (eval $ac_compile) 2>&5
   3033   ac_status=$?
   3034   echo "$as_me:3034: \$? = $ac_status" >&5
   3035   (exit $ac_status); } &&
   3036          { ac_try='test -s conftest.$ac_objext'
   3037   { (eval echo "$as_me:3037: \"$ac_try\"") >&5
   3038   (eval $ac_try) 2>&5
   3039   ac_status=$?
   3040   echo "$as_me:3040: \$? = $ac_status" >&5
   3041   (exit $ac_status); }; }; then
   3042   cf_cv_xopen_source=no
   3043 else
   3044   echo "$as_me: failed program was:" >&5
   3045 cat conftest.$ac_ext >&5
   3046 cf_save="$CPPFLAGS"
   3047 	 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
   3048 	 cat >conftest.$ac_ext <<_ACEOF
   3049 #line 3049 "configure"
   3050 #include "confdefs.h"
   3051 
   3052 #include <stdlib.h>
   3053 #include <string.h>
   3054 #include <sys/types.h>
   3055 
   3056 int
   3057 main (void)
   3058 {
   3059 
   3060 #ifdef _XOPEN_SOURCE
   3061 make an error
   3062 #endif
   3063   ;
   3064   return 0;
   3065 }
   3066 _ACEOF
   3067 rm -f conftest.$ac_objext
   3068 if { (eval echo "$as_me:3068: \"$ac_compile\"") >&5
   3069   (eval $ac_compile) 2>&5
   3070   ac_status=$?
   3071   echo "$as_me:3071: \$? = $ac_status" >&5
   3072   (exit $ac_status); } &&
   3073          { ac_try='test -s conftest.$ac_objext'
   3074   { (eval echo "$as_me:3074: \"$ac_try\"") >&5
   3075   (eval $ac_try) 2>&5
   3076   ac_status=$?
   3077   echo "$as_me:3077: \$? = $ac_status" >&5
   3078   (exit $ac_status); }; }; then
   3079   cf_cv_xopen_source=no
   3080 else
   3081   echo "$as_me: failed program was:" >&5
   3082 cat conftest.$ac_ext >&5
   3083 cf_cv_xopen_source=$cf_XOPEN_SOURCE
   3084 fi
   3085 rm -f conftest.$ac_objext conftest.$ac_ext
   3086 	CPPFLAGS="$cf_save"
   3087 
   3088 fi
   3089 rm -f conftest.$ac_objext conftest.$ac_ext
   3090 
   3091 fi
   3092 echo "$as_me:3092: result: $cf_cv_xopen_source" >&5
   3093 echo "${ECHO_T}$cf_cv_xopen_source" >&6
   3094 
   3095 if test "$cf_cv_xopen_source" != no ; then
   3096 
   3097 CFLAGS=`echo "$CFLAGS" | \
   3098 	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3099 		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3100 
   3101 CPPFLAGS=`echo "$CPPFLAGS" | \
   3102 	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3103 		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3104 
   3105 	cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
   3106 
   3107 cf_fix_cppflags=no
   3108 cf_new_cflags=
   3109 cf_new_cppflags=
   3110 cf_new_extra_cppflags=
   3111 
   3112 for cf_add_cflags in $cf_temp_xopen_source
   3113 do
   3114 case $cf_fix_cppflags in
   3115 (no)
   3116 	case $cf_add_cflags in
   3117 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   3118 		case $cf_add_cflags in
   3119 		(-D*)
   3120 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   3121 
   3122 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3123 				&& test -z "${cf_tst_cflags}" \
   3124 				&& cf_fix_cppflags=yes
   3125 
   3126 			if test $cf_fix_cppflags = yes ; then
   3127 
   3128 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3129 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3130 
   3131 				continue
   3132 			elif test "${cf_tst_cflags}" = "\"'" ; then
   3133 
   3134 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3135 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3136 
   3137 				continue
   3138 			fi
   3139 			;;
   3140 		esac
   3141 		case "$CPPFLAGS" in
   3142 		(*$cf_add_cflags)
   3143 			;;
   3144 		(*)
   3145 			case $cf_add_cflags in
   3146 			(-D*)
   3147 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   3148 
   3149 CPPFLAGS=`echo "$CPPFLAGS" | \
   3150 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3151 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   3152 
   3153 				;;
   3154 			esac
   3155 
   3156 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   3157 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   3158 
   3159 			;;
   3160 		esac
   3161 		;;
   3162 	(*)
   3163 
   3164 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   3165 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   3166 
   3167 		;;
   3168 	esac
   3169 	;;
   3170 (yes)
   3171 
   3172 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3173 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3174 
   3175 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   3176 
   3177 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3178 		&& test -z "${cf_tst_cflags}" \
   3179 		&& cf_fix_cppflags=no
   3180 	;;
   3181 esac
   3182 done
   3183 
   3184 if test -n "$cf_new_cflags" ; then
   3185 
   3186 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   3187 	CFLAGS="${CFLAGS}$cf_new_cflags"
   3188 
   3189 fi
   3190 
   3191 if test -n "$cf_new_cppflags" ; then
   3192 
   3193 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3194 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   3195 
   3196 fi
   3197 
   3198 if test -n "$cf_new_extra_cppflags" ; then
   3199 
   3200 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   3201 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   3202 
   3203 fi
   3204 
   3205 fi
   3206 
   3207 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
   3208 
   3209 cf_save_CFLAGS="$CFLAGS"
   3210 cf_save_CPPFLAGS="$CPPFLAGS"
   3211 
   3212 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
   3213 	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3214 		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3215 
   3216 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
   3217 	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3218 		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3219 
   3220 echo "$as_me:3220: checking if we should define _POSIX_C_SOURCE" >&5
   3221 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
   3222 if test "${cf_cv_posix_c_source+set}" = set; then
   3223   echo $ECHO_N "(cached) $ECHO_C" >&6
   3224 else
   3225 
   3226 echo "${as_me:-configure}:3226: testing if the symbol is already defined go no further ..." 1>&5
   3227 
   3228 	cat >conftest.$ac_ext <<_ACEOF
   3229 #line 3229 "configure"
   3230 #include "confdefs.h"
   3231 #include <sys/types.h>
   3232 int
   3233 main (void)
   3234 {
   3235 
   3236 #ifndef _POSIX_C_SOURCE
   3237 make an error
   3238 #endif
   3239   ;
   3240   return 0;
   3241 }
   3242 _ACEOF
   3243 rm -f conftest.$ac_objext
   3244 if { (eval echo "$as_me:3244: \"$ac_compile\"") >&5
   3245   (eval $ac_compile) 2>&5
   3246   ac_status=$?
   3247   echo "$as_me:3247: \$? = $ac_status" >&5
   3248   (exit $ac_status); } &&
   3249          { ac_try='test -s conftest.$ac_objext'
   3250   { (eval echo "$as_me:3250: \"$ac_try\"") >&5
   3251   (eval $ac_try) 2>&5
   3252   ac_status=$?
   3253   echo "$as_me:3253: \$? = $ac_status" >&5
   3254   (exit $ac_status); }; }; then
   3255   cf_cv_posix_c_source=no
   3256 else
   3257   echo "$as_me: failed program was:" >&5
   3258 cat conftest.$ac_ext >&5
   3259 cf_want_posix_source=no
   3260 	 case .$cf_POSIX_C_SOURCE in
   3261 	 (.[12]??*)
   3262 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   3263 		;;
   3264 	 (.2)
   3265 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   3266 		cf_want_posix_source=yes
   3267 		;;
   3268 	 (.*)
   3269 		cf_want_posix_source=yes
   3270 		;;
   3271 	 esac
   3272 	 if test "$cf_want_posix_source" = yes ; then
   3273 		cat >conftest.$ac_ext <<_ACEOF
   3274 #line 3274 "configure"
   3275 #include "confdefs.h"
   3276 #include <sys/types.h>
   3277 int
   3278 main (void)
   3279 {
   3280 
   3281 #ifdef _POSIX_SOURCE
   3282 make an error
   3283 #endif
   3284   ;
   3285   return 0;
   3286 }
   3287 _ACEOF
   3288 rm -f conftest.$ac_objext
   3289 if { (eval echo "$as_me:3289: \"$ac_compile\"") >&5
   3290   (eval $ac_compile) 2>&5
   3291   ac_status=$?
   3292   echo "$as_me:3292: \$? = $ac_status" >&5
   3293   (exit $ac_status); } &&
   3294          { ac_try='test -s conftest.$ac_objext'
   3295   { (eval echo "$as_me:3295: \"$ac_try\"") >&5
   3296   (eval $ac_try) 2>&5
   3297   ac_status=$?
   3298   echo "$as_me:3298: \$? = $ac_status" >&5
   3299   (exit $ac_status); }; }; then
   3300   :
   3301 else
   3302   echo "$as_me: failed program was:" >&5
   3303 cat conftest.$ac_ext >&5
   3304 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
   3305 fi
   3306 rm -f conftest.$ac_objext conftest.$ac_ext
   3307 	 fi
   3308 
   3309 echo "${as_me:-configure}:3309: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
   3310 
   3311 	 CFLAGS="$cf_trim_CFLAGS"
   3312 	 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
   3313 
   3314 echo "${as_me:-configure}:3314: testing if the second compile does not leave our definition intact error ..." 1>&5
   3315 
   3316 	 cat >conftest.$ac_ext <<_ACEOF
   3317 #line 3317 "configure"
   3318 #include "confdefs.h"
   3319 #include <sys/types.h>
   3320 int
   3321 main (void)
   3322 {
   3323 
   3324 #ifndef _POSIX_C_SOURCE
   3325 make an error
   3326 #endif
   3327   ;
   3328   return 0;
   3329 }
   3330 _ACEOF
   3331 rm -f conftest.$ac_objext
   3332 if { (eval echo "$as_me:3332: \"$ac_compile\"") >&5
   3333   (eval $ac_compile) 2>&5
   3334   ac_status=$?
   3335   echo "$as_me:3335: \$? = $ac_status" >&5
   3336   (exit $ac_status); } &&
   3337          { ac_try='test -s conftest.$ac_objext'
   3338   { (eval echo "$as_me:3338: \"$ac_try\"") >&5
   3339   (eval $ac_try) 2>&5
   3340   ac_status=$?
   3341   echo "$as_me:3341: \$? = $ac_status" >&5
   3342   (exit $ac_status); }; }; then
   3343   :
   3344 else
   3345   echo "$as_me: failed program was:" >&5
   3346 cat conftest.$ac_ext >&5
   3347 cf_cv_posix_c_source=no
   3348 fi
   3349 rm -f conftest.$ac_objext conftest.$ac_ext
   3350 	 CFLAGS="$cf_save_CFLAGS"
   3351 	 CPPFLAGS="$cf_save_CPPFLAGS"
   3352 
   3353 fi
   3354 rm -f conftest.$ac_objext conftest.$ac_ext
   3355 
   3356 fi
   3357 echo "$as_me:3357: result: $cf_cv_posix_c_source" >&5
   3358 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
   3359 
   3360 if test "$cf_cv_posix_c_source" != no ; then
   3361 	CFLAGS="$cf_trim_CFLAGS"
   3362 	CPPFLAGS="$cf_trim_CPPFLAGS"
   3363 
   3364 cf_fix_cppflags=no
   3365 cf_new_cflags=
   3366 cf_new_cppflags=
   3367 cf_new_extra_cppflags=
   3368 
   3369 for cf_add_cflags in $cf_cv_posix_c_source
   3370 do
   3371 case $cf_fix_cppflags in
   3372 (no)
   3373 	case $cf_add_cflags in
   3374 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   3375 		case $cf_add_cflags in
   3376 		(-D*)
   3377 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   3378 
   3379 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3380 				&& test -z "${cf_tst_cflags}" \
   3381 				&& cf_fix_cppflags=yes
   3382 
   3383 			if test $cf_fix_cppflags = yes ; then
   3384 
   3385 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3386 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3387 
   3388 				continue
   3389 			elif test "${cf_tst_cflags}" = "\"'" ; then
   3390 
   3391 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3392 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3393 
   3394 				continue
   3395 			fi
   3396 			;;
   3397 		esac
   3398 		case "$CPPFLAGS" in
   3399 		(*$cf_add_cflags)
   3400 			;;
   3401 		(*)
   3402 			case $cf_add_cflags in
   3403 			(-D*)
   3404 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   3405 
   3406 CPPFLAGS=`echo "$CPPFLAGS" | \
   3407 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3408 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   3409 
   3410 				;;
   3411 			esac
   3412 
   3413 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   3414 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   3415 
   3416 			;;
   3417 		esac
   3418 		;;
   3419 	(*)
   3420 
   3421 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   3422 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   3423 
   3424 		;;
   3425 	esac
   3426 	;;
   3427 (yes)
   3428 
   3429 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3430 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3431 
   3432 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   3433 
   3434 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3435 		&& test -z "${cf_tst_cflags}" \
   3436 		&& cf_fix_cppflags=no
   3437 	;;
   3438 esac
   3439 done
   3440 
   3441 if test -n "$cf_new_cflags" ; then
   3442 
   3443 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   3444 	CFLAGS="${CFLAGS}$cf_new_cflags"
   3445 
   3446 fi
   3447 
   3448 if test -n "$cf_new_cppflags" ; then
   3449 
   3450 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3451 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   3452 
   3453 fi
   3454 
   3455 if test -n "$cf_new_extra_cppflags" ; then
   3456 
   3457 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   3458 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   3459 
   3460 fi
   3461 
   3462 fi
   3463 
   3464 	;;
   3465 esac
   3466 
   3467 if test -n "$cf_xopen_source" ; then
   3468 
   3469 cf_fix_cppflags=no
   3470 cf_new_cflags=
   3471 cf_new_cppflags=
   3472 cf_new_extra_cppflags=
   3473 
   3474 for cf_add_cflags in $cf_xopen_source
   3475 do
   3476 case $cf_fix_cppflags in
   3477 (no)
   3478 	case $cf_add_cflags in
   3479 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   3480 		case $cf_add_cflags in
   3481 		(-D*)
   3482 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   3483 
   3484 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3485 				&& test -z "${cf_tst_cflags}" \
   3486 				&& cf_fix_cppflags=yes
   3487 
   3488 			if test $cf_fix_cppflags = yes ; then
   3489 
   3490 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3491 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3492 
   3493 				continue
   3494 			elif test "${cf_tst_cflags}" = "\"'" ; then
   3495 
   3496 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3497 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3498 
   3499 				continue
   3500 			fi
   3501 			;;
   3502 		esac
   3503 		case "$CPPFLAGS" in
   3504 		(*$cf_add_cflags)
   3505 			;;
   3506 		(*)
   3507 			case $cf_add_cflags in
   3508 			(-D*)
   3509 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   3510 
   3511 CPPFLAGS=`echo "$CPPFLAGS" | \
   3512 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3513 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   3514 
   3515 				;;
   3516 			esac
   3517 
   3518 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   3519 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   3520 
   3521 			;;
   3522 		esac
   3523 		;;
   3524 	(*)
   3525 
   3526 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   3527 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   3528 
   3529 		;;
   3530 	esac
   3531 	;;
   3532 (yes)
   3533 
   3534 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3535 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3536 
   3537 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   3538 
   3539 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3540 		&& test -z "${cf_tst_cflags}" \
   3541 		&& cf_fix_cppflags=no
   3542 	;;
   3543 esac
   3544 done
   3545 
   3546 if test -n "$cf_new_cflags" ; then
   3547 	test -n "$verbose" && echo "	add to \$CFLAGS $cf_new_cflags" 1>&6
   3548 
   3549 echo "${as_me:-configure}:3549: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
   3550 
   3551 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   3552 	CFLAGS="${CFLAGS}$cf_new_cflags"
   3553 
   3554 fi
   3555 
   3556 if test -n "$cf_new_cppflags" ; then
   3557 	test -n "$verbose" && echo "	add to \$CPPFLAGS $cf_new_cppflags" 1>&6
   3558 
   3559 echo "${as_me:-configure}:3559: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
   3560 
   3561 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3562 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   3563 
   3564 fi
   3565 
   3566 if test -n "$cf_new_extra_cppflags" ; then
   3567 	test -n "$verbose" && echo "	add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
   3568 
   3569 echo "${as_me:-configure}:3569: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
   3570 
   3571 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   3572 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   3573 
   3574 fi
   3575 
   3576 fi
   3577 
   3578 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
   3579 	echo "$as_me:3579: checking if _XOPEN_SOURCE really is set" >&5
   3580 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
   3581 	cat >conftest.$ac_ext <<_ACEOF
   3582 #line 3582 "configure"
   3583 #include "confdefs.h"
   3584 #include <stdlib.h>
   3585 int
   3586 main (void)
   3587 {
   3588 
   3589 #ifndef _XOPEN_SOURCE
   3590 make an error
   3591 #endif
   3592   ;
   3593   return 0;
   3594 }
   3595 _ACEOF
   3596 rm -f conftest.$ac_objext
   3597 if { (eval echo "$as_me:3597: \"$ac_compile\"") >&5
   3598   (eval $ac_compile) 2>&5
   3599   ac_status=$?
   3600   echo "$as_me:3600: \$? = $ac_status" >&5
   3601   (exit $ac_status); } &&
   3602          { ac_try='test -s conftest.$ac_objext'
   3603   { (eval echo "$as_me:3603: \"$ac_try\"") >&5
   3604   (eval $ac_try) 2>&5
   3605   ac_status=$?
   3606   echo "$as_me:3606: \$? = $ac_status" >&5
   3607   (exit $ac_status); }; }; then
   3608   cf_XOPEN_SOURCE_set=yes
   3609 else
   3610   echo "$as_me: failed program was:" >&5
   3611 cat conftest.$ac_ext >&5
   3612 cf_XOPEN_SOURCE_set=no
   3613 fi
   3614 rm -f conftest.$ac_objext conftest.$ac_ext
   3615 	echo "$as_me:3615: result: $cf_XOPEN_SOURCE_set" >&5
   3616 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
   3617 	if test $cf_XOPEN_SOURCE_set = yes
   3618 	then
   3619 		cat >conftest.$ac_ext <<_ACEOF
   3620 #line 3620 "configure"
   3621 #include "confdefs.h"
   3622 #include <stdlib.h>
   3623 int
   3624 main (void)
   3625 {
   3626 
   3627 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
   3628 make an error
   3629 #endif
   3630   ;
   3631   return 0;
   3632 }
   3633 _ACEOF
   3634 rm -f conftest.$ac_objext
   3635 if { (eval echo "$as_me:3635: \"$ac_compile\"") >&5
   3636   (eval $ac_compile) 2>&5
   3637   ac_status=$?
   3638   echo "$as_me:3638: \$? = $ac_status" >&5
   3639   (exit $ac_status); } &&
   3640          { ac_try='test -s conftest.$ac_objext'
   3641   { (eval echo "$as_me:3641: \"$ac_try\"") >&5
   3642   (eval $ac_try) 2>&5
   3643   ac_status=$?
   3644   echo "$as_me:3644: \$? = $ac_status" >&5
   3645   (exit $ac_status); }; }; then
   3646   cf_XOPEN_SOURCE_set_ok=yes
   3647 else
   3648   echo "$as_me: failed program was:" >&5
   3649 cat conftest.$ac_ext >&5
   3650 cf_XOPEN_SOURCE_set_ok=no
   3651 fi
   3652 rm -f conftest.$ac_objext conftest.$ac_ext
   3653 		if test $cf_XOPEN_SOURCE_set_ok = no
   3654 		then
   3655 			{ echo "$as_me:3655: WARNING: _XOPEN_SOURCE is lower than requested" >&5
   3656 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
   3657 		fi
   3658 	else
   3659 
   3660 echo "$as_me:3660: checking if we should define _XOPEN_SOURCE" >&5
   3661 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
   3662 if test "${cf_cv_xopen_source+set}" = set; then
   3663   echo $ECHO_N "(cached) $ECHO_C" >&6
   3664 else
   3665 
   3666 	cat >conftest.$ac_ext <<_ACEOF
   3667 #line 3667 "configure"
   3668 #include "confdefs.h"
   3669 
   3670 #include <stdlib.h>
   3671 #include <string.h>
   3672 #include <sys/types.h>
   3673 
   3674 int
   3675 main (void)
   3676 {
   3677 
   3678 #ifndef _XOPEN_SOURCE
   3679 make an error
   3680 #endif
   3681   ;
   3682   return 0;
   3683 }
   3684 _ACEOF
   3685 rm -f conftest.$ac_objext
   3686 if { (eval echo "$as_me:3686: \"$ac_compile\"") >&5
   3687   (eval $ac_compile) 2>&5
   3688   ac_status=$?
   3689   echo "$as_me:3689: \$? = $ac_status" >&5
   3690   (exit $ac_status); } &&
   3691          { ac_try='test -s conftest.$ac_objext'
   3692   { (eval echo "$as_me:3692: \"$ac_try\"") >&5
   3693   (eval $ac_try) 2>&5
   3694   ac_status=$?
   3695   echo "$as_me:3695: \$? = $ac_status" >&5
   3696   (exit $ac_status); }; }; then
   3697   cf_cv_xopen_source=no
   3698 else
   3699   echo "$as_me: failed program was:" >&5
   3700 cat conftest.$ac_ext >&5
   3701 cf_save="$CPPFLAGS"
   3702 	 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
   3703 	 cat >conftest.$ac_ext <<_ACEOF
   3704 #line 3704 "configure"
   3705 #include "confdefs.h"
   3706 
   3707 #include <stdlib.h>
   3708 #include <string.h>
   3709 #include <sys/types.h>
   3710 
   3711 int
   3712 main (void)
   3713 {
   3714 
   3715 #ifdef _XOPEN_SOURCE
   3716 make an error
   3717 #endif
   3718   ;
   3719   return 0;
   3720 }
   3721 _ACEOF
   3722 rm -f conftest.$ac_objext
   3723 if { (eval echo "$as_me:3723: \"$ac_compile\"") >&5
   3724   (eval $ac_compile) 2>&5
   3725   ac_status=$?
   3726   echo "$as_me:3726: \$? = $ac_status" >&5
   3727   (exit $ac_status); } &&
   3728          { ac_try='test -s conftest.$ac_objext'
   3729   { (eval echo "$as_me:3729: \"$ac_try\"") >&5
   3730   (eval $ac_try) 2>&5
   3731   ac_status=$?
   3732   echo "$as_me:3732: \$? = $ac_status" >&5
   3733   (exit $ac_status); }; }; then
   3734   cf_cv_xopen_source=no
   3735 else
   3736   echo "$as_me: failed program was:" >&5
   3737 cat conftest.$ac_ext >&5
   3738 cf_cv_xopen_source=$cf_XOPEN_SOURCE
   3739 fi
   3740 rm -f conftest.$ac_objext conftest.$ac_ext
   3741 	CPPFLAGS="$cf_save"
   3742 
   3743 fi
   3744 rm -f conftest.$ac_objext conftest.$ac_ext
   3745 
   3746 fi
   3747 echo "$as_me:3747: result: $cf_cv_xopen_source" >&5
   3748 echo "${ECHO_T}$cf_cv_xopen_source" >&6
   3749 
   3750 if test "$cf_cv_xopen_source" != no ; then
   3751 
   3752 CFLAGS=`echo "$CFLAGS" | \
   3753 	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3754 		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3755 
   3756 CPPFLAGS=`echo "$CPPFLAGS" | \
   3757 	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3758 		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3759 
   3760 	cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
   3761 
   3762 cf_fix_cppflags=no
   3763 cf_new_cflags=
   3764 cf_new_cppflags=
   3765 cf_new_extra_cppflags=
   3766 
   3767 for cf_add_cflags in $cf_temp_xopen_source
   3768 do
   3769 case $cf_fix_cppflags in
   3770 (no)
   3771 	case $cf_add_cflags in
   3772 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   3773 		case $cf_add_cflags in
   3774 		(-D*)
   3775 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   3776 
   3777 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3778 				&& test -z "${cf_tst_cflags}" \
   3779 				&& cf_fix_cppflags=yes
   3780 
   3781 			if test $cf_fix_cppflags = yes ; then
   3782 
   3783 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3784 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3785 
   3786 				continue
   3787 			elif test "${cf_tst_cflags}" = "\"'" ; then
   3788 
   3789 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3790 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3791 
   3792 				continue
   3793 			fi
   3794 			;;
   3795 		esac
   3796 		case "$CPPFLAGS" in
   3797 		(*$cf_add_cflags)
   3798 			;;
   3799 		(*)
   3800 			case $cf_add_cflags in
   3801 			(-D*)
   3802 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   3803 
   3804 CPPFLAGS=`echo "$CPPFLAGS" | \
   3805 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3806 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   3807 
   3808 				;;
   3809 			esac
   3810 
   3811 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   3812 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   3813 
   3814 			;;
   3815 		esac
   3816 		;;
   3817 	(*)
   3818 
   3819 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   3820 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   3821 
   3822 		;;
   3823 	esac
   3824 	;;
   3825 (yes)
   3826 
   3827 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3828 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3829 
   3830 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   3831 
   3832 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3833 		&& test -z "${cf_tst_cflags}" \
   3834 		&& cf_fix_cppflags=no
   3835 	;;
   3836 esac
   3837 done
   3838 
   3839 if test -n "$cf_new_cflags" ; then
   3840 
   3841 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   3842 	CFLAGS="${CFLAGS}$cf_new_cflags"
   3843 
   3844 fi
   3845 
   3846 if test -n "$cf_new_cppflags" ; then
   3847 
   3848 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3849 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   3850 
   3851 fi
   3852 
   3853 if test -n "$cf_new_extra_cppflags" ; then
   3854 
   3855 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   3856 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   3857 
   3858 fi
   3859 
   3860 fi
   3861 
   3862 	fi
   3863 fi
   3864 
   3865 echo "$as_me:3865: checking if SIGWINCH is defined" >&5
   3866 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
   3867 if test "${cf_cv_define_sigwinch+set}" = set; then
   3868   echo $ECHO_N "(cached) $ECHO_C" >&6
   3869 else
   3870 
   3871 	cat >conftest.$ac_ext <<_ACEOF
   3872 #line 3872 "configure"
   3873 #include "confdefs.h"
   3874 
   3875 #include <sys/types.h>
   3876 #include <sys/signal.h>
   3877 
   3878 int
   3879 main (void)
   3880 {
   3881 int x = SIGWINCH
   3882   ;
   3883   return 0;
   3884 }
   3885 _ACEOF
   3886 rm -f conftest.$ac_objext
   3887 if { (eval echo "$as_me:3887: \"$ac_compile\"") >&5
   3888   (eval $ac_compile) 2>&5
   3889   ac_status=$?
   3890   echo "$as_me:3890: \$? = $ac_status" >&5
   3891   (exit $ac_status); } &&
   3892          { ac_try='test -s conftest.$ac_objext'
   3893   { (eval echo "$as_me:3893: \"$ac_try\"") >&5
   3894   (eval $ac_try) 2>&5
   3895   ac_status=$?
   3896   echo "$as_me:3896: \$? = $ac_status" >&5
   3897   (exit $ac_status); }; }; then
   3898   cf_cv_define_sigwinch=yes
   3899 else
   3900   echo "$as_me: failed program was:" >&5
   3901 cat conftest.$ac_ext >&5
   3902 cat >conftest.$ac_ext <<_ACEOF
   3903 #line 3903 "configure"
   3904 #include "confdefs.h"
   3905 
   3906 #undef _XOPEN_SOURCE
   3907 #undef _POSIX_SOURCE
   3908 #undef _POSIX_C_SOURCE
   3909 #include <sys/types.h>
   3910 #include <sys/signal.h>
   3911 
   3912 int
   3913 main (void)
   3914 {
   3915 int x = SIGWINCH
   3916   ;
   3917   return 0;
   3918 }
   3919 _ACEOF
   3920 rm -f conftest.$ac_objext
   3921 if { (eval echo "$as_me:3921: \"$ac_compile\"") >&5
   3922   (eval $ac_compile) 2>&5
   3923   ac_status=$?
   3924   echo "$as_me:3924: \$? = $ac_status" >&5
   3925   (exit $ac_status); } &&
   3926          { ac_try='test -s conftest.$ac_objext'
   3927   { (eval echo "$as_me:3927: \"$ac_try\"") >&5
   3928   (eval $ac_try) 2>&5
   3929   ac_status=$?
   3930   echo "$as_me:3930: \$? = $ac_status" >&5
   3931   (exit $ac_status); }; }; then
   3932   cf_cv_define_sigwinch=maybe
   3933 else
   3934   echo "$as_me: failed program was:" >&5
   3935 cat conftest.$ac_ext >&5
   3936 cf_cv_define_sigwinch=no
   3937 fi
   3938 rm -f conftest.$ac_objext conftest.$ac_ext
   3939 
   3940 fi
   3941 rm -f conftest.$ac_objext conftest.$ac_ext
   3942 
   3943 fi
   3944 echo "$as_me:3944: result: $cf_cv_define_sigwinch" >&5
   3945 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
   3946 
   3947 if test "$cf_cv_define_sigwinch" = maybe ; then
   3948 echo "$as_me:3948: checking for actual SIGWINCH definition" >&5
   3949 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
   3950 if test "${cf_cv_fixup_sigwinch+set}" = set; then
   3951   echo $ECHO_N "(cached) $ECHO_C" >&6
   3952 else
   3953 
   3954 cf_cv_fixup_sigwinch=unknown
   3955 cf_sigwinch=32
   3956 while test $cf_sigwinch != 1
   3957 do
   3958 	cat >conftest.$ac_ext <<_ACEOF
   3959 #line 3959 "configure"
   3960 #include "confdefs.h"
   3961 
   3962 #undef _XOPEN_SOURCE
   3963 #undef _POSIX_SOURCE
   3964 #undef _POSIX_C_SOURCE
   3965 #include <sys/types.h>
   3966 #include <sys/signal.h>
   3967 
   3968 int
   3969 main (void)
   3970 {
   3971 
   3972 #if SIGWINCH != $cf_sigwinch
   3973 make an error
   3974 #endif
   3975 int x = SIGWINCH
   3976   ;
   3977   return 0;
   3978 }
   3979 _ACEOF
   3980 rm -f conftest.$ac_objext
   3981 if { (eval echo "$as_me:3981: \"$ac_compile\"") >&5
   3982   (eval $ac_compile) 2>&5
   3983   ac_status=$?
   3984   echo "$as_me:3984: \$? = $ac_status" >&5
   3985   (exit $ac_status); } &&
   3986          { ac_try='test -s conftest.$ac_objext'
   3987   { (eval echo "$as_me:3987: \"$ac_try\"") >&5
   3988   (eval $ac_try) 2>&5
   3989   ac_status=$?
   3990   echo "$as_me:3990: \$? = $ac_status" >&5
   3991   (exit $ac_status); }; }; then
   3992   cf_cv_fixup_sigwinch=$cf_sigwinch
   3993 	 break
   3994 else
   3995   echo "$as_me: failed program was:" >&5
   3996 cat conftest.$ac_ext >&5
   3997 fi
   3998 rm -f conftest.$ac_objext conftest.$ac_ext
   3999 
   4000 cf_sigwinch=`expr $cf_sigwinch - 1`
   4001 done
   4002 
   4003 fi
   4004 echo "$as_me:4004: result: $cf_cv_fixup_sigwinch" >&5
   4005 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
   4006 
   4007 	if test "$cf_cv_fixup_sigwinch" != unknown ; then
   4008 		CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
   4009 	fi
   4010 fi
   4011 
   4012 ###	checks for header files
   4013 
   4014 for ac_header in \
   4015 ncurses/curses.h \
   4016 ncurses/term.h \
   4017 stdlib.h \
   4018 sys/ptem.h sys/ttydefaults.h \
   4019 term.h \
   4020 termios.h \
   4021 unistd.h \
   4022 wchar.h \
   4023 
   4024 do
   4025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4026 echo "$as_me:4026: checking for $ac_header" >&5
   4027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   4028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   4029   echo $ECHO_N "(cached) $ECHO_C" >&6
   4030 else
   4031   cat >conftest.$ac_ext <<_ACEOF
   4032 #line 4032 "configure"
   4033 #include "confdefs.h"
   4034 #include <$ac_header>
   4035 _ACEOF
   4036 if { (eval echo "$as_me:4036: \"$ac_cpp conftest.$ac_ext\"") >&5
   4037   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   4038   ac_status=$?
   4039   egrep -v '^ *\+' conftest.er1 >conftest.err
   4040   rm -f conftest.er1
   4041   cat conftest.err >&5
   4042   echo "$as_me:4042: \$? = $ac_status" >&5
   4043   (exit $ac_status); } >/dev/null; then
   4044   if test -s conftest.err; then
   4045     ac_cpp_err=$ac_c_preproc_warn_flag
   4046   else
   4047     ac_cpp_err=
   4048   fi
   4049 else
   4050   ac_cpp_err=yes
   4051 fi
   4052 if test -z "$ac_cpp_err"; then
   4053   eval "$as_ac_Header=yes"
   4054 else
   4055   echo "$as_me: failed program was:" >&5
   4056   cat conftest.$ac_ext >&5
   4057   eval "$as_ac_Header=no"
   4058 fi
   4059 rm -f conftest.err conftest.$ac_ext
   4060 fi
   4061 echo "$as_me:4061: result: `eval echo '${'$as_ac_Header'}'`" >&5
   4062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   4063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4064   cat >>confdefs.h <<EOF
   4065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4066 EOF
   4067 
   4068 fi
   4069 done
   4070 
   4071 echo "$as_me:4071: checking whether time.h and sys/time.h may both be included" >&5
   4072 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
   4073 if test "${ac_cv_header_time+set}" = set; then
   4074   echo $ECHO_N "(cached) $ECHO_C" >&6
   4075 else
   4076   cat >conftest.$ac_ext <<_ACEOF
   4077 #line 4077 "configure"
   4078 #include "confdefs.h"
   4079 #include <sys/types.h>
   4080 #include <sys/time.h>
   4081 #include <time.h>
   4082 
   4083 int
   4084 main (void)
   4085 {
   4086 if ((struct tm *) 0)
   4087 return 0;
   4088   ;
   4089   return 0;
   4090 }
   4091 _ACEOF
   4092 rm -f conftest.$ac_objext
   4093 if { (eval echo "$as_me:4093: \"$ac_compile\"") >&5
   4094   (eval $ac_compile) 2>&5
   4095   ac_status=$?
   4096   echo "$as_me:4096: \$? = $ac_status" >&5
   4097   (exit $ac_status); } &&
   4098          { ac_try='test -s conftest.$ac_objext'
   4099   { (eval echo "$as_me:4099: \"$ac_try\"") >&5
   4100   (eval $ac_try) 2>&5
   4101   ac_status=$?
   4102   echo "$as_me:4102: \$? = $ac_status" >&5
   4103   (exit $ac_status); }; }; then
   4104   ac_cv_header_time=yes
   4105 else
   4106   echo "$as_me: failed program was:" >&5
   4107 cat conftest.$ac_ext >&5
   4108 ac_cv_header_time=no
   4109 fi
   4110 rm -f conftest.$ac_objext conftest.$ac_ext
   4111 fi
   4112 echo "$as_me:4112: result: $ac_cv_header_time" >&5
   4113 echo "${ECHO_T}$ac_cv_header_time" >&6
   4114 if test $ac_cv_header_time = yes; then
   4115 
   4116 cat >>confdefs.h <<\EOF
   4117 #define TIME_WITH_SYS_TIME 1
   4118 EOF
   4119 
   4120 fi
   4121 
   4122 echo "$as_me:4122: checking for nl_langinfo and CODESET" >&5
   4123 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
   4124 if test "${am_cv_langinfo_codeset+set}" = set; then
   4125   echo $ECHO_N "(cached) $ECHO_C" >&6
   4126 else
   4127   cat >conftest.$ac_ext <<_ACEOF
   4128 #line 4128 "configure"
   4129 #include "confdefs.h"
   4130 #include <langinfo.h>
   4131 int
   4132 main (void)
   4133 {
   4134 char* cs = nl_langinfo(CODESET);
   4135   ;
   4136   return 0;
   4137 }
   4138 _ACEOF
   4139 rm -f conftest.$ac_objext conftest$ac_exeext
   4140 if { (eval echo "$as_me:4140: \"$ac_link\"") >&5
   4141   (eval $ac_link) 2>&5
   4142   ac_status=$?
   4143   echo "$as_me:4143: \$? = $ac_status" >&5
   4144   (exit $ac_status); } &&
   4145          { ac_try='test -s conftest$ac_exeext'
   4146   { (eval echo "$as_me:4146: \"$ac_try\"") >&5
   4147   (eval $ac_try) 2>&5
   4148   ac_status=$?
   4149   echo "$as_me:4149: \$? = $ac_status" >&5
   4150   (exit $ac_status); }; }; then
   4151   am_cv_langinfo_codeset=yes
   4152 else
   4153   echo "$as_me: failed program was:" >&5
   4154 cat conftest.$ac_ext >&5
   4155 am_cv_langinfo_codeset=no
   4156 fi
   4157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   4158 
   4159 fi
   4160 echo "$as_me:4160: result: $am_cv_langinfo_codeset" >&5
   4161 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
   4162 	if test $am_cv_langinfo_codeset = yes; then
   4163 
   4164 cat >>confdefs.h <<\EOF
   4165 #define HAVE_LANGINFO_CODESET 1
   4166 EOF
   4167 
   4168 	fi
   4169 
   4170 ###	checks for typedefs
   4171 
   4172 echo "$as_me:4172: checking for signal global datatype" >&5
   4173 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
   4174 if test "${cf_cv_sig_atomic_t+set}" = set; then
   4175   echo $ECHO_N "(cached) $ECHO_C" >&6
   4176 else
   4177 
   4178 	for cf_type in \
   4179 		"volatile sig_atomic_t" \
   4180 		"sig_atomic_t" \
   4181 		"int"
   4182 	do
   4183 	cat >conftest.$ac_ext <<_ACEOF
   4184 #line 4184 "configure"
   4185 #include "confdefs.h"
   4186 
   4187 #include <sys/types.h>
   4188 #include <signal.h>
   4189 #include <stdio.h>
   4190 
   4191 extern $cf_type x;
   4192 $cf_type x;
   4193 static void handler(int sig)
   4194 {
   4195 	x = 5;
   4196 }
   4197 int
   4198 main (void)
   4199 {
   4200 signal(SIGINT, handler);
   4201 		 x = 1
   4202   ;
   4203   return 0;
   4204 }
   4205 _ACEOF
   4206 rm -f conftest.$ac_objext
   4207 if { (eval echo "$as_me:4207: \"$ac_compile\"") >&5
   4208   (eval $ac_compile) 2>&5
   4209   ac_status=$?
   4210   echo "$as_me:4210: \$? = $ac_status" >&5
   4211   (exit $ac_status); } &&
   4212          { ac_try='test -s conftest.$ac_objext'
   4213   { (eval echo "$as_me:4213: \"$ac_try\"") >&5
   4214   (eval $ac_try) 2>&5
   4215   ac_status=$?
   4216   echo "$as_me:4216: \$? = $ac_status" >&5
   4217   (exit $ac_status); }; }; then
   4218   cf_cv_sig_atomic_t=$cf_type
   4219 else
   4220   echo "$as_me: failed program was:" >&5
   4221 cat conftest.$ac_ext >&5
   4222 cf_cv_sig_atomic_t=no
   4223 fi
   4224 rm -f conftest.$ac_objext conftest.$ac_ext
   4225 		test "$cf_cv_sig_atomic_t" != no && break
   4226 	done
   4227 
   4228 fi
   4229 
   4230 echo "$as_me:4230: result: $cf_cv_sig_atomic_t" >&5
   4231 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
   4232 test "$cf_cv_sig_atomic_t" != no &&
   4233 cat >>confdefs.h <<EOF
   4234 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
   4235 EOF
   4236 
   4237 echo "$as_me:4237: checking for ANSI C header files" >&5
   4238 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
   4239 if test "${ac_cv_header_stdc+set}" = set; then
   4240   echo $ECHO_N "(cached) $ECHO_C" >&6
   4241 else
   4242   cat >conftest.$ac_ext <<_ACEOF
   4243 #line 4243 "configure"
   4244 #include "confdefs.h"
   4245 #include <stdlib.h>
   4246 #include <stdarg.h>
   4247 #include <string.h>
   4248 #include <float.h>
   4249 
   4250 _ACEOF
   4251 if { (eval echo "$as_me:4251: \"$ac_cpp conftest.$ac_ext\"") >&5
   4252   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   4253   ac_status=$?
   4254   egrep -v '^ *\+' conftest.er1 >conftest.err
   4255   rm -f conftest.er1
   4256   cat conftest.err >&5
   4257   echo "$as_me:4257: \$? = $ac_status" >&5
   4258   (exit $ac_status); } >/dev/null; then
   4259   if test -s conftest.err; then
   4260     ac_cpp_err=$ac_c_preproc_warn_flag
   4261   else
   4262     ac_cpp_err=
   4263   fi
   4264 else
   4265   ac_cpp_err=yes
   4266 fi
   4267 if test -z "$ac_cpp_err"; then
   4268   ac_cv_header_stdc=yes
   4269 else
   4270   echo "$as_me: failed program was:" >&5
   4271   cat conftest.$ac_ext >&5
   4272   ac_cv_header_stdc=no
   4273 fi
   4274 rm -f conftest.err conftest.$ac_ext
   4275 
   4276 if test $ac_cv_header_stdc = yes; then
   4277   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4278   cat >conftest.$ac_ext <<_ACEOF
   4279 #line 4279 "configure"
   4280 #include "confdefs.h"
   4281 #include <string.h>
   4282 
   4283 _ACEOF
   4284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4285   egrep "memchr" >/dev/null 2>&1; then
   4286   :
   4287 else
   4288   ac_cv_header_stdc=no
   4289 fi
   4290 rm -rf conftest*
   4291 
   4292 fi
   4293 
   4294 if test $ac_cv_header_stdc = yes; then
   4295   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4296   cat >conftest.$ac_ext <<_ACEOF
   4297 #line 4297 "configure"
   4298 #include "confdefs.h"
   4299 #include <stdlib.h>
   4300 
   4301 _ACEOF
   4302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4303   egrep "free" >/dev/null 2>&1; then
   4304   :
   4305 else
   4306   ac_cv_header_stdc=no
   4307 fi
   4308 rm -rf conftest*
   4309 
   4310 fi
   4311 
   4312 if test $ac_cv_header_stdc = yes; then
   4313   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4314   if test "$cross_compiling" = yes; then
   4315   :
   4316 else
   4317   cat >conftest.$ac_ext <<_ACEOF
   4318 #line 4318 "configure"
   4319 #include "confdefs.h"
   4320 #include <ctype.h>
   4321 #if ((' ' & 0x0FF) == 0x020)
   4322 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4323 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4324 #else
   4325 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
   4326                      || ('j' <= (c) && (c) <= 'r') \
   4327                      || ('s' <= (c) && (c) <= 'z'))
   4328 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4329 #endif
   4330 
   4331 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4332 int
   4333 main (void)
   4334 {
   4335   int i;
   4336   for (i = 0; i < 256; i++)
   4337     if (XOR (islower (i), ISLOWER (i))
   4338         || toupper (i) != TOUPPER (i))
   4339       $ac_main_return(2);
   4340   $ac_main_return (0);
   4341 }
   4342 _ACEOF
   4343 rm -f conftest$ac_exeext
   4344 if { (eval echo "$as_me:4344: \"$ac_link\"") >&5
   4345   (eval $ac_link) 2>&5
   4346   ac_status=$?
   4347   echo "$as_me:4347: \$? = $ac_status" >&5
   4348   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4349   { (eval echo "$as_me:4349: \"$ac_try\"") >&5
   4350   (eval $ac_try) 2>&5
   4351   ac_status=$?
   4352   echo "$as_me:4352: \$? = $ac_status" >&5
   4353   (exit $ac_status); }; }; then
   4354   :
   4355 else
   4356   echo "$as_me: program exited with status $ac_status" >&5
   4357 echo "$as_me: failed program was:" >&5
   4358 cat conftest.$ac_ext >&5
   4359 ac_cv_header_stdc=no
   4360 fi
   4361 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4362 fi
   4363 fi
   4364 fi
   4365 echo "$as_me:4365: result: $ac_cv_header_stdc" >&5
   4366 echo "${ECHO_T}$ac_cv_header_stdc" >&6
   4367 if test $ac_cv_header_stdc = yes; then
   4368 
   4369 cat >>confdefs.h <<\EOF
   4370 #define STDC_HEADERS 1
   4371 EOF
   4372 
   4373 fi
   4374 
   4375 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4376 
   4377 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4378                   inttypes.h stdint.h unistd.h
   4379 do
   4380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4381 echo "$as_me:4381: checking for $ac_header" >&5
   4382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   4383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   4384   echo $ECHO_N "(cached) $ECHO_C" >&6
   4385 else
   4386   cat >conftest.$ac_ext <<_ACEOF
   4387 #line 4387 "configure"
   4388 #include "confdefs.h"
   4389 $ac_includes_default
   4390 #include <$ac_header>
   4391 _ACEOF
   4392 rm -f conftest.$ac_objext
   4393 if { (eval echo "$as_me:4393: \"$ac_compile\"") >&5
   4394   (eval $ac_compile) 2>&5
   4395   ac_status=$?
   4396   echo "$as_me:4396: \$? = $ac_status" >&5
   4397   (exit $ac_status); } &&
   4398          { ac_try='test -s conftest.$ac_objext'
   4399   { (eval echo "$as_me:4399: \"$ac_try\"") >&5
   4400   (eval $ac_try) 2>&5
   4401   ac_status=$?
   4402   echo "$as_me:4402: \$? = $ac_status" >&5
   4403   (exit $ac_status); }; }; then
   4404   eval "$as_ac_Header=yes"
   4405 else
   4406   echo "$as_me: failed program was:" >&5
   4407 cat conftest.$ac_ext >&5
   4408 eval "$as_ac_Header=no"
   4409 fi
   4410 rm -f conftest.$ac_objext conftest.$ac_ext
   4411 fi
   4412 echo "$as_me:4412: result: `eval echo '${'$as_ac_Header'}'`" >&5
   4413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   4414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4415   cat >>confdefs.h <<EOF
   4416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4417 EOF
   4418 
   4419 fi
   4420 done
   4421 
   4422 echo "$as_me:4422: checking for time_t" >&5
   4423 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
   4424 if test "${ac_cv_type_time_t+set}" = set; then
   4425   echo $ECHO_N "(cached) $ECHO_C" >&6
   4426 else
   4427   cat >conftest.$ac_ext <<_ACEOF
   4428 #line 4428 "configure"
   4429 #include "confdefs.h"
   4430 $ac_includes_default
   4431 int
   4432 main (void)
   4433 {
   4434 if ((time_t *) 0)
   4435   return 0;
   4436 if (sizeof (time_t))
   4437   return 0;
   4438   ;
   4439   return 0;
   4440 }
   4441 _ACEOF
   4442 rm -f conftest.$ac_objext
   4443 if { (eval echo "$as_me:4443: \"$ac_compile\"") >&5
   4444   (eval $ac_compile) 2>&5
   4445   ac_status=$?
   4446   echo "$as_me:4446: \$? = $ac_status" >&5
   4447   (exit $ac_status); } &&
   4448          { ac_try='test -s conftest.$ac_objext'
   4449   { (eval echo "$as_me:4449: \"$ac_try\"") >&5
   4450   (eval $ac_try) 2>&5
   4451   ac_status=$?
   4452   echo "$as_me:4452: \$? = $ac_status" >&5
   4453   (exit $ac_status); }; }; then
   4454   ac_cv_type_time_t=yes
   4455 else
   4456   echo "$as_me: failed program was:" >&5
   4457 cat conftest.$ac_ext >&5
   4458 ac_cv_type_time_t=no
   4459 fi
   4460 rm -f conftest.$ac_objext conftest.$ac_ext
   4461 fi
   4462 echo "$as_me:4462: result: $ac_cv_type_time_t" >&5
   4463 echo "${ECHO_T}$ac_cv_type_time_t" >&6
   4464 if test $ac_cv_type_time_t = yes; then
   4465   :
   4466 else
   4467 
   4468 cat >>confdefs.h <<EOF
   4469 #define time_t long
   4470 EOF
   4471 
   4472 fi
   4473 
   4474 echo "$as_me:4474: checking for cc_t in <termios.h> or <termio.h>" >&5
   4475 echo $ECHO_N "checking for cc_t in <termios.h> or <termio.h>... $ECHO_C" >&6
   4476 if test "${cf_cv_type_cc_t+set}" = set; then
   4477   echo $ECHO_N "(cached) $ECHO_C" >&6
   4478 else
   4479 
   4480 	cat >conftest.$ac_ext <<_ACEOF
   4481 #line 4481 "configure"
   4482 #include "confdefs.h"
   4483 
   4484 #include <sys/types.h>
   4485 #if defined(HAVE_TERMIOS_H)
   4486 #include <termios.h>
   4487 #else
   4488 #include <termio.h>
   4489 #include <sys/ioctl.h>
   4490 #endif
   4491 
   4492 int
   4493 main (void)
   4494 {
   4495 cc_t x
   4496   ;
   4497   return 0;
   4498 }
   4499 _ACEOF
   4500 rm -f conftest.$ac_objext
   4501 if { (eval echo "$as_me:4501: \"$ac_compile\"") >&5
   4502   (eval $ac_compile) 2>&5
   4503   ac_status=$?
   4504   echo "$as_me:4504: \$? = $ac_status" >&5
   4505   (exit $ac_status); } &&
   4506          { ac_try='test -s conftest.$ac_objext'
   4507   { (eval echo "$as_me:4507: \"$ac_try\"") >&5
   4508   (eval $ac_try) 2>&5
   4509   ac_status=$?
   4510   echo "$as_me:4510: \$? = $ac_status" >&5
   4511   (exit $ac_status); }; }; then
   4512   cf_cv_type_cc_t=yes
   4513 else
   4514   echo "$as_me: failed program was:" >&5
   4515 cat conftest.$ac_ext >&5
   4516 cf_cv_type_cc_t=no
   4517 fi
   4518 rm -f conftest.$ac_objext conftest.$ac_ext
   4519 
   4520 fi
   4521 
   4522 echo "$as_me:4522: result: $cf_cv_type_cc_t" >&5
   4523 echo "${ECHO_T}$cf_cv_type_cc_t" >&6
   4524 test $cf_cv_type_cc_t = no &&
   4525 cat >>confdefs.h <<\EOF
   4526 #define cc_t unsigned char
   4527 EOF
   4528 
   4529 echo "$as_me:4529: checking for mode_t" >&5
   4530 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
   4531 if test "${ac_cv_type_mode_t+set}" = set; then
   4532   echo $ECHO_N "(cached) $ECHO_C" >&6
   4533 else
   4534   cat >conftest.$ac_ext <<_ACEOF
   4535 #line 4535 "configure"
   4536 #include "confdefs.h"
   4537 $ac_includes_default
   4538 int
   4539 main (void)
   4540 {
   4541 if ((mode_t *) 0)
   4542   return 0;
   4543 if (sizeof (mode_t))
   4544   return 0;
   4545   ;
   4546   return 0;
   4547 }
   4548 _ACEOF
   4549 rm -f conftest.$ac_objext
   4550 if { (eval echo "$as_me:4550: \"$ac_compile\"") >&5
   4551   (eval $ac_compile) 2>&5
   4552   ac_status=$?
   4553   echo "$as_me:4553: \$? = $ac_status" >&5
   4554   (exit $ac_status); } &&
   4555          { ac_try='test -s conftest.$ac_objext'
   4556   { (eval echo "$as_me:4556: \"$ac_try\"") >&5
   4557   (eval $ac_try) 2>&5
   4558   ac_status=$?
   4559   echo "$as_me:4559: \$? = $ac_status" >&5
   4560   (exit $ac_status); }; }; then
   4561   ac_cv_type_mode_t=yes
   4562 else
   4563   echo "$as_me: failed program was:" >&5
   4564 cat conftest.$ac_ext >&5
   4565 ac_cv_type_mode_t=no
   4566 fi
   4567 rm -f conftest.$ac_objext conftest.$ac_ext
   4568 fi
   4569 echo "$as_me:4569: result: $ac_cv_type_mode_t" >&5
   4570 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
   4571 if test $ac_cv_type_mode_t = yes; then
   4572   :
   4573 else
   4574 
   4575 cat >>confdefs.h <<EOF
   4576 #define mode_t int
   4577 EOF
   4578 
   4579 fi
   4580 
   4581 echo "$as_me:4581: checking for pid_t" >&5
   4582 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
   4583 if test "${ac_cv_type_pid_t+set}" = set; then
   4584   echo $ECHO_N "(cached) $ECHO_C" >&6
   4585 else
   4586   cat >conftest.$ac_ext <<_ACEOF
   4587 #line 4587 "configure"
   4588 #include "confdefs.h"
   4589 $ac_includes_default
   4590 int
   4591 main (void)
   4592 {
   4593 if ((pid_t *) 0)
   4594   return 0;
   4595 if (sizeof (pid_t))
   4596   return 0;
   4597   ;
   4598   return 0;
   4599 }
   4600 _ACEOF
   4601 rm -f conftest.$ac_objext
   4602 if { (eval echo "$as_me:4602: \"$ac_compile\"") >&5
   4603   (eval $ac_compile) 2>&5
   4604   ac_status=$?
   4605   echo "$as_me:4605: \$? = $ac_status" >&5
   4606   (exit $ac_status); } &&
   4607          { ac_try='test -s conftest.$ac_objext'
   4608   { (eval echo "$as_me:4608: \"$ac_try\"") >&5
   4609   (eval $ac_try) 2>&5
   4610   ac_status=$?
   4611   echo "$as_me:4611: \$? = $ac_status" >&5
   4612   (exit $ac_status); }; }; then
   4613   ac_cv_type_pid_t=yes
   4614 else
   4615   echo "$as_me: failed program was:" >&5
   4616 cat conftest.$ac_ext >&5
   4617 ac_cv_type_pid_t=no
   4618 fi
   4619 rm -f conftest.$ac_objext conftest.$ac_ext
   4620 fi
   4621 echo "$as_me:4621: result: $ac_cv_type_pid_t" >&5
   4622 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
   4623 if test $ac_cv_type_pid_t = yes; then
   4624   :
   4625 else
   4626 
   4627 cat >>confdefs.h <<EOF
   4628 #define pid_t int
   4629 EOF
   4630 
   4631 fi
   4632 
   4633 echo "$as_me:4633: checking for uid_t in sys/types.h" >&5
   4634 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
   4635 if test "${ac_cv_type_uid_t+set}" = set; then
   4636   echo $ECHO_N "(cached) $ECHO_C" >&6
   4637 else
   4638   cat >conftest.$ac_ext <<_ACEOF
   4639 #line 4639 "configure"
   4640 #include "confdefs.h"
   4641 #include <sys/types.h>
   4642 
   4643 _ACEOF
   4644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4645   egrep "uid_t" >/dev/null 2>&1; then
   4646   ac_cv_type_uid_t=yes
   4647 else
   4648   ac_cv_type_uid_t=no
   4649 fi
   4650 rm -rf conftest*
   4651 
   4652 fi
   4653 echo "$as_me:4653: result: $ac_cv_type_uid_t" >&5
   4654 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
   4655 if test $ac_cv_type_uid_t = no; then
   4656 
   4657 cat >>confdefs.h <<\EOF
   4658 #define uid_t int
   4659 EOF
   4660 
   4661 cat >>confdefs.h <<\EOF
   4662 #define gid_t int
   4663 EOF
   4664 
   4665 fi
   4666 
   4667 echo "$as_me:4667: checking for off_t" >&5
   4668 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
   4669 if test "${ac_cv_type_off_t+set}" = set; then
   4670   echo $ECHO_N "(cached) $ECHO_C" >&6
   4671 else
   4672   cat >conftest.$ac_ext <<_ACEOF
   4673 #line 4673 "configure"
   4674 #include "confdefs.h"
   4675 $ac_includes_default
   4676 int
   4677 main (void)
   4678 {
   4679 if ((off_t *) 0)
   4680   return 0;
   4681 if (sizeof (off_t))
   4682   return 0;
   4683   ;
   4684   return 0;
   4685 }
   4686 _ACEOF
   4687 rm -f conftest.$ac_objext
   4688 if { (eval echo "$as_me:4688: \"$ac_compile\"") >&5
   4689   (eval $ac_compile) 2>&5
   4690   ac_status=$?
   4691   echo "$as_me:4691: \$? = $ac_status" >&5
   4692   (exit $ac_status); } &&
   4693          { ac_try='test -s conftest.$ac_objext'
   4694   { (eval echo "$as_me:4694: \"$ac_try\"") >&5
   4695   (eval $ac_try) 2>&5
   4696   ac_status=$?
   4697   echo "$as_me:4697: \$? = $ac_status" >&5
   4698   (exit $ac_status); }; }; then
   4699   ac_cv_type_off_t=yes
   4700 else
   4701   echo "$as_me: failed program was:" >&5
   4702 cat conftest.$ac_ext >&5
   4703 ac_cv_type_off_t=no
   4704 fi
   4705 rm -f conftest.$ac_objext conftest.$ac_ext
   4706 fi
   4707 echo "$as_me:4707: result: $ac_cv_type_off_t" >&5
   4708 echo "${ECHO_T}$ac_cv_type_off_t" >&6
   4709 if test $ac_cv_type_off_t = yes; then
   4710   :
   4711 else
   4712 
   4713 cat >>confdefs.h <<EOF
   4714 #define off_t long
   4715 EOF
   4716 
   4717 fi
   4718 
   4719 ###	checks for library functions
   4720 
   4721 for ac_func in \
   4722 	gethostname \
   4723 	getlogin \
   4724 	initgroups \
   4725 	mkdtemp \
   4726 	putenv \
   4727 	unsetenv \
   4728 	sched_yield \
   4729 	setpgid \
   4730 	strftime \
   4731 	tcgetattr \
   4732 	waitpid \
   4733 	wcswidth \
   4734 	wcwidth
   4735 do
   4736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   4737 echo "$as_me:4737: checking for $ac_func" >&5
   4738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   4739 if eval "test \"\${$as_ac_var+set}\" = set"; then
   4740   echo $ECHO_N "(cached) $ECHO_C" >&6
   4741 else
   4742   cat >conftest.$ac_ext <<_ACEOF
   4743 #line 4743 "configure"
   4744 #include "confdefs.h"
   4745 /* System header to define __stub macros and hopefully few prototypes,
   4746     which can conflict with char $ac_func (); below.  */
   4747 #include <assert.h>
   4748 /* Override any gcc2 internal prototype to avoid an error.  */
   4749 #ifdef __cplusplus
   4750 extern "C"
   4751 #endif
   4752 /* We use char because int might match the return type of a gcc2
   4753    builtin and then its argument prototype would still apply.  */
   4754 char $ac_func ();
   4755 char (*f) ();
   4756 
   4757 int
   4758 main (void)
   4759 {
   4760 /* The GNU C library defines this for functions which it implements
   4761     to always fail with ENOSYS.  Some functions are actually named
   4762     something starting with __ and the normal name is an alias.  */
   4763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   4764 choke me
   4765 #else
   4766 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
   4767 #endif
   4768 
   4769   ;
   4770   return 0;
   4771 }
   4772 _ACEOF
   4773 rm -f conftest.$ac_objext conftest$ac_exeext
   4774 if { (eval echo "$as_me:4774: \"$ac_link\"") >&5
   4775   (eval $ac_link) 2>&5
   4776   ac_status=$?
   4777   echo "$as_me:4777: \$? = $ac_status" >&5
   4778   (exit $ac_status); } &&
   4779          { ac_try='test -s conftest$ac_exeext'
   4780   { (eval echo "$as_me:4780: \"$ac_try\"") >&5
   4781   (eval $ac_try) 2>&5
   4782   ac_status=$?
   4783   echo "$as_me:4783: \$? = $ac_status" >&5
   4784   (exit $ac_status); }; }; then
   4785   eval "$as_ac_var=yes"
   4786 else
   4787   echo "$as_me: failed program was:" >&5
   4788 cat conftest.$ac_ext >&5
   4789 eval "$as_ac_var=no"
   4790 fi
   4791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   4792 fi
   4793 echo "$as_me:4793: result: `eval echo '${'$as_ac_var'}'`" >&5
   4794 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   4795 if test `eval echo '${'$as_ac_var'}'` = yes; then
   4796   cat >>confdefs.h <<EOF
   4797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   4798 EOF
   4799 
   4800 fi
   4801 done
   4802 
   4803 for ac_header in lastlog.h paths.h
   4804 do
   4805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4806 echo "$as_me:4806: checking for $ac_header" >&5
   4807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   4808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   4809   echo $ECHO_N "(cached) $ECHO_C" >&6
   4810 else
   4811   cat >conftest.$ac_ext <<_ACEOF
   4812 #line 4812 "configure"
   4813 #include "confdefs.h"
   4814 #include <$ac_header>
   4815 _ACEOF
   4816 if { (eval echo "$as_me:4816: \"$ac_cpp conftest.$ac_ext\"") >&5
   4817   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   4818   ac_status=$?
   4819   egrep -v '^ *\+' conftest.er1 >conftest.err
   4820   rm -f conftest.er1
   4821   cat conftest.err >&5
   4822   echo "$as_me:4822: \$? = $ac_status" >&5
   4823   (exit $ac_status); } >/dev/null; then
   4824   if test -s conftest.err; then
   4825     ac_cpp_err=$ac_c_preproc_warn_flag
   4826   else
   4827     ac_cpp_err=
   4828   fi
   4829 else
   4830   ac_cpp_err=yes
   4831 fi
   4832 if test -z "$ac_cpp_err"; then
   4833   eval "$as_ac_Header=yes"
   4834 else
   4835   echo "$as_me: failed program was:" >&5
   4836   cat conftest.$ac_ext >&5
   4837   eval "$as_ac_Header=no"
   4838 fi
   4839 rm -f conftest.err conftest.$ac_ext
   4840 fi
   4841 echo "$as_me:4841: result: `eval echo '${'$as_ac_Header'}'`" >&5
   4842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   4843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4844   cat >>confdefs.h <<EOF
   4845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4846 EOF
   4847 
   4848 fi
   4849 done
   4850 
   4851 echo "$as_me:4851: checking for lastlog path" >&5
   4852 echo $ECHO_N "checking for lastlog path... $ECHO_C" >&6
   4853 if test "${cf_cv_path_lastlog+set}" = set; then
   4854   echo $ECHO_N "(cached) $ECHO_C" >&6
   4855 else
   4856 
   4857 cat >conftest.$ac_ext <<_ACEOF
   4858 #line 4858 "configure"
   4859 #include "confdefs.h"
   4860 
   4861 #include <sys/types.h>
   4862 #ifdef HAVE_LASTLOG_H
   4863 #include <lastlog.h>
   4864 #else
   4865 #ifdef HAVE_PATHS_H
   4866 #include <paths.h>
   4867 #endif
   4868 #endif
   4869 int
   4870 main (void)
   4871 {
   4872 char *path = _PATH_LASTLOG
   4873   ;
   4874   return 0;
   4875 }
   4876 _ACEOF
   4877 rm -f conftest.$ac_objext
   4878 if { (eval echo "$as_me:4878: \"$ac_compile\"") >&5
   4879   (eval $ac_compile) 2>&5
   4880   ac_status=$?
   4881   echo "$as_me:4881: \$? = $ac_status" >&5
   4882   (exit $ac_status); } &&
   4883          { ac_try='test -s conftest.$ac_objext'
   4884   { (eval echo "$as_me:4884: \"$ac_try\"") >&5
   4885   (eval $ac_try) 2>&5
   4886   ac_status=$?
   4887   echo "$as_me:4887: \$? = $ac_status" >&5
   4888   (exit $ac_status); }; }; then
   4889   cf_cv_path_lastlog="_PATH_LASTLOG"
   4890 else
   4891   echo "$as_me: failed program was:" >&5
   4892 cat conftest.$ac_ext >&5
   4893 if test -f /usr/adm/lastlog ; then
   4894 	 	cf_cv_path_lastlog=/usr/adm/lastlog
   4895 	else
   4896 		cf_cv_path_lastlog=no
   4897 	fi
   4898 fi
   4899 rm -f conftest.$ac_objext conftest.$ac_ext
   4900 
   4901 fi
   4902 echo "$as_me:4902: result: $cf_cv_path_lastlog" >&5
   4903 echo "${ECHO_T}$cf_cv_path_lastlog" >&6
   4904 test $cf_cv_path_lastlog != no &&
   4905 cat >>confdefs.h <<\EOF
   4906 #define USE_LASTLOG 1
   4907 EOF
   4908 
   4909 echo "$as_me:4909: checking for utmp implementation" >&5
   4910 echo $ECHO_N "checking for utmp implementation... $ECHO_C" >&6
   4911 if test "${cf_cv_have_utmp+set}" = set; then
   4912   echo $ECHO_N "(cached) $ECHO_C" >&6
   4913 else
   4914 
   4915 	cf_cv_have_utmp=no
   4916 for cf_header in utmpx utmp ; do
   4917 cf_utmp_includes="
   4918 #include <sys/types.h>
   4919 #include <${cf_header}.h>
   4920 #define getutent getutxent
   4921 #ifdef USE_LASTLOG
   4922 #include <lastlog.h>	/* may conflict with utmpx.h on Linux */
   4923 #endif
   4924 "
   4925 	cat >conftest.$ac_ext <<_ACEOF
   4926 #line 4926 "configure"
   4927 #include "confdefs.h"
   4928 $cf_utmp_includes
   4929 int
   4930 main (void)
   4931 {
   4932 struct $cf_header x;
   4933 	 char *name = x.ut_name; /* utmp.h and compatible definitions */
   4934 
   4935   ;
   4936   return 0;
   4937 }
   4938 _ACEOF
   4939 rm -f conftest.$ac_objext
   4940 if { (eval echo "$as_me:4940: \"$ac_compile\"") >&5
   4941   (eval $ac_compile) 2>&5
   4942   ac_status=$?
   4943   echo "$as_me:4943: \$? = $ac_status" >&5
   4944   (exit $ac_status); } &&
   4945          { ac_try='test -s conftest.$ac_objext'
   4946   { (eval echo "$as_me:4946: \"$ac_try\"") >&5
   4947   (eval $ac_try) 2>&5
   4948   ac_status=$?
   4949   echo "$as_me:4949: \$? = $ac_status" >&5
   4950   (exit $ac_status); }; }; then
   4951   cf_cv_have_utmp=$cf_header
   4952 	 break
   4953 else
   4954   echo "$as_me: failed program was:" >&5
   4955 cat conftest.$ac_ext >&5
   4956 
   4957 	cat >conftest.$ac_ext <<_ACEOF
   4958 #line 4958 "configure"
   4959 #include "confdefs.h"
   4960 $cf_utmp_includes
   4961 int
   4962 main (void)
   4963 {
   4964 struct $cf_header x;
   4965 	 char *name = x.ut_user; /* utmpx.h must declare this */
   4966 
   4967   ;
   4968   return 0;
   4969 }
   4970 _ACEOF
   4971 rm -f conftest.$ac_objext
   4972 if { (eval echo "$as_me:4972: \"$ac_compile\"") >&5
   4973   (eval $ac_compile) 2>&5
   4974   ac_status=$?
   4975   echo "$as_me:4975: \$? = $ac_status" >&5
   4976   (exit $ac_status); } &&
   4977          { ac_try='test -s conftest.$ac_objext'
   4978   { (eval echo "$as_me:4978: \"$ac_try\"") >&5
   4979   (eval $ac_try) 2>&5
   4980   ac_status=$?
   4981   echo "$as_me:4981: \$? = $ac_status" >&5
   4982   (exit $ac_status); }; }; then
   4983   cf_cv_have_utmp=$cf_header
   4984 	 break
   4985 
   4986 else
   4987   echo "$as_me: failed program was:" >&5
   4988 cat conftest.$ac_ext >&5
   4989 fi
   4990 rm -f conftest.$ac_objext conftest.$ac_ext
   4991 fi
   4992 rm -f conftest.$ac_objext conftest.$ac_ext
   4993 done
   4994 
   4995 fi
   4996 echo "$as_me:4996: result: $cf_cv_have_utmp" >&5
   4997 echo "${ECHO_T}$cf_cv_have_utmp" >&6
   4998 
   4999 if test $cf_cv_have_utmp != no ; then
   5000 
   5001 cat >>confdefs.h <<\EOF
   5002 #define HAVE_UTMP 1
   5003 EOF
   5004 
   5005 	test $cf_cv_have_utmp = utmpx &&
   5006 cat >>confdefs.h <<\EOF
   5007 #define UTMPX_FOR_UTMP 1
   5008 EOF
   5009 
   5010 if test $cf_cv_have_utmp != no ; then
   5011 echo "$as_me:5011: checking if ${cf_cv_have_utmp}.ut_host is declared" >&5
   5012 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_host is declared... $ECHO_C" >&6
   5013 if test "${cf_cv_have_utmp_ut_host+set}" = set; then
   5014   echo $ECHO_N "(cached) $ECHO_C" >&6
   5015 else
   5016 
   5017 	cat >conftest.$ac_ext <<_ACEOF
   5018 #line 5018 "configure"
   5019 #include "confdefs.h"
   5020 
   5021 #include <sys/types.h>
   5022 #include <${cf_cv_have_utmp}.h>
   5023 int
   5024 main (void)
   5025 {
   5026 struct $cf_cv_have_utmp x; char *y = &x.ut_host[0]
   5027   ;
   5028   return 0;
   5029 }
   5030 _ACEOF
   5031 rm -f conftest.$ac_objext
   5032 if { (eval echo "$as_me:5032: \"$ac_compile\"") >&5
   5033   (eval $ac_compile) 2>&5
   5034   ac_status=$?
   5035   echo "$as_me:5035: \$? = $ac_status" >&5
   5036   (exit $ac_status); } &&
   5037          { ac_try='test -s conftest.$ac_objext'
   5038   { (eval echo "$as_me:5038: \"$ac_try\"") >&5
   5039   (eval $ac_try) 2>&5
   5040   ac_status=$?
   5041   echo "$as_me:5041: \$? = $ac_status" >&5
   5042   (exit $ac_status); }; }; then
   5043   cf_cv_have_utmp_ut_host=yes
   5044 else
   5045   echo "$as_me: failed program was:" >&5
   5046 cat conftest.$ac_ext >&5
   5047 cf_cv_have_utmp_ut_host=no
   5048 fi
   5049 rm -f conftest.$ac_objext conftest.$ac_ext
   5050 
   5051 fi
   5052 
   5053 echo "$as_me:5053: result: $cf_cv_have_utmp_ut_host" >&5
   5054 echo "${ECHO_T}$cf_cv_have_utmp_ut_host" >&6
   5055 test $cf_cv_have_utmp_ut_host != no &&
   5056 cat >>confdefs.h <<\EOF
   5057 #define HAVE_UTMP_UT_HOST 1
   5058 EOF
   5059 
   5060 fi
   5061 
   5062 if test $cf_cv_have_utmp != no ; then
   5063 echo "$as_me:5063: checking if ${cf_cv_have_utmp}.ut_syslen is declared" >&5
   5064 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_syslen is declared... $ECHO_C" >&6
   5065 if test "${cf_cv_have_utmp_ut_syslen+set}" = set; then
   5066   echo $ECHO_N "(cached) $ECHO_C" >&6
   5067 else
   5068 
   5069 	cat >conftest.$ac_ext <<_ACEOF
   5070 #line 5070 "configure"
   5071 #include "confdefs.h"
   5072 
   5073 #include <sys/types.h>
   5074 #include <${cf_cv_have_utmp}.h>
   5075 int
   5076 main (void)
   5077 {
   5078 struct $cf_cv_have_utmp x; int y = x.ut_syslen
   5079   ;
   5080   return 0;
   5081 }
   5082 _ACEOF
   5083 rm -f conftest.$ac_objext
   5084 if { (eval echo "$as_me:5084: \"$ac_compile\"") >&5
   5085   (eval $ac_compile) 2>&5
   5086   ac_status=$?
   5087   echo "$as_me:5087: \$? = $ac_status" >&5
   5088   (exit $ac_status); } &&
   5089          { ac_try='test -s conftest.$ac_objext'
   5090   { (eval echo "$as_me:5090: \"$ac_try\"") >&5
   5091   (eval $ac_try) 2>&5
   5092   ac_status=$?
   5093   echo "$as_me:5093: \$? = $ac_status" >&5
   5094   (exit $ac_status); }; }; then
   5095   cf_cv_have_utmp_ut_syslen=yes
   5096 else
   5097   echo "$as_me: failed program was:" >&5
   5098 cat conftest.$ac_ext >&5
   5099 cf_cv_have_utmp_ut_syslen=no
   5100 fi
   5101 rm -f conftest.$ac_objext conftest.$ac_ext
   5102 
   5103 fi
   5104 
   5105 echo "$as_me:5105: result: $cf_cv_have_utmp_ut_syslen" >&5
   5106 echo "${ECHO_T}$cf_cv_have_utmp_ut_syslen" >&6
   5107 test $cf_cv_have_utmp_ut_syslen != no &&
   5108 cat >>confdefs.h <<\EOF
   5109 #define HAVE_UTMP_UT_SYSLEN 1
   5110 EOF
   5111 
   5112 fi
   5113 
   5114 if test $cf_cv_have_utmp != no ; then
   5115 echo "$as_me:5115: checking if ${cf_cv_have_utmp}.ut_name is declared" >&5
   5116 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_name is declared... $ECHO_C" >&6
   5117 if test "${cf_cv_have_utmp_ut_name+set}" = set; then
   5118   echo $ECHO_N "(cached) $ECHO_C" >&6
   5119 else
   5120 
   5121 	cf_cv_have_utmp_ut_name=no
   5122 cf_utmp_includes="
   5123 #include <sys/types.h>
   5124 #include <${cf_cv_have_utmp}.h>
   5125 #define getutent getutxent
   5126 #ifdef USE_LASTLOG
   5127 #include <lastlog.h>		/* may conflict with utmpx.h on Linux */
   5128 #endif
   5129 "
   5130 for cf_header in ut_name ut_user ; do
   5131 	cat >conftest.$ac_ext <<_ACEOF
   5132 #line 5132 "configure"
   5133 #include "confdefs.h"
   5134 $cf_utmp_includes
   5135 int
   5136 main (void)
   5137 {
   5138 struct $cf_cv_have_utmp x;
   5139 	 char *name = x.$cf_header;
   5140 
   5141   ;
   5142   return 0;
   5143 }
   5144 _ACEOF
   5145 rm -f conftest.$ac_objext
   5146 if { (eval echo "$as_me:5146: \"$ac_compile\"") >&5
   5147   (eval $ac_compile) 2>&5
   5148   ac_status=$?
   5149   echo "$as_me:5149: \$? = $ac_status" >&5
   5150   (exit $ac_status); } &&
   5151          { ac_try='test -s conftest.$ac_objext'
   5152   { (eval echo "$as_me:5152: \"$ac_try\"") >&5
   5153   (eval $ac_try) 2>&5
   5154   ac_status=$?
   5155   echo "$as_me:5155: \$? = $ac_status" >&5
   5156   (exit $ac_status); }; }; then
   5157   cf_cv_have_utmp_ut_name=$cf_header
   5158 	 break
   5159 else
   5160   echo "$as_me: failed program was:" >&5
   5161 cat conftest.$ac_ext >&5
   5162 fi
   5163 rm -f conftest.$ac_objext conftest.$ac_ext
   5164 done
   5165 
   5166 fi
   5167 echo "$as_me:5167: result: $cf_cv_have_utmp_ut_name" >&5
   5168 echo "${ECHO_T}$cf_cv_have_utmp_ut_name" >&6
   5169 
   5170 case $cf_cv_have_utmp_ut_name in
   5171 (no)
   5172 	{ { echo "$as_me:5172: error: Cannot find declaration for ut.ut_name" >&5
   5173 echo "$as_me: error: Cannot find declaration for ut.ut_name" >&2;}
   5174    { (exit 1); exit 1; }; }
   5175 	;;
   5176 (ut_user)
   5177 
   5178 cat >>confdefs.h <<\EOF
   5179 #define ut_name ut_user
   5180 EOF
   5181 
   5182 	;;
   5183 esac
   5184 fi
   5185 
   5186 if test $cf_cv_have_utmp != no ; then
   5187 echo "$as_me:5187: checking for exit-status in $cf_cv_have_utmp" >&5
   5188 echo $ECHO_N "checking for exit-status in $cf_cv_have_utmp... $ECHO_C" >&6
   5189 if test "${cf_cv_have_utmp_ut_xstatus+set}" = set; then
   5190   echo $ECHO_N "(cached) $ECHO_C" >&6
   5191 else
   5192 
   5193 for cf_result in \
   5194 	ut_exit.__e_exit \
   5195 	ut_exit.e_exit \
   5196 	ut_exit.ut_e_exit \
   5197 	ut_exit.ut_exit
   5198 do
   5199 cat >conftest.$ac_ext <<_ACEOF
   5200 #line 5200 "configure"
   5201 #include "confdefs.h"
   5202 
   5203 #include <sys/types.h>
   5204 #include <${cf_cv_have_utmp}.h>
   5205 int
   5206 main (void)
   5207 {
   5208 struct $cf_cv_have_utmp x; long y = x.$cf_result = 0
   5209   ;
   5210   return 0;
   5211 }
   5212 _ACEOF
   5213 rm -f conftest.$ac_objext
   5214 if { (eval echo "$as_me:5214: \"$ac_compile\"") >&5
   5215   (eval $ac_compile) 2>&5
   5216   ac_status=$?
   5217   echo "$as_me:5217: \$? = $ac_status" >&5
   5218   (exit $ac_status); } &&
   5219          { ac_try='test -s conftest.$ac_objext'
   5220   { (eval echo "$as_me:5220: \"$ac_try\"") >&5
   5221   (eval $ac_try) 2>&5
   5222   ac_status=$?
   5223   echo "$as_me:5223: \$? = $ac_status" >&5
   5224   (exit $ac_status); }; }; then
   5225   cf_cv_have_utmp_ut_xstatus=$cf_result
   5226 	 break
   5227 else
   5228   echo "$as_me: failed program was:" >&5
   5229 cat conftest.$ac_ext >&5
   5230 cf_cv_have_utmp_ut_xstatus=no
   5231 fi
   5232 rm -f conftest.$ac_objext conftest.$ac_ext
   5233 done
   5234 
   5235 fi
   5236 echo "$as_me:5236: result: $cf_cv_have_utmp_ut_xstatus" >&5
   5237 echo "${ECHO_T}$cf_cv_have_utmp_ut_xstatus" >&6
   5238 if test $cf_cv_have_utmp_ut_xstatus != no ; then
   5239 
   5240 cat >>confdefs.h <<\EOF
   5241 #define HAVE_UTMP_UT_XSTATUS 1
   5242 EOF
   5243 
   5244 cat >>confdefs.h <<EOF
   5245 #define ut_xstatus $cf_cv_have_utmp_ut_xstatus
   5246 EOF
   5247 
   5248 fi
   5249 fi
   5250 
   5251 if test $cf_cv_have_utmp != no ; then
   5252 echo "$as_me:5252: checking if ${cf_cv_have_utmp}.ut_xtime is declared" >&5
   5253 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_xtime is declared... $ECHO_C" >&6
   5254 if test "${cf_cv_have_utmp_ut_xtime+set}" = set; then
   5255   echo $ECHO_N "(cached) $ECHO_C" >&6
   5256 else
   5257 
   5258 	cat >conftest.$ac_ext <<_ACEOF
   5259 #line 5259 "configure"
   5260 #include "confdefs.h"
   5261 
   5262 #include <sys/types.h>
   5263 #include <${cf_cv_have_utmp}.h>
   5264 int
   5265 main (void)
   5266 {
   5267 struct $cf_cv_have_utmp x; long y = x.ut_xtime = 0
   5268   ;
   5269   return 0;
   5270 }
   5271 _ACEOF
   5272 rm -f conftest.$ac_objext
   5273 if { (eval echo "$as_me:5273: \"$ac_compile\"") >&5
   5274   (eval $ac_compile) 2>&5
   5275   ac_status=$?
   5276   echo "$as_me:5276: \$? = $ac_status" >&5
   5277   (exit $ac_status); } &&
   5278          { ac_try='test -s conftest.$ac_objext'
   5279   { (eval echo "$as_me:5279: \"$ac_try\"") >&5
   5280   (eval $ac_try) 2>&5
   5281   ac_status=$?
   5282   echo "$as_me:5282: \$? = $ac_status" >&5
   5283   (exit $ac_status); }; }; then
   5284   cf_cv_have_utmp_ut_xtime=yes
   5285 else
   5286   echo "$as_me: failed program was:" >&5
   5287 cat conftest.$ac_ext >&5
   5288 cat >conftest.$ac_ext <<_ACEOF
   5289 #line 5289 "configure"
   5290 #include "confdefs.h"
   5291 
   5292 #include <sys/types.h>
   5293 #include <${cf_cv_have_utmp}.h>
   5294 int
   5295 main (void)
   5296 {
   5297 struct $cf_cv_have_utmp x; long y = x.ut_tv.tv_sec
   5298   ;
   5299   return 0;
   5300 }
   5301 _ACEOF
   5302 rm -f conftest.$ac_objext
   5303 if { (eval echo "$as_me:5303: \"$ac_compile\"") >&5
   5304   (eval $ac_compile) 2>&5
   5305   ac_status=$?
   5306   echo "$as_me:5306: \$? = $ac_status" >&5
   5307   (exit $ac_status); } &&
   5308          { ac_try='test -s conftest.$ac_objext'
   5309   { (eval echo "$as_me:5309: \"$ac_try\"") >&5
   5310   (eval $ac_try) 2>&5
   5311   ac_status=$?
   5312   echo "$as_me:5312: \$? = $ac_status" >&5
   5313   (exit $ac_status); }; }; then
   5314   cf_cv_have_utmp_ut_xtime=define
   5315 else
   5316   echo "$as_me: failed program was:" >&5
   5317 cat conftest.$ac_ext >&5
   5318 cf_cv_have_utmp_ut_xtime=no
   5319 fi
   5320 rm -f conftest.$ac_objext conftest.$ac_ext
   5321 
   5322 fi
   5323 rm -f conftest.$ac_objext conftest.$ac_ext
   5324 
   5325 fi
   5326 echo "$as_me:5326: result: $cf_cv_have_utmp_ut_xtime" >&5
   5327 echo "${ECHO_T}$cf_cv_have_utmp_ut_xtime" >&6
   5328 if test $cf_cv_have_utmp_ut_xtime != no ; then
   5329 
   5330 cat >>confdefs.h <<\EOF
   5331 #define HAVE_UTMP_UT_XTIME 1
   5332 EOF
   5333 
   5334 	if test $cf_cv_have_utmp_ut_xtime = define ; then
   5335 
   5336 cat >>confdefs.h <<\EOF
   5337 #define ut_xtime ut_tv.tv_sec
   5338 EOF
   5339 
   5340 	fi
   5341 fi
   5342 fi
   5343 
   5344 if test $cf_cv_have_utmp != no ; then
   5345 echo "$as_me:5345: checking if ${cf_cv_have_utmp}.ut_session is declared" >&5
   5346 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_session is declared... $ECHO_C" >&6
   5347 if test "${cf_cv_have_utmp_ut_session+set}" = set; then
   5348   echo $ECHO_N "(cached) $ECHO_C" >&6
   5349 else
   5350 
   5351 	cat >conftest.$ac_ext <<_ACEOF
   5352 #line 5352 "configure"
   5353 #include "confdefs.h"
   5354 
   5355 #include <sys/types.h>
   5356 #include <${cf_cv_have_utmp}.h>
   5357 int
   5358 main (void)
   5359 {
   5360 struct $cf_cv_have_utmp x; long y = x.ut_session
   5361   ;
   5362   return 0;
   5363 }
   5364 _ACEOF
   5365 rm -f conftest.$ac_objext
   5366 if { (eval echo "$as_me:5366: \"$ac_compile\"") >&5
   5367   (eval $ac_compile) 2>&5
   5368   ac_status=$?
   5369   echo "$as_me:5369: \$? = $ac_status" >&5
   5370   (exit $ac_status); } &&
   5371          { ac_try='test -s conftest.$ac_objext'
   5372   { (eval echo "$as_me:5372: \"$ac_try\"") >&5
   5373   (eval $ac_try) 2>&5
   5374   ac_status=$?
   5375   echo "$as_me:5375: \$? = $ac_status" >&5
   5376   (exit $ac_status); }; }; then
   5377   cf_cv_have_utmp_ut_session=yes
   5378 else
   5379   echo "$as_me: failed program was:" >&5
   5380 cat conftest.$ac_ext >&5
   5381 cf_cv_have_utmp_ut_session=no
   5382 fi
   5383 rm -f conftest.$ac_objext conftest.$ac_ext
   5384 
   5385 fi
   5386 echo "$as_me:5386: result: $cf_cv_have_utmp_ut_session" >&5
   5387 echo "${ECHO_T}$cf_cv_have_utmp_ut_session" >&6
   5388 if test $cf_cv_have_utmp_ut_session != no ; then
   5389 
   5390 cat >>confdefs.h <<\EOF
   5391 #define HAVE_UTMP_UT_SESSION 1
   5392 EOF
   5393 
   5394 fi
   5395 fi
   5396 
   5397 echo "$as_me:5397: checking if $cf_cv_have_utmp is SYSV flavor" >&5
   5398 echo $ECHO_N "checking if $cf_cv_have_utmp is SYSV flavor... $ECHO_C" >&6
   5399 if test "${cf_cv_sysv_utmp+set}" = set; then
   5400   echo $ECHO_N "(cached) $ECHO_C" >&6
   5401 else
   5402 
   5403 test "$cf_cv_have_utmp" = "utmp" && cf_prefix="ut" || cf_prefix="utx"
   5404 cat >conftest.$ac_ext <<_ACEOF
   5405 #line 5405 "configure"
   5406 #include "confdefs.h"
   5407 
   5408 #include <sys/types.h>
   5409 #include <${cf_cv_have_utmp}.h>
   5410 int
   5411 main (void)
   5412 {
   5413 
   5414 struct $cf_cv_have_utmp x;
   5415 	set${cf_prefix}ent ();
   5416 	get${cf_prefix}id(&x);
   5417 	put${cf_prefix}line(&x);
   5418 	end${cf_prefix}ent();
   5419   ;
   5420   return 0;
   5421 }
   5422 _ACEOF
   5423 rm -f conftest.$ac_objext conftest$ac_exeext
   5424 if { (eval echo "$as_me:5424: \"$ac_link\"") >&5
   5425   (eval $ac_link) 2>&5
   5426   ac_status=$?
   5427   echo "$as_me:5427: \$? = $ac_status" >&5
   5428   (exit $ac_status); } &&
   5429          { ac_try='test -s conftest$ac_exeext'
   5430   { (eval echo "$as_me:5430: \"$ac_try\"") >&5
   5431   (eval $ac_try) 2>&5
   5432   ac_status=$?
   5433   echo "$as_me:5433: \$? = $ac_status" >&5
   5434   (exit $ac_status); }; }; then
   5435   cf_cv_sysv_utmp=yes
   5436 else
   5437   echo "$as_me: failed program was:" >&5
   5438 cat conftest.$ac_ext >&5
   5439 cf_cv_sysv_utmp=no
   5440 fi
   5441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   5442 
   5443 fi
   5444 echo "$as_me:5444: result: $cf_cv_sysv_utmp" >&5
   5445 echo "${ECHO_T}$cf_cv_sysv_utmp" >&6
   5446 test $cf_cv_sysv_utmp = yes &&
   5447 cat >>confdefs.h <<\EOF
   5448 #define USE_SYSV_UTMP 1
   5449 EOF
   5450 
   5451 fi
   5452 
   5453 for ac_header in lastlog.h
   5454 do
   5455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5456 echo "$as_me:5456: checking for $ac_header" >&5
   5457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   5458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   5459   echo $ECHO_N "(cached) $ECHO_C" >&6
   5460 else
   5461   cat >conftest.$ac_ext <<_ACEOF
   5462 #line 5462 "configure"
   5463 #include "confdefs.h"
   5464 #include <$ac_header>
   5465 _ACEOF
   5466 if { (eval echo "$as_me:5466: \"$ac_cpp conftest.$ac_ext\"") >&5
   5467   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   5468   ac_status=$?
   5469   egrep -v '^ *\+' conftest.er1 >conftest.err
   5470   rm -f conftest.er1
   5471   cat conftest.err >&5
   5472   echo "$as_me:5472: \$? = $ac_status" >&5
   5473   (exit $ac_status); } >/dev/null; then
   5474   if test -s conftest.err; then
   5475     ac_cpp_err=$ac_c_preproc_warn_flag
   5476   else
   5477     ac_cpp_err=
   5478   fi
   5479 else
   5480   ac_cpp_err=yes
   5481 fi
   5482 if test -z "$ac_cpp_err"; then
   5483   eval "$as_ac_Header=yes"
   5484 else
   5485   echo "$as_me: failed program was:" >&5
   5486   cat conftest.$ac_ext >&5
   5487   eval "$as_ac_Header=no"
   5488 fi
   5489 rm -f conftest.err conftest.$ac_ext
   5490 fi
   5491 echo "$as_me:5491: result: `eval echo '${'$as_ac_Header'}'`" >&5
   5492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   5493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   5494   cat >>confdefs.h <<EOF
   5495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5496 EOF
   5497 
   5498 fi
   5499 done
   5500 
   5501 echo "$as_me:5501: checking for struct lastlog" >&5
   5502 echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
   5503 if test "${cf_cv_struct_lastlog+set}" = set; then
   5504   echo $ECHO_N "(cached) $ECHO_C" >&6
   5505 else
   5506 
   5507 if test "$cross_compiling" = yes; then
   5508 
   5509 cf_cv_struct_lastlog=unknown
   5510 else
   5511   cat >conftest.$ac_ext <<_ACEOF
   5512 #line 5512 "configure"
   5513 #include "confdefs.h"
   5514 
   5515 #include <sys/types.h>
   5516 #include <time.h>
   5517 #include <lastlog.h>
   5518 
   5519 int main()
   5520 {
   5521 	struct lastlog data;
   5522 	return (sizeof(data.ll_time) != sizeof(time_t));
   5523 }
   5524 _ACEOF
   5525 rm -f conftest$ac_exeext
   5526 if { (eval echo "$as_me:5526: \"$ac_link\"") >&5
   5527   (eval $ac_link) 2>&5
   5528   ac_status=$?
   5529   echo "$as_me:5529: \$? = $ac_status" >&5
   5530   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   5531   { (eval echo "$as_me:5531: \"$ac_try\"") >&5
   5532   (eval $ac_try) 2>&5
   5533   ac_status=$?
   5534   echo "$as_me:5534: \$? = $ac_status" >&5
   5535   (exit $ac_status); }; }; then
   5536 
   5537 cf_cv_struct_lastlog=yes
   5538 else
   5539   echo "$as_me: program exited with status $ac_status" >&5
   5540 echo "$as_me: failed program was:" >&5
   5541 cat conftest.$ac_ext >&5
   5542 
   5543 cf_cv_struct_lastlog=no
   5544 fi
   5545 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   5546 fi
   5547 fi
   5548 echo "$as_me:5548: result: $cf_cv_struct_lastlog" >&5
   5549 echo "${ECHO_T}$cf_cv_struct_lastlog" >&6
   5550 
   5551 test $cf_cv_struct_lastlog != no &&
   5552 cat >>confdefs.h <<\EOF
   5553 #define USE_STRUCT_LASTLOG 1
   5554 EOF
   5555 
   5556 for ac_header in \
   5557 sys/param.h \
   5558 
   5559 do
   5560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5561 echo "$as_me:5561: checking for $ac_header" >&5
   5562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   5563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   5564   echo $ECHO_N "(cached) $ECHO_C" >&6
   5565 else
   5566   cat >conftest.$ac_ext <<_ACEOF
   5567 #line 5567 "configure"
   5568 #include "confdefs.h"
   5569 #include <$ac_header>
   5570 _ACEOF
   5571 if { (eval echo "$as_me:5571: \"$ac_cpp conftest.$ac_ext\"") >&5
   5572   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   5573   ac_status=$?
   5574   egrep -v '^ *\+' conftest.er1 >conftest.err
   5575   rm -f conftest.er1
   5576   cat conftest.err >&5
   5577   echo "$as_me:5577: \$? = $ac_status" >&5
   5578   (exit $ac_status); } >/dev/null; then
   5579   if test -s conftest.err; then
   5580     ac_cpp_err=$ac_c_preproc_warn_flag
   5581   else
   5582     ac_cpp_err=
   5583   fi
   5584 else
   5585   ac_cpp_err=yes
   5586 fi
   5587 if test -z "$ac_cpp_err"; then
   5588   eval "$as_ac_Header=yes"
   5589 else
   5590   echo "$as_me: failed program was:" >&5
   5591   cat conftest.$ac_ext >&5
   5592   eval "$as_ac_Header=no"
   5593 fi
   5594 rm -f conftest.err conftest.$ac_ext
   5595 fi
   5596 echo "$as_me:5596: result: `eval echo '${'$as_ac_Header'}'`" >&5
   5597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   5598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   5599   cat >>confdefs.h <<EOF
   5600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5601 EOF
   5602 
   5603 fi
   5604 done
   5605 
   5606 echo "$as_me:5606: checking if POSIX saved-ids are supported" >&5
   5607 echo $ECHO_N "checking if POSIX saved-ids are supported... $ECHO_C" >&6
   5608 if test "${cf_cv_posix_saved_ids+set}" = set; then
   5609   echo $ECHO_N "(cached) $ECHO_C" >&6
   5610 else
   5611 
   5612 cat >conftest.$ac_ext <<_ACEOF
   5613 #line 5613 "configure"
   5614 #include "confdefs.h"
   5615 
   5616 #include <unistd.h>
   5617 #ifdef HAVE_SYS_PARAM_H
   5618 #include <sys/param.h>		/* this may define "BSD" */
   5619 #endif
   5620 
   5621 int
   5622 main (void)
   5623 {
   5624 
   5625 #if defined(_POSIX_SAVED_IDS) && (_POSIX_SAVED_IDS > 0)
   5626 	void *p = (void *) seteuid;
   5627 	int x = seteuid(geteuid());
   5628 #elif defined(BSD) && (BSD >= 199103)
   5629 /* The BSD's may implement the runtime check - and it fails.
   5630  * However, saved-ids work almost like POSIX (close enough for most uses).
   5631  */
   5632 #else
   5633 make an error
   5634 #endif
   5635 
   5636   ;
   5637   return 0;
   5638 }
   5639 _ACEOF
   5640 rm -f conftest.$ac_objext conftest$ac_exeext
   5641 if { (eval echo "$as_me:5641: \"$ac_link\"") >&5
   5642   (eval $ac_link) 2>&5
   5643   ac_status=$?
   5644   echo "$as_me:5644: \$? = $ac_status" >&5
   5645   (exit $ac_status); } &&
   5646          { ac_try='test -s conftest$ac_exeext'
   5647   { (eval echo "$as_me:5647: \"$ac_try\"") >&5
   5648   (eval $ac_try) 2>&5
   5649   ac_status=$?
   5650   echo "$as_me:5650: \$? = $ac_status" >&5
   5651   (exit $ac_status); }; }; then
   5652   cf_cv_posix_saved_ids=yes
   5653 
   5654 else
   5655   echo "$as_me: failed program was:" >&5
   5656 cat conftest.$ac_ext >&5
   5657 
   5658 if test "$cross_compiling" = yes; then
   5659   cf_cv_posix_saved_ids=unknown
   5660 else
   5661   cat >conftest.$ac_ext <<_ACEOF
   5662 #line 5662 "configure"
   5663 #include "confdefs.h"
   5664 
   5665 #ifdef HAVE_STDLIB_H
   5666 #include <stdlib.h>
   5667 #endif
   5668 #include <unistd.h>
   5669 int main()
   5670 {
   5671 	void *p = (void *) seteuid;
   5672 	long code = sysconf(_SC_SAVED_IDS);
   5673 	${cf_cv_main_return:-return}  ((code > 0) ? 0 : 1);
   5674 }
   5675 _ACEOF
   5676 rm -f conftest$ac_exeext
   5677 if { (eval echo "$as_me:5677: \"$ac_link\"") >&5
   5678   (eval $ac_link) 2>&5
   5679   ac_status=$?
   5680   echo "$as_me:5680: \$? = $ac_status" >&5
   5681   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   5682   { (eval echo "$as_me:5682: \"$ac_try\"") >&5
   5683   (eval $ac_try) 2>&5
   5684   ac_status=$?
   5685   echo "$as_me:5685: \$? = $ac_status" >&5
   5686   (exit $ac_status); }; }; then
   5687   cf_cv_posix_saved_ids=yes
   5688 else
   5689   echo "$as_me: program exited with status $ac_status" >&5
   5690 echo "$as_me: failed program was:" >&5
   5691 cat conftest.$ac_ext >&5
   5692 cf_cv_posix_saved_ids=no
   5693 fi
   5694 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   5695 fi
   5696 
   5697 fi
   5698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   5699 
   5700 fi
   5701 echo "$as_me:5701: result: $cf_cv_posix_saved_ids" >&5
   5702 echo "${ECHO_T}$cf_cv_posix_saved_ids" >&6
   5703 
   5704 test "$cf_cv_posix_saved_ids" = yes &&
   5705 cat >>confdefs.h <<\EOF
   5706 #define HAVE_POSIX_SAVED_IDS 1
   5707 EOF
   5708 
   5709 # compute a reasonable value for $TERM to give tgetent(), since we may be
   5710 # running in 'screen', which sets $TERMCAP to a specific entry that is not
   5711 # necessarily in /etc/termcap - unsetenv is not portable, so we cannot simply
   5712 # discard $TERMCAP.
   5713 cf_TERMVAR=vt100
   5714 if test -n "$TERMCAP"
   5715 then
   5716 	cf_TERMCAP=`echo "$TERMCAP" | tr '\n' ' ' | sed -e 's/^..|//' -e 's/|.*//'`
   5717 	case "$cf_TERMCAP" in
   5718 	(screen*.*)
   5719 		;;
   5720 	(*)
   5721 		cf_TERMVAR="$cf_TERMCAP"
   5722 		;;
   5723 	esac
   5724 fi
   5725 test -z "$cf_TERMVAR" && cf_TERMVAR=vt100
   5726 
   5727 echo "$as_me:5727: checking if we want full tgetent function" >&5
   5728 echo $ECHO_N "checking if we want full tgetent function... $ECHO_C" >&6
   5729 
   5730 # Check whether --enable-full-tgetent or --disable-full-tgetent was given.
   5731 if test "${enable_full_tgetent+set}" = set; then
   5732   enableval="$enable_full_tgetent"
   5733   test "$enableval" != no && enableval=yes
   5734 	if test "$enableval" != "yes" ; then
   5735     cf_full_tgetent=no
   5736 	else
   5737 		cf_full_tgetent=yes
   5738 	fi
   5739 else
   5740   enableval=yes
   5741 	cf_full_tgetent=yes
   5742 
   5743 fi;
   5744 echo "$as_me:5744: result: $cf_full_tgetent" >&5
   5745 echo "${ECHO_T}$cf_full_tgetent" >&6
   5746 
   5747 if test "$cf_full_tgetent" = yes ; then
   5748 	cf_test_message="full tgetent"
   5749 else
   5750 	cf_test_message="tgetent"
   5751 fi
   5752 
   5753 echo "$as_me:5753: checking for $cf_test_message function" >&5
   5754 echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6
   5755 if test "${cf_cv_lib_tgetent+set}" = set; then
   5756   echo $ECHO_N "(cached) $ECHO_C" >&6
   5757 else
   5758 
   5759 cf_save_LIBS="$LIBS"
   5760 cf_cv_lib_tgetent=no
   5761 if test "$cf_full_tgetent" = yes ; then
   5762 	cf_TERMLIB="otermcap termcap termlib ncurses curses"
   5763 	cf_TERMTST="buffer[0] == 0"
   5764 else
   5765 	cf_TERMLIB="termlib ncurses curses"
   5766 	cf_TERMTST="0"
   5767 fi
   5768 for cf_termlib in '' $cf_TERMLIB ; do
   5769 	LIBS="$cf_save_LIBS"
   5770 	test -n "$cf_termlib" && {
   5771 cf_add_libs="-l$cf_termlib"
   5772 # Filter out duplicates - this happens with badly-designed ".pc" files...
   5773 for cf_add_1lib in $LIBS
   5774 do
   5775 	for cf_add_2lib in $cf_add_libs
   5776 	do
   5777 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   5778 		then
   5779 			cf_add_1lib=
   5780 			break
   5781 		fi
   5782 	done
   5783 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   5784 done
   5785 LIBS="$cf_add_libs"
   5786  }
   5787 	if test "$cross_compiling" = yes; then
   5788   echo "cross-compiling, cannot verify if a termcap/tgetent is present in $cf_termlib" 1>&5
   5789 else
   5790   cat >conftest.$ac_ext <<_ACEOF
   5791 #line 5791 "configure"
   5792 #include "confdefs.h"
   5793 
   5794 /* terminfo implementations ignore the buffer argument, making it useless for
   5795  * the xterm application, which uses this information to make a new TERMCAP
   5796  * environment variable.
   5797  */
   5798 int main()
   5799 {
   5800 	char buffer[1024];
   5801 	buffer[0] = 0;
   5802 	tgetent(buffer, "$cf_TERMVAR");
   5803 	${cf_cv_main_return:-return} ($cf_TERMTST); }
   5804 _ACEOF
   5805 rm -f conftest$ac_exeext
   5806 if { (eval echo "$as_me:5806: \"$ac_link\"") >&5
   5807   (eval $ac_link) 2>&5
   5808   ac_status=$?
   5809   echo "$as_me:5809: \$? = $ac_status" >&5
   5810   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   5811   { (eval echo "$as_me:5811: \"$ac_try\"") >&5
   5812   (eval $ac_try) 2>&5
   5813   ac_status=$?
   5814   echo "$as_me:5814: \$? = $ac_status" >&5
   5815   (exit $ac_status); }; }; then
   5816   echo "yes, there is a termcap/tgetent in $cf_termlib" 1>&5
   5817 	 if test -n "$cf_termlib" ; then
   5818 	 	cf_cv_lib_tgetent="-l$cf_termlib"
   5819 	 else
   5820 	 	cf_cv_lib_tgetent=yes
   5821 	 fi
   5822 	 break
   5823 else
   5824   echo "$as_me: program exited with status $ac_status" >&5
   5825 echo "$as_me: failed program was:" >&5
   5826 cat conftest.$ac_ext >&5
   5827 echo "no, there is no termcap/tgetent in $cf_termlib" 1>&5
   5828 fi
   5829 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   5830 fi
   5831 done
   5832 LIBS="$cf_save_LIBS"
   5833 
   5834 fi
   5835 echo "$as_me:5835: result: $cf_cv_lib_tgetent" >&5
   5836 echo "${ECHO_T}$cf_cv_lib_tgetent" >&6
   5837 
   5838 # If we found a working tgetent(), set LIBS and check for termcap.h.
   5839 # (LIBS cannot be set inside AC_CACHE_CHECK; the commands there should
   5840 # not have side effects other than setting the cache variable, because
   5841 # they are not executed when a cached value exists.)
   5842 if test "x$cf_cv_lib_tgetent" != xno ; then
   5843 	test "x$cf_cv_lib_tgetent" != xyes && {
   5844 cf_add_libs="$cf_cv_lib_tgetent"
   5845 # Filter out duplicates - this happens with badly-designed ".pc" files...
   5846 for cf_add_1lib in $LIBS
   5847 do
   5848 	for cf_add_2lib in $cf_add_libs
   5849 	do
   5850 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   5851 		then
   5852 			cf_add_1lib=
   5853 			break
   5854 		fi
   5855 	done
   5856 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   5857 done
   5858 LIBS="$cf_add_libs"
   5859  }
   5860 
   5861 cat >>confdefs.h <<\EOF
   5862 #define USE_TERMCAP 1
   5863 EOF
   5864 
   5865 	if test "$cf_full_tgetent" = no ; then
   5866 		cat >conftest.$ac_ext <<_ACEOF
   5867 #line 5867 "configure"
   5868 #include "confdefs.h"
   5869 
   5870 #include <termcap.h>
   5871 int
   5872 main (void)
   5873 {
   5874 
   5875 #ifdef NCURSES_VERSION
   5876 make an error
   5877 #endif
   5878   ;
   5879   return 0;
   5880 }
   5881 _ACEOF
   5882 rm -f conftest.$ac_objext
   5883 if { (eval echo "$as_me:5883: \"$ac_compile\"") >&5
   5884   (eval $ac_compile) 2>&5
   5885   ac_status=$?
   5886   echo "$as_me:5886: \$? = $ac_status" >&5
   5887   (exit $ac_status); } &&
   5888          { ac_try='test -s conftest.$ac_objext'
   5889   { (eval echo "$as_me:5889: \"$ac_try\"") >&5
   5890   (eval $ac_try) 2>&5
   5891   ac_status=$?
   5892   echo "$as_me:5892: \$? = $ac_status" >&5
   5893   (exit $ac_status); }; }; then
   5894   cat >>confdefs.h <<\EOF
   5895 #define HAVE_TERMCAP_H 1
   5896 EOF
   5897 
   5898 else
   5899   echo "$as_me: failed program was:" >&5
   5900 cat conftest.$ac_ext >&5
   5901 fi
   5902 rm -f conftest.$ac_objext conftest.$ac_ext
   5903 	else
   5904 
   5905 for ac_header in termcap.h
   5906 do
   5907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5908 echo "$as_me:5908: checking for $ac_header" >&5
   5909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   5910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   5911   echo $ECHO_N "(cached) $ECHO_C" >&6
   5912 else
   5913   cat >conftest.$ac_ext <<_ACEOF
   5914 #line 5914 "configure"
   5915 #include "confdefs.h"
   5916 #include <$ac_header>
   5917 _ACEOF
   5918 if { (eval echo "$as_me:5918: \"$ac_cpp conftest.$ac_ext\"") >&5
   5919   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   5920   ac_status=$?
   5921   egrep -v '^ *\+' conftest.er1 >conftest.err
   5922   rm -f conftest.er1
   5923   cat conftest.err >&5
   5924   echo "$as_me:5924: \$? = $ac_status" >&5
   5925   (exit $ac_status); } >/dev/null; then
   5926   if test -s conftest.err; then
   5927     ac_cpp_err=$ac_c_preproc_warn_flag
   5928   else
   5929     ac_cpp_err=
   5930   fi
   5931 else
   5932   ac_cpp_err=yes
   5933 fi
   5934 if test -z "$ac_cpp_err"; then
   5935   eval "$as_ac_Header=yes"
   5936 else
   5937   echo "$as_me: failed program was:" >&5
   5938   cat conftest.$ac_ext >&5
   5939   eval "$as_ac_Header=no"
   5940 fi
   5941 rm -f conftest.err conftest.$ac_ext
   5942 fi
   5943 echo "$as_me:5943: result: `eval echo '${'$as_ac_Header'}'`" >&5
   5944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   5945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   5946   cat >>confdefs.h <<EOF
   5947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5948 EOF
   5949 
   5950 fi
   5951 done
   5952 
   5953 	fi
   5954 else
   5955         # If we didn't find a tgetent() that supports the buffer
   5956         # argument, look again to see whether we can find even
   5957         # a crippled one.  A crippled tgetent() is still useful to
   5958         # validate values for the TERM environment variable given to
   5959         # child processes.
   5960 	echo "$as_me:5960: checking for partial tgetent function" >&5
   5961 echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6
   5962 if test "${cf_cv_lib_part_tgetent+set}" = set; then
   5963   echo $ECHO_N "(cached) $ECHO_C" >&6
   5964 else
   5965 
   5966 	cf_cv_lib_part_tgetent=no
   5967 	for cf_termlib in $cf_TERMLIB ; do
   5968 		LIBS="$cf_save_LIBS -l$cf_termlib"
   5969 		cat >conftest.$ac_ext <<_ACEOF
   5970 #line 5970 "configure"
   5971 #include "confdefs.h"
   5972 
   5973 int
   5974 main (void)
   5975 {
   5976 tgetent(0, "$cf_TERMVAR")
   5977   ;
   5978   return 0;
   5979 }
   5980 _ACEOF
   5981 rm -f conftest.$ac_objext conftest$ac_exeext
   5982 if { (eval echo "$as_me:5982: \"$ac_link\"") >&5
   5983   (eval $ac_link) 2>&5
   5984   ac_status=$?
   5985   echo "$as_me:5985: \$? = $ac_status" >&5
   5986   (exit $ac_status); } &&
   5987          { ac_try='test -s conftest$ac_exeext'
   5988   { (eval echo "$as_me:5988: \"$ac_try\"") >&5
   5989   (eval $ac_try) 2>&5
   5990   ac_status=$?
   5991   echo "$as_me:5991: \$? = $ac_status" >&5
   5992   (exit $ac_status); }; }; then
   5993   echo "there is a terminfo/tgetent in $cf_termlib" 1>&5
   5994 			 cf_cv_lib_part_tgetent="-l$cf_termlib"
   5995 			 break
   5996 else
   5997   echo "$as_me: failed program was:" >&5
   5998 cat conftest.$ac_ext >&5
   5999 fi
   6000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   6001 	done
   6002 	LIBS="$cf_save_LIBS"
   6003 
   6004 fi
   6005 echo "$as_me:6005: result: $cf_cv_lib_part_tgetent" >&5
   6006 echo "${ECHO_T}$cf_cv_lib_part_tgetent" >&6
   6007 
   6008 	if test "$cf_cv_lib_part_tgetent" != no ; then
   6009 
   6010 cf_add_libs="$cf_cv_lib_part_tgetent"
   6011 # Filter out duplicates - this happens with badly-designed ".pc" files...
   6012 for cf_add_1lib in $LIBS
   6013 do
   6014 	for cf_add_2lib in $cf_add_libs
   6015 	do
   6016 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   6017 		then
   6018 			cf_add_1lib=
   6019 			break
   6020 		fi
   6021 	done
   6022 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   6023 done
   6024 LIBS="$cf_add_libs"
   6025 
   6026 for ac_header in termcap.h
   6027 do
   6028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   6029 echo "$as_me:6029: checking for $ac_header" >&5
   6030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   6031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6032   echo $ECHO_N "(cached) $ECHO_C" >&6
   6033 else
   6034   cat >conftest.$ac_ext <<_ACEOF
   6035 #line 6035 "configure"
   6036 #include "confdefs.h"
   6037 #include <$ac_header>
   6038 _ACEOF
   6039 if { (eval echo "$as_me:6039: \"$ac_cpp conftest.$ac_ext\"") >&5
   6040   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   6041   ac_status=$?
   6042   egrep -v '^ *\+' conftest.er1 >conftest.err
   6043   rm -f conftest.er1
   6044   cat conftest.err >&5
   6045   echo "$as_me:6045: \$? = $ac_status" >&5
   6046   (exit $ac_status); } >/dev/null; then
   6047   if test -s conftest.err; then
   6048     ac_cpp_err=$ac_c_preproc_warn_flag
   6049   else
   6050     ac_cpp_err=
   6051   fi
   6052 else
   6053   ac_cpp_err=yes
   6054 fi
   6055 if test -z "$ac_cpp_err"; then
   6056   eval "$as_ac_Header=yes"
   6057 else
   6058   echo "$as_me: failed program was:" >&5
   6059   cat conftest.$ac_ext >&5
   6060   eval "$as_ac_Header=no"
   6061 fi
   6062 rm -f conftest.err conftest.$ac_ext
   6063 fi
   6064 echo "$as_me:6064: result: `eval echo '${'$as_ac_Header'}'`" >&5
   6065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   6066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   6067   cat >>confdefs.h <<EOF
   6068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   6069 EOF
   6070 
   6071 fi
   6072 done
   6073 
   6074                 # If this is linking against ncurses, we'll trigger the
   6075                 # ifdef in resize.c that turns the termcap stuff back off.
   6076 
   6077 cat >>confdefs.h <<\EOF
   6078 #define USE_TERMINFO 1
   6079 EOF
   6080 
   6081 	fi
   6082 fi
   6083 
   6084 echo "$as_me:6084: checking for X applications class" >&5
   6085 echo $ECHO_N "checking for X applications class... $ECHO_C" >&6
   6086 
   6087 # Check whether --with-app-class or --without-app-class was given.
   6088 if test "${with_app_class+set}" = set; then
   6089   withval="$with_app_class"
   6090   APP_CLASS=$withval
   6091 else
   6092   APP_CLASS=XTerm
   6093 fi;
   6094 
   6095 case x$APP_CLASS in
   6096 (*[/@,%]*)
   6097 	{ echo "$as_me:6097: WARNING: X applications class cannot contain punctuation" >&5
   6098 echo "$as_me: WARNING: X applications class cannot contain punctuation" >&2;}
   6099 	APP_CLASS=XTerm
   6100 	;;
   6101 (x[A-Z]*)
   6102 	;;
   6103 (*)
   6104 	{ echo "$as_me:6104: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&5
   6105 echo "$as_me: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&2;}
   6106 	APP_CLASS=XTerm
   6107 	;;
   6108 esac
   6109 
   6110 echo "$as_me:6110: result: $APP_CLASS" >&5
   6111 echo "${ECHO_T}$APP_CLASS" >&6
   6112 
   6113 echo "$as_me:6113: checking for directory to install resource files" >&5
   6114 echo $ECHO_N "checking for directory to install resource files... $ECHO_C" >&6
   6115 
   6116 # Check whether --with-app-defaults or --without-app-defaults was given.
   6117 if test "${with_app_defaults+set}" = set; then
   6118   withval="$with_app_defaults"
   6119   APPSDIR=$withval
   6120 else
   6121   APPSDIR='${exec_prefix}/lib/X11/app-defaults'
   6122 fi;
   6123 
   6124 if test "x$APPSDIR" = xauto
   6125 then
   6126 	APPSDIR='${exec_prefix}/lib/X11/app-defaults'
   6127 	for cf_path in \
   6128 		/opt/local/share/X11/app-defaults \
   6129 		/opt/X11/share/X11/app-defaults \
   6130 		/usr/share/X11/app-defaults \
   6131 		/usr/X11/share/X11/app-defaults \
   6132 		/usr/X11/lib/X11/app-defaults \
   6133 		/usr/lib/X11/app-defaults \
   6134 		/etc/X11/app-defaults \
   6135 		/usr/pkg/lib/X11/app-defaults \
   6136 		/usr/X11R7/lib/X11/app-defaults \
   6137 		/usr/X11R6/lib/X11/app-defaults \
   6138 		/usr/X11R5/lib/X11/app-defaults \
   6139 		/usr/X11R4/lib/X11/app-defaults \
   6140 		/usr/local/lib/X11/app-defaults \
   6141 		/usr/local/share/X11/app-defaults \
   6142 		/usr/lib64/X11/app-defaults
   6143 	do
   6144 		if test -d "$cf_path" ; then
   6145 			APPSDIR="$cf_path"
   6146 			break
   6147 		fi
   6148 	done
   6149 else
   6150 	cf_path=$APPSDIR
   6151 
   6152 if test "x$prefix" != xNONE; then
   6153 	cf_path_syntax="$prefix"
   6154 else
   6155 	cf_path_syntax="$ac_default_prefix"
   6156 fi
   6157 
   6158 case ".$cf_path" in
   6159 (.\$\(*\)*|.\'*\'*)
   6160 	;;
   6161 (..|./*|.\\*)
   6162 	;;
   6163 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
   6164 	;;
   6165 (.\${*prefix}*|.\${*dir}*)
   6166 	eval cf_path="$cf_path"
   6167 	case ".$cf_path" in
   6168 	(.NONE/*)
   6169 		cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
   6170 		;;
   6171 	esac
   6172 	;;
   6173 (.no|.NONE/*)
   6174 	cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
   6175 	;;
   6176 (*)
   6177 	{ { echo "$as_me:6177: error: expected a pathname, not \"$cf_path\"" >&5
   6178 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
   6179    { (exit 1); exit 1; }; }
   6180 	;;
   6181 esac
   6182 
   6183 fi
   6184 
   6185 echo "$as_me:6185: result: $APPSDIR" >&5
   6186 echo "${ECHO_T}$APPSDIR" >&6
   6187 
   6188 no_appsdir=
   6189 if test "$APPSDIR" = no
   6190 then
   6191 	no_appsdir="#"
   6192 else
   6193 	EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(APPSDIR)"
   6194 fi
   6195 
   6196 echo "$as_me:6196: checking for the icon name" >&5
   6197 echo $ECHO_N "checking for the icon name... $ECHO_C" >&6
   6198 
   6199 # Check whether --with-icon-name or --without-icon-name was given.
   6200 if test "${with_icon_name+set}" = set; then
   6201   withval="$with_icon_name"
   6202   ICON_NAME="$withval"
   6203 else
   6204   ICON_NAME=xterm-color
   6205 fi;
   6206 case "x$ICON_NAME" in
   6207 (xyes|xno|x)
   6208 	ICON_NAME=xterm-color
   6209 	;;
   6210 esac
   6211 
   6212 echo "$as_me:6212: result: $ICON_NAME" >&5
   6213 echo "${ECHO_T}$ICON_NAME" >&6
   6214 
   6215 echo "$as_me:6215: checking for icon symlink to use" >&5
   6216 echo $ECHO_N "checking for icon symlink to use... $ECHO_C" >&6
   6217 
   6218 # Check whether --with-icon-symlink or --without-icon-symlink was given.
   6219 if test "${with_icon_symlink+set}" = set; then
   6220   withval="$with_icon_symlink"
   6221   ICON_SYMLINK="$withval"
   6222 else
   6223   ICON_SYMLINK=NONE
   6224 fi;
   6225 case "x$ICON_SYMLINK" in
   6226 (xyes)
   6227 	ICON_SYMLINK=xterm
   6228 	;;
   6229 (xno|x)
   6230 	ICON_SYMLINK=NONE
   6231 	;;
   6232 esac
   6233 
   6234 echo "$as_me:6234: result: $ICON_SYMLINK" >&5
   6235 echo "${ECHO_T}$ICON_SYMLINK" >&6
   6236 
   6237 echo "$as_me:6237: checking for directory to install pixmaps" >&5
   6238 echo $ECHO_N "checking for directory to install pixmaps... $ECHO_C" >&6
   6239 
   6240 # Check whether --with-pixmapdir or --without-pixmapdir was given.
   6241 if test "${with_pixmapdir+set}" = set; then
   6242   withval="$with_pixmapdir"
   6243   PIXMAPDIR=$withval
   6244 else
   6245   test -z "$PIXMAPDIR" && PIXMAPDIR='${datadir}/pixmaps'
   6246 fi;
   6247 
   6248 if test "x$PIXMAPDIR" = xauto
   6249 then
   6250 	PIXMAPDIR='${datadir}/pixmaps'
   6251 	for cf_path in \
   6252 		/usr/share/pixmaps \
   6253 		/usr/X11R6/share/pixmaps
   6254 	do
   6255 		if test -d "$cf_path" ; then
   6256 			PIXMAPDIR="$cf_path"
   6257 			break
   6258 		fi
   6259 	done
   6260 else
   6261 	cf_path=$PIXMAPDIR
   6262 
   6263 if test "x$prefix" != xNONE; then
   6264 	cf_path_syntax="$prefix"
   6265 else
   6266 	cf_path_syntax="$ac_default_prefix"
   6267 fi
   6268 
   6269 case ".$cf_path" in
   6270 (.\$\(*\)*|.\'*\'*)
   6271 	;;
   6272 (..|./*|.\\*)
   6273 	;;
   6274 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
   6275 	;;
   6276 (.\${*prefix}*|.\${*dir}*)
   6277 	eval cf_path="$cf_path"
   6278 	case ".$cf_path" in
   6279 	(.NONE/*)
   6280 		cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
   6281 		;;
   6282 	esac
   6283 	;;
   6284 (.no|.NONE/*)
   6285 	cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
   6286 	;;
   6287 (*)
   6288 	{ { echo "$as_me:6288: error: expected a pathname, not \"$cf_path\"" >&5
   6289 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
   6290    { (exit 1); exit 1; }; }
   6291 	;;
   6292 esac
   6293 
   6294 fi
   6295 echo "$as_me:6295: result: $PIXMAPDIR" >&5
   6296 echo "${ECHO_T}$PIXMAPDIR" >&6
   6297 
   6298 no_pixmapdir=
   6299 if test "$PIXMAPDIR" = no
   6300 then
   6301 	no_pixmapdir="#"
   6302 else
   6303 	EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(PIXMAPDIR)"
   6304 fi
   6305 
   6306 echo "$as_me:6306: checking for directory to install icons" >&5
   6307 echo $ECHO_N "checking for directory to install icons... $ECHO_C" >&6
   6308 
   6309 # Check whether --with-icondir or --without-icondir was given.
   6310 if test "${with_icondir+set}" = set; then
   6311   withval="$with_icondir"
   6312   ICONDIR=$withval
   6313 else
   6314   test -z "$ICONDIR" && ICONDIR=no
   6315 fi;
   6316 
   6317 if test "x$ICONDIR" = xauto
   6318 then
   6319 	ICONDIR='${datadir}/icons'
   6320 	for cf_path in \
   6321 		/usr/share/icons \
   6322 		/usr/X11R6/share/icons
   6323 	do
   6324 		if test -d "$cf_path" ; then
   6325 			ICONDIR="$cf_path"
   6326 			break
   6327 		fi
   6328 	done
   6329 else
   6330 	cf_path=$ICONDIR
   6331 
   6332 if test "x$prefix" != xNONE; then
   6333 	cf_path_syntax="$prefix"
   6334 else
   6335 	cf_path_syntax="$ac_default_prefix"
   6336 fi
   6337 
   6338 case ".$cf_path" in
   6339 (.\$\(*\)*|.\'*\'*)
   6340 	;;
   6341 (..|./*|.\\*)
   6342 	;;
   6343 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
   6344 	;;
   6345 (.\${*prefix}*|.\${*dir}*)
   6346 	eval cf_path="$cf_path"
   6347 	case ".$cf_path" in
   6348 	(.NONE/*)
   6349 		cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
   6350 		;;
   6351 	esac
   6352 	;;
   6353 (.no|.NONE/*)
   6354 	cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
   6355 	;;
   6356 (*)
   6357 	{ { echo "$as_me:6357: error: expected a pathname, not \"$cf_path\"" >&5
   6358 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
   6359    { (exit 1); exit 1; }; }
   6360 	;;
   6361 esac
   6362 
   6363 fi
   6364 echo "$as_me:6364: result: $ICONDIR" >&5
   6365 echo "${ECHO_T}$ICONDIR" >&6
   6366 
   6367 no_icondir=
   6368 if test "$ICONDIR" = no
   6369 then
   6370 	no_icondir="#"
   6371 else
   6372 	EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(ICONDIR)"
   6373 fi
   6374 
   6375 echo "$as_me:6375: checking if icon theme should be used" >&5
   6376 echo $ECHO_N "checking if icon theme should be used... $ECHO_C" >&6
   6377 
   6378 # Check whether --with-icon-theme or --without-icon-theme was given.
   6379 if test "${with_icon_theme+set}" = set; then
   6380   withval="$with_icon_theme"
   6381   ICON_THEME=$withval
   6382 else
   6383   ICON_THEME=no
   6384 fi;
   6385 
   6386 case "x$ICON_THEME" in
   6387 (xno)
   6388 	;;
   6389 (x|xyes)
   6390 	ICON_THEME=hicolor
   6391 	;;
   6392 esac
   6393 echo "$as_me:6393: result: $ICON_THEME" >&5
   6394 echo "${ECHO_T}$ICON_THEME" >&6
   6395 
   6396 if test "x$ICON_THEME" = xno
   6397 then
   6398 	if test "x$ICONDIR" != xno
   6399 	then
   6400 		test -n "$verbose" && echo "	ignoring icondir without theme" 1>&6
   6401 
   6402 echo "${as_me:-configure}:6402: testing ignoring icondir without theme ..." 1>&5
   6403 
   6404 		no_icondir="#"
   6405 	fi
   6406 else
   6407 	if test "x$ICONDIR" = xno
   6408 	then
   6409 		{ { echo "$as_me:6409: error: icondir must be set for icon theme" >&5
   6410 echo "$as_me: error: icondir must be set for icon theme" >&2;}
   6411    { (exit 1); exit 1; }; }
   6412 	fi
   6413 fi
   6414 
   6415 : ${ICON_FORMAT:=".svg .png .xpm"}
   6416 
   6417 # ICON_NAME=
   6418 ICON_LIST=
   6419 
   6420 if test "x$ICON_THEME" != xno
   6421 then
   6422 	cf_icon_list="icons/$ICON_NAME icons/${ICON_NAME}_48x48"
   6423 else
   6424 	cf_icon_list="icons/${ICON_NAME}_48x48"
   6425 fi
   6426 
   6427 echo "$as_me:6427: checking for icon(s) to install" >&5
   6428 echo $ECHO_N "checking for icon(s) to install... $ECHO_C" >&6
   6429 for cf_name in $cf_icon_list
   6430 do
   6431 	test -n "$verbose" && echo "	using $ICON_FORMAT" 1>&6
   6432 
   6433 echo "${as_me:-configure}:6433: testing using $ICON_FORMAT ..." 1>&5
   6434 
   6435 	for cf_suffix in $ICON_FORMAT
   6436 	do
   6437 		cf_icon="${cf_name}${cf_suffix}"
   6438 		cf_left=`echo "$cf_icon" | sed -e 's/:.*//'`
   6439 		if test ! -f "${cf_left}"
   6440 		then
   6441 			if test "x$srcdir" != "x."
   6442 			then
   6443 				cf_icon="${srcdir}/${cf_left}"
   6444 				cf_left=`echo "$cf_icon" | sed -e 's/:.*//'`
   6445 				if test ! -f "${cf_left}"
   6446 				then
   6447 					continue
   6448 				fi
   6449 			else
   6450 				continue
   6451 			fi
   6452 		fi
   6453 		if test "x$ICON_THEME" != xno
   6454 		then
   6455 			cf_base=`basename $cf_left`
   6456 			cf_trim=`echo "$cf_base" | sed -e 's/_[0-9][0-9]x[0-9][0-9]\././'`
   6457 			case "x${cf_base}" in
   6458 			(*:*)
   6459 				cf_next=$cf_base
   6460 				# user-defined mapping
   6461 				;;
   6462 			(*.png)
   6463 				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'`
   6464 				if test -z "$cf_size"
   6465 				then
   6466 					{ echo "$as_me:6466: WARNING: cannot determine size of $cf_left" >&5
   6467 echo "$as_me: WARNING: cannot determine size of $cf_left" >&2;}
   6468 					continue
   6469 				fi
   6470 				cf_next="$cf_size/apps/$cf_trim"
   6471 				;;
   6472 			(*.svg)
   6473 				cf_next="scalable/apps/$cf_trim"
   6474 				;;
   6475 			(*.xpm)
   6476 				test -n "$verbose" && echo "	ignored XPM file in icon theme" 1>&6
   6477 
   6478 echo "${as_me:-configure}:6478: testing ignored XPM file in icon theme ..." 1>&5
   6479 
   6480 				continue
   6481 				;;
   6482 			(*_[0-9][0-9]*x[0-9][0-9]*.*)
   6483 				cf_size=`echo "$cf_left"|sed -e 's/^.*_\([0-9][0-9]*x[0-9][0-9]*\)\..*$/\1/'`
   6484 				cf_left=`echo "$cf_left"|sed -e 's/^\(.*\)_\([0-9][0-9]*x[0-9][0-9]*\)\(\..*\)$/\1\3/'`
   6485 				cf_next="$cf_size/apps/$cf_base"
   6486 				;;
   6487 			esac
   6488 			test -n "$verbose" && echo "	adding $cf_next" 1>&6
   6489 
   6490 echo "${as_me:-configure}:6490: testing adding $cf_next ..." 1>&5
   6491 
   6492 			cf_icon="${cf_icon}:${cf_next}"
   6493 		fi
   6494 		test -n "$ICON_LIST" && ICON_LIST="$ICON_LIST "
   6495 		ICON_LIST="$ICON_LIST${cf_icon}"
   6496 		if test -z "$ICON_NAME"
   6497 		then
   6498 			ICON_NAME=`basename $cf_icon | sed -e 's/[.:].*//'`
   6499 		fi
   6500 	done
   6501 done
   6502 
   6503 if test -n "$verbose"
   6504 then
   6505 	echo "$as_me:6505: checking result" >&5
   6506 echo $ECHO_N "checking result... $ECHO_C" >&6
   6507 fi
   6508 echo "$as_me:6508: result: $ICON_LIST" >&5
   6509 echo "${ECHO_T}$ICON_LIST" >&6
   6510 
   6511 if test -z "$ICON_LIST"
   6512 then
   6513 	{ { echo "$as_me:6513: error: no icons found" >&5
   6514 echo "$as_me: error: no icons found" >&2;}
   6515    { (exit 1); exit 1; }; }
   6516 fi
   6517 
   6518 echo "$as_me:6518: checking for icon name" >&5
   6519 echo $ECHO_N "checking for icon name... $ECHO_C" >&6
   6520 echo "$as_me:6520: result: $ICON_NAME" >&5
   6521 echo "${ECHO_T}$ICON_NAME" >&6
   6522 
   6523 # Comment-out the install-desktop rule if the desktop-utils are not found.
   6524 echo "$as_me:6524: checking if you want to install desktop files" >&5
   6525 echo $ECHO_N "checking if you want to install desktop files... $ECHO_C" >&6
   6526 
   6527 # Check whether --enable-desktop or --disable-desktop was given.
   6528 if test "${enable_desktop+set}" = set; then
   6529   enableval="$enable_desktop"
   6530   test "$enableval" != no && enableval=yes
   6531 	if test "$enableval" != "yes" ; then
   6532     enable_desktop=$enableval
   6533 	else
   6534 		enable_desktop=$enableval
   6535 	fi
   6536 else
   6537   enableval=yes
   6538 	enable_desktop=$enableval
   6539 
   6540 fi;
   6541 echo "$as_me:6541: result: $enable_desktop" >&5
   6542 echo "${ECHO_T}$enable_desktop" >&6
   6543 
   6544 desktop_utils=
   6545 if test "$enable_desktop" = yes ; then
   6546 # Extract the first word of "desktop-file-install", so it can be a program name with args.
   6547 set dummy desktop-file-install; ac_word=$2
   6548 echo "$as_me:6548: checking for $ac_word" >&5
   6549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   6550 if test "${ac_cv_prog_desktop_utils+set}" = set; then
   6551   echo $ECHO_N "(cached) $ECHO_C" >&6
   6552 else
   6553   if test -n "$desktop_utils"; then
   6554   ac_cv_prog_desktop_utils="$desktop_utils" # Let the user override the test.
   6555 else
   6556   ac_save_IFS=$IFS; IFS=$ac_path_separator
   6557 ac_dummy="$PATH"
   6558 for ac_dir in $ac_dummy; do
   6559   IFS=$ac_save_IFS
   6560   test -z "$ac_dir" && ac_dir=.
   6561   $as_executable_p "$ac_dir/$ac_word" || continue
   6562 ac_cv_prog_desktop_utils="yes"
   6563 echo "$as_me:6563: found $ac_dir/$ac_word" >&5
   6564 break
   6565 done
   6566 
   6567   test -z "$ac_cv_prog_desktop_utils" && ac_cv_prog_desktop_utils="no"
   6568 fi
   6569 fi
   6570 desktop_utils=$ac_cv_prog_desktop_utils
   6571 if test -n "$desktop_utils"; then
   6572   echo "$as_me:6572: result: $desktop_utils" >&5
   6573 echo "${ECHO_T}$desktop_utils" >&6
   6574 else
   6575   echo "$as_me:6575: result: no" >&5
   6576 echo "${ECHO_T}no" >&6
   6577 fi
   6578 
   6579 fi
   6580 
   6581 test "$desktop_utils" = yes && desktop_utils= || desktop_utils="#"
   6582 
   6583 if test -z "$desktop_utils"
   6584 then
   6585 	echo "$as_me:6585: checking for requested desktop-category" >&5
   6586 echo $ECHO_N "checking for requested desktop-category... $ECHO_C" >&6
   6587 
   6588 # Check whether --with-desktop-category or --without-desktop-category was given.
   6589 if test "${with_desktop_category+set}" = set; then
   6590   withval="$with_desktop_category"
   6591   cf_desktop_want=$withval
   6592 else
   6593   cf_desktop_want=auto
   6594 fi;
   6595 	echo "$as_me:6595: result: $cf_desktop_want" >&5
   6596 echo "${ECHO_T}$cf_desktop_want" >&6
   6597 
   6598 	if test "$cf_desktop_want" = auto
   6599 	then
   6600 		rm -rf conftest*
   6601 		cf_desktop_also=
   6602 		for cf_desktop_dir in  \
   6603 			/usr/share/app-install \
   6604 			/usr/share/applications
   6605 		do
   6606 			if test -d $cf_desktop_dir
   6607 			then
   6608 				find $cf_desktop_dir -name '*.desktop' | \
   6609 				while true
   6610 				do
   6611 					read cf_desktop_path
   6612 					test -z "$cf_desktop_path" && break
   6613 					cf_desktop_name=`basename $cf_desktop_path .desktop`
   6614 					case $cf_desktop_name in
   6615 					(xterm|*-xterm|*rxvt*|*konsole|*[Tt]erminal)
   6616 						test -n "$verbose" && echo "	inspect $cf_desktop_path" 1>&6
   6617 
   6618 echo "${as_me:-configure}:6618: testing inspect $cf_desktop_path ..." 1>&5
   6619 
   6620 						egrep '^Categories=' $cf_desktop_path | \
   6621 							tr ';' '\n' | \
   6622 							sed -e 's%^.*=%%' -e '/^$/d' >>conftest.1
   6623 						;;
   6624 					esac
   6625 				done
   6626 			fi
   6627 		done
   6628 		if test -s conftest.1
   6629 		then
   6630 			cf_desktop_last=
   6631 			sort conftest.1 | \
   6632 			while true
   6633 			do
   6634 				read cf_desktop_this
   6635 				test -z "$cf_desktop_this" && break
   6636 				case $cf_desktop_this in
   6637 				(Qt*|GTK*|KDE*|GNOME*|*XFCE*|*Xfce*)
   6638 					;;
   6639 				(System|TerminalEmulator|*)
   6640 					test "x$cf_desktop_last" != "x$cf_desktop_this" && echo $cf_desktop_this >>conftest.2
   6641 					;;
   6642 				esac
   6643 				cf_desktop_last=$cf_desktop_this
   6644 			done
   6645 			cf_desktop_want=`cat conftest.2 | tr '\n' ';'`
   6646 		fi
   6647 		if test -n "$cf_desktop_want"
   6648 		then
   6649 			if test "$cf_desktop_want" = auto
   6650 			then
   6651 				cf_desktop_want=
   6652 			else
   6653 				# do a sanity check on the semicolon-separated list, ignore on failure
   6654 				cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/[^;]//g'`
   6655 				test -z "$cf_desktop_test" && cf_desktop_want=
   6656 				cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/^.*;$/./g'`
   6657 				test -z "$cf_desktop_test" && cf_desktop_want=
   6658 			fi
   6659 		fi
   6660 		if test -z "$cf_desktop_want"
   6661 		then
   6662 			cf_desktop_want="`echo "System|TerminalEmulator|*" | sed -e 's/\*//g' -e 's/|/;/g' -e 's/;*$/;/g'`"
   6663 			test -n "$verbose" && echo "	no usable value found for desktop category" 1>&6
   6664 
   6665 echo "${as_me:-configure}:6665: testing no usable value found for desktop category ..." 1>&5
   6666 
   6667 		fi
   6668 	fi
   6669 	DESKTOP_CATEGORY=`echo "$cf_desktop_want" | sed -e 's/[ ,]/;/g'`
   6670 	test -n "$verbose" && echo "	will use Categories=$DESKTOP_CATEGORY" 1>&6
   6671 
   6672 echo "${as_me:-configure}:6672: testing will use Categories=$DESKTOP_CATEGORY ..." 1>&5
   6673 
   6674 fi
   6675 
   6676 echo "$as_me:6676: checking for install-permissions reference" >&5
   6677 echo $ECHO_N "checking for install-permissions reference... $ECHO_C" >&6
   6678 
   6679 # Check whether --with-reference or --without-reference was given.
   6680 if test "${with_reference+set}" = set; then
   6681   withval="$with_reference"
   6682   with_reference=$withval
   6683 else
   6684   with_reference=xterm
   6685 fi;
   6686 echo "$as_me:6686: result: $with_reference" >&5
   6687 echo "${ECHO_T}$with_reference" >&6
   6688 
   6689 with_full_paths=yes
   6690 
   6691 	echo "$as_me:6691: checking for PATH separator" >&5
   6692 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
   6693 	case $cf_cv_system_name in
   6694 	(os2*)	PATH_SEPARATOR=';'  ;;
   6695 	(*)	${PATH_SEPARATOR:=':'}  ;;
   6696 	esac
   6697 
   6698 	echo "$as_me:6698: result: $PATH_SEPARATOR" >&5
   6699 echo "${ECHO_T}$PATH_SEPARATOR" >&6
   6700 
   6701 test -z "$XTERM_PATH" && XTERM_PATH=$with_reference
   6702 for ac_prog in $XTERM_PATH $with_reference
   6703 do
   6704   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6705 set dummy $ac_prog; ac_word=$2
   6706 echo "$as_me:6706: checking for $ac_word" >&5
   6707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   6708 if test "${ac_cv_path_XTERM_PATH+set}" = set; then
   6709   echo $ECHO_N "(cached) $ECHO_C" >&6
   6710 else
   6711   case $XTERM_PATH in
   6712   [\\/]* | ?:[\\/]*)
   6713   ac_cv_path_XTERM_PATH="$XTERM_PATH" # Let the user override the test with a path.
   6714   ;;
   6715   *)
   6716   ac_save_IFS=$IFS; IFS=$ac_path_separator
   6717 ac_dummy="$PATH"
   6718 for ac_dir in $ac_dummy; do
   6719   IFS=$ac_save_IFS
   6720   test -z "$ac_dir" && ac_dir=.
   6721   if $as_executable_p "$ac_dir/$ac_word"; then
   6722    ac_cv_path_XTERM_PATH="$ac_dir/$ac_word"
   6723    echo "$as_me:6723: found $ac_dir/$ac_word" >&5
   6724    break
   6725 fi
   6726 done
   6727 
   6728   ;;
   6729 esac
   6730 fi
   6731 XTERM_PATH=$ac_cv_path_XTERM_PATH
   6732 
   6733 if test -n "$XTERM_PATH"; then
   6734   echo "$as_me:6734: result: $XTERM_PATH" >&5
   6735 echo "${ECHO_T}$XTERM_PATH" >&6
   6736 else
   6737   echo "$as_me:6737: result: no" >&5
   6738 echo "${ECHO_T}no" >&6
   6739 fi
   6740 
   6741   test -n "$XTERM_PATH" && break
   6742 done
   6743 test -n "$XTERM_PATH" || XTERM_PATH="$XTERM_PATH"
   6744 
   6745 cf_path_prog=""
   6746 cf_path_args=""
   6747 IFS="${IFS:- 	}"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
   6748 for cf_temp in $ac_cv_path_XTERM_PATH
   6749 do
   6750 	if test -z "$cf_path_prog" ; then
   6751 		if test "$with_full_paths" = yes ; then
   6752 
   6753 if test "x$prefix" != xNONE; then
   6754 	cf_path_syntax="$prefix"
   6755 else
   6756 	cf_path_syntax="$ac_default_prefix"
   6757 fi
   6758 
   6759 case ".$cf_temp" in
   6760 (.\$\(*\)*|.\'*\'*)
   6761 	;;
   6762 (..|./*|.\\*)
   6763 	;;
   6764 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
   6765 	;;
   6766 (.\${*prefix}*|.\${*dir}*)
   6767 	eval cf_temp="$cf_temp"
   6768 	case ".$cf_temp" in
   6769 	(.NONE/*)
   6770 		cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
   6771 		;;
   6772 	esac
   6773 	;;
   6774 (.no|.NONE/*)
   6775 	cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
   6776 	;;
   6777 (*)
   6778 	break
   6779 	;;
   6780 esac
   6781 
   6782 			cf_path_prog="$cf_temp"
   6783 		else
   6784 			cf_path_prog="`basename $cf_temp`"
   6785 		fi
   6786 	elif test -z "$cf_path_args" ; then
   6787 		cf_path_args="$cf_temp"
   6788 	else
   6789 		cf_path_args="$cf_path_args $cf_temp"
   6790 	fi
   6791 done
   6792 IFS="$cf_save_ifs"
   6793 
   6794 if test -n "$cf_path_prog" ; then
   6795 
   6796 echo "${as_me:-configure}:6796: testing defining path for ${cf_path_prog} ..." 1>&5
   6797 
   6798 cat >>confdefs.h <<EOF
   6799 #define XTERM_PATH_PATH "$cf_path_prog"
   6800 EOF
   6801 
   6802 	test -n "$cf_path_args" &&
   6803 cat >>confdefs.h <<EOF
   6804 #define XTERM_PATH_ARGS "$cf_path_args"
   6805 EOF
   6806 
   6807 fi
   6808 
   6809 # If any of --program-prefix, --program-suffix or --program-transform-name is
   6810 # given, accept an option tell the makefile to create a symbolic link, e.g.,
   6811 # to "xterm" on install.
   6812 XTERM_SYMLINK=NONE
   6813 
   6814 if test "$program_transform_name" != "'s,,,'" ; then
   6815 cf_name=`echo "$program_transform_name" | sed -e 's,\\$\\$,$,g'`
   6816 cf_name=`echo xterm |sed -e "$cf_name"`
   6817 echo "$as_me:6817: checking for symbolic link to create to $cf_name" >&5
   6818 echo $ECHO_N "checking for symbolic link to create to $cf_name... $ECHO_C" >&6
   6819 
   6820 # Check whether --with-xterm-symlink or --without-xterm-symlink was given.
   6821 if test "${with_xterm_symlink+set}" = set; then
   6822   withval="$with_xterm_symlink"
   6823   with_symlink=$withval
   6824 else
   6825   with_symlink=xterm
   6826 fi;
   6827 echo "$as_me:6827: result: $with_symlink" >&5
   6828 echo "${ECHO_T}$with_symlink" >&6
   6829 test "$with_symlink" = yes && with_symlink=xterm
   6830 test -n "$with_symlink" && \
   6831 	test "$with_symlink" != no && \
   6832 	test "$with_symlink" != $cf_name && \
   6833 	XTERM_SYMLINK="$with_symlink"
   6834 fi
   6835 
   6836 echo "$as_me:6836: checking if you want to disable openpty" >&5
   6837 echo $ECHO_N "checking if you want to disable openpty... $ECHO_C" >&6
   6838 
   6839 # Check whether --enable-openpty or --disable-openpty was given.
   6840 if test "${enable_openpty+set}" = set; then
   6841   enableval="$enable_openpty"
   6842   test "$enableval" != no && enableval=yes
   6843 	if test "$enableval" != "yes" ; then
   6844     disable_openpty=yes
   6845 	else
   6846 		disable_openpty=no
   6847 	fi
   6848 else
   6849   enableval=yes
   6850 	disable_openpty=no
   6851 
   6852 fi;
   6853 echo "$as_me:6853: result: $disable_openpty" >&5
   6854 echo "${ECHO_T}$disable_openpty" >&6
   6855 
   6856 echo "$as_me:6856: checking if you want to disable setuid" >&5
   6857 echo $ECHO_N "checking if you want to disable setuid... $ECHO_C" >&6
   6858 
   6859 # Check whether --enable-setuid or --disable-setuid was given.
   6860 if test "${enable_setuid+set}" = set; then
   6861   enableval="$enable_setuid"
   6862   test "$enableval" != no && enableval=yes
   6863 	if test "$enableval" != "yes" ; then
   6864     disable_setuid=yes
   6865 	else
   6866 		disable_setuid=no
   6867 	fi
   6868 else
   6869   enableval=yes
   6870 	disable_setuid=no
   6871 
   6872 fi;
   6873 echo "$as_me:6873: result: $disable_setuid" >&5
   6874 echo "${ECHO_T}$disable_setuid" >&6
   6875 
   6876 echo "$as_me:6876: checking if you want to disable setgid" >&5
   6877 echo $ECHO_N "checking if you want to disable setgid... $ECHO_C" >&6
   6878 
   6879 # Check whether --enable-setgid or --disable-setgid was given.
   6880 if test "${enable_setgid+set}" = set; then
   6881   enableval="$enable_setgid"
   6882   test "$enableval" != no && enableval=yes
   6883 	if test "$enableval" != "yes" ; then
   6884     disable_setgid=yes
   6885 	else
   6886 		disable_setgid=no
   6887 	fi
   6888 else
   6889   enableval=yes
   6890 	disable_setgid=no
   6891 
   6892 fi;
   6893 echo "$as_me:6893: result: $disable_setgid" >&5
   6894 echo "${ECHO_T}$disable_setgid" >&6
   6895 
   6896 echo "$as_me:6896: checking if you want to run xterm setuid to a given user" >&5
   6897 echo $ECHO_N "checking if you want to run xterm setuid to a given user... $ECHO_C" >&6
   6898 
   6899 # Check whether --with-setuid or --without-setuid was given.
   6900 if test "${with_setuid+set}" = set; then
   6901   withval="$with_setuid"
   6902   use_given_setuid=$withval
   6903 else
   6904   use_given_setuid=no
   6905 fi;
   6906 echo "$as_me:6906: result: $use_given_setuid" >&5
   6907 echo "${ECHO_T}$use_given_setuid" >&6
   6908 
   6909 if test "$use_given_setuid" != no ; then
   6910 	if test "$use_given_setuid" = yes ; then
   6911 		cf_cv_given_setuid=root
   6912 	else
   6913 		cf_cv_given_setuid=$use_given_setuid
   6914 	fi
   6915 	# inherit SINSTALL_OPTS from environment to allow packager to customize it.
   6916 	SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid"
   6917 fi
   6918 
   6919 echo "$as_me:6919: checking if you want to run xterm setgid to match utmp/utmpx file" >&5
   6920 echo $ECHO_N "checking if you want to run xterm setgid to match utmp/utmpx file... $ECHO_C" >&6
   6921 
   6922 # Check whether --with-utmp-setgid or --without-utmp-setgid was given.
   6923 if test "${with_utmp_setgid+set}" = set; then
   6924   withval="$with_utmp_setgid"
   6925   use_utmp_setgid=$withval
   6926 else
   6927   use_utmp_setgid=no
   6928 fi;
   6929 echo "$as_me:6929: result: $use_utmp_setgid" >&5
   6930 echo "${ECHO_T}$use_utmp_setgid" >&6
   6931 
   6932 if test "$use_utmp_setgid" != no ; then
   6933 	if test "$use_utmp_setgid" = yes ; then
   6934 
   6935 if test $cf_cv_have_utmp != no ; then
   6936 echo "$as_me:6936: checking for utmp/utmpx group" >&5
   6937 echo $ECHO_N "checking for utmp/utmpx group... $ECHO_C" >&6
   6938 if test "${cf_cv_utmp_group+set}" = set; then
   6939   echo $ECHO_N "(cached) $ECHO_C" >&6
   6940 else
   6941 
   6942 for cf_utmp_path in /var/adm /var/run
   6943 do
   6944 	for cf_utmp_file in utmpx utmp
   6945 	do
   6946 		if test -f $cf_utmp_path/$cf_utmp_file
   6947 		then
   6948 			cf_cv_utmp_group=root
   6949 
   6950 			cf_option="-l -L"
   6951 
   6952 			# Expect listing to have fields like this:
   6953 			#-r--r--r--   1 user      group       34293 Jul 18 16:29 pathname
   6954 			ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest
   6955 			read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest
   6956 			if test -z "$cf_rest" ; then
   6957 				cf_option="$cf_option -g"
   6958 				ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest
   6959 				read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest
   6960 			fi
   6961 			rm -f conftest
   6962 
   6963 			# If we have a pathname, and the date fields look right, assume we've
   6964 			# captured the group as well.
   6965 			if test -n "$cf_rest" ; then
   6966 				cf_test=`echo "${cf_date2}${cf_date3}" | sed -e 's/[0-9:]//g'`
   6967 				if test -z "$cf_test" ; then
   6968 					cf_cv_utmp_group=$cf_grp;
   6969 				fi
   6970 			fi
   6971 			break
   6972 		fi
   6973 	done
   6974 	test -n "$cf_cv_utmp_group" && break
   6975 done
   6976 
   6977 fi
   6978 echo "$as_me:6978: result: $cf_cv_utmp_group" >&5
   6979 echo "${ECHO_T}$cf_cv_utmp_group" >&6
   6980 else
   6981 	{ { echo "$as_me:6981: error: cannot find utmp group" >&5
   6982 echo "$as_me: error: cannot find utmp group" >&2;}
   6983    { (exit 1); exit 1; }; }
   6984 fi
   6985 
   6986 	else
   6987 		cf_cv_utmp_group=$use_utmp_setgid
   6988 	fi
   6989 	if test "$cf_cv_posix_saved_ids" != yes ; then
   6990 		{ { echo "$as_me:6990: error: Your system does not support POSIX saved-ids" >&5
   6991 echo "$as_me: error: Your system does not support POSIX saved-ids" >&2;}
   6992    { (exit 1); exit 1; }; }
   6993 	fi
   6994 
   6995 cat >>confdefs.h <<\EOF
   6996 #define USE_UTMP_SETGID 1
   6997 EOF
   6998 
   6999 	SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group"
   7000 fi
   7001 
   7002 echo "$as_me:7002: checking if you want to link with utempter" >&5
   7003 echo $ECHO_N "checking if you want to link with utempter... $ECHO_C" >&6
   7004 
   7005 # Check whether --with-utempter or --without-utempter was given.
   7006 if test "${with_utempter+set}" = set; then
   7007   withval="$with_utempter"
   7008   use_utempter=$withval
   7009 else
   7010   use_utempter=no
   7011 fi;
   7012 echo "$as_me:7012: result: $use_utempter" >&5
   7013 echo "${ECHO_T}$use_utempter" >&6
   7014 
   7015 if test "$use_utempter" = yes ; then
   7016 
   7017 echo "$as_me:7017: checking if we can link with utempter library" >&5
   7018 echo $ECHO_N "checking if we can link with utempter library... $ECHO_C" >&6
   7019 if test "${cf_cv_have_utempter+set}" = set; then
   7020   echo $ECHO_N "(cached) $ECHO_C" >&6
   7021 else
   7022 
   7023 cf_save_LIBS="$LIBS"
   7024 
   7025 cf_add_libs="-lutempter"
   7026 # Filter out duplicates - this happens with badly-designed ".pc" files...
   7027 for cf_add_1lib in $LIBS
   7028 do
   7029 	for cf_add_2lib in $cf_add_libs
   7030 	do
   7031 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   7032 		then
   7033 			cf_add_1lib=
   7034 			break
   7035 		fi
   7036 	done
   7037 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   7038 done
   7039 LIBS="$cf_add_libs"
   7040 
   7041 cat >conftest.$ac_ext <<_ACEOF
   7042 #line 7042 "configure"
   7043 #include "confdefs.h"
   7044 
   7045 #include <utempter.h>
   7046 
   7047 int
   7048 main (void)
   7049 {
   7050 
   7051 	addToUtmp("/dev/tty", 0, 1);
   7052 	removeFromUtmp();
   7053 
   7054   ;
   7055   return 0;
   7056 }
   7057 _ACEOF
   7058 rm -f conftest.$ac_objext conftest$ac_exeext
   7059 if { (eval echo "$as_me:7059: \"$ac_link\"") >&5
   7060   (eval $ac_link) 2>&5
   7061   ac_status=$?
   7062   echo "$as_me:7062: \$? = $ac_status" >&5
   7063   (exit $ac_status); } &&
   7064          { ac_try='test -s conftest$ac_exeext'
   7065   { (eval echo "$as_me:7065: \"$ac_try\"") >&5
   7066   (eval $ac_try) 2>&5
   7067   ac_status=$?
   7068   echo "$as_me:7068: \$? = $ac_status" >&5
   7069   (exit $ac_status); }; }; then
   7070 
   7071 	cf_cv_have_utempter=yes
   7072 else
   7073   echo "$as_me: failed program was:" >&5
   7074 cat conftest.$ac_ext >&5
   7075 
   7076 	cf_cv_have_utempter=no
   7077 fi
   7078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7079 LIBS="$cf_save_LIBS"
   7080 
   7081 fi
   7082 echo "$as_me:7082: result: $cf_cv_have_utempter" >&5
   7083 echo "${ECHO_T}$cf_cv_have_utempter" >&6
   7084 if test "$cf_cv_have_utempter" = yes ; then
   7085 
   7086 cat >>confdefs.h <<\EOF
   7087 #define USE_UTEMPTER 1
   7088 EOF
   7089 
   7090 cf_add_libs="-lutempter"
   7091 # Filter out duplicates - this happens with badly-designed ".pc" files...
   7092 for cf_add_1lib in $LIBS
   7093 do
   7094 	for cf_add_2lib in $cf_add_libs
   7095 	do
   7096 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   7097 		then
   7098 			cf_add_1lib=
   7099 			break
   7100 		fi
   7101 	done
   7102 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   7103 done
   7104 LIBS="$cf_add_libs"
   7105 
   7106 fi
   7107 
   7108 	test "$cf_cv_have_utempter" != yes && use_utempter=no
   7109 else
   7110 	use_utempter=no
   7111 fi
   7112 
   7113 # Some configurations permit (or require) either setuid or setgid mode.
   7114 # Let the user decide.
   7115 if test "$use_utempter" = yes ; then
   7116 	if test "${enable_setuid+set}" != set ; then
   7117 		disable_setuid=yes
   7118 		test -n "$verbose" && echo "	No --disable-setuid option given, force to yes" 1>&6
   7119 
   7120 echo "${as_me:-configure}:7120: testing No --disable-setuid option given, force to yes ..." 1>&5
   7121 
   7122 	fi
   7123 fi
   7124 
   7125 ###	checks for external data
   7126 
   7127 echo "$as_me:7127: checking if external errno is declared" >&5
   7128 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
   7129 if test "${cf_cv_dcl_errno+set}" = set; then
   7130   echo $ECHO_N "(cached) $ECHO_C" >&6
   7131 else
   7132 
   7133 	cat >conftest.$ac_ext <<_ACEOF
   7134 #line 7134 "configure"
   7135 #include "confdefs.h"
   7136 
   7137 #ifdef HAVE_STDLIB_H
   7138 #include <stdlib.h>
   7139 #endif
   7140 #include <stdio.h>
   7141 #include <sys/types.h>
   7142 #include <errno.h>
   7143 int
   7144 main (void)
   7145 {
   7146 int x = (int) errno
   7147   ;
   7148   return 0;
   7149 }
   7150 _ACEOF
   7151 rm -f conftest.$ac_objext
   7152 if { (eval echo "$as_me:7152: \"$ac_compile\"") >&5
   7153   (eval $ac_compile) 2>&5
   7154   ac_status=$?
   7155   echo "$as_me:7155: \$? = $ac_status" >&5
   7156   (exit $ac_status); } &&
   7157          { ac_try='test -s conftest.$ac_objext'
   7158   { (eval echo "$as_me:7158: \"$ac_try\"") >&5
   7159   (eval $ac_try) 2>&5
   7160   ac_status=$?
   7161   echo "$as_me:7161: \$? = $ac_status" >&5
   7162   (exit $ac_status); }; }; then
   7163   cf_cv_dcl_errno=yes
   7164 else
   7165   echo "$as_me: failed program was:" >&5
   7166 cat conftest.$ac_ext >&5
   7167 cf_cv_dcl_errno=no
   7168 fi
   7169 rm -f conftest.$ac_objext conftest.$ac_ext
   7170 
   7171 fi
   7172 echo "$as_me:7172: result: $cf_cv_dcl_errno" >&5
   7173 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
   7174 
   7175 if test "$cf_cv_dcl_errno" = no ; then
   7176 
   7177 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   7178 
   7179 	cat >>confdefs.h <<EOF
   7180 #define $cf_result 1
   7181 EOF
   7182 
   7183 fi
   7184 
   7185 # It's possible (for near-UNIX clones) that the data doesn't exist
   7186 
   7187 echo "$as_me:7187: checking if external errno exists" >&5
   7188 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
   7189 if test "${cf_cv_have_errno+set}" = set; then
   7190   echo $ECHO_N "(cached) $ECHO_C" >&6
   7191 else
   7192 
   7193 	cat >conftest.$ac_ext <<_ACEOF
   7194 #line 7194 "configure"
   7195 #include "confdefs.h"
   7196 
   7197 #undef errno
   7198 extern int errno;
   7199 
   7200 int
   7201 main (void)
   7202 {
   7203 errno = 2
   7204   ;
   7205   return 0;
   7206 }
   7207 _ACEOF
   7208 rm -f conftest.$ac_objext conftest$ac_exeext
   7209 if { (eval echo "$as_me:7209: \"$ac_link\"") >&5
   7210   (eval $ac_link) 2>&5
   7211   ac_status=$?
   7212   echo "$as_me:7212: \$? = $ac_status" >&5
   7213   (exit $ac_status); } &&
   7214          { ac_try='test -s conftest$ac_exeext'
   7215   { (eval echo "$as_me:7215: \"$ac_try\"") >&5
   7216   (eval $ac_try) 2>&5
   7217   ac_status=$?
   7218   echo "$as_me:7218: \$? = $ac_status" >&5
   7219   (exit $ac_status); }; }; then
   7220   cf_cv_have_errno=yes
   7221 else
   7222   echo "$as_me: failed program was:" >&5
   7223 cat conftest.$ac_ext >&5
   7224 cf_cv_have_errno=no
   7225 fi
   7226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7227 
   7228 fi
   7229 echo "$as_me:7229: result: $cf_cv_have_errno" >&5
   7230 echo "${ECHO_T}$cf_cv_have_errno" >&6
   7231 
   7232 if test "$cf_cv_have_errno" = yes ; then
   7233 
   7234 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   7235 
   7236 	cat >>confdefs.h <<EOF
   7237 #define $cf_result 1
   7238 EOF
   7239 
   7240 fi
   7241 
   7242 echo "$as_me:7242: checking for explicit tty group name" >&5
   7243 echo $ECHO_N "checking for explicit tty group name... $ECHO_C" >&6
   7244 
   7245 # Check whether --with-tty-group or --without-tty-group was given.
   7246 if test "${with_tty_group+set}" = set; then
   7247   withval="$with_tty_group"
   7248   cf_tty_group=$withval
   7249 else
   7250   cf_tty_group=auto...
   7251 fi;
   7252 test -z "$cf_tty_group"    && cf_tty_group=auto...
   7253 test "$cf_tty_group" = yes && cf_tty_group=auto...
   7254 echo "$as_me:7254: result: $cf_tty_group" >&5
   7255 echo "${ECHO_T}$cf_tty_group" >&6
   7256 
   7257 if test "$cf_tty_group" = "auto..." ; then
   7258 echo "$as_me:7258: checking for tty group name" >&5
   7259 echo $ECHO_N "checking for tty group name... $ECHO_C" >&6
   7260 if test "${cf_cv_tty_group_name+set}" = set; then
   7261   echo $ECHO_N "(cached) $ECHO_C" >&6
   7262 else
   7263 
   7264 # If we are configuring as root, it is hard to get a clue about the tty group.
   7265 # But we'll guess based on how our connection is set up - assuming it is done
   7266 # properly.
   7267 
   7268 cf_uid=`id | sed -e 's/^^=*=//' -e 's/(.*$//'`
   7269 # )vi
   7270 if test "$cf_uid" != 0 ; then
   7271 cf_cv_tty_group_name=
   7272 cf_tty_name=`tty`
   7273 test "$cf_tty_name" = "not a tty" && cf_tty_name=/dev/tty
   7274 test -z "$cf_tty_name" && cf_tty_name=/dev/tty
   7275 if test -c "$cf_tty_name"
   7276 then
   7277 	cf_option="-l -L"
   7278 
   7279 	# Expect listing to have fields like this:
   7280 	#-rwxrwxrwx   1 user      group       34293 Jul 18 16:29 pathname
   7281 	ls $cf_option $cf_tty_name >conftest.out
   7282 	read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out
   7283 	if test -z "$cf_rest" ; then
   7284 		cf_option="$cf_option -g"
   7285 		ls $cf_option $cf_tty_name >conftest.out
   7286 		read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out
   7287 	fi
   7288 	rm -f conftest.out
   7289 	cf_cv_tty_group_name=$cf_grp
   7290 fi
   7291 fi
   7292 
   7293 # If we cannot deduce the tty group, fall back on hardcoded cases
   7294 
   7295 if test -z "$cf_cv_tty_group_name"
   7296 then
   7297 case $host_os in
   7298 (osf*)
   7299 	cf_cv_tty_group_name="terminal"
   7300 	;;
   7301 (*)
   7302 	cf_cv_tty_group_name="unknown"
   7303 	if ( egrep '^tty:' /etc/group 2>/dev/null 1>/dev/null ) then
   7304 		cf_cv_tty_group_name="tty"
   7305 	fi
   7306 	;;
   7307 esac
   7308 fi
   7309 
   7310 fi
   7311 echo "$as_me:7311: result: $cf_cv_tty_group_name" >&5
   7312 echo "${ECHO_T}$cf_cv_tty_group_name" >&6
   7313 cf_tty_group="$cf_cv_tty_group_name"
   7314 else
   7315 	# if configure option, always do this
   7316 
   7317 cat >>confdefs.h <<\EOF
   7318 #define USE_TTY_GROUP 1
   7319 EOF
   7320 
   7321 fi
   7322 
   7323 cat >>confdefs.h <<EOF
   7324 #define TTY_GROUP_NAME "$cf_tty_group"
   7325 EOF
   7326 
   7327 # This is only a double-check that the group-name we obtained above really
   7328 # does apply to the device.  We cannot perform this test if we are in batch
   7329 # mode, or if we are cross-compiling.
   7330 
   7331 echo "$as_me:7331: checking if we may use the $cf_tty_group group" >&5
   7332 echo $ECHO_N "checking if we may use the $cf_tty_group group... $ECHO_C" >&6
   7333 if test "${cf_cv_tty_group+set}" = set; then
   7334   echo $ECHO_N "(cached) $ECHO_C" >&6
   7335 else
   7336 
   7337 cf_tty_name=`tty`
   7338 if test "$cf_tty_name" != "not a tty"
   7339 then
   7340 if test "$cross_compiling" = yes; then
   7341   cf_cv_tty_group=unknown
   7342 else
   7343   cat >conftest.$ac_ext <<_ACEOF
   7344 #line 7344 "configure"
   7345 #include "confdefs.h"
   7346 
   7347 #include <unistd.h>
   7348 #include <sys/types.h>
   7349 #include <sys/stat.h>
   7350 #include <grp.h>
   7351 int main()
   7352 {
   7353 	struct stat sb;
   7354 	struct group *ttygrp = getgrnam(TTY_GROUP_NAME);
   7355 	char *name = ttyname(0);
   7356 
   7357 	endgrent();
   7358 	if (ttygrp != 0
   7359 	 && name != 0
   7360 	 && stat(name, &sb) == 0
   7361 	 && sb.st_gid != getgid()
   7362 	 && sb.st_gid == ttygrp->gr_gid) {
   7363 		${cf_cv_main_return:-return} (0);
   7364 	}
   7365 	${cf_cv_main_return:-return} (1);
   7366 }
   7367 
   7368 _ACEOF
   7369 rm -f conftest$ac_exeext
   7370 if { (eval echo "$as_me:7370: \"$ac_link\"") >&5
   7371   (eval $ac_link) 2>&5
   7372   ac_status=$?
   7373   echo "$as_me:7373: \$? = $ac_status" >&5
   7374   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   7375   { (eval echo "$as_me:7375: \"$ac_try\"") >&5
   7376   (eval $ac_try) 2>&5
   7377   ac_status=$?
   7378   echo "$as_me:7378: \$? = $ac_status" >&5
   7379   (exit $ac_status); }; }; then
   7380   cf_cv_tty_group=yes
   7381 else
   7382   echo "$as_me: program exited with status $ac_status" >&5
   7383 echo "$as_me: failed program was:" >&5
   7384 cat conftest.$ac_ext >&5
   7385 cf_cv_tty_group=no
   7386 fi
   7387 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   7388 fi
   7389 elif test "$cross_compiling" = yes; then
   7390 	cf_cv_tty_group=unknown
   7391 else
   7392 	cf_cv_tty_group=yes
   7393 fi
   7394 
   7395 fi
   7396 echo "$as_me:7396: result: $cf_cv_tty_group" >&5
   7397 echo "${ECHO_T}$cf_cv_tty_group" >&6
   7398 
   7399 if test $cf_cv_tty_group = no ; then
   7400 	{ echo "$as_me:7400: WARNING: Cannot use $cf_tty_group group" >&5
   7401 echo "$as_me: WARNING: Cannot use $cf_tty_group group" >&2;}
   7402 else
   7403 	cat >>confdefs.h <<\EOF
   7404 #define USE_TTY_GROUP 1
   7405 EOF
   7406 
   7407 fi
   7408 
   7409 ###	checks for system services and user specified options
   7410 
   7411 echo "$as_me:7411: checking for sys/wait.h that is POSIX.1 compatible" >&5
   7412 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
   7413 if test "${ac_cv_header_sys_wait_h+set}" = set; then
   7414   echo $ECHO_N "(cached) $ECHO_C" >&6
   7415 else
   7416   cat >conftest.$ac_ext <<_ACEOF
   7417 #line 7417 "configure"
   7418 #include "confdefs.h"
   7419 #include <sys/types.h>
   7420 #include <sys/wait.h>
   7421 #ifndef WEXITSTATUS
   7422 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
   7423 #endif
   7424 #ifndef WIFEXITED
   7425 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
   7426 #endif
   7427 
   7428 int
   7429 main (void)
   7430 {
   7431   int s;
   7432   wait (&s);
   7433   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
   7434   ;
   7435   return 0;
   7436 }
   7437 _ACEOF
   7438 rm -f conftest.$ac_objext
   7439 if { (eval echo "$as_me:7439: \"$ac_compile\"") >&5
   7440   (eval $ac_compile) 2>&5
   7441   ac_status=$?
   7442   echo "$as_me:7442: \$? = $ac_status" >&5
   7443   (exit $ac_status); } &&
   7444          { ac_try='test -s conftest.$ac_objext'
   7445   { (eval echo "$as_me:7445: \"$ac_try\"") >&5
   7446   (eval $ac_try) 2>&5
   7447   ac_status=$?
   7448   echo "$as_me:7448: \$? = $ac_status" >&5
   7449   (exit $ac_status); }; }; then
   7450   ac_cv_header_sys_wait_h=yes
   7451 else
   7452   echo "$as_me: failed program was:" >&5
   7453 cat conftest.$ac_ext >&5
   7454 ac_cv_header_sys_wait_h=no
   7455 fi
   7456 rm -f conftest.$ac_objext conftest.$ac_ext
   7457 fi
   7458 echo "$as_me:7458: result: $ac_cv_header_sys_wait_h" >&5
   7459 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
   7460 if test $ac_cv_header_sys_wait_h = yes; then
   7461 
   7462 cat >>confdefs.h <<\EOF
   7463 #define HAVE_SYS_WAIT_H 1
   7464 EOF
   7465 
   7466 fi
   7467 
   7468 echo "$as_me:7468: checking for POSIX wait functions" >&5
   7469 echo $ECHO_N "checking for POSIX wait functions... $ECHO_C" >&6
   7470 if test "${cf_cv_posix_wait+set}" = set; then
   7471   echo $ECHO_N "(cached) $ECHO_C" >&6
   7472 else
   7473 
   7474 cat >conftest.$ac_ext <<_ACEOF
   7475 #line 7475 "configure"
   7476 #include "confdefs.h"
   7477 
   7478 #include <stdlib.h>
   7479 #include <stdio.h>
   7480 #include <sys/types.h>
   7481 #ifdef HAVE_SYS_WAIT_H
   7482 #include <sys/wait.h>
   7483 #endif
   7484 
   7485 int
   7486 main (void)
   7487 {
   7488 
   7489 	int stat_loc;
   7490 	pid_t pid = waitpid(-1, &stat_loc, WNOHANG|WUNTRACED);
   7491 	pid_t pid2 = wait(&stat_loc);
   7492 
   7493   ;
   7494   return 0;
   7495 }
   7496 _ACEOF
   7497 rm -f conftest.$ac_objext conftest$ac_exeext
   7498 if { (eval echo "$as_me:7498: \"$ac_link\"") >&5
   7499   (eval $ac_link) 2>&5
   7500   ac_status=$?
   7501   echo "$as_me:7501: \$? = $ac_status" >&5
   7502   (exit $ac_status); } &&
   7503          { ac_try='test -s conftest$ac_exeext'
   7504   { (eval echo "$as_me:7504: \"$ac_try\"") >&5
   7505   (eval $ac_try) 2>&5
   7506   ac_status=$?
   7507   echo "$as_me:7507: \$? = $ac_status" >&5
   7508   (exit $ac_status); }; }; then
   7509   cf_cv_posix_wait=yes
   7510 else
   7511   echo "$as_me: failed program was:" >&5
   7512 cat conftest.$ac_ext >&5
   7513 cf_cv_posix_wait=no
   7514 fi
   7515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7516 
   7517 fi
   7518 echo "$as_me:7518: result: $cf_cv_posix_wait" >&5
   7519 echo "${ECHO_T}$cf_cv_posix_wait" >&6
   7520 test "$cf_cv_posix_wait" = yes &&
   7521 cat >>confdefs.h <<\EOF
   7522 #define USE_POSIX_WAIT 1
   7523 EOF
   7524 
   7525 echo "$as_me:7525: checking if external sys_nerr is declared" >&5
   7526 echo $ECHO_N "checking if external sys_nerr is declared... $ECHO_C" >&6
   7527 if test "${cf_cv_dcl_sys_nerr+set}" = set; then
   7528   echo $ECHO_N "(cached) $ECHO_C" >&6
   7529 else
   7530 
   7531 	cat >conftest.$ac_ext <<_ACEOF
   7532 #line 7532 "configure"
   7533 #include "confdefs.h"
   7534 
   7535 #ifdef HAVE_STDLIB_H
   7536 #include <stdlib.h>
   7537 #endif
   7538 #include <stdio.h>
   7539 #include <sys/types.h>
   7540 #include <errno.h>
   7541 int
   7542 main (void)
   7543 {
   7544 int x = (int) sys_nerr
   7545   ;
   7546   return 0;
   7547 }
   7548 _ACEOF
   7549 rm -f conftest.$ac_objext
   7550 if { (eval echo "$as_me:7550: \"$ac_compile\"") >&5
   7551   (eval $ac_compile) 2>&5
   7552   ac_status=$?
   7553   echo "$as_me:7553: \$? = $ac_status" >&5
   7554   (exit $ac_status); } &&
   7555          { ac_try='test -s conftest.$ac_objext'
   7556   { (eval echo "$as_me:7556: \"$ac_try\"") >&5
   7557   (eval $ac_try) 2>&5
   7558   ac_status=$?
   7559   echo "$as_me:7559: \$? = $ac_status" >&5
   7560   (exit $ac_status); }; }; then
   7561   cf_cv_dcl_sys_nerr=yes
   7562 else
   7563   echo "$as_me: failed program was:" >&5
   7564 cat conftest.$ac_ext >&5
   7565 cf_cv_dcl_sys_nerr=no
   7566 fi
   7567 rm -f conftest.$ac_objext conftest.$ac_ext
   7568 
   7569 fi
   7570 echo "$as_me:7570: result: $cf_cv_dcl_sys_nerr" >&5
   7571 echo "${ECHO_T}$cf_cv_dcl_sys_nerr" >&6
   7572 
   7573 if test "$cf_cv_dcl_sys_nerr" = no ; then
   7574 
   7575 cf_result=`echo "decl_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   7576 
   7577 	cat >>confdefs.h <<EOF
   7578 #define $cf_result 1
   7579 EOF
   7580 
   7581 fi
   7582 
   7583 # It's possible (for near-UNIX clones) that the data doesn't exist
   7584 
   7585 echo "$as_me:7585: checking if external sys_nerr exists" >&5
   7586 echo $ECHO_N "checking if external sys_nerr exists... $ECHO_C" >&6
   7587 if test "${cf_cv_have_sys_nerr+set}" = set; then
   7588   echo $ECHO_N "(cached) $ECHO_C" >&6
   7589 else
   7590 
   7591 	cat >conftest.$ac_ext <<_ACEOF
   7592 #line 7592 "configure"
   7593 #include "confdefs.h"
   7594 
   7595 #undef sys_nerr
   7596 extern int sys_nerr;
   7597 
   7598 int
   7599 main (void)
   7600 {
   7601 sys_nerr = 2
   7602   ;
   7603   return 0;
   7604 }
   7605 _ACEOF
   7606 rm -f conftest.$ac_objext conftest$ac_exeext
   7607 if { (eval echo "$as_me:7607: \"$ac_link\"") >&5
   7608   (eval $ac_link) 2>&5
   7609   ac_status=$?
   7610   echo "$as_me:7610: \$? = $ac_status" >&5
   7611   (exit $ac_status); } &&
   7612          { ac_try='test -s conftest$ac_exeext'
   7613   { (eval echo "$as_me:7613: \"$ac_try\"") >&5
   7614   (eval $ac_try) 2>&5
   7615   ac_status=$?
   7616   echo "$as_me:7616: \$? = $ac_status" >&5
   7617   (exit $ac_status); }; }; then
   7618   cf_cv_have_sys_nerr=yes
   7619 else
   7620   echo "$as_me: failed program was:" >&5
   7621 cat conftest.$ac_ext >&5
   7622 cf_cv_have_sys_nerr=no
   7623 fi
   7624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7625 
   7626 fi
   7627 echo "$as_me:7627: result: $cf_cv_have_sys_nerr" >&5
   7628 echo "${ECHO_T}$cf_cv_have_sys_nerr" >&6
   7629 
   7630 if test "$cf_cv_have_sys_nerr" = yes ; then
   7631 
   7632 cf_result=`echo "have_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   7633 
   7634 	cat >>confdefs.h <<EOF
   7635 #define $cf_result 1
   7636 EOF
   7637 
   7638 fi
   7639 
   7640 echo "$as_me:7640: checking if external sys_errlist is declared" >&5
   7641 echo $ECHO_N "checking if external sys_errlist is declared... $ECHO_C" >&6
   7642 if test "${cf_cv_dcl_sys_errlist+set}" = set; then
   7643   echo $ECHO_N "(cached) $ECHO_C" >&6
   7644 else
   7645 
   7646 	cat >conftest.$ac_ext <<_ACEOF
   7647 #line 7647 "configure"
   7648 #include "confdefs.h"
   7649 
   7650 #ifdef HAVE_STDLIB_H
   7651 #include <stdlib.h>
   7652 #endif
   7653 #include <stdio.h>
   7654 #include <sys/types.h>
   7655 #include <errno.h>
   7656 int
   7657 main (void)
   7658 {
   7659 int x = (int) sys_errlist
   7660   ;
   7661   return 0;
   7662 }
   7663 _ACEOF
   7664 rm -f conftest.$ac_objext
   7665 if { (eval echo "$as_me:7665: \"$ac_compile\"") >&5
   7666   (eval $ac_compile) 2>&5
   7667   ac_status=$?
   7668   echo "$as_me:7668: \$? = $ac_status" >&5
   7669   (exit $ac_status); } &&
   7670          { ac_try='test -s conftest.$ac_objext'
   7671   { (eval echo "$as_me:7671: \"$ac_try\"") >&5
   7672   (eval $ac_try) 2>&5
   7673   ac_status=$?
   7674   echo "$as_me:7674: \$? = $ac_status" >&5
   7675   (exit $ac_status); }; }; then
   7676   cf_cv_dcl_sys_errlist=yes
   7677 else
   7678   echo "$as_me: failed program was:" >&5
   7679 cat conftest.$ac_ext >&5
   7680 cf_cv_dcl_sys_errlist=no
   7681 fi
   7682 rm -f conftest.$ac_objext conftest.$ac_ext
   7683 
   7684 fi
   7685 echo "$as_me:7685: result: $cf_cv_dcl_sys_errlist" >&5
   7686 echo "${ECHO_T}$cf_cv_dcl_sys_errlist" >&6
   7687 
   7688 if test "$cf_cv_dcl_sys_errlist" = no ; then
   7689 
   7690 cf_result=`echo "decl_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   7691 
   7692 	cat >>confdefs.h <<EOF
   7693 #define $cf_result 1
   7694 EOF
   7695 
   7696 fi
   7697 
   7698 # It's possible (for near-UNIX clones) that the data doesn't exist
   7699 
   7700 echo "$as_me:7700: checking if external sys_errlist exists" >&5
   7701 echo $ECHO_N "checking if external sys_errlist exists... $ECHO_C" >&6
   7702 if test "${cf_cv_have_sys_errlist+set}" = set; then
   7703   echo $ECHO_N "(cached) $ECHO_C" >&6
   7704 else
   7705 
   7706 	cat >conftest.$ac_ext <<_ACEOF
   7707 #line 7707 "configure"
   7708 #include "confdefs.h"
   7709 
   7710 #undef sys_errlist
   7711 extern int sys_errlist;
   7712 
   7713 int
   7714 main (void)
   7715 {
   7716 sys_errlist = 2
   7717   ;
   7718   return 0;
   7719 }
   7720 _ACEOF
   7721 rm -f conftest.$ac_objext conftest$ac_exeext
   7722 if { (eval echo "$as_me:7722: \"$ac_link\"") >&5
   7723   (eval $ac_link) 2>&5
   7724   ac_status=$?
   7725   echo "$as_me:7725: \$? = $ac_status" >&5
   7726   (exit $ac_status); } &&
   7727          { ac_try='test -s conftest$ac_exeext'
   7728   { (eval echo "$as_me:7728: \"$ac_try\"") >&5
   7729   (eval $ac_try) 2>&5
   7730   ac_status=$?
   7731   echo "$as_me:7731: \$? = $ac_status" >&5
   7732   (exit $ac_status); }; }; then
   7733   cf_cv_have_sys_errlist=yes
   7734 else
   7735   echo "$as_me: failed program was:" >&5
   7736 cat conftest.$ac_ext >&5
   7737 cf_cv_have_sys_errlist=no
   7738 fi
   7739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7740 
   7741 fi
   7742 echo "$as_me:7742: result: $cf_cv_have_sys_errlist" >&5
   7743 echo "${ECHO_T}$cf_cv_have_sys_errlist" >&6
   7744 
   7745 if test "$cf_cv_have_sys_errlist" = yes ; then
   7746 
   7747 cf_result=`echo "have_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   7748 
   7749 	cat >>confdefs.h <<EOF
   7750 #define $cf_result 1
   7751 EOF
   7752 
   7753 fi
   7754 
   7755 for ac_header in \
   7756 termios.h \
   7757 stdlib.h \
   7758 X11/Intrinsic.h \
   7759 
   7760 do
   7761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   7762 echo "$as_me:7762: checking for $ac_header" >&5
   7763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   7764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   7765   echo $ECHO_N "(cached) $ECHO_C" >&6
   7766 else
   7767   cat >conftest.$ac_ext <<_ACEOF
   7768 #line 7768 "configure"
   7769 #include "confdefs.h"
   7770 #include <$ac_header>
   7771 _ACEOF
   7772 if { (eval echo "$as_me:7772: \"$ac_cpp conftest.$ac_ext\"") >&5
   7773   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   7774   ac_status=$?
   7775   egrep -v '^ *\+' conftest.er1 >conftest.err
   7776   rm -f conftest.er1
   7777   cat conftest.err >&5
   7778   echo "$as_me:7778: \$? = $ac_status" >&5
   7779   (exit $ac_status); } >/dev/null; then
   7780   if test -s conftest.err; then
   7781     ac_cpp_err=$ac_c_preproc_warn_flag
   7782   else
   7783     ac_cpp_err=
   7784   fi
   7785 else
   7786   ac_cpp_err=yes
   7787 fi
   7788 if test -z "$ac_cpp_err"; then
   7789   eval "$as_ac_Header=yes"
   7790 else
   7791   echo "$as_me: failed program was:" >&5
   7792   cat conftest.$ac_ext >&5
   7793   eval "$as_ac_Header=no"
   7794 fi
   7795 rm -f conftest.err conftest.$ac_ext
   7796 fi
   7797 echo "$as_me:7797: result: `eval echo '${'$as_ac_Header'}'`" >&5
   7798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   7799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   7800   cat >>confdefs.h <<EOF
   7801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   7802 EOF
   7803 
   7804 fi
   7805 done
   7806 
   7807 echo "$as_me:7807: checking if we should define SYSV" >&5
   7808 echo $ECHO_N "checking if we should define SYSV... $ECHO_C" >&6
   7809 if test "${cf_cv_sysv+set}" = set; then
   7810   echo $ECHO_N "(cached) $ECHO_C" >&6
   7811 else
   7812 
   7813 cat >conftest.$ac_ext <<_ACEOF
   7814 #line 7814 "configure"
   7815 #include "confdefs.h"
   7816 
   7817 #undef  SYSV
   7818 #define SYSV 1			/* get Xos.h to declare sys_errlist[] */
   7819 #ifdef HAVE_STDLIB_H
   7820 #include <stdlib.h>		/* look for wchar_t */
   7821 #endif
   7822 #ifdef HAVE_X11_INTRINSIC_H
   7823 #include <X11/Intrinsic.h>	/* Intrinsic.h has other traps... */
   7824 #endif
   7825 #ifdef HAVE_TERMIOS_H		/* needed for HPUX 10.20 */
   7826 #include <termios.h>
   7827 #define STRUCT_TERMIOS struct termios
   7828 #else
   7829 #define STRUCT_TERMIOS struct termio
   7830 #endif
   7831 #include <curses.h>
   7832 #include <term.h>		/* eliminate most BSD hacks */
   7833 #include <errno.h>		/* declare sys_errlist on older systems */
   7834 #include <sys/termio.h>		/* eliminate most of the remaining ones */
   7835 
   7836 int
   7837 main (void)
   7838 {
   7839 
   7840 static STRUCT_TERMIOS d_tio;
   7841 	d_tio.c_cc[VINTR] = 0;
   7842 	d_tio.c_cc[VQUIT] = 0;
   7843 	d_tio.c_cc[VERASE] = 0;
   7844 	d_tio.c_cc[VKILL] = 0;
   7845 	d_tio.c_cc[VEOF] = 0;
   7846 	d_tio.c_cc[VEOL] = 0;
   7847 	d_tio.c_cc[VMIN] = 0;
   7848 	d_tio.c_cc[VTIME] = 0;
   7849 #if defined(HAVE_SYS_ERRLIST) && !defined(DECL_SYS_ERRLIST)
   7850 sys_errlist[0] = "";		/* Cygwin mis-declares this */
   7851 #endif
   7852 
   7853   ;
   7854   return 0;
   7855 }
   7856 _ACEOF
   7857 rm -f conftest.$ac_objext
   7858 if { (eval echo "$as_me:7858: \"$ac_compile\"") >&5
   7859   (eval $ac_compile) 2>&5
   7860   ac_status=$?
   7861   echo "$as_me:7861: \$? = $ac_status" >&5
   7862   (exit $ac_status); } &&
   7863          { ac_try='test -s conftest.$ac_objext'
   7864   { (eval echo "$as_me:7864: \"$ac_try\"") >&5
   7865   (eval $ac_try) 2>&5
   7866   ac_status=$?
   7867   echo "$as_me:7867: \$? = $ac_status" >&5
   7868   (exit $ac_status); }; }; then
   7869   cf_cv_sysv=yes
   7870 else
   7871   echo "$as_me: failed program was:" >&5
   7872 cat conftest.$ac_ext >&5
   7873 cf_cv_sysv=no
   7874 fi
   7875 rm -f conftest.$ac_objext conftest.$ac_ext
   7876 
   7877 fi
   7878 echo "$as_me:7878: result: $cf_cv_sysv" >&5
   7879 echo "${ECHO_T}$cf_cv_sysv" >&6
   7880 test "$cf_cv_sysv" = yes &&
   7881 cat >>confdefs.h <<\EOF
   7882 #define SYSV 1
   7883 EOF
   7884 
   7885 echo "$as_me:7885: checking for elf_begin in -lelf" >&5
   7886 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
   7887 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
   7888   echo $ECHO_N "(cached) $ECHO_C" >&6
   7889 else
   7890   ac_check_lib_save_LIBS=$LIBS
   7891 LIBS="-lelf  $LIBS"
   7892 cat >conftest.$ac_ext <<_ACEOF
   7893 #line 7893 "configure"
   7894 #include "confdefs.h"
   7895 
   7896 /* Override any gcc2 internal prototype to avoid an error.  */
   7897 #ifdef __cplusplus
   7898 extern "C"
   7899 #endif
   7900 /* We use char because int might match the return type of a gcc2
   7901    builtin and then its argument prototype would still apply.  */
   7902 char elf_begin ();
   7903 int
   7904 main (void)
   7905 {
   7906 elf_begin ();
   7907   ;
   7908   return 0;
   7909 }
   7910 _ACEOF
   7911 rm -f conftest.$ac_objext conftest$ac_exeext
   7912 if { (eval echo "$as_me:7912: \"$ac_link\"") >&5
   7913   (eval $ac_link) 2>&5
   7914   ac_status=$?
   7915   echo "$as_me:7915: \$? = $ac_status" >&5
   7916   (exit $ac_status); } &&
   7917          { ac_try='test -s conftest$ac_exeext'
   7918   { (eval echo "$as_me:7918: \"$ac_try\"") >&5
   7919   (eval $ac_try) 2>&5
   7920   ac_status=$?
   7921   echo "$as_me:7921: \$? = $ac_status" >&5
   7922   (exit $ac_status); }; }; then
   7923   ac_cv_lib_elf_elf_begin=yes
   7924 else
   7925   echo "$as_me: failed program was:" >&5
   7926 cat conftest.$ac_ext >&5
   7927 ac_cv_lib_elf_elf_begin=no
   7928 fi
   7929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7930 LIBS=$ac_check_lib_save_LIBS
   7931 fi
   7932 echo "$as_me:7932: result: $ac_cv_lib_elf_elf_begin" >&5
   7933 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
   7934 if test $ac_cv_lib_elf_elf_begin = yes; then
   7935 
   7936 echo "$as_me:7936: checking if this is an SVR4 system" >&5
   7937 echo $ECHO_N "checking if this is an SVR4 system... $ECHO_C" >&6
   7938 if test "${cf_cv_svr4+set}" = set; then
   7939   echo $ECHO_N "(cached) $ECHO_C" >&6
   7940 else
   7941 
   7942 cat >conftest.$ac_ext <<_ACEOF
   7943 #line 7943 "configure"
   7944 #include "confdefs.h"
   7945 
   7946 #if defined(__CYGWIN__)
   7947 make an error
   7948 #endif
   7949 #include <elf.h>
   7950 #include <sys/termio.h>
   7951 
   7952 int
   7953 main (void)
   7954 {
   7955 
   7956 static struct termio d_tio;
   7957 	d_tio.c_cc[VINTR] = 0;
   7958 	d_tio.c_cc[VQUIT] = 0;
   7959 	d_tio.c_cc[VERASE] = 0;
   7960 	d_tio.c_cc[VKILL] = 0;
   7961 	d_tio.c_cc[VEOF] = 0;
   7962 	d_tio.c_cc[VEOL] = 0;
   7963 	d_tio.c_cc[VMIN] = 0;
   7964 	d_tio.c_cc[VTIME] = 0;
   7965 	d_tio.c_cc[VLNEXT] = 0;
   7966 
   7967   ;
   7968   return 0;
   7969 }
   7970 _ACEOF
   7971 rm -f conftest.$ac_objext
   7972 if { (eval echo "$as_me:7972: \"$ac_compile\"") >&5
   7973   (eval $ac_compile) 2>&5
   7974   ac_status=$?
   7975   echo "$as_me:7975: \$? = $ac_status" >&5
   7976   (exit $ac_status); } &&
   7977          { ac_try='test -s conftest.$ac_objext'
   7978   { (eval echo "$as_me:7978: \"$ac_try\"") >&5
   7979   (eval $ac_try) 2>&5
   7980   ac_status=$?
   7981   echo "$as_me:7981: \$? = $ac_status" >&5
   7982   (exit $ac_status); }; }; then
   7983   cf_cv_svr4=yes
   7984 else
   7985   echo "$as_me: failed program was:" >&5
   7986 cat conftest.$ac_ext >&5
   7987 cf_cv_svr4=no
   7988 fi
   7989 rm -f conftest.$ac_objext conftest.$ac_ext
   7990 
   7991 fi
   7992 echo "$as_me:7992: result: $cf_cv_svr4" >&5
   7993 echo "${ECHO_T}$cf_cv_svr4" >&6
   7994 
   7995 fi
   7996 
   7997 test "$cf_cv_svr4" = yes &&
   7998 cat >>confdefs.h <<\EOF
   7999 #define SVR4 1
   8000 EOF
   8001 
   8002 echo "$as_me:8002: checking for X" >&5
   8003 echo $ECHO_N "checking for X... $ECHO_C" >&6
   8004 
   8005 # Check whether --with-x or --without-x was given.
   8006 if test "${with_x+set}" = set; then
   8007   withval="$with_x"
   8008 
   8009 fi;
   8010 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
   8011 if test "x$with_x" = xno; then
   8012   # The user explicitly disabled X.
   8013   have_x=disabled
   8014 else
   8015   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
   8016     # Both variables are already set.
   8017     have_x=yes
   8018   else
   8019     if test "${ac_cv_have_x+set}" = set; then
   8020   echo $ECHO_N "(cached) $ECHO_C" >&6
   8021 else
   8022   # One or both of the vars are not set, and there is no cached value.
   8023 ac_x_includes=no ac_x_libraries=no
   8024 rm -fr conftest.dir
   8025 if mkdir conftest.dir; then
   8026   cd conftest.dir
   8027   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
   8028   cat >Imakefile <<'EOF'
   8029 acfindx:
   8030 	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
   8031 EOF
   8032   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
   8033     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   8034     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
   8035     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
   8036     for ac_extension in a so sl dylib dll; do
   8037       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
   8038          test -f $ac_im_libdir/libX11.$ac_extension; then
   8039         ac_im_usrlibdir=$ac_im_libdir; break
   8040       fi
   8041     done
   8042     # Screen out bogus values from the imake configuration.  They are
   8043     # bogus both because they are the default anyway, and because
   8044     # using them would break gcc on systems where it needs fixed includes.
   8045     case $ac_im_incroot in
   8046 	/usr/include) ;;
   8047 	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
   8048     esac
   8049     case $ac_im_usrlibdir in
   8050 	/usr/lib | /lib) ;;
   8051 	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
   8052     esac
   8053   fi
   8054   cd ..
   8055   rm -fr conftest.dir
   8056 fi
   8057 
   8058 # Standard set of common directories for X headers.
   8059 # Check X11 before X11Rn because it is often a symlink to the current release.
   8060 ac_x_header_dirs='
   8061 /usr/X11/include
   8062 /usr/X11R6/include
   8063 /usr/X11R5/include
   8064 /usr/X11R4/include
   8065 
   8066 /usr/include/X11
   8067 /usr/include/X11R6
   8068 /usr/include/X11R5
   8069 /usr/include/X11R4
   8070 
   8071 /usr/local/X11/include
   8072 /usr/local/X11R6/include
   8073 /usr/local/X11R5/include
   8074 /usr/local/X11R4/include
   8075 
   8076 /usr/local/include/X11
   8077 /usr/local/include/X11R6
   8078 /usr/local/include/X11R5
   8079 /usr/local/include/X11R4
   8080 
   8081 /usr/X386/include
   8082 /usr/x386/include
   8083 /usr/XFree86/include/X11
   8084 
   8085 /usr/include
   8086 /usr/local/include
   8087 /usr/unsupported/include
   8088 /usr/athena/include
   8089 /usr/local/x11r5/include
   8090 /usr/lpp/Xamples/include
   8091 
   8092 /usr/openwin/include
   8093 /usr/openwin/share/include'
   8094 
   8095 if test "$ac_x_includes" = no; then
   8096   # Guess where to find include files, by looking for Intrinsic.h.
   8097   # First, try using that file with no special directory specified.
   8098   cat >conftest.$ac_ext <<_ACEOF
   8099 #line 8099 "configure"
   8100 #include "confdefs.h"
   8101 #include <X11/Intrinsic.h>
   8102 _ACEOF
   8103 if { (eval echo "$as_me:8103: \"$ac_cpp conftest.$ac_ext\"") >&5
   8104   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   8105   ac_status=$?
   8106   egrep -v '^ *\+' conftest.er1 >conftest.err
   8107   rm -f conftest.er1
   8108   cat conftest.err >&5
   8109   echo "$as_me:8109: \$? = $ac_status" >&5
   8110   (exit $ac_status); } >/dev/null; then
   8111   if test -s conftest.err; then
   8112     ac_cpp_err=$ac_c_preproc_warn_flag
   8113   else
   8114     ac_cpp_err=
   8115   fi
   8116 else
   8117   ac_cpp_err=yes
   8118 fi
   8119 if test -z "$ac_cpp_err"; then
   8120   # We can compile using X headers with no special include directory.
   8121 ac_x_includes=
   8122 else
   8123   echo "$as_me: failed program was:" >&5
   8124   cat conftest.$ac_ext >&5
   8125   for ac_dir in $ac_x_header_dirs; do
   8126   if test -r "$ac_dir/X11/Intrinsic.h"; then
   8127     ac_x_includes=$ac_dir
   8128     break
   8129   fi
   8130 done
   8131 fi
   8132 rm -f conftest.err conftest.$ac_ext
   8133 fi # $ac_x_includes = no
   8134 
   8135 if test "$ac_x_libraries" = no; then
   8136   # Check for the libraries.
   8137   # See if we find them without any special options.
   8138   # Don't add to $LIBS permanently.
   8139   ac_save_LIBS=$LIBS
   8140   LIBS="-lXt $LIBS"
   8141   cat >conftest.$ac_ext <<_ACEOF
   8142 #line 8142 "configure"
   8143 #include "confdefs.h"
   8144 #include <X11/Intrinsic.h>
   8145 int
   8146 main (void)
   8147 {
   8148 XtMalloc (0)
   8149   ;
   8150   return 0;
   8151 }
   8152 _ACEOF
   8153 rm -f conftest.$ac_objext conftest$ac_exeext
   8154 if { (eval echo "$as_me:8154: \"$ac_link\"") >&5
   8155   (eval $ac_link) 2>&5
   8156   ac_status=$?
   8157   echo "$as_me:8157: \$? = $ac_status" >&5
   8158   (exit $ac_status); } &&
   8159          { ac_try='test -s conftest$ac_exeext'
   8160   { (eval echo "$as_me:8160: \"$ac_try\"") >&5
   8161   (eval $ac_try) 2>&5
   8162   ac_status=$?
   8163   echo "$as_me:8163: \$? = $ac_status" >&5
   8164   (exit $ac_status); }; }; then
   8165   LIBS=$ac_save_LIBS
   8166 # We can link X programs with no special library path.
   8167 ac_x_libraries=
   8168 else
   8169   echo "$as_me: failed program was:" >&5
   8170 cat conftest.$ac_ext >&5
   8171 LIBS=$ac_save_LIBS
   8172 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
   8173 do
   8174   # Don't even attempt the hair of trying to link an X program!
   8175   for ac_extension in a so sl dylib dll; do
   8176     if test -r $ac_dir/libXt.$ac_extension; then
   8177       ac_x_libraries=$ac_dir
   8178       break 2
   8179     fi
   8180   done
   8181 done
   8182 fi
   8183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8184 fi # $ac_x_libraries = no
   8185 
   8186 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
   8187   # Didn't find X anywhere.  Cache the known absence of X.
   8188   ac_cv_have_x="have_x=no"
   8189 else
   8190   # Record where we found X for the cache.
   8191   ac_cv_have_x="have_x=yes \
   8192 	        ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
   8193 fi
   8194 fi
   8195 
   8196   fi
   8197   eval "$ac_cv_have_x"
   8198 fi # $with_x != no
   8199 
   8200 if test "$have_x" != yes; then
   8201   echo "$as_me:8201: result: $have_x" >&5
   8202 echo "${ECHO_T}$have_x" >&6
   8203   no_x=yes
   8204 else
   8205   # If each of the values was on the command line, it overrides each guess.
   8206   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
   8207   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
   8208   # Update the cache value to reflect the command line values.
   8209   ac_cv_have_x="have_x=yes \
   8210 		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
   8211   echo "$as_me:8211: result: libraries $x_libraries, headers $x_includes" >&5
   8212 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
   8213 fi
   8214 
   8215 if test "$no_x" = yes; then
   8216   # Not all programs may use this symbol, but it does not hurt to define it.
   8217 
   8218 cat >>confdefs.h <<\EOF
   8219 #define X_DISPLAY_MISSING 1
   8220 EOF
   8221 
   8222   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
   8223 else
   8224   if test -n "$x_includes"; then
   8225     X_CFLAGS="$X_CFLAGS -I$x_includes"
   8226   fi
   8227 
   8228   # It would also be nice to do this for all -L options, not just this one.
   8229   if test -n "$x_libraries"; then
   8230     X_LIBS="$X_LIBS -L$x_libraries"
   8231     # For Solaris; some versions of Sun CC require a space after -R and
   8232     # others require no space.  Words are not sufficient . . . .
   8233     case `(uname -sr) 2>/dev/null` in
   8234     "SunOS 5"*)
   8235       echo "$as_me:8235: checking whether -R must be followed by a space" >&5
   8236 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
   8237       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
   8238       cat >conftest.$ac_ext <<_ACEOF
   8239 #line 8239 "configure"
   8240 #include "confdefs.h"
   8241 
   8242 int
   8243 main (void)
   8244 {
   8245 
   8246   ;
   8247   return 0;
   8248 }
   8249 _ACEOF
   8250 rm -f conftest.$ac_objext conftest$ac_exeext
   8251 if { (eval echo "$as_me:8251: \"$ac_link\"") >&5
   8252   (eval $ac_link) 2>&5
   8253   ac_status=$?
   8254   echo "$as_me:8254: \$? = $ac_status" >&5
   8255   (exit $ac_status); } &&
   8256          { ac_try='test -s conftest$ac_exeext'
   8257   { (eval echo "$as_me:8257: \"$ac_try\"") >&5
   8258   (eval $ac_try) 2>&5
   8259   ac_status=$?
   8260   echo "$as_me:8260: \$? = $ac_status" >&5
   8261   (exit $ac_status); }; }; then
   8262   ac_R_nospace=yes
   8263 else
   8264   echo "$as_me: failed program was:" >&5
   8265 cat conftest.$ac_ext >&5
   8266 ac_R_nospace=no
   8267 fi
   8268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8269       if test $ac_R_nospace = yes; then
   8270 	echo "$as_me:8270: result: no" >&5
   8271 echo "${ECHO_T}no" >&6
   8272 	X_LIBS="$X_LIBS -R$x_libraries"
   8273       else
   8274 	LIBS="$ac_xsave_LIBS -R $x_libraries"
   8275 	cat >conftest.$ac_ext <<_ACEOF
   8276 #line 8276 "configure"
   8277 #include "confdefs.h"
   8278 
   8279 int
   8280 main (void)
   8281 {
   8282 
   8283   ;
   8284   return 0;
   8285 }
   8286 _ACEOF
   8287 rm -f conftest.$ac_objext conftest$ac_exeext
   8288 if { (eval echo "$as_me:8288: \"$ac_link\"") >&5
   8289   (eval $ac_link) 2>&5
   8290   ac_status=$?
   8291   echo "$as_me:8291: \$? = $ac_status" >&5
   8292   (exit $ac_status); } &&
   8293          { ac_try='test -s conftest$ac_exeext'
   8294   { (eval echo "$as_me:8294: \"$ac_try\"") >&5
   8295   (eval $ac_try) 2>&5
   8296   ac_status=$?
   8297   echo "$as_me:8297: \$? = $ac_status" >&5
   8298   (exit $ac_status); }; }; then
   8299   ac_R_space=yes
   8300 else
   8301   echo "$as_me: failed program was:" >&5
   8302 cat conftest.$ac_ext >&5
   8303 ac_R_space=no
   8304 fi
   8305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8306 	if test $ac_R_space = yes; then
   8307 	  echo "$as_me:8307: result: yes" >&5
   8308 echo "${ECHO_T}yes" >&6
   8309 	  X_LIBS="$X_LIBS -R $x_libraries"
   8310 	else
   8311 	  echo "$as_me:8311: result: neither works" >&5
   8312 echo "${ECHO_T}neither works" >&6
   8313 	fi
   8314       fi
   8315       LIBS=$ac_xsave_LIBS
   8316     esac
   8317   fi
   8318 
   8319   # Check for system-dependent libraries X programs must link with.
   8320   # Do this before checking for the system-independent R6 libraries
   8321   # (-lICE), since we may need -lsocket or whatever for X linking.
   8322 
   8323   if test "$ISC" = yes; then
   8324     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
   8325   else
   8326     # Martyn Johnson says this is needed for Ultrix, if the X
   8327     # libraries were built with DECnet support.  And Karl Berry says
   8328     # the Alpha needs dnet_stub (dnet does not exist).
   8329     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
   8330     cat >conftest.$ac_ext <<_ACEOF
   8331 #line 8331 "configure"
   8332 #include "confdefs.h"
   8333 
   8334 /* Override any gcc2 internal prototype to avoid an error.  */
   8335 #ifdef __cplusplus
   8336 extern "C"
   8337 #endif
   8338 /* We use char because int might match the return type of a gcc2
   8339    builtin and then its argument prototype would still apply.  */
   8340 char XOpenDisplay ();
   8341 int
   8342 main (void)
   8343 {
   8344 XOpenDisplay ();
   8345   ;
   8346   return 0;
   8347 }
   8348 _ACEOF
   8349 rm -f conftest.$ac_objext conftest$ac_exeext
   8350 if { (eval echo "$as_me:8350: \"$ac_link\"") >&5
   8351   (eval $ac_link) 2>&5
   8352   ac_status=$?
   8353   echo "$as_me:8353: \$? = $ac_status" >&5
   8354   (exit $ac_status); } &&
   8355          { ac_try='test -s conftest$ac_exeext'
   8356   { (eval echo "$as_me:8356: \"$ac_try\"") >&5
   8357   (eval $ac_try) 2>&5
   8358   ac_status=$?
   8359   echo "$as_me:8359: \$? = $ac_status" >&5
   8360   (exit $ac_status); }; }; then
   8361   :
   8362 else
   8363   echo "$as_me: failed program was:" >&5
   8364 cat conftest.$ac_ext >&5
   8365 echo "$as_me:8365: checking for dnet_ntoa in -ldnet" >&5
   8366 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
   8367 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
   8368   echo $ECHO_N "(cached) $ECHO_C" >&6
   8369 else
   8370   ac_check_lib_save_LIBS=$LIBS
   8371 LIBS="-ldnet  $LIBS"
   8372 cat >conftest.$ac_ext <<_ACEOF
   8373 #line 8373 "configure"
   8374 #include "confdefs.h"
   8375 
   8376 /* Override any gcc2 internal prototype to avoid an error.  */
   8377 #ifdef __cplusplus
   8378 extern "C"
   8379 #endif
   8380 /* We use char because int might match the return type of a gcc2
   8381    builtin and then its argument prototype would still apply.  */
   8382 char dnet_ntoa ();
   8383 int
   8384 main (void)
   8385 {
   8386 dnet_ntoa ();
   8387   ;
   8388   return 0;
   8389 }
   8390 _ACEOF
   8391 rm -f conftest.$ac_objext conftest$ac_exeext
   8392 if { (eval echo "$as_me:8392: \"$ac_link\"") >&5
   8393   (eval $ac_link) 2>&5
   8394   ac_status=$?
   8395   echo "$as_me:8395: \$? = $ac_status" >&5
   8396   (exit $ac_status); } &&
   8397          { ac_try='test -s conftest$ac_exeext'
   8398   { (eval echo "$as_me:8398: \"$ac_try\"") >&5
   8399   (eval $ac_try) 2>&5
   8400   ac_status=$?
   8401   echo "$as_me:8401: \$? = $ac_status" >&5
   8402   (exit $ac_status); }; }; then
   8403   ac_cv_lib_dnet_dnet_ntoa=yes
   8404 else
   8405   echo "$as_me: failed program was:" >&5
   8406 cat conftest.$ac_ext >&5
   8407 ac_cv_lib_dnet_dnet_ntoa=no
   8408 fi
   8409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8410 LIBS=$ac_check_lib_save_LIBS
   8411 fi
   8412 echo "$as_me:8412: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
   8413 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
   8414 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
   8415   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
   8416 fi
   8417 
   8418     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
   8419       echo "$as_me:8419: checking for dnet_ntoa in -ldnet_stub" >&5
   8420 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
   8421 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
   8422   echo $ECHO_N "(cached) $ECHO_C" >&6
   8423 else
   8424   ac_check_lib_save_LIBS=$LIBS
   8425 LIBS="-ldnet_stub  $LIBS"
   8426 cat >conftest.$ac_ext <<_ACEOF
   8427 #line 8427 "configure"
   8428 #include "confdefs.h"
   8429 
   8430 /* Override any gcc2 internal prototype to avoid an error.  */
   8431 #ifdef __cplusplus
   8432 extern "C"
   8433 #endif
   8434 /* We use char because int might match the return type of a gcc2
   8435    builtin and then its argument prototype would still apply.  */
   8436 char dnet_ntoa ();
   8437 int
   8438 main (void)
   8439 {
   8440 dnet_ntoa ();
   8441   ;
   8442   return 0;
   8443 }
   8444 _ACEOF
   8445 rm -f conftest.$ac_objext conftest$ac_exeext
   8446 if { (eval echo "$as_me:8446: \"$ac_link\"") >&5
   8447   (eval $ac_link) 2>&5
   8448   ac_status=$?
   8449   echo "$as_me:8449: \$? = $ac_status" >&5
   8450   (exit $ac_status); } &&
   8451          { ac_try='test -s conftest$ac_exeext'
   8452   { (eval echo "$as_me:8452: \"$ac_try\"") >&5
   8453   (eval $ac_try) 2>&5
   8454   ac_status=$?
   8455   echo "$as_me:8455: \$? = $ac_status" >&5
   8456   (exit $ac_status); }; }; then
   8457   ac_cv_lib_dnet_stub_dnet_ntoa=yes
   8458 else
   8459   echo "$as_me: failed program was:" >&5
   8460 cat conftest.$ac_ext >&5
   8461 ac_cv_lib_dnet_stub_dnet_ntoa=no
   8462 fi
   8463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8464 LIBS=$ac_check_lib_save_LIBS
   8465 fi
   8466 echo "$as_me:8466: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
   8467 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
   8468 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
   8469   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
   8470 fi
   8471 
   8472     fi
   8473 fi
   8474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8475     LIBS="$ac_xsave_LIBS"
   8476 
   8477     # msh (at] cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
   8478     # to get the SysV transport functions.
   8479     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
   8480     # needs -lnsl.
   8481     # The nsl library prevents programs from opening the X display
   8482     # on Irix 5.2, according to T.E. Dickey.
   8483     # The functions gethostbyname, getservbyname, and inet_addr are
   8484     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
   8485     echo "$as_me:8485: checking for gethostbyname" >&5
   8486 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
   8487 if test "${ac_cv_func_gethostbyname+set}" = set; then
   8488   echo $ECHO_N "(cached) $ECHO_C" >&6
   8489 else
   8490   cat >conftest.$ac_ext <<_ACEOF
   8491 #line 8491 "configure"
   8492 #include "confdefs.h"
   8493 /* System header to define __stub macros and hopefully few prototypes,
   8494     which can conflict with char gethostbyname (); below.  */
   8495 #include <assert.h>
   8496 /* Override any gcc2 internal prototype to avoid an error.  */
   8497 #ifdef __cplusplus
   8498 extern "C"
   8499 #endif
   8500 /* We use char because int might match the return type of a gcc2
   8501    builtin and then its argument prototype would still apply.  */
   8502 char gethostbyname ();
   8503 char (*f) ();
   8504 
   8505 int
   8506 main (void)
   8507 {
   8508 /* The GNU C library defines this for functions which it implements
   8509     to always fail with ENOSYS.  Some functions are actually named
   8510     something starting with __ and the normal name is an alias.  */
   8511 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
   8512 choke me
   8513 #else
   8514 f = gethostbyname; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
   8515 #endif
   8516 
   8517   ;
   8518   return 0;
   8519 }
   8520 _ACEOF
   8521 rm -f conftest.$ac_objext conftest$ac_exeext
   8522 if { (eval echo "$as_me:8522: \"$ac_link\"") >&5
   8523   (eval $ac_link) 2>&5
   8524   ac_status=$?
   8525   echo "$as_me:8525: \$? = $ac_status" >&5
   8526   (exit $ac_status); } &&
   8527          { ac_try='test -s conftest$ac_exeext'
   8528   { (eval echo "$as_me:8528: \"$ac_try\"") >&5
   8529   (eval $ac_try) 2>&5
   8530   ac_status=$?
   8531   echo "$as_me:8531: \$? = $ac_status" >&5
   8532   (exit $ac_status); }; }; then
   8533   ac_cv_func_gethostbyname=yes
   8534 else
   8535   echo "$as_me: failed program was:" >&5
   8536 cat conftest.$ac_ext >&5
   8537 ac_cv_func_gethostbyname=no
   8538 fi
   8539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8540 fi
   8541 echo "$as_me:8541: result: $ac_cv_func_gethostbyname" >&5
   8542 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
   8543 
   8544     if test $ac_cv_func_gethostbyname = no; then
   8545       echo "$as_me:8545: checking for gethostbyname in -lnsl" >&5
   8546 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
   8547 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
   8548   echo $ECHO_N "(cached) $ECHO_C" >&6
   8549 else
   8550   ac_check_lib_save_LIBS=$LIBS
   8551 LIBS="-lnsl  $LIBS"
   8552 cat >conftest.$ac_ext <<_ACEOF
   8553 #line 8553 "configure"
   8554 #include "confdefs.h"
   8555 
   8556 /* Override any gcc2 internal prototype to avoid an error.  */
   8557 #ifdef __cplusplus
   8558 extern "C"
   8559 #endif
   8560 /* We use char because int might match the return type of a gcc2
   8561    builtin and then its argument prototype would still apply.  */
   8562 char gethostbyname ();
   8563 int
   8564 main (void)
   8565 {
   8566 gethostbyname ();
   8567   ;
   8568   return 0;
   8569 }
   8570 _ACEOF
   8571 rm -f conftest.$ac_objext conftest$ac_exeext
   8572 if { (eval echo "$as_me:8572: \"$ac_link\"") >&5
   8573   (eval $ac_link) 2>&5
   8574   ac_status=$?
   8575   echo "$as_me:8575: \$? = $ac_status" >&5
   8576   (exit $ac_status); } &&
   8577          { ac_try='test -s conftest$ac_exeext'
   8578   { (eval echo "$as_me:8578: \"$ac_try\"") >&5
   8579   (eval $ac_try) 2>&5
   8580   ac_status=$?
   8581   echo "$as_me:8581: \$? = $ac_status" >&5
   8582   (exit $ac_status); }; }; then
   8583   ac_cv_lib_nsl_gethostbyname=yes
   8584 else
   8585   echo "$as_me: failed program was:" >&5
   8586 cat conftest.$ac_ext >&5
   8587 ac_cv_lib_nsl_gethostbyname=no
   8588 fi
   8589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8590 LIBS=$ac_check_lib_save_LIBS
   8591 fi
   8592 echo "$as_me:8592: result: $ac_cv_lib_nsl_gethostbyname" >&5
   8593 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
   8594 if test $ac_cv_lib_nsl_gethostbyname = yes; then
   8595   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
   8596 fi
   8597 
   8598       if test $ac_cv_lib_nsl_gethostbyname = no; then
   8599         echo "$as_me:8599: checking for gethostbyname in -lbsd" >&5
   8600 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
   8601 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
   8602   echo $ECHO_N "(cached) $ECHO_C" >&6
   8603 else
   8604   ac_check_lib_save_LIBS=$LIBS
   8605 LIBS="-lbsd  $LIBS"
   8606 cat >conftest.$ac_ext <<_ACEOF
   8607 #line 8607 "configure"
   8608 #include "confdefs.h"
   8609 
   8610 /* Override any gcc2 internal prototype to avoid an error.  */
   8611 #ifdef __cplusplus
   8612 extern "C"
   8613 #endif
   8614 /* We use char because int might match the return type of a gcc2
   8615    builtin and then its argument prototype would still apply.  */
   8616 char gethostbyname ();
   8617 int
   8618 main (void)
   8619 {
   8620 gethostbyname ();
   8621   ;
   8622   return 0;
   8623 }
   8624 _ACEOF
   8625 rm -f conftest.$ac_objext conftest$ac_exeext
   8626 if { (eval echo "$as_me:8626: \"$ac_link\"") >&5
   8627   (eval $ac_link) 2>&5
   8628   ac_status=$?
   8629   echo "$as_me:8629: \$? = $ac_status" >&5
   8630   (exit $ac_status); } &&
   8631          { ac_try='test -s conftest$ac_exeext'
   8632   { (eval echo "$as_me:8632: \"$ac_try\"") >&5
   8633   (eval $ac_try) 2>&5
   8634   ac_status=$?
   8635   echo "$as_me:8635: \$? = $ac_status" >&5
   8636   (exit $ac_status); }; }; then
   8637   ac_cv_lib_bsd_gethostbyname=yes
   8638 else
   8639   echo "$as_me: failed program was:" >&5
   8640 cat conftest.$ac_ext >&5
   8641 ac_cv_lib_bsd_gethostbyname=no
   8642 fi
   8643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8644 LIBS=$ac_check_lib_save_LIBS
   8645 fi
   8646 echo "$as_me:8646: result: $ac_cv_lib_bsd_gethostbyname" >&5
   8647 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
   8648 if test $ac_cv_lib_bsd_gethostbyname = yes; then
   8649   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
   8650 fi
   8651 
   8652       fi
   8653     fi
   8654 
   8655     # lieder (at] skyler.mavd.honeywell.com says without -lsocket,
   8656     # socket/setsockopt and other routines are undefined under SCO ODT
   8657     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
   8658     # on later versions), says Simon Leinen: it contains gethostby*
   8659     # variants that don't use the nameserver (or something).  -lsocket
   8660     # must be given before -lnsl if both are needed.  We assume that
   8661     # if connect needs -lnsl, so does gethostbyname.
   8662     echo "$as_me:8662: checking for connect" >&5
   8663 echo $ECHO_N "checking for connect... $ECHO_C" >&6
   8664 if test "${ac_cv_func_connect+set}" = set; then
   8665   echo $ECHO_N "(cached) $ECHO_C" >&6
   8666 else
   8667   cat >conftest.$ac_ext <<_ACEOF
   8668 #line 8668 "configure"
   8669 #include "confdefs.h"
   8670 /* System header to define __stub macros and hopefully few prototypes,
   8671     which can conflict with char connect (); below.  */
   8672 #include <assert.h>
   8673 /* Override any gcc2 internal prototype to avoid an error.  */
   8674 #ifdef __cplusplus
   8675 extern "C"
   8676 #endif
   8677 /* We use char because int might match the return type of a gcc2
   8678    builtin and then its argument prototype would still apply.  */
   8679 char connect ();
   8680 char (*f) ();
   8681 
   8682 int
   8683 main (void)
   8684 {
   8685 /* The GNU C library defines this for functions which it implements
   8686     to always fail with ENOSYS.  Some functions are actually named
   8687     something starting with __ and the normal name is an alias.  */
   8688 #if defined (__stub_connect) || defined (__stub___connect)
   8689 choke me
   8690 #else
   8691 f = connect; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
   8692 #endif
   8693 
   8694   ;
   8695   return 0;
   8696 }
   8697 _ACEOF
   8698 rm -f conftest.$ac_objext conftest$ac_exeext
   8699 if { (eval echo "$as_me:8699: \"$ac_link\"") >&5
   8700   (eval $ac_link) 2>&5
   8701   ac_status=$?
   8702   echo "$as_me:8702: \$? = $ac_status" >&5
   8703   (exit $ac_status); } &&
   8704          { ac_try='test -s conftest$ac_exeext'
   8705   { (eval echo "$as_me:8705: \"$ac_try\"") >&5
   8706   (eval $ac_try) 2>&5
   8707   ac_status=$?
   8708   echo "$as_me:8708: \$? = $ac_status" >&5
   8709   (exit $ac_status); }; }; then
   8710   ac_cv_func_connect=yes
   8711 else
   8712   echo "$as_me: failed program was:" >&5
   8713 cat conftest.$ac_ext >&5
   8714 ac_cv_func_connect=no
   8715 fi
   8716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8717 fi
   8718 echo "$as_me:8718: result: $ac_cv_func_connect" >&5
   8719 echo "${ECHO_T}$ac_cv_func_connect" >&6
   8720 
   8721     if test $ac_cv_func_connect = no; then
   8722       echo "$as_me:8722: checking for connect in -lsocket" >&5
   8723 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
   8724 if test "${ac_cv_lib_socket_connect+set}" = set; then
   8725   echo $ECHO_N "(cached) $ECHO_C" >&6
   8726 else
   8727   ac_check_lib_save_LIBS=$LIBS
   8728 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
   8729 cat >conftest.$ac_ext <<_ACEOF
   8730 #line 8730 "configure"
   8731 #include "confdefs.h"
   8732 
   8733 /* Override any gcc2 internal prototype to avoid an error.  */
   8734 #ifdef __cplusplus
   8735 extern "C"
   8736 #endif
   8737 /* We use char because int might match the return type of a gcc2
   8738    builtin and then its argument prototype would still apply.  */
   8739 char connect ();
   8740 int
   8741 main (void)
   8742 {
   8743 connect ();
   8744   ;
   8745   return 0;
   8746 }
   8747 _ACEOF
   8748 rm -f conftest.$ac_objext conftest$ac_exeext
   8749 if { (eval echo "$as_me:8749: \"$ac_link\"") >&5
   8750   (eval $ac_link) 2>&5
   8751   ac_status=$?
   8752   echo "$as_me:8752: \$? = $ac_status" >&5
   8753   (exit $ac_status); } &&
   8754          { ac_try='test -s conftest$ac_exeext'
   8755   { (eval echo "$as_me:8755: \"$ac_try\"") >&5
   8756   (eval $ac_try) 2>&5
   8757   ac_status=$?
   8758   echo "$as_me:8758: \$? = $ac_status" >&5
   8759   (exit $ac_status); }; }; then
   8760   ac_cv_lib_socket_connect=yes
   8761 else
   8762   echo "$as_me: failed program was:" >&5
   8763 cat conftest.$ac_ext >&5
   8764 ac_cv_lib_socket_connect=no
   8765 fi
   8766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8767 LIBS=$ac_check_lib_save_LIBS
   8768 fi
   8769 echo "$as_me:8769: result: $ac_cv_lib_socket_connect" >&5
   8770 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
   8771 if test $ac_cv_lib_socket_connect = yes; then
   8772   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
   8773 fi
   8774 
   8775     fi
   8776 
   8777     # Guillermo Gomez says -lposix is necessary on A/UX.
   8778     echo "$as_me:8778: checking for remove" >&5
   8779 echo $ECHO_N "checking for remove... $ECHO_C" >&6
   8780 if test "${ac_cv_func_remove+set}" = set; then
   8781   echo $ECHO_N "(cached) $ECHO_C" >&6
   8782 else
   8783   cat >conftest.$ac_ext <<_ACEOF
   8784 #line 8784 "configure"
   8785 #include "confdefs.h"
   8786 /* System header to define __stub macros and hopefully few prototypes,
   8787     which can conflict with char remove (); below.  */
   8788 #include <assert.h>
   8789 /* Override any gcc2 internal prototype to avoid an error.  */
   8790 #ifdef __cplusplus
   8791 extern "C"
   8792 #endif
   8793 /* We use char because int might match the return type of a gcc2
   8794    builtin and then its argument prototype would still apply.  */
   8795 char remove ();
   8796 char (*f) ();
   8797 
   8798 int
   8799 main (void)
   8800 {
   8801 /* The GNU C library defines this for functions which it implements
   8802     to always fail with ENOSYS.  Some functions are actually named
   8803     something starting with __ and the normal name is an alias.  */
   8804 #if defined (__stub_remove) || defined (__stub___remove)
   8805 choke me
   8806 #else
   8807 f = remove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
   8808 #endif
   8809 
   8810   ;
   8811   return 0;
   8812 }
   8813 _ACEOF
   8814 rm -f conftest.$ac_objext conftest$ac_exeext
   8815 if { (eval echo "$as_me:8815: \"$ac_link\"") >&5
   8816   (eval $ac_link) 2>&5
   8817   ac_status=$?
   8818   echo "$as_me:8818: \$? = $ac_status" >&5
   8819   (exit $ac_status); } &&
   8820          { ac_try='test -s conftest$ac_exeext'
   8821   { (eval echo "$as_me:8821: \"$ac_try\"") >&5
   8822   (eval $ac_try) 2>&5
   8823   ac_status=$?
   8824   echo "$as_me:8824: \$? = $ac_status" >&5
   8825   (exit $ac_status); }; }; then
   8826   ac_cv_func_remove=yes
   8827 else
   8828   echo "$as_me: failed program was:" >&5
   8829 cat conftest.$ac_ext >&5
   8830 ac_cv_func_remove=no
   8831 fi
   8832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8833 fi
   8834 echo "$as_me:8834: result: $ac_cv_func_remove" >&5
   8835 echo "${ECHO_T}$ac_cv_func_remove" >&6
   8836 
   8837     if test $ac_cv_func_remove = no; then
   8838       echo "$as_me:8838: checking for remove in -lposix" >&5
   8839 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
   8840 if test "${ac_cv_lib_posix_remove+set}" = set; then
   8841   echo $ECHO_N "(cached) $ECHO_C" >&6
   8842 else
   8843   ac_check_lib_save_LIBS=$LIBS
   8844 LIBS="-lposix  $LIBS"
   8845 cat >conftest.$ac_ext <<_ACEOF
   8846 #line 8846 "configure"
   8847 #include "confdefs.h"
   8848 
   8849 /* Override any gcc2 internal prototype to avoid an error.  */
   8850 #ifdef __cplusplus
   8851 extern "C"
   8852 #endif
   8853 /* We use char because int might match the return type of a gcc2
   8854    builtin and then its argument prototype would still apply.  */
   8855 char remove ();
   8856 int
   8857 main (void)
   8858 {
   8859 remove ();
   8860   ;
   8861   return 0;
   8862 }
   8863 _ACEOF
   8864 rm -f conftest.$ac_objext conftest$ac_exeext
   8865 if { (eval echo "$as_me:8865: \"$ac_link\"") >&5
   8866   (eval $ac_link) 2>&5
   8867   ac_status=$?
   8868   echo "$as_me:8868: \$? = $ac_status" >&5
   8869   (exit $ac_status); } &&
   8870          { ac_try='test -s conftest$ac_exeext'
   8871   { (eval echo "$as_me:8871: \"$ac_try\"") >&5
   8872   (eval $ac_try) 2>&5
   8873   ac_status=$?
   8874   echo "$as_me:8874: \$? = $ac_status" >&5
   8875   (exit $ac_status); }; }; then
   8876   ac_cv_lib_posix_remove=yes
   8877 else
   8878   echo "$as_me: failed program was:" >&5
   8879 cat conftest.$ac_ext >&5
   8880 ac_cv_lib_posix_remove=no
   8881 fi
   8882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8883 LIBS=$ac_check_lib_save_LIBS
   8884 fi
   8885 echo "$as_me:8885: result: $ac_cv_lib_posix_remove" >&5
   8886 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
   8887 if test $ac_cv_lib_posix_remove = yes; then
   8888   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
   8889 fi
   8890 
   8891     fi
   8892 
   8893     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
   8894     echo "$as_me:8894: checking for shmat" >&5
   8895 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
   8896 if test "${ac_cv_func_shmat+set}" = set; then
   8897   echo $ECHO_N "(cached) $ECHO_C" >&6
   8898 else
   8899   cat >conftest.$ac_ext <<_ACEOF
   8900 #line 8900 "configure"
   8901 #include "confdefs.h"
   8902 /* System header to define __stub macros and hopefully few prototypes,
   8903     which can conflict with char shmat (); below.  */
   8904 #include <assert.h>
   8905 /* Override any gcc2 internal prototype to avoid an error.  */
   8906 #ifdef __cplusplus
   8907 extern "C"
   8908 #endif
   8909 /* We use char because int might match the return type of a gcc2
   8910    builtin and then its argument prototype would still apply.  */
   8911 char shmat ();
   8912 char (*f) ();
   8913 
   8914 int
   8915 main (void)
   8916 {
   8917 /* The GNU C library defines this for functions which it implements
   8918     to always fail with ENOSYS.  Some functions are actually named
   8919     something starting with __ and the normal name is an alias.  */
   8920 #if defined (__stub_shmat) || defined (__stub___shmat)
   8921 choke me
   8922 #else
   8923 f = shmat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
   8924 #endif
   8925 
   8926   ;
   8927   return 0;
   8928 }
   8929 _ACEOF
   8930 rm -f conftest.$ac_objext conftest$ac_exeext
   8931 if { (eval echo "$as_me:8931: \"$ac_link\"") >&5
   8932   (eval $ac_link) 2>&5
   8933   ac_status=$?
   8934   echo "$as_me:8934: \$? = $ac_status" >&5
   8935   (exit $ac_status); } &&
   8936          { ac_try='test -s conftest$ac_exeext'
   8937   { (eval echo "$as_me:8937: \"$ac_try\"") >&5
   8938   (eval $ac_try) 2>&5
   8939   ac_status=$?
   8940   echo "$as_me:8940: \$? = $ac_status" >&5
   8941   (exit $ac_status); }; }; then
   8942   ac_cv_func_shmat=yes
   8943 else
   8944   echo "$as_me: failed program was:" >&5
   8945 cat conftest.$ac_ext >&5
   8946 ac_cv_func_shmat=no
   8947 fi
   8948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8949 fi
   8950 echo "$as_me:8950: result: $ac_cv_func_shmat" >&5
   8951 echo "${ECHO_T}$ac_cv_func_shmat" >&6
   8952 
   8953     if test $ac_cv_func_shmat = no; then
   8954       echo "$as_me:8954: checking for shmat in -lipc" >&5
   8955 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
   8956 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
   8957   echo $ECHO_N "(cached) $ECHO_C" >&6
   8958 else
   8959   ac_check_lib_save_LIBS=$LIBS
   8960 LIBS="-lipc  $LIBS"
   8961 cat >conftest.$ac_ext <<_ACEOF
   8962 #line 8962 "configure"
   8963 #include "confdefs.h"
   8964 
   8965 /* Override any gcc2 internal prototype to avoid an error.  */
   8966 #ifdef __cplusplus
   8967 extern "C"
   8968 #endif
   8969 /* We use char because int might match the return type of a gcc2
   8970    builtin and then its argument prototype would still apply.  */
   8971 char shmat ();
   8972 int
   8973 main (void)
   8974 {
   8975 shmat ();
   8976   ;
   8977   return 0;
   8978 }
   8979 _ACEOF
   8980 rm -f conftest.$ac_objext conftest$ac_exeext
   8981 if { (eval echo "$as_me:8981: \"$ac_link\"") >&5
   8982   (eval $ac_link) 2>&5
   8983   ac_status=$?
   8984   echo "$as_me:8984: \$? = $ac_status" >&5
   8985   (exit $ac_status); } &&
   8986          { ac_try='test -s conftest$ac_exeext'
   8987   { (eval echo "$as_me:8987: \"$ac_try\"") >&5
   8988   (eval $ac_try) 2>&5
   8989   ac_status=$?
   8990   echo "$as_me:8990: \$? = $ac_status" >&5
   8991   (exit $ac_status); }; }; then
   8992   ac_cv_lib_ipc_shmat=yes
   8993 else
   8994   echo "$as_me: failed program was:" >&5
   8995 cat conftest.$ac_ext >&5
   8996 ac_cv_lib_ipc_shmat=no
   8997 fi
   8998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8999 LIBS=$ac_check_lib_save_LIBS
   9000 fi
   9001 echo "$as_me:9001: result: $ac_cv_lib_ipc_shmat" >&5
   9002 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
   9003 if test $ac_cv_lib_ipc_shmat = yes; then
   9004   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
   9005 fi
   9006 
   9007     fi
   9008   fi
   9009 
   9010   # Check for libraries that X11R6 Xt/Xaw programs need.
   9011   ac_save_LDFLAGS=$LDFLAGS
   9012   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
   9013   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
   9014   # check for ICE first), but we must link in the order -lSM -lICE or
   9015   # we get undefined symbols.  So assume we have SM if we have ICE.
   9016   # These have to be linked with before -lX11, unlike the other
   9017   # libraries we check for below, so use a different variable.
   9018   # John Interrante, Karl Berry
   9019   echo "$as_me:9019: checking for IceConnectionNumber in -lICE" >&5
   9020 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
   9021 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
   9022   echo $ECHO_N "(cached) $ECHO_C" >&6
   9023 else
   9024   ac_check_lib_save_LIBS=$LIBS
   9025 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
   9026 cat >conftest.$ac_ext <<_ACEOF
   9027 #line 9027 "configure"
   9028 #include "confdefs.h"
   9029 
   9030 /* Override any gcc2 internal prototype to avoid an error.  */
   9031 #ifdef __cplusplus
   9032 extern "C"
   9033 #endif
   9034 /* We use char because int might match the return type of a gcc2
   9035    builtin and then its argument prototype would still apply.  */
   9036 char IceConnectionNumber ();
   9037 int
   9038 main (void)
   9039 {
   9040 IceConnectionNumber ();
   9041   ;
   9042   return 0;
   9043 }
   9044 _ACEOF
   9045 rm -f conftest.$ac_objext conftest$ac_exeext
   9046 if { (eval echo "$as_me:9046: \"$ac_link\"") >&5
   9047   (eval $ac_link) 2>&5
   9048   ac_status=$?
   9049   echo "$as_me:9049: \$? = $ac_status" >&5
   9050   (exit $ac_status); } &&
   9051          { ac_try='test -s conftest$ac_exeext'
   9052   { (eval echo "$as_me:9052: \"$ac_try\"") >&5
   9053   (eval $ac_try) 2>&5
   9054   ac_status=$?
   9055   echo "$as_me:9055: \$? = $ac_status" >&5
   9056   (exit $ac_status); }; }; then
   9057   ac_cv_lib_ICE_IceConnectionNumber=yes
   9058 else
   9059   echo "$as_me: failed program was:" >&5
   9060 cat conftest.$ac_ext >&5
   9061 ac_cv_lib_ICE_IceConnectionNumber=no
   9062 fi
   9063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   9064 LIBS=$ac_check_lib_save_LIBS
   9065 fi
   9066 echo "$as_me:9066: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
   9067 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
   9068 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
   9069   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
   9070 fi
   9071 
   9072   LDFLAGS=$ac_save_LDFLAGS
   9073 
   9074 fi
   9075 
   9076 echo "$as_me:9076: checking if you want to use pkg-config" >&5
   9077 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
   9078 
   9079 # Check whether --with-pkg-config or --without-pkg-config was given.
   9080 if test "${with_pkg_config+set}" = set; then
   9081   withval="$with_pkg_config"
   9082   cf_pkg_config=$withval
   9083 else
   9084   cf_pkg_config=yes
   9085 fi;
   9086 echo "$as_me:9086: result: $cf_pkg_config" >&5
   9087 echo "${ECHO_T}$cf_pkg_config" >&6
   9088 
   9089 case $cf_pkg_config in
   9090 (no)
   9091 	PKG_CONFIG=none
   9092 	;;
   9093 (yes)
   9094 
   9095 if test -n "$ac_tool_prefix"; then
   9096   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   9097 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   9098 echo "$as_me:9098: checking for $ac_word" >&5
   9099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   9100 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
   9101   echo $ECHO_N "(cached) $ECHO_C" >&6
   9102 else
   9103   case $PKG_CONFIG in
   9104   [\\/]* | ?:[\\/]*)
   9105   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   9106   ;;
   9107   *)
   9108   ac_save_IFS=$IFS; IFS=$ac_path_separator
   9109 ac_dummy="$PATH"
   9110 for ac_dir in $ac_dummy; do
   9111   IFS=$ac_save_IFS
   9112   test -z "$ac_dir" && ac_dir=.
   9113   if $as_executable_p "$ac_dir/$ac_word"; then
   9114    ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
   9115    echo "$as_me:9115: found $ac_dir/$ac_word" >&5
   9116    break
   9117 fi
   9118 done
   9119 
   9120   ;;
   9121 esac
   9122 fi
   9123 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   9124 
   9125 if test -n "$PKG_CONFIG"; then
   9126   echo "$as_me:9126: result: $PKG_CONFIG" >&5
   9127 echo "${ECHO_T}$PKG_CONFIG" >&6
   9128 else
   9129   echo "$as_me:9129: result: no" >&5
   9130 echo "${ECHO_T}no" >&6
   9131 fi
   9132 
   9133 fi
   9134 if test -z "$ac_cv_path_PKG_CONFIG"; then
   9135   ac_pt_PKG_CONFIG=$PKG_CONFIG
   9136   # Extract the first word of "pkg-config", so it can be a program name with args.
   9137 set dummy pkg-config; ac_word=$2
   9138 echo "$as_me:9138: checking for $ac_word" >&5
   9139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   9140 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
   9141   echo $ECHO_N "(cached) $ECHO_C" >&6
   9142 else
   9143   case $ac_pt_PKG_CONFIG in
   9144   [\\/]* | ?:[\\/]*)
   9145   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   9146   ;;
   9147   *)
   9148   ac_save_IFS=$IFS; IFS=$ac_path_separator
   9149 ac_dummy="$PATH"
   9150 for ac_dir in $ac_dummy; do
   9151   IFS=$ac_save_IFS
   9152   test -z "$ac_dir" && ac_dir=.
   9153   if $as_executable_p "$ac_dir/$ac_word"; then
   9154    ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
   9155    echo "$as_me:9155: found $ac_dir/$ac_word" >&5
   9156    break
   9157 fi
   9158 done
   9159 
   9160   test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
   9161   ;;
   9162 esac
   9163 fi
   9164 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   9165 
   9166 if test -n "$ac_pt_PKG_CONFIG"; then
   9167   echo "$as_me:9167: result: $ac_pt_PKG_CONFIG" >&5
   9168 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
   9169 else
   9170   echo "$as_me:9170: result: no" >&5
   9171 echo "${ECHO_T}no" >&6
   9172 fi
   9173 
   9174   PKG_CONFIG=$ac_pt_PKG_CONFIG
   9175 else
   9176   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   9177 fi
   9178 
   9179 	;;
   9180 (*)
   9181 	PKG_CONFIG=$withval
   9182 	;;
   9183 esac
   9184 
   9185 test -z "$PKG_CONFIG" && PKG_CONFIG=none
   9186 if test "$PKG_CONFIG" != none ; then
   9187 
   9188 if test "x$prefix" != xNONE; then
   9189 	cf_path_syntax="$prefix"
   9190 else
   9191 	cf_path_syntax="$ac_default_prefix"
   9192 fi
   9193 
   9194 case ".$PKG_CONFIG" in
   9195 (.\$\(*\)*|.\'*\'*)
   9196 	;;
   9197 (..|./*|.\\*)
   9198 	;;
   9199 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
   9200 	;;
   9201 (.\${*prefix}*|.\${*dir}*)
   9202 	eval PKG_CONFIG="$PKG_CONFIG"
   9203 	case ".$PKG_CONFIG" in
   9204 	(.NONE/*)
   9205 		PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
   9206 		;;
   9207 	esac
   9208 	;;
   9209 (.no|.NONE/*)
   9210 	PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
   9211 	;;
   9212 (*)
   9213 	{ { echo "$as_me:9213: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
   9214 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
   9215    { (exit 1); exit 1; }; }
   9216 	;;
   9217 esac
   9218 
   9219 elif test "x$cf_pkg_config" != xno ; then
   9220 	{ echo "$as_me:9220: WARNING: pkg-config is not installed" >&5
   9221 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
   9222 fi
   9223 
   9224 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new), and (and
   9225 # in some cases has installed dummy files in the former, other cases replaced
   9226 # it with a link to the new location).  This complicates the configure script.
   9227 # Check for that pitfall, and recover using pkg-config
   9228 #
   9229 # If none of these are set, the configuration is almost certainly broken.
   9230 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
   9231 then
   9232 
   9233 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
   9234 	test -n "$verbose" && echo "	found package x11" 1>&6
   9235 
   9236 echo "${as_me:-configure}:9236: testing found package x11 ..." 1>&5
   9237 
   9238 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
   9239 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   x11 2>/dev/null`"
   9240 	test -n "$verbose" && echo "	package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
   9241 
   9242 echo "${as_me:-configure}:9242: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   9243 
   9244 	test -n "$verbose" && echo "	package x11 LIBS: $cf_pkgconfig_libs" 1>&6
   9245 
   9246 echo "${as_me:-configure}:9246: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
   9247 
   9248 cf_fix_cppflags=no
   9249 cf_new_cflags=
   9250 cf_new_cppflags=
   9251 cf_new_extra_cppflags=
   9252 
   9253 for cf_add_cflags in $cf_pkgconfig_incs
   9254 do
   9255 case $cf_fix_cppflags in
   9256 (no)
   9257 	case $cf_add_cflags in
   9258 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   9259 		case $cf_add_cflags in
   9260 		(-D*)
   9261 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   9262 
   9263 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   9264 				&& test -z "${cf_tst_cflags}" \
   9265 				&& cf_fix_cppflags=yes
   9266 
   9267 			if test $cf_fix_cppflags = yes ; then
   9268 
   9269 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   9270 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   9271 
   9272 				continue
   9273 			elif test "${cf_tst_cflags}" = "\"'" ; then
   9274 
   9275 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   9276 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   9277 
   9278 				continue
   9279 			fi
   9280 			;;
   9281 		esac
   9282 		case "$CPPFLAGS" in
   9283 		(*$cf_add_cflags)
   9284 			;;
   9285 		(*)
   9286 			case $cf_add_cflags in
   9287 			(-D*)
   9288 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   9289 
   9290 CPPFLAGS=`echo "$CPPFLAGS" | \
   9291 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   9292 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   9293 
   9294 				;;
   9295 			esac
   9296 
   9297 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   9298 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   9299 
   9300 			;;
   9301 		esac
   9302 		;;
   9303 	(*)
   9304 
   9305 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   9306 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   9307 
   9308 		;;
   9309 	esac
   9310 	;;
   9311 (yes)
   9312 
   9313 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   9314 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   9315 
   9316 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   9317 
   9318 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   9319 		&& test -z "${cf_tst_cflags}" \
   9320 		&& cf_fix_cppflags=no
   9321 	;;
   9322 esac
   9323 done
   9324 
   9325 if test -n "$cf_new_cflags" ; then
   9326 
   9327 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   9328 	CFLAGS="${CFLAGS}$cf_new_cflags"
   9329 
   9330 fi
   9331 
   9332 if test -n "$cf_new_cppflags" ; then
   9333 
   9334 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   9335 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   9336 
   9337 fi
   9338 
   9339 if test -n "$cf_new_extra_cppflags" ; then
   9340 
   9341 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   9342 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   9343 
   9344 fi
   9345 
   9346 cf_add_libs="$cf_pkgconfig_libs"
   9347 # Filter out duplicates - this happens with badly-designed ".pc" files...
   9348 for cf_add_1lib in $LIBS
   9349 do
   9350 	for cf_add_2lib in $cf_add_libs
   9351 	do
   9352 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   9353 		then
   9354 			cf_add_1lib=
   9355 			break
   9356 		fi
   9357 	done
   9358 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   9359 done
   9360 LIBS="$cf_add_libs"
   9361 
   9362 	:
   9363 else
   9364 	cf_pkgconfig_incs=
   9365 	cf_pkgconfig_libs=
   9366 	{ echo "$as_me:9366: WARNING: unable to find X11 library" >&5
   9367 echo "$as_me: WARNING: unable to find X11 library" >&2;}
   9368 fi
   9369 
   9370 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
   9371 	test -n "$verbose" && echo "	found package ice" 1>&6
   9372 
   9373 echo "${as_me:-configure}:9373: testing found package ice ..." 1>&5
   9374 
   9375 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
   9376 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   ice 2>/dev/null`"
   9377 	test -n "$verbose" && echo "	package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
   9378 
   9379 echo "${as_me:-configure}:9379: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   9380 
   9381 	test -n "$verbose" && echo "	package ice LIBS: $cf_pkgconfig_libs" 1>&6
   9382 
   9383 echo "${as_me:-configure}:9383: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
   9384 
   9385 cf_fix_cppflags=no
   9386 cf_new_cflags=
   9387 cf_new_cppflags=
   9388 cf_new_extra_cppflags=
   9389 
   9390 for cf_add_cflags in $cf_pkgconfig_incs
   9391 do
   9392 case $cf_fix_cppflags in
   9393 (no)
   9394 	case $cf_add_cflags in
   9395 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   9396 		case $cf_add_cflags in
   9397 		(-D*)
   9398 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   9399 
   9400 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   9401 				&& test -z "${cf_tst_cflags}" \
   9402 				&& cf_fix_cppflags=yes
   9403 
   9404 			if test $cf_fix_cppflags = yes ; then
   9405 
   9406 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   9407 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   9408 
   9409 				continue
   9410 			elif test "${cf_tst_cflags}" = "\"'" ; then
   9411 
   9412 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   9413 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   9414 
   9415 				continue
   9416 			fi
   9417 			;;
   9418 		esac
   9419 		case "$CPPFLAGS" in
   9420 		(*$cf_add_cflags)
   9421 			;;
   9422 		(*)
   9423 			case $cf_add_cflags in
   9424 			(-D*)
   9425 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   9426 
   9427 CPPFLAGS=`echo "$CPPFLAGS" | \
   9428 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   9429 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   9430 
   9431 				;;
   9432 			esac
   9433 
   9434 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   9435 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   9436 
   9437 			;;
   9438 		esac
   9439 		;;
   9440 	(*)
   9441 
   9442 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   9443 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   9444 
   9445 		;;
   9446 	esac
   9447 	;;
   9448 (yes)
   9449 
   9450 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   9451 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   9452 
   9453 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   9454 
   9455 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   9456 		&& test -z "${cf_tst_cflags}" \
   9457 		&& cf_fix_cppflags=no
   9458 	;;
   9459 esac
   9460 done
   9461 
   9462 if test -n "$cf_new_cflags" ; then
   9463 
   9464 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   9465 	CFLAGS="${CFLAGS}$cf_new_cflags"
   9466 
   9467 fi
   9468 
   9469 if test -n "$cf_new_cppflags" ; then
   9470 
   9471 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   9472 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   9473 
   9474 fi
   9475 
   9476 if test -n "$cf_new_extra_cppflags" ; then
   9477 
   9478 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   9479 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   9480 
   9481 fi
   9482 
   9483 cf_add_libs="$cf_pkgconfig_libs"
   9484 # Filter out duplicates - this happens with badly-designed ".pc" files...
   9485 for cf_add_1lib in $LIBS
   9486 do
   9487 	for cf_add_2lib in $cf_add_libs
   9488 	do
   9489 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   9490 		then
   9491 			cf_add_1lib=
   9492 			break
   9493 		fi
   9494 	done
   9495 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   9496 done
   9497 LIBS="$cf_add_libs"
   9498 
   9499 	:
   9500 else
   9501 	cf_pkgconfig_incs=
   9502 	cf_pkgconfig_libs=
   9503 	{ echo "$as_me:9503: WARNING: unable to find ICE library" >&5
   9504 echo "$as_me: WARNING: unable to find ICE library" >&2;}
   9505 fi
   9506 
   9507 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
   9508 	test -n "$verbose" && echo "	found package sm" 1>&6
   9509 
   9510 echo "${as_me:-configure}:9510: testing found package sm ..." 1>&5
   9511 
   9512 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
   9513 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   sm 2>/dev/null`"
   9514 	test -n "$verbose" && echo "	package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
   9515 
   9516 echo "${as_me:-configure}:9516: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   9517 
   9518 	test -n "$verbose" && echo "	package sm LIBS: $cf_pkgconfig_libs" 1>&6
   9519 
   9520 echo "${as_me:-configure}:9520: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
   9521 
   9522 cf_fix_cppflags=no
   9523 cf_new_cflags=
   9524 cf_new_cppflags=
   9525 cf_new_extra_cppflags=
   9526 
   9527 for cf_add_cflags in $cf_pkgconfig_incs
   9528 do
   9529 case $cf_fix_cppflags in
   9530 (no)
   9531 	case $cf_add_cflags in
   9532 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   9533 		case $cf_add_cflags in
   9534 		(-D*)
   9535 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   9536 
   9537 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   9538 				&& test -z "${cf_tst_cflags}" \
   9539 				&& cf_fix_cppflags=yes
   9540 
   9541 			if test $cf_fix_cppflags = yes ; then
   9542 
   9543 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   9544 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   9545 
   9546 				continue
   9547 			elif test "${cf_tst_cflags}" = "\"'" ; then
   9548 
   9549 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   9550 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   9551 
   9552 				continue
   9553 			fi
   9554 			;;
   9555 		esac
   9556 		case "$CPPFLAGS" in
   9557 		(*$cf_add_cflags)
   9558 			;;
   9559 		(*)
   9560 			case $cf_add_cflags in
   9561 			(-D*)
   9562 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   9563 
   9564 CPPFLAGS=`echo "$CPPFLAGS" | \
   9565 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   9566 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   9567 
   9568 				;;
   9569 			esac
   9570 
   9571 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   9572 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   9573 
   9574 			;;
   9575 		esac
   9576 		;;
   9577 	(*)
   9578 
   9579 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   9580 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   9581 
   9582 		;;
   9583 	esac
   9584 	;;
   9585 (yes)
   9586 
   9587 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   9588 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   9589 
   9590 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   9591 
   9592 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   9593 		&& test -z "${cf_tst_cflags}" \
   9594 		&& cf_fix_cppflags=no
   9595 	;;
   9596 esac
   9597 done
   9598 
   9599 if test -n "$cf_new_cflags" ; then
   9600 
   9601 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   9602 	CFLAGS="${CFLAGS}$cf_new_cflags"
   9603 
   9604 fi
   9605 
   9606 if test -n "$cf_new_cppflags" ; then
   9607 
   9608 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   9609 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   9610 
   9611 fi
   9612 
   9613 if test -n "$cf_new_extra_cppflags" ; then
   9614 
   9615 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   9616 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   9617 
   9618 fi
   9619 
   9620 cf_add_libs="$cf_pkgconfig_libs"
   9621 # Filter out duplicates - this happens with badly-designed ".pc" files...
   9622 for cf_add_1lib in $LIBS
   9623 do
   9624 	for cf_add_2lib in $cf_add_libs
   9625 	do
   9626 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   9627 		then
   9628 			cf_add_1lib=
   9629 			break
   9630 		fi
   9631 	done
   9632 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   9633 done
   9634 LIBS="$cf_add_libs"
   9635 
   9636 	:
   9637 else
   9638 	cf_pkgconfig_incs=
   9639 	cf_pkgconfig_libs=
   9640 	{ echo "$as_me:9640: WARNING: unable to find SM library" >&5
   9641 echo "$as_me: WARNING: unable to find SM library" >&2;}
   9642 fi
   9643 
   9644 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
   9645 	test -n "$verbose" && echo "	found package xt" 1>&6
   9646 
   9647 echo "${as_me:-configure}:9647: testing found package xt ..." 1>&5
   9648 
   9649 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
   9650 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   xt 2>/dev/null`"
   9651 	test -n "$verbose" && echo "	package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
   9652 
   9653 echo "${as_me:-configure}:9653: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   9654 
   9655 	test -n "$verbose" && echo "	package xt LIBS: $cf_pkgconfig_libs" 1>&6
   9656 
   9657 echo "${as_me:-configure}:9657: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
   9658 
   9659 cf_fix_cppflags=no
   9660 cf_new_cflags=
   9661 cf_new_cppflags=
   9662 cf_new_extra_cppflags=
   9663 
   9664 for cf_add_cflags in $cf_pkgconfig_incs
   9665 do
   9666 case $cf_fix_cppflags in
   9667 (no)
   9668 	case $cf_add_cflags in
   9669 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   9670 		case $cf_add_cflags in
   9671 		(-D*)
   9672 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   9673 
   9674 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   9675 				&& test -z "${cf_tst_cflags}" \
   9676 				&& cf_fix_cppflags=yes
   9677 
   9678 			if test $cf_fix_cppflags = yes ; then
   9679 
   9680 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   9681 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   9682 
   9683 				continue
   9684 			elif test "${cf_tst_cflags}" = "\"'" ; then
   9685 
   9686 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   9687 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   9688 
   9689 				continue
   9690 			fi
   9691 			;;
   9692 		esac
   9693 		case "$CPPFLAGS" in
   9694 		(*$cf_add_cflags)
   9695 			;;
   9696 		(*)
   9697 			case $cf_add_cflags in
   9698 			(-D*)
   9699 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   9700 
   9701 CPPFLAGS=`echo "$CPPFLAGS" | \
   9702 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   9703 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   9704 
   9705 				;;
   9706 			esac
   9707 
   9708 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   9709 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   9710 
   9711 			;;
   9712 		esac
   9713 		;;
   9714 	(*)
   9715 
   9716 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   9717 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   9718 
   9719 		;;
   9720 	esac
   9721 	;;
   9722 (yes)
   9723 
   9724 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   9725 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   9726 
   9727 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   9728 
   9729 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   9730 		&& test -z "${cf_tst_cflags}" \
   9731 		&& cf_fix_cppflags=no
   9732 	;;
   9733 esac
   9734 done
   9735 
   9736 if test -n "$cf_new_cflags" ; then
   9737 
   9738 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   9739 	CFLAGS="${CFLAGS}$cf_new_cflags"
   9740 
   9741 fi
   9742 
   9743 if test -n "$cf_new_cppflags" ; then
   9744 
   9745 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   9746 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   9747 
   9748 fi
   9749 
   9750 if test -n "$cf_new_extra_cppflags" ; then
   9751 
   9752 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   9753 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   9754 
   9755 fi
   9756 
   9757 cf_add_libs="$cf_pkgconfig_libs"
   9758 # Filter out duplicates - this happens with badly-designed ".pc" files...
   9759 for cf_add_1lib in $LIBS
   9760 do
   9761 	for cf_add_2lib in $cf_add_libs
   9762 	do
   9763 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   9764 		then
   9765 			cf_add_1lib=
   9766 			break
   9767 		fi
   9768 	done
   9769 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   9770 done
   9771 LIBS="$cf_add_libs"
   9772 
   9773 	:
   9774 else
   9775 	cf_pkgconfig_incs=
   9776 	cf_pkgconfig_libs=
   9777 	{ echo "$as_me:9777: WARNING: unable to find Xt library" >&5
   9778 echo "$as_me: WARNING: unable to find Xt library" >&2;}
   9779 fi
   9780 
   9781 fi
   9782 
   9783 cf_have_X_LIBS=no
   9784 
   9785 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
   9786 	test -n "$verbose" && echo "	found package xt" 1>&6
   9787 
   9788 echo "${as_me:-configure}:9788: testing found package xt ..." 1>&5
   9789 
   9790 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
   9791 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   xt 2>/dev/null`"
   9792 	test -n "$verbose" && echo "	package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
   9793 
   9794 echo "${as_me:-configure}:9794: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   9795 
   9796 	test -n "$verbose" && echo "	package xt LIBS: $cf_pkgconfig_libs" 1>&6
   9797 
   9798 echo "${as_me:-configure}:9798: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
   9799 
   9800 cf_fix_cppflags=no
   9801 cf_new_cflags=
   9802 cf_new_cppflags=
   9803 cf_new_extra_cppflags=
   9804 
   9805 for cf_add_cflags in $cf_pkgconfig_incs
   9806 do
   9807 case $cf_fix_cppflags in
   9808 (no)
   9809 	case $cf_add_cflags in
   9810 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   9811 		case $cf_add_cflags in
   9812 		(-D*)
   9813 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   9814 
   9815 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   9816 				&& test -z "${cf_tst_cflags}" \
   9817 				&& cf_fix_cppflags=yes
   9818 
   9819 			if test $cf_fix_cppflags = yes ; then
   9820 
   9821 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   9822 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   9823 
   9824 				continue
   9825 			elif test "${cf_tst_cflags}" = "\"'" ; then
   9826 
   9827 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   9828 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   9829 
   9830 				continue
   9831 			fi
   9832 			;;
   9833 		esac
   9834 		case "$CPPFLAGS" in
   9835 		(*$cf_add_cflags)
   9836 			;;
   9837 		(*)
   9838 			case $cf_add_cflags in
   9839 			(-D*)
   9840 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   9841 
   9842 CPPFLAGS=`echo "$CPPFLAGS" | \
   9843 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   9844 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   9845 
   9846 				;;
   9847 			esac
   9848 
   9849 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   9850 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   9851 
   9852 			;;
   9853 		esac
   9854 		;;
   9855 	(*)
   9856 
   9857 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   9858 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   9859 
   9860 		;;
   9861 	esac
   9862 	;;
   9863 (yes)
   9864 
   9865 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   9866 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   9867 
   9868 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   9869 
   9870 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   9871 		&& test -z "${cf_tst_cflags}" \
   9872 		&& cf_fix_cppflags=no
   9873 	;;
   9874 esac
   9875 done
   9876 
   9877 if test -n "$cf_new_cflags" ; then
   9878 
   9879 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   9880 	CFLAGS="${CFLAGS}$cf_new_cflags"
   9881 
   9882 fi
   9883 
   9884 if test -n "$cf_new_cppflags" ; then
   9885 
   9886 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   9887 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   9888 
   9889 fi
   9890 
   9891 if test -n "$cf_new_extra_cppflags" ; then
   9892 
   9893 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   9894 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   9895 
   9896 fi
   9897 
   9898 cf_add_libs="$cf_pkgconfig_libs"
   9899 # Filter out duplicates - this happens with badly-designed ".pc" files...
   9900 for cf_add_1lib in $LIBS
   9901 do
   9902 	for cf_add_2lib in $cf_add_libs
   9903 	do
   9904 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   9905 		then
   9906 			cf_add_1lib=
   9907 			break
   9908 		fi
   9909 	done
   9910 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   9911 done
   9912 LIBS="$cf_add_libs"
   9913 
   9914 	case "x$LIBS" in
   9915 	(*-lX11*)
   9916 		;;
   9917 	(*)
   9918 # we have an "xt" package, but it may omit Xt's dependency on X11
   9919 echo "$as_me:9919: checking for usable X dependency" >&5
   9920 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
   9921 if test "${cf_cv_xt_x11_compat+set}" = set; then
   9922   echo $ECHO_N "(cached) $ECHO_C" >&6
   9923 else
   9924 
   9925 cat >conftest.$ac_ext <<_ACEOF
   9926 #line 9926 "configure"
   9927 #include "confdefs.h"
   9928 
   9929 #include <X11/Xlib.h>
   9930 
   9931 int
   9932 main (void)
   9933 {
   9934 
   9935 	int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
   9936 	int rc2 = XClearWindow((Display*) 0, (Window) 0);
   9937 	int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
   9938 	int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
   9939 
   9940   ;
   9941   return 0;
   9942 }
   9943 _ACEOF
   9944 rm -f conftest.$ac_objext conftest$ac_exeext
   9945 if { (eval echo "$as_me:9945: \"$ac_link\"") >&5
   9946   (eval $ac_link) 2>&5
   9947   ac_status=$?
   9948   echo "$as_me:9948: \$? = $ac_status" >&5
   9949   (exit $ac_status); } &&
   9950          { ac_try='test -s conftest$ac_exeext'
   9951   { (eval echo "$as_me:9951: \"$ac_try\"") >&5
   9952   (eval $ac_try) 2>&5
   9953   ac_status=$?
   9954   echo "$as_me:9954: \$? = $ac_status" >&5
   9955   (exit $ac_status); }; }; then
   9956   cf_cv_xt_x11_compat=yes
   9957 else
   9958   echo "$as_me: failed program was:" >&5
   9959 cat conftest.$ac_ext >&5
   9960 cf_cv_xt_x11_compat=no
   9961 fi
   9962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   9963 fi
   9964 echo "$as_me:9964: result: $cf_cv_xt_x11_compat" >&5
   9965 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
   9966 		if test "$cf_cv_xt_x11_compat" = no
   9967 		then
   9968 			test -n "$verbose" && echo "	work around broken X11 dependency" 1>&6
   9969 
   9970 echo "${as_me:-configure}:9970: testing work around broken X11 dependency ..." 1>&5
   9971 
   9972 			# 2010/11/19 - good enough until a working Xt on Xcb is delivered.
   9973 
   9974 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
   9975 	test -n "$verbose" && echo "	found package x11" 1>&6
   9976 
   9977 echo "${as_me:-configure}:9977: testing found package x11 ..." 1>&5
   9978 
   9979 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
   9980 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   x11 2>/dev/null`"
   9981 	test -n "$verbose" && echo "	package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
   9982 
   9983 echo "${as_me:-configure}:9983: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   9984 
   9985 	test -n "$verbose" && echo "	package x11 LIBS: $cf_pkgconfig_libs" 1>&6
   9986 
   9987 echo "${as_me:-configure}:9987: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
   9988 
   9989 cf_fix_cppflags=no
   9990 cf_new_cflags=
   9991 cf_new_cppflags=
   9992 cf_new_extra_cppflags=
   9993 
   9994 for cf_add_cflags in $cf_pkgconfig_incs
   9995 do
   9996 case $cf_fix_cppflags in
   9997 (no)
   9998 	case $cf_add_cflags in
   9999 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   10000 		case $cf_add_cflags in
   10001 		(-D*)
   10002 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   10003 
   10004 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   10005 				&& test -z "${cf_tst_cflags}" \
   10006 				&& cf_fix_cppflags=yes
   10007 
   10008 			if test $cf_fix_cppflags = yes ; then
   10009 
   10010 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10011 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10012 
   10013 				continue
   10014 			elif test "${cf_tst_cflags}" = "\"'" ; then
   10015 
   10016 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10017 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10018 
   10019 				continue
   10020 			fi
   10021 			;;
   10022 		esac
   10023 		case "$CPPFLAGS" in
   10024 		(*$cf_add_cflags)
   10025 			;;
   10026 		(*)
   10027 			case $cf_add_cflags in
   10028 			(-D*)
   10029 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   10030 
   10031 CPPFLAGS=`echo "$CPPFLAGS" | \
   10032 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   10033 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   10034 
   10035 				;;
   10036 			esac
   10037 
   10038 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   10039 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   10040 
   10041 			;;
   10042 		esac
   10043 		;;
   10044 	(*)
   10045 
   10046 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   10047 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   10048 
   10049 		;;
   10050 	esac
   10051 	;;
   10052 (yes)
   10053 
   10054 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10055 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10056 
   10057 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   10058 
   10059 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   10060 		&& test -z "${cf_tst_cflags}" \
   10061 		&& cf_fix_cppflags=no
   10062 	;;
   10063 esac
   10064 done
   10065 
   10066 if test -n "$cf_new_cflags" ; then
   10067 
   10068 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   10069 	CFLAGS="${CFLAGS}$cf_new_cflags"
   10070 
   10071 fi
   10072 
   10073 if test -n "$cf_new_cppflags" ; then
   10074 
   10075 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   10076 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   10077 
   10078 fi
   10079 
   10080 if test -n "$cf_new_extra_cppflags" ; then
   10081 
   10082 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   10083 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   10084 
   10085 fi
   10086 
   10087 cf_add_libs="$cf_pkgconfig_libs"
   10088 # Filter out duplicates - this happens with badly-designed ".pc" files...
   10089 for cf_add_1lib in $LIBS
   10090 do
   10091 	for cf_add_2lib in $cf_add_libs
   10092 	do
   10093 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   10094 		then
   10095 			cf_add_1lib=
   10096 			break
   10097 		fi
   10098 	done
   10099 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   10100 done
   10101 LIBS="$cf_add_libs"
   10102 
   10103 	:
   10104 else
   10105 	cf_pkgconfig_incs=
   10106 	cf_pkgconfig_libs=
   10107 
   10108 test -n "$verbose" && echo "	...before $LIBS" 1>&6
   10109 
   10110 echo "${as_me:-configure}:10110: testing ...before $LIBS ..." 1>&5
   10111 
   10112 LIBS=`echo "$LIBS" | sed -e "s/[ 	][ 	]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's%  % %g'`
   10113 test -n "$verbose" && echo "	...after  $LIBS" 1>&6
   10114 
   10115 echo "${as_me:-configure}:10115: testing ...after  $LIBS ..." 1>&5
   10116 
   10117 fi
   10118 
   10119 		fi
   10120 		;;
   10121 	esac
   10122 
   10123 echo "$as_me:10123: checking for usable X Toolkit package" >&5
   10124 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
   10125 if test "${cf_cv_xt_ice_compat+set}" = set; then
   10126   echo $ECHO_N "(cached) $ECHO_C" >&6
   10127 else
   10128 
   10129 cat >conftest.$ac_ext <<_ACEOF
   10130 #line 10130 "configure"
   10131 #include "confdefs.h"
   10132 
   10133 #include <X11/Shell.h>
   10134 
   10135 int
   10136 main (void)
   10137 {
   10138 int num = IceConnectionNumber(0)
   10139 
   10140   ;
   10141   return 0;
   10142 }
   10143 _ACEOF
   10144 rm -f conftest.$ac_objext conftest$ac_exeext
   10145 if { (eval echo "$as_me:10145: \"$ac_link\"") >&5
   10146   (eval $ac_link) 2>&5
   10147   ac_status=$?
   10148   echo "$as_me:10148: \$? = $ac_status" >&5
   10149   (exit $ac_status); } &&
   10150          { ac_try='test -s conftest$ac_exeext'
   10151   { (eval echo "$as_me:10151: \"$ac_try\"") >&5
   10152   (eval $ac_try) 2>&5
   10153   ac_status=$?
   10154   echo "$as_me:10154: \$? = $ac_status" >&5
   10155   (exit $ac_status); }; }; then
   10156   cf_cv_xt_ice_compat=yes
   10157 else
   10158   echo "$as_me: failed program was:" >&5
   10159 cat conftest.$ac_ext >&5
   10160 cf_cv_xt_ice_compat=no
   10161 fi
   10162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   10163 fi
   10164 echo "$as_me:10164: result: $cf_cv_xt_ice_compat" >&5
   10165 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
   10166 
   10167 	if test "$cf_cv_xt_ice_compat" = no
   10168 	then
   10169 		# workaround for broken ".pc" files used for X Toolkit.
   10170 		case "x$X_PRE_LIBS" in
   10171 		(*-lICE*)
   10172 			case "x$LIBS" in
   10173 			(*-lICE*)
   10174 				;;
   10175 			(*)
   10176 				test -n "$verbose" && echo "	work around broken ICE dependency" 1>&6
   10177 
   10178 echo "${as_me:-configure}:10178: testing work around broken ICE dependency ..." 1>&5
   10179 
   10180 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
   10181 	test -n "$verbose" && echo "	found package ice" 1>&6
   10182 
   10183 echo "${as_me:-configure}:10183: testing found package ice ..." 1>&5
   10184 
   10185 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
   10186 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   ice 2>/dev/null`"
   10187 	test -n "$verbose" && echo "	package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
   10188 
   10189 echo "${as_me:-configure}:10189: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   10190 
   10191 	test -n "$verbose" && echo "	package ice LIBS: $cf_pkgconfig_libs" 1>&6
   10192 
   10193 echo "${as_me:-configure}:10193: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
   10194 
   10195 cf_fix_cppflags=no
   10196 cf_new_cflags=
   10197 cf_new_cppflags=
   10198 cf_new_extra_cppflags=
   10199 
   10200 for cf_add_cflags in $cf_pkgconfig_incs
   10201 do
   10202 case $cf_fix_cppflags in
   10203 (no)
   10204 	case $cf_add_cflags in
   10205 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   10206 		case $cf_add_cflags in
   10207 		(-D*)
   10208 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   10209 
   10210 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   10211 				&& test -z "${cf_tst_cflags}" \
   10212 				&& cf_fix_cppflags=yes
   10213 
   10214 			if test $cf_fix_cppflags = yes ; then
   10215 
   10216 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10217 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10218 
   10219 				continue
   10220 			elif test "${cf_tst_cflags}" = "\"'" ; then
   10221 
   10222 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10223 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10224 
   10225 				continue
   10226 			fi
   10227 			;;
   10228 		esac
   10229 		case "$CPPFLAGS" in
   10230 		(*$cf_add_cflags)
   10231 			;;
   10232 		(*)
   10233 			case $cf_add_cflags in
   10234 			(-D*)
   10235 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   10236 
   10237 CPPFLAGS=`echo "$CPPFLAGS" | \
   10238 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   10239 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   10240 
   10241 				;;
   10242 			esac
   10243 
   10244 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   10245 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   10246 
   10247 			;;
   10248 		esac
   10249 		;;
   10250 	(*)
   10251 
   10252 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   10253 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   10254 
   10255 		;;
   10256 	esac
   10257 	;;
   10258 (yes)
   10259 
   10260 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10261 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10262 
   10263 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   10264 
   10265 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   10266 		&& test -z "${cf_tst_cflags}" \
   10267 		&& cf_fix_cppflags=no
   10268 	;;
   10269 esac
   10270 done
   10271 
   10272 if test -n "$cf_new_cflags" ; then
   10273 
   10274 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   10275 	CFLAGS="${CFLAGS}$cf_new_cflags"
   10276 
   10277 fi
   10278 
   10279 if test -n "$cf_new_cppflags" ; then
   10280 
   10281 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   10282 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   10283 
   10284 fi
   10285 
   10286 if test -n "$cf_new_extra_cppflags" ; then
   10287 
   10288 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   10289 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   10290 
   10291 fi
   10292 
   10293 cf_add_libs="$cf_pkgconfig_libs"
   10294 # Filter out duplicates - this happens with badly-designed ".pc" files...
   10295 for cf_add_1lib in $LIBS
   10296 do
   10297 	for cf_add_2lib in $cf_add_libs
   10298 	do
   10299 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   10300 		then
   10301 			cf_add_1lib=
   10302 			break
   10303 		fi
   10304 	done
   10305 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   10306 done
   10307 LIBS="$cf_add_libs"
   10308 
   10309 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
   10310 	test -n "$verbose" && echo "	found package sm" 1>&6
   10311 
   10312 echo "${as_me:-configure}:10312: testing found package sm ..." 1>&5
   10313 
   10314 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
   10315 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   sm 2>/dev/null`"
   10316 	test -n "$verbose" && echo "	package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
   10317 
   10318 echo "${as_me:-configure}:10318: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   10319 
   10320 	test -n "$verbose" && echo "	package sm LIBS: $cf_pkgconfig_libs" 1>&6
   10321 
   10322 echo "${as_me:-configure}:10322: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
   10323 
   10324 cf_fix_cppflags=no
   10325 cf_new_cflags=
   10326 cf_new_cppflags=
   10327 cf_new_extra_cppflags=
   10328 
   10329 for cf_add_cflags in $cf_pkgconfig_incs
   10330 do
   10331 case $cf_fix_cppflags in
   10332 (no)
   10333 	case $cf_add_cflags in
   10334 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   10335 		case $cf_add_cflags in
   10336 		(-D*)
   10337 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   10338 
   10339 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   10340 				&& test -z "${cf_tst_cflags}" \
   10341 				&& cf_fix_cppflags=yes
   10342 
   10343 			if test $cf_fix_cppflags = yes ; then
   10344 
   10345 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10346 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10347 
   10348 				continue
   10349 			elif test "${cf_tst_cflags}" = "\"'" ; then
   10350 
   10351 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10352 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10353 
   10354 				continue
   10355 			fi
   10356 			;;
   10357 		esac
   10358 		case "$CPPFLAGS" in
   10359 		(*$cf_add_cflags)
   10360 			;;
   10361 		(*)
   10362 			case $cf_add_cflags in
   10363 			(-D*)
   10364 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   10365 
   10366 CPPFLAGS=`echo "$CPPFLAGS" | \
   10367 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   10368 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   10369 
   10370 				;;
   10371 			esac
   10372 
   10373 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   10374 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   10375 
   10376 			;;
   10377 		esac
   10378 		;;
   10379 	(*)
   10380 
   10381 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   10382 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   10383 
   10384 		;;
   10385 	esac
   10386 	;;
   10387 (yes)
   10388 
   10389 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10390 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10391 
   10392 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   10393 
   10394 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   10395 		&& test -z "${cf_tst_cflags}" \
   10396 		&& cf_fix_cppflags=no
   10397 	;;
   10398 esac
   10399 done
   10400 
   10401 if test -n "$cf_new_cflags" ; then
   10402 
   10403 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   10404 	CFLAGS="${CFLAGS}$cf_new_cflags"
   10405 
   10406 fi
   10407 
   10408 if test -n "$cf_new_cppflags" ; then
   10409 
   10410 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   10411 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   10412 
   10413 fi
   10414 
   10415 if test -n "$cf_new_extra_cppflags" ; then
   10416 
   10417 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   10418 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   10419 
   10420 fi
   10421 
   10422 cf_add_libs="$cf_pkgconfig_libs"
   10423 # Filter out duplicates - this happens with badly-designed ".pc" files...
   10424 for cf_add_1lib in $LIBS
   10425 do
   10426 	for cf_add_2lib in $cf_add_libs
   10427 	do
   10428 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   10429 		then
   10430 			cf_add_1lib=
   10431 			break
   10432 		fi
   10433 	done
   10434 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   10435 done
   10436 LIBS="$cf_add_libs"
   10437 
   10438 	:
   10439 else
   10440 	cf_pkgconfig_incs=
   10441 	cf_pkgconfig_libs=
   10442 	:
   10443 fi
   10444 
   10445 else
   10446 	cf_pkgconfig_incs=
   10447 	cf_pkgconfig_libs=
   10448 
   10449 test -n "$verbose" && echo "	...before $LIBS" 1>&6
   10450 
   10451 echo "${as_me:-configure}:10451: testing ...before $LIBS ..." 1>&5
   10452 
   10453 LIBS=`echo "$LIBS" | sed -e "s/[ 	][ 	]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's%  % %g'`
   10454 test -n "$verbose" && echo "	...after  $LIBS" 1>&6
   10455 
   10456 echo "${as_me:-configure}:10456: testing ...after  $LIBS ..." 1>&5
   10457 
   10458 fi
   10459 
   10460 				;;
   10461 			esac
   10462 			;;
   10463 		esac
   10464 	fi
   10465 
   10466 	cf_have_X_LIBS=yes
   10467 
   10468 else
   10469 	cf_pkgconfig_incs=
   10470 	cf_pkgconfig_libs=
   10471 
   10472 	LDFLAGS="$X_LIBS $LDFLAGS"
   10473 
   10474 test -n "$verbose" && echo "	checking additions to CFLAGS" 1>&6
   10475 
   10476 echo "${as_me:-configure}:10476: testing checking additions to CFLAGS ..." 1>&5
   10477 
   10478 cf_check_cflags="$CFLAGS"
   10479 cf_check_cppflags="$CPPFLAGS"
   10480 
   10481 cf_fix_cppflags=no
   10482 cf_new_cflags=
   10483 cf_new_cppflags=
   10484 cf_new_extra_cppflags=
   10485 
   10486 for cf_add_cflags in $X_CFLAGS
   10487 do
   10488 case $cf_fix_cppflags in
   10489 (no)
   10490 	case $cf_add_cflags in
   10491 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   10492 		case $cf_add_cflags in
   10493 		(-D*)
   10494 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   10495 
   10496 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   10497 				&& test -z "${cf_tst_cflags}" \
   10498 				&& cf_fix_cppflags=yes
   10499 
   10500 			if test $cf_fix_cppflags = yes ; then
   10501 
   10502 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10503 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10504 
   10505 				continue
   10506 			elif test "${cf_tst_cflags}" = "\"'" ; then
   10507 
   10508 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10509 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10510 
   10511 				continue
   10512 			fi
   10513 			;;
   10514 		esac
   10515 		case "$CPPFLAGS" in
   10516 		(*$cf_add_cflags)
   10517 			;;
   10518 		(*)
   10519 			case $cf_add_cflags in
   10520 			(-D*)
   10521 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   10522 
   10523 CPPFLAGS=`echo "$CPPFLAGS" | \
   10524 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   10525 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   10526 
   10527 				;;
   10528 			esac
   10529 
   10530 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   10531 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   10532 
   10533 			;;
   10534 		esac
   10535 		;;
   10536 	(*)
   10537 
   10538 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   10539 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   10540 
   10541 		;;
   10542 	esac
   10543 	;;
   10544 (yes)
   10545 
   10546 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   10547 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   10548 
   10549 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   10550 
   10551 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   10552 		&& test -z "${cf_tst_cflags}" \
   10553 		&& cf_fix_cppflags=no
   10554 	;;
   10555 esac
   10556 done
   10557 
   10558 if test -n "$cf_new_cflags" ; then
   10559 	test -n "$verbose" && echo "	add to \$CFLAGS $cf_new_cflags" 1>&6
   10560 
   10561 echo "${as_me:-configure}:10561: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
   10562 
   10563 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   10564 	CFLAGS="${CFLAGS}$cf_new_cflags"
   10565 
   10566 fi
   10567 
   10568 if test -n "$cf_new_cppflags" ; then
   10569 	test -n "$verbose" && echo "	add to \$CPPFLAGS $cf_new_cppflags" 1>&6
   10570 
   10571 echo "${as_me:-configure}:10571: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
   10572 
   10573 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   10574 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   10575 
   10576 fi
   10577 
   10578 if test -n "$cf_new_extra_cppflags" ; then
   10579 	test -n "$verbose" && echo "	add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
   10580 
   10581 echo "${as_me:-configure}:10581: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
   10582 
   10583 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   10584 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   10585 
   10586 fi
   10587 
   10588 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
   10589 cat >conftest.$ac_ext <<_ACEOF
   10590 #line 10590 "configure"
   10591 #include "confdefs.h"
   10592 #include <stdio.h>
   10593 int
   10594 main (void)
   10595 {
   10596 printf("Hello world");
   10597   ;
   10598   return 0;
   10599 }
   10600 _ACEOF
   10601 rm -f conftest.$ac_objext conftest$ac_exeext
   10602 if { (eval echo "$as_me:10602: \"$ac_link\"") >&5
   10603   (eval $ac_link) 2>&5
   10604   ac_status=$?
   10605   echo "$as_me:10605: \$? = $ac_status" >&5
   10606   (exit $ac_status); } &&
   10607          { ac_try='test -s conftest$ac_exeext'
   10608   { (eval echo "$as_me:10608: \"$ac_try\"") >&5
   10609   (eval $ac_try) 2>&5
   10610   ac_status=$?
   10611   echo "$as_me:10611: \$? = $ac_status" >&5
   10612   (exit $ac_status); }; }; then
   10613   :
   10614 else
   10615   echo "$as_me: failed program was:" >&5
   10616 cat conftest.$ac_ext >&5
   10617 test -n "$verbose" && echo "	test-compile failed.  Undoing change to \$CFLAGS" 1>&6
   10618 
   10619 echo "${as_me:-configure}:10619: testing test-compile failed.  Undoing change to \$CFLAGS ..." 1>&5
   10620 
   10621 	 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
   10622 		 test -n "$verbose" && echo "	but keeping change to \$CPPFLAGS" 1>&6
   10623 
   10624 echo "${as_me:-configure}:10624: testing but keeping change to \$CPPFLAGS ..." 1>&5
   10625 
   10626 	 fi
   10627 	 CFLAGS="$cf_check_flags"
   10628 fi
   10629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   10630 fi
   10631 
   10632 	echo "$as_me:10632: checking for XOpenDisplay" >&5
   10633 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
   10634 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
   10635   echo $ECHO_N "(cached) $ECHO_C" >&6
   10636 else
   10637   cat >conftest.$ac_ext <<_ACEOF
   10638 #line 10638 "configure"
   10639 #include "confdefs.h"
   10640 /* System header to define __stub macros and hopefully few prototypes,
   10641     which can conflict with char XOpenDisplay (); below.  */
   10642 #include <assert.h>
   10643 /* Override any gcc2 internal prototype to avoid an error.  */
   10644 #ifdef __cplusplus
   10645 extern "C"
   10646 #endif
   10647 /* We use char because int might match the return type of a gcc2
   10648    builtin and then its argument prototype would still apply.  */
   10649 char XOpenDisplay ();
   10650 char (*f) ();
   10651 
   10652 int
   10653 main (void)
   10654 {
   10655 /* The GNU C library defines this for functions which it implements
   10656     to always fail with ENOSYS.  Some functions are actually named
   10657     something starting with __ and the normal name is an alias.  */
   10658 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
   10659 choke me
   10660 #else
   10661 f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
   10662 #endif
   10663 
   10664   ;
   10665   return 0;
   10666 }
   10667 _ACEOF
   10668 rm -f conftest.$ac_objext conftest$ac_exeext
   10669 if { (eval echo "$as_me:10669: \"$ac_link\"") >&5
   10670   (eval $ac_link) 2>&5
   10671   ac_status=$?
   10672   echo "$as_me:10672: \$? = $ac_status" >&5
   10673   (exit $ac_status); } &&
   10674          { ac_try='test -s conftest$ac_exeext'
   10675   { (eval echo "$as_me:10675: \"$ac_try\"") >&5
   10676   (eval $ac_try) 2>&5
   10677   ac_status=$?
   10678   echo "$as_me:10678: \$? = $ac_status" >&5
   10679   (exit $ac_status); }; }; then
   10680   ac_cv_func_XOpenDisplay=yes
   10681 else
   10682   echo "$as_me: failed program was:" >&5
   10683 cat conftest.$ac_ext >&5
   10684 ac_cv_func_XOpenDisplay=no
   10685 fi
   10686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   10687 fi
   10688 echo "$as_me:10688: result: $ac_cv_func_XOpenDisplay" >&5
   10689 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
   10690 if test $ac_cv_func_XOpenDisplay = yes; then
   10691   :
   10692 else
   10693 
   10694 	echo "$as_me:10694: checking for XOpenDisplay in -lX11" >&5
   10695 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
   10696 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
   10697   echo $ECHO_N "(cached) $ECHO_C" >&6
   10698 else
   10699   ac_check_lib_save_LIBS=$LIBS
   10700 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
   10701 cat >conftest.$ac_ext <<_ACEOF
   10702 #line 10702 "configure"
   10703 #include "confdefs.h"
   10704 
   10705 /* Override any gcc2 internal prototype to avoid an error.  */
   10706 #ifdef __cplusplus
   10707 extern "C"
   10708 #endif
   10709 /* We use char because int might match the return type of a gcc2
   10710    builtin and then its argument prototype would still apply.  */
   10711 char XOpenDisplay ();
   10712 int
   10713 main (void)
   10714 {
   10715 XOpenDisplay ();
   10716   ;
   10717   return 0;
   10718 }
   10719 _ACEOF
   10720 rm -f conftest.$ac_objext conftest$ac_exeext
   10721 if { (eval echo "$as_me:10721: \"$ac_link\"") >&5
   10722   (eval $ac_link) 2>&5
   10723   ac_status=$?
   10724   echo "$as_me:10724: \$? = $ac_status" >&5
   10725   (exit $ac_status); } &&
   10726          { ac_try='test -s conftest$ac_exeext'
   10727   { (eval echo "$as_me:10727: \"$ac_try\"") >&5
   10728   (eval $ac_try) 2>&5
   10729   ac_status=$?
   10730   echo "$as_me:10730: \$? = $ac_status" >&5
   10731   (exit $ac_status); }; }; then
   10732   ac_cv_lib_X11_XOpenDisplay=yes
   10733 else
   10734   echo "$as_me: failed program was:" >&5
   10735 cat conftest.$ac_ext >&5
   10736 ac_cv_lib_X11_XOpenDisplay=no
   10737 fi
   10738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   10739 LIBS=$ac_check_lib_save_LIBS
   10740 fi
   10741 echo "$as_me:10741: result: $ac_cv_lib_X11_XOpenDisplay" >&5
   10742 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
   10743 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
   10744 
   10745 cf_add_libs="-lX11"
   10746 # Filter out duplicates - this happens with badly-designed ".pc" files...
   10747 for cf_add_1lib in $LIBS
   10748 do
   10749 	for cf_add_2lib in $cf_add_libs
   10750 	do
   10751 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   10752 		then
   10753 			cf_add_1lib=
   10754 			break
   10755 		fi
   10756 	done
   10757 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   10758 done
   10759 LIBS="$cf_add_libs"
   10760 
   10761 fi
   10762 
   10763 fi
   10764 
   10765 	echo "$as_me:10765: checking for XtAppInitialize" >&5
   10766 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
   10767 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
   10768   echo $ECHO_N "(cached) $ECHO_C" >&6
   10769 else
   10770   cat >conftest.$ac_ext <<_ACEOF
   10771 #line 10771 "configure"
   10772 #include "confdefs.h"
   10773 /* System header to define __stub macros and hopefully few prototypes,
   10774     which can conflict with char XtAppInitialize (); below.  */
   10775 #include <assert.h>
   10776 /* Override any gcc2 internal prototype to avoid an error.  */
   10777 #ifdef __cplusplus
   10778 extern "C"
   10779 #endif
   10780 /* We use char because int might match the return type of a gcc2
   10781    builtin and then its argument prototype would still apply.  */
   10782 char XtAppInitialize ();
   10783 char (*f) ();
   10784 
   10785 int
   10786 main (void)
   10787 {
   10788 /* The GNU C library defines this for functions which it implements
   10789     to always fail with ENOSYS.  Some functions are actually named
   10790     something starting with __ and the normal name is an alias.  */
   10791 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
   10792 choke me
   10793 #else
   10794 f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
   10795 #endif
   10796 
   10797   ;
   10798   return 0;
   10799 }
   10800 _ACEOF
   10801 rm -f conftest.$ac_objext conftest$ac_exeext
   10802 if { (eval echo "$as_me:10802: \"$ac_link\"") >&5
   10803   (eval $ac_link) 2>&5
   10804   ac_status=$?
   10805   echo "$as_me:10805: \$? = $ac_status" >&5
   10806   (exit $ac_status); } &&
   10807          { ac_try='test -s conftest$ac_exeext'
   10808   { (eval echo "$as_me:10808: \"$ac_try\"") >&5
   10809   (eval $ac_try) 2>&5
   10810   ac_status=$?
   10811   echo "$as_me:10811: \$? = $ac_status" >&5
   10812   (exit $ac_status); }; }; then
   10813   ac_cv_func_XtAppInitialize=yes
   10814 else
   10815   echo "$as_me: failed program was:" >&5
   10816 cat conftest.$ac_ext >&5
   10817 ac_cv_func_XtAppInitialize=no
   10818 fi
   10819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   10820 fi
   10821 echo "$as_me:10821: result: $ac_cv_func_XtAppInitialize" >&5
   10822 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
   10823 if test $ac_cv_func_XtAppInitialize = yes; then
   10824   :
   10825 else
   10826 
   10827 	echo "$as_me:10827: checking for XtAppInitialize in -lXt" >&5
   10828 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
   10829 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
   10830   echo $ECHO_N "(cached) $ECHO_C" >&6
   10831 else
   10832   ac_check_lib_save_LIBS=$LIBS
   10833 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
   10834 cat >conftest.$ac_ext <<_ACEOF
   10835 #line 10835 "configure"
   10836 #include "confdefs.h"
   10837 
   10838 /* Override any gcc2 internal prototype to avoid an error.  */
   10839 #ifdef __cplusplus
   10840 extern "C"
   10841 #endif
   10842 /* We use char because int might match the return type of a gcc2
   10843    builtin and then its argument prototype would still apply.  */
   10844 char XtAppInitialize ();
   10845 int
   10846 main (void)
   10847 {
   10848 XtAppInitialize ();
   10849   ;
   10850   return 0;
   10851 }
   10852 _ACEOF
   10853 rm -f conftest.$ac_objext conftest$ac_exeext
   10854 if { (eval echo "$as_me:10854: \"$ac_link\"") >&5
   10855   (eval $ac_link) 2>&5
   10856   ac_status=$?
   10857   echo "$as_me:10857: \$? = $ac_status" >&5
   10858   (exit $ac_status); } &&
   10859          { ac_try='test -s conftest$ac_exeext'
   10860   { (eval echo "$as_me:10860: \"$ac_try\"") >&5
   10861   (eval $ac_try) 2>&5
   10862   ac_status=$?
   10863   echo "$as_me:10863: \$? = $ac_status" >&5
   10864   (exit $ac_status); }; }; then
   10865   ac_cv_lib_Xt_XtAppInitialize=yes
   10866 else
   10867   echo "$as_me: failed program was:" >&5
   10868 cat conftest.$ac_ext >&5
   10869 ac_cv_lib_Xt_XtAppInitialize=no
   10870 fi
   10871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   10872 LIBS=$ac_check_lib_save_LIBS
   10873 fi
   10874 echo "$as_me:10874: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
   10875 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
   10876 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
   10877 
   10878 cat >>confdefs.h <<\EOF
   10879 #define HAVE_LIBXT 1
   10880 EOF
   10881 
   10882 		 cf_have_X_LIBS=Xt
   10883 		 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
   10884 fi
   10885 
   10886 fi
   10887 
   10888 fi
   10889 
   10890 if test $cf_have_X_LIBS = no ; then
   10891 	{ echo "$as_me:10891: WARNING: Unable to successfully link X Toolkit library (-lXt) with
   10892 test program.  You will have to check and add the proper libraries by hand
   10893 to makefile." >&5
   10894 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
   10895 test program.  You will have to check and add the proper libraries by hand
   10896 to makefile." >&2;}
   10897 fi
   10898 
   10899 for ac_header in \
   10900 	X11/DECkeysym.h \
   10901 	X11/Sunkeysym.h \
   10902 	X11/XF86keysym.h \
   10903 	X11/XKBlib.h \
   10904 	X11/Xpoll.h \
   10905 	X11/extensions/XKB.h \
   10906 
   10907 do
   10908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10909 echo "$as_me:10909: checking for $ac_header" >&5
   10910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   10911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   10912   echo $ECHO_N "(cached) $ECHO_C" >&6
   10913 else
   10914   cat >conftest.$ac_ext <<_ACEOF
   10915 #line 10915 "configure"
   10916 #include "confdefs.h"
   10917 #include <$ac_header>
   10918 _ACEOF
   10919 if { (eval echo "$as_me:10919: \"$ac_cpp conftest.$ac_ext\"") >&5
   10920   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   10921   ac_status=$?
   10922   egrep -v '^ *\+' conftest.er1 >conftest.err
   10923   rm -f conftest.er1
   10924   cat conftest.err >&5
   10925   echo "$as_me:10925: \$? = $ac_status" >&5
   10926   (exit $ac_status); } >/dev/null; then
   10927   if test -s conftest.err; then
   10928     ac_cpp_err=$ac_c_preproc_warn_flag
   10929   else
   10930     ac_cpp_err=
   10931   fi
   10932 else
   10933   ac_cpp_err=yes
   10934 fi
   10935 if test -z "$ac_cpp_err"; then
   10936   eval "$as_ac_Header=yes"
   10937 else
   10938   echo "$as_me: failed program was:" >&5
   10939   cat conftest.$ac_ext >&5
   10940   eval "$as_ac_Header=no"
   10941 fi
   10942 rm -f conftest.err conftest.$ac_ext
   10943 fi
   10944 echo "$as_me:10944: result: `eval echo '${'$as_ac_Header'}'`" >&5
   10945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   10946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   10947   cat >>confdefs.h <<EOF
   10948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   10949 EOF
   10950 
   10951 fi
   10952 done
   10953 
   10954 ICON_SUFFIX=.xbm
   10955 
   10956 cf_save_cppflags="${CPPFLAGS}"
   10957 cf_save_ldflags="${LDFLAGS}"
   10958 
   10959 echo "$as_me:10959: checking if you want to use the Xpm library for colored icon" >&5
   10960 echo $ECHO_N "checking if you want to use the Xpm library for colored icon... $ECHO_C" >&6
   10961 
   10962 # Check whether --with-xpm or --without-xpm was given.
   10963 if test "${with_xpm+set}" = set; then
   10964   withval="$with_xpm"
   10965   cf_Xpm_library="$withval"
   10966 else
   10967   cf_Xpm_library=yes
   10968 fi;
   10969 echo "$as_me:10969: result: $cf_Xpm_library" >&5
   10970 echo "${ECHO_T}$cf_Xpm_library" >&6
   10971 
   10972 if test "$cf_Xpm_library" != no ; then
   10973     if test "$cf_Xpm_library" != yes ; then
   10974 	CPPFLAGS="$CPPFLAGS -I$withval/include"
   10975 	LDFLAGS="$LDFLAGS -L$withval/lib"
   10976     fi
   10977     echo "$as_me:10977: checking for X11/xpm.h" >&5
   10978 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
   10979 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
   10980   echo $ECHO_N "(cached) $ECHO_C" >&6
   10981 else
   10982   cat >conftest.$ac_ext <<_ACEOF
   10983 #line 10983 "configure"
   10984 #include "confdefs.h"
   10985 #include <X11/xpm.h>
   10986 _ACEOF
   10987 if { (eval echo "$as_me:10987: \"$ac_cpp conftest.$ac_ext\"") >&5
   10988   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   10989   ac_status=$?
   10990   egrep -v '^ *\+' conftest.er1 >conftest.err
   10991   rm -f conftest.er1
   10992   cat conftest.err >&5
   10993   echo "$as_me:10993: \$? = $ac_status" >&5
   10994   (exit $ac_status); } >/dev/null; then
   10995   if test -s conftest.err; then
   10996     ac_cpp_err=$ac_c_preproc_warn_flag
   10997   else
   10998     ac_cpp_err=
   10999   fi
   11000 else
   11001   ac_cpp_err=yes
   11002 fi
   11003 if test -z "$ac_cpp_err"; then
   11004   ac_cv_header_X11_xpm_h=yes
   11005 else
   11006   echo "$as_me: failed program was:" >&5
   11007   cat conftest.$ac_ext >&5
   11008   ac_cv_header_X11_xpm_h=no
   11009 fi
   11010 rm -f conftest.err conftest.$ac_ext
   11011 fi
   11012 echo "$as_me:11012: result: $ac_cv_header_X11_xpm_h" >&5
   11013 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
   11014 if test $ac_cv_header_X11_xpm_h = yes; then
   11015 
   11016 	echo "$as_me:11016: checking for XpmCreatePixmapFromData in -lXpm" >&5
   11017 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
   11018 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
   11019   echo $ECHO_N "(cached) $ECHO_C" >&6
   11020 else
   11021   ac_check_lib_save_LIBS=$LIBS
   11022 LIBS="-lXpm -lX11 $X_LIBS $LIBS"
   11023 cat >conftest.$ac_ext <<_ACEOF
   11024 #line 11024 "configure"
   11025 #include "confdefs.h"
   11026 
   11027 /* Override any gcc2 internal prototype to avoid an error.  */
   11028 #ifdef __cplusplus
   11029 extern "C"
   11030 #endif
   11031 /* We use char because int might match the return type of a gcc2
   11032    builtin and then its argument prototype would still apply.  */
   11033 char XpmCreatePixmapFromData ();
   11034 int
   11035 main (void)
   11036 {
   11037 XpmCreatePixmapFromData ();
   11038   ;
   11039   return 0;
   11040 }
   11041 _ACEOF
   11042 rm -f conftest.$ac_objext conftest$ac_exeext
   11043 if { (eval echo "$as_me:11043: \"$ac_link\"") >&5
   11044   (eval $ac_link) 2>&5
   11045   ac_status=$?
   11046   echo "$as_me:11046: \$? = $ac_status" >&5
   11047   (exit $ac_status); } &&
   11048          { ac_try='test -s conftest$ac_exeext'
   11049   { (eval echo "$as_me:11049: \"$ac_try\"") >&5
   11050   (eval $ac_try) 2>&5
   11051   ac_status=$?
   11052   echo "$as_me:11052: \$? = $ac_status" >&5
   11053   (exit $ac_status); }; }; then
   11054   ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
   11055 else
   11056   echo "$as_me: failed program was:" >&5
   11057 cat conftest.$ac_ext >&5
   11058 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
   11059 fi
   11060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   11061 LIBS=$ac_check_lib_save_LIBS
   11062 fi
   11063 echo "$as_me:11063: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
   11064 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
   11065 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
   11066 
   11067 cat >>confdefs.h <<\EOF
   11068 #define HAVE_LIBXPM 1
   11069 EOF
   11070 
   11071 	    ICON_SUFFIX=.xpm
   11072 	    LIBS="-lXpm $LIBS"
   11073 else
   11074   CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}"
   11075 fi
   11076 
   11077 else
   11078   CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}"
   11079 fi
   11080 
   11081 fi
   11082 
   11083 echo "$as_me:11083: checking if you want to use the Xinerama extension" >&5
   11084 echo $ECHO_N "checking if you want to use the Xinerama extension... $ECHO_C" >&6
   11085 
   11086 # Check whether --with-xinerama or --without-xinerama was given.
   11087 if test "${with_xinerama+set}" = set; then
   11088   withval="$with_xinerama"
   11089   cf_with_xinerama="$withval"
   11090 else
   11091   cf_with_xinerama=yes
   11092 fi;
   11093 echo "$as_me:11093: result: $cf_with_xinerama" >&5
   11094 echo "${ECHO_T}$cf_with_xinerama" >&6
   11095 if test "$cf_with_xinerama" = yes; then
   11096 
   11097 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xinerama; then
   11098 	test -n "$verbose" && echo "	found package xinerama" 1>&6
   11099 
   11100 echo "${as_me:-configure}:11100: testing found package xinerama ..." 1>&5
   11101 
   11102 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags xinerama 2>/dev/null`"
   11103 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   xinerama 2>/dev/null`"
   11104 	test -n "$verbose" && echo "	package xinerama CFLAGS: $cf_pkgconfig_incs" 1>&6
   11105 
   11106 echo "${as_me:-configure}:11106: testing package xinerama CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   11107 
   11108 	test -n "$verbose" && echo "	package xinerama LIBS: $cf_pkgconfig_libs" 1>&6
   11109 
   11110 echo "${as_me:-configure}:11110: testing package xinerama LIBS: $cf_pkgconfig_libs ..." 1>&5
   11111 
   11112 cf_fix_cppflags=no
   11113 cf_new_cflags=
   11114 cf_new_cppflags=
   11115 cf_new_extra_cppflags=
   11116 
   11117 for cf_add_cflags in $cf_pkgconfig_incs
   11118 do
   11119 case $cf_fix_cppflags in
   11120 (no)
   11121 	case $cf_add_cflags in
   11122 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   11123 		case $cf_add_cflags in
   11124 		(-D*)
   11125 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   11126 
   11127 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   11128 				&& test -z "${cf_tst_cflags}" \
   11129 				&& cf_fix_cppflags=yes
   11130 
   11131 			if test $cf_fix_cppflags = yes ; then
   11132 
   11133 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11134 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11135 
   11136 				continue
   11137 			elif test "${cf_tst_cflags}" = "\"'" ; then
   11138 
   11139 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11140 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11141 
   11142 				continue
   11143 			fi
   11144 			;;
   11145 		esac
   11146 		case "$CPPFLAGS" in
   11147 		(*$cf_add_cflags)
   11148 			;;
   11149 		(*)
   11150 			case $cf_add_cflags in
   11151 			(-D*)
   11152 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   11153 
   11154 CPPFLAGS=`echo "$CPPFLAGS" | \
   11155 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   11156 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   11157 
   11158 				;;
   11159 			esac
   11160 
   11161 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   11162 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   11163 
   11164 			;;
   11165 		esac
   11166 		;;
   11167 	(*)
   11168 
   11169 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   11170 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   11171 
   11172 		;;
   11173 	esac
   11174 	;;
   11175 (yes)
   11176 
   11177 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11178 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11179 
   11180 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   11181 
   11182 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   11183 		&& test -z "${cf_tst_cflags}" \
   11184 		&& cf_fix_cppflags=no
   11185 	;;
   11186 esac
   11187 done
   11188 
   11189 if test -n "$cf_new_cflags" ; then
   11190 
   11191 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   11192 	CFLAGS="${CFLAGS}$cf_new_cflags"
   11193 
   11194 fi
   11195 
   11196 if test -n "$cf_new_cppflags" ; then
   11197 
   11198 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   11199 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   11200 
   11201 fi
   11202 
   11203 if test -n "$cf_new_extra_cppflags" ; then
   11204 
   11205 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   11206 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   11207 
   11208 fi
   11209 
   11210 cf_add_libs="$cf_pkgconfig_libs"
   11211 # Filter out duplicates - this happens with badly-designed ".pc" files...
   11212 for cf_add_1lib in $LIBS
   11213 do
   11214 	for cf_add_2lib in $cf_add_libs
   11215 	do
   11216 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   11217 		then
   11218 			cf_add_1lib=
   11219 			break
   11220 		fi
   11221 	done
   11222 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   11223 done
   11224 LIBS="$cf_add_libs"
   11225 
   11226 	cat >>confdefs.h <<\EOF
   11227 #define HAVE_X11_EXTENSIONS_XINERAMA_H 1
   11228 EOF
   11229 
   11230 else
   11231 	cf_pkgconfig_incs=
   11232 	cf_pkgconfig_libs=
   11233 
   11234 	echo "$as_me:11234: checking for XineramaQueryScreens in -lXinerama" >&5
   11235 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6
   11236 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
   11237   echo $ECHO_N "(cached) $ECHO_C" >&6
   11238 else
   11239   ac_check_lib_save_LIBS=$LIBS
   11240 LIBS="-lXinerama  $LIBS"
   11241 cat >conftest.$ac_ext <<_ACEOF
   11242 #line 11242 "configure"
   11243 #include "confdefs.h"
   11244 
   11245 /* Override any gcc2 internal prototype to avoid an error.  */
   11246 #ifdef __cplusplus
   11247 extern "C"
   11248 #endif
   11249 /* We use char because int might match the return type of a gcc2
   11250    builtin and then its argument prototype would still apply.  */
   11251 char XineramaQueryScreens ();
   11252 int
   11253 main (void)
   11254 {
   11255 XineramaQueryScreens ();
   11256   ;
   11257   return 0;
   11258 }
   11259 _ACEOF
   11260 rm -f conftest.$ac_objext conftest$ac_exeext
   11261 if { (eval echo "$as_me:11261: \"$ac_link\"") >&5
   11262   (eval $ac_link) 2>&5
   11263   ac_status=$?
   11264   echo "$as_me:11264: \$? = $ac_status" >&5
   11265   (exit $ac_status); } &&
   11266          { ac_try='test -s conftest$ac_exeext'
   11267   { (eval echo "$as_me:11267: \"$ac_try\"") >&5
   11268   (eval $ac_try) 2>&5
   11269   ac_status=$?
   11270   echo "$as_me:11270: \$? = $ac_status" >&5
   11271   (exit $ac_status); }; }; then
   11272   ac_cv_lib_Xinerama_XineramaQueryScreens=yes
   11273 else
   11274   echo "$as_me: failed program was:" >&5
   11275 cat conftest.$ac_ext >&5
   11276 ac_cv_lib_Xinerama_XineramaQueryScreens=no
   11277 fi
   11278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   11279 LIBS=$ac_check_lib_save_LIBS
   11280 fi
   11281 echo "$as_me:11281: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
   11282 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6
   11283 if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
   11284 
   11285 cf_add_libs="-lXinerama"
   11286 # Filter out duplicates - this happens with badly-designed ".pc" files...
   11287 for cf_add_1lib in $LIBS
   11288 do
   11289 	for cf_add_2lib in $cf_add_libs
   11290 	do
   11291 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   11292 		then
   11293 			cf_add_1lib=
   11294 			break
   11295 		fi
   11296 	done
   11297 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   11298 done
   11299 LIBS="$cf_add_libs"
   11300 
   11301 for ac_header in \
   11302 			X11/extensions/Xinerama.h \
   11303 
   11304 do
   11305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   11306 echo "$as_me:11306: checking for $ac_header" >&5
   11307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   11308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   11309   echo $ECHO_N "(cached) $ECHO_C" >&6
   11310 else
   11311   cat >conftest.$ac_ext <<_ACEOF
   11312 #line 11312 "configure"
   11313 #include "confdefs.h"
   11314 #include <$ac_header>
   11315 _ACEOF
   11316 if { (eval echo "$as_me:11316: \"$ac_cpp conftest.$ac_ext\"") >&5
   11317   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   11318   ac_status=$?
   11319   egrep -v '^ *\+' conftest.er1 >conftest.err
   11320   rm -f conftest.er1
   11321   cat conftest.err >&5
   11322   echo "$as_me:11322: \$? = $ac_status" >&5
   11323   (exit $ac_status); } >/dev/null; then
   11324   if test -s conftest.err; then
   11325     ac_cpp_err=$ac_c_preproc_warn_flag
   11326   else
   11327     ac_cpp_err=
   11328   fi
   11329 else
   11330   ac_cpp_err=yes
   11331 fi
   11332 if test -z "$ac_cpp_err"; then
   11333   eval "$as_ac_Header=yes"
   11334 else
   11335   echo "$as_me: failed program was:" >&5
   11336   cat conftest.$ac_ext >&5
   11337   eval "$as_ac_Header=no"
   11338 fi
   11339 rm -f conftest.err conftest.$ac_ext
   11340 fi
   11341 echo "$as_me:11341: result: `eval echo '${'$as_ac_Header'}'`" >&5
   11342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   11343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   11344   cat >>confdefs.h <<EOF
   11345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   11346 EOF
   11347 
   11348 fi
   11349 done
   11350 
   11351 fi
   11352 
   11353 fi
   11354 
   11355 fi
   11356 
   11357 cf_x_athena=${cf_x_athena:-Xaw}
   11358 
   11359 echo "$as_me:11359: checking if you want to link with Xaw 3d library" >&5
   11360 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
   11361 withval=
   11362 
   11363 # Check whether --with-Xaw3d or --without-Xaw3d was given.
   11364 if test "${with_Xaw3d+set}" = set; then
   11365   withval="$with_Xaw3d"
   11366 
   11367 fi;
   11368 if test "$withval" = yes ; then
   11369 	cf_x_athena=Xaw3d
   11370 	echo "$as_me:11370: result: yes" >&5
   11371 echo "${ECHO_T}yes" >&6
   11372 else
   11373 	echo "$as_me:11373: result: no" >&5
   11374 echo "${ECHO_T}no" >&6
   11375 fi
   11376 
   11377 echo "$as_me:11377: checking if you want to link with Xaw 3d xft library" >&5
   11378 echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6
   11379 withval=
   11380 
   11381 # Check whether --with-Xaw3dxft or --without-Xaw3dxft was given.
   11382 if test "${with_Xaw3dxft+set}" = set; then
   11383   withval="$with_Xaw3dxft"
   11384 
   11385 fi;
   11386 if test "$withval" = yes ; then
   11387 	cf_x_athena=Xaw3dxft
   11388 	echo "$as_me:11388: result: yes" >&5
   11389 echo "${ECHO_T}yes" >&6
   11390 else
   11391 	echo "$as_me:11391: result: no" >&5
   11392 echo "${ECHO_T}no" >&6
   11393 fi
   11394 
   11395 echo "$as_me:11395: checking if you want to link with neXT Athena library" >&5
   11396 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
   11397 withval=
   11398 
   11399 # Check whether --with-neXtaw or --without-neXtaw was given.
   11400 if test "${with_neXtaw+set}" = set; then
   11401   withval="$with_neXtaw"
   11402 
   11403 fi;
   11404 if test "$withval" = yes ; then
   11405 	cf_x_athena=neXtaw
   11406 	echo "$as_me:11406: result: yes" >&5
   11407 echo "${ECHO_T}yes" >&6
   11408 else
   11409 	echo "$as_me:11409: result: no" >&5
   11410 echo "${ECHO_T}no" >&6
   11411 fi
   11412 
   11413 echo "$as_me:11413: checking if you want to link with Athena-Plus library" >&5
   11414 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
   11415 withval=
   11416 
   11417 # Check whether --with-XawPlus or --without-XawPlus was given.
   11418 if test "${with_XawPlus+set}" = set; then
   11419   withval="$with_XawPlus"
   11420 
   11421 fi;
   11422 if test "$withval" = yes ; then
   11423 	cf_x_athena=XawPlus
   11424 	echo "$as_me:11424: result: yes" >&5
   11425 echo "${ECHO_T}yes" >&6
   11426 else
   11427 	echo "$as_me:11427: result: no" >&5
   11428 echo "${ECHO_T}no" >&6
   11429 fi
   11430 
   11431 cf_x_athena_lib=""
   11432 
   11433 if test "$PKG_CONFIG" != none ; then
   11434 	cf_athena_list=
   11435 	test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
   11436 	for cf_athena_pkg in \
   11437 		$cf_athena_list \
   11438 		${cf_x_athena} \
   11439 		${cf_x_athena}-devel \
   11440 		lib${cf_x_athena} \
   11441 		lib${cf_x_athena}-devel
   11442 	do
   11443 
   11444 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then
   11445 	test -n "$verbose" && echo "	found package $cf_athena_pkg" 1>&6
   11446 
   11447 echo "${as_me:-configure}:11447: testing found package $cf_athena_pkg ..." 1>&5
   11448 
   11449 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`"
   11450 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   $cf_athena_pkg 2>/dev/null`"
   11451 	test -n "$verbose" && echo "	package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
   11452 
   11453 echo "${as_me:-configure}:11453: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   11454 
   11455 	test -n "$verbose" && echo "	package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
   11456 
   11457 echo "${as_me:-configure}:11457: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
   11458 
   11459 cf_fix_cppflags=no
   11460 cf_new_cflags=
   11461 cf_new_cppflags=
   11462 cf_new_extra_cppflags=
   11463 
   11464 for cf_add_cflags in $cf_pkgconfig_incs
   11465 do
   11466 case $cf_fix_cppflags in
   11467 (no)
   11468 	case $cf_add_cflags in
   11469 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   11470 		case $cf_add_cflags in
   11471 		(-D*)
   11472 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   11473 
   11474 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   11475 				&& test -z "${cf_tst_cflags}" \
   11476 				&& cf_fix_cppflags=yes
   11477 
   11478 			if test $cf_fix_cppflags = yes ; then
   11479 
   11480 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11481 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11482 
   11483 				continue
   11484 			elif test "${cf_tst_cflags}" = "\"'" ; then
   11485 
   11486 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11487 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11488 
   11489 				continue
   11490 			fi
   11491 			;;
   11492 		esac
   11493 		case "$CPPFLAGS" in
   11494 		(*$cf_add_cflags)
   11495 			;;
   11496 		(*)
   11497 			case $cf_add_cflags in
   11498 			(-D*)
   11499 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   11500 
   11501 CPPFLAGS=`echo "$CPPFLAGS" | \
   11502 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   11503 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   11504 
   11505 				;;
   11506 			esac
   11507 
   11508 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   11509 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   11510 
   11511 			;;
   11512 		esac
   11513 		;;
   11514 	(*)
   11515 
   11516 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   11517 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   11518 
   11519 		;;
   11520 	esac
   11521 	;;
   11522 (yes)
   11523 
   11524 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11525 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11526 
   11527 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   11528 
   11529 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   11530 		&& test -z "${cf_tst_cflags}" \
   11531 		&& cf_fix_cppflags=no
   11532 	;;
   11533 esac
   11534 done
   11535 
   11536 if test -n "$cf_new_cflags" ; then
   11537 
   11538 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   11539 	CFLAGS="${CFLAGS}$cf_new_cflags"
   11540 
   11541 fi
   11542 
   11543 if test -n "$cf_new_cppflags" ; then
   11544 
   11545 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   11546 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   11547 
   11548 fi
   11549 
   11550 if test -n "$cf_new_extra_cppflags" ; then
   11551 
   11552 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   11553 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   11554 
   11555 fi
   11556 
   11557 cf_add_libs="$cf_pkgconfig_libs"
   11558 # Filter out duplicates - this happens with badly-designed ".pc" files...
   11559 for cf_add_1lib in $LIBS
   11560 do
   11561 	for cf_add_2lib in $cf_add_libs
   11562 	do
   11563 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   11564 		then
   11565 			cf_add_1lib=
   11566 			break
   11567 		fi
   11568 	done
   11569 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   11570 done
   11571 LIBS="$cf_add_libs"
   11572 
   11573 			cf_x_athena_lib="$cf_pkgconfig_libs"
   11574 
   11575 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   11576 
   11577 			cat >>confdefs.h <<EOF
   11578 #define $cf_x_athena_LIBS 1
   11579 EOF
   11580 
   11581 	for cf_trim_lib in Xmu Xt X11
   11582 	do
   11583 		case "$LIBS" in
   11584 		(*-l$cf_trim_lib\ *-l$cf_trim_lib*)
   11585 			LIBS=`echo "$LIBS " | sed -e 's/  / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
   11586 			test -n "$verbose" && echo "	..trimmed $LIBS" 1>&6
   11587 
   11588 echo "${as_me:-configure}:11588: testing ..trimmed $LIBS ..." 1>&5
   11589 
   11590 			;;
   11591 		esac
   11592 	done
   11593 
   11594 echo "$as_me:11594: checking for usable $cf_x_athena/Xmu package" >&5
   11595 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
   11596 if test "${cf_cv_xaw_compat+set}" = set; then
   11597   echo $ECHO_N "(cached) $ECHO_C" >&6
   11598 else
   11599 
   11600 cat >conftest.$ac_ext <<_ACEOF
   11601 #line 11601 "configure"
   11602 #include "confdefs.h"
   11603 
   11604 #include <X11/Xmu/CharSet.h>
   11605 
   11606 int
   11607 main (void)
   11608 {
   11609 
   11610 int check = XmuCompareISOLatin1("big", "small")
   11611 
   11612   ;
   11613   return 0;
   11614 }
   11615 _ACEOF
   11616 rm -f conftest.$ac_objext conftest$ac_exeext
   11617 if { (eval echo "$as_me:11617: \"$ac_link\"") >&5
   11618   (eval $ac_link) 2>&5
   11619   ac_status=$?
   11620   echo "$as_me:11620: \$? = $ac_status" >&5
   11621   (exit $ac_status); } &&
   11622          { ac_try='test -s conftest$ac_exeext'
   11623   { (eval echo "$as_me:11623: \"$ac_try\"") >&5
   11624   (eval $ac_try) 2>&5
   11625   ac_status=$?
   11626   echo "$as_me:11626: \$? = $ac_status" >&5
   11627   (exit $ac_status); }; }; then
   11628   cf_cv_xaw_compat=yes
   11629 else
   11630   echo "$as_me: failed program was:" >&5
   11631 cat conftest.$ac_ext >&5
   11632 cf_cv_xaw_compat=no
   11633 fi
   11634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   11635 fi
   11636 echo "$as_me:11636: result: $cf_cv_xaw_compat" >&5
   11637 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
   11638 
   11639 			if test "$cf_cv_xaw_compat" = no
   11640 			then
   11641 				# workaround for broken ".pc" files...
   11642 				case "$cf_x_athena_lib" in
   11643 				(*-lXmu*)
   11644 					;;
   11645 				(*)
   11646 					test -n "$verbose" && echo "	work around broken package" 1>&6
   11647 
   11648 echo "${as_me:-configure}:11648: testing work around broken package ..." 1>&5
   11649 
   11650 					cf_save_xmu="$LIBS"
   11651 					cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^  *//' -e 's/ .*//'`
   11652 
   11653 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then
   11654 	test -n "$verbose" && echo "	found package xmu" 1>&6
   11655 
   11656 echo "${as_me:-configure}:11656: testing found package xmu ..." 1>&5
   11657 
   11658 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`"
   11659 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   xmu 2>/dev/null`"
   11660 	test -n "$verbose" && echo "	package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
   11661 
   11662 echo "${as_me:-configure}:11662: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   11663 
   11664 	test -n "$verbose" && echo "	package xmu LIBS: $cf_pkgconfig_libs" 1>&6
   11665 
   11666 echo "${as_me:-configure}:11666: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
   11667 
   11668 cf_fix_cppflags=no
   11669 cf_new_cflags=
   11670 cf_new_cppflags=
   11671 cf_new_extra_cppflags=
   11672 
   11673 for cf_add_cflags in $cf_pkgconfig_incs
   11674 do
   11675 case $cf_fix_cppflags in
   11676 (no)
   11677 	case $cf_add_cflags in
   11678 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   11679 		case $cf_add_cflags in
   11680 		(-D*)
   11681 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   11682 
   11683 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   11684 				&& test -z "${cf_tst_cflags}" \
   11685 				&& cf_fix_cppflags=yes
   11686 
   11687 			if test $cf_fix_cppflags = yes ; then
   11688 
   11689 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11690 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11691 
   11692 				continue
   11693 			elif test "${cf_tst_cflags}" = "\"'" ; then
   11694 
   11695 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11696 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11697 
   11698 				continue
   11699 			fi
   11700 			;;
   11701 		esac
   11702 		case "$CPPFLAGS" in
   11703 		(*$cf_add_cflags)
   11704 			;;
   11705 		(*)
   11706 			case $cf_add_cflags in
   11707 			(-D*)
   11708 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   11709 
   11710 CPPFLAGS=`echo "$CPPFLAGS" | \
   11711 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   11712 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   11713 
   11714 				;;
   11715 			esac
   11716 
   11717 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   11718 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   11719 
   11720 			;;
   11721 		esac
   11722 		;;
   11723 	(*)
   11724 
   11725 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   11726 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   11727 
   11728 		;;
   11729 	esac
   11730 	;;
   11731 (yes)
   11732 
   11733 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11734 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11735 
   11736 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   11737 
   11738 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   11739 		&& test -z "${cf_tst_cflags}" \
   11740 		&& cf_fix_cppflags=no
   11741 	;;
   11742 esac
   11743 done
   11744 
   11745 if test -n "$cf_new_cflags" ; then
   11746 
   11747 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   11748 	CFLAGS="${CFLAGS}$cf_new_cflags"
   11749 
   11750 fi
   11751 
   11752 if test -n "$cf_new_cppflags" ; then
   11753 
   11754 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   11755 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   11756 
   11757 fi
   11758 
   11759 if test -n "$cf_new_extra_cppflags" ; then
   11760 
   11761 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   11762 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   11763 
   11764 fi
   11765 
   11766 cf_add_libs="$cf_pkgconfig_libs"
   11767 # Filter out duplicates - this happens with badly-designed ".pc" files...
   11768 for cf_add_1lib in $LIBS
   11769 do
   11770 	for cf_add_2lib in $cf_add_libs
   11771 	do
   11772 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   11773 		then
   11774 			cf_add_1lib=
   11775 			break
   11776 		fi
   11777 	done
   11778 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   11779 done
   11780 LIBS="$cf_add_libs"
   11781 
   11782 							LIBS="$cf_save_xmu"
   11783 
   11784 test -n "$verbose" && echo "	...before $LIBS" 1>&6
   11785 
   11786 echo "${as_me:-configure}:11786: testing ...before $LIBS ..." 1>&5
   11787 
   11788 LIBS=`echo "$LIBS" | sed -e "s/[ 	][ 	]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's%  % %g'`
   11789 test -n "$verbose" && echo "	...after  $LIBS" 1>&6
   11790 
   11791 echo "${as_me:-configure}:11791: testing ...after  $LIBS ..." 1>&5
   11792 
   11793 else
   11794 	cf_pkgconfig_incs=
   11795 	cf_pkgconfig_libs=
   11796 
   11797 test -n "$verbose" && echo "	...before $LIBS" 1>&6
   11798 
   11799 echo "${as_me:-configure}:11799: testing ...before $LIBS ..." 1>&5
   11800 
   11801 LIBS=`echo "$LIBS" | sed -e "s/[ 	][ 	]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's%  % %g'`
   11802 test -n "$verbose" && echo "	...after  $LIBS" 1>&6
   11803 
   11804 echo "${as_me:-configure}:11804: testing ...after  $LIBS ..." 1>&5
   11805 
   11806 fi
   11807 
   11808 	for cf_trim_lib in Xmu Xt X11
   11809 	do
   11810 		case "$LIBS" in
   11811 		(*-l$cf_trim_lib\ *-l$cf_trim_lib*)
   11812 			LIBS=`echo "$LIBS " | sed -e 's/  / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
   11813 			test -n "$verbose" && echo "	..trimmed $LIBS" 1>&6
   11814 
   11815 echo "${as_me:-configure}:11815: testing ..trimmed $LIBS ..." 1>&5
   11816 
   11817 			;;
   11818 		esac
   11819 	done
   11820 
   11821 					;;
   11822 				esac
   11823 			fi
   11824 
   11825 			break
   11826 else
   11827 	cf_pkgconfig_incs=
   11828 	cf_pkgconfig_libs=
   11829 	:
   11830 fi
   11831 
   11832 	done
   11833 fi
   11834 
   11835 if test -z "$cf_x_athena_lib" ; then
   11836 
   11837 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
   11838 	test -n "$verbose" && echo "	found package Xext" 1>&6
   11839 
   11840 echo "${as_me:-configure}:11840: testing found package Xext ..." 1>&5
   11841 
   11842 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
   11843 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   Xext 2>/dev/null`"
   11844 	test -n "$verbose" && echo "	package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
   11845 
   11846 echo "${as_me:-configure}:11846: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   11847 
   11848 	test -n "$verbose" && echo "	package Xext LIBS: $cf_pkgconfig_libs" 1>&6
   11849 
   11850 echo "${as_me:-configure}:11850: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
   11851 
   11852 cf_fix_cppflags=no
   11853 cf_new_cflags=
   11854 cf_new_cppflags=
   11855 cf_new_extra_cppflags=
   11856 
   11857 for cf_add_cflags in $cf_pkgconfig_incs
   11858 do
   11859 case $cf_fix_cppflags in
   11860 (no)
   11861 	case $cf_add_cflags in
   11862 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   11863 		case $cf_add_cflags in
   11864 		(-D*)
   11865 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   11866 
   11867 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   11868 				&& test -z "${cf_tst_cflags}" \
   11869 				&& cf_fix_cppflags=yes
   11870 
   11871 			if test $cf_fix_cppflags = yes ; then
   11872 
   11873 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11874 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11875 
   11876 				continue
   11877 			elif test "${cf_tst_cflags}" = "\"'" ; then
   11878 
   11879 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11880 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11881 
   11882 				continue
   11883 			fi
   11884 			;;
   11885 		esac
   11886 		case "$CPPFLAGS" in
   11887 		(*$cf_add_cflags)
   11888 			;;
   11889 		(*)
   11890 			case $cf_add_cflags in
   11891 			(-D*)
   11892 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   11893 
   11894 CPPFLAGS=`echo "$CPPFLAGS" | \
   11895 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   11896 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   11897 
   11898 				;;
   11899 			esac
   11900 
   11901 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   11902 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   11903 
   11904 			;;
   11905 		esac
   11906 		;;
   11907 	(*)
   11908 
   11909 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   11910 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   11911 
   11912 		;;
   11913 	esac
   11914 	;;
   11915 (yes)
   11916 
   11917 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   11918 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   11919 
   11920 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   11921 
   11922 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   11923 		&& test -z "${cf_tst_cflags}" \
   11924 		&& cf_fix_cppflags=no
   11925 	;;
   11926 esac
   11927 done
   11928 
   11929 if test -n "$cf_new_cflags" ; then
   11930 
   11931 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   11932 	CFLAGS="${CFLAGS}$cf_new_cflags"
   11933 
   11934 fi
   11935 
   11936 if test -n "$cf_new_cppflags" ; then
   11937 
   11938 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   11939 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   11940 
   11941 fi
   11942 
   11943 if test -n "$cf_new_extra_cppflags" ; then
   11944 
   11945 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   11946 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   11947 
   11948 fi
   11949 
   11950 cf_add_libs="$cf_pkgconfig_libs"
   11951 # Filter out duplicates - this happens with badly-designed ".pc" files...
   11952 for cf_add_1lib in $LIBS
   11953 do
   11954 	for cf_add_2lib in $cf_add_libs
   11955 	do
   11956 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   11957 		then
   11958 			cf_add_1lib=
   11959 			break
   11960 		fi
   11961 	done
   11962 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   11963 done
   11964 LIBS="$cf_add_libs"
   11965 
   11966 	:
   11967 else
   11968 	cf_pkgconfig_incs=
   11969 	cf_pkgconfig_libs=
   11970 
   11971 	echo "$as_me:11971: checking for XextCreateExtension in -lXext" >&5
   11972 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
   11973 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
   11974   echo $ECHO_N "(cached) $ECHO_C" >&6
   11975 else
   11976   ac_check_lib_save_LIBS=$LIBS
   11977 LIBS="-lXext  $LIBS"
   11978 cat >conftest.$ac_ext <<_ACEOF
   11979 #line 11979 "configure"
   11980 #include "confdefs.h"
   11981 
   11982 /* Override any gcc2 internal prototype to avoid an error.  */
   11983 #ifdef __cplusplus
   11984 extern "C"
   11985 #endif
   11986 /* We use char because int might match the return type of a gcc2
   11987    builtin and then its argument prototype would still apply.  */
   11988 char XextCreateExtension ();
   11989 int
   11990 main (void)
   11991 {
   11992 XextCreateExtension ();
   11993   ;
   11994   return 0;
   11995 }
   11996 _ACEOF
   11997 rm -f conftest.$ac_objext conftest$ac_exeext
   11998 if { (eval echo "$as_me:11998: \"$ac_link\"") >&5
   11999   (eval $ac_link) 2>&5
   12000   ac_status=$?
   12001   echo "$as_me:12001: \$? = $ac_status" >&5
   12002   (exit $ac_status); } &&
   12003          { ac_try='test -s conftest$ac_exeext'
   12004   { (eval echo "$as_me:12004: \"$ac_try\"") >&5
   12005   (eval $ac_try) 2>&5
   12006   ac_status=$?
   12007   echo "$as_me:12007: \$? = $ac_status" >&5
   12008   (exit $ac_status); }; }; then
   12009   ac_cv_lib_Xext_XextCreateExtension=yes
   12010 else
   12011   echo "$as_me: failed program was:" >&5
   12012 cat conftest.$ac_ext >&5
   12013 ac_cv_lib_Xext_XextCreateExtension=no
   12014 fi
   12015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   12016 LIBS=$ac_check_lib_save_LIBS
   12017 fi
   12018 echo "$as_me:12018: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
   12019 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
   12020 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
   12021 
   12022 cf_add_libs="-lXext"
   12023 # Filter out duplicates - this happens with badly-designed ".pc" files...
   12024 for cf_add_1lib in $LIBS
   12025 do
   12026 	for cf_add_2lib in $cf_add_libs
   12027 	do
   12028 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   12029 		then
   12030 			cf_add_1lib=
   12031 			break
   12032 		fi
   12033 	done
   12034 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   12035 done
   12036 LIBS="$cf_add_libs"
   12037 
   12038 fi
   12039 
   12040 fi
   12041 
   12042 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new), and (and
   12043 # in some cases has installed dummy files in the former, other cases replaced
   12044 # it with a link to the new location).  This complicates the configure script.
   12045 # Check for that pitfall, and recover using pkg-config
   12046 #
   12047 # If none of these are set, the configuration is almost certainly broken.
   12048 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
   12049 then
   12050 
   12051 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
   12052 	test -n "$verbose" && echo "	found package x11" 1>&6
   12053 
   12054 echo "${as_me:-configure}:12054: testing found package x11 ..." 1>&5
   12055 
   12056 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
   12057 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   x11 2>/dev/null`"
   12058 	test -n "$verbose" && echo "	package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
   12059 
   12060 echo "${as_me:-configure}:12060: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   12061 
   12062 	test -n "$verbose" && echo "	package x11 LIBS: $cf_pkgconfig_libs" 1>&6
   12063 
   12064 echo "${as_me:-configure}:12064: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
   12065 
   12066 cf_fix_cppflags=no
   12067 cf_new_cflags=
   12068 cf_new_cppflags=
   12069 cf_new_extra_cppflags=
   12070 
   12071 for cf_add_cflags in $cf_pkgconfig_incs
   12072 do
   12073 case $cf_fix_cppflags in
   12074 (no)
   12075 	case $cf_add_cflags in
   12076 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   12077 		case $cf_add_cflags in
   12078 		(-D*)
   12079 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   12080 
   12081 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   12082 				&& test -z "${cf_tst_cflags}" \
   12083 				&& cf_fix_cppflags=yes
   12084 
   12085 			if test $cf_fix_cppflags = yes ; then
   12086 
   12087 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12088 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12089 
   12090 				continue
   12091 			elif test "${cf_tst_cflags}" = "\"'" ; then
   12092 
   12093 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12094 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12095 
   12096 				continue
   12097 			fi
   12098 			;;
   12099 		esac
   12100 		case "$CPPFLAGS" in
   12101 		(*$cf_add_cflags)
   12102 			;;
   12103 		(*)
   12104 			case $cf_add_cflags in
   12105 			(-D*)
   12106 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   12107 
   12108 CPPFLAGS=`echo "$CPPFLAGS" | \
   12109 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   12110 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   12111 
   12112 				;;
   12113 			esac
   12114 
   12115 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   12116 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   12117 
   12118 			;;
   12119 		esac
   12120 		;;
   12121 	(*)
   12122 
   12123 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   12124 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   12125 
   12126 		;;
   12127 	esac
   12128 	;;
   12129 (yes)
   12130 
   12131 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12132 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12133 
   12134 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   12135 
   12136 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   12137 		&& test -z "${cf_tst_cflags}" \
   12138 		&& cf_fix_cppflags=no
   12139 	;;
   12140 esac
   12141 done
   12142 
   12143 if test -n "$cf_new_cflags" ; then
   12144 
   12145 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   12146 	CFLAGS="${CFLAGS}$cf_new_cflags"
   12147 
   12148 fi
   12149 
   12150 if test -n "$cf_new_cppflags" ; then
   12151 
   12152 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   12153 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   12154 
   12155 fi
   12156 
   12157 if test -n "$cf_new_extra_cppflags" ; then
   12158 
   12159 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   12160 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   12161 
   12162 fi
   12163 
   12164 cf_add_libs="$cf_pkgconfig_libs"
   12165 # Filter out duplicates - this happens with badly-designed ".pc" files...
   12166 for cf_add_1lib in $LIBS
   12167 do
   12168 	for cf_add_2lib in $cf_add_libs
   12169 	do
   12170 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   12171 		then
   12172 			cf_add_1lib=
   12173 			break
   12174 		fi
   12175 	done
   12176 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   12177 done
   12178 LIBS="$cf_add_libs"
   12179 
   12180 	:
   12181 else
   12182 	cf_pkgconfig_incs=
   12183 	cf_pkgconfig_libs=
   12184 	{ echo "$as_me:12184: WARNING: unable to find X11 library" >&5
   12185 echo "$as_me: WARNING: unable to find X11 library" >&2;}
   12186 fi
   12187 
   12188 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
   12189 	test -n "$verbose" && echo "	found package ice" 1>&6
   12190 
   12191 echo "${as_me:-configure}:12191: testing found package ice ..." 1>&5
   12192 
   12193 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
   12194 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   ice 2>/dev/null`"
   12195 	test -n "$verbose" && echo "	package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
   12196 
   12197 echo "${as_me:-configure}:12197: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   12198 
   12199 	test -n "$verbose" && echo "	package ice LIBS: $cf_pkgconfig_libs" 1>&6
   12200 
   12201 echo "${as_me:-configure}:12201: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
   12202 
   12203 cf_fix_cppflags=no
   12204 cf_new_cflags=
   12205 cf_new_cppflags=
   12206 cf_new_extra_cppflags=
   12207 
   12208 for cf_add_cflags in $cf_pkgconfig_incs
   12209 do
   12210 case $cf_fix_cppflags in
   12211 (no)
   12212 	case $cf_add_cflags in
   12213 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   12214 		case $cf_add_cflags in
   12215 		(-D*)
   12216 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   12217 
   12218 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   12219 				&& test -z "${cf_tst_cflags}" \
   12220 				&& cf_fix_cppflags=yes
   12221 
   12222 			if test $cf_fix_cppflags = yes ; then
   12223 
   12224 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12225 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12226 
   12227 				continue
   12228 			elif test "${cf_tst_cflags}" = "\"'" ; then
   12229 
   12230 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12231 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12232 
   12233 				continue
   12234 			fi
   12235 			;;
   12236 		esac
   12237 		case "$CPPFLAGS" in
   12238 		(*$cf_add_cflags)
   12239 			;;
   12240 		(*)
   12241 			case $cf_add_cflags in
   12242 			(-D*)
   12243 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   12244 
   12245 CPPFLAGS=`echo "$CPPFLAGS" | \
   12246 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   12247 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   12248 
   12249 				;;
   12250 			esac
   12251 
   12252 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   12253 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   12254 
   12255 			;;
   12256 		esac
   12257 		;;
   12258 	(*)
   12259 
   12260 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   12261 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   12262 
   12263 		;;
   12264 	esac
   12265 	;;
   12266 (yes)
   12267 
   12268 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12269 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12270 
   12271 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   12272 
   12273 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   12274 		&& test -z "${cf_tst_cflags}" \
   12275 		&& cf_fix_cppflags=no
   12276 	;;
   12277 esac
   12278 done
   12279 
   12280 if test -n "$cf_new_cflags" ; then
   12281 
   12282 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   12283 	CFLAGS="${CFLAGS}$cf_new_cflags"
   12284 
   12285 fi
   12286 
   12287 if test -n "$cf_new_cppflags" ; then
   12288 
   12289 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   12290 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   12291 
   12292 fi
   12293 
   12294 if test -n "$cf_new_extra_cppflags" ; then
   12295 
   12296 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   12297 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   12298 
   12299 fi
   12300 
   12301 cf_add_libs="$cf_pkgconfig_libs"
   12302 # Filter out duplicates - this happens with badly-designed ".pc" files...
   12303 for cf_add_1lib in $LIBS
   12304 do
   12305 	for cf_add_2lib in $cf_add_libs
   12306 	do
   12307 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   12308 		then
   12309 			cf_add_1lib=
   12310 			break
   12311 		fi
   12312 	done
   12313 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   12314 done
   12315 LIBS="$cf_add_libs"
   12316 
   12317 	:
   12318 else
   12319 	cf_pkgconfig_incs=
   12320 	cf_pkgconfig_libs=
   12321 	{ echo "$as_me:12321: WARNING: unable to find ICE library" >&5
   12322 echo "$as_me: WARNING: unable to find ICE library" >&2;}
   12323 fi
   12324 
   12325 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
   12326 	test -n "$verbose" && echo "	found package sm" 1>&6
   12327 
   12328 echo "${as_me:-configure}:12328: testing found package sm ..." 1>&5
   12329 
   12330 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
   12331 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   sm 2>/dev/null`"
   12332 	test -n "$verbose" && echo "	package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
   12333 
   12334 echo "${as_me:-configure}:12334: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   12335 
   12336 	test -n "$verbose" && echo "	package sm LIBS: $cf_pkgconfig_libs" 1>&6
   12337 
   12338 echo "${as_me:-configure}:12338: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
   12339 
   12340 cf_fix_cppflags=no
   12341 cf_new_cflags=
   12342 cf_new_cppflags=
   12343 cf_new_extra_cppflags=
   12344 
   12345 for cf_add_cflags in $cf_pkgconfig_incs
   12346 do
   12347 case $cf_fix_cppflags in
   12348 (no)
   12349 	case $cf_add_cflags in
   12350 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   12351 		case $cf_add_cflags in
   12352 		(-D*)
   12353 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   12354 
   12355 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   12356 				&& test -z "${cf_tst_cflags}" \
   12357 				&& cf_fix_cppflags=yes
   12358 
   12359 			if test $cf_fix_cppflags = yes ; then
   12360 
   12361 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12362 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12363 
   12364 				continue
   12365 			elif test "${cf_tst_cflags}" = "\"'" ; then
   12366 
   12367 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12368 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12369 
   12370 				continue
   12371 			fi
   12372 			;;
   12373 		esac
   12374 		case "$CPPFLAGS" in
   12375 		(*$cf_add_cflags)
   12376 			;;
   12377 		(*)
   12378 			case $cf_add_cflags in
   12379 			(-D*)
   12380 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   12381 
   12382 CPPFLAGS=`echo "$CPPFLAGS" | \
   12383 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   12384 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   12385 
   12386 				;;
   12387 			esac
   12388 
   12389 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   12390 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   12391 
   12392 			;;
   12393 		esac
   12394 		;;
   12395 	(*)
   12396 
   12397 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   12398 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   12399 
   12400 		;;
   12401 	esac
   12402 	;;
   12403 (yes)
   12404 
   12405 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12406 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12407 
   12408 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   12409 
   12410 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   12411 		&& test -z "${cf_tst_cflags}" \
   12412 		&& cf_fix_cppflags=no
   12413 	;;
   12414 esac
   12415 done
   12416 
   12417 if test -n "$cf_new_cflags" ; then
   12418 
   12419 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   12420 	CFLAGS="${CFLAGS}$cf_new_cflags"
   12421 
   12422 fi
   12423 
   12424 if test -n "$cf_new_cppflags" ; then
   12425 
   12426 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   12427 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   12428 
   12429 fi
   12430 
   12431 if test -n "$cf_new_extra_cppflags" ; then
   12432 
   12433 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   12434 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   12435 
   12436 fi
   12437 
   12438 cf_add_libs="$cf_pkgconfig_libs"
   12439 # Filter out duplicates - this happens with badly-designed ".pc" files...
   12440 for cf_add_1lib in $LIBS
   12441 do
   12442 	for cf_add_2lib in $cf_add_libs
   12443 	do
   12444 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   12445 		then
   12446 			cf_add_1lib=
   12447 			break
   12448 		fi
   12449 	done
   12450 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   12451 done
   12452 LIBS="$cf_add_libs"
   12453 
   12454 	:
   12455 else
   12456 	cf_pkgconfig_incs=
   12457 	cf_pkgconfig_libs=
   12458 	{ echo "$as_me:12458: WARNING: unable to find SM library" >&5
   12459 echo "$as_me: WARNING: unable to find SM library" >&2;}
   12460 fi
   12461 
   12462 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
   12463 	test -n "$verbose" && echo "	found package xt" 1>&6
   12464 
   12465 echo "${as_me:-configure}:12465: testing found package xt ..." 1>&5
   12466 
   12467 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
   12468 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   xt 2>/dev/null`"
   12469 	test -n "$verbose" && echo "	package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
   12470 
   12471 echo "${as_me:-configure}:12471: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   12472 
   12473 	test -n "$verbose" && echo "	package xt LIBS: $cf_pkgconfig_libs" 1>&6
   12474 
   12475 echo "${as_me:-configure}:12475: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
   12476 
   12477 cf_fix_cppflags=no
   12478 cf_new_cflags=
   12479 cf_new_cppflags=
   12480 cf_new_extra_cppflags=
   12481 
   12482 for cf_add_cflags in $cf_pkgconfig_incs
   12483 do
   12484 case $cf_fix_cppflags in
   12485 (no)
   12486 	case $cf_add_cflags in
   12487 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   12488 		case $cf_add_cflags in
   12489 		(-D*)
   12490 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   12491 
   12492 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   12493 				&& test -z "${cf_tst_cflags}" \
   12494 				&& cf_fix_cppflags=yes
   12495 
   12496 			if test $cf_fix_cppflags = yes ; then
   12497 
   12498 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12499 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12500 
   12501 				continue
   12502 			elif test "${cf_tst_cflags}" = "\"'" ; then
   12503 
   12504 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12505 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12506 
   12507 				continue
   12508 			fi
   12509 			;;
   12510 		esac
   12511 		case "$CPPFLAGS" in
   12512 		(*$cf_add_cflags)
   12513 			;;
   12514 		(*)
   12515 			case $cf_add_cflags in
   12516 			(-D*)
   12517 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   12518 
   12519 CPPFLAGS=`echo "$CPPFLAGS" | \
   12520 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   12521 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   12522 
   12523 				;;
   12524 			esac
   12525 
   12526 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   12527 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   12528 
   12529 			;;
   12530 		esac
   12531 		;;
   12532 	(*)
   12533 
   12534 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   12535 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   12536 
   12537 		;;
   12538 	esac
   12539 	;;
   12540 (yes)
   12541 
   12542 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12543 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12544 
   12545 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   12546 
   12547 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   12548 		&& test -z "${cf_tst_cflags}" \
   12549 		&& cf_fix_cppflags=no
   12550 	;;
   12551 esac
   12552 done
   12553 
   12554 if test -n "$cf_new_cflags" ; then
   12555 
   12556 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   12557 	CFLAGS="${CFLAGS}$cf_new_cflags"
   12558 
   12559 fi
   12560 
   12561 if test -n "$cf_new_cppflags" ; then
   12562 
   12563 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   12564 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   12565 
   12566 fi
   12567 
   12568 if test -n "$cf_new_extra_cppflags" ; then
   12569 
   12570 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   12571 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   12572 
   12573 fi
   12574 
   12575 cf_add_libs="$cf_pkgconfig_libs"
   12576 # Filter out duplicates - this happens with badly-designed ".pc" files...
   12577 for cf_add_1lib in $LIBS
   12578 do
   12579 	for cf_add_2lib in $cf_add_libs
   12580 	do
   12581 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   12582 		then
   12583 			cf_add_1lib=
   12584 			break
   12585 		fi
   12586 	done
   12587 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   12588 done
   12589 LIBS="$cf_add_libs"
   12590 
   12591 	:
   12592 else
   12593 	cf_pkgconfig_incs=
   12594 	cf_pkgconfig_libs=
   12595 	{ echo "$as_me:12595: WARNING: unable to find Xt library" >&5
   12596 echo "$as_me: WARNING: unable to find Xt library" >&2;}
   12597 fi
   12598 
   12599 fi
   12600 
   12601 cf_have_X_LIBS=no
   12602 
   12603 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
   12604 	test -n "$verbose" && echo "	found package xt" 1>&6
   12605 
   12606 echo "${as_me:-configure}:12606: testing found package xt ..." 1>&5
   12607 
   12608 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
   12609 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   xt 2>/dev/null`"
   12610 	test -n "$verbose" && echo "	package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
   12611 
   12612 echo "${as_me:-configure}:12612: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   12613 
   12614 	test -n "$verbose" && echo "	package xt LIBS: $cf_pkgconfig_libs" 1>&6
   12615 
   12616 echo "${as_me:-configure}:12616: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
   12617 
   12618 cf_fix_cppflags=no
   12619 cf_new_cflags=
   12620 cf_new_cppflags=
   12621 cf_new_extra_cppflags=
   12622 
   12623 for cf_add_cflags in $cf_pkgconfig_incs
   12624 do
   12625 case $cf_fix_cppflags in
   12626 (no)
   12627 	case $cf_add_cflags in
   12628 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   12629 		case $cf_add_cflags in
   12630 		(-D*)
   12631 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   12632 
   12633 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   12634 				&& test -z "${cf_tst_cflags}" \
   12635 				&& cf_fix_cppflags=yes
   12636 
   12637 			if test $cf_fix_cppflags = yes ; then
   12638 
   12639 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12640 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12641 
   12642 				continue
   12643 			elif test "${cf_tst_cflags}" = "\"'" ; then
   12644 
   12645 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12646 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12647 
   12648 				continue
   12649 			fi
   12650 			;;
   12651 		esac
   12652 		case "$CPPFLAGS" in
   12653 		(*$cf_add_cflags)
   12654 			;;
   12655 		(*)
   12656 			case $cf_add_cflags in
   12657 			(-D*)
   12658 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   12659 
   12660 CPPFLAGS=`echo "$CPPFLAGS" | \
   12661 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   12662 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   12663 
   12664 				;;
   12665 			esac
   12666 
   12667 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   12668 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   12669 
   12670 			;;
   12671 		esac
   12672 		;;
   12673 	(*)
   12674 
   12675 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   12676 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   12677 
   12678 		;;
   12679 	esac
   12680 	;;
   12681 (yes)
   12682 
   12683 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12684 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12685 
   12686 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   12687 
   12688 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   12689 		&& test -z "${cf_tst_cflags}" \
   12690 		&& cf_fix_cppflags=no
   12691 	;;
   12692 esac
   12693 done
   12694 
   12695 if test -n "$cf_new_cflags" ; then
   12696 
   12697 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   12698 	CFLAGS="${CFLAGS}$cf_new_cflags"
   12699 
   12700 fi
   12701 
   12702 if test -n "$cf_new_cppflags" ; then
   12703 
   12704 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   12705 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   12706 
   12707 fi
   12708 
   12709 if test -n "$cf_new_extra_cppflags" ; then
   12710 
   12711 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   12712 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   12713 
   12714 fi
   12715 
   12716 cf_add_libs="$cf_pkgconfig_libs"
   12717 # Filter out duplicates - this happens with badly-designed ".pc" files...
   12718 for cf_add_1lib in $LIBS
   12719 do
   12720 	for cf_add_2lib in $cf_add_libs
   12721 	do
   12722 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   12723 		then
   12724 			cf_add_1lib=
   12725 			break
   12726 		fi
   12727 	done
   12728 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   12729 done
   12730 LIBS="$cf_add_libs"
   12731 
   12732 	case "x$LIBS" in
   12733 	(*-lX11*)
   12734 		;;
   12735 	(*)
   12736 # we have an "xt" package, but it may omit Xt's dependency on X11
   12737 echo "$as_me:12737: checking for usable X dependency" >&5
   12738 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
   12739 if test "${cf_cv_xt_x11_compat+set}" = set; then
   12740   echo $ECHO_N "(cached) $ECHO_C" >&6
   12741 else
   12742 
   12743 cat >conftest.$ac_ext <<_ACEOF
   12744 #line 12744 "configure"
   12745 #include "confdefs.h"
   12746 
   12747 #include <X11/Xlib.h>
   12748 
   12749 int
   12750 main (void)
   12751 {
   12752 
   12753 	int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
   12754 	int rc2 = XClearWindow((Display*) 0, (Window) 0);
   12755 	int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
   12756 	int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
   12757 
   12758   ;
   12759   return 0;
   12760 }
   12761 _ACEOF
   12762 rm -f conftest.$ac_objext conftest$ac_exeext
   12763 if { (eval echo "$as_me:12763: \"$ac_link\"") >&5
   12764   (eval $ac_link) 2>&5
   12765   ac_status=$?
   12766   echo "$as_me:12766: \$? = $ac_status" >&5
   12767   (exit $ac_status); } &&
   12768          { ac_try='test -s conftest$ac_exeext'
   12769   { (eval echo "$as_me:12769: \"$ac_try\"") >&5
   12770   (eval $ac_try) 2>&5
   12771   ac_status=$?
   12772   echo "$as_me:12772: \$? = $ac_status" >&5
   12773   (exit $ac_status); }; }; then
   12774   cf_cv_xt_x11_compat=yes
   12775 else
   12776   echo "$as_me: failed program was:" >&5
   12777 cat conftest.$ac_ext >&5
   12778 cf_cv_xt_x11_compat=no
   12779 fi
   12780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   12781 fi
   12782 echo "$as_me:12782: result: $cf_cv_xt_x11_compat" >&5
   12783 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
   12784 		if test "$cf_cv_xt_x11_compat" = no
   12785 		then
   12786 			test -n "$verbose" && echo "	work around broken X11 dependency" 1>&6
   12787 
   12788 echo "${as_me:-configure}:12788: testing work around broken X11 dependency ..." 1>&5
   12789 
   12790 			# 2010/11/19 - good enough until a working Xt on Xcb is delivered.
   12791 
   12792 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
   12793 	test -n "$verbose" && echo "	found package x11" 1>&6
   12794 
   12795 echo "${as_me:-configure}:12795: testing found package x11 ..." 1>&5
   12796 
   12797 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
   12798 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   x11 2>/dev/null`"
   12799 	test -n "$verbose" && echo "	package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
   12800 
   12801 echo "${as_me:-configure}:12801: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   12802 
   12803 	test -n "$verbose" && echo "	package x11 LIBS: $cf_pkgconfig_libs" 1>&6
   12804 
   12805 echo "${as_me:-configure}:12805: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
   12806 
   12807 cf_fix_cppflags=no
   12808 cf_new_cflags=
   12809 cf_new_cppflags=
   12810 cf_new_extra_cppflags=
   12811 
   12812 for cf_add_cflags in $cf_pkgconfig_incs
   12813 do
   12814 case $cf_fix_cppflags in
   12815 (no)
   12816 	case $cf_add_cflags in
   12817 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   12818 		case $cf_add_cflags in
   12819 		(-D*)
   12820 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   12821 
   12822 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   12823 				&& test -z "${cf_tst_cflags}" \
   12824 				&& cf_fix_cppflags=yes
   12825 
   12826 			if test $cf_fix_cppflags = yes ; then
   12827 
   12828 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12829 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12830 
   12831 				continue
   12832 			elif test "${cf_tst_cflags}" = "\"'" ; then
   12833 
   12834 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12835 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12836 
   12837 				continue
   12838 			fi
   12839 			;;
   12840 		esac
   12841 		case "$CPPFLAGS" in
   12842 		(*$cf_add_cflags)
   12843 			;;
   12844 		(*)
   12845 			case $cf_add_cflags in
   12846 			(-D*)
   12847 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   12848 
   12849 CPPFLAGS=`echo "$CPPFLAGS" | \
   12850 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   12851 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   12852 
   12853 				;;
   12854 			esac
   12855 
   12856 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   12857 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   12858 
   12859 			;;
   12860 		esac
   12861 		;;
   12862 	(*)
   12863 
   12864 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   12865 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   12866 
   12867 		;;
   12868 	esac
   12869 	;;
   12870 (yes)
   12871 
   12872 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   12873 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   12874 
   12875 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   12876 
   12877 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   12878 		&& test -z "${cf_tst_cflags}" \
   12879 		&& cf_fix_cppflags=no
   12880 	;;
   12881 esac
   12882 done
   12883 
   12884 if test -n "$cf_new_cflags" ; then
   12885 
   12886 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   12887 	CFLAGS="${CFLAGS}$cf_new_cflags"
   12888 
   12889 fi
   12890 
   12891 if test -n "$cf_new_cppflags" ; then
   12892 
   12893 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   12894 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   12895 
   12896 fi
   12897 
   12898 if test -n "$cf_new_extra_cppflags" ; then
   12899 
   12900 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   12901 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   12902 
   12903 fi
   12904 
   12905 cf_add_libs="$cf_pkgconfig_libs"
   12906 # Filter out duplicates - this happens with badly-designed ".pc" files...
   12907 for cf_add_1lib in $LIBS
   12908 do
   12909 	for cf_add_2lib in $cf_add_libs
   12910 	do
   12911 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   12912 		then
   12913 			cf_add_1lib=
   12914 			break
   12915 		fi
   12916 	done
   12917 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   12918 done
   12919 LIBS="$cf_add_libs"
   12920 
   12921 	:
   12922 else
   12923 	cf_pkgconfig_incs=
   12924 	cf_pkgconfig_libs=
   12925 
   12926 test -n "$verbose" && echo "	...before $LIBS" 1>&6
   12927 
   12928 echo "${as_me:-configure}:12928: testing ...before $LIBS ..." 1>&5
   12929 
   12930 LIBS=`echo "$LIBS" | sed -e "s/[ 	][ 	]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's%  % %g'`
   12931 test -n "$verbose" && echo "	...after  $LIBS" 1>&6
   12932 
   12933 echo "${as_me:-configure}:12933: testing ...after  $LIBS ..." 1>&5
   12934 
   12935 fi
   12936 
   12937 		fi
   12938 		;;
   12939 	esac
   12940 
   12941 echo "$as_me:12941: checking for usable X Toolkit package" >&5
   12942 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
   12943 if test "${cf_cv_xt_ice_compat+set}" = set; then
   12944   echo $ECHO_N "(cached) $ECHO_C" >&6
   12945 else
   12946 
   12947 cat >conftest.$ac_ext <<_ACEOF
   12948 #line 12948 "configure"
   12949 #include "confdefs.h"
   12950 
   12951 #include <X11/Shell.h>
   12952 
   12953 int
   12954 main (void)
   12955 {
   12956 int num = IceConnectionNumber(0)
   12957 
   12958   ;
   12959   return 0;
   12960 }
   12961 _ACEOF
   12962 rm -f conftest.$ac_objext conftest$ac_exeext
   12963 if { (eval echo "$as_me:12963: \"$ac_link\"") >&5
   12964   (eval $ac_link) 2>&5
   12965   ac_status=$?
   12966   echo "$as_me:12966: \$? = $ac_status" >&5
   12967   (exit $ac_status); } &&
   12968          { ac_try='test -s conftest$ac_exeext'
   12969   { (eval echo "$as_me:12969: \"$ac_try\"") >&5
   12970   (eval $ac_try) 2>&5
   12971   ac_status=$?
   12972   echo "$as_me:12972: \$? = $ac_status" >&5
   12973   (exit $ac_status); }; }; then
   12974   cf_cv_xt_ice_compat=yes
   12975 else
   12976   echo "$as_me: failed program was:" >&5
   12977 cat conftest.$ac_ext >&5
   12978 cf_cv_xt_ice_compat=no
   12979 fi
   12980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   12981 fi
   12982 echo "$as_me:12982: result: $cf_cv_xt_ice_compat" >&5
   12983 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
   12984 
   12985 	if test "$cf_cv_xt_ice_compat" = no
   12986 	then
   12987 		# workaround for broken ".pc" files used for X Toolkit.
   12988 		case "x$X_PRE_LIBS" in
   12989 		(*-lICE*)
   12990 			case "x$LIBS" in
   12991 			(*-lICE*)
   12992 				;;
   12993 			(*)
   12994 				test -n "$verbose" && echo "	work around broken ICE dependency" 1>&6
   12995 
   12996 echo "${as_me:-configure}:12996: testing work around broken ICE dependency ..." 1>&5
   12997 
   12998 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
   12999 	test -n "$verbose" && echo "	found package ice" 1>&6
   13000 
   13001 echo "${as_me:-configure}:13001: testing found package ice ..." 1>&5
   13002 
   13003 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
   13004 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   ice 2>/dev/null`"
   13005 	test -n "$verbose" && echo "	package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
   13006 
   13007 echo "${as_me:-configure}:13007: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   13008 
   13009 	test -n "$verbose" && echo "	package ice LIBS: $cf_pkgconfig_libs" 1>&6
   13010 
   13011 echo "${as_me:-configure}:13011: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
   13012 
   13013 cf_fix_cppflags=no
   13014 cf_new_cflags=
   13015 cf_new_cppflags=
   13016 cf_new_extra_cppflags=
   13017 
   13018 for cf_add_cflags in $cf_pkgconfig_incs
   13019 do
   13020 case $cf_fix_cppflags in
   13021 (no)
   13022 	case $cf_add_cflags in
   13023 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   13024 		case $cf_add_cflags in
   13025 		(-D*)
   13026 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   13027 
   13028 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   13029 				&& test -z "${cf_tst_cflags}" \
   13030 				&& cf_fix_cppflags=yes
   13031 
   13032 			if test $cf_fix_cppflags = yes ; then
   13033 
   13034 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13035 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13036 
   13037 				continue
   13038 			elif test "${cf_tst_cflags}" = "\"'" ; then
   13039 
   13040 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13041 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13042 
   13043 				continue
   13044 			fi
   13045 			;;
   13046 		esac
   13047 		case "$CPPFLAGS" in
   13048 		(*$cf_add_cflags)
   13049 			;;
   13050 		(*)
   13051 			case $cf_add_cflags in
   13052 			(-D*)
   13053 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   13054 
   13055 CPPFLAGS=`echo "$CPPFLAGS" | \
   13056 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   13057 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   13058 
   13059 				;;
   13060 			esac
   13061 
   13062 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   13063 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   13064 
   13065 			;;
   13066 		esac
   13067 		;;
   13068 	(*)
   13069 
   13070 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   13071 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   13072 
   13073 		;;
   13074 	esac
   13075 	;;
   13076 (yes)
   13077 
   13078 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13079 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13080 
   13081 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   13082 
   13083 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   13084 		&& test -z "${cf_tst_cflags}" \
   13085 		&& cf_fix_cppflags=no
   13086 	;;
   13087 esac
   13088 done
   13089 
   13090 if test -n "$cf_new_cflags" ; then
   13091 
   13092 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   13093 	CFLAGS="${CFLAGS}$cf_new_cflags"
   13094 
   13095 fi
   13096 
   13097 if test -n "$cf_new_cppflags" ; then
   13098 
   13099 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   13100 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   13101 
   13102 fi
   13103 
   13104 if test -n "$cf_new_extra_cppflags" ; then
   13105 
   13106 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   13107 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   13108 
   13109 fi
   13110 
   13111 cf_add_libs="$cf_pkgconfig_libs"
   13112 # Filter out duplicates - this happens with badly-designed ".pc" files...
   13113 for cf_add_1lib in $LIBS
   13114 do
   13115 	for cf_add_2lib in $cf_add_libs
   13116 	do
   13117 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   13118 		then
   13119 			cf_add_1lib=
   13120 			break
   13121 		fi
   13122 	done
   13123 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   13124 done
   13125 LIBS="$cf_add_libs"
   13126 
   13127 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
   13128 	test -n "$verbose" && echo "	found package sm" 1>&6
   13129 
   13130 echo "${as_me:-configure}:13130: testing found package sm ..." 1>&5
   13131 
   13132 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
   13133 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   sm 2>/dev/null`"
   13134 	test -n "$verbose" && echo "	package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
   13135 
   13136 echo "${as_me:-configure}:13136: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   13137 
   13138 	test -n "$verbose" && echo "	package sm LIBS: $cf_pkgconfig_libs" 1>&6
   13139 
   13140 echo "${as_me:-configure}:13140: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
   13141 
   13142 cf_fix_cppflags=no
   13143 cf_new_cflags=
   13144 cf_new_cppflags=
   13145 cf_new_extra_cppflags=
   13146 
   13147 for cf_add_cflags in $cf_pkgconfig_incs
   13148 do
   13149 case $cf_fix_cppflags in
   13150 (no)
   13151 	case $cf_add_cflags in
   13152 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   13153 		case $cf_add_cflags in
   13154 		(-D*)
   13155 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   13156 
   13157 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   13158 				&& test -z "${cf_tst_cflags}" \
   13159 				&& cf_fix_cppflags=yes
   13160 
   13161 			if test $cf_fix_cppflags = yes ; then
   13162 
   13163 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13164 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13165 
   13166 				continue
   13167 			elif test "${cf_tst_cflags}" = "\"'" ; then
   13168 
   13169 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13170 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13171 
   13172 				continue
   13173 			fi
   13174 			;;
   13175 		esac
   13176 		case "$CPPFLAGS" in
   13177 		(*$cf_add_cflags)
   13178 			;;
   13179 		(*)
   13180 			case $cf_add_cflags in
   13181 			(-D*)
   13182 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   13183 
   13184 CPPFLAGS=`echo "$CPPFLAGS" | \
   13185 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   13186 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   13187 
   13188 				;;
   13189 			esac
   13190 
   13191 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   13192 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   13193 
   13194 			;;
   13195 		esac
   13196 		;;
   13197 	(*)
   13198 
   13199 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   13200 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   13201 
   13202 		;;
   13203 	esac
   13204 	;;
   13205 (yes)
   13206 
   13207 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13208 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13209 
   13210 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   13211 
   13212 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   13213 		&& test -z "${cf_tst_cflags}" \
   13214 		&& cf_fix_cppflags=no
   13215 	;;
   13216 esac
   13217 done
   13218 
   13219 if test -n "$cf_new_cflags" ; then
   13220 
   13221 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   13222 	CFLAGS="${CFLAGS}$cf_new_cflags"
   13223 
   13224 fi
   13225 
   13226 if test -n "$cf_new_cppflags" ; then
   13227 
   13228 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   13229 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   13230 
   13231 fi
   13232 
   13233 if test -n "$cf_new_extra_cppflags" ; then
   13234 
   13235 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   13236 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   13237 
   13238 fi
   13239 
   13240 cf_add_libs="$cf_pkgconfig_libs"
   13241 # Filter out duplicates - this happens with badly-designed ".pc" files...
   13242 for cf_add_1lib in $LIBS
   13243 do
   13244 	for cf_add_2lib in $cf_add_libs
   13245 	do
   13246 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   13247 		then
   13248 			cf_add_1lib=
   13249 			break
   13250 		fi
   13251 	done
   13252 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   13253 done
   13254 LIBS="$cf_add_libs"
   13255 
   13256 	:
   13257 else
   13258 	cf_pkgconfig_incs=
   13259 	cf_pkgconfig_libs=
   13260 	:
   13261 fi
   13262 
   13263 else
   13264 	cf_pkgconfig_incs=
   13265 	cf_pkgconfig_libs=
   13266 
   13267 test -n "$verbose" && echo "	...before $LIBS" 1>&6
   13268 
   13269 echo "${as_me:-configure}:13269: testing ...before $LIBS ..." 1>&5
   13270 
   13271 LIBS=`echo "$LIBS" | sed -e "s/[ 	][ 	]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's%  % %g'`
   13272 test -n "$verbose" && echo "	...after  $LIBS" 1>&6
   13273 
   13274 echo "${as_me:-configure}:13274: testing ...after  $LIBS ..." 1>&5
   13275 
   13276 fi
   13277 
   13278 				;;
   13279 			esac
   13280 			;;
   13281 		esac
   13282 	fi
   13283 
   13284 	cf_have_X_LIBS=yes
   13285 
   13286 else
   13287 	cf_pkgconfig_incs=
   13288 	cf_pkgconfig_libs=
   13289 
   13290 	LDFLAGS="$X_LIBS $LDFLAGS"
   13291 
   13292 test -n "$verbose" && echo "	checking additions to CFLAGS" 1>&6
   13293 
   13294 echo "${as_me:-configure}:13294: testing checking additions to CFLAGS ..." 1>&5
   13295 
   13296 cf_check_cflags="$CFLAGS"
   13297 cf_check_cppflags="$CPPFLAGS"
   13298 
   13299 cf_fix_cppflags=no
   13300 cf_new_cflags=
   13301 cf_new_cppflags=
   13302 cf_new_extra_cppflags=
   13303 
   13304 for cf_add_cflags in $X_CFLAGS
   13305 do
   13306 case $cf_fix_cppflags in
   13307 (no)
   13308 	case $cf_add_cflags in
   13309 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   13310 		case $cf_add_cflags in
   13311 		(-D*)
   13312 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   13313 
   13314 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   13315 				&& test -z "${cf_tst_cflags}" \
   13316 				&& cf_fix_cppflags=yes
   13317 
   13318 			if test $cf_fix_cppflags = yes ; then
   13319 
   13320 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13321 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13322 
   13323 				continue
   13324 			elif test "${cf_tst_cflags}" = "\"'" ; then
   13325 
   13326 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13327 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13328 
   13329 				continue
   13330 			fi
   13331 			;;
   13332 		esac
   13333 		case "$CPPFLAGS" in
   13334 		(*$cf_add_cflags)
   13335 			;;
   13336 		(*)
   13337 			case $cf_add_cflags in
   13338 			(-D*)
   13339 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   13340 
   13341 CPPFLAGS=`echo "$CPPFLAGS" | \
   13342 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   13343 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   13344 
   13345 				;;
   13346 			esac
   13347 
   13348 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   13349 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   13350 
   13351 			;;
   13352 		esac
   13353 		;;
   13354 	(*)
   13355 
   13356 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   13357 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   13358 
   13359 		;;
   13360 	esac
   13361 	;;
   13362 (yes)
   13363 
   13364 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   13365 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   13366 
   13367 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   13368 
   13369 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   13370 		&& test -z "${cf_tst_cflags}" \
   13371 		&& cf_fix_cppflags=no
   13372 	;;
   13373 esac
   13374 done
   13375 
   13376 if test -n "$cf_new_cflags" ; then
   13377 	test -n "$verbose" && echo "	add to \$CFLAGS $cf_new_cflags" 1>&6
   13378 
   13379 echo "${as_me:-configure}:13379: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
   13380 
   13381 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   13382 	CFLAGS="${CFLAGS}$cf_new_cflags"
   13383 
   13384 fi
   13385 
   13386 if test -n "$cf_new_cppflags" ; then
   13387 	test -n "$verbose" && echo "	add to \$CPPFLAGS $cf_new_cppflags" 1>&6
   13388 
   13389 echo "${as_me:-configure}:13389: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
   13390 
   13391 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   13392 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   13393 
   13394 fi
   13395 
   13396 if test -n "$cf_new_extra_cppflags" ; then
   13397 	test -n "$verbose" && echo "	add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
   13398 
   13399 echo "${as_me:-configure}:13399: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
   13400 
   13401 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   13402 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   13403 
   13404 fi
   13405 
   13406 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
   13407 cat >conftest.$ac_ext <<_ACEOF
   13408 #line 13408 "configure"
   13409 #include "confdefs.h"
   13410 #include <stdio.h>
   13411 int
   13412 main (void)
   13413 {
   13414 printf("Hello world");
   13415   ;
   13416   return 0;
   13417 }
   13418 _ACEOF
   13419 rm -f conftest.$ac_objext conftest$ac_exeext
   13420 if { (eval echo "$as_me:13420: \"$ac_link\"") >&5
   13421   (eval $ac_link) 2>&5
   13422   ac_status=$?
   13423   echo "$as_me:13423: \$? = $ac_status" >&5
   13424   (exit $ac_status); } &&
   13425          { ac_try='test -s conftest$ac_exeext'
   13426   { (eval echo "$as_me:13426: \"$ac_try\"") >&5
   13427   (eval $ac_try) 2>&5
   13428   ac_status=$?
   13429   echo "$as_me:13429: \$? = $ac_status" >&5
   13430   (exit $ac_status); }; }; then
   13431   :
   13432 else
   13433   echo "$as_me: failed program was:" >&5
   13434 cat conftest.$ac_ext >&5
   13435 test -n "$verbose" && echo "	test-compile failed.  Undoing change to \$CFLAGS" 1>&6
   13436 
   13437 echo "${as_me:-configure}:13437: testing test-compile failed.  Undoing change to \$CFLAGS ..." 1>&5
   13438 
   13439 	 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
   13440 		 test -n "$verbose" && echo "	but keeping change to \$CPPFLAGS" 1>&6
   13441 
   13442 echo "${as_me:-configure}:13442: testing but keeping change to \$CPPFLAGS ..." 1>&5
   13443 
   13444 	 fi
   13445 	 CFLAGS="$cf_check_flags"
   13446 fi
   13447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   13448 fi
   13449 
   13450 	echo "$as_me:13450: checking for XOpenDisplay" >&5
   13451 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
   13452 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
   13453   echo $ECHO_N "(cached) $ECHO_C" >&6
   13454 else
   13455   cat >conftest.$ac_ext <<_ACEOF
   13456 #line 13456 "configure"
   13457 #include "confdefs.h"
   13458 /* System header to define __stub macros and hopefully few prototypes,
   13459     which can conflict with char XOpenDisplay (); below.  */
   13460 #include <assert.h>
   13461 /* Override any gcc2 internal prototype to avoid an error.  */
   13462 #ifdef __cplusplus
   13463 extern "C"
   13464 #endif
   13465 /* We use char because int might match the return type of a gcc2
   13466    builtin and then its argument prototype would still apply.  */
   13467 char XOpenDisplay ();
   13468 char (*f) ();
   13469 
   13470 int
   13471 main (void)
   13472 {
   13473 /* The GNU C library defines this for functions which it implements
   13474     to always fail with ENOSYS.  Some functions are actually named
   13475     something starting with __ and the normal name is an alias.  */
   13476 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
   13477 choke me
   13478 #else
   13479 f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
   13480 #endif
   13481 
   13482   ;
   13483   return 0;
   13484 }
   13485 _ACEOF
   13486 rm -f conftest.$ac_objext conftest$ac_exeext
   13487 if { (eval echo "$as_me:13487: \"$ac_link\"") >&5
   13488   (eval $ac_link) 2>&5
   13489   ac_status=$?
   13490   echo "$as_me:13490: \$? = $ac_status" >&5
   13491   (exit $ac_status); } &&
   13492          { ac_try='test -s conftest$ac_exeext'
   13493   { (eval echo "$as_me:13493: \"$ac_try\"") >&5
   13494   (eval $ac_try) 2>&5
   13495   ac_status=$?
   13496   echo "$as_me:13496: \$? = $ac_status" >&5
   13497   (exit $ac_status); }; }; then
   13498   ac_cv_func_XOpenDisplay=yes
   13499 else
   13500   echo "$as_me: failed program was:" >&5
   13501 cat conftest.$ac_ext >&5
   13502 ac_cv_func_XOpenDisplay=no
   13503 fi
   13504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   13505 fi
   13506 echo "$as_me:13506: result: $ac_cv_func_XOpenDisplay" >&5
   13507 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
   13508 if test $ac_cv_func_XOpenDisplay = yes; then
   13509   :
   13510 else
   13511 
   13512 	echo "$as_me:13512: checking for XOpenDisplay in -lX11" >&5
   13513 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
   13514 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
   13515   echo $ECHO_N "(cached) $ECHO_C" >&6
   13516 else
   13517   ac_check_lib_save_LIBS=$LIBS
   13518 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
   13519 cat >conftest.$ac_ext <<_ACEOF
   13520 #line 13520 "configure"
   13521 #include "confdefs.h"
   13522 
   13523 /* Override any gcc2 internal prototype to avoid an error.  */
   13524 #ifdef __cplusplus
   13525 extern "C"
   13526 #endif
   13527 /* We use char because int might match the return type of a gcc2
   13528    builtin and then its argument prototype would still apply.  */
   13529 char XOpenDisplay ();
   13530 int
   13531 main (void)
   13532 {
   13533 XOpenDisplay ();
   13534   ;
   13535   return 0;
   13536 }
   13537 _ACEOF
   13538 rm -f conftest.$ac_objext conftest$ac_exeext
   13539 if { (eval echo "$as_me:13539: \"$ac_link\"") >&5
   13540   (eval $ac_link) 2>&5
   13541   ac_status=$?
   13542   echo "$as_me:13542: \$? = $ac_status" >&5
   13543   (exit $ac_status); } &&
   13544          { ac_try='test -s conftest$ac_exeext'
   13545   { (eval echo "$as_me:13545: \"$ac_try\"") >&5
   13546   (eval $ac_try) 2>&5
   13547   ac_status=$?
   13548   echo "$as_me:13548: \$? = $ac_status" >&5
   13549   (exit $ac_status); }; }; then
   13550   ac_cv_lib_X11_XOpenDisplay=yes
   13551 else
   13552   echo "$as_me: failed program was:" >&5
   13553 cat conftest.$ac_ext >&5
   13554 ac_cv_lib_X11_XOpenDisplay=no
   13555 fi
   13556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   13557 LIBS=$ac_check_lib_save_LIBS
   13558 fi
   13559 echo "$as_me:13559: result: $ac_cv_lib_X11_XOpenDisplay" >&5
   13560 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
   13561 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
   13562 
   13563 cf_add_libs="-lX11"
   13564 # Filter out duplicates - this happens with badly-designed ".pc" files...
   13565 for cf_add_1lib in $LIBS
   13566 do
   13567 	for cf_add_2lib in $cf_add_libs
   13568 	do
   13569 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   13570 		then
   13571 			cf_add_1lib=
   13572 			break
   13573 		fi
   13574 	done
   13575 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   13576 done
   13577 LIBS="$cf_add_libs"
   13578 
   13579 fi
   13580 
   13581 fi
   13582 
   13583 	echo "$as_me:13583: checking for XtAppInitialize" >&5
   13584 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
   13585 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
   13586   echo $ECHO_N "(cached) $ECHO_C" >&6
   13587 else
   13588   cat >conftest.$ac_ext <<_ACEOF
   13589 #line 13589 "configure"
   13590 #include "confdefs.h"
   13591 /* System header to define __stub macros and hopefully few prototypes,
   13592     which can conflict with char XtAppInitialize (); below.  */
   13593 #include <assert.h>
   13594 /* Override any gcc2 internal prototype to avoid an error.  */
   13595 #ifdef __cplusplus
   13596 extern "C"
   13597 #endif
   13598 /* We use char because int might match the return type of a gcc2
   13599    builtin and then its argument prototype would still apply.  */
   13600 char XtAppInitialize ();
   13601 char (*f) ();
   13602 
   13603 int
   13604 main (void)
   13605 {
   13606 /* The GNU C library defines this for functions which it implements
   13607     to always fail with ENOSYS.  Some functions are actually named
   13608     something starting with __ and the normal name is an alias.  */
   13609 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
   13610 choke me
   13611 #else
   13612 f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
   13613 #endif
   13614 
   13615   ;
   13616   return 0;
   13617 }
   13618 _ACEOF
   13619 rm -f conftest.$ac_objext conftest$ac_exeext
   13620 if { (eval echo "$as_me:13620: \"$ac_link\"") >&5
   13621   (eval $ac_link) 2>&5
   13622   ac_status=$?
   13623   echo "$as_me:13623: \$? = $ac_status" >&5
   13624   (exit $ac_status); } &&
   13625          { ac_try='test -s conftest$ac_exeext'
   13626   { (eval echo "$as_me:13626: \"$ac_try\"") >&5
   13627   (eval $ac_try) 2>&5
   13628   ac_status=$?
   13629   echo "$as_me:13629: \$? = $ac_status" >&5
   13630   (exit $ac_status); }; }; then
   13631   ac_cv_func_XtAppInitialize=yes
   13632 else
   13633   echo "$as_me: failed program was:" >&5
   13634 cat conftest.$ac_ext >&5
   13635 ac_cv_func_XtAppInitialize=no
   13636 fi
   13637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   13638 fi
   13639 echo "$as_me:13639: result: $ac_cv_func_XtAppInitialize" >&5
   13640 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
   13641 if test $ac_cv_func_XtAppInitialize = yes; then
   13642   :
   13643 else
   13644 
   13645 	echo "$as_me:13645: checking for XtAppInitialize in -lXt" >&5
   13646 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
   13647 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
   13648   echo $ECHO_N "(cached) $ECHO_C" >&6
   13649 else
   13650   ac_check_lib_save_LIBS=$LIBS
   13651 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
   13652 cat >conftest.$ac_ext <<_ACEOF
   13653 #line 13653 "configure"
   13654 #include "confdefs.h"
   13655 
   13656 /* Override any gcc2 internal prototype to avoid an error.  */
   13657 #ifdef __cplusplus
   13658 extern "C"
   13659 #endif
   13660 /* We use char because int might match the return type of a gcc2
   13661    builtin and then its argument prototype would still apply.  */
   13662 char XtAppInitialize ();
   13663 int
   13664 main (void)
   13665 {
   13666 XtAppInitialize ();
   13667   ;
   13668   return 0;
   13669 }
   13670 _ACEOF
   13671 rm -f conftest.$ac_objext conftest$ac_exeext
   13672 if { (eval echo "$as_me:13672: \"$ac_link\"") >&5
   13673   (eval $ac_link) 2>&5
   13674   ac_status=$?
   13675   echo "$as_me:13675: \$? = $ac_status" >&5
   13676   (exit $ac_status); } &&
   13677          { ac_try='test -s conftest$ac_exeext'
   13678   { (eval echo "$as_me:13678: \"$ac_try\"") >&5
   13679   (eval $ac_try) 2>&5
   13680   ac_status=$?
   13681   echo "$as_me:13681: \$? = $ac_status" >&5
   13682   (exit $ac_status); }; }; then
   13683   ac_cv_lib_Xt_XtAppInitialize=yes
   13684 else
   13685   echo "$as_me: failed program was:" >&5
   13686 cat conftest.$ac_ext >&5
   13687 ac_cv_lib_Xt_XtAppInitialize=no
   13688 fi
   13689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   13690 LIBS=$ac_check_lib_save_LIBS
   13691 fi
   13692 echo "$as_me:13692: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
   13693 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
   13694 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
   13695 
   13696 cat >>confdefs.h <<\EOF
   13697 #define HAVE_LIBXT 1
   13698 EOF
   13699 
   13700 		 cf_have_X_LIBS=Xt
   13701 		 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
   13702 fi
   13703 
   13704 fi
   13705 
   13706 fi
   13707 
   13708 if test $cf_have_X_LIBS = no ; then
   13709 	{ echo "$as_me:13709: WARNING: Unable to successfully link X Toolkit library (-lXt) with
   13710 test program.  You will have to check and add the proper libraries by hand
   13711 to makefile." >&5
   13712 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
   13713 test program.  You will have to check and add the proper libraries by hand
   13714 to makefile." >&2;}
   13715 fi
   13716 
   13717 cf_x_athena_root=$cf_x_athena
   13718 cf_x_athena_inc=""
   13719 
   13720 for cf_path in default \
   13721 	/usr/contrib/X11R6 \
   13722 	/usr/contrib/X11R5 \
   13723 	/usr/lib/X11R5 \
   13724 	/usr/local
   13725 do
   13726 	if test -z "$cf_x_athena_inc" ; then
   13727 		cf_save="$CPPFLAGS"
   13728 		cf_test=X11/$cf_x_athena_root/SimpleMenu.h
   13729 		if test $cf_path != default ; then
   13730 			CPPFLAGS="$cf_save -I$cf_path/include"
   13731 			echo "$as_me:13731: checking for $cf_test in $cf_path" >&5
   13732 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
   13733 		else
   13734 			echo "$as_me:13734: checking for $cf_test" >&5
   13735 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
   13736 		fi
   13737 		cat >conftest.$ac_ext <<_ACEOF
   13738 #line 13738 "configure"
   13739 #include "confdefs.h"
   13740 
   13741 #include <X11/Intrinsic.h>
   13742 #include <$cf_test>
   13743 int
   13744 main (void)
   13745 {
   13746 
   13747   ;
   13748   return 0;
   13749 }
   13750 _ACEOF
   13751 rm -f conftest.$ac_objext
   13752 if { (eval echo "$as_me:13752: \"$ac_compile\"") >&5
   13753   (eval $ac_compile) 2>&5
   13754   ac_status=$?
   13755   echo "$as_me:13755: \$? = $ac_status" >&5
   13756   (exit $ac_status); } &&
   13757          { ac_try='test -s conftest.$ac_objext'
   13758   { (eval echo "$as_me:13758: \"$ac_try\"") >&5
   13759   (eval $ac_try) 2>&5
   13760   ac_status=$?
   13761   echo "$as_me:13761: \$? = $ac_status" >&5
   13762   (exit $ac_status); }; }; then
   13763   cf_result=yes
   13764 else
   13765   echo "$as_me: failed program was:" >&5
   13766 cat conftest.$ac_ext >&5
   13767 cf_result=no
   13768 fi
   13769 rm -f conftest.$ac_objext conftest.$ac_ext
   13770 		echo "$as_me:13770: result: $cf_result" >&5
   13771 echo "${ECHO_T}$cf_result" >&6
   13772 		if test "$cf_result" = yes ; then
   13773 			cf_x_athena_inc=$cf_path
   13774 			break
   13775 		else
   13776 			CPPFLAGS="$cf_save"
   13777 		fi
   13778 	fi
   13779 done
   13780 
   13781 if test -z "$cf_x_athena_inc" ; then
   13782 	{ echo "$as_me:13782: WARNING: Unable to successfully find Athena header files with test program" >&5
   13783 echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
   13784 elif test "$cf_x_athena_inc" != default ; then
   13785 	CPPFLAGS="$CPPFLAGS -I$cf_x_athena_inc"
   13786 fi
   13787 
   13788 cf_x_athena_root=$cf_x_athena
   13789 cf_x_athena_lib=""
   13790 
   13791 for cf_path in default \
   13792 	/usr/contrib/X11R6 \
   13793 	/usr/contrib/X11R5 \
   13794 	/usr/lib/X11R5 \
   13795 	/usr/local
   13796 do
   13797 	for cf_lib in \
   13798 		${cf_x_athena_root} \
   13799 		${cf_x_athena_root}7 \
   13800 		${cf_x_athena_root}6
   13801 	do
   13802 	for cf_libs in \
   13803 		"-l$cf_lib -lXmu" \
   13804 		"-l$cf_lib -lXpm -lXmu" \
   13805 		"-l${cf_lib}_s -lXmu_s"
   13806 	do
   13807 		if test -z "$cf_x_athena_lib" ; then
   13808 			cf_save="$LIBS"
   13809 			cf_test=XawSimpleMenuAddGlobalActions
   13810 			if test $cf_path != default ; then
   13811 
   13812 cf_add_libs="-L$cf_path/lib $cf_libs"
   13813 # Filter out duplicates - this happens with badly-designed ".pc" files...
   13814 for cf_add_1lib in $LIBS
   13815 do
   13816 	for cf_add_2lib in $cf_add_libs
   13817 	do
   13818 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   13819 		then
   13820 			cf_add_1lib=
   13821 			break
   13822 		fi
   13823 	done
   13824 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   13825 done
   13826 LIBS="$cf_add_libs"
   13827 
   13828 				echo "$as_me:13828: checking for $cf_libs in $cf_path" >&5
   13829 echo $ECHO_N "checking for $cf_libs in $cf_path... $ECHO_C" >&6
   13830 			else
   13831 
   13832 cf_add_libs="$cf_libs"
   13833 # Filter out duplicates - this happens with badly-designed ".pc" files...
   13834 for cf_add_1lib in $LIBS
   13835 do
   13836 	for cf_add_2lib in $cf_add_libs
   13837 	do
   13838 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   13839 		then
   13840 			cf_add_1lib=
   13841 			break
   13842 		fi
   13843 	done
   13844 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   13845 done
   13846 LIBS="$cf_add_libs"
   13847 
   13848 				echo "$as_me:13848: checking for $cf_test in $cf_libs" >&5
   13849 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
   13850 			fi
   13851 			cat >conftest.$ac_ext <<_ACEOF
   13852 #line 13852 "configure"
   13853 #include "confdefs.h"
   13854 
   13855 #include <X11/Intrinsic.h>
   13856 #include <X11/$cf_x_athena_root/SimpleMenu.h>
   13857 
   13858 int
   13859 main (void)
   13860 {
   13861 
   13862 $cf_test((XtAppContext) 0)
   13863   ;
   13864   return 0;
   13865 }
   13866 _ACEOF
   13867 rm -f conftest.$ac_objext conftest$ac_exeext
   13868 if { (eval echo "$as_me:13868: \"$ac_link\"") >&5
   13869   (eval $ac_link) 2>&5
   13870   ac_status=$?
   13871   echo "$as_me:13871: \$? = $ac_status" >&5
   13872   (exit $ac_status); } &&
   13873          { ac_try='test -s conftest$ac_exeext'
   13874   { (eval echo "$as_me:13874: \"$ac_try\"") >&5
   13875   (eval $ac_try) 2>&5
   13876   ac_status=$?
   13877   echo "$as_me:13877: \$? = $ac_status" >&5
   13878   (exit $ac_status); }; }; then
   13879   cf_result=yes
   13880 else
   13881   echo "$as_me: failed program was:" >&5
   13882 cat conftest.$ac_ext >&5
   13883 cf_result=no
   13884 fi
   13885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   13886 			echo "$as_me:13886: result: $cf_result" >&5
   13887 echo "${ECHO_T}$cf_result" >&6
   13888 			if test "$cf_result" = yes ; then
   13889 				cf_x_athena_lib="$cf_libs"
   13890 				break
   13891 			fi
   13892 			LIBS="$cf_save"
   13893 		fi
   13894 	done # cf_libs
   13895 		test -n "$cf_x_athena_lib" && break
   13896 	done # cf_lib
   13897 done
   13898 
   13899 if test -z "$cf_x_athena_lib" ; then
   13900 	{ { echo "$as_me:13900: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
   13901 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
   13902    { (exit 1); exit 1; }; }
   13903 fi
   13904 
   13905 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   13906 
   13907 cat >>confdefs.h <<EOF
   13908 #define $cf_x_athena_LIBS 1
   13909 EOF
   13910 
   13911 fi
   13912 
   13913 for ac_header in X11/Xpoll.h
   13914 do
   13915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13916 echo "$as_me:13916: checking for $ac_header" >&5
   13917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   13918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   13919   echo $ECHO_N "(cached) $ECHO_C" >&6
   13920 else
   13921   cat >conftest.$ac_ext <<_ACEOF
   13922 #line 13922 "configure"
   13923 #include "confdefs.h"
   13924 #include <$ac_header>
   13925 _ACEOF
   13926 if { (eval echo "$as_me:13926: \"$ac_cpp conftest.$ac_ext\"") >&5
   13927   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   13928   ac_status=$?
   13929   egrep -v '^ *\+' conftest.er1 >conftest.err
   13930   rm -f conftest.er1
   13931   cat conftest.err >&5
   13932   echo "$as_me:13932: \$? = $ac_status" >&5
   13933   (exit $ac_status); } >/dev/null; then
   13934   if test -s conftest.err; then
   13935     ac_cpp_err=$ac_c_preproc_warn_flag
   13936   else
   13937     ac_cpp_err=
   13938   fi
   13939 else
   13940   ac_cpp_err=yes
   13941 fi
   13942 if test -z "$ac_cpp_err"; then
   13943   eval "$as_ac_Header=yes"
   13944 else
   13945   echo "$as_me: failed program was:" >&5
   13946   cat conftest.$ac_ext >&5
   13947   eval "$as_ac_Header=no"
   13948 fi
   13949 rm -f conftest.err conftest.$ac_ext
   13950 fi
   13951 echo "$as_me:13951: result: `eval echo '${'$as_ac_Header'}'`" >&5
   13952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   13953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   13954   cat >>confdefs.h <<EOF
   13955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13956 EOF
   13957 
   13958 fi
   13959 done
   13960 
   13961 echo "$as_me:13961: checking for declaration of fd_set" >&5
   13962 echo $ECHO_N "checking for declaration of fd_set... $ECHO_C" >&6
   13963 if test "${cf_cv_type_fd_set+set}" = set; then
   13964   echo $ECHO_N "(cached) $ECHO_C" >&6
   13965 else
   13966 
   13967 echo "${as_me:-configure}:13967: testing sys/types alone ..." 1>&5
   13968 
   13969 cat >conftest.$ac_ext <<_ACEOF
   13970 #line 13970 "configure"
   13971 #include "confdefs.h"
   13972 
   13973 #include <sys/types.h>
   13974 int
   13975 main (void)
   13976 {
   13977 fd_set x
   13978   ;
   13979   return 0;
   13980 }
   13981 _ACEOF
   13982 rm -f conftest.$ac_objext
   13983 if { (eval echo "$as_me:13983: \"$ac_compile\"") >&5
   13984   (eval $ac_compile) 2>&5
   13985   ac_status=$?
   13986   echo "$as_me:13986: \$? = $ac_status" >&5
   13987   (exit $ac_status); } &&
   13988          { ac_try='test -s conftest.$ac_objext'
   13989   { (eval echo "$as_me:13989: \"$ac_try\"") >&5
   13990   (eval $ac_try) 2>&5
   13991   ac_status=$?
   13992   echo "$as_me:13992: \$? = $ac_status" >&5
   13993   (exit $ac_status); }; }; then
   13994   cf_cv_type_fd_set=sys/types.h
   13995 else
   13996   echo "$as_me: failed program was:" >&5
   13997 cat conftest.$ac_ext >&5
   13998 
   13999 echo "${as_me:-configure}:13999: testing X11/Xpoll.h ..." 1>&5
   14000 
   14001 cat >conftest.$ac_ext <<_ACEOF
   14002 #line 14002 "configure"
   14003 #include "confdefs.h"
   14004 
   14005 #ifdef HAVE_X11_XPOLL_H
   14006 #include <X11/Xpoll.h>
   14007 #endif
   14008 int
   14009 main (void)
   14010 {
   14011 fd_set x
   14012   ;
   14013   return 0;
   14014 }
   14015 _ACEOF
   14016 rm -f conftest.$ac_objext
   14017 if { (eval echo "$as_me:14017: \"$ac_compile\"") >&5
   14018   (eval $ac_compile) 2>&5
   14019   ac_status=$?
   14020   echo "$as_me:14020: \$? = $ac_status" >&5
   14021   (exit $ac_status); } &&
   14022          { ac_try='test -s conftest.$ac_objext'
   14023   { (eval echo "$as_me:14023: \"$ac_try\"") >&5
   14024   (eval $ac_try) 2>&5
   14025   ac_status=$?
   14026   echo "$as_me:14026: \$? = $ac_status" >&5
   14027   (exit $ac_status); }; }; then
   14028   cf_cv_type_fd_set=X11/Xpoll.h
   14029 else
   14030   echo "$as_me: failed program was:" >&5
   14031 cat conftest.$ac_ext >&5
   14032 
   14033 echo "${as_me:-configure}:14033: testing sys/select.h ..." 1>&5
   14034 
   14035 cat >conftest.$ac_ext <<_ACEOF
   14036 #line 14036 "configure"
   14037 #include "confdefs.h"
   14038 
   14039 #include <sys/types.h>
   14040 #include <sys/select.h>
   14041 int
   14042 main (void)
   14043 {
   14044 fd_set x
   14045   ;
   14046   return 0;
   14047 }
   14048 _ACEOF
   14049 rm -f conftest.$ac_objext
   14050 if { (eval echo "$as_me:14050: \"$ac_compile\"") >&5
   14051   (eval $ac_compile) 2>&5
   14052   ac_status=$?
   14053   echo "$as_me:14053: \$? = $ac_status" >&5
   14054   (exit $ac_status); } &&
   14055          { ac_try='test -s conftest.$ac_objext'
   14056   { (eval echo "$as_me:14056: \"$ac_try\"") >&5
   14057   (eval $ac_try) 2>&5
   14058   ac_status=$?
   14059   echo "$as_me:14059: \$? = $ac_status" >&5
   14060   (exit $ac_status); }; }; then
   14061   cf_cv_type_fd_set=sys/select.h
   14062 else
   14063   echo "$as_me: failed program was:" >&5
   14064 cat conftest.$ac_ext >&5
   14065 cf_cv_type_fd_set=unknown
   14066 fi
   14067 rm -f conftest.$ac_objext conftest.$ac_ext
   14068 fi
   14069 rm -f conftest.$ac_objext conftest.$ac_ext
   14070 fi
   14071 rm -f conftest.$ac_objext conftest.$ac_ext
   14072 fi
   14073 echo "$as_me:14073: result: $cf_cv_type_fd_set" >&5
   14074 echo "${ECHO_T}$cf_cv_type_fd_set" >&6
   14075 if test $cf_cv_type_fd_set = sys/select.h ; then
   14076 
   14077 cat >>confdefs.h <<\EOF
   14078 #define USE_SYS_SELECT_H 1
   14079 EOF
   14080 
   14081 fi
   14082 
   14083 echo "$as_me:14083: checking for declaration of fd_mask" >&5
   14084 echo $ECHO_N "checking for declaration of fd_mask... $ECHO_C" >&6
   14085 if test "${cf_cv_type_fd_mask+set}" = set; then
   14086   echo $ECHO_N "(cached) $ECHO_C" >&6
   14087 else
   14088 
   14089     if test x$cf_cv_type_fd_set = xX11/Xpoll.h ; then
   14090         cat >conftest.$ac_ext <<_ACEOF
   14091 #line 14091 "configure"
   14092 #include "confdefs.h"
   14093 
   14094 #include <X11/Xpoll.h>
   14095 int
   14096 main (void)
   14097 {
   14098 fd_mask x
   14099   ;
   14100   return 0;
   14101 }
   14102 _ACEOF
   14103 rm -f conftest.$ac_objext
   14104 if { (eval echo "$as_me:14104: \"$ac_compile\"") >&5
   14105   (eval $ac_compile) 2>&5
   14106   ac_status=$?
   14107   echo "$as_me:14107: \$? = $ac_status" >&5
   14108   (exit $ac_status); } &&
   14109          { ac_try='test -s conftest.$ac_objext'
   14110   { (eval echo "$as_me:14110: \"$ac_try\"") >&5
   14111   (eval $ac_try) 2>&5
   14112   ac_status=$?
   14113   echo "$as_me:14113: \$? = $ac_status" >&5
   14114   (exit $ac_status); }; }; then
   14115   :
   14116 else
   14117   echo "$as_me: failed program was:" >&5
   14118 cat conftest.$ac_ext >&5
   14119 
   14120 echo "${as_me:-configure}:14120: testing if we must define CSRG_BASED ..." 1>&5
   14121 
   14122 # Xosdefs.h on Mac OS X may not define this (but it should).
   14123             cat >conftest.$ac_ext <<_ACEOF
   14124 #line 14124 "configure"
   14125 #include "confdefs.h"
   14126 
   14127 #define CSRG_BASED
   14128 #include <X11/Xpoll.h>
   14129 int
   14130 main (void)
   14131 {
   14132 fd_mask x
   14133   ;
   14134   return 0;
   14135 }
   14136 _ACEOF
   14137 rm -f conftest.$ac_objext
   14138 if { (eval echo "$as_me:14138: \"$ac_compile\"") >&5
   14139   (eval $ac_compile) 2>&5
   14140   ac_status=$?
   14141   echo "$as_me:14141: \$? = $ac_status" >&5
   14142   (exit $ac_status); } &&
   14143          { ac_try='test -s conftest.$ac_objext'
   14144   { (eval echo "$as_me:14144: \"$ac_try\"") >&5
   14145   (eval $ac_try) 2>&5
   14146   ac_status=$?
   14147   echo "$as_me:14147: \$? = $ac_status" >&5
   14148   (exit $ac_status); }; }; then
   14149   cf_cv_type_fd_mask=CSRG_BASED
   14150 else
   14151   echo "$as_me: failed program was:" >&5
   14152 cat conftest.$ac_ext >&5
   14153 fi
   14154 rm -f conftest.$ac_objext conftest.$ac_ext
   14155 fi
   14156 rm -f conftest.$ac_objext conftest.$ac_ext
   14157     else
   14158         cf_cv_type_fd_mask=$cf_cv_type_fd_set
   14159     fi
   14160 
   14161 fi
   14162 echo "$as_me:14162: result: $cf_cv_type_fd_mask" >&5
   14163 echo "${ECHO_T}$cf_cv_type_fd_mask" >&6
   14164 if test x$cf_cv_type_fd_mask = xCSRG_BASED ; then
   14165 
   14166 cat >>confdefs.h <<\EOF
   14167 #define CSRG_BASED 1
   14168 EOF
   14169 
   14170 fi
   14171 
   14172 echo "$as_me:14172: checking for IRIX 6.5 baud-rate redefinitions" >&5
   14173 echo $ECHO_N "checking for IRIX 6.5 baud-rate redefinitions... $ECHO_C" >&6
   14174 if test "${cf_cv_termio_c_ispeed+set}" = set; then
   14175   echo $ECHO_N "(cached) $ECHO_C" >&6
   14176 else
   14177 
   14178 cat >conftest.$ac_ext <<_ACEOF
   14179 #line 14179 "configure"
   14180 #include "confdefs.h"
   14181 
   14182 #include <sys/types.h>
   14183 #include <sys/termio.h>
   14184 int
   14185 main (void)
   14186 {
   14187 
   14188 struct termio foo;
   14189 foo.c_ispeed = B38400;
   14190 foo.c_ospeed = B9600;
   14191 
   14192   ;
   14193   return 0;
   14194 }
   14195 _ACEOF
   14196 rm -f conftest.$ac_objext
   14197 if { (eval echo "$as_me:14197: \"$ac_compile\"") >&5
   14198   (eval $ac_compile) 2>&5
   14199   ac_status=$?
   14200   echo "$as_me:14200: \$? = $ac_status" >&5
   14201   (exit $ac_status); } &&
   14202          { ac_try='test -s conftest.$ac_objext'
   14203   { (eval echo "$as_me:14203: \"$ac_try\"") >&5
   14204   (eval $ac_try) 2>&5
   14205   ac_status=$?
   14206   echo "$as_me:14206: \$? = $ac_status" >&5
   14207   (exit $ac_status); }; }; then
   14208   cf_cv_termio_c_ispeed=yes
   14209 
   14210 else
   14211   echo "$as_me: failed program was:" >&5
   14212 cat conftest.$ac_ext >&5
   14213 cf_cv_termio_c_ispeed=no
   14214 fi
   14215 rm -f conftest.$ac_objext conftest.$ac_ext
   14216 
   14217 fi
   14218 echo "$as_me:14218: result: $cf_cv_termio_c_ispeed" >&5
   14219 echo "${ECHO_T}$cf_cv_termio_c_ispeed" >&6
   14220 test "$cf_cv_termio_c_ispeed" = yes &&
   14221 cat >>confdefs.h <<\EOF
   14222 #define HAVE_TERMIO_C_ISPEED 1
   14223 EOF
   14224 
   14225 # If we notice Xcursor, there is a workaround needed.
   14226 echo "$as_me:14226: checking for XcursorGetTheme in -lXcursor" >&5
   14227 echo $ECHO_N "checking for XcursorGetTheme in -lXcursor... $ECHO_C" >&6
   14228 if test "${ac_cv_lib_Xcursor_XcursorGetTheme+set}" = set; then
   14229   echo $ECHO_N "(cached) $ECHO_C" >&6
   14230 else
   14231   ac_check_lib_save_LIBS=$LIBS
   14232 LIBS="-lXcursor  $LIBS"
   14233 cat >conftest.$ac_ext <<_ACEOF
   14234 #line 14234 "configure"
   14235 #include "confdefs.h"
   14236 
   14237 /* Override any gcc2 internal prototype to avoid an error.  */
   14238 #ifdef __cplusplus
   14239 extern "C"
   14240 #endif
   14241 /* We use char because int might match the return type of a gcc2
   14242    builtin and then its argument prototype would still apply.  */
   14243 char XcursorGetTheme ();
   14244 int
   14245 main (void)
   14246 {
   14247 XcursorGetTheme ();
   14248   ;
   14249   return 0;
   14250 }
   14251 _ACEOF
   14252 rm -f conftest.$ac_objext conftest$ac_exeext
   14253 if { (eval echo "$as_me:14253: \"$ac_link\"") >&5
   14254   (eval $ac_link) 2>&5
   14255   ac_status=$?
   14256   echo "$as_me:14256: \$? = $ac_status" >&5
   14257   (exit $ac_status); } &&
   14258          { ac_try='test -s conftest$ac_exeext'
   14259   { (eval echo "$as_me:14259: \"$ac_try\"") >&5
   14260   (eval $ac_try) 2>&5
   14261   ac_status=$?
   14262   echo "$as_me:14262: \$? = $ac_status" >&5
   14263   (exit $ac_status); }; }; then
   14264   ac_cv_lib_Xcursor_XcursorGetTheme=yes
   14265 else
   14266   echo "$as_me: failed program was:" >&5
   14267 cat conftest.$ac_ext >&5
   14268 ac_cv_lib_Xcursor_XcursorGetTheme=no
   14269 fi
   14270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   14271 LIBS=$ac_check_lib_save_LIBS
   14272 fi
   14273 echo "$as_me:14273: result: $ac_cv_lib_Xcursor_XcursorGetTheme" >&5
   14274 echo "${ECHO_T}$ac_cv_lib_Xcursor_XcursorGetTheme" >&6
   14275 if test $ac_cv_lib_Xcursor_XcursorGetTheme = yes; then
   14276   cat >>confdefs.h <<\EOF
   14277 #define HAVE_LIB_XCURSOR 1
   14278 EOF
   14279 
   14280 fi
   14281 
   14282 LIBS="$LIBS $X_EXTRA_LIBS"
   14283 
   14284 for ac_header in \
   14285 stropts.h \
   14286 
   14287 do
   14288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14289 echo "$as_me:14289: checking for $ac_header" >&5
   14290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   14291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   14292   echo $ECHO_N "(cached) $ECHO_C" >&6
   14293 else
   14294   cat >conftest.$ac_ext <<_ACEOF
   14295 #line 14295 "configure"
   14296 #include "confdefs.h"
   14297 #include <$ac_header>
   14298 _ACEOF
   14299 if { (eval echo "$as_me:14299: \"$ac_cpp conftest.$ac_ext\"") >&5
   14300   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   14301   ac_status=$?
   14302   egrep -v '^ *\+' conftest.er1 >conftest.err
   14303   rm -f conftest.er1
   14304   cat conftest.err >&5
   14305   echo "$as_me:14305: \$? = $ac_status" >&5
   14306   (exit $ac_status); } >/dev/null; then
   14307   if test -s conftest.err; then
   14308     ac_cpp_err=$ac_c_preproc_warn_flag
   14309   else
   14310     ac_cpp_err=
   14311   fi
   14312 else
   14313   ac_cpp_err=yes
   14314 fi
   14315 if test -z "$ac_cpp_err"; then
   14316   eval "$as_ac_Header=yes"
   14317 else
   14318   echo "$as_me: failed program was:" >&5
   14319   cat conftest.$ac_ext >&5
   14320   eval "$as_ac_Header=no"
   14321 fi
   14322 rm -f conftest.err conftest.$ac_ext
   14323 fi
   14324 echo "$as_me:14324: result: `eval echo '${'$as_ac_Header'}'`" >&5
   14325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   14326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   14327   cat >>confdefs.h <<EOF
   14328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   14329 EOF
   14330 
   14331 fi
   14332 done
   14333 
   14334 cf_func_grantpt="grantpt ptsname"
   14335 case $host_os in
   14336 (darwin[0-9].*)
   14337 	;;
   14338 (*)
   14339 	cf_func_grantpt="$cf_func_grantpt posix_openpt"
   14340 	;;
   14341 esac
   14342 
   14343 for ac_func in $cf_func_grantpt
   14344 do
   14345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14346 echo "$as_me:14346: checking for $ac_func" >&5
   14347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   14348 if eval "test \"\${$as_ac_var+set}\" = set"; then
   14349   echo $ECHO_N "(cached) $ECHO_C" >&6
   14350 else
   14351   cat >conftest.$ac_ext <<_ACEOF
   14352 #line 14352 "configure"
   14353 #include "confdefs.h"
   14354 /* System header to define __stub macros and hopefully few prototypes,
   14355     which can conflict with char $ac_func (); below.  */
   14356 #include <assert.h>
   14357 /* Override any gcc2 internal prototype to avoid an error.  */
   14358 #ifdef __cplusplus
   14359 extern "C"
   14360 #endif
   14361 /* We use char because int might match the return type of a gcc2
   14362    builtin and then its argument prototype would still apply.  */
   14363 char $ac_func ();
   14364 char (*f) ();
   14365 
   14366 int
   14367 main (void)
   14368 {
   14369 /* The GNU C library defines this for functions which it implements
   14370     to always fail with ENOSYS.  Some functions are actually named
   14371     something starting with __ and the normal name is an alias.  */
   14372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   14373 choke me
   14374 #else
   14375 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
   14376 #endif
   14377 
   14378   ;
   14379   return 0;
   14380 }
   14381 _ACEOF
   14382 rm -f conftest.$ac_objext conftest$ac_exeext
   14383 if { (eval echo "$as_me:14383: \"$ac_link\"") >&5
   14384   (eval $ac_link) 2>&5
   14385   ac_status=$?
   14386   echo "$as_me:14386: \$? = $ac_status" >&5
   14387   (exit $ac_status); } &&
   14388          { ac_try='test -s conftest$ac_exeext'
   14389   { (eval echo "$as_me:14389: \"$ac_try\"") >&5
   14390   (eval $ac_try) 2>&5
   14391   ac_status=$?
   14392   echo "$as_me:14392: \$? = $ac_status" >&5
   14393   (exit $ac_status); }; }; then
   14394   eval "$as_ac_var=yes"
   14395 else
   14396   echo "$as_me: failed program was:" >&5
   14397 cat conftest.$ac_ext >&5
   14398 eval "$as_ac_var=no"
   14399 fi
   14400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   14401 fi
   14402 echo "$as_me:14402: result: `eval echo '${'$as_ac_var'}'`" >&5
   14403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   14404 if test `eval echo '${'$as_ac_var'}'` = yes; then
   14405   cat >>confdefs.h <<EOF
   14406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14407 EOF
   14408 
   14409 fi
   14410 done
   14411 
   14412 cf_grantpt_opts=
   14413 if test "x$ac_cv_func_grantpt" = "xyes" ; then
   14414 	echo "$as_me:14414: checking if grantpt really works" >&5
   14415 echo $ECHO_N "checking if grantpt really works... $ECHO_C" >&6
   14416 	cat >conftest.$ac_ext <<_ACEOF
   14417 #line 14417 "configure"
   14418 #include "confdefs.h"
   14419 
   14420 #include <stdlib.h>
   14421 #include <termios.h>
   14422 #include <unistd.h>
   14423 #include <signal.h>
   14424 #include <fcntl.h>
   14425 #include <errno.h>
   14426 
   14427 #ifndef HAVE_POSIX_OPENPT
   14428 #undef posix_openpt
   14429 #define posix_openpt(mode) open("/dev/ptmx", mode)
   14430 #endif
   14431 
   14432 #ifdef HAVE_STROPTS_H
   14433 #include <stropts.h>
   14434 #endif
   14435 
   14436 static void failed(int code)
   14437 {
   14438 	perror("conftest");
   14439 	exit(code);
   14440 }
   14441 
   14442 static void my_timeout(int sig)
   14443 {
   14444 	exit(99);
   14445 }
   14446 
   14447 int
   14448 main (void)
   14449 {
   14450 
   14451 	int code = 0;
   14452 	int rc;
   14453 	int pty;
   14454 	int tty;
   14455 	char *slave;
   14456 	struct termios tio;
   14457 
   14458 	signal(SIGALRM, my_timeout);
   14459 
   14460 	if (alarm(2) == 9)
   14461 		failed(9);
   14462 	else if ((pty = posix_openpt(O_RDWR)) < 0)
   14463 		failed(1);
   14464 	else if ((rc = grantpt(pty)) < 0)
   14465 		failed(2);
   14466 	else if ((rc = unlockpt(pty)) < 0)
   14467 		failed(3);
   14468 	else if ((slave = ptsname(pty)) == 0)
   14469 		failed(4);
   14470 #if (CONFTEST == 3) || defined(CONFTEST_isatty)
   14471 	else if (!isatty(pty))
   14472 		failed(4);
   14473 #endif
   14474 #if CONFTEST >= 4
   14475     else if ((rc = tcgetattr(pty, &tio)) < 0)
   14476 		failed(20);
   14477     else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0)
   14478 		failed(21);
   14479 #endif
   14480 	/* BSD posix_openpt does not treat pty as a terminal until slave is opened.
   14481 	 * Linux does treat it that way.
   14482 	 */
   14483 	else if ((tty = open(slave, O_RDWR)) < 0)
   14484 		failed(5);
   14485 #ifdef CONFTEST
   14486 #ifdef I_PUSH
   14487 #if (CONFTEST == 0) || defined(CONFTEST_ptem)
   14488     else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0)
   14489 		failed(10);
   14490 #endif
   14491 #if (CONFTEST == 1) || defined(CONFTEST_ldterm)
   14492     else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0)
   14493 		failed(11);
   14494 #endif
   14495 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat)
   14496     else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0)
   14497 		failed(12);
   14498 #endif
   14499 #endif /* I_PUSH */
   14500 #if CONFTEST >= 5
   14501     else if ((rc = tcgetattr(tty, &tio)) < 0)
   14502 		failed(30);
   14503     else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0)
   14504 		failed(31);
   14505 #endif
   14506 #endif /* CONFTEST */
   14507 
   14508 	${cf_cv_main_return:-return}(code);
   14509 
   14510   ;
   14511   return 0;
   14512 }
   14513 _ACEOF
   14514 rm -f conftest.$ac_objext conftest$ac_exeext
   14515 if { (eval echo "$as_me:14515: \"$ac_link\"") >&5
   14516   (eval $ac_link) 2>&5
   14517   ac_status=$?
   14518   echo "$as_me:14518: \$? = $ac_status" >&5
   14519   (exit $ac_status); } &&
   14520          { ac_try='test -s conftest$ac_exeext'
   14521   { (eval echo "$as_me:14521: \"$ac_try\"") >&5
   14522   (eval $ac_try) 2>&5
   14523   ac_status=$?
   14524   echo "$as_me:14524: \$? = $ac_status" >&5
   14525   (exit $ac_status); }; }; then
   14526 
   14527 	if test "$cross_compiling" = yes; then
   14528   ac_cv_func_grantpt=maybe
   14529 else
   14530   cat >conftest.$ac_ext <<_ACEOF
   14531 #line 14531 "configure"
   14532 #include "confdefs.h"
   14533 
   14534 #include <stdlib.h>
   14535 #include <termios.h>
   14536 #include <unistd.h>
   14537 #include <signal.h>
   14538 #include <fcntl.h>
   14539 #include <errno.h>
   14540 
   14541 #ifndef HAVE_POSIX_OPENPT
   14542 #undef posix_openpt
   14543 #define posix_openpt(mode) open("/dev/ptmx", mode)
   14544 #endif
   14545 
   14546 #ifdef HAVE_STROPTS_H
   14547 #include <stropts.h>
   14548 #endif
   14549 
   14550 static void failed(int code)
   14551 {
   14552 	perror("conftest");
   14553 	exit(code);
   14554 }
   14555 
   14556 static void my_timeout(int sig)
   14557 {
   14558 	exit(99);
   14559 }
   14560 
   14561 int main(void)
   14562 {
   14563 
   14564 	int code = 0;
   14565 	int rc;
   14566 	int pty;
   14567 	int tty;
   14568 	char *slave;
   14569 	struct termios tio;
   14570 
   14571 	signal(SIGALRM, my_timeout);
   14572 
   14573 	if (alarm(2) == 9)
   14574 		failed(9);
   14575 	else if ((pty = posix_openpt(O_RDWR)) < 0)
   14576 		failed(1);
   14577 	else if ((rc = grantpt(pty)) < 0)
   14578 		failed(2);
   14579 	else if ((rc = unlockpt(pty)) < 0)
   14580 		failed(3);
   14581 	else if ((slave = ptsname(pty)) == 0)
   14582 		failed(4);
   14583 #if (CONFTEST == 3) || defined(CONFTEST_isatty)
   14584 	else if (!isatty(pty))
   14585 		failed(4);
   14586 #endif
   14587 #if CONFTEST >= 4
   14588     else if ((rc = tcgetattr(pty, &tio)) < 0)
   14589 		failed(20);
   14590     else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0)
   14591 		failed(21);
   14592 #endif
   14593 	/* BSD posix_openpt does not treat pty as a terminal until slave is opened.
   14594 	 * Linux does treat it that way.
   14595 	 */
   14596 	else if ((tty = open(slave, O_RDWR)) < 0)
   14597 		failed(5);
   14598 #ifdef CONFTEST
   14599 #ifdef I_PUSH
   14600 #if (CONFTEST == 0) || defined(CONFTEST_ptem)
   14601     else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0)
   14602 		failed(10);
   14603 #endif
   14604 #if (CONFTEST == 1) || defined(CONFTEST_ldterm)
   14605     else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0)
   14606 		failed(11);
   14607 #endif
   14608 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat)
   14609     else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0)
   14610 		failed(12);
   14611 #endif
   14612 #endif /* I_PUSH */
   14613 #if CONFTEST >= 5
   14614     else if ((rc = tcgetattr(tty, &tio)) < 0)
   14615 		failed(30);
   14616     else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0)
   14617 		failed(31);
   14618 #endif
   14619 #endif /* CONFTEST */
   14620 
   14621 	${cf_cv_main_return:-return}(code);
   14622 
   14623 }
   14624 
   14625 _ACEOF
   14626 rm -f conftest$ac_exeext
   14627 if { (eval echo "$as_me:14627: \"$ac_link\"") >&5
   14628   (eval $ac_link) 2>&5
   14629   ac_status=$?
   14630   echo "$as_me:14630: \$? = $ac_status" >&5
   14631   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   14632   { (eval echo "$as_me:14632: \"$ac_try\"") >&5
   14633   (eval $ac_try) 2>&5
   14634   ac_status=$?
   14635   echo "$as_me:14635: \$? = $ac_status" >&5
   14636   (exit $ac_status); }; }; then
   14637   :
   14638 else
   14639   echo "$as_me: program exited with status $ac_status" >&5
   14640 echo "$as_me: failed program was:" >&5
   14641 cat conftest.$ac_ext >&5
   14642 ac_cv_func_grantpt=no
   14643 
   14644 fi
   14645 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   14646 fi
   14647 
   14648 else
   14649   echo "$as_me: failed program was:" >&5
   14650 cat conftest.$ac_ext >&5
   14651 ac_cv_func_grantpt=no
   14652 fi
   14653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   14654 	echo "$as_me:14654: result: $ac_cv_func_grantpt" >&5
   14655 echo "${ECHO_T}$ac_cv_func_grantpt" >&6
   14656 
   14657 	if test "x$ac_cv_func_grantpt" != "xno" ; then
   14658 
   14659 		if test "x$ac_cv_func_grantpt" = "xyes" ; then
   14660 			echo "$as_me:14660: checking for pty features" >&5
   14661 echo $ECHO_N "checking for pty features... $ECHO_C" >&6
   14662 			if test "x$ac_cv_header_stropts_h" = xyes
   14663 			then
   14664 				cf_pty_this=0
   14665 			else
   14666 				cf_pty_this=3
   14667 			fi
   14668 
   14669 			cf_pty_defines=
   14670 			while test $cf_pty_this != 6
   14671 			do
   14672 
   14673 				cf_pty_feature=
   14674 				cf_pty_next=`expr $cf_pty_this + 1`
   14675 
   14676 echo "${as_me:-configure}:14676: testing pty feature test $cf_pty_next:5 ..." 1>&5
   14677 
   14678 				if test "$cross_compiling" = yes; then
   14679   { { echo "$as_me:14679: error: cannot run test program while cross compiling" >&5
   14680 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   14681    { (exit 1); exit 1; }; }
   14682 else
   14683   cat >conftest.$ac_ext <<_ACEOF
   14684 #line 14684 "configure"
   14685 #include "confdefs.h"
   14686 #define CONFTEST $cf_pty_this
   14687 $cf_pty_defines
   14688 
   14689 #include <stdlib.h>
   14690 #include <termios.h>
   14691 #include <unistd.h>
   14692 #include <signal.h>
   14693 #include <fcntl.h>
   14694 #include <errno.h>
   14695 
   14696 #ifndef HAVE_POSIX_OPENPT
   14697 #undef posix_openpt
   14698 #define posix_openpt(mode) open("/dev/ptmx", mode)
   14699 #endif
   14700 
   14701 #ifdef HAVE_STROPTS_H
   14702 #include <stropts.h>
   14703 #endif
   14704 
   14705 static void failed(int code)
   14706 {
   14707 	perror("conftest");
   14708 	exit(code);
   14709 }
   14710 
   14711 static void my_timeout(int sig)
   14712 {
   14713 	exit(99);
   14714 }
   14715 
   14716 int main(void)
   14717 {
   14718 
   14719 	int code = 0;
   14720 	int rc;
   14721 	int pty;
   14722 	int tty;
   14723 	char *slave;
   14724 	struct termios tio;
   14725 
   14726 	signal(SIGALRM, my_timeout);
   14727 
   14728 	if (alarm(2) == 9)
   14729 		failed(9);
   14730 	else if ((pty = posix_openpt(O_RDWR)) < 0)
   14731 		failed(1);
   14732 	else if ((rc = grantpt(pty)) < 0)
   14733 		failed(2);
   14734 	else if ((rc = unlockpt(pty)) < 0)
   14735 		failed(3);
   14736 	else if ((slave = ptsname(pty)) == 0)
   14737 		failed(4);
   14738 #if (CONFTEST == 3) || defined(CONFTEST_isatty)
   14739 	else if (!isatty(pty))
   14740 		failed(4);
   14741 #endif
   14742 #if CONFTEST >= 4
   14743     else if ((rc = tcgetattr(pty, &tio)) < 0)
   14744 		failed(20);
   14745     else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0)
   14746 		failed(21);
   14747 #endif
   14748 	/* BSD posix_openpt does not treat pty as a terminal until slave is opened.
   14749 	 * Linux does treat it that way.
   14750 	 */
   14751 	else if ((tty = open(slave, O_RDWR)) < 0)
   14752 		failed(5);
   14753 #ifdef CONFTEST
   14754 #ifdef I_PUSH
   14755 #if (CONFTEST == 0) || defined(CONFTEST_ptem)
   14756     else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0)
   14757 		failed(10);
   14758 #endif
   14759 #if (CONFTEST == 1) || defined(CONFTEST_ldterm)
   14760     else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0)
   14761 		failed(11);
   14762 #endif
   14763 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat)
   14764     else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0)
   14765 		failed(12);
   14766 #endif
   14767 #endif /* I_PUSH */
   14768 #if CONFTEST >= 5
   14769     else if ((rc = tcgetattr(tty, &tio)) < 0)
   14770 		failed(30);
   14771     else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0)
   14772 		failed(31);
   14773 #endif
   14774 #endif /* CONFTEST */
   14775 
   14776 	${cf_cv_main_return:-return}(code);
   14777 
   14778 }
   14779 
   14780 _ACEOF
   14781 rm -f conftest$ac_exeext
   14782 if { (eval echo "$as_me:14782: \"$ac_link\"") >&5
   14783   (eval $ac_link) 2>&5
   14784   ac_status=$?
   14785   echo "$as_me:14785: \$? = $ac_status" >&5
   14786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   14787   { (eval echo "$as_me:14787: \"$ac_try\"") >&5
   14788   (eval $ac_try) 2>&5
   14789   ac_status=$?
   14790   echo "$as_me:14790: \$? = $ac_status" >&5
   14791   (exit $ac_status); }; }; then
   14792 
   14793 				case $cf_pty_next in
   14794 				(1) # - streams
   14795 					cf_pty_feature=ptem
   14796 					;;
   14797 				(2) # - streams
   14798 					cf_pty_feature=ldterm
   14799 					;;
   14800 				(3) # - streams
   14801 					cf_pty_feature=ttcompat
   14802 					;;
   14803 				(4)
   14804 					cf_pty_feature=pty_isatty
   14805 					;;
   14806 				(5)
   14807 					cf_pty_feature=pty_tcsetattr
   14808 					;;
   14809 				(6)
   14810 					cf_pty_feature=tty_tcsetattr
   14811 					;;
   14812 				esac
   14813 
   14814 else
   14815   echo "$as_me: program exited with status $ac_status" >&5
   14816 echo "$as_me: failed program was:" >&5
   14817 cat conftest.$ac_ext >&5
   14818 
   14819 				case $cf_pty_next in
   14820 				(1|2|3)
   14821 
   14822 echo "${as_me:-configure}:14822: testing skipping remaining streams features $cf_pty_this..2 ..." 1>&5
   14823 
   14824 					cf_pty_next=3
   14825 					;;
   14826 				esac
   14827 
   14828 fi
   14829 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   14830 fi
   14831 				if test -n "$cf_pty_feature"
   14832 				then
   14833 					cf_pty_defines="$cf_pty_defines
   14834 #define CONFTEST_$cf_pty_feature 1
   14835 "
   14836 					cf_grantpt_opts="$cf_grantpt_opts $cf_pty_feature"
   14837 				fi
   14838 
   14839 				cf_pty_this=$cf_pty_next
   14840 			done
   14841 			echo "$as_me:14841: result: $cf_grantpt_opts" >&5
   14842 echo "${ECHO_T}$cf_grantpt_opts" >&6
   14843 			cf_grantpt_opts=`echo "$cf_grantpt_opts" | sed -e 's/ isatty//'`
   14844 		fi
   14845 	fi
   14846 fi
   14847 
   14848 if test "x$disable_openpty" != "xyes" || test -z "$cf_grantpt_opts" ; then
   14849 	echo "$as_me:14849: checking for openpty in -lutil" >&5
   14850 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
   14851 if test "${ac_cv_lib_util_openpty+set}" = set; then
   14852   echo $ECHO_N "(cached) $ECHO_C" >&6
   14853 else
   14854   ac_check_lib_save_LIBS=$LIBS
   14855 LIBS="-lutil  $LIBS"
   14856 cat >conftest.$ac_ext <<_ACEOF
   14857 #line 14857 "configure"
   14858 #include "confdefs.h"
   14859 
   14860 /* Override any gcc2 internal prototype to avoid an error.  */
   14861 #ifdef __cplusplus
   14862 extern "C"
   14863 #endif
   14864 /* We use char because int might match the return type of a gcc2
   14865    builtin and then its argument prototype would still apply.  */
   14866 char openpty ();
   14867 int
   14868 main (void)
   14869 {
   14870 openpty ();
   14871   ;
   14872   return 0;
   14873 }
   14874 _ACEOF
   14875 rm -f conftest.$ac_objext conftest$ac_exeext
   14876 if { (eval echo "$as_me:14876: \"$ac_link\"") >&5
   14877   (eval $ac_link) 2>&5
   14878   ac_status=$?
   14879   echo "$as_me:14879: \$? = $ac_status" >&5
   14880   (exit $ac_status); } &&
   14881          { ac_try='test -s conftest$ac_exeext'
   14882   { (eval echo "$as_me:14882: \"$ac_try\"") >&5
   14883   (eval $ac_try) 2>&5
   14884   ac_status=$?
   14885   echo "$as_me:14885: \$? = $ac_status" >&5
   14886   (exit $ac_status); }; }; then
   14887   ac_cv_lib_util_openpty=yes
   14888 else
   14889   echo "$as_me: failed program was:" >&5
   14890 cat conftest.$ac_ext >&5
   14891 ac_cv_lib_util_openpty=no
   14892 fi
   14893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   14894 LIBS=$ac_check_lib_save_LIBS
   14895 fi
   14896 echo "$as_me:14896: result: $ac_cv_lib_util_openpty" >&5
   14897 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
   14898 if test $ac_cv_lib_util_openpty = yes; then
   14899   cf_have_openpty=yes
   14900 else
   14901   cf_have_openpty=no
   14902 fi
   14903 
   14904 	if test "$cf_have_openpty" = yes ; then
   14905 		ac_cv_func_grantpt=no
   14906 		LIBS="-lutil $LIBS"
   14907 
   14908 cat >>confdefs.h <<\EOF
   14909 #define HAVE_OPENPTY 1
   14910 EOF
   14911 
   14912 for ac_header in \
   14913 			util.h \
   14914 			libutil.h \
   14915 			pty.h \
   14916 
   14917 do
   14918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14919 echo "$as_me:14919: checking for $ac_header" >&5
   14920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   14921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   14922   echo $ECHO_N "(cached) $ECHO_C" >&6
   14923 else
   14924   cat >conftest.$ac_ext <<_ACEOF
   14925 #line 14925 "configure"
   14926 #include "confdefs.h"
   14927 #include <$ac_header>
   14928 _ACEOF
   14929 if { (eval echo "$as_me:14929: \"$ac_cpp conftest.$ac_ext\"") >&5
   14930   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   14931   ac_status=$?
   14932   egrep -v '^ *\+' conftest.er1 >conftest.err
   14933   rm -f conftest.er1
   14934   cat conftest.err >&5
   14935   echo "$as_me:14935: \$? = $ac_status" >&5
   14936   (exit $ac_status); } >/dev/null; then
   14937   if test -s conftest.err; then
   14938     ac_cpp_err=$ac_c_preproc_warn_flag
   14939   else
   14940     ac_cpp_err=
   14941   fi
   14942 else
   14943   ac_cpp_err=yes
   14944 fi
   14945 if test -z "$ac_cpp_err"; then
   14946   eval "$as_ac_Header=yes"
   14947 else
   14948   echo "$as_me: failed program was:" >&5
   14949   cat conftest.$ac_ext >&5
   14950   eval "$as_ac_Header=no"
   14951 fi
   14952 rm -f conftest.err conftest.$ac_ext
   14953 fi
   14954 echo "$as_me:14954: result: `eval echo '${'$as_ac_Header'}'`" >&5
   14955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   14956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   14957   cat >>confdefs.h <<EOF
   14958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   14959 EOF
   14960 
   14961 fi
   14962 done
   14963 
   14964 	fi
   14965 fi
   14966 
   14967 if test "x$ac_cv_func_grantpt" != xno
   14968 then
   14969 	test -n "$verbose" && echo "	will rely upon grantpt" 1>&6
   14970 
   14971 echo "${as_me:-configure}:14971: testing will rely upon grantpt ..." 1>&5
   14972 
   14973 cat >>confdefs.h <<\EOF
   14974 #define HAVE_WORKING_GRANTPT 1
   14975 EOF
   14976 
   14977 	for cf_feature in $cf_grantpt_opts
   14978 	do
   14979 		cf_feature=`echo "$cf_feature" | sed -e 's/ //g'`
   14980 
   14981 cf_FEATURE=`echo "$cf_feature" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   14982 
   14983 		cat >>confdefs.h <<EOF
   14984 #define HAVE_GRANTPT_$cf_FEATURE 1
   14985 EOF
   14986 
   14987 	done
   14988 elif test "x$cf_have_openpty" = xno
   14989 then
   14990 	test -n "$verbose" && echo "	will rely upon BSD-pseudoterminals" 1>&6
   14991 
   14992 echo "${as_me:-configure}:14992: testing will rely upon BSD-pseudoterminals ..." 1>&5
   14993 
   14994 else
   14995 	test -n "$verbose" && echo "	will rely upon openpty" 1>&6
   14996 
   14997 echo "${as_me:-configure}:14997: testing will rely upon openpty ..." 1>&5
   14998 
   14999 fi
   15000 
   15001 echo "$as_me:15001: checking if we can use XkbQueryExtension" >&5
   15002 echo $ECHO_N "checking if we can use XkbQueryExtension... $ECHO_C" >&6
   15003 if test "${cf_cv_xkb_query_extension+set}" = set; then
   15004   echo $ECHO_N "(cached) $ECHO_C" >&6
   15005 else
   15006 
   15007 cat >conftest.$ac_ext <<_ACEOF
   15008 #line 15008 "configure"
   15009 #include "confdefs.h"
   15010 
   15011 #include <X11/Xlib.h>
   15012 #include <X11/extensions/XKB.h>
   15013 #include <X11/XKBlib.h>
   15014 
   15015 int
   15016 main (void)
   15017 {
   15018 
   15019 	int xkbmajor = XkbMajorVersion;
   15020 	int xkbminor = XkbMinorVersion;
   15021 	int xkbopcode, xkbevent, xkberror;
   15022 
   15023 	if (XkbLibraryVersion(&xkbmajor, &xkbminor)
   15024 	    && XkbQueryExtension((Display *)0,
   15025 				 &xkbopcode,
   15026 				 &xkbevent,
   15027 				 &xkberror,
   15028 				 &xkbmajor,
   15029 				 &xkbminor))
   15030 		 return 0;
   15031 
   15032   ;
   15033   return 0;
   15034 }
   15035 _ACEOF
   15036 rm -f conftest.$ac_objext
   15037 if { (eval echo "$as_me:15037: \"$ac_compile\"") >&5
   15038   (eval $ac_compile) 2>&5
   15039   ac_status=$?
   15040   echo "$as_me:15040: \$? = $ac_status" >&5
   15041   (exit $ac_status); } &&
   15042          { ac_try='test -s conftest.$ac_objext'
   15043   { (eval echo "$as_me:15043: \"$ac_try\"") >&5
   15044   (eval $ac_try) 2>&5
   15045   ac_status=$?
   15046   echo "$as_me:15046: \$? = $ac_status" >&5
   15047   (exit $ac_status); }; }; then
   15048 
   15049 cf_cv_xkb_query_extension=yes
   15050 
   15051 else
   15052   echo "$as_me: failed program was:" >&5
   15053 cat conftest.$ac_ext >&5
   15054 
   15055 cf_cv_xkb_query_extension=no
   15056 
   15057 fi
   15058 rm -f conftest.$ac_objext conftest.$ac_ext
   15059 
   15060 fi
   15061 echo "$as_me:15061: result: $cf_cv_xkb_query_extension" >&5
   15062 echo "${ECHO_T}$cf_cv_xkb_query_extension" >&6
   15063 
   15064 if test $cf_cv_xkb_query_extension = yes
   15065 then
   15066 
   15067 for ac_func in XkbQueryExtension
   15068 do
   15069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15070 echo "$as_me:15070: checking for $ac_func" >&5
   15071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   15072 if eval "test \"\${$as_ac_var+set}\" = set"; then
   15073   echo $ECHO_N "(cached) $ECHO_C" >&6
   15074 else
   15075   cat >conftest.$ac_ext <<_ACEOF
   15076 #line 15076 "configure"
   15077 #include "confdefs.h"
   15078 /* System header to define __stub macros and hopefully few prototypes,
   15079     which can conflict with char $ac_func (); below.  */
   15080 #include <assert.h>
   15081 /* Override any gcc2 internal prototype to avoid an error.  */
   15082 #ifdef __cplusplus
   15083 extern "C"
   15084 #endif
   15085 /* We use char because int might match the return type of a gcc2
   15086    builtin and then its argument prototype would still apply.  */
   15087 char $ac_func ();
   15088 char (*f) ();
   15089 
   15090 int
   15091 main (void)
   15092 {
   15093 /* The GNU C library defines this for functions which it implements
   15094     to always fail with ENOSYS.  Some functions are actually named
   15095     something starting with __ and the normal name is an alias.  */
   15096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   15097 choke me
   15098 #else
   15099 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
   15100 #endif
   15101 
   15102   ;
   15103   return 0;
   15104 }
   15105 _ACEOF
   15106 rm -f conftest.$ac_objext conftest$ac_exeext
   15107 if { (eval echo "$as_me:15107: \"$ac_link\"") >&5
   15108   (eval $ac_link) 2>&5
   15109   ac_status=$?
   15110   echo "$as_me:15110: \$? = $ac_status" >&5
   15111   (exit $ac_status); } &&
   15112          { ac_try='test -s conftest$ac_exeext'
   15113   { (eval echo "$as_me:15113: \"$ac_try\"") >&5
   15114   (eval $ac_try) 2>&5
   15115   ac_status=$?
   15116   echo "$as_me:15116: \$? = $ac_status" >&5
   15117   (exit $ac_status); }; }; then
   15118   eval "$as_ac_var=yes"
   15119 else
   15120   echo "$as_me: failed program was:" >&5
   15121 cat conftest.$ac_ext >&5
   15122 eval "$as_ac_var=no"
   15123 fi
   15124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   15125 fi
   15126 echo "$as_me:15126: result: `eval echo '${'$as_ac_var'}'`" >&5
   15127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   15128 if test `eval echo '${'$as_ac_var'}'` = yes; then
   15129   cat >>confdefs.h <<EOF
   15130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15131 EOF
   15132 
   15133 fi
   15134 done
   15135 
   15136 fi
   15137 
   15138 echo "$as_me:15138: checking if we can use XkbKeycodeToKeysym" >&5
   15139 echo $ECHO_N "checking if we can use XkbKeycodeToKeysym... $ECHO_C" >&6
   15140 if test "${cf_cv_xkb_keycode_to_keysym+set}" = set; then
   15141   echo $ECHO_N "(cached) $ECHO_C" >&6
   15142 else
   15143 
   15144 cat >conftest.$ac_ext <<_ACEOF
   15145 #line 15145 "configure"
   15146 #include "confdefs.h"
   15147 
   15148 #include <X11/Xlib.h>
   15149 #include <X11/XKBlib.h>
   15150 
   15151 int
   15152 main (void)
   15153 {
   15154 
   15155     KeySym keysym = XkbKeycodeToKeysym((Display *)0, 0, 0, 0);
   15156 
   15157   ;
   15158   return 0;
   15159 }
   15160 _ACEOF
   15161 rm -f conftest.$ac_objext
   15162 if { (eval echo "$as_me:15162: \"$ac_compile\"") >&5
   15163   (eval $ac_compile) 2>&5
   15164   ac_status=$?
   15165   echo "$as_me:15165: \$? = $ac_status" >&5
   15166   (exit $ac_status); } &&
   15167          { ac_try='test -s conftest.$ac_objext'
   15168   { (eval echo "$as_me:15168: \"$ac_try\"") >&5
   15169   (eval $ac_try) 2>&5
   15170   ac_status=$?
   15171   echo "$as_me:15171: \$? = $ac_status" >&5
   15172   (exit $ac_status); }; }; then
   15173 
   15174 cf_cv_xkb_keycode_to_keysym=yes
   15175 
   15176 else
   15177   echo "$as_me: failed program was:" >&5
   15178 cat conftest.$ac_ext >&5
   15179 
   15180 cf_cv_xkb_keycode_to_keysym=no
   15181 
   15182 fi
   15183 rm -f conftest.$ac_objext conftest.$ac_ext
   15184 
   15185 fi
   15186 echo "$as_me:15186: result: $cf_cv_xkb_keycode_to_keysym" >&5
   15187 echo "${ECHO_T}$cf_cv_xkb_keycode_to_keysym" >&6
   15188 
   15189 if test $cf_cv_xkb_keycode_to_keysym = yes
   15190 then
   15191 
   15192 for ac_func in XkbKeycodeToKeysym
   15193 do
   15194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15195 echo "$as_me:15195: checking for $ac_func" >&5
   15196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   15197 if eval "test \"\${$as_ac_var+set}\" = set"; then
   15198   echo $ECHO_N "(cached) $ECHO_C" >&6
   15199 else
   15200   cat >conftest.$ac_ext <<_ACEOF
   15201 #line 15201 "configure"
   15202 #include "confdefs.h"
   15203 /* System header to define __stub macros and hopefully few prototypes,
   15204     which can conflict with char $ac_func (); below.  */
   15205 #include <assert.h>
   15206 /* Override any gcc2 internal prototype to avoid an error.  */
   15207 #ifdef __cplusplus
   15208 extern "C"
   15209 #endif
   15210 /* We use char because int might match the return type of a gcc2
   15211    builtin and then its argument prototype would still apply.  */
   15212 char $ac_func ();
   15213 char (*f) ();
   15214 
   15215 int
   15216 main (void)
   15217 {
   15218 /* The GNU C library defines this for functions which it implements
   15219     to always fail with ENOSYS.  Some functions are actually named
   15220     something starting with __ and the normal name is an alias.  */
   15221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   15222 choke me
   15223 #else
   15224 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
   15225 #endif
   15226 
   15227   ;
   15228   return 0;
   15229 }
   15230 _ACEOF
   15231 rm -f conftest.$ac_objext conftest$ac_exeext
   15232 if { (eval echo "$as_me:15232: \"$ac_link\"") >&5
   15233   (eval $ac_link) 2>&5
   15234   ac_status=$?
   15235   echo "$as_me:15235: \$? = $ac_status" >&5
   15236   (exit $ac_status); } &&
   15237          { ac_try='test -s conftest$ac_exeext'
   15238   { (eval echo "$as_me:15238: \"$ac_try\"") >&5
   15239   (eval $ac_try) 2>&5
   15240   ac_status=$?
   15241   echo "$as_me:15241: \$? = $ac_status" >&5
   15242   (exit $ac_status); }; }; then
   15243   eval "$as_ac_var=yes"
   15244 else
   15245   echo "$as_me: failed program was:" >&5
   15246 cat conftest.$ac_ext >&5
   15247 eval "$as_ac_var=no"
   15248 fi
   15249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   15250 fi
   15251 echo "$as_me:15251: result: `eval echo '${'$as_ac_var'}'`" >&5
   15252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   15253 if test `eval echo '${'$as_ac_var'}'` = yes; then
   15254   cat >>confdefs.h <<EOF
   15255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15256 EOF
   15257 
   15258 fi
   15259 done
   15260 
   15261 fi
   15262 
   15263 echo "$as_me:15263: checking for XKB Bell extension" >&5
   15264 echo $ECHO_N "checking for XKB Bell extension... $ECHO_C" >&6
   15265 if test "${cf_cv_xkb_bell_ext+set}" = set; then
   15266   echo $ECHO_N "(cached) $ECHO_C" >&6
   15267 else
   15268 
   15269 cat >conftest.$ac_ext <<_ACEOF
   15270 #line 15270 "configure"
   15271 #include "confdefs.h"
   15272 
   15273 #include <X11/Intrinsic.h>
   15274 #include <X11/XKBlib.h>		/* has the prototype */
   15275 #include <X11/extensions/XKBbells.h>	/* has the XkbBI_xxx definitions */
   15276 
   15277 int
   15278 main (void)
   15279 {
   15280 
   15281 	int x = (XkbBI_Info |XkbBI_MinorError |XkbBI_MajorError |XkbBI_TerminalBell |XkbBI_MarginBell);
   15282 	Atom y;
   15283 	XkbBell((Display *)0, (Widget)0, 0, y);
   15284 
   15285   ;
   15286   return 0;
   15287 }
   15288 _ACEOF
   15289 rm -f conftest.$ac_objext conftest$ac_exeext
   15290 if { (eval echo "$as_me:15290: \"$ac_link\"") >&5
   15291   (eval $ac_link) 2>&5
   15292   ac_status=$?
   15293   echo "$as_me:15293: \$? = $ac_status" >&5
   15294   (exit $ac_status); } &&
   15295          { ac_try='test -s conftest$ac_exeext'
   15296   { (eval echo "$as_me:15296: \"$ac_try\"") >&5
   15297   (eval $ac_try) 2>&5
   15298   ac_status=$?
   15299   echo "$as_me:15299: \$? = $ac_status" >&5
   15300   (exit $ac_status); }; }; then
   15301   cf_cv_xkb_bell_ext=yes
   15302 else
   15303   echo "$as_me: failed program was:" >&5
   15304 cat conftest.$ac_ext >&5
   15305 cf_cv_xkb_bell_ext=no
   15306 fi
   15307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   15308 
   15309 fi
   15310 echo "$as_me:15310: result: $cf_cv_xkb_bell_ext" >&5
   15311 echo "${ECHO_T}$cf_cv_xkb_bell_ext" >&6
   15312 test "$cf_cv_xkb_bell_ext" = yes &&
   15313 cat >>confdefs.h <<\EOF
   15314 #define HAVE_XKB_BELL_EXT 1
   15315 EOF
   15316 
   15317 for ac_func in Xutf8LookupString
   15318 do
   15319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15320 echo "$as_me:15320: checking for $ac_func" >&5
   15321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   15322 if eval "test \"\${$as_ac_var+set}\" = set"; then
   15323   echo $ECHO_N "(cached) $ECHO_C" >&6
   15324 else
   15325   cat >conftest.$ac_ext <<_ACEOF
   15326 #line 15326 "configure"
   15327 #include "confdefs.h"
   15328 /* System header to define __stub macros and hopefully few prototypes,
   15329     which can conflict with char $ac_func (); below.  */
   15330 #include <assert.h>
   15331 /* Override any gcc2 internal prototype to avoid an error.  */
   15332 #ifdef __cplusplus
   15333 extern "C"
   15334 #endif
   15335 /* We use char because int might match the return type of a gcc2
   15336    builtin and then its argument prototype would still apply.  */
   15337 char $ac_func ();
   15338 char (*f) ();
   15339 
   15340 int
   15341 main (void)
   15342 {
   15343 /* The GNU C library defines this for functions which it implements
   15344     to always fail with ENOSYS.  Some functions are actually named
   15345     something starting with __ and the normal name is an alias.  */
   15346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   15347 choke me
   15348 #else
   15349 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
   15350 #endif
   15351 
   15352   ;
   15353   return 0;
   15354 }
   15355 _ACEOF
   15356 rm -f conftest.$ac_objext conftest$ac_exeext
   15357 if { (eval echo "$as_me:15357: \"$ac_link\"") >&5
   15358   (eval $ac_link) 2>&5
   15359   ac_status=$?
   15360   echo "$as_me:15360: \$? = $ac_status" >&5
   15361   (exit $ac_status); } &&
   15362          { ac_try='test -s conftest$ac_exeext'
   15363   { (eval echo "$as_me:15363: \"$ac_try\"") >&5
   15364   (eval $ac_try) 2>&5
   15365   ac_status=$?
   15366   echo "$as_me:15366: \$? = $ac_status" >&5
   15367   (exit $ac_status); }; }; then
   15368   eval "$as_ac_var=yes"
   15369 else
   15370   echo "$as_me: failed program was:" >&5
   15371 cat conftest.$ac_ext >&5
   15372 eval "$as_ac_var=no"
   15373 fi
   15374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   15375 fi
   15376 echo "$as_me:15376: result: `eval echo '${'$as_ac_var'}'`" >&5
   15377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   15378 if test `eval echo '${'$as_ac_var'}'` = yes; then
   15379   cat >>confdefs.h <<EOF
   15380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15381 EOF
   15382 
   15383 else
   15384 
   15385 	EXTRAHDRS="$EXTRAHDRS xutf8.h"
   15386 	EXTRASRCS="$EXTRASRCS xutf8.c"
   15387 	EXTRAOBJS="$EXTRAOBJS xutf8.o"
   15388 
   15389 fi
   15390 done
   15391 
   15392 echo "$as_me:15392: checking if you want narrow prototypes for X libraries" >&5
   15393 echo $ECHO_N "checking if you want narrow prototypes for X libraries... $ECHO_C" >&6
   15394 
   15395 case `$ac_config_guess` in
   15396 (*freebsd*|*gnu*|*irix5*|*irix6*|*linux-gnu*|*netbsd*|*openbsd*|*qnx*|*sco*|*sgi*)
   15397 	cf_default_narrowproto=yes
   15398 	;;
   15399 (*)
   15400 	cf_default_narrowproto=no
   15401 	;;
   15402 esac
   15403 
   15404 # Check whether --enable-narrowproto or --disable-narrowproto was given.
   15405 if test "${enable_narrowproto+set}" = set; then
   15406   enableval="$enable_narrowproto"
   15407   test "$enableval" != no && enableval=yes
   15408 	if test "$enableval" != "$cf_default_narrowproto" ; then
   15409     enable_narrowproto=$enableval
   15410 	else
   15411 		enable_narrowproto=$cf_default_narrowproto
   15412 	fi
   15413 else
   15414   enableval=$cf_default_narrowproto
   15415 	enable_narrowproto=$cf_default_narrowproto
   15416 
   15417 fi;
   15418 echo "$as_me:15418: result: $enable_narrowproto" >&5
   15419 echo "${ECHO_T}$enable_narrowproto" >&6
   15420 
   15421 echo "$as_me:15421: checking if we should use imake to help" >&5
   15422 echo $ECHO_N "checking if we should use imake to help... $ECHO_C" >&6
   15423 
   15424 # Check whether --enable-imake or --disable-imake was given.
   15425 if test "${enable_imake+set}" = set; then
   15426   enableval="$enable_imake"
   15427   test "$enableval" != no && enableval=yes
   15428 	if test "$enableval" != "yes" ; then
   15429     enable_imake=no
   15430 	else
   15431 		enable_imake=yes
   15432 	fi
   15433 else
   15434   enableval=yes
   15435 	enable_imake=yes
   15436 
   15437 fi;
   15438 echo "$as_me:15438: result: $enable_imake" >&5
   15439 echo "${ECHO_T}$enable_imake" >&6
   15440 
   15441 if test "$enable_imake" = yes ; then
   15442 
   15443 for ac_prog in xmkmf imake
   15444 do
   15445   # Extract the first word of "$ac_prog", so it can be a program name with args.
   15446 set dummy $ac_prog; ac_word=$2
   15447 echo "$as_me:15447: checking for $ac_word" >&5
   15448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   15449 if test "${ac_cv_path_IMAKE+set}" = set; then
   15450   echo $ECHO_N "(cached) $ECHO_C" >&6
   15451 else
   15452   case $IMAKE in
   15453   [\\/]* | ?:[\\/]*)
   15454   ac_cv_path_IMAKE="$IMAKE" # Let the user override the test with a path.
   15455   ;;
   15456   *)
   15457   ac_save_IFS=$IFS; IFS=$ac_path_separator
   15458 ac_dummy="$PATH"
   15459 for ac_dir in $ac_dummy; do
   15460   IFS=$ac_save_IFS
   15461   test -z "$ac_dir" && ac_dir=.
   15462   if $as_executable_p "$ac_dir/$ac_word"; then
   15463    ac_cv_path_IMAKE="$ac_dir/$ac_word"
   15464    echo "$as_me:15464: found $ac_dir/$ac_word" >&5
   15465    break
   15466 fi
   15467 done
   15468 
   15469   ;;
   15470 esac
   15471 fi
   15472 IMAKE=$ac_cv_path_IMAKE
   15473 
   15474 if test -n "$IMAKE"; then
   15475   echo "$as_me:15475: result: $IMAKE" >&5
   15476 echo "${ECHO_T}$IMAKE" >&6
   15477 else
   15478   echo "$as_me:15478: result: no" >&5
   15479 echo "${ECHO_T}no" >&6
   15480 fi
   15481 
   15482   test -n "$IMAKE" && break
   15483 done
   15484 
   15485 if test -n "$IMAKE" ; then
   15486 
   15487 case $IMAKE in
   15488 (*/imake)
   15489 	cf_imake_opts="-DUseInstalled=YES"
   15490 	;;
   15491 (*/util/xmkmf)
   15492 	# A single parameter tells xmkmf where the config-files are:
   15493 	cf_imake_opts="`echo $IMAKE|sed -e s,/config/util/xmkmf,,`"
   15494 	;;
   15495 (*)
   15496 	cf_imake_opts=
   15497 	;;
   15498 esac
   15499 
   15500 # If it's installed properly, imake (or its wrapper, xmkmf) will point to the
   15501 # config directory.
   15502 if mkdir conftestdir; then
   15503 	CDPATH=; export CDPATH
   15504 	cf_makefile=`cd $srcdir;pwd`/Imakefile
   15505 	cd conftestdir
   15506 
   15507 	cat >fix_cflags.sed <<'CF_EOF'
   15508 s/\\//g
   15509 s/[ 	][ 	]*/ /g
   15510 s/"//g
   15511 :pack
   15512 s/\(=[^ ][^ ]*\) \([^-]\)/\1	\2/g
   15513 t pack
   15514 s/\(-D[a-zA-Z0-9_][a-zA-Z0-9_]*\)=\([^\'0-9 ][^ ]*\)/\1='\\"\2\\"'/g
   15515 s/^IMAKE[ ]/IMAKE_CFLAGS="/
   15516 s/	/ /g
   15517 s/$/"/
   15518 CF_EOF
   15519 
   15520 	cat >fix_lflags.sed <<'CF_EOF'
   15521 s/^IMAKE[ 	]*/IMAKE_LOADFLAGS="/
   15522 s/$/"/
   15523 CF_EOF
   15524 
   15525 	echo >./Imakefile
   15526 	test -f $cf_makefile && cat $cf_makefile >>./Imakefile
   15527 
   15528 	cat >> ./Imakefile <<'CF_EOF'
   15529 findstddefs:
   15530 	@echo IMAKE ${ALLDEFINES} $(MAIN_DEFINES) $(VENDORMANDEFS)       | sed -f fix_cflags.sed
   15531 	@echo IMAKE ${EXTRA_LOAD_FLAGS} | sed -f fix_lflags.sed
   15532 CF_EOF
   15533 
   15534 	if ( $IMAKE $cf_imake_opts 1>/dev/null 2>&5 && test -f Makefile)
   15535 	then
   15536 		test -n "$verbose" && echo "	Using $IMAKE $cf_imake_opts" 1>&6
   15537 
   15538 echo "${as_me:-configure}:15538: testing Using $IMAKE $cf_imake_opts ..." 1>&5
   15539 
   15540 	else
   15541 		# sometimes imake doesn't have the config path compiled in.  Find it.
   15542 		cf_config=
   15543 		for cf_libpath in $X_LIBS $LIBS ; do
   15544 			case $cf_libpath in
   15545 			(-L*)
   15546 				cf_libpath=`echo .$cf_libpath | sed -e 's/^...//'`
   15547 				cf_libpath=$cf_libpath/X11/config
   15548 				if test -d $cf_libpath ; then
   15549 					cf_config=$cf_libpath
   15550 					break
   15551 				fi
   15552 				;;
   15553 			esac
   15554 		done
   15555 		if test -z "$cf_config" ; then
   15556 			{ echo "$as_me:15556: WARNING: Could not find imake config-directory" >&5
   15557 echo "$as_me: WARNING: Could not find imake config-directory" >&2;}
   15558 		else
   15559 			cf_imake_opts="$cf_imake_opts -I$cf_config"
   15560 			if ( $IMAKE -v $cf_imake_opts 2>&5)
   15561 			then
   15562 				test -n "$verbose" && echo "	Using $IMAKE $cf_config" 1>&6
   15563 
   15564 echo "${as_me:-configure}:15564: testing Using $IMAKE $cf_config ..." 1>&5
   15565 
   15566 			else
   15567 				{ echo "$as_me:15567: WARNING: Cannot run $IMAKE" >&5
   15568 echo "$as_me: WARNING: Cannot run $IMAKE" >&2;}
   15569 			fi
   15570 		fi
   15571 	fi
   15572 
   15573 	# GNU make sometimes prints "make[1]: Entering...", which
   15574 	# would confuse us.
   15575 	eval `make findstddefs 2>/dev/null | grep -v make`
   15576 
   15577 	cd ..
   15578 	rm -rf conftestdir
   15579 
   15580 	# We use ${ALLDEFINES} rather than ${STD_DEFINES} because the former
   15581 	# declares XTFUNCPROTO there.  However, some vendors (e.g., SGI) have
   15582 	# modified it to support site.cf, adding a kludge for the /usr/include
   15583 	# directory.  Try to filter that out, otherwise gcc won't find its
   15584 	# headers.
   15585 	if test -n "$GCC" ; then
   15586 	    if test -n "$IMAKE_CFLAGS" ; then
   15587 		cf_nostdinc=""
   15588 		cf_std_incl=""
   15589 		cf_cpp_opts=""
   15590 		for cf_opt in $IMAKE_CFLAGS
   15591 		do
   15592 		    case "$cf_opt" in
   15593 		    (-nostdinc)
   15594 			cf_nostdinc="$cf_opt"
   15595 			;;
   15596 		    (-I/usr/include)
   15597 			cf_std_incl="$cf_opt"
   15598 			;;
   15599 		    (*)
   15600 			cf_cpp_opts="$cf_cpp_opts $cf_opt"
   15601 			;;
   15602 		    esac
   15603 		done
   15604 		if test -z "$cf_nostdinc" ; then
   15605 		    IMAKE_CFLAGS="$cf_cpp_opts $cf_std_incl"
   15606 		elif test -z "$cf_std_incl" ; then
   15607 		    IMAKE_CFLAGS="$cf_cpp_opts $cf_nostdinc"
   15608 		else
   15609 		    test -n "$verbose" && echo "	suppressed \"$cf_nostdinc\" and \"$cf_std_incl\"" 1>&6
   15610 
   15611 echo "${as_me:-configure}:15611: testing suppressed \"$cf_nostdinc\" and \"$cf_std_incl\" ..." 1>&5
   15612 
   15613 		    IMAKE_CFLAGS="$cf_cpp_opts"
   15614 		fi
   15615 	    fi
   15616 	fi
   15617 fi
   15618 
   15619 # Some imake configurations define PROJECTROOT with an empty value.  Remove
   15620 # the empty definition.
   15621 case $IMAKE_CFLAGS in
   15622 (*-DPROJECTROOT=/*)
   15623 	;;
   15624 (*)
   15625 	IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" |sed -e "s,-DPROJECTROOT=[ 	], ,"`
   15626 	;;
   15627 esac
   15628 
   15629 fi
   15630 
   15631 test -n "$verbose" && echo "	IMAKE_CFLAGS $IMAKE_CFLAGS" 1>&6
   15632 
   15633 echo "${as_me:-configure}:15633: testing IMAKE_CFLAGS $IMAKE_CFLAGS ..." 1>&5
   15634 
   15635 test -n "$verbose" && echo "	IMAKE_LOADFLAGS $IMAKE_LOADFLAGS" 1>&6
   15636 
   15637 echo "${as_me:-configure}:15637: testing IMAKE_LOADFLAGS $IMAKE_LOADFLAGS ..." 1>&5
   15638 
   15639 fi
   15640 
   15641 if test -n "$IMAKE" && test -n "$IMAKE_CFLAGS" ; then
   15642 
   15643 cf_fix_cppflags=no
   15644 cf_new_cflags=
   15645 cf_new_cppflags=
   15646 cf_new_extra_cppflags=
   15647 
   15648 for cf_add_cflags in $IMAKE_CFLAGS
   15649 do
   15650 case $cf_fix_cppflags in
   15651 (no)
   15652 	case $cf_add_cflags in
   15653 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   15654 		case $cf_add_cflags in
   15655 		(-D*)
   15656 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   15657 
   15658 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   15659 				&& test -z "${cf_tst_cflags}" \
   15660 				&& cf_fix_cppflags=yes
   15661 
   15662 			if test $cf_fix_cppflags = yes ; then
   15663 
   15664 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   15665 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   15666 
   15667 				continue
   15668 			elif test "${cf_tst_cflags}" = "\"'" ; then
   15669 
   15670 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   15671 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   15672 
   15673 				continue
   15674 			fi
   15675 			;;
   15676 		esac
   15677 		case "$CPPFLAGS" in
   15678 		(*$cf_add_cflags)
   15679 			;;
   15680 		(*)
   15681 			case $cf_add_cflags in
   15682 			(-D*)
   15683 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   15684 
   15685 CPPFLAGS=`echo "$CPPFLAGS" | \
   15686 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   15687 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   15688 
   15689 				;;
   15690 			esac
   15691 
   15692 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   15693 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   15694 
   15695 			;;
   15696 		esac
   15697 		;;
   15698 	(*)
   15699 
   15700 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   15701 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   15702 
   15703 		;;
   15704 	esac
   15705 	;;
   15706 (yes)
   15707 
   15708 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   15709 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   15710 
   15711 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   15712 
   15713 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   15714 		&& test -z "${cf_tst_cflags}" \
   15715 		&& cf_fix_cppflags=no
   15716 	;;
   15717 esac
   15718 done
   15719 
   15720 if test -n "$cf_new_cflags" ; then
   15721 
   15722 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   15723 	CFLAGS="${CFLAGS}$cf_new_cflags"
   15724 
   15725 fi
   15726 
   15727 if test -n "$cf_new_cppflags" ; then
   15728 
   15729 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   15730 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   15731 
   15732 fi
   15733 
   15734 if test -n "$cf_new_extra_cppflags" ; then
   15735 
   15736 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   15737 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   15738 
   15739 fi
   15740 
   15741 else
   15742 	IMAKE_CFLAGS=
   15743 	IMAKE_LOADFLAGS=
   15744 	test -n "$verbose" && echo "	make fallback definitions" 1>&6
   15745 
   15746 echo "${as_me:-configure}:15746: testing make fallback definitions ..." 1>&5
   15747 
   15748 	# We prefer config.guess' values when we can get them, to avoid
   15749 	# inconsistent results with uname (AIX for instance).  However,
   15750 	# config.guess is not always consistent either.
   15751 	case $host_os in
   15752 	(*[0-9].[0-9]*)
   15753 		UNAME_RELEASE="$host_os"
   15754 		;;
   15755 	(*)
   15756 		UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
   15757 		;;
   15758 	esac
   15759 
   15760 	case .$UNAME_RELEASE in
   15761 	(*[0-9].[0-9]*)
   15762 		OSMAJORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/\..*//'`
   15763 		OSMINORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/^[^.]*\.//' -e 's/\..*//' -e 's/[^0-9].*//' `
   15764 		test -z "$OSMAJORVERSION" && OSMAJORVERSION=1
   15765 		test -z "$OSMINORVERSION" && OSMINORVERSION=0
   15766 		IMAKE_CFLAGS="-DOSMAJORVERSION=$OSMAJORVERSION -DOSMINORVERSION=$OSMINORVERSION $IMAKE_CFLAGS"
   15767 		;;
   15768 	esac
   15769 
   15770 	# FUNCPROTO is standard with X11R6, but XFree86 drops it, leaving some
   15771 	# fallback/fragments for NeedPrototypes, etc.
   15772 	IMAKE_CFLAGS="-DFUNCPROTO=15 $IMAKE_CFLAGS"
   15773 
   15774 	# If this is not set properly, Xaw's scrollbars will not work
   15775 	if test "$enable_narrowproto" = yes ; then
   15776 		IMAKE_CFLAGS="-DNARROWPROTO=1 $IMAKE_CFLAGS"
   15777 	fi
   15778 
   15779 	# Other special definitions:
   15780 	case $host_os in
   15781 	(aix*)
   15782 		# imake on AIX 5.1 defines AIXV3.  really.
   15783 		IMAKE_CFLAGS="-DAIXV3 -DAIXV4 $IMAKE_CFLAGS"
   15784 		;;
   15785 	(irix[56].*)
   15786 		# these are needed to make SIGWINCH work in xterm
   15787 		IMAKE_CFLAGS="-DSYSV -DSVR4 $IMAKE_CFLAGS"
   15788 		;;
   15789 	esac
   15790 
   15791 cf_fix_cppflags=no
   15792 cf_new_cflags=
   15793 cf_new_cppflags=
   15794 cf_new_extra_cppflags=
   15795 
   15796 for cf_add_cflags in $IMAKE_CFLAGS
   15797 do
   15798 case $cf_fix_cppflags in
   15799 (no)
   15800 	case $cf_add_cflags in
   15801 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   15802 		case $cf_add_cflags in
   15803 		(-D*)
   15804 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   15805 
   15806 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   15807 				&& test -z "${cf_tst_cflags}" \
   15808 				&& cf_fix_cppflags=yes
   15809 
   15810 			if test $cf_fix_cppflags = yes ; then
   15811 
   15812 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   15813 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   15814 
   15815 				continue
   15816 			elif test "${cf_tst_cflags}" = "\"'" ; then
   15817 
   15818 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   15819 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   15820 
   15821 				continue
   15822 			fi
   15823 			;;
   15824 		esac
   15825 		case "$CPPFLAGS" in
   15826 		(*$cf_add_cflags)
   15827 			;;
   15828 		(*)
   15829 			case $cf_add_cflags in
   15830 			(-D*)
   15831 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   15832 
   15833 CPPFLAGS=`echo "$CPPFLAGS" | \
   15834 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   15835 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   15836 
   15837 				;;
   15838 			esac
   15839 
   15840 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   15841 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   15842 
   15843 			;;
   15844 		esac
   15845 		;;
   15846 	(*)
   15847 
   15848 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   15849 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   15850 
   15851 		;;
   15852 	esac
   15853 	;;
   15854 (yes)
   15855 
   15856 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   15857 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   15858 
   15859 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   15860 
   15861 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   15862 		&& test -z "${cf_tst_cflags}" \
   15863 		&& cf_fix_cppflags=no
   15864 	;;
   15865 esac
   15866 done
   15867 
   15868 if test -n "$cf_new_cflags" ; then
   15869 
   15870 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   15871 	CFLAGS="${CFLAGS}$cf_new_cflags"
   15872 
   15873 fi
   15874 
   15875 if test -n "$cf_new_cppflags" ; then
   15876 
   15877 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   15878 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   15879 
   15880 fi
   15881 
   15882 if test -n "$cf_new_extra_cppflags" ; then
   15883 
   15884 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   15885 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   15886 
   15887 fi
   15888 
   15889 fi
   15890 
   15891 # Extract the first word of "groff", so it can be a program name with args.
   15892 set dummy groff; ac_word=$2
   15893 echo "$as_me:15893: checking for $ac_word" >&5
   15894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   15895 if test "${ac_cv_path_GROFF_PATH+set}" = set; then
   15896   echo $ECHO_N "(cached) $ECHO_C" >&6
   15897 else
   15898   case $GROFF_PATH in
   15899   [\\/]* | ?:[\\/]*)
   15900   ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path.
   15901   ;;
   15902   *)
   15903   ac_save_IFS=$IFS; IFS=$ac_path_separator
   15904 ac_dummy="$PATH"
   15905 for ac_dir in $ac_dummy; do
   15906   IFS=$ac_save_IFS
   15907   test -z "$ac_dir" && ac_dir=.
   15908   if $as_executable_p "$ac_dir/$ac_word"; then
   15909    ac_cv_path_GROFF_PATH="$ac_dir/$ac_word"
   15910    echo "$as_me:15910: found $ac_dir/$ac_word" >&5
   15911    break
   15912 fi
   15913 done
   15914 
   15915   test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no"
   15916   ;;
   15917 esac
   15918 fi
   15919 GROFF_PATH=$ac_cv_path_GROFF_PATH
   15920 
   15921 if test -n "$GROFF_PATH"; then
   15922   echo "$as_me:15922: result: $GROFF_PATH" >&5
   15923 echo "${ECHO_T}$GROFF_PATH" >&6
   15924 else
   15925   echo "$as_me:15925: result: no" >&5
   15926 echo "${ECHO_T}no" >&6
   15927 fi
   15928 
   15929 # Extract the first word of "nroff", so it can be a program name with args.
   15930 set dummy nroff; ac_word=$2
   15931 echo "$as_me:15931: checking for $ac_word" >&5
   15932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   15933 if test "${ac_cv_path_NROFF_PATH+set}" = set; then
   15934   echo $ECHO_N "(cached) $ECHO_C" >&6
   15935 else
   15936   case $NROFF_PATH in
   15937   [\\/]* | ?:[\\/]*)
   15938   ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path.
   15939   ;;
   15940   *)
   15941   ac_save_IFS=$IFS; IFS=$ac_path_separator
   15942 ac_dummy="$PATH"
   15943 for ac_dir in $ac_dummy; do
   15944   IFS=$ac_save_IFS
   15945   test -z "$ac_dir" && ac_dir=.
   15946   if $as_executable_p "$ac_dir/$ac_word"; then
   15947    ac_cv_path_NROFF_PATH="$ac_dir/$ac_word"
   15948    echo "$as_me:15948: found $ac_dir/$ac_word" >&5
   15949    break
   15950 fi
   15951 done
   15952 
   15953   test -z "$ac_cv_path_NROFF_PATH" && ac_cv_path_NROFF_PATH="no"
   15954   ;;
   15955 esac
   15956 fi
   15957 NROFF_PATH=$ac_cv_path_NROFF_PATH
   15958 
   15959 if test -n "$NROFF_PATH"; then
   15960   echo "$as_me:15960: result: $NROFF_PATH" >&5
   15961 echo "${ECHO_T}$NROFF_PATH" >&6
   15962 else
   15963   echo "$as_me:15963: result: no" >&5
   15964 echo "${ECHO_T}no" >&6
   15965 fi
   15966 
   15967 if test "x$GROFF_PATH" = xno
   15968 then
   15969 	NROFF_NOTE=
   15970 	GROFF_NOTE="#"
   15971 else
   15972 	NROFF_NOTE="#"
   15973 	GROFF_NOTE=
   15974 fi
   15975 
   15976 echo "$as_me:15976: checking for program to convert manpage to html" >&5
   15977 echo $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6
   15978 
   15979 # Check whether --with-man2html or --without-man2html was given.
   15980 if test "${with_man2html+set}" = set; then
   15981   withval="$with_man2html"
   15982   cf_man2html=$withval
   15983 else
   15984   cf_man2html=$GROFF_PATH
   15985 fi;
   15986 
   15987 cf_with_groff=no
   15988 
   15989 case $cf_man2html in
   15990 (yes)
   15991 	echo "$as_me:15991: result: man2html" >&5
   15992 echo "${ECHO_T}man2html" >&6
   15993 	# Extract the first word of "man2html", so it can be a program name with args.
   15994 set dummy man2html; ac_word=$2
   15995 echo "$as_me:15995: checking for $ac_word" >&5
   15996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   15997 if test "${ac_cv_path_cf_man2html+set}" = set; then
   15998   echo $ECHO_N "(cached) $ECHO_C" >&6
   15999 else
   16000   case $cf_man2html in
   16001   [\\/]* | ?:[\\/]*)
   16002   ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path.
   16003   ;;
   16004   *)
   16005   ac_save_IFS=$IFS; IFS=$ac_path_separator
   16006 ac_dummy="$PATH"
   16007 for ac_dir in $ac_dummy; do
   16008   IFS=$ac_save_IFS
   16009   test -z "$ac_dir" && ac_dir=.
   16010   if $as_executable_p "$ac_dir/$ac_word"; then
   16011    ac_cv_path_cf_man2html="$ac_dir/$ac_word"
   16012    echo "$as_me:16012: found $ac_dir/$ac_word" >&5
   16013    break
   16014 fi
   16015 done
   16016 
   16017   test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no"
   16018   ;;
   16019 esac
   16020 fi
   16021 cf_man2html=$ac_cv_path_cf_man2html
   16022 
   16023 if test -n "$cf_man2html"; then
   16024   echo "$as_me:16024: result: $cf_man2html" >&5
   16025 echo "${ECHO_T}$cf_man2html" >&6
   16026 else
   16027   echo "$as_me:16027: result: no" >&5
   16028 echo "${ECHO_T}no" >&6
   16029 fi
   16030 
   16031 	;;
   16032 (no|groff|*/groff*)
   16033 	cf_with_groff=yes
   16034 	cf_man2html=$GROFF_PATH
   16035 	echo "$as_me:16035: result: $cf_man2html" >&5
   16036 echo "${ECHO_T}$cf_man2html" >&6
   16037 	;;
   16038 (*)
   16039 	echo "$as_me:16039: result: $cf_man2html" >&5
   16040 echo "${ECHO_T}$cf_man2html" >&6
   16041 	;;
   16042 esac
   16043 
   16044 MAN2HTML_TEMP="man2html.tmp"
   16045 	cat >$MAN2HTML_TEMP <<CF_EOF
   16046 #!$SHELL
   16047 # Temporary script generated by CF_WITH_MAN2HTML
   16048 # Convert inputs to html, sending result to standard output.
   16049 #
   16050 # Parameters:
   16051 # \${1} = rootname of file to convert
   16052 # \${2} = suffix of file to convert, e.g., "1"
   16053 # \${3} = macros to use, e.g., "man"
   16054 #
   16055 ROOT=\$1
   16056 TYPE=\$2
   16057 MACS=\$3
   16058 
   16059 unset LANG
   16060 unset LC_ALL
   16061 unset LC_CTYPE
   16062 unset LANGUAGE
   16063 GROFF_NO_SGR=stupid
   16064 export GROFF_NO_SGR
   16065 
   16066 CF_EOF
   16067 
   16068 if test "x$cf_with_groff" = xyes
   16069 then
   16070 	MAN2HTML_NOTE="$GROFF_NOTE"
   16071 	MAN2HTML_PATH="$GROFF_PATH"
   16072 	cat >>$MAN2HTML_TEMP <<CF_EOF
   16073 $SHELL -c "tbl \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MACS}"
   16074 CF_EOF
   16075 else
   16076 	MAN2HTML_NOTE=""
   16077 
   16078 if test "x$prefix" != xNONE; then
   16079 	cf_path_syntax="$prefix"
   16080 else
   16081 	cf_path_syntax="$ac_default_prefix"
   16082 fi
   16083 
   16084 case ".$cf_man2html" in
   16085 (.\$\(*\)*|.\'*\'*)
   16086 	;;
   16087 (..|./*|.\\*)
   16088 	;;
   16089 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
   16090 	;;
   16091 (.\${*prefix}*|.\${*dir}*)
   16092 	eval cf_man2html="$cf_man2html"
   16093 	case ".$cf_man2html" in
   16094 	(.NONE/*)
   16095 		cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%`
   16096 		;;
   16097 	esac
   16098 	;;
   16099 (.no|.NONE/*)
   16100 	cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%`
   16101 	;;
   16102 (*)
   16103 	{ { echo "$as_me:16103: error: expected a pathname, not \"$cf_man2html\"" >&5
   16104 echo "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;}
   16105    { (exit 1); exit 1; }; }
   16106 	;;
   16107 esac
   16108 
   16109 	MAN2HTML_PATH="$cf_man2html"
   16110 	echo "$as_me:16110: checking for $cf_man2html top/bottom margins" >&5
   16111 echo $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6
   16112 
   16113 	# for this example, expect 3 lines of content, the remainder is head/foot
   16114 	cat >conftest.in <<CF_EOF
   16115 .TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5
   16116 .SH SECTION
   16117 MARKER
   16118 CF_EOF
   16119 
   16120 	LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C nroff -man conftest.in >conftest.out
   16121 
   16122 	cf_man2html_1st=`fgrep -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'`
   16123 	cf_man2html_top=`expr $cf_man2html_1st - 2`
   16124 	cf_man2html_bot=`wc -l conftest.out |sed -e 's/[^0-9]//g'`
   16125 	cf_man2html_bot=`expr $cf_man2html_bot - 2 - $cf_man2html_top`
   16126 	cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot"
   16127 
   16128 	echo "$as_me:16128: result: $cf_man2html_top_bot" >&5
   16129 echo "${ECHO_T}$cf_man2html_top_bot" >&6
   16130 
   16131 	echo "$as_me:16131: checking for pagesize to use" >&5
   16132 echo $ECHO_N "checking for pagesize to use... $ECHO_C" >&6
   16133 	for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
   16134 	do
   16135 	cat >>conftest.in <<CF_EOF
   16136 .nf
   16137 0
   16138 1
   16139 2
   16140 3
   16141 4
   16142 5
   16143 6
   16144 7
   16145 8
   16146 9
   16147 CF_EOF
   16148 	done
   16149 
   16150 	LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C nroff -man conftest.in >conftest.out
   16151 	cf_man2html_page=`fgrep -n HEAD1 conftest.out |tail -n 1 |sed -e 's/^[^0-9]*://' -e 's/:.*//'`
   16152 	test -z "$cf_man2html_page" && cf_man2html_page=99999
   16153 	test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999
   16154 
   16155 	rm -rf conftest*
   16156 	echo "$as_me:16156: result: $cf_man2html_page" >&5
   16157 echo "${ECHO_T}$cf_man2html_page" >&6
   16158 
   16159 	cat >>$MAN2HTML_TEMP <<CF_EOF
   16160 : \${MAN2HTML_PATH=$MAN2HTML_PATH}
   16161 MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title="\$ROOT\(\$TYPE\)" -compress -pgsize $cf_man2html_page"
   16162 case \${TYPE} in
   16163 (ms)
   16164 	tbl \${ROOT}.\${TYPE} | nroff -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0 \$MAN2HTML_OPTS
   16165 	;;
   16166 (*)
   16167 	tbl \${ROOT}.\${TYPE} | nroff -\${MACS} | \$MAN2HTML_PATH $cf_man2html_top_bot \$MAN2HTML_OPTS
   16168 	;;
   16169 esac
   16170 CF_EOF
   16171 fi
   16172 
   16173 chmod 700 $MAN2HTML_TEMP
   16174 
   16175 # If we have already established that there is a full termcap implementation,
   16176 # suppress the definitions for terminfo that we make have imported from the
   16177 # imake-file.
   16178 if test "x$cf_cv_lib_tgetent" != xno || test "x$cf_cv_lib_part_tgetent" != xno ; then
   16179 	case "$IMAKE_CFLAGS" in
   16180 	(*-DUSE_TERMINFO\ -DHAVE_TIGETSTR*)
   16181 
   16182 	test -n "$verbose" && echo "	removing terminfo flags from IMAKE_CFLAGS" 1>&6
   16183 
   16184 echo "${as_me:-configure}:16184: testing removing terminfo flags from IMAKE_CFLAGS ..." 1>&5
   16185 
   16186 	IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" | sed -e 's/-DUSE_TERMINFO[ 	]*-DHAVE_TIGETSTR[ 	]*//'`
   16187 	test -n "$verbose" && echo "	...result $IMAKE_CFLAGS" 1>&6
   16188 
   16189 echo "${as_me:-configure}:16189: testing ...result $IMAKE_CFLAGS ..." 1>&5
   16190 
   16191 	test -n "$verbose" && echo "	removing terminfo flags from CPPFLAGS" 1>&6
   16192 
   16193 echo "${as_me:-configure}:16193: testing removing terminfo flags from CPPFLAGS ..." 1>&5
   16194 
   16195 	CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/-DUSE_TERMINFO[ 	]*-DHAVE_TIGETSTR[ 	]*//'`
   16196 	test -n "$verbose" && echo "	...result $CPPFLAGS" 1>&6
   16197 
   16198 echo "${as_me:-configure}:16198: testing ...result $CPPFLAGS ..." 1>&5
   16199 
   16200 		;;
   16201 	esac
   16202 fi
   16203 
   16204 echo "$as_me:16204: checking for default terminal-id" >&5
   16205 echo $ECHO_N "checking for default terminal-id... $ECHO_C" >&6
   16206 
   16207 # Check whether --with-terminal-id or --without-terminal-id was given.
   16208 if test "${with_terminal_id+set}" = set; then
   16209   withval="$with_terminal_id"
   16210   default_termid=$withval
   16211 else
   16212   default_termid=vt420
   16213 fi;
   16214 echo "$as_me:16214: result: $default_termid" >&5
   16215 echo "${ECHO_T}$default_termid" >&6
   16216 case $default_termid in
   16217 (vt*)	default_termid=`echo $default_termid | sed -e 's/^..//'`
   16218 	;;
   16219 esac
   16220 
   16221 cat >>confdefs.h <<EOF
   16222 #define DFT_DECID "$default_termid"
   16223 EOF
   16224 
   16225 echo "$as_me:16225: checking for default terminal-type" >&5
   16226 echo $ECHO_N "checking for default terminal-type... $ECHO_C" >&6
   16227 
   16228 # Check whether --with-terminal-type or --without-terminal-type was given.
   16229 if test "${with_terminal_type+set}" = set; then
   16230   withval="$with_terminal_type"
   16231   default_TERM=$withval
   16232 else
   16233   default_TERM=xterm
   16234 fi;
   16235 echo "$as_me:16235: result: $default_TERM" >&5
   16236 echo "${ECHO_T}$default_TERM" >&6
   16237 
   16238 cat >>confdefs.h <<EOF
   16239 #define DFT_TERMTYPE "$default_TERM"
   16240 EOF
   16241 
   16242 ###############################################################################
   16243 echo "$as_me:16243: checking if backarrow-key should be BS" >&5
   16244 echo $ECHO_N "checking if backarrow-key should be BS... $ECHO_C" >&6
   16245 
   16246 # Check whether --enable-backarrow-key or --disable-backarrow-key was given.
   16247 if test "${enable_backarrow_key+set}" = set; then
   16248   enableval="$enable_backarrow_key"
   16249   test "$enableval" != no && enableval=yes
   16250 	if test "$enableval" != "yes" ; then
   16251     backarrow_is_bs=$enableval
   16252 	else
   16253 		backarrow_is_bs=yes
   16254 	fi
   16255 else
   16256   enableval=yes
   16257 	backarrow_is_bs=yes
   16258 
   16259 fi;
   16260 
   16261 echo "$as_me:16261: result: $backarrow_is_bs" >&5
   16262 echo "${ECHO_T}$backarrow_is_bs" >&6
   16263 case $backarrow_is_bs in
   16264 (yes)
   16265 	backarrow_is_bs=true
   16266 	;;
   16267 (no)
   16268 	backarrow_is_bs=false
   16269 	;;
   16270 esac
   16271 cf_xbool1=`echo "$backarrow_is_bs"|sed -e 's/^\(.\).*/\1/'`
   16272 
   16273 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   16274 
   16275 cf_xbool2=`echo "$backarrow_is_bs"|sed -e 's/^.//'`
   16276 backarrow_is_bs=${cf_xbool1}${cf_xbool2}
   16277 
   16278 cat >>confdefs.h <<EOF
   16279 #define DEF_BACKARO_BS $backarrow_is_bs
   16280 EOF
   16281 
   16282 echo "$as_me:16282: checking if backarrow-key should be treated as erase" >&5
   16283 echo $ECHO_N "checking if backarrow-key should be treated as erase... $ECHO_C" >&6
   16284 
   16285 # Check whether --enable-backarrow-is-erase or --disable-backarrow-is-erase was given.
   16286 if test "${enable_backarrow_is_erase+set}" = set; then
   16287   enableval="$enable_backarrow_is_erase"
   16288   test "$enableval" != yes && enableval=no
   16289 	if test "$enableval" != "no" ; then
   16290     backarrow_is_erase=$enableval
   16291 	else
   16292 		backarrow_is_erase=no
   16293 	fi
   16294 else
   16295   enableval=no
   16296 	backarrow_is_erase=no
   16297 
   16298 fi;
   16299 
   16300 echo "$as_me:16300: result: $backarrow_is_erase" >&5
   16301 echo "${ECHO_T}$backarrow_is_erase" >&6
   16302 case $backarrow_is_erase in
   16303 (yes)
   16304 	backarrow_is_erase=true
   16305 	;;
   16306 (no)
   16307 	backarrow_is_erase=false
   16308 	;;
   16309 esac
   16310 cf_xbool1=`echo "$backarrow_is_erase"|sed -e 's/^\(.\).*/\1/'`
   16311 
   16312 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   16313 
   16314 cf_xbool2=`echo "$backarrow_is_erase"|sed -e 's/^.//'`
   16315 backarrow_is_erase=${cf_xbool1}${cf_xbool2}
   16316 
   16317 cat >>confdefs.h <<EOF
   16318 #define DEF_BACKARO_ERASE $backarrow_is_erase
   16319 EOF
   16320 
   16321 echo "$as_me:16321: checking for default backspace/DEL setting" >&5
   16322 echo $ECHO_N "checking for default backspace/DEL setting... $ECHO_C" >&6
   16323 
   16324 # Check whether --enable-delete-is-del or --disable-delete-is-del was given.
   16325 if test "${enable_delete_is_del+set}" = set; then
   16326   enableval="$enable_delete_is_del"
   16327   delete_is_del=$enableval
   16328 else
   16329   delete_is_del=maybe
   16330 fi;
   16331 
   16332 echo "$as_me:16332: result: $delete_is_del" >&5
   16333 echo "${ECHO_T}$delete_is_del" >&6
   16334 case $delete_is_del in
   16335 (yes)
   16336 	delete_is_del=true
   16337 	;;
   16338 (no)
   16339 	delete_is_del=false
   16340 	;;
   16341 esac
   16342 cf_xbool1=`echo "$delete_is_del"|sed -e 's/^\(.\).*/\1/'`
   16343 
   16344 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   16345 
   16346 cf_xbool2=`echo "$delete_is_del"|sed -e 's/^.//'`
   16347 delete_is_del=${cf_xbool1}${cf_xbool2}
   16348 
   16349 cat >>confdefs.h <<EOF
   16350 #define DEFDELETE_DEL $delete_is_del
   16351 EOF
   16352 
   16353 echo "$as_me:16353: checking for default pty initial erase setting" >&5
   16354 echo $ECHO_N "checking for default pty initial erase setting... $ECHO_C" >&6
   16355 
   16356 # Check whether --enable-pty-erase or --disable-pty-erase was given.
   16357 if test "${enable_pty_erase+set}" = set; then
   16358   enableval="$enable_pty_erase"
   16359   initial_erase=$enableval
   16360 else
   16361   initial_erase=False
   16362 fi;
   16363 
   16364 echo "$as_me:16364: result: $initial_erase" >&5
   16365 echo "${ECHO_T}$initial_erase" >&6
   16366 case $initial_erase in
   16367 (yes)
   16368 	initial_erase=true
   16369 	;;
   16370 (no)
   16371 	initial_erase=false
   16372 	;;
   16373 esac
   16374 cf_xbool1=`echo "$initial_erase"|sed -e 's/^\(.\).*/\1/'`
   16375 
   16376 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   16377 
   16378 cf_xbool2=`echo "$initial_erase"|sed -e 's/^.//'`
   16379 initial_erase=${cf_xbool1}${cf_xbool2}
   16380 
   16381 cat >>confdefs.h <<EOF
   16382 #define DEF_INITIAL_ERASE $initial_erase
   16383 EOF
   16384 
   16385 echo "$as_me:16385: checking if alt should send ESC" >&5
   16386 echo $ECHO_N "checking if alt should send ESC... $ECHO_C" >&6
   16387 
   16388 # Check whether --enable-alt-sends-esc or --disable-alt-sends-esc was given.
   16389 if test "${enable_alt_sends_esc+set}" = set; then
   16390   enableval="$enable_alt_sends_esc"
   16391   test "$enableval" != yes && enableval=no
   16392 	if test "$enableval" != "no" ; then
   16393     alt_sends_esc=$enableval
   16394 	else
   16395 		alt_sends_esc=no
   16396 	fi
   16397 else
   16398   enableval=no
   16399 	alt_sends_esc=no
   16400 
   16401 fi;
   16402 
   16403 echo "$as_me:16403: result: $alt_sends_esc" >&5
   16404 echo "${ECHO_T}$alt_sends_esc" >&6
   16405 case $alt_sends_esc in
   16406 (yes)
   16407 	alt_sends_esc=true
   16408 	;;
   16409 (no)
   16410 	alt_sends_esc=false
   16411 	;;
   16412 esac
   16413 cf_xbool1=`echo "$alt_sends_esc"|sed -e 's/^\(.\).*/\1/'`
   16414 
   16415 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   16416 
   16417 cf_xbool2=`echo "$alt_sends_esc"|sed -e 's/^.//'`
   16418 alt_sends_esc=${cf_xbool1}${cf_xbool2}
   16419 
   16420 cat >>confdefs.h <<EOF
   16421 #define DEF_ALT_SENDS_ESC $alt_sends_esc
   16422 EOF
   16423 
   16424 echo "$as_me:16424: checking if meta should send ESC" >&5
   16425 echo $ECHO_N "checking if meta should send ESC... $ECHO_C" >&6
   16426 
   16427 # Check whether --enable-meta-sends-esc or --disable-meta-sends-esc was given.
   16428 if test "${enable_meta_sends_esc+set}" = set; then
   16429   enableval="$enable_meta_sends_esc"
   16430   test "$enableval" != yes && enableval=no
   16431 	if test "$enableval" != "no" ; then
   16432     meta_sends_esc=$enableval
   16433 	else
   16434 		meta_sends_esc=no
   16435 	fi
   16436 else
   16437   enableval=no
   16438 	meta_sends_esc=no
   16439 
   16440 fi;
   16441 
   16442 echo "$as_me:16442: result: $meta_sends_esc" >&5
   16443 echo "${ECHO_T}$meta_sends_esc" >&6
   16444 case $meta_sends_esc in
   16445 (yes)
   16446 	meta_sends_esc=true
   16447 	;;
   16448 (no)
   16449 	meta_sends_esc=false
   16450 	;;
   16451 esac
   16452 cf_xbool1=`echo "$meta_sends_esc"|sed -e 's/^\(.\).*/\1/'`
   16453 
   16454 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   16455 
   16456 cf_xbool2=`echo "$meta_sends_esc"|sed -e 's/^.//'`
   16457 meta_sends_esc=${cf_xbool1}${cf_xbool2}
   16458 
   16459 cat >>confdefs.h <<EOF
   16460 #define DEF_META_SENDS_ESC $meta_sends_esc
   16461 EOF
   16462 
   16463 ###############################################################################
   16464 # Extract the first word of "tic", so it can be a program name with args.
   16465 set dummy tic; ac_word=$2
   16466 echo "$as_me:16466: checking for $ac_word" >&5
   16467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   16468 if test "${ac_cv_prog_cf_tic_prog+set}" = set; then
   16469   echo $ECHO_N "(cached) $ECHO_C" >&6
   16470 else
   16471   if test -n "$cf_tic_prog"; then
   16472   ac_cv_prog_cf_tic_prog="$cf_tic_prog" # Let the user override the test.
   16473 else
   16474   ac_save_IFS=$IFS; IFS=$ac_path_separator
   16475 ac_dummy="$PATH"
   16476 for ac_dir in $ac_dummy; do
   16477   IFS=$ac_save_IFS
   16478   test -z "$ac_dir" && ac_dir=.
   16479   $as_executable_p "$ac_dir/$ac_word" || continue
   16480 ac_cv_prog_cf_tic_prog="yes"
   16481 echo "$as_me:16481: found $ac_dir/$ac_word" >&5
   16482 break
   16483 done
   16484 
   16485   test -z "$ac_cv_prog_cf_tic_prog" && ac_cv_prog_cf_tic_prog="no"
   16486 fi
   16487 fi
   16488 cf_tic_prog=$ac_cv_prog_cf_tic_prog
   16489 if test -n "$cf_tic_prog"; then
   16490   echo "$as_me:16490: result: $cf_tic_prog" >&5
   16491 echo "${ECHO_T}$cf_tic_prog" >&6
   16492 else
   16493   echo "$as_me:16493: result: no" >&5
   16494 echo "${ECHO_T}no" >&6
   16495 fi
   16496 
   16497 if test "$cf_tic_prog" = yes ; then
   16498 	echo "$as_me:16498: checking for private terminfo-directory" >&5
   16499 echo $ECHO_N "checking for private terminfo-directory... $ECHO_C" >&6
   16500 
   16501 # Check whether --with-own-terminfo or --without-own-terminfo was given.
   16502 if test "${with_own_terminfo+set}" = set; then
   16503   withval="$with_own_terminfo"
   16504   TERMINFO_DIR=$withval
   16505 else
   16506   TERMINFO_DIR=${TERMINFO-none}
   16507 fi;
   16508 	echo "$as_me:16508: result: $TERMINFO_DIR" >&5
   16509 echo "${ECHO_T}$TERMINFO_DIR" >&6
   16510 	if test "$TERMINFO_DIR" = yes ; then
   16511 		{ echo "$as_me:16511: WARNING: no value given" >&5
   16512 echo "$as_me: WARNING: no value given" >&2;}
   16513 	elif test "$TERMINFO_DIR" != none ; then
   16514 		if test -d $TERMINFO_DIR ; then
   16515 
   16516 cat >>confdefs.h <<EOF
   16517 #define OWN_TERMINFO_DIR "$TERMINFO_DIR"
   16518 EOF
   16519 
   16520 			echo "$as_me:16520: checking if \$TERMINFO should also be set" >&5
   16521 echo $ECHO_N "checking if \$TERMINFO should also be set... $ECHO_C" >&6
   16522 
   16523 # Check whether --enable-env-terminfo or --disable-env-terminfo was given.
   16524 if test "${enable_env_terminfo+set}" = set; then
   16525   enableval="$enable_env_terminfo"
   16526   cf_env_terminfo=yes
   16527 else
   16528   cf_env_terminfo=no
   16529 fi;
   16530 			echo "$as_me:16530: result: $cf_env_terminfo" >&5
   16531 echo "${ECHO_T}$cf_env_terminfo" >&6
   16532 			test $cf_env_terminfo = yes &&
   16533 
   16534 cat >>confdefs.h <<\EOF
   16535 #define OWN_TERMINFO_ENV 1
   16536 EOF
   16537 
   16538 		else
   16539 			{ echo "$as_me:16539: WARNING: not a directory" >&5
   16540 echo "$as_me: WARNING: not a directory" >&2;}
   16541 		fi
   16542 	elif test "$prefix" != NONE ; then
   16543 		TERMINFO_DIR='${prefix}/lib/terminfo'
   16544 	elif test -d /usr/lib/terminfo ; then
   16545 		TERMINFO_DIR=/usr/lib/terminfo
   16546 	else
   16547 		TERMINFO_DIR=
   16548 	fi
   16549 	SET_TERMINFO=
   16550 	if test -n "$TERMINFO_DIR" ; then
   16551 		TERMINFO_DIR='$(DESTDIR)'$TERMINFO_DIR
   16552 		SET_TERMINFO='TERMINFO=$(TERMINFO_DIR)'
   16553 	fi
   16554 	no_ticprog=
   16555 else
   16556 	no_ticprog="#"
   16557 	TERMINFO_DIR=
   16558 	SET_TERMINFO=
   16559 fi
   16560 
   16561 ###############################################################################
   16562 
   16563 echo "$as_me:16563: checking if you want active-icons" >&5
   16564 echo $ECHO_N "checking if you want active-icons... $ECHO_C" >&6
   16565 
   16566 # Check whether --enable-active-icon or --disable-active-icon was given.
   16567 if test "${enable_active_icon+set}" = set; then
   16568   enableval="$enable_active_icon"
   16569   test "$enableval" != no && enableval=yes
   16570 	if test "$enableval" != "yes" ; then
   16571     enable_active_icon=no
   16572 	else
   16573 		enable_active_icon=yes
   16574 	fi
   16575 else
   16576   enableval=yes
   16577 	enable_active_icon=yes
   16578 
   16579 fi;
   16580 echo "$as_me:16580: result: $enable_active_icon" >&5
   16581 echo "${ECHO_T}$enable_active_icon" >&6
   16582 if test "$enable_active_icon" = no ; then
   16583 
   16584 cat >>confdefs.h <<\EOF
   16585 #define NO_ACTIVE_ICON 1
   16586 EOF
   16587 
   16588 fi
   16589 
   16590 echo "$as_me:16590: checking if you want ANSI color" >&5
   16591 echo $ECHO_N "checking if you want ANSI color... $ECHO_C" >&6
   16592 
   16593 # Check whether --enable-ansi-color or --disable-ansi-color was given.
   16594 if test "${enable_ansi_color+set}" = set; then
   16595   enableval="$enable_ansi_color"
   16596   test "$enableval" != no && enableval=yes
   16597 	if test "$enableval" != "yes" ; then
   16598     enable_ansi_color=no
   16599 	else
   16600 		enable_ansi_color=yes
   16601 	fi
   16602 else
   16603   enableval=yes
   16604 	enable_ansi_color=yes
   16605 
   16606 fi;
   16607 echo "$as_me:16607: result: $enable_ansi_color" >&5
   16608 echo "${ECHO_T}$enable_ansi_color" >&6
   16609 test "$enable_ansi_color" = no &&
   16610 cat >>confdefs.h <<\EOF
   16611 #define OPT_ISO_COLORS 0
   16612 EOF
   16613 
   16614 if test "$enable_ansi_color" = yes ; then
   16615 
   16616 	echo "$as_me:16616: checking if you want 16 colors like aixterm" >&5
   16617 echo $ECHO_N "checking if you want 16 colors like aixterm... $ECHO_C" >&6
   16618 
   16619 # Check whether --enable-16-color or --disable-16-color was given.
   16620 if test "${enable_16_color+set}" = set; then
   16621   enableval="$enable_16_color"
   16622   test "$enableval" != no && enableval=yes
   16623 	if test "$enableval" != "yes" ; then
   16624     enable_16_color=no
   16625 	else
   16626 		enable_16_color=yes
   16627 	fi
   16628 else
   16629   enableval=yes
   16630 	enable_16_color=yes
   16631 
   16632 fi;
   16633 	echo "$as_me:16633: result: $enable_16_color" >&5
   16634 echo "${ECHO_T}$enable_16_color" >&6
   16635 	test "$enable_16_color" = no &&
   16636 cat >>confdefs.h <<\EOF
   16637 #define OPT_AIX_COLORS 0
   16638 EOF
   16639 
   16640 	echo "$as_me:16640: checking if you want 256 colors" >&5
   16641 echo $ECHO_N "checking if you want 256 colors... $ECHO_C" >&6
   16642 
   16643 # Check whether --enable-256-color or --disable-256-color was given.
   16644 if test "${enable_256_color+set}" = set; then
   16645   enableval="$enable_256_color"
   16646   test "$enableval" != yes && enableval=no
   16647 	if test "$enableval" != "no" ; then
   16648     enable_256_color=yes
   16649 	else
   16650 		enable_256_color=no
   16651 	fi
   16652 else
   16653   enableval=no
   16654 	enable_256_color=no
   16655 
   16656 fi;
   16657 	echo "$as_me:16657: result: $enable_256_color" >&5
   16658 echo "${ECHO_T}$enable_256_color" >&6
   16659 	if test "$enable_256_color" = yes ; then
   16660 		CHARPROC_DEPS="$CHARPROC_DEPS 256colres.h"
   16661 		EXTRAHDRS="$EXTRAHDRS 256colres.h"
   16662 
   16663 cat >>confdefs.h <<\EOF
   16664 #define OPT_256_COLORS 1
   16665 EOF
   16666 
   16667 	else
   16668 	echo "$as_me:16668: checking if you want 88 colors" >&5
   16669 echo $ECHO_N "checking if you want 88 colors... $ECHO_C" >&6
   16670 
   16671 # Check whether --enable-88-color or --disable-88-color was given.
   16672 if test "${enable_88_color+set}" = set; then
   16673   enableval="$enable_88_color"
   16674   test "$enableval" != yes && enableval=no
   16675 	if test "$enableval" != "no" ; then
   16676     enable_88_color=yes
   16677 	else
   16678 		enable_88_color=no
   16679 	fi
   16680 else
   16681   enableval=no
   16682 	enable_88_color=no
   16683 
   16684 fi;
   16685 	echo "$as_me:16685: result: $enable_88_color" >&5
   16686 echo "${ECHO_T}$enable_88_color" >&6
   16687 	if test "$enable_88_color" = yes ; then
   16688 		CHARPROC_DEPS="$CHARPROC_DEPS 88colres.h"
   16689 		EXTRAHDRS="$EXTRAHDRS 88colres.h"
   16690 
   16691 cat >>confdefs.h <<\EOF
   16692 #define OPT_88_COLORS 1
   16693 EOF
   16694 
   16695 	fi
   16696 	fi
   16697 
   16698 fi
   16699 
   16700 echo "$as_me:16700: checking if you want blinking cursor" >&5
   16701 echo $ECHO_N "checking if you want blinking cursor... $ECHO_C" >&6
   16702 
   16703 # Check whether --enable-blink-cursor or --disable-blink-cursor was given.
   16704 if test "${enable_blink_cursor+set}" = set; then
   16705   enableval="$enable_blink_cursor"
   16706   test "$enableval" != no && enableval=yes
   16707 	if test "$enableval" != "yes" ; then
   16708     enable_blink_curs=no
   16709 	else
   16710 		enable_blink_curs=yes
   16711 	fi
   16712 else
   16713   enableval=yes
   16714 	enable_blink_curs=yes
   16715 
   16716 fi;
   16717 echo "$as_me:16717: result: $enable_blink_curs" >&5
   16718 echo "${ECHO_T}$enable_blink_curs" >&6
   16719 test "$enable_blink_curs" = no &&
   16720 cat >>confdefs.h <<\EOF
   16721 #define OPT_BLINK_CURS 0
   16722 EOF
   16723 
   16724 echo "$as_me:16724: checking if you want to ignore Linux's broken palette-strings" >&5
   16725 echo $ECHO_N "checking if you want to ignore Linux's broken palette-strings... $ECHO_C" >&6
   16726 
   16727 case $host_os in
   16728 (linux*)
   16729 	assume_broken_osc=yes ;;
   16730 (*)
   16731 	assume_broken_osc=no ;;
   16732 esac
   16733 
   16734 # Check whether --enable-broken-osc or --disable-broken-osc was given.
   16735 if test "${enable_broken_osc+set}" = set; then
   16736   enableval="$enable_broken_osc"
   16737   test "$enableval" != no && enableval=yes
   16738 	if test "$enableval" != "$assume_broken_osc" ; then
   16739     enable_broken_osc=$enableval
   16740 	else
   16741 		enable_broken_osc=$enableval
   16742 	fi
   16743 else
   16744   enableval=$assume_broken_osc
   16745 	enable_broken_osc=$enableval
   16746 
   16747 fi;
   16748 echo "$as_me:16748: result: $enable_broken_osc" >&5
   16749 echo "${ECHO_T}$enable_broken_osc" >&6
   16750 if test "$enable_broken_osc" = yes ; then
   16751 
   16752 cat >>confdefs.h <<\EOF
   16753 #define OPT_BROKEN_OSC 1
   16754 EOF
   16755 
   16756 else
   16757 
   16758 cat >>confdefs.h <<\EOF
   16759 #define OPT_BROKEN_OSC 0
   16760 EOF
   16761 
   16762 fi
   16763 
   16764 echo "$as_me:16764: checking if you want to allow broken string-terminators" >&5
   16765 echo $ECHO_N "checking if you want to allow broken string-terminators... $ECHO_C" >&6
   16766 
   16767 # Check whether --enable-broken-st or --disable-broken-st was given.
   16768 if test "${enable_broken_st+set}" = set; then
   16769   enableval="$enable_broken_st"
   16770   test "$enableval" != yes && enableval=no
   16771 	if test "$enableval" != "no" ; then
   16772     enable_broken_st=no
   16773 	else
   16774 		enable_broken_st=yes
   16775 	fi
   16776 else
   16777   enableval=no
   16778 	enable_broken_st=yes
   16779 
   16780 fi;
   16781 echo "$as_me:16781: result: $enable_broken_st" >&5
   16782 echo "${ECHO_T}$enable_broken_st" >&6
   16783 test "$enable_broken_st" = no &&
   16784 cat >>confdefs.h <<\EOF
   16785 #define OPT_BROKEN_ST 0
   16786 EOF
   16787 
   16788 echo "$as_me:16788: checking if you want to compile-in icon data" >&5
   16789 echo $ECHO_N "checking if you want to compile-in icon data... $ECHO_C" >&6
   16790 
   16791 # Check whether --enable-builtin-xpms or --disable-builtin-xpms was given.
   16792 if test "${enable_builtin_xpms+set}" = set; then
   16793   enableval="$enable_builtin_xpms"
   16794   test "$enableval" != yes && enableval=no
   16795 	if test "$enableval" != "no" ; then
   16796     enable_builtin_xpms=yes
   16797 	else
   16798 		enable_builtin_xpms=no
   16799 	fi
   16800 else
   16801   enableval=no
   16802 	enable_builtin_xpms=no
   16803 
   16804 fi;
   16805 echo "$as_me:16805: result: $enable_builtin_xpms" >&5
   16806 echo "${ECHO_T}$enable_builtin_xpms" >&6
   16807 test "$enable_builtin_xpms" = yes &&
   16808 cat >>confdefs.h <<\EOF
   16809 #define OPT_BUILTIN_XPMS 1
   16810 EOF
   16811 
   16812 echo "$as_me:16812: checking if you want printable 128-159" >&5
   16813 echo $ECHO_N "checking if you want printable 128-159... $ECHO_C" >&6
   16814 
   16815 # Check whether --enable-c1-print or --disable-c1-print was given.
   16816 if test "${enable_c1_print+set}" = set; then
   16817   enableval="$enable_c1_print"
   16818   test "$enableval" != no && enableval=yes
   16819 	if test "$enableval" != "yes" ; then
   16820     enable_c1_print=no
   16821 	else
   16822 		enable_c1_print=yes
   16823 	fi
   16824 else
   16825   enableval=yes
   16826 	enable_c1_print=yes
   16827 
   16828 fi;
   16829 echo "$as_me:16829: result: $enable_c1_print" >&5
   16830 echo "${ECHO_T}$enable_c1_print" >&6
   16831 test "$enable_c1_print" = no &&
   16832 cat >>confdefs.h <<\EOF
   16833 #define OPT_C1_PRINT 0
   16834 EOF
   16835 
   16836 if test "$enable_ansi_color" = yes ; then
   16837 
   16838 	echo "$as_me:16838: checking if you want bold colors mapped like IBM PC" >&5
   16839 echo $ECHO_N "checking if you want bold colors mapped like IBM PC... $ECHO_C" >&6
   16840 
   16841 # Check whether --enable-bold-color or --disable-bold-color was given.
   16842 if test "${enable_bold_color+set}" = set; then
   16843   enableval="$enable_bold_color"
   16844   test "$enableval" != no && enableval=yes
   16845 	if test "$enableval" != "yes" ; then
   16846     enable_pc_color=no
   16847 	else
   16848 		enable_pc_color=yes
   16849 	fi
   16850 else
   16851   enableval=yes
   16852 	enable_pc_color=yes
   16853 
   16854 fi;
   16855 	echo "$as_me:16855: result: $enable_pc_color" >&5
   16856 echo "${ECHO_T}$enable_pc_color" >&6
   16857 	test "$enable_pc_color" = no &&
   16858 cat >>confdefs.h <<\EOF
   16859 #define OPT_PC_COLORS 0
   16860 EOF
   16861 
   16862 	echo "$as_me:16862: checking if you want separate color-classes" >&5
   16863 echo $ECHO_N "checking if you want separate color-classes... $ECHO_C" >&6
   16864 
   16865 # Check whether --enable-color-class or --disable-color-class was given.
   16866 if test "${enable_color_class+set}" = set; then
   16867   enableval="$enable_color_class"
   16868   test "$enableval" != no && enableval=yes
   16869 	if test "$enableval" != "yes" ; then
   16870     enable_color_class=no
   16871 	else
   16872 		enable_color_class=yes
   16873 	fi
   16874 else
   16875   enableval=yes
   16876 	enable_color_class=yes
   16877 
   16878 fi;
   16879 	echo "$as_me:16879: result: $enable_color_class" >&5
   16880 echo "${ECHO_T}$enable_color_class" >&6
   16881 	test "$enable_color_class" = no &&
   16882 cat >>confdefs.h <<\EOF
   16883 #define OPT_COLOR_CLASS 0
   16884 EOF
   16885 
   16886 	echo "$as_me:16886: checking if you want color-mode enabled by default" >&5
   16887 echo $ECHO_N "checking if you want color-mode enabled by default... $ECHO_C" >&6
   16888 
   16889 # Check whether --enable-color-mode or --disable-color-mode was given.
   16890 if test "${enable_color_mode+set}" = set; then
   16891   enableval="$enable_color_mode"
   16892   test "$enableval" != no && enableval=yes
   16893 	if test "$enableval" != "yes" ; then
   16894     default_colormode=no
   16895 	else
   16896 		default_colormode=yes
   16897 	fi
   16898 else
   16899   enableval=yes
   16900 	default_colormode=yes
   16901 
   16902 fi;
   16903 	echo "$as_me:16903: result: $default_colormode" >&5
   16904 echo "${ECHO_T}$default_colormode" >&6
   16905 	test "$default_colormode" = no &&
   16906 cat >>confdefs.h <<\EOF
   16907 #define DFT_COLORMODE 0
   16908 EOF
   16909 
   16910 fi
   16911 
   16912 echo "$as_me:16912: checking if you want support for color highlighting" >&5
   16913 echo $ECHO_N "checking if you want support for color highlighting... $ECHO_C" >&6
   16914 
   16915 # Check whether --enable-highlighting or --disable-highlighting was given.
   16916 if test "${enable_highlighting+set}" = set; then
   16917   enableval="$enable_highlighting"
   16918   test "$enableval" != no && enableval=yes
   16919 	if test "$enableval" != "yes" ; then
   16920     default_highlight=no
   16921 	else
   16922 		default_highlight=yes
   16923 	fi
   16924 else
   16925   enableval=yes
   16926 	default_highlight=yes
   16927 
   16928 fi;
   16929 echo "$as_me:16929: result: $default_highlight" >&5
   16930 echo "${ECHO_T}$default_highlight" >&6
   16931 test "$default_highlight" = no &&
   16932 cat >>confdefs.h <<\EOF
   16933 #define OPT_HIGHLIGHT_COLOR 0
   16934 EOF
   16935 
   16936 echo "$as_me:16936: checking if you want support for doublesize characters" >&5
   16937 echo $ECHO_N "checking if you want support for doublesize characters... $ECHO_C" >&6
   16938 
   16939 # Check whether --enable-doublechars or --disable-doublechars was given.
   16940 if test "${enable_doublechars+set}" = set; then
   16941   enableval="$enable_doublechars"
   16942   test "$enableval" != no && enableval=yes
   16943 	if test "$enableval" != "yes" ; then
   16944     enable_doublechars=no
   16945 	else
   16946 		enable_doublechars=yes
   16947 	fi
   16948 else
   16949   enableval=yes
   16950 	enable_doublechars=yes
   16951 
   16952 fi;
   16953 echo "$as_me:16953: result: $enable_doublechars" >&5
   16954 echo "${ECHO_T}$enable_doublechars" >&6
   16955 test "$enable_doublechars" = no &&
   16956 cat >>confdefs.h <<\EOF
   16957 #define OPT_DEC_CHRSET 0
   16958 EOF
   16959 
   16960 echo "$as_me:16960: checking if you want fallback-support for box characters" >&5
   16961 echo $ECHO_N "checking if you want fallback-support for box characters... $ECHO_C" >&6
   16962 
   16963 # Check whether --enable-boxchars or --disable-boxchars was given.
   16964 if test "${enable_boxchars+set}" = set; then
   16965   enableval="$enable_boxchars"
   16966   test "$enableval" != no && enableval=yes
   16967 	if test "$enableval" != "yes" ; then
   16968     enable_boxchars=no
   16969 	else
   16970 		enable_boxchars=yes
   16971 	fi
   16972 else
   16973   enableval=yes
   16974 	enable_boxchars=yes
   16975 
   16976 fi;
   16977 echo "$as_me:16977: result: $enable_boxchars" >&5
   16978 echo "${ECHO_T}$enable_boxchars" >&6
   16979 test "$enable_boxchars" = no &&
   16980 cat >>confdefs.h <<\EOF
   16981 #define OPT_BOX_CHARS 0
   16982 EOF
   16983 
   16984 echo "$as_me:16984: checking if you want to allow spawning new xterms" >&5
   16985 echo $ECHO_N "checking if you want to allow spawning new xterms... $ECHO_C" >&6
   16986 
   16987 # Check whether --enable-exec-xterm or --disable-exec-xterm was given.
   16988 if test "${enable_exec_xterm+set}" = set; then
   16989   enableval="$enable_exec_xterm"
   16990   test "$enableval" != yes && enableval=no
   16991 	if test "$enableval" != "no" ; then
   16992     enable_exec_xterm=yes
   16993 	else
   16994 		enable_exec_xterm=no
   16995 	fi
   16996 else
   16997   enableval=no
   16998 	enable_exec_xterm=no
   16999 
   17000 fi;
   17001 echo "$as_me:17001: result: $enable_exec_xterm" >&5
   17002 echo "${ECHO_T}$enable_exec_xterm" >&6
   17003 if test "$enable_exec_xterm" = yes ; then
   17004 
   17005 echo "$as_me:17005: checking for proc tree with cwd-support" >&5
   17006 echo $ECHO_N "checking for proc tree with cwd-support... $ECHO_C" >&6
   17007 if test "${cf_cv_procfs_cwd+set}" = set; then
   17008   echo $ECHO_N "(cached) $ECHO_C" >&6
   17009 else
   17010 
   17011 cf_cv_procfs_cwd=no
   17012 for cf_path in /proc /compat/linux/proc /usr/compat/linux/proc
   17013 do
   17014 	if test -d $cf_path && \
   17015 	   test -d $cf_path/$$ && \
   17016 	   ( test -d $cf_path/$$/cwd || \
   17017 	     test -L $cf_path/$$/cwd ); then
   17018 		cf_cv_procfs_cwd=$cf_path
   17019 		break
   17020 	fi
   17021 done
   17022 
   17023 fi
   17024 echo "$as_me:17024: result: $cf_cv_procfs_cwd" >&5
   17025 echo "${ECHO_T}$cf_cv_procfs_cwd" >&6
   17026 
   17027 	if test "$cf_cv_procfs_cwd" = no ; then
   17028 		{ echo "$as_me:17028: WARNING: no suitable proc filesystem found" >&5
   17029 echo "$as_me: WARNING: no suitable proc filesystem found" >&2;}
   17030 	else
   17031 
   17032 cat >>confdefs.h <<EOF
   17033 #define PROCFS_ROOT "$cf_cv_procfs_cwd"
   17034 EOF
   17035 
   17036 cat >>confdefs.h <<\EOF
   17037 #define OPT_EXEC_XTERM 1
   17038 EOF
   17039 
   17040 	fi
   17041 fi
   17042 
   17043 echo "$as_me:17043: checking if you want to use double-buffering" >&5
   17044 echo $ECHO_N "checking if you want to use double-buffering... $ECHO_C" >&6
   17045 
   17046 # Check whether --enable-double-buffer or --disable-double-buffer was given.
   17047 if test "${enable_double_buffer+set}" = set; then
   17048   enableval="$enable_double_buffer"
   17049   test "$enableval" != yes && enableval=no
   17050 	if test "$enableval" != "no" ; then
   17051     enable_double_bfr=yes
   17052 	else
   17053 		enable_double_bfr=no
   17054 	fi
   17055 else
   17056   enableval=no
   17057 	enable_double_bfr=no
   17058 
   17059 fi;
   17060 echo "$as_me:17060: result: $enable_double_bfr" >&5
   17061 echo "${ECHO_T}$enable_double_bfr" >&6
   17062 if test "$enable_double_bfr" = yes ; then
   17063 	case "x$LIBS" in
   17064 	(*Xext*)
   17065 		;;
   17066 	(*)
   17067 
   17068 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
   17069 	test -n "$verbose" && echo "	found package Xext" 1>&6
   17070 
   17071 echo "${as_me:-configure}:17071: testing found package Xext ..." 1>&5
   17072 
   17073 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
   17074 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   Xext 2>/dev/null`"
   17075 	test -n "$verbose" && echo "	package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
   17076 
   17077 echo "${as_me:-configure}:17077: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   17078 
   17079 	test -n "$verbose" && echo "	package Xext LIBS: $cf_pkgconfig_libs" 1>&6
   17080 
   17081 echo "${as_me:-configure}:17081: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
   17082 
   17083 cf_fix_cppflags=no
   17084 cf_new_cflags=
   17085 cf_new_cppflags=
   17086 cf_new_extra_cppflags=
   17087 
   17088 for cf_add_cflags in $cf_pkgconfig_incs
   17089 do
   17090 case $cf_fix_cppflags in
   17091 (no)
   17092 	case $cf_add_cflags in
   17093 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   17094 		case $cf_add_cflags in
   17095 		(-D*)
   17096 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   17097 
   17098 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   17099 				&& test -z "${cf_tst_cflags}" \
   17100 				&& cf_fix_cppflags=yes
   17101 
   17102 			if test $cf_fix_cppflags = yes ; then
   17103 
   17104 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   17105 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   17106 
   17107 				continue
   17108 			elif test "${cf_tst_cflags}" = "\"'" ; then
   17109 
   17110 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   17111 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   17112 
   17113 				continue
   17114 			fi
   17115 			;;
   17116 		esac
   17117 		case "$CPPFLAGS" in
   17118 		(*$cf_add_cflags)
   17119 			;;
   17120 		(*)
   17121 			case $cf_add_cflags in
   17122 			(-D*)
   17123 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   17124 
   17125 CPPFLAGS=`echo "$CPPFLAGS" | \
   17126 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   17127 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   17128 
   17129 				;;
   17130 			esac
   17131 
   17132 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   17133 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   17134 
   17135 			;;
   17136 		esac
   17137 		;;
   17138 	(*)
   17139 
   17140 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   17141 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   17142 
   17143 		;;
   17144 	esac
   17145 	;;
   17146 (yes)
   17147 
   17148 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   17149 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   17150 
   17151 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   17152 
   17153 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   17154 		&& test -z "${cf_tst_cflags}" \
   17155 		&& cf_fix_cppflags=no
   17156 	;;
   17157 esac
   17158 done
   17159 
   17160 if test -n "$cf_new_cflags" ; then
   17161 
   17162 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   17163 	CFLAGS="${CFLAGS}$cf_new_cflags"
   17164 
   17165 fi
   17166 
   17167 if test -n "$cf_new_cppflags" ; then
   17168 
   17169 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   17170 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   17171 
   17172 fi
   17173 
   17174 if test -n "$cf_new_extra_cppflags" ; then
   17175 
   17176 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   17177 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   17178 
   17179 fi
   17180 
   17181 cf_add_libs="$cf_pkgconfig_libs"
   17182 # Filter out duplicates - this happens with badly-designed ".pc" files...
   17183 for cf_add_1lib in $LIBS
   17184 do
   17185 	for cf_add_2lib in $cf_add_libs
   17186 	do
   17187 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   17188 		then
   17189 			cf_add_1lib=
   17190 			break
   17191 		fi
   17192 	done
   17193 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   17194 done
   17195 LIBS="$cf_add_libs"
   17196 
   17197 	:
   17198 else
   17199 	cf_pkgconfig_incs=
   17200 	cf_pkgconfig_libs=
   17201 
   17202 	echo "$as_me:17202: checking for XextCreateExtension in -lXext" >&5
   17203 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
   17204 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
   17205   echo $ECHO_N "(cached) $ECHO_C" >&6
   17206 else
   17207   ac_check_lib_save_LIBS=$LIBS
   17208 LIBS="-lXext  $LIBS"
   17209 cat >conftest.$ac_ext <<_ACEOF
   17210 #line 17210 "configure"
   17211 #include "confdefs.h"
   17212 
   17213 /* Override any gcc2 internal prototype to avoid an error.  */
   17214 #ifdef __cplusplus
   17215 extern "C"
   17216 #endif
   17217 /* We use char because int might match the return type of a gcc2
   17218    builtin and then its argument prototype would still apply.  */
   17219 char XextCreateExtension ();
   17220 int
   17221 main (void)
   17222 {
   17223 XextCreateExtension ();
   17224   ;
   17225   return 0;
   17226 }
   17227 _ACEOF
   17228 rm -f conftest.$ac_objext conftest$ac_exeext
   17229 if { (eval echo "$as_me:17229: \"$ac_link\"") >&5
   17230   (eval $ac_link) 2>&5
   17231   ac_status=$?
   17232   echo "$as_me:17232: \$? = $ac_status" >&5
   17233   (exit $ac_status); } &&
   17234          { ac_try='test -s conftest$ac_exeext'
   17235   { (eval echo "$as_me:17235: \"$ac_try\"") >&5
   17236   (eval $ac_try) 2>&5
   17237   ac_status=$?
   17238   echo "$as_me:17238: \$? = $ac_status" >&5
   17239   (exit $ac_status); }; }; then
   17240   ac_cv_lib_Xext_XextCreateExtension=yes
   17241 else
   17242   echo "$as_me: failed program was:" >&5
   17243 cat conftest.$ac_ext >&5
   17244 ac_cv_lib_Xext_XextCreateExtension=no
   17245 fi
   17246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   17247 LIBS=$ac_check_lib_save_LIBS
   17248 fi
   17249 echo "$as_me:17249: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
   17250 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
   17251 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
   17252 
   17253 cf_add_libs="-lXext"
   17254 # Filter out duplicates - this happens with badly-designed ".pc" files...
   17255 for cf_add_1lib in $LIBS
   17256 do
   17257 	for cf_add_2lib in $cf_add_libs
   17258 	do
   17259 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   17260 		then
   17261 			cf_add_1lib=
   17262 			break
   17263 		fi
   17264 	done
   17265 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   17266 done
   17267 LIBS="$cf_add_libs"
   17268 
   17269 fi
   17270 
   17271 fi
   17272 
   17273 		;;
   17274 	esac
   17275 
   17276 cat >>confdefs.h <<\EOF
   17277 #define OPT_DOUBLE_BUFFER 1
   17278 EOF
   17279 
   17280 fi
   17281 
   17282 echo "$as_me:17282: checking if you want to use FreeType library" >&5
   17283 echo $ECHO_N "checking if you want to use FreeType library... $ECHO_C" >&6
   17284 
   17285 # Check whether --enable-freetype or --disable-freetype was given.
   17286 if test "${enable_freetype+set}" = set; then
   17287   enableval="$enable_freetype"
   17288   test "$enableval" != no && enableval=yes
   17289 	if test "$enableval" != "yes" ; then
   17290     enable_freetype=no
   17291 	else
   17292 		enable_freetype=yes
   17293 	fi
   17294 else
   17295   enableval=yes
   17296 	enable_freetype=yes
   17297 
   17298 fi;
   17299 echo "$as_me:17299: result: $enable_freetype" >&5
   17300 echo "${ECHO_T}$enable_freetype" >&6
   17301 if test "$enable_freetype" = yes ; then
   17302 
   17303 cf_cv_x_freetype_incs=no
   17304 cf_cv_x_freetype_libs=no
   17305 cf_extra_freetype_libs=
   17306 FREETYPE_CONFIG=none
   17307 FREETYPE_PARAMS=
   17308 
   17309 echo "$as_me:17309: checking for FreeType configuration script" >&5
   17310 echo $ECHO_N "checking for FreeType configuration script... $ECHO_C" >&6
   17311 
   17312 # Check whether --with-freetype-config or --without-freetype-config was given.
   17313 if test "${with_freetype_config+set}" = set; then
   17314   withval="$with_freetype_config"
   17315   cf_cv_x_freetype_cfgs="$withval"
   17316 else
   17317   cf_cv_x_freetype_cfgs=auto
   17318 fi;
   17319 test -z $cf_cv_x_freetype_cfgs && cf_cv_x_freetype_cfgs=auto
   17320 test $cf_cv_x_freetype_cfgs = no && cf_cv_x_freetype_cfgs=none
   17321 echo "$as_me:17321: result: $cf_cv_x_freetype_cfgs" >&5
   17322 echo "${ECHO_T}$cf_cv_x_freetype_cfgs" >&6
   17323 
   17324 case $cf_cv_x_freetype_cfgs in
   17325 (none)
   17326 	echo "$as_me:17326: checking if you specified -D/-I options for FreeType" >&5
   17327 echo $ECHO_N "checking if you specified -D/-I options for FreeType... $ECHO_C" >&6
   17328 
   17329 # Check whether --with-freetype-cflags or --without-freetype-cflags was given.
   17330 if test "${with_freetype_cflags+set}" = set; then
   17331   withval="$with_freetype_cflags"
   17332   cf_cv_x_freetype_incs="$with_freetype_cflags"
   17333 else
   17334   cf_cv_x_freetype_incs=no
   17335 fi;
   17336 	echo "$as_me:17336: result: $cf_cv_x_freetype_incs" >&5
   17337 echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6
   17338 
   17339 	echo "$as_me:17339: checking if you specified -L/-l options for FreeType" >&5
   17340 echo $ECHO_N "checking if you specified -L/-l options for FreeType... $ECHO_C" >&6
   17341 
   17342 # Check whether --with-freetype-libs or --without-freetype-libs was given.
   17343 if test "${with_freetype_libs+set}" = set; then
   17344   withval="$with_freetype_libs"
   17345   cf_cv_x_freetype_libs="$with_freetype_libs"
   17346 else
   17347   cf_cv_x_freetype_libs=no
   17348 fi;
   17349 	echo "$as_me:17349: result: $cf_cv_x_freetype_libs" >&5
   17350 echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6
   17351 	;;
   17352 (auto)
   17353 	if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then
   17354 		FREETYPE_CONFIG=$PKG_CONFIG
   17355 		FREETYPE_PARAMS=xft
   17356 	else
   17357 		# Extract the first word of "freetype-config", so it can be a program name with args.
   17358 set dummy freetype-config; ac_word=$2
   17359 echo "$as_me:17359: checking for $ac_word" >&5
   17360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   17361 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
   17362   echo $ECHO_N "(cached) $ECHO_C" >&6
   17363 else
   17364   case $FREETYPE_CONFIG in
   17365   [\\/]* | ?:[\\/]*)
   17366   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
   17367   ;;
   17368   *)
   17369   ac_save_IFS=$IFS; IFS=$ac_path_separator
   17370 ac_dummy="$PATH"
   17371 for ac_dir in $ac_dummy; do
   17372   IFS=$ac_save_IFS
   17373   test -z "$ac_dir" && ac_dir=.
   17374   if $as_executable_p "$ac_dir/$ac_word"; then
   17375    ac_cv_path_FREETYPE_CONFIG="$ac_dir/$ac_word"
   17376    echo "$as_me:17376: found $ac_dir/$ac_word" >&5
   17377    break
   17378 fi
   17379 done
   17380 
   17381   test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="none"
   17382   ;;
   17383 esac
   17384 fi
   17385 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
   17386 
   17387 if test -n "$FREETYPE_CONFIG"; then
   17388   echo "$as_me:17388: result: $FREETYPE_CONFIG" >&5
   17389 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
   17390 else
   17391   echo "$as_me:17391: result: no" >&5
   17392 echo "${ECHO_T}no" >&6
   17393 fi
   17394 
   17395 		if test "$FREETYPE_CONFIG" != none; then
   17396 			FREETYPE_CONFIG=$FREETYPE_CONFIG
   17397 			cf_extra_freetype_libs="-lXft"
   17398 		else
   17399 			# Extract the first word of "xft-config", so it can be a program name with args.
   17400 set dummy xft-config; ac_word=$2
   17401 echo "$as_me:17401: checking for $ac_word" >&5
   17402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   17403 if test "${ac_cv_path_FREETYPE_OLD_CONFIG+set}" = set; then
   17404   echo $ECHO_N "(cached) $ECHO_C" >&6
   17405 else
   17406   case $FREETYPE_OLD_CONFIG in
   17407   [\\/]* | ?:[\\/]*)
   17408   ac_cv_path_FREETYPE_OLD_CONFIG="$FREETYPE_OLD_CONFIG" # Let the user override the test with a path.
   17409   ;;
   17410   *)
   17411   ac_save_IFS=$IFS; IFS=$ac_path_separator
   17412 ac_dummy="$PATH"
   17413 for ac_dir in $ac_dummy; do
   17414   IFS=$ac_save_IFS
   17415   test -z "$ac_dir" && ac_dir=.
   17416   if $as_executable_p "$ac_dir/$ac_word"; then
   17417    ac_cv_path_FREETYPE_OLD_CONFIG="$ac_dir/$ac_word"
   17418    echo "$as_me:17418: found $ac_dir/$ac_word" >&5
   17419    break
   17420 fi
   17421 done
   17422 
   17423   test -z "$ac_cv_path_FREETYPE_OLD_CONFIG" && ac_cv_path_FREETYPE_OLD_CONFIG="none"
   17424   ;;
   17425 esac
   17426 fi
   17427 FREETYPE_OLD_CONFIG=$ac_cv_path_FREETYPE_OLD_CONFIG
   17428 
   17429 if test -n "$FREETYPE_OLD_CONFIG"; then
   17430   echo "$as_me:17430: result: $FREETYPE_OLD_CONFIG" >&5
   17431 echo "${ECHO_T}$FREETYPE_OLD_CONFIG" >&6
   17432 else
   17433   echo "$as_me:17433: result: no" >&5
   17434 echo "${ECHO_T}no" >&6
   17435 fi
   17436 
   17437 			if test "$FREETYPE_OLD_CONFIG" != none; then
   17438 				FREETYPE_CONFIG=$FREETYPE_OLD_CONFIG
   17439 			fi
   17440 		fi
   17441 	fi
   17442 	;;
   17443 (pkg*)
   17444 	if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then
   17445 		FREETYPE_CONFIG=$cf_cv_x_freetype_cfgs
   17446 		FREETYPE_PARAMS=xft
   17447 	else
   17448 		{ echo "$as_me:17448: WARNING: cannot find pkg-config for Xft" >&5
   17449 echo "$as_me: WARNING: cannot find pkg-config for Xft" >&2;}
   17450 	fi
   17451 	;;
   17452 (*)
   17453 	# Extract the first word of "$cf_cv_x_freetype_cfgs", so it can be a program name with args.
   17454 set dummy $cf_cv_x_freetype_cfgs; ac_word=$2
   17455 echo "$as_me:17455: checking for $ac_word" >&5
   17456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   17457 if test "${ac_cv_path_FREETYPE_XFT_CONFIG+set}" = set; then
   17458   echo $ECHO_N "(cached) $ECHO_C" >&6
   17459 else
   17460   case $FREETYPE_XFT_CONFIG in
   17461   [\\/]* | ?:[\\/]*)
   17462   ac_cv_path_FREETYPE_XFT_CONFIG="$FREETYPE_XFT_CONFIG" # Let the user override the test with a path.
   17463   ;;
   17464   *)
   17465   ac_save_IFS=$IFS; IFS=$ac_path_separator
   17466 ac_dummy="$PATH"
   17467 for ac_dir in $ac_dummy; do
   17468   IFS=$ac_save_IFS
   17469   test -z "$ac_dir" && ac_dir=.
   17470   if $as_executable_p "$ac_dir/$ac_word"; then
   17471    ac_cv_path_FREETYPE_XFT_CONFIG="$ac_dir/$ac_word"
   17472    echo "$as_me:17472: found $ac_dir/$ac_word" >&5
   17473    break
   17474 fi
   17475 done
   17476 
   17477   test -z "$ac_cv_path_FREETYPE_XFT_CONFIG" && ac_cv_path_FREETYPE_XFT_CONFIG="none"
   17478   ;;
   17479 esac
   17480 fi
   17481 FREETYPE_XFT_CONFIG=$ac_cv_path_FREETYPE_XFT_CONFIG
   17482 
   17483 if test -n "$FREETYPE_XFT_CONFIG"; then
   17484   echo "$as_me:17484: result: $FREETYPE_XFT_CONFIG" >&5
   17485 echo "${ECHO_T}$FREETYPE_XFT_CONFIG" >&6
   17486 else
   17487   echo "$as_me:17487: result: no" >&5
   17488 echo "${ECHO_T}no" >&6
   17489 fi
   17490 
   17491 	if test "$FREETYPE_XFT_CONFIG" != none; then
   17492 		FREETYPE_CONFIG=$FREETYPE_XFT_CONFIG
   17493 	else
   17494 		{ echo "$as_me:17494: WARNING: cannot find config script for Xft" >&5
   17495 echo "$as_me: WARNING: cannot find config script for Xft" >&2;}
   17496 	fi
   17497 	;;
   17498 esac
   17499 
   17500 if test "$FREETYPE_CONFIG" != none ; then
   17501 	echo "$as_me:17501: checking for FreeType config" >&5
   17502 echo $ECHO_N "checking for FreeType config... $ECHO_C" >&6
   17503 	echo "$as_me:17503: result: $FREETYPE_CONFIG $FREETYPE_PARAMS" >&5
   17504 echo "${ECHO_T}$FREETYPE_CONFIG $FREETYPE_PARAMS" >&6
   17505 
   17506 	if test "$cf_cv_x_freetype_incs" = no ; then
   17507 		echo "$as_me:17507: checking for $FREETYPE_CONFIG cflags" >&5
   17508 echo $ECHO_N "checking for $FREETYPE_CONFIG cflags... $ECHO_C" >&6
   17509 		cf_cv_x_freetype_incs="`$FREETYPE_CONFIG $FREETYPE_PARAMS --cflags 2>/dev/null`"
   17510 		echo "$as_me:17510: result: $cf_cv_x_freetype_incs" >&5
   17511 echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6
   17512 	fi
   17513 
   17514 	if test "$cf_cv_x_freetype_libs" = no ; then
   17515 		echo "$as_me:17515: checking for $FREETYPE_CONFIG libs" >&5
   17516 echo $ECHO_N "checking for $FREETYPE_CONFIG libs... $ECHO_C" >&6
   17517 		cf_cv_x_freetype_libs="$cf_extra_freetype_libs `$FREETYPE_CONFIG $FREETYPE_PARAMS --libs 2>/dev/null`"
   17518 		echo "$as_me:17518: result: $cf_cv_x_freetype_libs" >&5
   17519 echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6
   17520 	fi
   17521 fi
   17522 
   17523 if test "$cf_cv_x_freetype_incs" = no ; then
   17524 	cf_cv_x_freetype_incs=
   17525 fi
   17526 
   17527 if test "$cf_cv_x_freetype_libs" = no ; then
   17528 	cf_cv_x_freetype_libs=-lXft
   17529 fi
   17530 
   17531 echo "$as_me:17531: checking if we can link with FreeType libraries" >&5
   17532 echo $ECHO_N "checking if we can link with FreeType libraries... $ECHO_C" >&6
   17533 
   17534 cf_save_LIBS="$LIBS"
   17535 cf_save_INCS="$CPPFLAGS"
   17536 
   17537 cf_add_libs="$cf_cv_x_freetype_libs"
   17538 # Filter out duplicates - this happens with badly-designed ".pc" files...
   17539 for cf_add_1lib in $LIBS
   17540 do
   17541 	for cf_add_2lib in $cf_add_libs
   17542 	do
   17543 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   17544 		then
   17545 			cf_add_1lib=
   17546 			break
   17547 		fi
   17548 	done
   17549 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   17550 done
   17551 LIBS="$cf_add_libs"
   17552 
   17553 CPPFLAGS="$CPPFLAGS $cf_cv_x_freetype_incs"
   17554 
   17555 cat >conftest.$ac_ext <<_ACEOF
   17556 #line 17556 "configure"
   17557 #include "confdefs.h"
   17558 
   17559 #include <X11/Xlib.h>
   17560 #include <X11/extensions/Xrender.h>
   17561 #include <X11/Xft/Xft.h>
   17562 int
   17563 main (void)
   17564 {
   17565 
   17566 	XftPattern  *pat = XftNameParse ("name");
   17567   ;
   17568   return 0;
   17569 }
   17570 _ACEOF
   17571 rm -f conftest.$ac_objext conftest$ac_exeext
   17572 if { (eval echo "$as_me:17572: \"$ac_link\"") >&5
   17573   (eval $ac_link) 2>&5
   17574   ac_status=$?
   17575   echo "$as_me:17575: \$? = $ac_status" >&5
   17576   (exit $ac_status); } &&
   17577          { ac_try='test -s conftest$ac_exeext'
   17578   { (eval echo "$as_me:17578: \"$ac_try\"") >&5
   17579   (eval $ac_try) 2>&5
   17580   ac_status=$?
   17581   echo "$as_me:17581: \$? = $ac_status" >&5
   17582   (exit $ac_status); }; }; then
   17583   cf_cv_found_freetype=yes
   17584 else
   17585   echo "$as_me: failed program was:" >&5
   17586 cat conftest.$ac_ext >&5
   17587 cf_cv_found_freetype=no
   17588 fi
   17589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   17590 echo "$as_me:17590: result: $cf_cv_found_freetype" >&5
   17591 echo "${ECHO_T}$cf_cv_found_freetype" >&6
   17592 
   17593 LIBS="$cf_save_LIBS"
   17594 CPPFLAGS="$cf_save_INCS"
   17595 
   17596 if test "$cf_cv_found_freetype" = yes ; then
   17597 
   17598 cf_add_libs="$cf_cv_x_freetype_libs"
   17599 # Filter out duplicates - this happens with badly-designed ".pc" files...
   17600 for cf_add_1lib in $LIBS
   17601 do
   17602 	for cf_add_2lib in $cf_add_libs
   17603 	do
   17604 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   17605 		then
   17606 			cf_add_1lib=
   17607 			break
   17608 		fi
   17609 	done
   17610 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   17611 done
   17612 LIBS="$cf_add_libs"
   17613 
   17614 cf_fix_cppflags=no
   17615 cf_new_cflags=
   17616 cf_new_cppflags=
   17617 cf_new_extra_cppflags=
   17618 
   17619 for cf_add_cflags in $cf_cv_x_freetype_incs
   17620 do
   17621 case $cf_fix_cppflags in
   17622 (no)
   17623 	case $cf_add_cflags in
   17624 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   17625 		case $cf_add_cflags in
   17626 		(-D*)
   17627 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   17628 
   17629 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   17630 				&& test -z "${cf_tst_cflags}" \
   17631 				&& cf_fix_cppflags=yes
   17632 
   17633 			if test $cf_fix_cppflags = yes ; then
   17634 
   17635 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   17636 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   17637 
   17638 				continue
   17639 			elif test "${cf_tst_cflags}" = "\"'" ; then
   17640 
   17641 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   17642 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   17643 
   17644 				continue
   17645 			fi
   17646 			;;
   17647 		esac
   17648 		case "$CPPFLAGS" in
   17649 		(*$cf_add_cflags)
   17650 			;;
   17651 		(*)
   17652 			case $cf_add_cflags in
   17653 			(-D*)
   17654 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   17655 
   17656 CPPFLAGS=`echo "$CPPFLAGS" | \
   17657 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   17658 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   17659 
   17660 				;;
   17661 			esac
   17662 
   17663 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   17664 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   17665 
   17666 			;;
   17667 		esac
   17668 		;;
   17669 	(*)
   17670 
   17671 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   17672 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   17673 
   17674 		;;
   17675 	esac
   17676 	;;
   17677 (yes)
   17678 
   17679 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   17680 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   17681 
   17682 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   17683 
   17684 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   17685 		&& test -z "${cf_tst_cflags}" \
   17686 		&& cf_fix_cppflags=no
   17687 	;;
   17688 esac
   17689 done
   17690 
   17691 if test -n "$cf_new_cflags" ; then
   17692 
   17693 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   17694 	CFLAGS="${CFLAGS}$cf_new_cflags"
   17695 
   17696 fi
   17697 
   17698 if test -n "$cf_new_cppflags" ; then
   17699 
   17700 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   17701 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   17702 
   17703 fi
   17704 
   17705 if test -n "$cf_new_extra_cppflags" ; then
   17706 
   17707 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   17708 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   17709 
   17710 fi
   17711 
   17712 cat >>confdefs.h <<\EOF
   17713 #define XRENDERFONT 1
   17714 EOF
   17715 
   17716 for ac_func in \
   17717 	XftDrawCharSpec \
   17718 	XftDrawSetClip \
   17719 	XftDrawSetClipRectangles \
   17720 
   17721 do
   17722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17723 echo "$as_me:17723: checking for $ac_func" >&5
   17724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   17725 if eval "test \"\${$as_ac_var+set}\" = set"; then
   17726   echo $ECHO_N "(cached) $ECHO_C" >&6
   17727 else
   17728   cat >conftest.$ac_ext <<_ACEOF
   17729 #line 17729 "configure"
   17730 #include "confdefs.h"
   17731 /* System header to define __stub macros and hopefully few prototypes,
   17732     which can conflict with char $ac_func (); below.  */
   17733 #include <assert.h>
   17734 /* Override any gcc2 internal prototype to avoid an error.  */
   17735 #ifdef __cplusplus
   17736 extern "C"
   17737 #endif
   17738 /* We use char because int might match the return type of a gcc2
   17739    builtin and then its argument prototype would still apply.  */
   17740 char $ac_func ();
   17741 char (*f) ();
   17742 
   17743 int
   17744 main (void)
   17745 {
   17746 /* The GNU C library defines this for functions which it implements
   17747     to always fail with ENOSYS.  Some functions are actually named
   17748     something starting with __ and the normal name is an alias.  */
   17749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   17750 choke me
   17751 #else
   17752 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
   17753 #endif
   17754 
   17755   ;
   17756   return 0;
   17757 }
   17758 _ACEOF
   17759 rm -f conftest.$ac_objext conftest$ac_exeext
   17760 if { (eval echo "$as_me:17760: \"$ac_link\"") >&5
   17761   (eval $ac_link) 2>&5
   17762   ac_status=$?
   17763   echo "$as_me:17763: \$? = $ac_status" >&5
   17764   (exit $ac_status); } &&
   17765          { ac_try='test -s conftest$ac_exeext'
   17766   { (eval echo "$as_me:17766: \"$ac_try\"") >&5
   17767   (eval $ac_try) 2>&5
   17768   ac_status=$?
   17769   echo "$as_me:17769: \$? = $ac_status" >&5
   17770   (exit $ac_status); }; }; then
   17771   eval "$as_ac_var=yes"
   17772 else
   17773   echo "$as_me: failed program was:" >&5
   17774 cat conftest.$ac_ext >&5
   17775 eval "$as_ac_var=no"
   17776 fi
   17777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   17778 fi
   17779 echo "$as_me:17779: result: `eval echo '${'$as_ac_var'}'`" >&5
   17780 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   17781 if test `eval echo '${'$as_ac_var'}'` = yes; then
   17782   cat >>confdefs.h <<EOF
   17783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17784 EOF
   17785 
   17786 fi
   17787 done
   17788 
   17789 else
   17790 	{ echo "$as_me:17790: WARNING: No libraries found for FreeType" >&5
   17791 echo "$as_me: WARNING: No libraries found for FreeType" >&2;}
   17792 	CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//`
   17793 fi
   17794 
   17795 # FIXME: revisit this if needed
   17796 
   17797 if test "$cf_cv_found_freetype" = yes ; then
   17798 echo "$as_me:17798: checking for usable Xft/fontconfig package" >&5
   17799 echo $ECHO_N "checking for usable Xft/fontconfig package... $ECHO_C" >&6
   17800 if test "${cf_cv_xft_compat+set}" = set; then
   17801   echo $ECHO_N "(cached) $ECHO_C" >&6
   17802 else
   17803 
   17804 cat >conftest.$ac_ext <<_ACEOF
   17805 #line 17805 "configure"
   17806 #include "confdefs.h"
   17807 
   17808 #include <X11/Xft/Xft.h>
   17809 
   17810 int
   17811 main (void)
   17812 {
   17813 
   17814 	XftPattern *pat;
   17815 	XftPatternBuild(pat,
   17816 					XFT_FAMILY, XftTypeString, "mono",
   17817 					(void *) 0);
   17818 
   17819   ;
   17820   return 0;
   17821 }
   17822 _ACEOF
   17823 rm -f conftest.$ac_objext conftest$ac_exeext
   17824 if { (eval echo "$as_me:17824: \"$ac_link\"") >&5
   17825   (eval $ac_link) 2>&5
   17826   ac_status=$?
   17827   echo "$as_me:17827: \$? = $ac_status" >&5
   17828   (exit $ac_status); } &&
   17829          { ac_try='test -s conftest$ac_exeext'
   17830   { (eval echo "$as_me:17830: \"$ac_try\"") >&5
   17831   (eval $ac_try) 2>&5
   17832   ac_status=$?
   17833   echo "$as_me:17833: \$? = $ac_status" >&5
   17834   (exit $ac_status); }; }; then
   17835   cf_cv_xft_compat=yes
   17836 else
   17837   echo "$as_me: failed program was:" >&5
   17838 cat conftest.$ac_ext >&5
   17839 cf_cv_xft_compat=no
   17840 fi
   17841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   17842 
   17843 fi
   17844 echo "$as_me:17844: result: $cf_cv_xft_compat" >&5
   17845 echo "${ECHO_T}$cf_cv_xft_compat" >&6
   17846 
   17847 if test "$cf_cv_xft_compat" = no
   17848 then
   17849 	# workaround for broken ".pc" files used for Xft.
   17850 	case "$cf_cv_x_freetype_libs" in
   17851 	(*-lfontconfig*)
   17852 		;;
   17853 	(*)
   17854 		test -n "$verbose" && echo "	work around broken package" 1>&6
   17855 
   17856 echo "${as_me:-configure}:17856: testing work around broken package ..." 1>&5
   17857 
   17858 		cf_save_fontconfig="$LIBS"
   17859 
   17860 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists fontconfig; then
   17861 	test -n "$verbose" && echo "	found package fontconfig" 1>&6
   17862 
   17863 echo "${as_me:-configure}:17863: testing found package fontconfig ..." 1>&5
   17864 
   17865 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags fontconfig 2>/dev/null`"
   17866 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   fontconfig 2>/dev/null`"
   17867 	test -n "$verbose" && echo "	package fontconfig CFLAGS: $cf_pkgconfig_incs" 1>&6
   17868 
   17869 echo "${as_me:-configure}:17869: testing package fontconfig CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   17870 
   17871 	test -n "$verbose" && echo "	package fontconfig LIBS: $cf_pkgconfig_libs" 1>&6
   17872 
   17873 echo "${as_me:-configure}:17873: testing package fontconfig LIBS: $cf_pkgconfig_libs ..." 1>&5
   17874 
   17875 cf_fix_cppflags=no
   17876 cf_new_cflags=
   17877 cf_new_cppflags=
   17878 cf_new_extra_cppflags=
   17879 
   17880 for cf_add_cflags in $cf_pkgconfig_incs
   17881 do
   17882 case $cf_fix_cppflags in
   17883 (no)
   17884 	case $cf_add_cflags in
   17885 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   17886 		case $cf_add_cflags in
   17887 		(-D*)
   17888 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   17889 
   17890 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   17891 				&& test -z "${cf_tst_cflags}" \
   17892 				&& cf_fix_cppflags=yes
   17893 
   17894 			if test $cf_fix_cppflags = yes ; then
   17895 
   17896 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   17897 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   17898 
   17899 				continue
   17900 			elif test "${cf_tst_cflags}" = "\"'" ; then
   17901 
   17902 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   17903 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   17904 
   17905 				continue
   17906 			fi
   17907 			;;
   17908 		esac
   17909 		case "$CPPFLAGS" in
   17910 		(*$cf_add_cflags)
   17911 			;;
   17912 		(*)
   17913 			case $cf_add_cflags in
   17914 			(-D*)
   17915 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   17916 
   17917 CPPFLAGS=`echo "$CPPFLAGS" | \
   17918 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   17919 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   17920 
   17921 				;;
   17922 			esac
   17923 
   17924 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   17925 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   17926 
   17927 			;;
   17928 		esac
   17929 		;;
   17930 	(*)
   17931 
   17932 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   17933 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   17934 
   17935 		;;
   17936 	esac
   17937 	;;
   17938 (yes)
   17939 
   17940 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   17941 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   17942 
   17943 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   17944 
   17945 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   17946 		&& test -z "${cf_tst_cflags}" \
   17947 		&& cf_fix_cppflags=no
   17948 	;;
   17949 esac
   17950 done
   17951 
   17952 if test -n "$cf_new_cflags" ; then
   17953 
   17954 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   17955 	CFLAGS="${CFLAGS}$cf_new_cflags"
   17956 
   17957 fi
   17958 
   17959 if test -n "$cf_new_cppflags" ; then
   17960 
   17961 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   17962 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   17963 
   17964 fi
   17965 
   17966 if test -n "$cf_new_extra_cppflags" ; then
   17967 
   17968 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   17969 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   17970 
   17971 fi
   17972 
   17973 cf_add_libs="$cf_pkgconfig_libs"
   17974 # Filter out duplicates - this happens with badly-designed ".pc" files...
   17975 for cf_add_1lib in $LIBS
   17976 do
   17977 	for cf_add_2lib in $cf_add_libs
   17978 	do
   17979 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   17980 		then
   17981 			cf_add_1lib=
   17982 			break
   17983 		fi
   17984 	done
   17985 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   17986 done
   17987 LIBS="$cf_add_libs"
   17988 
   17989 cf_fix_cppflags=no
   17990 cf_new_cflags=
   17991 cf_new_cppflags=
   17992 cf_new_extra_cppflags=
   17993 
   17994 for cf_add_cflags in $cf_pkgconfig_incs
   17995 do
   17996 case $cf_fix_cppflags in
   17997 (no)
   17998 	case $cf_add_cflags in
   17999 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   18000 		case $cf_add_cflags in
   18001 		(-D*)
   18002 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   18003 
   18004 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   18005 				&& test -z "${cf_tst_cflags}" \
   18006 				&& cf_fix_cppflags=yes
   18007 
   18008 			if test $cf_fix_cppflags = yes ; then
   18009 
   18010 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   18011 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   18012 
   18013 				continue
   18014 			elif test "${cf_tst_cflags}" = "\"'" ; then
   18015 
   18016 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   18017 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   18018 
   18019 				continue
   18020 			fi
   18021 			;;
   18022 		esac
   18023 		case "$CPPFLAGS" in
   18024 		(*$cf_add_cflags)
   18025 			;;
   18026 		(*)
   18027 			case $cf_add_cflags in
   18028 			(-D*)
   18029 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   18030 
   18031 CPPFLAGS=`echo "$CPPFLAGS" | \
   18032 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   18033 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   18034 
   18035 				;;
   18036 			esac
   18037 
   18038 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   18039 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   18040 
   18041 			;;
   18042 		esac
   18043 		;;
   18044 	(*)
   18045 
   18046 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   18047 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   18048 
   18049 		;;
   18050 	esac
   18051 	;;
   18052 (yes)
   18053 
   18054 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   18055 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   18056 
   18057 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   18058 
   18059 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   18060 		&& test -z "${cf_tst_cflags}" \
   18061 		&& cf_fix_cppflags=no
   18062 	;;
   18063 esac
   18064 done
   18065 
   18066 if test -n "$cf_new_cflags" ; then
   18067 
   18068 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   18069 	CFLAGS="${CFLAGS}$cf_new_cflags"
   18070 
   18071 fi
   18072 
   18073 if test -n "$cf_new_cppflags" ; then
   18074 
   18075 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   18076 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   18077 
   18078 fi
   18079 
   18080 if test -n "$cf_new_extra_cppflags" ; then
   18081 
   18082 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   18083 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   18084 
   18085 fi
   18086 
   18087 				LIBS="$cf_save_fontconfig"
   18088 
   18089 test -n "$verbose" && echo "	...before $LIBS" 1>&6
   18090 
   18091 echo "${as_me:-configure}:18091: testing ...before $LIBS ..." 1>&5
   18092 
   18093 LIBS=`echo "$LIBS" | sed -e "s/[ 	][ 	]*/ /g" -e "s%-lXft %-lXft $cf_pkgconfig_libs %" -e 's%  % %g'`
   18094 test -n "$verbose" && echo "	...after  $LIBS" 1>&6
   18095 
   18096 echo "${as_me:-configure}:18096: testing ...after  $LIBS ..." 1>&5
   18097 
   18098 else
   18099 	cf_pkgconfig_incs=
   18100 	cf_pkgconfig_libs=
   18101 
   18102 test -n "$verbose" && echo "	...before $LIBS" 1>&6
   18103 
   18104 echo "${as_me:-configure}:18104: testing ...before $LIBS ..." 1>&5
   18105 
   18106 LIBS=`echo "$LIBS" | sed -e "s/[ 	][ 	]*/ /g" -e "s%-lXft %-lXft -lfontconfig %" -e 's%  % %g'`
   18107 test -n "$verbose" && echo "	...after  $LIBS" 1>&6
   18108 
   18109 echo "${as_me:-configure}:18109: testing ...after  $LIBS ..." 1>&5
   18110 
   18111 fi
   18112 
   18113 		;;
   18114 	esac
   18115 fi
   18116 fi
   18117 
   18118 else
   18119 	CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//`
   18120 fi
   18121 
   18122 echo "$as_me:18122: checking if you want support for HP-style function keys" >&5
   18123 echo $ECHO_N "checking if you want support for HP-style function keys... $ECHO_C" >&6
   18124 
   18125 # Check whether --enable-hp-fkeys or --disable-hp-fkeys was given.
   18126 if test "${enable_hp_fkeys+set}" = set; then
   18127   enableval="$enable_hp_fkeys"
   18128   test "$enableval" != yes && enableval=no
   18129 	if test "$enableval" != "no" ; then
   18130     enable_hp_fkeys=yes
   18131 	else
   18132 		enable_hp_fkeys=no
   18133 	fi
   18134 else
   18135   enableval=no
   18136 	enable_hp_fkeys=no
   18137 
   18138 fi;
   18139 echo "$as_me:18139: result: $enable_hp_fkeys" >&5
   18140 echo "${ECHO_T}$enable_hp_fkeys" >&6
   18141 if test "$enable_hp_fkeys" = yes ; then
   18142 
   18143 cat >>confdefs.h <<\EOF
   18144 #define OPT_HP_FUNC_KEYS 1
   18145 EOF
   18146 
   18147 fi
   18148 
   18149 echo "$as_me:18149: checking if you want support for SCO-style function keys" >&5
   18150 echo $ECHO_N "checking if you want support for SCO-style function keys... $ECHO_C" >&6
   18151 
   18152 # Check whether --enable-sco-fkeys or --disable-sco-fkeys was given.
   18153 if test "${enable_sco_fkeys+set}" = set; then
   18154   enableval="$enable_sco_fkeys"
   18155   test "$enableval" != yes && enableval=no
   18156 	if test "$enableval" != "no" ; then
   18157     enable_sco_fkeys=yes
   18158 	else
   18159 		enable_sco_fkeys=no
   18160 	fi
   18161 else
   18162   enableval=no
   18163 	enable_sco_fkeys=no
   18164 
   18165 fi;
   18166 echo "$as_me:18166: result: $enable_sco_fkeys" >&5
   18167 echo "${ECHO_T}$enable_sco_fkeys" >&6
   18168 if test "$enable_sco_fkeys" = yes ; then
   18169 
   18170 cat >>confdefs.h <<\EOF
   18171 #define OPT_SCO_FUNC_KEYS 1
   18172 EOF
   18173 
   18174 fi
   18175 
   18176 echo "$as_me:18176: checking if you want support for Sun-style function keys" >&5
   18177 echo $ECHO_N "checking if you want support for Sun-style function keys... $ECHO_C" >&6
   18178 
   18179 # Check whether --enable-sun-fkeys or --disable-sun-fkeys was given.
   18180 if test "${enable_sun_fkeys+set}" = set; then
   18181   enableval="$enable_sun_fkeys"
   18182   test "$enableval" != no && enableval=yes
   18183 	if test "$enableval" != "yes" ; then
   18184     enable_sun_fkeys=no
   18185 	else
   18186 		enable_sun_fkeys=yes
   18187 	fi
   18188 else
   18189   enableval=yes
   18190 	enable_sun_fkeys=yes
   18191 
   18192 fi;
   18193 echo "$as_me:18193: result: $enable_sun_fkeys" >&5
   18194 echo "${ECHO_T}$enable_sun_fkeys" >&6
   18195 if test "$enable_sun_fkeys" = no ; then
   18196 
   18197 cat >>confdefs.h <<\EOF
   18198 #define OPT_SUN_FUNC_KEYS 0
   18199 EOF
   18200 
   18201 fi
   18202 
   18203 echo "$as_me:18203: checking if you want saved-lines stored as a FIFO" >&5
   18204 echo $ECHO_N "checking if you want saved-lines stored as a FIFO... $ECHO_C" >&6
   18205 
   18206 # Check whether --enable-fifo-lines or --disable-fifo-lines was given.
   18207 if test "${enable_fifo_lines+set}" = set; then
   18208   enableval="$enable_fifo_lines"
   18209   test "$enableval" != no && enableval=yes
   18210 	if test "$enableval" != "yes" ; then
   18211     enable_fifo_lines=no
   18212 	else
   18213 		enable_fifo_lines=yes
   18214 	fi
   18215 else
   18216   enableval=yes
   18217 	enable_fifo_lines=yes
   18218 
   18219 fi;
   18220 echo "$as_me:18220: result: $enable_fifo_lines" >&5
   18221 echo "${ECHO_T}$enable_fifo_lines" >&6
   18222 if test "$enable_fifo_lines" = yes ; then
   18223 
   18224 cat >>confdefs.h <<\EOF
   18225 #define OPT_FIFO_LINES 1
   18226 EOF
   18227 
   18228 fi
   18229 
   18230 echo "$as_me:18230: checking if you want support for internationalization" >&5
   18231 echo $ECHO_N "checking if you want support for internationalization... $ECHO_C" >&6
   18232 
   18233 # Check whether --enable-i18n or --disable-i18n was given.
   18234 if test "${enable_i18n+set}" = set; then
   18235   enableval="$enable_i18n"
   18236   test "$enableval" != no && enableval=yes
   18237 	if test "$enableval" != "yes" ; then
   18238     enable_i18n=no
   18239 	else
   18240 		enable_i18n=yes
   18241 	fi
   18242 else
   18243   enableval=yes
   18244 	enable_i18n=yes
   18245 
   18246 fi;
   18247 echo "$as_me:18247: result: $enable_i18n" >&5
   18248 echo "${ECHO_T}$enable_i18n" >&6
   18249 if test "$enable_i18n" = no ; then
   18250 
   18251 cat >>confdefs.h <<\EOF
   18252 #define OPT_I18N_SUPPORT 0
   18253 EOF
   18254 
   18255 fi
   18256 
   18257 echo "$as_me:18257: checking if you want support for initial-erase setup" >&5
   18258 echo $ECHO_N "checking if you want support for initial-erase setup... $ECHO_C" >&6
   18259 
   18260 # Check whether --enable-initial-erase or --disable-initial-erase was given.
   18261 if test "${enable_initial_erase+set}" = set; then
   18262   enableval="$enable_initial_erase"
   18263   test "$enableval" != no && enableval=yes
   18264 	if test "$enableval" != "yes" ; then
   18265     enable_ie=no
   18266 	else
   18267 		enable_ie=yes
   18268 	fi
   18269 else
   18270   enableval=yes
   18271 	enable_ie=yes
   18272 
   18273 fi;
   18274 echo "$as_me:18274: result: $enable_ie" >&5
   18275 echo "${ECHO_T}$enable_ie" >&6
   18276 if test "$enable_ie" = no ; then
   18277 
   18278 cat >>confdefs.h <<\EOF
   18279 #define OPT_INITIAL_ERASE 0
   18280 EOF
   18281 
   18282 fi
   18283 
   18284 echo "$as_me:18284: checking if you want support for input-method" >&5
   18285 echo $ECHO_N "checking if you want support for input-method... $ECHO_C" >&6
   18286 
   18287 # Check whether --enable-input-method or --disable-input-method was given.
   18288 if test "${enable_input_method+set}" = set; then
   18289   enableval="$enable_input_method"
   18290   test "$enableval" != no && enableval=yes
   18291 	if test "$enableval" != "yes" ; then
   18292     enable_ximp=no
   18293 	else
   18294 		enable_ximp=yes
   18295 	fi
   18296 else
   18297   enableval=yes
   18298 	enable_ximp=yes
   18299 
   18300 fi;
   18301 echo "$as_me:18301: result: $enable_ximp" >&5
   18302 echo "${ECHO_T}$enable_ximp" >&6
   18303 
   18304 echo "$as_me:18304: checking if X libraries support input-method" >&5
   18305 echo $ECHO_N "checking if X libraries support input-method... $ECHO_C" >&6
   18306 if test "${cf_cv_input_method+set}" = set; then
   18307   echo $ECHO_N "(cached) $ECHO_C" >&6
   18308 else
   18309 
   18310 cat >conftest.$ac_ext <<_ACEOF
   18311 #line 18311 "configure"
   18312 #include "confdefs.h"
   18313 
   18314 #include <X11/IntrinsicP.h>
   18315 #include <X11/Xatom.h>
   18316 #include <X11/Xutil.h>
   18317 #include <X11/Xmu/Atoms.h>
   18318 #include <X11/Xmu/Converters.h>
   18319 #include <X11/Xaw/XawImP.h>
   18320 
   18321 int
   18322 main (void)
   18323 {
   18324 
   18325 {
   18326 	XIM xim;
   18327 	XIMStyles *xim_styles = 0;
   18328 	XIMStyle input_style;
   18329 	Widget w = 0;
   18330 
   18331 	XSetLocaleModifiers("@im=none");
   18332 	xim = XOpenIM(XtDisplay(w), NULL, NULL, NULL);
   18333 	XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL);
   18334 	XCloseIM(xim);
   18335 	input_style = (XIMPreeditNothing | XIMStatusNothing);
   18336 }
   18337 
   18338   ;
   18339   return 0;
   18340 }
   18341 _ACEOF
   18342 rm -f conftest.$ac_objext conftest$ac_exeext
   18343 if { (eval echo "$as_me:18343: \"$ac_link\"") >&5
   18344   (eval $ac_link) 2>&5
   18345   ac_status=$?
   18346   echo "$as_me:18346: \$? = $ac_status" >&5
   18347   (exit $ac_status); } &&
   18348          { ac_try='test -s conftest$ac_exeext'
   18349   { (eval echo "$as_me:18349: \"$ac_try\"") >&5
   18350   (eval $ac_try) 2>&5
   18351   ac_status=$?
   18352   echo "$as_me:18352: \$? = $ac_status" >&5
   18353   (exit $ac_status); }; }; then
   18354   cf_cv_input_method=yes
   18355 else
   18356   echo "$as_me: failed program was:" >&5
   18357 cat conftest.$ac_ext >&5
   18358 cf_cv_input_method=no
   18359 fi
   18360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   18361 fi
   18362 echo "$as_me:18362: result: $cf_cv_input_method" >&5
   18363 echo "${ECHO_T}$cf_cv_input_method" >&6
   18364 
   18365 test "$cf_cv_input_method" = no && enable_ximp=no
   18366 if test "$enable_ximp" = no ; then
   18367 
   18368 cat >>confdefs.h <<\EOF
   18369 #define OPT_INPUT_METHOD 0
   18370 EOF
   18371 
   18372 fi
   18373 
   18374 echo "$as_me:18374: checking if you want support for load-vt-fonts" >&5
   18375 echo $ECHO_N "checking if you want support for load-vt-fonts... $ECHO_C" >&6
   18376 
   18377 # Check whether --enable-load-vt-fonts or --disable-load-vt-fonts was given.
   18378 if test "${enable_load_vt_fonts+set}" = set; then
   18379   enableval="$enable_load_vt_fonts"
   18380   test "$enableval" != yes && enableval=no
   18381 	if test "$enableval" != "no" ; then
   18382     enable_load_vt_fonts=yes
   18383 	else
   18384 		enable_load_vt_fonts=no
   18385 	fi
   18386 else
   18387   enableval=no
   18388 	enable_load_vt_fonts=no
   18389 
   18390 fi;
   18391 echo "$as_me:18391: result: $enable_load_vt_fonts" >&5
   18392 echo "${ECHO_T}$enable_load_vt_fonts" >&6
   18393 if test "$enable_load_vt_fonts" = yes ; then
   18394 
   18395 cat >>confdefs.h <<\EOF
   18396 #define OPT_LOAD_VTFONTS 1
   18397 EOF
   18398 
   18399 fi
   18400 
   18401 echo "$as_me:18401: checking if you want support for logging" >&5
   18402 echo $ECHO_N "checking if you want support for logging... $ECHO_C" >&6
   18403 
   18404 # Check whether --enable-logging or --disable-logging was given.
   18405 if test "${enable_logging+set}" = set; then
   18406   enableval="$enable_logging"
   18407   test "$enableval" != yes && enableval=no
   18408 	if test "$enableval" != "no" ; then
   18409     enable_logging=yes
   18410 	else
   18411 		enable_logging=no
   18412 	fi
   18413 else
   18414   enableval=no
   18415 	enable_logging=no
   18416 
   18417 fi;
   18418 echo "$as_me:18418: result: $enable_logging" >&5
   18419 echo "${ECHO_T}$enable_logging" >&6
   18420 if test "$enable_logging" = yes ; then
   18421 
   18422 cat >>confdefs.h <<\EOF
   18423 #define ALLOWLOGGING 1
   18424 EOF
   18425 
   18426 	echo "$as_me:18426: checking if you want to allow logging via a pipe" >&5
   18427 echo $ECHO_N "checking if you want to allow logging via a pipe... $ECHO_C" >&6
   18428 
   18429 # Check whether --enable-logfile-exec or --disable-logfile-exec was given.
   18430 if test "${enable_logfile_exec+set}" = set; then
   18431   enableval="$enable_logfile_exec"
   18432   test "$enableval" != yes && enableval=no
   18433 	if test "$enableval" != "no" ; then
   18434     enable_log_exec=yes
   18435 	else
   18436 		enable_log_exec=no
   18437 	fi
   18438 else
   18439   enableval=no
   18440 	enable_log_exec=no
   18441 
   18442 fi;
   18443 	echo "$as_me:18443: result: $enable_log_exec" >&5
   18444 echo "${ECHO_T}$enable_log_exec" >&6
   18445 	if test "$enable_log_exec" = yes ; then
   18446 
   18447 cat >>confdefs.h <<\EOF
   18448 #define ALLOWLOGFILEEXEC 1
   18449 EOF
   18450 
   18451 	fi
   18452 fi
   18453 
   18454 echo "$as_me:18454: checking if you want support for iconify/maximize translations" >&5
   18455 echo $ECHO_N "checking if you want support for iconify/maximize translations... $ECHO_C" >&6
   18456 
   18457 # Check whether --enable-maximize or --disable-maximize was given.
   18458 if test "${enable_maximize+set}" = set; then
   18459   enableval="$enable_maximize"
   18460   test "$enableval" != no && enableval=yes
   18461 	if test "$enableval" != "yes" ; then
   18462     enable_maximize=no
   18463 	else
   18464 		enable_maximize=yes
   18465 	fi
   18466 else
   18467   enableval=yes
   18468 	enable_maximize=yes
   18469 
   18470 fi;
   18471 echo "$as_me:18471: result: $enable_maximize" >&5
   18472 echo "${ECHO_T}$enable_maximize" >&6
   18473 test "$enable_maximize" = no &&
   18474 cat >>confdefs.h <<\EOF
   18475 #define OPT_MAXIMIZE 0
   18476 EOF
   18477 
   18478 echo "$as_me:18478: checking if you want NumLock to override keyboard tables" >&5
   18479 echo $ECHO_N "checking if you want NumLock to override keyboard tables... $ECHO_C" >&6
   18480 
   18481 # Check whether --enable-num-lock or --disable-num-lock was given.
   18482 if test "${enable_num_lock+set}" = set; then
   18483   enableval="$enable_num_lock"
   18484   test "$enableval" != no && enableval=yes
   18485 	if test "$enableval" != "yes" ; then
   18486     enable_numlock=no
   18487 	else
   18488 		enable_numlock=yes
   18489 	fi
   18490 else
   18491   enableval=yes
   18492 	enable_numlock=yes
   18493 
   18494 fi;
   18495 echo "$as_me:18495: result: $enable_numlock" >&5
   18496 echo "${ECHO_T}$enable_numlock" >&6
   18497 test "$enable_numlock" = no &&
   18498 cat >>confdefs.h <<\EOF
   18499 #define OPT_NUM_LOCK 0
   18500 EOF
   18501 
   18502 echo "$as_me:18502: checking if you want support for get/set of base64 selection data" >&5
   18503 echo $ECHO_N "checking if you want support for get/set of base64 selection data... $ECHO_C" >&6
   18504 
   18505 # Check whether --enable-paste64 or --disable-paste64 was given.
   18506 if test "${enable_paste64+set}" = set; then
   18507   enableval="$enable_paste64"
   18508   test "$enableval" != no && enableval=yes
   18509 	if test "$enableval" != "yes" ; then
   18510     enable_paste64=no
   18511 	else
   18512 		enable_paste64=yes
   18513 	fi
   18514 else
   18515   enableval=yes
   18516 	enable_paste64=yes
   18517 
   18518 fi;
   18519 echo "$as_me:18519: result: $enable_paste64" >&5
   18520 echo "${ECHO_T}$enable_paste64" >&6
   18521 if test "$enable_paste64" = yes ; then
   18522 
   18523 cat >>confdefs.h <<\EOF
   18524 #define OPT_PASTE64 1
   18525 EOF
   18526 
   18527 else
   18528 
   18529 cat >>confdefs.h <<\EOF
   18530 #define OPT_PASTE64 0
   18531 EOF
   18532 
   18533 fi
   18534 
   18535 echo "$as_me:18535: checking if you want support for pty-handshaking" >&5
   18536 echo $ECHO_N "checking if you want support for pty-handshaking... $ECHO_C" >&6
   18537 
   18538 # Check whether --enable-pty-handshake or --disable-pty-handshake was given.
   18539 if test "${enable_pty_handshake+set}" = set; then
   18540   enableval="$enable_pty_handshake"
   18541   test "$enableval" != no && enableval=yes
   18542 	if test "$enableval" != "yes" ; then
   18543     enable_pty_handshake=no
   18544 	else
   18545 		enable_pty_handshake=yes
   18546 	fi
   18547 else
   18548   enableval=yes
   18549 	enable_pty_handshake=yes
   18550 
   18551 fi;
   18552 echo "$as_me:18552: result: $enable_pty_handshake" >&5
   18553 echo "${ECHO_T}$enable_pty_handshake" >&6
   18554 if test "$enable_pty_handshake" = yes ; then
   18555 
   18556 cat >>confdefs.h <<\EOF
   18557 #define OPT_PTY_HANDSHAKE 1
   18558 EOF
   18559 
   18560 else
   18561 
   18562 cat >>confdefs.h <<\EOF
   18563 #define OPT_PTY_HANDSHAKE 0
   18564 EOF
   18565 
   18566 fi
   18567 
   18568 echo "$as_me:18568: checking if you want support for mouse in readline applications" >&5
   18569 echo $ECHO_N "checking if you want support for mouse in readline applications... $ECHO_C" >&6
   18570 
   18571 # Check whether --enable-readline-mouse or --disable-readline-mouse was given.
   18572 if test "${enable_readline_mouse+set}" = set; then
   18573   enableval="$enable_readline_mouse"
   18574   test "$enableval" != yes && enableval=no
   18575 	if test "$enableval" != "no" ; then
   18576     enable_readline_mouse=yes
   18577 	else
   18578 		enable_readline_mouse=no
   18579 	fi
   18580 else
   18581   enableval=no
   18582 	enable_readline_mouse=no
   18583 
   18584 fi;
   18585 echo "$as_me:18585: result: $enable_readline_mouse" >&5
   18586 echo "${ECHO_T}$enable_readline_mouse" >&6
   18587 if test "$enable_readline_mouse" = yes ; then
   18588 
   18589 cat >>confdefs.h <<\EOF
   18590 #define OPT_READLINE 1
   18591 EOF
   18592 
   18593 fi
   18594 
   18595 echo "$as_me:18595: checking if you want support for regular-expression selections" >&5
   18596 echo $ECHO_N "checking if you want support for regular-expression selections... $ECHO_C" >&6
   18597 
   18598 # Check whether --enable-regex or --disable-regex was given.
   18599 if test "${enable_regex+set}" = set; then
   18600   enableval="$enable_regex"
   18601   test "$enableval" != no && enableval=yes
   18602 	if test "$enableval" != "yes" ; then
   18603     enable_regex=no
   18604 	else
   18605 		enable_regex=yes
   18606 	fi
   18607 else
   18608   enableval=yes
   18609 	enable_regex=yes
   18610 
   18611 fi;
   18612 echo "$as_me:18612: result: $enable_regex" >&5
   18613 echo "${ECHO_T}$enable_regex" >&6
   18614 if test "$enable_regex" = yes ; then
   18615 
   18616 echo "$as_me:18616: checking if you want to use PCRE for regular-expressions" >&5
   18617 echo $ECHO_N "checking if you want to use PCRE for regular-expressions... $ECHO_C" >&6
   18618 
   18619 # Check whether --with-pcre or --without-pcre was given.
   18620 if test "${with_pcre+set}" = set; then
   18621   withval="$with_pcre"
   18622 
   18623 fi;
   18624 test -z "$with_pcre" && with_pcre=no
   18625 echo "$as_me:18625: result: $with_pcre" >&5
   18626 echo "${ECHO_T}$with_pcre" >&6
   18627 
   18628 if test "$with_pcre" != no ; then
   18629 
   18630 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre; then
   18631 	test -n "$verbose" && echo "	found package libpcre" 1>&6
   18632 
   18633 echo "${as_me:-configure}:18633: testing found package libpcre ..." 1>&5
   18634 
   18635 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre 2>/dev/null`"
   18636 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   libpcre 2>/dev/null`"
   18637 	test -n "$verbose" && echo "	package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6
   18638 
   18639 echo "${as_me:-configure}:18639: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   18640 
   18641 	test -n "$verbose" && echo "	package libpcre LIBS: $cf_pkgconfig_libs" 1>&6
   18642 
   18643 echo "${as_me:-configure}:18643: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5
   18644 
   18645 cf_fix_cppflags=no
   18646 cf_new_cflags=
   18647 cf_new_cppflags=
   18648 cf_new_extra_cppflags=
   18649 
   18650 for cf_add_cflags in $cf_pkgconfig_incs
   18651 do
   18652 case $cf_fix_cppflags in
   18653 (no)
   18654 	case $cf_add_cflags in
   18655 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   18656 		case $cf_add_cflags in
   18657 		(-D*)
   18658 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   18659 
   18660 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   18661 				&& test -z "${cf_tst_cflags}" \
   18662 				&& cf_fix_cppflags=yes
   18663 
   18664 			if test $cf_fix_cppflags = yes ; then
   18665 
   18666 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   18667 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   18668 
   18669 				continue
   18670 			elif test "${cf_tst_cflags}" = "\"'" ; then
   18671 
   18672 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   18673 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   18674 
   18675 				continue
   18676 			fi
   18677 			;;
   18678 		esac
   18679 		case "$CPPFLAGS" in
   18680 		(*$cf_add_cflags)
   18681 			;;
   18682 		(*)
   18683 			case $cf_add_cflags in
   18684 			(-D*)
   18685 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   18686 
   18687 CPPFLAGS=`echo "$CPPFLAGS" | \
   18688 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   18689 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   18690 
   18691 				;;
   18692 			esac
   18693 
   18694 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   18695 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   18696 
   18697 			;;
   18698 		esac
   18699 		;;
   18700 	(*)
   18701 
   18702 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   18703 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   18704 
   18705 		;;
   18706 	esac
   18707 	;;
   18708 (yes)
   18709 
   18710 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   18711 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   18712 
   18713 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   18714 
   18715 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   18716 		&& test -z "${cf_tst_cflags}" \
   18717 		&& cf_fix_cppflags=no
   18718 	;;
   18719 esac
   18720 done
   18721 
   18722 if test -n "$cf_new_cflags" ; then
   18723 
   18724 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   18725 	CFLAGS="${CFLAGS}$cf_new_cflags"
   18726 
   18727 fi
   18728 
   18729 if test -n "$cf_new_cppflags" ; then
   18730 
   18731 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   18732 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   18733 
   18734 fi
   18735 
   18736 if test -n "$cf_new_extra_cppflags" ; then
   18737 
   18738 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   18739 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   18740 
   18741 fi
   18742 
   18743 cf_add_libs="$cf_pkgconfig_libs"
   18744 # Filter out duplicates - this happens with badly-designed ".pc" files...
   18745 for cf_add_1lib in $LIBS
   18746 do
   18747 	for cf_add_2lib in $cf_add_libs
   18748 	do
   18749 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   18750 		then
   18751 			cf_add_1lib=
   18752 			break
   18753 		fi
   18754 	done
   18755 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   18756 done
   18757 LIBS="$cf_add_libs"
   18758 
   18759 	:
   18760 else
   18761 	cf_pkgconfig_incs=
   18762 	cf_pkgconfig_libs=
   18763 
   18764 echo "$as_me:18764: checking for pcre_compile in -lpcre" >&5
   18765 echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
   18766 if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
   18767   echo $ECHO_N "(cached) $ECHO_C" >&6
   18768 else
   18769   ac_check_lib_save_LIBS=$LIBS
   18770 LIBS="-lpcre  $LIBS"
   18771 cat >conftest.$ac_ext <<_ACEOF
   18772 #line 18772 "configure"
   18773 #include "confdefs.h"
   18774 
   18775 /* Override any gcc2 internal prototype to avoid an error.  */
   18776 #ifdef __cplusplus
   18777 extern "C"
   18778 #endif
   18779 /* We use char because int might match the return type of a gcc2
   18780    builtin and then its argument prototype would still apply.  */
   18781 char pcre_compile ();
   18782 int
   18783 main (void)
   18784 {
   18785 pcre_compile ();
   18786   ;
   18787   return 0;
   18788 }
   18789 _ACEOF
   18790 rm -f conftest.$ac_objext conftest$ac_exeext
   18791 if { (eval echo "$as_me:18791: \"$ac_link\"") >&5
   18792   (eval $ac_link) 2>&5
   18793   ac_status=$?
   18794   echo "$as_me:18794: \$? = $ac_status" >&5
   18795   (exit $ac_status); } &&
   18796          { ac_try='test -s conftest$ac_exeext'
   18797   { (eval echo "$as_me:18797: \"$ac_try\"") >&5
   18798   (eval $ac_try) 2>&5
   18799   ac_status=$?
   18800   echo "$as_me:18800: \$? = $ac_status" >&5
   18801   (exit $ac_status); }; }; then
   18802   ac_cv_lib_pcre_pcre_compile=yes
   18803 else
   18804   echo "$as_me: failed program was:" >&5
   18805 cat conftest.$ac_ext >&5
   18806 ac_cv_lib_pcre_pcre_compile=no
   18807 fi
   18808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   18809 LIBS=$ac_check_lib_save_LIBS
   18810 fi
   18811 echo "$as_me:18811: result: $ac_cv_lib_pcre_pcre_compile" >&5
   18812 echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
   18813 if test $ac_cv_lib_pcre_pcre_compile = yes; then
   18814   cat >>confdefs.h <<EOF
   18815 #define HAVE_LIBPCRE 1
   18816 EOF
   18817 
   18818   LIBS="-lpcre $LIBS"
   18819 
   18820 else
   18821   { { echo "$as_me:18821: error: Cannot find PCRE library" >&5
   18822 echo "$as_me: error: Cannot find PCRE library" >&2;}
   18823    { (exit 1); exit 1; }; }
   18824 fi
   18825 
   18826 fi
   18827 
   18828 cat >>confdefs.h <<\EOF
   18829 #define HAVE_LIB_PCRE 1
   18830 EOF
   18831 
   18832 		case $LIBS in
   18833 		(*pcreposix*)
   18834 			;;
   18835 		(*)
   18836 			echo "$as_me:18836: checking for pcreposix_regcomp in -lpcreposix" >&5
   18837 echo $ECHO_N "checking for pcreposix_regcomp in -lpcreposix... $ECHO_C" >&6
   18838 if test "${ac_cv_lib_pcreposix_pcreposix_regcomp+set}" = set; then
   18839   echo $ECHO_N "(cached) $ECHO_C" >&6
   18840 else
   18841   ac_check_lib_save_LIBS=$LIBS
   18842 LIBS="-lpcreposix  $LIBS"
   18843 cat >conftest.$ac_ext <<_ACEOF
   18844 #line 18844 "configure"
   18845 #include "confdefs.h"
   18846 
   18847 /* Override any gcc2 internal prototype to avoid an error.  */
   18848 #ifdef __cplusplus
   18849 extern "C"
   18850 #endif
   18851 /* We use char because int might match the return type of a gcc2
   18852    builtin and then its argument prototype would still apply.  */
   18853 char pcreposix_regcomp ();
   18854 int
   18855 main (void)
   18856 {
   18857 pcreposix_regcomp ();
   18858   ;
   18859   return 0;
   18860 }
   18861 _ACEOF
   18862 rm -f conftest.$ac_objext conftest$ac_exeext
   18863 if { (eval echo "$as_me:18863: \"$ac_link\"") >&5
   18864   (eval $ac_link) 2>&5
   18865   ac_status=$?
   18866   echo "$as_me:18866: \$? = $ac_status" >&5
   18867   (exit $ac_status); } &&
   18868          { ac_try='test -s conftest$ac_exeext'
   18869   { (eval echo "$as_me:18869: \"$ac_try\"") >&5
   18870   (eval $ac_try) 2>&5
   18871   ac_status=$?
   18872   echo "$as_me:18872: \$? = $ac_status" >&5
   18873   (exit $ac_status); }; }; then
   18874   ac_cv_lib_pcreposix_pcreposix_regcomp=yes
   18875 else
   18876   echo "$as_me: failed program was:" >&5
   18877 cat conftest.$ac_ext >&5
   18878 ac_cv_lib_pcreposix_pcreposix_regcomp=no
   18879 fi
   18880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   18881 LIBS=$ac_check_lib_save_LIBS
   18882 fi
   18883 echo "$as_me:18883: result: $ac_cv_lib_pcreposix_pcreposix_regcomp" >&5
   18884 echo "${ECHO_T}$ac_cv_lib_pcreposix_pcreposix_regcomp" >&6
   18885 if test $ac_cv_lib_pcreposix_pcreposix_regcomp = yes; then
   18886 
   18887 cat >>confdefs.h <<\EOF
   18888 #define HAVE_PCREPOSIX_H 1
   18889 EOF
   18890 
   18891 cf_add_libs="-lpcreposix"
   18892 # Filter out duplicates - this happens with badly-designed ".pc" files...
   18893 for cf_add_1lib in $LIBS
   18894 do
   18895 	for cf_add_2lib in $cf_add_libs
   18896 	do
   18897 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   18898 		then
   18899 			cf_add_1lib=
   18900 			break
   18901 		fi
   18902 	done
   18903 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   18904 done
   18905 LIBS="$cf_add_libs"
   18906 
   18907 else
   18908   echo "$as_me:18908: checking for regcomp in -lpcreposix" >&5
   18909 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
   18910 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
   18911   echo $ECHO_N "(cached) $ECHO_C" >&6
   18912 else
   18913   ac_check_lib_save_LIBS=$LIBS
   18914 LIBS="-lpcreposix  $LIBS"
   18915 cat >conftest.$ac_ext <<_ACEOF
   18916 #line 18916 "configure"
   18917 #include "confdefs.h"
   18918 
   18919 /* Override any gcc2 internal prototype to avoid an error.  */
   18920 #ifdef __cplusplus
   18921 extern "C"
   18922 #endif
   18923 /* We use char because int might match the return type of a gcc2
   18924    builtin and then its argument prototype would still apply.  */
   18925 char regcomp ();
   18926 int
   18927 main (void)
   18928 {
   18929 regcomp ();
   18930   ;
   18931   return 0;
   18932 }
   18933 _ACEOF
   18934 rm -f conftest.$ac_objext conftest$ac_exeext
   18935 if { (eval echo "$as_me:18935: \"$ac_link\"") >&5
   18936   (eval $ac_link) 2>&5
   18937   ac_status=$?
   18938   echo "$as_me:18938: \$? = $ac_status" >&5
   18939   (exit $ac_status); } &&
   18940          { ac_try='test -s conftest$ac_exeext'
   18941   { (eval echo "$as_me:18941: \"$ac_try\"") >&5
   18942   (eval $ac_try) 2>&5
   18943   ac_status=$?
   18944   echo "$as_me:18944: \$? = $ac_status" >&5
   18945   (exit $ac_status); }; }; then
   18946   ac_cv_lib_pcreposix_regcomp=yes
   18947 else
   18948   echo "$as_me: failed program was:" >&5
   18949 cat conftest.$ac_ext >&5
   18950 ac_cv_lib_pcreposix_regcomp=no
   18951 fi
   18952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   18953 LIBS=$ac_check_lib_save_LIBS
   18954 fi
   18955 echo "$as_me:18955: result: $ac_cv_lib_pcreposix_regcomp" >&5
   18956 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
   18957 if test $ac_cv_lib_pcreposix_regcomp = yes; then
   18958 
   18959 cat >>confdefs.h <<\EOF
   18960 #define HAVE_PCREPOSIX_H 1
   18961 EOF
   18962 
   18963 cf_add_libs="-lpcreposix"
   18964 # Filter out duplicates - this happens with badly-designed ".pc" files...
   18965 for cf_add_1lib in $LIBS
   18966 do
   18967 	for cf_add_2lib in $cf_add_libs
   18968 	do
   18969 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   18970 		then
   18971 			cf_add_1lib=
   18972 			break
   18973 		fi
   18974 	done
   18975 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   18976 done
   18977 LIBS="$cf_add_libs"
   18978 
   18979 else
   18980   { { echo "$as_me:18980: error: Cannot find PCRE POSIX library" >&5
   18981 echo "$as_me: error: Cannot find PCRE POSIX library" >&2;}
   18982    { (exit 1); exit 1; }; }
   18983 fi
   18984 
   18985 fi
   18986 
   18987 			;;
   18988 		esac
   18989 fi
   18990 
   18991 	if test "$with_pcre" = no ; then
   18992 
   18993 cf_regex_func=no
   18994 
   18995 cf_regex_libs="regex re"
   18996 case $host_os in
   18997 (mingw*)
   18998 	cf_regex_libs="gnurx $cf_regex_libs"
   18999 	;;
   19000 esac
   19001 
   19002 echo "$as_me:19002: checking for regcomp" >&5
   19003 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
   19004 if test "${ac_cv_func_regcomp+set}" = set; then
   19005   echo $ECHO_N "(cached) $ECHO_C" >&6
   19006 else
   19007   cat >conftest.$ac_ext <<_ACEOF
   19008 #line 19008 "configure"
   19009 #include "confdefs.h"
   19010 /* System header to define __stub macros and hopefully few prototypes,
   19011     which can conflict with char regcomp (); below.  */
   19012 #include <assert.h>
   19013 /* Override any gcc2 internal prototype to avoid an error.  */
   19014 #ifdef __cplusplus
   19015 extern "C"
   19016 #endif
   19017 /* We use char because int might match the return type of a gcc2
   19018    builtin and then its argument prototype would still apply.  */
   19019 char regcomp ();
   19020 char (*f) ();
   19021 
   19022 int
   19023 main (void)
   19024 {
   19025 /* The GNU C library defines this for functions which it implements
   19026     to always fail with ENOSYS.  Some functions are actually named
   19027     something starting with __ and the normal name is an alias.  */
   19028 #if defined (__stub_regcomp) || defined (__stub___regcomp)
   19029 choke me
   19030 #else
   19031 f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
   19032 #endif
   19033 
   19034   ;
   19035   return 0;
   19036 }
   19037 _ACEOF
   19038 rm -f conftest.$ac_objext conftest$ac_exeext
   19039 if { (eval echo "$as_me:19039: \"$ac_link\"") >&5
   19040   (eval $ac_link) 2>&5
   19041   ac_status=$?
   19042   echo "$as_me:19042: \$? = $ac_status" >&5
   19043   (exit $ac_status); } &&
   19044          { ac_try='test -s conftest$ac_exeext'
   19045   { (eval echo "$as_me:19045: \"$ac_try\"") >&5
   19046   (eval $ac_try) 2>&5
   19047   ac_status=$?
   19048   echo "$as_me:19048: \$? = $ac_status" >&5
   19049   (exit $ac_status); }; }; then
   19050   ac_cv_func_regcomp=yes
   19051 else
   19052   echo "$as_me: failed program was:" >&5
   19053 cat conftest.$ac_ext >&5
   19054 ac_cv_func_regcomp=no
   19055 fi
   19056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   19057 fi
   19058 echo "$as_me:19058: result: $ac_cv_func_regcomp" >&5
   19059 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
   19060 if test $ac_cv_func_regcomp = yes; then
   19061   cf_regex_func=regcomp
   19062 else
   19063 
   19064 	for cf_regex_lib in $cf_regex_libs
   19065 	do
   19066 		as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
   19067 echo "$as_me:19067: checking for regcomp in -l$cf_regex_lib" >&5
   19068 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
   19069 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
   19070   echo $ECHO_N "(cached) $ECHO_C" >&6
   19071 else
   19072   ac_check_lib_save_LIBS=$LIBS
   19073 LIBS="-l$cf_regex_lib  $LIBS"
   19074 cat >conftest.$ac_ext <<_ACEOF
   19075 #line 19075 "configure"
   19076 #include "confdefs.h"
   19077 
   19078 /* Override any gcc2 internal prototype to avoid an error.  */
   19079 #ifdef __cplusplus
   19080 extern "C"
   19081 #endif
   19082 /* We use char because int might match the return type of a gcc2
   19083    builtin and then its argument prototype would still apply.  */
   19084 char regcomp ();
   19085 int
   19086 main (void)
   19087 {
   19088 regcomp ();
   19089   ;
   19090   return 0;
   19091 }
   19092 _ACEOF
   19093 rm -f conftest.$ac_objext conftest$ac_exeext
   19094 if { (eval echo "$as_me:19094: \"$ac_link\"") >&5
   19095   (eval $ac_link) 2>&5
   19096   ac_status=$?
   19097   echo "$as_me:19097: \$? = $ac_status" >&5
   19098   (exit $ac_status); } &&
   19099          { ac_try='test -s conftest$ac_exeext'
   19100   { (eval echo "$as_me:19100: \"$ac_try\"") >&5
   19101   (eval $ac_try) 2>&5
   19102   ac_status=$?
   19103   echo "$as_me:19103: \$? = $ac_status" >&5
   19104   (exit $ac_status); }; }; then
   19105   eval "$as_ac_Lib=yes"
   19106 else
   19107   echo "$as_me: failed program was:" >&5
   19108 cat conftest.$ac_ext >&5
   19109 eval "$as_ac_Lib=no"
   19110 fi
   19111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   19112 LIBS=$ac_check_lib_save_LIBS
   19113 fi
   19114 echo "$as_me:19114: result: `eval echo '${'$as_ac_Lib'}'`" >&5
   19115 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
   19116 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
   19117 
   19118 cf_add_libs="-l$cf_regex_lib"
   19119 # Filter out duplicates - this happens with badly-designed ".pc" files...
   19120 for cf_add_1lib in $LIBS
   19121 do
   19122 	for cf_add_2lib in $cf_add_libs
   19123 	do
   19124 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   19125 		then
   19126 			cf_add_1lib=
   19127 			break
   19128 		fi
   19129 	done
   19130 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   19131 done
   19132 LIBS="$cf_add_libs"
   19133 
   19134 				cf_regex_func=regcomp
   19135 				break
   19136 fi
   19137 
   19138 	done
   19139 
   19140 fi
   19141 
   19142 if test "$cf_regex_func" = no ; then
   19143 	echo "$as_me:19143: checking for compile" >&5
   19144 echo $ECHO_N "checking for compile... $ECHO_C" >&6
   19145 if test "${ac_cv_func_compile+set}" = set; then
   19146   echo $ECHO_N "(cached) $ECHO_C" >&6
   19147 else
   19148   cat >conftest.$ac_ext <<_ACEOF
   19149 #line 19149 "configure"
   19150 #include "confdefs.h"
   19151 /* System header to define __stub macros and hopefully few prototypes,
   19152     which can conflict with char compile (); below.  */
   19153 #include <assert.h>
   19154 /* Override any gcc2 internal prototype to avoid an error.  */
   19155 #ifdef __cplusplus
   19156 extern "C"
   19157 #endif
   19158 /* We use char because int might match the return type of a gcc2
   19159    builtin and then its argument prototype would still apply.  */
   19160 char compile ();
   19161 char (*f) ();
   19162 
   19163 int
   19164 main (void)
   19165 {
   19166 /* The GNU C library defines this for functions which it implements
   19167     to always fail with ENOSYS.  Some functions are actually named
   19168     something starting with __ and the normal name is an alias.  */
   19169 #if defined (__stub_compile) || defined (__stub___compile)
   19170 choke me
   19171 #else
   19172 f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
   19173 #endif
   19174 
   19175   ;
   19176   return 0;
   19177 }
   19178 _ACEOF
   19179 rm -f conftest.$ac_objext conftest$ac_exeext
   19180 if { (eval echo "$as_me:19180: \"$ac_link\"") >&5
   19181   (eval $ac_link) 2>&5
   19182   ac_status=$?
   19183   echo "$as_me:19183: \$? = $ac_status" >&5
   19184   (exit $ac_status); } &&
   19185          { ac_try='test -s conftest$ac_exeext'
   19186   { (eval echo "$as_me:19186: \"$ac_try\"") >&5
   19187   (eval $ac_try) 2>&5
   19188   ac_status=$?
   19189   echo "$as_me:19189: \$? = $ac_status" >&5
   19190   (exit $ac_status); }; }; then
   19191   ac_cv_func_compile=yes
   19192 else
   19193   echo "$as_me: failed program was:" >&5
   19194 cat conftest.$ac_ext >&5
   19195 ac_cv_func_compile=no
   19196 fi
   19197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   19198 fi
   19199 echo "$as_me:19199: result: $ac_cv_func_compile" >&5
   19200 echo "${ECHO_T}$ac_cv_func_compile" >&6
   19201 if test $ac_cv_func_compile = yes; then
   19202   cf_regex_func=compile
   19203 else
   19204 
   19205 		echo "$as_me:19205: checking for compile in -lgen" >&5
   19206 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
   19207 if test "${ac_cv_lib_gen_compile+set}" = set; then
   19208   echo $ECHO_N "(cached) $ECHO_C" >&6
   19209 else
   19210   ac_check_lib_save_LIBS=$LIBS
   19211 LIBS="-lgen  $LIBS"
   19212 cat >conftest.$ac_ext <<_ACEOF
   19213 #line 19213 "configure"
   19214 #include "confdefs.h"
   19215 
   19216 /* Override any gcc2 internal prototype to avoid an error.  */
   19217 #ifdef __cplusplus
   19218 extern "C"
   19219 #endif
   19220 /* We use char because int might match the return type of a gcc2
   19221    builtin and then its argument prototype would still apply.  */
   19222 char compile ();
   19223 int
   19224 main (void)
   19225 {
   19226 compile ();
   19227   ;
   19228   return 0;
   19229 }
   19230 _ACEOF
   19231 rm -f conftest.$ac_objext conftest$ac_exeext
   19232 if { (eval echo "$as_me:19232: \"$ac_link\"") >&5
   19233   (eval $ac_link) 2>&5
   19234   ac_status=$?
   19235   echo "$as_me:19235: \$? = $ac_status" >&5
   19236   (exit $ac_status); } &&
   19237          { ac_try='test -s conftest$ac_exeext'
   19238   { (eval echo "$as_me:19238: \"$ac_try\"") >&5
   19239   (eval $ac_try) 2>&5
   19240   ac_status=$?
   19241   echo "$as_me:19241: \$? = $ac_status" >&5
   19242   (exit $ac_status); }; }; then
   19243   ac_cv_lib_gen_compile=yes
   19244 else
   19245   echo "$as_me: failed program was:" >&5
   19246 cat conftest.$ac_ext >&5
   19247 ac_cv_lib_gen_compile=no
   19248 fi
   19249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   19250 LIBS=$ac_check_lib_save_LIBS
   19251 fi
   19252 echo "$as_me:19252: result: $ac_cv_lib_gen_compile" >&5
   19253 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
   19254 if test $ac_cv_lib_gen_compile = yes; then
   19255 
   19256 cf_add_libs="-lgen"
   19257 # Filter out duplicates - this happens with badly-designed ".pc" files...
   19258 for cf_add_1lib in $LIBS
   19259 do
   19260 	for cf_add_2lib in $cf_add_libs
   19261 	do
   19262 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   19263 		then
   19264 			cf_add_1lib=
   19265 			break
   19266 		fi
   19267 	done
   19268 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   19269 done
   19270 LIBS="$cf_add_libs"
   19271 
   19272 				cf_regex_func=compile
   19273 fi
   19274 
   19275 fi
   19276 
   19277 fi
   19278 
   19279 if test "$cf_regex_func" = no ; then
   19280 	{ echo "$as_me:19280: WARNING: cannot find regular expression library" >&5
   19281 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
   19282 fi
   19283 
   19284 echo "$as_me:19284: checking for regular-expression headers" >&5
   19285 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
   19286 if test "${cf_cv_regex_hdrs+set}" = set; then
   19287   echo $ECHO_N "(cached) $ECHO_C" >&6
   19288 else
   19289 
   19290 cf_cv_regex_hdrs=no
   19291 case $cf_regex_func in
   19292 (compile)
   19293 	for cf_regex_hdr in regexp.h regexpr.h
   19294 	do
   19295 		cat >conftest.$ac_ext <<_ACEOF
   19296 #line 19296 "configure"
   19297 #include "confdefs.h"
   19298 #include <$cf_regex_hdr>
   19299 int
   19300 main (void)
   19301 {
   19302 
   19303 			char *p = compile("", "", "", 0);
   19304 			int x = step("", "");
   19305 
   19306   ;
   19307   return 0;
   19308 }
   19309 _ACEOF
   19310 rm -f conftest.$ac_objext conftest$ac_exeext
   19311 if { (eval echo "$as_me:19311: \"$ac_link\"") >&5
   19312   (eval $ac_link) 2>&5
   19313   ac_status=$?
   19314   echo "$as_me:19314: \$? = $ac_status" >&5
   19315   (exit $ac_status); } &&
   19316          { ac_try='test -s conftest$ac_exeext'
   19317   { (eval echo "$as_me:19317: \"$ac_try\"") >&5
   19318   (eval $ac_try) 2>&5
   19319   ac_status=$?
   19320   echo "$as_me:19320: \$? = $ac_status" >&5
   19321   (exit $ac_status); }; }; then
   19322 
   19323 			cf_cv_regex_hdrs=$cf_regex_hdr
   19324 			break
   19325 
   19326 else
   19327   echo "$as_me: failed program was:" >&5
   19328 cat conftest.$ac_ext >&5
   19329 fi
   19330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   19331 	done
   19332 	;;
   19333 (*)
   19334 	for cf_regex_hdr in regex.h
   19335 	do
   19336 		cat >conftest.$ac_ext <<_ACEOF
   19337 #line 19337 "configure"
   19338 #include "confdefs.h"
   19339 #include <sys/types.h>
   19340 #include <$cf_regex_hdr>
   19341 int
   19342 main (void)
   19343 {
   19344 
   19345 			regex_t *p;
   19346 			int x = regcomp(p, "", 0);
   19347 			int y = regexec(p, "", 0, 0, 0);
   19348 			regfree(p);
   19349 
   19350   ;
   19351   return 0;
   19352 }
   19353 _ACEOF
   19354 rm -f conftest.$ac_objext conftest$ac_exeext
   19355 if { (eval echo "$as_me:19355: \"$ac_link\"") >&5
   19356   (eval $ac_link) 2>&5
   19357   ac_status=$?
   19358   echo "$as_me:19358: \$? = $ac_status" >&5
   19359   (exit $ac_status); } &&
   19360          { ac_try='test -s conftest$ac_exeext'
   19361   { (eval echo "$as_me:19361: \"$ac_try\"") >&5
   19362   (eval $ac_try) 2>&5
   19363   ac_status=$?
   19364   echo "$as_me:19364: \$? = $ac_status" >&5
   19365   (exit $ac_status); }; }; then
   19366 
   19367 			cf_cv_regex_hdrs=$cf_regex_hdr
   19368 			break
   19369 
   19370 else
   19371   echo "$as_me: failed program was:" >&5
   19372 cat conftest.$ac_ext >&5
   19373 fi
   19374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   19375 	done
   19376 	;;
   19377 esac
   19378 
   19379 fi
   19380 echo "$as_me:19380: result: $cf_cv_regex_hdrs" >&5
   19381 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
   19382 
   19383 case $cf_cv_regex_hdrs in
   19384 	(no)		{ echo "$as_me:19384: WARNING: no regular expression header found" >&5
   19385 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
   19386 	(regex.h)
   19387 cat >>confdefs.h <<\EOF
   19388 #define HAVE_REGEX_H_FUNCS 1
   19389 EOF
   19390  ;;
   19391 	(regexp.h)
   19392 cat >>confdefs.h <<\EOF
   19393 #define HAVE_REGEXP_H_FUNCS 1
   19394 EOF
   19395  ;;
   19396 	(regexpr.h)
   19397 cat >>confdefs.h <<\EOF
   19398 #define HAVE_REGEXPR_H_FUNCS 1
   19399 EOF
   19400  ;;
   19401 esac
   19402 
   19403 		if test "X$cf_cv_regex_hdrs" != "Xregex.h" ; then
   19404 			{ { echo "$as_me:19404: error: Only POSIX or PCRE regular expressions are supported" >&5
   19405 echo "$as_me: error: Only POSIX or PCRE regular expressions are supported" >&2;}
   19406    { (exit 1); exit 1; }; }
   19407 		fi
   19408 	fi
   19409 
   19410 cat >>confdefs.h <<\EOF
   19411 #define OPT_SELECT_REGEX 1
   19412 EOF
   19413 
   19414 fi
   19415 
   19416 echo "$as_me:19416: checking if you want support for right-scrollbar" >&5
   19417 echo $ECHO_N "checking if you want support for right-scrollbar... $ECHO_C" >&6
   19418 
   19419 # Check whether --enable-rightbar or --disable-rightbar was given.
   19420 if test "${enable_rightbar+set}" = set; then
   19421   enableval="$enable_rightbar"
   19422   test "$enableval" != no && enableval=yes
   19423 	if test "$enableval" != "yes" ; then
   19424     enable_rightbar=no
   19425 	else
   19426 		enable_rightbar=yes
   19427 	fi
   19428 else
   19429   enableval=yes
   19430 	enable_rightbar=yes
   19431 
   19432 fi;
   19433 echo "$as_me:19433: result: $enable_rightbar" >&5
   19434 echo "${ECHO_T}$enable_rightbar" >&6
   19435 if test "$enable_rightbar" = yes ; then
   19436 
   19437 cat >>confdefs.h <<\EOF
   19438 #define SCROLLBAR_RIGHT 1
   19439 EOF
   19440 
   19441 fi
   19442 
   19443 echo "$as_me:19443: checking if you want check for redundant name-change" >&5
   19444 echo $ECHO_N "checking if you want check for redundant name-change... $ECHO_C" >&6
   19445 
   19446 # Check whether --enable-samename or --disable-samename was given.
   19447 if test "${enable_samename+set}" = set; then
   19448   enableval="$enable_samename"
   19449   test "$enableval" != no && enableval=yes
   19450 	if test "$enableval" != "yes" ; then
   19451     enable_samename=no
   19452 	else
   19453 		enable_samename=yes
   19454 	fi
   19455 else
   19456   enableval=yes
   19457 	enable_samename=yes
   19458 
   19459 fi;
   19460 echo "$as_me:19460: result: $enable_samename" >&5
   19461 echo "${ECHO_T}$enable_samename" >&6
   19462 test "$enable_samename" = no &&
   19463 cat >>confdefs.h <<\EOF
   19464 #define OPT_SAME_NAME 0
   19465 EOF
   19466 
   19467 echo "$as_me:19467: checking if you want support for selection-actions" >&5
   19468 echo $ECHO_N "checking if you want support for selection-actions... $ECHO_C" >&6
   19469 
   19470 # Check whether --enable-selection-ops or --disable-selection-ops was given.
   19471 if test "${enable_selection_ops+set}" = set; then
   19472   enableval="$enable_selection_ops"
   19473   test "$enableval" != no && enableval=yes
   19474 	if test "$enableval" != "yes" ; then
   19475     enable_selection_ops=no
   19476 	else
   19477 		enable_selection_ops=yes
   19478 	fi
   19479 else
   19480   enableval=yes
   19481 	enable_selection_ops=yes
   19482 
   19483 fi;
   19484 echo "$as_me:19484: result: $enable_selection_ops" >&5
   19485 echo "${ECHO_T}$enable_selection_ops" >&6
   19486 test "$enable_selection_ops" = no &&
   19487 cat >>confdefs.h <<\EOF
   19488 #define OPT_SELECTION_OPS 0
   19489 EOF
   19490 
   19491 echo "$as_me:19491: checking if you want support for session management" >&5
   19492 echo $ECHO_N "checking if you want support for session management... $ECHO_C" >&6
   19493 
   19494 # Check whether --enable-session-mgt or --disable-session-mgt was given.
   19495 if test "${enable_session_mgt+set}" = set; then
   19496   enableval="$enable_session_mgt"
   19497   test "$enableval" != no && enableval=yes
   19498 	if test "$enableval" != "yes" ; then
   19499     enable_session_mgt=no
   19500 	else
   19501 		enable_session_mgt=yes
   19502 	fi
   19503 else
   19504   enableval=yes
   19505 	enable_session_mgt=yes
   19506 
   19507 fi;
   19508 echo "$as_me:19508: result: $enable_session_mgt" >&5
   19509 echo "${ECHO_T}$enable_session_mgt" >&6
   19510 test "$enable_session_mgt" = no &&
   19511 cat >>confdefs.h <<\EOF
   19512 #define OPT_SESSION_MGT 0
   19513 EOF
   19514 
   19515 echo "$as_me:19515: checking if you want to use termcap function-keys" >&5
   19516 echo $ECHO_N "checking if you want to use termcap function-keys... $ECHO_C" >&6
   19517 
   19518 # Check whether --enable-tcap-fkeys or --disable-tcap-fkeys was given.
   19519 if test "${enable_tcap_fkeys+set}" = set; then
   19520   enableval="$enable_tcap_fkeys"
   19521   test "$enableval" != no && enableval=yes
   19522 	if test "$enableval" != "yes" ; then
   19523     enable_tcap_fkeys=no
   19524 	else
   19525 		enable_tcap_fkeys=yes
   19526 	fi
   19527 else
   19528   enableval=yes
   19529 	enable_tcap_fkeys=yes
   19530 
   19531 fi;
   19532 echo "$as_me:19532: result: $enable_tcap_fkeys" >&5
   19533 echo "${ECHO_T}$enable_tcap_fkeys" >&6
   19534 test "$enable_tcap_fkeys" = yes &&
   19535 cat >>confdefs.h <<\EOF
   19536 #define OPT_TCAP_FKEYS 1
   19537 EOF
   19538 
   19539 echo "$as_me:19539: checking if you want to use termcap-query/report" >&5
   19540 echo $ECHO_N "checking if you want to use termcap-query/report... $ECHO_C" >&6
   19541 
   19542 # Check whether --enable-tcap-query or --disable-tcap-query was given.
   19543 if test "${enable_tcap_query+set}" = set; then
   19544   enableval="$enable_tcap_query"
   19545   test "$enableval" != no && enableval=yes
   19546 	if test "$enableval" != "yes" ; then
   19547     enable_tcap_query=no
   19548 	else
   19549 		enable_tcap_query=yes
   19550 	fi
   19551 else
   19552   enableval=yes
   19553 	enable_tcap_query=yes
   19554 
   19555 fi;
   19556 echo "$as_me:19556: result: $enable_tcap_query" >&5
   19557 echo "${ECHO_T}$enable_tcap_query" >&6
   19558 test "$enable_tcap_query" = yes &&
   19559 cat >>confdefs.h <<\EOF
   19560 #define OPT_TCAP_QUERY 1
   19561 EOF
   19562 
   19563 echo "$as_me:19563: checking if you want support for tek4014" >&5
   19564 echo $ECHO_N "checking if you want support for tek4014... $ECHO_C" >&6
   19565 
   19566 # Check whether --enable-tek4014 or --disable-tek4014 was given.
   19567 if test "${enable_tek4014+set}" = set; then
   19568   enableval="$enable_tek4014"
   19569   test "$enableval" != no && enableval=yes
   19570 	if test "$enableval" != "yes" ; then
   19571     enable_tek4014=no
   19572 	else
   19573 		enable_tek4014=yes
   19574 	fi
   19575 else
   19576   enableval=yes
   19577 	enable_tek4014=yes
   19578 
   19579 fi;
   19580 echo "$as_me:19580: result: $enable_tek4014" >&5
   19581 echo "${ECHO_T}$enable_tek4014" >&6
   19582 if test "$enable_tek4014" = no ; then
   19583 
   19584 cat >>confdefs.h <<\EOF
   19585 #define OPT_TEK4014 0
   19586 EOF
   19587 
   19588 else
   19589 	EXTRAHDRS="$EXTRAHDRS Tekparse.h"
   19590 	EXTRASRCS="$EXTRASRCS TekPrsTbl.c Tekproc.c"
   19591 	EXTRAOBJS="$EXTRAOBJS TekPrsTbl.o Tekproc.o"
   19592 fi
   19593 
   19594 echo "$as_me:19594: checking if you want pulldown menus with a toolbar" >&5
   19595 echo $ECHO_N "checking if you want pulldown menus with a toolbar... $ECHO_C" >&6
   19596 
   19597 # Check whether --enable-toolbar or --disable-toolbar was given.
   19598 if test "${enable_toolbar+set}" = set; then
   19599   enableval="$enable_toolbar"
   19600   test "$enableval" != yes && enableval=no
   19601 	if test "$enableval" != "no" ; then
   19602     enable_toolbar=yes
   19603 	else
   19604 		enable_toolbar=no
   19605 	fi
   19606 else
   19607   enableval=no
   19608 	enable_toolbar=no
   19609 
   19610 fi;
   19611 echo "$as_me:19611: result: $enable_toolbar" >&5
   19612 echo "${ECHO_T}$enable_toolbar" >&6
   19613 if test "$enable_toolbar" = yes ; then
   19614 
   19615 cat >>confdefs.h <<\EOF
   19616 #define OPT_TOOLBAR 1
   19617 EOF
   19618 
   19619 fi
   19620 
   19621 echo "$as_me:19621: checking if you want VT52 emulation" >&5
   19622 echo $ECHO_N "checking if you want VT52 emulation... $ECHO_C" >&6
   19623 
   19624 # Check whether --enable-vt52 or --disable-vt52 was given.
   19625 if test "${enable_vt52+set}" = set; then
   19626   enableval="$enable_vt52"
   19627   test "$enableval" != no && enableval=yes
   19628 	if test "$enableval" != "yes" ; then
   19629     enable_vt52=no
   19630 	else
   19631 		enable_vt52=yes
   19632 	fi
   19633 else
   19634   enableval=yes
   19635 	enable_vt52=yes
   19636 
   19637 fi;
   19638 echo "$as_me:19638: result: $enable_vt52" >&5
   19639 echo "${ECHO_T}$enable_vt52" >&6
   19640 test "$enable_vt52" = no &&
   19641 cat >>confdefs.h <<\EOF
   19642 #define OPT_VT52_MODE 0
   19643 EOF
   19644 
   19645 echo "$as_me:19645: checking if you want wide-attribute support" >&5
   19646 echo $ECHO_N "checking if you want wide-attribute support... $ECHO_C" >&6
   19647 
   19648 # Check whether --enable-wide-attrs or --disable-wide-attrs was given.
   19649 if test "${enable_wide_attrs+set}" = set; then
   19650   enableval="$enable_wide_attrs"
   19651   test "$enableval" != no && enableval=yes
   19652 	if test "$enableval" != "yes" ; then
   19653     enable_wattr=no
   19654 	else
   19655 		enable_wattr=yes
   19656 	fi
   19657 else
   19658   enableval=yes
   19659 	enable_wattr=yes
   19660 
   19661 fi;
   19662 echo "$as_me:19662: result: $enable_wattr" >&5
   19663 echo "${ECHO_T}$enable_wattr" >&6
   19664 
   19665 echo "$as_me:19665: checking if you want wide-character support" >&5
   19666 echo $ECHO_N "checking if you want wide-character support... $ECHO_C" >&6
   19667 
   19668 # Check whether --enable-wide-chars or --disable-wide-chars was given.
   19669 if test "${enable_wide_chars+set}" = set; then
   19670   enableval="$enable_wide_chars"
   19671   test "$enableval" != no && enableval=yes
   19672 	if test "$enableval" != "yes" ; then
   19673     enable_wchar=no
   19674 	else
   19675 		enable_wchar=yes
   19676 	fi
   19677 else
   19678   enableval=yes
   19679 	enable_wchar=yes
   19680 
   19681 fi;
   19682 echo "$as_me:19682: result: $enable_wchar" >&5
   19683 echo "${ECHO_T}$enable_wchar" >&6
   19684 test "$enable_wattr" = no &&
   19685 cat >>confdefs.h <<\EOF
   19686 #define OPT_WIDE_ATTRS 0
   19687 EOF
   19688 
   19689 echo "$as_me:19689: checking if you want only 16-bit character support" >&5
   19690 echo $ECHO_N "checking if you want only 16-bit character support... $ECHO_C" >&6
   19691 
   19692 # Check whether --enable-16bit-chars or --disable-16bit-chars was given.
   19693 if test "${enable_16bit_chars+set}" = set; then
   19694   enableval="$enable_16bit_chars"
   19695   test "$enableval" != yes && enableval=no
   19696 	if test "$enableval" != "no" ; then
   19697     enable_16bit_chars=yes
   19698 	else
   19699 		enable_16bit_chars=no
   19700 	fi
   19701 else
   19702   enableval=no
   19703 	enable_16bit_chars=no
   19704 
   19705 fi;
   19706 echo "$as_me:19706: result: $enable_16bit_chars" >&5
   19707 echo "${ECHO_T}$enable_16bit_chars" >&6
   19708 
   19709 if test "$enable_16bit_chars" = yes ; then
   19710 
   19711 cat >>confdefs.h <<\EOF
   19712 #define OPT_WIDER_ICHAR 0
   19713 EOF
   19714 
   19715 	enable_wchar=yes
   19716 fi
   19717 
   19718 if test "$enable_wchar" = yes ; then
   19719 
   19720 echo "$as_me:19720: checking if you want to use mini-luit/Latin9 built-in support" >&5
   19721 echo $ECHO_N "checking if you want to use mini-luit/Latin9 built-in support... $ECHO_C" >&6
   19722 
   19723 # Check whether --enable-mini-luit or --disable-mini-luit was given.
   19724 if test "${enable_mini_luit+set}" = set; then
   19725   enableval="$enable_mini_luit"
   19726   test "$enableval" != yes && enableval=no
   19727 	if test "$enableval" != "no" ; then
   19728     enable_mini_luit=yes
   19729 	else
   19730 		enable_mini_luit=no
   19731 	fi
   19732 else
   19733   enableval=no
   19734 	enable_mini_luit=no
   19735 
   19736 fi;
   19737 echo "$as_me:19737: result: $enable_mini_luit" >&5
   19738 echo "${ECHO_T}$enable_mini_luit" >&6
   19739 if test "$enable_mini_luit" = yes ; then
   19740 
   19741 cat >>confdefs.h <<\EOF
   19742 #define OPT_MINI_LUIT 1
   19743 EOF
   19744 
   19745 fi
   19746 
   19747 echo "$as_me:19747: checking if you want to use luit" >&5
   19748 echo $ECHO_N "checking if you want to use luit... $ECHO_C" >&6
   19749 
   19750 # Check whether --enable-luit or --disable-luit was given.
   19751 if test "${enable_luit+set}" = set; then
   19752   enableval="$enable_luit"
   19753   test "$enableval" != no && enableval=yes
   19754 	if test "$enableval" != "yes" ; then
   19755     enable_luit=no
   19756 	else
   19757 		enable_luit=yes
   19758 	fi
   19759 else
   19760   enableval=yes
   19761 	enable_luit=yes
   19762 
   19763 fi;
   19764 echo "$as_me:19764: result: $enable_luit" >&5
   19765 echo "${ECHO_T}$enable_luit" >&6
   19766 if test "$enable_luit" = yes ; then
   19767 
   19768 cat >>confdefs.h <<\EOF
   19769 #define OPT_LUIT_PROG 1
   19770 EOF
   19771 
   19772 test -z "$LUIT" && LUIT=xterm-filter
   19773 for ac_prog in $LUIT xterm-filter bluit luit
   19774 do
   19775   # Extract the first word of "$ac_prog", so it can be a program name with args.
   19776 set dummy $ac_prog; ac_word=$2
   19777 echo "$as_me:19777: checking for $ac_word" >&5
   19778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   19779 if test "${ac_cv_path_LUIT+set}" = set; then
   19780   echo $ECHO_N "(cached) $ECHO_C" >&6
   19781 else
   19782   case $LUIT in
   19783   [\\/]* | ?:[\\/]*)
   19784   ac_cv_path_LUIT="$LUIT" # Let the user override the test with a path.
   19785   ;;
   19786   *)
   19787   ac_save_IFS=$IFS; IFS=$ac_path_separator
   19788 ac_dummy="$PATH"
   19789 for ac_dir in $ac_dummy; do
   19790   IFS=$ac_save_IFS
   19791   test -z "$ac_dir" && ac_dir=.
   19792   if $as_executable_p "$ac_dir/$ac_word"; then
   19793    ac_cv_path_LUIT="$ac_dir/$ac_word"
   19794    echo "$as_me:19794: found $ac_dir/$ac_word" >&5
   19795    break
   19796 fi
   19797 done
   19798 
   19799   ;;
   19800 esac
   19801 fi
   19802 LUIT=$ac_cv_path_LUIT
   19803 
   19804 if test -n "$LUIT"; then
   19805   echo "$as_me:19805: result: $LUIT" >&5
   19806 echo "${ECHO_T}$LUIT" >&6
   19807 else
   19808   echo "$as_me:19808: result: no" >&5
   19809 echo "${ECHO_T}no" >&6
   19810 fi
   19811 
   19812   test -n "$LUIT" && break
   19813 done
   19814 test -n "$LUIT" || LUIT="$LUIT"
   19815 
   19816 cf_path_prog=""
   19817 cf_path_args=""
   19818 IFS="${IFS:- 	}"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
   19819 for cf_temp in $ac_cv_path_LUIT
   19820 do
   19821 	if test -z "$cf_path_prog" ; then
   19822 		if test "$with_full_paths" = yes ; then
   19823 
   19824 if test "x$prefix" != xNONE; then
   19825 	cf_path_syntax="$prefix"
   19826 else
   19827 	cf_path_syntax="$ac_default_prefix"
   19828 fi
   19829 
   19830 case ".$cf_temp" in
   19831 (.\$\(*\)*|.\'*\'*)
   19832 	;;
   19833 (..|./*|.\\*)
   19834 	;;
   19835 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
   19836 	;;
   19837 (.\${*prefix}*|.\${*dir}*)
   19838 	eval cf_temp="$cf_temp"
   19839 	case ".$cf_temp" in
   19840 	(.NONE/*)
   19841 		cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
   19842 		;;
   19843 	esac
   19844 	;;
   19845 (.no|.NONE/*)
   19846 	cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
   19847 	;;
   19848 (*)
   19849 	break
   19850 	;;
   19851 esac
   19852 
   19853 			cf_path_prog="$cf_temp"
   19854 		else
   19855 			cf_path_prog="`basename $cf_temp`"
   19856 		fi
   19857 	elif test -z "$cf_path_args" ; then
   19858 		cf_path_args="$cf_temp"
   19859 	else
   19860 		cf_path_args="$cf_path_args $cf_temp"
   19861 	fi
   19862 done
   19863 IFS="$cf_save_ifs"
   19864 
   19865 if test -n "$cf_path_prog" ; then
   19866 
   19867 echo "${as_me:-configure}:19867: testing defining path for ${cf_path_prog} ..." 1>&5
   19868 
   19869 cat >>confdefs.h <<EOF
   19870 #define LUIT_PATH "$cf_path_prog"
   19871 EOF
   19872 
   19873 	test -n "$cf_path_args" &&
   19874 cat >>confdefs.h <<EOF
   19875 #define LUIT_ARGS "$cf_path_args"
   19876 EOF
   19877 
   19878 fi
   19879 
   19880 fi
   19881 
   19882 cat >>confdefs.h <<\EOF
   19883 #define OPT_WIDE_CHARS 1
   19884 EOF
   19885 
   19886 	EXTRAHDRS="$EXTRAHDRS charclass.h precompose.h wcwidth.h"
   19887 	EXTRASRCS="$EXTRASRCS charclass.c precompose.c wcwidth.c"
   19888 	EXTRAOBJS="$EXTRAOBJS charclass.o precompose.o wcwidth.o"
   19889 fi
   19890 
   19891 echo "$as_me:19891: checking if you want dynamic-abbreviation support" >&5
   19892 echo $ECHO_N "checking if you want dynamic-abbreviation support... $ECHO_C" >&6
   19893 
   19894 # Check whether --enable-dabbrev or --disable-dabbrev was given.
   19895 if test "${enable_dabbrev+set}" = set; then
   19896   enableval="$enable_dabbrev"
   19897   test "$enableval" != yes && enableval=no
   19898 	if test "$enableval" != "no" ; then
   19899     enable_dabbrev=yes
   19900 	else
   19901 		enable_dabbrev=no
   19902 	fi
   19903 else
   19904   enableval=no
   19905 	enable_dabbrev=no
   19906 
   19907 fi;
   19908 echo "$as_me:19908: result: $enable_dabbrev" >&5
   19909 echo "${ECHO_T}$enable_dabbrev" >&6
   19910 if test "$enable_dabbrev" = yes ; then
   19911 
   19912 cat >>confdefs.h <<\EOF
   19913 #define OPT_DABBREV 1
   19914 EOF
   19915 
   19916 fi
   19917 
   19918 echo "$as_me:19918: checking if you want DECterm Locator support" >&5
   19919 echo $ECHO_N "checking if you want DECterm Locator support... $ECHO_C" >&6
   19920 
   19921 # Check whether --enable-dec-locator or --disable-dec-locator was given.
   19922 if test "${enable_dec_locator+set}" = set; then
   19923   enableval="$enable_dec_locator"
   19924   test "$enableval" != yes && enableval=no
   19925 	if test "$enableval" != "no" ; then
   19926     enable_dec_locator=yes
   19927 	else
   19928 		enable_dec_locator=no
   19929 	fi
   19930 else
   19931   enableval=no
   19932 	enable_dec_locator=no
   19933 
   19934 fi;
   19935 echo "$as_me:19935: result: $enable_dec_locator" >&5
   19936 echo "${ECHO_T}$enable_dec_locator" >&6
   19937 if test "$enable_dec_locator" = yes ; then
   19938 
   19939 cat >>confdefs.h <<\EOF
   19940 #define OPT_DEC_LOCATOR 1
   19941 EOF
   19942 
   19943 fi
   19944 
   19945 echo "$as_me:19945: checking if you want XHTML and SVG screen dump support" >&5
   19946 echo $ECHO_N "checking if you want XHTML and SVG screen dump support... $ECHO_C" >&6
   19947 
   19948 # Check whether --enable-screen-dumps or --disable-screen-dumps was given.
   19949 if test "${enable_screen_dumps+set}" = set; then
   19950   enableval="$enable_screen_dumps"
   19951   test "$enableval" != yes && enableval=no
   19952 	if test "$enableval" != "no" ; then
   19953     enable_screen_dumps=yes
   19954 	else
   19955 		enable_screen_dumps=no
   19956 	fi
   19957 else
   19958   enableval=no
   19959 	enable_screen_dumps=no
   19960 
   19961 fi;
   19962 echo "$as_me:19962: result: $enable_screen_dumps" >&5
   19963 echo "${ECHO_T}$enable_screen_dumps" >&6
   19964 if test "$enable_screen_dumps" = yes ; then
   19965 
   19966 cat >>confdefs.h <<\EOF
   19967 #define OPT_SCREEN_DUMPS 1
   19968 EOF
   19969 
   19970 	EXTRASRCS="$EXTRASRCS html.c svg.c"
   19971 	EXTRAOBJS="$EXTRAOBJS html.o svg.o"
   19972 fi
   19973 
   19974 echo "$as_me:19974: checking if you want ReGIS graphics support" >&5
   19975 echo $ECHO_N "checking if you want ReGIS graphics support... $ECHO_C" >&6
   19976 
   19977 # Check whether --enable-regis-graphics or --disable-regis-graphics was given.
   19978 if test "${enable_regis_graphics+set}" = set; then
   19979   enableval="$enable_regis_graphics"
   19980   test "$enableval" != yes && enableval=no
   19981 	if test "$enableval" != "no" ; then
   19982     enable_regis_graphics=yes
   19983 	else
   19984 		enable_regis_graphics=no
   19985 	fi
   19986 else
   19987   enableval=no
   19988 	enable_regis_graphics=no
   19989 
   19990 fi;
   19991 echo "$as_me:19991: result: $enable_regis_graphics" >&5
   19992 echo "${ECHO_T}$enable_regis_graphics" >&6
   19993 if test "$enable_regis_graphics" = yes ; then
   19994 
   19995 cat >>confdefs.h <<\EOF
   19996 #define OPT_REGIS_GRAPHICS 1
   19997 EOF
   19998 
   19999 	EXTRAHDRS="$EXTRAHDRS graphics_regis.h"
   20000 	EXTRASRCS="$EXTRASRCS graphics_regis.c"
   20001 	EXTRAOBJS="$EXTRAOBJS graphics_regis.o"
   20002 
   20003 echo "$as_me:20003: checking if -lm needed for math functions" >&5
   20004 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
   20005 if test "${cf_cv_need_libm+set}" = set; then
   20006   echo $ECHO_N "(cached) $ECHO_C" >&6
   20007 else
   20008 
   20009 	cat >conftest.$ac_ext <<_ACEOF
   20010 #line 20010 "configure"
   20011 #include "confdefs.h"
   20012 
   20013 	#include <stdio.h>
   20014 	#include <stdlib.h>
   20015 	#include <math.h>
   20016 
   20017 int
   20018 main (void)
   20019 {
   20020 double x = rand(); printf("result = %g\n", sin(x))
   20021   ;
   20022   return 0;
   20023 }
   20024 _ACEOF
   20025 rm -f conftest.$ac_objext conftest$ac_exeext
   20026 if { (eval echo "$as_me:20026: \"$ac_link\"") >&5
   20027   (eval $ac_link) 2>&5
   20028   ac_status=$?
   20029   echo "$as_me:20029: \$? = $ac_status" >&5
   20030   (exit $ac_status); } &&
   20031          { ac_try='test -s conftest$ac_exeext'
   20032   { (eval echo "$as_me:20032: \"$ac_try\"") >&5
   20033   (eval $ac_try) 2>&5
   20034   ac_status=$?
   20035   echo "$as_me:20035: \$? = $ac_status" >&5
   20036   (exit $ac_status); }; }; then
   20037   cf_cv_need_libm=no
   20038 else
   20039   echo "$as_me: failed program was:" >&5
   20040 cat conftest.$ac_ext >&5
   20041 cf_cv_need_libm=yes
   20042 fi
   20043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   20044 fi
   20045 echo "$as_me:20045: result: $cf_cv_need_libm" >&5
   20046 echo "${ECHO_T}$cf_cv_need_libm" >&6
   20047 if test "$cf_cv_need_libm" = yes
   20048 then
   20049 
   20050 cf_add_libs="-lm"
   20051 # Filter out duplicates - this happens with badly-designed ".pc" files...
   20052 for cf_add_1lib in $LIBS
   20053 do
   20054 	for cf_add_2lib in $cf_add_libs
   20055 	do
   20056 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   20057 		then
   20058 			cf_add_1lib=
   20059 			break
   20060 		fi
   20061 	done
   20062 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   20063 done
   20064 LIBS="$cf_add_libs"
   20065 
   20066 fi
   20067 
   20068 fi
   20069 
   20070 echo "$as_me:20070: checking if you want sixel graphics support" >&5
   20071 echo $ECHO_N "checking if you want sixel graphics support... $ECHO_C" >&6
   20072 
   20073 # Check whether --enable-sixel-graphics or --disable-sixel-graphics was given.
   20074 if test "${enable_sixel_graphics+set}" = set; then
   20075   enableval="$enable_sixel_graphics"
   20076   test "$enableval" != yes && enableval=no
   20077 	if test "$enableval" != "no" ; then
   20078     enable_sixel_graphics=yes
   20079 	else
   20080 		enable_sixel_graphics=no
   20081 	fi
   20082 else
   20083   enableval=no
   20084 	enable_sixel_graphics=no
   20085 
   20086 fi;
   20087 echo "$as_me:20087: result: $enable_sixel_graphics" >&5
   20088 echo "${ECHO_T}$enable_sixel_graphics" >&6
   20089 if test "$enable_sixel_graphics" = yes ; then
   20090 
   20091 cat >>confdefs.h <<\EOF
   20092 #define OPT_SIXEL_GRAPHICS 1
   20093 EOF
   20094 
   20095 	EXTRAHDRS="$EXTRAHDRS graphics_sixel.h"
   20096 	EXTRASRCS="$EXTRASRCS graphics_sixel.c"
   20097 	EXTRAOBJS="$EXTRAOBJS graphics_sixel.o"
   20098 fi
   20099 
   20100 if test "$enable_regis_graphics" = yes || test "$enable_sixel_graphics" = yes ; then
   20101 
   20102 cat >>confdefs.h <<\EOF
   20103 #define OPT_GRAPHICS 1
   20104 EOF
   20105 
   20106 	EXTRAHDRS="$EXTRAHDRS graphics.h"
   20107 	EXTRASRCS="$EXTRASRCS graphics.c"
   20108 	EXTRAOBJS="$EXTRAOBJS graphics.o"
   20109 fi
   20110 
   20111 echo "$as_me:20111: checking if you want VT420 rectangle support" >&5
   20112 echo $ECHO_N "checking if you want VT420 rectangle support... $ECHO_C" >&6
   20113 
   20114 # Check whether --enable-rectangles or --disable-rectangles was given.
   20115 if test "${enable_rectangles+set}" = set; then
   20116   enableval="$enable_rectangles"
   20117   test "$enableval" != no && enableval=yes
   20118 	if test "$enableval" != "yes" ; then
   20119     enable_rectangles=no
   20120 	else
   20121 		enable_rectangles=yes
   20122 	fi
   20123 else
   20124   enableval=yes
   20125 	enable_rectangles=yes
   20126 
   20127 fi;
   20128 echo "$as_me:20128: result: $enable_rectangles" >&5
   20129 echo "${ECHO_T}$enable_rectangles" >&6
   20130 if test "$enable_rectangles" = yes ; then
   20131 
   20132 cat >>confdefs.h <<\EOF
   20133 #define OPT_DEC_RECTOPS 1
   20134 EOF
   20135 
   20136 fi
   20137 
   20138 echo "$as_me:20138: checking if you want -ziconbeep option" >&5
   20139 echo $ECHO_N "checking if you want -ziconbeep option... $ECHO_C" >&6
   20140 
   20141 # Check whether --enable-ziconbeep or --disable-ziconbeep was given.
   20142 if test "${enable_ziconbeep+set}" = set; then
   20143   enableval="$enable_ziconbeep"
   20144   test "$enableval" != no && enableval=yes
   20145 	if test "$enableval" != "yes" ; then
   20146     enable_ziconbeep=no
   20147 	else
   20148 		enable_ziconbeep=yes
   20149 	fi
   20150 else
   20151   enableval=yes
   20152 	enable_ziconbeep=yes
   20153 
   20154 fi;
   20155 echo "$as_me:20155: result: $enable_ziconbeep" >&5
   20156 echo "${ECHO_T}$enable_ziconbeep" >&6
   20157 test "$enable_ziconbeep" = no &&
   20158 cat >>confdefs.h <<\EOF
   20159 #define OPT_ZICONBEEP 0
   20160 EOF
   20161 
   20162 ###############################################################################
   20163 
   20164 echo "$as_me:20164: checking if you want debugging traces" >&5
   20165 echo $ECHO_N "checking if you want debugging traces... $ECHO_C" >&6
   20166 
   20167 # Check whether --enable-trace or --disable-trace was given.
   20168 if test "${enable_trace+set}" = set; then
   20169   enableval="$enable_trace"
   20170   test "$enableval" != yes && enableval=no
   20171 	if test "$enableval" != "no" ; then
   20172     enable_trace=yes
   20173 	else
   20174 		enable_trace=no
   20175 	fi
   20176 else
   20177   enableval=no
   20178 	enable_trace=no
   20179 
   20180 fi;
   20181 echo "$as_me:20181: result: $enable_trace" >&5
   20182 echo "${ECHO_T}$enable_trace" >&6
   20183 if test "$enable_trace" = yes ; then
   20184 
   20185 cat >>confdefs.h <<\EOF
   20186 #define OPT_TRACE 1
   20187 EOF
   20188 
   20189 	EXTRASRCS="$EXTRASRCS trace.c"
   20190 	EXTRAOBJS="$EXTRAOBJS trace.o"
   20191 fi
   20192 
   20193 echo "$as_me:20193: checking if you want to use dmalloc for testing" >&5
   20194 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
   20195 
   20196 # Check whether --with-dmalloc or --without-dmalloc was given.
   20197 if test "${with_dmalloc+set}" = set; then
   20198   withval="$with_dmalloc"
   20199 
   20200 cat >>confdefs.h <<EOF
   20201 #define USE_DMALLOC 1
   20202 EOF
   20203 
   20204 	: ${with_cflags:=-g}
   20205 	: ${with_no_leaks:=yes}
   20206 	 with_dmalloc=yes
   20207 else
   20208   with_dmalloc=
   20209 fi;
   20210 echo "$as_me:20210: result: ${with_dmalloc:-no}" >&5
   20211 echo "${ECHO_T}${with_dmalloc:-no}" >&6
   20212 
   20213 case .$with_cflags in
   20214 (.*-g*)
   20215 	case .$CFLAGS in
   20216 	(.*-g*)
   20217 		;;
   20218 	(*)
   20219 
   20220 cf_fix_cppflags=no
   20221 cf_new_cflags=
   20222 cf_new_cppflags=
   20223 cf_new_extra_cppflags=
   20224 
   20225 for cf_add_cflags in -g
   20226 do
   20227 case $cf_fix_cppflags in
   20228 (no)
   20229 	case $cf_add_cflags in
   20230 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   20231 		case $cf_add_cflags in
   20232 		(-D*)
   20233 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   20234 
   20235 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   20236 				&& test -z "${cf_tst_cflags}" \
   20237 				&& cf_fix_cppflags=yes
   20238 
   20239 			if test $cf_fix_cppflags = yes ; then
   20240 
   20241 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   20242 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   20243 
   20244 				continue
   20245 			elif test "${cf_tst_cflags}" = "\"'" ; then
   20246 
   20247 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   20248 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   20249 
   20250 				continue
   20251 			fi
   20252 			;;
   20253 		esac
   20254 		case "$CPPFLAGS" in
   20255 		(*$cf_add_cflags)
   20256 			;;
   20257 		(*)
   20258 			case $cf_add_cflags in
   20259 			(-D*)
   20260 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   20261 
   20262 CPPFLAGS=`echo "$CPPFLAGS" | \
   20263 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   20264 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   20265 
   20266 				;;
   20267 			esac
   20268 
   20269 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   20270 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   20271 
   20272 			;;
   20273 		esac
   20274 		;;
   20275 	(*)
   20276 
   20277 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   20278 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   20279 
   20280 		;;
   20281 	esac
   20282 	;;
   20283 (yes)
   20284 
   20285 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   20286 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   20287 
   20288 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   20289 
   20290 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   20291 		&& test -z "${cf_tst_cflags}" \
   20292 		&& cf_fix_cppflags=no
   20293 	;;
   20294 esac
   20295 done
   20296 
   20297 if test -n "$cf_new_cflags" ; then
   20298 
   20299 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   20300 	CFLAGS="${CFLAGS}$cf_new_cflags"
   20301 
   20302 fi
   20303 
   20304 if test -n "$cf_new_cppflags" ; then
   20305 
   20306 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   20307 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   20308 
   20309 fi
   20310 
   20311 if test -n "$cf_new_extra_cppflags" ; then
   20312 
   20313 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   20314 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   20315 
   20316 fi
   20317 
   20318 		;;
   20319 	esac
   20320 	;;
   20321 esac
   20322 
   20323 if test "$with_dmalloc" = yes ; then
   20324 	echo "$as_me:20324: checking for dmalloc.h" >&5
   20325 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
   20326 if test "${ac_cv_header_dmalloc_h+set}" = set; then
   20327   echo $ECHO_N "(cached) $ECHO_C" >&6
   20328 else
   20329   cat >conftest.$ac_ext <<_ACEOF
   20330 #line 20330 "configure"
   20331 #include "confdefs.h"
   20332 #include <dmalloc.h>
   20333 _ACEOF
   20334 if { (eval echo "$as_me:20334: \"$ac_cpp conftest.$ac_ext\"") >&5
   20335   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   20336   ac_status=$?
   20337   egrep -v '^ *\+' conftest.er1 >conftest.err
   20338   rm -f conftest.er1
   20339   cat conftest.err >&5
   20340   echo "$as_me:20340: \$? = $ac_status" >&5
   20341   (exit $ac_status); } >/dev/null; then
   20342   if test -s conftest.err; then
   20343     ac_cpp_err=$ac_c_preproc_warn_flag
   20344   else
   20345     ac_cpp_err=
   20346   fi
   20347 else
   20348   ac_cpp_err=yes
   20349 fi
   20350 if test -z "$ac_cpp_err"; then
   20351   ac_cv_header_dmalloc_h=yes
   20352 else
   20353   echo "$as_me: failed program was:" >&5
   20354   cat conftest.$ac_ext >&5
   20355   ac_cv_header_dmalloc_h=no
   20356 fi
   20357 rm -f conftest.err conftest.$ac_ext
   20358 fi
   20359 echo "$as_me:20359: result: $ac_cv_header_dmalloc_h" >&5
   20360 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
   20361 if test $ac_cv_header_dmalloc_h = yes; then
   20362 
   20363 echo "$as_me:20363: checking for dmalloc_debug in -ldmalloc" >&5
   20364 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
   20365 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
   20366   echo $ECHO_N "(cached) $ECHO_C" >&6
   20367 else
   20368   ac_check_lib_save_LIBS=$LIBS
   20369 LIBS="-ldmalloc  $LIBS"
   20370 cat >conftest.$ac_ext <<_ACEOF
   20371 #line 20371 "configure"
   20372 #include "confdefs.h"
   20373 
   20374 /* Override any gcc2 internal prototype to avoid an error.  */
   20375 #ifdef __cplusplus
   20376 extern "C"
   20377 #endif
   20378 /* We use char because int might match the return type of a gcc2
   20379    builtin and then its argument prototype would still apply.  */
   20380 char dmalloc_debug ();
   20381 int
   20382 main (void)
   20383 {
   20384 dmalloc_debug ();
   20385   ;
   20386   return 0;
   20387 }
   20388 _ACEOF
   20389 rm -f conftest.$ac_objext conftest$ac_exeext
   20390 if { (eval echo "$as_me:20390: \"$ac_link\"") >&5
   20391   (eval $ac_link) 2>&5
   20392   ac_status=$?
   20393   echo "$as_me:20393: \$? = $ac_status" >&5
   20394   (exit $ac_status); } &&
   20395          { ac_try='test -s conftest$ac_exeext'
   20396   { (eval echo "$as_me:20396: \"$ac_try\"") >&5
   20397   (eval $ac_try) 2>&5
   20398   ac_status=$?
   20399   echo "$as_me:20399: \$? = $ac_status" >&5
   20400   (exit $ac_status); }; }; then
   20401   ac_cv_lib_dmalloc_dmalloc_debug=yes
   20402 else
   20403   echo "$as_me: failed program was:" >&5
   20404 cat conftest.$ac_ext >&5
   20405 ac_cv_lib_dmalloc_dmalloc_debug=no
   20406 fi
   20407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   20408 LIBS=$ac_check_lib_save_LIBS
   20409 fi
   20410 echo "$as_me:20410: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
   20411 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
   20412 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
   20413   cat >>confdefs.h <<EOF
   20414 #define HAVE_LIBDMALLOC 1
   20415 EOF
   20416 
   20417   LIBS="-ldmalloc $LIBS"
   20418 
   20419 fi
   20420 
   20421 fi
   20422 
   20423 fi
   20424 
   20425 echo "$as_me:20425: checking if you want to use dbmalloc for testing" >&5
   20426 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
   20427 
   20428 # Check whether --with-dbmalloc or --without-dbmalloc was given.
   20429 if test "${with_dbmalloc+set}" = set; then
   20430   withval="$with_dbmalloc"
   20431 
   20432 cat >>confdefs.h <<EOF
   20433 #define USE_DBMALLOC 1
   20434 EOF
   20435 
   20436 	: ${with_cflags:=-g}
   20437 	: ${with_no_leaks:=yes}
   20438 	 with_dbmalloc=yes
   20439 else
   20440   with_dbmalloc=
   20441 fi;
   20442 echo "$as_me:20442: result: ${with_dbmalloc:-no}" >&5
   20443 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
   20444 
   20445 case .$with_cflags in
   20446 (.*-g*)
   20447 	case .$CFLAGS in
   20448 	(.*-g*)
   20449 		;;
   20450 	(*)
   20451 
   20452 cf_fix_cppflags=no
   20453 cf_new_cflags=
   20454 cf_new_cppflags=
   20455 cf_new_extra_cppflags=
   20456 
   20457 for cf_add_cflags in -g
   20458 do
   20459 case $cf_fix_cppflags in
   20460 (no)
   20461 	case $cf_add_cflags in
   20462 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   20463 		case $cf_add_cflags in
   20464 		(-D*)
   20465 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   20466 
   20467 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   20468 				&& test -z "${cf_tst_cflags}" \
   20469 				&& cf_fix_cppflags=yes
   20470 
   20471 			if test $cf_fix_cppflags = yes ; then
   20472 
   20473 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   20474 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   20475 
   20476 				continue
   20477 			elif test "${cf_tst_cflags}" = "\"'" ; then
   20478 
   20479 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   20480 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   20481 
   20482 				continue
   20483 			fi
   20484 			;;
   20485 		esac
   20486 		case "$CPPFLAGS" in
   20487 		(*$cf_add_cflags)
   20488 			;;
   20489 		(*)
   20490 			case $cf_add_cflags in
   20491 			(-D*)
   20492 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   20493 
   20494 CPPFLAGS=`echo "$CPPFLAGS" | \
   20495 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   20496 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   20497 
   20498 				;;
   20499 			esac
   20500 
   20501 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   20502 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   20503 
   20504 			;;
   20505 		esac
   20506 		;;
   20507 	(*)
   20508 
   20509 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   20510 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   20511 
   20512 		;;
   20513 	esac
   20514 	;;
   20515 (yes)
   20516 
   20517 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   20518 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   20519 
   20520 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   20521 
   20522 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   20523 		&& test -z "${cf_tst_cflags}" \
   20524 		&& cf_fix_cppflags=no
   20525 	;;
   20526 esac
   20527 done
   20528 
   20529 if test -n "$cf_new_cflags" ; then
   20530 
   20531 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   20532 	CFLAGS="${CFLAGS}$cf_new_cflags"
   20533 
   20534 fi
   20535 
   20536 if test -n "$cf_new_cppflags" ; then
   20537 
   20538 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   20539 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   20540 
   20541 fi
   20542 
   20543 if test -n "$cf_new_extra_cppflags" ; then
   20544 
   20545 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   20546 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   20547 
   20548 fi
   20549 
   20550 		;;
   20551 	esac
   20552 	;;
   20553 esac
   20554 
   20555 if test "$with_dbmalloc" = yes ; then
   20556 	echo "$as_me:20556: checking for dbmalloc.h" >&5
   20557 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
   20558 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
   20559   echo $ECHO_N "(cached) $ECHO_C" >&6
   20560 else
   20561   cat >conftest.$ac_ext <<_ACEOF
   20562 #line 20562 "configure"
   20563 #include "confdefs.h"
   20564 #include <dbmalloc.h>
   20565 _ACEOF
   20566 if { (eval echo "$as_me:20566: \"$ac_cpp conftest.$ac_ext\"") >&5
   20567   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   20568   ac_status=$?
   20569   egrep -v '^ *\+' conftest.er1 >conftest.err
   20570   rm -f conftest.er1
   20571   cat conftest.err >&5
   20572   echo "$as_me:20572: \$? = $ac_status" >&5
   20573   (exit $ac_status); } >/dev/null; then
   20574   if test -s conftest.err; then
   20575     ac_cpp_err=$ac_c_preproc_warn_flag
   20576   else
   20577     ac_cpp_err=
   20578   fi
   20579 else
   20580   ac_cpp_err=yes
   20581 fi
   20582 if test -z "$ac_cpp_err"; then
   20583   ac_cv_header_dbmalloc_h=yes
   20584 else
   20585   echo "$as_me: failed program was:" >&5
   20586   cat conftest.$ac_ext >&5
   20587   ac_cv_header_dbmalloc_h=no
   20588 fi
   20589 rm -f conftest.err conftest.$ac_ext
   20590 fi
   20591 echo "$as_me:20591: result: $ac_cv_header_dbmalloc_h" >&5
   20592 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
   20593 if test $ac_cv_header_dbmalloc_h = yes; then
   20594 
   20595 echo "$as_me:20595: checking for debug_malloc in -ldbmalloc" >&5
   20596 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
   20597 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
   20598   echo $ECHO_N "(cached) $ECHO_C" >&6
   20599 else
   20600   ac_check_lib_save_LIBS=$LIBS
   20601 LIBS="-ldbmalloc  $LIBS"
   20602 cat >conftest.$ac_ext <<_ACEOF
   20603 #line 20603 "configure"
   20604 #include "confdefs.h"
   20605 
   20606 /* Override any gcc2 internal prototype to avoid an error.  */
   20607 #ifdef __cplusplus
   20608 extern "C"
   20609 #endif
   20610 /* We use char because int might match the return type of a gcc2
   20611    builtin and then its argument prototype would still apply.  */
   20612 char debug_malloc ();
   20613 int
   20614 main (void)
   20615 {
   20616 debug_malloc ();
   20617   ;
   20618   return 0;
   20619 }
   20620 _ACEOF
   20621 rm -f conftest.$ac_objext conftest$ac_exeext
   20622 if { (eval echo "$as_me:20622: \"$ac_link\"") >&5
   20623   (eval $ac_link) 2>&5
   20624   ac_status=$?
   20625   echo "$as_me:20625: \$? = $ac_status" >&5
   20626   (exit $ac_status); } &&
   20627          { ac_try='test -s conftest$ac_exeext'
   20628   { (eval echo "$as_me:20628: \"$ac_try\"") >&5
   20629   (eval $ac_try) 2>&5
   20630   ac_status=$?
   20631   echo "$as_me:20631: \$? = $ac_status" >&5
   20632   (exit $ac_status); }; }; then
   20633   ac_cv_lib_dbmalloc_debug_malloc=yes
   20634 else
   20635   echo "$as_me: failed program was:" >&5
   20636 cat conftest.$ac_ext >&5
   20637 ac_cv_lib_dbmalloc_debug_malloc=no
   20638 fi
   20639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   20640 LIBS=$ac_check_lib_save_LIBS
   20641 fi
   20642 echo "$as_me:20642: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
   20643 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
   20644 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
   20645   cat >>confdefs.h <<EOF
   20646 #define HAVE_LIBDBMALLOC 1
   20647 EOF
   20648 
   20649   LIBS="-ldbmalloc $LIBS"
   20650 
   20651 fi
   20652 
   20653 fi
   20654 
   20655 fi
   20656 
   20657 echo "$as_me:20657: checking if you want to use valgrind for testing" >&5
   20658 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
   20659 
   20660 # Check whether --with-valgrind or --without-valgrind was given.
   20661 if test "${with_valgrind+set}" = set; then
   20662   withval="$with_valgrind"
   20663 
   20664 cat >>confdefs.h <<EOF
   20665 #define USE_VALGRIND 1
   20666 EOF
   20667 
   20668 	: ${with_cflags:=-g}
   20669 	: ${with_no_leaks:=yes}
   20670 	 with_valgrind=yes
   20671 else
   20672   with_valgrind=
   20673 fi;
   20674 echo "$as_me:20674: result: ${with_valgrind:-no}" >&5
   20675 echo "${ECHO_T}${with_valgrind:-no}" >&6
   20676 
   20677 case .$with_cflags in
   20678 (.*-g*)
   20679 	case .$CFLAGS in
   20680 	(.*-g*)
   20681 		;;
   20682 	(*)
   20683 
   20684 cf_fix_cppflags=no
   20685 cf_new_cflags=
   20686 cf_new_cppflags=
   20687 cf_new_extra_cppflags=
   20688 
   20689 for cf_add_cflags in -g
   20690 do
   20691 case $cf_fix_cppflags in
   20692 (no)
   20693 	case $cf_add_cflags in
   20694 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   20695 		case $cf_add_cflags in
   20696 		(-D*)
   20697 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   20698 
   20699 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   20700 				&& test -z "${cf_tst_cflags}" \
   20701 				&& cf_fix_cppflags=yes
   20702 
   20703 			if test $cf_fix_cppflags = yes ; then
   20704 
   20705 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   20706 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   20707 
   20708 				continue
   20709 			elif test "${cf_tst_cflags}" = "\"'" ; then
   20710 
   20711 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   20712 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   20713 
   20714 				continue
   20715 			fi
   20716 			;;
   20717 		esac
   20718 		case "$CPPFLAGS" in
   20719 		(*$cf_add_cflags)
   20720 			;;
   20721 		(*)
   20722 			case $cf_add_cflags in
   20723 			(-D*)
   20724 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   20725 
   20726 CPPFLAGS=`echo "$CPPFLAGS" | \
   20727 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   20728 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   20729 
   20730 				;;
   20731 			esac
   20732 
   20733 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   20734 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   20735 
   20736 			;;
   20737 		esac
   20738 		;;
   20739 	(*)
   20740 
   20741 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   20742 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   20743 
   20744 		;;
   20745 	esac
   20746 	;;
   20747 (yes)
   20748 
   20749 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   20750 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   20751 
   20752 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   20753 
   20754 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   20755 		&& test -z "${cf_tst_cflags}" \
   20756 		&& cf_fix_cppflags=no
   20757 	;;
   20758 esac
   20759 done
   20760 
   20761 if test -n "$cf_new_cflags" ; then
   20762 
   20763 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   20764 	CFLAGS="${CFLAGS}$cf_new_cflags"
   20765 
   20766 fi
   20767 
   20768 if test -n "$cf_new_cppflags" ; then
   20769 
   20770 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   20771 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   20772 
   20773 fi
   20774 
   20775 if test -n "$cf_new_extra_cppflags" ; then
   20776 
   20777 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   20778 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   20779 
   20780 fi
   20781 
   20782 		;;
   20783 	esac
   20784 	;;
   20785 esac
   20786 
   20787 echo "$as_me:20787: checking if you want to perform memory-leak testing" >&5
   20788 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
   20789 
   20790 # Check whether --enable-leaks or --disable-leaks was given.
   20791 if test "${enable_leaks+set}" = set; then
   20792   enableval="$enable_leaks"
   20793   if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
   20794 else
   20795   : ${with_no_leaks:=no}
   20796 fi;
   20797 echo "$as_me:20797: result: $with_no_leaks" >&5
   20798 echo "${ECHO_T}$with_no_leaks" >&6
   20799 
   20800 if test "$with_no_leaks" = yes ; then
   20801 
   20802 cat >>confdefs.h <<\EOF
   20803 #define NO_LEAKS 1
   20804 EOF
   20805 
   20806 cat >>confdefs.h <<\EOF
   20807 #define YY_NO_LEAKS 1
   20808 EOF
   20809 
   20810 fi
   20811 
   20812 echo "$as_me:20812: checking if you want to see long compiling messages" >&5
   20813 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
   20814 
   20815 # Check whether --enable-echo or --disable-echo was given.
   20816 if test "${enable_echo+set}" = set; then
   20817   enableval="$enable_echo"
   20818   test "$enableval" != no && enableval=yes
   20819 	if test "$enableval" != "yes" ; then
   20820 
   20821 	ECHO_LT='--silent'
   20822 	ECHO_LD='@echo linking $@;'
   20823 	RULE_CC='@echo compiling $<'
   20824 	SHOW_CC='@echo compiling $@'
   20825 	ECHO_CC='@'
   20826 
   20827 	else
   20828 
   20829 	ECHO_LT=''
   20830 	ECHO_LD=''
   20831 	RULE_CC=''
   20832 	SHOW_CC=''
   20833 	ECHO_CC=''
   20834 
   20835 	fi
   20836 else
   20837   enableval=yes
   20838 
   20839 	ECHO_LT=''
   20840 	ECHO_LD=''
   20841 	RULE_CC=''
   20842 	SHOW_CC=''
   20843 	ECHO_CC=''
   20844 
   20845 fi;
   20846 echo "$as_me:20846: result: $enableval" >&5
   20847 echo "${ECHO_T}$enableval" >&6
   20848 
   20849 echo "$as_me:20849: checking if you want magic cookie emulation" >&5
   20850 echo $ECHO_N "checking if you want magic cookie emulation... $ECHO_C" >&6
   20851 
   20852 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
   20853 if test "${enable_xmc_glitch+set}" = set; then
   20854   enableval="$enable_xmc_glitch"
   20855   test "$enableval" != yes && enableval=no
   20856 	if test "$enableval" != "no" ; then
   20857     enable_xmc=yes
   20858 	else
   20859 		enable_xmc=no
   20860 	fi
   20861 else
   20862   enableval=no
   20863 	enable_xmc=no
   20864 
   20865 fi;
   20866 echo "$as_me:20866: result: $enable_xmc" >&5
   20867 echo "${ECHO_T}$enable_xmc" >&6
   20868 if test "$enable_xmc" = yes ; then
   20869 
   20870 cat >>confdefs.h <<\EOF
   20871 #define OPT_XMC_GLITCH 1
   20872 EOF
   20873 
   20874 	EXTRASRCS="$EXTRASRCS testxmc.c"
   20875 	EXTRAOBJS="$EXTRAOBJS testxmc.o"
   20876 fi
   20877 
   20878 for ac_func in tigetstr
   20879 do
   20880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   20881 echo "$as_me:20881: checking for $ac_func" >&5
   20882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   20883 if eval "test \"\${$as_ac_var+set}\" = set"; then
   20884   echo $ECHO_N "(cached) $ECHO_C" >&6
   20885 else
   20886   cat >conftest.$ac_ext <<_ACEOF
   20887 #line 20887 "configure"
   20888 #include "confdefs.h"
   20889 /* System header to define __stub macros and hopefully few prototypes,
   20890     which can conflict with char $ac_func (); below.  */
   20891 #include <assert.h>
   20892 /* Override any gcc2 internal prototype to avoid an error.  */
   20893 #ifdef __cplusplus
   20894 extern "C"
   20895 #endif
   20896 /* We use char because int might match the return type of a gcc2
   20897    builtin and then its argument prototype would still apply.  */
   20898 char $ac_func ();
   20899 char (*f) ();
   20900 
   20901 int
   20902 main (void)
   20903 {
   20904 /* The GNU C library defines this for functions which it implements
   20905     to always fail with ENOSYS.  Some functions are actually named
   20906     something starting with __ and the normal name is an alias.  */
   20907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   20908 choke me
   20909 #else
   20910 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
   20911 #endif
   20912 
   20913   ;
   20914   return 0;
   20915 }
   20916 _ACEOF
   20917 rm -f conftest.$ac_objext conftest$ac_exeext
   20918 if { (eval echo "$as_me:20918: \"$ac_link\"") >&5
   20919   (eval $ac_link) 2>&5
   20920   ac_status=$?
   20921   echo "$as_me:20921: \$? = $ac_status" >&5
   20922   (exit $ac_status); } &&
   20923          { ac_try='test -s conftest$ac_exeext'
   20924   { (eval echo "$as_me:20924: \"$ac_try\"") >&5
   20925   (eval $ac_try) 2>&5
   20926   ac_status=$?
   20927   echo "$as_me:20927: \$? = $ac_status" >&5
   20928   (exit $ac_status); }; }; then
   20929   eval "$as_ac_var=yes"
   20930 else
   20931   echo "$as_me: failed program was:" >&5
   20932 cat conftest.$ac_ext >&5
   20933 eval "$as_ac_var=no"
   20934 fi
   20935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   20936 fi
   20937 echo "$as_me:20937: result: `eval echo '${'$as_ac_var'}'`" >&5
   20938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   20939 if test `eval echo '${'$as_ac_var'}'` = yes; then
   20940   cat >>confdefs.h <<EOF
   20941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   20942 EOF
   20943 
   20944 fi
   20945 done
   20946 
   20947 if test -n "$cf_cv_lib_part_tgetent"; then
   20948 
   20949 for ac_func in use_extended_names
   20950 do
   20951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   20952 echo "$as_me:20952: checking for $ac_func" >&5
   20953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   20954 if eval "test \"\${$as_ac_var+set}\" = set"; then
   20955   echo $ECHO_N "(cached) $ECHO_C" >&6
   20956 else
   20957   cat >conftest.$ac_ext <<_ACEOF
   20958 #line 20958 "configure"
   20959 #include "confdefs.h"
   20960 /* System header to define __stub macros and hopefully few prototypes,
   20961     which can conflict with char $ac_func (); below.  */
   20962 #include <assert.h>
   20963 /* Override any gcc2 internal prototype to avoid an error.  */
   20964 #ifdef __cplusplus
   20965 extern "C"
   20966 #endif
   20967 /* We use char because int might match the return type of a gcc2
   20968    builtin and then its argument prototype would still apply.  */
   20969 char $ac_func ();
   20970 char (*f) ();
   20971 
   20972 int
   20973 main (void)
   20974 {
   20975 /* The GNU C library defines this for functions which it implements
   20976     to always fail with ENOSYS.  Some functions are actually named
   20977     something starting with __ and the normal name is an alias.  */
   20978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   20979 choke me
   20980 #else
   20981 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
   20982 #endif
   20983 
   20984   ;
   20985   return 0;
   20986 }
   20987 _ACEOF
   20988 rm -f conftest.$ac_objext conftest$ac_exeext
   20989 if { (eval echo "$as_me:20989: \"$ac_link\"") >&5
   20990   (eval $ac_link) 2>&5
   20991   ac_status=$?
   20992   echo "$as_me:20992: \$? = $ac_status" >&5
   20993   (exit $ac_status); } &&
   20994          { ac_try='test -s conftest$ac_exeext'
   20995   { (eval echo "$as_me:20995: \"$ac_try\"") >&5
   20996   (eval $ac_try) 2>&5
   20997   ac_status=$?
   20998   echo "$as_me:20998: \$? = $ac_status" >&5
   20999   (exit $ac_status); }; }; then
   21000   eval "$as_ac_var=yes"
   21001 else
   21002   echo "$as_me: failed program was:" >&5
   21003 cat conftest.$ac_ext >&5
   21004 eval "$as_ac_var=no"
   21005 fi
   21006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   21007 fi
   21008 echo "$as_me:21008: result: `eval echo '${'$as_ac_var'}'`" >&5
   21009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   21010 if test `eval echo '${'$as_ac_var'}'` = yes; then
   21011   cat >>confdefs.h <<EOF
   21012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   21013 EOF
   21014 
   21015 fi
   21016 done
   21017 
   21018 fi
   21019 
   21020 if test -n "$GCC" ; then
   21021 echo "$as_me:21021: checking if you want to turn on gcc warnings" >&5
   21022 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
   21023 
   21024 # Check whether --enable-warnings or --disable-warnings was given.
   21025 if test "${enable_warnings+set}" = set; then
   21026   enableval="$enable_warnings"
   21027   test "$enableval" != yes && enableval=no
   21028 	if test "$enableval" != "no" ; then
   21029     with_warnings=yes
   21030 	else
   21031 		with_warnings=no
   21032 	fi
   21033 else
   21034   enableval=no
   21035 	with_warnings=no
   21036 
   21037 fi;
   21038 echo "$as_me:21038: result: $with_warnings" >&5
   21039 echo "${ECHO_T}$with_warnings" >&6
   21040 if test "$with_warnings" = yes
   21041 then
   21042 
   21043 if test "$GCC" = yes
   21044 then
   21045 cat > conftest.i <<EOF
   21046 #ifndef GCC_PRINTF
   21047 #define GCC_PRINTF 0
   21048 #endif
   21049 #ifndef GCC_SCANF
   21050 #define GCC_SCANF 0
   21051 #endif
   21052 #ifndef GCC_NORETURN
   21053 #define GCC_NORETURN /* nothing */
   21054 #endif
   21055 #ifndef GCC_UNUSED
   21056 #define GCC_UNUSED /* nothing */
   21057 #endif
   21058 EOF
   21059 if test "$GCC" = yes
   21060 then
   21061 	{ echo "$as_me:21061: checking for $CC __attribute__ directives..." >&5
   21062 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
   21063 cat > conftest.$ac_ext <<EOF
   21064 #line 21064 "${as_me:-configure}"
   21065 #include "confdefs.h"
   21066 #include "conftest.h"
   21067 #include "conftest.i"
   21068 #if	GCC_PRINTF
   21069 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
   21070 #else
   21071 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
   21072 #endif
   21073 #if	GCC_SCANF
   21074 #define GCC_SCANFLIKE(fmt,var)  __attribute__((format(scanf,fmt,var)))
   21075 #else
   21076 #define GCC_SCANFLIKE(fmt,var)  /*nothing*/
   21077 #endif
   21078 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
   21079 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
   21080 extern void foo(void) GCC_NORETURN;
   21081 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
   21082 EOF
   21083 	cf_printf_attribute=no
   21084 	cf_scanf_attribute=no
   21085 	for cf_attribute in scanf printf unused noreturn
   21086 	do
   21087 
   21088 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   21089 
   21090 		cf_directive="__attribute__(($cf_attribute))"
   21091 		echo "checking for $CC $cf_directive" 1>&5
   21092 
   21093 		case $cf_attribute in
   21094 		(printf)
   21095 			cf_printf_attribute=yes
   21096 			cat >conftest.h <<EOF
   21097 #define GCC_$cf_ATTRIBUTE 1
   21098 EOF
   21099 			;;
   21100 		(scanf)
   21101 			cf_scanf_attribute=yes
   21102 			cat >conftest.h <<EOF
   21103 #define GCC_$cf_ATTRIBUTE 1
   21104 EOF
   21105 			;;
   21106 		(*)
   21107 			cat >conftest.h <<EOF
   21108 #define GCC_$cf_ATTRIBUTE $cf_directive
   21109 EOF
   21110 			;;
   21111 		esac
   21112 
   21113 		if { (eval echo "$as_me:21113: \"$ac_compile\"") >&5
   21114   (eval $ac_compile) 2>&5
   21115   ac_status=$?
   21116   echo "$as_me:21116: \$? = $ac_status" >&5
   21117   (exit $ac_status); }; then
   21118 			test -n "$verbose" && echo "$as_me:21118: result: ... $cf_attribute" >&5
   21119 echo "${ECHO_T}... $cf_attribute" >&6
   21120 			cat conftest.h >>confdefs.h
   21121 			case $cf_attribute in
   21122 			(noreturn)
   21123 
   21124 cat >>confdefs.h <<EOF
   21125 #define GCC_NORETURN $cf_directive
   21126 EOF
   21127 
   21128 				;;
   21129 			(printf)
   21130 				cf_value='/* nothing */'
   21131 				if test "$cf_printf_attribute" != no ; then
   21132 					cf_value='__attribute__((format(printf,fmt,var)))'
   21133 
   21134 cat >>confdefs.h <<\EOF
   21135 #define GCC_PRINTF 1
   21136 EOF
   21137 
   21138 				fi
   21139 
   21140 cat >>confdefs.h <<EOF
   21141 #define GCC_PRINTFLIKE(fmt,var) $cf_value
   21142 EOF
   21143 
   21144 				;;
   21145 			(scanf)
   21146 				cf_value='/* nothing */'
   21147 				if test "$cf_scanf_attribute" != no ; then
   21148 					cf_value='__attribute__((format(scanf,fmt,var)))'
   21149 
   21150 cat >>confdefs.h <<\EOF
   21151 #define GCC_SCANF 1
   21152 EOF
   21153 
   21154 				fi
   21155 
   21156 cat >>confdefs.h <<EOF
   21157 #define GCC_SCANFLIKE(fmt,var) $cf_value
   21158 EOF
   21159 
   21160 				;;
   21161 			(unused)
   21162 
   21163 cat >>confdefs.h <<EOF
   21164 #define GCC_UNUSED $cf_directive
   21165 EOF
   21166 
   21167 				;;
   21168 			esac
   21169 		fi
   21170 	done
   21171 else
   21172 	fgrep define conftest.i >>confdefs.h
   21173 fi
   21174 rm -rf conftest*
   21175 fi
   21176 
   21177 INTEL_COMPILER=no
   21178 
   21179 if test "$GCC" = yes ; then
   21180 	case $host_os in
   21181 	(linux*|gnu*)
   21182 		echo "$as_me:21182: checking if this is really Intel C compiler" >&5
   21183 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
   21184 		cf_save_CFLAGS="$CFLAGS"
   21185 		CFLAGS="$CFLAGS -no-gcc"
   21186 		cat >conftest.$ac_ext <<_ACEOF
   21187 #line 21187 "configure"
   21188 #include "confdefs.h"
   21189 
   21190 int
   21191 main (void)
   21192 {
   21193 
   21194 #ifdef __INTEL_COMPILER
   21195 #else
   21196 make an error
   21197 #endif
   21198 
   21199   ;
   21200   return 0;
   21201 }
   21202 _ACEOF
   21203 rm -f conftest.$ac_objext
   21204 if { (eval echo "$as_me:21204: \"$ac_compile\"") >&5
   21205   (eval $ac_compile) 2>&5
   21206   ac_status=$?
   21207   echo "$as_me:21207: \$? = $ac_status" >&5
   21208   (exit $ac_status); } &&
   21209          { ac_try='test -s conftest.$ac_objext'
   21210   { (eval echo "$as_me:21210: \"$ac_try\"") >&5
   21211   (eval $ac_try) 2>&5
   21212   ac_status=$?
   21213   echo "$as_me:21213: \$? = $ac_status" >&5
   21214   (exit $ac_status); }; }; then
   21215   INTEL_COMPILER=yes
   21216 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
   21217 
   21218 else
   21219   echo "$as_me: failed program was:" >&5
   21220 cat conftest.$ac_ext >&5
   21221 fi
   21222 rm -f conftest.$ac_objext conftest.$ac_ext
   21223 		CFLAGS="$cf_save_CFLAGS"
   21224 		echo "$as_me:21224: result: $INTEL_COMPILER" >&5
   21225 echo "${ECHO_T}$INTEL_COMPILER" >&6
   21226 		;;
   21227 	esac
   21228 fi
   21229 
   21230 CLANG_COMPILER=no
   21231 
   21232 if test "$GCC" = yes ; then
   21233 	echo "$as_me:21233: checking if this is really Clang C compiler" >&5
   21234 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
   21235 	cf_save_CFLAGS="$CFLAGS"
   21236 	CFLAGS="$CFLAGS -Qunused-arguments"
   21237 	cat >conftest.$ac_ext <<_ACEOF
   21238 #line 21238 "configure"
   21239 #include "confdefs.h"
   21240 
   21241 int
   21242 main (void)
   21243 {
   21244 
   21245 #ifdef __clang__
   21246 #else
   21247 make an error
   21248 #endif
   21249 
   21250   ;
   21251   return 0;
   21252 }
   21253 _ACEOF
   21254 rm -f conftest.$ac_objext
   21255 if { (eval echo "$as_me:21255: \"$ac_compile\"") >&5
   21256   (eval $ac_compile) 2>&5
   21257   ac_status=$?
   21258   echo "$as_me:21258: \$? = $ac_status" >&5
   21259   (exit $ac_status); } &&
   21260          { ac_try='test -s conftest.$ac_objext'
   21261   { (eval echo "$as_me:21261: \"$ac_try\"") >&5
   21262   (eval $ac_try) 2>&5
   21263   ac_status=$?
   21264   echo "$as_me:21264: \$? = $ac_status" >&5
   21265   (exit $ac_status); }; }; then
   21266   CLANG_COMPILER=yes
   21267 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
   21268 
   21269 else
   21270   echo "$as_me: failed program was:" >&5
   21271 cat conftest.$ac_ext >&5
   21272 fi
   21273 rm -f conftest.$ac_objext conftest.$ac_ext
   21274 	CFLAGS="$cf_save_CFLAGS"
   21275 	echo "$as_me:21275: result: $CLANG_COMPILER" >&5
   21276 echo "${ECHO_T}$CLANG_COMPILER" >&6
   21277 fi
   21278 
   21279 cat > conftest.$ac_ext <<EOF
   21280 #line 21280 "${as_me:-configure}"
   21281 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
   21282 EOF
   21283 
   21284 if test "$INTEL_COMPILER" = yes
   21285 then
   21286 # The "-wdXXX" options suppress warnings:
   21287 # remark #1419: external declaration in primary source file
   21288 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
   21289 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
   21290 # remark #193: zero used for undefined preprocessing identifier
   21291 # remark #593: variable "curs_sb_left_arrow" was set but never used
   21292 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
   21293 # remark #869: parameter "tw" was never referenced
   21294 # remark #981: operands are evaluated in unspecified order
   21295 # warning #279: controlling expression is constant
   21296 
   21297 	{ echo "$as_me:21297: checking for $CC warning options..." >&5
   21298 echo "$as_me: checking for $CC warning options..." >&6;}
   21299 	cf_save_CFLAGS="$CFLAGS"
   21300 	EXTRA_CFLAGS="-Wall"
   21301 	for cf_opt in \
   21302 		wd1419 \
   21303 		wd1683 \
   21304 		wd1684 \
   21305 		wd193 \
   21306 		wd593 \
   21307 		wd279 \
   21308 		wd810 \
   21309 		wd869 \
   21310 		wd981
   21311 	do
   21312 		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
   21313 		if { (eval echo "$as_me:21313: \"$ac_compile\"") >&5
   21314   (eval $ac_compile) 2>&5
   21315   ac_status=$?
   21316   echo "$as_me:21316: \$? = $ac_status" >&5
   21317   (exit $ac_status); }; then
   21318 			test -n "$verbose" && echo "$as_me:21318: result: ... -$cf_opt" >&5
   21319 echo "${ECHO_T}... -$cf_opt" >&6
   21320 			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
   21321 		fi
   21322 	done
   21323 	CFLAGS="$cf_save_CFLAGS"
   21324 
   21325 elif test "$GCC" = yes
   21326 then
   21327 	{ echo "$as_me:21327: checking for $CC warning options..." >&5
   21328 echo "$as_me: checking for $CC warning options..." >&6;}
   21329 	cf_save_CFLAGS="$CFLAGS"
   21330 	EXTRA_CFLAGS=
   21331 	cf_warn_CONST=""
   21332 	test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
   21333 	cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
   21334 	test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
   21335 	for cf_opt in W Wall \
   21336 		Wbad-function-cast \
   21337 		Wcast-align \
   21338 		Wcast-qual \
   21339 		Wdeclaration-after-statement \
   21340 		Wextra \
   21341 		Winline \
   21342 		Wmissing-declarations \
   21343 		Wmissing-prototypes \
   21344 		Wnested-externs \
   21345 		Wpointer-arith \
   21346 		Wshadow \
   21347 		Wstrict-prototypes \
   21348 		Wundef $cf_gcc_warnings $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
   21349 	do
   21350 		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
   21351 		if { (eval echo "$as_me:21351: \"$ac_compile\"") >&5
   21352   (eval $ac_compile) 2>&5
   21353   ac_status=$?
   21354   echo "$as_me:21354: \$? = $ac_status" >&5
   21355   (exit $ac_status); }; then
   21356 			test -n "$verbose" && echo "$as_me:21356: result: ... -$cf_opt" >&5
   21357 echo "${ECHO_T}... -$cf_opt" >&6
   21358 			case $cf_opt in
   21359 			(Wcast-qual)
   21360 				CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
   21361 				;;
   21362 			(Winline)
   21363 				case $GCC_VERSION in
   21364 				([34].*)
   21365 					test -n "$verbose" && echo "	feature is broken in gcc $GCC_VERSION" 1>&6
   21366 
   21367 echo "${as_me:-configure}:21367: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
   21368 
   21369 					continue;;
   21370 				esac
   21371 				;;
   21372 			(Wpointer-arith)
   21373 				case $GCC_VERSION in
   21374 				([12].*)
   21375 					test -n "$verbose" && echo "	feature is broken in gcc $GCC_VERSION" 1>&6
   21376 
   21377 echo "${as_me:-configure}:21377: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
   21378 
   21379 					continue;;
   21380 				esac
   21381 				;;
   21382 			esac
   21383 			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
   21384 		fi
   21385 	done
   21386 	CFLAGS="$cf_save_CFLAGS"
   21387 fi
   21388 rm -rf conftest*
   21389 
   21390 fi
   21391 fi
   21392 
   21393 test "$disable_setuid" = yes &&
   21394 cat >>confdefs.h <<\EOF
   21395 #define DISABLE_SETUID 1
   21396 EOF
   21397 
   21398 test "$disable_setgid" = yes &&
   21399 cat >>confdefs.h <<\EOF
   21400 #define DISABLE_SETGID 1
   21401 EOF
   21402 
   21403 if test $disable_setuid = yes ; then
   21404 	MAY_SETUID="#"
   21405 	NOT_SETUID=
   21406 elif test $disable_setgid = yes ; then
   21407 	MAY_SETUID="#"
   21408 	NOT_SETUID=
   21409 else
   21410 	MAY_SETUID=
   21411 	NOT_SETUID="#"
   21412 fi
   21413 
   21414 ###	remove from CPPFLAGS the optional features we define in xtermcfg.h
   21415 ###	or other conflicting symbols that may be defined via imake:
   21416 for cf_def in \
   21417 	__STDC__ \
   21418 	ALLOWLOGGING \
   21419 	ALLOWLOGFILEEXEC \
   21420 	OPT_LUIT_PROG \
   21421 	OPT_WIDE_CHARS \
   21422 	SCROLLBAR_RIGHT \
   21423 	USE_TTY_GROUP \
   21424 	USE_UTEMPTER \
   21425 	XRENDERFONT
   21426 do
   21427 	CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-D$cf_def//`
   21428 done
   21429 
   21430 echo "$as_me:21430: checking if filesystem supports mixed-case filenames" >&5
   21431 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
   21432 if test "${cf_cv_mixedcase+set}" = set; then
   21433   echo $ECHO_N "(cached) $ECHO_C" >&6
   21434 else
   21435 
   21436 if test "$cross_compiling" = yes ; then
   21437 	case $target_alias in
   21438 	(*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
   21439 		cf_cv_mixedcase=no
   21440 		;;
   21441 	(*)
   21442 		cf_cv_mixedcase=yes
   21443 		;;
   21444 	esac
   21445 else
   21446 	rm -f conftest CONFTEST
   21447 	echo test >conftest
   21448 	if test -f CONFTEST ; then
   21449 		cf_cv_mixedcase=no
   21450 	else
   21451 		cf_cv_mixedcase=yes
   21452 	fi
   21453 	rm -f conftest CONFTEST
   21454 fi
   21455 
   21456 fi
   21457 echo "$as_me:21457: result: $cf_cv_mixedcase" >&5
   21458 echo "${ECHO_T}$cf_cv_mixedcase" >&6
   21459 test "$cf_cv_mixedcase" = yes &&
   21460 cat >>confdefs.h <<\EOF
   21461 #define MIXEDCASE_FILENAMES 1
   21462 EOF
   21463 
   21464 for ac_prog in exctags ctags
   21465 do
   21466   # Extract the first word of "$ac_prog", so it can be a program name with args.
   21467 set dummy $ac_prog; ac_word=$2
   21468 echo "$as_me:21468: checking for $ac_word" >&5
   21469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   21470 if test "${ac_cv_prog_CTAGS+set}" = set; then
   21471   echo $ECHO_N "(cached) $ECHO_C" >&6
   21472 else
   21473   if test -n "$CTAGS"; then
   21474   ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
   21475 else
   21476   ac_save_IFS=$IFS; IFS=$ac_path_separator
   21477 ac_dummy="$PATH"
   21478 for ac_dir in $ac_dummy; do
   21479   IFS=$ac_save_IFS
   21480   test -z "$ac_dir" && ac_dir=.
   21481   $as_executable_p "$ac_dir/$ac_word" || continue
   21482 ac_cv_prog_CTAGS="$ac_prog"
   21483 echo "$as_me:21483: found $ac_dir/$ac_word" >&5
   21484 break
   21485 done
   21486 
   21487 fi
   21488 fi
   21489 CTAGS=$ac_cv_prog_CTAGS
   21490 if test -n "$CTAGS"; then
   21491   echo "$as_me:21491: result: $CTAGS" >&5
   21492 echo "${ECHO_T}$CTAGS" >&6
   21493 else
   21494   echo "$as_me:21494: result: no" >&5
   21495 echo "${ECHO_T}no" >&6
   21496 fi
   21497 
   21498   test -n "$CTAGS" && break
   21499 done
   21500 
   21501 for ac_prog in exetags etags
   21502 do
   21503   # Extract the first word of "$ac_prog", so it can be a program name with args.
   21504 set dummy $ac_prog; ac_word=$2
   21505 echo "$as_me:21505: checking for $ac_word" >&5
   21506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   21507 if test "${ac_cv_prog_ETAGS+set}" = set; then
   21508   echo $ECHO_N "(cached) $ECHO_C" >&6
   21509 else
   21510   if test -n "$ETAGS"; then
   21511   ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
   21512 else
   21513   ac_save_IFS=$IFS; IFS=$ac_path_separator
   21514 ac_dummy="$PATH"
   21515 for ac_dir in $ac_dummy; do
   21516   IFS=$ac_save_IFS
   21517   test -z "$ac_dir" && ac_dir=.
   21518   $as_executable_p "$ac_dir/$ac_word" || continue
   21519 ac_cv_prog_ETAGS="$ac_prog"
   21520 echo "$as_me:21520: found $ac_dir/$ac_word" >&5
   21521 break
   21522 done
   21523 
   21524 fi
   21525 fi
   21526 ETAGS=$ac_cv_prog_ETAGS
   21527 if test -n "$ETAGS"; then
   21528   echo "$as_me:21528: result: $ETAGS" >&5
   21529 echo "${ECHO_T}$ETAGS" >&6
   21530 else
   21531   echo "$as_me:21531: result: no" >&5
   21532 echo "${ECHO_T}no" >&6
   21533 fi
   21534 
   21535   test -n "$ETAGS" && break
   21536 done
   21537 
   21538 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
   21539 set dummy ${CTAGS:-ctags}; ac_word=$2
   21540 echo "$as_me:21540: checking for $ac_word" >&5
   21541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   21542 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
   21543   echo $ECHO_N "(cached) $ECHO_C" >&6
   21544 else
   21545   if test -n "$MAKE_LOWER_TAGS"; then
   21546   ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
   21547 else
   21548   ac_save_IFS=$IFS; IFS=$ac_path_separator
   21549 ac_dummy="$PATH"
   21550 for ac_dir in $ac_dummy; do
   21551   IFS=$ac_save_IFS
   21552   test -z "$ac_dir" && ac_dir=.
   21553   $as_executable_p "$ac_dir/$ac_word" || continue
   21554 ac_cv_prog_MAKE_LOWER_TAGS="yes"
   21555 echo "$as_me:21555: found $ac_dir/$ac_word" >&5
   21556 break
   21557 done
   21558 
   21559   test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
   21560 fi
   21561 fi
   21562 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
   21563 if test -n "$MAKE_LOWER_TAGS"; then
   21564   echo "$as_me:21564: result: $MAKE_LOWER_TAGS" >&5
   21565 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
   21566 else
   21567   echo "$as_me:21567: result: no" >&5
   21568 echo "${ECHO_T}no" >&6
   21569 fi
   21570 
   21571 if test "$cf_cv_mixedcase" = yes ; then
   21572 	# Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
   21573 set dummy ${ETAGS:-etags}; ac_word=$2
   21574 echo "$as_me:21574: checking for $ac_word" >&5
   21575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   21576 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
   21577   echo $ECHO_N "(cached) $ECHO_C" >&6
   21578 else
   21579   if test -n "$MAKE_UPPER_TAGS"; then
   21580   ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
   21581 else
   21582   ac_save_IFS=$IFS; IFS=$ac_path_separator
   21583 ac_dummy="$PATH"
   21584 for ac_dir in $ac_dummy; do
   21585   IFS=$ac_save_IFS
   21586   test -z "$ac_dir" && ac_dir=.
   21587   $as_executable_p "$ac_dir/$ac_word" || continue
   21588 ac_cv_prog_MAKE_UPPER_TAGS="yes"
   21589 echo "$as_me:21589: found $ac_dir/$ac_word" >&5
   21590 break
   21591 done
   21592 
   21593   test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
   21594 fi
   21595 fi
   21596 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
   21597 if test -n "$MAKE_UPPER_TAGS"; then
   21598   echo "$as_me:21598: result: $MAKE_UPPER_TAGS" >&5
   21599 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
   21600 else
   21601   echo "$as_me:21601: result: no" >&5
   21602 echo "${ECHO_T}no" >&6
   21603 fi
   21604 
   21605 else
   21606 	MAKE_UPPER_TAGS=no
   21607 fi
   21608 
   21609 if test "$MAKE_UPPER_TAGS" = yes ; then
   21610 	MAKE_UPPER_TAGS=
   21611 else
   21612 	MAKE_UPPER_TAGS="#"
   21613 fi
   21614 
   21615 if test "$MAKE_LOWER_TAGS" = yes ; then
   21616 	MAKE_LOWER_TAGS=
   21617 else
   21618 	MAKE_LOWER_TAGS="#"
   21619 fi
   21620 
   21621 LD_RPATH_OPT=
   21622 echo "$as_me:21622: checking for an rpath option" >&5
   21623 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
   21624 case $cf_cv_system_name in
   21625 (irix*)
   21626 	if test "$GCC" = yes; then
   21627 		LD_RPATH_OPT="-Wl,-rpath,"
   21628 	else
   21629 		LD_RPATH_OPT="-rpath "
   21630 	fi
   21631 	;;
   21632 (linux*|gnu*|k*bsd*-gnu|freebsd*)
   21633 	LD_RPATH_OPT="-Wl,-rpath,"
   21634 	;;
   21635 (openbsd[2-9].*|mirbsd*)
   21636 	LD_RPATH_OPT="-Wl,-rpath,"
   21637 	;;
   21638 (dragonfly*)
   21639 	LD_RPATH_OPT="-rpath "
   21640 	;;
   21641 (netbsd*)
   21642 	LD_RPATH_OPT="-Wl,-rpath,"
   21643 	;;
   21644 (osf*|mls+*)
   21645 	LD_RPATH_OPT="-rpath "
   21646 	;;
   21647 (solaris2*)
   21648 	LD_RPATH_OPT="-R"
   21649 	;;
   21650 (*)
   21651 	;;
   21652 esac
   21653 echo "$as_me:21653: result: $LD_RPATH_OPT" >&5
   21654 echo "${ECHO_T}$LD_RPATH_OPT" >&6
   21655 
   21656 case "x$LD_RPATH_OPT" in
   21657 (x-R*)
   21658 	echo "$as_me:21658: checking if we need a space after rpath option" >&5
   21659 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
   21660 	cf_save_LIBS="$LIBS"
   21661 
   21662 cf_add_libs="${LD_RPATH_OPT}$libdir"
   21663 # Filter out duplicates - this happens with badly-designed ".pc" files...
   21664 for cf_add_1lib in $LIBS
   21665 do
   21666 	for cf_add_2lib in $cf_add_libs
   21667 	do
   21668 		if test "x$cf_add_1lib" = "x$cf_add_2lib"
   21669 		then
   21670 			cf_add_1lib=
   21671 			break
   21672 		fi
   21673 	done
   21674 	test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
   21675 done
   21676 LIBS="$cf_add_libs"
   21677 
   21678 	cat >conftest.$ac_ext <<_ACEOF
   21679 #line 21679 "configure"
   21680 #include "confdefs.h"
   21681 
   21682 int
   21683 main (void)
   21684 {
   21685 
   21686   ;
   21687   return 0;
   21688 }
   21689 _ACEOF
   21690 rm -f conftest.$ac_objext conftest$ac_exeext
   21691 if { (eval echo "$as_me:21691: \"$ac_link\"") >&5
   21692   (eval $ac_link) 2>&5
   21693   ac_status=$?
   21694   echo "$as_me:21694: \$? = $ac_status" >&5
   21695   (exit $ac_status); } &&
   21696          { ac_try='test -s conftest$ac_exeext'
   21697   { (eval echo "$as_me:21697: \"$ac_try\"") >&5
   21698   (eval $ac_try) 2>&5
   21699   ac_status=$?
   21700   echo "$as_me:21700: \$? = $ac_status" >&5
   21701   (exit $ac_status); }; }; then
   21702   cf_rpath_space=no
   21703 else
   21704   echo "$as_me: failed program was:" >&5
   21705 cat conftest.$ac_ext >&5
   21706 cf_rpath_space=yes
   21707 fi
   21708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   21709 	LIBS="$cf_save_LIBS"
   21710 	echo "$as_me:21710: result: $cf_rpath_space" >&5
   21711 echo "${ECHO_T}$cf_rpath_space" >&6
   21712 	test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
   21713 	;;
   21714 esac
   21715 
   21716 echo "$as_me:21716: checking if rpath-hack should be disabled" >&5
   21717 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
   21718 
   21719 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
   21720 if test "${enable_rpath_hack+set}" = set; then
   21721   enableval="$enable_rpath_hack"
   21722   test "$enableval" != no && enableval=yes
   21723 	if test "$enableval" != "yes" ; then
   21724     cf_disable_rpath_hack=yes
   21725 	else
   21726 		cf_disable_rpath_hack=no
   21727 	fi
   21728 else
   21729   enableval=yes
   21730 	cf_disable_rpath_hack=no
   21731 
   21732 fi;
   21733 echo "$as_me:21733: result: $cf_disable_rpath_hack" >&5
   21734 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
   21735 if test "$cf_disable_rpath_hack" = no ; then
   21736 
   21737 echo "$as_me:21737: checking for updated LDFLAGS" >&5
   21738 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
   21739 if test -n "$LD_RPATH_OPT" ; then
   21740 	echo "$as_me:21740: result: maybe" >&5
   21741 echo "${ECHO_T}maybe" >&6
   21742 
   21743 	for ac_prog in ldd
   21744 do
   21745   # Extract the first word of "$ac_prog", so it can be a program name with args.
   21746 set dummy $ac_prog; ac_word=$2
   21747 echo "$as_me:21747: checking for $ac_word" >&5
   21748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   21749 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
   21750   echo $ECHO_N "(cached) $ECHO_C" >&6
   21751 else
   21752   if test -n "$cf_ldd_prog"; then
   21753   ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
   21754 else
   21755   ac_save_IFS=$IFS; IFS=$ac_path_separator
   21756 ac_dummy="$PATH"
   21757 for ac_dir in $ac_dummy; do
   21758   IFS=$ac_save_IFS
   21759   test -z "$ac_dir" && ac_dir=.
   21760   $as_executable_p "$ac_dir/$ac_word" || continue
   21761 ac_cv_prog_cf_ldd_prog="$ac_prog"
   21762 echo "$as_me:21762: found $ac_dir/$ac_word" >&5
   21763 break
   21764 done
   21765 
   21766 fi
   21767 fi
   21768 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
   21769 if test -n "$cf_ldd_prog"; then
   21770   echo "$as_me:21770: result: $cf_ldd_prog" >&5
   21771 echo "${ECHO_T}$cf_ldd_prog" >&6
   21772 else
   21773   echo "$as_me:21773: result: no" >&5
   21774 echo "${ECHO_T}no" >&6
   21775 fi
   21776 
   21777   test -n "$cf_ldd_prog" && break
   21778 done
   21779 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
   21780 
   21781 	cf_rpath_list="/usr/lib /lib"
   21782 	if test "$cf_ldd_prog" != no
   21783 	then
   21784 		cf_rpath_oops=
   21785 
   21786 cat >conftest.$ac_ext <<_ACEOF
   21787 #line 21787 "configure"
   21788 #include "confdefs.h"
   21789 #include <stdio.h>
   21790 int
   21791 main (void)
   21792 {
   21793 printf("Hello");
   21794   ;
   21795   return 0;
   21796 }
   21797 _ACEOF
   21798 rm -f conftest.$ac_objext conftest$ac_exeext
   21799 if { (eval echo "$as_me:21799: \"$ac_link\"") >&5
   21800   (eval $ac_link) 2>&5
   21801   ac_status=$?
   21802   echo "$as_me:21802: \$? = $ac_status" >&5
   21803   (exit $ac_status); } &&
   21804          { ac_try='test -s conftest$ac_exeext'
   21805   { (eval echo "$as_me:21805: \"$ac_try\"") >&5
   21806   (eval $ac_try) 2>&5
   21807   ac_status=$?
   21808   echo "$as_me:21808: \$? = $ac_status" >&5
   21809   (exit $ac_status); }; }; then
   21810   cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
   21811 		 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ 	]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
   21812 else
   21813   echo "$as_me: failed program was:" >&5
   21814 cat conftest.$ac_ext >&5
   21815 fi
   21816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   21817 
   21818 		# If we passed the link-test, but get a "not found" on a given library,
   21819 		# this could be due to inept reconfiguration of gcc to make it only
   21820 		# partly honor /usr/local/lib (or whatever).  Sometimes this behavior
   21821 		# is intentional, e.g., installing gcc in /usr/bin and suppressing the
   21822 		# /usr/local libraries.
   21823 		if test -n "$cf_rpath_oops"
   21824 		then
   21825 			for cf_rpath_src in $cf_rpath_oops
   21826 			do
   21827 				for cf_rpath_dir in \
   21828 					/usr/local \
   21829 					/usr/pkg \
   21830 					/opt/sfw
   21831 				do
   21832 					if test -f $cf_rpath_dir/lib/$cf_rpath_src
   21833 					then
   21834 						test -n "$verbose" && echo "	...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
   21835 
   21836 echo "${as_me:-configure}:21836: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
   21837 
   21838 						LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
   21839 						break
   21840 					fi
   21841 				done
   21842 			done
   21843 		fi
   21844 	fi
   21845 
   21846 	test -n "$verbose" && echo "	...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
   21847 
   21848 echo "${as_me:-configure}:21848: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
   21849 
   21850 test -n "$verbose" && echo "	...checking LDFLAGS $LDFLAGS" 1>&6
   21851 
   21852 echo "${as_me:-configure}:21852: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
   21853 
   21854 cf_rpath_dst=
   21855 for cf_rpath_src in $LDFLAGS
   21856 do
   21857 	case $cf_rpath_src in
   21858 	(-L*)
   21859 
   21860 		# check if this refers to a directory which we will ignore
   21861 		cf_rpath_skip=no
   21862 		if test -n "$cf_rpath_list"
   21863 		then
   21864 			for cf_rpath_item in $cf_rpath_list
   21865 			do
   21866 				if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
   21867 				then
   21868 					cf_rpath_skip=yes
   21869 					break
   21870 				fi
   21871 			done
   21872 		fi
   21873 
   21874 		if test "$cf_rpath_skip" = no
   21875 		then
   21876 			# transform the option
   21877 			if test "$LD_RPATH_OPT" = "-R " ; then
   21878 				cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
   21879 			else
   21880 				cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
   21881 			fi
   21882 
   21883 			# if we have not already added this, add it now
   21884 			cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
   21885 			if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
   21886 			then
   21887 				test -n "$verbose" && echo "	...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
   21888 
   21889 echo "${as_me:-configure}:21889: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
   21890 
   21891 				EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
   21892 			fi
   21893 		fi
   21894 		;;
   21895 	esac
   21896 	cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
   21897 done
   21898 LDFLAGS=$cf_rpath_dst
   21899 
   21900 test -n "$verbose" && echo "	...checked LDFLAGS $LDFLAGS" 1>&6
   21901 
   21902 echo "${as_me:-configure}:21902: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
   21903 
   21904 test -n "$verbose" && echo "	...checking LIBS $LIBS" 1>&6
   21905 
   21906 echo "${as_me:-configure}:21906: testing ...checking LIBS $LIBS ..." 1>&5
   21907 
   21908 cf_rpath_dst=
   21909 for cf_rpath_src in $LIBS
   21910 do
   21911 	case $cf_rpath_src in
   21912 	(-L*)
   21913 
   21914 		# check if this refers to a directory which we will ignore
   21915 		cf_rpath_skip=no
   21916 		if test -n "$cf_rpath_list"
   21917 		then
   21918 			for cf_rpath_item in $cf_rpath_list
   21919 			do
   21920 				if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
   21921 				then
   21922 					cf_rpath_skip=yes
   21923 					break
   21924 				fi
   21925 			done
   21926 		fi
   21927 
   21928 		if test "$cf_rpath_skip" = no
   21929 		then
   21930 			# transform the option
   21931 			if test "$LD_RPATH_OPT" = "-R " ; then
   21932 				cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
   21933 			else
   21934 				cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
   21935 			fi
   21936 
   21937 			# if we have not already added this, add it now
   21938 			cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
   21939 			if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
   21940 			then
   21941 				test -n "$verbose" && echo "	...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
   21942 
   21943 echo "${as_me:-configure}:21943: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
   21944 
   21945 				EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
   21946 			fi
   21947 		fi
   21948 		;;
   21949 	esac
   21950 	cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
   21951 done
   21952 LIBS=$cf_rpath_dst
   21953 
   21954 test -n "$verbose" && echo "	...checked LIBS $LIBS" 1>&6
   21955 
   21956 echo "${as_me:-configure}:21956: testing ...checked LIBS $LIBS ..." 1>&5
   21957 
   21958 	test -n "$verbose" && echo "	...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
   21959 
   21960 echo "${as_me:-configure}:21960: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
   21961 
   21962 else
   21963 	echo "$as_me:21963: result: no" >&5
   21964 echo "${ECHO_T}no" >&6
   21965 fi
   21966 
   21967 fi
   21968 
   21969 # Force plink.sh to not trim pcre's libraries, which have the same symbol
   21970 # names as the system regexp.
   21971 if test "$with_pcre" != no
   21972 then
   21973 	LIBS=`echo "$LIBS" | sed -e 's/-lpcre/-kpcre/g'`
   21974 fi
   21975 
   21976 ###	output xtermcfg.h, etc
   21977 ac_config_files="$ac_config_files Makefile df-install minstall:minstall.in"
   21978 
   21979 cat >confcache <<\_ACEOF
   21980 # This file is a shell script that caches the results of configure
   21981 # tests run on this system so they can be shared between configure
   21982 # scripts and configure runs, see configure's option --config-cache.
   21983 # It is not useful on other systems.  If it contains results you don't
   21984 # want to keep, you may remove or edit it.
   21985 #
   21986 # config.status only pays attention to the cache file if you give it
   21987 # the --recheck option to rerun configure.
   21988 #
   21989 # `ac_cv_env_foo' variables (set or unset) will be overriden when
   21990 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   21991 # following values.
   21992 
   21993 _ACEOF
   21994 
   21995 # The following way of writing the cache mishandles newlines in values,
   21996 # but we know of no workaround that is simple, portable, and efficient.
   21997 # So, don't put newlines in cache variables' values.
   21998 # Ultrix sh set writes to stderr and can't be redirected directly,
   21999 # and sets the high bit in the cache file unless we assign to the vars.
   22000 {
   22001   (set) 2>&1 |
   22002     case `(ac_space=' '; set | grep ac_space) 2>&1` in
   22003     *ac_space=\ *)
   22004       # `set' does not quote correctly, so add quotes (double-quote
   22005       # substitution turns \\\\ into \\, and sed turns \\ into \).
   22006       sed -n \
   22007         "s/'/'\\\\''/g;
   22008     	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   22009       ;;
   22010     *)
   22011       # `set' quotes correctly as required by POSIX, so do not add quotes.
   22012       sed -n \
   22013         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
   22014       ;;
   22015     esac;
   22016 } |
   22017   sed '
   22018      t clear
   22019      : clear
   22020      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   22021      t end
   22022      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   22023      : end' >>confcache
   22024 if cmp -s $cache_file confcache; then :; else
   22025   if test -w $cache_file; then
   22026     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
   22027     cat confcache >$cache_file
   22028   else
   22029     echo "not updating unwritable cache $cache_file"
   22030   fi
   22031 fi
   22032 rm -f confcache
   22033 
   22034 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   22035 # Let make expand exec_prefix.
   22036 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   22037 
   22038 # VPATH may cause trouble with some makes, so we remove $(srcdir),
   22039 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   22040 # trailing colons and then remove the whole line if VPATH becomes empty
   22041 # (actually we leave an empty line to preserve line numbers).
   22042 if test "x$srcdir" = x.; then
   22043   ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
   22044 s/:*\$(srcdir):*/:/;
   22045 s/:*\${srcdir}:*/:/;
   22046 s/:*@srcdir@:*/:/;
   22047 s/^\([^=]*=[ 	]*\):*/\1/;
   22048 s/:*$//;
   22049 s/^[^=]*=[ 	]*$//;
   22050 }'
   22051 fi
   22052 
   22053 DEFS=-DHAVE_CONFIG_H
   22054 
   22055 : ${CONFIG_STATUS=./config.status}
   22056 ac_clean_files_save=$ac_clean_files
   22057 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   22058 { echo "$as_me:22058: creating $CONFIG_STATUS" >&5
   22059 echo "$as_me: creating $CONFIG_STATUS" >&6;}
   22060 cat >$CONFIG_STATUS <<_ACEOF
   22061 #! $SHELL
   22062 # Generated automatically by configure.
   22063 # Run this file to recreate the current configuration.
   22064 # Compiler output produced by configure, useful for debugging
   22065 # configure, is in config.log if it exists.
   22066 
   22067 debug=false
   22068 SHELL=\${CONFIG_SHELL-$SHELL}
   22069 ac_cs_invocation="\$0 \$@"
   22070 
   22071 _ACEOF
   22072 
   22073 cat >>$CONFIG_STATUS <<\_ACEOF
   22074 # Be Bourne compatible
   22075 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   22076   emulate sh
   22077   NULLCMD=:
   22078 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
   22079   set -o posix
   22080 fi
   22081 
   22082 # Name of the executable.
   22083 as_me=`echo "$0" |sed 's,.*[\\/],,'`
   22084 
   22085 if expr a : '\(a\)' >/dev/null 2>&1; then
   22086   as_expr=expr
   22087 else
   22088   as_expr=false
   22089 fi
   22090 
   22091 rm -f conf$$ conf$$.exe conf$$.file
   22092 echo >conf$$.file
   22093 if ln -s conf$$.file conf$$ 2>/dev/null; then
   22094   # We could just check for DJGPP; but this test a) works b) is more generic
   22095   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
   22096   if test -f conf$$.exe; then
   22097     # Don't use ln at all; we don't have any links
   22098     as_ln_s='cp -p'
   22099   else
   22100     as_ln_s='ln -s'
   22101   fi
   22102 elif ln conf$$.file conf$$ 2>/dev/null; then
   22103   as_ln_s=ln
   22104 else
   22105   as_ln_s='cp -p'
   22106 fi
   22107 rm -f conf$$ conf$$.exe conf$$.file
   22108 
   22109 as_executable_p="test -f"
   22110 
   22111 # Support unset when possible.
   22112 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
   22113   as_unset=unset
   22114 else
   22115   as_unset=false
   22116 fi
   22117 
   22118 # NLS nuisances.
   22119 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
   22120 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
   22121 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
   22122 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
   22123 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
   22124 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
   22125 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
   22126 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
   22127 
   22128 # IFS
   22129 # We need space, tab and new line, in precisely that order.
   22130 as_nl='
   22131 '
   22132 IFS=" 	$as_nl"
   22133 
   22134 # CDPATH.
   22135 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
   22136 
   22137 exec 6>&1
   22138 
   22139 _ACEOF
   22140 
   22141 # Files that config.status was made for.
   22142 if test -n "$ac_config_files"; then
   22143   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
   22144 fi
   22145 
   22146 if test -n "$ac_config_headers"; then
   22147   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
   22148 fi
   22149 
   22150 if test -n "$ac_config_links"; then
   22151   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
   22152 fi
   22153 
   22154 if test -n "$ac_config_commands"; then
   22155   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
   22156 fi
   22157 
   22158 cat >>$CONFIG_STATUS <<\EOF
   22159 
   22160 ac_cs_usage="\
   22161 \`$as_me' instantiates files from templates according to the
   22162 current configuration.
   22163 
   22164 Usage: $0 [OPTIONS] [FILE]...
   22165 
   22166   -h, --help       print this help, then exit
   22167   -V, --version    print version number, then exit
   22168   -d, --debug      don't remove temporary files
   22169       --recheck    update $as_me by reconfiguring in the same conditions
   22170   --file=FILE[:TEMPLATE]
   22171                    instantiate the configuration file FILE
   22172   --header=FILE[:TEMPLATE]
   22173                    instantiate the configuration header FILE
   22174 
   22175 Configuration files:
   22176 $config_files
   22177 
   22178 Configuration headers:
   22179 $config_headers
   22180 
   22181 Report bugs to <dickey@invisible-island.net>."
   22182 EOF
   22183 
   22184 cat >>$CONFIG_STATUS <<EOF
   22185 ac_cs_version="\\
   22186 config.status
   22187 configured by $0, generated by GNU Autoconf 2.52.20170501,
   22188   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
   22189 
   22190 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
   22191 Free Software Foundation, Inc.
   22192 This config.status script is free software; the Free Software Foundation
   22193 gives unlimited permission to copy, distribute and modify it."
   22194 srcdir=$srcdir
   22195 INSTALL="$INSTALL"
   22196 EOF
   22197 
   22198 cat >>$CONFIG_STATUS <<\EOF
   22199 # If no file are specified by the user, then we need to provide default
   22200 # value.  By we need to know if files were specified by the user.
   22201 ac_need_defaults=:
   22202 while test $# != 0
   22203 do
   22204   case $1 in
   22205   --*=*)
   22206     ac_option=`expr "x$1" : 'x\([^=]*\)='`
   22207     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
   22208     shift
   22209     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
   22210     shift
   22211     ;;
   22212   -*);;
   22213   *) # This is not an option, so the user has probably given explicit
   22214      # arguments.
   22215      ac_need_defaults=false;;
   22216   esac
   22217 
   22218   case $1 in
   22219   # Handling of the options.
   22220 EOF
   22221 cat >>$CONFIG_STATUS <<EOF
   22222   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   22223     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
   22224     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
   22225 EOF
   22226 cat >>$CONFIG_STATUS <<\EOF
   22227   --version | --vers* | -V )
   22228     echo "$ac_cs_version"; exit 0 ;;
   22229   --he | --h)
   22230     # Conflict between --help and --header
   22231     { { echo "$as_me:22231: error: ambiguous option: $1
   22232 Try \`$0 --help' for more information." >&5
   22233 echo "$as_me: error: ambiguous option: $1
   22234 Try \`$0 --help' for more information." >&2;}
   22235    { (exit 1); exit 1; }; };;
   22236   --help | --hel | -h )
   22237     echo "$ac_cs_usage"; exit 0 ;;
   22238   --debug | --d* | -d )
   22239     debug=: ;;
   22240   --file | --fil | --fi | --f )
   22241     shift
   22242     CONFIG_FILES="$CONFIG_FILES $1"
   22243     ac_need_defaults=false;;
   22244   --header | --heade | --head | --hea )
   22245     shift
   22246     CONFIG_HEADERS="$CONFIG_HEADERS $1"
   22247     ac_need_defaults=false;;
   22248 
   22249   # This is an error.
   22250   -*) { { echo "$as_me:22250: error: unrecognized option: $1
   22251 Try \`$0 --help' for more information." >&5
   22252 echo "$as_me: error: unrecognized option: $1
   22253 Try \`$0 --help' for more information." >&2;}
   22254    { (exit 1); exit 1; }; } ;;
   22255 
   22256   *) ac_config_targets="$ac_config_targets $1" ;;
   22257 
   22258   esac
   22259   shift
   22260 done
   22261 
   22262 exec 5>>config.log
   22263 cat >&5 << _ACEOF
   22264 
   22265 ## ----------------------- ##
   22266 ## Running config.status.  ##
   22267 ## ----------------------- ##
   22268 
   22269 This file was extended by $as_me 2.52.20170501, executed with
   22270   CONFIG_FILES    = $CONFIG_FILES
   22271   CONFIG_HEADERS  = $CONFIG_HEADERS
   22272   CONFIG_LINKS    = $CONFIG_LINKS
   22273   CONFIG_COMMANDS = $CONFIG_COMMANDS
   22274   > $ac_cs_invocation
   22275 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   22276 
   22277 _ACEOF
   22278 EOF
   22279 
   22280 cat >>$CONFIG_STATUS <<\EOF
   22281 for ac_config_target in $ac_config_targets
   22282 do
   22283   case "$ac_config_target" in
   22284   # Handling of arguments.
   22285   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   22286   "df-install" ) CONFIG_FILES="$CONFIG_FILES df-install" ;;
   22287   "minstall" ) CONFIG_FILES="$CONFIG_FILES minstall:minstall.in" ;;
   22288   "xtermcfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xtermcfg.h:xtermcfg.hin" ;;
   22289   *) { { echo "$as_me:22289: error: invalid argument: $ac_config_target" >&5
   22290 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   22291    { (exit 1); exit 1; }; };;
   22292   esac
   22293 done
   22294 
   22295 # If the user did not use the arguments to specify the items to instantiate,
   22296 # then the envvar interface is used.  Set only those that are not.
   22297 # We use the long form for the default assignment because of an extremely
   22298 # bizarre bug on SunOS 4.1.3.
   22299 if $ac_need_defaults; then
   22300   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   22301   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   22302 fi
   22303 
   22304 # Create a temporary directory, and hook for its removal unless debugging.
   22305 $debug ||
   22306 {
   22307   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
   22308   trap '{ (exit 1); exit 1; }' 1 2 13 15
   22309 }
   22310 
   22311 # Create a (secure) tmp directory for tmp files.
   22312 : ${TMPDIR=/tmp}
   22313 {
   22314   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
   22315   test -n "$tmp" && test -d "$tmp"
   22316 }  ||
   22317 {
   22318   tmp=$TMPDIR/cs$$-$RANDOM
   22319   (umask 077 && mkdir $tmp)
   22320 } ||
   22321 {
   22322    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   22323    { (exit 1); exit 1; }
   22324 }
   22325 
   22326 EOF
   22327 
   22328 cat >>$CONFIG_STATUS <<EOF
   22329 
   22330 #
   22331 # CONFIG_FILES section.
   22332 #
   22333 
   22334 # No need to generate the scripts if there are no CONFIG_FILES.
   22335 # This happens for instance when ./config.status config.h
   22336 if test -n "\$CONFIG_FILES"; then
   22337   # Protect against being on the right side of a sed subst in config.status.
   22338   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
   22339    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
   22340 s,@SHELL@,$SHELL,;t t
   22341 s,@exec_prefix@,$exec_prefix,;t t
   22342 s,@prefix@,$prefix,;t t
   22343 s,@program_transform_name@,$program_transform_name,;t t
   22344 s,@bindir@,$bindir,;t t
   22345 s,@sbindir@,$sbindir,;t t
   22346 s,@libexecdir@,$libexecdir,;t t
   22347 s,@datarootdir@,$datarootdir,;t t
   22348 s,@datadir@,$datadir,;t t
   22349 s,@sysconfdir@,$sysconfdir,;t t
   22350 s,@sharedstatedir@,$sharedstatedir,;t t
   22351 s,@localstatedir@,$localstatedir,;t t
   22352 s,@libdir@,$libdir,;t t
   22353 s,@includedir@,$includedir,;t t
   22354 s,@oldincludedir@,$oldincludedir,;t t
   22355 s,@infodir@,$infodir,;t t
   22356 s,@mandir@,$mandir,;t t
   22357 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
   22358 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
   22359 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
   22360 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
   22361 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
   22362 s,@build_alias@,$build_alias,;t t
   22363 s,@host_alias@,$host_alias,;t t
   22364 s,@target_alias@,$target_alias,;t t
   22365 s,@ECHO_C@,$ECHO_C,;t t
   22366 s,@ECHO_N@,$ECHO_N,;t t
   22367 s,@ECHO_T@,$ECHO_T,;t t
   22368 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
   22369 s,@DEFS@,$DEFS,;t t
   22370 s,@LIBS@,$LIBS,;t t
   22371 s,@build@,$build,;t t
   22372 s,@build_cpu@,$build_cpu,;t t
   22373 s,@build_vendor@,$build_vendor,;t t
   22374 s,@build_os@,$build_os,;t t
   22375 s,@host@,$host,;t t
   22376 s,@host_cpu@,$host_cpu,;t t
   22377 s,@host_vendor@,$host_vendor,;t t
   22378 s,@host_os@,$host_os,;t t
   22379 s,@CC@,$CC,;t t
   22380 s,@CFLAGS@,$CFLAGS,;t t
   22381 s,@LDFLAGS@,$LDFLAGS,;t t
   22382 s,@CPPFLAGS@,$CPPFLAGS,;t t
   22383 s,@ac_ct_CC@,$ac_ct_CC,;t t
   22384 s,@EXEEXT@,$EXEEXT,;t t
   22385 s,@OBJEXT@,$OBJEXT,;t t
   22386 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
   22387 s,@CPP@,$CPP,;t t
   22388 s,@AWK@,$AWK,;t t
   22389 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
   22390 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
   22391 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
   22392 s,@LN_S@,$LN_S,;t t
   22393 s,@LINT@,$LINT,;t t
   22394 s,@LINT_OPTS@,$LINT_OPTS,;t t
   22395 s,@APP_CLASS@,$APP_CLASS,;t t
   22396 s,@APPSDIR@,$APPSDIR,;t t
   22397 s,@no_appsdir@,$no_appsdir,;t t
   22398 s,@ICON_NAME@,$ICON_NAME,;t t
   22399 s,@ICON_SYMLINK@,$ICON_SYMLINK,;t t
   22400 s,@PIXMAPDIR@,$PIXMAPDIR,;t t
   22401 s,@no_pixmapdir@,$no_pixmapdir,;t t
   22402 s,@ICONDIR@,$ICONDIR,;t t
   22403 s,@no_icondir@,$no_icondir,;t t
   22404 s,@ICON_FORMAT@,$ICON_FORMAT,;t t
   22405 s,@ICON_THEME@,$ICON_THEME,;t t
   22406 s,@ICON_LIST@,$ICON_LIST,;t t
   22407 s,@desktop_utils@,$desktop_utils,;t t
   22408 s,@DESKTOP_FLAGS@,$DESKTOP_FLAGS,;t t
   22409 s,@DESKTOP_CATEGORY@,$DESKTOP_CATEGORY,;t t
   22410 s,@XTERM_PATH@,$XTERM_PATH,;t t
   22411 s,@XTERM_SYMLINK@,$XTERM_SYMLINK,;t t
   22412 s,@SINSTALL_OPTS@,$SINSTALL_OPTS,;t t
   22413 s,@X_CFLAGS@,$X_CFLAGS,;t t
   22414 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
   22415 s,@X_LIBS@,$X_LIBS,;t t
   22416 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
   22417 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
   22418 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
   22419 s,@ICON_SUFFIX@,$ICON_SUFFIX,;t t
   22420 s,@IMAKE@,$IMAKE,;t t
   22421 s,@IMAKE_CFLAGS@,$IMAKE_CFLAGS,;t t
   22422 s,@IMAKE_LOADFLAGS@,$IMAKE_LOADFLAGS,;t t
   22423 s,@GROFF_PATH@,$GROFF_PATH,;t t
   22424 s,@NROFF_PATH@,$NROFF_PATH,;t t
   22425 s,@GROFF_NOTE@,$GROFF_NOTE,;t t
   22426 s,@NROFF_NOTE@,$NROFF_NOTE,;t t
   22427 s,@cf_man2html@,$cf_man2html,;t t
   22428 s,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t
   22429 s,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t
   22430 s,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t
   22431 s,@default_termid@,$default_termid,;t t
   22432 s,@default_TERM@,$default_TERM,;t t
   22433 s,@backarrow_is_bs@,$backarrow_is_bs,;t t
   22434 s,@backarrow_is_erase@,$backarrow_is_erase,;t t
   22435 s,@delete_is_del@,$delete_is_del,;t t
   22436 s,@initial_erase@,$initial_erase,;t t
   22437 s,@alt_sends_esc@,$alt_sends_esc,;t t
   22438 s,@meta_sends_esc@,$meta_sends_esc,;t t
   22439 s,@cf_tic_prog@,$cf_tic_prog,;t t
   22440 s,@no_ticprog@,$no_ticprog,;t t
   22441 s,@TERMINFO_DIR@,$TERMINFO_DIR,;t t
   22442 s,@SET_TERMINFO@,$SET_TERMINFO,;t t
   22443 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
   22444 s,@FREETYPE_OLD_CONFIG@,$FREETYPE_OLD_CONFIG,;t t
   22445 s,@FREETYPE_XFT_CONFIG@,$FREETYPE_XFT_CONFIG,;t t
   22446 s,@HAVE_TYPE_FCCHAR32@,$HAVE_TYPE_FCCHAR32,;t t
   22447 s,@HAVE_TYPE_XFTCHARSPEC@,$HAVE_TYPE_XFTCHARSPEC,;t t
   22448 s,@LUIT@,$LUIT,;t t
   22449 s,@ECHO_LT@,$ECHO_LT,;t t
   22450 s,@ECHO_LD@,$ECHO_LD,;t t
   22451 s,@RULE_CC@,$RULE_CC,;t t
   22452 s,@SHOW_CC@,$SHOW_CC,;t t
   22453 s,@ECHO_CC@,$ECHO_CC,;t t
   22454 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
   22455 s,@CHARPROC_DEPS@,$CHARPROC_DEPS,;t t
   22456 s,@EXTRAHDRS@,$EXTRAHDRS,;t t
   22457 s,@EXTRASRCS@,$EXTRASRCS,;t t
   22458 s,@EXTRAOBJS@,$EXTRAOBJS,;t t
   22459 s,@MAY_SETUID@,$MAY_SETUID,;t t
   22460 s,@NOT_SETUID@,$NOT_SETUID,;t t
   22461 s,@CTAGS@,$CTAGS,;t t
   22462 s,@ETAGS@,$ETAGS,;t t
   22463 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
   22464 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
   22465 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
   22466 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
   22467 CEOF
   22468 
   22469 EOF
   22470 
   22471   cat >>$CONFIG_STATUS <<\EOF
   22472   # Split the substitutions into bite-sized pieces for seds with
   22473   # small command number limits, like on Digital OSF/1 and HP-UX.
   22474   ac_max_sed_lines=48
   22475   ac_sed_frag=1 # Number of current file.
   22476   ac_beg=1 # First line for current file.
   22477   ac_end=$ac_max_sed_lines # Line after last line for current file.
   22478   ac_more_lines=:
   22479   ac_sed_cmds=
   22480   while $ac_more_lines; do
   22481     if test $ac_beg -gt 1; then
   22482       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   22483     else
   22484       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   22485     fi
   22486     if test ! -s $tmp/subs.frag; then
   22487       ac_more_lines=false
   22488     else
   22489       # The purpose of the label and of the branching condition is to
   22490       # speed up the sed processing (if there are no `@' at all, there
   22491       # is no need to browse any of the substitutions).
   22492       # These are the two extra sed commands mentioned above.
   22493       (echo ':t
   22494   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
   22495       # It is possible to make a multiline substitution using escaped newlines.
   22496       # Ensure that we do not split the substitution between script fragments.
   22497       ac_BEG=$ac_end
   22498       ac_END=`expr $ac_end + $ac_max_sed_lines`
   22499       sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
   22500       if test -s $tmp/subs.next; then
   22501         grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
   22502         if test ! -s $tmp/subs.edit; then
   22503           grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
   22504           if test ! -s $tmp/subs.edit; then
   22505             if test $ac_beg -gt 1; then
   22506               ac_end=`expr $ac_end - 1`
   22507               continue
   22508             fi
   22509           fi
   22510         fi
   22511       fi
   22512 
   22513       if test -z "$ac_sed_cmds"; then
   22514         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
   22515       else
   22516         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
   22517       fi
   22518       ac_sed_frag=`expr $ac_sed_frag + 1`
   22519       ac_beg=$ac_end
   22520       ac_end=`expr $ac_end + $ac_max_sed_lines`
   22521     fi
   22522   done
   22523   if test -z "$ac_sed_cmds"; then
   22524     ac_sed_cmds=cat
   22525   fi
   22526 fi # test -n "$CONFIG_FILES"
   22527 
   22528 EOF
   22529 cat >>$CONFIG_STATUS <<\EOF
   22530 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
   22531   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   22532   case $ac_file in
   22533   - | *:- | *:-:* ) # input from stdin
   22534         cat >$tmp/stdin
   22535         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   22536         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   22537   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   22538         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   22539   * )   ac_file_in=$ac_file.in ;;
   22540   esac
   22541 
   22542   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
   22543   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   22544          X"$ac_file" : 'X\(//\)[^/]' \| \
   22545          X"$ac_file" : 'X\(//\)$' \| \
   22546          X"$ac_file" : 'X\(/\)' \| \
   22547          .     : '\(.\)' 2>/dev/null ||
   22548 echo X"$ac_file" |
   22549     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   22550   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   22551   	  /^X\(\/\/\)$/{ s//\1/; q; }
   22552   	  /^X\(\/\).*/{ s//\1/; q; }
   22553   	  s/.*/./; q'`
   22554   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
   22555     { case "$ac_dir" in
   22556   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
   22557   *)                      as_incr_dir=.;;
   22558 esac
   22559 as_dummy="$ac_dir"
   22560 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
   22561   case $as_mkdir_dir in
   22562     # Skip DOS drivespec
   22563     ?:) as_incr_dir=$as_mkdir_dir ;;
   22564     *)
   22565       as_incr_dir=$as_incr_dir/$as_mkdir_dir
   22566       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
   22567     ;;
   22568   esac
   22569 done; }
   22570 
   22571     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
   22572     # A "../" for each directory in $ac_dir_suffix.
   22573     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
   22574   else
   22575     ac_dir_suffix= ac_dots=
   22576   fi
   22577 
   22578   case $srcdir in
   22579   .)  ac_srcdir=.
   22580       if test -z "$ac_dots"; then
   22581          ac_top_srcdir=.
   22582       else
   22583          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
   22584       fi ;;
   22585   [\\/]* | ?:[\\/]* )
   22586       ac_srcdir=$srcdir$ac_dir_suffix;
   22587       ac_top_srcdir=$srcdir ;;
   22588   *) # Relative path.
   22589     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
   22590     ac_top_srcdir=$ac_dots$srcdir ;;
   22591   esac
   22592 
   22593   case $INSTALL in
   22594   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   22595   *) ac_INSTALL=$ac_dots$INSTALL ;;
   22596   esac
   22597 
   22598   if test x"$ac_file" != x-; then
   22599     { echo "$as_me:22599: creating $ac_file" >&5
   22600 echo "$as_me: creating $ac_file" >&6;}
   22601     rm -f "$ac_file"
   22602   fi
   22603   # Let's still pretend it is `configure' which instantiates (i.e., don't
   22604   # use $as_me), people would be surprised to read:
   22605   #    /* config.h.  Generated automatically by config.status.  */
   22606   configure_input="Generated automatically from `echo $ac_file_in |
   22607                                                  sed 's,.*/,,'` by configure."
   22608 
   22609   # First look for the input files in the build tree, otherwise in the
   22610   # src tree.
   22611   ac_file_inputs=`IFS=:
   22612     for f in $ac_file_in; do
   22613       case $f in
   22614       -) echo $tmp/stdin ;;
   22615       [\\/$]*)
   22616          # Absolute (can't be DOS-style, as IFS=:)
   22617          test -f "$f" || { { echo "$as_me:22617: error: cannot find input file: $f" >&5
   22618 echo "$as_me: error: cannot find input file: $f" >&2;}
   22619    { (exit 1); exit 1; }; }
   22620          echo $f;;
   22621       *) # Relative
   22622          if test -f "$f"; then
   22623            # Build tree
   22624            echo $f
   22625          elif test -f "$srcdir/$f"; then
   22626            # Source tree
   22627            echo $srcdir/$f
   22628          else
   22629            # /dev/null tree
   22630            { { echo "$as_me:22630: error: cannot find input file: $f" >&5
   22631 echo "$as_me: error: cannot find input file: $f" >&2;}
   22632    { (exit 1); exit 1; }; }
   22633          fi;;
   22634       esac
   22635     done` || { (exit 1); exit 1; }
   22636 EOF
   22637 cat >>$CONFIG_STATUS <<\EOF
   22638   ac_warn_datarootdir=no
   22639   if test x"$ac_file" != x-; then
   22640     for ac_item in $ac_file_inputs
   22641     do
   22642       ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
   22643       if test -n "$ac_seen"; then
   22644         ac_used=`grep '@datarootdir@' $ac_item`
   22645         if test -z "$ac_used"; then
   22646           { echo "$as_me:22646: WARNING: datarootdir was used implicitly but not set:
   22647 $ac_seen" >&5
   22648 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
   22649 $ac_seen" >&2;}
   22650           ac_warn_datarootdir=yes
   22651         fi
   22652       fi
   22653       ac_seen=`grep '${datarootdir}' $ac_item`
   22654       if test -n "$ac_seen"; then
   22655         { echo "$as_me:22655: WARNING: datarootdir was used explicitly but not set:
   22656 $ac_seen" >&5
   22657 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
   22658 $ac_seen" >&2;}
   22659         ac_warn_datarootdir=yes
   22660       fi
   22661     done
   22662   fi
   22663 
   22664 if test "x$ac_warn_datarootdir" = xyes; then
   22665   ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
   22666 fi
   22667 
   22668 EOF
   22669 cat >>$CONFIG_STATUS <<EOF
   22670   sed "$ac_vpsub
   22671 $extrasub
   22672 EOF
   22673 cat >>$CONFIG_STATUS <<\EOF
   22674 :t
   22675 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   22676 s,@configure_input@,$configure_input,;t t
   22677 s,@srcdir@,$ac_srcdir,;t t
   22678 s,@top_srcdir@,$ac_top_srcdir,;t t
   22679 s,@INSTALL@,$ac_INSTALL,;t t
   22680 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
   22681   rm -f $tmp/stdin
   22682   if test x"$ac_file" != x-; then
   22683     cp $tmp/out $ac_file
   22684 
   22685     for ac_name in prefix exec_prefix datarootdir
   22686     do
   22687         ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
   22688         if test -n "$ac_seen"; then
   22689             ac_init=`egrep '[ 	]*'$ac_name'[ 	]*=' $ac_file`
   22690             if test -z "$ac_init"; then
   22691               ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
   22692               { echo "$as_me:22692: WARNING: Variable $ac_name is used but was not set:
   22693 $ac_seen" >&5
   22694 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
   22695 $ac_seen" >&2;}
   22696             fi
   22697         fi
   22698     done
   22699     egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
   22700     egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
   22701     if test -s $tmp/out; then
   22702       ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
   22703       { echo "$as_me:22703: WARNING: Some variables may not be substituted:
   22704 $ac_seen" >&5
   22705 echo "$as_me: WARNING: Some variables may not be substituted:
   22706 $ac_seen" >&2;}
   22707     fi
   22708   else
   22709     cat $tmp/out
   22710   fi
   22711   rm -f $tmp/out
   22712 
   22713 done
   22714 EOF
   22715 cat >>$CONFIG_STATUS <<\EOF
   22716 
   22717 #
   22718 # CONFIG_HEADER section.
   22719 #
   22720 
   22721 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
   22722 # NAME is the cpp macro being defined and VALUE is the value it is being given.
   22723 #
   22724 # ac_d sets the value in "#define NAME VALUE" lines.
   22725 ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
   22726 ac_dB='[ 	].*$,\1#\2'
   22727 ac_dC=' '
   22728 ac_dD=',;t'
   22729 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
   22730 ac_iA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
   22731 ac_iB='\([ 	]\),\1#\2define\3'
   22732 ac_iC=' '
   22733 ac_iD='\4,;t'
   22734 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
   22735 ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
   22736 ac_uB='$,\1#\2define\3'
   22737 ac_uC=' '
   22738 ac_uD=',;t'
   22739 
   22740 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
   22741   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   22742   case $ac_file in
   22743   - | *:- | *:-:* ) # input from stdin
   22744         cat >$tmp/stdin
   22745         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   22746         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   22747   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   22748         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   22749   * )   ac_file_in=$ac_file.in ;;
   22750   esac
   22751 
   22752   test x"$ac_file" != x- && { echo "$as_me:22752: creating $ac_file" >&5
   22753 echo "$as_me: creating $ac_file" >&6;}
   22754 
   22755   # First look for the input files in the build tree, otherwise in the
   22756   # src tree.
   22757   ac_file_inputs=`IFS=:
   22758     for f in $ac_file_in; do
   22759       case $f in
   22760       -) echo $tmp/stdin ;;
   22761       [\\/$]*)
   22762          # Absolute (can't be DOS-style, as IFS=:)
   22763          test -f "$f" || { { echo "$as_me:22763: error: cannot find input file: $f" >&5
   22764 echo "$as_me: error: cannot find input file: $f" >&2;}
   22765    { (exit 1); exit 1; }; }
   22766          echo $f;;
   22767       *) # Relative
   22768          if test -f "$f"; then
   22769            # Build tree
   22770            echo $f
   22771          elif test -f "$srcdir/$f"; then
   22772            # Source tree
   22773            echo $srcdir/$f
   22774          else
   22775            # /dev/null tree
   22776            { { echo "$as_me:22776: error: cannot find input file: $f" >&5
   22777 echo "$as_me: error: cannot find input file: $f" >&2;}
   22778    { (exit 1); exit 1; }; }
   22779          fi;;
   22780       esac
   22781     done` || { (exit 1); exit 1; }
   22782   # Remove the trailing spaces.
   22783   sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
   22784 
   22785 EOF
   22786 
   22787 # Transform confdefs.h into two sed scripts, `conftest.defines' and
   22788 # `conftest.undefs', that substitutes the proper values into
   22789 # config.h.in to produce config.h.  The first handles `#define'
   22790 # templates, and the second `#undef' templates.
   22791 # And first: Protect against being on the right side of a sed subst in
   22792 # config.status.  Protect against being in an unquoted here document
   22793 # in config.status.
   22794 rm -f conftest.defines conftest.undefs
   22795 # Using a here document instead of a string reduces the quoting nightmare.
   22796 # Putting comments in sed scripts is not portable.
   22797 #
   22798 # `end' is used to avoid that the second main sed command (meant for
   22799 # 0-ary CPP macros) applies to n-ary macro definitions.
   22800 # See the Autoconf documentation for `clear'.
   22801 cat >confdef2sed.sed <<\EOF
   22802 s/[\\&,]/\\&/g
   22803 s,[\\$`],\\&,g
   22804 t clear
   22805 : clear
   22806 s,^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
   22807 t end
   22808 s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
   22809 : end
   22810 EOF
   22811 # If some macros were called several times there might be several times
   22812 # the same #defines, which is useless.  Nevertheless, we may not want to
   22813 # sort them, since we want the *last* AC-DEFINE to be honored.
   22814 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
   22815 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
   22816 sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
   22817 rm -f confdef2sed.sed
   22818 
   22819 # This sed command replaces #undef with comments.  This is necessary, for
   22820 # example, in the case of _POSIX_SOURCE, which is predefined and required
   22821 # on some systems where configure will not decide to define it.
   22822 cat >>conftest.undefs <<\EOF
   22823 s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
   22824 EOF
   22825 
   22826 # Break up conftest.defines because some shells have a limit on the size
   22827 # of here documents, and old seds have small limits too (100 cmds).
   22828 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
   22829 echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
   22830 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
   22831 echo '  :' >>$CONFIG_STATUS
   22832 rm -f conftest.tail
   22833 while grep . conftest.defines >/dev/null
   22834 do
   22835   # Write a limited-size here document to $tmp/defines.sed.
   22836   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
   22837   # Speed up: don't consider the non `#define' lines.
   22838   echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
   22839   # Work around the forget-to-reset-the-flag bug.
   22840   echo 't clr' >>$CONFIG_STATUS
   22841   echo ': clr' >>$CONFIG_STATUS
   22842   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
   22843   echo 'CEOF
   22844   sed -f $tmp/defines.sed $tmp/in >$tmp/out
   22845   rm -f $tmp/in
   22846   mv $tmp/out $tmp/in
   22847 ' >>$CONFIG_STATUS
   22848   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
   22849   rm -f conftest.defines
   22850   mv conftest.tail conftest.defines
   22851 done
   22852 rm -f conftest.defines
   22853 echo '  fi # egrep' >>$CONFIG_STATUS
   22854 echo >>$CONFIG_STATUS
   22855 
   22856 # Break up conftest.undefs because some shells have a limit on the size
   22857 # of here documents, and old seds have small limits too (100 cmds).
   22858 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
   22859 rm -f conftest.tail
   22860 while grep . conftest.undefs >/dev/null
   22861 do
   22862   # Write a limited-size here document to $tmp/undefs.sed.
   22863   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
   22864   # Speed up: don't consider the non `#undef'
   22865   echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
   22866   # Work around the forget-to-reset-the-flag bug.
   22867   echo 't clr' >>$CONFIG_STATUS
   22868   echo ': clr' >>$CONFIG_STATUS
   22869   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
   22870   echo 'CEOF
   22871   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
   22872   rm -f $tmp/in
   22873   mv $tmp/out $tmp/in
   22874 ' >>$CONFIG_STATUS
   22875   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
   22876   rm -f conftest.undefs
   22877   mv conftest.tail conftest.undefs
   22878 done
   22879 rm -f conftest.undefs
   22880 
   22881 cat >>$CONFIG_STATUS <<\EOF
   22882   # Let's still pretend it is `configure' which instantiates (i.e., don't
   22883   # use $as_me), people would be surprised to read:
   22884   #    /* config.h.  Generated automatically by config.status.  */
   22885   if test x"$ac_file" = x-; then
   22886     echo "/* Generated automatically by configure.  */" >$tmp/config.h
   22887   else
   22888     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
   22889   fi
   22890   cat $tmp/in >>$tmp/config.h
   22891   rm -f $tmp/in
   22892   if test x"$ac_file" != x-; then
   22893     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
   22894       { echo "$as_me:22894: $ac_file is unchanged" >&5
   22895 echo "$as_me: $ac_file is unchanged" >&6;}
   22896     else
   22897       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   22898          X"$ac_file" : 'X\(//\)[^/]' \| \
   22899          X"$ac_file" : 'X\(//\)$' \| \
   22900          X"$ac_file" : 'X\(/\)' \| \
   22901          .     : '\(.\)' 2>/dev/null ||
   22902 echo X"$ac_file" |
   22903     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   22904   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   22905   	  /^X\(\/\/\)$/{ s//\1/; q; }
   22906   	  /^X\(\/\).*/{ s//\1/; q; }
   22907   	  s/.*/./; q'`
   22908       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
   22909         { case "$ac_dir" in
   22910   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
   22911   *)                      as_incr_dir=.;;
   22912 esac
   22913 as_dummy="$ac_dir"
   22914 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
   22915   case $as_mkdir_dir in
   22916     # Skip DOS drivespec
   22917     ?:) as_incr_dir=$as_mkdir_dir ;;
   22918     *)
   22919       as_incr_dir=$as_incr_dir/$as_mkdir_dir
   22920       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
   22921     ;;
   22922   esac
   22923 done; }
   22924 
   22925       fi
   22926       rm -f $ac_file
   22927       mv $tmp/config.h $ac_file
   22928     fi
   22929   else
   22930     cat $tmp/config.h
   22931     rm -f $tmp/config.h
   22932   fi
   22933 done
   22934 EOF
   22935 
   22936 cat >>$CONFIG_STATUS <<\EOF
   22937 
   22938 { (exit 0); exit 0; }
   22939 EOF
   22940 chmod +x $CONFIG_STATUS
   22941 ac_clean_files=$ac_clean_files_save
   22942 
   22943 # configure is writing to config.log, and then calls config.status.
   22944 # config.status does its own redirection, appending to config.log.
   22945 # Unfortunately, on DOS this fails, as config.log is still kept open
   22946 # by configure, so config.status won't be able to write to it; its
   22947 # output is simply discarded.  So we exec the FD to /dev/null,
   22948 # effectively closing config.log, so it can be properly (re)opened and
   22949 # appended to by config.status.  When coming back to configure, we
   22950 # need to make the FD available again.
   22951 if test "$no_create" != yes; then
   22952   ac_cs_success=:
   22953   exec 5>/dev/null
   22954   $SHELL $CONFIG_STATUS || ac_cs_success=false
   22955   exec 5>>config.log
   22956   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   22957   # would make configure fail if this is the last instruction.
   22958   $ac_cs_success || { (exit 1); exit 1; }
   22959 fi
   22960 
   22961