2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
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
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
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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; }; }
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
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'"
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'"
235 # We need space, tab and new line, in precisely that order.
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`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
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}
267 # Identity of this package.
274 ac_unique_file="src/feature.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
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'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
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'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
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 ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
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" ;;
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'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
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 ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
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 ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
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 ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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 ;;
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 ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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 ;;
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 ;;
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 ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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 ;;
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 ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
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'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
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" ;;
609 # Obsolete; use --with-x.
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 ;;
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 ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
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'"
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}
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; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
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
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
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.
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
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
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 ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
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; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
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}
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
787 # Report the --help message.
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.
793 \`configure' configures this package to adapt to many kinds of systems.
795 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
800 Defaults for the options are specified in brackets.
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 \`..']
816 Installation directories:
817 --prefix=PREFIX install architecture-independent files in PREFIX
819 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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'.
827 For better control, use the options below.
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]
847 --x-includes=DIR X include files are in DIR
848 --x-libraries=DIR X library files are in DIR
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
856 --build=BUILD configure for building on BUILD [guessed]
857 --host=HOST cross-compile to build programs to run on HOST [BUILD]
861 if test -n "$ac_init_help"; then
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
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
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
936 CXXCPP C++ preprocessor
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.
944 if test "$ac_init_help" = "recursive"; then
945 # If there are subdirs, report their specific --help.
947 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
948 test -d $ac_dir || continue
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'`
956 ac_dir_suffix= ac_top_builddir=
960 .) # No --srcdir option. We are building in place.
962 if test -z "$ac_top_builddir"; then
965 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
967 [\\/]* | ?:[\\/]* ) # Absolute path.
968 ac_srcdir=$srcdir$ac_dir_suffix;
969 ac_top_srcdir=$srcdir ;;
971 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
972 ac_top_srcdir=$ac_top_builddir$srcdir ;;
975 # Do not use `cd foo && pwd` to compute absolute paths, because
976 # the directories may not exist.
978 .) ac_abs_builddir="$ac_dir";;
981 .) ac_abs_builddir=`pwd`;;
982 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
983 *) ac_abs_builddir=`pwd`/"$ac_dir";;
986 case $ac_abs_builddir in
987 .) ac_abs_top_builddir=${ac_top_builddir}.;;
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}.;;
995 case $ac_abs_builddir in
996 .) ac_abs_srcdir=$ac_srcdir;;
999 .) ac_abs_srcdir=$ac_abs_builddir;;
1000 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1001 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1004 case $ac_abs_builddir in
1005 .) ac_abs_top_srcdir=$ac_top_srcdir;;
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;;
1015 # Check for guested configure; otherwise get Cygnus style configure.
1016 if test -f $ac_srcdir/configure.gnu; then
1018 $SHELL $ac_srcdir/configure.gnu --help=recursive
1019 elif test -f $ac_srcdir/configure; then
1021 $SHELL $ac_srcdir/configure --help=recursive
1022 elif test -f $ac_srcdir/configure.ac ||
1023 test -f $ac_srcdir/configure.in; then
1025 $ac_configure --help
1027 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1033 test -n "$ac_init_help" && exit 0
1034 if $ac_init_version; then
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.
1045 This file contains any messages produced by compilers while
1046 running configure, to aid debugging if configure makes a mistake.
1048 It was created by $as_me, which was
1049 generated by GNU Autoconf 2.59. Invocation command line was
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`
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`
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`
1079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1083 test -z "$as_dir" && as_dir=.
1084 echo "PATH: $as_dir"
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.
1108 ac_must_keep_next=false
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)
1118 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1119 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1122 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
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.
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 ;;
1137 -* ) ac_must_keep_next=true ;;
1140 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1141 # Get rid of the leading space.
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; }
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.
1161 ## ---------------- ##
1162 ## Cache variables. ##
1163 ## ---------------- ##
1166 # The following way of writing the cache mishandles newlines in values,
1169 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1172 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1177 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1184 ## ----------------- ##
1185 ## Output variables. ##
1186 ## ----------------- ##
1189 for ac_var in $ac_subst_vars
1191 eval ac_val=$`echo $ac_var`
1192 echo "$ac_var='"'"'$ac_val'"'"'"
1196 if test -n "$ac_subst_files"; then
1203 for ac_var in $ac_subst_files
1205 eval ac_val=$`echo $ac_var`
1206 echo "$ac_var='"'"'$ac_val'"'"'"
1211 if test -s confdefs.h; then
1218 sed "/^$/d" confdefs.h | sort
1221 test "$ac_signal" != 0 &&
1222 echo "$as_me: caught signal $ac_signal"
1223 echo "$as_me: exit $exit_status"
1225 rm -f core *.core &&
1226 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1229 for ac_signal in 1 2 13 15; do
1230 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
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.
1239 # Predefined preprocessor variables.
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_NAME "$PACKAGE_NAME"
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1251 cat >>confdefs.h <<_ACEOF
1252 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1256 cat >>confdefs.h <<_ACEOF
1257 #define PACKAGE_STRING "$PACKAGE_STRING"
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
1272 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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
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;}
1291 [\\/]* | ?:[\\/]* ) . $cache_file;;
1292 *) . ./$cache_file;;
1296 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1297 echo "$as_me: creating cache $cache_file" >&6;}
1301 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
1331 # Pass precious variables to config.status.
1332 if test "$ac_new_set" = set; then
1334 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1335 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1336 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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; }; }
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
1378 for ac_dir in autoconf $srcdir/autoconf; do
1379 if test -f $ac_dir/install-sh; then
1381 ac_install_sh="$ac_aux_dir/install-sh -c"
1383 elif test -f $ac_dir/install.sh; then
1385 ac_install_sh="$ac_aux_dir/install.sh -c"
1387 elif test -f $ac_dir/shtool; then
1389 ac_install_sh="$ac_aux_dir/shtool install -c"
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; }; }
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.
1402 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
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; }; }
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
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; }; }
1429 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1430 echo "${ECHO_T}$ac_cv_build" >&6
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/'`
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
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; }; }
1451 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1452 echo "${ECHO_T}$ac_cv_host" >&6
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/'`
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`
1463 echo "configuring for rxvt $VERSION"
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
1480 if test -n "$CC"; then
1481 ac_cv_prog_CC="$CC" # Let the user override the test.
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1500 if test -n "$CC"; then
1501 echo "$as_me:$LINENO: result: $CC" >&5
1502 echo "${ECHO_T}$CC" >&6
1504 echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1509 if test -z "$ac_cv_prog_CC"; then
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
1518 if test -n "$ac_ct_CC"; then
1519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
1542 echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
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
1560 if test -n "$CC"; then
1561 ac_cv_prog_CC="$CC" # Let the user override the test.
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1580 if test -n "$CC"; then
1581 echo "$as_me:$LINENO: result: $CC" >&5
1582 echo "${ECHO_T}$CC" >&6
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1589 if test -z "$ac_cv_prog_CC"; then
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
1598 if test -n "$ac_ct_CC"; then
1599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
1622 echo "$as_me:$LINENO: result: no" >&5
1623 echo "${ECHO_T}no" >&6
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
1640 if test -n "$CC"; then
1641 ac_cv_prog_CC="$CC" # Let the user override the test.
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
1671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1677 if test -n "$CC"; then
1678 echo "$as_me:$LINENO: result: $CC" >&5
1679 echo "${ECHO_T}$CC" >&6
1681 echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1686 if test -z "$CC"; then
1687 if test -n "$ac_tool_prefix"; then
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
1697 if test -n "$CC"; then
1698 ac_cv_prog_CC="$CC" # Let the user override the test.
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1717 if test -n "$CC"; then
1718 echo "$as_me:$LINENO: result: $CC" >&5
1719 echo "${ECHO_T}$CC" >&6
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1725 test -n "$CC" && break
1728 if test -z "$CC"; then
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
1739 if test -n "$ac_ct_CC"; then
1740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1767 test -n "$ac_ct_CC" && break
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; }; }
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
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
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
1799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800 (exit $ac_status); }
1802 cat >conftest.$ac_ext <<_ACEOF
1805 cat confdefs.h >>conftest.$ac_ext
1806 cat >>conftest.$ac_ext <<_ACEOF
1807 /* end confdefs.h. */
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
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
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
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.
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
1840 test -f "$ac_file" || continue
1842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1845 # This is the source file.
1848 # We found the default executable, but exeext='' is most
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.
1863 echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
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; }; }
1873 ac_exeext=$ac_cv_exeext
1874 echo "$as_me:$LINENO: result: $ac_file" >&5
1875 echo "${ECHO_T}$ac_file" >&6
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
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; }; then
1892 if test "$cross_compiling" = maybe; then
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; }; }
1905 echo "$as_me:$LINENO: result: yes" >&5
1906 echo "${ECHO_T}yes" >&6
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
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
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
1928 for ac_file in conftest.exe conftest conftest.*; do
1929 test -f "$ac_file" || continue
1931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1932 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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; }; }
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
1950 rm -f conftest.$ac_ext
1951 EXEEXT=$ac_cv_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
1958 cat >conftest.$ac_ext <<_ACEOF
1961 cat confdefs.h >>conftest.$ac_ext
1962 cat >>conftest.$ac_ext <<_ACEOF
1963 /* end confdefs.h. */
1973 rm -f conftest.o conftest.obj
1974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1975 (eval $ac_compile) 2>&5
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
1981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1982 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1987 echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
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; }; }
1997 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1999 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2000 echo "${ECHO_T}$ac_cv_objext" >&6
2001 OBJEXT=$ac_cv_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
2008 cat >conftest.$ac_ext <<_ACEOF
2011 cat confdefs.h >>conftest.$ac_ext
2012 cat >>conftest.$ac_ext <<_ACEOF
2013 /* end confdefs.h. */
2026 rm -f conftest.$ac_objext
2027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028 (eval $ac_compile) 2>conftest.er1
2030 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; }; then
2049 echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2055 ac_cv_c_compiler_gnu=$ac_compiler_gnu
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
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
2069 cat >conftest.$ac_ext <<_ACEOF
2072 cat confdefs.h >>conftest.$ac_ext
2073 cat >>conftest.$ac_ext <<_ACEOF
2074 /* end confdefs.h. */
2084 rm -f conftest.$ac_objext
2085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086 (eval $ac_compile) 2>conftest.er1
2088 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; }; then
2107 echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
2125 if test "$GCC" = yes; then
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
2136 ac_cv_prog_cc_stdc=no
2138 cat >conftest.$ac_ext <<_ACEOF
2141 cat confdefs.h >>conftest.$ac_ext
2142 cat >>conftest.$ac_ext <<_ACEOF
2143 /* end confdefs.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)
2157 static char *f (char * (*g) (char **, int), char **p, ...)
2162 s = g (p, va_arg (v,int));
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];
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);
2185 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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__"
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
2204 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2221 ac_cv_prog_cc_stdc=$ac_arg
2224 echo "$as_me: failed program was:" >&5
2225 sed 's/^/| /' conftest.$ac_ext >&5
2228 rm -f conftest.err conftest.$ac_objext
2230 rm -f conftest.$ac_ext conftest.$ac_objext
2235 case "x$ac_cv_prog_cc_stdc" in
2237 echo "$as_me:$LINENO: result: none needed" >&5
2238 echo "${ECHO_T}none needed" >&6 ;;
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" ;;
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
2254 rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>conftest.er1
2258 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2275 for ac_declaration in \
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);' \
2283 cat >conftest.$ac_ext <<_ACEOF
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h. */
2299 rm -f conftest.$ac_objext
2300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2301 (eval $ac_compile) 2>conftest.er1
2303 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; }; then
2322 echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328 cat >conftest.$ac_ext <<_ACEOF
2331 cat confdefs.h >>conftest.$ac_ext
2332 cat >>conftest.$ac_ext <<_ACEOF
2333 /* end confdefs.h. */
2343 rm -f conftest.$ac_objext
2344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345 (eval $ac_compile) 2>conftest.er1
2347 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2366 echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2373 if test -n "$ac_declaration"; then
2374 echo '#ifdef __cplusplus' >>confdefs.h
2375 echo $ac_declaration >>confdefs.h
2376 echo '#endif' >>confdefs.h
2380 echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
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
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
2406 if test -n "$CXX"; then
2407 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2426 if test -n "$CXX"; then
2427 echo "$as_me:$LINENO: result: $CXX" >&5
2428 echo "${ECHO_T}$CXX" >&6
2430 echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6
2434 test -n "$CXX" && break
2437 if test -z "$CXX"; then
2439 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
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
2448 if test -n "$ac_ct_CXX"; then
2449 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
2472 echo "$as_me:$LINENO: result: no" >&5
2473 echo "${ECHO_T}no" >&6
2476 test -n "$ac_ct_CXX" && break
2478 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
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
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
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
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }
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
2509 cat >conftest.$ac_ext <<_ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529 (eval $ac_compile) 2>conftest.er1
2531 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2556 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
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
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
2570 cat >conftest.$ac_ext <<_ACEOF
2573 cat confdefs.h >>conftest.$ac_ext
2574 cat >>conftest.$ac_ext <<_ACEOF
2575 /* end confdefs.h. */
2585 rm -f conftest.$ac_objext
2586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587 (eval $ac_compile) 2>conftest.er1
2589 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2606 ac_cv_prog_cxx_g=yes
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
2626 if test "$GXX" = yes; then
2632 for ac_declaration in \
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);' \
2640 cat >conftest.$ac_ext <<_ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2656 rm -f conftest.$ac_objext
2657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658 (eval $ac_compile) 2>conftest.er1
2660 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 cat >conftest.$ac_ext <<_ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2700 rm -f conftest.$ac_objext
2701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702 (eval $ac_compile) 2>conftest.er1
2704 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; }; then
2723 echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730 if test -n "$ac_declaration"; then
2731 echo '#ifdef __cplusplus' >>confdefs.h
2732 echo $ac_declaration >>confdefs.h
2733 echo '#endif' >>confdefs.h
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
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
2753 if test -z "$CPP"; then
2754 if test "${ac_cv_prog_CPP+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 # Double quotes because CPP needs to be expanded
2758 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2761 for ac_c_preproc_warn_flag in '' yes
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
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2776 # include <limits.h>
2778 # include <assert.h>
2782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2785 grep -v '^ *+' conftest.er1 >conftest.err
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
2799 if test -z "$ac_cpp_err"; then
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2805 # Broken: fails on valid input.
2808 rm -f conftest.err conftest.$ac_ext
2810 # OK, works on sane cases. Now check whether non-existent headers
2811 # can be detected and how.
2812 cat >conftest.$ac_ext <<_ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2818 #include <ac_nonexistent.h>
2820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2823 grep -v '^ *+' conftest.er1 >conftest.err
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
2837 if test -z "$ac_cpp_err"; then
2838 # Broken: success on invalid input.
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2844 # Passes both tests.
2848 rm -f conftest.err conftest.$ac_ext
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
2865 echo "$as_me:$LINENO: result: $CPP" >&5
2866 echo "${ECHO_T}$CPP" >&6
2868 for ac_c_preproc_warn_flag in '' yes
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
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2883 # include <limits.h>
2885 # include <assert.h>
2889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2892 grep -v '^ *+' conftest.er1 >conftest.err
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
2906 if test -z "$ac_cpp_err"; then
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2912 # Broken: fails on valid input.
2915 rm -f conftest.err conftest.$ac_ext
2917 # OK, works on sane cases. Now check whether non-existent headers
2918 # can be detected and how.
2919 cat >conftest.$ac_ext <<_ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2925 #include <ac_nonexistent.h>
2927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2930 grep -v '^ *+' conftest.er1 >conftest.err
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
2944 if test -z "$ac_cpp_err"; then
2945 # Broken: success on invalid input.
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 # Passes both tests.
2955 rm -f conftest.err conftest.$ac_ext
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
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; }; }
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
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
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
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 test -z "$as_dir" && as_dir=.
3000 # Account for people who put trailing slashes in PATH elements.
3002 ./ | .// | /cC/* | \
3003 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3004 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
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
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.
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.
3022 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3034 if test "${ac_cv_path_install+set}" = set; then
3035 INSTALL=$ac_cv_path_install
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
3044 echo "$as_me:$LINENO: result: $INSTALL" >&5
3045 echo "${ECHO_T}$INSTALL" >&6
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}'
3051 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3053 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3055 for ac_prog in gawk mawk nawk awk
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
3064 if test -n "$AWK"; then
3065 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3084 if test -n "$AWK"; then
3085 echo "$as_me:$LINENO: result: $AWK" >&5
3086 echo "${ECHO_T}$AWK" >&6
3088 echo "$as_me:$LINENO: result: no" >&5
3089 echo "${ECHO_T}no" >&6
3092 test -n "$AWK" && break
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
3103 if test -z "$orig_CXXFLAGS"; then
3105 if test x$GCC = xyes && test "x$GXX" = xyes; then
3112 if test x$GCC = xyes && test x$GXX = xyes; then
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
3119 ac_check_lib_save_LIBS=$LIBS
3120 LIBS="-lsupc++ $LIBS"
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
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
3141 grep -v '^ *+' conftest.er1 >conftest.err
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
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
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 ac_cv_lib_supcpp_main=yes
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 ac_cv_lib_supcpp_main=no
3165 rm -f conftest.err conftest.$ac_objext \
3166 conftest$ac_exeext conftest.$ac_ext
3167 LIBS=$ac_check_lib_save_LIBS
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
3174 LIBS="$LIBS -lsupc++"
3183 cat >>confdefs.h <<\_ACEOF
3184 #define _GNU_SOURCE 1
3191 cat >>confdefs.h <<\_ACEOF
3192 #define _XOPEN_SOURCE_EXTENDED 1
3196 cat >>confdefs.h <<\_ACEOF
3197 #define _XOPEN_SOURCE 2
3201 cat >>confdefs.h <<\_ACEOF
3202 #define __EXTENSIONS__ 1
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
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
3228 # Double quotes because CXXCPP needs to be expanded
3229 for CXXCPP in "$CXX -E" "/lib/cpp"
3232 for ac_cxx_preproc_warn_flag in '' yes
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
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3247 # include <limits.h>
3249 # include <assert.h>
3253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3256 grep -v '^ *+' conftest.er1 >conftest.err
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
3270 if test -z "$ac_cpp_err"; then
3273 echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 # Broken: fails on valid input.
3279 rm -f conftest.err conftest.$ac_ext
3281 # OK, works on sane cases. Now check whether non-existent headers
3282 # can be detected and how.
3283 cat >conftest.$ac_ext <<_ACEOF
3286 cat confdefs.h >>conftest.$ac_ext
3287 cat >>conftest.$ac_ext <<_ACEOF
3288 /* end confdefs.h. */
3289 #include <ac_nonexistent.h>
3291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3294 grep -v '^ *+' conftest.er1 >conftest.err
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
3308 if test -z "$ac_cpp_err"; then
3309 # Broken: success on invalid input.
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3315 # Passes both tests.
3319 rm -f conftest.err conftest.$ac_ext
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
3329 ac_cv_prog_CXXCPP=$CXXCPP
3332 CXXCPP=$ac_cv_prog_CXXCPP
3334 ac_cv_prog_CXXCPP=$CXXCPP
3336 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3337 echo "${ECHO_T}$CXXCPP" >&6
3339 for ac_cxx_preproc_warn_flag in '' yes
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
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3354 # include <limits.h>
3356 # include <assert.h>
3360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3363 grep -v '^ *+' conftest.er1 >conftest.err
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
3377 if test -z "$ac_cpp_err"; then
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3383 # Broken: fails on valid input.
3386 rm -f conftest.err conftest.$ac_ext
3388 # OK, works on sane cases. Now check whether non-existent headers
3389 # can be detected and how.
3390 cat >conftest.$ac_ext <<_ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3396 #include <ac_nonexistent.h>
3398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3401 grep -v '^ *+' conftest.er1 >conftest.err
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
3415 if test -z "$ac_cpp_err"; then
3416 # Broken: success on invalid input.
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 # Passes both tests.
3426 rm -f conftest.err conftest.$ac_ext
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
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; }; }
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
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
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'
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
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
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
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
3486 echo "$as_me:$LINENO: result: no" >&5
3487 echo "${ECHO_T}no" >&6
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
3497 ac_func_search_save_LIBS=$LIBS
3498 ac_cv_search_strerror=no
3499 cat >conftest.$ac_ext <<_ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3506 /* Override any gcc2 internal prototype to avoid an error. */
3510 /* We use char because int might match the return type of a gcc2
3511 builtin and then its argument prototype would still apply. */
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
3525 grep -v '^ *+' conftest.er1 >conftest.err
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
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
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
3542 ac_cv_search_strerror="none required"
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
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
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3560 /* Override any gcc2 internal prototype to avoid an error. */
3564 /* We use char because int might match the return type of a gcc2
3565 builtin and then its argument prototype would still apply. */
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
3579 grep -v '^ *+' conftest.er1 >conftest.err
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
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
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; }; then
3596 ac_cv_search_strerror="-l$ac_lib"
3599 echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3603 rm -f conftest.err conftest.$ac_objext \
3604 conftest$ac_exeext conftest.$ac_ext
3607 LIBS=$ac_func_search_save_LIBS
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"
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
3622 cat >conftest.$ac_ext <<_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
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. */
3638 # include <limits.h>
3640 # include <assert.h>
3645 /* Override any gcc2 internal prototype to avoid an error. */
3650 /* We use char because int might match the return type of a gcc2
3651 builtin and then its argument prototype would still apply. */
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)
3659 char (*f) () = setlocale;
3668 return f != setlocale;
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
3677 grep -v '^ *+' conftest.er1 >conftest.err
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
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
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 ac_cv_func_setlocale=yes
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 ac_cv_func_setlocale=no
3701 rm -f conftest.err conftest.$ac_objext \
3702 conftest$ac_exeext conftest.$ac_ext
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
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
3714 ac_check_lib_save_LIBS=$LIBS
3716 cat >conftest.$ac_ext <<_ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3723 /* Override any gcc2 internal prototype to avoid an error. */
3727 /* We use char because int might match the return type of a gcc2
3728 builtin and then its argument prototype would still apply. */
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
3742 grep -v '^ *+' conftest.er1 >conftest.err
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
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
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; }; then
3759 ac_cv_lib_xpg4_setlocale=yes
3761 echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3764 ac_cv_lib_xpg4_setlocale=no
3766 rm -f conftest.err conftest.$ac_objext \
3767 conftest$ac_exeext conftest.$ac_ext
3768 LIBS=$ac_check_lib_save_LIBS
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
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
3784 cat >conftest.$ac_ext <<_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
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. */
3800 # include <limits.h>
3802 # include <assert.h>
3805 #undef gethostbyname
3807 /* Override any gcc2 internal prototype to avoid an error. */
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)
3821 char (*f) () = gethostbyname;
3830 return f != gethostbyname;
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
3839 grep -v '^ *+' conftest.er1 >conftest.err
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
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
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; }; then
3856 ac_cv_func_gethostbyname=yes
3858 echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3861 ac_cv_func_gethostbyname=no
3863 rm -f conftest.err conftest.$ac_objext \
3864 conftest$ac_exeext conftest.$ac_ext
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
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
3876 ac_check_lib_save_LIBS=$LIBS
3878 cat >conftest.$ac_ext <<_ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3885 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
3904 grep -v '^ *+' conftest.er1 >conftest.err
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
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
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; }; then
3921 ac_cv_lib_nsl_gethostbyname=yes
3923 echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3926 ac_cv_lib_nsl_gethostbyname=no
3928 rm -f conftest.err conftest.$ac_objext \
3929 conftest$ac_exeext conftest.$ac_ext
3930 LIBS=$ac_check_lib_save_LIBS
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
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
3945 cat >conftest.$ac_ext <<_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
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. */
3961 # include <limits.h>
3963 # include <assert.h>
3968 /* Override any gcc2 internal prototype to avoid an error. */
3973 /* We use char because int might match the return type of a gcc2
3974 builtin and then its argument prototype would still apply. */
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)
3982 char (*f) () = socket;
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
4000 grep -v '^ *+' conftest.er1 >conftest.err
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
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
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4017 ac_cv_func_socket=yes
4019 echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4022 ac_cv_func_socket=no
4024 rm -f conftest.err conftest.$ac_objext \
4025 conftest$ac_exeext conftest.$ac_ext
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
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
4037 ac_check_lib_save_LIBS=$LIBS
4038 LIBS="-lsocket $LIBS"
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4046 /* Override any gcc2 internal prototype to avoid an error. */
4050 /* We use char because int might match the return type of a gcc2
4051 builtin and then its argument prototype would still apply. */
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
4065 grep -v '^ *+' conftest.er1 >conftest.err
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
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
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; }; then
4082 ac_cv_lib_socket_socket=yes
4084 echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4087 ac_cv_lib_socket_socket=no
4089 rm -f conftest.err conftest.$ac_objext \
4090 conftest$ac_exeext conftest.$ac_ext
4091 LIBS=$ac_check_lib_save_LIBS
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"
4105 support_addstrings=no
4107 support_inheritpixmap=no
4110 support_keepscrolling=yes
4111 support_selectionscrolling=yes
4113 support_mousewheel=yes
4114 support_mouseslipwheel=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
4128 support_combining=yes
4129 support_8bitctrls=no
4130 support_iso14755=yes
4135 if test "x$enable_shared" = xyes; then
4137 cat >>confdefs.h <<\_ACEOF
4145 # Check whether --enable-everything or --disable-everything was given.
4146 if test "${enable_everything+set}" = set; then
4147 enableval="$enable_everything"
4149 if test x$enableval = xno; then
4152 support_inheritpixmap=no
4155 support_keepscrolling=no
4156 support_selectionscrolling=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
4173 support_combining=no
4174 support_8bitctrls=no
4179 if test x$enableval = xyes; then
4182 support_inheritpixmap=yes
4185 support_keepscrolling=yes
4186 support_selectionscrolling=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
4202 support_unicode3=yes
4203 support_combining=yes
4204 #support_8bitctrls=yes
4205 support_iso14755=yes
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
4345 cat >>confdefs.h <<\_ACEOF
4346 #define HALFSHADOW 1
4353 # Check whether --with-codesets or --without-codesets was given.
4354 if test "${with_codesets+set}" = set; then
4355 withval="$with_codesets"
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
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
4372 cat >>confdefs.h <<\_ACEOF
4373 #define TTY_GID_SUPPORT 1
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
4384 cat >>confdefs.h <<\_ACEOF
4385 #define NO_BACKSPACE_KEY 1
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
4396 cat >>confdefs.h <<\_ACEOF
4397 #define NO_DELETE_KEY 1
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
4408 cat >>confdefs.h <<\_ACEOF
4409 #define NO_RESOURCES 1
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
4420 cat >>confdefs.h <<\_ACEOF
4421 #define USE_XGETDEFAULT 1
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
4436 # Check whether --enable-fallback or --disable-fallback was given.
4437 if test "${enable_fallback+set}" = set; then
4438 enableval="$enable_fallback"
4440 test x$enableval = xyes && enableval=Rxvt
4441 test x$enableval = xno && enableval=
4442 RESFALLBACK="$enableval"
4446 if test x$RESFALLBACK != x; then
4448 cat >>confdefs.h <<_ACEOF
4449 #define RESFALLBACK "$RESFALLBACK"
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"
4462 cat >>confdefs.h <<_ACEOF
4463 #define RESNAME "$RESNAME"
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"
4475 cat >>confdefs.h <<_ACEOF
4476 #define RESCLASS "$RESCLASS"
4482 # Check whether --with-name or --without-name was given.
4483 if test "${with_name+set}" = set; then
4484 withval="$with_name"
4488 cat >>confdefs.h <<_ACEOF
4489 #define RXVTNAME "$RXVTNAME"
4493 RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
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
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
4509 cat >>confdefs.h <<\_ACEOF
4510 #define NO_SECONDARY_SCREEN 1
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
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
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
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
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
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
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
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
4577 DEBUG=-DDEBUG_MALLOC
4578 DLIB="-L/usr/local/lib -ldmalloc"
4579 DINCLUDE=-I/usr/local/include
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
4589 DLIB="-L/usr/local/lib -ldlmalloc"
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
4599 cat >>confdefs.h <<\_ACEOF
4600 #define SMART_RESIZE 1
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
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
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
4628 cat >>confdefs.h <<_ACEOF
4629 #define TERMENV "$withval"
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
4641 cat >>confdefs.h <<_ACEOF
4642 #define RXVT_TERMINFO "$withval"
4650 cat >>confdefs.h <<\_ACEOF
4651 #define PROTOTYPES 1
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
4664 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
4681 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4687 if test -n "$MV"; then
4688 echo "$as_me:$LINENO: result: $MV" >&5
4689 echo "${ECHO_T}$MV" >&6
4691 echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6
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
4704 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
4721 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4727 if test -n "$RM"; then
4728 echo "$as_me:$LINENO: result: $RM" >&5
4729 echo "${ECHO_T}$RM" >&6
4731 echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6
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
4744 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
4761 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4767 if test -n "$CP"; then
4768 echo "$as_me:$LINENO: result: $CP" >&5
4769 echo "${ECHO_T}$CP" >&6
4771 echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6
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
4784 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
4801 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
4807 if test -n "$LN"; then
4808 echo "$as_me:$LINENO: result: $LN" >&5
4809 echo "${ECHO_T}$LN" >&6
4811 echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6
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
4824 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
4841 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4847 if test -n "$SED"; then
4848 echo "$as_me:$LINENO: result: $SED" >&5
4849 echo "${ECHO_T}$SED" >&6
4851 echo "$as_me:$LINENO: result: no" >&5
4852 echo "${ECHO_T}no" >&6
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
4864 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
4881 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4885 ECHO=$ac_cv_path_ECHO
4887 if test -n "$ECHO"; then
4888 echo "$as_me:$LINENO: result: $ECHO" >&5
4889 echo "${ECHO_T}$ECHO" >&6
4891 echo "$as_me:$LINENO: result: no" >&5
4892 echo "${ECHO_T}no" >&6
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
4904 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
4921 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4927 if test -n "$CMP"; then
4928 echo "$as_me:$LINENO: result: $CMP" >&5
4929 echo "${ECHO_T}$CMP" >&6
4931 echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6
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
4944 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
4966 if test -n "$TBL"; then
4967 echo "$as_me:$LINENO: result: $TBL" >&5
4968 echo "${ECHO_T}$TBL" >&6
4970 echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6
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
4983 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
5005 if test -n "$TIC"; then
5006 echo "$as_me:$LINENO: result: $TIC" >&5
5007 echo "${ECHO_T}$TIC" >&6
5009 echo "$as_me:$LINENO: result: no" >&5
5010 echo "${ECHO_T}no" >&6
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
5021 ac_path_x_has_been_run=yes
5023 # Check whether --with-x or --without-x was given.
5024 if test "${with_x+set}" = set; then
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.
5033 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5034 # Both variables are already set.
5037 if test "${ac_cv_have_x+set}" = set; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
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
5043 if mkdir conftest.dir; then
5045 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5046 cat >Imakefile <<'_ACEOF'
5048 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
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
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
5065 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5067 case $ac_im_usrlibdir in
5069 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5076 # Standard set of common directories for X headers.
5077 # Check X11 before X11Rn because it is often a symlink to the current release.
5089 /usr/local/X11/include
5090 /usr/local/X11R6/include
5091 /usr/local/X11R5/include
5092 /usr/local/X11R4/include
5094 /usr/local/include/X11
5095 /usr/local/include/X11R6
5096 /usr/local/include/X11R5
5097 /usr/local/include/X11R4
5101 /usr/XFree86/include/X11
5105 /usr/unsupported/include
5107 /usr/local/x11r5/include
5108 /usr/lpp/Xamples/include
5110 /usr/openwin/include
5111 /usr/openwin/share/include'
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
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5122 #include <X11/Xlib.h>
5124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5127 grep -v '^ *+' conftest.er1 >conftest.err
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
5141 if test -z "$ac_cpp_err"; then
5142 # We can compile using X headers with no special include directory.
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
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
5155 rm -f conftest.err conftest.$ac_ext
5156 fi # $ac_x_includes = no
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.
5164 cat >conftest.$ac_ext <<_ACEOF
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h. */
5170 #include <X11/Xlib.h>
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
5183 grep -v '^ *+' conftest.er1 >conftest.err
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
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
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; }; then
5201 # We can link X programs with no special library path.
5204 echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5208 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
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
5219 rm -f conftest.err conftest.$ac_objext \
5220 conftest$ac_exeext conftest.$ac_ext
5221 fi # $ac_x_libraries = no
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"
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"
5234 eval "$ac_cv_have_x"
5237 if test "$have_x" != yes; then
5238 echo "$as_me:$LINENO: result: $have_x" >&5
5239 echo "${ECHO_T}$have_x" >&6
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
5257 if test "$no_x" = yes; then
5258 # Not all programs may use this symbol, but it does not hurt to define it.
5260 cat >>confdefs.h <<\_ACEOF
5261 #define X_DISPLAY_MISSING 1
5264 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5266 if test -n "$x_includes"; then
5267 X_CFLAGS="$X_CFLAGS -I$x_includes"
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
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
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
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
5299 grep -v '^ *+' conftest.er1 >conftest.err
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
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
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; }; then
5318 echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
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"
5330 LIBS="$ac_xsave_LIBS -R $x_libraries"
5331 cat >conftest.$ac_ext <<_ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
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
5350 grep -v '^ *+' conftest.er1 >conftest.err
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
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
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; }; then
5369 echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
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"
5381 echo "$as_me:$LINENO: result: neither works" >&5
5382 echo "${ECHO_T}neither works" >&6
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.
5393 if test "$ISC" = yes; then
5394 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
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
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h. */
5407 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
5426 grep -v '^ *+' conftest.er1 >conftest.err
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
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
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; }; then
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
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
5453 ac_check_lib_save_LIBS=$LIBS
5455 cat >conftest.$ac_ext <<_ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5462 /* Override any gcc2 internal prototype to avoid an error. */
5466 /* We use char because int might match the return type of a gcc2
5467 builtin and then its argument prototype would still apply. */
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
5481 grep -v '^ *+' conftest.er1 >conftest.err
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
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
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5498 ac_cv_lib_dnet_dnet_ntoa=yes
5500 echo "$as_me: failed program was:" >&5
5501 sed 's/^/| /' conftest.$ac_ext >&5
5503 ac_cv_lib_dnet_dnet_ntoa=no
5505 rm -f conftest.err conftest.$ac_objext \
5506 conftest$ac_exeext conftest.$ac_ext
5507 LIBS=$ac_check_lib_save_LIBS
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"
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
5521 ac_check_lib_save_LIBS=$LIBS
5522 LIBS="-ldnet_stub $LIBS"
5523 cat >conftest.$ac_ext <<_ACEOF
5526 cat confdefs.h >>conftest.$ac_ext
5527 cat >>conftest.$ac_ext <<_ACEOF
5528 /* end confdefs.h. */
5530 /* Override any gcc2 internal prototype to avoid an error. */
5534 /* We use char because int might match the return type of a gcc2
5535 builtin and then its argument prototype would still apply. */
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
5549 grep -v '^ *+' conftest.er1 >conftest.err
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
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
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; }; then
5566 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5568 echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5571 ac_cv_lib_dnet_stub_dnet_ntoa=no
5573 rm -f conftest.err conftest.$ac_objext \
5574 conftest$ac_exeext conftest.$ac_ext
5575 LIBS=$ac_check_lib_save_LIBS
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"
5585 rm -f conftest.err conftest.$ac_objext \
5586 conftest$ac_exeext conftest.$ac_ext
5587 LIBS="$ac_xsave_LIBS"
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)
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
5602 cat >conftest.$ac_ext <<_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
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. */
5618 # include <limits.h>
5620 # include <assert.h>
5623 #undef gethostbyname
5625 /* Override any gcc2 internal prototype to avoid an error. */
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)
5639 char (*f) () = gethostbyname;
5648 return f != gethostbyname;
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
5657 grep -v '^ *+' conftest.er1 >conftest.err
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
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
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
5674 ac_cv_func_gethostbyname=yes
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5679 ac_cv_func_gethostbyname=no
5681 rm -f conftest.err conftest.$ac_objext \
5682 conftest$ac_exeext conftest.$ac_ext
5684 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5685 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
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
5693 ac_check_lib_save_LIBS=$LIBS
5695 cat >conftest.$ac_ext <<_ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5702 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
5721 grep -v '^ *+' conftest.er1 >conftest.err
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
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
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; }; then
5738 ac_cv_lib_nsl_gethostbyname=yes
5740 echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5743 ac_cv_lib_nsl_gethostbyname=no
5745 rm -f conftest.err conftest.$ac_objext \
5746 conftest$ac_exeext conftest.$ac_ext
5747 LIBS=$ac_check_lib_save_LIBS
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"
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
5761 ac_check_lib_save_LIBS=$LIBS
5763 cat >conftest.$ac_ext <<_ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5770 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
5789 grep -v '^ *+' conftest.er1 >conftest.err
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
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
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; }; then
5806 ac_cv_lib_bsd_gethostbyname=yes
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811 ac_cv_lib_bsd_gethostbyname=no
5813 rm -f conftest.err conftest.$ac_objext \
5814 conftest$ac_exeext conftest.$ac_ext
5815 LIBS=$ac_check_lib_save_LIBS
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"
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
5838 cat >conftest.$ac_ext <<_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
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. */
5854 # include <limits.h>
5856 # include <assert.h>
5861 /* Override any gcc2 internal prototype to avoid an error. */
5866 /* We use char because int might match the return type of a gcc2
5867 builtin and then its argument prototype would still apply. */
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)
5875 char (*f) () = connect;
5884 return f != connect;
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
5893 grep -v '^ *+' conftest.er1 >conftest.err
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
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
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }; }; then
5910 ac_cv_func_connect=yes
5912 echo "$as_me: failed program was:" >&5
5913 sed 's/^/| /' conftest.$ac_ext >&5
5915 ac_cv_func_connect=no
5917 rm -f conftest.err conftest.$ac_objext \
5918 conftest$ac_exeext conftest.$ac_ext
5920 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5921 echo "${ECHO_T}$ac_cv_func_connect" >&6
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
5929 ac_check_lib_save_LIBS=$LIBS
5930 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5931 cat >conftest.$ac_ext <<_ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5938 /* Override any gcc2 internal prototype to avoid an error. */
5942 /* We use char because int might match the return type of a gcc2
5943 builtin and then its argument prototype would still apply. */
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
5957 grep -v '^ *+' conftest.er1 >conftest.err
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
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
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }; }; then
5974 ac_cv_lib_socket_connect=yes
5976 echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5979 ac_cv_lib_socket_connect=no
5981 rm -f conftest.err conftest.$ac_objext \
5982 conftest$ac_exeext conftest.$ac_ext
5983 LIBS=$ac_check_lib_save_LIBS
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"
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
5999 cat >conftest.$ac_ext <<_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
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. */
6015 # include <limits.h>
6017 # include <assert.h>
6022 /* Override any gcc2 internal prototype to avoid an error. */
6027 /* We use char because int might match the return type of a gcc2
6028 builtin and then its argument prototype would still apply. */
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)
6036 char (*f) () = remove;
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
6054 grep -v '^ *+' conftest.er1 >conftest.err
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
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
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }; }; then
6071 ac_cv_func_remove=yes
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6076 ac_cv_func_remove=no
6078 rm -f conftest.err conftest.$ac_objext \
6079 conftest$ac_exeext conftest.$ac_ext
6081 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6082 echo "${ECHO_T}$ac_cv_func_remove" >&6
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
6090 ac_check_lib_save_LIBS=$LIBS
6091 LIBS="-lposix $LIBS"
6092 cat >conftest.$ac_ext <<_ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h. */
6099 /* Override any gcc2 internal prototype to avoid an error. */
6103 /* We use char because int might match the return type of a gcc2
6104 builtin and then its argument prototype would still apply. */
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
6118 grep -v '^ *+' conftest.er1 >conftest.err
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
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
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; }; then
6135 ac_cv_lib_posix_remove=yes
6137 echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6140 ac_cv_lib_posix_remove=no
6142 rm -f conftest.err conftest.$ac_objext \
6143 conftest$ac_exeext conftest.$ac_ext
6144 LIBS=$ac_check_lib_save_LIBS
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"
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
6160 cat >conftest.$ac_ext <<_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
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. */
6176 # include <limits.h>
6178 # include <assert.h>
6183 /* Override any gcc2 internal prototype to avoid an error. */
6188 /* We use char because int might match the return type of a gcc2
6189 builtin and then its argument prototype would still apply. */
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)
6197 char (*f) () = shmat;
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
6215 grep -v '^ *+' conftest.er1 >conftest.err
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
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
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; }; then
6232 ac_cv_func_shmat=yes
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6239 rm -f conftest.err conftest.$ac_objext \
6240 conftest$ac_exeext conftest.$ac_ext
6242 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6243 echo "${ECHO_T}$ac_cv_func_shmat" >&6
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
6251 ac_check_lib_save_LIBS=$LIBS
6253 cat >conftest.$ac_ext <<_ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h. */
6260 /* Override any gcc2 internal prototype to avoid an error. */
6264 /* We use char because int might match the return type of a gcc2
6265 builtin and then its argument prototype would still apply. */
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
6279 grep -v '^ *+' conftest.er1 >conftest.err
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
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
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6296 ac_cv_lib_ipc_shmat=yes
6298 echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6301 ac_cv_lib_ipc_shmat=no
6303 rm -f conftest.err conftest.$ac_objext \
6304 conftest$ac_exeext conftest.$ac_ext
6305 LIBS=$ac_check_lib_save_LIBS
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"
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
6330 ac_check_lib_save_LIBS=$LIBS
6331 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6332 cat >conftest.$ac_ext <<_ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6339 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
6349 IceConnectionNumber ();
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
6358 grep -v '^ *+' conftest.er1 >conftest.err
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
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
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }; then
6375 ac_cv_lib_ICE_IceConnectionNumber=yes
6377 echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6380 ac_cv_lib_ICE_IceConnectionNumber=no
6382 rm -f conftest.err conftest.$ac_objext \
6383 conftest$ac_exeext conftest.$ac_ext
6384 LIBS=$ac_check_lib_save_LIBS
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"
6392 LDFLAGS=$ac_save_LDFLAGS
6398 if test x$support_xpm = xyes; then
6402 # Initialize some more variables set by options.
6403 # The variables have the same names as the options, with
6404 # dashes changed to underlines.
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
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"
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"
6429 # --without-xpm overrides everything else, but does not touch the cache.
6431 # Check whether --with-xpm or --without-xpm was given.
6432 if test "${with_xpm+set}" = set; then
6436 if test "$with_xpm" = no; then
6439 if test "${ac_cv_have_xpm+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 vt_xpm_include_X11=no
6444 if test -n "$xpm_includes"; then
6445 vt_xpm_includes=$xpm_includes
6449 if test -n "$xpm_libraries"; then
6450 vt_xpm_libraries=$xpm_libraries
6455 if test "$vt_xpm_includes" = NO; then
6456 # Guess where to find xpm.h
6458 ac_save_CPPFLAGS="$CPPFLAGS"
6459 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6461 # First, try using that file with no special directory specified.
6462 cat >conftest.$ac_ext <<_ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 #include <X11/xpm.h>
6470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6473 grep -v '^ *+' conftest.er1 >conftest.err
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
6487 if test -z "$ac_cpp_err"; then
6488 # We can compile using X headers with no special include directory.
6490 vt_xpm_include_X11=yes
6492 echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6495 CPPFLAGS="$ac_save_CPPFLAGS"
6496 # Look for the header file in a standard set of common directories.
6499 /usr/X11R6/include \
6500 /usr/X11R5/include \
6501 /usr/X11R4/include \
6504 /usr/include/X11R6 \
6505 /usr/include/X11R5 \
6506 /usr/include/X11R4 \
6508 /usr/local/X11/include \
6509 /usr/local/X11R6/include \
6510 /usr/local/X11R5/include \
6511 /usr/local/X11R4/include \
6513 /usr/local/include/X11 \
6514 /usr/local/include/X11R6 \
6515 /usr/local/include/X11R5 \
6516 /usr/local/include/X11R4 \
6520 /usr/XFree86/include/X11 \
6523 /usr/local/include \
6524 /usr/unsupported/include \
6525 /usr/athena/include \
6526 /usr/local/x11r5/include \
6527 /usr/lpp/Xamples/include \
6529 /usr/openwin/include \
6530 /usr/openwin/share/include \
6533 if test -r "$ac_dir/X11/xpm.h"; then
6534 vt_xpm_includes="$ac_dir"
6535 vt_xpm_include_X11=yes
6538 if test -r "$ac_dir/xpm.h"; then
6539 vt_xpm_includes=$ac_dir
6545 rm -f conftest.err conftest.$ac_ext
6548 if test "$vt_xpm_libraries" = NO; then
6549 # Check for the libraries.
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
6558 cat confdefs.h >>conftest.$ac_ext
6559 cat >>conftest.$ac_ext <<_ACEOF
6560 /* end confdefs.h. */
6565 XpmReadFileToPixmap()
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
6574 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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.
6595 echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6598 LIBS="$ac_save_LIBS"
6599 # First see if replacing the include by lib works.
6601 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6612 /usr/local/X11/lib \
6613 /usr/local/X11R6/lib \
6614 /usr/local/X11R5/lib \
6615 /usr/local/X11R4/lib \
6617 /usr/local/lib/X11 \
6618 /usr/local/lib/X11R6 \
6619 /usr/local/lib/X11R5 \
6620 /usr/local/lib/X11R4 \
6624 /usr/XFree86/lib/X11 \
6628 /usr/unsupported/lib \
6630 /usr/local/x11r5/lib \
6631 /usr/lpp/Xamples/lib \
6634 /usr/openwin/share/lib \
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
6645 rm -f conftest.err conftest.$ac_objext \
6646 conftest$ac_exeext conftest.$ac_ext
6650 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6651 ac_cv_have_xpm="have_xpm=no"
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"
6658 eval "$ac_cv_have_xpm"
6661 if test "$have_xpm" != yes; then
6662 echo "$as_me:$LINENO: result: $have_xpm" >&5
6663 echo "${ECHO_T}$have_xpm" >&6
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
6672 vt_xpm_include_X11=no
6673 if test -z "$xpm_includes"; then
6674 cat >conftest.$ac_ext <<_ACEOF
6677 cat confdefs.h >>conftest.$ac_ext
6678 cat >>conftest.$ac_ext <<_ACEOF
6679 /* end confdefs.h. */
6680 #include <X11/xpm.h>
6682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6685 grep -v '^ *+' conftest.er1 >conftest.err
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
6699 if test -z "$ac_cpp_err"; then
6700 vt_xpm_include_X11=yes
6702 echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6707 rm -f conftest.err conftest.$ac_ext
6709 if test -r "$xpm_includes/X11/xpm.h"; then
6710 vt_xpm_include_X11=yes
6714 vt_xpm_includes=$xpm_includes
6716 if test "x$xpm_libraries" != xNO; then
6717 vt_xpm_libraries=$xpm_libraries
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"
6729 if test -n "$vt_xpm_includes"; then
6730 XPM_CFLAGS="-I$vt_xpm_includes"
6733 if test -n "$vt_xpm_libraries"; then
6734 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6736 if test "x$vt_xpm_include_X11" = xyes; then
6738 cat >>confdefs.h <<\_ACEOF
6739 #define XPM_INC_X11 1
6749 if test x$no_xpm = xyes; then
6750 support_xpm=needsmanualspecification
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
6759 cat >conftest.$ac_ext <<_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>
6768 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6771 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6779 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6784 rm -f conftest.$ac_objext
6785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6786 (eval $ac_compile) 2>conftest.er1
6788 grep -v '^ *+' conftest.er1 >conftest.err
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
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
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
6805 ac_cv_header_sys_wait_h=yes
6807 echo "$as_me: failed program was:" >&5
6808 sed 's/^/| /' conftest.$ac_ext >&5
6810 ac_cv_header_sys_wait_h=no
6812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
6818 cat >>confdefs.h <<\_ACEOF
6819 #define HAVE_SYS_WAIT_H 1
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
6829 cat >conftest.$ac_ext <<_ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6848 rm -f conftest.$ac_objext
6849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6850 (eval $ac_compile) 2>conftest.er1
6852 grep -v '^ *+' conftest.er1 >conftest.err
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
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
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); }; }; then
6869 ac_cv_header_stdc=yes
6871 echo "$as_me: failed program was:" >&5
6872 sed 's/^/| /' conftest.$ac_ext >&5
6874 ac_cv_header_stdc=no
6876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6890 $EGREP "memchr" >/dev/null 2>&1; then
6893 ac_cv_header_stdc=no
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
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h. */
6910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6911 $EGREP "free" >/dev/null 2>&1; then
6914 ac_cv_header_stdc=no
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
6925 cat >conftest.$ac_ext <<_ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6932 #if ((' ' & 0x0FF) == 0x020)
6933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
6943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6948 for (i = 0; i < 256; i++)
6949 if (XOR (islower (i), ISLOWER (i))
6950 || toupper (i) != TOUPPER (i))
6955 rm -f conftest$ac_exeext
6956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6957 (eval $ac_link) 2>&5
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
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; }; then
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
6973 ac_cv_header_stdc=no
6975 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
6983 cat >>confdefs.h <<\_ACEOF
6984 #define STDC_HEADERS 1
6989 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
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
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
7008 cat >conftest.$ac_ext <<_ACEOF
7011 cat confdefs.h >>conftest.$ac_ext
7012 cat >>conftest.$ac_ext <<_ACEOF
7013 /* end confdefs.h. */
7014 $ac_includes_default
7016 #include <$ac_header>
7018 rm -f conftest.$ac_objext
7019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7020 (eval $ac_compile) 2>conftest.er1
7022 grep -v '^ *+' conftest.er1 >conftest.err
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
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
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; }; then
7039 eval "$as_ac_Header=yes"
7041 echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7044 eval "$as_ac_Header=no"
7046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
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
7118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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>
7133 rm -f conftest.$ac_objext
7134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7135 (eval $ac_compile) 2>conftest.er1
7137 grep -v '^ *+' conftest.er1 >conftest.err
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
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
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; }; then
7154 ac_header_compiler=yes
7156 echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7159 ac_header_compiler=no
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
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
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7174 #include <$ac_header>
7176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7179 grep -v '^ *+' conftest.er1 >conftest.err
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
7193 if test -z "$ac_cpp_err"; then
7194 ac_header_preproc=yes
7196 echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7199 ac_header_preproc=no
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
7205 # So? What about this header?
7206 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
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
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;}
7229 ## ------------------------------------------ ##
7230 ## Report this to the AC_PACKAGE_NAME lists. ##
7231 ## ------------------------------------------ ##
7234 sed "s/^/$as_me: WARNING: /" >&2
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
7242 eval "$as_ac_Header=\$ac_header_preproc"
7244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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
7263 cat >conftest.$ac_ext <<_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>
7276 if ((struct tm *) 0)
7282 rm -f conftest.$ac_objext
7283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7284 (eval $ac_compile) 2>conftest.er1
7286 grep -v '^ *+' conftest.er1 >conftest.err
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
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
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; }; then
7303 ac_cv_header_time=yes
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7308 ac_cv_header_time=no
7310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
7316 cat >>confdefs.h <<\_ACEOF
7317 #define TIME_WITH_SYS_TIME 1
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
7328 cat >conftest.$ac_ext <<_ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h. */
7335 #include <sys/ioctl.h>
7336 #ifdef HAVE_TERMIOS_H
7337 #include <termios.h>
7347 rm -f conftest.$ac_objext
7348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7349 (eval $ac_compile) 2>conftest.er1
7351 grep -v '^ *+' conftest.er1 >conftest.err
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
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
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); }; }; then
7368 rxvt_cv_header_sysioctl=yes
7370 echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7373 rxvt_cv_header_sysioctl=no
7375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7377 echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7378 echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7380 if test -n "$GCC"; then
7385 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7387 ac_save_CFLAGS=$CFLAGS
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
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;}
7400 cat >conftest.$ac_ext <<_ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h. */
7410 (void) XOpenDisplay("foobar");
7413 rm -f conftest$ac_exeext
7414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7415 (eval $ac_link) 2>&5
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
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; }; then
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
7433 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
7446 if test "$cross_compiling" = yes; then
7449 cat >conftest.$ac_ext <<_ACEOF
7452 cat confdefs.h >>conftest.$ac_ext
7453 cat >>conftest.$ac_ext <<_ACEOF
7454 /* end confdefs.h. */
7459 (void) XOpenDisplay("foobar");
7462 rm -f conftest$ac_exeext
7463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7464 (eval $ac_link) 2>&5
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
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); }; }; then
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
7482 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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"
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
7497 cat >conftest.$ac_ext <<_ACEOF
7500 cat confdefs.h >>conftest.$ac_ext
7501 cat >>conftest.$ac_ext <<_ACEOF
7502 /* end confdefs.h. */
7503 #include <X11/Xlib.h>
7512 rm -f conftest.$ac_objext
7513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7514 (eval $ac_compile) 2>conftest.er1
7516 grep -v '^ *+' conftest.er1 >conftest.err
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
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
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; }; then
7533 rxvt_cv_xpointer=yes
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
7546 cat >>confdefs.h <<\_ACEOF
7547 #define HAVE_XPOINTER 1
7552 CFLAGS=$ac_save_CFLAGS
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
7560 cat >conftest.$ac_ext <<_ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7570 /* FIXME: Include the comments suggested by Paul. */
7572 /* Ultrix mips cc rejects this. */
7573 typedef int charset[2];
7575 /* SunOS 4.1.1 cc rejects this. */
7576 char const *const *ccp;
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
7585 const char *g = "string";
7586 ccp = &g + (g ? g-g : 0);
7587 /* HPUX 7.0 cc rejects these. */
7590 ccp = (char const *const *) p;
7591 { /* SCO 3.2v4 cc rejects this. */
7593 char const *s = 0 ? (char *) 0 : (char const *) 0;
7597 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7599 const int *foo = &x[0];
7602 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7603 typedef const int *iptr;
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;
7612 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7621 rm -f conftest.$ac_objext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7623 (eval $ac_compile) 2>conftest.er1
7625 grep -v '^ *+' conftest.er1 >conftest.err
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
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
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; }; then
7644 echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
7655 cat >>confdefs.h <<\_ACEOF
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
7667 for ac_kw in inline __inline__ __inline; do
7668 cat >conftest.$ac_ext <<_ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7676 static $ac_kw foo_t static_foo () {return 0; }
7677 $ac_kw foo_t foo () {return 0; }
7681 rm -f conftest.$ac_objext
7682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7683 (eval $ac_compile) 2>conftest.er1
7685 grep -v '^ *+' conftest.er1 >conftest.err
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
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
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; }; then
7702 ac_cv_c_inline=$ac_kw; break
7704 echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7712 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7713 echo "${ECHO_T}$ac_cv_c_inline" >&6
7716 case $ac_cv_c_inline in
7719 case $ac_cv_c_inline in
7721 *) ac_val=$ac_cv_c_inline;;
7723 cat >>confdefs.h <<_ACEOF
7725 #define inline $ac_val
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
7738 cat >conftest.$ac_ext <<_ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7744 $ac_includes_default
7750 if (sizeof (mode_t))
7756 rm -f conftest.$ac_objext
7757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7758 (eval $ac_compile) 2>conftest.er1
7760 grep -v '^ *+' conftest.er1 >conftest.err
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
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
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; }; then
7777 ac_cv_type_mode_t=yes
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7782 ac_cv_type_mode_t=no
7784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
7792 cat >>confdefs.h <<_ACEOF
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
7803 cat >conftest.$ac_ext <<_ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h. */
7809 $ac_includes_default
7821 rm -f conftest.$ac_objext
7822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7823 (eval $ac_compile) 2>conftest.er1
7825 grep -v '^ *+' conftest.er1 >conftest.err
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
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
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; }; then
7842 ac_cv_type_pid_t=yes
7844 echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
7857 cat >>confdefs.h <<_ACEOF
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
7868 cat >conftest.$ac_ext <<_ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7874 #include <sys/types.h>
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
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
7890 cat >>confdefs.h <<\_ACEOF
7895 cat >>confdefs.h <<\_ACEOF
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
7907 cat >conftest.$ac_ext <<_ACEOF
7910 cat confdefs.h >>conftest.$ac_ext
7911 cat >>conftest.$ac_ext <<_ACEOF
7912 /* end confdefs.h. */
7913 $ac_includes_default
7925 rm -f conftest.$ac_objext
7926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7927 (eval $ac_compile) 2>conftest.er1
7929 grep -v '^ *+' conftest.er1 >conftest.err
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
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
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; }; then
7946 ac_cv_type_short=yes
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7955 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7956 echo "${ECHO_T}$ac_cv_type_short" >&6
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
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
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h. */
7976 $ac_includes_default
7980 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7987 rm -f conftest.$ac_objext
7988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7989 (eval $ac_compile) 2>conftest.er1
7991 grep -v '^ *+' conftest.er1 >conftest.err
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
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
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8010 cat >conftest.$ac_ext <<_ACEOF
8013 cat confdefs.h >>conftest.$ac_ext
8014 cat >>conftest.$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8016 $ac_includes_default
8020 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8027 rm -f conftest.$ac_objext
8028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8029 (eval $ac_compile) 2>conftest.er1
8031 grep -v '^ *+' conftest.er1 >conftest.err
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
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
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; }; then
8048 ac_hi=$ac_mid; break
8050 echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8053 ac_lo=`expr $ac_mid + 1`
8054 if test $ac_lo -le $ac_mid; then
8058 ac_mid=`expr 2 '*' $ac_mid + 1`
8060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8066 cat >conftest.$ac_ext <<_ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8072 $ac_includes_default
8076 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
8083 rm -f conftest.$ac_objext
8084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8085 (eval $ac_compile) 2>conftest.er1
8087 grep -v '^ *+' conftest.er1 >conftest.err
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
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
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); }; }; then
8106 cat >conftest.$ac_ext <<_ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8112 $ac_includes_default
8116 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
8123 rm -f conftest.$ac_objext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8125 (eval $ac_compile) 2>conftest.er1
8127 grep -v '^ *+' conftest.er1 >conftest.err
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
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
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8144 ac_lo=$ac_mid; break
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8149 ac_hi=`expr '(' $ac_mid ')' - 1`
8150 if test $ac_mid -le $ac_hi; then
8154 ac_mid=`expr 2 '*' $ac_mid`
8156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8159 echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.$ac_ext >&5
8164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8176 $ac_includes_default
8180 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8187 rm -f conftest.$ac_objext
8188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8189 (eval $ac_compile) 2>conftest.er1
8191 grep -v '^ *+' conftest.er1 >conftest.err
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
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
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; }; then
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8213 ac_lo=`expr '(' $ac_mid ')' + 1`
8215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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; }; } ;;
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; }; }
8231 cat >conftest.$ac_ext <<_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)); }
8246 FILE *f = fopen ("conftest.val", "w");
8249 if (((long) (sizeof (short))) < 0)
8251 long i = longval ();
8252 if (i != ((long) (sizeof (short))))
8254 fprintf (f, "%ld\n", i);
8258 unsigned long i = ulongval ();
8259 if (i != ((long) (sizeof (short))))
8261 fprintf (f, "%lu\n", i);
8263 exit (ferror (f) || fclose (f) != 0);
8269 rm -f conftest$ac_exeext
8270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8271 (eval $ac_link) 2>&5
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
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; }; then
8280 ac_cv_sizeof_short=`cat conftest.val`
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
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; }; }
8293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8298 ac_cv_sizeof_short=0
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
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
8313 cat >conftest.$ac_ext <<_ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 $ac_includes_default
8331 rm -f conftest.$ac_objext
8332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8333 (eval $ac_compile) 2>conftest.er1
8335 grep -v '^ *+' conftest.er1 >conftest.err
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
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
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; }; then
8354 echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8361 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8362 echo "${ECHO_T}$ac_cv_type_int" >&6
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
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
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 $ac_includes_default
8386 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
8393 rm -f conftest.$ac_objext
8394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8395 (eval $ac_compile) 2>conftest.er1
8397 grep -v '^ *+' conftest.er1 >conftest.err
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
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
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; }; then
8416 cat >conftest.$ac_ext <<_ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h. */
8422 $ac_includes_default
8426 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8433 rm -f conftest.$ac_objext
8434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8435 (eval $ac_compile) 2>conftest.er1
8437 grep -v '^ *+' conftest.er1 >conftest.err
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
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
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; }; then
8454 ac_hi=$ac_mid; break
8456 echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8459 ac_lo=`expr $ac_mid + 1`
8460 if test $ac_lo -le $ac_mid; then
8464 ac_mid=`expr 2 '*' $ac_mid + 1`
8466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8472 cat >conftest.$ac_ext <<_ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8478 $ac_includes_default
8482 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8489 rm -f conftest.$ac_objext
8490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8491 (eval $ac_compile) 2>conftest.er1
8493 grep -v '^ *+' conftest.er1 >conftest.err
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
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
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8512 cat >conftest.$ac_ext <<_ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8518 $ac_includes_default
8522 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8529 rm -f conftest.$ac_objext
8530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8531 (eval $ac_compile) 2>conftest.er1
8533 grep -v '^ *+' conftest.er1 >conftest.err
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
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
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; }; then
8550 ac_lo=$ac_mid; break
8552 echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8555 ac_hi=`expr '(' $ac_mid ')' - 1`
8556 if test $ac_mid -le $ac_hi; then
8560 ac_mid=`expr 2 '*' $ac_mid`
8562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8582 $ac_includes_default
8586 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8593 rm -f conftest.$ac_objext
8594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8595 (eval $ac_compile) 2>conftest.er1
8597 grep -v '^ *+' conftest.er1 >conftest.err
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
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
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; }; then
8616 echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8619 ac_lo=`expr '(' $ac_mid ')' + 1`
8621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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; }; } ;;
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; }; }
8637 cat >conftest.$ac_ext <<_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)); }
8652 FILE *f = fopen ("conftest.val", "w");
8655 if (((long) (sizeof (int))) < 0)
8657 long i = longval ();
8658 if (i != ((long) (sizeof (int))))
8660 fprintf (f, "%ld\n", i);
8664 unsigned long i = ulongval ();
8665 if (i != ((long) (sizeof (int))))
8667 fprintf (f, "%lu\n", i);
8669 exit (ferror (f) || fclose (f) != 0);
8675 rm -f conftest$ac_exeext
8676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8677 (eval $ac_link) 2>&5
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
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
8686 ac_cv_sizeof_int=`cat conftest.val`
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
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; }; }
8699 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
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
8719 cat >conftest.$ac_ext <<_ACEOF
8722 cat confdefs.h >>conftest.$ac_ext
8723 cat >>conftest.$ac_ext <<_ACEOF
8724 /* end confdefs.h. */
8725 $ac_includes_default
8729 if ((long long *) 0)
8731 if (sizeof (long long))
8737 rm -f conftest.$ac_objext
8738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8739 (eval $ac_compile) 2>conftest.er1
8741 grep -v '^ *+' conftest.er1 >conftest.err
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
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
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; }; then
8758 ac_cv_type_long_long=yes
8760 echo "$as_me: failed program was:" >&5
8761 sed 's/^/| /' conftest.$ac_ext >&5
8763 ac_cv_type_long_long=no
8765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8767 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8768 echo "${ECHO_T}$ac_cv_type_long_long" >&6
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
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
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h. */
8788 $ac_includes_default
8792 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8799 rm -f conftest.$ac_objext
8800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8801 (eval $ac_compile) 2>conftest.er1
8803 grep -v '^ *+' conftest.er1 >conftest.err
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
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
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
8822 cat >conftest.$ac_ext <<_ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8828 $ac_includes_default
8832 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8839 rm -f conftest.$ac_objext
8840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8841 (eval $ac_compile) 2>conftest.er1
8843 grep -v '^ *+' conftest.er1 >conftest.err
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
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
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); }; }; then
8860 ac_hi=$ac_mid; break
8862 echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8865 ac_lo=`expr $ac_mid + 1`
8866 if test $ac_lo -le $ac_mid; then
8870 ac_mid=`expr 2 '*' $ac_mid + 1`
8872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8875 echo "$as_me: failed program was:" >&5
8876 sed 's/^/| /' conftest.$ac_ext >&5
8878 cat >conftest.$ac_ext <<_ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h. */
8884 $ac_includes_default
8888 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8895 rm -f conftest.$ac_objext
8896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8897 (eval $ac_compile) 2>conftest.er1
8899 grep -v '^ *+' conftest.er1 >conftest.err
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
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
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; }; then
8918 cat >conftest.$ac_ext <<_ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h. */
8924 $ac_includes_default
8928 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8935 rm -f conftest.$ac_objext
8936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8937 (eval $ac_compile) 2>conftest.er1
8939 grep -v '^ *+' conftest.er1 >conftest.err
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
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
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; }; then
8956 ac_lo=$ac_mid; break
8958 echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.$ac_ext >&5
8961 ac_hi=`expr '(' $ac_mid ')' - 1`
8962 if test $ac_mid -le $ac_hi; then
8966 ac_mid=`expr 2 '*' $ac_mid`
8968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8971 echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.$ac_ext >&5
8976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8988 $ac_includes_default
8992 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8999 rm -f conftest.$ac_objext
9000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9001 (eval $ac_compile) 2>conftest.er1
9003 grep -v '^ *+' conftest.er1 >conftest.err
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
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
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); }; }; then
9022 echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9025 ac_lo=`expr '(' $ac_mid ')' + 1`
9027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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; }; } ;;
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; }; }
9043 cat >conftest.$ac_ext <<_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)); }
9058 FILE *f = fopen ("conftest.val", "w");
9061 if (((long) (sizeof (long long))) < 0)
9063 long i = longval ();
9064 if (i != ((long) (sizeof (long long))))
9066 fprintf (f, "%ld\n", i);
9070 unsigned long i = ulongval ();
9071 if (i != ((long) (sizeof (long long))))
9073 fprintf (f, "%lu\n", i);
9075 exit (ferror (f) || fclose (f) != 0);
9081 rm -f conftest$ac_exeext
9082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9083 (eval $ac_link) 2>&5
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
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; }; then
9092 ac_cv_sizeof_long_long=`cat conftest.val`
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
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; }; }
9105 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9110 ac_cv_sizeof_long_long=0
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
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
9125 cat >conftest.$ac_ext <<_ACEOF
9128 cat confdefs.h >>conftest.$ac_ext
9129 cat >>conftest.$ac_ext <<_ACEOF
9130 /* end confdefs.h. */
9131 $ac_includes_default
9143 rm -f conftest.$ac_objext
9144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9145 (eval $ac_compile) 2>conftest.er1
9147 grep -v '^ *+' conftest.er1 >conftest.err
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
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
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; }; then
9164 ac_cv_type_int_p=yes
9166 echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9173 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9174 echo "${ECHO_T}$ac_cv_type_int_p" >&6
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
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
9191 cat confdefs.h >>conftest.$ac_ext
9192 cat >>conftest.$ac_ext <<_ACEOF
9193 /* end confdefs.h. */
9194 $ac_includes_default
9198 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
9205 rm -f conftest.$ac_objext
9206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9207 (eval $ac_compile) 2>conftest.er1
9209 grep -v '^ *+' conftest.er1 >conftest.err
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
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
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; }; then
9228 cat >conftest.$ac_ext <<_ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h. */
9234 $ac_includes_default
9238 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9245 rm -f conftest.$ac_objext
9246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9247 (eval $ac_compile) 2>conftest.er1
9249 grep -v '^ *+' conftest.er1 >conftest.err
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
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
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; }; then
9266 ac_hi=$ac_mid; break
9268 echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9271 ac_lo=`expr $ac_mid + 1`
9272 if test $ac_lo -le $ac_mid; then
9276 ac_mid=`expr 2 '*' $ac_mid + 1`
9278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9281 echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.$ac_ext >&5
9284 cat >conftest.$ac_ext <<_ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h. */
9290 $ac_includes_default
9294 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
9301 rm -f conftest.$ac_objext
9302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9303 (eval $ac_compile) 2>conftest.er1
9305 grep -v '^ *+' conftest.er1 >conftest.err
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
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
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; }; then
9324 cat >conftest.$ac_ext <<_ACEOF
9327 cat confdefs.h >>conftest.$ac_ext
9328 cat >>conftest.$ac_ext <<_ACEOF
9329 /* end confdefs.h. */
9330 $ac_includes_default
9334 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
9341 rm -f conftest.$ac_objext
9342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9343 (eval $ac_compile) 2>conftest.er1
9345 grep -v '^ *+' conftest.er1 >conftest.err
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
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
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; }; then
9362 ac_lo=$ac_mid; break
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9367 ac_hi=`expr '(' $ac_mid ')' - 1`
9368 if test $ac_mid -le $ac_hi; then
9372 ac_mid=`expr 2 '*' $ac_mid`
9374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9377 echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h. */
9394 $ac_includes_default
9398 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9405 rm -f conftest.$ac_objext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9407 (eval $ac_compile) 2>conftest.er1
9409 grep -v '^ *+' conftest.er1 >conftest.err
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
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
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; }; then
9428 echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9431 ac_lo=`expr '(' $ac_mid ')' + 1`
9433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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; }; } ;;
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; }; }
9449 cat >conftest.$ac_ext <<_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 *)); }
9464 FILE *f = fopen ("conftest.val", "w");
9467 if (((long) (sizeof (int *))) < 0)
9469 long i = longval ();
9470 if (i != ((long) (sizeof (int *))))
9472 fprintf (f, "%ld\n", i);
9476 unsigned long i = ulongval ();
9477 if (i != ((long) (sizeof (int *))))
9479 fprintf (f, "%lu\n", i);
9481 exit (ferror (f) || fclose (f) != 0);
9487 rm -f conftest$ac_exeext
9488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9489 (eval $ac_link) 2>&5
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
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; }; then
9498 ac_cv_sizeof_int_p=`cat conftest.val`
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
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; }; }
9511 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9516 ac_cv_sizeof_int_p=0
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
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
9533 cat >conftest.$ac_ext <<_ACEOF
9536 cat confdefs.h >>conftest.$ac_ext
9537 cat >>conftest.$ac_ext <<_ACEOF
9538 /* end confdefs.h. */
9548 rm -f conftest.$ac_objext
9549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9550 (eval $ac_compile) 2>conftest.er1
9552 grep -v '^ *+' conftest.er1 >conftest.err
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
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
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; }; then
9571 echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.$ac_ext >&5
9574 if test "$ac_cv_sizeof_char" -ge 2; then
9575 rxvt_cv_int16_t=" char"
9577 if test "$ac_cv_sizeof_short" -ge 2; then
9578 rxvt_cv_int16_t=" short"
9580 if test "$ac_cv_sizeof_int" -ge 2; then
9581 rxvt_cv_int16_t=" int"
9583 if test "$ac_cv_sizeof_long" -ge 2; then
9584 rxvt_cv_int16_t=" long"
9586 if test "$ac_cv_sizeof_long_long" -ge 2; then
9587 rxvt_cv_int16_t=" long long"
9589 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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;"
9603 if test x"" = x; then
9604 rxvt_int16_typedef="/* typedef short int16_t; */"
9606 rxvt_int16_typedef="/* typedef short int16_t; */"
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
9615 cat >conftest.$ac_ext <<_ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h. */
9630 rm -f conftest.$ac_objext
9631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9632 (eval $ac_compile) 2>conftest.er1
9634 grep -v '^ *+' conftest.er1 >conftest.err
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
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
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; }; then
9651 rxvt_cv_uint16_t=yes
9653 echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.$ac_ext >&5
9656 if test "$ac_cv_sizeof_char" -ge 2; then
9657 rxvt_cv_uint16_t="unsigned char"
9659 if test "$ac_cv_sizeof_short" -ge 2; then
9660 rxvt_cv_uint16_t="unsigned short"
9662 if test "$ac_cv_sizeof_int" -ge 2; then
9663 rxvt_cv_uint16_t="unsigned int"
9665 if test "$ac_cv_sizeof_long" -ge 2; then
9666 rxvt_cv_uint16_t="unsigned long"
9668 if test "$ac_cv_sizeof_long_long" -ge 2; then
9669 rxvt_cv_uint16_t="unsigned long long"
9671 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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;"
9685 if test x"unsigned" = x; then
9686 rxvt_uint16_typedef="/* typedef short uint16_t; */"
9688 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
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
9697 cat >conftest.$ac_ext <<_ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9712 rm -f conftest.$ac_objext
9713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9714 (eval $ac_compile) 2>conftest.er1
9716 grep -v '^ *+' conftest.er1 >conftest.err
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
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
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; }; then
9735 echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9738 if test "$ac_cv_sizeof_char" -ge 4; then
9739 rxvt_cv_int32_t=" char"
9741 if test "$ac_cv_sizeof_short" -ge 4; then
9742 rxvt_cv_int32_t=" short"
9744 if test "$ac_cv_sizeof_int" -ge 4; then
9745 rxvt_cv_int32_t=" int"
9747 if test "$ac_cv_sizeof_long" -ge 4; then
9748 rxvt_cv_int32_t=" long"
9750 if test "$ac_cv_sizeof_long_long" -ge 4; then
9751 rxvt_cv_int32_t=" long long"
9753 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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;"
9767 if test x"" = x; then
9768 rxvt_int32_typedef="/* typedef int int32_t; */"
9770 rxvt_int32_typedef="/* typedef int int32_t; */"
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
9779 cat >conftest.$ac_ext <<_ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9794 rm -f conftest.$ac_objext
9795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9796 (eval $ac_compile) 2>conftest.er1
9798 grep -v '^ *+' conftest.er1 >conftest.err
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
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
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
9815 rxvt_cv_uint32_t=yes
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9820 if test "$ac_cv_sizeof_char" -ge 4; then
9821 rxvt_cv_uint32_t="unsigned char"
9823 if test "$ac_cv_sizeof_short" -ge 4; then
9824 rxvt_cv_uint32_t="unsigned short"
9826 if test "$ac_cv_sizeof_int" -ge 4; then
9827 rxvt_cv_uint32_t="unsigned int"
9829 if test "$ac_cv_sizeof_long" -ge 4; then
9830 rxvt_cv_uint32_t="unsigned long"
9832 if test "$ac_cv_sizeof_long_long" -ge 4; then
9833 rxvt_cv_uint32_t="unsigned long long"
9835 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
9842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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;"
9849 if test x"unsigned" = x; then
9850 rxvt_uint32_typedef="/* typedef int uint32_t; */"
9852 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
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"
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"
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"
9868 rxvt_intp_define="#error set intp_t"
9869 rxvt_u_intp_define="#error set u_intp_t"
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
9881 cat >conftest.$ac_ext <<_ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h. */
9887 #include <sys/types.h>
9893 extern "C" void (*signal (int, void (*)(int)))(int);
9895 void (*signal ()) ();
9906 rm -f conftest.$ac_objext
9907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9908 (eval $ac_compile) 2>conftest.er1
9910 grep -v '^ *+' conftest.er1 >conftest.err
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
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
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
9927 ac_cv_type_signal=void
9929 echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9932 ac_cv_type_signal=int
9934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9936 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9937 echo "${ECHO_T}$ac_cv_type_signal" >&6
9939 cat >>confdefs.h <<_ACEOF
9940 #define RETSIGTYPE $ac_cv_type_signal
9945 case "$host_alias" in
9946 *ultrix) ac_cv_func_setsid='no' ;;
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
9997 cat >conftest.$ac_ext <<_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
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. */
10013 # include <limits.h>
10015 # include <assert.h>
10020 /* Override any gcc2 internal prototype to avoid an error. */
10025 /* We use char because int might match the return type of a gcc2
10026 builtin and then its argument prototype would still apply. */
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)
10034 char (*f) () = $ac_func;
10043 return f != $ac_func;
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
10052 grep -v '^ *+' conftest.er1 >conftest.err
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
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
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); }; }; then
10069 eval "$as_ac_var=yes"
10071 echo "$as_me: failed program was:" >&5
10072 sed 's/^/| /' conftest.$ac_ext >&5
10074 eval "$as_ac_var=no"
10076 rm -f conftest.err conftest.$ac_objext \
10077 conftest$ac_exeext conftest.$ac_ext
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
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
10097 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10098 echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
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
10106 cat confdefs.h >>conftest.$ac_ext
10107 cat >>conftest.$ac_ext <<_ACEOF
10108 /* end confdefs.h. */
10109 $ac_includes_default
10112 rm -f conftest.$ac_objext
10113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10114 (eval $ac_compile) 2>conftest.er1
10116 grep -v '^ *+' conftest.er1 >conftest.err
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
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
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; }; then
10133 ac_header_compiler=yes
10135 echo "$as_me: failed program was:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10138 ac_header_compiler=no
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
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
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h. */
10155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10158 grep -v '^ *+' conftest.er1 >conftest.err
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
10172 if test -z "$ac_cpp_err"; then
10173 ac_header_preproc=yes
10175 echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10178 ac_header_preproc=no
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
10184 # So? What about this header?
10185 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
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
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;}
10208 ## ------------------------------------------ ##
10209 ## Report this to the AC_PACKAGE_NAME lists. ##
10210 ## ------------------------------------------ ##
10213 sed "s/^/$as_me: WARNING: /" >&2
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
10221 ac_cv_header_utmp_h=$ac_header_preproc
10223 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10224 echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
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
10233 cat >conftest.$ac_ext <<_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>
10250 rm -f conftest.$ac_objext
10251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10252 (eval $ac_compile) 2>conftest.er1
10254 grep -v '^ *+' conftest.er1 >conftest.err
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
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
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; }; then
10271 rxvt_cv_struct_utmp=yes
10273 echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10276 rxvt_cv_struct_utmp=no
10278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
10284 cat >>confdefs.h <<\_ACEOF
10285 #define HAVE_STRUCT_UTMP 1
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
10296 cat >conftest.$ac_ext <<_ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10302 #include <sys/types.h>
10307 struct utmp ut; ut.ut_host;
10312 rm -f conftest.$ac_objext
10313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10314 (eval $ac_compile) 2>conftest.er1
10316 grep -v '^ *+' conftest.er1 >conftest.err
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
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
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; }; then
10333 rxvt_cv_struct_utmp_host=yes
10335 echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10338 rxvt_cv_struct_utmp_host=no
10340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
10346 cat >>confdefs.h <<\_ACEOF
10347 #define HAVE_UTMP_HOST 1
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
10357 cat >conftest.$ac_ext <<_ACEOF
10360 cat confdefs.h >>conftest.$ac_ext
10361 cat >>conftest.$ac_ext <<_ACEOF
10362 /* end confdefs.h. */
10363 #include <sys/types.h>
10368 struct utmp ut; ut.ut_pid;
10373 rm -f conftest.$ac_objext
10374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10375 (eval $ac_compile) 2>conftest.er1
10377 grep -v '^ *+' conftest.er1 >conftest.err
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
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
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 rxvt_cv_struct_utmp_pid=yes
10396 echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10399 rxvt_cv_struct_utmp_pid=no
10401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
10407 cat >>confdefs.h <<\_ACEOF
10408 #define HAVE_UTMP_PID 1
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
10423 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10424 echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
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
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h. */
10435 $ac_includes_default
10438 rm -f conftest.$ac_objext
10439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10440 (eval $ac_compile) 2>conftest.er1
10442 grep -v '^ *+' conftest.er1 >conftest.err
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
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
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; }; then
10459 ac_header_compiler=yes
10461 echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10464 ac_header_compiler=no
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
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
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h. */
10481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10484 grep -v '^ *+' conftest.er1 >conftest.err
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
10498 if test -z "$ac_cpp_err"; then
10499 ac_header_preproc=yes
10501 echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10504 ac_header_preproc=no
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
10510 # So? What about this header?
10511 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
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
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;}
10534 ## ------------------------------------------ ##
10535 ## Report this to the AC_PACKAGE_NAME lists. ##
10536 ## ------------------------------------------ ##
10539 sed "s/^/$as_me: WARNING: /" >&2
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
10547 ac_cv_header_utmpx_h=$ac_header_preproc
10549 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10550 echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
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
10559 cat >conftest.$ac_ext <<_ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h. */
10565 #include <sys/types.h>
10575 rm -f conftest.$ac_objext
10576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10577 (eval $ac_compile) 2>conftest.er1
10579 grep -v '^ *+' conftest.er1 >conftest.err
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
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
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; }; then
10596 rxvt_cv_struct_utmpx=yes
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10601 rxvt_cv_struct_utmpx=no
10603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
10609 cat >>confdefs.h <<\_ACEOF
10610 #define HAVE_STRUCT_UTMPX 1
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
10621 cat >conftest.$ac_ext <<_ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h. */
10627 #include <sys/types.h>
10632 struct utmpx utx; utx.ut_host;
10637 rm -f conftest.$ac_objext
10638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10639 (eval $ac_compile) 2>conftest.er1
10641 grep -v '^ *+' conftest.er1 >conftest.err
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
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
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; }; then
10658 rxvt_cv_struct_utmpx_host=yes
10660 echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.$ac_ext >&5
10663 rxvt_cv_struct_utmpx_host=no
10665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
10671 cat >>confdefs.h <<\_ACEOF
10672 #define HAVE_UTMPX_HOST 1
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
10682 cat >conftest.$ac_ext <<_ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10688 #include <sys/types.h>
10693 struct utmpx utx; utx.ut_session;
10698 rm -f conftest.$ac_objext
10699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10700 (eval $ac_compile) 2>conftest.er1
10702 grep -v '^ *+' conftest.er1 >conftest.err
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
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
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; }; then
10719 rxvt_cv_struct_utmpx_session=yes
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10724 rxvt_cv_struct_utmpx_session=no
10726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
10732 cat >>confdefs.h <<\_ACEOF
10733 #define HAVE_UTMPX_SESSION 1
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
10746 cat >conftest.$ac_ext <<_ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h. */
10752 #include <sys/types.h>
10754 #ifdef HAVE_LASTLOG_H
10755 #include <lastlog.h>
10766 rm -f conftest.$ac_objext
10767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10768 (eval $ac_compile) 2>conftest.er1
10770 grep -v '^ *+' conftest.er1 >conftest.err
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
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
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; }; then
10787 rxvt_cv_struct_lastlog=yes
10789 echo "$as_me: failed program was:" >&5
10790 sed 's/^/| /' conftest.$ac_ext >&5
10792 rxvt_cv_struct_lastlog=no
10794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
10800 cat >>confdefs.h <<\_ACEOF
10801 #define HAVE_STRUCT_LASTLOG 1
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
10811 cat >conftest.$ac_ext <<_ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h. */
10817 #include <sys/types.h>
10819 #ifdef HAVE_LASTLOG_H
10820 #include <lastlog.h>
10826 struct lastlogx ll;
10831 rm -f conftest.$ac_objext
10832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10833 (eval $ac_compile) 2>conftest.er1
10835 grep -v '^ *+' conftest.er1 >conftest.err
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
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
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; }; then
10852 rxvt_cv_struct_lastlogx=yes
10854 echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.$ac_ext >&5
10857 rxvt_cv_struct_lastlogx=no
10859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
10865 cat >>confdefs.h <<\_ACEOF
10866 #define HAVE_STRUCT_LASTLOGX 1
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
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;}
10881 cat >conftest.$ac_ext <<_ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10888 #include <sys/types.h>
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");
10898 fprintf(f, "%s\n", UTMP_FILE);
10902 fprintf(f, "%s\n", _PATH_UTMP);
10905 for (u = utmplist; *u; u++) {
10906 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
10907 fprintf(f, "%s\n", *u);
10914 rm -f conftest$ac_exeext
10915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10916 (eval $ac_link) 2>&5
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
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; }; then
10925 rxvt_cv_path_utmp=`cat conftestval`
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
10931 ( exit $ac_status )
10934 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
10941 cat >>confdefs.h <<_ACEOF
10942 #define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
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
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;}
10957 cat >conftest.$ac_ext <<_ACEOF
10960 cat confdefs.h >>conftest.$ac_ext
10961 cat >>conftest.$ac_ext <<_ACEOF
10962 /* end confdefs.h. */
10964 #include <sys/types.h>
10967 #include <sys/stat.h>
10968 #ifdef HAVE_STRING_H
10969 #include <string.h>
10973 char **u, *p, *utmplist[] = {
10980 "/var/adm/utmpx", "/etc/utmpx", NULL };
10981 FILE *a, *f=fopen("conftestval", "w");
10982 struct stat statu, statux;
10984 for (u = utmplist; *u; u++) {
10985 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
10986 if (stat(*u, &statux) < 0)
10989 p[strlen(p) - 1] = '\0';
10990 if (stat(p, &statu) >= 0
10991 && (statu.st_mtime - statux.st_mtime > 86400))
10993 fprintf(f, "%s\n", *u);
11000 rm -f conftest$ac_exeext
11001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11002 (eval $ac_link) 2>&5
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
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; }; then
11011 rxvt_cv_path_utmpx=`cat conftestval`
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
11017 ( exit $ac_status )
11018 rxvt_cv_path_utmpx=
11020 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
11027 cat >>confdefs.h <<_ACEOF
11028 #define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
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
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;}
11043 cat >conftest.$ac_ext <<_ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11050 #include <sys/types.h>
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");
11062 fprintf(f, "%s\n", WTMP_FILE);
11066 fprintf(f, "%s\n", _PATH_WTMP);
11069 for (w = wtmplist; *w; w++) {
11070 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11071 fprintf(f, "%s\n", *w);
11078 rm -f conftest$ac_exeext
11079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11080 (eval $ac_link) 2>&5
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
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }; then
11089 rxvt_cv_path_wtmp=`cat conftestval`
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
11095 ( exit $ac_status )
11098 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
11105 cat >>confdefs.h <<_ACEOF
11106 #define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
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
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;}
11120 cat >conftest.$ac_ext <<_ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11127 #ifdef HAVE_UTMPX_H
11133 char **w, *wtmplist[] = {
11134 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
11135 FILE *a, *f=fopen("conftestval", "w");
11138 fprintf(f, "%s\n", WTMPX_FILE);
11142 fprintf(f, "%s\n", _PATH_WTMPX);
11145 for (w = wtmplist; *w; w++) {
11146 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11147 fprintf(f, "%s\n", *w);
11154 rm -f conftest$ac_exeext
11155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11156 (eval $ac_link) 2>&5
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
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; }; then
11165 rxvt_cv_path_wtmpx=`cat conftestval`
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
11171 ( exit $ac_status )
11172 rxvt_cv_path_wtmpx=
11174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
11181 cat >>confdefs.h <<_ACEOF
11182 #define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
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
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;}
11196 cat >conftest.$ac_ext <<_ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h. */
11203 #include <sys/types.h>
11204 #ifdef HAVE_UTMPX_H
11206 #elif defined(HAVE_UTMP_H)
11209 #ifdef HAVE_LASTLOG_H
11210 #include <lastlog.h>
11215 char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
11216 FILE *a, *f=fopen("conftestval", "w");
11218 #ifdef LASTLOG_FILE
11219 fprintf(f, "%s\n", LASTLOG_FILE);
11222 #ifdef _PATH_LASTLOG
11223 fprintf(f, "%s\n", _PATH_LASTLOG);
11226 for (w = lastloglist; *w; w++) {
11227 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11228 fprintf(f, "%s\n", *w);
11235 rm -f conftest$ac_exeext
11236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11237 (eval $ac_link) 2>&5
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
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; }; then
11246 rxvt_cv_path_lastlog=`cat conftestval`
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
11252 ( exit $ac_status )
11253 rxvt_cv_path_lastlog=
11255 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
11262 cat >>confdefs.h <<_ACEOF
11263 #define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
11266 if test -d "$rxvt_cv_path_lastlog"; then
11268 cat >>confdefs.h <<\_ACEOF
11269 #define LASTLOG_IS_DIR 1
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
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;}
11284 cat >conftest.$ac_ext <<_ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11291 #ifdef HAVE_UTMPX_H
11297 char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11298 FILE *a, *f=fopen("conftestval", "w");
11300 #ifdef LASTLOGX_FILE
11301 fprintf(f, "%s\n", LASTLOGX_FILE);
11304 #ifdef _PATH_LASTLOGX
11305 fprintf(f, "%s\n", _PATH_LASTLOGX);
11308 for (w = wtmplist; *w; w++) {
11309 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11310 fprintf(f, "%s\n", *w);
11317 rm -f conftest$ac_exeext
11318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11319 (eval $ac_link) 2>&5
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
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 rxvt_cv_path_lastlogx=`cat conftestval`
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
11334 ( exit $ac_status )
11335 rxvt_cv_path_lastlogx=
11337 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
11344 cat >>confdefs.h <<_ACEOF
11345 #define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
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
11356 for ttys_file in /etc/ttys /etc/ttytab;
11358 if test -f "$ttys_file" ; then
11359 rxvt_cv_path_ttytab=$ttys_file
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
11369 cat >>confdefs.h <<_ACEOF
11370 #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
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"`
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
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;}
11392 cat >conftest.$ac_ext <<_ACEOF
11395 cat confdefs.h >>conftest.$ac_ext
11396 cat >>conftest.$ac_ext <<_ACEOF
11397 /* end confdefs.h. */
11398 #include <X11/Xlib.h>
11401 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11402 exit (XSupportsLocale() ? 0 : 1);
11406 rm -f conftest$ac_exeext
11407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11408 (eval $ac_link) 2>&5
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
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; }; then
11417 rxvt_cv_func_xlocale=yes
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
11423 ( exit $ac_status )
11424 rxvt_cv_func_xlocale=no
11426 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
11433 cat >>confdefs.h <<\_ACEOF
11434 #define HAVE_XLOCALE 1
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
11444 cat >conftest.$ac_ext <<_ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h. */
11451 #include <X11/Xlocale.h>
11455 setlocale(LC_CTYPE, "");
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
11464 grep -v '^ *+' conftest.er1 >conftest.err
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
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
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; }; then
11481 rxvt_cv_func_xsetlocale=yes
11483 echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11486 rxvt_cv_func_xsetlocale=no
11488 rm -f conftest.err conftest.$ac_objext \
11489 conftest$ac_exeext conftest.$ac_ext
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
11495 cat >>confdefs.h <<\_ACEOF
11496 #define HAVE_XSETLOCALE 1
11501 CFLAGS=$ac_save_CFLAGS
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
11508 cat >conftest.$ac_ext <<_ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h. */
11518 setlocale(LC_CTYPE, "");
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
11527 grep -v '^ *+' conftest.er1 >conftest.err
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
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
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; }; then
11544 rxvt_cv_func_setlocale=yes
11546 echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11549 rxvt_cv_func_setlocale=no
11551 rm -f conftest.err conftest.$ac_objext \
11552 conftest$ac_exeext conftest.$ac_ext
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
11558 cat >>confdefs.h <<\_ACEOF
11559 #define HAVE_SETLOCALE 1
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
11569 cat >conftest.$ac_ext <<_ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11575 #include <langinfo.h>
11579 nl_langinfo(CODESET);
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
11588 grep -v '^ *+' conftest.er1 >conftest.err
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
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
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; }; then
11605 rxvt_cv_func_nl_langinfo=yes
11607 echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11610 rxvt_cv_func_nl_langinfo=no
11612 rm -f conftest.err conftest.$ac_objext \
11613 conftest$ac_exeext conftest.$ac_ext
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
11619 cat >>confdefs.h <<\_ACEOF
11620 #define HAVE_NL_LANGINFO 1
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
11630 cat >conftest.$ac_ext <<_ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h. */
11637 #include <sys/types.h>
11638 #include <sys/socket.h>
11650 iov.iov_base = &data;
11653 msg.msg_iov = &iov;
11654 msg.msg_iovlen = 1;
11655 msg.msg_control = buf;
11656 msg.msg_controllen = sizeof buf;
11658 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11659 cmsg->cmsg_level = SOL_SOCKET;
11660 cmsg->cmsg_type = SCM_RIGHTS;
11661 cmsg->cmsg_len = 100;
11663 *(int *)CMSG_DATA (cmsg) = 5;
11665 return sendmsg (3, &msg, 0);
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
11676 grep -v '^ *+' conftest.er1 >conftest.err
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
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
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); }; }; then
11693 rxvt_can_pass_fds=yes
11695 echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11698 rxvt_can_pass_fds=no
11700 rm -f conftest.err conftest.$ac_objext \
11701 conftest$ac_exeext conftest.$ac_ext
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
11707 cat >>confdefs.h <<\_ACEOF
11708 #define HAVE_UNIX_FDPASS 1
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
11718 cat >conftest.$ac_ext <<_ACEOF
11720 #include <X11/Xlib.h>
11722 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11726 cb.callback = im_destroy_cb;
11730 rm -f conftest.$ac_objext
11731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11732 (eval $ac_compile) 2>conftest.er1
11734 grep -v '^ *+' conftest.er1 >conftest.err
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
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
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; }; then
11751 rxvt_broken_ximcb=yes
11753 echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11756 rxvt_broken_ximcb=no
11758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11760 echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
11761 echo "${ECHO_T}$rxvt_broken_ximcb" >&6
11763 if test x$rxvt_broken_ximcb = xyes; then
11765 cat >>confdefs.h <<\_ACEOF
11766 #define XIMCB_PROTO_BROKEN 1
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
11776 cat >conftest.$ac_ext <<_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>
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
11798 grep -v '^ *+' conftest.er1 >conftest.err
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
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
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; }; then
11815 rxvt_cv_func_getpt=yes
11817 echo "$as_me: failed program was:" >&5
11818 sed 's/^/| /' conftest.$ac_ext >&5
11820 rxvt_cv_func_getpt=no
11822 rm -f conftest.err conftest.$ac_objext \
11823 conftest$ac_exeext conftest.$ac_ext
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
11829 cat >>confdefs.h <<\_ACEOF
11830 #define HAVE_GETPT 1
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
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
11844 else if test -c /dev/ttyp20; then
11846 else if test -c /dev/ptym/clone; then
11848 else if test x$rxvt_cv_func_getpt = xyes; then
11850 else if test -c /dev/ptc -a -c /dev/pts; then
11852 else if test -c /dev/ptc -a -d /dev/pts; then
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
11871 echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
11872 echo "${ECHO_T}$rxvt_cv_ptys" >&6
11874 if test x$rxvt_cv_ptys = xOPENPTY; then
11876 cat >>confdefs.h <<\_ACEOF
11877 #define PTYS_ARE_OPENPTY 1
11881 if test x$rxvt_cv_ptys = xSCO; then
11883 cat >>confdefs.h <<\_ACEOF
11884 #define PTYS_ARE_NUMERIC 1
11888 if test x$rxvt_cv_ptys = xSTREAMS; then
11890 cat >>confdefs.h <<\_ACEOF
11891 #define PTYS_ARE_PTMX 1
11895 if test x$rxvt_cv_ptys = xPTC; then
11897 cat >>confdefs.h <<\_ACEOF
11898 #define PTYS_ARE_PTC 1
11902 if test x$rxvt_cv_ptys = xSGI4; then
11904 cat >>confdefs.h <<\_ACEOF
11905 #define PTYS_ARE__GETPTY 1
11909 if test x$rxvt_cv_ptys = xCONVEX; then
11911 cat >>confdefs.h <<\_ACEOF
11912 #define PTYS_ARE_GETPTY 1
11916 if test x$rxvt_cv_ptys = xGLIBC; then
11918 cat >>confdefs.h <<\_ACEOF
11919 #define PTYS_ARE_GETPT 1
11923 if test x$rxvt_cv_ptys = xHPUX; then
11925 cat >>confdefs.h <<\_ACEOF
11926 #define PTYS_ARE_CLONE 1
11930 if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
11932 cat >>confdefs.h <<\_ACEOF
11933 #define PTYS_ARE_SEARCHED 1
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
11946 cat >>confdefs.h <<_ACEOF
11947 #define PTYCHAR1 "$pch1"
11951 if test x$pch2 != x; then
11953 cat >>confdefs.h <<_ACEOF
11954 #define PTYCHAR2 "$pch2"
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`"
11965 for ac_header in X11/Xft/Xft.h
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
11974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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>
11989 rm -f conftest.$ac_objext
11990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11991 (eval $ac_compile) 2>conftest.er1
11993 grep -v '^ *+' conftest.er1 >conftest.err
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
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
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; }; then
12010 ac_header_compiler=yes
12012 echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12015 ac_header_compiler=no
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
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
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12030 #include <$ac_header>
12032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12035 grep -v '^ *+' conftest.er1 >conftest.err
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
12049 if test -z "$ac_cpp_err"; then
12050 ac_header_preproc=yes
12052 echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12055 ac_header_preproc=no
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
12061 # So? What about this header?
12062 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
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
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;}
12085 ## ------------------------------------------ ##
12086 ## Report this to the AC_PACKAGE_NAME lists. ##
12087 ## ------------------------------------------ ##
12090 sed "s/^/$as_me: WARNING: /" >&2
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
12098 eval "$as_ac_Header=\$ac_header_preproc"
12100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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
12121 ac_check_lib_save_LIBS=$LIBS
12123 cat >conftest.$ac_ext <<_ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h. */
12130 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
12140 XftDrawString32 ();
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
12149 grep -v '^ *+' conftest.er1 >conftest.err
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
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
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 ac_cv_lib_Xft_XftDrawString32=yes
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12171 ac_cv_lib_Xft_XftDrawString32=no
12173 rm -f conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12175 LIBS=$ac_check_lib_save_LIBS
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
12191 if test x$support_xft = xyes; then
12193 cat >>confdefs.h <<\_ACEOF
12199 if test x$support_styles = xyes; then
12201 cat >>confdefs.h <<\_ACEOF
12202 #define ENABLE_STYLES 1
12206 if test x$support_iso14755 = xyes; then
12208 cat >>confdefs.h <<\_ACEOF
12209 #define ISO_14755 1
12213 if test x$support_8bitctrls = xyes; then
12215 cat >>confdefs.h <<\_ACEOF
12216 #define EIGHT_BIT_CONTROLS 1
12220 if test x$support_fading = xyes; then
12222 cat >>confdefs.h <<\_ACEOF
12223 #define OFF_FOCUS_FADING 1
12227 if test x$support_tinting = xyes; then
12229 cat >>confdefs.h <<\_ACEOF
12234 if test x$support_inheritpixmap = xyes; then
12236 cat >>confdefs.h <<\_ACEOF
12237 #define TRANSPARENT 1
12241 if test x$support_keepscrolling = xno; then
12243 cat >>confdefs.h <<\_ACEOF
12244 #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12248 if test x$support_selectionscrolling = xyes; then
12250 cat >>confdefs.h <<\_ACEOF
12251 #define SELECTION_SCROLLING 1
12255 if test x$support_menubar = xyes; then
12257 cat >>confdefs.h <<\_ACEOF
12262 if test x$support_frills = xyes; then
12264 cat >>confdefs.h <<\_ACEOF
12265 #define ENABLE_FRILLS 1
12269 if test x$support_24bit = xyes; then
12271 cat >>confdefs.h <<\_ACEOF
12272 #define PREFER_24BIT 1
12276 if test x$support_mousewheel = xyes; then
12278 cat >>confdefs.h <<\_ACEOF
12279 #define MOUSE_WHEEL 1
12283 if test x$support_mouseslipwheel = xyes; then
12285 cat >>confdefs.h <<\_ACEOF
12286 #define MOUSE_SLIP_WHEELING 1
12290 if test x$support_utmp = xyes; then
12292 cat >>confdefs.h <<\_ACEOF
12293 #define UTMP_SUPPORT 1
12297 if test x$support_wtmp = xyes; then
12299 cat >>confdefs.h <<\_ACEOF
12300 #define WTMP_SUPPORT 1
12304 if test x$support_lastlog = xyes; then
12306 cat >>confdefs.h <<\_ACEOF
12307 #define LASTLOG_SUPPORT 1
12311 if test x$support_xim = xyes -o x$multichar_set = xyes; then
12312 if test x$rxvt_cv_func_xlocale = xyes; then
12314 cat >>confdefs.h <<\_ACEOF
12320 if test x$support_xpm = xyes; then
12322 cat >>confdefs.h <<\_ACEOF
12323 #define XPM_BACKGROUND 1
12327 if test x$support_scroll_rxvt = xyes; then
12329 cat >>confdefs.h <<\_ACEOF
12330 #define RXVT_SCROLLBAR 1
12335 if test x$support_scroll_next = xyes; then
12337 cat >>confdefs.h <<\_ACEOF
12338 #define NEXT_SCROLLBAR 1
12341 scrolltypes="$scrolltypes next"
12343 if test x$support_scroll_xterm = xyes; then
12345 cat >>confdefs.h <<\_ACEOF
12346 #define XTERM_SCROLLBAR 1
12349 scrolltypes="$scrolltypes xterm"
12351 if test x$support_scroll_plain = xyes; then
12353 cat >>confdefs.h <<\_ACEOF
12354 #define PLAIN_SCROLLBAR 1
12357 scrolltypes="$scrolltypes plain"
12359 if test x$support_pointer_blank = xyes; then
12361 cat >>confdefs.h <<\_ACEOF
12362 #define POINTER_BLANK 1
12366 if test x$support_text_blink = xyes; then
12368 cat >>confdefs.h <<\_ACEOF
12369 #define TEXT_BLINK 1
12373 if test x$support_unicode3 = xyes; then
12375 cat >>confdefs.h <<\_ACEOF
12376 #define UNICODE_3 1
12380 if test x$support_combining = xyes; then
12382 cat >>confdefs.h <<\_ACEOF
12383 #define ENABLE_COMBINING 1
12387 if test x$codesets = xall; then
12388 codesets=jp,jp-ext,kr,zh,zh-ext
12391 cat >>confdefs.h <<\_ACEOF
12392 #define ENCODING_EU 1
12396 cat >>confdefs.h <<\_ACEOF
12397 #define ENCODING_VN 1
12400 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
12403 cat >>confdefs.h <<\_ACEOF
12404 #define ENCODING_JP 1
12408 cat >>confdefs.h <<\_ACEOF
12409 #define ENCODING_JP_EXT 1
12413 cat >>confdefs.h <<\_ACEOF
12414 #define ENCODING_KR 1
12418 cat >>confdefs.h <<\_ACEOF
12419 #define ENCODING_ZH 1
12423 cat >>confdefs.h <<\_ACEOF
12424 #define ENCODING_ZH_EXT 1
12431 CFLAGS=${CFLAGS--O}
12432 LDFLAGS=${LDFLAGS--O}
12434 CPPFLAGS="$CPPFLAGS"
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"`
12454 if test x$support_addstrings = xno; then
12456 cat >>confdefs.h <<\_ACEOF
12457 #define NO_STRINGS 1
12462 MCOMMON=./autoconf/Make.common
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,$//
12475 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
12482 if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
12483 include_stdint_h="#include <stdint.h>"
12485 include_stdint_h="/* #include <stdint.h> */"
12487 if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
12488 include_stdarg_h="#include <cstdarg>"
12490 include_stdarg_h="/* #include <cstdarg> */"
12492 if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
12493 include_stdlib_h="#include <cstdlib>"
12495 include_stdlib_h="/* #include <cstdlib> */"
12497 if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
12498 include_unistd_h="#include <unistd.h>"
12500 include_unistd_h="/* #include <unistd.h> */"
12502 if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
12503 include_string_h="#include <cstring>"
12505 include_string_h="/* #include <cstring> */"
12507 if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
12508 include_fcntl_h="#include <fcntl.h>"
12510 include_fcntl_h="/* #include <fcntl.h> */"
12512 if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
12513 include_util_h="#include <util.h>"
12515 include_util_h="/* #include <util.h> */"
12517 if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
12518 include_assert_h="#include <assert.h>"
12520 include_assert_h="/* #include <assert.h> */"
12522 if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
12523 include_sys_ioctl_h="#include <sys/ioctl.h>"
12525 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
12527 if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
12528 include_sys_select_h="#include <sys/select.h>"
12530 include_sys_select_h="/* #include <sys/select.h> */"
12532 if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
12533 include_sys_strredir_h="#include <sys/strredir.h>"
12535 include_sys_strredir_h="/* #include <sys/strredir.h> */"
12537 if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
12538 include_sys_time_h="#include <sys/time.h>"
12540 include_sys_time_h="/* #include <sys/time.h> */"
12542 if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
12543 include_time_h="#include <time.h>"
12545 include_time_h="/* #include <time.h> */"
12548 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/rxvtlib.h"
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.
12557 # config.status only pays attention to the cache file if you give it
12558 # the --recheck option to rerun configure.
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.
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.
12573 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12575 # `set' does not quote correctly, so add quotes (double-quote
12576 # substitution turns \\\\ into \\, and sed turns \\ into \).
12579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12582 # `set' quotes correctly as required by POSIX, so do not add quotes.
12584 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12591 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12593 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
12600 echo "not updating unwritable cache $cache_file"
12605 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12606 # Let make expand exec_prefix.
12607 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
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}:*/:/;
12618 s/^\([^=]*=[ ]*\):*/\1/;
12624 DEFS=-DHAVE_CONFIG_H
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$//'`
12633 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12634 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12636 LIBOBJS=$ac_libobjs
12638 LTLIBOBJS=$ac_ltlibobjs
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
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.
12655 ac_cs_recheck=false
12657 SHELL=\${CONFIG_SHELL-$SHELL}
12660 cat >>$CONFIG_STATUS <<\_ACEOF
12661 ## --------------------- ##
12662 ## M4sh Initialization. ##
12663 ## --------------------- ##
12665 # Be Bourne compatible
12666 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
12675 DUALCASE=1; export DUALCASE # for MKS sh
12677 # Support unset when possible.
12678 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12685 # Work around bugs in pre-3.0 UWIN ksh.
12686 $as_unset ENV MAIL MAILPATH
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
12697 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12698 eval $as_var=C; export $as_var
12704 # Required to use basename.
12705 if expr a : '\(a\)' >/dev/null 2>&1; then
12711 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12712 as_basename=basename
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 ||
12725 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12726 /^X\/\(\/\/\)$/{ s//\1/; q; }
12727 /^X\/\(\/\).*/{ s//\1/; q; }
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
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
12744 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
12761 *[\\/]* ) as_myself=$0 ;;
12762 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12763 for as_dir in $PATH
12766 test -z "$as_dir" && as_dir=.
12767 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
12782 case $CONFIG_SHELL in
12784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12788 test -z "$as_dir" && as_dir=.
12789 for as_base in sh bash ksh sh5; do
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+"$@"}
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 |
12823 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
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; }; }
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).
12837 # Exit status is that of the last command.
12842 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12843 *c*,-n*) ECHO_N= ECHO_C='
12845 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12846 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12849 if expr a : '\(a\)' >/dev/null 2>&1; then
12855 rm -f conf$$ conf$$.exe 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
12866 elif ln conf$$.file conf$$ 2>/dev/null; then
12871 rm -f conf$$ conf$$.exe conf$$.file
12873 if mkdir -p . 2>/dev/null; then
12876 test -d ./-p && rmdir ./-p
12880 as_executable_p="test -f"
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'"
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'"
12890 # We need space, tab and new line, in precisely that order.
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.
12906 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12907 ## Running $as_me. ##
12912 This file was extended by $as_me, which was
12913 generated by GNU Autoconf 2.59. Invocation command line was
12915 CONFIG_FILES = $CONFIG_FILES
12916 CONFIG_HEADERS = $CONFIG_HEADERS
12917 CONFIG_LINKS = $CONFIG_LINKS
12918 CONFIG_COMMANDS = $CONFIG_COMMANDS
12922 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
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
12931 if test -n "$ac_config_headers"; then
12932 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12935 if test -n "$ac_config_links"; then
12936 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12939 if test -n "$ac_config_commands"; then
12940 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12943 cat >>$CONFIG_STATUS <<\_ACEOF
12946 \`$as_me' instantiates files from templates according to the
12947 current configuration.
12949 Usage: $0 [OPTIONS] [FILE]...
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
12961 Configuration files:
12964 Configuration headers:
12967 Report bugs to <bug-autoconf@gnu.org>."
12970 cat >>$CONFIG_STATUS <<_ACEOF
12973 configured by $0, generated by GNU Autoconf 2.59,
12974 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
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."
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.
12991 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12992 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13000 *) # This is not an option, so the user has probably given explicit
13003 ac_need_defaults=false;;
13007 # Handling of the options.
13009 cat >>$CONFIG_STATUS <<\_ACEOF
13010 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13012 --version | --vers* | -V )
13013 echo "$ac_cs_version"; exit 0 ;;
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 )
13025 --file | --fil | --fi | --f )
13027 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13028 ac_need_defaults=false;;
13029 --header | --heade | --head | --hea )
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)
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; }; } ;;
13044 *) ac_config_targets="$ac_config_targets $1" ;;
13050 ac_configure_extra_args=
13052 if $ac_cs_silent; then
13054 ac_configure_extra_args="$ac_configure_extra_args --silent"
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
13070 cat >>$CONFIG_STATUS <<\_ACEOF
13071 for ac_config_target in $ac_config_targets
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; }; };;
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
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.
13102 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13103 trap '{ (exit 1); exit 1; }' 1 2 13 15
13106 # Create a (secure) tmp directory for tmp files.
13109 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13110 test -n "$tmp" && test -d "$tmp"
13113 tmp=./confstat$$-$RANDOM
13114 (umask 077 && mkdir $tmp)
13117 echo "$me: cannot create a temporary directory in ." >&2
13118 { (exit 1); exit 1; }
13123 cat >>$CONFIG_STATUS <<_ACEOF
13126 # CONFIG_FILES section.
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
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
13185 s,@CXXFLAGS@,$CXXFLAGS,;t t
13186 s,@ac_ct_CXX@,$ac_ct_CXX,;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
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
13202 s,@ECHO@,$ECHO,;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
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.
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
13256 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13258 if test ! -s $tmp/subs.frag; then
13259 ac_more_lines=false
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.
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"
13270 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13272 ac_sed_frag=`expr $ac_sed_frag + 1`
13274 ac_end=`expr $ac_end + $ac_max_sed_lines`
13277 if test -z "$ac_sed_cmds"; then
13280 fi # test -n "$CONFIG_FILES"
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".
13287 - | *:- | *:-:* ) # input from 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 ;;
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 ||
13304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13305 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13306 /^X\(\/\/\)$/{ s//\1/; q; }
13307 /^X\(\/\).*/{ s//\1/; q; }
13309 { if $as_mkdir_p; then
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 ||
13323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13324 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13325 /^X\(\/\/\)$/{ s//\1/; q; }
13326 /^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
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'`
13341 ac_dir_suffix= ac_top_builddir=
13345 .) # No --srcdir option. We are building in place.
13347 if test -z "$ac_top_builddir"; then
13350 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
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 ;;
13360 # Do not use `cd foo && pwd` to compute absolute paths, because
13361 # the directories may not exist.
13363 .) ac_abs_builddir="$ac_dir";;
13366 .) ac_abs_builddir=`pwd`;;
13367 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13368 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13371 case $ac_abs_builddir in
13372 .) ac_abs_top_builddir=${ac_top_builddir}.;;
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}.;;
13380 case $ac_abs_builddir in
13381 .) ac_abs_srcdir=$ac_srcdir;;
13384 .) ac_abs_srcdir=$ac_abs_builddir;;
13385 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13386 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13389 case $ac_abs_builddir in
13390 .) ac_abs_top_srcdir=$ac_top_srcdir;;
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;;
13401 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13402 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
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
13411 configure_input="$ac_file. "
13413 configure_input=$configure_input"Generated from `echo $ac_file_in |
13414 sed 's,.*/,,'` by configure."
13416 # First look for the input files in the build tree, otherwise in the
13418 ac_file_inputs=`IFS=:
13419 for f in $ac_file_in; do
13421 -) echo $tmp/stdin ;;
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; }; }
13429 if test -f "$f"; then
13432 elif test -f "$srcdir/$f"; then
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; }; }
13442 done` || { (exit 1); exit 1; }
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;}
13450 cat >>$CONFIG_STATUS <<_ACEOF
13454 cat >>$CONFIG_STATUS <<\_ACEOF
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
13469 if test x"$ac_file" != x-; then
13470 mv $tmp/out $ac_file
13478 cat >>$CONFIG_STATUS <<\_ACEOF
13481 # CONFIG_HEADER section.
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.
13487 # ac_d sets the value in "#define NAME VALUE" lines.
13488 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13489 ac_dB='[ ].*$,\1#\2'
13492 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13493 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13494 ac_uB='$,\1#\2define\3'
13498 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13499 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13501 - | *:- | *:-:* ) # input from 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 ;;
13510 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13511 echo "$as_me: creating $ac_file" >&6;}
13513 # First look for the input files in the build tree, otherwise in the
13515 ac_file_inputs=`IFS=:
13516 for f in $ac_file_in; do
13518 -) echo $tmp/stdin ;;
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.
13527 if test -f "$f"; then
13530 elif test -f "$srcdir/$f"; then
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; }; }
13540 done` || { (exit 1); exit 1; }
13541 # Remove the trailing spaces.
13542 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
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.
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
13565 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13567 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
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
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]*,/* & */,
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
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
13602 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13604 mv $tmp/out $tmp/in
13606 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13607 rm -f conftest.defines
13608 mv conftest.tail conftest.defines
13610 rm -f conftest.defines
13611 echo ' fi # grep' >>$CONFIG_STATUS
13612 echo >>$CONFIG_STATUS
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
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
13629 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13631 mv $tmp/out $tmp/in
13633 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13634 rm -f conftest.undefs
13635 mv conftest.tail conftest.undefs
13637 rm -f conftest.undefs
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
13646 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13648 cat $tmp/in >>$tmp/config.h
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;}
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 ||
13662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13663 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13664 /^X\(\/\/\)$/{ s//\1/; q; }
13665 /^X\(\/\).*/{ s//\1/; q; }
13667 { if $as_mkdir_p; then
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 ||
13681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13682 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13683 /^X\(\/\/\)$/{ s//\1/; q; }
13684 /^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
13693 mv $tmp/config.h $ac_file
13697 rm -f $tmp/config.h
13702 cat >>$CONFIG_STATUS <<\_ACEOF
13704 { (exit 0); exit 0; }
13706 chmod +x $CONFIG_STATUS
13707 ac_clean_files=$ac_clean_files_save
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
13720 ac_config_status_args=
13721 test "$silent" = yes &&
13722 ac_config_status_args="$ac_config_status_args --quiet"
13724 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
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; }
13732 echo "Configuration:
13734 Rxvt version: $VERSION : $DATE
13735 Source code location: $srcdir
13736 Install path: ${prefix}/bin
13738 Compiler flags: $CFLAGS
13741 if test "$MALLOC_TYPE" = S; then
13742 echo " malloc support: system default"
13744 if test "$MALLOC_TYPE" = G; then
13745 echo " malloc support: Gray Watson's dmalloc"
13747 if test "$MALLOC_TYPE" = D; then
13748 echo " malloc support: Doug Lea's malloc"
13751 if test x$support_xpm = xyes; then
13752 echo " Xpm library: $XPM_LIBS"
13756 The following are set in config.h
13758 echo " pty/tty type: "$rxvt_cv_ptys
13759 if test x$support_utmp != xyes; then
13760 echo " utmp support: disabled"
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"
13772 if test x$term != x; then
13773 echo " set TERM to: $term"
13775 if test x$terminfo != x; then
13776 echo " set TERMINFO to: $terminfo"
13778 echo " default resource name: $RESNAME"
13779 echo " resource class: $RESCLASS"
13780 if test x$RESFALLBACK != x; then
13781 echo " resource class fallback: $RESFALLBACK"
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 ".----------------------------------------------------------------."
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 ".----------------------------------------------------------------."
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 ".----------------------------------------------------------------."
13808 echo " *** Optionally check src/feature.h for further options ***"
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 ."
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 ".----------------------------------------------------------------."