*** empty log message ***
[dana/urxvt.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/feature.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP TBL TIC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS'
313 ac_subst_files='MCOMMON'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 ac_env_CXXCPP_set=${CXXCPP+set}
782 ac_env_CXXCPP_value=$CXXCPP
783 ac_cv_env_CXXCPP_set=${CXXCPP+set}
784 ac_cv_env_CXXCPP_value=$CXXCPP
785
786 #
787 # Report the --help message.
788 #
789 if test "$ac_init_help" = "long"; then
790   # Omit some internal or obsolete options to make the list less imposing.
791   # This message is too long to be a string in the A/UX 3.1 sh.
792   cat <<_ACEOF
793 \`configure' configures this package to adapt to many kinds of systems.
794
795 Usage: $0 [OPTION]... [VAR=VALUE]...
796
797 To assign environment variables (e.g., CC, CFLAGS...), specify them as
798 VAR=VALUE.  See below for descriptions of some of the useful variables.
799
800 Defaults for the options are specified in brackets.
801
802 Configuration:
803   -h, --help              display this help and exit
804       --help=short        display options specific to this package
805       --help=recursive    display the short help of all the included packages
806   -V, --version           display version information and exit
807   -q, --quiet, --silent   do not print \`checking...' messages
808       --cache-file=FILE   cache test results in FILE [disabled]
809   -C, --config-cache      alias for \`--cache-file=config.cache'
810   -n, --no-create         do not create output files
811       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
812
813 _ACEOF
814
815   cat <<_ACEOF
816 Installation directories:
817   --prefix=PREFIX         install architecture-independent files in PREFIX
818                           [$ac_default_prefix]
819   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
820                           [PREFIX]
821
822 By default, \`make install' will install all the files in
823 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
824 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
825 for instance \`--prefix=\$HOME'.
826
827 For better control, use the options below.
828
829 Fine tuning of the installation directories:
830   --bindir=DIR           user executables [EPREFIX/bin]
831   --sbindir=DIR          system admin executables [EPREFIX/sbin]
832   --libexecdir=DIR       program executables [EPREFIX/libexec]
833   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
834   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
835   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
836   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
837   --libdir=DIR           object code libraries [EPREFIX/lib]
838   --includedir=DIR       C header files [PREFIX/include]
839   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
840   --infodir=DIR          info documentation [PREFIX/info]
841   --mandir=DIR           man documentation [PREFIX/man]
842 _ACEOF
843
844   cat <<\_ACEOF
845
846 X features:
847   --x-includes=DIR    X include files are in DIR
848   --x-libraries=DIR   X library files are in DIR
849
850 Program names:
851   --program-prefix=PREFIX            prepend PREFIX to installed program names
852   --program-suffix=SUFFIX            append SUFFIX to installed program names
853   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
854
855 System types:
856   --build=BUILD     configure for building on BUILD [guessed]
857   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
858 _ACEOF
859 fi
860
861 if test -n "$ac_init_help"; then
862
863   cat <<\_ACEOF
864
865 Optional Features:
866   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
867   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
868   --enable-everything     enable standard non-multichoice features
869                      NOTE: this option is order dependent
870                      NOTE: automatically enabled with --enable-shared
871   --enable-unicode3       use 21 instead of 16 bits to represent unicode characters
872   --enable-combining      enable composition of base and combining characters
873   --enable-xft            enable xft support on systems that have it
874   --enable-font-styles    enable bold and italic support
875   --enable-utmp           enable utmp (utmpx) support
876   --enable-wtmp           enable wtmp (wtmpx) support (requires --enable-utmp)
877   --enable-lastlog        enable lastlog support (requires --enable-utmp)
878   --enable-xpm-background enable XPM background pixmaps
879   --enable-transparency   enable transparent backgrounds
880   --enable-tinting        enable tinting of transparent bg
881   --enable-fading         enable colors fading when off focus
882   --enable-menubar        enable menubar
883   --enable-rxvt-scroll    enable rxvt style scrollbar
884   --enable-next-scroll    enable NeXT style scrollbar
885   --enable-xterm-scroll   enable Xterm style scrollbar
886   --enable-plain-scroll   enable plain style scrollbar
887   --enable-half-shadow    use half width/height shadow on rxvt scrollbar
888   --enable-xim            XIM (X Input Method) protocol support
889   --enable-ttygid         enable tty setting to group named "tty"
890   --disable-backspace-key disable handling of the backspace key
891   --disable-delete-key    disable handling of the delete key
892   --disable-resources     disable all resource checking
893   --enable-xgetdefault    enable resources via X instead of our small version
894   --enable-8bitctrls      enable 8 bit control sequences (not recommended)
895   --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
896   --enable-strings        enable some replacement system functions
897   --disable-swapscreen    disable swap screen support
898   --enable-iso14755       enable support for extended ISO 14755 modes
899   --enable-frills         enable support for rarely used features
900   --enable-24bit          enable support for using 24bit visuals if available
901   --enable-keepscrolling  enable continual scrolling on scrollbar arrow press
902   --enable-selectionscrolling  enable scrolling during selections
903   --enable-mousewheel     enable scrolling via mouse wheel or buttons 4 & 5
904   --enable-slipwheeling   enable slip wheel scrolling     (requires previous)
905   --enable-dmalloc        enable Gray Watson's malloc - for debugging use
906   --enable-dlmalloc       enable Doug Lea's malloc - for production use
907                      NOTE: enable only one malloc package
908   --enable-smart-resize   enable smart growth/shrink behaviour
909   --enable-text-blink     enable blinking text
910   --enable-pointer-blank  enable pointer blank when typing or inactive pointer
911
912 Optional Packages:
913   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
914   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
915   --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
916   --with-res-name=NAME    use this as default resource name (default: urxvt)
917   --with-res-class=CLASS  use this as the resource class (default: URxvt)
918   --with-name=NAME        set the basename for the installed binaries (default: urxvt)
919   --with-term=NAME        set the terminal to NAME (default: rxvt)
920   --with-terminfo=PATH    set the path to the terminfo tree to PATH
921   --with-x                use the X Window System
922   --with-xpm-includes=DIR use XPM includes in DIR
923   --with-xpm-library=DIR  use XPM library in DIR
924   --with-xpm              use XPM
925
926 Some influential environment variables:
927   CC          C compiler command
928   CFLAGS      C compiler flags
929   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
930               nonstandard directory <lib dir>
931   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
932               headers in a nonstandard directory <include dir>
933   CXX         C++ compiler command
934   CXXFLAGS    C++ compiler flags
935   CPP         C preprocessor
936   CXXCPP      C++ preprocessor
937
938 Use these variables to override the choices made by `configure' or to help
939 it to find libraries and programs with nonstandard names/locations.
940
941 _ACEOF
942 fi
943
944 if test "$ac_init_help" = "recursive"; then
945   # If there are subdirs, report their specific --help.
946   ac_popdir=`pwd`
947   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
948     test -d $ac_dir || continue
949     ac_builddir=.
950
951 if test "$ac_dir" != .; then
952   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
953   # A "../" for each directory in $ac_dir_suffix.
954   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
955 else
956   ac_dir_suffix= ac_top_builddir=
957 fi
958
959 case $srcdir in
960   .)  # No --srcdir option.  We are building in place.
961     ac_srcdir=.
962     if test -z "$ac_top_builddir"; then
963        ac_top_srcdir=.
964     else
965        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
966     fi ;;
967   [\\/]* | ?:[\\/]* )  # Absolute path.
968     ac_srcdir=$srcdir$ac_dir_suffix;
969     ac_top_srcdir=$srcdir ;;
970   *) # Relative path.
971     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
972     ac_top_srcdir=$ac_top_builddir$srcdir ;;
973 esac
974
975 # Do not use `cd foo && pwd` to compute absolute paths, because
976 # the directories may not exist.
977 case `pwd` in
978 .) ac_abs_builddir="$ac_dir";;
979 *)
980   case "$ac_dir" in
981   .) ac_abs_builddir=`pwd`;;
982   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
983   *) ac_abs_builddir=`pwd`/"$ac_dir";;
984   esac;;
985 esac
986 case $ac_abs_builddir in
987 .) ac_abs_top_builddir=${ac_top_builddir}.;;
988 *)
989   case ${ac_top_builddir}. in
990   .) ac_abs_top_builddir=$ac_abs_builddir;;
991   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
992   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
993   esac;;
994 esac
995 case $ac_abs_builddir in
996 .) ac_abs_srcdir=$ac_srcdir;;
997 *)
998   case $ac_srcdir in
999   .) ac_abs_srcdir=$ac_abs_builddir;;
1000   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1001   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1002   esac;;
1003 esac
1004 case $ac_abs_builddir in
1005 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1006 *)
1007   case $ac_top_srcdir in
1008   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1009   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1010   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1011   esac;;
1012 esac
1013
1014     cd $ac_dir
1015     # Check for guested configure; otherwise get Cygnus style configure.
1016     if test -f $ac_srcdir/configure.gnu; then
1017       echo
1018       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1019     elif test -f $ac_srcdir/configure; then
1020       echo
1021       $SHELL $ac_srcdir/configure  --help=recursive
1022     elif test -f $ac_srcdir/configure.ac ||
1023            test -f $ac_srcdir/configure.in; then
1024       echo
1025       $ac_configure --help
1026     else
1027       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1028     fi
1029     cd "$ac_popdir"
1030   done
1031 fi
1032
1033 test -n "$ac_init_help" && exit 0
1034 if $ac_init_version; then
1035   cat <<\_ACEOF
1036
1037 Copyright (C) 2003 Free Software Foundation, Inc.
1038 This configure script is free software; the Free Software Foundation
1039 gives unlimited permission to copy, distribute and modify it.
1040 _ACEOF
1041   exit 0
1042 fi
1043 exec 5>config.log
1044 cat >&5 <<_ACEOF
1045 This file contains any messages produced by compilers while
1046 running configure, to aid debugging if configure makes a mistake.
1047
1048 It was created by $as_me, which was
1049 generated by GNU Autoconf 2.59.  Invocation command line was
1050
1051   $ $0 $@
1052
1053 _ACEOF
1054 {
1055 cat <<_ASUNAME
1056 ## --------- ##
1057 ## Platform. ##
1058 ## --------- ##
1059
1060 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1061 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1062 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1063 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1064 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1065
1066 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1067 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1068
1069 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1070 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1071 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1072 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1073 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1074 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1075 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1076
1077 _ASUNAME
1078
1079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1080 for as_dir in $PATH
1081 do
1082   IFS=$as_save_IFS
1083   test -z "$as_dir" && as_dir=.
1084   echo "PATH: $as_dir"
1085 done
1086
1087 } >&5
1088
1089 cat >&5 <<_ACEOF
1090
1091
1092 ## ----------- ##
1093 ## Core tests. ##
1094 ## ----------- ##
1095
1096 _ACEOF
1097
1098
1099 # Keep a trace of the command line.
1100 # Strip out --no-create and --no-recursion so they do not pile up.
1101 # Strip out --silent because we don't want to record it for future runs.
1102 # Also quote any args containing shell meta-characters.
1103 # Make two passes to allow for proper duplicate-argument suppression.
1104 ac_configure_args=
1105 ac_configure_args0=
1106 ac_configure_args1=
1107 ac_sep=
1108 ac_must_keep_next=false
1109 for ac_pass in 1 2
1110 do
1111   for ac_arg
1112   do
1113     case $ac_arg in
1114     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1115     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116     | -silent | --silent | --silen | --sile | --sil)
1117       continue ;;
1118     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1119       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1120     esac
1121     case $ac_pass in
1122     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1123     2)
1124       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1125       if test $ac_must_keep_next = true; then
1126         ac_must_keep_next=false # Got value, back to normal.
1127       else
1128         case $ac_arg in
1129           *=* | --config-cache | -C | -disable-* | --disable-* \
1130           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1131           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1132           | -with-* | --with-* | -without-* | --without-* | --x)
1133             case "$ac_configure_args0 " in
1134               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1135             esac
1136             ;;
1137           -* ) ac_must_keep_next=true ;;
1138         esac
1139       fi
1140       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1141       # Get rid of the leading space.
1142       ac_sep=" "
1143       ;;
1144     esac
1145   done
1146 done
1147 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1148 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1149
1150 # When interrupted or exit'd, cleanup temporary files, and complete
1151 # config.log.  We remove comments because anyway the quotes in there
1152 # would cause problems or look ugly.
1153 # WARNING: Be sure not to use single quotes in there, as some shells,
1154 # such as our DU 5.0 friend, will then `close' the trap.
1155 trap 'exit_status=$?
1156   # Save into config.log some information that might help in debugging.
1157   {
1158     echo
1159
1160     cat <<\_ASBOX
1161 ## ---------------- ##
1162 ## Cache variables. ##
1163 ## ---------------- ##
1164 _ASBOX
1165     echo
1166     # The following way of writing the cache mishandles newlines in values,
1167 {
1168   (set) 2>&1 |
1169     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1170     *ac_space=\ *)
1171       sed -n \
1172         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1173           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1174       ;;
1175     *)
1176       sed -n \
1177         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1178       ;;
1179     esac;
1180 }
1181     echo
1182
1183     cat <<\_ASBOX
1184 ## ----------------- ##
1185 ## Output variables. ##
1186 ## ----------------- ##
1187 _ASBOX
1188     echo
1189     for ac_var in $ac_subst_vars
1190     do
1191       eval ac_val=$`echo $ac_var`
1192       echo "$ac_var='"'"'$ac_val'"'"'"
1193     done | sort
1194     echo
1195
1196     if test -n "$ac_subst_files"; then
1197       cat <<\_ASBOX
1198 ## ------------- ##
1199 ## Output files. ##
1200 ## ------------- ##
1201 _ASBOX
1202       echo
1203       for ac_var in $ac_subst_files
1204       do
1205         eval ac_val=$`echo $ac_var`
1206         echo "$ac_var='"'"'$ac_val'"'"'"
1207       done | sort
1208       echo
1209     fi
1210
1211     if test -s confdefs.h; then
1212       cat <<\_ASBOX
1213 ## ----------- ##
1214 ## confdefs.h. ##
1215 ## ----------- ##
1216 _ASBOX
1217       echo
1218       sed "/^$/d" confdefs.h | sort
1219       echo
1220     fi
1221     test "$ac_signal" != 0 &&
1222       echo "$as_me: caught signal $ac_signal"
1223     echo "$as_me: exit $exit_status"
1224   } >&5
1225   rm -f core *.core &&
1226   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1227     exit $exit_status
1228      ' 0
1229 for ac_signal in 1 2 13 15; do
1230   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1231 done
1232 ac_signal=0
1233
1234 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1235 rm -rf conftest* confdefs.h
1236 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1237 echo >confdefs.h
1238
1239 # Predefined preprocessor variables.
1240
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_NAME "$PACKAGE_NAME"
1243 _ACEOF
1244
1245
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1248 _ACEOF
1249
1250
1251 cat >>confdefs.h <<_ACEOF
1252 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1253 _ACEOF
1254
1255
1256 cat >>confdefs.h <<_ACEOF
1257 #define PACKAGE_STRING "$PACKAGE_STRING"
1258 _ACEOF
1259
1260
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1263 _ACEOF
1264
1265
1266 # Let the site file select an alternate cache file if it wants to.
1267 # Prefer explicitly selected file to automatically selected ones.
1268 if test -z "$CONFIG_SITE"; then
1269   if test "x$prefix" != xNONE; then
1270     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1271   else
1272     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1273   fi
1274 fi
1275 for ac_site_file in $CONFIG_SITE; do
1276   if test -r "$ac_site_file"; then
1277     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1278 echo "$as_me: loading site script $ac_site_file" >&6;}
1279     sed 's/^/| /' "$ac_site_file" >&5
1280     . "$ac_site_file"
1281   fi
1282 done
1283
1284 if test -r "$cache_file"; then
1285   # Some versions of bash will fail to source /dev/null (special
1286   # files actually), so we avoid doing that.
1287   if test -f "$cache_file"; then
1288     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1289 echo "$as_me: loading cache $cache_file" >&6;}
1290     case $cache_file in
1291       [\\/]* | ?:[\\/]* ) . $cache_file;;
1292       *)                      . ./$cache_file;;
1293     esac
1294   fi
1295 else
1296   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1297 echo "$as_me: creating cache $cache_file" >&6;}
1298   >$cache_file
1299 fi
1300
1301 # Check that the precious variables saved in the cache have kept the same
1302 # value.
1303 ac_cache_corrupted=false
1304 for ac_var in `(set) 2>&1 |
1305                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1306   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1307   eval ac_new_set=\$ac_env_${ac_var}_set
1308   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1309   eval ac_new_val="\$ac_env_${ac_var}_value"
1310   case $ac_old_set,$ac_new_set in
1311     set,)
1312       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1313 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1314       ac_cache_corrupted=: ;;
1315     ,set)
1316       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1317 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1318       ac_cache_corrupted=: ;;
1319     ,);;
1320     *)
1321       if test "x$ac_old_val" != "x$ac_new_val"; then
1322         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1323 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1324         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1325 echo "$as_me:   former value:  $ac_old_val" >&2;}
1326         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1327 echo "$as_me:   current value: $ac_new_val" >&2;}
1328         ac_cache_corrupted=:
1329       fi;;
1330   esac
1331   # Pass precious variables to config.status.
1332   if test "$ac_new_set" = set; then
1333     case $ac_new_val in
1334     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1335       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1336     *) ac_arg=$ac_var=$ac_new_val ;;
1337     esac
1338     case " $ac_configure_args " in
1339       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1340       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1341     esac
1342   fi
1343 done
1344 if $ac_cache_corrupted; then
1345   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1346 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1347   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1348 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1349    { (exit 1); exit 1; }; }
1350 fi
1351
1352 ac_ext=c
1353 ac_cpp='$CPP $CPPFLAGS'
1354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377 ac_aux_dir=
1378 for ac_dir in autoconf $srcdir/autoconf; do
1379   if test -f $ac_dir/install-sh; then
1380     ac_aux_dir=$ac_dir
1381     ac_install_sh="$ac_aux_dir/install-sh -c"
1382     break
1383   elif test -f $ac_dir/install.sh; then
1384     ac_aux_dir=$ac_dir
1385     ac_install_sh="$ac_aux_dir/install.sh -c"
1386     break
1387   elif test -f $ac_dir/shtool; then
1388     ac_aux_dir=$ac_dir
1389     ac_install_sh="$ac_aux_dir/shtool install -c"
1390     break
1391   fi
1392 done
1393 if test -z "$ac_aux_dir"; then
1394   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1395 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1396    { (exit 1); exit 1; }; }
1397 fi
1398 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1399 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1400 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1401
1402           ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
1403
1404
1405 # Make sure we can run config.sub.
1406 $ac_config_sub sun4 >/dev/null 2>&1 ||
1407   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1408 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1409    { (exit 1); exit 1; }; }
1410
1411 echo "$as_me:$LINENO: checking build system type" >&5
1412 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1413 if test "${ac_cv_build+set}" = set; then
1414   echo $ECHO_N "(cached) $ECHO_C" >&6
1415 else
1416   ac_cv_build_alias=$build_alias
1417 test -z "$ac_cv_build_alias" &&
1418   ac_cv_build_alias=`$ac_config_guess`
1419 test -z "$ac_cv_build_alias" &&
1420   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1421 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1422    { (exit 1); exit 1; }; }
1423 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1424   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1425 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1426    { (exit 1); exit 1; }; }
1427
1428 fi
1429 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1430 echo "${ECHO_T}$ac_cv_build" >&6
1431 build=$ac_cv_build
1432 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1433 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1434 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1435
1436
1437 echo "$as_me:$LINENO: checking host system type" >&5
1438 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1439 if test "${ac_cv_host+set}" = set; then
1440   echo $ECHO_N "(cached) $ECHO_C" >&6
1441 else
1442   ac_cv_host_alias=$host_alias
1443 test -z "$ac_cv_host_alias" &&
1444   ac_cv_host_alias=$ac_cv_build_alias
1445 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1446   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1447 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1448    { (exit 1); exit 1; }; }
1449
1450 fi
1451 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1452 echo "${ECHO_T}$ac_cv_host" >&6
1453 host=$ac_cv_host
1454 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1455 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1456 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1457
1458
1459
1460 VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1461 DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1462 echo ""
1463 echo "configuring for rxvt $VERSION"
1464 echo ""
1465
1466
1467 ac_ext=c
1468 ac_cpp='$CPP $CPPFLAGS'
1469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1472 if test -n "$ac_tool_prefix"; then
1473   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1474 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_CC+set}" = set; then
1478   echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480   if test -n "$CC"; then
1481   ac_cv_prog_CC="$CC" # Let the user override the test.
1482 else
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 for as_dir in $PATH
1485 do
1486   IFS=$as_save_IFS
1487   test -z "$as_dir" && as_dir=.
1488   for ac_exec_ext in '' $ac_executable_extensions; do
1489   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492     break 2
1493   fi
1494 done
1495 done
1496
1497 fi
1498 fi
1499 CC=$ac_cv_prog_CC
1500 if test -n "$CC"; then
1501   echo "$as_me:$LINENO: result: $CC" >&5
1502 echo "${ECHO_T}$CC" >&6
1503 else
1504   echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1506 fi
1507
1508 fi
1509 if test -z "$ac_cv_prog_CC"; then
1510   ac_ct_CC=$CC
1511   # Extract the first word of "gcc", so it can be a program name with args.
1512 set dummy gcc; ac_word=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1516   echo $ECHO_N "(cached) $ECHO_C" >&6
1517 else
1518   if test -n "$ac_ct_CC"; then
1519   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1520 else
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 for as_dir in $PATH
1523 do
1524   IFS=$as_save_IFS
1525   test -z "$as_dir" && as_dir=.
1526   for ac_exec_ext in '' $ac_executable_extensions; do
1527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528     ac_cv_prog_ac_ct_CC="gcc"
1529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530     break 2
1531   fi
1532 done
1533 done
1534
1535 fi
1536 fi
1537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1538 if test -n "$ac_ct_CC"; then
1539   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1540 echo "${ECHO_T}$ac_ct_CC" >&6
1541 else
1542   echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1544 fi
1545
1546   CC=$ac_ct_CC
1547 else
1548   CC="$ac_cv_prog_CC"
1549 fi
1550
1551 if test -z "$CC"; then
1552   if test -n "$ac_tool_prefix"; then
1553   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1554 set dummy ${ac_tool_prefix}cc; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_CC+set}" = set; then
1558   echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560   if test -n "$CC"; then
1561   ac_cv_prog_CC="$CC" # Let the user override the test.
1562 else
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 for as_dir in $PATH
1565 do
1566   IFS=$as_save_IFS
1567   test -z "$as_dir" && as_dir=.
1568   for ac_exec_ext in '' $ac_executable_extensions; do
1569   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570     ac_cv_prog_CC="${ac_tool_prefix}cc"
1571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572     break 2
1573   fi
1574 done
1575 done
1576
1577 fi
1578 fi
1579 CC=$ac_cv_prog_CC
1580 if test -n "$CC"; then
1581   echo "$as_me:$LINENO: result: $CC" >&5
1582 echo "${ECHO_T}$CC" >&6
1583 else
1584   echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1586 fi
1587
1588 fi
1589 if test -z "$ac_cv_prog_CC"; then
1590   ac_ct_CC=$CC
1591   # Extract the first word of "cc", so it can be a program name with args.
1592 set dummy cc; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1596   echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598   if test -n "$ac_ct_CC"; then
1599   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1600 else
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 for as_dir in $PATH
1603 do
1604   IFS=$as_save_IFS
1605   test -z "$as_dir" && as_dir=.
1606   for ac_exec_ext in '' $ac_executable_extensions; do
1607   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608     ac_cv_prog_ac_ct_CC="cc"
1609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610     break 2
1611   fi
1612 done
1613 done
1614
1615 fi
1616 fi
1617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1618 if test -n "$ac_ct_CC"; then
1619   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1620 echo "${ECHO_T}$ac_ct_CC" >&6
1621 else
1622   echo "$as_me:$LINENO: result: no" >&5
1623 echo "${ECHO_T}no" >&6
1624 fi
1625
1626   CC=$ac_ct_CC
1627 else
1628   CC="$ac_cv_prog_CC"
1629 fi
1630
1631 fi
1632 if test -z "$CC"; then
1633   # Extract the first word of "cc", so it can be a program name with args.
1634 set dummy cc; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_CC+set}" = set; then
1638   echo $ECHO_N "(cached) $ECHO_C" >&6
1639 else
1640   if test -n "$CC"; then
1641   ac_cv_prog_CC="$CC" # Let the user override the test.
1642 else
1643   ac_prog_rejected=no
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1646 do
1647   IFS=$as_save_IFS
1648   test -z "$as_dir" && as_dir=.
1649   for ac_exec_ext in '' $ac_executable_extensions; do
1650   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1652        ac_prog_rejected=yes
1653        continue
1654      fi
1655     ac_cv_prog_CC="cc"
1656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657     break 2
1658   fi
1659 done
1660 done
1661
1662 if test $ac_prog_rejected = yes; then
1663   # We found a bogon in the path, so make sure we never use it.
1664   set dummy $ac_cv_prog_CC
1665   shift
1666   if test $# != 0; then
1667     # We chose a different compiler from the bogus one.
1668     # However, it has the same basename, so the bogon will be chosen
1669     # first if we set CC to just the basename; use the full file name.
1670     shift
1671     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1672   fi
1673 fi
1674 fi
1675 fi
1676 CC=$ac_cv_prog_CC
1677 if test -n "$CC"; then
1678   echo "$as_me:$LINENO: result: $CC" >&5
1679 echo "${ECHO_T}$CC" >&6
1680 else
1681   echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1683 fi
1684
1685 fi
1686 if test -z "$CC"; then
1687   if test -n "$ac_tool_prefix"; then
1688   for ac_prog in cl
1689   do
1690     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_CC+set}" = set; then
1695   echo $ECHO_N "(cached) $ECHO_C" >&6
1696 else
1697   if test -n "$CC"; then
1698   ac_cv_prog_CC="$CC" # Let the user override the test.
1699 else
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703   IFS=$as_save_IFS
1704   test -z "$as_dir" && as_dir=.
1705   for ac_exec_ext in '' $ac_executable_extensions; do
1706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709     break 2
1710   fi
1711 done
1712 done
1713
1714 fi
1715 fi
1716 CC=$ac_cv_prog_CC
1717 if test -n "$CC"; then
1718   echo "$as_me:$LINENO: result: $CC" >&5
1719 echo "${ECHO_T}$CC" >&6
1720 else
1721   echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1723 fi
1724
1725     test -n "$CC" && break
1726   done
1727 fi
1728 if test -z "$CC"; then
1729   ac_ct_CC=$CC
1730   for ac_prog in cl
1731 do
1732   # Extract the first word of "$ac_prog", so it can be a program name with args.
1733 set dummy $ac_prog; ac_word=$2
1734 echo "$as_me:$LINENO: checking for $ac_word" >&5
1735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737   echo $ECHO_N "(cached) $ECHO_C" >&6
1738 else
1739   if test -n "$ac_ct_CC"; then
1740   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1741 else
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 for as_dir in $PATH
1744 do
1745   IFS=$as_save_IFS
1746   test -z "$as_dir" && as_dir=.
1747   for ac_exec_ext in '' $ac_executable_extensions; do
1748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749     ac_cv_prog_ac_ct_CC="$ac_prog"
1750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751     break 2
1752   fi
1753 done
1754 done
1755
1756 fi
1757 fi
1758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759 if test -n "$ac_ct_CC"; then
1760   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761 echo "${ECHO_T}$ac_ct_CC" >&6
1762 else
1763   echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1765 fi
1766
1767   test -n "$ac_ct_CC" && break
1768 done
1769
1770   CC=$ac_ct_CC
1771 fi
1772
1773 fi
1774
1775
1776 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1777 See \`config.log' for more details." >&5
1778 echo "$as_me: error: no acceptable C compiler found in \$PATH
1779 See \`config.log' for more details." >&2;}
1780    { (exit 1); exit 1; }; }
1781
1782 # Provide some information about the compiler.
1783 echo "$as_me:$LINENO:" \
1784      "checking for C compiler version" >&5
1785 ac_compiler=`set X $ac_compile; echo $2`
1786 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1787   (eval $ac_compiler --version </dev/null >&5) 2>&5
1788   ac_status=$?
1789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790   (exit $ac_status); }
1791 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1792   (eval $ac_compiler -v </dev/null >&5) 2>&5
1793   ac_status=$?
1794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795   (exit $ac_status); }
1796 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1797   (eval $ac_compiler -V </dev/null >&5) 2>&5
1798   ac_status=$?
1799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800   (exit $ac_status); }
1801
1802 cat >conftest.$ac_ext <<_ACEOF
1803 /* confdefs.h.  */
1804 _ACEOF
1805 cat confdefs.h >>conftest.$ac_ext
1806 cat >>conftest.$ac_ext <<_ACEOF
1807 /* end confdefs.h.  */
1808
1809 int
1810 main ()
1811 {
1812
1813   ;
1814   return 0;
1815 }
1816 _ACEOF
1817 ac_clean_files_save=$ac_clean_files
1818 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1819 # Try to create an executable without -o first, disregard a.out.
1820 # It will help us diagnose broken compilers, and finding out an intuition
1821 # of exeext.
1822 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1823 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1824 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1825 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1826   (eval $ac_link_default) 2>&5
1827   ac_status=$?
1828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1829   (exit $ac_status); }; then
1830   # Find the output, starting from the most likely.  This scheme is
1831 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1832 # resort.
1833
1834 # Be careful to initialize this variable, since it used to be cached.
1835 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1836 ac_cv_exeext=
1837 # b.out is created by i960 compilers.
1838 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1839 do
1840   test -f "$ac_file" || continue
1841   case $ac_file in
1842     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1843         ;;
1844     conftest.$ac_ext )
1845         # This is the source file.
1846         ;;
1847     [ab].out )
1848         # We found the default executable, but exeext='' is most
1849         # certainly right.
1850         break;;
1851     *.* )
1852         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1853         # FIXME: I believe we export ac_cv_exeext for Libtool,
1854         # but it would be cool to find out if it's true.  Does anybody
1855         # maintain Libtool? --akim.
1856         export ac_cv_exeext
1857         break;;
1858     * )
1859         break;;
1860   esac
1861 done
1862 else
1863   echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1865
1866 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1867 See \`config.log' for more details." >&5
1868 echo "$as_me: error: C compiler cannot create executables
1869 See \`config.log' for more details." >&2;}
1870    { (exit 77); exit 77; }; }
1871 fi
1872
1873 ac_exeext=$ac_cv_exeext
1874 echo "$as_me:$LINENO: result: $ac_file" >&5
1875 echo "${ECHO_T}$ac_file" >&6
1876
1877 # Check the compiler produces executables we can run.  If not, either
1878 # the compiler is broken, or we cross compile.
1879 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1880 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1881 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1882 # If not cross compiling, check that we can run a simple program.
1883 if test "$cross_compiling" != yes; then
1884   if { ac_try='./$ac_file'
1885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1886   (eval $ac_try) 2>&5
1887   ac_status=$?
1888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889   (exit $ac_status); }; }; then
1890     cross_compiling=no
1891   else
1892     if test "$cross_compiling" = maybe; then
1893         cross_compiling=yes
1894     else
1895         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1896 If you meant to cross compile, use \`--host'.
1897 See \`config.log' for more details." >&5
1898 echo "$as_me: error: cannot run C compiled programs.
1899 If you meant to cross compile, use \`--host'.
1900 See \`config.log' for more details." >&2;}
1901    { (exit 1); exit 1; }; }
1902     fi
1903   fi
1904 fi
1905 echo "$as_me:$LINENO: result: yes" >&5
1906 echo "${ECHO_T}yes" >&6
1907
1908 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1909 ac_clean_files=$ac_clean_files_save
1910 # Check the compiler produces executables we can run.  If not, either
1911 # the compiler is broken, or we cross compile.
1912 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1913 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1914 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1915 echo "${ECHO_T}$cross_compiling" >&6
1916
1917 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1918 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1920   (eval $ac_link) 2>&5
1921   ac_status=$?
1922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923   (exit $ac_status); }; then
1924   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1925 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1926 # work properly (i.e., refer to `conftest.exe'), while it won't with
1927 # `rm'.
1928 for ac_file in conftest.exe conftest conftest.*; do
1929   test -f "$ac_file" || continue
1930   case $ac_file in
1931     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1932     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1933           export ac_cv_exeext
1934           break;;
1935     * ) break;;
1936   esac
1937 done
1938 else
1939   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1942 See \`config.log' for more details." >&2;}
1943    { (exit 1); exit 1; }; }
1944 fi
1945
1946 rm -f conftest$ac_cv_exeext
1947 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1948 echo "${ECHO_T}$ac_cv_exeext" >&6
1949
1950 rm -f conftest.$ac_ext
1951 EXEEXT=$ac_cv_exeext
1952 ac_exeext=$EXEEXT
1953 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1954 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1955 if test "${ac_cv_objext+set}" = set; then
1956   echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958   cat >conftest.$ac_ext <<_ACEOF
1959 /* confdefs.h.  */
1960 _ACEOF
1961 cat confdefs.h >>conftest.$ac_ext
1962 cat >>conftest.$ac_ext <<_ACEOF
1963 /* end confdefs.h.  */
1964
1965 int
1966 main ()
1967 {
1968
1969   ;
1970   return 0;
1971 }
1972 _ACEOF
1973 rm -f conftest.o conftest.obj
1974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1975   (eval $ac_compile) 2>&5
1976   ac_status=$?
1977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978   (exit $ac_status); }; then
1979   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1980   case $ac_file in
1981     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1982     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1983        break;;
1984   esac
1985 done
1986 else
1987   echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1989
1990 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1991 See \`config.log' for more details." >&5
1992 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1993 See \`config.log' for more details." >&2;}
1994    { (exit 1); exit 1; }; }
1995 fi
1996
1997 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1998 fi
1999 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2000 echo "${ECHO_T}$ac_cv_objext" >&6
2001 OBJEXT=$ac_cv_objext
2002 ac_objext=$OBJEXT
2003 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2004 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2005 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   cat >conftest.$ac_ext <<_ACEOF
2009 /* confdefs.h.  */
2010 _ACEOF
2011 cat confdefs.h >>conftest.$ac_ext
2012 cat >>conftest.$ac_ext <<_ACEOF
2013 /* end confdefs.h.  */
2014
2015 int
2016 main ()
2017 {
2018 #ifndef __GNUC__
2019        choke me
2020 #endif
2021
2022   ;
2023   return 0;
2024 }
2025 _ACEOF
2026 rm -f conftest.$ac_objext
2027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028   (eval $ac_compile) 2>conftest.er1
2029   ac_status=$?
2030   grep -v '^ *+' conftest.er1 >conftest.err
2031   rm -f conftest.er1
2032   cat conftest.err >&5
2033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034   (exit $ac_status); } &&
2035          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037   (eval $ac_try) 2>&5
2038   ac_status=$?
2039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040   (exit $ac_status); }; } &&
2041          { ac_try='test -s conftest.$ac_objext'
2042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043   (eval $ac_try) 2>&5
2044   ac_status=$?
2045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046   (exit $ac_status); }; }; then
2047   ac_compiler_gnu=yes
2048 else
2049   echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2051
2052 ac_compiler_gnu=no
2053 fi
2054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2055 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2056
2057 fi
2058 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2059 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2060 GCC=`test $ac_compiler_gnu = yes && echo yes`
2061 ac_test_CFLAGS=${CFLAGS+set}
2062 ac_save_CFLAGS=$CFLAGS
2063 CFLAGS="-g"
2064 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2065 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2066 if test "${ac_cv_prog_cc_g+set}" = set; then
2067   echo $ECHO_N "(cached) $ECHO_C" >&6
2068 else
2069   cat >conftest.$ac_ext <<_ACEOF
2070 /* confdefs.h.  */
2071 _ACEOF
2072 cat confdefs.h >>conftest.$ac_ext
2073 cat >>conftest.$ac_ext <<_ACEOF
2074 /* end confdefs.h.  */
2075
2076 int
2077 main ()
2078 {
2079
2080   ;
2081   return 0;
2082 }
2083 _ACEOF
2084 rm -f conftest.$ac_objext
2085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086   (eval $ac_compile) 2>conftest.er1
2087   ac_status=$?
2088   grep -v '^ *+' conftest.er1 >conftest.err
2089   rm -f conftest.er1
2090   cat conftest.err >&5
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); } &&
2093          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095   (eval $ac_try) 2>&5
2096   ac_status=$?
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); }; } &&
2099          { ac_try='test -s conftest.$ac_objext'
2100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101   (eval $ac_try) 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); }; }; then
2105   ac_cv_prog_cc_g=yes
2106 else
2107   echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2109
2110 ac_cv_prog_cc_g=no
2111 fi
2112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113 fi
2114 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2115 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2116 if test "$ac_test_CFLAGS" = set; then
2117   CFLAGS=$ac_save_CFLAGS
2118 elif test $ac_cv_prog_cc_g = yes; then
2119   if test "$GCC" = yes; then
2120     CFLAGS="-g -O2"
2121   else
2122     CFLAGS="-g"
2123   fi
2124 else
2125   if test "$GCC" = yes; then
2126     CFLAGS="-O2"
2127   else
2128     CFLAGS=
2129   fi
2130 fi
2131 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2132 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2133 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2134   echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136   ac_cv_prog_cc_stdc=no
2137 ac_save_CC=$CC
2138 cat >conftest.$ac_ext <<_ACEOF
2139 /* confdefs.h.  */
2140 _ACEOF
2141 cat confdefs.h >>conftest.$ac_ext
2142 cat >>conftest.$ac_ext <<_ACEOF
2143 /* end confdefs.h.  */
2144 #include <stdarg.h>
2145 #include <stdio.h>
2146 #include <sys/types.h>
2147 #include <sys/stat.h>
2148 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2149 struct buf { int x; };
2150 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2151 static char *e (p, i)
2152      char **p;
2153      int i;
2154 {
2155   return p[i];
2156 }
2157 static char *f (char * (*g) (char **, int), char **p, ...)
2158 {
2159   char *s;
2160   va_list v;
2161   va_start (v,p);
2162   s = g (p, va_arg (v,int));
2163   va_end (v);
2164   return s;
2165 }
2166
2167 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2168    function prototypes and stuff, but not '\xHH' hex character constants.
2169    These don't provoke an error unfortunately, instead are silently treated
2170    as 'x'.  The following induces an error, until -std1 is added to get
2171    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2172    array size at least.  It's necessary to write '\x00'==0 to get something
2173    that's true only with -std1.  */
2174 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2175
2176 int test (int i, double x);
2177 struct s1 {int (*f) (int a);};
2178 struct s2 {int (*f) (double a);};
2179 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2180 int argc;
2181 char **argv;
2182 int
2183 main ()
2184 {
2185 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2186   ;
2187   return 0;
2188 }
2189 _ACEOF
2190 # Don't try gcc -ansi; that turns off useful extensions and
2191 # breaks some systems' header files.
2192 # AIX                   -qlanglvl=ansi
2193 # Ultrix and OSF/1      -std1
2194 # HP-UX 10.20 and later -Ae
2195 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2196 # SVR4                  -Xc -D__EXTENSIONS__
2197 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2198 do
2199   CC="$ac_save_CC $ac_arg"
2200   rm -f conftest.$ac_objext
2201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202   (eval $ac_compile) 2>conftest.er1
2203   ac_status=$?
2204   grep -v '^ *+' conftest.er1 >conftest.err
2205   rm -f conftest.er1
2206   cat conftest.err >&5
2207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208   (exit $ac_status); } &&
2209          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211   (eval $ac_try) 2>&5
2212   ac_status=$?
2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214   (exit $ac_status); }; } &&
2215          { ac_try='test -s conftest.$ac_objext'
2216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217   (eval $ac_try) 2>&5
2218   ac_status=$?
2219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220   (exit $ac_status); }; }; then
2221   ac_cv_prog_cc_stdc=$ac_arg
2222 break
2223 else
2224   echo "$as_me: failed program was:" >&5
2225 sed 's/^/| /' conftest.$ac_ext >&5
2226
2227 fi
2228 rm -f conftest.err conftest.$ac_objext
2229 done
2230 rm -f conftest.$ac_ext conftest.$ac_objext
2231 CC=$ac_save_CC
2232
2233 fi
2234
2235 case "x$ac_cv_prog_cc_stdc" in
2236   x|xno)
2237     echo "$as_me:$LINENO: result: none needed" >&5
2238 echo "${ECHO_T}none needed" >&6 ;;
2239   *)
2240     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2241 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2242     CC="$CC $ac_cv_prog_cc_stdc" ;;
2243 esac
2244
2245 # Some people use a C++ compiler to compile C.  Since we use `exit',
2246 # in C++ we need to declare it.  In case someone uses the same compiler
2247 # for both compiling C and C++ we need to have the C++ compiler decide
2248 # the declaration of exit, since it's the most demanding environment.
2249 cat >conftest.$ac_ext <<_ACEOF
2250 #ifndef __cplusplus
2251   choke me
2252 #endif
2253 _ACEOF
2254 rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256   (eval $ac_compile) 2>conftest.er1
2257   ac_status=$?
2258   grep -v '^ *+' conftest.er1 >conftest.err
2259   rm -f conftest.er1
2260   cat conftest.err >&5
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); } &&
2263          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265   (eval $ac_try) 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); }; } &&
2269          { ac_try='test -s conftest.$ac_objext'
2270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271   (eval $ac_try) 2>&5
2272   ac_status=$?
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); }; }; then
2275   for ac_declaration in \
2276    '' \
2277    'extern "C" void std::exit (int) throw (); using std::exit;' \
2278    'extern "C" void std::exit (int); using std::exit;' \
2279    'extern "C" void exit (int) throw ();' \
2280    'extern "C" void exit (int);' \
2281    'void exit (int);'
2282 do
2283   cat >conftest.$ac_ext <<_ACEOF
2284 /* confdefs.h.  */
2285 _ACEOF
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h.  */
2289 $ac_declaration
2290 #include <stdlib.h>
2291 int
2292 main ()
2293 {
2294 exit (42);
2295   ;
2296   return 0;
2297 }
2298 _ACEOF
2299 rm -f conftest.$ac_objext
2300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2301   (eval $ac_compile) 2>conftest.er1
2302   ac_status=$?
2303   grep -v '^ *+' conftest.er1 >conftest.err
2304   rm -f conftest.er1
2305   cat conftest.err >&5
2306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307   (exit $ac_status); } &&
2308          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310   (eval $ac_try) 2>&5
2311   ac_status=$?
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); }; } &&
2314          { ac_try='test -s conftest.$ac_objext'
2315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316   (eval $ac_try) 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }; }; then
2320   :
2321 else
2322   echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2324
2325 continue
2326 fi
2327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328   cat >conftest.$ac_ext <<_ACEOF
2329 /* confdefs.h.  */
2330 _ACEOF
2331 cat confdefs.h >>conftest.$ac_ext
2332 cat >>conftest.$ac_ext <<_ACEOF
2333 /* end confdefs.h.  */
2334 $ac_declaration
2335 int
2336 main ()
2337 {
2338 exit (42);
2339   ;
2340   return 0;
2341 }
2342 _ACEOF
2343 rm -f conftest.$ac_objext
2344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345   (eval $ac_compile) 2>conftest.er1
2346   ac_status=$?
2347   grep -v '^ *+' conftest.er1 >conftest.err
2348   rm -f conftest.er1
2349   cat conftest.err >&5
2350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351   (exit $ac_status); } &&
2352          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354   (eval $ac_try) 2>&5
2355   ac_status=$?
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); }; } &&
2358          { ac_try='test -s conftest.$ac_objext'
2359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360   (eval $ac_try) 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); }; }; then
2364   break
2365 else
2366   echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 fi
2370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371 done
2372 rm -f conftest*
2373 if test -n "$ac_declaration"; then
2374   echo '#ifdef __cplusplus' >>confdefs.h
2375   echo $ac_declaration      >>confdefs.h
2376   echo '#endif'             >>confdefs.h
2377 fi
2378
2379 else
2380   echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2382
2383 fi
2384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385 ac_ext=c
2386 ac_cpp='$CPP $CPPFLAGS'
2387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390
2391 ac_ext=cc
2392 ac_cpp='$CXXCPP $CPPFLAGS'
2393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2396 if test -n "$ac_tool_prefix"; then
2397   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2398   do
2399     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2400 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2401 echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2403 if test "${ac_cv_prog_CXX+set}" = set; then
2404   echo $ECHO_N "(cached) $ECHO_C" >&6
2405 else
2406   if test -n "$CXX"; then
2407   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2411 do
2412   IFS=$as_save_IFS
2413   test -z "$as_dir" && as_dir=.
2414   for ac_exec_ext in '' $ac_executable_extensions; do
2415   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418     break 2
2419   fi
2420 done
2421 done
2422
2423 fi
2424 fi
2425 CXX=$ac_cv_prog_CXX
2426 if test -n "$CXX"; then
2427   echo "$as_me:$LINENO: result: $CXX" >&5
2428 echo "${ECHO_T}$CXX" >&6
2429 else
2430   echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6
2432 fi
2433
2434     test -n "$CXX" && break
2435   done
2436 fi
2437 if test -z "$CXX"; then
2438   ac_ct_CXX=$CXX
2439   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2440 do
2441   # Extract the first word of "$ac_prog", so it can be a program name with args.
2442 set dummy $ac_prog; ac_word=$2
2443 echo "$as_me:$LINENO: checking for $ac_word" >&5
2444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2445 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2446   echo $ECHO_N "(cached) $ECHO_C" >&6
2447 else
2448   if test -n "$ac_ct_CXX"; then
2449   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2450 else
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 for as_dir in $PATH
2453 do
2454   IFS=$as_save_IFS
2455   test -z "$as_dir" && as_dir=.
2456   for ac_exec_ext in '' $ac_executable_extensions; do
2457   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2458     ac_cv_prog_ac_ct_CXX="$ac_prog"
2459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460     break 2
2461   fi
2462 done
2463 done
2464
2465 fi
2466 fi
2467 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2468 if test -n "$ac_ct_CXX"; then
2469   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2470 echo "${ECHO_T}$ac_ct_CXX" >&6
2471 else
2472   echo "$as_me:$LINENO: result: no" >&5
2473 echo "${ECHO_T}no" >&6
2474 fi
2475
2476   test -n "$ac_ct_CXX" && break
2477 done
2478 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2479
2480   CXX=$ac_ct_CXX
2481 fi
2482
2483
2484 # Provide some information about the compiler.
2485 echo "$as_me:$LINENO:" \
2486      "checking for C++ compiler version" >&5
2487 ac_compiler=`set X $ac_compile; echo $2`
2488 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2489   (eval $ac_compiler --version </dev/null >&5) 2>&5
2490   ac_status=$?
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); }
2493 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2494   (eval $ac_compiler -v </dev/null >&5) 2>&5
2495   ac_status=$?
2496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497   (exit $ac_status); }
2498 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2499   (eval $ac_compiler -V </dev/null >&5) 2>&5
2500   ac_status=$?
2501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502   (exit $ac_status); }
2503
2504 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2505 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2506 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2507   echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509   cat >conftest.$ac_ext <<_ACEOF
2510 /* confdefs.h.  */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h.  */
2515
2516 int
2517 main ()
2518 {
2519 #ifndef __GNUC__
2520        choke me
2521 #endif
2522
2523   ;
2524   return 0;
2525 }
2526 _ACEOF
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529   (eval $ac_compile) 2>conftest.er1
2530   ac_status=$?
2531   grep -v '^ *+' conftest.er1 >conftest.err
2532   rm -f conftest.er1
2533   cat conftest.err >&5
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); } &&
2536          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538   (eval $ac_try) 2>&5
2539   ac_status=$?
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); }; } &&
2542          { ac_try='test -s conftest.$ac_objext'
2543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544   (eval $ac_try) 2>&5
2545   ac_status=$?
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); }; }; then
2548   ac_compiler_gnu=yes
2549 else
2550   echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2552
2553 ac_compiler_gnu=no
2554 fi
2555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2556 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2557
2558 fi
2559 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2560 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2561 GXX=`test $ac_compiler_gnu = yes && echo yes`
2562 ac_test_CXXFLAGS=${CXXFLAGS+set}
2563 ac_save_CXXFLAGS=$CXXFLAGS
2564 CXXFLAGS="-g"
2565 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2566 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2567 if test "${ac_cv_prog_cxx_g+set}" = set; then
2568   echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570   cat >conftest.$ac_ext <<_ACEOF
2571 /* confdefs.h.  */
2572 _ACEOF
2573 cat confdefs.h >>conftest.$ac_ext
2574 cat >>conftest.$ac_ext <<_ACEOF
2575 /* end confdefs.h.  */
2576
2577 int
2578 main ()
2579 {
2580
2581   ;
2582   return 0;
2583 }
2584 _ACEOF
2585 rm -f conftest.$ac_objext
2586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587   (eval $ac_compile) 2>conftest.er1
2588   ac_status=$?
2589   grep -v '^ *+' conftest.er1 >conftest.err
2590   rm -f conftest.er1
2591   cat conftest.err >&5
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); } &&
2594          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596   (eval $ac_try) 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }; } &&
2600          { ac_try='test -s conftest.$ac_objext'
2601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602   (eval $ac_try) 2>&5
2603   ac_status=$?
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); }; }; then
2606   ac_cv_prog_cxx_g=yes
2607 else
2608   echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2610
2611 ac_cv_prog_cxx_g=no
2612 fi
2613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2614 fi
2615 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2616 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2617 if test "$ac_test_CXXFLAGS" = set; then
2618   CXXFLAGS=$ac_save_CXXFLAGS
2619 elif test $ac_cv_prog_cxx_g = yes; then
2620   if test "$GXX" = yes; then
2621     CXXFLAGS="-g -O2"
2622   else
2623     CXXFLAGS="-g"
2624   fi
2625 else
2626   if test "$GXX" = yes; then
2627     CXXFLAGS="-O2"
2628   else
2629     CXXFLAGS=
2630   fi
2631 fi
2632 for ac_declaration in \
2633    '' \
2634    'extern "C" void std::exit (int) throw (); using std::exit;' \
2635    'extern "C" void std::exit (int); using std::exit;' \
2636    'extern "C" void exit (int) throw ();' \
2637    'extern "C" void exit (int);' \
2638    'void exit (int);'
2639 do
2640   cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h.  */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h.  */
2646 $ac_declaration
2647 #include <stdlib.h>
2648 int
2649 main ()
2650 {
2651 exit (42);
2652   ;
2653   return 0;
2654 }
2655 _ACEOF
2656 rm -f conftest.$ac_objext
2657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658   (eval $ac_compile) 2>conftest.er1
2659   ac_status=$?
2660   grep -v '^ *+' conftest.er1 >conftest.err
2661   rm -f conftest.er1
2662   cat conftest.err >&5
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); } &&
2665          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667   (eval $ac_try) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }; } &&
2671          { ac_try='test -s conftest.$ac_objext'
2672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; }; then
2677   :
2678 else
2679   echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 continue
2683 fi
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685   cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h.  */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h.  */
2691 $ac_declaration
2692 int
2693 main ()
2694 {
2695 exit (42);
2696   ;
2697   return 0;
2698 }
2699 _ACEOF
2700 rm -f conftest.$ac_objext
2701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702   (eval $ac_compile) 2>conftest.er1
2703   ac_status=$?
2704   grep -v '^ *+' conftest.er1 >conftest.err
2705   rm -f conftest.er1
2706   cat conftest.err >&5
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); } &&
2709          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711   (eval $ac_try) 2>&5
2712   ac_status=$?
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); }; } &&
2715          { ac_try='test -s conftest.$ac_objext'
2716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717   (eval $ac_try) 2>&5
2718   ac_status=$?
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); }; }; then
2721   break
2722 else
2723   echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2725
2726 fi
2727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728 done
2729 rm -f conftest*
2730 if test -n "$ac_declaration"; then
2731   echo '#ifdef __cplusplus' >>confdefs.h
2732   echo $ac_declaration      >>confdefs.h
2733   echo '#endif'             >>confdefs.h
2734 fi
2735
2736 ac_ext=c
2737 ac_cpp='$CPP $CPPFLAGS'
2738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741
2742 ac_ext=c
2743 ac_cpp='$CPP $CPPFLAGS'
2744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2748 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2749 # On Suns, sometimes $CPP names a directory.
2750 if test -n "$CPP" && test -d "$CPP"; then
2751   CPP=
2752 fi
2753 if test -z "$CPP"; then
2754   if test "${ac_cv_prog_CPP+set}" = set; then
2755   echo $ECHO_N "(cached) $ECHO_C" >&6
2756 else
2757       # Double quotes because CPP needs to be expanded
2758     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2759     do
2760       ac_preproc_ok=false
2761 for ac_c_preproc_warn_flag in '' yes
2762 do
2763   # Use a header file that comes with gcc, so configuring glibc
2764   # with a fresh cross-compiler works.
2765   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2766   # <limits.h> exists even on freestanding compilers.
2767   # On the NeXT, cc -E runs the code through the compiler's parser,
2768   # not just through cpp. "Syntax error" is here to catch this case.
2769   cat >conftest.$ac_ext <<_ACEOF
2770 /* confdefs.h.  */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h.  */
2775 #ifdef __STDC__
2776 # include <limits.h>
2777 #else
2778 # include <assert.h>
2779 #endif
2780                      Syntax error
2781 _ACEOF
2782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2783   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2784   ac_status=$?
2785   grep -v '^ *+' conftest.er1 >conftest.err
2786   rm -f conftest.er1
2787   cat conftest.err >&5
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); } >/dev/null; then
2790   if test -s conftest.err; then
2791     ac_cpp_err=$ac_c_preproc_warn_flag
2792     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2793   else
2794     ac_cpp_err=
2795   fi
2796 else
2797   ac_cpp_err=yes
2798 fi
2799 if test -z "$ac_cpp_err"; then
2800   :
2801 else
2802   echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2804
2805   # Broken: fails on valid input.
2806 continue
2807 fi
2808 rm -f conftest.err conftest.$ac_ext
2809
2810   # OK, works on sane cases.  Now check whether non-existent headers
2811   # can be detected and how.
2812   cat >conftest.$ac_ext <<_ACEOF
2813 /* confdefs.h.  */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h.  */
2818 #include <ac_nonexistent.h>
2819 _ACEOF
2820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2821   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2822   ac_status=$?
2823   grep -v '^ *+' conftest.er1 >conftest.err
2824   rm -f conftest.er1
2825   cat conftest.err >&5
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); } >/dev/null; then
2828   if test -s conftest.err; then
2829     ac_cpp_err=$ac_c_preproc_warn_flag
2830     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2831   else
2832     ac_cpp_err=
2833   fi
2834 else
2835   ac_cpp_err=yes
2836 fi
2837 if test -z "$ac_cpp_err"; then
2838   # Broken: success on invalid input.
2839 continue
2840 else
2841   echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2843
2844   # Passes both tests.
2845 ac_preproc_ok=:
2846 break
2847 fi
2848 rm -f conftest.err conftest.$ac_ext
2849
2850 done
2851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2852 rm -f conftest.err conftest.$ac_ext
2853 if $ac_preproc_ok; then
2854   break
2855 fi
2856
2857     done
2858     ac_cv_prog_CPP=$CPP
2859
2860 fi
2861   CPP=$ac_cv_prog_CPP
2862 else
2863   ac_cv_prog_CPP=$CPP
2864 fi
2865 echo "$as_me:$LINENO: result: $CPP" >&5
2866 echo "${ECHO_T}$CPP" >&6
2867 ac_preproc_ok=false
2868 for ac_c_preproc_warn_flag in '' yes
2869 do
2870   # Use a header file that comes with gcc, so configuring glibc
2871   # with a fresh cross-compiler works.
2872   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2873   # <limits.h> exists even on freestanding compilers.
2874   # On the NeXT, cc -E runs the code through the compiler's parser,
2875   # not just through cpp. "Syntax error" is here to catch this case.
2876   cat >conftest.$ac_ext <<_ACEOF
2877 /* confdefs.h.  */
2878 _ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h.  */
2882 #ifdef __STDC__
2883 # include <limits.h>
2884 #else
2885 # include <assert.h>
2886 #endif
2887                      Syntax error
2888 _ACEOF
2889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2890   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2891   ac_status=$?
2892   grep -v '^ *+' conftest.er1 >conftest.err
2893   rm -f conftest.er1
2894   cat conftest.err >&5
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); } >/dev/null; then
2897   if test -s conftest.err; then
2898     ac_cpp_err=$ac_c_preproc_warn_flag
2899     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2900   else
2901     ac_cpp_err=
2902   fi
2903 else
2904   ac_cpp_err=yes
2905 fi
2906 if test -z "$ac_cpp_err"; then
2907   :
2908 else
2909   echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2911
2912   # Broken: fails on valid input.
2913 continue
2914 fi
2915 rm -f conftest.err conftest.$ac_ext
2916
2917   # OK, works on sane cases.  Now check whether non-existent headers
2918   # can be detected and how.
2919   cat >conftest.$ac_ext <<_ACEOF
2920 /* confdefs.h.  */
2921 _ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h.  */
2925 #include <ac_nonexistent.h>
2926 _ACEOF
2927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2928   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2929   ac_status=$?
2930   grep -v '^ *+' conftest.er1 >conftest.err
2931   rm -f conftest.er1
2932   cat conftest.err >&5
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); } >/dev/null; then
2935   if test -s conftest.err; then
2936     ac_cpp_err=$ac_c_preproc_warn_flag
2937     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2938   else
2939     ac_cpp_err=
2940   fi
2941 else
2942   ac_cpp_err=yes
2943 fi
2944 if test -z "$ac_cpp_err"; then
2945   # Broken: success on invalid input.
2946 continue
2947 else
2948   echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2950
2951   # Passes both tests.
2952 ac_preproc_ok=:
2953 break
2954 fi
2955 rm -f conftest.err conftest.$ac_ext
2956
2957 done
2958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2959 rm -f conftest.err conftest.$ac_ext
2960 if $ac_preproc_ok; then
2961   :
2962 else
2963   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2964 See \`config.log' for more details." >&5
2965 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2966 See \`config.log' for more details." >&2;}
2967    { (exit 1); exit 1; }; }
2968 fi
2969
2970 ac_ext=c
2971 ac_cpp='$CPP $CPPFLAGS'
2972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2975
2976 # Find a good install program.  We prefer a C program (faster),
2977 # so one script is as good as another.  But avoid the broken or
2978 # incompatible versions:
2979 # SysV /etc/install, /usr/sbin/install
2980 # SunOS /usr/etc/install
2981 # IRIX /sbin/install
2982 # AIX /bin/install
2983 # AmigaOS /C/install, which installs bootblocks on floppy discs
2984 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2985 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2986 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2987 # OS/2's system install, which has a completely different semantic
2988 # ./install, which can be erroneously created by make from ./install.sh.
2989 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2990 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2991 if test -z "$INSTALL"; then
2992 if test "${ac_cv_path_install+set}" = set; then
2993   echo $ECHO_N "(cached) $ECHO_C" >&6
2994 else
2995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998   IFS=$as_save_IFS
2999   test -z "$as_dir" && as_dir=.
3000   # Account for people who put trailing slashes in PATH elements.
3001 case $as_dir/ in
3002   ./ | .// | /cC/* | \
3003   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3004   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3005   /usr/ucb/* ) ;;
3006   *)
3007     # OSF1 and SCO ODT 3.0 have their own names for install.
3008     # Don't use installbsd from OSF since it installs stuff as root
3009     # by default.
3010     for ac_prog in ginstall scoinst install; do
3011       for ac_exec_ext in '' $ac_executable_extensions; do
3012         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3013           if test $ac_prog = install &&
3014             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3015             # AIX install.  It has an incompatible calling convention.
3016             :
3017           elif test $ac_prog = install &&
3018             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3019             # program-specific install script used by HP pwplus--don't use.
3020             :
3021           else
3022             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3023             break 3
3024           fi
3025         fi
3026       done
3027     done
3028     ;;
3029 esac
3030 done
3031
3032
3033 fi
3034   if test "${ac_cv_path_install+set}" = set; then
3035     INSTALL=$ac_cv_path_install
3036   else
3037     # As a last resort, use the slow shell script.  We don't cache a
3038     # path for INSTALL within a source directory, because that will
3039     # break other packages using the cache if that directory is
3040     # removed, or if the path is relative.
3041     INSTALL=$ac_install_sh
3042   fi
3043 fi
3044 echo "$as_me:$LINENO: result: $INSTALL" >&5
3045 echo "${ECHO_T}$INSTALL" >&6
3046
3047 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3048 # It thinks the first close brace ends the variable substitution.
3049 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3050
3051 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3052
3053 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3054
3055 for ac_prog in gawk mawk nawk awk
3056 do
3057   # Extract the first word of "$ac_prog", so it can be a program name with args.
3058 set dummy $ac_prog; ac_word=$2
3059 echo "$as_me:$LINENO: checking for $ac_word" >&5
3060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3061 if test "${ac_cv_prog_AWK+set}" = set; then
3062   echo $ECHO_N "(cached) $ECHO_C" >&6
3063 else
3064   if test -n "$AWK"; then
3065   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3066 else
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3069 do
3070   IFS=$as_save_IFS
3071   test -z "$as_dir" && as_dir=.
3072   for ac_exec_ext in '' $ac_executable_extensions; do
3073   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074     ac_cv_prog_AWK="$ac_prog"
3075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3076     break 2
3077   fi
3078 done
3079 done
3080
3081 fi
3082 fi
3083 AWK=$ac_cv_prog_AWK
3084 if test -n "$AWK"; then
3085   echo "$as_me:$LINENO: result: $AWK" >&5
3086 echo "${ECHO_T}$AWK" >&6
3087 else
3088   echo "$as_me:$LINENO: result: no" >&5
3089 echo "${ECHO_T}no" >&6
3090 fi
3091
3092   test -n "$AWK" && break
3093 done
3094
3095
3096 ac_ext=c
3097 ac_cpp='$CPP $CPPFLAGS'
3098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101
3102
3103 if test -z "$orig_CXXFLAGS"; then
3104   CXXFLAGS='-O'
3105   if test x$GCC = xyes && test "x$GXX" = xyes; then
3106     CXXFLAGS="-g -O3"
3107   fi
3108   CFLAGS="$CXXFLAGS"
3109 fi
3110
3111 LINKER="$CXX"
3112 if test x$GCC = xyes && test x$GXX = xyes; then
3113
3114 echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3115 echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3116 if test "${ac_cv_lib_supcpp_main+set}" = set; then
3117   echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119   ac_check_lib_save_LIBS=$LIBS
3120 LIBS="-lsupc++  $LIBS"
3121 cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127
3128
3129 int
3130 main ()
3131 {
3132 main ();
3133   ;
3134   return 0;
3135 }
3136 _ACEOF
3137 rm -f conftest.$ac_objext conftest$ac_exeext
3138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3139   (eval $ac_link) 2>conftest.er1
3140   ac_status=$?
3141   grep -v '^ *+' conftest.er1 >conftest.err
3142   rm -f conftest.er1
3143   cat conftest.err >&5
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); } &&
3146          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148   (eval $ac_try) 2>&5
3149   ac_status=$?
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); }; } &&
3152          { ac_try='test -s conftest$ac_exeext'
3153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154   (eval $ac_try) 2>&5
3155   ac_status=$?
3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); }; }; then
3158   ac_cv_lib_supcpp_main=yes
3159 else
3160   echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3162
3163 ac_cv_lib_supcpp_main=no
3164 fi
3165 rm -f conftest.err conftest.$ac_objext \
3166       conftest$ac_exeext conftest.$ac_ext
3167 LIBS=$ac_check_lib_save_LIBS
3168 fi
3169 echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3170 echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3171 if test $ac_cv_lib_supcpp_main = yes; then
3172
3173       LINKER="$CC"
3174       LIBS="$LIBS -lsupc++"
3175
3176 fi
3177
3178 fi
3179 LINKER=$LINKER
3180
3181
3182
3183 cat >>confdefs.h <<\_ACEOF
3184 #define _GNU_SOURCE 1
3185 _ACEOF
3186
3187
3188 case $host in
3189    *-*-solaris* )
3190
3191 cat >>confdefs.h <<\_ACEOF
3192 #define _XOPEN_SOURCE_EXTENDED 1
3193 _ACEOF
3194
3195
3196 cat >>confdefs.h <<\_ACEOF
3197 #define _XOPEN_SOURCE 2
3198 _ACEOF
3199
3200
3201 cat >>confdefs.h <<\_ACEOF
3202 #define __EXTENSIONS__ 1
3203 _ACEOF
3204
3205       ;;
3206 esac
3207
3208
3209 ac_ext=cc
3210 ac_cpp='$CXXCPP $CPPFLAGS'
3211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3214
3215
3216
3217 ac_ext=cc
3218 ac_cpp='$CXXCPP $CPPFLAGS'
3219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3222 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3223 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3224 if test -z "$CXXCPP"; then
3225   if test "${ac_cv_prog_CXXCPP+set}" = set; then
3226   echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228       # Double quotes because CXXCPP needs to be expanded
3229     for CXXCPP in "$CXX -E" "/lib/cpp"
3230     do
3231       ac_preproc_ok=false
3232 for ac_cxx_preproc_warn_flag in '' yes
3233 do
3234   # Use a header file that comes with gcc, so configuring glibc
3235   # with a fresh cross-compiler works.
3236   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3237   # <limits.h> exists even on freestanding compilers.
3238   # On the NeXT, cc -E runs the code through the compiler's parser,
3239   # not just through cpp. "Syntax error" is here to catch this case.
3240   cat >conftest.$ac_ext <<_ACEOF
3241 /* confdefs.h.  */
3242 _ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h.  */
3246 #ifdef __STDC__
3247 # include <limits.h>
3248 #else
3249 # include <assert.h>
3250 #endif
3251                      Syntax error
3252 _ACEOF
3253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3254   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3255   ac_status=$?
3256   grep -v '^ *+' conftest.er1 >conftest.err
3257   rm -f conftest.er1
3258   cat conftest.err >&5
3259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260   (exit $ac_status); } >/dev/null; then
3261   if test -s conftest.err; then
3262     ac_cpp_err=$ac_cxx_preproc_warn_flag
3263     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3264   else
3265     ac_cpp_err=
3266   fi
3267 else
3268   ac_cpp_err=yes
3269 fi
3270 if test -z "$ac_cpp_err"; then
3271   :
3272 else
3273   echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3275
3276   # Broken: fails on valid input.
3277 continue
3278 fi
3279 rm -f conftest.err conftest.$ac_ext
3280
3281   # OK, works on sane cases.  Now check whether non-existent headers
3282   # can be detected and how.
3283   cat >conftest.$ac_ext <<_ACEOF
3284 /* confdefs.h.  */
3285 _ACEOF
3286 cat confdefs.h >>conftest.$ac_ext
3287 cat >>conftest.$ac_ext <<_ACEOF
3288 /* end confdefs.h.  */
3289 #include <ac_nonexistent.h>
3290 _ACEOF
3291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3292   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3293   ac_status=$?
3294   grep -v '^ *+' conftest.er1 >conftest.err
3295   rm -f conftest.er1
3296   cat conftest.err >&5
3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); } >/dev/null; then
3299   if test -s conftest.err; then
3300     ac_cpp_err=$ac_cxx_preproc_warn_flag
3301     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3302   else
3303     ac_cpp_err=
3304   fi
3305 else
3306   ac_cpp_err=yes
3307 fi
3308 if test -z "$ac_cpp_err"; then
3309   # Broken: success on invalid input.
3310 continue
3311 else
3312   echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3314
3315   # Passes both tests.
3316 ac_preproc_ok=:
3317 break
3318 fi
3319 rm -f conftest.err conftest.$ac_ext
3320
3321 done
3322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3323 rm -f conftest.err conftest.$ac_ext
3324 if $ac_preproc_ok; then
3325   break
3326 fi
3327
3328     done
3329     ac_cv_prog_CXXCPP=$CXXCPP
3330
3331 fi
3332   CXXCPP=$ac_cv_prog_CXXCPP
3333 else
3334   ac_cv_prog_CXXCPP=$CXXCPP
3335 fi
3336 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3337 echo "${ECHO_T}$CXXCPP" >&6
3338 ac_preproc_ok=false
3339 for ac_cxx_preproc_warn_flag in '' yes
3340 do
3341   # Use a header file that comes with gcc, so configuring glibc
3342   # with a fresh cross-compiler works.
3343   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3344   # <limits.h> exists even on freestanding compilers.
3345   # On the NeXT, cc -E runs the code through the compiler's parser,
3346   # not just through cpp. "Syntax error" is here to catch this case.
3347   cat >conftest.$ac_ext <<_ACEOF
3348 /* confdefs.h.  */
3349 _ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h.  */
3353 #ifdef __STDC__
3354 # include <limits.h>
3355 #else
3356 # include <assert.h>
3357 #endif
3358                      Syntax error
3359 _ACEOF
3360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3361   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3362   ac_status=$?
3363   grep -v '^ *+' conftest.er1 >conftest.err
3364   rm -f conftest.er1
3365   cat conftest.err >&5
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); } >/dev/null; then
3368   if test -s conftest.err; then
3369     ac_cpp_err=$ac_cxx_preproc_warn_flag
3370     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3371   else
3372     ac_cpp_err=
3373   fi
3374 else
3375   ac_cpp_err=yes
3376 fi
3377 if test -z "$ac_cpp_err"; then
3378   :
3379 else
3380   echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383   # Broken: fails on valid input.
3384 continue
3385 fi
3386 rm -f conftest.err conftest.$ac_ext
3387
3388   # OK, works on sane cases.  Now check whether non-existent headers
3389   # can be detected and how.
3390   cat >conftest.$ac_ext <<_ACEOF
3391 /* confdefs.h.  */
3392 _ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h.  */
3396 #include <ac_nonexistent.h>
3397 _ACEOF
3398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3399   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3400   ac_status=$?
3401   grep -v '^ *+' conftest.er1 >conftest.err
3402   rm -f conftest.er1
3403   cat conftest.err >&5
3404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405   (exit $ac_status); } >/dev/null; then
3406   if test -s conftest.err; then
3407     ac_cpp_err=$ac_cxx_preproc_warn_flag
3408     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3409   else
3410     ac_cpp_err=
3411   fi
3412 else
3413   ac_cpp_err=yes
3414 fi
3415 if test -z "$ac_cpp_err"; then
3416   # Broken: success on invalid input.
3417 continue
3418 else
3419   echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3421
3422   # Passes both tests.
3423 ac_preproc_ok=:
3424 break
3425 fi
3426 rm -f conftest.err conftest.$ac_ext
3427
3428 done
3429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3430 rm -f conftest.err conftest.$ac_ext
3431 if $ac_preproc_ok; then
3432   :
3433 else
3434   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3435 See \`config.log' for more details." >&5
3436 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3437 See \`config.log' for more details." >&2;}
3438    { (exit 1); exit 1; }; }
3439 fi
3440
3441 ac_ext=cc
3442 ac_cpp='$CXXCPP $CPPFLAGS'
3443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3446
3447
3448 echo "$as_me:$LINENO: checking for egrep" >&5
3449 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3450 if test "${ac_cv_prog_egrep+set}" = set; then
3451   echo $ECHO_N "(cached) $ECHO_C" >&6
3452 else
3453   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3454     then ac_cv_prog_egrep='grep -E'
3455     else ac_cv_prog_egrep='egrep'
3456     fi
3457 fi
3458 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3459 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3460  EGREP=$ac_cv_prog_egrep
3461
3462
3463
3464 echo "$as_me:$LINENO: checking for AIX" >&5
3465 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3466 cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h.  */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h.  */
3472 #ifdef _AIX
3473   yes
3474 #endif
3475
3476 _ACEOF
3477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3478   $EGREP "yes" >/dev/null 2>&1; then
3479   echo "$as_me:$LINENO: result: yes" >&5
3480 echo "${ECHO_T}yes" >&6
3481 cat >>confdefs.h <<\_ACEOF
3482 #define _ALL_SOURCE 1
3483 _ACEOF
3484
3485 else
3486   echo "$as_me:$LINENO: result: no" >&5
3487 echo "${ECHO_T}no" >&6
3488 fi
3489 rm -f conftest*
3490
3491
3492 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3493 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3494 if test "${ac_cv_search_strerror+set}" = set; then
3495   echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497   ac_func_search_save_LIBS=$LIBS
3498 ac_cv_search_strerror=no
3499 cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h.  */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h.  */
3505
3506 /* Override any gcc2 internal prototype to avoid an error.  */
3507 #ifdef __cplusplus
3508 extern "C"
3509 #endif
3510 /* We use char because int might match the return type of a gcc2
3511    builtin and then its argument prototype would still apply.  */
3512 char strerror ();
3513 int
3514 main ()
3515 {
3516 strerror ();
3517   ;
3518   return 0;
3519 }
3520 _ACEOF
3521 rm -f conftest.$ac_objext conftest$ac_exeext
3522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3523   (eval $ac_link) 2>conftest.er1
3524   ac_status=$?
3525   grep -v '^ *+' conftest.er1 >conftest.err
3526   rm -f conftest.er1
3527   cat conftest.err >&5
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); } &&
3530          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532   (eval $ac_try) 2>&5
3533   ac_status=$?
3534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); }; } &&
3536          { ac_try='test -s conftest$ac_exeext'
3537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538   (eval $ac_try) 2>&5
3539   ac_status=$?
3540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); }; }; then
3542   ac_cv_search_strerror="none required"
3543 else
3544   echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3546
3547 fi
3548 rm -f conftest.err conftest.$ac_objext \
3549       conftest$ac_exeext conftest.$ac_ext
3550 if test "$ac_cv_search_strerror" = no; then
3551   for ac_lib in cposix; do
3552     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3553     cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h.  */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h.  */
3559
3560 /* Override any gcc2 internal prototype to avoid an error.  */
3561 #ifdef __cplusplus
3562 extern "C"
3563 #endif
3564 /* We use char because int might match the return type of a gcc2
3565    builtin and then its argument prototype would still apply.  */
3566 char strerror ();
3567 int
3568 main ()
3569 {
3570 strerror ();
3571   ;
3572   return 0;
3573 }
3574 _ACEOF
3575 rm -f conftest.$ac_objext conftest$ac_exeext
3576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3577   (eval $ac_link) 2>conftest.er1
3578   ac_status=$?
3579   grep -v '^ *+' conftest.er1 >conftest.err
3580   rm -f conftest.er1
3581   cat conftest.err >&5
3582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583   (exit $ac_status); } &&
3584          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586   (eval $ac_try) 2>&5
3587   ac_status=$?
3588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589   (exit $ac_status); }; } &&
3590          { ac_try='test -s conftest$ac_exeext'
3591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592   (eval $ac_try) 2>&5
3593   ac_status=$?
3594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595   (exit $ac_status); }; }; then
3596   ac_cv_search_strerror="-l$ac_lib"
3597 break
3598 else
3599   echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3601
3602 fi
3603 rm -f conftest.err conftest.$ac_objext \
3604       conftest$ac_exeext conftest.$ac_ext
3605   done
3606 fi
3607 LIBS=$ac_func_search_save_LIBS
3608 fi
3609 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3610 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3611 if test "$ac_cv_search_strerror" != no; then
3612   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3613
3614 fi
3615
3616
3617 echo "$as_me:$LINENO: checking for setlocale" >&5
3618 echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3619 if test "${ac_cv_func_setlocale+set}" = set; then
3620   echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622   cat >conftest.$ac_ext <<_ACEOF
3623 /* confdefs.h.  */
3624 _ACEOF
3625 cat confdefs.h >>conftest.$ac_ext
3626 cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h.  */
3628 /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3630 #define setlocale innocuous_setlocale
3631
3632 /* System header to define __stub macros and hopefully few prototypes,
3633     which can conflict with char setlocale (); below.
3634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3635     <limits.h> exists even on freestanding compilers.  */
3636
3637 #ifdef __STDC__
3638 # include <limits.h>
3639 #else
3640 # include <assert.h>
3641 #endif
3642
3643 #undef setlocale
3644
3645 /* Override any gcc2 internal prototype to avoid an error.  */
3646 #ifdef __cplusplus
3647 extern "C"
3648 {
3649 #endif
3650 /* We use char because int might match the return type of a gcc2
3651    builtin and then its argument prototype would still apply.  */
3652 char setlocale ();
3653 /* The GNU C library defines this for functions which it implements
3654     to always fail with ENOSYS.  Some functions are actually named
3655     something starting with __ and the normal name is an alias.  */
3656 #if defined (__stub_setlocale) || defined (__stub___setlocale)
3657 choke me
3658 #else
3659 char (*f) () = setlocale;
3660 #endif
3661 #ifdef __cplusplus
3662 }
3663 #endif
3664
3665 int
3666 main ()
3667 {
3668 return f != setlocale;
3669   ;
3670   return 0;
3671 }
3672 _ACEOF
3673 rm -f conftest.$ac_objext conftest$ac_exeext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3675   (eval $ac_link) 2>conftest.er1
3676   ac_status=$?
3677   grep -v '^ *+' conftest.er1 >conftest.err
3678   rm -f conftest.er1
3679   cat conftest.err >&5
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); } &&
3682          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684   (eval $ac_try) 2>&5
3685   ac_status=$?
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); }; } &&
3688          { ac_try='test -s conftest$ac_exeext'
3689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690   (eval $ac_try) 2>&5
3691   ac_status=$?
3692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693   (exit $ac_status); }; }; then
3694   ac_cv_func_setlocale=yes
3695 else
3696   echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3698
3699 ac_cv_func_setlocale=no
3700 fi
3701 rm -f conftest.err conftest.$ac_objext \
3702       conftest$ac_exeext conftest.$ac_ext
3703 fi
3704 echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
3705 echo "${ECHO_T}$ac_cv_func_setlocale" >&6
3706 if test $ac_cv_func_setlocale = yes; then
3707   :
3708 else
3709   echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3710 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3711 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3712   echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714   ac_check_lib_save_LIBS=$LIBS
3715 LIBS="-lxpg4  $LIBS"
3716 cat >conftest.$ac_ext <<_ACEOF
3717 /* confdefs.h.  */
3718 _ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h.  */
3722
3723 /* Override any gcc2 internal prototype to avoid an error.  */
3724 #ifdef __cplusplus
3725 extern "C"
3726 #endif
3727 /* We use char because int might match the return type of a gcc2
3728    builtin and then its argument prototype would still apply.  */
3729 char setlocale ();
3730 int
3731 main ()
3732 {
3733 setlocale ();
3734   ;
3735   return 0;
3736 }
3737 _ACEOF
3738 rm -f conftest.$ac_objext conftest$ac_exeext
3739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3740   (eval $ac_link) 2>conftest.er1
3741   ac_status=$?
3742   grep -v '^ *+' conftest.er1 >conftest.err
3743   rm -f conftest.er1
3744   cat conftest.err >&5
3745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746   (exit $ac_status); } &&
3747          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749   (eval $ac_try) 2>&5
3750   ac_status=$?
3751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752   (exit $ac_status); }; } &&
3753          { ac_try='test -s conftest$ac_exeext'
3754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755   (eval $ac_try) 2>&5
3756   ac_status=$?
3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758   (exit $ac_status); }; }; then
3759   ac_cv_lib_xpg4_setlocale=yes
3760 else
3761   echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3763
3764 ac_cv_lib_xpg4_setlocale=no
3765 fi
3766 rm -f conftest.err conftest.$ac_objext \
3767       conftest$ac_exeext conftest.$ac_ext
3768 LIBS=$ac_check_lib_save_LIBS
3769 fi
3770 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3771 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3772 if test $ac_cv_lib_xpg4_setlocale = yes; then
3773   LIBS="$LIBS -lxpg4"
3774 fi
3775
3776 fi
3777
3778
3779 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3780 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3781 if test "${ac_cv_func_gethostbyname+set}" = set; then
3782   echo $ECHO_N "(cached) $ECHO_C" >&6
3783 else
3784   cat >conftest.$ac_ext <<_ACEOF
3785 /* confdefs.h.  */
3786 _ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h.  */
3790 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3792 #define gethostbyname innocuous_gethostbyname
3793
3794 /* System header to define __stub macros and hopefully few prototypes,
3795     which can conflict with char gethostbyname (); below.
3796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3797     <limits.h> exists even on freestanding compilers.  */
3798
3799 #ifdef __STDC__
3800 # include <limits.h>
3801 #else
3802 # include <assert.h>
3803 #endif
3804
3805 #undef gethostbyname
3806
3807 /* Override any gcc2 internal prototype to avoid an error.  */
3808 #ifdef __cplusplus
3809 extern "C"
3810 {
3811 #endif
3812 /* We use char because int might match the return type of a gcc2
3813    builtin and then its argument prototype would still apply.  */
3814 char gethostbyname ();
3815 /* The GNU C library defines this for functions which it implements
3816     to always fail with ENOSYS.  Some functions are actually named
3817     something starting with __ and the normal name is an alias.  */
3818 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3819 choke me
3820 #else
3821 char (*f) () = gethostbyname;
3822 #endif
3823 #ifdef __cplusplus
3824 }
3825 #endif
3826
3827 int
3828 main ()
3829 {
3830 return f != gethostbyname;
3831   ;
3832   return 0;
3833 }
3834 _ACEOF
3835 rm -f conftest.$ac_objext conftest$ac_exeext
3836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3837   (eval $ac_link) 2>conftest.er1
3838   ac_status=$?
3839   grep -v '^ *+' conftest.er1 >conftest.err
3840   rm -f conftest.er1
3841   cat conftest.err >&5
3842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843   (exit $ac_status); } &&
3844          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846   (eval $ac_try) 2>&5
3847   ac_status=$?
3848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849   (exit $ac_status); }; } &&
3850          { ac_try='test -s conftest$ac_exeext'
3851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852   (eval $ac_try) 2>&5
3853   ac_status=$?
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); }; }; then
3856   ac_cv_func_gethostbyname=yes
3857 else
3858   echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3860
3861 ac_cv_func_gethostbyname=no
3862 fi
3863 rm -f conftest.err conftest.$ac_objext \
3864       conftest$ac_exeext conftest.$ac_ext
3865 fi
3866 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3867 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3868 if test $ac_cv_func_gethostbyname = yes; then
3869   :
3870 else
3871   echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3872 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3873 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3874   echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876   ac_check_lib_save_LIBS=$LIBS
3877 LIBS="-lnsl  $LIBS"
3878 cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h.  */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h.  */
3884
3885 /* Override any gcc2 internal prototype to avoid an error.  */
3886 #ifdef __cplusplus
3887 extern "C"
3888 #endif
3889 /* We use char because int might match the return type of a gcc2
3890    builtin and then its argument prototype would still apply.  */
3891 char gethostbyname ();
3892 int
3893 main ()
3894 {
3895 gethostbyname ();
3896   ;
3897   return 0;
3898 }
3899 _ACEOF
3900 rm -f conftest.$ac_objext conftest$ac_exeext
3901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3902   (eval $ac_link) 2>conftest.er1
3903   ac_status=$?
3904   grep -v '^ *+' conftest.er1 >conftest.err
3905   rm -f conftest.er1
3906   cat conftest.err >&5
3907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908   (exit $ac_status); } &&
3909          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911   (eval $ac_try) 2>&5
3912   ac_status=$?
3913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914   (exit $ac_status); }; } &&
3915          { ac_try='test -s conftest$ac_exeext'
3916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917   (eval $ac_try) 2>&5
3918   ac_status=$?
3919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920   (exit $ac_status); }; }; then
3921   ac_cv_lib_nsl_gethostbyname=yes
3922 else
3923   echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3925
3926 ac_cv_lib_nsl_gethostbyname=no
3927 fi
3928 rm -f conftest.err conftest.$ac_objext \
3929       conftest$ac_exeext conftest.$ac_ext
3930 LIBS=$ac_check_lib_save_LIBS
3931 fi
3932 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3933 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3934 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3935   LIBS="$LIBS -lnsl"
3936 fi
3937
3938 fi
3939
3940 echo "$as_me:$LINENO: checking for socket" >&5
3941 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3942 if test "${ac_cv_func_socket+set}" = set; then
3943   echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945   cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h.  */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h.  */
3951 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3952    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3953 #define socket innocuous_socket
3954
3955 /* System header to define __stub macros and hopefully few prototypes,
3956     which can conflict with char socket (); below.
3957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3958     <limits.h> exists even on freestanding compilers.  */
3959
3960 #ifdef __STDC__
3961 # include <limits.h>
3962 #else
3963 # include <assert.h>
3964 #endif
3965
3966 #undef socket
3967
3968 /* Override any gcc2 internal prototype to avoid an error.  */
3969 #ifdef __cplusplus
3970 extern "C"
3971 {
3972 #endif
3973 /* We use char because int might match the return type of a gcc2
3974    builtin and then its argument prototype would still apply.  */
3975 char socket ();
3976 /* The GNU C library defines this for functions which it implements
3977     to always fail with ENOSYS.  Some functions are actually named
3978     something starting with __ and the normal name is an alias.  */
3979 #if defined (__stub_socket) || defined (__stub___socket)
3980 choke me
3981 #else
3982 char (*f) () = socket;
3983 #endif
3984 #ifdef __cplusplus
3985 }
3986 #endif
3987
3988 int
3989 main ()
3990 {
3991 return f != socket;
3992   ;
3993   return 0;
3994 }
3995 _ACEOF
3996 rm -f conftest.$ac_objext conftest$ac_exeext
3997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3998   (eval $ac_link) 2>conftest.er1
3999   ac_status=$?
4000   grep -v '^ *+' conftest.er1 >conftest.err
4001   rm -f conftest.er1
4002   cat conftest.err >&5
4003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004   (exit $ac_status); } &&
4005          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007   (eval $ac_try) 2>&5
4008   ac_status=$?
4009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010   (exit $ac_status); }; } &&
4011          { ac_try='test -s conftest$ac_exeext'
4012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013   (eval $ac_try) 2>&5
4014   ac_status=$?
4015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016   (exit $ac_status); }; }; then
4017   ac_cv_func_socket=yes
4018 else
4019   echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4021
4022 ac_cv_func_socket=no
4023 fi
4024 rm -f conftest.err conftest.$ac_objext \
4025       conftest$ac_exeext conftest.$ac_ext
4026 fi
4027 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4028 echo "${ECHO_T}$ac_cv_func_socket" >&6
4029 if test $ac_cv_func_socket = yes; then
4030   :
4031 else
4032   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4033 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4034 if test "${ac_cv_lib_socket_socket+set}" = set; then
4035   echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037   ac_check_lib_save_LIBS=$LIBS
4038 LIBS="-lsocket  $LIBS"
4039 cat >conftest.$ac_ext <<_ACEOF
4040 /* confdefs.h.  */
4041 _ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h.  */
4045
4046 /* Override any gcc2 internal prototype to avoid an error.  */
4047 #ifdef __cplusplus
4048 extern "C"
4049 #endif
4050 /* We use char because int might match the return type of a gcc2
4051    builtin and then its argument prototype would still apply.  */
4052 char socket ();
4053 int
4054 main ()
4055 {
4056 socket ();
4057   ;
4058   return 0;
4059 }
4060 _ACEOF
4061 rm -f conftest.$ac_objext conftest$ac_exeext
4062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4063   (eval $ac_link) 2>conftest.er1
4064   ac_status=$?
4065   grep -v '^ *+' conftest.er1 >conftest.err
4066   rm -f conftest.er1
4067   cat conftest.err >&5
4068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069   (exit $ac_status); } &&
4070          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072   (eval $ac_try) 2>&5
4073   ac_status=$?
4074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075   (exit $ac_status); }; } &&
4076          { ac_try='test -s conftest$ac_exeext'
4077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078   (eval $ac_try) 2>&5
4079   ac_status=$?
4080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081   (exit $ac_status); }; }; then
4082   ac_cv_lib_socket_socket=yes
4083 else
4084   echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4086
4087 ac_cv_lib_socket_socket=no
4088 fi
4089 rm -f conftest.err conftest.$ac_objext \
4090       conftest$ac_exeext conftest.$ac_ext
4091 LIBS=$ac_check_lib_save_LIBS
4092 fi
4093 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4094 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4095 if test $ac_cv_lib_socket_socket = yes; then
4096   LIBS="$LIBS -lsocket"
4097 fi
4098
4099 fi
4100
4101
4102
4103 MALLOC_TYPE=S
4104
4105 support_addstrings=no
4106 support_frills=yes
4107 support_inheritpixmap=no
4108 support_tinting=yes
4109 support_fading=yes
4110 support_keepscrolling=yes
4111 support_selectionscrolling=yes
4112 support_menubar=no
4113 support_mousewheel=yes
4114 support_mouseslipwheel=yes
4115 support_utmp=yes
4116 support_wtmp=yes
4117 support_lastlog=yes
4118 support_text_blink=yes
4119 support_pointer_blank=yes
4120 support_scroll_rxvt=yes
4121 support_scroll_next=yes
4122 support_scroll_xterm=yes
4123 support_scroll_plain=yes
4124 support_xim=yes
4125 support_xpm=no
4126 support_xft=yes
4127 support_unicode3=no
4128 support_combining=yes
4129 support_8bitctrls=no
4130 support_iso14755=yes
4131 support_styles=yes
4132 codesets=all
4133
4134
4135 if test "x$enable_shared" = xyes; then
4136
4137 cat >>confdefs.h <<\_ACEOF
4138 #define LIBRXVT 1
4139 _ACEOF
4140
4141     INSTALL_LIBRXVT=yes
4142 fi
4143
4144
4145 # Check whether --enable-everything or --disable-everything was given.
4146 if test "${enable_everything+set}" = set; then
4147   enableval="$enable_everything"
4148
4149     if test x$enableval = xno; then
4150        support_24bit=no
4151        support_frills=no
4152        support_inheritpixmap=no
4153        support_tinting=no
4154        support_fading=no
4155        support_keepscrolling=no
4156        support_selectionscrolling=no
4157        support_lastlog=no
4158        support_menubar=no
4159        support_mousewheel=no
4160        support_mouseslipwheel=no
4161        support_text_blink=no
4162        support_pointer_blank=no
4163        support_scroll_rxvt=no
4164        support_scroll_next=no
4165        support_scroll_xterm=no
4166        support_scroll_plain=no
4167        support_utmp=no
4168        support_wtmp=no
4169        support_xim=no
4170        support_xpm=no
4171        support_xft=no
4172        support_unicode3=no
4173        support_combining=no
4174        support_8bitctrls=no
4175        support_iso14755=no
4176        support_styles=no
4177        codesets=
4178     fi
4179     if test x$enableval = xyes; then
4180        support_24bit=yes
4181        support_frills=yes
4182        support_inheritpixmap=yes
4183        support_tinting=yes
4184        support_fading=yes
4185        support_keepscrolling=yes
4186        support_selectionscrolling=yes
4187        support_lastlog=yes
4188        support_menubar=yes
4189        support_mousewheel=yes
4190        support_mouseslipwheel=yes
4191        support_text_blink=yes
4192        support_pointer_blank=yes
4193        support_scroll_rxvt=yes
4194        support_scroll_next=yes
4195        support_scroll_xterm=yes
4196        support_scroll_plain=yes
4197        support_utmp=yes
4198        support_wtmp=yes
4199        support_xim=yes
4200        support_xpm=yes
4201        support_xft=yes
4202        support_unicode3=yes
4203        support_combining=yes
4204        #support_8bitctrls=yes
4205        support_iso14755=yes
4206        support_styles=yes
4207        codesets=all
4208     fi
4209
4210 fi;
4211
4212 # Check whether --enable-unicode3 or --disable-unicode3 was given.
4213 if test "${enable_unicode3+set}" = set; then
4214   enableval="$enable_unicode3"
4215   if test x$enableval = xyes -o x$enableval = xno; then
4216     support_unicode3=$enableval
4217   fi
4218 fi;
4219
4220 # Check whether --enable-combining or --disable-combining was given.
4221 if test "${enable_combining+set}" = set; then
4222   enableval="$enable_combining"
4223   if test x$enableval = xyes -o x$enableval = xno; then
4224     support_combining=$enableval
4225   fi
4226 fi;
4227
4228 # Check whether --enable-xft or --disable-xft was given.
4229 if test "${enable_xft+set}" = set; then
4230   enableval="$enable_xft"
4231   if test x$enableval = xyes -o x$enableval = xno; then
4232     support_xft=$enableval
4233   fi
4234 fi;
4235
4236 # Check whether --enable-font-styles or --disable-font-styles was given.
4237 if test "${enable_font_styles+set}" = set; then
4238   enableval="$enable_font_styles"
4239   if test x$enableval = xyes -o x$enableval = xno; then
4240     support_styles=$enableval
4241   fi
4242 fi;
4243
4244 # Check whether --enable-utmp or --disable-utmp was given.
4245 if test "${enable_utmp+set}" = set; then
4246   enableval="$enable_utmp"
4247   if test x$enableval = xyes -o x$enableval = xno; then
4248     support_utmp=$enableval
4249   fi
4250 fi;
4251
4252 # Check whether --enable-wtmp or --disable-wtmp was given.
4253 if test "${enable_wtmp+set}" = set; then
4254   enableval="$enable_wtmp"
4255   if test x$enableval = xyes -o x$enableval = xno; then
4256     support_wtmp=$enableval
4257   fi
4258 fi;
4259
4260 # Check whether --enable-lastlog or --disable-lastlog was given.
4261 if test "${enable_lastlog+set}" = set; then
4262   enableval="$enable_lastlog"
4263   if test x$enableval = xyes -o x$enableval = xno; then
4264     support_lastlog=$enableval
4265   fi
4266 fi;
4267
4268 # Check whether --enable-xpm-background or --disable-xpm-background was given.
4269 if test "${enable_xpm_background+set}" = set; then
4270   enableval="$enable_xpm_background"
4271   if test x$enableval = xyes -o x$enableval = xno; then
4272     support_xpm=$enableval
4273   fi
4274 fi;
4275
4276 # Check whether --enable-transparency or --disable-transparency was given.
4277 if test "${enable_transparency+set}" = set; then
4278   enableval="$enable_transparency"
4279   if test x$enableval = xyes -o x$enableval = xno; then
4280     support_inheritpixmap=$enableval
4281   fi
4282 fi;
4283
4284 # Check whether --enable-tinting or --disable-tinting was given.
4285 if test "${enable_tinting+set}" = set; then
4286   enableval="$enable_tinting"
4287   if test x$enableval = xyes -o x$enableval = xno; then
4288     support_tinting=$enableval
4289   fi
4290 fi;
4291
4292 # Check whether --enable-fading or --disable-fading was given.
4293 if test "${enable_fading+set}" = set; then
4294   enableval="$enable_fading"
4295   if test x$enableval = xyes -o x$enableval = xno; then
4296     support_fading=$enableval
4297   fi
4298 fi;
4299
4300 # Check whether --enable-menubar or --disable-menubar was given.
4301 if test "${enable_menubar+set}" = set; then
4302   enableval="$enable_menubar"
4303   if test x$enableval = xyes -o x$enableval = xno; then
4304     support_menubar=$enableval
4305   fi
4306 fi;
4307
4308 # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
4309 if test "${enable_rxvt_scroll+set}" = set; then
4310   enableval="$enable_rxvt_scroll"
4311   if test x$enableval = xyes -o x$enableval = xno; then
4312     support_scroll_rxvt=$enableval
4313   fi
4314 fi;
4315
4316 # Check whether --enable-next-scroll or --disable-next-scroll was given.
4317 if test "${enable_next_scroll+set}" = set; then
4318   enableval="$enable_next_scroll"
4319   if test x$enableval = xyes -o x$enableval = xno; then
4320     support_scroll_next=$enableval
4321   fi
4322 fi;
4323
4324 # Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
4325 if test "${enable_xterm_scroll+set}" = set; then
4326   enableval="$enable_xterm_scroll"
4327   if test x$enableval = xyes -o x$enableval = xno; then
4328     support_scroll_xterm=$enableval
4329   fi
4330 fi;
4331
4332 # Check whether --enable-plain-scroll or --disable-plain-scroll was given.
4333 if test "${enable_plain_scroll+set}" = set; then
4334   enableval="$enable_plain_scroll"
4335   if test x$enableval = xyes -o x$enableval = xno; then
4336     support_scroll_plain=$enableval
4337   fi
4338 fi;
4339
4340 # Check whether --enable-half-shadow or --disable-half-shadow was given.
4341 if test "${enable_half_shadow+set}" = set; then
4342   enableval="$enable_half_shadow"
4343   if test x$enableval = xyes; then
4344
4345 cat >>confdefs.h <<\_ACEOF
4346 #define HALFSHADOW 1
4347 _ACEOF
4348
4349   fi
4350 fi;
4351
4352
4353 # Check whether --with-codesets or --without-codesets was given.
4354 if test "${with_codesets+set}" = set; then
4355   withval="$with_codesets"
4356   codesets="$withval"
4357 fi;
4358
4359 # Check whether --enable-xim or --disable-xim was given.
4360 if test "${enable_xim+set}" = set; then
4361   enableval="$enable_xim"
4362   if test x$enableval = xyes -o x$enableval = xno; then
4363     support_xim=$enableval
4364   fi
4365 fi;
4366
4367 # Check whether --enable-ttygid or --disable-ttygid was given.
4368 if test "${enable_ttygid+set}" = set; then
4369   enableval="$enable_ttygid"
4370   if test x$enableval = xyes; then
4371
4372 cat >>confdefs.h <<\_ACEOF
4373 #define TTY_GID_SUPPORT 1
4374 _ACEOF
4375
4376   fi
4377 fi;
4378
4379 # Check whether --enable-backspace-key or --disable-backspace-key was given.
4380 if test "${enable_backspace_key+set}" = set; then
4381   enableval="$enable_backspace_key"
4382   if test x$enableval = xno; then
4383
4384 cat >>confdefs.h <<\_ACEOF
4385 #define NO_BACKSPACE_KEY 1
4386 _ACEOF
4387
4388   fi
4389 fi;
4390
4391 # Check whether --enable-delete-key or --disable-delete-key was given.
4392 if test "${enable_delete_key+set}" = set; then
4393   enableval="$enable_delete_key"
4394   if test x$enableval = xno; then
4395
4396 cat >>confdefs.h <<\_ACEOF
4397 #define NO_DELETE_KEY 1
4398 _ACEOF
4399
4400   fi
4401 fi;
4402
4403 # Check whether --enable-resources or --disable-resources was given.
4404 if test "${enable_resources+set}" = set; then
4405   enableval="$enable_resources"
4406   if test x$enableval = xno; then
4407
4408 cat >>confdefs.h <<\_ACEOF
4409 #define NO_RESOURCES 1
4410 _ACEOF
4411
4412   fi
4413 fi;
4414
4415 # Check whether --enable-xgetdefault or --disable-xgetdefault was given.
4416 if test "${enable_xgetdefault+set}" = set; then
4417   enableval="$enable_xgetdefault"
4418   if test x$enableval = xyes; then
4419
4420 cat >>confdefs.h <<\_ACEOF
4421 #define USE_XGETDEFAULT 1
4422 _ACEOF
4423
4424   fi
4425 fi;
4426
4427 # Check whether --enable-8bitctrls or --disable-8bitctrls was given.
4428 if test "${enable_8bitctrls+set}" = set; then
4429   enableval="$enable_8bitctrls"
4430   if test x$enableval = xyes -o x$enableval = xno; then
4431     support_8bitctrls=$enableval
4432   fi
4433 fi;
4434
4435 RESFALLBACK=Rxvt
4436 # Check whether --enable-fallback or --disable-fallback was given.
4437 if test "${enable_fallback+set}" = set; then
4438   enableval="$enable_fallback"
4439
4440    test x$enableval = xyes && enableval=Rxvt
4441    test x$enableval = xno  && enableval=
4442    RESFALLBACK="$enableval"
4443
4444 fi;
4445
4446 if test x$RESFALLBACK != x; then
4447
4448 cat >>confdefs.h <<_ACEOF
4449 #define RESFALLBACK "$RESFALLBACK"
4450 _ACEOF
4451
4452 fi
4453
4454 RESNAME=urxvt
4455
4456 # Check whether --with-res-name or --without-res-name was given.
4457 if test "${with_res_name+set}" = set; then
4458   withval="$with_res_name"
4459   RESNAME="$withval"
4460 fi;
4461
4462 cat >>confdefs.h <<_ACEOF
4463 #define RESNAME "$RESNAME"
4464 _ACEOF
4465
4466
4467 RESCLASS=URxvt
4468
4469 # Check whether --with-res-class or --without-res-class was given.
4470 if test "${with_res_class+set}" = set; then
4471   withval="$with_res_class"
4472   RESCLASS="$withval"
4473 fi;
4474
4475 cat >>confdefs.h <<_ACEOF
4476 #define RESCLASS "$RESCLASS"
4477 _ACEOF
4478
4479
4480 RXVTNAME=urxvt
4481
4482 # Check whether --with-name or --without-name was given.
4483 if test "${with_name+set}" = set; then
4484   withval="$with_name"
4485   RXVTNAME="$withval"
4486 fi;
4487
4488 cat >>confdefs.h <<_ACEOF
4489 #define RXVTNAME "$RXVTNAME"
4490 _ACEOF
4491
4492
4493 RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4494
4495
4496 # Check whether --enable-strings or --disable-strings was given.
4497 if test "${enable_strings+set}" = set; then
4498   enableval="$enable_strings"
4499   if test x$enableval = xyes -o x$enableval = xno; then
4500     support_addstrings=$enableval
4501   fi
4502 fi;
4503
4504 # Check whether --enable-swapscreen or --disable-swapscreen was given.
4505 if test "${enable_swapscreen+set}" = set; then
4506   enableval="$enable_swapscreen"
4507   if test x$enableval = xno; then
4508
4509 cat >>confdefs.h <<\_ACEOF
4510 #define NO_SECONDARY_SCREEN 1
4511 _ACEOF
4512
4513   fi
4514 fi;
4515
4516 # Check whether --enable-iso14755 or --disable-iso14755 was given.
4517 if test "${enable_iso14755+set}" = set; then
4518   enableval="$enable_iso14755"
4519   if test x$enableval = xyes -o x$enableval = xno; then
4520     support_iso14755=$enableval
4521   fi
4522 fi;
4523
4524 # Check whether --enable-frills or --disable-frills was given.
4525 if test "${enable_frills+set}" = set; then
4526   enableval="$enable_frills"
4527   if test x$enableval = xyes -o x$enableval = xno; then
4528     support_frills=$enableval
4529   fi
4530 fi;
4531
4532 # Check whether --enable-24bit or --disable-24bit was given.
4533 if test "${enable_24bit+set}" = set; then
4534   enableval="$enable_24bit"
4535   if test x$enableval = xyes -o x$enableval = xno; then
4536     support_24bit=$enableval
4537   fi
4538 fi;
4539
4540 # Check whether --enable-keepscrolling or --disable-keepscrolling was given.
4541 if test "${enable_keepscrolling+set}" = set; then
4542   enableval="$enable_keepscrolling"
4543   if test x$enableval = xyes -o x$enableval = xno; then
4544     support_keepscrolling=$enableval
4545   fi
4546 fi;
4547
4548 # Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
4549 if test "${enable_selectionscrolling+set}" = set; then
4550   enableval="$enable_selectionscrolling"
4551   if test x$enableval = xyes -o x$enableval = xno; then
4552     support_selectionscrolling=$enableval
4553   fi
4554 fi;
4555
4556 # Check whether --enable-mousewheel or --disable-mousewheel was given.
4557 if test "${enable_mousewheel+set}" = set; then
4558   enableval="$enable_mousewheel"
4559   if test x$enableval = xyes -o x$enableval = xno; then
4560     support_mousewheel=$enableval
4561   fi
4562 fi;
4563
4564 # Check whether --enable-slipwheeling or --disable-slipwheeling was given.
4565 if test "${enable_slipwheeling+set}" = set; then
4566   enableval="$enable_slipwheeling"
4567   if test x$enableval = xyes -o x$enableval = xno; then
4568     support_mouseslipwheel=$enableval
4569   fi
4570 fi;
4571
4572 # Check whether --enable-dmalloc or --disable-dmalloc was given.
4573 if test "${enable_dmalloc+set}" = set; then
4574   enableval="$enable_dmalloc"
4575   if test x$enableval = xyes; then
4576     MALLOC_TYPE=G
4577     DEBUG=-DDEBUG_MALLOC
4578     DLIB="-L/usr/local/lib -ldmalloc"
4579     DINCLUDE=-I/usr/local/include
4580   fi
4581 fi;
4582
4583 # Check whether --enable-dlmalloc or --disable-dlmalloc was given.
4584 if test "${enable_dlmalloc+set}" = set; then
4585   enableval="$enable_dlmalloc"
4586   if test x$enableval = xyes; then
4587     MALLOC_TYPE=D
4588     DEBUG=
4589     DLIB="-L/usr/local/lib -ldlmalloc"
4590     DINCLUDE=
4591   fi
4592 fi;
4593
4594 # Check whether --enable-smart-resize or --disable-smart-resize was given.
4595 if test "${enable_smart_resize+set}" = set; then
4596   enableval="$enable_smart_resize"
4597   if test x$enableval = xyes; then
4598
4599 cat >>confdefs.h <<\_ACEOF
4600 #define SMART_RESIZE 1
4601 _ACEOF
4602
4603   fi
4604 fi;
4605
4606 # Check whether --enable-text-blink or --disable-text-blink was given.
4607 if test "${enable_text_blink+set}" = set; then
4608   enableval="$enable_text_blink"
4609   if test x$enableval = xyes -o x$enableval = xno; then
4610     support_text_blink=$enableval
4611   fi
4612 fi;
4613
4614 # Check whether --enable-pointer-blank or --disable-pointer-blank was given.
4615 if test "${enable_pointer_blank+set}" = set; then
4616   enableval="$enable_pointer_blank"
4617   if test x$enableval = xyes -o x$enableval = xno; then
4618     support_pointer_blank=$enableval
4619   fi
4620 fi;
4621
4622
4623 # Check whether --with-term or --without-term was given.
4624 if test "${with_term+set}" = set; then
4625   withval="$with_term"
4626   if test x$withval != x; then
4627
4628 cat >>confdefs.h <<_ACEOF
4629 #define TERMENV "$withval"
4630 _ACEOF
4631  term="$withval"
4632   fi
4633 fi;
4634
4635
4636 # Check whether --with-terminfo or --without-terminfo was given.
4637 if test "${with_terminfo+set}" = set; then
4638   withval="$with_terminfo"
4639   if test x$withval != x; then
4640
4641 cat >>confdefs.h <<_ACEOF
4642 #define RXVT_TERMINFO "$withval"
4643 _ACEOF
4644  terminfo="$withval"
4645   fi
4646 fi;
4647
4648
4649
4650 cat >>confdefs.h <<\_ACEOF
4651 #define PROTOTYPES 1
4652 _ACEOF
4653
4654
4655 # Extract the first word of "mv", so it can be a program name with args.
4656 set dummy mv; ac_word=$2
4657 echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4659 if test "${ac_cv_path_MV+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   case $MV in
4663   [\\/]* | ?:[\\/]*)
4664   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4665   ;;
4666   *)
4667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4669 do
4670   IFS=$as_save_IFS
4671   test -z "$as_dir" && as_dir=.
4672   for ac_exec_ext in '' $ac_executable_extensions; do
4673   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4674     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676     break 2
4677   fi
4678 done
4679 done
4680
4681   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4682   ;;
4683 esac
4684 fi
4685 MV=$ac_cv_path_MV
4686
4687 if test -n "$MV"; then
4688   echo "$as_me:$LINENO: result: $MV" >&5
4689 echo "${ECHO_T}$MV" >&6
4690 else
4691   echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6
4693 fi
4694
4695 # Extract the first word of "rm", so it can be a program name with args.
4696 set dummy rm; ac_word=$2
4697 echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4699 if test "${ac_cv_path_RM+set}" = set; then
4700   echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702   case $RM in
4703   [\\/]* | ?:[\\/]*)
4704   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4705   ;;
4706   *)
4707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4709 do
4710   IFS=$as_save_IFS
4711   test -z "$as_dir" && as_dir=.
4712   for ac_exec_ext in '' $ac_executable_extensions; do
4713   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4714     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4716     break 2
4717   fi
4718 done
4719 done
4720
4721   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4722   ;;
4723 esac
4724 fi
4725 RM=$ac_cv_path_RM
4726
4727 if test -n "$RM"; then
4728   echo "$as_me:$LINENO: result: $RM" >&5
4729 echo "${ECHO_T}$RM" >&6
4730 else
4731   echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6
4733 fi
4734
4735 # Extract the first word of "cp", so it can be a program name with args.
4736 set dummy cp; ac_word=$2
4737 echo "$as_me:$LINENO: checking for $ac_word" >&5
4738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4739 if test "${ac_cv_path_CP+set}" = set; then
4740   echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742   case $CP in
4743   [\\/]* | ?:[\\/]*)
4744   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4745   ;;
4746   *)
4747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH
4749 do
4750   IFS=$as_save_IFS
4751   test -z "$as_dir" && as_dir=.
4752   for ac_exec_ext in '' $ac_executable_extensions; do
4753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4754     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4756     break 2
4757   fi
4758 done
4759 done
4760
4761   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4762   ;;
4763 esac
4764 fi
4765 CP=$ac_cv_path_CP
4766
4767 if test -n "$CP"; then
4768   echo "$as_me:$LINENO: result: $CP" >&5
4769 echo "${ECHO_T}$CP" >&6
4770 else
4771   echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6
4773 fi
4774
4775 # Extract the first word of "ln", so it can be a program name with args.
4776 set dummy ln; ac_word=$2
4777 echo "$as_me:$LINENO: checking for $ac_word" >&5
4778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4779 if test "${ac_cv_path_LN+set}" = set; then
4780   echo $ECHO_N "(cached) $ECHO_C" >&6
4781 else
4782   case $LN in
4783   [\\/]* | ?:[\\/]*)
4784   ac_cv_path_LN="$LN" # Let the user override the test with a path.
4785   ;;
4786   *)
4787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790   IFS=$as_save_IFS
4791   test -z "$as_dir" && as_dir=.
4792   for ac_exec_ext in '' $ac_executable_extensions; do
4793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796     break 2
4797   fi
4798 done
4799 done
4800
4801   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
4802   ;;
4803 esac
4804 fi
4805 LN=$ac_cv_path_LN
4806
4807 if test -n "$LN"; then
4808   echo "$as_me:$LINENO: result: $LN" >&5
4809 echo "${ECHO_T}$LN" >&6
4810 else
4811   echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6
4813 fi
4814
4815 # Extract the first word of "sed", so it can be a program name with args.
4816 set dummy sed; ac_word=$2
4817 echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4819 if test "${ac_cv_path_SED+set}" = set; then
4820   echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822   case $SED in
4823   [\\/]* | ?:[\\/]*)
4824   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4825   ;;
4826   *)
4827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830   IFS=$as_save_IFS
4831   test -z "$as_dir" && as_dir=.
4832   for ac_exec_ext in '' $ac_executable_extensions; do
4833   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4834     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4836     break 2
4837   fi
4838 done
4839 done
4840
4841   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4842   ;;
4843 esac
4844 fi
4845 SED=$ac_cv_path_SED
4846
4847 if test -n "$SED"; then
4848   echo "$as_me:$LINENO: result: $SED" >&5
4849 echo "${ECHO_T}$SED" >&6
4850 else
4851   echo "$as_me:$LINENO: result: no" >&5
4852 echo "${ECHO_T}no" >&6
4853 fi
4854
4855 # Extract the first word of "echo", so it can be a program name with args.
4856 set dummy echo; ac_word=$2
4857 echo "$as_me:$LINENO: checking for $ac_word" >&5
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4859 if test "${ac_cv_path_ECHO+set}" = set; then
4860   echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862   case $ECHO in
4863   [\\/]* | ?:[\\/]*)
4864   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4865   ;;
4866   *)
4867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4869 do
4870   IFS=$as_save_IFS
4871   test -z "$as_dir" && as_dir=.
4872   for ac_exec_ext in '' $ac_executable_extensions; do
4873   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4876     break 2
4877   fi
4878 done
4879 done
4880
4881   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4882   ;;
4883 esac
4884 fi
4885 ECHO=$ac_cv_path_ECHO
4886
4887 if test -n "$ECHO"; then
4888   echo "$as_me:$LINENO: result: $ECHO" >&5
4889 echo "${ECHO_T}$ECHO" >&6
4890 else
4891   echo "$as_me:$LINENO: result: no" >&5
4892 echo "${ECHO_T}no" >&6
4893 fi
4894
4895 # Extract the first word of "cmp", so it can be a program name with args.
4896 set dummy cmp; ac_word=$2
4897 echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4899 if test "${ac_cv_path_CMP+set}" = set; then
4900   echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902   case $CMP in
4903   [\\/]* | ?:[\\/]*)
4904   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4905   ;;
4906   *)
4907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in $PATH
4909 do
4910   IFS=$as_save_IFS
4911   test -z "$as_dir" && as_dir=.
4912   for ac_exec_ext in '' $ac_executable_extensions; do
4913   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4914     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4916     break 2
4917   fi
4918 done
4919 done
4920
4921   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4922   ;;
4923 esac
4924 fi
4925 CMP=$ac_cv_path_CMP
4926
4927 if test -n "$CMP"; then
4928   echo "$as_me:$LINENO: result: $CMP" >&5
4929 echo "${ECHO_T}$CMP" >&6
4930 else
4931   echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6
4933 fi
4934
4935 # Extract the first word of "tbl", so it can be a program name with args.
4936 set dummy tbl; ac_word=$2
4937 echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4939 if test "${ac_cv_path_TBL+set}" = set; then
4940   echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942   case $TBL in
4943   [\\/]* | ?:[\\/]*)
4944   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4945   ;;
4946   *)
4947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4949 do
4950   IFS=$as_save_IFS
4951   test -z "$as_dir" && as_dir=.
4952   for ac_exec_ext in '' $ac_executable_extensions; do
4953   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4954     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4956     break 2
4957   fi
4958 done
4959 done
4960
4961   ;;
4962 esac
4963 fi
4964 TBL=$ac_cv_path_TBL
4965
4966 if test -n "$TBL"; then
4967   echo "$as_me:$LINENO: result: $TBL" >&5
4968 echo "${ECHO_T}$TBL" >&6
4969 else
4970   echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6
4972 fi
4973
4974 # Extract the first word of "tic", so it can be a program name with args.
4975 set dummy tic; ac_word=$2
4976 echo "$as_me:$LINENO: checking for $ac_word" >&5
4977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4978 if test "${ac_cv_path_TIC+set}" = set; then
4979   echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981   case $TIC in
4982   [\\/]* | ?:[\\/]*)
4983   ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
4984   ;;
4985   *)
4986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4988 do
4989   IFS=$as_save_IFS
4990   test -z "$as_dir" && as_dir=.
4991   for ac_exec_ext in '' $ac_executable_extensions; do
4992   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4993     ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
4994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995     break 2
4996   fi
4997 done
4998 done
4999
5000   ;;
5001 esac
5002 fi
5003 TIC=$ac_cv_path_TIC
5004
5005 if test -n "$TIC"; then
5006   echo "$as_me:$LINENO: result: $TIC" >&5
5007 echo "${ECHO_T}$TIC" >&6
5008 else
5009   echo "$as_me:$LINENO: result: no" >&5
5010 echo "${ECHO_T}no" >&6
5011 fi
5012
5013
5014
5015
5016
5017 if test "x$ac_path_x_has_been_run" != xyes; then
5018   echo "$as_me:$LINENO: checking for X" >&5
5019 echo $ECHO_N "checking for X... $ECHO_C" >&6
5020
5021 ac_path_x_has_been_run=yes
5022
5023 # Check whether --with-x or --without-x was given.
5024 if test "${with_x+set}" = set; then
5025   withval="$with_x"
5026
5027 fi;
5028 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5029 if test "x$with_x" = xno; then
5030   # The user explicitly disabled X.
5031   have_x=disabled
5032 else
5033   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5034     # Both variables are already set.
5035     have_x=yes
5036   else
5037     if test "${ac_cv_have_x+set}" = set; then
5038   echo $ECHO_N "(cached) $ECHO_C" >&6
5039 else
5040   # One or both of the vars are not set, and there is no cached value.
5041 ac_x_includes=no ac_x_libraries=no
5042 rm -fr conftest.dir
5043 if mkdir conftest.dir; then
5044   cd conftest.dir
5045   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5046   cat >Imakefile <<'_ACEOF'
5047 acfindx:
5048         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5049 _ACEOF
5050   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5051     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5052     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5053     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5054     for ac_extension in a so sl; do
5055       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5056          test -f $ac_im_libdir/libX11.$ac_extension; then
5057         ac_im_usrlibdir=$ac_im_libdir; break
5058       fi
5059     done
5060     # Screen out bogus values from the imake configuration.  They are
5061     # bogus both because they are the default anyway, and because
5062     # using them would break gcc on systems where it needs fixed includes.
5063     case $ac_im_incroot in
5064         /usr/include) ;;
5065         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5066     esac
5067     case $ac_im_usrlibdir in
5068         /usr/lib | /lib) ;;
5069         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5070     esac
5071   fi
5072   cd ..
5073   rm -fr conftest.dir
5074 fi
5075
5076 # Standard set of common directories for X headers.
5077 # Check X11 before X11Rn because it is often a symlink to the current release.
5078 ac_x_header_dirs='
5079 /usr/X11/include
5080 /usr/X11R6/include
5081 /usr/X11R5/include
5082 /usr/X11R4/include
5083
5084 /usr/include/X11
5085 /usr/include/X11R6
5086 /usr/include/X11R5
5087 /usr/include/X11R4
5088
5089 /usr/local/X11/include
5090 /usr/local/X11R6/include
5091 /usr/local/X11R5/include
5092 /usr/local/X11R4/include
5093
5094 /usr/local/include/X11
5095 /usr/local/include/X11R6
5096 /usr/local/include/X11R5
5097 /usr/local/include/X11R4
5098
5099 /usr/X386/include
5100 /usr/x386/include
5101 /usr/XFree86/include/X11
5102
5103 /usr/include
5104 /usr/local/include
5105 /usr/unsupported/include
5106 /usr/athena/include
5107 /usr/local/x11r5/include
5108 /usr/lpp/Xamples/include
5109
5110 /usr/openwin/include
5111 /usr/openwin/share/include'
5112
5113 if test "$ac_x_includes" = no; then
5114   # Guess where to find include files, by looking for a specified header file.
5115   # First, try using that file with no special directory specified.
5116   cat >conftest.$ac_ext <<_ACEOF
5117 /* confdefs.h.  */
5118 _ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h.  */
5122 #include <X11/Xlib.h>
5123 _ACEOF
5124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5125   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5126   ac_status=$?
5127   grep -v '^ *+' conftest.er1 >conftest.err
5128   rm -f conftest.er1
5129   cat conftest.err >&5
5130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131   (exit $ac_status); } >/dev/null; then
5132   if test -s conftest.err; then
5133     ac_cpp_err=$ac_cxx_preproc_warn_flag
5134     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5135   else
5136     ac_cpp_err=
5137   fi
5138 else
5139   ac_cpp_err=yes
5140 fi
5141 if test -z "$ac_cpp_err"; then
5142   # We can compile using X headers with no special include directory.
5143 ac_x_includes=
5144 else
5145   echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5147
5148   for ac_dir in $ac_x_header_dirs; do
5149   if test -r "$ac_dir/X11/Xlib.h"; then
5150     ac_x_includes=$ac_dir
5151     break
5152   fi
5153 done
5154 fi
5155 rm -f conftest.err conftest.$ac_ext
5156 fi # $ac_x_includes = no
5157
5158 if test "$ac_x_libraries" = no; then
5159   # Check for the libraries.
5160   # See if we find them without any special options.
5161   # Don't add to $LIBS permanently.
5162   ac_save_LIBS=$LIBS
5163   LIBS="-lX11 $LIBS"
5164   cat >conftest.$ac_ext <<_ACEOF
5165 /* confdefs.h.  */
5166 _ACEOF
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h.  */
5170 #include <X11/Xlib.h>
5171 int
5172 main ()
5173 {
5174 XrmInitialize ()
5175   ;
5176   return 0;
5177 }
5178 _ACEOF
5179 rm -f conftest.$ac_objext conftest$ac_exeext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5181   (eval $ac_link) 2>conftest.er1
5182   ac_status=$?
5183   grep -v '^ *+' conftest.er1 >conftest.err
5184   rm -f conftest.er1
5185   cat conftest.err >&5
5186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187   (exit $ac_status); } &&
5188          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190   (eval $ac_try) 2>&5
5191   ac_status=$?
5192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193   (exit $ac_status); }; } &&
5194          { ac_try='test -s conftest$ac_exeext'
5195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196   (eval $ac_try) 2>&5
5197   ac_status=$?
5198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199   (exit $ac_status); }; }; then
5200   LIBS=$ac_save_LIBS
5201 # We can link X programs with no special library path.
5202 ac_x_libraries=
5203 else
5204   echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5206
5207 LIBS=$ac_save_LIBS
5208 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5209 do
5210   # Don't even attempt the hair of trying to link an X program!
5211   for ac_extension in a so sl; do
5212     if test -r $ac_dir/libX11.$ac_extension; then
5213       ac_x_libraries=$ac_dir
5214       break 2
5215     fi
5216   done
5217 done
5218 fi
5219 rm -f conftest.err conftest.$ac_objext \
5220       conftest$ac_exeext conftest.$ac_ext
5221 fi # $ac_x_libraries = no
5222
5223 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5224   # Didn't find X anywhere.  Cache the known absence of X.
5225   ac_cv_have_x="have_x=no"
5226 else
5227   # Record where we found X for the cache.
5228   ac_cv_have_x="have_x=yes \
5229                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5230 fi
5231 fi
5232
5233   fi
5234   eval "$ac_cv_have_x"
5235 fi # $with_x != no
5236
5237 if test "$have_x" != yes; then
5238   echo "$as_me:$LINENO: result: $have_x" >&5
5239 echo "${ECHO_T}$have_x" >&6
5240   no_x=yes
5241 else
5242   # If each of the values was on the command line, it overrides each guess.
5243   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5244   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5245   # Update the cache value to reflect the command line values.
5246   ac_cv_have_x="have_x=yes \
5247                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5248   # It might be that x_includes is empty (headers are found in the
5249   # standard search path. Then output the corresponding message
5250   ac_out_x_includes=$x_includes
5251   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
5252   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
5253 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
5254 fi
5255
5256 fi
5257 if test "$no_x" = yes; then
5258   # Not all programs may use this symbol, but it does not hurt to define it.
5259
5260 cat >>confdefs.h <<\_ACEOF
5261 #define X_DISPLAY_MISSING 1
5262 _ACEOF
5263
5264   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5265 else
5266   if test -n "$x_includes"; then
5267     X_CFLAGS="$X_CFLAGS -I$x_includes"
5268   fi
5269
5270   # It would also be nice to do this for all -L options, not just this one.
5271   if test -n "$x_libraries"; then
5272     X_LIBS="$X_LIBS -L$x_libraries"
5273     # For Solaris; some versions of Sun CC require a space after -R and
5274     # others require no space.  Words are not sufficient . . . .
5275     case `(uname -sr) 2>/dev/null` in
5276     "SunOS 5"*)
5277       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5278 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5279       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5280       cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h.  */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h.  */
5286
5287 int
5288 main ()
5289 {
5290
5291   ;
5292   return 0;
5293 }
5294 _ACEOF
5295 rm -f conftest.$ac_objext conftest$ac_exeext
5296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5297   (eval $ac_link) 2>conftest.er1
5298   ac_status=$?
5299   grep -v '^ *+' conftest.er1 >conftest.err
5300   rm -f conftest.er1
5301   cat conftest.err >&5
5302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303   (exit $ac_status); } &&
5304          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306   (eval $ac_try) 2>&5
5307   ac_status=$?
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); }; } &&
5310          { ac_try='test -s conftest$ac_exeext'
5311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312   (eval $ac_try) 2>&5
5313   ac_status=$?
5314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315   (exit $ac_status); }; }; then
5316   ac_R_nospace=yes
5317 else
5318   echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
5320
5321 ac_R_nospace=no
5322 fi
5323 rm -f conftest.err conftest.$ac_objext \
5324       conftest$ac_exeext conftest.$ac_ext
5325       if test $ac_R_nospace = yes; then
5326         echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6
5328         X_LIBS="$X_LIBS -R$x_libraries"
5329       else
5330         LIBS="$ac_xsave_LIBS -R $x_libraries"
5331         cat >conftest.$ac_ext <<_ACEOF
5332 /* confdefs.h.  */
5333 _ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h.  */
5337
5338 int
5339 main ()
5340 {
5341
5342   ;
5343   return 0;
5344 }
5345 _ACEOF
5346 rm -f conftest.$ac_objext conftest$ac_exeext
5347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5348   (eval $ac_link) 2>conftest.er1
5349   ac_status=$?
5350   grep -v '^ *+' conftest.er1 >conftest.err
5351   rm -f conftest.er1
5352   cat conftest.err >&5
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); } &&
5355          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357   (eval $ac_try) 2>&5
5358   ac_status=$?
5359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360   (exit $ac_status); }; } &&
5361          { ac_try='test -s conftest$ac_exeext'
5362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363   (eval $ac_try) 2>&5
5364   ac_status=$?
5365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366   (exit $ac_status); }; }; then
5367   ac_R_space=yes
5368 else
5369   echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5371
5372 ac_R_space=no
5373 fi
5374 rm -f conftest.err conftest.$ac_objext \
5375       conftest$ac_exeext conftest.$ac_ext
5376         if test $ac_R_space = yes; then
5377           echo "$as_me:$LINENO: result: yes" >&5
5378 echo "${ECHO_T}yes" >&6
5379           X_LIBS="$X_LIBS -R $x_libraries"
5380         else
5381           echo "$as_me:$LINENO: result: neither works" >&5
5382 echo "${ECHO_T}neither works" >&6
5383         fi
5384       fi
5385       LIBS=$ac_xsave_LIBS
5386     esac
5387   fi
5388
5389   # Check for system-dependent libraries X programs must link with.
5390   # Do this before checking for the system-independent R6 libraries
5391   # (-lICE), since we may need -lsocket or whatever for X linking.
5392
5393   if test "$ISC" = yes; then
5394     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5395   else
5396     # Martyn Johnson says this is needed for Ultrix, if the X
5397     # libraries were built with DECnet support.  And Karl Berry says
5398     # the Alpha needs dnet_stub (dnet does not exist).
5399     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5400     cat >conftest.$ac_ext <<_ACEOF
5401 /* confdefs.h.  */
5402 _ACEOF
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h.  */
5406
5407 /* Override any gcc2 internal prototype to avoid an error.  */
5408 #ifdef __cplusplus
5409 extern "C"
5410 #endif
5411 /* We use char because int might match the return type of a gcc2
5412    builtin and then its argument prototype would still apply.  */
5413 char XOpenDisplay ();
5414 int
5415 main ()
5416 {
5417 XOpenDisplay ();
5418   ;
5419   return 0;
5420 }
5421 _ACEOF
5422 rm -f conftest.$ac_objext conftest$ac_exeext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5424   (eval $ac_link) 2>conftest.er1
5425   ac_status=$?
5426   grep -v '^ *+' conftest.er1 >conftest.err
5427   rm -f conftest.er1
5428   cat conftest.err >&5
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); } &&
5431          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433   (eval $ac_try) 2>&5
5434   ac_status=$?
5435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436   (exit $ac_status); }; } &&
5437          { ac_try='test -s conftest$ac_exeext'
5438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439   (eval $ac_try) 2>&5
5440   ac_status=$?
5441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442   (exit $ac_status); }; }; then
5443   :
5444 else
5445   echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5447
5448 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5449 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5450 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5451   echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453   ac_check_lib_save_LIBS=$LIBS
5454 LIBS="-ldnet  $LIBS"
5455 cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h.  */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h.  */
5461
5462 /* Override any gcc2 internal prototype to avoid an error.  */
5463 #ifdef __cplusplus
5464 extern "C"
5465 #endif
5466 /* We use char because int might match the return type of a gcc2
5467    builtin and then its argument prototype would still apply.  */
5468 char dnet_ntoa ();
5469 int
5470 main ()
5471 {
5472 dnet_ntoa ();
5473   ;
5474   return 0;
5475 }
5476 _ACEOF
5477 rm -f conftest.$ac_objext conftest$ac_exeext
5478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5479   (eval $ac_link) 2>conftest.er1
5480   ac_status=$?
5481   grep -v '^ *+' conftest.er1 >conftest.err
5482   rm -f conftest.er1
5483   cat conftest.err >&5
5484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485   (exit $ac_status); } &&
5486          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488   (eval $ac_try) 2>&5
5489   ac_status=$?
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); }; } &&
5492          { ac_try='test -s conftest$ac_exeext'
5493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494   (eval $ac_try) 2>&5
5495   ac_status=$?
5496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497   (exit $ac_status); }; }; then
5498   ac_cv_lib_dnet_dnet_ntoa=yes
5499 else
5500   echo "$as_me: failed program was:" >&5
5501 sed 's/^/| /' conftest.$ac_ext >&5
5502
5503 ac_cv_lib_dnet_dnet_ntoa=no
5504 fi
5505 rm -f conftest.err conftest.$ac_objext \
5506       conftest$ac_exeext conftest.$ac_ext
5507 LIBS=$ac_check_lib_save_LIBS
5508 fi
5509 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5510 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5511 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5512   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5513 fi
5514
5515     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5516       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5517 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5518 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5519   echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521   ac_check_lib_save_LIBS=$LIBS
5522 LIBS="-ldnet_stub  $LIBS"
5523 cat >conftest.$ac_ext <<_ACEOF
5524 /* confdefs.h.  */
5525 _ACEOF
5526 cat confdefs.h >>conftest.$ac_ext
5527 cat >>conftest.$ac_ext <<_ACEOF
5528 /* end confdefs.h.  */
5529
5530 /* Override any gcc2 internal prototype to avoid an error.  */
5531 #ifdef __cplusplus
5532 extern "C"
5533 #endif
5534 /* We use char because int might match the return type of a gcc2
5535    builtin and then its argument prototype would still apply.  */
5536 char dnet_ntoa ();
5537 int
5538 main ()
5539 {
5540 dnet_ntoa ();
5541   ;
5542   return 0;
5543 }
5544 _ACEOF
5545 rm -f conftest.$ac_objext conftest$ac_exeext
5546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5547   (eval $ac_link) 2>conftest.er1
5548   ac_status=$?
5549   grep -v '^ *+' conftest.er1 >conftest.err
5550   rm -f conftest.er1
5551   cat conftest.err >&5
5552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553   (exit $ac_status); } &&
5554          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556   (eval $ac_try) 2>&5
5557   ac_status=$?
5558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559   (exit $ac_status); }; } &&
5560          { ac_try='test -s conftest$ac_exeext'
5561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562   (eval $ac_try) 2>&5
5563   ac_status=$?
5564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565   (exit $ac_status); }; }; then
5566   ac_cv_lib_dnet_stub_dnet_ntoa=yes
5567 else
5568   echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5570
5571 ac_cv_lib_dnet_stub_dnet_ntoa=no
5572 fi
5573 rm -f conftest.err conftest.$ac_objext \
5574       conftest$ac_exeext conftest.$ac_ext
5575 LIBS=$ac_check_lib_save_LIBS
5576 fi
5577 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5578 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5579 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5580   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5581 fi
5582
5583     fi
5584 fi
5585 rm -f conftest.err conftest.$ac_objext \
5586       conftest$ac_exeext conftest.$ac_ext
5587     LIBS="$ac_xsave_LIBS"
5588
5589     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5590     # to get the SysV transport functions.
5591     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5592     # needs -lnsl.
5593     # The nsl library prevents programs from opening the X display
5594     # on Irix 5.2, according to T.E. Dickey.
5595     # The functions gethostbyname, getservbyname, and inet_addr are
5596     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5597     echo "$as_me:$LINENO: checking for gethostbyname" >&5
5598 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5599 if test "${ac_cv_func_gethostbyname+set}" = set; then
5600   echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602   cat >conftest.$ac_ext <<_ACEOF
5603 /* confdefs.h.  */
5604 _ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h.  */
5608 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5609    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5610 #define gethostbyname innocuous_gethostbyname
5611
5612 /* System header to define __stub macros and hopefully few prototypes,
5613     which can conflict with char gethostbyname (); below.
5614     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5615     <limits.h> exists even on freestanding compilers.  */
5616
5617 #ifdef __STDC__
5618 # include <limits.h>
5619 #else
5620 # include <assert.h>
5621 #endif
5622
5623 #undef gethostbyname
5624
5625 /* Override any gcc2 internal prototype to avoid an error.  */
5626 #ifdef __cplusplus
5627 extern "C"
5628 {
5629 #endif
5630 /* We use char because int might match the return type of a gcc2
5631    builtin and then its argument prototype would still apply.  */
5632 char gethostbyname ();
5633 /* The GNU C library defines this for functions which it implements
5634     to always fail with ENOSYS.  Some functions are actually named
5635     something starting with __ and the normal name is an alias.  */
5636 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5637 choke me
5638 #else
5639 char (*f) () = gethostbyname;
5640 #endif
5641 #ifdef __cplusplus
5642 }
5643 #endif
5644
5645 int
5646 main ()
5647 {
5648 return f != gethostbyname;
5649   ;
5650   return 0;
5651 }
5652 _ACEOF
5653 rm -f conftest.$ac_objext conftest$ac_exeext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655   (eval $ac_link) 2>conftest.er1
5656   ac_status=$?
5657   grep -v '^ *+' conftest.er1 >conftest.err
5658   rm -f conftest.er1
5659   cat conftest.err >&5
5660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661   (exit $ac_status); } &&
5662          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664   (eval $ac_try) 2>&5
5665   ac_status=$?
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); }; } &&
5668          { ac_try='test -s conftest$ac_exeext'
5669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670   (eval $ac_try) 2>&5
5671   ac_status=$?
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); }; }; then
5674   ac_cv_func_gethostbyname=yes
5675 else
5676   echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5678
5679 ac_cv_func_gethostbyname=no
5680 fi
5681 rm -f conftest.err conftest.$ac_objext \
5682       conftest$ac_exeext conftest.$ac_ext
5683 fi
5684 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5685 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5686
5687     if test $ac_cv_func_gethostbyname = no; then
5688       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5689 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5690 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5691   echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693   ac_check_lib_save_LIBS=$LIBS
5694 LIBS="-lnsl  $LIBS"
5695 cat >conftest.$ac_ext <<_ACEOF
5696 /* confdefs.h.  */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h.  */
5701
5702 /* Override any gcc2 internal prototype to avoid an error.  */
5703 #ifdef __cplusplus
5704 extern "C"
5705 #endif
5706 /* We use char because int might match the return type of a gcc2
5707    builtin and then its argument prototype would still apply.  */
5708 char gethostbyname ();
5709 int
5710 main ()
5711 {
5712 gethostbyname ();
5713   ;
5714   return 0;
5715 }
5716 _ACEOF
5717 rm -f conftest.$ac_objext conftest$ac_exeext
5718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5719   (eval $ac_link) 2>conftest.er1
5720   ac_status=$?
5721   grep -v '^ *+' conftest.er1 >conftest.err
5722   rm -f conftest.er1
5723   cat conftest.err >&5
5724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725   (exit $ac_status); } &&
5726          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728   (eval $ac_try) 2>&5
5729   ac_status=$?
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); }; } &&
5732          { ac_try='test -s conftest$ac_exeext'
5733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734   (eval $ac_try) 2>&5
5735   ac_status=$?
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); }; }; then
5738   ac_cv_lib_nsl_gethostbyname=yes
5739 else
5740   echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5742
5743 ac_cv_lib_nsl_gethostbyname=no
5744 fi
5745 rm -f conftest.err conftest.$ac_objext \
5746       conftest$ac_exeext conftest.$ac_ext
5747 LIBS=$ac_check_lib_save_LIBS
5748 fi
5749 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5750 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5751 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5752   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5753 fi
5754
5755       if test $ac_cv_lib_nsl_gethostbyname = no; then
5756         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5757 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5758 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5759   echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761   ac_check_lib_save_LIBS=$LIBS
5762 LIBS="-lbsd  $LIBS"
5763 cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h.  */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h.  */
5769
5770 /* Override any gcc2 internal prototype to avoid an error.  */
5771 #ifdef __cplusplus
5772 extern "C"
5773 #endif
5774 /* We use char because int might match the return type of a gcc2
5775    builtin and then its argument prototype would still apply.  */
5776 char gethostbyname ();
5777 int
5778 main ()
5779 {
5780 gethostbyname ();
5781   ;
5782   return 0;
5783 }
5784 _ACEOF
5785 rm -f conftest.$ac_objext conftest$ac_exeext
5786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5787   (eval $ac_link) 2>conftest.er1
5788   ac_status=$?
5789   grep -v '^ *+' conftest.er1 >conftest.err
5790   rm -f conftest.er1
5791   cat conftest.err >&5
5792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793   (exit $ac_status); } &&
5794          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796   (eval $ac_try) 2>&5
5797   ac_status=$?
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); }; } &&
5800          { ac_try='test -s conftest$ac_exeext'
5801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802   (eval $ac_try) 2>&5
5803   ac_status=$?
5804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805   (exit $ac_status); }; }; then
5806   ac_cv_lib_bsd_gethostbyname=yes
5807 else
5808   echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5810
5811 ac_cv_lib_bsd_gethostbyname=no
5812 fi
5813 rm -f conftest.err conftest.$ac_objext \
5814       conftest$ac_exeext conftest.$ac_ext
5815 LIBS=$ac_check_lib_save_LIBS
5816 fi
5817 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5818 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5819 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5820   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5821 fi
5822
5823       fi
5824     fi
5825
5826     # lieder@skyler.mavd.honeywell.com says without -lsocket,
5827     # socket/setsockopt and other routines are undefined under SCO ODT
5828     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
5829     # on later versions), says Simon Leinen: it contains gethostby*
5830     # variants that don't use the name server (or something).  -lsocket
5831     # must be given before -lnsl if both are needed.  We assume that
5832     # if connect needs -lnsl, so does gethostbyname.
5833     echo "$as_me:$LINENO: checking for connect" >&5
5834 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5835 if test "${ac_cv_func_connect+set}" = set; then
5836   echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838   cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h.  */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h.  */
5844 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5846 #define connect innocuous_connect
5847
5848 /* System header to define __stub macros and hopefully few prototypes,
5849     which can conflict with char connect (); below.
5850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5851     <limits.h> exists even on freestanding compilers.  */
5852
5853 #ifdef __STDC__
5854 # include <limits.h>
5855 #else
5856 # include <assert.h>
5857 #endif
5858
5859 #undef connect
5860
5861 /* Override any gcc2 internal prototype to avoid an error.  */
5862 #ifdef __cplusplus
5863 extern "C"
5864 {
5865 #endif
5866 /* We use char because int might match the return type of a gcc2
5867    builtin and then its argument prototype would still apply.  */
5868 char connect ();
5869 /* The GNU C library defines this for functions which it implements
5870     to always fail with ENOSYS.  Some functions are actually named
5871     something starting with __ and the normal name is an alias.  */
5872 #if defined (__stub_connect) || defined (__stub___connect)
5873 choke me
5874 #else
5875 char (*f) () = connect;
5876 #endif
5877 #ifdef __cplusplus
5878 }
5879 #endif
5880
5881 int
5882 main ()
5883 {
5884 return f != connect;
5885   ;
5886   return 0;
5887 }
5888 _ACEOF
5889 rm -f conftest.$ac_objext conftest$ac_exeext
5890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5891   (eval $ac_link) 2>conftest.er1
5892   ac_status=$?
5893   grep -v '^ *+' conftest.er1 >conftest.err
5894   rm -f conftest.er1
5895   cat conftest.err >&5
5896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897   (exit $ac_status); } &&
5898          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900   (eval $ac_try) 2>&5
5901   ac_status=$?
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); }; } &&
5904          { ac_try='test -s conftest$ac_exeext'
5905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906   (eval $ac_try) 2>&5
5907   ac_status=$?
5908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909   (exit $ac_status); }; }; then
5910   ac_cv_func_connect=yes
5911 else
5912   echo "$as_me: failed program was:" >&5
5913 sed 's/^/| /' conftest.$ac_ext >&5
5914
5915 ac_cv_func_connect=no
5916 fi
5917 rm -f conftest.err conftest.$ac_objext \
5918       conftest$ac_exeext conftest.$ac_ext
5919 fi
5920 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5921 echo "${ECHO_T}$ac_cv_func_connect" >&6
5922
5923     if test $ac_cv_func_connect = no; then
5924       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5925 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5926 if test "${ac_cv_lib_socket_connect+set}" = set; then
5927   echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929   ac_check_lib_save_LIBS=$LIBS
5930 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5931 cat >conftest.$ac_ext <<_ACEOF
5932 /* confdefs.h.  */
5933 _ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h.  */
5937
5938 /* Override any gcc2 internal prototype to avoid an error.  */
5939 #ifdef __cplusplus
5940 extern "C"
5941 #endif
5942 /* We use char because int might match the return type of a gcc2
5943    builtin and then its argument prototype would still apply.  */
5944 char connect ();
5945 int
5946 main ()
5947 {
5948 connect ();
5949   ;
5950   return 0;
5951 }
5952 _ACEOF
5953 rm -f conftest.$ac_objext conftest$ac_exeext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5955   (eval $ac_link) 2>conftest.er1
5956   ac_status=$?
5957   grep -v '^ *+' conftest.er1 >conftest.err
5958   rm -f conftest.er1
5959   cat conftest.err >&5
5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961   (exit $ac_status); } &&
5962          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964   (eval $ac_try) 2>&5
5965   ac_status=$?
5966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967   (exit $ac_status); }; } &&
5968          { ac_try='test -s conftest$ac_exeext'
5969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970   (eval $ac_try) 2>&5
5971   ac_status=$?
5972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973   (exit $ac_status); }; }; then
5974   ac_cv_lib_socket_connect=yes
5975 else
5976   echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5978
5979 ac_cv_lib_socket_connect=no
5980 fi
5981 rm -f conftest.err conftest.$ac_objext \
5982       conftest$ac_exeext conftest.$ac_ext
5983 LIBS=$ac_check_lib_save_LIBS
5984 fi
5985 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5986 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5987 if test $ac_cv_lib_socket_connect = yes; then
5988   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5989 fi
5990
5991     fi
5992
5993     # Guillermo Gomez says -lposix is necessary on A/UX.
5994     echo "$as_me:$LINENO: checking for remove" >&5
5995 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5996 if test "${ac_cv_func_remove+set}" = set; then
5997   echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999   cat >conftest.$ac_ext <<_ACEOF
6000 /* confdefs.h.  */
6001 _ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h.  */
6005 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6006    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6007 #define remove innocuous_remove
6008
6009 /* System header to define __stub macros and hopefully few prototypes,
6010     which can conflict with char remove (); below.
6011     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6012     <limits.h> exists even on freestanding compilers.  */
6013
6014 #ifdef __STDC__
6015 # include <limits.h>
6016 #else
6017 # include <assert.h>
6018 #endif
6019
6020 #undef remove
6021
6022 /* Override any gcc2 internal prototype to avoid an error.  */
6023 #ifdef __cplusplus
6024 extern "C"
6025 {
6026 #endif
6027 /* We use char because int might match the return type of a gcc2
6028    builtin and then its argument prototype would still apply.  */
6029 char remove ();
6030 /* The GNU C library defines this for functions which it implements
6031     to always fail with ENOSYS.  Some functions are actually named
6032     something starting with __ and the normal name is an alias.  */
6033 #if defined (__stub_remove) || defined (__stub___remove)
6034 choke me
6035 #else
6036 char (*f) () = remove;
6037 #endif
6038 #ifdef __cplusplus
6039 }
6040 #endif
6041
6042 int
6043 main ()
6044 {
6045 return f != remove;
6046   ;
6047   return 0;
6048 }
6049 _ACEOF
6050 rm -f conftest.$ac_objext conftest$ac_exeext
6051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6052   (eval $ac_link) 2>conftest.er1
6053   ac_status=$?
6054   grep -v '^ *+' conftest.er1 >conftest.err
6055   rm -f conftest.er1
6056   cat conftest.err >&5
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); } &&
6059          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
6060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061   (eval $ac_try) 2>&5
6062   ac_status=$?
6063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064   (exit $ac_status); }; } &&
6065          { ac_try='test -s conftest$ac_exeext'
6066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067   (eval $ac_try) 2>&5
6068   ac_status=$?
6069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070   (exit $ac_status); }; }; then
6071   ac_cv_func_remove=yes
6072 else
6073   echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6075
6076 ac_cv_func_remove=no
6077 fi
6078 rm -f conftest.err conftest.$ac_objext \
6079       conftest$ac_exeext conftest.$ac_ext
6080 fi
6081 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6082 echo "${ECHO_T}$ac_cv_func_remove" >&6
6083
6084     if test $ac_cv_func_remove = no; then
6085       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6086 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6087 if test "${ac_cv_lib_posix_remove+set}" = set; then
6088   echo $ECHO_N "(cached) $ECHO_C" >&6
6089 else
6090   ac_check_lib_save_LIBS=$LIBS
6091 LIBS="-lposix  $LIBS"
6092 cat >conftest.$ac_ext <<_ACEOF
6093 /* confdefs.h.  */
6094 _ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h.  */
6098
6099 /* Override any gcc2 internal prototype to avoid an error.  */
6100 #ifdef __cplusplus
6101 extern "C"
6102 #endif
6103 /* We use char because int might match the return type of a gcc2
6104    builtin and then its argument prototype would still apply.  */
6105 char remove ();
6106 int
6107 main ()
6108 {
6109 remove ();
6110   ;
6111   return 0;
6112 }
6113 _ACEOF
6114 rm -f conftest.$ac_objext conftest$ac_exeext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6116   (eval $ac_link) 2>conftest.er1
6117   ac_status=$?
6118   grep -v '^ *+' conftest.er1 >conftest.err
6119   rm -f conftest.er1
6120   cat conftest.err >&5
6121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122   (exit $ac_status); } &&
6123          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
6124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125   (eval $ac_try) 2>&5
6126   ac_status=$?
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); }; } &&
6129          { ac_try='test -s conftest$ac_exeext'
6130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131   (eval $ac_try) 2>&5
6132   ac_status=$?
6133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134   (exit $ac_status); }; }; then
6135   ac_cv_lib_posix_remove=yes
6136 else
6137   echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6139
6140 ac_cv_lib_posix_remove=no
6141 fi
6142 rm -f conftest.err conftest.$ac_objext \
6143       conftest$ac_exeext conftest.$ac_ext
6144 LIBS=$ac_check_lib_save_LIBS
6145 fi
6146 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6147 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6148 if test $ac_cv_lib_posix_remove = yes; then
6149   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6150 fi
6151
6152     fi
6153
6154     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6155     echo "$as_me:$LINENO: checking for shmat" >&5
6156 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6157 if test "${ac_cv_func_shmat+set}" = set; then
6158   echo $ECHO_N "(cached) $ECHO_C" >&6
6159 else
6160   cat >conftest.$ac_ext <<_ACEOF
6161 /* confdefs.h.  */
6162 _ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h.  */
6166 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6168 #define shmat innocuous_shmat
6169
6170 /* System header to define __stub macros and hopefully few prototypes,
6171     which can conflict with char shmat (); below.
6172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6173     <limits.h> exists even on freestanding compilers.  */
6174
6175 #ifdef __STDC__
6176 # include <limits.h>
6177 #else
6178 # include <assert.h>
6179 #endif
6180
6181 #undef shmat
6182
6183 /* Override any gcc2 internal prototype to avoid an error.  */
6184 #ifdef __cplusplus
6185 extern "C"
6186 {
6187 #endif
6188 /* We use char because int might match the return type of a gcc2
6189    builtin and then its argument prototype would still apply.  */
6190 char shmat ();
6191 /* The GNU C library defines this for functions which it implements
6192     to always fail with ENOSYS.  Some functions are actually named
6193     something starting with __ and the normal name is an alias.  */
6194 #if defined (__stub_shmat) || defined (__stub___shmat)
6195 choke me
6196 #else
6197 char (*f) () = shmat;
6198 #endif
6199 #ifdef __cplusplus
6200 }
6201 #endif
6202
6203 int
6204 main ()
6205 {
6206 return f != shmat;
6207   ;
6208   return 0;
6209 }
6210 _ACEOF
6211 rm -f conftest.$ac_objext conftest$ac_exeext
6212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6213   (eval $ac_link) 2>conftest.er1
6214   ac_status=$?
6215   grep -v '^ *+' conftest.er1 >conftest.err
6216   rm -f conftest.er1
6217   cat conftest.err >&5
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); } &&
6220          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
6221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222   (eval $ac_try) 2>&5
6223   ac_status=$?
6224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225   (exit $ac_status); }; } &&
6226          { ac_try='test -s conftest$ac_exeext'
6227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228   (eval $ac_try) 2>&5
6229   ac_status=$?
6230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231   (exit $ac_status); }; }; then
6232   ac_cv_func_shmat=yes
6233 else
6234   echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6236
6237 ac_cv_func_shmat=no
6238 fi
6239 rm -f conftest.err conftest.$ac_objext \
6240       conftest$ac_exeext conftest.$ac_ext
6241 fi
6242 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6243 echo "${ECHO_T}$ac_cv_func_shmat" >&6
6244
6245     if test $ac_cv_func_shmat = no; then
6246       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6247 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6248 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6249   echo $ECHO_N "(cached) $ECHO_C" >&6
6250 else
6251   ac_check_lib_save_LIBS=$LIBS
6252 LIBS="-lipc  $LIBS"
6253 cat >conftest.$ac_ext <<_ACEOF
6254 /* confdefs.h.  */
6255 _ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h.  */
6259
6260 /* Override any gcc2 internal prototype to avoid an error.  */
6261 #ifdef __cplusplus
6262 extern "C"
6263 #endif
6264 /* We use char because int might match the return type of a gcc2
6265    builtin and then its argument prototype would still apply.  */
6266 char shmat ();
6267 int
6268 main ()
6269 {
6270 shmat ();
6271   ;
6272   return 0;
6273 }
6274 _ACEOF
6275 rm -f conftest.$ac_objext conftest$ac_exeext
6276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6277   (eval $ac_link) 2>conftest.er1
6278   ac_status=$?
6279   grep -v '^ *+' conftest.er1 >conftest.err
6280   rm -f conftest.er1
6281   cat conftest.err >&5
6282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283   (exit $ac_status); } &&
6284          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
6285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286   (eval $ac_try) 2>&5
6287   ac_status=$?
6288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289   (exit $ac_status); }; } &&
6290          { ac_try='test -s conftest$ac_exeext'
6291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292   (eval $ac_try) 2>&5
6293   ac_status=$?
6294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295   (exit $ac_status); }; }; then
6296   ac_cv_lib_ipc_shmat=yes
6297 else
6298   echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6300
6301 ac_cv_lib_ipc_shmat=no
6302 fi
6303 rm -f conftest.err conftest.$ac_objext \
6304       conftest$ac_exeext conftest.$ac_ext
6305 LIBS=$ac_check_lib_save_LIBS
6306 fi
6307 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6308 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6309 if test $ac_cv_lib_ipc_shmat = yes; then
6310   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6311 fi
6312
6313     fi
6314   fi
6315
6316   # Check for libraries that X11R6 Xt/Xaw programs need.
6317   ac_save_LDFLAGS=$LDFLAGS
6318   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6319   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6320   # check for ICE first), but we must link in the order -lSM -lICE or
6321   # we get undefined symbols.  So assume we have SM if we have ICE.
6322   # These have to be linked with before -lX11, unlike the other
6323   # libraries we check for below, so use a different variable.
6324   # John Interrante, Karl Berry
6325   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6326 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6327 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6328   echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330   ac_check_lib_save_LIBS=$LIBS
6331 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6332 cat >conftest.$ac_ext <<_ACEOF
6333 /* confdefs.h.  */
6334 _ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h.  */
6338
6339 /* Override any gcc2 internal prototype to avoid an error.  */
6340 #ifdef __cplusplus
6341 extern "C"
6342 #endif
6343 /* We use char because int might match the return type of a gcc2
6344    builtin and then its argument prototype would still apply.  */
6345 char IceConnectionNumber ();
6346 int
6347 main ()
6348 {
6349 IceConnectionNumber ();
6350   ;
6351   return 0;
6352 }
6353 _ACEOF
6354 rm -f conftest.$ac_objext conftest$ac_exeext
6355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6356   (eval $ac_link) 2>conftest.er1
6357   ac_status=$?
6358   grep -v '^ *+' conftest.er1 >conftest.err
6359   rm -f conftest.er1
6360   cat conftest.err >&5
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); } &&
6363          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
6364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365   (eval $ac_try) 2>&5
6366   ac_status=$?
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); }; } &&
6369          { ac_try='test -s conftest$ac_exeext'
6370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371   (eval $ac_try) 2>&5
6372   ac_status=$?
6373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374   (exit $ac_status); }; }; then
6375   ac_cv_lib_ICE_IceConnectionNumber=yes
6376 else
6377   echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6379
6380 ac_cv_lib_ICE_IceConnectionNumber=no
6381 fi
6382 rm -f conftest.err conftest.$ac_objext \
6383       conftest$ac_exeext conftest.$ac_ext
6384 LIBS=$ac_check_lib_save_LIBS
6385 fi
6386 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6387 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6388 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6389   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6390 fi
6391
6392   LDFLAGS=$ac_save_LDFLAGS
6393
6394 fi
6395
6396
6397
6398 if test x$support_xpm = xyes; then
6399
6400
6401
6402 # Initialize some more variables set by options.
6403 # The variables have the same names as the options, with
6404 # dashes changed to underlines.
6405
6406 # If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6407 # paths, otherwise set no_xpm=yes.
6408 # Uses ac_ vars as temps to allow command line to override cache and checks.
6409 echo "$as_me:$LINENO: checking for libXpm" >&5
6410 echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
6411
6412
6413 # Check whether --with-xpm_includes or --without-xpm_includes was given.
6414 if test "${with_xpm_includes+set}" = set; then
6415   withval="$with_xpm_includes"
6416   xpm_includes="$withval"
6417 else
6418   xpm_includes=NO
6419 fi;
6420
6421 # Check whether --with-xpm_library or --without-xpm_library was given.
6422 if test "${with_xpm_library+set}" = set; then
6423   withval="$with_xpm_library"
6424   xpm_libraries="$withval"
6425 else
6426   xpm_libraries=NO
6427 fi;
6428
6429 # --without-xpm overrides everything else, but does not touch the cache.
6430
6431 # Check whether --with-xpm or --without-xpm was given.
6432 if test "${with_xpm+set}" = set; then
6433   withval="$with_xpm"
6434
6435 fi;
6436 if test "$with_xpm" = no; then
6437   have_xpm=disabled
6438 else
6439   if test "${ac_cv_have_xpm+set}" = set; then
6440   echo $ECHO_N "(cached) $ECHO_C" >&6
6441 else
6442
6443   vt_xpm_include_X11=no
6444   if test -n "$xpm_includes"; then
6445     vt_xpm_includes=$xpm_includes
6446   else
6447     vt_xpm_includes=NO
6448   fi
6449   if test -n "$xpm_libraries"; then
6450     vt_xpm_libraries=$xpm_libraries
6451   else
6452     vt_xpm_libraries=NO
6453   fi
6454
6455   if test "$vt_xpm_includes" = NO; then
6456   # Guess where to find xpm.h
6457
6458 ac_save_CPPFLAGS="$CPPFLAGS"
6459 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6460
6461   # First, try using that file with no special directory specified.
6462 cat >conftest.$ac_ext <<_ACEOF
6463 /* confdefs.h.  */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h.  */
6468 #include <X11/xpm.h>
6469 _ACEOF
6470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6471   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6472   ac_status=$?
6473   grep -v '^ *+' conftest.er1 >conftest.err
6474   rm -f conftest.er1
6475   cat conftest.err >&5
6476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477   (exit $ac_status); } >/dev/null; then
6478   if test -s conftest.err; then
6479     ac_cpp_err=$ac_cxx_preproc_warn_flag
6480     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6481   else
6482     ac_cpp_err=
6483   fi
6484 else
6485   ac_cpp_err=yes
6486 fi
6487 if test -z "$ac_cpp_err"; then
6488   # We can compile using X headers with no special include directory.
6489 vt_xpm_includes=
6490 vt_xpm_include_X11=yes
6491 else
6492   echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6494
6495   CPPFLAGS="$ac_save_CPPFLAGS"
6496 # Look for the header file in a standard set of common directories.
6497   for ac_dir in               \
6498     /usr/X11/include          \
6499     /usr/X11R6/include        \
6500     /usr/X11R5/include        \
6501     /usr/X11R4/include        \
6502                               \
6503     /usr/include/X11          \
6504     /usr/include/X11R6        \
6505     /usr/include/X11R5        \
6506     /usr/include/X11R4        \
6507                               \
6508     /usr/local/X11/include    \
6509     /usr/local/X11R6/include  \
6510     /usr/local/X11R5/include  \
6511     /usr/local/X11R4/include  \
6512                               \
6513     /usr/local/include/X11    \
6514     /usr/local/include/X11R6  \
6515     /usr/local/include/X11R5  \
6516     /usr/local/include/X11R4  \
6517                               \
6518     /usr/X386/include         \
6519     /usr/x386/include         \
6520     /usr/XFree86/include/X11  \
6521                               \
6522     /usr/include              \
6523     /usr/local/include        \
6524     /usr/unsupported/include  \
6525     /usr/athena/include       \
6526     /usr/local/x11r5/include  \
6527     /usr/lpp/Xamples/include  \
6528                               \
6529     /usr/openwin/include      \
6530     /usr/openwin/share/include \
6531     ; \
6532   do
6533     if test -r "$ac_dir/X11/xpm.h"; then
6534       vt_xpm_includes="$ac_dir"
6535       vt_xpm_include_X11=yes
6536       break
6537     else
6538       if test -r "$ac_dir/xpm.h"; then
6539         vt_xpm_includes=$ac_dir
6540         break
6541       fi
6542     fi
6543   done
6544 fi
6545 rm -f conftest.err conftest.$ac_ext
6546 fi
6547
6548 if test "$vt_xpm_libraries" = NO; then
6549   # Check for the libraries.
6550
6551   # See if we find them without any special options.
6552   # Don't add to $LIBS permanently.
6553   ac_save_LIBS="$LIBS"
6554   LIBS="$LIBS $X_LIBS -lXpm -lX11"
6555 cat >conftest.$ac_ext <<_ACEOF
6556 /* confdefs.h.  */
6557 _ACEOF
6558 cat confdefs.h >>conftest.$ac_ext
6559 cat >>conftest.$ac_ext <<_ACEOF
6560 /* end confdefs.h.  */
6561
6562 int
6563 main ()
6564 {
6565 XpmReadFileToPixmap()
6566   ;
6567   return 0;
6568 }
6569 _ACEOF
6570 rm -f conftest.$ac_objext conftest$ac_exeext
6571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6572   (eval $ac_link) 2>conftest.er1
6573   ac_status=$?
6574   grep -v '^ *+' conftest.er1 >conftest.err
6575   rm -f conftest.er1
6576   cat conftest.err >&5
6577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578   (exit $ac_status); } &&
6579          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
6580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581   (eval $ac_try) 2>&5
6582   ac_status=$?
6583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584   (exit $ac_status); }; } &&
6585          { ac_try='test -s conftest$ac_exeext'
6586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587   (eval $ac_try) 2>&5
6588   ac_status=$?
6589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590   (exit $ac_status); }; }; then
6591   LIBS="$ac_save_LIBS"
6592 # We can link libXpm with no special library path.
6593 vt_xpm_libraries=
6594 else
6595   echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6597
6598 LIBS="$ac_save_LIBS"
6599 # First see if replacing the include by lib works.
6600 for ac_dir in \
6601     `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6602     /usr/X11/lib          \
6603     /usr/X11R6/lib        \
6604     /usr/X11R5/lib        \
6605     /usr/X11R4/lib        \
6606                           \
6607     /usr/lib/X11          \
6608     /usr/lib/X11R6        \
6609     /usr/lib/X11R5        \
6610     /usr/lib/X11R4        \
6611                           \
6612     /usr/local/X11/lib    \
6613     /usr/local/X11R6/lib  \
6614     /usr/local/X11R5/lib  \
6615     /usr/local/X11R4/lib  \
6616                           \
6617     /usr/local/lib/X11    \
6618     /usr/local/lib/X11R6  \
6619     /usr/local/lib/X11R5  \
6620     /usr/local/lib/X11R4  \
6621                           \
6622     /usr/X386/lib         \
6623     /usr/x386/lib         \
6624     /usr/XFree86/lib/X11  \
6625                           \
6626     /usr/lib              \
6627     /usr/local/lib        \
6628     /usr/unsupported/lib  \
6629     /usr/athena/lib       \
6630     /usr/local/x11r5/lib  \
6631     /usr/lpp/Xamples/lib  \
6632                           \
6633     /usr/openwin/lib      \
6634     /usr/openwin/share/lib \
6635     ; \
6636 do
6637   for ac_extension in a so sl; do
6638     if test -r $ac_dir/libXpm.$ac_extension; then
6639       vt_xpm_libraries=$ac_dir
6640       break 2
6641     fi
6642   done
6643 done
6644 fi
6645 rm -f conftest.err conftest.$ac_objext \
6646       conftest$ac_exeext conftest.$ac_ext
6647 fi
6648
6649
6650   if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6651     ac_cv_have_xpm="have_xpm=no"
6652   else
6653     ac_cv_have_xpm="have_xpm=yes \
6654         vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6655         vt_xpm_include_X11=$vt_xpm_include_X11"
6656   fi
6657 fi
6658   eval "$ac_cv_have_xpm"
6659 fi
6660
6661 if test "$have_xpm" != yes; then
6662   echo "$as_me:$LINENO: result: $have_xpm" >&5
6663 echo "${ECHO_T}$have_xpm" >&6
6664   no_xpm=yes
6665 else
6666   if test "$xpm_includes" != NO; then
6667     if test "$xpm_includes" = "$vt_xpm_includes"; then
6668       if test -r "$xpm_includes/X11/xpm.h"; then
6669         vt_xpm_include_X11=yes
6670       fi
6671     else
6672       vt_xpm_include_X11=no
6673       if test -z "$xpm_includes"; then
6674         cat >conftest.$ac_ext <<_ACEOF
6675 /* confdefs.h.  */
6676 _ACEOF
6677 cat confdefs.h >>conftest.$ac_ext
6678 cat >>conftest.$ac_ext <<_ACEOF
6679 /* end confdefs.h.  */
6680 #include <X11/xpm.h>
6681 _ACEOF
6682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6683   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6684   ac_status=$?
6685   grep -v '^ *+' conftest.er1 >conftest.err
6686   rm -f conftest.er1
6687   cat conftest.err >&5
6688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689   (exit $ac_status); } >/dev/null; then
6690   if test -s conftest.err; then
6691     ac_cpp_err=$ac_cxx_preproc_warn_flag
6692     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6693   else
6694     ac_cpp_err=
6695   fi
6696 else
6697   ac_cpp_err=yes
6698 fi
6699 if test -z "$ac_cpp_err"; then
6700   vt_xpm_include_X11=yes
6701 else
6702   echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6704
6705
6706 fi
6707 rm -f conftest.err conftest.$ac_ext
6708       else
6709         if test -r "$xpm_includes/X11/xpm.h"; then
6710           vt_xpm_include_X11=yes
6711         fi
6712       fi
6713     fi
6714     vt_xpm_includes=$xpm_includes
6715   fi
6716   if test "x$xpm_libraries" != xNO; then
6717     vt_xpm_libraries=$xpm_libraries
6718   fi
6719   # Update the cache value to reflect the command line values.
6720   ac_cv_have_xpm="have_xpm=yes \
6721         vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6722         vt_xpm_include_X11=$vt_xpm_include_X11"
6723   eval "$ac_cv_have_xpm"
6724   echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
6725 echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
6726   if test -n "$vt_xpm_includes"; then
6727     XPM_CPPFLAGS="-DHAVE_LIBXPM"
6728   fi
6729   if test -n "$vt_xpm_includes"; then
6730     XPM_CFLAGS="-I$vt_xpm_includes"
6731   fi
6732   XPM_LIBS="-lXpm"
6733   if test -n "$vt_xpm_libraries"; then
6734     XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6735   fi
6736   if test "x$vt_xpm_include_X11" = xyes; then
6737
6738 cat >>confdefs.h <<\_ACEOF
6739 #define XPM_INC_X11 1
6740 _ACEOF
6741
6742   fi
6743 fi
6744
6745
6746
6747
6748
6749   if test x$no_xpm = xyes; then
6750     support_xpm=needsmanualspecification
6751   fi
6752 fi
6753
6754 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6755 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6756 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6757   echo $ECHO_N "(cached) $ECHO_C" >&6
6758 else
6759   cat >conftest.$ac_ext <<_ACEOF
6760 /* confdefs.h.  */
6761 _ACEOF
6762 cat confdefs.h >>conftest.$ac_ext
6763 cat >>conftest.$ac_ext <<_ACEOF
6764 /* end confdefs.h.  */
6765 #include <sys/types.h>
6766 #include <sys/wait.h>
6767 #ifndef WEXITSTATUS
6768 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6769 #endif
6770 #ifndef WIFEXITED
6771 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6772 #endif
6773
6774 int
6775 main ()
6776 {
6777   int s;
6778   wait (&s);
6779   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6780   ;
6781   return 0;
6782 }
6783 _ACEOF
6784 rm -f conftest.$ac_objext
6785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6786   (eval $ac_compile) 2>conftest.er1
6787   ac_status=$?
6788   grep -v '^ *+' conftest.er1 >conftest.err
6789   rm -f conftest.er1
6790   cat conftest.err >&5
6791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792   (exit $ac_status); } &&
6793          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
6794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795   (eval $ac_try) 2>&5
6796   ac_status=$?
6797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798   (exit $ac_status); }; } &&
6799          { ac_try='test -s conftest.$ac_objext'
6800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801   (eval $ac_try) 2>&5
6802   ac_status=$?
6803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804   (exit $ac_status); }; }; then
6805   ac_cv_header_sys_wait_h=yes
6806 else
6807   echo "$as_me: failed program was:" >&5
6808 sed 's/^/| /' conftest.$ac_ext >&5
6809
6810 ac_cv_header_sys_wait_h=no
6811 fi
6812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6813 fi
6814 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6815 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6816 if test $ac_cv_header_sys_wait_h = yes; then
6817
6818 cat >>confdefs.h <<\_ACEOF
6819 #define HAVE_SYS_WAIT_H 1
6820 _ACEOF
6821
6822 fi
6823
6824 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6825 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6826 if test "${ac_cv_header_stdc+set}" = set; then
6827   echo $ECHO_N "(cached) $ECHO_C" >&6
6828 else
6829   cat >conftest.$ac_ext <<_ACEOF
6830 /* confdefs.h.  */
6831 _ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h.  */
6835 #include <stdlib.h>
6836 #include <stdarg.h>
6837 #include <string.h>
6838 #include <float.h>
6839
6840 int
6841 main ()
6842 {
6843
6844   ;
6845   return 0;
6846 }
6847 _ACEOF
6848 rm -f conftest.$ac_objext
6849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6850   (eval $ac_compile) 2>conftest.er1
6851   ac_status=$?
6852   grep -v '^ *+' conftest.er1 >conftest.err
6853   rm -f conftest.er1
6854   cat conftest.err >&5
6855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856   (exit $ac_status); } &&
6857          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
6858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859   (eval $ac_try) 2>&5
6860   ac_status=$?
6861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862   (exit $ac_status); }; } &&
6863          { ac_try='test -s conftest.$ac_objext'
6864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865   (eval $ac_try) 2>&5
6866   ac_status=$?
6867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868   (exit $ac_status); }; }; then
6869   ac_cv_header_stdc=yes
6870 else
6871   echo "$as_me: failed program was:" >&5
6872 sed 's/^/| /' conftest.$ac_ext >&5
6873
6874 ac_cv_header_stdc=no
6875 fi
6876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6877
6878 if test $ac_cv_header_stdc = yes; then
6879   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6880   cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h.  */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h.  */
6886 #include <string.h>
6887
6888 _ACEOF
6889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6890   $EGREP "memchr" >/dev/null 2>&1; then
6891   :
6892 else
6893   ac_cv_header_stdc=no
6894 fi
6895 rm -f conftest*
6896
6897 fi
6898
6899 if test $ac_cv_header_stdc = yes; then
6900   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6901   cat >conftest.$ac_ext <<_ACEOF
6902 /* confdefs.h.  */
6903 _ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h.  */
6907 #include <stdlib.h>
6908
6909 _ACEOF
6910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6911   $EGREP "free" >/dev/null 2>&1; then
6912   :
6913 else
6914   ac_cv_header_stdc=no
6915 fi
6916 rm -f conftest*
6917
6918 fi
6919
6920 if test $ac_cv_header_stdc = yes; then
6921   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6922   if test "$cross_compiling" = yes; then
6923   :
6924 else
6925   cat >conftest.$ac_ext <<_ACEOF
6926 /* confdefs.h.  */
6927 _ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h.  */
6931 #include <ctype.h>
6932 #if ((' ' & 0x0FF) == 0x020)
6933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6935 #else
6936 # define ISLOWER(c) \
6937                    (('a' <= (c) && (c) <= 'i') \
6938                      || ('j' <= (c) && (c) <= 'r') \
6939                      || ('s' <= (c) && (c) <= 'z'))
6940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6941 #endif
6942
6943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6944 int
6945 main ()
6946 {
6947   int i;
6948   for (i = 0; i < 256; i++)
6949     if (XOR (islower (i), ISLOWER (i))
6950         || toupper (i) != TOUPPER (i))
6951       exit(2);
6952   exit (0);
6953 }
6954 _ACEOF
6955 rm -f conftest$ac_exeext
6956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6957   (eval $ac_link) 2>&5
6958   ac_status=$?
6959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962   (eval $ac_try) 2>&5
6963   ac_status=$?
6964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965   (exit $ac_status); }; }; then
6966   :
6967 else
6968   echo "$as_me: program exited with status $ac_status" >&5
6969 echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6971
6972 ( exit $ac_status )
6973 ac_cv_header_stdc=no
6974 fi
6975 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6976 fi
6977 fi
6978 fi
6979 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6980 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6981 if test $ac_cv_header_stdc = yes; then
6982
6983 cat >>confdefs.h <<\_ACEOF
6984 #define STDC_HEADERS 1
6985 _ACEOF
6986
6987 fi
6988
6989 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7000                   inttypes.h stdint.h unistd.h
7001 do
7002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7003 echo "$as_me:$LINENO: checking for $ac_header" >&5
7004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7006   echo $ECHO_N "(cached) $ECHO_C" >&6
7007 else
7008   cat >conftest.$ac_ext <<_ACEOF
7009 /* confdefs.h.  */
7010 _ACEOF
7011 cat confdefs.h >>conftest.$ac_ext
7012 cat >>conftest.$ac_ext <<_ACEOF
7013 /* end confdefs.h.  */
7014 $ac_includes_default
7015
7016 #include <$ac_header>
7017 _ACEOF
7018 rm -f conftest.$ac_objext
7019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7020   (eval $ac_compile) 2>conftest.er1
7021   ac_status=$?
7022   grep -v '^ *+' conftest.er1 >conftest.err
7023   rm -f conftest.er1
7024   cat conftest.err >&5
7025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026   (exit $ac_status); } &&
7027          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
7028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029   (eval $ac_try) 2>&5
7030   ac_status=$?
7031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032   (exit $ac_status); }; } &&
7033          { ac_try='test -s conftest.$ac_objext'
7034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035   (eval $ac_try) 2>&5
7036   ac_status=$?
7037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038   (exit $ac_status); }; }; then
7039   eval "$as_ac_Header=yes"
7040 else
7041   echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7043
7044 eval "$as_ac_Header=no"
7045 fi
7046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7047 fi
7048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7051   cat >>confdefs.h <<_ACEOF
7052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7053 _ACEOF
7054
7055 fi
7056
7057 done
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084 for ac_header in \
7085         assert.h \
7086         fcntl.h \
7087         grp.h \
7088         libc.h \
7089         lastlog.h \
7090         stdarg.h \
7091         stdlib.h \
7092         string.h \
7093         termios.h \
7094         unistd.h \
7095         sys/byteorder.h \
7096         sys/ioctl.h \
7097         sys/select.h \
7098         sys/sockio.h \
7099         sys/strredir.h \
7100         sys/stropts.h \
7101         sys/time.h \
7102         utmp.h \
7103         utmpx.h \
7104         stdint.h \
7105         pty.h \
7106         wchar.h \
7107         cwchar \
7108         clocale \
7109
7110 do
7111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7113   echo "$as_me:$LINENO: checking for $ac_header" >&5
7114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7116   echo $ECHO_N "(cached) $ECHO_C" >&6
7117 fi
7118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7120 else
7121   # Is the header compilable?
7122 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7124 cat >conftest.$ac_ext <<_ACEOF
7125 /* confdefs.h.  */
7126 _ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h.  */
7130 $ac_includes_default
7131 #include <$ac_header>
7132 _ACEOF
7133 rm -f conftest.$ac_objext
7134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7135   (eval $ac_compile) 2>conftest.er1
7136   ac_status=$?
7137   grep -v '^ *+' conftest.er1 >conftest.err
7138   rm -f conftest.er1
7139   cat conftest.err >&5
7140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141   (exit $ac_status); } &&
7142          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
7143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7144   (eval $ac_try) 2>&5
7145   ac_status=$?
7146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147   (exit $ac_status); }; } &&
7148          { ac_try='test -s conftest.$ac_objext'
7149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150   (eval $ac_try) 2>&5
7151   ac_status=$?
7152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153   (exit $ac_status); }; }; then
7154   ac_header_compiler=yes
7155 else
7156   echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7158
7159 ac_header_compiler=no
7160 fi
7161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7162 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7163 echo "${ECHO_T}$ac_header_compiler" >&6
7164
7165 # Is the header present?
7166 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7167 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7168 cat >conftest.$ac_ext <<_ACEOF
7169 /* confdefs.h.  */
7170 _ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h.  */
7174 #include <$ac_header>
7175 _ACEOF
7176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7177   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7178   ac_status=$?
7179   grep -v '^ *+' conftest.er1 >conftest.err
7180   rm -f conftest.er1
7181   cat conftest.err >&5
7182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183   (exit $ac_status); } >/dev/null; then
7184   if test -s conftest.err; then
7185     ac_cpp_err=$ac_cxx_preproc_warn_flag
7186     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7187   else
7188     ac_cpp_err=
7189   fi
7190 else
7191   ac_cpp_err=yes
7192 fi
7193 if test -z "$ac_cpp_err"; then
7194   ac_header_preproc=yes
7195 else
7196   echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7198
7199   ac_header_preproc=no
7200 fi
7201 rm -f conftest.err conftest.$ac_ext
7202 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7203 echo "${ECHO_T}$ac_header_preproc" >&6
7204
7205 # So?  What about this header?
7206 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7207   yes:no: )
7208     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7211 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7212     ac_header_preproc=yes
7213     ;;
7214   no:yes:* )
7215     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7217     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7218 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7219     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7220 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7221     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7222 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7223     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7225     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7226 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7227     (
7228       cat <<\_ASBOX
7229 ## ------------------------------------------ ##
7230 ## Report this to the AC_PACKAGE_NAME lists.  ##
7231 ## ------------------------------------------ ##
7232 _ASBOX
7233     ) |
7234       sed "s/^/$as_me: WARNING:     /" >&2
7235     ;;
7236 esac
7237 echo "$as_me:$LINENO: checking for $ac_header" >&5
7238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7240   echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242   eval "$as_ac_Header=\$ac_header_preproc"
7243 fi
7244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7246
7247 fi
7248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7249   cat >>confdefs.h <<_ACEOF
7250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7251 _ACEOF
7252
7253 fi
7254
7255 done
7256
7257
7258 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7259 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7260 if test "${ac_cv_header_time+set}" = set; then
7261   echo $ECHO_N "(cached) $ECHO_C" >&6
7262 else
7263   cat >conftest.$ac_ext <<_ACEOF
7264 /* confdefs.h.  */
7265 _ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h.  */
7269 #include <sys/types.h>
7270 #include <sys/time.h>
7271 #include <time.h>
7272
7273 int
7274 main ()
7275 {
7276 if ((struct tm *) 0)
7277 return 0;
7278   ;
7279   return 0;
7280 }
7281 _ACEOF
7282 rm -f conftest.$ac_objext
7283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7284   (eval $ac_compile) 2>conftest.er1
7285   ac_status=$?
7286   grep -v '^ *+' conftest.er1 >conftest.err
7287   rm -f conftest.er1
7288   cat conftest.err >&5
7289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290   (exit $ac_status); } &&
7291          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
7292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293   (eval $ac_try) 2>&5
7294   ac_status=$?
7295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); }; } &&
7297          { ac_try='test -s conftest.$ac_objext'
7298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299   (eval $ac_try) 2>&5
7300   ac_status=$?
7301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302   (exit $ac_status); }; }; then
7303   ac_cv_header_time=yes
7304 else
7305   echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7307
7308 ac_cv_header_time=no
7309 fi
7310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7311 fi
7312 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7313 echo "${ECHO_T}$ac_cv_header_time" >&6
7314 if test $ac_cv_header_time = yes; then
7315
7316 cat >>confdefs.h <<\_ACEOF
7317 #define TIME_WITH_SYS_TIME 1
7318 _ACEOF
7319
7320 fi
7321
7322
7323 echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7324 echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6
7325 if test "${rxvt_cv_header_sysioctl+set}" = set; then
7326   echo $ECHO_N "(cached) $ECHO_C" >&6
7327 else
7328   cat >conftest.$ac_ext <<_ACEOF
7329 /* confdefs.h.  */
7330 _ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h.  */
7334 #include <stdio.h>
7335 #include <sys/ioctl.h>
7336 #ifdef HAVE_TERMIOS_H
7337 #include <termios.h>
7338 #endif
7339 int
7340 main ()
7341 {
7342 int a = ECHO;
7343   ;
7344   return 0;
7345 }
7346 _ACEOF
7347 rm -f conftest.$ac_objext
7348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7349   (eval $ac_compile) 2>conftest.er1
7350   ac_status=$?
7351   grep -v '^ *+' conftest.er1 >conftest.err
7352   rm -f conftest.er1
7353   cat conftest.err >&5
7354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355   (exit $ac_status); } &&
7356          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
7357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358   (eval $ac_try) 2>&5
7359   ac_status=$?
7360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361   (exit $ac_status); }; } &&
7362          { ac_try='test -s conftest.$ac_objext'
7363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364   (eval $ac_try) 2>&5
7365   ac_status=$?
7366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367   (exit $ac_status); }; }; then
7368   rxvt_cv_header_sysioctl=yes
7369 else
7370   echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7372
7373 rxvt_cv_header_sysioctl=no
7374 fi
7375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7376 fi
7377 echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7378 echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7379
7380 if test -n "$GCC"; then
7381   LDARG="-Wl,"
7382 else
7383   LDARG=""
7384 fi
7385 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7386
7387 ac_save_CFLAGS=$CFLAGS
7388 ac_save_LIBS=$LIBS
7389 CFLAGS="$CFLAGS $X_CFLAGS"
7390 LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7391 echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7392 echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6
7393 if test "${rxvt_cv_rpath+set}" = set; then
7394   echo $ECHO_N "(cached) $ECHO_C" >&6
7395 else
7396   if test "$cross_compiling" = yes; then
7397     { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7398 echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7399 else
7400   cat >conftest.$ac_ext <<_ACEOF
7401 /* confdefs.h.  */
7402 _ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h.  */
7406
7407 main()
7408 {
7409     exit(0);
7410     (void) XOpenDisplay("foobar");
7411 }
7412 _ACEOF
7413 rm -f conftest$ac_exeext
7414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7415   (eval $ac_link) 2>&5
7416   ac_status=$?
7417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420   (eval $ac_try) 2>&5
7421   ac_status=$?
7422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423   (exit $ac_status); }; }; then
7424   rxvt_cv_rpath=yes
7425 else
7426   echo "$as_me: program exited with status $ac_status" >&5
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7429
7430 ( exit $ac_status )
7431 rxvt_cv_rpath=no
7432 fi
7433 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7434 fi
7435 fi
7436 echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7437 echo "${ECHO_T}$rxvt_cv_rpath" >&6
7438 if test x$rxvt_cv_rpath != xyes; then
7439     R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7440     LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7441   echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7442 echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6
7443 if test "${rxvt_cv_R+set}" = set; then
7444   echo $ECHO_N "(cached) $ECHO_C" >&6
7445 else
7446   if test "$cross_compiling" = yes; then
7447   rxvt_cv_R=no
7448 else
7449   cat >conftest.$ac_ext <<_ACEOF
7450 /* confdefs.h.  */
7451 _ACEOF
7452 cat confdefs.h >>conftest.$ac_ext
7453 cat >>conftest.$ac_ext <<_ACEOF
7454 /* end confdefs.h.  */
7455
7456 main()
7457 {
7458     exit(0);
7459     (void) XOpenDisplay("foobar");
7460 }
7461 _ACEOF
7462 rm -f conftest$ac_exeext
7463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7464   (eval $ac_link) 2>&5
7465   ac_status=$?
7466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469   (eval $ac_try) 2>&5
7470   ac_status=$?
7471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472   (exit $ac_status); }; }; then
7473   rxvt_cv_R=yes
7474 else
7475   echo "$as_me: program exited with status $ac_status" >&5
7476 echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7478
7479 ( exit $ac_status )
7480 rxvt_cv_R=no
7481 fi
7482 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7483 fi
7484 fi
7485 echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7486 echo "${ECHO_T}$rxvt_cv_R" >&6
7487   if test x$rxvt_cv_R != xyes; then
7488     LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7489   fi
7490 fi
7491
7492 echo "$as_me:$LINENO: checking for XPointer" >&5
7493 echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
7494 if test "${rxvt_cv_xpointer+set}" = set; then
7495   echo $ECHO_N "(cached) $ECHO_C" >&6
7496 else
7497   cat >conftest.$ac_ext <<_ACEOF
7498 /* confdefs.h.  */
7499 _ACEOF
7500 cat confdefs.h >>conftest.$ac_ext
7501 cat >>conftest.$ac_ext <<_ACEOF
7502 /* end confdefs.h.  */
7503 #include <X11/Xlib.h>
7504 int
7505 main ()
7506 {
7507 XPointer dummy;
7508   ;
7509   return 0;
7510 }
7511 _ACEOF
7512 rm -f conftest.$ac_objext
7513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7514   (eval $ac_compile) 2>conftest.er1
7515   ac_status=$?
7516   grep -v '^ *+' conftest.er1 >conftest.err
7517   rm -f conftest.er1
7518   cat conftest.err >&5
7519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520   (exit $ac_status); } &&
7521          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
7522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523   (eval $ac_try) 2>&5
7524   ac_status=$?
7525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526   (exit $ac_status); }; } &&
7527          { ac_try='test -s conftest.$ac_objext'
7528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529   (eval $ac_try) 2>&5
7530   ac_status=$?
7531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532   (exit $ac_status); }; }; then
7533   rxvt_cv_xpointer=yes
7534 else
7535   echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7537
7538 rxvt_cv_xpointer=no
7539 fi
7540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7541 fi
7542 echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7543 echo "${ECHO_T}$rxvt_cv_xpointer" >&6
7544 if test x$rxvt_cv_xpointer = xyes; then
7545
7546 cat >>confdefs.h <<\_ACEOF
7547 #define HAVE_XPOINTER 1
7548 _ACEOF
7549
7550 fi
7551 LIBS=$ac_save_LIBS
7552 CFLAGS=$ac_save_CFLAGS
7553
7554
7555 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7556 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7557 if test "${ac_cv_c_const+set}" = set; then
7558   echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560   cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h.  */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h.  */
7566
7567 int
7568 main ()
7569 {
7570 /* FIXME: Include the comments suggested by Paul. */
7571 #ifndef __cplusplus
7572   /* Ultrix mips cc rejects this.  */
7573   typedef int charset[2];
7574   const charset x;
7575   /* SunOS 4.1.1 cc rejects this.  */
7576   char const *const *ccp;
7577   char **p;
7578   /* NEC SVR4.0.2 mips cc rejects this.  */
7579   struct point {int x, y;};
7580   static struct point const zero = {0,0};
7581   /* AIX XL C 1.02.0.0 rejects this.
7582      It does not let you subtract one const X* pointer from another in
7583      an arm of an if-expression whose if-part is not a constant
7584      expression */
7585   const char *g = "string";
7586   ccp = &g + (g ? g-g : 0);
7587   /* HPUX 7.0 cc rejects these. */
7588   ++ccp;
7589   p = (char**) ccp;
7590   ccp = (char const *const *) p;
7591   { /* SCO 3.2v4 cc rejects this.  */
7592     char *t;
7593     char const *s = 0 ? (char *) 0 : (char const *) 0;
7594
7595     *t++ = 0;
7596   }
7597   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7598     int x[] = {25, 17};
7599     const int *foo = &x[0];
7600     ++foo;
7601   }
7602   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7603     typedef const int *iptr;
7604     iptr p = 0;
7605     ++p;
7606   }
7607   { /* AIX XL C 1.02.0.0 rejects this saying
7608        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7609     struct s { int j; const int *ap[3]; };
7610     struct s *b; b->j = 5;
7611   }
7612   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7613     const int foo = 10;
7614   }
7615 #endif
7616
7617   ;
7618   return 0;
7619 }
7620 _ACEOF
7621 rm -f conftest.$ac_objext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7623   (eval $ac_compile) 2>conftest.er1
7624   ac_status=$?
7625   grep -v '^ *+' conftest.er1 >conftest.err
7626   rm -f conftest.er1
7627   cat conftest.err >&5
7628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629   (exit $ac_status); } &&
7630          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
7631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632   (eval $ac_try) 2>&5
7633   ac_status=$?
7634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635   (exit $ac_status); }; } &&
7636          { ac_try='test -s conftest.$ac_objext'
7637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638   (eval $ac_try) 2>&5
7639   ac_status=$?
7640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641   (exit $ac_status); }; }; then
7642   ac_cv_c_const=yes
7643 else
7644   echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7646
7647 ac_cv_c_const=no
7648 fi
7649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7650 fi
7651 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7652 echo "${ECHO_T}$ac_cv_c_const" >&6
7653 if test $ac_cv_c_const = no; then
7654
7655 cat >>confdefs.h <<\_ACEOF
7656 #define const
7657 _ACEOF
7658
7659 fi
7660
7661 echo "$as_me:$LINENO: checking for inline" >&5
7662 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7663 if test "${ac_cv_c_inline+set}" = set; then
7664   echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666   ac_cv_c_inline=no
7667 for ac_kw in inline __inline__ __inline; do
7668   cat >conftest.$ac_ext <<_ACEOF
7669 /* confdefs.h.  */
7670 _ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h.  */
7674 #ifndef __cplusplus
7675 typedef int foo_t;
7676 static $ac_kw foo_t static_foo () {return 0; }
7677 $ac_kw foo_t foo () {return 0; }
7678 #endif
7679
7680 _ACEOF
7681 rm -f conftest.$ac_objext
7682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7683   (eval $ac_compile) 2>conftest.er1
7684   ac_status=$?
7685   grep -v '^ *+' conftest.er1 >conftest.err
7686   rm -f conftest.er1
7687   cat conftest.err >&5
7688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689   (exit $ac_status); } &&
7690          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
7691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692   (eval $ac_try) 2>&5
7693   ac_status=$?
7694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); }; } &&
7696          { ac_try='test -s conftest.$ac_objext'
7697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698   (eval $ac_try) 2>&5
7699   ac_status=$?
7700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701   (exit $ac_status); }; }; then
7702   ac_cv_c_inline=$ac_kw; break
7703 else
7704   echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7706
7707 fi
7708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7709 done
7710
7711 fi
7712 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7713 echo "${ECHO_T}$ac_cv_c_inline" >&6
7714
7715
7716 case $ac_cv_c_inline in
7717   inline | yes) ;;
7718   *)
7719     case $ac_cv_c_inline in
7720       no) ac_val=;;
7721       *) ac_val=$ac_cv_c_inline;;
7722     esac
7723     cat >>confdefs.h <<_ACEOF
7724 #ifndef __cplusplus
7725 #define inline $ac_val
7726 #endif
7727 _ACEOF
7728     ;;
7729 esac
7730
7731
7732
7733 echo "$as_me:$LINENO: checking for mode_t" >&5
7734 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7735 if test "${ac_cv_type_mode_t+set}" = set; then
7736   echo $ECHO_N "(cached) $ECHO_C" >&6
7737 else
7738   cat >conftest.$ac_ext <<_ACEOF
7739 /* confdefs.h.  */
7740 _ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h.  */
7744 $ac_includes_default
7745 int
7746 main ()
7747 {
7748 if ((mode_t *) 0)
7749   return 0;
7750 if (sizeof (mode_t))
7751   return 0;
7752   ;
7753   return 0;
7754 }
7755 _ACEOF
7756 rm -f conftest.$ac_objext
7757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7758   (eval $ac_compile) 2>conftest.er1
7759   ac_status=$?
7760   grep -v '^ *+' conftest.er1 >conftest.err
7761   rm -f conftest.er1
7762   cat conftest.err >&5
7763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764   (exit $ac_status); } &&
7765          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
7766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767   (eval $ac_try) 2>&5
7768   ac_status=$?
7769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770   (exit $ac_status); }; } &&
7771          { ac_try='test -s conftest.$ac_objext'
7772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773   (eval $ac_try) 2>&5
7774   ac_status=$?
7775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776   (exit $ac_status); }; }; then
7777   ac_cv_type_mode_t=yes
7778 else
7779   echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7781
7782 ac_cv_type_mode_t=no
7783 fi
7784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7785 fi
7786 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7787 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7788 if test $ac_cv_type_mode_t = yes; then
7789   :
7790 else
7791
7792 cat >>confdefs.h <<_ACEOF
7793 #define mode_t int
7794 _ACEOF
7795
7796 fi
7797
7798 echo "$as_me:$LINENO: checking for pid_t" >&5
7799 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7800 if test "${ac_cv_type_pid_t+set}" = set; then
7801   echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803   cat >conftest.$ac_ext <<_ACEOF
7804 /* confdefs.h.  */
7805 _ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h.  */
7809 $ac_includes_default
7810 int
7811 main ()
7812 {
7813 if ((pid_t *) 0)
7814   return 0;
7815 if (sizeof (pid_t))
7816   return 0;
7817   ;
7818   return 0;
7819 }
7820 _ACEOF
7821 rm -f conftest.$ac_objext
7822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7823   (eval $ac_compile) 2>conftest.er1
7824   ac_status=$?
7825   grep -v '^ *+' conftest.er1 >conftest.err
7826   rm -f conftest.er1
7827   cat conftest.err >&5
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); } &&
7830          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
7831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832   (eval $ac_try) 2>&5
7833   ac_status=$?
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); }; } &&
7836          { ac_try='test -s conftest.$ac_objext'
7837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838   (eval $ac_try) 2>&5
7839   ac_status=$?
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); }; }; then
7842   ac_cv_type_pid_t=yes
7843 else
7844   echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7846
7847 ac_cv_type_pid_t=no
7848 fi
7849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7850 fi
7851 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7852 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7853 if test $ac_cv_type_pid_t = yes; then
7854   :
7855 else
7856
7857 cat >>confdefs.h <<_ACEOF
7858 #define pid_t int
7859 _ACEOF
7860
7861 fi
7862
7863 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7864 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7865 if test "${ac_cv_type_uid_t+set}" = set; then
7866   echo $ECHO_N "(cached) $ECHO_C" >&6
7867 else
7868   cat >conftest.$ac_ext <<_ACEOF
7869 /* confdefs.h.  */
7870 _ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h.  */
7874 #include <sys/types.h>
7875
7876 _ACEOF
7877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7878   $EGREP "uid_t" >/dev/null 2>&1; then
7879   ac_cv_type_uid_t=yes
7880 else
7881   ac_cv_type_uid_t=no
7882 fi
7883 rm -f conftest*
7884
7885 fi
7886 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7887 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7888 if test $ac_cv_type_uid_t = no; then
7889
7890 cat >>confdefs.h <<\_ACEOF
7891 #define uid_t int
7892 _ACEOF
7893
7894
7895 cat >>confdefs.h <<\_ACEOF
7896 #define gid_t int
7897 _ACEOF
7898
7899 fi
7900
7901
7902 echo "$as_me:$LINENO: checking for short" >&5
7903 echo $ECHO_N "checking for short... $ECHO_C" >&6
7904 if test "${ac_cv_type_short+set}" = set; then
7905   echo $ECHO_N "(cached) $ECHO_C" >&6
7906 else
7907   cat >conftest.$ac_ext <<_ACEOF
7908 /* confdefs.h.  */
7909 _ACEOF
7910 cat confdefs.h >>conftest.$ac_ext
7911 cat >>conftest.$ac_ext <<_ACEOF
7912 /* end confdefs.h.  */
7913 $ac_includes_default
7914 int
7915 main ()
7916 {
7917 if ((short *) 0)
7918   return 0;
7919 if (sizeof (short))
7920   return 0;
7921   ;
7922   return 0;
7923 }
7924 _ACEOF
7925 rm -f conftest.$ac_objext
7926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7927   (eval $ac_compile) 2>conftest.er1
7928   ac_status=$?
7929   grep -v '^ *+' conftest.er1 >conftest.err
7930   rm -f conftest.er1
7931   cat conftest.err >&5
7932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933   (exit $ac_status); } &&
7934          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
7935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936   (eval $ac_try) 2>&5
7937   ac_status=$?
7938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939   (exit $ac_status); }; } &&
7940          { ac_try='test -s conftest.$ac_objext'
7941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942   (eval $ac_try) 2>&5
7943   ac_status=$?
7944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); }; }; then
7946   ac_cv_type_short=yes
7947 else
7948   echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7950
7951 ac_cv_type_short=no
7952 fi
7953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7954 fi
7955 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7956 echo "${ECHO_T}$ac_cv_type_short" >&6
7957
7958 echo "$as_me:$LINENO: checking size of short" >&5
7959 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7960 if test "${ac_cv_sizeof_short+set}" = set; then
7961   echo $ECHO_N "(cached) $ECHO_C" >&6
7962 else
7963   if test "$ac_cv_type_short" = yes; then
7964   # The cast to unsigned long works around a bug in the HP C Compiler
7965   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7966   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7967   # This bug is HP SR number 8606223364.
7968   if test "$cross_compiling" = yes; then
7969   # Depending upon the size, compute the lo and hi bounds.
7970 cat >conftest.$ac_ext <<_ACEOF
7971 /* confdefs.h.  */
7972 _ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h.  */
7976 $ac_includes_default
7977 int
7978 main ()
7979 {
7980 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7981 test_array [0] = 0
7982
7983   ;
7984   return 0;
7985 }
7986 _ACEOF
7987 rm -f conftest.$ac_objext
7988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7989   (eval $ac_compile) 2>conftest.er1
7990   ac_status=$?
7991   grep -v '^ *+' conftest.er1 >conftest.err
7992   rm -f conftest.er1
7993   cat conftest.err >&5
7994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995   (exit $ac_status); } &&
7996          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
7997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998   (eval $ac_try) 2>&5
7999   ac_status=$?
8000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001   (exit $ac_status); }; } &&
8002          { ac_try='test -s conftest.$ac_objext'
8003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004   (eval $ac_try) 2>&5
8005   ac_status=$?
8006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007   (exit $ac_status); }; }; then
8008   ac_lo=0 ac_mid=0
8009   while :; do
8010     cat >conftest.$ac_ext <<_ACEOF
8011 /* confdefs.h.  */
8012 _ACEOF
8013 cat confdefs.h >>conftest.$ac_ext
8014 cat >>conftest.$ac_ext <<_ACEOF
8015 /* end confdefs.h.  */
8016 $ac_includes_default
8017 int
8018 main ()
8019 {
8020 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8021 test_array [0] = 0
8022
8023   ;
8024   return 0;
8025 }
8026 _ACEOF
8027 rm -f conftest.$ac_objext
8028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8029   (eval $ac_compile) 2>conftest.er1
8030   ac_status=$?
8031   grep -v '^ *+' conftest.er1 >conftest.err
8032   rm -f conftest.er1
8033   cat conftest.err >&5
8034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035   (exit $ac_status); } &&
8036          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
8037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038   (eval $ac_try) 2>&5
8039   ac_status=$?
8040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041   (exit $ac_status); }; } &&
8042          { ac_try='test -s conftest.$ac_objext'
8043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044   (eval $ac_try) 2>&5
8045   ac_status=$?
8046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047   (exit $ac_status); }; }; then
8048   ac_hi=$ac_mid; break
8049 else
8050   echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8052
8053 ac_lo=`expr $ac_mid + 1`
8054                     if test $ac_lo -le $ac_mid; then
8055                       ac_lo= ac_hi=
8056                       break
8057                     fi
8058                     ac_mid=`expr 2 '*' $ac_mid + 1`
8059 fi
8060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8061   done
8062 else
8063   echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8065
8066 cat >conftest.$ac_ext <<_ACEOF
8067 /* confdefs.h.  */
8068 _ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h.  */
8072 $ac_includes_default
8073 int
8074 main ()
8075 {
8076 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
8077 test_array [0] = 0
8078
8079   ;
8080   return 0;
8081 }
8082 _ACEOF
8083 rm -f conftest.$ac_objext
8084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8085   (eval $ac_compile) 2>conftest.er1
8086   ac_status=$?
8087   grep -v '^ *+' conftest.er1 >conftest.err
8088   rm -f conftest.er1
8089   cat conftest.err >&5
8090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091   (exit $ac_status); } &&
8092          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
8093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8094   (eval $ac_try) 2>&5
8095   ac_status=$?
8096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097   (exit $ac_status); }; } &&
8098          { ac_try='test -s conftest.$ac_objext'
8099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100   (eval $ac_try) 2>&5
8101   ac_status=$?
8102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103   (exit $ac_status); }; }; then
8104   ac_hi=-1 ac_mid=-1
8105   while :; do
8106     cat >conftest.$ac_ext <<_ACEOF
8107 /* confdefs.h.  */
8108 _ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h.  */
8112 $ac_includes_default
8113 int
8114 main ()
8115 {
8116 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
8117 test_array [0] = 0
8118
8119   ;
8120   return 0;
8121 }
8122 _ACEOF
8123 rm -f conftest.$ac_objext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8125   (eval $ac_compile) 2>conftest.er1
8126   ac_status=$?
8127   grep -v '^ *+' conftest.er1 >conftest.err
8128   rm -f conftest.er1
8129   cat conftest.err >&5
8130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); } &&
8132          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
8133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134   (eval $ac_try) 2>&5
8135   ac_status=$?
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); }; } &&
8138          { ac_try='test -s conftest.$ac_objext'
8139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140   (eval $ac_try) 2>&5
8141   ac_status=$?
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); }; }; then
8144   ac_lo=$ac_mid; break
8145 else
8146   echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8148
8149 ac_hi=`expr '(' $ac_mid ')' - 1`
8150                        if test $ac_mid -le $ac_hi; then
8151                          ac_lo= ac_hi=
8152                          break
8153                        fi
8154                        ac_mid=`expr 2 '*' $ac_mid`
8155 fi
8156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8157   done
8158 else
8159   echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.$ac_ext >&5
8161
8162 ac_lo= ac_hi=
8163 fi
8164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8165 fi
8166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8167 # Binary search between lo and hi bounds.
8168 while test "x$ac_lo" != "x$ac_hi"; do
8169   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8170   cat >conftest.$ac_ext <<_ACEOF
8171 /* confdefs.h.  */
8172 _ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h.  */
8176 $ac_includes_default
8177 int
8178 main ()
8179 {
8180 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8181 test_array [0] = 0
8182
8183   ;
8184   return 0;
8185 }
8186 _ACEOF
8187 rm -f conftest.$ac_objext
8188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8189   (eval $ac_compile) 2>conftest.er1
8190   ac_status=$?
8191   grep -v '^ *+' conftest.er1 >conftest.err
8192   rm -f conftest.er1
8193   cat conftest.err >&5
8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195   (exit $ac_status); } &&
8196          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
8197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198   (eval $ac_try) 2>&5
8199   ac_status=$?
8200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201   (exit $ac_status); }; } &&
8202          { ac_try='test -s conftest.$ac_objext'
8203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204   (eval $ac_try) 2>&5
8205   ac_status=$?
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); }; }; then
8208   ac_hi=$ac_mid
8209 else
8210   echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8212
8213 ac_lo=`expr '(' $ac_mid ')' + 1`
8214 fi
8215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8216 done
8217 case $ac_lo in
8218 ?*) ac_cv_sizeof_short=$ac_lo;;
8219 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8220 See \`config.log' for more details." >&5
8221 echo "$as_me: error: cannot compute sizeof (short), 77
8222 See \`config.log' for more details." >&2;}
8223    { (exit 1); exit 1; }; } ;;
8224 esac
8225 else
8226   if test "$cross_compiling" = yes; then
8227   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8228 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8229    { (exit 1); exit 1; }; }
8230 else
8231   cat >conftest.$ac_ext <<_ACEOF
8232 /* confdefs.h.  */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h.  */
8237 $ac_includes_default
8238 long longval () { return (long) (sizeof (short)); }
8239 unsigned long ulongval () { return (long) (sizeof (short)); }
8240 #include <stdio.h>
8241 #include <stdlib.h>
8242 int
8243 main ()
8244 {
8245
8246   FILE *f = fopen ("conftest.val", "w");
8247   if (! f)
8248     exit (1);
8249   if (((long) (sizeof (short))) < 0)
8250     {
8251       long i = longval ();
8252       if (i != ((long) (sizeof (short))))
8253         exit (1);
8254       fprintf (f, "%ld\n", i);
8255     }
8256   else
8257     {
8258       unsigned long i = ulongval ();
8259       if (i != ((long) (sizeof (short))))
8260         exit (1);
8261       fprintf (f, "%lu\n", i);
8262     }
8263   exit (ferror (f) || fclose (f) != 0);
8264
8265   ;
8266   return 0;
8267 }
8268 _ACEOF
8269 rm -f conftest$ac_exeext
8270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8271   (eval $ac_link) 2>&5
8272   ac_status=$?
8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276   (eval $ac_try) 2>&5
8277   ac_status=$?
8278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279   (exit $ac_status); }; }; then
8280   ac_cv_sizeof_short=`cat conftest.val`
8281 else
8282   echo "$as_me: program exited with status $ac_status" >&5
8283 echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.$ac_ext >&5
8285
8286 ( exit $ac_status )
8287 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8288 See \`config.log' for more details." >&5
8289 echo "$as_me: error: cannot compute sizeof (short), 77
8290 See \`config.log' for more details." >&2;}
8291    { (exit 1); exit 1; }; }
8292 fi
8293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8294 fi
8295 fi
8296 rm -f conftest.val
8297 else
8298   ac_cv_sizeof_short=0
8299 fi
8300 fi
8301 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8302 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8303 cat >>confdefs.h <<_ACEOF
8304 #define SIZEOF_SHORT $ac_cv_sizeof_short
8305 _ACEOF
8306
8307
8308 echo "$as_me:$LINENO: checking for int" >&5
8309 echo $ECHO_N "checking for int... $ECHO_C" >&6
8310 if test "${ac_cv_type_int+set}" = set; then
8311   echo $ECHO_N "(cached) $ECHO_C" >&6
8312 else
8313   cat >conftest.$ac_ext <<_ACEOF
8314 /* confdefs.h.  */
8315 _ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h.  */
8319 $ac_includes_default
8320 int
8321 main ()
8322 {
8323 if ((int *) 0)
8324   return 0;
8325 if (sizeof (int))
8326   return 0;
8327   ;
8328   return 0;
8329 }
8330 _ACEOF
8331 rm -f conftest.$ac_objext
8332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8333   (eval $ac_compile) 2>conftest.er1
8334   ac_status=$?
8335   grep -v '^ *+' conftest.er1 >conftest.err
8336   rm -f conftest.er1
8337   cat conftest.err >&5
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); } &&
8340          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
8341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342   (eval $ac_try) 2>&5
8343   ac_status=$?
8344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); }; } &&
8346          { ac_try='test -s conftest.$ac_objext'
8347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348   (eval $ac_try) 2>&5
8349   ac_status=$?
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); }; }; then
8352   ac_cv_type_int=yes
8353 else
8354   echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8356
8357 ac_cv_type_int=no
8358 fi
8359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8360 fi
8361 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8362 echo "${ECHO_T}$ac_cv_type_int" >&6
8363
8364 echo "$as_me:$LINENO: checking size of int" >&5
8365 echo $ECHO_N "checking size of int... $ECHO_C" >&6
8366 if test "${ac_cv_sizeof_int+set}" = set; then
8367   echo $ECHO_N "(cached) $ECHO_C" >&6
8368 else
8369   if test "$ac_cv_type_int" = yes; then
8370   # The cast to unsigned long works around a bug in the HP C Compiler
8371   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8372   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8373   # This bug is HP SR number 8606223364.
8374   if test "$cross_compiling" = yes; then
8375   # Depending upon the size, compute the lo and hi bounds.
8376 cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h.  */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h.  */
8382 $ac_includes_default
8383 int
8384 main ()
8385 {
8386 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
8387 test_array [0] = 0
8388
8389   ;
8390   return 0;
8391 }
8392 _ACEOF
8393 rm -f conftest.$ac_objext
8394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8395   (eval $ac_compile) 2>conftest.er1
8396   ac_status=$?
8397   grep -v '^ *+' conftest.er1 >conftest.err
8398   rm -f conftest.er1
8399   cat conftest.err >&5
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); } &&
8402          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
8403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404   (eval $ac_try) 2>&5
8405   ac_status=$?
8406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); }; } &&
8408          { ac_try='test -s conftest.$ac_objext'
8409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410   (eval $ac_try) 2>&5
8411   ac_status=$?
8412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413   (exit $ac_status); }; }; then
8414   ac_lo=0 ac_mid=0
8415   while :; do
8416     cat >conftest.$ac_ext <<_ACEOF
8417 /* confdefs.h.  */
8418 _ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h.  */
8422 $ac_includes_default
8423 int
8424 main ()
8425 {
8426 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8427 test_array [0] = 0
8428
8429   ;
8430   return 0;
8431 }
8432 _ACEOF
8433 rm -f conftest.$ac_objext
8434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8435   (eval $ac_compile) 2>conftest.er1
8436   ac_status=$?
8437   grep -v '^ *+' conftest.er1 >conftest.err
8438   rm -f conftest.er1
8439   cat conftest.err >&5
8440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441   (exit $ac_status); } &&
8442          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
8443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444   (eval $ac_try) 2>&5
8445   ac_status=$?
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); }; } &&
8448          { ac_try='test -s conftest.$ac_objext'
8449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450   (eval $ac_try) 2>&5
8451   ac_status=$?
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); }; }; then
8454   ac_hi=$ac_mid; break
8455 else
8456   echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8458
8459 ac_lo=`expr $ac_mid + 1`
8460                     if test $ac_lo -le $ac_mid; then
8461                       ac_lo= ac_hi=
8462                       break
8463                     fi
8464                     ac_mid=`expr 2 '*' $ac_mid + 1`
8465 fi
8466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8467   done
8468 else
8469   echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8471
8472 cat >conftest.$ac_ext <<_ACEOF
8473 /* confdefs.h.  */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h.  */
8478 $ac_includes_default
8479 int
8480 main ()
8481 {
8482 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8483 test_array [0] = 0
8484
8485   ;
8486   return 0;
8487 }
8488 _ACEOF
8489 rm -f conftest.$ac_objext
8490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8491   (eval $ac_compile) 2>conftest.er1
8492   ac_status=$?
8493   grep -v '^ *+' conftest.er1 >conftest.err
8494   rm -f conftest.er1
8495   cat conftest.err >&5
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); } &&
8498          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
8499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500   (eval $ac_try) 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); }; } &&
8504          { ac_try='test -s conftest.$ac_objext'
8505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506   (eval $ac_try) 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }; }; then
8510   ac_hi=-1 ac_mid=-1
8511   while :; do
8512     cat >conftest.$ac_ext <<_ACEOF
8513 /* confdefs.h.  */
8514 _ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h.  */
8518 $ac_includes_default
8519 int
8520 main ()
8521 {
8522 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8523 test_array [0] = 0
8524
8525   ;
8526   return 0;
8527 }
8528 _ACEOF
8529 rm -f conftest.$ac_objext
8530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8531   (eval $ac_compile) 2>conftest.er1
8532   ac_status=$?
8533   grep -v '^ *+' conftest.er1 >conftest.err
8534   rm -f conftest.er1
8535   cat conftest.err >&5
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); } &&
8538          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
8539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540   (eval $ac_try) 2>&5
8541   ac_status=$?
8542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); }; } &&
8544          { ac_try='test -s conftest.$ac_objext'
8545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546   (eval $ac_try) 2>&5
8547   ac_status=$?
8548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549   (exit $ac_status); }; }; then
8550   ac_lo=$ac_mid; break
8551 else
8552   echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8554
8555 ac_hi=`expr '(' $ac_mid ')' - 1`
8556                        if test $ac_mid -le $ac_hi; then
8557                          ac_lo= ac_hi=
8558                          break
8559                        fi
8560                        ac_mid=`expr 2 '*' $ac_mid`
8561 fi
8562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8563   done
8564 else
8565   echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8567
8568 ac_lo= ac_hi=
8569 fi
8570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8571 fi
8572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8573 # Binary search between lo and hi bounds.
8574 while test "x$ac_lo" != "x$ac_hi"; do
8575   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8576   cat >conftest.$ac_ext <<_ACEOF
8577 /* confdefs.h.  */
8578 _ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h.  */
8582 $ac_includes_default
8583 int
8584 main ()
8585 {
8586 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8587 test_array [0] = 0
8588
8589   ;
8590   return 0;
8591 }
8592 _ACEOF
8593 rm -f conftest.$ac_objext
8594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8595   (eval $ac_compile) 2>conftest.er1
8596   ac_status=$?
8597   grep -v '^ *+' conftest.er1 >conftest.err
8598   rm -f conftest.er1
8599   cat conftest.err >&5
8600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601   (exit $ac_status); } &&
8602          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
8603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604   (eval $ac_try) 2>&5
8605   ac_status=$?
8606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   (exit $ac_status); }; } &&
8608          { ac_try='test -s conftest.$ac_objext'
8609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610   (eval $ac_try) 2>&5
8611   ac_status=$?
8612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613   (exit $ac_status); }; }; then
8614   ac_hi=$ac_mid
8615 else
8616   echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8618
8619 ac_lo=`expr '(' $ac_mid ')' + 1`
8620 fi
8621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8622 done
8623 case $ac_lo in
8624 ?*) ac_cv_sizeof_int=$ac_lo;;
8625 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8626 See \`config.log' for more details." >&5
8627 echo "$as_me: error: cannot compute sizeof (int), 77
8628 See \`config.log' for more details." >&2;}
8629    { (exit 1); exit 1; }; } ;;
8630 esac
8631 else
8632   if test "$cross_compiling" = yes; then
8633   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8634 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8635    { (exit 1); exit 1; }; }
8636 else
8637   cat >conftest.$ac_ext <<_ACEOF
8638 /* confdefs.h.  */
8639 _ACEOF
8640 cat confdefs.h >>conftest.$ac_ext
8641 cat >>conftest.$ac_ext <<_ACEOF
8642 /* end confdefs.h.  */
8643 $ac_includes_default
8644 long longval () { return (long) (sizeof (int)); }
8645 unsigned long ulongval () { return (long) (sizeof (int)); }
8646 #include <stdio.h>
8647 #include <stdlib.h>
8648 int
8649 main ()
8650 {
8651
8652   FILE *f = fopen ("conftest.val", "w");
8653   if (! f)
8654     exit (1);
8655   if (((long) (sizeof (int))) < 0)
8656     {
8657       long i = longval ();
8658       if (i != ((long) (sizeof (int))))
8659         exit (1);
8660       fprintf (f, "%ld\n", i);
8661     }
8662   else
8663     {
8664       unsigned long i = ulongval ();
8665       if (i != ((long) (sizeof (int))))
8666         exit (1);
8667       fprintf (f, "%lu\n", i);
8668     }
8669   exit (ferror (f) || fclose (f) != 0);
8670
8671   ;
8672   return 0;
8673 }
8674 _ACEOF
8675 rm -f conftest$ac_exeext
8676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8677   (eval $ac_link) 2>&5
8678   ac_status=$?
8679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682   (eval $ac_try) 2>&5
8683   ac_status=$?
8684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685   (exit $ac_status); }; }; then
8686   ac_cv_sizeof_int=`cat conftest.val`
8687 else
8688   echo "$as_me: program exited with status $ac_status" >&5
8689 echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8691
8692 ( exit $ac_status )
8693 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8694 See \`config.log' for more details." >&5
8695 echo "$as_me: error: cannot compute sizeof (int), 77
8696 See \`config.log' for more details." >&2;}
8697    { (exit 1); exit 1; }; }
8698 fi
8699 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8700 fi
8701 fi
8702 rm -f conftest.val
8703 else
8704   ac_cv_sizeof_int=0
8705 fi
8706 fi
8707 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8708 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8709 cat >>confdefs.h <<_ACEOF
8710 #define SIZEOF_INT $ac_cv_sizeof_int
8711 _ACEOF
8712
8713
8714 echo "$as_me:$LINENO: checking for long long" >&5
8715 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8716 if test "${ac_cv_type_long_long+set}" = set; then
8717   echo $ECHO_N "(cached) $ECHO_C" >&6
8718 else
8719   cat >conftest.$ac_ext <<_ACEOF
8720 /* confdefs.h.  */
8721 _ACEOF
8722 cat confdefs.h >>conftest.$ac_ext
8723 cat >>conftest.$ac_ext <<_ACEOF
8724 /* end confdefs.h.  */
8725 $ac_includes_default
8726 int
8727 main ()
8728 {
8729 if ((long long *) 0)
8730   return 0;
8731 if (sizeof (long long))
8732   return 0;
8733   ;
8734   return 0;
8735 }
8736 _ACEOF
8737 rm -f conftest.$ac_objext
8738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8739   (eval $ac_compile) 2>conftest.er1
8740   ac_status=$?
8741   grep -v '^ *+' conftest.er1 >conftest.err
8742   rm -f conftest.er1
8743   cat conftest.err >&5
8744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745   (exit $ac_status); } &&
8746          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
8747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8748   (eval $ac_try) 2>&5
8749   ac_status=$?
8750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751   (exit $ac_status); }; } &&
8752          { ac_try='test -s conftest.$ac_objext'
8753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8754   (eval $ac_try) 2>&5
8755   ac_status=$?
8756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757   (exit $ac_status); }; }; then
8758   ac_cv_type_long_long=yes
8759 else
8760   echo "$as_me: failed program was:" >&5
8761 sed 's/^/| /' conftest.$ac_ext >&5
8762
8763 ac_cv_type_long_long=no
8764 fi
8765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8766 fi
8767 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8768 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8769
8770 echo "$as_me:$LINENO: checking size of long long" >&5
8771 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8772 if test "${ac_cv_sizeof_long_long+set}" = set; then
8773   echo $ECHO_N "(cached) $ECHO_C" >&6
8774 else
8775   if test "$ac_cv_type_long_long" = yes; then
8776   # The cast to unsigned long works around a bug in the HP C Compiler
8777   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8778   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8779   # This bug is HP SR number 8606223364.
8780   if test "$cross_compiling" = yes; then
8781   # Depending upon the size, compute the lo and hi bounds.
8782 cat >conftest.$ac_ext <<_ACEOF
8783 /* confdefs.h.  */
8784 _ACEOF
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h.  */
8788 $ac_includes_default
8789 int
8790 main ()
8791 {
8792 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8793 test_array [0] = 0
8794
8795   ;
8796   return 0;
8797 }
8798 _ACEOF
8799 rm -f conftest.$ac_objext
8800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8801   (eval $ac_compile) 2>conftest.er1
8802   ac_status=$?
8803   grep -v '^ *+' conftest.er1 >conftest.err
8804   rm -f conftest.er1
8805   cat conftest.err >&5
8806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807   (exit $ac_status); } &&
8808          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
8809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810   (eval $ac_try) 2>&5
8811   ac_status=$?
8812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813   (exit $ac_status); }; } &&
8814          { ac_try='test -s conftest.$ac_objext'
8815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816   (eval $ac_try) 2>&5
8817   ac_status=$?
8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); }; }; then
8820   ac_lo=0 ac_mid=0
8821   while :; do
8822     cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h.  */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h.  */
8828 $ac_includes_default
8829 int
8830 main ()
8831 {
8832 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8833 test_array [0] = 0
8834
8835   ;
8836   return 0;
8837 }
8838 _ACEOF
8839 rm -f conftest.$ac_objext
8840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8841   (eval $ac_compile) 2>conftest.er1
8842   ac_status=$?
8843   grep -v '^ *+' conftest.er1 >conftest.err
8844   rm -f conftest.er1
8845   cat conftest.err >&5
8846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847   (exit $ac_status); } &&
8848          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
8849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850   (eval $ac_try) 2>&5
8851   ac_status=$?
8852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853   (exit $ac_status); }; } &&
8854          { ac_try='test -s conftest.$ac_objext'
8855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856   (eval $ac_try) 2>&5
8857   ac_status=$?
8858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859   (exit $ac_status); }; }; then
8860   ac_hi=$ac_mid; break
8861 else
8862   echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8864
8865 ac_lo=`expr $ac_mid + 1`
8866                     if test $ac_lo -le $ac_mid; then
8867                       ac_lo= ac_hi=
8868                       break
8869                     fi
8870                     ac_mid=`expr 2 '*' $ac_mid + 1`
8871 fi
8872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8873   done
8874 else
8875   echo "$as_me: failed program was:" >&5
8876 sed 's/^/| /' conftest.$ac_ext >&5
8877
8878 cat >conftest.$ac_ext <<_ACEOF
8879 /* confdefs.h.  */
8880 _ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h.  */
8884 $ac_includes_default
8885 int
8886 main ()
8887 {
8888 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8889 test_array [0] = 0
8890
8891   ;
8892   return 0;
8893 }
8894 _ACEOF
8895 rm -f conftest.$ac_objext
8896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8897   (eval $ac_compile) 2>conftest.er1
8898   ac_status=$?
8899   grep -v '^ *+' conftest.er1 >conftest.err
8900   rm -f conftest.er1
8901   cat conftest.err >&5
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); } &&
8904          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
8905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906   (eval $ac_try) 2>&5
8907   ac_status=$?
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); }; } &&
8910          { ac_try='test -s conftest.$ac_objext'
8911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912   (eval $ac_try) 2>&5
8913   ac_status=$?
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); }; }; then
8916   ac_hi=-1 ac_mid=-1
8917   while :; do
8918     cat >conftest.$ac_ext <<_ACEOF
8919 /* confdefs.h.  */
8920 _ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h.  */
8924 $ac_includes_default
8925 int
8926 main ()
8927 {
8928 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8929 test_array [0] = 0
8930
8931   ;
8932   return 0;
8933 }
8934 _ACEOF
8935 rm -f conftest.$ac_objext
8936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8937   (eval $ac_compile) 2>conftest.er1
8938   ac_status=$?
8939   grep -v '^ *+' conftest.er1 >conftest.err
8940   rm -f conftest.er1
8941   cat conftest.err >&5
8942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943   (exit $ac_status); } &&
8944          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
8945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946   (eval $ac_try) 2>&5
8947   ac_status=$?
8948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949   (exit $ac_status); }; } &&
8950          { ac_try='test -s conftest.$ac_objext'
8951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952   (eval $ac_try) 2>&5
8953   ac_status=$?
8954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955   (exit $ac_status); }; }; then
8956   ac_lo=$ac_mid; break
8957 else
8958   echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.$ac_ext >&5
8960
8961 ac_hi=`expr '(' $ac_mid ')' - 1`
8962                        if test $ac_mid -le $ac_hi; then
8963                          ac_lo= ac_hi=
8964                          break
8965                        fi
8966                        ac_mid=`expr 2 '*' $ac_mid`
8967 fi
8968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8969   done
8970 else
8971   echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.$ac_ext >&5
8973
8974 ac_lo= ac_hi=
8975 fi
8976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8977 fi
8978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8979 # Binary search between lo and hi bounds.
8980 while test "x$ac_lo" != "x$ac_hi"; do
8981   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8982   cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h.  */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h.  */
8988 $ac_includes_default
8989 int
8990 main ()
8991 {
8992 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8993 test_array [0] = 0
8994
8995   ;
8996   return 0;
8997 }
8998 _ACEOF
8999 rm -f conftest.$ac_objext
9000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9001   (eval $ac_compile) 2>conftest.er1
9002   ac_status=$?
9003   grep -v '^ *+' conftest.er1 >conftest.err
9004   rm -f conftest.er1
9005   cat conftest.err >&5
9006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007   (exit $ac_status); } &&
9008          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010   (eval $ac_try) 2>&5
9011   ac_status=$?
9012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013   (exit $ac_status); }; } &&
9014          { ac_try='test -s conftest.$ac_objext'
9015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016   (eval $ac_try) 2>&5
9017   ac_status=$?
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); }; }; then
9020   ac_hi=$ac_mid
9021 else
9022   echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9024
9025 ac_lo=`expr '(' $ac_mid ')' + 1`
9026 fi
9027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9028 done
9029 case $ac_lo in
9030 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9031 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9032 See \`config.log' for more details." >&5
9033 echo "$as_me: error: cannot compute sizeof (long long), 77
9034 See \`config.log' for more details." >&2;}
9035    { (exit 1); exit 1; }; } ;;
9036 esac
9037 else
9038   if test "$cross_compiling" = yes; then
9039   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9040 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
9041    { (exit 1); exit 1; }; }
9042 else
9043   cat >conftest.$ac_ext <<_ACEOF
9044 /* confdefs.h.  */
9045 _ACEOF
9046 cat confdefs.h >>conftest.$ac_ext
9047 cat >>conftest.$ac_ext <<_ACEOF
9048 /* end confdefs.h.  */
9049 $ac_includes_default
9050 long longval () { return (long) (sizeof (long long)); }
9051 unsigned long ulongval () { return (long) (sizeof (long long)); }
9052 #include <stdio.h>
9053 #include <stdlib.h>
9054 int
9055 main ()
9056 {
9057
9058   FILE *f = fopen ("conftest.val", "w");
9059   if (! f)
9060     exit (1);
9061   if (((long) (sizeof (long long))) < 0)
9062     {
9063       long i = longval ();
9064       if (i != ((long) (sizeof (long long))))
9065         exit (1);
9066       fprintf (f, "%ld\n", i);
9067     }
9068   else
9069     {
9070       unsigned long i = ulongval ();
9071       if (i != ((long) (sizeof (long long))))
9072         exit (1);
9073       fprintf (f, "%lu\n", i);
9074     }
9075   exit (ferror (f) || fclose (f) != 0);
9076
9077   ;
9078   return 0;
9079 }
9080 _ACEOF
9081 rm -f conftest$ac_exeext
9082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9083   (eval $ac_link) 2>&5
9084   ac_status=$?
9085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088   (eval $ac_try) 2>&5
9089   ac_status=$?
9090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091   (exit $ac_status); }; }; then
9092   ac_cv_sizeof_long_long=`cat conftest.val`
9093 else
9094   echo "$as_me: program exited with status $ac_status" >&5
9095 echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9097
9098 ( exit $ac_status )
9099 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9100 See \`config.log' for more details." >&5
9101 echo "$as_me: error: cannot compute sizeof (long long), 77
9102 See \`config.log' for more details." >&2;}
9103    { (exit 1); exit 1; }; }
9104 fi
9105 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9106 fi
9107 fi
9108 rm -f conftest.val
9109 else
9110   ac_cv_sizeof_long_long=0
9111 fi
9112 fi
9113 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9114 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9115 cat >>confdefs.h <<_ACEOF
9116 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9117 _ACEOF
9118
9119
9120 echo "$as_me:$LINENO: checking for int *" >&5
9121 echo $ECHO_N "checking for int *... $ECHO_C" >&6
9122 if test "${ac_cv_type_int_p+set}" = set; then
9123   echo $ECHO_N "(cached) $ECHO_C" >&6
9124 else
9125   cat >conftest.$ac_ext <<_ACEOF
9126 /* confdefs.h.  */
9127 _ACEOF
9128 cat confdefs.h >>conftest.$ac_ext
9129 cat >>conftest.$ac_ext <<_ACEOF
9130 /* end confdefs.h.  */
9131 $ac_includes_default
9132 int
9133 main ()
9134 {
9135 if ((int * *) 0)
9136   return 0;
9137 if (sizeof (int *))
9138   return 0;
9139   ;
9140   return 0;
9141 }
9142 _ACEOF
9143 rm -f conftest.$ac_objext
9144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9145   (eval $ac_compile) 2>conftest.er1
9146   ac_status=$?
9147   grep -v '^ *+' conftest.er1 >conftest.err
9148   rm -f conftest.er1
9149   cat conftest.err >&5
9150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151   (exit $ac_status); } &&
9152          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154   (eval $ac_try) 2>&5
9155   ac_status=$?
9156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157   (exit $ac_status); }; } &&
9158          { ac_try='test -s conftest.$ac_objext'
9159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160   (eval $ac_try) 2>&5
9161   ac_status=$?
9162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163   (exit $ac_status); }; }; then
9164   ac_cv_type_int_p=yes
9165 else
9166   echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9168
9169 ac_cv_type_int_p=no
9170 fi
9171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9172 fi
9173 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9174 echo "${ECHO_T}$ac_cv_type_int_p" >&6
9175
9176 echo "$as_me:$LINENO: checking size of int *" >&5
9177 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
9178 if test "${ac_cv_sizeof_int_p+set}" = set; then
9179   echo $ECHO_N "(cached) $ECHO_C" >&6
9180 else
9181   if test "$ac_cv_type_int_p" = yes; then
9182   # The cast to unsigned long works around a bug in the HP C Compiler
9183   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9184   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9185   # This bug is HP SR number 8606223364.
9186   if test "$cross_compiling" = yes; then
9187   # Depending upon the size, compute the lo and hi bounds.
9188 cat >conftest.$ac_ext <<_ACEOF
9189 /* confdefs.h.  */
9190 _ACEOF
9191 cat confdefs.h >>conftest.$ac_ext
9192 cat >>conftest.$ac_ext <<_ACEOF
9193 /* end confdefs.h.  */
9194 $ac_includes_default
9195 int
9196 main ()
9197 {
9198 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
9199 test_array [0] = 0
9200
9201   ;
9202   return 0;
9203 }
9204 _ACEOF
9205 rm -f conftest.$ac_objext
9206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9207   (eval $ac_compile) 2>conftest.er1
9208   ac_status=$?
9209   grep -v '^ *+' conftest.er1 >conftest.err
9210   rm -f conftest.er1
9211   cat conftest.err >&5
9212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213   (exit $ac_status); } &&
9214          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9216   (eval $ac_try) 2>&5
9217   ac_status=$?
9218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219   (exit $ac_status); }; } &&
9220          { ac_try='test -s conftest.$ac_objext'
9221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222   (eval $ac_try) 2>&5
9223   ac_status=$?
9224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225   (exit $ac_status); }; }; then
9226   ac_lo=0 ac_mid=0
9227   while :; do
9228     cat >conftest.$ac_ext <<_ACEOF
9229 /* confdefs.h.  */
9230 _ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h.  */
9234 $ac_includes_default
9235 int
9236 main ()
9237 {
9238 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9239 test_array [0] = 0
9240
9241   ;
9242   return 0;
9243 }
9244 _ACEOF
9245 rm -f conftest.$ac_objext
9246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9247   (eval $ac_compile) 2>conftest.er1
9248   ac_status=$?
9249   grep -v '^ *+' conftest.er1 >conftest.err
9250   rm -f conftest.er1
9251   cat conftest.err >&5
9252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253   (exit $ac_status); } &&
9254          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256   (eval $ac_try) 2>&5
9257   ac_status=$?
9258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259   (exit $ac_status); }; } &&
9260          { ac_try='test -s conftest.$ac_objext'
9261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262   (eval $ac_try) 2>&5
9263   ac_status=$?
9264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265   (exit $ac_status); }; }; then
9266   ac_hi=$ac_mid; break
9267 else
9268   echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9270
9271 ac_lo=`expr $ac_mid + 1`
9272                     if test $ac_lo -le $ac_mid; then
9273                       ac_lo= ac_hi=
9274                       break
9275                     fi
9276                     ac_mid=`expr 2 '*' $ac_mid + 1`
9277 fi
9278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9279   done
9280 else
9281   echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.$ac_ext >&5
9283
9284 cat >conftest.$ac_ext <<_ACEOF
9285 /* confdefs.h.  */
9286 _ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h.  */
9290 $ac_includes_default
9291 int
9292 main ()
9293 {
9294 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
9295 test_array [0] = 0
9296
9297   ;
9298   return 0;
9299 }
9300 _ACEOF
9301 rm -f conftest.$ac_objext
9302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9303   (eval $ac_compile) 2>conftest.er1
9304   ac_status=$?
9305   grep -v '^ *+' conftest.er1 >conftest.err
9306   rm -f conftest.er1
9307   cat conftest.err >&5
9308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309   (exit $ac_status); } &&
9310          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312   (eval $ac_try) 2>&5
9313   ac_status=$?
9314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315   (exit $ac_status); }; } &&
9316          { ac_try='test -s conftest.$ac_objext'
9317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318   (eval $ac_try) 2>&5
9319   ac_status=$?
9320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321   (exit $ac_status); }; }; then
9322   ac_hi=-1 ac_mid=-1
9323   while :; do
9324     cat >conftest.$ac_ext <<_ACEOF
9325 /* confdefs.h.  */
9326 _ACEOF
9327 cat confdefs.h >>conftest.$ac_ext
9328 cat >>conftest.$ac_ext <<_ACEOF
9329 /* end confdefs.h.  */
9330 $ac_includes_default
9331 int
9332 main ()
9333 {
9334 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
9335 test_array [0] = 0
9336
9337   ;
9338   return 0;
9339 }
9340 _ACEOF
9341 rm -f conftest.$ac_objext
9342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9343   (eval $ac_compile) 2>conftest.er1
9344   ac_status=$?
9345   grep -v '^ *+' conftest.er1 >conftest.err
9346   rm -f conftest.er1
9347   cat conftest.err >&5
9348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349   (exit $ac_status); } &&
9350          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352   (eval $ac_try) 2>&5
9353   ac_status=$?
9354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355   (exit $ac_status); }; } &&
9356          { ac_try='test -s conftest.$ac_objext'
9357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358   (eval $ac_try) 2>&5
9359   ac_status=$?
9360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); }; }; then
9362   ac_lo=$ac_mid; break
9363 else
9364   echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9366
9367 ac_hi=`expr '(' $ac_mid ')' - 1`
9368                        if test $ac_mid -le $ac_hi; then
9369                          ac_lo= ac_hi=
9370                          break
9371                        fi
9372                        ac_mid=`expr 2 '*' $ac_mid`
9373 fi
9374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9375   done
9376 else
9377   echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9379
9380 ac_lo= ac_hi=
9381 fi
9382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9383 fi
9384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9385 # Binary search between lo and hi bounds.
9386 while test "x$ac_lo" != "x$ac_hi"; do
9387   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9388   cat >conftest.$ac_ext <<_ACEOF
9389 /* confdefs.h.  */
9390 _ACEOF
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h.  */
9394 $ac_includes_default
9395 int
9396 main ()
9397 {
9398 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9399 test_array [0] = 0
9400
9401   ;
9402   return 0;
9403 }
9404 _ACEOF
9405 rm -f conftest.$ac_objext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9407   (eval $ac_compile) 2>conftest.er1
9408   ac_status=$?
9409   grep -v '^ *+' conftest.er1 >conftest.err
9410   rm -f conftest.er1
9411   cat conftest.err >&5
9412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413   (exit $ac_status); } &&
9414          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416   (eval $ac_try) 2>&5
9417   ac_status=$?
9418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419   (exit $ac_status); }; } &&
9420          { ac_try='test -s conftest.$ac_objext'
9421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422   (eval $ac_try) 2>&5
9423   ac_status=$?
9424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425   (exit $ac_status); }; }; then
9426   ac_hi=$ac_mid
9427 else
9428   echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9430
9431 ac_lo=`expr '(' $ac_mid ')' + 1`
9432 fi
9433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9434 done
9435 case $ac_lo in
9436 ?*) ac_cv_sizeof_int_p=$ac_lo;;
9437 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9438 See \`config.log' for more details." >&5
9439 echo "$as_me: error: cannot compute sizeof (int *), 77
9440 See \`config.log' for more details." >&2;}
9441    { (exit 1); exit 1; }; } ;;
9442 esac
9443 else
9444   if test "$cross_compiling" = yes; then
9445   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9446 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
9447    { (exit 1); exit 1; }; }
9448 else
9449   cat >conftest.$ac_ext <<_ACEOF
9450 /* confdefs.h.  */
9451 _ACEOF
9452 cat confdefs.h >>conftest.$ac_ext
9453 cat >>conftest.$ac_ext <<_ACEOF
9454 /* end confdefs.h.  */
9455 $ac_includes_default
9456 long longval () { return (long) (sizeof (int *)); }
9457 unsigned long ulongval () { return (long) (sizeof (int *)); }
9458 #include <stdio.h>
9459 #include <stdlib.h>
9460 int
9461 main ()
9462 {
9463
9464   FILE *f = fopen ("conftest.val", "w");
9465   if (! f)
9466     exit (1);
9467   if (((long) (sizeof (int *))) < 0)
9468     {
9469       long i = longval ();
9470       if (i != ((long) (sizeof (int *))))
9471         exit (1);
9472       fprintf (f, "%ld\n", i);
9473     }
9474   else
9475     {
9476       unsigned long i = ulongval ();
9477       if (i != ((long) (sizeof (int *))))
9478         exit (1);
9479       fprintf (f, "%lu\n", i);
9480     }
9481   exit (ferror (f) || fclose (f) != 0);
9482
9483   ;
9484   return 0;
9485 }
9486 _ACEOF
9487 rm -f conftest$ac_exeext
9488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9489   (eval $ac_link) 2>&5
9490   ac_status=$?
9491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494   (eval $ac_try) 2>&5
9495   ac_status=$?
9496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497   (exit $ac_status); }; }; then
9498   ac_cv_sizeof_int_p=`cat conftest.val`
9499 else
9500   echo "$as_me: program exited with status $ac_status" >&5
9501 echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.$ac_ext >&5
9503
9504 ( exit $ac_status )
9505 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9506 See \`config.log' for more details." >&5
9507 echo "$as_me: error: cannot compute sizeof (int *), 77
9508 See \`config.log' for more details." >&2;}
9509    { (exit 1); exit 1; }; }
9510 fi
9511 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9512 fi
9513 fi
9514 rm -f conftest.val
9515 else
9516   ac_cv_sizeof_int_p=0
9517 fi
9518 fi
9519 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9520 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
9521 cat >>confdefs.h <<_ACEOF
9522 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
9523 _ACEOF
9524
9525
9526
9527
9528 echo "$as_me:$LINENO: checking for int16_t" >&5
9529 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
9530 if test "${rxvt_cv_int16_t+set}" = set; then
9531   echo $ECHO_N "(cached) $ECHO_C" >&6
9532 else
9533   cat >conftest.$ac_ext <<_ACEOF
9534 /* confdefs.h.  */
9535 _ACEOF
9536 cat confdefs.h >>conftest.$ac_ext
9537 cat >>conftest.$ac_ext <<_ACEOF
9538 /* end confdefs.h.  */
9539 #include <stdint.h>
9540 int
9541 main ()
9542 {
9543 int16_t dummy;
9544   ;
9545   return 0;
9546 }
9547 _ACEOF
9548 rm -f conftest.$ac_objext
9549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9550   (eval $ac_compile) 2>conftest.er1
9551   ac_status=$?
9552   grep -v '^ *+' conftest.er1 >conftest.err
9553   rm -f conftest.er1
9554   cat conftest.err >&5
9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); } &&
9557          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559   (eval $ac_try) 2>&5
9560   ac_status=$?
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); }; } &&
9563          { ac_try='test -s conftest.$ac_objext'
9564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565   (eval $ac_try) 2>&5
9566   ac_status=$?
9567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568   (exit $ac_status); }; }; then
9569   rxvt_cv_int16_t=yes
9570 else
9571   echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.$ac_ext >&5
9573
9574 if test "$ac_cv_sizeof_char" -ge 2; then
9575   rxvt_cv_int16_t=" char"
9576 else
9577   if test "$ac_cv_sizeof_short" -ge 2; then
9578     rxvt_cv_int16_t=" short"
9579   else
9580     if test "$ac_cv_sizeof_int" -ge 2; then
9581       rxvt_cv_int16_t=" int"
9582     else
9583       if test "$ac_cv_sizeof_long" -ge 2; then
9584         rxvt_cv_int16_t=" long"
9585       else
9586         if test "$ac_cv_sizeof_long_long" -ge 2; then
9587           rxvt_cv_int16_t=" long long"
9588         else
9589           rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9590         fi
9591       fi
9592     fi
9593   fi
9594 fi
9595 fi
9596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9597 fi
9598 echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9599 echo "${ECHO_T}$rxvt_cv_int16_t" >&6
9600 if test x"$rxvt_cv_int16_t" != xyes; then
9601   rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9602 else
9603   if test x"" = x; then
9604     rxvt_int16_typedef="/* typedef short int16_t; */"
9605   else
9606     rxvt_int16_typedef="/* typedef  short int16_t; */"
9607   fi
9608 fi
9609
9610 echo "$as_me:$LINENO: checking for uint16_t" >&5
9611 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
9612 if test "${rxvt_cv_uint16_t+set}" = set; then
9613   echo $ECHO_N "(cached) $ECHO_C" >&6
9614 else
9615   cat >conftest.$ac_ext <<_ACEOF
9616 /* confdefs.h.  */
9617 _ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h.  */
9621 #include <stdint.h>
9622 int
9623 main ()
9624 {
9625 uint16_t dummy;
9626   ;
9627   return 0;
9628 }
9629 _ACEOF
9630 rm -f conftest.$ac_objext
9631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9632   (eval $ac_compile) 2>conftest.er1
9633   ac_status=$?
9634   grep -v '^ *+' conftest.er1 >conftest.err
9635   rm -f conftest.er1
9636   cat conftest.err >&5
9637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638   (exit $ac_status); } &&
9639          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641   (eval $ac_try) 2>&5
9642   ac_status=$?
9643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644   (exit $ac_status); }; } &&
9645          { ac_try='test -s conftest.$ac_objext'
9646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647   (eval $ac_try) 2>&5
9648   ac_status=$?
9649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650   (exit $ac_status); }; }; then
9651   rxvt_cv_uint16_t=yes
9652 else
9653   echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.$ac_ext >&5
9655
9656 if test "$ac_cv_sizeof_char" -ge 2; then
9657   rxvt_cv_uint16_t="unsigned char"
9658 else
9659   if test "$ac_cv_sizeof_short" -ge 2; then
9660     rxvt_cv_uint16_t="unsigned short"
9661   else
9662     if test "$ac_cv_sizeof_int" -ge 2; then
9663       rxvt_cv_uint16_t="unsigned int"
9664     else
9665       if test "$ac_cv_sizeof_long" -ge 2; then
9666         rxvt_cv_uint16_t="unsigned long"
9667       else
9668         if test "$ac_cv_sizeof_long_long" -ge 2; then
9669           rxvt_cv_uint16_t="unsigned long long"
9670         else
9671           rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9672         fi
9673       fi
9674     fi
9675   fi
9676 fi
9677 fi
9678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9679 fi
9680 echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9681 echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
9682 if test x"$rxvt_cv_uint16_t" != xyes; then
9683   rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9684 else
9685   if test x"unsigned" = x; then
9686     rxvt_uint16_typedef="/* typedef short uint16_t; */"
9687   else
9688     rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9689   fi
9690 fi
9691
9692 echo "$as_me:$LINENO: checking for int32_t" >&5
9693 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
9694 if test "${rxvt_cv_int32_t+set}" = set; then
9695   echo $ECHO_N "(cached) $ECHO_C" >&6
9696 else
9697   cat >conftest.$ac_ext <<_ACEOF
9698 /* confdefs.h.  */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h.  */
9703 #include <stdint.h>
9704 int
9705 main ()
9706 {
9707 int32_t dummy;
9708   ;
9709   return 0;
9710 }
9711 _ACEOF
9712 rm -f conftest.$ac_objext
9713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9714   (eval $ac_compile) 2>conftest.er1
9715   ac_status=$?
9716   grep -v '^ *+' conftest.er1 >conftest.err
9717   rm -f conftest.er1
9718   cat conftest.err >&5
9719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720   (exit $ac_status); } &&
9721          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723   (eval $ac_try) 2>&5
9724   ac_status=$?
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); }; } &&
9727          { ac_try='test -s conftest.$ac_objext'
9728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729   (eval $ac_try) 2>&5
9730   ac_status=$?
9731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732   (exit $ac_status); }; }; then
9733   rxvt_cv_int32_t=yes
9734 else
9735   echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9737
9738 if test "$ac_cv_sizeof_char" -ge 4; then
9739   rxvt_cv_int32_t=" char"
9740 else
9741   if test "$ac_cv_sizeof_short" -ge 4; then
9742     rxvt_cv_int32_t=" short"
9743   else
9744     if test "$ac_cv_sizeof_int" -ge 4; then
9745       rxvt_cv_int32_t=" int"
9746     else
9747       if test "$ac_cv_sizeof_long" -ge 4; then
9748         rxvt_cv_int32_t=" long"
9749       else
9750         if test "$ac_cv_sizeof_long_long" -ge 4; then
9751           rxvt_cv_int32_t=" long long"
9752         else
9753           rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9754         fi
9755       fi
9756     fi
9757   fi
9758 fi
9759 fi
9760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9761 fi
9762 echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9763 echo "${ECHO_T}$rxvt_cv_int32_t" >&6
9764 if test x"$rxvt_cv_int32_t" != xyes; then
9765   rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9766 else
9767   if test x"" = x; then
9768     rxvt_int32_typedef="/* typedef int int32_t; */"
9769   else
9770     rxvt_int32_typedef="/* typedef  int int32_t; */"
9771   fi
9772 fi
9773
9774 echo "$as_me:$LINENO: checking for uint32_t" >&5
9775 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
9776 if test "${rxvt_cv_uint32_t+set}" = set; then
9777   echo $ECHO_N "(cached) $ECHO_C" >&6
9778 else
9779   cat >conftest.$ac_ext <<_ACEOF
9780 /* confdefs.h.  */
9781 _ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h.  */
9785 #include <stdint.h>
9786 int
9787 main ()
9788 {
9789 uint32_t dummy;
9790   ;
9791   return 0;
9792 }
9793 _ACEOF
9794 rm -f conftest.$ac_objext
9795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9796   (eval $ac_compile) 2>conftest.er1
9797   ac_status=$?
9798   grep -v '^ *+' conftest.er1 >conftest.err
9799   rm -f conftest.er1
9800   cat conftest.err >&5
9801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802   (exit $ac_status); } &&
9803          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805   (eval $ac_try) 2>&5
9806   ac_status=$?
9807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808   (exit $ac_status); }; } &&
9809          { ac_try='test -s conftest.$ac_objext'
9810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811   (eval $ac_try) 2>&5
9812   ac_status=$?
9813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); }; }; then
9815   rxvt_cv_uint32_t=yes
9816 else
9817   echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9819
9820 if test "$ac_cv_sizeof_char" -ge 4; then
9821   rxvt_cv_uint32_t="unsigned char"
9822 else
9823   if test "$ac_cv_sizeof_short" -ge 4; then
9824     rxvt_cv_uint32_t="unsigned short"
9825   else
9826     if test "$ac_cv_sizeof_int" -ge 4; then
9827       rxvt_cv_uint32_t="unsigned int"
9828     else
9829       if test "$ac_cv_sizeof_long" -ge 4; then
9830         rxvt_cv_uint32_t="unsigned long"
9831       else
9832         if test "$ac_cv_sizeof_long_long" -ge 4; then
9833           rxvt_cv_uint32_t="unsigned long long"
9834         else
9835           rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
9836         fi
9837       fi
9838     fi
9839   fi
9840 fi
9841 fi
9842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9843 fi
9844 echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
9845 echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
9846 if test x"$rxvt_cv_uint32_t" != xyes; then
9847   rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
9848 else
9849   if test x"unsigned" = x; then
9850     rxvt_uint32_typedef="/* typedef int uint32_t; */"
9851   else
9852     rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
9853   fi
9854 fi
9855
9856 if test "$ac_cv_sizeof_int_p" -eq 8; then
9857   rxvt_intp_define="#define intp_t int64_t"
9858   rxvt_u_intp_define="#define u_intp_t u_int64_t"
9859 else
9860   if test "$ac_cv_sizeof_int_p" -eq 4; then
9861     rxvt_intp_define="#define intp_t int32_t"
9862     rxvt_u_intp_define="#define u_intp_t u_int32_t"
9863   else
9864     if test "$ac_cv_sizeof_int_p" -eq 2; then
9865       rxvt_intp_define="#define intp_t int16_t"
9866       rxvt_u_intp_define="#define u_intp_t u_int16_t"
9867     else
9868       rxvt_intp_define="#error set intp_t"
9869       rxvt_u_intp_define="#error set u_intp_t"
9870     fi
9871   fi
9872 fi
9873
9874
9875
9876 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9877 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9878 if test "${ac_cv_type_signal+set}" = set; then
9879   echo $ECHO_N "(cached) $ECHO_C" >&6
9880 else
9881   cat >conftest.$ac_ext <<_ACEOF
9882 /* confdefs.h.  */
9883 _ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h.  */
9887 #include <sys/types.h>
9888 #include <signal.h>
9889 #ifdef signal
9890 # undef signal
9891 #endif
9892 #ifdef __cplusplus
9893 extern "C" void (*signal (int, void (*)(int)))(int);
9894 #else
9895 void (*signal ()) ();
9896 #endif
9897
9898 int
9899 main ()
9900 {
9901 int i;
9902   ;
9903   return 0;
9904 }
9905 _ACEOF
9906 rm -f conftest.$ac_objext
9907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9908   (eval $ac_compile) 2>conftest.er1
9909   ac_status=$?
9910   grep -v '^ *+' conftest.er1 >conftest.err
9911   rm -f conftest.er1
9912   cat conftest.err >&5
9913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914   (exit $ac_status); } &&
9915          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917   (eval $ac_try) 2>&5
9918   ac_status=$?
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); }; } &&
9921          { ac_try='test -s conftest.$ac_objext'
9922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923   (eval $ac_try) 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; }; then
9927   ac_cv_type_signal=void
9928 else
9929   echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9931
9932 ac_cv_type_signal=int
9933 fi
9934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9935 fi
9936 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9937 echo "${ECHO_T}$ac_cv_type_signal" >&6
9938
9939 cat >>confdefs.h <<_ACEOF
9940 #define RETSIGTYPE $ac_cv_type_signal
9941 _ACEOF
9942
9943
9944
9945 case "$host_alias" in
9946     *ultrix) ac_cv_func_setsid='no' ;;
9947     *) break;;
9948 esac
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969 for ac_func in \
9970         atexit \
9971         revoke \
9972         unsetenv \
9973         setutent \
9974         seteuid \
9975         setreuid \
9976         setsid \
9977         setpgrp \
9978         setpgid \
9979         openpty \
9980         _getpty \
9981         grantpt \
9982         unlockpt \
9983         isastream \
9984         on_exit \
9985         nanosleep \
9986         updwtmp \
9987         updwtmpx \
9988         ttyslot \
9989
9990 do
9991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9992 echo "$as_me:$LINENO: checking for $ac_func" >&5
9993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9994 if eval "test \"\${$as_ac_var+set}\" = set"; then
9995   echo $ECHO_N "(cached) $ECHO_C" >&6
9996 else
9997   cat >conftest.$ac_ext <<_ACEOF
9998 /* confdefs.h.  */
9999 _ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h.  */
10003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10005 #define $ac_func innocuous_$ac_func
10006
10007 /* System header to define __stub macros and hopefully few prototypes,
10008     which can conflict with char $ac_func (); below.
10009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10010     <limits.h> exists even on freestanding compilers.  */
10011
10012 #ifdef __STDC__
10013 # include <limits.h>
10014 #else
10015 # include <assert.h>
10016 #endif
10017
10018 #undef $ac_func
10019
10020 /* Override any gcc2 internal prototype to avoid an error.  */
10021 #ifdef __cplusplus
10022 extern "C"
10023 {
10024 #endif
10025 /* We use char because int might match the return type of a gcc2
10026    builtin and then its argument prototype would still apply.  */
10027 char $ac_func ();
10028 /* The GNU C library defines this for functions which it implements
10029     to always fail with ENOSYS.  Some functions are actually named
10030     something starting with __ and the normal name is an alias.  */
10031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10032 choke me
10033 #else
10034 char (*f) () = $ac_func;
10035 #endif
10036 #ifdef __cplusplus
10037 }
10038 #endif
10039
10040 int
10041 main ()
10042 {
10043 return f != $ac_func;
10044   ;
10045   return 0;
10046 }
10047 _ACEOF
10048 rm -f conftest.$ac_objext conftest$ac_exeext
10049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10050   (eval $ac_link) 2>conftest.er1
10051   ac_status=$?
10052   grep -v '^ *+' conftest.er1 >conftest.err
10053   rm -f conftest.er1
10054   cat conftest.err >&5
10055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056   (exit $ac_status); } &&
10057          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059   (eval $ac_try) 2>&5
10060   ac_status=$?
10061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062   (exit $ac_status); }; } &&
10063          { ac_try='test -s conftest$ac_exeext'
10064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10065   (eval $ac_try) 2>&5
10066   ac_status=$?
10067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068   (exit $ac_status); }; }; then
10069   eval "$as_ac_var=yes"
10070 else
10071   echo "$as_me: failed program was:" >&5
10072 sed 's/^/| /' conftest.$ac_ext >&5
10073
10074 eval "$as_ac_var=no"
10075 fi
10076 rm -f conftest.err conftest.$ac_objext \
10077       conftest$ac_exeext conftest.$ac_ext
10078 fi
10079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10081 if test `eval echo '${'$as_ac_var'}'` = yes; then
10082   cat >>confdefs.h <<_ACEOF
10083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10084 _ACEOF
10085
10086 fi
10087 done
10088
10089
10090
10091 if test "${ac_cv_header_utmp_h+set}" = set; then
10092   echo "$as_me:$LINENO: checking for utmp.h" >&5
10093 echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10094 if test "${ac_cv_header_utmp_h+set}" = set; then
10095   echo $ECHO_N "(cached) $ECHO_C" >&6
10096 fi
10097 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10098 echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10099 else
10100   # Is the header compilable?
10101 echo "$as_me:$LINENO: checking utmp.h usability" >&5
10102 echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
10103 cat >conftest.$ac_ext <<_ACEOF
10104 /* confdefs.h.  */
10105 _ACEOF
10106 cat confdefs.h >>conftest.$ac_ext
10107 cat >>conftest.$ac_ext <<_ACEOF
10108 /* end confdefs.h.  */
10109 $ac_includes_default
10110 #include <utmp.h>
10111 _ACEOF
10112 rm -f conftest.$ac_objext
10113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10114   (eval $ac_compile) 2>conftest.er1
10115   ac_status=$?
10116   grep -v '^ *+' conftest.er1 >conftest.err
10117   rm -f conftest.er1
10118   cat conftest.err >&5
10119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120   (exit $ac_status); } &&
10121          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123   (eval $ac_try) 2>&5
10124   ac_status=$?
10125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126   (exit $ac_status); }; } &&
10127          { ac_try='test -s conftest.$ac_objext'
10128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129   (eval $ac_try) 2>&5
10130   ac_status=$?
10131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132   (exit $ac_status); }; }; then
10133   ac_header_compiler=yes
10134 else
10135   echo "$as_me: failed program was:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10137
10138 ac_header_compiler=no
10139 fi
10140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10141 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10142 echo "${ECHO_T}$ac_header_compiler" >&6
10143
10144 # Is the header present?
10145 echo "$as_me:$LINENO: checking utmp.h presence" >&5
10146 echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
10147 cat >conftest.$ac_ext <<_ACEOF
10148 /* confdefs.h.  */
10149 _ACEOF
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h.  */
10153 #include <utmp.h>
10154 _ACEOF
10155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10156   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10157   ac_status=$?
10158   grep -v '^ *+' conftest.er1 >conftest.err
10159   rm -f conftest.er1
10160   cat conftest.err >&5
10161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162   (exit $ac_status); } >/dev/null; then
10163   if test -s conftest.err; then
10164     ac_cpp_err=$ac_cxx_preproc_warn_flag
10165     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10166   else
10167     ac_cpp_err=
10168   fi
10169 else
10170   ac_cpp_err=yes
10171 fi
10172 if test -z "$ac_cpp_err"; then
10173   ac_header_preproc=yes
10174 else
10175   echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10177
10178   ac_header_preproc=no
10179 fi
10180 rm -f conftest.err conftest.$ac_ext
10181 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10182 echo "${ECHO_T}$ac_header_preproc" >&6
10183
10184 # So?  What about this header?
10185 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10186   yes:no: )
10187     { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
10188 echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10189     { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
10190 echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
10191     ac_header_preproc=yes
10192     ;;
10193   no:yes:* )
10194     { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
10195 echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
10196     { echo "$as_me:$LINENO: WARNING: utmp.h:     check for missing prerequisite headers?" >&5
10197 echo "$as_me: WARNING: utmp.h:     check for missing prerequisite headers?" >&2;}
10198     { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
10199 echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
10200     { echo "$as_me:$LINENO: WARNING: utmp.h:     section \"Present But Cannot Be Compiled\"" >&5
10201 echo "$as_me: WARNING: utmp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10202     { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
10203 echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
10204     { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
10205 echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
10206     (
10207       cat <<\_ASBOX
10208 ## ------------------------------------------ ##
10209 ## Report this to the AC_PACKAGE_NAME lists.  ##
10210 ## ------------------------------------------ ##
10211 _ASBOX
10212     ) |
10213       sed "s/^/$as_me: WARNING:     /" >&2
10214     ;;
10215 esac
10216 echo "$as_me:$LINENO: checking for utmp.h" >&5
10217 echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10218 if test "${ac_cv_header_utmp_h+set}" = set; then
10219   echo $ECHO_N "(cached) $ECHO_C" >&6
10220 else
10221   ac_cv_header_utmp_h=$ac_header_preproc
10222 fi
10223 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10224 echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10225
10226 fi
10227 if test $ac_cv_header_utmp_h = yes; then
10228   echo "$as_me:$LINENO: checking for struct utmp" >&5
10229 echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
10230 if test "${rxvt_cv_struct_utmp+set}" = set; then
10231   echo $ECHO_N "(cached) $ECHO_C" >&6
10232 else
10233   cat >conftest.$ac_ext <<_ACEOF
10234 /* confdefs.h.  */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h.  */
10239 #include <sys/types.h>
10240 #include <stdint.h>
10241 #include <utmp.h>
10242 int
10243 main ()
10244 {
10245 struct utmp ut;
10246   ;
10247   return 0;
10248 }
10249 _ACEOF
10250 rm -f conftest.$ac_objext
10251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10252   (eval $ac_compile) 2>conftest.er1
10253   ac_status=$?
10254   grep -v '^ *+' conftest.er1 >conftest.err
10255   rm -f conftest.er1
10256   cat conftest.err >&5
10257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258   (exit $ac_status); } &&
10259          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10261   (eval $ac_try) 2>&5
10262   ac_status=$?
10263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264   (exit $ac_status); }; } &&
10265          { ac_try='test -s conftest.$ac_objext'
10266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10267   (eval $ac_try) 2>&5
10268   ac_status=$?
10269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270   (exit $ac_status); }; }; then
10271   rxvt_cv_struct_utmp=yes
10272 else
10273   echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10275
10276 rxvt_cv_struct_utmp=no
10277 fi
10278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10279 fi
10280 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
10281 echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
10282 if test x$rxvt_cv_struct_utmp = xyes; then
10283
10284 cat >>confdefs.h <<\_ACEOF
10285 #define HAVE_STRUCT_UTMP 1
10286 _ACEOF
10287
10288 fi
10289
10290
10291 echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
10292 echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
10293 if test "${rxvt_cv_struct_utmp_host+set}" = set; then
10294   echo $ECHO_N "(cached) $ECHO_C" >&6
10295 else
10296   cat >conftest.$ac_ext <<_ACEOF
10297 /* confdefs.h.  */
10298 _ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h.  */
10302 #include <sys/types.h>
10303 #include <utmp.h>
10304 int
10305 main ()
10306 {
10307 struct utmp ut; ut.ut_host;
10308   ;
10309   return 0;
10310 }
10311 _ACEOF
10312 rm -f conftest.$ac_objext
10313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10314   (eval $ac_compile) 2>conftest.er1
10315   ac_status=$?
10316   grep -v '^ *+' conftest.er1 >conftest.err
10317   rm -f conftest.er1
10318   cat conftest.err >&5
10319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320   (exit $ac_status); } &&
10321          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10323   (eval $ac_try) 2>&5
10324   ac_status=$?
10325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326   (exit $ac_status); }; } &&
10327          { ac_try='test -s conftest.$ac_objext'
10328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329   (eval $ac_try) 2>&5
10330   ac_status=$?
10331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332   (exit $ac_status); }; }; then
10333   rxvt_cv_struct_utmp_host=yes
10334 else
10335   echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10337
10338 rxvt_cv_struct_utmp_host=no
10339 fi
10340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10341 fi
10342 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
10343 echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
10344 if test x$rxvt_cv_struct_utmp_host = xyes; then
10345
10346 cat >>confdefs.h <<\_ACEOF
10347 #define HAVE_UTMP_HOST 1
10348 _ACEOF
10349
10350 fi
10351
10352 echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
10353 echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
10354 if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
10355   echo $ECHO_N "(cached) $ECHO_C" >&6
10356 else
10357   cat >conftest.$ac_ext <<_ACEOF
10358 /* confdefs.h.  */
10359 _ACEOF
10360 cat confdefs.h >>conftest.$ac_ext
10361 cat >>conftest.$ac_ext <<_ACEOF
10362 /* end confdefs.h.  */
10363 #include <sys/types.h>
10364 #include <utmp.h>
10365 int
10366 main ()
10367 {
10368 struct utmp ut; ut.ut_pid;
10369   ;
10370   return 0;
10371 }
10372 _ACEOF
10373 rm -f conftest.$ac_objext
10374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10375   (eval $ac_compile) 2>conftest.er1
10376   ac_status=$?
10377   grep -v '^ *+' conftest.er1 >conftest.err
10378   rm -f conftest.er1
10379   cat conftest.err >&5
10380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381   (exit $ac_status); } &&
10382          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384   (eval $ac_try) 2>&5
10385   ac_status=$?
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); }; } &&
10388          { ac_try='test -s conftest.$ac_objext'
10389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390   (eval $ac_try) 2>&5
10391   ac_status=$?
10392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393   (exit $ac_status); }; }; then
10394   rxvt_cv_struct_utmp_pid=yes
10395 else
10396   echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10398
10399 rxvt_cv_struct_utmp_pid=no
10400 fi
10401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10402 fi
10403 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
10404 echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
10405 if test x$rxvt_cv_struct_utmp_pid = xyes; then
10406
10407 cat >>confdefs.h <<\_ACEOF
10408 #define HAVE_UTMP_PID 1
10409 _ACEOF
10410
10411 fi
10412
10413 fi
10414
10415
10416
10417 if test "${ac_cv_header_utmpx_h+set}" = set; then
10418   echo "$as_me:$LINENO: checking for utmpx.h" >&5
10419 echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10420 if test "${ac_cv_header_utmpx_h+set}" = set; then
10421   echo $ECHO_N "(cached) $ECHO_C" >&6
10422 fi
10423 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10424 echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10425 else
10426   # Is the header compilable?
10427 echo "$as_me:$LINENO: checking utmpx.h usability" >&5
10428 echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
10429 cat >conftest.$ac_ext <<_ACEOF
10430 /* confdefs.h.  */
10431 _ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h.  */
10435 $ac_includes_default
10436 #include <utmpx.h>
10437 _ACEOF
10438 rm -f conftest.$ac_objext
10439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10440   (eval $ac_compile) 2>conftest.er1
10441   ac_status=$?
10442   grep -v '^ *+' conftest.er1 >conftest.err
10443   rm -f conftest.er1
10444   cat conftest.err >&5
10445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446   (exit $ac_status); } &&
10447          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10449   (eval $ac_try) 2>&5
10450   ac_status=$?
10451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452   (exit $ac_status); }; } &&
10453          { ac_try='test -s conftest.$ac_objext'
10454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455   (eval $ac_try) 2>&5
10456   ac_status=$?
10457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458   (exit $ac_status); }; }; then
10459   ac_header_compiler=yes
10460 else
10461   echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10463
10464 ac_header_compiler=no
10465 fi
10466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10468 echo "${ECHO_T}$ac_header_compiler" >&6
10469
10470 # Is the header present?
10471 echo "$as_me:$LINENO: checking utmpx.h presence" >&5
10472 echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
10473 cat >conftest.$ac_ext <<_ACEOF
10474 /* confdefs.h.  */
10475 _ACEOF
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h.  */
10479 #include <utmpx.h>
10480 _ACEOF
10481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10482   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10483   ac_status=$?
10484   grep -v '^ *+' conftest.er1 >conftest.err
10485   rm -f conftest.er1
10486   cat conftest.err >&5
10487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488   (exit $ac_status); } >/dev/null; then
10489   if test -s conftest.err; then
10490     ac_cpp_err=$ac_cxx_preproc_warn_flag
10491     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10492   else
10493     ac_cpp_err=
10494   fi
10495 else
10496   ac_cpp_err=yes
10497 fi
10498 if test -z "$ac_cpp_err"; then
10499   ac_header_preproc=yes
10500 else
10501   echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10503
10504   ac_header_preproc=no
10505 fi
10506 rm -f conftest.err conftest.$ac_ext
10507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10508 echo "${ECHO_T}$ac_header_preproc" >&6
10509
10510 # So?  What about this header?
10511 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10512   yes:no: )
10513     { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
10514 echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10515     { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
10516 echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
10517     ac_header_preproc=yes
10518     ;;
10519   no:yes:* )
10520     { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
10521 echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
10522     { echo "$as_me:$LINENO: WARNING: utmpx.h:     check for missing prerequisite headers?" >&5
10523 echo "$as_me: WARNING: utmpx.h:     check for missing prerequisite headers?" >&2;}
10524     { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
10525 echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
10526     { echo "$as_me:$LINENO: WARNING: utmpx.h:     section \"Present But Cannot Be Compiled\"" >&5
10527 echo "$as_me: WARNING: utmpx.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10528     { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
10529 echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
10530     { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
10531 echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
10532     (
10533       cat <<\_ASBOX
10534 ## ------------------------------------------ ##
10535 ## Report this to the AC_PACKAGE_NAME lists.  ##
10536 ## ------------------------------------------ ##
10537 _ASBOX
10538     ) |
10539       sed "s/^/$as_me: WARNING:     /" >&2
10540     ;;
10541 esac
10542 echo "$as_me:$LINENO: checking for utmpx.h" >&5
10543 echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10544 if test "${ac_cv_header_utmpx_h+set}" = set; then
10545   echo $ECHO_N "(cached) $ECHO_C" >&6
10546 else
10547   ac_cv_header_utmpx_h=$ac_header_preproc
10548 fi
10549 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10550 echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10551
10552 fi
10553 if test $ac_cv_header_utmpx_h = yes; then
10554   echo "$as_me:$LINENO: checking for struct utmpx" >&5
10555 echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
10556 if test "${rxvt_cv_struct_utmpx+set}" = set; then
10557   echo $ECHO_N "(cached) $ECHO_C" >&6
10558 else
10559   cat >conftest.$ac_ext <<_ACEOF
10560 /* confdefs.h.  */
10561 _ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h.  */
10565 #include <sys/types.h>
10566 #include <utmpx.h>
10567 int
10568 main ()
10569 {
10570 struct utmpx ut;
10571   ;
10572   return 0;
10573 }
10574 _ACEOF
10575 rm -f conftest.$ac_objext
10576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10577   (eval $ac_compile) 2>conftest.er1
10578   ac_status=$?
10579   grep -v '^ *+' conftest.er1 >conftest.err
10580   rm -f conftest.er1
10581   cat conftest.err >&5
10582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583   (exit $ac_status); } &&
10584          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586   (eval $ac_try) 2>&5
10587   ac_status=$?
10588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589   (exit $ac_status); }; } &&
10590          { ac_try='test -s conftest.$ac_objext'
10591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10592   (eval $ac_try) 2>&5
10593   ac_status=$?
10594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595   (exit $ac_status); }; }; then
10596   rxvt_cv_struct_utmpx=yes
10597 else
10598   echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10600
10601 rxvt_cv_struct_utmpx=no
10602 fi
10603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10604 fi
10605 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
10606 echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
10607 if test x$rxvt_cv_struct_utmpx = xyes; then
10608
10609 cat >>confdefs.h <<\_ACEOF
10610 #define HAVE_STRUCT_UTMPX 1
10611 _ACEOF
10612
10613 fi
10614
10615
10616 echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
10617 echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
10618 if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
10619   echo $ECHO_N "(cached) $ECHO_C" >&6
10620 else
10621   cat >conftest.$ac_ext <<_ACEOF
10622 /* confdefs.h.  */
10623 _ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h.  */
10627 #include <sys/types.h>
10628 #include <utmpx.h>
10629 int
10630 main ()
10631 {
10632 struct utmpx utx; utx.ut_host;
10633   ;
10634   return 0;
10635 }
10636 _ACEOF
10637 rm -f conftest.$ac_objext
10638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10639   (eval $ac_compile) 2>conftest.er1
10640   ac_status=$?
10641   grep -v '^ *+' conftest.er1 >conftest.err
10642   rm -f conftest.er1
10643   cat conftest.err >&5
10644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645   (exit $ac_status); } &&
10646          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648   (eval $ac_try) 2>&5
10649   ac_status=$?
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); }; } &&
10652          { ac_try='test -s conftest.$ac_objext'
10653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654   (eval $ac_try) 2>&5
10655   ac_status=$?
10656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657   (exit $ac_status); }; }; then
10658   rxvt_cv_struct_utmpx_host=yes
10659 else
10660   echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.$ac_ext >&5
10662
10663 rxvt_cv_struct_utmpx_host=no
10664 fi
10665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10666 fi
10667 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
10668 echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
10669 if test x$rxvt_cv_struct_utmpx_host = xyes; then
10670
10671 cat >>confdefs.h <<\_ACEOF
10672 #define HAVE_UTMPX_HOST 1
10673 _ACEOF
10674
10675 fi
10676
10677 echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10678 echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10679 if test "${rxvt_cv_struct_utmpx_session+set}" = set; then
10680   echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10682   cat >conftest.$ac_ext <<_ACEOF
10683 /* confdefs.h.  */
10684 _ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h.  */
10688 #include <sys/types.h>
10689 #include <utmpx.h>
10690 int
10691 main ()
10692 {
10693 struct utmpx utx; utx.ut_session;
10694   ;
10695   return 0;
10696 }
10697 _ACEOF
10698 rm -f conftest.$ac_objext
10699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10700   (eval $ac_compile) 2>conftest.er1
10701   ac_status=$?
10702   grep -v '^ *+' conftest.er1 >conftest.err
10703   rm -f conftest.er1
10704   cat conftest.err >&5
10705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706   (exit $ac_status); } &&
10707          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709   (eval $ac_try) 2>&5
10710   ac_status=$?
10711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712   (exit $ac_status); }; } &&
10713          { ac_try='test -s conftest.$ac_objext'
10714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715   (eval $ac_try) 2>&5
10716   ac_status=$?
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); }; }; then
10719   rxvt_cv_struct_utmpx_session=yes
10720 else
10721   echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10723
10724 rxvt_cv_struct_utmpx_session=no
10725 fi
10726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10727 fi
10728 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5
10729 echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6
10730 if test x$rxvt_cv_struct_utmpx_session = xyes; then
10731
10732 cat >>confdefs.h <<\_ACEOF
10733 #define HAVE_UTMPX_SESSION 1
10734 _ACEOF
10735
10736 fi
10737
10738 fi
10739
10740
10741 echo "$as_me:$LINENO: checking for struct lastlog" >&5
10742 echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
10743 if test "${rxvt_cv_struct_lastlog+set}" = set; then
10744   echo $ECHO_N "(cached) $ECHO_C" >&6
10745 else
10746   cat >conftest.$ac_ext <<_ACEOF
10747 /* confdefs.h.  */
10748 _ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h.  */
10752 #include <sys/types.h>
10753 #include <utmp.h>
10754 #ifdef HAVE_LASTLOG_H
10755 #include <lastlog.h>
10756 #endif
10757
10758 int
10759 main ()
10760 {
10761 struct lastlog ll;
10762   ;
10763   return 0;
10764 }
10765 _ACEOF
10766 rm -f conftest.$ac_objext
10767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10768   (eval $ac_compile) 2>conftest.er1
10769   ac_status=$?
10770   grep -v '^ *+' conftest.er1 >conftest.err
10771   rm -f conftest.er1
10772   cat conftest.err >&5
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); } &&
10775          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10777   (eval $ac_try) 2>&5
10778   ac_status=$?
10779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780   (exit $ac_status); }; } &&
10781          { ac_try='test -s conftest.$ac_objext'
10782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783   (eval $ac_try) 2>&5
10784   ac_status=$?
10785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786   (exit $ac_status); }; }; then
10787   rxvt_cv_struct_lastlog=yes
10788 else
10789   echo "$as_me: failed program was:" >&5
10790 sed 's/^/| /' conftest.$ac_ext >&5
10791
10792 rxvt_cv_struct_lastlog=no
10793 fi
10794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10795 fi
10796 echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
10797 echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
10798 if test x$rxvt_cv_struct_lastlog = xyes; then
10799
10800 cat >>confdefs.h <<\_ACEOF
10801 #define HAVE_STRUCT_LASTLOG 1
10802 _ACEOF
10803
10804 fi
10805
10806 echo "$as_me:$LINENO: checking for struct lastlogx" >&5
10807 echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
10808 if test "${rxvt_cv_struct_lastlogx+set}" = set; then
10809   echo $ECHO_N "(cached) $ECHO_C" >&6
10810 else
10811   cat >conftest.$ac_ext <<_ACEOF
10812 /* confdefs.h.  */
10813 _ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h.  */
10817 #include <sys/types.h>
10818 #include <utmpx.h>
10819 #ifdef HAVE_LASTLOG_H
10820 #include <lastlog.h>
10821 #endif
10822
10823 int
10824 main ()
10825 {
10826 struct lastlogx ll;
10827   ;
10828   return 0;
10829 }
10830 _ACEOF
10831 rm -f conftest.$ac_objext
10832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10833   (eval $ac_compile) 2>conftest.er1
10834   ac_status=$?
10835   grep -v '^ *+' conftest.er1 >conftest.err
10836   rm -f conftest.er1
10837   cat conftest.err >&5
10838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); } &&
10840          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842   (eval $ac_try) 2>&5
10843   ac_status=$?
10844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845   (exit $ac_status); }; } &&
10846          { ac_try='test -s conftest.$ac_objext'
10847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848   (eval $ac_try) 2>&5
10849   ac_status=$?
10850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851   (exit $ac_status); }; }; then
10852   rxvt_cv_struct_lastlogx=yes
10853 else
10854   echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.$ac_ext >&5
10856
10857 rxvt_cv_struct_lastlogx=no
10858 fi
10859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10860 fi
10861 echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
10862 echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
10863 if test x$rxvt_cv_struct_lastlogx = xyes; then
10864
10865 cat >>confdefs.h <<\_ACEOF
10866 #define HAVE_STRUCT_LASTLOGX 1
10867 _ACEOF
10868
10869 fi
10870
10871
10872 echo "$as_me:$LINENO: checking where utmp is located" >&5
10873 echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
10874 if test "${rxvt_cv_path_utmp+set}" = set; then
10875   echo $ECHO_N "(cached) $ECHO_C" >&6
10876 else
10877   if test "$cross_compiling" = yes; then
10878     { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5
10879 echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
10880 else
10881   cat >conftest.$ac_ext <<_ACEOF
10882 /* confdefs.h.  */
10883 _ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h.  */
10887 #include <stdio.h>
10888 #include <sys/types.h>
10889 #include <utmp.h>
10890 #include <errno.h>
10891 main()
10892 {
10893     char **u, *utmplist[] = {
10894     "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
10895     FILE *a, *f=fopen("conftestval", "w");
10896     if (!f) exit(1);
10897 #ifdef UTMP_FILE
10898     fprintf(f, "%s\n", UTMP_FILE);
10899     exit(0);
10900 #endif
10901 #ifdef _PATH_UTMP
10902     fprintf(f, "%s\n", _PATH_UTMP);
10903     exit(0);
10904 #endif
10905     for (u = utmplist; *u; u++) {
10906         if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
10907             fprintf(f, "%s\n", *u);
10908             exit(0);
10909         }
10910     }
10911     exit(0);
10912 }
10913 _ACEOF
10914 rm -f conftest$ac_exeext
10915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10916   (eval $ac_link) 2>&5
10917   ac_status=$?
10918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921   (eval $ac_try) 2>&5
10922   ac_status=$?
10923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924   (exit $ac_status); }; }; then
10925   rxvt_cv_path_utmp=`cat conftestval`
10926 else
10927   echo "$as_me: program exited with status $ac_status" >&5
10928 echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.$ac_ext >&5
10930
10931 ( exit $ac_status )
10932 rxvt_cv_path_utmp=
10933 fi
10934 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10935 fi
10936 fi
10937 echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
10938 echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
10939 if test x$rxvt_cv_path_utmp != x; then
10940
10941 cat >>confdefs.h <<_ACEOF
10942 #define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
10943 _ACEOF
10944
10945 fi
10946
10947
10948 echo "$as_me:$LINENO: checking where utmpx is located" >&5
10949 echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
10950 if test "${rxvt_cv_path_utmpx+set}" = set; then
10951   echo $ECHO_N "(cached) $ECHO_C" >&6
10952 else
10953   if test "$cross_compiling" = yes; then
10954     { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5
10955 echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;}
10956 else
10957   cat >conftest.$ac_ext <<_ACEOF
10958 /* confdefs.h.  */
10959 _ACEOF
10960 cat confdefs.h >>conftest.$ac_ext
10961 cat >>conftest.$ac_ext <<_ACEOF
10962 /* end confdefs.h.  */
10963 #include <stdio.h>
10964 #include <sys/types.h>
10965 #include <utmpx.h>
10966 #include <errno.h>
10967 #include <sys/stat.h>
10968 #ifdef HAVE_STRING_H
10969 #include <string.h>
10970 #endif
10971 main()
10972 {
10973     char **u, *p, *utmplist[] = {
10974 #ifdef UTMPX_FILE
10975         UTMPX_FILE,
10976 #endif
10977 #ifdef _PATH_UTMPX
10978         _PATH_UTMPX,
10979 #endif
10980     "/var/adm/utmpx", "/etc/utmpx", NULL };
10981     FILE *a, *f=fopen("conftestval", "w");
10982     struct stat statu, statux;
10983     if (!f) exit(1);
10984     for (u = utmplist; *u; u++) {
10985         if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
10986             if (stat(*u, &statux) < 0)
10987                 continue;
10988             p = strdup(*u);
10989             p[strlen(p) - 1] = '\0';
10990             if (stat(p, &statu) >= 0
10991                 && (statu.st_mtime - statux.st_mtime > 86400))
10992                 continue;
10993             fprintf(f, "%s\n", *u);
10994             exit(0);
10995         }
10996     }
10997     exit(0);
10998 }
10999 _ACEOF
11000 rm -f conftest$ac_exeext
11001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11002   (eval $ac_link) 2>&5
11003   ac_status=$?
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11007   (eval $ac_try) 2>&5
11008   ac_status=$?
11009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010   (exit $ac_status); }; }; then
11011   rxvt_cv_path_utmpx=`cat conftestval`
11012 else
11013   echo "$as_me: program exited with status $ac_status" >&5
11014 echo "$as_me: failed program was:" >&5
11015 sed 's/^/| /' conftest.$ac_ext >&5
11016
11017 ( exit $ac_status )
11018 rxvt_cv_path_utmpx=
11019 fi
11020 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11021 fi
11022 fi
11023 echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
11024 echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
11025 if test x$rxvt_cv_path_utmpx != x; then
11026
11027 cat >>confdefs.h <<_ACEOF
11028 #define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
11029 _ACEOF
11030
11031 fi
11032
11033
11034 echo "$as_me:$LINENO: checking where wtmp is located" >&5
11035 echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
11036 if test "${rxvt_cv_path_wtmp+set}" = set; then
11037   echo $ECHO_N "(cached) $ECHO_C" >&6
11038 else
11039   if test "$cross_compiling" = yes; then
11040     { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5
11041 echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;}
11042 else
11043   cat >conftest.$ac_ext <<_ACEOF
11044 /* confdefs.h.  */
11045 _ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h.  */
11049 #include <stdio.h>
11050 #include <sys/types.h>
11051 #ifdef HAVE_UTMP_H
11052 #include <utmp.h>
11053 #endif
11054 #include <errno.h>
11055 main()
11056 {
11057     char **w, *wtmplist[] = {
11058     "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
11059     FILE *a, *f=fopen("conftestval", "w");
11060     if (!f) exit(1);
11061 #ifdef WTMP_FILE
11062     fprintf(f, "%s\n", WTMP_FILE);
11063     exit(0);
11064 #endif
11065 #ifdef _PATH_WTMP
11066     fprintf(f, "%s\n", _PATH_WTMP);
11067     exit(0);
11068 #endif
11069     for (w = wtmplist; *w; w++) {
11070         if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11071             fprintf(f, "%s\n", *w);
11072             exit(0);
11073         }
11074     }
11075     exit(0);
11076 }
11077 _ACEOF
11078 rm -f conftest$ac_exeext
11079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11080   (eval $ac_link) 2>&5
11081   ac_status=$?
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085   (eval $ac_try) 2>&5
11086   ac_status=$?
11087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088   (exit $ac_status); }; }; then
11089   rxvt_cv_path_wtmp=`cat conftestval`
11090 else
11091   echo "$as_me: program exited with status $ac_status" >&5
11092 echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11094
11095 ( exit $ac_status )
11096 rxvt_cv_path_wtmp=
11097 fi
11098 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11099 fi
11100 fi
11101 echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
11102 echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
11103 if test x$rxvt_cv_path_wtmp != x; then
11104
11105 cat >>confdefs.h <<_ACEOF
11106 #define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
11107 _ACEOF
11108
11109 fi
11110
11111 echo "$as_me:$LINENO: checking where wtmpx is located" >&5
11112 echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
11113 if test "${rxvt_cv_path_wtmpx+set}" = set; then
11114   echo $ECHO_N "(cached) $ECHO_C" >&6
11115 else
11116   if test "$cross_compiling" = yes; then
11117     { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5
11118 echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;}
11119 else
11120   cat >conftest.$ac_ext <<_ACEOF
11121 /* confdefs.h.  */
11122 _ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h.  */
11126 #include <stdio.h>
11127 #ifdef HAVE_UTMPX_H
11128 #include <utmpx.h>
11129 #endif
11130 #include <errno.h>
11131 main()
11132 {
11133     char **w, *wtmplist[] = {
11134     "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
11135     FILE *a, *f=fopen("conftestval", "w");
11136     if (!f) exit(1);
11137 #ifdef WTMPX_FILE
11138     fprintf(f, "%s\n", WTMPX_FILE);
11139     exit(0);
11140 #endif
11141 #ifdef _PATH_WTMPX
11142     fprintf(f, "%s\n", _PATH_WTMPX);
11143     exit(0);
11144 #endif
11145     for (w = wtmplist; *w; w++) {
11146         if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11147             fprintf(f, "%s\n", *w);
11148             exit(0);
11149         }
11150     }
11151     exit(0);
11152 }
11153 _ACEOF
11154 rm -f conftest$ac_exeext
11155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11156   (eval $ac_link) 2>&5
11157   ac_status=$?
11158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161   (eval $ac_try) 2>&5
11162   ac_status=$?
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); }; }; then
11165   rxvt_cv_path_wtmpx=`cat conftestval`
11166 else
11167   echo "$as_me: program exited with status $ac_status" >&5
11168 echo "$as_me: failed program was:" >&5
11169 sed 's/^/| /' conftest.$ac_ext >&5
11170
11171 ( exit $ac_status )
11172 rxvt_cv_path_wtmpx=
11173 fi
11174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11175 fi
11176 fi
11177 echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
11178 echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
11179 if test x$rxvt_cv_path_wtmpx != x; then
11180
11181 cat >>confdefs.h <<_ACEOF
11182 #define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
11183 _ACEOF
11184
11185 fi
11186
11187 echo "$as_me:$LINENO: checking where lastlog is located" >&5
11188 echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
11189 if test "${rxvt_cv_path_lastlog+set}" = set; then
11190   echo $ECHO_N "(cached) $ECHO_C" >&6
11191 else
11192   if test "$cross_compiling" = yes; then
11193     { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5
11194 echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;}
11195 else
11196   cat >conftest.$ac_ext <<_ACEOF
11197 /* confdefs.h.  */
11198 _ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h.  */
11202 #include <stdio.h>
11203 #include <sys/types.h>
11204 #ifdef HAVE_UTMPX_H
11205 #include <utmpx.h>
11206 #elif defined(HAVE_UTMP_H)
11207 #include <utmp.h>
11208 #endif
11209 #ifdef HAVE_LASTLOG_H
11210 #include <lastlog.h>
11211 #endif
11212 #include <errno.h>
11213 main()
11214 {
11215     char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
11216     FILE *a, *f=fopen("conftestval", "w");
11217     if (!f) exit(1);
11218 #ifdef LASTLOG_FILE
11219     fprintf(f, "%s\n", LASTLOG_FILE);
11220     exit(0);
11221 #endif
11222 #ifdef _PATH_LASTLOG
11223     fprintf(f, "%s\n", _PATH_LASTLOG);
11224     exit(0);
11225 #endif
11226     for (w = lastloglist; *w; w++) {
11227         if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11228             fprintf(f, "%s\n", *w);
11229             exit(0);
11230         }
11231     }
11232     exit(0);
11233 }
11234 _ACEOF
11235 rm -f conftest$ac_exeext
11236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11237   (eval $ac_link) 2>&5
11238   ac_status=$?
11239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242   (eval $ac_try) 2>&5
11243   ac_status=$?
11244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245   (exit $ac_status); }; }; then
11246   rxvt_cv_path_lastlog=`cat conftestval`
11247 else
11248   echo "$as_me: program exited with status $ac_status" >&5
11249 echo "$as_me: failed program was:" >&5
11250 sed 's/^/| /' conftest.$ac_ext >&5
11251
11252 ( exit $ac_status )
11253 rxvt_cv_path_lastlog=
11254 fi
11255 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11256 fi
11257 fi
11258 echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
11259 echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
11260 if test x$rxvt_cv_path_lastlog != x; then
11261
11262 cat >>confdefs.h <<_ACEOF
11263 #define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
11264 _ACEOF
11265
11266   if test -d "$rxvt_cv_path_lastlog"; then
11267
11268 cat >>confdefs.h <<\_ACEOF
11269 #define LASTLOG_IS_DIR 1
11270 _ACEOF
11271
11272   fi
11273 fi
11274
11275 echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11276 echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
11277 if test "${rxvt_cv_path_lastlogx+set}" = set; then
11278   echo $ECHO_N "(cached) $ECHO_C" >&6
11279 else
11280   if test "$cross_compiling" = yes; then
11281     { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5
11282 echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;}
11283 else
11284   cat >conftest.$ac_ext <<_ACEOF
11285 /* confdefs.h.  */
11286 _ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h.  */
11290 #include <stdio.h>
11291 #ifdef HAVE_UTMPX_H
11292 #include <utmpx.h>
11293 #endif
11294 #include <errno.h>
11295 main()
11296 {
11297     char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11298     FILE *a, *f=fopen("conftestval", "w");
11299     if (!f) exit(1);
11300 #ifdef LASTLOGX_FILE
11301     fprintf(f, "%s\n", LASTLOGX_FILE);
11302     exit(0);
11303 #endif
11304 #ifdef _PATH_LASTLOGX
11305     fprintf(f, "%s\n", _PATH_LASTLOGX);
11306     exit(0);
11307 #endif
11308     for (w = wtmplist; *w; w++) {
11309         if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11310             fprintf(f, "%s\n", *w);
11311             exit(0);
11312         }
11313     }
11314     exit(0);
11315 }
11316 _ACEOF
11317 rm -f conftest$ac_exeext
11318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11319   (eval $ac_link) 2>&5
11320   ac_status=$?
11321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324   (eval $ac_try) 2>&5
11325   ac_status=$?
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); }; }; then
11328   rxvt_cv_path_lastlogx=`cat conftestval`
11329 else
11330   echo "$as_me: program exited with status $ac_status" >&5
11331 echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.$ac_ext >&5
11333
11334 ( exit $ac_status )
11335 rxvt_cv_path_lastlogx=
11336 fi
11337 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11338 fi
11339 fi
11340 echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
11341 echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
11342 if test x$rxvt_cv_path_lastlogx != x; then
11343
11344 cat >>confdefs.h <<_ACEOF
11345 #define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
11346 _ACEOF
11347
11348 fi
11349
11350
11351 echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11352 echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
11353 if test "${rxvt_cv_path_ttytab+set}" = set; then
11354   echo $ECHO_N "(cached) $ECHO_C" >&6
11355 else
11356   for ttys_file in     /etc/ttys /etc/ttytab;
11357 do
11358   if test -f "$ttys_file" ; then
11359     rxvt_cv_path_ttytab=$ttys_file
11360     break
11361   fi
11362 done
11363
11364 fi
11365 echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11366 echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
11367 if test x$rxvt_cv_path_ttytab != x; then
11368
11369 cat >>confdefs.h <<_ACEOF
11370 #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11371 _ACEOF
11372
11373 fi
11374
11375
11376 ac_save_LIBS=$LIBS
11377 ac_save_CFLAGS=$CFLAGS
11378 CFLAGS="$CFLAGS $X_CFLAGS"
11379 LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11380 if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
11381   LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11382 fi
11383 echo "$as_me:$LINENO: checking for working Xlocale" >&5
11384 echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
11385 if test "${rxvt_cv_func_xlocale+set}" = set; then
11386   echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388   if test "$cross_compiling" = yes; then
11389     { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5
11390 echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
11391 else
11392   cat >conftest.$ac_ext <<_ACEOF
11393 /* confdefs.h.  */
11394 _ACEOF
11395 cat confdefs.h >>conftest.$ac_ext
11396 cat >>conftest.$ac_ext <<_ACEOF
11397 /* end confdefs.h.  */
11398 #include <X11/Xlib.h>
11399 main() {
11400 char *p;
11401 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11402 exit (XSupportsLocale() ? 0 : 1);
11403 else
11404 exit (1);}
11405 _ACEOF
11406 rm -f conftest$ac_exeext
11407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11408   (eval $ac_link) 2>&5
11409   ac_status=$?
11410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413   (eval $ac_try) 2>&5
11414   ac_status=$?
11415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416   (exit $ac_status); }; }; then
11417     rxvt_cv_func_xlocale=yes
11418 else
11419   echo "$as_me: program exited with status $ac_status" >&5
11420 echo "$as_me: failed program was:" >&5
11421 sed 's/^/| /' conftest.$ac_ext >&5
11422
11423 ( exit $ac_status )
11424 rxvt_cv_func_xlocale=no
11425 fi
11426 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11427 fi
11428 fi
11429 echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11430 echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
11431 if test x$rxvt_cv_func_xlocale = xyes; then
11432
11433 cat >>confdefs.h <<\_ACEOF
11434 #define HAVE_XLOCALE 1
11435 _ACEOF
11436
11437 fi
11438
11439 echo "$as_me:$LINENO: checking for working X setlocale" >&5
11440 echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6
11441 if test "${rxvt_cv_func_xsetlocale+set}" = set; then
11442   echo $ECHO_N "(cached) $ECHO_C" >&6
11443 else
11444   cat >conftest.$ac_ext <<_ACEOF
11445 /* confdefs.h.  */
11446 _ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h.  */
11450 #define X_LOCALE 1
11451 #include <X11/Xlocale.h>
11452 int
11453 main ()
11454 {
11455 setlocale(LC_CTYPE, "");
11456   ;
11457   return 0;
11458 }
11459 _ACEOF
11460 rm -f conftest.$ac_objext conftest$ac_exeext
11461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11462   (eval $ac_link) 2>conftest.er1
11463   ac_status=$?
11464   grep -v '^ *+' conftest.er1 >conftest.err
11465   rm -f conftest.er1
11466   cat conftest.err >&5
11467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468   (exit $ac_status); } &&
11469          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471   (eval $ac_try) 2>&5
11472   ac_status=$?
11473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474   (exit $ac_status); }; } &&
11475          { ac_try='test -s conftest$ac_exeext'
11476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477   (eval $ac_try) 2>&5
11478   ac_status=$?
11479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480   (exit $ac_status); }; }; then
11481   rxvt_cv_func_xsetlocale=yes
11482 else
11483   echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11485
11486 rxvt_cv_func_xsetlocale=no
11487 fi
11488 rm -f conftest.err conftest.$ac_objext \
11489       conftest$ac_exeext conftest.$ac_ext
11490 fi
11491 echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
11492 echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6
11493 if test x$rxvt_cv_func_xsetlocale = xyes; then
11494
11495 cat >>confdefs.h <<\_ACEOF
11496 #define HAVE_XSETLOCALE 1
11497 _ACEOF
11498
11499 fi
11500 LIBS=$ac_save_LIBS
11501 CFLAGS=$ac_save_CFLAGS
11502
11503 echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11504 echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6
11505 if test "${rxvt_cv_func_setlocale+set}" = set; then
11506   echo $ECHO_N "(cached) $ECHO_C" >&6
11507 else
11508   cat >conftest.$ac_ext <<_ACEOF
11509 /* confdefs.h.  */
11510 _ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h.  */
11514 #include <clocale>
11515 int
11516 main ()
11517 {
11518 setlocale(LC_CTYPE, "");
11519   ;
11520   return 0;
11521 }
11522 _ACEOF
11523 rm -f conftest.$ac_objext conftest$ac_exeext
11524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11525   (eval $ac_link) 2>conftest.er1
11526   ac_status=$?
11527   grep -v '^ *+' conftest.er1 >conftest.err
11528   rm -f conftest.er1
11529   cat conftest.err >&5
11530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531   (exit $ac_status); } &&
11532          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11534   (eval $ac_try) 2>&5
11535   ac_status=$?
11536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537   (exit $ac_status); }; } &&
11538          { ac_try='test -s conftest$ac_exeext'
11539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540   (eval $ac_try) 2>&5
11541   ac_status=$?
11542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543   (exit $ac_status); }; }; then
11544   rxvt_cv_func_setlocale=yes
11545 else
11546   echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11548
11549 rxvt_cv_func_setlocale=no
11550 fi
11551 rm -f conftest.err conftest.$ac_objext \
11552       conftest$ac_exeext conftest.$ac_ext
11553 fi
11554 echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
11555 echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
11556 if test x$rxvt_cv_func_setlocale = xyes; then
11557
11558 cat >>confdefs.h <<\_ACEOF
11559 #define HAVE_SETLOCALE 1
11560 _ACEOF
11561
11562 fi
11563
11564 echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
11565 echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6
11566 if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
11567   echo $ECHO_N "(cached) $ECHO_C" >&6
11568 else
11569   cat >conftest.$ac_ext <<_ACEOF
11570 /* confdefs.h.  */
11571 _ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h.  */
11575 #include <langinfo.h>
11576 int
11577 main ()
11578 {
11579 nl_langinfo(CODESET);
11580   ;
11581   return 0;
11582 }
11583 _ACEOF
11584 rm -f conftest.$ac_objext conftest$ac_exeext
11585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11586   (eval $ac_link) 2>conftest.er1
11587   ac_status=$?
11588   grep -v '^ *+' conftest.er1 >conftest.err
11589   rm -f conftest.er1
11590   cat conftest.err >&5
11591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592   (exit $ac_status); } &&
11593          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595   (eval $ac_try) 2>&5
11596   ac_status=$?
11597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598   (exit $ac_status); }; } &&
11599          { ac_try='test -s conftest$ac_exeext'
11600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601   (eval $ac_try) 2>&5
11602   ac_status=$?
11603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604   (exit $ac_status); }; }; then
11605   rxvt_cv_func_nl_langinfo=yes
11606 else
11607   echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11609
11610 rxvt_cv_func_nl_langinfo=no
11611 fi
11612 rm -f conftest.err conftest.$ac_objext \
11613       conftest$ac_exeext conftest.$ac_ext
11614 fi
11615 echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
11616 echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6
11617 if test x$rxvt_cv_func_nl_langinfo = xyes; then
11618
11619 cat >>confdefs.h <<\_ACEOF
11620 #define HAVE_NL_LANGINFO 1
11621 _ACEOF
11622
11623 fi
11624
11625 echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
11626 echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11627 if test "${rxvt_can_pass_fds+set}" = set; then
11628   echo $ECHO_N "(cached) $ECHO_C" >&6
11629 else
11630   cat >conftest.$ac_ext <<_ACEOF
11631 /* confdefs.h.  */
11632 _ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h.  */
11636
11637 #include <sys/types.h>
11638 #include <sys/socket.h>
11639
11640 int
11641 main ()
11642 {
11643
11644 {
11645   msghdr msg;
11646   iovec iov;
11647   char buf [100];
11648   char data = 0;
11649
11650   iov.iov_base = &data;
11651   iov.iov_len  = 1;
11652
11653   msg.msg_iov        = &iov;
11654   msg.msg_iovlen     = 1;
11655   msg.msg_control    = buf;
11656   msg.msg_controllen = sizeof buf;
11657
11658   cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11659   cmsg->cmsg_level = SOL_SOCKET;
11660   cmsg->cmsg_type  = SCM_RIGHTS;
11661   cmsg->cmsg_len   = 100;
11662
11663   *(int *)CMSG_DATA (cmsg) = 5;
11664
11665   return sendmsg (3, &msg, 0);
11666 }
11667
11668   ;
11669   return 0;
11670 }
11671 _ACEOF
11672 rm -f conftest.$ac_objext conftest$ac_exeext
11673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11674   (eval $ac_link) 2>conftest.er1
11675   ac_status=$?
11676   grep -v '^ *+' conftest.er1 >conftest.err
11677   rm -f conftest.er1
11678   cat conftest.err >&5
11679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680   (exit $ac_status); } &&
11681          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11683   (eval $ac_try) 2>&5
11684   ac_status=$?
11685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686   (exit $ac_status); }; } &&
11687          { ac_try='test -s conftest$ac_exeext'
11688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11689   (eval $ac_try) 2>&5
11690   ac_status=$?
11691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692   (exit $ac_status); }; }; then
11693   rxvt_can_pass_fds=yes
11694 else
11695   echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11697
11698 rxvt_can_pass_fds=no
11699 fi
11700 rm -f conftest.err conftest.$ac_objext \
11701       conftest$ac_exeext conftest.$ac_ext
11702 fi
11703 echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5
11704 echo "${ECHO_T}$rxvt_can_pass_fds" >&6
11705 if test x$rxvt_can_pass_fds = xyes; then
11706
11707 cat >>confdefs.h <<\_ACEOF
11708 #define HAVE_UNIX_FDPASS 1
11709 _ACEOF
11710
11711 fi
11712
11713 echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11714 echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11715 if test "${rxvt_broken_ximcb+set}" = set; then
11716   echo $ECHO_N "(cached) $ECHO_C" >&6
11717 else
11718   cat >conftest.$ac_ext <<_ACEOF
11719
11720 #include <X11/Xlib.h>
11721
11722 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11723
11724 void f() {
11725   XIMCallback cb;
11726   cb.callback = im_destroy_cb;
11727 }
11728
11729 _ACEOF
11730 rm -f conftest.$ac_objext
11731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11732   (eval $ac_compile) 2>conftest.er1
11733   ac_status=$?
11734   grep -v '^ *+' conftest.er1 >conftest.err
11735   rm -f conftest.er1
11736   cat conftest.err >&5
11737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738   (exit $ac_status); } &&
11739          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741   (eval $ac_try) 2>&5
11742   ac_status=$?
11743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744   (exit $ac_status); }; } &&
11745          { ac_try='test -s conftest.$ac_objext'
11746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747   (eval $ac_try) 2>&5
11748   ac_status=$?
11749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750   (exit $ac_status); }; }; then
11751   rxvt_broken_ximcb=yes
11752 else
11753   echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11755
11756 rxvt_broken_ximcb=no
11757 fi
11758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11759 fi
11760 echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
11761 echo "${ECHO_T}$rxvt_broken_ximcb" >&6
11762
11763 if test x$rxvt_broken_ximcb = xyes; then
11764
11765 cat >>confdefs.h <<\_ACEOF
11766 #define XIMCB_PROTO_BROKEN 1
11767 _ACEOF
11768
11769 fi
11770
11771 echo "$as_me:$LINENO: checking for getpt" >&5
11772 echo $ECHO_N "checking for getpt... $ECHO_C" >&6
11773 if test "${rxvt_cv_func_getpt+set}" = set; then
11774   echo $ECHO_N "(cached) $ECHO_C" >&6
11775 else
11776   cat >conftest.$ac_ext <<_ACEOF
11777 /* confdefs.h.  */
11778 _ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h.  */
11782 #define _GNU_SOURCE
11783 #ifdef HAVE_STDLIB_H
11784 # include <cstdlib>
11785 #endif
11786 int
11787 main ()
11788 {
11789 (void)getpt();
11790   ;
11791   return 0;
11792 }
11793 _ACEOF
11794 rm -f conftest.$ac_objext conftest$ac_exeext
11795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11796   (eval $ac_link) 2>conftest.er1
11797   ac_status=$?
11798   grep -v '^ *+' conftest.er1 >conftest.err
11799   rm -f conftest.er1
11800   cat conftest.err >&5
11801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802   (exit $ac_status); } &&
11803          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805   (eval $ac_try) 2>&5
11806   ac_status=$?
11807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808   (exit $ac_status); }; } &&
11809          { ac_try='test -s conftest$ac_exeext'
11810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11811   (eval $ac_try) 2>&5
11812   ac_status=$?
11813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); }; }; then
11815   rxvt_cv_func_getpt=yes
11816 else
11817   echo "$as_me: failed program was:" >&5
11818 sed 's/^/| /' conftest.$ac_ext >&5
11819
11820 rxvt_cv_func_getpt=no
11821 fi
11822 rm -f conftest.err conftest.$ac_objext \
11823       conftest$ac_exeext conftest.$ac_ext
11824 fi
11825 echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
11826 echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
11827 if test x$rxvt_cv_func_getpt = xyes; then
11828
11829 cat >>confdefs.h <<\_ACEOF
11830 #define HAVE_GETPT 1
11831 _ACEOF
11832
11833 fi
11834
11835 echo "$as_me:$LINENO: checking for pty/tty type" >&5
11836 echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
11837 if test "${rxvt_cv_ptys+set}" = set; then
11838   echo $ECHO_N "(cached) $ECHO_C" >&6
11839 else
11840   if test x$ac_cv_func_openpty = xyes; then
11841     rxvt_cv_ptys=OPENPTY
11842  else if test x$ac_cv_func__getpty = xyes; then
11843     rxvt_cv_ptys=SGI4
11844  else if test -c /dev/ttyp20; then
11845     rxvt_cv_ptys=SCO
11846  else if test -c /dev/ptym/clone; then
11847     rxvt_cv_ptys=HPUX
11848  else if test x$rxvt_cv_func_getpt = xyes; then
11849     rxvt_cv_ptys=GLIBC
11850  else if test -c /dev/ptc -a -c /dev/pts; then
11851     rxvt_cv_ptys=PTC
11852  else if test -c /dev/ptc -a -d /dev/pts; then
11853     rxvt_cv_ptys=PTC
11854  else if test -c /dev/ptmx -a -c /dev/pts/0; then
11855     rxvt_cv_ptys=STREAMS
11856  else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
11857     rxvt_cv_ptys=STREAMS
11858  else
11859     rxvt_cv_ptys=BSD
11860 fi
11861 fi
11862 fi
11863 fi
11864 fi
11865 fi
11866 fi
11867 fi
11868 fi
11869
11870 fi
11871 echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
11872 echo "${ECHO_T}$rxvt_cv_ptys" >&6
11873
11874 if test x$rxvt_cv_ptys = xOPENPTY; then
11875
11876 cat >>confdefs.h <<\_ACEOF
11877 #define PTYS_ARE_OPENPTY 1
11878 _ACEOF
11879
11880 fi
11881 if test x$rxvt_cv_ptys = xSCO; then
11882
11883 cat >>confdefs.h <<\_ACEOF
11884 #define PTYS_ARE_NUMERIC 1
11885 _ACEOF
11886
11887 fi
11888 if test x$rxvt_cv_ptys = xSTREAMS; then
11889
11890 cat >>confdefs.h <<\_ACEOF
11891 #define PTYS_ARE_PTMX 1
11892 _ACEOF
11893
11894 fi
11895 if test x$rxvt_cv_ptys = xPTC; then
11896
11897 cat >>confdefs.h <<\_ACEOF
11898 #define PTYS_ARE_PTC 1
11899 _ACEOF
11900
11901 fi
11902 if test x$rxvt_cv_ptys = xSGI4; then
11903
11904 cat >>confdefs.h <<\_ACEOF
11905 #define PTYS_ARE__GETPTY 1
11906 _ACEOF
11907
11908 fi
11909 if test x$rxvt_cv_ptys = xCONVEX; then
11910
11911 cat >>confdefs.h <<\_ACEOF
11912 #define PTYS_ARE_GETPTY 1
11913 _ACEOF
11914
11915 fi
11916 if test x$rxvt_cv_ptys = xGLIBC; then
11917
11918 cat >>confdefs.h <<\_ACEOF
11919 #define PTYS_ARE_GETPT 1
11920 _ACEOF
11921
11922 fi
11923 if test x$rxvt_cv_ptys = xHPUX; then
11924
11925 cat >>confdefs.h <<\_ACEOF
11926 #define PTYS_ARE_CLONE 1
11927 _ACEOF
11928
11929 fi
11930 if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
11931
11932 cat >>confdefs.h <<\_ACEOF
11933 #define PTYS_ARE_SEARCHED 1
11934 _ACEOF
11935
11936 fi
11937
11938
11939 { echo "$as_me:$LINENO: checking for pty ranges..." >&5
11940 echo "$as_me: checking for pty ranges..." >&6;}
11941 ptys=`echo /dev/pty??`
11942 pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
11943 pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
11944 if test x$pch1 != x; then
11945
11946 cat >>confdefs.h <<_ACEOF
11947 #define PTYCHAR1 "$pch1"
11948 _ACEOF
11949
11950 fi
11951 if test x$pch2 != x; then
11952
11953 cat >>confdefs.h <<_ACEOF
11954 #define PTYCHAR2 "$pch2"
11955 _ACEOF
11956
11957 fi
11958
11959 if test x$support_xft = xyes; then
11960   LIBS="$LIBS `pkg-config xft --libs`"
11961   CFLAGS="$CFLAGS `pkg-config xft --cflags`"
11962   CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
11963
11964
11965 for ac_header in X11/Xft/Xft.h
11966 do
11967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11969   echo "$as_me:$LINENO: checking for $ac_header" >&5
11970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11972   echo $ECHO_N "(cached) $ECHO_C" >&6
11973 fi
11974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11976 else
11977   # Is the header compilable?
11978 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11980 cat >conftest.$ac_ext <<_ACEOF
11981 /* confdefs.h.  */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h.  */
11986 $ac_includes_default
11987 #include <$ac_header>
11988 _ACEOF
11989 rm -f conftest.$ac_objext
11990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11991   (eval $ac_compile) 2>conftest.er1
11992   ac_status=$?
11993   grep -v '^ *+' conftest.er1 >conftest.err
11994   rm -f conftest.er1
11995   cat conftest.err >&5
11996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997   (exit $ac_status); } &&
11998          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000   (eval $ac_try) 2>&5
12001   ac_status=$?
12002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003   (exit $ac_status); }; } &&
12004          { ac_try='test -s conftest.$ac_objext'
12005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006   (eval $ac_try) 2>&5
12007   ac_status=$?
12008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009   (exit $ac_status); }; }; then
12010   ac_header_compiler=yes
12011 else
12012   echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12014
12015 ac_header_compiler=no
12016 fi
12017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12018 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12019 echo "${ECHO_T}$ac_header_compiler" >&6
12020
12021 # Is the header present?
12022 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12024 cat >conftest.$ac_ext <<_ACEOF
12025 /* confdefs.h.  */
12026 _ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h.  */
12030 #include <$ac_header>
12031 _ACEOF
12032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12033   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12034   ac_status=$?
12035   grep -v '^ *+' conftest.er1 >conftest.err
12036   rm -f conftest.er1
12037   cat conftest.err >&5
12038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039   (exit $ac_status); } >/dev/null; then
12040   if test -s conftest.err; then
12041     ac_cpp_err=$ac_cxx_preproc_warn_flag
12042     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12043   else
12044     ac_cpp_err=
12045   fi
12046 else
12047   ac_cpp_err=yes
12048 fi
12049 if test -z "$ac_cpp_err"; then
12050   ac_header_preproc=yes
12051 else
12052   echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12054
12055   ac_header_preproc=no
12056 fi
12057 rm -f conftest.err conftest.$ac_ext
12058 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12059 echo "${ECHO_T}$ac_header_preproc" >&6
12060
12061 # So?  What about this header?
12062 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12063   yes:no: )
12064     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12068     ac_header_preproc=yes
12069     ;;
12070   no:yes:* )
12071     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12073     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12074 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12075     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12076 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12077     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12078 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12079     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12081     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12082 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12083     (
12084       cat <<\_ASBOX
12085 ## ------------------------------------------ ##
12086 ## Report this to the AC_PACKAGE_NAME lists.  ##
12087 ## ------------------------------------------ ##
12088 _ASBOX
12089     ) |
12090       sed "s/^/$as_me: WARNING:     /" >&2
12091     ;;
12092 esac
12093 echo "$as_me:$LINENO: checking for $ac_header" >&5
12094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12096   echo $ECHO_N "(cached) $ECHO_C" >&6
12097 else
12098   eval "$as_ac_Header=\$ac_header_preproc"
12099 fi
12100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12102
12103 fi
12104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12105   cat >>confdefs.h <<_ACEOF
12106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12107 _ACEOF
12108
12109 else
12110   support_xft=no
12111 fi
12112
12113 done
12114
12115
12116 echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12117 echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
12118 if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12119   echo $ECHO_N "(cached) $ECHO_C" >&6
12120 else
12121   ac_check_lib_save_LIBS=$LIBS
12122 LIBS="-lXft  $LIBS"
12123 cat >conftest.$ac_ext <<_ACEOF
12124 /* confdefs.h.  */
12125 _ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h.  */
12129
12130 /* Override any gcc2 internal prototype to avoid an error.  */
12131 #ifdef __cplusplus
12132 extern "C"
12133 #endif
12134 /* We use char because int might match the return type of a gcc2
12135    builtin and then its argument prototype would still apply.  */
12136 char XftDrawString32 ();
12137 int
12138 main ()
12139 {
12140 XftDrawString32 ();
12141   ;
12142   return 0;
12143 }
12144 _ACEOF
12145 rm -f conftest.$ac_objext conftest$ac_exeext
12146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12147   (eval $ac_link) 2>conftest.er1
12148   ac_status=$?
12149   grep -v '^ *+' conftest.er1 >conftest.err
12150   rm -f conftest.er1
12151   cat conftest.err >&5
12152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153   (exit $ac_status); } &&
12154          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156   (eval $ac_try) 2>&5
12157   ac_status=$?
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); }; } &&
12160          { ac_try='test -s conftest$ac_exeext'
12161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162   (eval $ac_try) 2>&5
12163   ac_status=$?
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); }; }; then
12166   ac_cv_lib_Xft_XftDrawString32=yes
12167 else
12168   echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12170
12171 ac_cv_lib_Xft_XftDrawString32=no
12172 fi
12173 rm -f conftest.err conftest.$ac_objext \
12174       conftest$ac_exeext conftest.$ac_ext
12175 LIBS=$ac_check_lib_save_LIBS
12176 fi
12177 echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
12178 echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
12179 if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
12180   cat >>confdefs.h <<_ACEOF
12181 #define HAVE_LIBXFT 1
12182 _ACEOF
12183
12184   LIBS="-lXft $LIBS"
12185
12186 else
12187   support_xft=no
12188 fi
12189
12190
12191   if test x$support_xft = xyes; then
12192
12193 cat >>confdefs.h <<\_ACEOF
12194 #define XFT 1
12195 _ACEOF
12196
12197   fi
12198 fi
12199 if test x$support_styles = xyes; then
12200
12201 cat >>confdefs.h <<\_ACEOF
12202 #define ENABLE_STYLES 1
12203 _ACEOF
12204
12205 fi
12206 if test x$support_iso14755 = xyes; then
12207
12208 cat >>confdefs.h <<\_ACEOF
12209 #define ISO_14755 1
12210 _ACEOF
12211
12212 fi
12213 if test x$support_8bitctrls = xyes; then
12214
12215 cat >>confdefs.h <<\_ACEOF
12216 #define EIGHT_BIT_CONTROLS 1
12217 _ACEOF
12218
12219 fi
12220 if test x$support_fading = xyes; then
12221
12222 cat >>confdefs.h <<\_ACEOF
12223 #define OFF_FOCUS_FADING 1
12224 _ACEOF
12225
12226 fi
12227 if test x$support_tinting = xyes; then
12228
12229 cat >>confdefs.h <<\_ACEOF
12230 #define TINTING 1
12231 _ACEOF
12232
12233 fi
12234 if test x$support_inheritpixmap = xyes; then
12235
12236 cat >>confdefs.h <<\_ACEOF
12237 #define TRANSPARENT 1
12238 _ACEOF
12239
12240 fi
12241 if test x$support_keepscrolling = xno; then
12242
12243 cat >>confdefs.h <<\_ACEOF
12244 #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12245 _ACEOF
12246
12247 fi
12248 if test x$support_selectionscrolling = xyes; then
12249
12250 cat >>confdefs.h <<\_ACEOF
12251 #define SELECTION_SCROLLING 1
12252 _ACEOF
12253
12254 fi
12255 if test x$support_menubar = xyes; then
12256
12257 cat >>confdefs.h <<\_ACEOF
12258 #define MENUBAR 1
12259 _ACEOF
12260
12261 fi
12262 if test x$support_frills = xyes; then
12263
12264 cat >>confdefs.h <<\_ACEOF
12265 #define ENABLE_FRILLS 1
12266 _ACEOF
12267
12268 fi
12269 if test x$support_24bit = xyes; then
12270
12271 cat >>confdefs.h <<\_ACEOF
12272 #define PREFER_24BIT 1
12273 _ACEOF
12274
12275 fi
12276 if test x$support_mousewheel = xyes; then
12277
12278 cat >>confdefs.h <<\_ACEOF
12279 #define MOUSE_WHEEL 1
12280 _ACEOF
12281
12282 fi
12283 if test x$support_mouseslipwheel = xyes; then
12284
12285 cat >>confdefs.h <<\_ACEOF
12286 #define MOUSE_SLIP_WHEELING 1
12287 _ACEOF
12288
12289 fi
12290 if test x$support_utmp = xyes; then
12291
12292 cat >>confdefs.h <<\_ACEOF
12293 #define UTMP_SUPPORT 1
12294 _ACEOF
12295
12296 fi
12297 if test x$support_wtmp = xyes; then
12298
12299 cat >>confdefs.h <<\_ACEOF
12300 #define WTMP_SUPPORT 1
12301 _ACEOF
12302
12303 fi
12304 if test x$support_lastlog = xyes; then
12305
12306 cat >>confdefs.h <<\_ACEOF
12307 #define LASTLOG_SUPPORT 1
12308 _ACEOF
12309
12310 fi
12311 if test x$support_xim = xyes -o x$multichar_set = xyes; then
12312   if test x$rxvt_cv_func_xlocale = xyes; then
12313
12314 cat >>confdefs.h <<\_ACEOF
12315 #define USE_XIM 1
12316 _ACEOF
12317
12318   fi
12319 fi
12320 if test x$support_xpm = xyes; then
12321
12322 cat >>confdefs.h <<\_ACEOF
12323 #define XPM_BACKGROUND 1
12324 _ACEOF
12325
12326 fi
12327 if test x$support_scroll_rxvt = xyes; then
12328
12329 cat >>confdefs.h <<\_ACEOF
12330 #define RXVT_SCROLLBAR 1
12331 _ACEOF
12332
12333   scrolltypes="rxvt"
12334 fi
12335 if test x$support_scroll_next = xyes; then
12336
12337 cat >>confdefs.h <<\_ACEOF
12338 #define NEXT_SCROLLBAR 1
12339 _ACEOF
12340
12341   scrolltypes="$scrolltypes next"
12342 fi
12343 if test x$support_scroll_xterm = xyes; then
12344
12345 cat >>confdefs.h <<\_ACEOF
12346 #define XTERM_SCROLLBAR 1
12347 _ACEOF
12348
12349   scrolltypes="$scrolltypes xterm"
12350 fi
12351 if test x$support_scroll_plain = xyes; then
12352
12353 cat >>confdefs.h <<\_ACEOF
12354 #define PLAIN_SCROLLBAR 1
12355 _ACEOF
12356
12357   scrolltypes="$scrolltypes plain"
12358 fi
12359 if test x$support_pointer_blank = xyes; then
12360
12361 cat >>confdefs.h <<\_ACEOF
12362 #define POINTER_BLANK 1
12363 _ACEOF
12364
12365 fi
12366 if test x$support_text_blink = xyes; then
12367
12368 cat >>confdefs.h <<\_ACEOF
12369 #define TEXT_BLINK 1
12370 _ACEOF
12371
12372 fi
12373 if test x$support_unicode3 = xyes; then
12374
12375 cat >>confdefs.h <<\_ACEOF
12376 #define UNICODE_3 1
12377 _ACEOF
12378
12379 fi
12380 if test x$support_combining = xyes; then
12381
12382 cat >>confdefs.h <<\_ACEOF
12383 #define ENABLE_COMBINING 1
12384 _ACEOF
12385
12386 fi
12387 if test x$codesets = xall; then
12388   codesets=jp,jp-ext,kr,zh,zh-ext
12389 fi
12390
12391 cat >>confdefs.h <<\_ACEOF
12392 #define ENCODING_EU 1
12393 _ACEOF
12394
12395
12396 cat >>confdefs.h <<\_ACEOF
12397 #define ENCODING_VN 1
12398 _ACEOF
12399
12400 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
12401   case "$codeset" in
12402     JP     )
12403 cat >>confdefs.h <<\_ACEOF
12404 #define ENCODING_JP 1
12405 _ACEOF
12406  ;;
12407     JP_EXT )
12408 cat >>confdefs.h <<\_ACEOF
12409 #define ENCODING_JP_EXT 1
12410 _ACEOF
12411  ;;
12412     KR     )
12413 cat >>confdefs.h <<\_ACEOF
12414 #define ENCODING_KR 1
12415 _ACEOF
12416  ;;
12417     ZH     )
12418 cat >>confdefs.h <<\_ACEOF
12419 #define ENCODING_ZH 1
12420 _ACEOF
12421  ;;
12422     ZH_EXT )
12423 cat >>confdefs.h <<\_ACEOF
12424 #define ENCODING_ZH_EXT 1
12425 _ACEOF
12426  ;;
12427   esac
12428 done
12429
12430
12431 CFLAGS=${CFLAGS--O}
12432 LDFLAGS=${LDFLAGS--O}
12433
12434 CPPFLAGS="$CPPFLAGS"
12435
12436
12437
12438
12439
12440
12441
12442 if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
12443   DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
12444   LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
12445   X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
12446   X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
12447   XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
12448 fi
12449
12450
12451
12452
12453
12454 if test x$support_addstrings = xno; then
12455
12456 cat >>confdefs.h <<\_ACEOF
12457 #define NO_STRINGS 1
12458 _ACEOF
12459
12460 fi
12461
12462 MCOMMON=./autoconf/Make.common
12463
12464
12465 test "$program_prefix" != NONE &&
12466   program_transform_name="s,^,$program_prefix,;$program_transform_name"
12467 # Use a double $ so make ignores it.
12468 test "$program_suffix" != NONE &&
12469   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
12470 # Double any \ or $.  echo might interpret backslashes.
12471 # By default was `s,x,x', remove it if useless.
12472 cat <<\_ACEOF >conftest.sed
12473 s/[\\$]/&&/g;s/;s,x,x,$//
12474 _ACEOF
12475 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
12476 rm conftest.sed
12477
12478
12479
12480
12481
12482 if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
12483   include_stdint_h="#include <stdint.h>"
12484 else
12485   include_stdint_h="/* #include <stdint.h> */"
12486 fi
12487 if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
12488   include_stdarg_h="#include <cstdarg>"
12489 else
12490   include_stdarg_h="/* #include <cstdarg> */"
12491 fi
12492 if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
12493   include_stdlib_h="#include <cstdlib>"
12494 else
12495   include_stdlib_h="/* #include <cstdlib> */"
12496 fi
12497 if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
12498   include_unistd_h="#include <unistd.h>"
12499 else
12500   include_unistd_h="/* #include <unistd.h> */"
12501 fi
12502 if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
12503   include_string_h="#include <cstring>"
12504 else
12505   include_string_h="/* #include <cstring> */"
12506 fi
12507 if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
12508   include_fcntl_h="#include <fcntl.h>"
12509 else
12510   include_fcntl_h="/* #include <fcntl.h> */"
12511 fi
12512 if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
12513   include_util_h="#include <util.h>"
12514 else
12515   include_util_h="/* #include <util.h> */"
12516 fi
12517 if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
12518   include_assert_h="#include <assert.h>"
12519 else
12520   include_assert_h="/* #include <assert.h> */"
12521 fi
12522 if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
12523   include_sys_ioctl_h="#include <sys/ioctl.h>"
12524 else
12525   include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
12526 fi
12527 if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
12528   include_sys_select_h="#include <sys/select.h>"
12529 else
12530   include_sys_select_h="/* #include <sys/select.h> */"
12531 fi
12532 if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
12533   include_sys_strredir_h="#include <sys/strredir.h>"
12534 else
12535   include_sys_strredir_h="/* #include <sys/strredir.h> */"
12536 fi
12537 if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
12538   include_sys_time_h="#include <sys/time.h>"
12539 else
12540   include_sys_time_h="/* #include <sys/time.h> */"
12541 fi
12542 if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
12543   include_time_h="#include <time.h>"
12544 else
12545   include_time_h="/* #include <time.h> */"
12546 fi
12547
12548                                                   ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/rxvtlib.h"
12549
12550 cat >confcache <<\_ACEOF
12551 # This file is a shell script that caches the results of configure
12552 # tests run on this system so they can be shared between configure
12553 # scripts and configure runs, see configure's option --config-cache.
12554 # It is not useful on other systems.  If it contains results you don't
12555 # want to keep, you may remove or edit it.
12556 #
12557 # config.status only pays attention to the cache file if you give it
12558 # the --recheck option to rerun configure.
12559 #
12560 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12561 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12562 # following values.
12563
12564 _ACEOF
12565
12566 # The following way of writing the cache mishandles newlines in values,
12567 # but we know of no workaround that is simple, portable, and efficient.
12568 # So, don't put newlines in cache variables' values.
12569 # Ultrix sh set writes to stderr and can't be redirected directly,
12570 # and sets the high bit in the cache file unless we assign to the vars.
12571 {
12572   (set) 2>&1 |
12573     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12574     *ac_space=\ *)
12575       # `set' does not quote correctly, so add quotes (double-quote
12576       # substitution turns \\\\ into \\, and sed turns \\ into \).
12577       sed -n \
12578         "s/'/'\\\\''/g;
12579           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12580       ;;
12581     *)
12582       # `set' quotes correctly as required by POSIX, so do not add quotes.
12583       sed -n \
12584         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12585       ;;
12586     esac;
12587 } |
12588   sed '
12589      t clear
12590      : clear
12591      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12592      t end
12593      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12594      : end' >>confcache
12595 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12596   if test -w $cache_file; then
12597     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12598     cat confcache >$cache_file
12599   else
12600     echo "not updating unwritable cache $cache_file"
12601   fi
12602 fi
12603 rm -f confcache
12604
12605 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12606 # Let make expand exec_prefix.
12607 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12608
12609 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12610 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12611 # trailing colons and then remove the whole line if VPATH becomes empty
12612 # (actually we leave an empty line to preserve line numbers).
12613 if test "x$srcdir" = x.; then
12614   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12615 s/:*\$(srcdir):*/:/;
12616 s/:*\${srcdir}:*/:/;
12617 s/:*@srcdir@:*/:/;
12618 s/^\([^=]*=[     ]*\):*/\1/;
12619 s/:*$//;
12620 s/^[^=]*=[       ]*$//;
12621 }'
12622 fi
12623
12624 DEFS=-DHAVE_CONFIG_H
12625
12626 ac_libobjs=
12627 ac_ltlibobjs=
12628 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12629   # 1. Remove the extension, and $U if already installed.
12630   ac_i=`echo "$ac_i" |
12631          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12632   # 2. Add them.
12633   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12634   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12635 done
12636 LIBOBJS=$ac_libobjs
12637
12638 LTLIBOBJS=$ac_ltlibobjs
12639
12640
12641
12642 : ${CONFIG_STATUS=./config.status}
12643 ac_clean_files_save=$ac_clean_files
12644 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12645 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12646 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12647 cat >$CONFIG_STATUS <<_ACEOF
12648 #! $SHELL
12649 # Generated by $as_me.
12650 # Run this file to recreate the current configuration.
12651 # Compiler output produced by configure, useful for debugging
12652 # configure, is in config.log if it exists.
12653
12654 debug=false
12655 ac_cs_recheck=false
12656 ac_cs_silent=false
12657 SHELL=\${CONFIG_SHELL-$SHELL}
12658 _ACEOF
12659
12660 cat >>$CONFIG_STATUS <<\_ACEOF
12661 ## --------------------- ##
12662 ## M4sh Initialization.  ##
12663 ## --------------------- ##
12664
12665 # Be Bourne compatible
12666 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12667   emulate sh
12668   NULLCMD=:
12669   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12670   # is contrary to our usage.  Disable this feature.
12671   alias -g '${1+"$@"}'='"$@"'
12672 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12673   set -o posix
12674 fi
12675 DUALCASE=1; export DUALCASE # for MKS sh
12676
12677 # Support unset when possible.
12678 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12679   as_unset=unset
12680 else
12681   as_unset=false
12682 fi
12683
12684
12685 # Work around bugs in pre-3.0 UWIN ksh.
12686 $as_unset ENV MAIL MAILPATH
12687 PS1='$ '
12688 PS2='> '
12689 PS4='+ '
12690
12691 # NLS nuisances.
12692 for as_var in \
12693   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12694   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12695   LC_TELEPHONE LC_TIME
12696 do
12697   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12698     eval $as_var=C; export $as_var
12699   else
12700     $as_unset $as_var
12701   fi
12702 done
12703
12704 # Required to use basename.
12705 if expr a : '\(a\)' >/dev/null 2>&1; then
12706   as_expr=expr
12707 else
12708   as_expr=false
12709 fi
12710
12711 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12712   as_basename=basename
12713 else
12714   as_basename=false
12715 fi
12716
12717
12718 # Name of the executable.
12719 as_me=`$as_basename "$0" ||
12720 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12721          X"$0" : 'X\(//\)$' \| \
12722          X"$0" : 'X\(/\)$' \| \
12723          .     : '\(.\)' 2>/dev/null ||
12724 echo X/"$0" |
12725     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12726           /^X\/\(\/\/\)$/{ s//\1/; q; }
12727           /^X\/\(\/\).*/{ s//\1/; q; }
12728           s/.*/./; q'`
12729
12730
12731 # PATH needs CR, and LINENO needs CR and PATH.
12732 # Avoid depending upon Character Ranges.
12733 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12734 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12735 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12736 as_cr_digits='0123456789'
12737 as_cr_alnum=$as_cr_Letters$as_cr_digits
12738
12739 # The user is always right.
12740 if test "${PATH_SEPARATOR+set}" != set; then
12741   echo "#! /bin/sh" >conf$$.sh
12742   echo  "exit 0"   >>conf$$.sh
12743   chmod +x conf$$.sh
12744   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12745     PATH_SEPARATOR=';'
12746   else
12747     PATH_SEPARATOR=:
12748   fi
12749   rm -f conf$$.sh
12750 fi
12751
12752
12753   as_lineno_1=$LINENO
12754   as_lineno_2=$LINENO
12755   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12756   test "x$as_lineno_1" != "x$as_lineno_2" &&
12757   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12758   # Find who we are.  Look in the path if we contain no path at all
12759   # relative or not.
12760   case $0 in
12761     *[\\/]* ) as_myself=$0 ;;
12762     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12763 for as_dir in $PATH
12764 do
12765   IFS=$as_save_IFS
12766   test -z "$as_dir" && as_dir=.
12767   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12768 done
12769
12770        ;;
12771   esac
12772   # We did not find ourselves, most probably we were run as `sh COMMAND'
12773   # in which case we are not to be found in the path.
12774   if test "x$as_myself" = x; then
12775     as_myself=$0
12776   fi
12777   if test ! -f "$as_myself"; then
12778     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12779 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12780    { (exit 1); exit 1; }; }
12781   fi
12782   case $CONFIG_SHELL in
12783   '')
12784     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12786 do
12787   IFS=$as_save_IFS
12788   test -z "$as_dir" && as_dir=.
12789   for as_base in sh bash ksh sh5; do
12790          case $as_dir in
12791          /*)
12792            if ("$as_dir/$as_base" -c '
12793   as_lineno_1=$LINENO
12794   as_lineno_2=$LINENO
12795   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12796   test "x$as_lineno_1" != "x$as_lineno_2" &&
12797   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12798              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12799              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12800              CONFIG_SHELL=$as_dir/$as_base
12801              export CONFIG_SHELL
12802              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12803            fi;;
12804          esac
12805        done
12806 done
12807 ;;
12808   esac
12809
12810   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12811   # uniformly replaced by the line number.  The first 'sed' inserts a
12812   # line-number line before each line; the second 'sed' does the real
12813   # work.  The second script uses 'N' to pair each line-number line
12814   # with the numbered line, and appends trailing '-' during
12815   # substitution so that $LINENO is not a special case at line end.
12816   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12817   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12818   sed '=' <$as_myself |
12819     sed '
12820       N
12821       s,$,-,
12822       : loop
12823       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12824       t loop
12825       s,-$,,
12826       s,^['$as_cr_digits']*\n,,
12827     ' >$as_me.lineno &&
12828   chmod +x $as_me.lineno ||
12829     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12830 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12831    { (exit 1); exit 1; }; }
12832
12833   # Don't try to exec as it changes $[0], causing all sort of problems
12834   # (the dirname of $[0] is not the place where we might find the
12835   # original and so on.  Autoconf is especially sensible to this).
12836   . ./$as_me.lineno
12837   # Exit status is that of the last command.
12838   exit
12839 }
12840
12841
12842 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12843   *c*,-n*) ECHO_N= ECHO_C='
12844 ' ECHO_T='      ' ;;
12845   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12846   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12847 esac
12848
12849 if expr a : '\(a\)' >/dev/null 2>&1; then
12850   as_expr=expr
12851 else
12852   as_expr=false
12853 fi
12854
12855 rm -f conf$$ conf$$.exe conf$$.file
12856 echo >conf$$.file
12857 if ln -s conf$$.file conf$$ 2>/dev/null; then
12858   # We could just check for DJGPP; but this test a) works b) is more generic
12859   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12860   if test -f conf$$.exe; then
12861     # Don't use ln at all; we don't have any links
12862     as_ln_s='cp -p'
12863   else
12864     as_ln_s='ln -s'
12865   fi
12866 elif ln conf$$.file conf$$ 2>/dev/null; then
12867   as_ln_s=ln
12868 else
12869   as_ln_s='cp -p'
12870 fi
12871 rm -f conf$$ conf$$.exe conf$$.file
12872
12873 if mkdir -p . 2>/dev/null; then
12874   as_mkdir_p=:
12875 else
12876   test -d ./-p && rmdir ./-p
12877   as_mkdir_p=false
12878 fi
12879
12880 as_executable_p="test -f"
12881
12882 # Sed expression to map a string onto a valid CPP name.
12883 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12884
12885 # Sed expression to map a string onto a valid variable name.
12886 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12887
12888
12889 # IFS
12890 # We need space, tab and new line, in precisely that order.
12891 as_nl='
12892 '
12893 IFS="   $as_nl"
12894
12895 # CDPATH.
12896 $as_unset CDPATH
12897
12898 exec 6>&1
12899
12900 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12901 # report actual input values of CONFIG_FILES etc. instead of their
12902 # values after options handling.  Logging --version etc. is OK.
12903 exec 5>>config.log
12904 {
12905   echo
12906   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12907 ## Running $as_me. ##
12908 _ASBOX
12909 } >&5
12910 cat >&5 <<_CSEOF
12911
12912 This file was extended by $as_me, which was
12913 generated by GNU Autoconf 2.59.  Invocation command line was
12914
12915   CONFIG_FILES    = $CONFIG_FILES
12916   CONFIG_HEADERS  = $CONFIG_HEADERS
12917   CONFIG_LINKS    = $CONFIG_LINKS
12918   CONFIG_COMMANDS = $CONFIG_COMMANDS
12919   $ $0 $@
12920
12921 _CSEOF
12922 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12923 echo >&5
12924 _ACEOF
12925
12926 # Files that config.status was made for.
12927 if test -n "$ac_config_files"; then
12928   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12929 fi
12930
12931 if test -n "$ac_config_headers"; then
12932   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12933 fi
12934
12935 if test -n "$ac_config_links"; then
12936   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12937 fi
12938
12939 if test -n "$ac_config_commands"; then
12940   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12941 fi
12942
12943 cat >>$CONFIG_STATUS <<\_ACEOF
12944
12945 ac_cs_usage="\
12946 \`$as_me' instantiates files from templates according to the
12947 current configuration.
12948
12949 Usage: $0 [OPTIONS] [FILE]...
12950
12951   -h, --help       print this help, then exit
12952   -V, --version    print version number, then exit
12953   -q, --quiet      do not print progress messages
12954   -d, --debug      don't remove temporary files
12955       --recheck    update $as_me by reconfiguring in the same conditions
12956   --file=FILE[:TEMPLATE]
12957                    instantiate the configuration file FILE
12958   --header=FILE[:TEMPLATE]
12959                    instantiate the configuration header FILE
12960
12961 Configuration files:
12962 $config_files
12963
12964 Configuration headers:
12965 $config_headers
12966
12967 Report bugs to <bug-autoconf@gnu.org>."
12968 _ACEOF
12969
12970 cat >>$CONFIG_STATUS <<_ACEOF
12971 ac_cs_version="\\
12972 config.status
12973 configured by $0, generated by GNU Autoconf 2.59,
12974   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12975
12976 Copyright (C) 2003 Free Software Foundation, Inc.
12977 This config.status script is free software; the Free Software Foundation
12978 gives unlimited permission to copy, distribute and modify it."
12979 srcdir=$srcdir
12980 INSTALL="$INSTALL"
12981 _ACEOF
12982
12983 cat >>$CONFIG_STATUS <<\_ACEOF
12984 # If no file are specified by the user, then we need to provide default
12985 # value.  By we need to know if files were specified by the user.
12986 ac_need_defaults=:
12987 while test $# != 0
12988 do
12989   case $1 in
12990   --*=*)
12991     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12992     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12993     ac_shift=:
12994     ;;
12995   -*)
12996     ac_option=$1
12997     ac_optarg=$2
12998     ac_shift=shift
12999     ;;
13000   *) # This is not an option, so the user has probably given explicit
13001      # arguments.
13002      ac_option=$1
13003      ac_need_defaults=false;;
13004   esac
13005
13006   case $ac_option in
13007   # Handling of the options.
13008 _ACEOF
13009 cat >>$CONFIG_STATUS <<\_ACEOF
13010   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13011     ac_cs_recheck=: ;;
13012   --version | --vers* | -V )
13013     echo "$ac_cs_version"; exit 0 ;;
13014   --he | --h)
13015     # Conflict between --help and --header
13016     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13017 Try \`$0 --help' for more information." >&5
13018 echo "$as_me: error: ambiguous option: $1
13019 Try \`$0 --help' for more information." >&2;}
13020    { (exit 1); exit 1; }; };;
13021   --help | --hel | -h )
13022     echo "$ac_cs_usage"; exit 0 ;;
13023   --debug | --d* | -d )
13024     debug=: ;;
13025   --file | --fil | --fi | --f )
13026     $ac_shift
13027     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13028     ac_need_defaults=false;;
13029   --header | --heade | --head | --hea )
13030     $ac_shift
13031     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13032     ac_need_defaults=false;;
13033   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13034   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13035     ac_cs_silent=: ;;
13036
13037   # This is an error.
13038   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13039 Try \`$0 --help' for more information." >&5
13040 echo "$as_me: error: unrecognized option: $1
13041 Try \`$0 --help' for more information." >&2;}
13042    { (exit 1); exit 1; }; } ;;
13043
13044   *) ac_config_targets="$ac_config_targets $1" ;;
13045
13046   esac
13047   shift
13048 done
13049
13050 ac_configure_extra_args=
13051
13052 if $ac_cs_silent; then
13053   exec 6>/dev/null
13054   ac_configure_extra_args="$ac_configure_extra_args --silent"
13055 fi
13056
13057 _ACEOF
13058 cat >>$CONFIG_STATUS <<_ACEOF
13059 if \$ac_cs_recheck; then
13060   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13061   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13062 fi
13063
13064 _ACEOF
13065
13066
13067
13068
13069
13070 cat >>$CONFIG_STATUS <<\_ACEOF
13071 for ac_config_target in $ac_config_targets
13072 do
13073   case "$ac_config_target" in
13074   # Handling of arguments.
13075   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
13076   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13077   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13078   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13079   "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
13080   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;;
13081   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13082 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13083    { (exit 1); exit 1; }; };;
13084   esac
13085 done
13086
13087 # If the user did not use the arguments to specify the items to instantiate,
13088 # then the envvar interface is used.  Set only those that are not.
13089 # We use the long form for the default assignment because of an extremely
13090 # bizarre bug on SunOS 4.1.3.
13091 if $ac_need_defaults; then
13092   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13093   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13094 fi
13095
13096 # Have a temporary directory for convenience.  Make it in the build tree
13097 # simply because there is no reason to put it here, and in addition,
13098 # creating and moving files from /tmp can sometimes cause problems.
13099 # Create a temporary directory, and hook for its removal unless debugging.
13100 $debug ||
13101 {
13102   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13103   trap '{ (exit 1); exit 1; }' 1 2 13 15
13104 }
13105
13106 # Create a (secure) tmp directory for tmp files.
13107
13108 {
13109   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13110   test -n "$tmp" && test -d "$tmp"
13111 }  ||
13112 {
13113   tmp=./confstat$$-$RANDOM
13114   (umask 077 && mkdir $tmp)
13115 } ||
13116 {
13117    echo "$me: cannot create a temporary directory in ." >&2
13118    { (exit 1); exit 1; }
13119 }
13120
13121 _ACEOF
13122
13123 cat >>$CONFIG_STATUS <<_ACEOF
13124
13125 #
13126 # CONFIG_FILES section.
13127 #
13128
13129 # No need to generate the scripts if there are no CONFIG_FILES.
13130 # This happens for instance when ./config.status config.h
13131 if test -n "\$CONFIG_FILES"; then
13132   # Protect against being on the right side of a sed subst in config.status.
13133   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13134    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13135 s,@SHELL@,$SHELL,;t t
13136 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13137 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13138 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13139 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13140 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13141 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13142 s,@exec_prefix@,$exec_prefix,;t t
13143 s,@prefix@,$prefix,;t t
13144 s,@program_transform_name@,$program_transform_name,;t t
13145 s,@bindir@,$bindir,;t t
13146 s,@sbindir@,$sbindir,;t t
13147 s,@libexecdir@,$libexecdir,;t t
13148 s,@datadir@,$datadir,;t t
13149 s,@sysconfdir@,$sysconfdir,;t t
13150 s,@sharedstatedir@,$sharedstatedir,;t t
13151 s,@localstatedir@,$localstatedir,;t t
13152 s,@libdir@,$libdir,;t t
13153 s,@includedir@,$includedir,;t t
13154 s,@oldincludedir@,$oldincludedir,;t t
13155 s,@infodir@,$infodir,;t t
13156 s,@mandir@,$mandir,;t t
13157 s,@build_alias@,$build_alias,;t t
13158 s,@host_alias@,$host_alias,;t t
13159 s,@target_alias@,$target_alias,;t t
13160 s,@DEFS@,$DEFS,;t t
13161 s,@ECHO_C@,$ECHO_C,;t t
13162 s,@ECHO_N@,$ECHO_N,;t t
13163 s,@ECHO_T@,$ECHO_T,;t t
13164 s,@LIBS@,$LIBS,;t t
13165 s,@build@,$build,;t t
13166 s,@build_cpu@,$build_cpu,;t t
13167 s,@build_vendor@,$build_vendor,;t t
13168 s,@build_os@,$build_os,;t t
13169 s,@host@,$host,;t t
13170 s,@host_cpu@,$host_cpu,;t t
13171 s,@host_vendor@,$host_vendor,;t t
13172 s,@host_os@,$host_os,;t t
13173 s,@VERSION@,$VERSION,;t t
13174 s,@DATE@,$DATE,;t t
13175 s,@LSMDATE@,$LSMDATE,;t t
13176 s,@LIBVERSION@,$LIBVERSION,;t t
13177 s,@CC@,$CC,;t t
13178 s,@CFLAGS@,$CFLAGS,;t t
13179 s,@LDFLAGS@,$LDFLAGS,;t t
13180 s,@CPPFLAGS@,$CPPFLAGS,;t t
13181 s,@ac_ct_CC@,$ac_ct_CC,;t t
13182 s,@EXEEXT@,$EXEEXT,;t t
13183 s,@OBJEXT@,$OBJEXT,;t t
13184 s,@CXX@,$CXX,;t t
13185 s,@CXXFLAGS@,$CXXFLAGS,;t t
13186 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13187 s,@CPP@,$CPP,;t t
13188 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13189 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13190 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13191 s,@AWK@,$AWK,;t t
13192 s,@LINKER@,$LINKER,;t t
13193 s,@CXXCPP@,$CXXCPP,;t t
13194 s,@EGREP@,$EGREP,;t t
13195 s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
13196 s,@RXVTNAME@,$RXVTNAME,;t t
13197 s,@MV@,$MV,;t t
13198 s,@RM@,$RM,;t t
13199 s,@CP@,$CP,;t t
13200 s,@LN@,$LN,;t t
13201 s,@SED@,$SED,;t t
13202 s,@ECHO@,$ECHO,;t t
13203 s,@CMP@,$CMP,;t t
13204 s,@TBL@,$TBL,;t t
13205 s,@TIC@,$TIC,;t t
13206 s,@X_CFLAGS@,$X_CFLAGS,;t t
13207 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13208 s,@X_LIBS@,$X_LIBS,;t t
13209 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13210 s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
13211 s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
13212 s,@XPM_LIBS@,$XPM_LIBS,;t t
13213 s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
13214 s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
13215 s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
13216 s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
13217 s,@rxvt_intp_define@,$rxvt_intp_define,;t t
13218 s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
13219 s,@DEBUG@,$DEBUG,;t t
13220 s,@DINCLUDE@,$DINCLUDE,;t t
13221 s,@DLIB@,$DLIB,;t t
13222 s,@include_stdint_h@,$include_stdint_h,;t t
13223 s,@include_stdarg_h@,$include_stdarg_h,;t t
13224 s,@include_stdlib_h@,$include_stdlib_h,;t t
13225 s,@include_unistd_h@,$include_unistd_h,;t t
13226 s,@include_string_h@,$include_string_h,;t t
13227 s,@include_fcntl_h@,$include_fcntl_h,;t t
13228 s,@include_util_h@,$include_util_h,;t t
13229 s,@include_assert_h@,$include_assert_h,;t t
13230 s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
13231 s,@include_sys_select_h@,$include_sys_select_h,;t t
13232 s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
13233 s,@include_sys_time_h@,$include_sys_time_h,;t t
13234 s,@include_time_h@,$include_time_h,;t t
13235 s,@LIBOBJS@,$LIBOBJS,;t t
13236 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13237 /@MCOMMON@/r $MCOMMON
13238 s,@MCOMMON@,,;t t
13239 CEOF
13240
13241 _ACEOF
13242
13243   cat >>$CONFIG_STATUS <<\_ACEOF
13244   # Split the substitutions into bite-sized pieces for seds with
13245   # small command number limits, like on Digital OSF/1 and HP-UX.
13246   ac_max_sed_lines=48
13247   ac_sed_frag=1 # Number of current file.
13248   ac_beg=1 # First line for current file.
13249   ac_end=$ac_max_sed_lines # Line after last line for current file.
13250   ac_more_lines=:
13251   ac_sed_cmds=
13252   while $ac_more_lines; do
13253     if test $ac_beg -gt 1; then
13254       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13255     else
13256       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13257     fi
13258     if test ! -s $tmp/subs.frag; then
13259       ac_more_lines=false
13260     else
13261       # The purpose of the label and of the branching condition is to
13262       # speed up the sed processing (if there are no `@' at all, there
13263       # is no need to browse any of the substitutions).
13264       # These are the two extra sed commands mentioned above.
13265       (echo ':t
13266   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13267       if test -z "$ac_sed_cmds"; then
13268         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13269       else
13270         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13271       fi
13272       ac_sed_frag=`expr $ac_sed_frag + 1`
13273       ac_beg=$ac_end
13274       ac_end=`expr $ac_end + $ac_max_sed_lines`
13275     fi
13276   done
13277   if test -z "$ac_sed_cmds"; then
13278     ac_sed_cmds=cat
13279   fi
13280 fi # test -n "$CONFIG_FILES"
13281
13282 _ACEOF
13283 cat >>$CONFIG_STATUS <<\_ACEOF
13284 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13285   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13286   case $ac_file in
13287   - | *:- | *:-:* ) # input from stdin
13288         cat >$tmp/stdin
13289         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13290         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13291   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13292         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13293   * )   ac_file_in=$ac_file.in ;;
13294   esac
13295
13296   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13297   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13298 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13299          X"$ac_file" : 'X\(//\)[^/]' \| \
13300          X"$ac_file" : 'X\(//\)$' \| \
13301          X"$ac_file" : 'X\(/\)' \| \
13302          .     : '\(.\)' 2>/dev/null ||
13303 echo X"$ac_file" |
13304     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13305           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13306           /^X\(\/\/\)$/{ s//\1/; q; }
13307           /^X\(\/\).*/{ s//\1/; q; }
13308           s/.*/./; q'`
13309   { if $as_mkdir_p; then
13310     mkdir -p "$ac_dir"
13311   else
13312     as_dir="$ac_dir"
13313     as_dirs=
13314     while test ! -d "$as_dir"; do
13315       as_dirs="$as_dir $as_dirs"
13316       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13317 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13318          X"$as_dir" : 'X\(//\)[^/]' \| \
13319          X"$as_dir" : 'X\(//\)$' \| \
13320          X"$as_dir" : 'X\(/\)' \| \
13321          .     : '\(.\)' 2>/dev/null ||
13322 echo X"$as_dir" |
13323     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13324           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13325           /^X\(\/\/\)$/{ s//\1/; q; }
13326           /^X\(\/\).*/{ s//\1/; q; }
13327           s/.*/./; q'`
13328     done
13329     test ! -n "$as_dirs" || mkdir $as_dirs
13330   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13331 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13332    { (exit 1); exit 1; }; }; }
13333
13334   ac_builddir=.
13335
13336 if test "$ac_dir" != .; then
13337   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13338   # A "../" for each directory in $ac_dir_suffix.
13339   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13340 else
13341   ac_dir_suffix= ac_top_builddir=
13342 fi
13343
13344 case $srcdir in
13345   .)  # No --srcdir option.  We are building in place.
13346     ac_srcdir=.
13347     if test -z "$ac_top_builddir"; then
13348        ac_top_srcdir=.
13349     else
13350        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13351     fi ;;
13352   [\\/]* | ?:[\\/]* )  # Absolute path.
13353     ac_srcdir=$srcdir$ac_dir_suffix;
13354     ac_top_srcdir=$srcdir ;;
13355   *) # Relative path.
13356     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13357     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13358 esac
13359
13360 # Do not use `cd foo && pwd` to compute absolute paths, because
13361 # the directories may not exist.
13362 case `pwd` in
13363 .) ac_abs_builddir="$ac_dir";;
13364 *)
13365   case "$ac_dir" in
13366   .) ac_abs_builddir=`pwd`;;
13367   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13368   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13369   esac;;
13370 esac
13371 case $ac_abs_builddir in
13372 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13373 *)
13374   case ${ac_top_builddir}. in
13375   .) ac_abs_top_builddir=$ac_abs_builddir;;
13376   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13377   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13378   esac;;
13379 esac
13380 case $ac_abs_builddir in
13381 .) ac_abs_srcdir=$ac_srcdir;;
13382 *)
13383   case $ac_srcdir in
13384   .) ac_abs_srcdir=$ac_abs_builddir;;
13385   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13386   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13387   esac;;
13388 esac
13389 case $ac_abs_builddir in
13390 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13391 *)
13392   case $ac_top_srcdir in
13393   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13394   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13395   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13396   esac;;
13397 esac
13398
13399
13400   case $INSTALL in
13401   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13402   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13403   esac
13404
13405   # Let's still pretend it is `configure' which instantiates (i.e., don't
13406   # use $as_me), people would be surprised to read:
13407   #    /* config.h.  Generated by config.status.  */
13408   if test x"$ac_file" = x-; then
13409     configure_input=
13410   else
13411     configure_input="$ac_file.  "
13412   fi
13413   configure_input=$configure_input"Generated from `echo $ac_file_in |
13414                                      sed 's,.*/,,'` by configure."
13415
13416   # First look for the input files in the build tree, otherwise in the
13417   # src tree.
13418   ac_file_inputs=`IFS=:
13419     for f in $ac_file_in; do
13420       case $f in
13421       -) echo $tmp/stdin ;;
13422       [\\/$]*)
13423          # Absolute (can't be DOS-style, as IFS=:)
13424          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13425 echo "$as_me: error: cannot find input file: $f" >&2;}
13426    { (exit 1); exit 1; }; }
13427          echo "$f";;
13428       *) # Relative
13429          if test -f "$f"; then
13430            # Build tree
13431            echo "$f"
13432          elif test -f "$srcdir/$f"; then
13433            # Source tree
13434            echo "$srcdir/$f"
13435          else
13436            # /dev/null tree
13437            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13438 echo "$as_me: error: cannot find input file: $f" >&2;}
13439    { (exit 1); exit 1; }; }
13440          fi;;
13441       esac
13442     done` || { (exit 1); exit 1; }
13443
13444   if test x"$ac_file" != x-; then
13445     { echo "$as_me:$LINENO: creating $ac_file" >&5
13446 echo "$as_me: creating $ac_file" >&6;}
13447     rm -f "$ac_file"
13448   fi
13449 _ACEOF
13450 cat >>$CONFIG_STATUS <<_ACEOF
13451   sed "$ac_vpsub
13452 $extrasub
13453 _ACEOF
13454 cat >>$CONFIG_STATUS <<\_ACEOF
13455 :t
13456 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13457 s,@configure_input@,$configure_input,;t t
13458 s,@srcdir@,$ac_srcdir,;t t
13459 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13460 s,@top_srcdir@,$ac_top_srcdir,;t t
13461 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13462 s,@builddir@,$ac_builddir,;t t
13463 s,@abs_builddir@,$ac_abs_builddir,;t t
13464 s,@top_builddir@,$ac_top_builddir,;t t
13465 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13466 s,@INSTALL@,$ac_INSTALL,;t t
13467 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13468   rm -f $tmp/stdin
13469   if test x"$ac_file" != x-; then
13470     mv $tmp/out $ac_file
13471   else
13472     cat $tmp/out
13473     rm -f $tmp/out
13474   fi
13475
13476 done
13477 _ACEOF
13478 cat >>$CONFIG_STATUS <<\_ACEOF
13479
13480 #
13481 # CONFIG_HEADER section.
13482 #
13483
13484 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13485 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13486 #
13487 # ac_d sets the value in "#define NAME VALUE" lines.
13488 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
13489 ac_dB='[         ].*$,\1#\2'
13490 ac_dC=' '
13491 ac_dD=',;t'
13492 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13493 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13494 ac_uB='$,\1#\2define\3'
13495 ac_uC=' '
13496 ac_uD=',;t'
13497
13498 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13499   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13500   case $ac_file in
13501   - | *:- | *:-:* ) # input from stdin
13502         cat >$tmp/stdin
13503         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13504         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13505   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13506         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13507   * )   ac_file_in=$ac_file.in ;;
13508   esac
13509
13510   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13511 echo "$as_me: creating $ac_file" >&6;}
13512
13513   # First look for the input files in the build tree, otherwise in the
13514   # src tree.
13515   ac_file_inputs=`IFS=:
13516     for f in $ac_file_in; do
13517       case $f in
13518       -) echo $tmp/stdin ;;
13519       [\\/$]*)
13520          # Absolute (can't be DOS-style, as IFS=:)
13521          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13522 echo "$as_me: error: cannot find input file: $f" >&2;}
13523    { (exit 1); exit 1; }; }
13524          # Do quote $f, to prevent DOS paths from being IFS'd.
13525          echo "$f";;
13526       *) # Relative
13527          if test -f "$f"; then
13528            # Build tree
13529            echo "$f"
13530          elif test -f "$srcdir/$f"; then
13531            # Source tree
13532            echo "$srcdir/$f"
13533          else
13534            # /dev/null tree
13535            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13536 echo "$as_me: error: cannot find input file: $f" >&2;}
13537    { (exit 1); exit 1; }; }
13538          fi;;
13539       esac
13540     done` || { (exit 1); exit 1; }
13541   # Remove the trailing spaces.
13542   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13543
13544 _ACEOF
13545
13546 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13547 # `conftest.undefs', that substitutes the proper values into
13548 # config.h.in to produce config.h.  The first handles `#define'
13549 # templates, and the second `#undef' templates.
13550 # And first: Protect against being on the right side of a sed subst in
13551 # config.status.  Protect against being in an unquoted here document
13552 # in config.status.
13553 rm -f conftest.defines conftest.undefs
13554 # Using a here document instead of a string reduces the quoting nightmare.
13555 # Putting comments in sed scripts is not portable.
13556 #
13557 # `end' is used to avoid that the second main sed command (meant for
13558 # 0-ary CPP macros) applies to n-ary macro definitions.
13559 # See the Autoconf documentation for `clear'.
13560 cat >confdef2sed.sed <<\_ACEOF
13561 s/[\\&,]/\\&/g
13562 s,[\\$`],\\&,g
13563 t clear
13564 : clear
13565 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13566 t end
13567 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13568 : end
13569 _ACEOF
13570 # If some macros were called several times there might be several times
13571 # the same #defines, which is useless.  Nevertheless, we may not want to
13572 # sort them, since we want the *last* AC-DEFINE to be honored.
13573 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13574 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13575 rm -f confdef2sed.sed
13576
13577 # This sed command replaces #undef with comments.  This is necessary, for
13578 # example, in the case of _POSIX_SOURCE, which is predefined and required
13579 # on some systems where configure will not decide to define it.
13580 cat >>conftest.undefs <<\_ACEOF
13581 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13582 _ACEOF
13583
13584 # Break up conftest.defines because some shells have a limit on the size
13585 # of here documents, and old seds have small limits too (100 cmds).
13586 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13587 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13588 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13589 echo '  :' >>$CONFIG_STATUS
13590 rm -f conftest.tail
13591 while grep . conftest.defines >/dev/null
13592 do
13593   # Write a limited-size here document to $tmp/defines.sed.
13594   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13595   # Speed up: don't consider the non `#define' lines.
13596   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13597   # Work around the forget-to-reset-the-flag bug.
13598   echo 't clr' >>$CONFIG_STATUS
13599   echo ': clr' >>$CONFIG_STATUS
13600   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13601   echo 'CEOF
13602   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13603   rm -f $tmp/in
13604   mv $tmp/out $tmp/in
13605 ' >>$CONFIG_STATUS
13606   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13607   rm -f conftest.defines
13608   mv conftest.tail conftest.defines
13609 done
13610 rm -f conftest.defines
13611 echo '  fi # grep' >>$CONFIG_STATUS
13612 echo >>$CONFIG_STATUS
13613
13614 # Break up conftest.undefs because some shells have a limit on the size
13615 # of here documents, and old seds have small limits too (100 cmds).
13616 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13617 rm -f conftest.tail
13618 while grep . conftest.undefs >/dev/null
13619 do
13620   # Write a limited-size here document to $tmp/undefs.sed.
13621   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13622   # Speed up: don't consider the non `#undef'
13623   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13624   # Work around the forget-to-reset-the-flag bug.
13625   echo 't clr' >>$CONFIG_STATUS
13626   echo ': clr' >>$CONFIG_STATUS
13627   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13628   echo 'CEOF
13629   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13630   rm -f $tmp/in
13631   mv $tmp/out $tmp/in
13632 ' >>$CONFIG_STATUS
13633   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13634   rm -f conftest.undefs
13635   mv conftest.tail conftest.undefs
13636 done
13637 rm -f conftest.undefs
13638
13639 cat >>$CONFIG_STATUS <<\_ACEOF
13640   # Let's still pretend it is `configure' which instantiates (i.e., don't
13641   # use $as_me), people would be surprised to read:
13642   #    /* config.h.  Generated by config.status.  */
13643   if test x"$ac_file" = x-; then
13644     echo "/* Generated by configure.  */" >$tmp/config.h
13645   else
13646     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13647   fi
13648   cat $tmp/in >>$tmp/config.h
13649   rm -f $tmp/in
13650   if test x"$ac_file" != x-; then
13651     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13652       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13653 echo "$as_me: $ac_file is unchanged" >&6;}
13654     else
13655       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13656 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13657          X"$ac_file" : 'X\(//\)[^/]' \| \
13658          X"$ac_file" : 'X\(//\)$' \| \
13659          X"$ac_file" : 'X\(/\)' \| \
13660          .     : '\(.\)' 2>/dev/null ||
13661 echo X"$ac_file" |
13662     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13663           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13664           /^X\(\/\/\)$/{ s//\1/; q; }
13665           /^X\(\/\).*/{ s//\1/; q; }
13666           s/.*/./; q'`
13667       { if $as_mkdir_p; then
13668     mkdir -p "$ac_dir"
13669   else
13670     as_dir="$ac_dir"
13671     as_dirs=
13672     while test ! -d "$as_dir"; do
13673       as_dirs="$as_dir $as_dirs"
13674       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13675 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13676          X"$as_dir" : 'X\(//\)[^/]' \| \
13677          X"$as_dir" : 'X\(//\)$' \| \
13678          X"$as_dir" : 'X\(/\)' \| \
13679          .     : '\(.\)' 2>/dev/null ||
13680 echo X"$as_dir" |
13681     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13682           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13683           /^X\(\/\/\)$/{ s//\1/; q; }
13684           /^X\(\/\).*/{ s//\1/; q; }
13685           s/.*/./; q'`
13686     done
13687     test ! -n "$as_dirs" || mkdir $as_dirs
13688   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13689 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13690    { (exit 1); exit 1; }; }; }
13691
13692       rm -f $ac_file
13693       mv $tmp/config.h $ac_file
13694     fi
13695   else
13696     cat $tmp/config.h
13697     rm -f $tmp/config.h
13698   fi
13699 done
13700 _ACEOF
13701
13702 cat >>$CONFIG_STATUS <<\_ACEOF
13703
13704 { (exit 0); exit 0; }
13705 _ACEOF
13706 chmod +x $CONFIG_STATUS
13707 ac_clean_files=$ac_clean_files_save
13708
13709
13710 # configure is writing to config.log, and then calls config.status.
13711 # config.status does its own redirection, appending to config.log.
13712 # Unfortunately, on DOS this fails, as config.log is still kept open
13713 # by configure, so config.status won't be able to write to it; its
13714 # output is simply discarded.  So we exec the FD to /dev/null,
13715 # effectively closing config.log, so it can be properly (re)opened and
13716 # appended to by config.status.  When coming back to configure, we
13717 # need to make the FD available again.
13718 if test "$no_create" != yes; then
13719   ac_cs_success=:
13720   ac_config_status_args=
13721   test "$silent" = yes &&
13722     ac_config_status_args="$ac_config_status_args --quiet"
13723   exec 5>/dev/null
13724   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13725   exec 5>>config.log
13726   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13727   # would make configure fail if this is the last instruction.
13728   $ac_cs_success || { (exit 1); exit 1; }
13729 fi
13730
13731
13732 echo "Configuration:
13733
13734   Rxvt version:               $VERSION : $DATE
13735   Source code location:       $srcdir
13736   Install path:               ${prefix}/bin
13737   Compiler:                   $CXX
13738   Compiler flags:             $CFLAGS
13739   Linker:                     $LINKER"
13740
13741 if test "$MALLOC_TYPE" = S; then
13742   echo "  malloc support:             system default"
13743 fi
13744 if test "$MALLOC_TYPE" = G; then
13745   echo "  malloc support:             Gray Watson's dmalloc"
13746 fi
13747 if test "$MALLOC_TYPE" = D; then
13748   echo "  malloc support:             Doug Lea's malloc"
13749 fi
13750
13751 if test x$support_xpm = xyes; then
13752   echo "  Xpm library:                $XPM_LIBS"
13753 fi
13754
13755 echo "
13756 The following are set in config.h
13757 "
13758 echo "  pty/tty type:               "$rxvt_cv_ptys
13759 if test x$support_utmp != xyes; then
13760   echo "  utmp support:               disabled"
13761   echo
13762 else
13763   echo "  utmp support:               enabled
13764   utmp file:                  $rxvt_cv_path_utmp
13765   utmpx file:                 $rxvt_cv_path_utmpx
13766   wtmp file:                  $rxvt_cv_path_wtmp
13767   wtmpx file:                 $rxvt_cv_path_wtmpx
13768   lastlog file:               $rxvt_cv_path_lastlog
13769   ttys/ttytab file:           $rxvt_cv_path_ttytab"
13770   echo
13771 fi
13772 if test x$term != x; then
13773   echo "  set TERM to:                $term"
13774 fi
13775 if test x$terminfo != x; then
13776   echo "  set TERMINFO to:            $terminfo"
13777 fi
13778 echo "  default resource name:      $RESNAME"
13779 echo "  resource class:             $RESCLASS"
13780 if test x$RESFALLBACK != x; then
13781    echo "  resource class fallback:    $RESFALLBACK"
13782 fi
13783 echo
13784 if test x$rxvt_cv_ptys = xUNKNOWN; then
13785   echo ".----------------------------------------------------------------."
13786   echo ". WARNING: could not determine pty/tty type.  Do not build until ."
13787   echo ".          the appropriate PTYS_ARE_* is defined in config.h     ."
13788   echo ".----------------------------------------------------------------."
13789 fi
13790 if test x$support_xpm = xneedsmanualspecification; then
13791   echo ".----------------------------------------------------------------."
13792   echo ". WARNING: --enable-xpm-background was specified however the     ."
13793   echo ".          XPM includes files and libraries could not be found.  ."
13794   echo ".          XPM backgrounds are now being DISABLED!  If you want  ."
13795   echo ".          to use them you should rerun   configure   with the   ."
13796   echo ".          appropriate --with-xpm-includes=/path/to/xpm/includes ."
13797   echo ".          and --with-xpm-library=/path/to/xpm/library lines.    ."
13798   echo ".----------------------------------------------------------------."
13799 fi
13800 if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
13801   echo ".----------------------------------------------------------------."
13802   echo ". WARNING: --enable-xim was specified however the locale support ."
13803   echo ".          functions could not be found.                         ."
13804   echo ".          XIM is now being DISABLED!                            ."
13805   echo ".----------------------------------------------------------------."
13806 fi
13807
13808 echo "  *** Optionally check src/feature.h for further options ***"
13809 echo
13810
13811 echo ".----------------------------------------------------------------."
13812 echo ". NOTE: some features are disabled by default, try               ."
13813 echo ". configure --help to get an idea of the optional features,      ."
13814 echo ". or read ./README.configure                                     ."
13815 echo ".                                                                ."
13816 echo ". The script ./reconf gives a reasonable baseline, try it if     ."
13817 echo ". you do not want to read documentation and still want some      ."
13818 echo ". useful features.                                               ."
13819 echo ".----------------------------------------------------------------."
13820 echo
13821