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 PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O 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-perl enable embedded perl interpreter
887 --enable-plain-scroll enable plain style scrollbar
888 --enable-half-shadow use half width/height shadow on rxvt scrollbar
889 --enable-xim XIM (X Input Method) protocol support
890 --enable-ttygid enable tty setting to group named "tty"
891 --disable-backspace-key disable handling of the backspace key
892 --disable-delete-key disable handling of the delete key
893 --disable-resources disable all resource checking
894 --enable-xgetdefault enable resources via X instead of our small version
895 --enable-8bitctrls enable 8 bit control sequences (not recommended)
896 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
897 --enable-strings enable some replacement system functions
898 --disable-swapscreen disable swap screen support
899 --enable-iso14755 enable support for extended ISO 14755 modes
900 --enable-frills enable support for rarely used features
901 --enable-24bit enable support for using 24bit visuals if available
902 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
903 --enable-selectionscrolling enable scrolling during selections
904 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
905 --enable-slipwheeling enable slip wheel scrolling (requires previous)
906 --enable-dmalloc enable Gray Watson's malloc - for debugging use
907 --enable-dlmalloc enable Doug Lea's malloc - for production use
908 NOTE: enable only one malloc package
909 --enable-smart-resize enable smart growth/shrink behaviour
910 --enable-text-blink enable blinking text
911 --enable-pointer-blank enable pointer blank when typing or inactive pointer
914 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
915 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
916 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
917 --with-res-name=NAME use this as default resource name (default: urxvt)
918 --with-res-class=CLASS use this as the resource class (default: URxvt)
919 --with-name=NAME set the basename for the installed binaries (default: urxvt)
920 --with-term=NAME set the terminal to NAME (default: rxvt)
921 --with-terminfo=PATH set the path to the terminfo tree to PATH
922 --with-x use the X Window System
923 --with-xpm-includes=DIR use XPM includes in DIR
924 --with-xpm-library=DIR use XPM library in DIR
927 Some influential environment variables:
928 CC C compiler command
929 CFLAGS C compiler flags
930 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
931 nonstandard directory <lib dir>
932 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
933 headers in a nonstandard directory <include dir>
934 CXX C++ compiler command
935 CXXFLAGS C++ compiler flags
937 CXXCPP C++ preprocessor
939 Use these variables to override the choices made by `configure' or to help
940 it to find libraries and programs with nonstandard names/locations.
945 if test "$ac_init_help" = "recursive"; then
946 # If there are subdirs, report their specific --help.
948 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
949 test -d $ac_dir || continue
952 if test "$ac_dir" != .; then
953 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
954 # A "../" for each directory in $ac_dir_suffix.
955 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
957 ac_dir_suffix= ac_top_builddir=
961 .) # No --srcdir option. We are building in place.
963 if test -z "$ac_top_builddir"; then
966 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
968 [\\/]* | ?:[\\/]* ) # Absolute path.
969 ac_srcdir=$srcdir$ac_dir_suffix;
970 ac_top_srcdir=$srcdir ;;
972 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
973 ac_top_srcdir=$ac_top_builddir$srcdir ;;
976 # Do not use `cd foo && pwd` to compute absolute paths, because
977 # the directories may not exist.
979 .) ac_abs_builddir="$ac_dir";;
982 .) ac_abs_builddir=`pwd`;;
983 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
984 *) ac_abs_builddir=`pwd`/"$ac_dir";;
987 case $ac_abs_builddir in
988 .) ac_abs_top_builddir=${ac_top_builddir}.;;
990 case ${ac_top_builddir}. in
991 .) ac_abs_top_builddir=$ac_abs_builddir;;
992 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
993 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
996 case $ac_abs_builddir in
997 .) ac_abs_srcdir=$ac_srcdir;;
1000 .) ac_abs_srcdir=$ac_abs_builddir;;
1001 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1002 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1005 case $ac_abs_builddir in
1006 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1008 case $ac_top_srcdir in
1009 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1010 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1011 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1016 # Check for guested configure; otherwise get Cygnus style configure.
1017 if test -f $ac_srcdir/configure.gnu; then
1019 $SHELL $ac_srcdir/configure.gnu --help=recursive
1020 elif test -f $ac_srcdir/configure; then
1022 $SHELL $ac_srcdir/configure --help=recursive
1023 elif test -f $ac_srcdir/configure.ac ||
1024 test -f $ac_srcdir/configure.in; then
1026 $ac_configure --help
1028 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1034 test -n "$ac_init_help" && exit 0
1035 if $ac_init_version; then
1038 Copyright (C) 2003 Free Software Foundation, Inc.
1039 This configure script is free software; the Free Software Foundation
1040 gives unlimited permission to copy, distribute and modify it.
1046 This file contains any messages produced by compilers while
1047 running configure, to aid debugging if configure makes a mistake.
1049 It was created by $as_me, which was
1050 generated by GNU Autoconf 2.59. Invocation command line was
1061 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1062 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1063 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1064 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1065 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1067 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1068 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1070 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1071 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1072 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1073 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1074 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1075 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1076 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1084 test -z "$as_dir" && as_dir=.
1085 echo "PATH: $as_dir"
1100 # Keep a trace of the command line.
1101 # Strip out --no-create and --no-recursion so they do not pile up.
1102 # Strip out --silent because we don't want to record it for future runs.
1103 # Also quote any args containing shell meta-characters.
1104 # Make two passes to allow for proper duplicate-argument suppression.
1109 ac_must_keep_next=false
1115 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1119 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1120 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1123 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1125 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1126 if test $ac_must_keep_next = true; then
1127 ac_must_keep_next=false # Got value, back to normal.
1130 *=* | --config-cache | -C | -disable-* | --disable-* \
1131 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1132 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1133 | -with-* | --with-* | -without-* | --without-* | --x)
1134 case "$ac_configure_args0 " in
1135 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1138 -* ) ac_must_keep_next=true ;;
1141 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1142 # Get rid of the leading space.
1148 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1149 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1151 # When interrupted or exit'd, cleanup temporary files, and complete
1152 # config.log. We remove comments because anyway the quotes in there
1153 # would cause problems or look ugly.
1154 # WARNING: Be sure not to use single quotes in there, as some shells,
1155 # such as our DU 5.0 friend, will then `close' the trap.
1156 trap 'exit_status=$?
1157 # Save into config.log some information that might help in debugging.
1162 ## ---------------- ##
1163 ## Cache variables. ##
1164 ## ---------------- ##
1167 # The following way of writing the cache mishandles newlines in values,
1170 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1173 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1174 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1178 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1185 ## ----------------- ##
1186 ## Output variables. ##
1187 ## ----------------- ##
1190 for ac_var in $ac_subst_vars
1192 eval ac_val=$`echo $ac_var`
1193 echo "$ac_var='"'"'$ac_val'"'"'"
1197 if test -n "$ac_subst_files"; then
1204 for ac_var in $ac_subst_files
1206 eval ac_val=$`echo $ac_var`
1207 echo "$ac_var='"'"'$ac_val'"'"'"
1212 if test -s confdefs.h; then
1219 sed "/^$/d" confdefs.h | sort
1222 test "$ac_signal" != 0 &&
1223 echo "$as_me: caught signal $ac_signal"
1224 echo "$as_me: exit $exit_status"
1226 rm -f core *.core &&
1227 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1230 for ac_signal in 1 2 13 15; do
1231 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1235 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1236 rm -rf conftest* confdefs.h
1237 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1240 # Predefined preprocessor variables.
1242 cat >>confdefs.h <<_ACEOF
1243 #define PACKAGE_NAME "$PACKAGE_NAME"
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_STRING "$PACKAGE_STRING"
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1267 # Let the site file select an alternate cache file if it wants to.
1268 # Prefer explicitly selected file to automatically selected ones.
1269 if test -z "$CONFIG_SITE"; then
1270 if test "x$prefix" != xNONE; then
1271 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1273 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1276 for ac_site_file in $CONFIG_SITE; do
1277 if test -r "$ac_site_file"; then
1278 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1279 echo "$as_me: loading site script $ac_site_file" >&6;}
1280 sed 's/^/| /' "$ac_site_file" >&5
1285 if test -r "$cache_file"; then
1286 # Some versions of bash will fail to source /dev/null (special
1287 # files actually), so we avoid doing that.
1288 if test -f "$cache_file"; then
1289 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1290 echo "$as_me: loading cache $cache_file" >&6;}
1292 [\\/]* | ?:[\\/]* ) . $cache_file;;
1293 *) . ./$cache_file;;
1297 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1298 echo "$as_me: creating cache $cache_file" >&6;}
1302 # Check that the precious variables saved in the cache have kept the same
1304 ac_cache_corrupted=false
1305 for ac_var in `(set) 2>&1 |
1306 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1307 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1308 eval ac_new_set=\$ac_env_${ac_var}_set
1309 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1310 eval ac_new_val="\$ac_env_${ac_var}_value"
1311 case $ac_old_set,$ac_new_set in
1313 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1314 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1315 ac_cache_corrupted=: ;;
1317 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1318 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1319 ac_cache_corrupted=: ;;
1322 if test "x$ac_old_val" != "x$ac_new_val"; then
1323 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1324 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1325 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1326 echo "$as_me: former value: $ac_old_val" >&2;}
1327 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1328 echo "$as_me: current value: $ac_new_val" >&2;}
1329 ac_cache_corrupted=:
1332 # Pass precious variables to config.status.
1333 if test "$ac_new_set" = set; then
1335 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1336 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1337 *) ac_arg=$ac_var=$ac_new_val ;;
1339 case " $ac_configure_args " in
1340 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1341 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1345 if $ac_cache_corrupted; then
1346 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1347 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1348 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1349 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1350 { (exit 1); exit 1; }; }
1354 ac_cpp='$CPP $CPPFLAGS'
1355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1379 for ac_dir in autoconf $srcdir/autoconf; do
1380 if test -f $ac_dir/install-sh; then
1382 ac_install_sh="$ac_aux_dir/install-sh -c"
1384 elif test -f $ac_dir/install.sh; then
1386 ac_install_sh="$ac_aux_dir/install.sh -c"
1388 elif test -f $ac_dir/shtool; then
1390 ac_install_sh="$ac_aux_dir/shtool install -c"
1394 if test -z "$ac_aux_dir"; then
1395 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1396 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1397 { (exit 1); exit 1; }; }
1399 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1400 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1401 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1403 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
1406 # Make sure we can run config.sub.
1407 $ac_config_sub sun4 >/dev/null 2>&1 ||
1408 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1409 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1410 { (exit 1); exit 1; }; }
1412 echo "$as_me:$LINENO: checking build system type" >&5
1413 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1414 if test "${ac_cv_build+set}" = set; then
1415 echo $ECHO_N "(cached) $ECHO_C" >&6
1417 ac_cv_build_alias=$build_alias
1418 test -z "$ac_cv_build_alias" &&
1419 ac_cv_build_alias=`$ac_config_guess`
1420 test -z "$ac_cv_build_alias" &&
1421 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1422 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1423 { (exit 1); exit 1; }; }
1424 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1425 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1426 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1427 { (exit 1); exit 1; }; }
1430 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1431 echo "${ECHO_T}$ac_cv_build" >&6
1433 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1434 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1435 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1438 echo "$as_me:$LINENO: checking host system type" >&5
1439 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1440 if test "${ac_cv_host+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 ac_cv_host_alias=$host_alias
1444 test -z "$ac_cv_host_alias" &&
1445 ac_cv_host_alias=$ac_cv_build_alias
1446 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1447 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1448 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1449 { (exit 1); exit 1; }; }
1452 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1453 echo "${ECHO_T}$ac_cv_host" >&6
1455 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1456 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1457 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1461 VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1462 DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1464 echo "configuring for rxvt $VERSION"
1469 ac_cpp='$CPP $CPPFLAGS'
1470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1473 if test -n "$ac_tool_prefix"; then
1474 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1475 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 if test -n "$CC"; then
1482 ac_cv_prog_CC="$CC" # Let the user override the test.
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1501 if test -n "$CC"; then
1502 echo "$as_me:$LINENO: result: $CC" >&5
1503 echo "${ECHO_T}$CC" >&6
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1510 if test -z "$ac_cv_prog_CC"; then
1512 # Extract the first word of "gcc", so it can be a program name with args.
1513 set dummy gcc; ac_word=$2
1514 echo "$as_me:$LINENO: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1517 echo $ECHO_N "(cached) $ECHO_C" >&6
1519 if test -n "$ac_ct_CC"; then
1520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 test -z "$as_dir" && as_dir=.
1527 for ac_exec_ext in '' $ac_executable_extensions; do
1528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1529 ac_cv_prog_ac_ct_CC="gcc"
1530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1539 if test -n "$ac_ct_CC"; then
1540 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1541 echo "${ECHO_T}$ac_ct_CC" >&6
1543 echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1552 if test -z "$CC"; then
1553 if test -n "$ac_tool_prefix"; then
1554 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1555 set dummy ${ac_tool_prefix}cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 if test -n "$CC"; then
1562 ac_cv_prog_CC="$CC" # Let the user override the test.
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_CC="${ac_tool_prefix}cc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581 if test -n "$CC"; then
1582 echo "$as_me:$LINENO: result: $CC" >&5
1583 echo "${ECHO_T}$CC" >&6
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1590 if test -z "$ac_cv_prog_CC"; then
1592 # Extract the first word of "cc", so it can be a program name with args.
1593 set dummy cc; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 if test -n "$ac_ct_CC"; then
1600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 ac_cv_prog_ac_ct_CC="cc"
1610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1619 if test -n "$ac_ct_CC"; then
1620 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1621 echo "${ECHO_T}$ac_ct_CC" >&6
1623 echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1633 if test -z "$CC"; then
1634 # Extract the first word of "cc", so it can be a program name with args.
1635 set dummy cc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 if test -n "$CC"; then
1642 ac_cv_prog_CC="$CC" # Let the user override the test.
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1653 ac_prog_rejected=yes
1657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 if test $ac_prog_rejected = yes; then
1664 # We found a bogon in the path, so make sure we never use it.
1665 set dummy $ac_cv_prog_CC
1667 if test $# != 0; then
1668 # We chose a different compiler from the bogus one.
1669 # However, it has the same basename, so the bogon will be chosen
1670 # first if we set CC to just the basename; use the full file name.
1672 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1678 if test -n "$CC"; then
1679 echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1687 if test -z "$CC"; then
1688 if test -n "$ac_tool_prefix"; then
1691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_CC+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1698 if test -n "$CC"; then
1699 ac_cv_prog_CC="$CC" # Let the user override the test.
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 if test -n "$CC"; then
1719 echo "$as_me:$LINENO: result: $CC" >&5
1720 echo "${ECHO_T}$CC" >&6
1722 echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1726 test -n "$CC" && break
1729 if test -z "$CC"; then
1733 # Extract the first word of "$ac_prog", so it can be a program name with args.
1734 set dummy $ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1740 if test -n "$ac_ct_CC"; then
1741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_CC="$ac_prog"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1768 test -n "$ac_ct_CC" && break
1777 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1778 See \`config.log' for more details." >&5
1779 echo "$as_me: error: no acceptable C compiler found in \$PATH
1780 See \`config.log' for more details." >&2;}
1781 { (exit 1); exit 1; }; }
1783 # Provide some information about the compiler.
1784 echo "$as_me:$LINENO:" \
1785 "checking for C compiler version" >&5
1786 ac_compiler=`set X $ac_compile; echo $2`
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1788 (eval $ac_compiler --version </dev/null >&5) 2>&5
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }
1792 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1793 (eval $ac_compiler -v </dev/null >&5) 2>&5
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }
1797 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1798 (eval $ac_compiler -V </dev/null >&5) 2>&5
1800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801 (exit $ac_status); }
1803 cat >conftest.$ac_ext <<_ACEOF
1806 cat confdefs.h >>conftest.$ac_ext
1807 cat >>conftest.$ac_ext <<_ACEOF
1808 /* end confdefs.h. */
1818 ac_clean_files_save=$ac_clean_files
1819 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1820 # Try to create an executable without -o first, disregard a.out.
1821 # It will help us diagnose broken compilers, and finding out an intuition
1823 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1824 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1825 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1826 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1827 (eval $ac_link_default) 2>&5
1829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1830 (exit $ac_status); }; then
1831 # Find the output, starting from the most likely. This scheme is
1832 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1835 # Be careful to initialize this variable, since it used to be cached.
1836 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1838 # b.out is created by i960 compilers.
1839 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1841 test -f "$ac_file" || continue
1843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1846 # This is the source file.
1849 # We found the default executable, but exeext='' is most
1853 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1854 # FIXME: I believe we export ac_cv_exeext for Libtool,
1855 # but it would be cool to find out if it's true. Does anybody
1856 # maintain Libtool? --akim.
1864 echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1867 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1868 See \`config.log' for more details." >&5
1869 echo "$as_me: error: C compiler cannot create executables
1870 See \`config.log' for more details." >&2;}
1871 { (exit 77); exit 77; }; }
1874 ac_exeext=$ac_cv_exeext
1875 echo "$as_me:$LINENO: result: $ac_file" >&5
1876 echo "${ECHO_T}$ac_file" >&6
1878 # Check the compiler produces executables we can run. If not, either
1879 # the compiler is broken, or we cross compile.
1880 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1881 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1882 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1883 # If not cross compiling, check that we can run a simple program.
1884 if test "$cross_compiling" != yes; then
1885 if { ac_try='./$ac_file'
1886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 (exit $ac_status); }; }; then
1893 if test "$cross_compiling" = maybe; then
1896 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1897 If you meant to cross compile, use \`--host'.
1898 See \`config.log' for more details." >&5
1899 echo "$as_me: error: cannot run C compiled programs.
1900 If you meant to cross compile, use \`--host'.
1901 See \`config.log' for more details." >&2;}
1902 { (exit 1); exit 1; }; }
1906 echo "$as_me:$LINENO: result: yes" >&5
1907 echo "${ECHO_T}yes" >&6
1909 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1910 ac_clean_files=$ac_clean_files_save
1911 # Check the compiler produces executables we can run. If not, either
1912 # the compiler is broken, or we cross compile.
1913 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1914 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1915 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1916 echo "${ECHO_T}$cross_compiling" >&6
1918 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1919 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1921 (eval $ac_link) 2>&5
1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924 (exit $ac_status); }; then
1925 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1926 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1927 # work properly (i.e., refer to `conftest.exe'), while it won't with
1929 for ac_file in conftest.exe conftest conftest.*; do
1930 test -f "$ac_file" || continue
1932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1933 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1940 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1941 See \`config.log' for more details." >&5
1942 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1943 See \`config.log' for more details." >&2;}
1944 { (exit 1); exit 1; }; }
1947 rm -f conftest$ac_cv_exeext
1948 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1949 echo "${ECHO_T}$ac_cv_exeext" >&6
1951 rm -f conftest.$ac_ext
1952 EXEEXT=$ac_cv_exeext
1954 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1955 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1956 if test "${ac_cv_objext+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 cat >conftest.$ac_ext <<_ACEOF
1962 cat confdefs.h >>conftest.$ac_ext
1963 cat >>conftest.$ac_ext <<_ACEOF
1964 /* end confdefs.h. */
1974 rm -f conftest.o conftest.obj
1975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1976 (eval $ac_compile) 2>&5
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }; then
1980 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1983 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1988 echo "$as_me: failed program was:" >&5
1989 sed 's/^/| /' conftest.$ac_ext >&5
1991 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1992 See \`config.log' for more details." >&5
1993 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1994 See \`config.log' for more details." >&2;}
1995 { (exit 1); exit 1; }; }
1998 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2000 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2001 echo "${ECHO_T}$ac_cv_objext" >&6
2002 OBJEXT=$ac_cv_objext
2004 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2005 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2006 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 cat >conftest.$ac_ext <<_ACEOF
2012 cat confdefs.h >>conftest.$ac_ext
2013 cat >>conftest.$ac_ext <<_ACEOF
2014 /* end confdefs.h. */
2027 rm -f conftest.$ac_objext
2028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029 (eval $ac_compile) 2>conftest.er1
2031 grep -v '^ *+' conftest.er1 >conftest.err
2033 cat conftest.err >&5
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); } &&
2036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }; } &&
2042 { ac_try='test -s conftest.$ac_objext'
2043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); }; }; then
2050 echo "$as_me: failed program was:" >&5
2051 sed 's/^/| /' conftest.$ac_ext >&5
2055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2059 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2060 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2061 GCC=`test $ac_compiler_gnu = yes && echo yes`
2062 ac_test_CFLAGS=${CFLAGS+set}
2063 ac_save_CFLAGS=$CFLAGS
2065 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2066 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2067 if test "${ac_cv_prog_cc_g+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 cat >conftest.$ac_ext <<_ACEOF
2073 cat confdefs.h >>conftest.$ac_ext
2074 cat >>conftest.$ac_ext <<_ACEOF
2075 /* end confdefs.h. */
2085 rm -f conftest.$ac_objext
2086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2087 (eval $ac_compile) 2>conftest.er1
2089 grep -v '^ *+' conftest.er1 >conftest.err
2091 cat conftest.err >&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); } &&
2094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; } &&
2100 { ac_try='test -s conftest.$ac_objext'
2101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; }; then
2108 echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2115 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2116 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2117 if test "$ac_test_CFLAGS" = set; then
2118 CFLAGS=$ac_save_CFLAGS
2119 elif test $ac_cv_prog_cc_g = yes; then
2120 if test "$GCC" = yes; then
2126 if test "$GCC" = yes; then
2132 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2133 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2134 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 ac_cv_prog_cc_stdc=no
2139 cat >conftest.$ac_ext <<_ACEOF
2142 cat confdefs.h >>conftest.$ac_ext
2143 cat >>conftest.$ac_ext <<_ACEOF
2144 /* end confdefs.h. */
2147 #include <sys/types.h>
2148 #include <sys/stat.h>
2149 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2150 struct buf { int x; };
2151 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2152 static char *e (p, i)
2158 static char *f (char * (*g) (char **, int), char **p, ...)
2163 s = g (p, va_arg (v,int));
2168 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2169 function prototypes and stuff, but not '\xHH' hex character constants.
2170 These don't provoke an error unfortunately, instead are silently treated
2171 as 'x'. The following induces an error, until -std1 is added to get
2172 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2173 array size at least. It's necessary to write '\x00'==0 to get something
2174 that's true only with -std1. */
2175 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2177 int test (int i, double x);
2178 struct s1 {int (*f) (int a);};
2179 struct s2 {int (*f) (double a);};
2180 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2186 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2191 # Don't try gcc -ansi; that turns off useful extensions and
2192 # breaks some systems' header files.
2193 # AIX -qlanglvl=ansi
2194 # Ultrix and OSF/1 -std1
2195 # HP-UX 10.20 and later -Ae
2196 # HP-UX older versions -Aa -D_HPUX_SOURCE
2197 # SVR4 -Xc -D__EXTENSIONS__
2198 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2200 CC="$ac_save_CC $ac_arg"
2201 rm -f conftest.$ac_objext
2202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2203 (eval $ac_compile) 2>conftest.er1
2205 grep -v '^ *+' conftest.er1 >conftest.err
2207 cat conftest.err >&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); } &&
2210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; } &&
2216 { ac_try='test -s conftest.$ac_objext'
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; }; then
2222 ac_cv_prog_cc_stdc=$ac_arg
2225 echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2229 rm -f conftest.err conftest.$ac_objext
2231 rm -f conftest.$ac_ext conftest.$ac_objext
2236 case "x$ac_cv_prog_cc_stdc" in
2238 echo "$as_me:$LINENO: result: none needed" >&5
2239 echo "${ECHO_T}none needed" >&6 ;;
2241 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2242 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2243 CC="$CC $ac_cv_prog_cc_stdc" ;;
2246 # Some people use a C++ compiler to compile C. Since we use `exit',
2247 # in C++ we need to declare it. In case someone uses the same compiler
2248 # for both compiling C and C++ we need to have the C++ compiler decide
2249 # the declaration of exit, since it's the most demanding environment.
2250 cat >conftest.$ac_ext <<_ACEOF
2255 rm -f conftest.$ac_objext
2256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2257 (eval $ac_compile) 2>conftest.er1
2259 grep -v '^ *+' conftest.er1 >conftest.err
2261 cat conftest.err >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); } &&
2264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; } &&
2270 { ac_try='test -s conftest.$ac_objext'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; }; then
2276 for ac_declaration in \
2278 'extern "C" void std::exit (int) throw (); using std::exit;' \
2279 'extern "C" void std::exit (int); using std::exit;' \
2280 'extern "C" void exit (int) throw ();' \
2281 'extern "C" void exit (int);' \
2284 cat >conftest.$ac_ext <<_ACEOF
2287 cat confdefs.h >>conftest.$ac_ext
2288 cat >>conftest.$ac_ext <<_ACEOF
2289 /* end confdefs.h. */
2300 rm -f conftest.$ac_objext
2301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2302 (eval $ac_compile) 2>conftest.er1
2304 grep -v '^ *+' conftest.er1 >conftest.err
2306 cat conftest.err >&5
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); } &&
2309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; } &&
2315 { ac_try='test -s conftest.$ac_objext'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; }; then
2323 echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2329 cat >conftest.$ac_ext <<_ACEOF
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h. */
2344 rm -f conftest.$ac_objext
2345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346 (eval $ac_compile) 2>conftest.er1
2348 grep -v '^ *+' conftest.er1 >conftest.err
2350 cat conftest.err >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } &&
2353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; } &&
2359 { ac_try='test -s conftest.$ac_objext'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; }; then
2367 echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2374 if test -n "$ac_declaration"; then
2375 echo '#ifdef __cplusplus' >>confdefs.h
2376 echo $ac_declaration >>confdefs.h
2377 echo '#endif' >>confdefs.h
2381 echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2393 ac_cpp='$CXXCPP $CPPFLAGS'
2394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2397 if test -n "$ac_tool_prefix"; then
2398 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2400 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2401 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2402 echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2404 if test "${ac_cv_prog_CXX+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 if test -n "$CXX"; then
2408 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 test -z "$as_dir" && as_dir=.
2415 for ac_exec_ext in '' $ac_executable_extensions; do
2416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 if test -n "$CXX"; then
2428 echo "$as_me:$LINENO: result: $CXX" >&5
2429 echo "${ECHO_T}$CXX" >&6
2431 echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6
2435 test -n "$CXX" && break
2438 if test -z "$CXX"; then
2440 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2442 # Extract the first word of "$ac_prog", so it can be a program name with args.
2443 set dummy $ac_prog; ac_word=$2
2444 echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 if test -n "$ac_ct_CXX"; then
2450 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459 ac_cv_prog_ac_ct_CXX="$ac_prog"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2469 if test -n "$ac_ct_CXX"; then
2470 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2471 echo "${ECHO_T}$ac_ct_CXX" >&6
2473 echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2477 test -n "$ac_ct_CXX" && break
2479 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2485 # Provide some information about the compiler.
2486 echo "$as_me:$LINENO:" \
2487 "checking for C++ compiler version" >&5
2488 ac_compiler=`set X $ac_compile; echo $2`
2489 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2490 (eval $ac_compiler --version </dev/null >&5) 2>&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }
2494 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2495 (eval $ac_compiler -v </dev/null >&5) 2>&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }
2499 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2500 (eval $ac_compiler -V </dev/null >&5) 2>&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }
2505 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2506 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2507 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 cat >conftest.$ac_ext <<_ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h. */
2528 rm -f conftest.$ac_objext
2529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2530 (eval $ac_compile) 2>conftest.er1
2532 grep -v '^ *+' conftest.er1 >conftest.err
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } &&
2537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; } &&
2543 { ac_try='test -s conftest.$ac_objext'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; }; then
2551 echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2557 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2560 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2561 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2562 GXX=`test $ac_compiler_gnu = yes && echo yes`
2563 ac_test_CXXFLAGS=${CXXFLAGS+set}
2564 ac_save_CXXFLAGS=$CXXFLAGS
2566 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2567 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2568 if test "${ac_cv_prog_cxx_g+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 cat >conftest.$ac_ext <<_ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2586 rm -f conftest.$ac_objext
2587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2588 (eval $ac_compile) 2>conftest.er1
2590 grep -v '^ *+' conftest.er1 >conftest.err
2592 cat conftest.err >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); } &&
2595 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; } &&
2601 { ac_try='test -s conftest.$ac_objext'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; }; then
2607 ac_cv_prog_cxx_g=yes
2609 echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2616 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2617 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2618 if test "$ac_test_CXXFLAGS" = set; then
2619 CXXFLAGS=$ac_save_CXXFLAGS
2620 elif test $ac_cv_prog_cxx_g = yes; then
2621 if test "$GXX" = yes; then
2627 if test "$GXX" = yes; then
2633 for ac_declaration in \
2635 'extern "C" void std::exit (int) throw (); using std::exit;' \
2636 'extern "C" void std::exit (int); using std::exit;' \
2637 'extern "C" void exit (int) throw ();' \
2638 'extern "C" void exit (int);' \
2641 cat >conftest.$ac_ext <<_ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h. */
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>conftest.er1
2661 grep -v '^ *+' conftest.er1 >conftest.err
2663 cat conftest.err >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; } &&
2672 { ac_try='test -s conftest.$ac_objext'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; }; then
2680 echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686 cat >conftest.$ac_ext <<_ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2701 rm -f conftest.$ac_objext
2702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703 (eval $ac_compile) 2>conftest.er1
2705 grep -v '^ *+' conftest.er1 >conftest.err
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; } &&
2716 { ac_try='test -s conftest.$ac_objext'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2731 if test -n "$ac_declaration"; then
2732 echo '#ifdef __cplusplus' >>confdefs.h
2733 echo $ac_declaration >>confdefs.h
2734 echo '#endif' >>confdefs.h
2738 ac_cpp='$CPP $CPPFLAGS'
2739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2744 ac_cpp='$CPP $CPPFLAGS'
2745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2749 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2750 # On Suns, sometimes $CPP names a directory.
2751 if test -n "$CPP" && test -d "$CPP"; then
2754 if test -z "$CPP"; then
2755 if test "${ac_cv_prog_CPP+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 # Double quotes because CPP needs to be expanded
2759 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2762 for ac_c_preproc_warn_flag in '' yes
2764 # Use a header file that comes with gcc, so configuring glibc
2765 # with a fresh cross-compiler works.
2766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2767 # <limits.h> exists even on freestanding compilers.
2768 # On the NeXT, cc -E runs the code through the compiler's parser,
2769 # not just through cpp. "Syntax error" is here to catch this case.
2770 cat >conftest.$ac_ext <<_ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2777 # include <limits.h>
2779 # include <assert.h>
2783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2786 grep -v '^ *+' conftest.er1 >conftest.err
2788 cat conftest.err >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } >/dev/null; then
2791 if test -s conftest.err; then
2792 ac_cpp_err=$ac_c_preproc_warn_flag
2793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2800 if test -z "$ac_cpp_err"; then
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2806 # Broken: fails on valid input.
2809 rm -f conftest.err conftest.$ac_ext
2811 # OK, works on sane cases. Now check whether non-existent headers
2812 # can be detected and how.
2813 cat >conftest.$ac_ext <<_ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2819 #include <ac_nonexistent.h>
2821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2824 grep -v '^ *+' conftest.er1 >conftest.err
2826 cat conftest.err >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } >/dev/null; then
2829 if test -s conftest.err; then
2830 ac_cpp_err=$ac_c_preproc_warn_flag
2831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2838 if test -z "$ac_cpp_err"; then
2839 # Broken: success on invalid input.
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2845 # Passes both tests.
2849 rm -f conftest.err conftest.$ac_ext
2852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2853 rm -f conftest.err conftest.$ac_ext
2854 if $ac_preproc_ok; then
2866 echo "$as_me:$LINENO: result: $CPP" >&5
2867 echo "${ECHO_T}$CPP" >&6
2869 for ac_c_preproc_warn_flag in '' yes
2871 # Use a header file that comes with gcc, so configuring glibc
2872 # with a fresh cross-compiler works.
2873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2874 # <limits.h> exists even on freestanding compilers.
2875 # On the NeXT, cc -E runs the code through the compiler's parser,
2876 # not just through cpp. "Syntax error" is here to catch this case.
2877 cat >conftest.$ac_ext <<_ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2884 # include <limits.h>
2886 # include <assert.h>
2890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2893 grep -v '^ *+' conftest.er1 >conftest.err
2895 cat conftest.err >&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); } >/dev/null; then
2898 if test -s conftest.err; then
2899 ac_cpp_err=$ac_c_preproc_warn_flag
2900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2907 if test -z "$ac_cpp_err"; then
2910 echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2913 # Broken: fails on valid input.
2916 rm -f conftest.err conftest.$ac_ext
2918 # OK, works on sane cases. Now check whether non-existent headers
2919 # can be detected and how.
2920 cat >conftest.$ac_ext <<_ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2926 #include <ac_nonexistent.h>
2928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2931 grep -v '^ *+' conftest.er1 >conftest.err
2933 cat conftest.err >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } >/dev/null; then
2936 if test -s conftest.err; then
2937 ac_cpp_err=$ac_c_preproc_warn_flag
2938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2945 if test -z "$ac_cpp_err"; then
2946 # Broken: success on invalid input.
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2952 # Passes both tests.
2956 rm -f conftest.err conftest.$ac_ext
2959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2960 rm -f conftest.err conftest.$ac_ext
2961 if $ac_preproc_ok; then
2964 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2965 See \`config.log' for more details." >&5
2966 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2967 See \`config.log' for more details." >&2;}
2968 { (exit 1); exit 1; }; }
2972 ac_cpp='$CPP $CPPFLAGS'
2973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2977 # Find a good install program. We prefer a C program (faster),
2978 # so one script is as good as another. But avoid the broken or
2979 # incompatible versions:
2980 # SysV /etc/install, /usr/sbin/install
2981 # SunOS /usr/etc/install
2982 # IRIX /sbin/install
2984 # AmigaOS /C/install, which installs bootblocks on floppy discs
2985 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2986 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2987 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2988 # OS/2's system install, which has a completely different semantic
2989 # ./install, which can be erroneously created by make from ./install.sh.
2990 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2991 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2992 if test -z "$INSTALL"; then
2993 if test "${ac_cv_path_install+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 test -z "$as_dir" && as_dir=.
3001 # Account for people who put trailing slashes in PATH elements.
3003 ./ | .// | /cC/* | \
3004 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3005 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3008 # OSF1 and SCO ODT 3.0 have their own names for install.
3009 # Don't use installbsd from OSF since it installs stuff as root
3011 for ac_prog in ginstall scoinst install; do
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3014 if test $ac_prog = install &&
3015 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3016 # AIX install. It has an incompatible calling convention.
3018 elif test $ac_prog = install &&
3019 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3020 # program-specific install script used by HP pwplus--don't use.
3023 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3035 if test "${ac_cv_path_install+set}" = set; then
3036 INSTALL=$ac_cv_path_install
3038 # As a last resort, use the slow shell script. We don't cache a
3039 # path for INSTALL within a source directory, because that will
3040 # break other packages using the cache if that directory is
3041 # removed, or if the path is relative.
3042 INSTALL=$ac_install_sh
3045 echo "$as_me:$LINENO: result: $INSTALL" >&5
3046 echo "${ECHO_T}$INSTALL" >&6
3048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3049 # It thinks the first close brace ends the variable substitution.
3050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3054 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3056 for ac_prog in gawk mawk nawk awk
3058 # Extract the first word of "$ac_prog", so it can be a program name with args.
3059 set dummy $ac_prog; ac_word=$2
3060 echo "$as_me:$LINENO: checking for $ac_word" >&5
3061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3062 if test "${ac_cv_prog_AWK+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 if test -n "$AWK"; then
3066 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3075 ac_cv_prog_AWK="$ac_prog"
3076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 if test -n "$AWK"; then
3086 echo "$as_me:$LINENO: result: $AWK" >&5
3087 echo "${ECHO_T}$AWK" >&6
3089 echo "$as_me:$LINENO: result: no" >&5
3090 echo "${ECHO_T}no" >&6
3093 test -n "$AWK" && break
3098 ac_cpp='$CPP $CPPFLAGS'
3099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104 if test -z "$orig_CXXFLAGS"; then
3106 if test x$GCC = xyes && test "x$GXX" = xyes; then
3113 if test x$GCC = xyes && test x$GXX = xyes; then
3115 echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3116 echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3117 if test "${ac_cv_lib_supcpp_main+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 ac_check_lib_save_LIBS=$LIBS
3121 LIBS="-lsupc++ $LIBS"
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3138 rm -f conftest.$ac_objext conftest$ac_exeext
3139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3140 (eval $ac_link) 2>conftest.er1
3142 grep -v '^ *+' conftest.er1 >conftest.err
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } &&
3147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; } &&
3153 { ac_try='test -s conftest$ac_exeext'
3154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 ac_cv_lib_supcpp_main=yes
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3164 ac_cv_lib_supcpp_main=no
3166 rm -f conftest.err conftest.$ac_objext \
3167 conftest$ac_exeext conftest.$ac_ext
3168 LIBS=$ac_check_lib_save_LIBS
3170 echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3171 echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3172 if test $ac_cv_lib_supcpp_main = yes; then
3175 LIBS="$LIBS -lsupc++"
3184 cat >>confdefs.h <<\_ACEOF
3185 #define _GNU_SOURCE 1
3192 cat >>confdefs.h <<\_ACEOF
3193 #define _XOPEN_SOURCE_EXTENDED 1
3197 cat >>confdefs.h <<\_ACEOF
3198 #define _XOPEN_SOURCE 2
3202 cat >>confdefs.h <<\_ACEOF
3203 #define __EXTENSIONS__ 1
3211 ac_cpp='$CXXCPP $CPPFLAGS'
3212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3219 ac_cpp='$CXXCPP $CPPFLAGS'
3220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3223 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3224 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3225 if test -z "$CXXCPP"; then
3226 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 # Double quotes because CXXCPP needs to be expanded
3230 for CXXCPP in "$CXX -E" "/lib/cpp"
3233 for ac_cxx_preproc_warn_flag in '' yes
3235 # Use a header file that comes with gcc, so configuring glibc
3236 # with a fresh cross-compiler works.
3237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3238 # <limits.h> exists even on freestanding compilers.
3239 # On the NeXT, cc -E runs the code through the compiler's parser,
3240 # not just through cpp. "Syntax error" is here to catch this case.
3241 cat >conftest.$ac_ext <<_ACEOF
3244 cat confdefs.h >>conftest.$ac_ext
3245 cat >>conftest.$ac_ext <<_ACEOF
3246 /* end confdefs.h. */
3248 # include <limits.h>
3250 # include <assert.h>
3254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3257 grep -v '^ *+' conftest.er1 >conftest.err
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } >/dev/null; then
3262 if test -s conftest.err; then
3263 ac_cpp_err=$ac_cxx_preproc_warn_flag
3264 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3271 if test -z "$ac_cpp_err"; then
3274 echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3277 # Broken: fails on valid input.
3280 rm -f conftest.err conftest.$ac_ext
3282 # OK, works on sane cases. Now check whether non-existent headers
3283 # can be detected and how.
3284 cat >conftest.$ac_ext <<_ACEOF
3287 cat confdefs.h >>conftest.$ac_ext
3288 cat >>conftest.$ac_ext <<_ACEOF
3289 /* end confdefs.h. */
3290 #include <ac_nonexistent.h>
3292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3295 grep -v '^ *+' conftest.er1 >conftest.err
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } >/dev/null; then
3300 if test -s conftest.err; then
3301 ac_cpp_err=$ac_cxx_preproc_warn_flag
3302 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3309 if test -z "$ac_cpp_err"; then
3310 # Broken: success on invalid input.
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3316 # Passes both tests.
3320 rm -f conftest.err conftest.$ac_ext
3323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3324 rm -f conftest.err conftest.$ac_ext
3325 if $ac_preproc_ok; then
3330 ac_cv_prog_CXXCPP=$CXXCPP
3333 CXXCPP=$ac_cv_prog_CXXCPP
3335 ac_cv_prog_CXXCPP=$CXXCPP
3337 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3338 echo "${ECHO_T}$CXXCPP" >&6
3340 for ac_cxx_preproc_warn_flag in '' yes
3342 # Use a header file that comes with gcc, so configuring glibc
3343 # with a fresh cross-compiler works.
3344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3345 # <limits.h> exists even on freestanding compilers.
3346 # On the NeXT, cc -E runs the code through the compiler's parser,
3347 # not just through cpp. "Syntax error" is here to catch this case.
3348 cat >conftest.$ac_ext <<_ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h. */
3355 # include <limits.h>
3357 # include <assert.h>
3361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3364 grep -v '^ *+' conftest.er1 >conftest.err
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } >/dev/null; then
3369 if test -s conftest.err; then
3370 ac_cpp_err=$ac_cxx_preproc_warn_flag
3371 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3378 if test -z "$ac_cpp_err"; then
3381 echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3384 # Broken: fails on valid input.
3387 rm -f conftest.err conftest.$ac_ext
3389 # OK, works on sane cases. Now check whether non-existent headers
3390 # can be detected and how.
3391 cat >conftest.$ac_ext <<_ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3397 #include <ac_nonexistent.h>
3399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3402 grep -v '^ *+' conftest.er1 >conftest.err
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } >/dev/null; then
3407 if test -s conftest.err; then
3408 ac_cpp_err=$ac_cxx_preproc_warn_flag
3409 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3416 if test -z "$ac_cpp_err"; then
3417 # Broken: success on invalid input.
3420 echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3423 # Passes both tests.
3427 rm -f conftest.err conftest.$ac_ext
3430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431 rm -f conftest.err conftest.$ac_ext
3432 if $ac_preproc_ok; then
3435 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3436 See \`config.log' for more details." >&5
3437 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3438 See \`config.log' for more details." >&2;}
3439 { (exit 1); exit 1; }; }
3443 ac_cpp='$CXXCPP $CPPFLAGS'
3444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3449 echo "$as_me:$LINENO: checking for egrep" >&5
3450 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3451 if test "${ac_cv_prog_egrep+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3454 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3455 then ac_cv_prog_egrep='grep -E'
3456 else ac_cv_prog_egrep='egrep'
3459 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3460 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3461 EGREP=$ac_cv_prog_egrep
3465 echo "$as_me:$LINENO: checking for AIX" >&5
3466 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3467 cat >conftest.$ac_ext <<_ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h. */
3478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3479 $EGREP "yes" >/dev/null 2>&1; then
3480 echo "$as_me:$LINENO: result: yes" >&5
3481 echo "${ECHO_T}yes" >&6
3482 cat >>confdefs.h <<\_ACEOF
3483 #define _ALL_SOURCE 1
3487 echo "$as_me:$LINENO: result: no" >&5
3488 echo "${ECHO_T}no" >&6
3493 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3494 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3495 if test "${ac_cv_search_strerror+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 ac_func_search_save_LIBS=$LIBS
3499 ac_cv_search_strerror=no
3500 cat >conftest.$ac_ext <<_ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3507 /* Override any gcc2 internal prototype to avoid an error. */
3511 /* We use char because int might match the return type of a gcc2
3512 builtin and then its argument prototype would still apply. */
3522 rm -f conftest.$ac_objext conftest$ac_exeext
3523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3524 (eval $ac_link) 2>conftest.er1
3526 grep -v '^ *+' conftest.er1 >conftest.err
3528 cat conftest.err >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } &&
3531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; } &&
3537 { ac_try='test -s conftest$ac_exeext'
3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; }; then
3543 ac_cv_search_strerror="none required"
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3549 rm -f conftest.err conftest.$ac_objext \
3550 conftest$ac_exeext conftest.$ac_ext
3551 if test "$ac_cv_search_strerror" = no; then
3552 for ac_lib in cposix; do
3553 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3554 cat >conftest.$ac_ext <<_ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3561 /* Override any gcc2 internal prototype to avoid an error. */
3565 /* We use char because int might match the return type of a gcc2
3566 builtin and then its argument prototype would still apply. */
3576 rm -f conftest.$ac_objext conftest$ac_exeext
3577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3578 (eval $ac_link) 2>conftest.er1
3580 grep -v '^ *+' conftest.er1 >conftest.err
3582 cat conftest.err >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } &&
3585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; } &&
3591 { ac_try='test -s conftest$ac_exeext'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3597 ac_cv_search_strerror="-l$ac_lib"
3600 echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3604 rm -f conftest.err conftest.$ac_objext \
3605 conftest$ac_exeext conftest.$ac_ext
3608 LIBS=$ac_func_search_save_LIBS
3610 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3611 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3612 if test "$ac_cv_search_strerror" != no; then
3613 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3618 echo "$as_me:$LINENO: checking for setlocale" >&5
3619 echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3620 if test "${ac_cv_func_setlocale+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 cat >conftest.$ac_ext <<_ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3629 /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3631 #define setlocale innocuous_setlocale
3633 /* System header to define __stub macros and hopefully few prototypes,
3634 which can conflict with char setlocale (); below.
3635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3636 <limits.h> exists even on freestanding compilers. */
3639 # include <limits.h>
3641 # include <assert.h>
3646 /* Override any gcc2 internal prototype to avoid an error. */
3651 /* We use char because int might match the return type of a gcc2
3652 builtin and then its argument prototype would still apply. */
3654 /* The GNU C library defines this for functions which it implements
3655 to always fail with ENOSYS. Some functions are actually named
3656 something starting with __ and the normal name is an alias. */
3657 #if defined (__stub_setlocale) || defined (__stub___setlocale)
3660 char (*f) () = setlocale;
3669 return f != setlocale;
3674 rm -f conftest.$ac_objext conftest$ac_exeext
3675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3676 (eval $ac_link) 2>conftest.er1
3678 grep -v '^ *+' conftest.er1 >conftest.err
3680 cat conftest.err >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); } &&
3683 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; } &&
3689 { ac_try='test -s conftest$ac_exeext'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; }; then
3695 ac_cv_func_setlocale=yes
3697 echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3700 ac_cv_func_setlocale=no
3702 rm -f conftest.err conftest.$ac_objext \
3703 conftest$ac_exeext conftest.$ac_ext
3705 echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
3706 echo "${ECHO_T}$ac_cv_func_setlocale" >&6
3707 if test $ac_cv_func_setlocale = yes; then
3710 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3711 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3712 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 ac_check_lib_save_LIBS=$LIBS
3717 cat >conftest.$ac_ext <<_ACEOF
3720 cat confdefs.h >>conftest.$ac_ext
3721 cat >>conftest.$ac_ext <<_ACEOF
3722 /* end confdefs.h. */
3724 /* Override any gcc2 internal prototype to avoid an error. */
3728 /* We use char because int might match the return type of a gcc2
3729 builtin and then its argument prototype would still apply. */
3739 rm -f conftest.$ac_objext conftest$ac_exeext
3740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3741 (eval $ac_link) 2>conftest.er1
3743 grep -v '^ *+' conftest.er1 >conftest.err
3745 cat conftest.err >&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } &&
3748 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; } &&
3754 { ac_try='test -s conftest$ac_exeext'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; }; then
3760 ac_cv_lib_xpg4_setlocale=yes
3762 echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3765 ac_cv_lib_xpg4_setlocale=no
3767 rm -f conftest.err conftest.$ac_objext \
3768 conftest$ac_exeext conftest.$ac_ext
3769 LIBS=$ac_check_lib_save_LIBS
3771 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3772 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3773 if test $ac_cv_lib_xpg4_setlocale = yes; then
3780 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3781 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3782 if test "${ac_cv_func_gethostbyname+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 cat >conftest.$ac_ext <<_ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h. */
3791 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3793 #define gethostbyname innocuous_gethostbyname
3795 /* System header to define __stub macros and hopefully few prototypes,
3796 which can conflict with char gethostbyname (); below.
3797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3798 <limits.h> exists even on freestanding compilers. */
3801 # include <limits.h>
3803 # include <assert.h>
3806 #undef gethostbyname
3808 /* Override any gcc2 internal prototype to avoid an error. */
3813 /* We use char because int might match the return type of a gcc2
3814 builtin and then its argument prototype would still apply. */
3815 char gethostbyname ();
3816 /* The GNU C library defines this for functions which it implements
3817 to always fail with ENOSYS. Some functions are actually named
3818 something starting with __ and the normal name is an alias. */
3819 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3822 char (*f) () = gethostbyname;
3831 return f != gethostbyname;
3836 rm -f conftest.$ac_objext conftest$ac_exeext
3837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3838 (eval $ac_link) 2>conftest.er1
3840 grep -v '^ *+' conftest.er1 >conftest.err
3842 cat conftest.err >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } &&
3845 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; } &&
3851 { ac_try='test -s conftest$ac_exeext'
3852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; }; then
3857 ac_cv_func_gethostbyname=yes
3859 echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 ac_cv_func_gethostbyname=no
3864 rm -f conftest.err conftest.$ac_objext \
3865 conftest$ac_exeext conftest.$ac_ext
3867 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3868 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3869 if test $ac_cv_func_gethostbyname = yes; then
3872 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3873 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3874 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 ac_check_lib_save_LIBS=$LIBS
3879 cat >conftest.$ac_ext <<_ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3886 /* Override any gcc2 internal prototype to avoid an error. */
3890 /* We use char because int might match the return type of a gcc2
3891 builtin and then its argument prototype would still apply. */
3892 char gethostbyname ();
3901 rm -f conftest.$ac_objext conftest$ac_exeext
3902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3903 (eval $ac_link) 2>conftest.er1
3905 grep -v '^ *+' conftest.er1 >conftest.err
3907 cat conftest.err >&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); } &&
3910 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; } &&
3916 { ac_try='test -s conftest$ac_exeext'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; }; then
3922 ac_cv_lib_nsl_gethostbyname=yes
3924 echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3927 ac_cv_lib_nsl_gethostbyname=no
3929 rm -f conftest.err conftest.$ac_objext \
3930 conftest$ac_exeext conftest.$ac_ext
3931 LIBS=$ac_check_lib_save_LIBS
3933 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3934 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3935 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3941 echo "$as_me:$LINENO: checking for socket" >&5
3942 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3943 if test "${ac_cv_func_socket+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 cat >conftest.$ac_ext <<_ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h. */
3952 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3954 #define socket innocuous_socket
3956 /* System header to define __stub macros and hopefully few prototypes,
3957 which can conflict with char socket (); below.
3958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3959 <limits.h> exists even on freestanding compilers. */
3962 # include <limits.h>
3964 # include <assert.h>
3969 /* Override any gcc2 internal prototype to avoid an error. */
3974 /* We use char because int might match the return type of a gcc2
3975 builtin and then its argument prototype would still apply. */
3977 /* The GNU C library defines this for functions which it implements
3978 to always fail with ENOSYS. Some functions are actually named
3979 something starting with __ and the normal name is an alias. */
3980 #if defined (__stub_socket) || defined (__stub___socket)
3983 char (*f) () = socket;
3997 rm -f conftest.$ac_objext conftest$ac_exeext
3998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3999 (eval $ac_link) 2>conftest.er1
4001 grep -v '^ *+' conftest.er1 >conftest.err
4003 cat conftest.err >&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } &&
4006 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }; } &&
4012 { ac_try='test -s conftest$ac_exeext'
4013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4018 ac_cv_func_socket=yes
4020 echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4023 ac_cv_func_socket=no
4025 rm -f conftest.err conftest.$ac_objext \
4026 conftest$ac_exeext conftest.$ac_ext
4028 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4029 echo "${ECHO_T}$ac_cv_func_socket" >&6
4030 if test $ac_cv_func_socket = yes; then
4033 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4034 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4035 if test "${ac_cv_lib_socket_socket+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 ac_check_lib_save_LIBS=$LIBS
4039 LIBS="-lsocket $LIBS"
4040 cat >conftest.$ac_ext <<_ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4047 /* Override any gcc2 internal prototype to avoid an error. */
4051 /* We use char because int might match the return type of a gcc2
4052 builtin and then its argument prototype would still apply. */
4062 rm -f conftest.$ac_objext conftest$ac_exeext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4064 (eval $ac_link) 2>conftest.er1
4066 grep -v '^ *+' conftest.er1 >conftest.err
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } &&
4071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; } &&
4077 { ac_try='test -s conftest$ac_exeext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4083 ac_cv_lib_socket_socket=yes
4085 echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4088 ac_cv_lib_socket_socket=no
4090 rm -f conftest.err conftest.$ac_objext \
4091 conftest$ac_exeext conftest.$ac_ext
4092 LIBS=$ac_check_lib_save_LIBS
4094 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4095 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4096 if test $ac_cv_lib_socket_socket = yes; then
4097 LIBS="$LIBS -lsocket"
4103 echo "$as_me:$LINENO: checking for sched_yield" >&5
4104 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
4105 if test "${ac_cv_func_sched_yield+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 cat >conftest.$ac_ext <<_ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4114 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
4115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4116 #define sched_yield innocuous_sched_yield
4118 /* System header to define __stub macros and hopefully few prototypes,
4119 which can conflict with char sched_yield (); below.
4120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4121 <limits.h> exists even on freestanding compilers. */
4124 # include <limits.h>
4126 # include <assert.h>
4131 /* Override any gcc2 internal prototype to avoid an error. */
4136 /* We use char because int might match the return type of a gcc2
4137 builtin and then its argument prototype would still apply. */
4138 char sched_yield ();
4139 /* The GNU C library defines this for functions which it implements
4140 to always fail with ENOSYS. Some functions are actually named
4141 something starting with __ and the normal name is an alias. */
4142 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
4145 char (*f) () = sched_yield;
4154 return f != sched_yield;
4159 rm -f conftest.$ac_objext conftest$ac_exeext
4160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4161 (eval $ac_link) 2>conftest.er1
4163 grep -v '^ *+' conftest.er1 >conftest.err
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } &&
4168 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; } &&
4174 { ac_try='test -s conftest$ac_exeext'
4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; }; then
4180 ac_cv_func_sched_yield=yes
4182 echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4185 ac_cv_func_sched_yield=no
4187 rm -f conftest.err conftest.$ac_objext \
4188 conftest$ac_exeext conftest.$ac_ext
4190 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
4191 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
4192 if test $ac_cv_func_sched_yield = yes; then
4195 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
4196 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
4197 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 ac_check_lib_save_LIBS=$LIBS
4202 cat >conftest.$ac_ext <<_ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4209 /* Override any gcc2 internal prototype to avoid an error. */
4213 /* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */
4215 char sched_yield ();
4224 rm -f conftest.$ac_objext conftest$ac_exeext
4225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4226 (eval $ac_link) 2>conftest.er1
4228 grep -v '^ *+' conftest.er1 >conftest.err
4230 cat conftest.err >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } &&
4233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; } &&
4239 { ac_try='test -s conftest$ac_exeext'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 ac_cv_lib_rt_sched_yield=yes
4247 echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4250 ac_cv_lib_rt_sched_yield=no
4252 rm -f conftest.err conftest.$ac_objext \
4253 conftest$ac_exeext conftest.$ac_ext
4254 LIBS=$ac_check_lib_save_LIBS
4256 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
4257 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
4258 if test $ac_cv_lib_rt_sched_yield = yes; then
4265 echo "$as_me:$LINENO: checking for sched_yield support" >&5
4266 echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6
4267 cat >conftest.$ac_ext <<_ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4282 rm -f conftest.$ac_objext conftest$ac_exeext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4284 (eval $ac_link) 2>conftest.er1
4286 grep -v '^ *+' conftest.er1 >conftest.err
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } &&
4291 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; } &&
4297 { ac_try='test -s conftest$ac_exeext'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; }; then
4303 echo "$as_me:$LINENO: result: yes" >&5
4304 echo "${ECHO_T}yes" >&6
4306 cat >>confdefs.h <<\_ACEOF
4307 #define HAVE_SCHED_YIELD 1
4311 echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4314 echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4317 rm -f conftest.err conftest.$ac_objext \
4318 conftest$ac_exeext conftest.$ac_ext
4323 support_addstrings=no
4325 support_inheritpixmap=yes
4328 support_keepscrolling=yes
4329 support_selectionscrolling=yes
4331 support_mousewheel=yes
4332 support_mouseslipwheel=yes
4336 support_text_blink=yes
4337 support_pointer_blank=yes
4338 support_scroll_rxvt=yes
4339 support_scroll_next=yes
4340 support_scroll_xterm=yes
4341 support_scroll_plain=yes
4346 support_combining=yes
4347 support_8bitctrls=no
4348 support_iso14755=yes
4354 if test "x$enable_shared" = xyes; then
4356 cat >>confdefs.h <<\_ACEOF
4364 # Check whether --enable-everything or --disable-everything was given.
4365 if test "${enable_everything+set}" = set; then
4366 enableval="$enable_everything"
4368 if test x$enableval = xno; then
4371 support_inheritpixmap=no
4374 support_keepscrolling=no
4375 support_selectionscrolling=no
4378 support_mousewheel=no
4379 support_mouseslipwheel=no
4380 support_text_blink=no
4381 support_pointer_blank=no
4382 support_scroll_rxvt=no
4383 support_scroll_next=no
4384 support_scroll_xterm=no
4385 support_scroll_plain=no
4392 support_combining=no
4393 support_8bitctrls=no
4399 if test x$enableval = xyes; then
4402 support_inheritpixmap=yes
4405 support_keepscrolling=yes
4406 support_selectionscrolling=yes
4409 support_mousewheel=yes
4410 support_mouseslipwheel=yes
4411 support_text_blink=yes
4412 support_pointer_blank=yes
4413 support_scroll_rxvt=yes
4414 support_scroll_next=yes
4415 support_scroll_xterm=yes
4416 support_scroll_plain=yes
4422 support_unicode3=yes
4423 support_combining=yes
4424 #support_8bitctrls=yes
4425 support_iso14755=yes
4433 # Check whether --enable-unicode3 or --disable-unicode3 was given.
4434 if test "${enable_unicode3+set}" = set; then
4435 enableval="$enable_unicode3"
4436 if test x$enableval = xyes -o x$enableval = xno; then
4437 support_unicode3=$enableval
4441 # Check whether --enable-combining or --disable-combining was given.
4442 if test "${enable_combining+set}" = set; then
4443 enableval="$enable_combining"
4444 if test x$enableval = xyes -o x$enableval = xno; then
4445 support_combining=$enableval
4449 # Check whether --enable-xft or --disable-xft was given.
4450 if test "${enable_xft+set}" = set; then
4451 enableval="$enable_xft"
4452 if test x$enableval = xyes -o x$enableval = xno; then
4453 support_xft=$enableval
4457 # Check whether --enable-font-styles or --disable-font-styles was given.
4458 if test "${enable_font_styles+set}" = set; then
4459 enableval="$enable_font_styles"
4460 if test x$enableval = xyes -o x$enableval = xno; then
4461 support_styles=$enableval
4465 # Check whether --enable-utmp or --disable-utmp was given.
4466 if test "${enable_utmp+set}" = set; then
4467 enableval="$enable_utmp"
4468 if test x$enableval = xyes -o x$enableval = xno; then
4469 support_utmp=$enableval
4473 # Check whether --enable-wtmp or --disable-wtmp was given.
4474 if test "${enable_wtmp+set}" = set; then
4475 enableval="$enable_wtmp"
4476 if test x$enableval = xyes -o x$enableval = xno; then
4477 support_wtmp=$enableval
4481 # Check whether --enable-lastlog or --disable-lastlog was given.
4482 if test "${enable_lastlog+set}" = set; then
4483 enableval="$enable_lastlog"
4484 if test x$enableval = xyes -o x$enableval = xno; then
4485 support_lastlog=$enableval
4489 # Check whether --enable-xpm-background or --disable-xpm-background was given.
4490 if test "${enable_xpm_background+set}" = set; then
4491 enableval="$enable_xpm_background"
4492 if test x$enableval = xyes -o x$enableval = xno; then
4493 support_xpm=$enableval
4497 # Check whether --enable-transparency or --disable-transparency was given.
4498 if test "${enable_transparency+set}" = set; then
4499 enableval="$enable_transparency"
4500 if test x$enableval = xyes -o x$enableval = xno; then
4501 support_inheritpixmap=$enableval
4505 # Check whether --enable-tinting or --disable-tinting was given.
4506 if test "${enable_tinting+set}" = set; then
4507 enableval="$enable_tinting"
4508 if test x$enableval = xyes -o x$enableval = xno; then
4509 support_tinting=$enableval
4513 # Check whether --enable-fading or --disable-fading was given.
4514 if test "${enable_fading+set}" = set; then
4515 enableval="$enable_fading"
4516 if test x$enableval = xyes -o x$enableval = xno; then
4517 support_fading=$enableval
4521 # Check whether --enable-menubar or --disable-menubar was given.
4522 if test "${enable_menubar+set}" = set; then
4523 enableval="$enable_menubar"
4524 if test x$enableval = xyes -o x$enableval = xno; then
4525 support_menubar=$enableval
4529 # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
4530 if test "${enable_rxvt_scroll+set}" = set; then
4531 enableval="$enable_rxvt_scroll"
4532 if test x$enableval = xyes -o x$enableval = xno; then
4533 support_scroll_rxvt=$enableval
4537 # Check whether --enable-next-scroll or --disable-next-scroll was given.
4538 if test "${enable_next_scroll+set}" = set; then
4539 enableval="$enable_next_scroll"
4540 if test x$enableval = xyes -o x$enableval = xno; then
4541 support_scroll_next=$enableval
4545 # Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
4546 if test "${enable_xterm_scroll+set}" = set; then
4547 enableval="$enable_xterm_scroll"
4548 if test x$enableval = xyes -o x$enableval = xno; then
4549 support_scroll_xterm=$enableval
4553 # Check whether --enable-perl or --disable-perl was given.
4554 if test "${enable_perl+set}" = set; then
4555 enableval="$enable_perl"
4556 if test x$enableval = xyes -o x$enableval = xno; then
4557 support_perl=$enableval
4561 # Check whether --enable-plain-scroll or --disable-plain-scroll was given.
4562 if test "${enable_plain_scroll+set}" = set; then
4563 enableval="$enable_plain_scroll"
4564 if test x$enableval = xyes -o x$enableval = xno; then
4565 support_scroll_plain=$enableval
4569 # Check whether --enable-half-shadow or --disable-half-shadow was given.
4570 if test "${enable_half_shadow+set}" = set; then
4571 enableval="$enable_half_shadow"
4572 if test x$enableval = xyes; then
4574 cat >>confdefs.h <<\_ACEOF
4575 #define HALFSHADOW 1
4582 # Check whether --with-codesets or --without-codesets was given.
4583 if test "${with_codesets+set}" = set; then
4584 withval="$with_codesets"
4588 # Check whether --enable-xim or --disable-xim was given.
4589 if test "${enable_xim+set}" = set; then
4590 enableval="$enable_xim"
4591 if test x$enableval = xyes -o x$enableval = xno; then
4592 support_xim=$enableval
4596 # Check whether --enable-ttygid or --disable-ttygid was given.
4597 if test "${enable_ttygid+set}" = set; then
4598 enableval="$enable_ttygid"
4599 if test x$enableval = xyes; then
4601 cat >>confdefs.h <<\_ACEOF
4602 #define TTY_GID_SUPPORT 1
4608 # Check whether --enable-backspace-key or --disable-backspace-key was given.
4609 if test "${enable_backspace_key+set}" = set; then
4610 enableval="$enable_backspace_key"
4611 if test x$enableval = xno; then
4613 cat >>confdefs.h <<\_ACEOF
4614 #define NO_BACKSPACE_KEY 1
4620 # Check whether --enable-delete-key or --disable-delete-key was given.
4621 if test "${enable_delete_key+set}" = set; then
4622 enableval="$enable_delete_key"
4623 if test x$enableval = xno; then
4625 cat >>confdefs.h <<\_ACEOF
4626 #define NO_DELETE_KEY 1
4632 # Check whether --enable-resources or --disable-resources was given.
4633 if test "${enable_resources+set}" = set; then
4634 enableval="$enable_resources"
4635 if test x$enableval = xno; then
4637 cat >>confdefs.h <<\_ACEOF
4638 #define NO_RESOURCES 1
4644 # Check whether --enable-xgetdefault or --disable-xgetdefault was given.
4645 if test "${enable_xgetdefault+set}" = set; then
4646 enableval="$enable_xgetdefault"
4647 if test x$enableval = xyes; then
4649 cat >>confdefs.h <<\_ACEOF
4650 #define USE_XGETDEFAULT 1
4656 # Check whether --enable-8bitctrls or --disable-8bitctrls was given.
4657 if test "${enable_8bitctrls+set}" = set; then
4658 enableval="$enable_8bitctrls"
4659 if test x$enableval = xyes -o x$enableval = xno; then
4660 support_8bitctrls=$enableval
4665 # Check whether --enable-fallback or --disable-fallback was given.
4666 if test "${enable_fallback+set}" = set; then
4667 enableval="$enable_fallback"
4669 test x$enableval = xyes && enableval=Rxvt
4670 test x$enableval = xno && enableval=
4671 RESFALLBACK="$enableval"
4675 if test x$RESFALLBACK != x; then
4677 cat >>confdefs.h <<_ACEOF
4678 #define RESFALLBACK "$RESFALLBACK"
4685 # Check whether --with-res-name or --without-res-name was given.
4686 if test "${with_res_name+set}" = set; then
4687 withval="$with_res_name"
4691 cat >>confdefs.h <<_ACEOF
4692 #define RESNAME "$RESNAME"
4698 # Check whether --with-res-class or --without-res-class was given.
4699 if test "${with_res_class+set}" = set; then
4700 withval="$with_res_class"
4704 cat >>confdefs.h <<_ACEOF
4705 #define RESCLASS "$RESCLASS"
4711 # Check whether --with-name or --without-name was given.
4712 if test "${with_name+set}" = set; then
4713 withval="$with_name"
4717 cat >>confdefs.h <<_ACEOF
4718 #define RXVTNAME "$RXVTNAME"
4722 RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4725 # Check whether --enable-strings or --disable-strings was given.
4726 if test "${enable_strings+set}" = set; then
4727 enableval="$enable_strings"
4728 if test x$enableval = xyes -o x$enableval = xno; then
4729 support_addstrings=$enableval
4733 # Check whether --enable-swapscreen or --disable-swapscreen was given.
4734 if test "${enable_swapscreen+set}" = set; then
4735 enableval="$enable_swapscreen"
4736 if test x$enableval = xno; then
4738 cat >>confdefs.h <<\_ACEOF
4739 #define NO_SECONDARY_SCREEN 1
4745 # Check whether --enable-iso14755 or --disable-iso14755 was given.
4746 if test "${enable_iso14755+set}" = set; then
4747 enableval="$enable_iso14755"
4748 if test x$enableval = xyes -o x$enableval = xno; then
4749 support_iso14755=$enableval
4753 # Check whether --enable-frills or --disable-frills was given.
4754 if test "${enable_frills+set}" = set; then
4755 enableval="$enable_frills"
4756 if test x$enableval = xyes -o x$enableval = xno; then
4757 support_frills=$enableval
4761 # Check whether --enable-24bit or --disable-24bit was given.
4762 if test "${enable_24bit+set}" = set; then
4763 enableval="$enable_24bit"
4764 if test x$enableval = xyes -o x$enableval = xno; then
4765 support_24bit=$enableval
4769 # Check whether --enable-keepscrolling or --disable-keepscrolling was given.
4770 if test "${enable_keepscrolling+set}" = set; then
4771 enableval="$enable_keepscrolling"
4772 if test x$enableval = xyes -o x$enableval = xno; then
4773 support_keepscrolling=$enableval
4777 # Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
4778 if test "${enable_selectionscrolling+set}" = set; then
4779 enableval="$enable_selectionscrolling"
4780 if test x$enableval = xyes -o x$enableval = xno; then
4781 support_selectionscrolling=$enableval
4785 # Check whether --enable-mousewheel or --disable-mousewheel was given.
4786 if test "${enable_mousewheel+set}" = set; then
4787 enableval="$enable_mousewheel"
4788 if test x$enableval = xyes -o x$enableval = xno; then
4789 support_mousewheel=$enableval
4793 # Check whether --enable-slipwheeling or --disable-slipwheeling was given.
4794 if test "${enable_slipwheeling+set}" = set; then
4795 enableval="$enable_slipwheeling"
4796 if test x$enableval = xyes -o x$enableval = xno; then
4797 support_mouseslipwheel=$enableval
4801 # Check whether --enable-dmalloc or --disable-dmalloc was given.
4802 if test "${enable_dmalloc+set}" = set; then
4803 enableval="$enable_dmalloc"
4804 if test x$enableval = xyes; then
4806 DEBUG=-DDEBUG_MALLOC
4807 DLIB="-L/usr/local/lib -ldmalloc"
4808 DINCLUDE=-I/usr/local/include
4812 # Check whether --enable-dlmalloc or --disable-dlmalloc was given.
4813 if test "${enable_dlmalloc+set}" = set; then
4814 enableval="$enable_dlmalloc"
4815 if test x$enableval = xyes; then
4818 DLIB="-L/usr/local/lib -ldlmalloc"
4823 # Check whether --enable-smart-resize or --disable-smart-resize was given.
4824 if test "${enable_smart_resize+set}" = set; then
4825 enableval="$enable_smart_resize"
4826 if test x$enableval = xyes; then
4828 cat >>confdefs.h <<\_ACEOF
4829 #define SMART_RESIZE 1
4835 # Check whether --enable-text-blink or --disable-text-blink was given.
4836 if test "${enable_text_blink+set}" = set; then
4837 enableval="$enable_text_blink"
4838 if test x$enableval = xyes -o x$enableval = xno; then
4839 support_text_blink=$enableval
4843 # Check whether --enable-pointer-blank or --disable-pointer-blank was given.
4844 if test "${enable_pointer_blank+set}" = set; then
4845 enableval="$enable_pointer_blank"
4846 if test x$enableval = xyes -o x$enableval = xno; then
4847 support_pointer_blank=$enableval
4852 # Check whether --with-term or --without-term was given.
4853 if test "${with_term+set}" = set; then
4854 withval="$with_term"
4855 if test x$withval != x; then
4857 cat >>confdefs.h <<_ACEOF
4858 #define TERMENV "$withval"
4865 # Check whether --with-terminfo or --without-terminfo was given.
4866 if test "${with_terminfo+set}" = set; then
4867 withval="$with_terminfo"
4868 if test x$withval != x; then
4870 cat >>confdefs.h <<_ACEOF
4871 #define RXVT_TERMINFO "$withval"
4879 cat >>confdefs.h <<\_ACEOF
4880 #define PROTOTYPES 1
4884 # Extract the first word of "mv", so it can be a program name with args.
4885 set dummy mv; ac_word=$2
4886 echo "$as_me:$LINENO: checking for $ac_word" >&5
4887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4888 if test "${ac_cv_path_MV+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4903 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4916 if test -n "$MV"; then
4917 echo "$as_me:$LINENO: result: $MV" >&5
4918 echo "${ECHO_T}$MV" >&6
4920 echo "$as_me:$LINENO: result: no" >&5
4921 echo "${ECHO_T}no" >&6
4924 # Extract the first word of "rm", so it can be a program name with args.
4925 set dummy rm; ac_word=$2
4926 echo "$as_me:$LINENO: checking for $ac_word" >&5
4927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4928 if test "${ac_cv_path_RM+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4943 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4950 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4956 if test -n "$RM"; then
4957 echo "$as_me:$LINENO: result: $RM" >&5
4958 echo "${ECHO_T}$RM" >&6
4960 echo "$as_me:$LINENO: result: no" >&5
4961 echo "${ECHO_T}no" >&6
4964 # Extract the first word of "cp", so it can be a program name with args.
4965 set dummy cp; ac_word=$2
4966 echo "$as_me:$LINENO: checking for $ac_word" >&5
4967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4968 if test "${ac_cv_path_CP+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4996 if test -n "$CP"; then
4997 echo "$as_me:$LINENO: result: $CP" >&5
4998 echo "${ECHO_T}$CP" >&6
5000 echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6
5004 # Extract the first word of "ln", so it can be a program name with args.
5005 set dummy ln; ac_word=$2
5006 echo "$as_me:$LINENO: checking for $ac_word" >&5
5007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5008 if test "${ac_cv_path_LN+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
5024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
5036 if test -n "$LN"; then
5037 echo "$as_me:$LINENO: result: $LN" >&5
5038 echo "${ECHO_T}$LN" >&6
5040 echo "$as_me:$LINENO: result: no" >&5
5041 echo "${ECHO_T}no" >&6
5044 # Extract the first word of "sed", so it can be a program name with args.
5045 set dummy sed; ac_word=$2
5046 echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5048 if test "${ac_cv_path_SED+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5076 if test -n "$SED"; then
5077 echo "$as_me:$LINENO: result: $SED" >&5
5078 echo "${ECHO_T}$SED" >&6
5080 echo "$as_me:$LINENO: result: no" >&5
5081 echo "${ECHO_T}no" >&6
5084 # Extract the first word of "echo", so it can be a program name with args.
5085 set dummy echo; ac_word=$2
5086 echo "$as_me:$LINENO: checking for $ac_word" >&5
5087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5088 if test "${ac_cv_path_ECHO+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5114 ECHO=$ac_cv_path_ECHO
5116 if test -n "$ECHO"; then
5117 echo "$as_me:$LINENO: result: $ECHO" >&5
5118 echo "${ECHO_T}$ECHO" >&6
5120 echo "$as_me:$LINENO: result: no" >&5
5121 echo "${ECHO_T}no" >&6
5124 # Extract the first word of "cmp", so it can be a program name with args.
5125 set dummy cmp; ac_word=$2
5126 echo "$as_me:$LINENO: checking for $ac_word" >&5
5127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5128 if test "${ac_cv_path_CMP+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5156 if test -n "$CMP"; then
5157 echo "$as_me:$LINENO: result: $CMP" >&5
5158 echo "${ECHO_T}$CMP" >&6
5160 echo "$as_me:$LINENO: result: no" >&5
5161 echo "${ECHO_T}no" >&6
5164 # Extract the first word of "tbl", so it can be a program name with args.
5165 set dummy tbl; ac_word=$2
5166 echo "$as_me:$LINENO: checking for $ac_word" >&5
5167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5168 if test "${ac_cv_path_TBL+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5183 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 if test -n "$TBL"; then
5196 echo "$as_me:$LINENO: result: $TBL" >&5
5197 echo "${ECHO_T}$TBL" >&6
5199 echo "$as_me:$LINENO: result: no" >&5
5200 echo "${ECHO_T}no" >&6
5203 # Extract the first word of "tic", so it can be a program name with args.
5204 set dummy tic; ac_word=$2
5205 echo "$as_me:$LINENO: checking for $ac_word" >&5
5206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5207 if test "${ac_cv_path_TIC+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 if test -n "$TIC"; then
5235 echo "$as_me:$LINENO: result: $TIC" >&5
5236 echo "${ECHO_T}$TIC" >&6
5238 echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6
5246 if test "x$ac_path_x_has_been_run" != xyes; then
5247 echo "$as_me:$LINENO: checking for X" >&5
5248 echo $ECHO_N "checking for X... $ECHO_C" >&6
5250 ac_path_x_has_been_run=yes
5252 # Check whether --with-x or --without-x was given.
5253 if test "${with_x+set}" = set; then
5257 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5258 if test "x$with_x" = xno; then
5259 # The user explicitly disabled X.
5262 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5263 # Both variables are already set.
5266 if test "${ac_cv_have_x+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 # One or both of the vars are not set, and there is no cached value.
5270 ac_x_includes=no ac_x_libraries=no
5272 if mkdir conftest.dir; then
5274 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5275 cat >Imakefile <<'_ACEOF'
5277 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5279 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5280 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5281 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5282 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5283 for ac_extension in a so sl; do
5284 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5285 test -f $ac_im_libdir/libX11.$ac_extension; then
5286 ac_im_usrlibdir=$ac_im_libdir; break
5289 # Screen out bogus values from the imake configuration. They are
5290 # bogus both because they are the default anyway, and because
5291 # using them would break gcc on systems where it needs fixed includes.
5292 case $ac_im_incroot in
5294 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5296 case $ac_im_usrlibdir in
5298 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5305 # Standard set of common directories for X headers.
5306 # Check X11 before X11Rn because it is often a symlink to the current release.
5318 /usr/local/X11/include
5319 /usr/local/X11R6/include
5320 /usr/local/X11R5/include
5321 /usr/local/X11R4/include
5323 /usr/local/include/X11
5324 /usr/local/include/X11R6
5325 /usr/local/include/X11R5
5326 /usr/local/include/X11R4
5330 /usr/XFree86/include/X11
5334 /usr/unsupported/include
5336 /usr/local/x11r5/include
5337 /usr/lpp/Xamples/include
5339 /usr/openwin/include
5340 /usr/openwin/share/include'
5342 if test "$ac_x_includes" = no; then
5343 # Guess where to find include files, by looking for a specified header file.
5344 # First, try using that file with no special directory specified.
5345 cat >conftest.$ac_ext <<_ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5351 #include <X11/Xlib.h>
5353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5356 grep -v '^ *+' conftest.er1 >conftest.err
5358 cat conftest.err >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } >/dev/null; then
5361 if test -s conftest.err; then
5362 ac_cpp_err=$ac_cxx_preproc_warn_flag
5363 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5370 if test -z "$ac_cpp_err"; then
5371 # We can compile using X headers with no special include directory.
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5377 for ac_dir in $ac_x_header_dirs; do
5378 if test -r "$ac_dir/X11/Xlib.h"; then
5379 ac_x_includes=$ac_dir
5384 rm -f conftest.err conftest.$ac_ext
5385 fi # $ac_x_includes = no
5387 if test "$ac_x_libraries" = no; then
5388 # Check for the libraries.
5389 # See if we find them without any special options.
5390 # Don't add to $LIBS permanently.
5393 cat >conftest.$ac_ext <<_ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5399 #include <X11/Xlib.h>
5408 rm -f conftest.$ac_objext conftest$ac_exeext
5409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5410 (eval $ac_link) 2>conftest.er1
5412 grep -v '^ *+' conftest.er1 >conftest.err
5414 cat conftest.err >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } &&
5417 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; } &&
5423 { ac_try='test -s conftest$ac_exeext'
5424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); }; }; then
5430 # We can link X programs with no special library path.
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5437 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5439 # Don't even attempt the hair of trying to link an X program!
5440 for ac_extension in a so sl; do
5441 if test -r $ac_dir/libX11.$ac_extension; then
5442 ac_x_libraries=$ac_dir
5448 rm -f conftest.err conftest.$ac_objext \
5449 conftest$ac_exeext conftest.$ac_ext
5450 fi # $ac_x_libraries = no
5452 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5453 # Didn't find X anywhere. Cache the known absence of X.
5454 ac_cv_have_x="have_x=no"
5456 # Record where we found X for the cache.
5457 ac_cv_have_x="have_x=yes \
5458 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5463 eval "$ac_cv_have_x"
5466 if test "$have_x" != yes; then
5467 echo "$as_me:$LINENO: result: $have_x" >&5
5468 echo "${ECHO_T}$have_x" >&6
5471 # If each of the values was on the command line, it overrides each guess.
5472 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5473 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5474 # Update the cache value to reflect the command line values.
5475 ac_cv_have_x="have_x=yes \
5476 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5477 # It might be that x_includes is empty (headers are found in the
5478 # standard search path. Then output the corresponding message
5479 ac_out_x_includes=$x_includes
5480 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
5481 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
5482 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
5486 if test "$no_x" = yes; then
5487 # Not all programs may use this symbol, but it does not hurt to define it.
5489 cat >>confdefs.h <<\_ACEOF
5490 #define X_DISPLAY_MISSING 1
5493 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5495 if test -n "$x_includes"; then
5496 X_CFLAGS="$X_CFLAGS -I$x_includes"
5499 # It would also be nice to do this for all -L options, not just this one.
5500 if test -n "$x_libraries"; then
5501 X_LIBS="$X_LIBS -L$x_libraries"
5502 # For Solaris; some versions of Sun CC require a space after -R and
5503 # others require no space. Words are not sufficient . . . .
5504 case `(uname -sr) 2>/dev/null` in
5506 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5507 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5508 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5509 cat >conftest.$ac_ext <<_ACEOF
5512 cat confdefs.h >>conftest.$ac_ext
5513 cat >>conftest.$ac_ext <<_ACEOF
5514 /* end confdefs.h. */
5524 rm -f conftest.$ac_objext conftest$ac_exeext
5525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5526 (eval $ac_link) 2>conftest.er1
5528 grep -v '^ *+' conftest.er1 >conftest.err
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } &&
5533 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; } &&
5539 { ac_try='test -s conftest$ac_exeext'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; }; then
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5552 rm -f conftest.err conftest.$ac_objext \
5553 conftest$ac_exeext conftest.$ac_ext
5554 if test $ac_R_nospace = yes; then
5555 echo "$as_me:$LINENO: result: no" >&5
5556 echo "${ECHO_T}no" >&6
5557 X_LIBS="$X_LIBS -R$x_libraries"
5559 LIBS="$ac_xsave_LIBS -R $x_libraries"
5560 cat >conftest.$ac_ext <<_ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5575 rm -f conftest.$ac_objext conftest$ac_exeext
5576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5577 (eval $ac_link) 2>conftest.er1
5579 grep -v '^ *+' conftest.er1 >conftest.err
5581 cat conftest.err >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } &&
5584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; } &&
5590 { ac_try='test -s conftest$ac_exeext'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5603 rm -f conftest.err conftest.$ac_objext \
5604 conftest$ac_exeext conftest.$ac_ext
5605 if test $ac_R_space = yes; then
5606 echo "$as_me:$LINENO: result: yes" >&5
5607 echo "${ECHO_T}yes" >&6
5608 X_LIBS="$X_LIBS -R $x_libraries"
5610 echo "$as_me:$LINENO: result: neither works" >&5
5611 echo "${ECHO_T}neither works" >&6
5618 # Check for system-dependent libraries X programs must link with.
5619 # Do this before checking for the system-independent R6 libraries
5620 # (-lICE), since we may need -lsocket or whatever for X linking.
5622 if test "$ISC" = yes; then
5623 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5625 # Martyn Johnson says this is needed for Ultrix, if the X
5626 # libraries were built with DECnet support. And Karl Berry says
5627 # the Alpha needs dnet_stub (dnet does not exist).
5628 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5629 cat >conftest.$ac_ext <<_ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5636 /* Override any gcc2 internal prototype to avoid an error. */
5640 /* We use char because int might match the return type of a gcc2
5641 builtin and then its argument prototype would still apply. */
5642 char XOpenDisplay ();
5651 rm -f conftest.$ac_objext conftest$ac_exeext
5652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5653 (eval $ac_link) 2>conftest.er1
5655 grep -v '^ *+' conftest.er1 >conftest.err
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; } &&
5666 { ac_try='test -s conftest$ac_exeext'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; }; then
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5677 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5678 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5679 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 ac_check_lib_save_LIBS=$LIBS
5684 cat >conftest.$ac_ext <<_ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5691 /* Override any gcc2 internal prototype to avoid an error. */
5695 /* We use char because int might match the return type of a gcc2
5696 builtin and then its argument prototype would still apply. */
5706 rm -f conftest.$ac_objext conftest$ac_exeext
5707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5708 (eval $ac_link) 2>conftest.er1
5710 grep -v '^ *+' conftest.er1 >conftest.err
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } &&
5715 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; } &&
5721 { ac_try='test -s conftest$ac_exeext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 ac_cv_lib_dnet_dnet_ntoa=yes
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5732 ac_cv_lib_dnet_dnet_ntoa=no
5734 rm -f conftest.err conftest.$ac_objext \
5735 conftest$ac_exeext conftest.$ac_ext
5736 LIBS=$ac_check_lib_save_LIBS
5738 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5739 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5740 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5741 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5744 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5745 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5746 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5747 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 ac_check_lib_save_LIBS=$LIBS
5751 LIBS="-ldnet_stub $LIBS"
5752 cat >conftest.$ac_ext <<_ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5759 /* Override any gcc2 internal prototype to avoid an error. */
5763 /* We use char because int might match the return type of a gcc2
5764 builtin and then its argument prototype would still apply. */
5774 rm -f conftest.$ac_objext conftest$ac_exeext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5776 (eval $ac_link) 2>conftest.er1
5778 grep -v '^ *+' conftest.er1 >conftest.err
5780 cat conftest.err >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } &&
5783 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; } &&
5789 { ac_try='test -s conftest$ac_exeext'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; }; then
5795 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5800 ac_cv_lib_dnet_stub_dnet_ntoa=no
5802 rm -f conftest.err conftest.$ac_objext \
5803 conftest$ac_exeext conftest.$ac_ext
5804 LIBS=$ac_check_lib_save_LIBS
5806 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5807 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5808 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5809 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5814 rm -f conftest.err conftest.$ac_objext \
5815 conftest$ac_exeext conftest.$ac_ext
5816 LIBS="$ac_xsave_LIBS"
5818 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5819 # to get the SysV transport functions.
5820 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5822 # The nsl library prevents programs from opening the X display
5823 # on Irix 5.2, according to T.E. Dickey.
5824 # The functions gethostbyname, getservbyname, and inet_addr are
5825 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5826 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5827 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5828 if test "${ac_cv_func_gethostbyname+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 cat >conftest.$ac_ext <<_ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5837 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5839 #define gethostbyname innocuous_gethostbyname
5841 /* System header to define __stub macros and hopefully few prototypes,
5842 which can conflict with char gethostbyname (); below.
5843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5844 <limits.h> exists even on freestanding compilers. */
5847 # include <limits.h>
5849 # include <assert.h>
5852 #undef gethostbyname
5854 /* Override any gcc2 internal prototype to avoid an error. */
5859 /* We use char because int might match the return type of a gcc2
5860 builtin and then its argument prototype would still apply. */
5861 char gethostbyname ();
5862 /* The GNU C library defines this for functions which it implements
5863 to always fail with ENOSYS. Some functions are actually named
5864 something starting with __ and the normal name is an alias. */
5865 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5868 char (*f) () = gethostbyname;
5877 return f != gethostbyname;
5882 rm -f conftest.$ac_objext conftest$ac_exeext
5883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5884 (eval $ac_link) 2>conftest.er1
5886 grep -v '^ *+' conftest.er1 >conftest.err
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; } &&
5897 { ac_try='test -s conftest$ac_exeext'
5898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; }; then
5903 ac_cv_func_gethostbyname=yes
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5908 ac_cv_func_gethostbyname=no
5910 rm -f conftest.err conftest.$ac_objext \
5911 conftest$ac_exeext conftest.$ac_ext
5913 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5914 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5916 if test $ac_cv_func_gethostbyname = no; then
5917 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5918 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5919 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 ac_check_lib_save_LIBS=$LIBS
5924 cat >conftest.$ac_ext <<_ACEOF
5927 cat confdefs.h >>conftest.$ac_ext
5928 cat >>conftest.$ac_ext <<_ACEOF
5929 /* end confdefs.h. */
5931 /* Override any gcc2 internal prototype to avoid an error. */
5935 /* We use char because int might match the return type of a gcc2
5936 builtin and then its argument prototype would still apply. */
5937 char gethostbyname ();
5946 rm -f conftest.$ac_objext conftest$ac_exeext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5948 (eval $ac_link) 2>conftest.er1
5950 grep -v '^ *+' conftest.er1 >conftest.err
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; } &&
5961 { ac_try='test -s conftest$ac_exeext'
5962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; }; then
5967 ac_cv_lib_nsl_gethostbyname=yes
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5972 ac_cv_lib_nsl_gethostbyname=no
5974 rm -f conftest.err conftest.$ac_objext \
5975 conftest$ac_exeext conftest.$ac_ext
5976 LIBS=$ac_check_lib_save_LIBS
5978 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5979 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5980 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5981 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5984 if test $ac_cv_lib_nsl_gethostbyname = no; then
5985 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5986 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5987 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 ac_check_lib_save_LIBS=$LIBS
5992 cat >conftest.$ac_ext <<_ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h. */
5999 /* Override any gcc2 internal prototype to avoid an error. */
6003 /* We use char because int might match the return type of a gcc2
6004 builtin and then its argument prototype would still apply. */
6005 char gethostbyname ();
6014 rm -f conftest.$ac_objext conftest$ac_exeext
6015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6016 (eval $ac_link) 2>conftest.er1
6018 grep -v '^ *+' conftest.er1 >conftest.err
6020 cat conftest.err >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; } &&
6029 { ac_try='test -s conftest$ac_exeext'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6035 ac_cv_lib_bsd_gethostbyname=yes
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6040 ac_cv_lib_bsd_gethostbyname=no
6042 rm -f conftest.err conftest.$ac_objext \
6043 conftest$ac_exeext conftest.$ac_ext
6044 LIBS=$ac_check_lib_save_LIBS
6046 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6047 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6048 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6049 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6055 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6056 # socket/setsockopt and other routines are undefined under SCO ODT
6057 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6058 # on later versions), says Simon Leinen: it contains gethostby*
6059 # variants that don't use the name server (or something). -lsocket
6060 # must be given before -lnsl if both are needed. We assume that
6061 # if connect needs -lnsl, so does gethostbyname.
6062 echo "$as_me:$LINENO: checking for connect" >&5
6063 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6064 if test "${ac_cv_func_connect+set}" = set; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6067 cat >conftest.$ac_ext <<_ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6073 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6075 #define connect innocuous_connect
6077 /* System header to define __stub macros and hopefully few prototypes,
6078 which can conflict with char connect (); below.
6079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6080 <limits.h> exists even on freestanding compilers. */
6083 # include <limits.h>
6085 # include <assert.h>
6090 /* Override any gcc2 internal prototype to avoid an error. */
6095 /* We use char because int might match the return type of a gcc2
6096 builtin and then its argument prototype would still apply. */
6098 /* The GNU C library defines this for functions which it implements
6099 to always fail with ENOSYS. Some functions are actually named
6100 something starting with __ and the normal name is an alias. */
6101 #if defined (__stub_connect) || defined (__stub___connect)
6104 char (*f) () = connect;
6113 return f != connect;
6118 rm -f conftest.$ac_objext conftest$ac_exeext
6119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6120 (eval $ac_link) 2>conftest.er1
6122 grep -v '^ *+' conftest.er1 >conftest.err
6124 cat conftest.err >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; } &&
6133 { ac_try='test -s conftest$ac_exeext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 ac_cv_func_connect=yes
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6144 ac_cv_func_connect=no
6146 rm -f conftest.err conftest.$ac_objext \
6147 conftest$ac_exeext conftest.$ac_ext
6149 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6150 echo "${ECHO_T}$ac_cv_func_connect" >&6
6152 if test $ac_cv_func_connect = no; then
6153 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6154 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6155 if test "${ac_cv_lib_socket_connect+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 ac_check_lib_save_LIBS=$LIBS
6159 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6160 cat >conftest.$ac_ext <<_ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h. */
6167 /* Override any gcc2 internal prototype to avoid an error. */
6171 /* We use char because int might match the return type of a gcc2
6172 builtin and then its argument prototype would still apply. */
6182 rm -f conftest.$ac_objext conftest$ac_exeext
6183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6184 (eval $ac_link) 2>conftest.er1
6186 grep -v '^ *+' conftest.er1 >conftest.err
6188 cat conftest.err >&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } &&
6191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); }; } &&
6197 { ac_try='test -s conftest$ac_exeext'
6198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }; }; then
6203 ac_cv_lib_socket_connect=yes
6205 echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6208 ac_cv_lib_socket_connect=no
6210 rm -f conftest.err conftest.$ac_objext \
6211 conftest$ac_exeext conftest.$ac_ext
6212 LIBS=$ac_check_lib_save_LIBS
6214 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6215 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6216 if test $ac_cv_lib_socket_connect = yes; then
6217 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6222 # Guillermo Gomez says -lposix is necessary on A/UX.
6223 echo "$as_me:$LINENO: checking for remove" >&5
6224 echo $ECHO_N "checking for remove... $ECHO_C" >&6
6225 if test "${ac_cv_func_remove+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 cat >conftest.$ac_ext <<_ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6236 #define remove innocuous_remove
6238 /* System header to define __stub macros and hopefully few prototypes,
6239 which can conflict with char remove (); below.
6240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6241 <limits.h> exists even on freestanding compilers. */
6244 # include <limits.h>
6246 # include <assert.h>
6251 /* Override any gcc2 internal prototype to avoid an error. */
6256 /* We use char because int might match the return type of a gcc2
6257 builtin and then its argument prototype would still apply. */
6259 /* The GNU C library defines this for functions which it implements
6260 to always fail with ENOSYS. Some functions are actually named
6261 something starting with __ and the normal name is an alias. */
6262 #if defined (__stub_remove) || defined (__stub___remove)
6265 char (*f) () = remove;
6279 rm -f conftest.$ac_objext conftest$ac_exeext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6281 (eval $ac_link) 2>conftest.er1
6283 grep -v '^ *+' conftest.er1 >conftest.err
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } &&
6288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; } &&
6294 { ac_try='test -s conftest$ac_exeext'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; }; then
6300 ac_cv_func_remove=yes
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6305 ac_cv_func_remove=no
6307 rm -f conftest.err conftest.$ac_objext \
6308 conftest$ac_exeext conftest.$ac_ext
6310 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6311 echo "${ECHO_T}$ac_cv_func_remove" >&6
6313 if test $ac_cv_func_remove = no; then
6314 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6315 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6316 if test "${ac_cv_lib_posix_remove+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 ac_check_lib_save_LIBS=$LIBS
6320 LIBS="-lposix $LIBS"
6321 cat >conftest.$ac_ext <<_ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6328 /* Override any gcc2 internal prototype to avoid an error. */
6332 /* We use char because int might match the return type of a gcc2
6333 builtin and then its argument prototype would still apply. */
6343 rm -f conftest.$ac_objext conftest$ac_exeext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6345 (eval $ac_link) 2>conftest.er1
6347 grep -v '^ *+' conftest.er1 >conftest.err
6349 cat conftest.err >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } &&
6352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; } &&
6358 { ac_try='test -s conftest$ac_exeext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 ac_cv_lib_posix_remove=yes
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6369 ac_cv_lib_posix_remove=no
6371 rm -f conftest.err conftest.$ac_objext \
6372 conftest$ac_exeext conftest.$ac_ext
6373 LIBS=$ac_check_lib_save_LIBS
6375 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6376 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6377 if test $ac_cv_lib_posix_remove = yes; then
6378 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6383 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6384 echo "$as_me:$LINENO: checking for shmat" >&5
6385 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6386 if test "${ac_cv_func_shmat+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 cat >conftest.$ac_ext <<_ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h. */
6395 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6397 #define shmat innocuous_shmat
6399 /* System header to define __stub macros and hopefully few prototypes,
6400 which can conflict with char shmat (); below.
6401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6402 <limits.h> exists even on freestanding compilers. */
6405 # include <limits.h>
6407 # include <assert.h>
6412 /* Override any gcc2 internal prototype to avoid an error. */
6417 /* We use char because int might match the return type of a gcc2
6418 builtin and then its argument prototype would still apply. */
6420 /* The GNU C library defines this for functions which it implements
6421 to always fail with ENOSYS. Some functions are actually named
6422 something starting with __ and the normal name is an alias. */
6423 #if defined (__stub_shmat) || defined (__stub___shmat)
6426 char (*f) () = shmat;
6440 rm -f conftest.$ac_objext conftest$ac_exeext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6442 (eval $ac_link) 2>conftest.er1
6444 grep -v '^ *+' conftest.er1 >conftest.err
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; } &&
6455 { ac_try='test -s conftest$ac_exeext'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; }; then
6461 ac_cv_func_shmat=yes
6463 echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6468 rm -f conftest.err conftest.$ac_objext \
6469 conftest$ac_exeext conftest.$ac_ext
6471 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6472 echo "${ECHO_T}$ac_cv_func_shmat" >&6
6474 if test $ac_cv_func_shmat = no; then
6475 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6476 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6477 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 ac_check_lib_save_LIBS=$LIBS
6482 cat >conftest.$ac_ext <<_ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6489 /* Override any gcc2 internal prototype to avoid an error. */
6493 /* We use char because int might match the return type of a gcc2
6494 builtin and then its argument prototype would still apply. */
6504 rm -f conftest.$ac_objext conftest$ac_exeext
6505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6506 (eval $ac_link) 2>conftest.er1
6508 grep -v '^ *+' conftest.er1 >conftest.err
6510 cat conftest.err >&5
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); } &&
6513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; } &&
6519 { ac_try='test -s conftest$ac_exeext'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; }; then
6525 ac_cv_lib_ipc_shmat=yes
6527 echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6530 ac_cv_lib_ipc_shmat=no
6532 rm -f conftest.err conftest.$ac_objext \
6533 conftest$ac_exeext conftest.$ac_ext
6534 LIBS=$ac_check_lib_save_LIBS
6536 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6537 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6538 if test $ac_cv_lib_ipc_shmat = yes; then
6539 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6545 # Check for libraries that X11R6 Xt/Xaw programs need.
6546 ac_save_LDFLAGS=$LDFLAGS
6547 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6548 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6549 # check for ICE first), but we must link in the order -lSM -lICE or
6550 # we get undefined symbols. So assume we have SM if we have ICE.
6551 # These have to be linked with before -lX11, unlike the other
6552 # libraries we check for below, so use a different variable.
6553 # John Interrante, Karl Berry
6554 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6555 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6556 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 ac_check_lib_save_LIBS=$LIBS
6560 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6561 cat >conftest.$ac_ext <<_ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6568 /* Override any gcc2 internal prototype to avoid an error. */
6572 /* We use char because int might match the return type of a gcc2
6573 builtin and then its argument prototype would still apply. */
6574 char IceConnectionNumber ();
6578 IceConnectionNumber ();
6583 rm -f conftest.$ac_objext conftest$ac_exeext
6584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6585 (eval $ac_link) 2>conftest.er1
6587 grep -v '^ *+' conftest.er1 >conftest.err
6589 cat conftest.err >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } &&
6592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; } &&
6598 { ac_try='test -s conftest$ac_exeext'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
6604 ac_cv_lib_ICE_IceConnectionNumber=yes
6606 echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6609 ac_cv_lib_ICE_IceConnectionNumber=no
6611 rm -f conftest.err conftest.$ac_objext \
6612 conftest$ac_exeext conftest.$ac_ext
6613 LIBS=$ac_check_lib_save_LIBS
6615 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6616 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6617 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6618 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6621 LDFLAGS=$ac_save_LDFLAGS
6627 if test x$support_xpm = xyes; then
6631 # Initialize some more variables set by options.
6632 # The variables have the same names as the options, with
6633 # dashes changed to underlines.
6635 # If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6636 # paths, otherwise set no_xpm=yes.
6637 # Uses ac_ vars as temps to allow command line to override cache and checks.
6638 echo "$as_me:$LINENO: checking for libXpm" >&5
6639 echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
6642 # Check whether --with-xpm_includes or --without-xpm_includes was given.
6643 if test "${with_xpm_includes+set}" = set; then
6644 withval="$with_xpm_includes"
6645 xpm_includes="$withval"
6650 # Check whether --with-xpm_library or --without-xpm_library was given.
6651 if test "${with_xpm_library+set}" = set; then
6652 withval="$with_xpm_library"
6653 xpm_libraries="$withval"
6658 # --without-xpm overrides everything else, but does not touch the cache.
6660 # Check whether --with-xpm or --without-xpm was given.
6661 if test "${with_xpm+set}" = set; then
6665 if test "$with_xpm" = no; then
6668 if test "${ac_cv_have_xpm+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 vt_xpm_include_X11=no
6673 if test -n "$xpm_includes"; then
6674 vt_xpm_includes=$xpm_includes
6678 if test -n "$xpm_libraries"; then
6679 vt_xpm_libraries=$xpm_libraries
6684 if test "$vt_xpm_includes" = NO; then
6685 # Guess where to find xpm.h
6687 ac_save_CPPFLAGS="$CPPFLAGS"
6688 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6690 # First, try using that file with no special directory specified.
6691 cat >conftest.$ac_ext <<_ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6697 #include <X11/xpm.h>
6699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6702 grep -v '^ *+' conftest.er1 >conftest.err
6704 cat conftest.err >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } >/dev/null; then
6707 if test -s conftest.err; then
6708 ac_cpp_err=$ac_cxx_preproc_warn_flag
6709 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6716 if test -z "$ac_cpp_err"; then
6717 # We can compile using X headers with no special include directory.
6719 vt_xpm_include_X11=yes
6721 echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.$ac_ext >&5
6724 CPPFLAGS="$ac_save_CPPFLAGS"
6725 # Look for the header file in a standard set of common directories.
6728 /usr/X11R6/include \
6729 /usr/X11R5/include \
6730 /usr/X11R4/include \
6733 /usr/include/X11R6 \
6734 /usr/include/X11R5 \
6735 /usr/include/X11R4 \
6737 /usr/local/X11/include \
6738 /usr/local/X11R6/include \
6739 /usr/local/X11R5/include \
6740 /usr/local/X11R4/include \
6742 /usr/local/include/X11 \
6743 /usr/local/include/X11R6 \
6744 /usr/local/include/X11R5 \
6745 /usr/local/include/X11R4 \
6749 /usr/XFree86/include/X11 \
6752 /usr/local/include \
6753 /usr/unsupported/include \
6754 /usr/athena/include \
6755 /usr/local/x11r5/include \
6756 /usr/lpp/Xamples/include \
6758 /usr/openwin/include \
6759 /usr/openwin/share/include \
6762 if test -r "$ac_dir/X11/xpm.h"; then
6763 vt_xpm_includes="$ac_dir"
6764 vt_xpm_include_X11=yes
6767 if test -r "$ac_dir/xpm.h"; then
6768 vt_xpm_includes=$ac_dir
6774 rm -f conftest.err conftest.$ac_ext
6777 if test "$vt_xpm_libraries" = NO; then
6778 # Check for the libraries.
6780 # See if we find them without any special options.
6781 # Don't add to $LIBS permanently.
6782 ac_save_LIBS="$LIBS"
6783 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6784 cat >conftest.$ac_ext <<_ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6794 XpmReadFileToPixmap()
6799 rm -f conftest.$ac_objext conftest$ac_exeext
6800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6801 (eval $ac_link) 2>conftest.er1
6803 grep -v '^ *+' conftest.er1 >conftest.err
6805 cat conftest.err >&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } &&
6808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; } &&
6814 { ac_try='test -s conftest$ac_exeext'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; }; then
6820 LIBS="$ac_save_LIBS"
6821 # We can link libXpm with no special library path.
6824 echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6827 LIBS="$ac_save_LIBS"
6828 # First see if replacing the include by lib works.
6830 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6841 /usr/local/X11/lib \
6842 /usr/local/X11R6/lib \
6843 /usr/local/X11R5/lib \
6844 /usr/local/X11R4/lib \
6846 /usr/local/lib/X11 \
6847 /usr/local/lib/X11R6 \
6848 /usr/local/lib/X11R5 \
6849 /usr/local/lib/X11R4 \
6853 /usr/XFree86/lib/X11 \
6857 /usr/unsupported/lib \
6859 /usr/local/x11r5/lib \
6860 /usr/lpp/Xamples/lib \
6863 /usr/openwin/share/lib \
6866 for ac_extension in a so sl; do
6867 if test -r $ac_dir/libXpm.$ac_extension; then
6868 vt_xpm_libraries=$ac_dir
6874 rm -f conftest.err conftest.$ac_objext \
6875 conftest$ac_exeext conftest.$ac_ext
6879 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6880 ac_cv_have_xpm="have_xpm=no"
6882 ac_cv_have_xpm="have_xpm=yes \
6883 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6884 vt_xpm_include_X11=$vt_xpm_include_X11"
6887 eval "$ac_cv_have_xpm"
6890 if test "$have_xpm" != yes; then
6891 echo "$as_me:$LINENO: result: $have_xpm" >&5
6892 echo "${ECHO_T}$have_xpm" >&6
6895 if test "$xpm_includes" != NO; then
6896 if test "$xpm_includes" = "$vt_xpm_includes"; then
6897 if test -r "$xpm_includes/X11/xpm.h"; then
6898 vt_xpm_include_X11=yes
6901 vt_xpm_include_X11=no
6902 if test -z "$xpm_includes"; then
6903 cat >conftest.$ac_ext <<_ACEOF
6906 cat confdefs.h >>conftest.$ac_ext
6907 cat >>conftest.$ac_ext <<_ACEOF
6908 /* end confdefs.h. */
6909 #include <X11/xpm.h>
6911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6914 grep -v '^ *+' conftest.er1 >conftest.err
6916 cat conftest.err >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } >/dev/null; then
6919 if test -s conftest.err; then
6920 ac_cpp_err=$ac_cxx_preproc_warn_flag
6921 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6928 if test -z "$ac_cpp_err"; then
6929 vt_xpm_include_X11=yes
6931 echo "$as_me: failed program was:" >&5
6932 sed 's/^/| /' conftest.$ac_ext >&5
6936 rm -f conftest.err conftest.$ac_ext
6938 if test -r "$xpm_includes/X11/xpm.h"; then
6939 vt_xpm_include_X11=yes
6943 vt_xpm_includes=$xpm_includes
6945 if test "x$xpm_libraries" != xNO; then
6946 vt_xpm_libraries=$xpm_libraries
6948 # Update the cache value to reflect the command line values.
6949 ac_cv_have_xpm="have_xpm=yes \
6950 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6951 vt_xpm_include_X11=$vt_xpm_include_X11"
6952 eval "$ac_cv_have_xpm"
6953 echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
6954 echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
6955 if test -n "$vt_xpm_includes"; then
6956 XPM_CPPFLAGS="-DHAVE_LIBXPM"
6958 if test -n "$vt_xpm_includes"; then
6959 XPM_CFLAGS="-I$vt_xpm_includes"
6962 if test -n "$vt_xpm_libraries"; then
6963 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6965 if test "x$vt_xpm_include_X11" = xyes; then
6967 cat >>confdefs.h <<\_ACEOF
6968 #define XPM_INC_X11 1
6978 if test x$no_xpm = xyes; then
6979 support_xpm=needsmanualspecification
6983 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6984 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6985 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 cat >conftest.$ac_ext <<_ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6994 #include <sys/types.h>
6995 #include <sys/wait.h>
6997 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7000 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7008 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7013 rm -f conftest.$ac_objext
7014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7015 (eval $ac_compile) 2>conftest.er1
7017 grep -v '^ *+' conftest.er1 >conftest.err
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; } &&
7028 { ac_try='test -s conftest.$ac_objext'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; }; then
7034 ac_cv_header_sys_wait_h=yes
7036 echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7039 ac_cv_header_sys_wait_h=no
7041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7043 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7044 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7045 if test $ac_cv_header_sys_wait_h = yes; then
7047 cat >>confdefs.h <<\_ACEOF
7048 #define HAVE_SYS_WAIT_H 1
7053 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7054 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7055 if test "${ac_cv_header_stdc+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 cat >conftest.$ac_ext <<_ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7077 rm -f conftest.$ac_objext
7078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7079 (eval $ac_compile) 2>conftest.er1
7081 grep -v '^ *+' conftest.er1 >conftest.err
7083 cat conftest.err >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } &&
7086 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; } &&
7092 { ac_try='test -s conftest.$ac_objext'
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7098 ac_cv_header_stdc=yes
7100 echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7103 ac_cv_header_stdc=no
7105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7107 if test $ac_cv_header_stdc = yes; then
7108 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7109 cat >conftest.$ac_ext <<_ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7119 $EGREP "memchr" >/dev/null 2>&1; then
7122 ac_cv_header_stdc=no
7128 if test $ac_cv_header_stdc = yes; then
7129 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7130 cat >conftest.$ac_ext <<_ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7140 $EGREP "free" >/dev/null 2>&1; then
7143 ac_cv_header_stdc=no
7149 if test $ac_cv_header_stdc = yes; then
7150 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7151 if test "$cross_compiling" = yes; then
7154 cat >conftest.$ac_ext <<_ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7161 #if ((' ' & 0x0FF) == 0x020)
7162 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7163 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7165 # define ISLOWER(c) \
7166 (('a' <= (c) && (c) <= 'i') \
7167 || ('j' <= (c) && (c) <= 'r') \
7168 || ('s' <= (c) && (c) <= 'z'))
7169 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7172 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7177 for (i = 0; i < 256; i++)
7178 if (XOR (islower (i), ISLOWER (i))
7179 || toupper (i) != TOUPPER (i))
7184 rm -f conftest$ac_exeext
7185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7186 (eval $ac_link) 2>&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7197 echo "$as_me: program exited with status $ac_status" >&5
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7202 ac_cv_header_stdc=no
7204 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7208 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7209 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7210 if test $ac_cv_header_stdc = yes; then
7212 cat >>confdefs.h <<\_ACEOF
7213 #define STDC_HEADERS 1
7218 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7228 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7229 inttypes.h stdint.h unistd.h
7231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7232 echo "$as_me:$LINENO: checking for $ac_header" >&5
7233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 cat >conftest.$ac_ext <<_ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7243 $ac_includes_default
7245 #include <$ac_header>
7247 rm -f conftest.$ac_objext
7248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7249 (eval $ac_compile) 2>conftest.er1
7251 grep -v '^ *+' conftest.er1 >conftest.err
7253 cat conftest.err >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } &&
7256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; } &&
7262 { ac_try='test -s conftest.$ac_objext'
7263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; }; then
7268 eval "$as_ac_Header=yes"
7270 echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7273 eval "$as_ac_Header=no"
7275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7280 cat >>confdefs.h <<_ACEOF
7281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7342 echo "$as_me:$LINENO: checking for $ac_header" >&5
7343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7350 # Is the header compilable?
7351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7353 cat >conftest.$ac_ext <<_ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7359 $ac_includes_default
7360 #include <$ac_header>
7362 rm -f conftest.$ac_objext
7363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7364 (eval $ac_compile) 2>conftest.er1
7366 grep -v '^ *+' conftest.er1 >conftest.err
7368 cat conftest.err >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } &&
7371 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); }; } &&
7377 { ac_try='test -s conftest.$ac_objext'
7378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); }; }; then
7383 ac_header_compiler=yes
7385 echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7388 ac_header_compiler=no
7390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7392 echo "${ECHO_T}$ac_header_compiler" >&6
7394 # Is the header present?
7395 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7397 cat >conftest.$ac_ext <<_ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 #include <$ac_header>
7405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7408 grep -v '^ *+' conftest.er1 >conftest.err
7410 cat conftest.err >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); } >/dev/null; then
7413 if test -s conftest.err; then
7414 ac_cpp_err=$ac_cxx_preproc_warn_flag
7415 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7422 if test -z "$ac_cpp_err"; then
7423 ac_header_preproc=yes
7425 echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.$ac_ext >&5
7428 ac_header_preproc=no
7430 rm -f conftest.err conftest.$ac_ext
7431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7432 echo "${ECHO_T}$ac_header_preproc" >&6
7434 # So? What about this header?
7435 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7441 ac_header_preproc=yes
7444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7458 ## ------------------------------------------ ##
7459 ## Report this to the AC_PACKAGE_NAME lists. ##
7460 ## ------------------------------------------ ##
7463 sed "s/^/$as_me: WARNING: /" >&2
7466 echo "$as_me:$LINENO: checking for $ac_header" >&5
7467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 eval "$as_ac_Header=\$ac_header_preproc"
7473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7478 cat >>confdefs.h <<_ACEOF
7479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7487 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7488 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7489 if test "${ac_cv_header_time+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 cat >conftest.$ac_ext <<_ACEOF
7495 cat confdefs.h >>conftest.$ac_ext
7496 cat >>conftest.$ac_ext <<_ACEOF
7497 /* end confdefs.h. */
7498 #include <sys/types.h>
7499 #include <sys/time.h>
7505 if ((struct tm *) 0)
7511 rm -f conftest.$ac_objext
7512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7513 (eval $ac_compile) 2>conftest.er1
7515 grep -v '^ *+' conftest.er1 >conftest.err
7517 cat conftest.err >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } &&
7520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); }; } &&
7526 { ac_try='test -s conftest.$ac_objext'
7527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); }; }; then
7532 ac_cv_header_time=yes
7534 echo "$as_me: failed program was:" >&5
7535 sed 's/^/| /' conftest.$ac_ext >&5
7537 ac_cv_header_time=no
7539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7541 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7542 echo "${ECHO_T}$ac_cv_header_time" >&6
7543 if test $ac_cv_header_time = yes; then
7545 cat >>confdefs.h <<\_ACEOF
7546 #define TIME_WITH_SYS_TIME 1
7552 echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7553 echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6
7554 if test "${rxvt_cv_header_sysioctl+set}" = set; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 cat >conftest.$ac_ext <<_ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h. */
7564 #include <sys/ioctl.h>
7565 #ifdef HAVE_TERMIOS_H
7566 #include <termios.h>
7576 rm -f conftest.$ac_objext
7577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7578 (eval $ac_compile) 2>conftest.er1
7580 grep -v '^ *+' conftest.er1 >conftest.err
7582 cat conftest.err >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } &&
7585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; } &&
7591 { ac_try='test -s conftest.$ac_objext'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; }; then
7597 rxvt_cv_header_sysioctl=yes
7599 echo "$as_me: failed program was:" >&5
7600 sed 's/^/| /' conftest.$ac_ext >&5
7602 rxvt_cv_header_sysioctl=no
7604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7606 echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7607 echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7609 if test -n "$GCC"; then
7614 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7616 ac_save_CFLAGS=$CFLAGS
7618 CFLAGS="$CFLAGS $X_CFLAGS"
7619 LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7620 echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7621 echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6
7622 if test "${rxvt_cv_rpath+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 if test "$cross_compiling" = yes; then
7626 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7627 echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7629 cat >conftest.$ac_ext <<_ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h. */
7639 (void) XOpenDisplay("foobar");
7642 rm -f conftest$ac_exeext
7643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7644 (eval $ac_link) 2>&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; }; then
7655 echo "$as_me: program exited with status $ac_status" >&5
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7662 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7665 echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7666 echo "${ECHO_T}$rxvt_cv_rpath" >&6
7667 if test x$rxvt_cv_rpath != xyes; then
7668 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7669 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7670 echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7671 echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6
7672 if test "${rxvt_cv_R+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7675 if test "$cross_compiling" = yes; then
7678 cat >conftest.$ac_ext <<_ACEOF
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h. */
7688 (void) XOpenDisplay("foobar");
7691 rm -f conftest$ac_exeext
7692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7693 (eval $ac_link) 2>&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; }; then
7704 echo "$as_me: program exited with status $ac_status" >&5
7705 echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7714 echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7715 echo "${ECHO_T}$rxvt_cv_R" >&6
7716 if test x$rxvt_cv_R != xyes; then
7717 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7721 echo "$as_me:$LINENO: checking for XPointer" >&5
7722 echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
7723 if test "${rxvt_cv_xpointer+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 cat >conftest.$ac_ext <<_ACEOF
7729 cat confdefs.h >>conftest.$ac_ext
7730 cat >>conftest.$ac_ext <<_ACEOF
7731 /* end confdefs.h. */
7732 #include <X11/Xlib.h>
7741 rm -f conftest.$ac_objext
7742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7743 (eval $ac_compile) 2>conftest.er1
7745 grep -v '^ *+' conftest.er1 >conftest.err
7747 cat conftest.err >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } &&
7750 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; } &&
7756 { ac_try='test -s conftest.$ac_objext'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; }; then
7762 rxvt_cv_xpointer=yes
7764 echo "$as_me: failed program was:" >&5
7765 sed 's/^/| /' conftest.$ac_ext >&5
7769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7771 echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7772 echo "${ECHO_T}$rxvt_cv_xpointer" >&6
7773 if test x$rxvt_cv_xpointer = xyes; then
7775 cat >>confdefs.h <<\_ACEOF
7776 #define HAVE_XPOINTER 1
7781 CFLAGS=$ac_save_CFLAGS
7784 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7785 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7786 if test "${ac_cv_c_const+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7789 cat >conftest.$ac_ext <<_ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7799 /* FIXME: Include the comments suggested by Paul. */
7801 /* Ultrix mips cc rejects this. */
7802 typedef int charset[2];
7804 /* SunOS 4.1.1 cc rejects this. */
7805 char const *const *ccp;
7807 /* NEC SVR4.0.2 mips cc rejects this. */
7808 struct point {int x, y;};
7809 static struct point const zero = {0,0};
7810 /* AIX XL C 1.02.0.0 rejects this.
7811 It does not let you subtract one const X* pointer from another in
7812 an arm of an if-expression whose if-part is not a constant
7814 const char *g = "string";
7815 ccp = &g + (g ? g-g : 0);
7816 /* HPUX 7.0 cc rejects these. */
7819 ccp = (char const *const *) p;
7820 { /* SCO 3.2v4 cc rejects this. */
7822 char const *s = 0 ? (char *) 0 : (char const *) 0;
7826 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7828 const int *foo = &x[0];
7831 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7832 typedef const int *iptr;
7836 { /* AIX XL C 1.02.0.0 rejects this saying
7837 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7838 struct s { int j; const int *ap[3]; };
7839 struct s *b; b->j = 5;
7841 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7850 rm -f conftest.$ac_objext
7851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7852 (eval $ac_compile) 2>conftest.er1
7854 grep -v '^ *+' conftest.er1 >conftest.err
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } &&
7859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); }; } &&
7865 { ac_try='test -s conftest.$ac_objext'
7866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }; }; then
7873 echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7880 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7881 echo "${ECHO_T}$ac_cv_c_const" >&6
7882 if test $ac_cv_c_const = no; then
7884 cat >>confdefs.h <<\_ACEOF
7890 echo "$as_me:$LINENO: checking for inline" >&5
7891 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7892 if test "${ac_cv_c_inline+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 for ac_kw in inline __inline__ __inline; do
7897 cat >conftest.$ac_ext <<_ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7905 static $ac_kw foo_t static_foo () {return 0; }
7906 $ac_kw foo_t foo () {return 0; }
7910 rm -f conftest.$ac_objext
7911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7912 (eval $ac_compile) 2>conftest.er1
7914 grep -v '^ *+' conftest.er1 >conftest.err
7916 cat conftest.err >&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } &&
7919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; } &&
7925 { ac_try='test -s conftest.$ac_objext'
7926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; }; then
7931 ac_cv_c_inline=$ac_kw; break
7933 echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7941 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7942 echo "${ECHO_T}$ac_cv_c_inline" >&6
7945 case $ac_cv_c_inline in
7948 case $ac_cv_c_inline in
7950 *) ac_val=$ac_cv_c_inline;;
7952 cat >>confdefs.h <<_ACEOF
7954 #define inline $ac_val
7962 echo "$as_me:$LINENO: checking for mode_t" >&5
7963 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7964 if test "${ac_cv_type_mode_t+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7967 cat >conftest.$ac_ext <<_ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h. */
7973 $ac_includes_default
7979 if (sizeof (mode_t))
7985 rm -f conftest.$ac_objext
7986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7987 (eval $ac_compile) 2>conftest.er1
7989 grep -v '^ *+' conftest.er1 >conftest.err
7991 cat conftest.err >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); } &&
7994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); }; } &&
8000 { ac_try='test -s conftest.$ac_objext'
8001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; }; then
8006 ac_cv_type_mode_t=yes
8008 echo "$as_me: failed program was:" >&5
8009 sed 's/^/| /' conftest.$ac_ext >&5
8011 ac_cv_type_mode_t=no
8013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8015 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8016 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
8017 if test $ac_cv_type_mode_t = yes; then
8021 cat >>confdefs.h <<_ACEOF
8027 echo "$as_me:$LINENO: checking for pid_t" >&5
8028 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8029 if test "${ac_cv_type_pid_t+set}" = set; then
8030 echo $ECHO_N "(cached) $ECHO_C" >&6
8032 cat >conftest.$ac_ext <<_ACEOF
8035 cat confdefs.h >>conftest.$ac_ext
8036 cat >>conftest.$ac_ext <<_ACEOF
8037 /* end confdefs.h. */
8038 $ac_includes_default
8050 rm -f conftest.$ac_objext
8051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8052 (eval $ac_compile) 2>conftest.er1
8054 grep -v '^ *+' conftest.er1 >conftest.err
8056 cat conftest.err >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } &&
8059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; } &&
8065 { ac_try='test -s conftest.$ac_objext'
8066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; }; then
8071 ac_cv_type_pid_t=yes
8073 echo "$as_me: failed program was:" >&5
8074 sed 's/^/| /' conftest.$ac_ext >&5
8078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8080 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8081 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8082 if test $ac_cv_type_pid_t = yes; then
8086 cat >>confdefs.h <<_ACEOF
8092 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8093 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
8094 if test "${ac_cv_type_uid_t+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 cat >conftest.$ac_ext <<_ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 #include <sys/types.h>
8106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8107 $EGREP "uid_t" >/dev/null 2>&1; then
8108 ac_cv_type_uid_t=yes
8115 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8116 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
8117 if test $ac_cv_type_uid_t = no; then
8119 cat >>confdefs.h <<\_ACEOF
8124 cat >>confdefs.h <<\_ACEOF
8131 echo "$as_me:$LINENO: checking for short" >&5
8132 echo $ECHO_N "checking for short... $ECHO_C" >&6
8133 if test "${ac_cv_type_short+set}" = set; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 cat >conftest.$ac_ext <<_ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8142 $ac_includes_default
8154 rm -f conftest.$ac_objext
8155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8156 (eval $ac_compile) 2>conftest.er1
8158 grep -v '^ *+' conftest.er1 >conftest.err
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } &&
8163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); }; } &&
8169 { ac_try='test -s conftest.$ac_objext'
8170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; }; then
8175 ac_cv_type_short=yes
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8184 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8185 echo "${ECHO_T}$ac_cv_type_short" >&6
8187 echo "$as_me:$LINENO: checking size of short" >&5
8188 echo $ECHO_N "checking size of short... $ECHO_C" >&6
8189 if test "${ac_cv_sizeof_short+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 if test "$ac_cv_type_short" = yes; then
8193 # The cast to unsigned long works around a bug in the HP C Compiler
8194 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8195 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8196 # This bug is HP SR number 8606223364.
8197 if test "$cross_compiling" = yes; then
8198 # Depending upon the size, compute the lo and hi bounds.
8199 cat >conftest.$ac_ext <<_ACEOF
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h. */
8205 $ac_includes_default
8209 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
8216 rm -f conftest.$ac_objext
8217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8218 (eval $ac_compile) 2>conftest.er1
8220 grep -v '^ *+' conftest.er1 >conftest.err
8222 cat conftest.err >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } &&
8225 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; } &&
8231 { ac_try='test -s conftest.$ac_objext'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; }; then
8239 cat >conftest.$ac_ext <<_ACEOF
8242 cat confdefs.h >>conftest.$ac_ext
8243 cat >>conftest.$ac_ext <<_ACEOF
8244 /* end confdefs.h. */
8245 $ac_includes_default
8249 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8256 rm -f conftest.$ac_objext
8257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8258 (eval $ac_compile) 2>conftest.er1
8260 grep -v '^ *+' conftest.er1 >conftest.err
8262 cat conftest.err >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } &&
8265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; } &&
8271 { ac_try='test -s conftest.$ac_objext'
8272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; }; then
8277 ac_hi=$ac_mid; break
8279 echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.$ac_ext >&5
8282 ac_lo=`expr $ac_mid + 1`
8283 if test $ac_lo -le $ac_mid; then
8287 ac_mid=`expr 2 '*' $ac_mid + 1`
8289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8295 cat >conftest.$ac_ext <<_ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h. */
8301 $ac_includes_default
8305 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
8312 rm -f conftest.$ac_objext
8313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8314 (eval $ac_compile) 2>conftest.er1
8316 grep -v '^ *+' conftest.er1 >conftest.err
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } &&
8321 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); }; } &&
8327 { ac_try='test -s conftest.$ac_objext'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; }; then
8335 cat >conftest.$ac_ext <<_ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8341 $ac_includes_default
8345 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
8352 rm -f conftest.$ac_objext
8353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8354 (eval $ac_compile) 2>conftest.er1
8356 grep -v '^ *+' conftest.er1 >conftest.err
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } &&
8361 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; } &&
8367 { ac_try='test -s conftest.$ac_objext'
8368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; }; then
8373 ac_lo=$ac_mid; break
8375 echo "$as_me: failed program was:" >&5
8376 sed 's/^/| /' conftest.$ac_ext >&5
8378 ac_hi=`expr '(' $ac_mid ')' - 1`
8379 if test $ac_mid -le $ac_hi; then
8383 ac_mid=`expr 2 '*' $ac_mid`
8385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8388 echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8396 # Binary search between lo and hi bounds.
8397 while test "x$ac_lo" != "x$ac_hi"; do
8398 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8399 cat >conftest.$ac_ext <<_ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 $ac_includes_default
8409 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8416 rm -f conftest.$ac_objext
8417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8418 (eval $ac_compile) 2>conftest.er1
8420 grep -v '^ *+' conftest.er1 >conftest.err
8422 cat conftest.err >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } &&
8425 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; } &&
8431 { ac_try='test -s conftest.$ac_objext'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; }; then
8439 echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8442 ac_lo=`expr '(' $ac_mid ')' + 1`
8444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8447 ?*) ac_cv_sizeof_short=$ac_lo;;
8448 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8449 See \`config.log' for more details." >&5
8450 echo "$as_me: error: cannot compute sizeof (short), 77
8451 See \`config.log' for more details." >&2;}
8452 { (exit 1); exit 1; }; } ;;
8455 if test "$cross_compiling" = yes; then
8456 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8457 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8458 { (exit 1); exit 1; }; }
8460 cat >conftest.$ac_ext <<_ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8466 $ac_includes_default
8467 long longval () { return (long) (sizeof (short)); }
8468 unsigned long ulongval () { return (long) (sizeof (short)); }
8475 FILE *f = fopen ("conftest.val", "w");
8478 if (((long) (sizeof (short))) < 0)
8480 long i = longval ();
8481 if (i != ((long) (sizeof (short))))
8483 fprintf (f, "%ld\n", i);
8487 unsigned long i = ulongval ();
8488 if (i != ((long) (sizeof (short))))
8490 fprintf (f, "%lu\n", i);
8492 exit (ferror (f) || fclose (f) != 0);
8498 rm -f conftest$ac_exeext
8499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8500 (eval $ac_link) 2>&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_cv_sizeof_short=`cat conftest.val`
8511 echo "$as_me: program exited with status $ac_status" >&5
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8516 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8517 See \`config.log' for more details." >&5
8518 echo "$as_me: error: cannot compute sizeof (short), 77
8519 See \`config.log' for more details." >&2;}
8520 { (exit 1); exit 1; }; }
8522 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8527 ac_cv_sizeof_short=0
8530 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8531 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8532 cat >>confdefs.h <<_ACEOF
8533 #define SIZEOF_SHORT $ac_cv_sizeof_short
8537 echo "$as_me:$LINENO: checking for int" >&5
8538 echo $ECHO_N "checking for int... $ECHO_C" >&6
8539 if test "${ac_cv_type_int+set}" = set; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8542 cat >conftest.$ac_ext <<_ACEOF
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h. */
8548 $ac_includes_default
8560 rm -f conftest.$ac_objext
8561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8562 (eval $ac_compile) 2>conftest.er1
8564 grep -v '^ *+' conftest.er1 >conftest.err
8566 cat conftest.err >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } &&
8569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; } &&
8575 { ac_try='test -s conftest.$ac_objext'
8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; }; then
8583 echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8590 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8591 echo "${ECHO_T}$ac_cv_type_int" >&6
8593 echo "$as_me:$LINENO: checking size of int" >&5
8594 echo $ECHO_N "checking size of int... $ECHO_C" >&6
8595 if test "${ac_cv_sizeof_int+set}" = set; then
8596 echo $ECHO_N "(cached) $ECHO_C" >&6
8598 if test "$ac_cv_type_int" = yes; then
8599 # The cast to unsigned long works around a bug in the HP C Compiler
8600 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8601 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8602 # This bug is HP SR number 8606223364.
8603 if test "$cross_compiling" = yes; then
8604 # Depending upon the size, compute the lo and hi bounds.
8605 cat >conftest.$ac_ext <<_ACEOF
8608 cat confdefs.h >>conftest.$ac_ext
8609 cat >>conftest.$ac_ext <<_ACEOF
8610 /* end confdefs.h. */
8611 $ac_includes_default
8615 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
8622 rm -f conftest.$ac_objext
8623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8624 (eval $ac_compile) 2>conftest.er1
8626 grep -v '^ *+' conftest.er1 >conftest.err
8628 cat conftest.err >&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); } &&
8631 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; } &&
8637 { ac_try='test -s conftest.$ac_objext'
8638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; }; then
8645 cat >conftest.$ac_ext <<_ACEOF
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h. */
8651 $ac_includes_default
8655 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8662 rm -f conftest.$ac_objext
8663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8664 (eval $ac_compile) 2>conftest.er1
8666 grep -v '^ *+' conftest.er1 >conftest.err
8668 cat conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } &&
8671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; } &&
8677 { ac_try='test -s conftest.$ac_objext'
8678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; }; then
8683 ac_hi=$ac_mid; break
8685 echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8688 ac_lo=`expr $ac_mid + 1`
8689 if test $ac_lo -le $ac_mid; then
8693 ac_mid=`expr 2 '*' $ac_mid + 1`
8695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8698 echo "$as_me: failed program was:" >&5
8699 sed 's/^/| /' conftest.$ac_ext >&5
8701 cat >conftest.$ac_ext <<_ACEOF
8704 cat confdefs.h >>conftest.$ac_ext
8705 cat >>conftest.$ac_ext <<_ACEOF
8706 /* end confdefs.h. */
8707 $ac_includes_default
8711 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8718 rm -f conftest.$ac_objext
8719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8720 (eval $ac_compile) 2>conftest.er1
8722 grep -v '^ *+' conftest.er1 >conftest.err
8724 cat conftest.err >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } &&
8727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; } &&
8733 { ac_try='test -s conftest.$ac_objext'
8734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; }; then
8741 cat >conftest.$ac_ext <<_ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h. */
8747 $ac_includes_default
8751 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8758 rm -f conftest.$ac_objext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8760 (eval $ac_compile) 2>conftest.er1
8762 grep -v '^ *+' conftest.er1 >conftest.err
8764 cat conftest.err >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } &&
8767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; } &&
8773 { ac_try='test -s conftest.$ac_objext'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; }; then
8779 ac_lo=$ac_mid; break
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8784 ac_hi=`expr '(' $ac_mid ')' - 1`
8785 if test $ac_mid -le $ac_hi; then
8789 ac_mid=`expr 2 '*' $ac_mid`
8791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8794 echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8802 # Binary search between lo and hi bounds.
8803 while test "x$ac_lo" != "x$ac_hi"; do
8804 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8805 cat >conftest.$ac_ext <<_ACEOF
8808 cat confdefs.h >>conftest.$ac_ext
8809 cat >>conftest.$ac_ext <<_ACEOF
8810 /* end confdefs.h. */
8811 $ac_includes_default
8815 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8822 rm -f conftest.$ac_objext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8824 (eval $ac_compile) 2>conftest.er1
8826 grep -v '^ *+' conftest.er1 >conftest.err
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; } &&
8837 { ac_try='test -s conftest.$ac_objext'
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; }; then
8845 echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8848 ac_lo=`expr '(' $ac_mid ')' + 1`
8850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8853 ?*) ac_cv_sizeof_int=$ac_lo;;
8854 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8855 See \`config.log' for more details." >&5
8856 echo "$as_me: error: cannot compute sizeof (int), 77
8857 See \`config.log' for more details." >&2;}
8858 { (exit 1); exit 1; }; } ;;
8861 if test "$cross_compiling" = yes; then
8862 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8863 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8864 { (exit 1); exit 1; }; }
8866 cat >conftest.$ac_ext <<_ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h. */
8872 $ac_includes_default
8873 long longval () { return (long) (sizeof (int)); }
8874 unsigned long ulongval () { return (long) (sizeof (int)); }
8881 FILE *f = fopen ("conftest.val", "w");
8884 if (((long) (sizeof (int))) < 0)
8886 long i = longval ();
8887 if (i != ((long) (sizeof (int))))
8889 fprintf (f, "%ld\n", i);
8893 unsigned long i = ulongval ();
8894 if (i != ((long) (sizeof (int))))
8896 fprintf (f, "%lu\n", i);
8898 exit (ferror (f) || fclose (f) != 0);
8904 rm -f conftest$ac_exeext
8905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8906 (eval $ac_link) 2>&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8915 ac_cv_sizeof_int=`cat conftest.val`
8917 echo "$as_me: program exited with status $ac_status" >&5
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8922 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8923 See \`config.log' for more details." >&5
8924 echo "$as_me: error: cannot compute sizeof (int), 77
8925 See \`config.log' for more details." >&2;}
8926 { (exit 1); exit 1; }; }
8928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8936 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8937 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8938 cat >>confdefs.h <<_ACEOF
8939 #define SIZEOF_INT $ac_cv_sizeof_int
8943 echo "$as_me:$LINENO: checking for long long" >&5
8944 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8945 if test "${ac_cv_type_long_long+set}" = set; then
8946 echo $ECHO_N "(cached) $ECHO_C" >&6
8948 cat >conftest.$ac_ext <<_ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8954 $ac_includes_default
8958 if ((long long *) 0)
8960 if (sizeof (long long))
8966 rm -f conftest.$ac_objext
8967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8968 (eval $ac_compile) 2>conftest.er1
8970 grep -v '^ *+' conftest.er1 >conftest.err
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } &&
8975 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; } &&
8981 { ac_try='test -s conftest.$ac_objext'
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
8987 ac_cv_type_long_long=yes
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 ac_cv_type_long_long=no
8994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8996 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8997 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8999 echo "$as_me:$LINENO: checking size of long long" >&5
9000 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9001 if test "${ac_cv_sizeof_long_long+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 if test "$ac_cv_type_long_long" = yes; then
9005 # The cast to unsigned long works around a bug in the HP C Compiler
9006 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9007 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9008 # This bug is HP SR number 8606223364.
9009 if test "$cross_compiling" = yes; then
9010 # Depending upon the size, compute the lo and hi bounds.
9011 cat >conftest.$ac_ext <<_ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h. */
9017 $ac_includes_default
9021 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9028 rm -f conftest.$ac_objext
9029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9030 (eval $ac_compile) 2>conftest.er1
9032 grep -v '^ *+' conftest.er1 >conftest.err
9034 cat conftest.err >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } &&
9037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }; } &&
9043 { ac_try='test -s conftest.$ac_objext'
9044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; }; then
9051 cat >conftest.$ac_ext <<_ACEOF
9054 cat confdefs.h >>conftest.$ac_ext
9055 cat >>conftest.$ac_ext <<_ACEOF
9056 /* end confdefs.h. */
9057 $ac_includes_default
9061 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9068 rm -f conftest.$ac_objext
9069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9070 (eval $ac_compile) 2>conftest.er1
9072 grep -v '^ *+' conftest.er1 >conftest.err
9074 cat conftest.err >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); } &&
9077 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); }; } &&
9083 { ac_try='test -s conftest.$ac_objext'
9084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); }; }; then
9089 ac_hi=$ac_mid; break
9091 echo "$as_me: failed program was:" >&5
9092 sed 's/^/| /' conftest.$ac_ext >&5
9094 ac_lo=`expr $ac_mid + 1`
9095 if test $ac_lo -le $ac_mid; then
9099 ac_mid=`expr 2 '*' $ac_mid + 1`
9101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9104 echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9107 cat >conftest.$ac_ext <<_ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9113 $ac_includes_default
9117 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9124 rm -f conftest.$ac_objext
9125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9126 (eval $ac_compile) 2>conftest.er1
9128 grep -v '^ *+' conftest.er1 >conftest.err
9130 cat conftest.err >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); } &&
9133 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; } &&
9139 { ac_try='test -s conftest.$ac_objext'
9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }; }; then
9147 cat >conftest.$ac_ext <<_ACEOF
9150 cat confdefs.h >>conftest.$ac_ext
9151 cat >>conftest.$ac_ext <<_ACEOF
9152 /* end confdefs.h. */
9153 $ac_includes_default
9157 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9164 rm -f conftest.$ac_objext
9165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9166 (eval $ac_compile) 2>conftest.er1
9168 grep -v '^ *+' conftest.er1 >conftest.err
9170 cat conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } &&
9173 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; } &&
9179 { ac_try='test -s conftest.$ac_objext'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9185 ac_lo=$ac_mid; break
9187 echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9190 ac_hi=`expr '(' $ac_mid ')' - 1`
9191 if test $ac_mid -le $ac_hi; then
9195 ac_mid=`expr 2 '*' $ac_mid`
9197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9200 echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.$ac_ext >&5
9205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9208 # Binary search between lo and hi bounds.
9209 while test "x$ac_lo" != "x$ac_hi"; do
9210 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9211 cat >conftest.$ac_ext <<_ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9217 $ac_includes_default
9221 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9228 rm -f conftest.$ac_objext
9229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9230 (eval $ac_compile) 2>conftest.er1
9232 grep -v '^ *+' conftest.er1 >conftest.err
9234 cat conftest.err >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } &&
9237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; } &&
9243 { ac_try='test -s conftest.$ac_objext'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; }; then
9251 echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9254 ac_lo=`expr '(' $ac_mid ')' + 1`
9256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9259 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9260 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9261 See \`config.log' for more details." >&5
9262 echo "$as_me: error: cannot compute sizeof (long long), 77
9263 See \`config.log' for more details." >&2;}
9264 { (exit 1); exit 1; }; } ;;
9267 if test "$cross_compiling" = yes; then
9268 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9269 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
9270 { (exit 1); exit 1; }; }
9272 cat >conftest.$ac_ext <<_ACEOF
9275 cat confdefs.h >>conftest.$ac_ext
9276 cat >>conftest.$ac_ext <<_ACEOF
9277 /* end confdefs.h. */
9278 $ac_includes_default
9279 long longval () { return (long) (sizeof (long long)); }
9280 unsigned long ulongval () { return (long) (sizeof (long long)); }
9287 FILE *f = fopen ("conftest.val", "w");
9290 if (((long) (sizeof (long long))) < 0)
9292 long i = longval ();
9293 if (i != ((long) (sizeof (long long))))
9295 fprintf (f, "%ld\n", i);
9299 unsigned long i = ulongval ();
9300 if (i != ((long) (sizeof (long long))))
9302 fprintf (f, "%lu\n", i);
9304 exit (ferror (f) || fclose (f) != 0);
9310 rm -f conftest$ac_exeext
9311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9312 (eval $ac_link) 2>&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); }; }; then
9321 ac_cv_sizeof_long_long=`cat conftest.val`
9323 echo "$as_me: program exited with status $ac_status" >&5
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9328 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9329 See \`config.log' for more details." >&5
9330 echo "$as_me: error: cannot compute sizeof (long long), 77
9331 See \`config.log' for more details." >&2;}
9332 { (exit 1); exit 1; }; }
9334 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9339 ac_cv_sizeof_long_long=0
9342 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9343 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9344 cat >>confdefs.h <<_ACEOF
9345 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9349 echo "$as_me:$LINENO: checking for int *" >&5
9350 echo $ECHO_N "checking for int *... $ECHO_C" >&6
9351 if test "${ac_cv_type_int_p+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 cat >conftest.$ac_ext <<_ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9360 $ac_includes_default
9372 rm -f conftest.$ac_objext
9373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9374 (eval $ac_compile) 2>conftest.er1
9376 grep -v '^ *+' conftest.er1 >conftest.err
9378 cat conftest.err >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } &&
9381 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; } &&
9387 { ac_try='test -s conftest.$ac_objext'
9388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); }; }; then
9393 ac_cv_type_int_p=yes
9395 echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.$ac_ext >&5
9400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9402 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9403 echo "${ECHO_T}$ac_cv_type_int_p" >&6
9405 echo "$as_me:$LINENO: checking size of int *" >&5
9406 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
9407 if test "${ac_cv_sizeof_int_p+set}" = set; then
9408 echo $ECHO_N "(cached) $ECHO_C" >&6
9410 if test "$ac_cv_type_int_p" = yes; then
9411 # The cast to unsigned long works around a bug in the HP C Compiler
9412 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9413 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9414 # This bug is HP SR number 8606223364.
9415 if test "$cross_compiling" = yes; then
9416 # Depending upon the size, compute the lo and hi bounds.
9417 cat >conftest.$ac_ext <<_ACEOF
9420 cat confdefs.h >>conftest.$ac_ext
9421 cat >>conftest.$ac_ext <<_ACEOF
9422 /* end confdefs.h. */
9423 $ac_includes_default
9427 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
9434 rm -f conftest.$ac_objext
9435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9436 (eval $ac_compile) 2>conftest.er1
9438 grep -v '^ *+' conftest.er1 >conftest.err
9440 cat conftest.err >&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } &&
9443 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); }; } &&
9449 { ac_try='test -s conftest.$ac_objext'
9450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); }; }; then
9457 cat >conftest.$ac_ext <<_ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h. */
9463 $ac_includes_default
9467 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9474 rm -f conftest.$ac_objext
9475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9476 (eval $ac_compile) 2>conftest.er1
9478 grep -v '^ *+' conftest.er1 >conftest.err
9480 cat conftest.err >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } &&
9483 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; } &&
9489 { ac_try='test -s conftest.$ac_objext'
9490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; }; then
9495 ac_hi=$ac_mid; break
9497 echo "$as_me: failed program was:" >&5
9498 sed 's/^/| /' conftest.$ac_ext >&5
9500 ac_lo=`expr $ac_mid + 1`
9501 if test $ac_lo -le $ac_mid; then
9505 ac_mid=`expr 2 '*' $ac_mid + 1`
9507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9513 cat >conftest.$ac_ext <<_ACEOF
9516 cat confdefs.h >>conftest.$ac_ext
9517 cat >>conftest.$ac_ext <<_ACEOF
9518 /* end confdefs.h. */
9519 $ac_includes_default
9523 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
9530 rm -f conftest.$ac_objext
9531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9532 (eval $ac_compile) 2>conftest.er1
9534 grep -v '^ *+' conftest.er1 >conftest.err
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } &&
9539 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; } &&
9545 { ac_try='test -s conftest.$ac_objext'
9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; }; then
9553 cat >conftest.$ac_ext <<_ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h. */
9559 $ac_includes_default
9563 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
9570 rm -f conftest.$ac_objext
9571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9572 (eval $ac_compile) 2>conftest.er1
9574 grep -v '^ *+' conftest.er1 >conftest.err
9576 cat conftest.err >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } &&
9579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; } &&
9585 { ac_try='test -s conftest.$ac_objext'
9586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); }; }; then
9591 ac_lo=$ac_mid; break
9593 echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.$ac_ext >&5
9596 ac_hi=`expr '(' $ac_mid ')' - 1`
9597 if test $ac_mid -le $ac_hi; then
9601 ac_mid=`expr 2 '*' $ac_mid`
9603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9606 echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9614 # Binary search between lo and hi bounds.
9615 while test "x$ac_lo" != "x$ac_hi"; do
9616 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9617 cat >conftest.$ac_ext <<_ACEOF
9620 cat confdefs.h >>conftest.$ac_ext
9621 cat >>conftest.$ac_ext <<_ACEOF
9622 /* end confdefs.h. */
9623 $ac_includes_default
9627 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9634 rm -f conftest.$ac_objext
9635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9636 (eval $ac_compile) 2>conftest.er1
9638 grep -v '^ *+' conftest.er1 >conftest.err
9640 cat conftest.err >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } &&
9643 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; } &&
9649 { ac_try='test -s conftest.$ac_objext'
9650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; }; then
9657 echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9660 ac_lo=`expr '(' $ac_mid ')' + 1`
9662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9665 ?*) ac_cv_sizeof_int_p=$ac_lo;;
9666 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9667 See \`config.log' for more details." >&5
9668 echo "$as_me: error: cannot compute sizeof (int *), 77
9669 See \`config.log' for more details." >&2;}
9670 { (exit 1); exit 1; }; } ;;
9673 if test "$cross_compiling" = yes; then
9674 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9675 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
9676 { (exit 1); exit 1; }; }
9678 cat >conftest.$ac_ext <<_ACEOF
9681 cat confdefs.h >>conftest.$ac_ext
9682 cat >>conftest.$ac_ext <<_ACEOF
9683 /* end confdefs.h. */
9684 $ac_includes_default
9685 long longval () { return (long) (sizeof (int *)); }
9686 unsigned long ulongval () { return (long) (sizeof (int *)); }
9693 FILE *f = fopen ("conftest.val", "w");
9696 if (((long) (sizeof (int *))) < 0)
9698 long i = longval ();
9699 if (i != ((long) (sizeof (int *))))
9701 fprintf (f, "%ld\n", i);
9705 unsigned long i = ulongval ();
9706 if (i != ((long) (sizeof (int *))))
9708 fprintf (f, "%lu\n", i);
9710 exit (ferror (f) || fclose (f) != 0);
9716 rm -f conftest$ac_exeext
9717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9718 (eval $ac_link) 2>&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 ac_cv_sizeof_int_p=`cat conftest.val`
9729 echo "$as_me: program exited with status $ac_status" >&5
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9734 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9735 See \`config.log' for more details." >&5
9736 echo "$as_me: error: cannot compute sizeof (int *), 77
9737 See \`config.log' for more details." >&2;}
9738 { (exit 1); exit 1; }; }
9740 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9745 ac_cv_sizeof_int_p=0
9748 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9749 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
9750 cat >>confdefs.h <<_ACEOF
9751 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
9757 echo "$as_me:$LINENO: checking for int16_t" >&5
9758 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
9759 if test "${rxvt_cv_int16_t+set}" = set; then
9760 echo $ECHO_N "(cached) $ECHO_C" >&6
9762 cat >conftest.$ac_ext <<_ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9777 rm -f conftest.$ac_objext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9779 (eval $ac_compile) 2>conftest.er1
9781 grep -v '^ *+' conftest.er1 >conftest.err
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } &&
9786 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; } &&
9792 { ac_try='test -s conftest.$ac_objext'
9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9800 echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9803 if test "$ac_cv_sizeof_char" -ge 2; then
9804 rxvt_cv_int16_t=" char"
9806 if test "$ac_cv_sizeof_short" -ge 2; then
9807 rxvt_cv_int16_t=" short"
9809 if test "$ac_cv_sizeof_int" -ge 2; then
9810 rxvt_cv_int16_t=" int"
9812 if test "$ac_cv_sizeof_long" -ge 2; then
9813 rxvt_cv_int16_t=" long"
9815 if test "$ac_cv_sizeof_long_long" -ge 2; then
9816 rxvt_cv_int16_t=" long long"
9818 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9827 echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9828 echo "${ECHO_T}$rxvt_cv_int16_t" >&6
9829 if test x"$rxvt_cv_int16_t" != xyes; then
9830 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9832 if test x"" = x; then
9833 rxvt_int16_typedef="/* typedef short int16_t; */"
9835 rxvt_int16_typedef="/* typedef short int16_t; */"
9839 echo "$as_me:$LINENO: checking for uint16_t" >&5
9840 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
9841 if test "${rxvt_cv_uint16_t+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9844 cat >conftest.$ac_ext <<_ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9859 rm -f conftest.$ac_objext
9860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9861 (eval $ac_compile) 2>conftest.er1
9863 grep -v '^ *+' conftest.er1 >conftest.err
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
9868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; } &&
9874 { ac_try='test -s conftest.$ac_objext'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9880 rxvt_cv_uint16_t=yes
9882 echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9885 if test "$ac_cv_sizeof_char" -ge 2; then
9886 rxvt_cv_uint16_t="unsigned char"
9888 if test "$ac_cv_sizeof_short" -ge 2; then
9889 rxvt_cv_uint16_t="unsigned short"
9891 if test "$ac_cv_sizeof_int" -ge 2; then
9892 rxvt_cv_uint16_t="unsigned int"
9894 if test "$ac_cv_sizeof_long" -ge 2; then
9895 rxvt_cv_uint16_t="unsigned long"
9897 if test "$ac_cv_sizeof_long_long" -ge 2; then
9898 rxvt_cv_uint16_t="unsigned long long"
9900 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9909 echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9910 echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
9911 if test x"$rxvt_cv_uint16_t" != xyes; then
9912 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9914 if test x"unsigned" = x; then
9915 rxvt_uint16_typedef="/* typedef short uint16_t; */"
9917 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9921 echo "$as_me:$LINENO: checking for int32_t" >&5
9922 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
9923 if test "${rxvt_cv_int32_t+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9926 cat >conftest.$ac_ext <<_ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h. */
9941 rm -f conftest.$ac_objext
9942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9943 (eval $ac_compile) 2>conftest.er1
9945 grep -v '^ *+' conftest.er1 >conftest.err
9947 cat conftest.err >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } &&
9950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest.$ac_objext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9964 echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.$ac_ext >&5
9967 if test "$ac_cv_sizeof_char" -ge 4; then
9968 rxvt_cv_int32_t=" char"
9970 if test "$ac_cv_sizeof_short" -ge 4; then
9971 rxvt_cv_int32_t=" short"
9973 if test "$ac_cv_sizeof_int" -ge 4; then
9974 rxvt_cv_int32_t=" int"
9976 if test "$ac_cv_sizeof_long" -ge 4; then
9977 rxvt_cv_int32_t=" long"
9979 if test "$ac_cv_sizeof_long_long" -ge 4; then
9980 rxvt_cv_int32_t=" long long"
9982 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9991 echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9992 echo "${ECHO_T}$rxvt_cv_int32_t" >&6
9993 if test x"$rxvt_cv_int32_t" != xyes; then
9994 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9996 if test x"" = x; then
9997 rxvt_int32_typedef="/* typedef int int32_t; */"
9999 rxvt_int32_typedef="/* typedef int int32_t; */"
10003 echo "$as_me:$LINENO: checking for uint32_t" >&5
10004 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
10005 if test "${rxvt_cv_uint32_t+set}" = set; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 cat >conftest.$ac_ext <<_ACEOF
10011 cat confdefs.h >>conftest.$ac_ext
10012 cat >>conftest.$ac_ext <<_ACEOF
10013 /* end confdefs.h. */
10014 #include <stdint.h>
10023 rm -f conftest.$ac_objext
10024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10025 (eval $ac_compile) 2>conftest.er1
10027 grep -v '^ *+' conftest.er1 >conftest.err
10029 cat conftest.err >&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } &&
10032 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; } &&
10038 { ac_try='test -s conftest.$ac_objext'
10039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040 (eval $ac_try) 2>&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; }; then
10044 rxvt_cv_uint32_t=yes
10046 echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10049 if test "$ac_cv_sizeof_char" -ge 4; then
10050 rxvt_cv_uint32_t="unsigned char"
10052 if test "$ac_cv_sizeof_short" -ge 4; then
10053 rxvt_cv_uint32_t="unsigned short"
10055 if test "$ac_cv_sizeof_int" -ge 4; then
10056 rxvt_cv_uint32_t="unsigned int"
10058 if test "$ac_cv_sizeof_long" -ge 4; then
10059 rxvt_cv_uint32_t="unsigned long"
10061 if test "$ac_cv_sizeof_long_long" -ge 4; then
10062 rxvt_cv_uint32_t="unsigned long long"
10064 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
10071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10073 echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
10074 echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
10075 if test x"$rxvt_cv_uint32_t" != xyes; then
10076 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
10078 if test x"unsigned" = x; then
10079 rxvt_uint32_typedef="/* typedef int uint32_t; */"
10081 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
10085 if test "$ac_cv_sizeof_int_p" -eq 8; then
10086 rxvt_intp_define="#define intp_t int64_t"
10087 rxvt_u_intp_define="#define u_intp_t u_int64_t"
10089 if test "$ac_cv_sizeof_int_p" -eq 4; then
10090 rxvt_intp_define="#define intp_t int32_t"
10091 rxvt_u_intp_define="#define u_intp_t u_int32_t"
10093 if test "$ac_cv_sizeof_int_p" -eq 2; then
10094 rxvt_intp_define="#define intp_t int16_t"
10095 rxvt_u_intp_define="#define u_intp_t u_int16_t"
10097 rxvt_intp_define="#error set intp_t"
10098 rxvt_u_intp_define="#error set u_intp_t"
10105 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10106 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10107 if test "${ac_cv_type_signal+set}" = set; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10110 cat >conftest.$ac_ext <<_ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 #include <sys/types.h>
10117 #include <signal.h>
10122 extern "C" void (*signal (int, void (*)(int)))(int);
10124 void (*signal ()) ();
10135 rm -f conftest.$ac_objext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10137 (eval $ac_compile) 2>conftest.er1
10139 grep -v '^ *+' conftest.er1 >conftest.err
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } &&
10144 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146 (eval $ac_try) 2>&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; } &&
10150 { ac_try='test -s conftest.$ac_objext'
10151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152 (eval $ac_try) 2>&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; }; then
10156 ac_cv_type_signal=void
10158 echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10161 ac_cv_type_signal=int
10163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10165 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10166 echo "${ECHO_T}$ac_cv_type_signal" >&6
10168 cat >>confdefs.h <<_ACEOF
10169 #define RETSIGTYPE $ac_cv_type_signal
10174 case "$host_alias" in
10175 *ultrix) ac_cv_func_setsid='no' ;;
10220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10221 echo "$as_me:$LINENO: checking for $ac_func" >&5
10222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10223 if eval "test \"\${$as_ac_var+set}\" = set"; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10226 cat >conftest.$ac_ext <<_ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10234 #define $ac_func innocuous_$ac_func
10236 /* System header to define __stub macros and hopefully few prototypes,
10237 which can conflict with char $ac_func (); below.
10238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10239 <limits.h> exists even on freestanding compilers. */
10242 # include <limits.h>
10244 # include <assert.h>
10249 /* Override any gcc2 internal prototype to avoid an error. */
10254 /* We use char because int might match the return type of a gcc2
10255 builtin and then its argument prototype would still apply. */
10257 /* The GNU C library defines this for functions which it implements
10258 to always fail with ENOSYS. Some functions are actually named
10259 something starting with __ and the normal name is an alias. */
10260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10263 char (*f) () = $ac_func;
10272 return f != $ac_func;
10277 rm -f conftest.$ac_objext conftest$ac_exeext
10278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10279 (eval $ac_link) 2>conftest.er1
10281 grep -v '^ *+' conftest.er1 >conftest.err
10283 cat conftest.err >&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } &&
10286 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288 (eval $ac_try) 2>&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; } &&
10292 { ac_try='test -s conftest$ac_exeext'
10293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10294 (eval $ac_try) 2>&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); }; }; then
10298 eval "$as_ac_var=yes"
10300 echo "$as_me: failed program was:" >&5
10301 sed 's/^/| /' conftest.$ac_ext >&5
10303 eval "$as_ac_var=no"
10305 rm -f conftest.err conftest.$ac_objext \
10306 conftest$ac_exeext conftest.$ac_ext
10308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10310 if test `eval echo '${'$as_ac_var'}'` = yes; then
10311 cat >>confdefs.h <<_ACEOF
10312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10320 if test "${ac_cv_header_utmp_h+set}" = set; then
10321 echo "$as_me:$LINENO: checking for utmp.h" >&5
10322 echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10323 if test "${ac_cv_header_utmp_h+set}" = set; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10326 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10327 echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10329 # Is the header compilable?
10330 echo "$as_me:$LINENO: checking utmp.h usability" >&5
10331 echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
10332 cat >conftest.$ac_ext <<_ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10338 $ac_includes_default
10341 rm -f conftest.$ac_objext
10342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10343 (eval $ac_compile) 2>conftest.er1
10345 grep -v '^ *+' conftest.er1 >conftest.err
10347 cat conftest.err >&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } &&
10350 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10352 (eval $ac_try) 2>&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); }; } &&
10356 { ac_try='test -s conftest.$ac_objext'
10357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358 (eval $ac_try) 2>&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); }; }; then
10362 ac_header_compiler=yes
10364 echo "$as_me: failed program was:" >&5
10365 sed 's/^/| /' conftest.$ac_ext >&5
10367 ac_header_compiler=no
10369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10371 echo "${ECHO_T}$ac_header_compiler" >&6
10373 # Is the header present?
10374 echo "$as_me:$LINENO: checking utmp.h presence" >&5
10375 echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
10376 cat >conftest.$ac_ext <<_ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h. */
10384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10387 grep -v '^ *+' conftest.er1 >conftest.err
10389 cat conftest.err >&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); } >/dev/null; then
10392 if test -s conftest.err; then
10393 ac_cpp_err=$ac_cxx_preproc_warn_flag
10394 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10401 if test -z "$ac_cpp_err"; then
10402 ac_header_preproc=yes
10404 echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10407 ac_header_preproc=no
10409 rm -f conftest.err conftest.$ac_ext
10410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10411 echo "${ECHO_T}$ac_header_preproc" >&6
10413 # So? What about this header?
10414 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10416 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
10417 echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10418 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
10419 echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
10420 ac_header_preproc=yes
10423 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
10424 echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
10426 echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
10427 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
10428 echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
10429 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
10430 echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
10431 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
10432 echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
10433 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
10434 echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
10437 ## ------------------------------------------ ##
10438 ## Report this to the AC_PACKAGE_NAME lists. ##
10439 ## ------------------------------------------ ##
10442 sed "s/^/$as_me: WARNING: /" >&2
10445 echo "$as_me:$LINENO: checking for utmp.h" >&5
10446 echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10447 if test "${ac_cv_header_utmp_h+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10450 ac_cv_header_utmp_h=$ac_header_preproc
10452 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10453 echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10456 if test $ac_cv_header_utmp_h = yes; then
10457 echo "$as_me:$LINENO: checking for struct utmp" >&5
10458 echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
10459 if test "${rxvt_cv_struct_utmp+set}" = set; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 cat >conftest.$ac_ext <<_ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10468 #include <sys/types.h>
10469 #include <stdint.h>
10479 rm -f conftest.$ac_objext
10480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10481 (eval $ac_compile) 2>conftest.er1
10483 grep -v '^ *+' conftest.er1 >conftest.err
10485 cat conftest.err >&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } &&
10488 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10490 (eval $ac_try) 2>&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; } &&
10494 { ac_try='test -s conftest.$ac_objext'
10495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10496 (eval $ac_try) 2>&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); }; }; then
10500 rxvt_cv_struct_utmp=yes
10502 echo "$as_me: failed program was:" >&5
10503 sed 's/^/| /' conftest.$ac_ext >&5
10505 rxvt_cv_struct_utmp=no
10507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10509 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
10510 echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
10511 if test x$rxvt_cv_struct_utmp = xyes; then
10513 cat >>confdefs.h <<\_ACEOF
10514 #define HAVE_STRUCT_UTMP 1
10520 echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
10521 echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
10522 if test "${rxvt_cv_struct_utmp_host+set}" = set; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 cat >conftest.$ac_ext <<_ACEOF
10528 cat confdefs.h >>conftest.$ac_ext
10529 cat >>conftest.$ac_ext <<_ACEOF
10530 /* end confdefs.h. */
10531 #include <sys/types.h>
10536 struct utmp ut; ut.ut_host;
10541 rm -f conftest.$ac_objext
10542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10543 (eval $ac_compile) 2>conftest.er1
10545 grep -v '^ *+' conftest.er1 >conftest.err
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } &&
10550 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552 (eval $ac_try) 2>&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; } &&
10556 { ac_try='test -s conftest.$ac_objext'
10557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558 (eval $ac_try) 2>&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); }; }; then
10562 rxvt_cv_struct_utmp_host=yes
10564 echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10567 rxvt_cv_struct_utmp_host=no
10569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10571 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
10572 echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
10573 if test x$rxvt_cv_struct_utmp_host = xyes; then
10575 cat >>confdefs.h <<\_ACEOF
10576 #define HAVE_UTMP_HOST 1
10581 echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
10582 echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
10583 if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
10584 echo $ECHO_N "(cached) $ECHO_C" >&6
10586 cat >conftest.$ac_ext <<_ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h. */
10592 #include <sys/types.h>
10597 struct utmp ut; ut.ut_pid;
10602 rm -f conftest.$ac_objext
10603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10604 (eval $ac_compile) 2>conftest.er1
10606 grep -v '^ *+' conftest.er1 >conftest.err
10608 cat conftest.err >&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } &&
10611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10613 (eval $ac_try) 2>&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; } &&
10617 { ac_try='test -s conftest.$ac_objext'
10618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10619 (eval $ac_try) 2>&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }; }; then
10623 rxvt_cv_struct_utmp_pid=yes
10625 echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.$ac_ext >&5
10628 rxvt_cv_struct_utmp_pid=no
10630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10632 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
10633 echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
10634 if test x$rxvt_cv_struct_utmp_pid = xyes; then
10636 cat >>confdefs.h <<\_ACEOF
10637 #define HAVE_UTMP_PID 1
10646 if test "${ac_cv_header_utmpx_h+set}" = set; then
10647 echo "$as_me:$LINENO: checking for utmpx.h" >&5
10648 echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10649 if test "${ac_cv_header_utmpx_h+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10653 echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10655 # Is the header compilable?
10656 echo "$as_me:$LINENO: checking utmpx.h usability" >&5
10657 echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
10658 cat >conftest.$ac_ext <<_ACEOF
10661 cat confdefs.h >>conftest.$ac_ext
10662 cat >>conftest.$ac_ext <<_ACEOF
10663 /* end confdefs.h. */
10664 $ac_includes_default
10667 rm -f conftest.$ac_objext
10668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10669 (eval $ac_compile) 2>conftest.er1
10671 grep -v '^ *+' conftest.er1 >conftest.err
10673 cat conftest.err >&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } &&
10676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678 (eval $ac_try) 2>&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; } &&
10682 { ac_try='test -s conftest.$ac_objext'
10683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10684 (eval $ac_try) 2>&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); }; }; then
10688 ac_header_compiler=yes
10690 echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10693 ac_header_compiler=no
10695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10696 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10697 echo "${ECHO_T}$ac_header_compiler" >&6
10699 # Is the header present?
10700 echo "$as_me:$LINENO: checking utmpx.h presence" >&5
10701 echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
10702 cat >conftest.$ac_ext <<_ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h. */
10710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10713 grep -v '^ *+' conftest.er1 >conftest.err
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } >/dev/null; then
10718 if test -s conftest.err; then
10719 ac_cpp_err=$ac_cxx_preproc_warn_flag
10720 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10727 if test -z "$ac_cpp_err"; then
10728 ac_header_preproc=yes
10730 echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10733 ac_header_preproc=no
10735 rm -f conftest.err conftest.$ac_ext
10736 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10737 echo "${ECHO_T}$ac_header_preproc" >&6
10739 # So? What about this header?
10740 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10742 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
10743 echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10744 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
10745 echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
10746 ac_header_preproc=yes
10749 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
10750 echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
10751 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
10752 echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
10753 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
10754 echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
10755 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
10756 echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
10757 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
10758 echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
10759 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
10760 echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
10763 ## ------------------------------------------ ##
10764 ## Report this to the AC_PACKAGE_NAME lists. ##
10765 ## ------------------------------------------ ##
10768 sed "s/^/$as_me: WARNING: /" >&2
10771 echo "$as_me:$LINENO: checking for utmpx.h" >&5
10772 echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10773 if test "${ac_cv_header_utmpx_h+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 ac_cv_header_utmpx_h=$ac_header_preproc
10778 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10779 echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10782 if test $ac_cv_header_utmpx_h = yes; then
10783 echo "$as_me:$LINENO: checking for struct utmpx" >&5
10784 echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
10785 if test "${rxvt_cv_struct_utmpx+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10788 cat >conftest.$ac_ext <<_ACEOF
10791 cat confdefs.h >>conftest.$ac_ext
10792 cat >>conftest.$ac_ext <<_ACEOF
10793 /* end confdefs.h. */
10794 #include <sys/types.h>
10804 rm -f conftest.$ac_objext
10805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10806 (eval $ac_compile) 2>conftest.er1
10808 grep -v '^ *+' conftest.er1 >conftest.err
10810 cat conftest.err >&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } &&
10813 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815 (eval $ac_try) 2>&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; } &&
10819 { ac_try='test -s conftest.$ac_objext'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }; then
10825 rxvt_cv_struct_utmpx=yes
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10830 rxvt_cv_struct_utmpx=no
10832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10834 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
10835 echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
10836 if test x$rxvt_cv_struct_utmpx = xyes; then
10838 cat >>confdefs.h <<\_ACEOF
10839 #define HAVE_STRUCT_UTMPX 1
10845 echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
10846 echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
10847 if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10850 cat >conftest.$ac_ext <<_ACEOF
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h. */
10856 #include <sys/types.h>
10861 struct utmpx utx; utx.ut_host;
10866 rm -f conftest.$ac_objext
10867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10868 (eval $ac_compile) 2>conftest.er1
10870 grep -v '^ *+' conftest.er1 >conftest.err
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } &&
10875 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877 (eval $ac_try) 2>&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; } &&
10881 { ac_try='test -s conftest.$ac_objext'
10882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883 (eval $ac_try) 2>&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 rxvt_cv_struct_utmpx_host=yes
10889 echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10892 rxvt_cv_struct_utmpx_host=no
10894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10896 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
10897 echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
10898 if test x$rxvt_cv_struct_utmpx_host = xyes; then
10900 cat >>confdefs.h <<\_ACEOF
10901 #define HAVE_UTMPX_HOST 1
10906 echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10907 echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10908 if test "${rxvt_cv_struct_utmpx_session+set}" = set; then
10909 echo $ECHO_N "(cached) $ECHO_C" >&6
10911 cat >conftest.$ac_ext <<_ACEOF
10914 cat confdefs.h >>conftest.$ac_ext
10915 cat >>conftest.$ac_ext <<_ACEOF
10916 /* end confdefs.h. */
10917 #include <sys/types.h>
10922 struct utmpx utx; utx.ut_session;
10927 rm -f conftest.$ac_objext
10928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10929 (eval $ac_compile) 2>conftest.er1
10931 grep -v '^ *+' conftest.er1 >conftest.err
10933 cat conftest.err >&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } &&
10936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938 (eval $ac_try) 2>&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; } &&
10942 { ac_try='test -s conftest.$ac_objext'
10943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944 (eval $ac_try) 2>&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }; }; then
10948 rxvt_cv_struct_utmpx_session=yes
10950 echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.$ac_ext >&5
10953 rxvt_cv_struct_utmpx_session=no
10955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10957 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5
10958 echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6
10959 if test x$rxvt_cv_struct_utmpx_session = xyes; then
10961 cat >>confdefs.h <<\_ACEOF
10962 #define HAVE_UTMPX_SESSION 1
10970 echo "$as_me:$LINENO: checking for struct lastlog" >&5
10971 echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
10972 if test "${rxvt_cv_struct_lastlog+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 cat >conftest.$ac_ext <<_ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h. */
10981 #include <sys/types.h>
10983 #ifdef HAVE_LASTLOG_H
10984 #include <lastlog.h>
10995 rm -f conftest.$ac_objext
10996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10997 (eval $ac_compile) 2>conftest.er1
10999 grep -v '^ *+' conftest.er1 >conftest.err
11001 cat conftest.err >&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } &&
11004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006 (eval $ac_try) 2>&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; } &&
11010 { ac_try='test -s conftest.$ac_objext'
11011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012 (eval $ac_try) 2>&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); }; }; then
11016 rxvt_cv_struct_lastlog=yes
11018 echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11021 rxvt_cv_struct_lastlog=no
11023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11025 echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
11026 echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
11027 if test x$rxvt_cv_struct_lastlog = xyes; then
11029 cat >>confdefs.h <<\_ACEOF
11030 #define HAVE_STRUCT_LASTLOG 1
11035 echo "$as_me:$LINENO: checking for struct lastlogx" >&5
11036 echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
11037 if test "${rxvt_cv_struct_lastlogx+set}" = set; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
11040 cat >conftest.$ac_ext <<_ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11046 #include <sys/types.h>
11048 #ifdef HAVE_LASTLOG_H
11049 #include <lastlog.h>
11055 struct lastlogx ll;
11060 rm -f conftest.$ac_objext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11062 (eval $ac_compile) 2>conftest.er1
11064 grep -v '^ *+' conftest.er1 >conftest.err
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } &&
11069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; } &&
11075 { ac_try='test -s conftest.$ac_objext'
11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; }; then
11081 rxvt_cv_struct_lastlogx=yes
11083 echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 rxvt_cv_struct_lastlogx=no
11088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11090 echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
11091 echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
11092 if test x$rxvt_cv_struct_lastlogx = xyes; then
11094 cat >>confdefs.h <<\_ACEOF
11095 #define HAVE_STRUCT_LASTLOGX 1
11101 echo "$as_me:$LINENO: checking where utmp is located" >&5
11102 echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
11103 if test "${rxvt_cv_path_utmp+set}" = set; then
11104 echo $ECHO_N "(cached) $ECHO_C" >&6
11106 if test "$cross_compiling" = yes; then
11107 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5
11108 echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
11110 cat >conftest.$ac_ext <<_ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11117 #include <sys/types.h>
11122 char **u, *utmplist[] = {
11123 "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
11124 FILE *a, *f=fopen("conftestval", "w");
11127 fprintf(f, "%s\n", UTMP_FILE);
11131 fprintf(f, "%s\n", _PATH_UTMP);
11134 for (u = utmplist; *u; u++) {
11135 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11136 fprintf(f, "%s\n", *u);
11143 rm -f conftest$ac_exeext
11144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11145 (eval $ac_link) 2>&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150 (eval $ac_try) 2>&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; }; then
11154 rxvt_cv_path_utmp=`cat conftestval`
11156 echo "$as_me: program exited with status $ac_status" >&5
11157 echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11160 ( exit $ac_status )
11163 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11166 echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
11167 echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
11168 if test x$rxvt_cv_path_utmp != x; then
11170 cat >>confdefs.h <<_ACEOF
11171 #define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
11177 echo "$as_me:$LINENO: checking where utmpx is located" >&5
11178 echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
11179 if test "${rxvt_cv_path_utmpx+set}" = set; then
11180 echo $ECHO_N "(cached) $ECHO_C" >&6
11182 if test "$cross_compiling" = yes; then
11183 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5
11184 echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;}
11186 cat >conftest.$ac_ext <<_ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11193 #include <sys/types.h>
11196 #include <sys/stat.h>
11197 #ifdef HAVE_STRING_H
11198 #include <string.h>
11202 char **u, *p, *utmplist[] = {
11209 "/var/adm/utmpx", "/etc/utmpx", NULL };
11210 FILE *a, *f=fopen("conftestval", "w");
11211 struct stat statu, statux;
11213 for (u = utmplist; *u; u++) {
11214 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11215 if (stat(*u, &statux) < 0)
11218 p[strlen(p) - 1] = '\0';
11219 if (stat(p, &statu) >= 0
11220 && (statu.st_mtime - statux.st_mtime > 86400))
11222 fprintf(f, "%s\n", *u);
11229 rm -f conftest$ac_exeext
11230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11231 (eval $ac_link) 2>&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; }; then
11240 rxvt_cv_path_utmpx=`cat conftestval`
11242 echo "$as_me: program exited with status $ac_status" >&5
11243 echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.$ac_ext >&5
11246 ( exit $ac_status )
11247 rxvt_cv_path_utmpx=
11249 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11252 echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
11253 echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
11254 if test x$rxvt_cv_path_utmpx != x; then
11256 cat >>confdefs.h <<_ACEOF
11257 #define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
11263 echo "$as_me:$LINENO: checking where wtmp is located" >&5
11264 echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
11265 if test "${rxvt_cv_path_wtmp+set}" = set; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11268 if test "$cross_compiling" = yes; then
11269 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5
11270 echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;}
11272 cat >conftest.$ac_ext <<_ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h. */
11279 #include <sys/types.h>
11286 char **w, *wtmplist[] = {
11287 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
11288 FILE *a, *f=fopen("conftestval", "w");
11291 fprintf(f, "%s\n", WTMP_FILE);
11295 fprintf(f, "%s\n", _PATH_WTMP);
11298 for (w = wtmplist; *w; w++) {
11299 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11300 fprintf(f, "%s\n", *w);
11307 rm -f conftest$ac_exeext
11308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11309 (eval $ac_link) 2>&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; }; then
11318 rxvt_cv_path_wtmp=`cat conftestval`
11320 echo "$as_me: program exited with status $ac_status" >&5
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11324 ( exit $ac_status )
11327 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11330 echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
11331 echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
11332 if test x$rxvt_cv_path_wtmp != x; then
11334 cat >>confdefs.h <<_ACEOF
11335 #define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
11340 echo "$as_me:$LINENO: checking where wtmpx is located" >&5
11341 echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
11342 if test "${rxvt_cv_path_wtmpx+set}" = set; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11345 if test "$cross_compiling" = yes; then
11346 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5
11347 echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;}
11349 cat >conftest.$ac_ext <<_ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11356 #ifdef HAVE_UTMPX_H
11362 char **w, *wtmplist[] = {
11363 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
11364 FILE *a, *f=fopen("conftestval", "w");
11367 fprintf(f, "%s\n", WTMPX_FILE);
11371 fprintf(f, "%s\n", _PATH_WTMPX);
11374 for (w = wtmplist; *w; w++) {
11375 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11376 fprintf(f, "%s\n", *w);
11383 rm -f conftest$ac_exeext
11384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11385 (eval $ac_link) 2>&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390 (eval $ac_try) 2>&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; }; then
11394 rxvt_cv_path_wtmpx=`cat conftestval`
11396 echo "$as_me: program exited with status $ac_status" >&5
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11400 ( exit $ac_status )
11401 rxvt_cv_path_wtmpx=
11403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11406 echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
11407 echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
11408 if test x$rxvt_cv_path_wtmpx != x; then
11410 cat >>confdefs.h <<_ACEOF
11411 #define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
11416 echo "$as_me:$LINENO: checking where lastlog is located" >&5
11417 echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
11418 if test "${rxvt_cv_path_lastlog+set}" = set; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11421 if test "$cross_compiling" = yes; then
11422 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5
11423 echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;}
11425 cat >conftest.$ac_ext <<_ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11432 #include <sys/types.h>
11433 #ifdef HAVE_UTMPX_H
11435 #elif defined(HAVE_UTMP_H)
11438 #ifdef HAVE_LASTLOG_H
11439 #include <lastlog.h>
11444 char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
11445 FILE *a, *f=fopen("conftestval", "w");
11447 #ifdef LASTLOG_FILE
11448 fprintf(f, "%s\n", LASTLOG_FILE);
11451 #ifdef _PATH_LASTLOG
11452 fprintf(f, "%s\n", _PATH_LASTLOG);
11455 for (w = lastloglist; *w; w++) {
11456 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11457 fprintf(f, "%s\n", *w);
11464 rm -f conftest$ac_exeext
11465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11466 (eval $ac_link) 2>&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
11475 rxvt_cv_path_lastlog=`cat conftestval`
11477 echo "$as_me: program exited with status $ac_status" >&5
11478 echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11481 ( exit $ac_status )
11482 rxvt_cv_path_lastlog=
11484 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11487 echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
11488 echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
11489 if test x$rxvt_cv_path_lastlog != x; then
11491 cat >>confdefs.h <<_ACEOF
11492 #define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
11495 if test -d "$rxvt_cv_path_lastlog"; then
11497 cat >>confdefs.h <<\_ACEOF
11498 #define LASTLOG_IS_DIR 1
11504 echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11505 echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
11506 if test "${rxvt_cv_path_lastlogx+set}" = set; then
11507 echo $ECHO_N "(cached) $ECHO_C" >&6
11509 if test "$cross_compiling" = yes; then
11510 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5
11511 echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;}
11513 cat >conftest.$ac_ext <<_ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h. */
11520 #ifdef HAVE_UTMPX_H
11526 char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11527 FILE *a, *f=fopen("conftestval", "w");
11529 #ifdef LASTLOGX_FILE
11530 fprintf(f, "%s\n", LASTLOGX_FILE);
11533 #ifdef _PATH_LASTLOGX
11534 fprintf(f, "%s\n", _PATH_LASTLOGX);
11537 for (w = wtmplist; *w; w++) {
11538 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11539 fprintf(f, "%s\n", *w);
11546 rm -f conftest$ac_exeext
11547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11548 (eval $ac_link) 2>&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553 (eval $ac_try) 2>&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; }; then
11557 rxvt_cv_path_lastlogx=`cat conftestval`
11559 echo "$as_me: program exited with status $ac_status" >&5
11560 echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.$ac_ext >&5
11563 ( exit $ac_status )
11564 rxvt_cv_path_lastlogx=
11566 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11569 echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
11570 echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
11571 if test x$rxvt_cv_path_lastlogx != x; then
11573 cat >>confdefs.h <<_ACEOF
11574 #define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
11580 echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11581 echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
11582 if test "${rxvt_cv_path_ttytab+set}" = set; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11585 for ttys_file in /etc/ttys /etc/ttytab;
11587 if test -f "$ttys_file" ; then
11588 rxvt_cv_path_ttytab=$ttys_file
11594 echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11595 echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
11596 if test x$rxvt_cv_path_ttytab != x; then
11598 cat >>confdefs.h <<_ACEOF
11599 #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11606 ac_save_CFLAGS=$CFLAGS
11607 CFLAGS="$CFLAGS $X_CFLAGS"
11608 LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11609 if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
11610 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11612 echo "$as_me:$LINENO: checking for working Xlocale" >&5
11613 echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
11614 if test "${rxvt_cv_func_xlocale+set}" = set; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11617 if test "$cross_compiling" = yes; then
11618 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5
11619 echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
11621 cat >conftest.$ac_ext <<_ACEOF
11624 cat confdefs.h >>conftest.$ac_ext
11625 cat >>conftest.$ac_ext <<_ACEOF
11626 /* end confdefs.h. */
11627 #include <X11/Xlib.h>
11630 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11631 exit (XSupportsLocale() ? 0 : 1);
11635 rm -f conftest$ac_exeext
11636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11637 (eval $ac_link) 2>&5
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642 (eval $ac_try) 2>&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); }; }; then
11646 rxvt_cv_func_xlocale=yes
11648 echo "$as_me: program exited with status $ac_status" >&5
11649 echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.$ac_ext >&5
11652 ( exit $ac_status )
11653 rxvt_cv_func_xlocale=no
11655 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11658 echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11659 echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
11660 if test x$rxvt_cv_func_xlocale = xyes; then
11662 cat >>confdefs.h <<\_ACEOF
11663 #define HAVE_XLOCALE 1
11668 echo "$as_me:$LINENO: checking for working X setlocale" >&5
11669 echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6
11670 if test "${rxvt_cv_func_xsetlocale+set}" = set; then
11671 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 cat >conftest.$ac_ext <<_ACEOF
11676 cat confdefs.h >>conftest.$ac_ext
11677 cat >>conftest.$ac_ext <<_ACEOF
11678 /* end confdefs.h. */
11680 #include <X11/Xlocale.h>
11684 setlocale(LC_CTYPE, "");
11689 rm -f conftest.$ac_objext conftest$ac_exeext
11690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11691 (eval $ac_link) 2>conftest.er1
11693 grep -v '^ *+' conftest.er1 >conftest.err
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } &&
11698 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; } &&
11704 { ac_try='test -s conftest$ac_exeext'
11705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706 (eval $ac_try) 2>&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; }; then
11710 rxvt_cv_func_xsetlocale=yes
11712 echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11715 rxvt_cv_func_xsetlocale=no
11717 rm -f conftest.err conftest.$ac_objext \
11718 conftest$ac_exeext conftest.$ac_ext
11720 echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
11721 echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6
11722 if test x$rxvt_cv_func_xsetlocale = xyes; then
11724 cat >>confdefs.h <<\_ACEOF
11725 #define HAVE_XSETLOCALE 1
11730 CFLAGS=$ac_save_CFLAGS
11732 echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11733 echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6
11734 if test "${rxvt_cv_func_setlocale+set}" = set; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11737 cat >conftest.$ac_ext <<_ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h. */
11747 setlocale(LC_CTYPE, "");
11752 rm -f conftest.$ac_objext conftest$ac_exeext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11754 (eval $ac_link) 2>conftest.er1
11756 grep -v '^ *+' conftest.er1 >conftest.err
11758 cat conftest.err >&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763 (eval $ac_try) 2>&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; } &&
11767 { ac_try='test -s conftest$ac_exeext'
11768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769 (eval $ac_try) 2>&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; }; then
11773 rxvt_cv_func_setlocale=yes
11775 echo "$as_me: failed program was:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11778 rxvt_cv_func_setlocale=no
11780 rm -f conftest.err conftest.$ac_objext \
11781 conftest$ac_exeext conftest.$ac_ext
11783 echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
11784 echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
11785 if test x$rxvt_cv_func_setlocale = xyes; then
11787 cat >>confdefs.h <<\_ACEOF
11788 #define HAVE_SETLOCALE 1
11793 echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
11794 echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6
11795 if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11798 cat >conftest.$ac_ext <<_ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11804 #include <langinfo.h>
11808 nl_langinfo(CODESET);
11813 rm -f conftest.$ac_objext conftest$ac_exeext
11814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11815 (eval $ac_link) 2>conftest.er1
11817 grep -v '^ *+' conftest.er1 >conftest.err
11819 cat conftest.err >&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } &&
11822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; } &&
11828 { ac_try='test -s conftest$ac_exeext'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834 rxvt_cv_func_nl_langinfo=yes
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11839 rxvt_cv_func_nl_langinfo=no
11841 rm -f conftest.err conftest.$ac_objext \
11842 conftest$ac_exeext conftest.$ac_ext
11844 echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
11845 echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6
11846 if test x$rxvt_cv_func_nl_langinfo = xyes; then
11848 cat >>confdefs.h <<\_ACEOF
11849 #define HAVE_NL_LANGINFO 1
11854 echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
11855 echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11856 if test "${rxvt_can_pass_fds+set}" = set; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 cat >conftest.$ac_ext <<_ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11866 #include <sys/types.h>
11867 #include <sys/socket.h>
11879 iov.iov_base = &data;
11882 msg.msg_iov = &iov;
11883 msg.msg_iovlen = 1;
11884 msg.msg_control = buf;
11885 msg.msg_controllen = sizeof buf;
11887 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11888 cmsg->cmsg_level = SOL_SOCKET;
11889 cmsg->cmsg_type = SCM_RIGHTS;
11890 cmsg->cmsg_len = 100;
11892 *(int *)CMSG_DATA (cmsg) = 5;
11894 return sendmsg (3, &msg, 0);
11901 rm -f conftest.$ac_objext conftest$ac_exeext
11902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11903 (eval $ac_link) 2>conftest.er1
11905 grep -v '^ *+' conftest.er1 >conftest.err
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } &&
11910 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; } &&
11916 { ac_try='test -s conftest$ac_exeext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 rxvt_can_pass_fds=yes
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11927 rxvt_can_pass_fds=no
11929 rm -f conftest.err conftest.$ac_objext \
11930 conftest$ac_exeext conftest.$ac_ext
11932 echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5
11933 echo "${ECHO_T}$rxvt_can_pass_fds" >&6
11934 if test x$rxvt_can_pass_fds = xyes; then
11936 cat >>confdefs.h <<\_ACEOF
11937 #define HAVE_UNIX_FDPASS 1
11942 echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11943 echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11944 if test "${rxvt_broken_ximcb+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11947 cat >conftest.$ac_ext <<_ACEOF
11949 #include <X11/Xlib.h>
11951 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11955 cb.callback = im_destroy_cb;
11959 rm -f conftest.$ac_objext
11960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11961 (eval $ac_compile) 2>conftest.er1
11963 grep -v '^ *+' conftest.er1 >conftest.err
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } &&
11968 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970 (eval $ac_try) 2>&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); }; } &&
11974 { ac_try='test -s conftest.$ac_objext'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; }; then
11980 rxvt_broken_ximcb=yes
11982 echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11985 rxvt_broken_ximcb=no
11987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11989 echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
11990 echo "${ECHO_T}$rxvt_broken_ximcb" >&6
11992 if test x$rxvt_broken_ximcb = xyes; then
11994 cat >>confdefs.h <<\_ACEOF
11995 #define XIMCB_PROTO_BROKEN 1
12000 echo "$as_me:$LINENO: checking for getpt" >&5
12001 echo $ECHO_N "checking for getpt... $ECHO_C" >&6
12002 if test "${rxvt_cv_func_getpt+set}" = set; then
12003 echo $ECHO_N "(cached) $ECHO_C" >&6
12005 cat >conftest.$ac_ext <<_ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011 #define _GNU_SOURCE
12012 #ifdef HAVE_STDLIB_H
12013 # include <cstdlib>
12023 rm -f conftest.$ac_objext conftest$ac_exeext
12024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12025 (eval $ac_link) 2>conftest.er1
12027 grep -v '^ *+' conftest.er1 >conftest.err
12029 cat conftest.err >&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); } &&
12032 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12034 (eval $ac_try) 2>&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; } &&
12038 { ac_try='test -s conftest$ac_exeext'
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; }; then
12044 rxvt_cv_func_getpt=yes
12046 echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12049 rxvt_cv_func_getpt=no
12051 rm -f conftest.err conftest.$ac_objext \
12052 conftest$ac_exeext conftest.$ac_ext
12054 echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
12055 echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
12056 if test x$rxvt_cv_func_getpt = xyes; then
12058 cat >>confdefs.h <<\_ACEOF
12059 #define HAVE_GETPT 1
12064 echo "$as_me:$LINENO: checking for pty/tty type" >&5
12065 echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
12066 if test "${rxvt_cv_ptys+set}" = set; then
12067 echo $ECHO_N "(cached) $ECHO_C" >&6
12069 if test x$ac_cv_func_openpty = xyes; then
12070 rxvt_cv_ptys=OPENPTY
12071 else if test x$ac_cv_func__getpty = xyes; then
12073 else if test -c /dev/ttyp20; then
12075 else if test -c /dev/ptym/clone; then
12077 else if test x$rxvt_cv_func_getpt = xyes; then
12079 else if test -c /dev/ptc -a -c /dev/pts; then
12081 else if test -c /dev/ptc -a -d /dev/pts; then
12083 else if test -c /dev/ptmx -a -c /dev/pts/0; then
12084 rxvt_cv_ptys=STREAMS
12085 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
12086 rxvt_cv_ptys=STREAMS
12100 echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
12101 echo "${ECHO_T}$rxvt_cv_ptys" >&6
12103 if test x$rxvt_cv_ptys = xOPENPTY; then
12105 cat >>confdefs.h <<\_ACEOF
12106 #define PTYS_ARE_OPENPTY 1
12110 if test x$rxvt_cv_ptys = xSCO; then
12112 cat >>confdefs.h <<\_ACEOF
12113 #define PTYS_ARE_NUMERIC 1
12117 if test x$rxvt_cv_ptys = xSTREAMS; then
12119 cat >>confdefs.h <<\_ACEOF
12120 #define PTYS_ARE_PTMX 1
12124 if test x$rxvt_cv_ptys = xPTC; then
12126 cat >>confdefs.h <<\_ACEOF
12127 #define PTYS_ARE_PTC 1
12131 if test x$rxvt_cv_ptys = xSGI4; then
12133 cat >>confdefs.h <<\_ACEOF
12134 #define PTYS_ARE__GETPTY 1
12138 if test x$rxvt_cv_ptys = xCONVEX; then
12140 cat >>confdefs.h <<\_ACEOF
12141 #define PTYS_ARE_GETPTY 1
12145 if test x$rxvt_cv_ptys = xGLIBC; then
12147 cat >>confdefs.h <<\_ACEOF
12148 #define PTYS_ARE_GETPT 1
12152 if test x$rxvt_cv_ptys = xHPUX; then
12154 cat >>confdefs.h <<\_ACEOF
12155 #define PTYS_ARE_CLONE 1
12159 if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
12161 cat >>confdefs.h <<\_ACEOF
12162 #define PTYS_ARE_SEARCHED 1
12168 { echo "$as_me:$LINENO: checking for pty ranges..." >&5
12169 echo "$as_me: checking for pty ranges..." >&6;}
12170 ptys=`echo /dev/pty??`
12171 pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12172 pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
12173 if test x$pch1 != x; then
12175 cat >>confdefs.h <<_ACEOF
12176 #define PTYCHAR1 "$pch1"
12180 if test x$pch2 != x; then
12182 cat >>confdefs.h <<_ACEOF
12183 #define PTYCHAR2 "$pch2"
12188 if test x$support_xft = xyes; then
12189 LIBS="$LIBS `pkg-config xft --libs`"
12190 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
12191 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
12194 for ac_header in X11/Xft/Xft.h
12196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12198 echo "$as_me:$LINENO: checking for $ac_header" >&5
12199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12201 echo $ECHO_N "(cached) $ECHO_C" >&6
12203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12206 # Is the header compilable?
12207 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12209 cat >conftest.$ac_ext <<_ACEOF
12212 cat confdefs.h >>conftest.$ac_ext
12213 cat >>conftest.$ac_ext <<_ACEOF
12214 /* end confdefs.h. */
12215 $ac_includes_default
12216 #include <$ac_header>
12218 rm -f conftest.$ac_objext
12219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12220 (eval $ac_compile) 2>conftest.er1
12222 grep -v '^ *+' conftest.er1 >conftest.err
12224 cat conftest.err >&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } &&
12227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229 (eval $ac_try) 2>&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; } &&
12233 { ac_try='test -s conftest.$ac_objext'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; }; then
12239 ac_header_compiler=yes
12241 echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12244 ac_header_compiler=no
12246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12248 echo "${ECHO_T}$ac_header_compiler" >&6
12250 # Is the header present?
12251 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12253 cat >conftest.$ac_ext <<_ACEOF
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12259 #include <$ac_header>
12261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12264 grep -v '^ *+' conftest.er1 >conftest.err
12266 cat conftest.err >&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } >/dev/null; then
12269 if test -s conftest.err; then
12270 ac_cpp_err=$ac_cxx_preproc_warn_flag
12271 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12278 if test -z "$ac_cpp_err"; then
12279 ac_header_preproc=yes
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12284 ac_header_preproc=no
12286 rm -f conftest.err conftest.$ac_ext
12287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12288 echo "${ECHO_T}$ac_header_preproc" >&6
12290 # So? What about this header?
12291 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12297 ac_header_preproc=yes
12300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12307 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12314 ## ------------------------------------------ ##
12315 ## Report this to the AC_PACKAGE_NAME lists. ##
12316 ## ------------------------------------------ ##
12319 sed "s/^/$as_me: WARNING: /" >&2
12322 echo "$as_me:$LINENO: checking for $ac_header" >&5
12323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
12327 eval "$as_ac_Header=\$ac_header_preproc"
12329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12334 cat >>confdefs.h <<_ACEOF
12335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12345 echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12346 echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
12347 if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12350 ac_check_lib_save_LIBS=$LIBS
12352 cat >conftest.$ac_ext <<_ACEOF
12355 cat confdefs.h >>conftest.$ac_ext
12356 cat >>conftest.$ac_ext <<_ACEOF
12357 /* end confdefs.h. */
12359 /* Override any gcc2 internal prototype to avoid an error. */
12363 /* We use char because int might match the return type of a gcc2
12364 builtin and then its argument prototype would still apply. */
12365 char XftDrawString32 ();
12369 XftDrawString32 ();
12374 rm -f conftest.$ac_objext conftest$ac_exeext
12375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12376 (eval $ac_link) 2>conftest.er1
12378 grep -v '^ *+' conftest.er1 >conftest.err
12380 cat conftest.err >&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } &&
12383 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385 (eval $ac_try) 2>&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; } &&
12389 { ac_try='test -s conftest$ac_exeext'
12390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391 (eval $ac_try) 2>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; }; then
12395 ac_cv_lib_Xft_XftDrawString32=yes
12397 echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12400 ac_cv_lib_Xft_XftDrawString32=no
12402 rm -f conftest.err conftest.$ac_objext \
12403 conftest$ac_exeext conftest.$ac_ext
12404 LIBS=$ac_check_lib_save_LIBS
12406 echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
12407 echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
12408 if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
12409 cat >>confdefs.h <<_ACEOF
12410 #define HAVE_LIBXFT 1
12420 if test x$support_xft = xyes; then
12422 cat >>confdefs.h <<\_ACEOF
12428 if test x$support_styles = xyes; then
12430 cat >>confdefs.h <<\_ACEOF
12431 #define ENABLE_STYLES 1
12435 if test x$support_iso14755 = xyes; then
12437 cat >>confdefs.h <<\_ACEOF
12438 #define ISO_14755 1
12442 if test x$support_8bitctrls = xyes; then
12444 cat >>confdefs.h <<\_ACEOF
12445 #define EIGHT_BIT_CONTROLS 1
12449 if test x$support_fading = xyes; then
12451 cat >>confdefs.h <<\_ACEOF
12452 #define OFF_FOCUS_FADING 1
12456 if test x$support_tinting = xyes; then
12458 cat >>confdefs.h <<\_ACEOF
12463 if test x$support_inheritpixmap = xyes; then
12465 cat >>confdefs.h <<\_ACEOF
12466 #define TRANSPARENT 1
12470 if test x$support_keepscrolling = xno; then
12472 cat >>confdefs.h <<\_ACEOF
12473 #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12477 if test x$support_selectionscrolling = xyes; then
12479 cat >>confdefs.h <<\_ACEOF
12480 #define SELECTION_SCROLLING 1
12484 if test x$support_menubar = xyes; then
12486 cat >>confdefs.h <<\_ACEOF
12491 if test x$support_frills = xyes; then
12493 cat >>confdefs.h <<\_ACEOF
12494 #define ENABLE_FRILLS 1
12498 if test x$support_24bit = xyes; then
12500 cat >>confdefs.h <<\_ACEOF
12501 #define PREFER_24BIT 1
12505 if test x$support_mousewheel = xyes; then
12507 cat >>confdefs.h <<\_ACEOF
12508 #define MOUSE_WHEEL 1
12512 if test x$support_mouseslipwheel = xyes; then
12514 cat >>confdefs.h <<\_ACEOF
12515 #define MOUSE_SLIP_WHEELING 1
12519 if test x$support_utmp = xyes; then
12521 cat >>confdefs.h <<\_ACEOF
12522 #define UTMP_SUPPORT 1
12526 if test x$support_wtmp = xyes; then
12528 cat >>confdefs.h <<\_ACEOF
12529 #define WTMP_SUPPORT 1
12533 if test x$support_lastlog = xyes; then
12535 cat >>confdefs.h <<\_ACEOF
12536 #define LASTLOG_SUPPORT 1
12540 if test x$support_xim = xyes -o x$multichar_set = xyes; then
12541 if test x$rxvt_cv_func_xlocale = xyes; then
12543 cat >>confdefs.h <<\_ACEOF
12549 if test x$support_xpm = xyes; then
12551 cat >>confdefs.h <<\_ACEOF
12552 #define XPM_BACKGROUND 1
12556 if test x$support_scroll_rxvt = xyes; then
12558 cat >>confdefs.h <<\_ACEOF
12559 #define RXVT_SCROLLBAR 1
12564 if test x$support_scroll_next = xyes; then
12566 cat >>confdefs.h <<\_ACEOF
12567 #define NEXT_SCROLLBAR 1
12570 scrolltypes="$scrolltypes next"
12572 if test x$support_scroll_xterm = xyes; then
12574 cat >>confdefs.h <<\_ACEOF
12575 #define XTERM_SCROLLBAR 1
12578 scrolltypes="$scrolltypes xterm"
12580 if test x$support_scroll_plain = xyes; then
12582 cat >>confdefs.h <<\_ACEOF
12583 #define PLAIN_SCROLLBAR 1
12586 scrolltypes="$scrolltypes plain"
12588 if test x$support_pointer_blank = xyes; then
12590 cat >>confdefs.h <<\_ACEOF
12591 #define POINTER_BLANK 1
12595 if test x$support_text_blink = xyes; then
12597 cat >>confdefs.h <<\_ACEOF
12598 #define TEXT_BLINK 1
12602 if test x$support_unicode3 = xyes; then
12604 cat >>confdefs.h <<\_ACEOF
12605 #define UNICODE_3 1
12609 if test x$support_combining = xyes; then
12611 cat >>confdefs.h <<\_ACEOF
12612 #define ENABLE_COMBINING 1
12616 if test x$codesets = xall; then
12617 codesets=jp,jp-ext,kr,zh,zh-ext
12620 cat >>confdefs.h <<\_ACEOF
12621 #define ENCODING_EU 1
12625 cat >>confdefs.h <<\_ACEOF
12626 #define ENCODING_VN 1
12629 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
12632 cat >>confdefs.h <<\_ACEOF
12633 #define ENCODING_JP 1
12637 cat >>confdefs.h <<\_ACEOF
12638 #define ENCODING_JP_EXT 1
12642 cat >>confdefs.h <<\_ACEOF
12643 #define ENCODING_KR 1
12647 cat >>confdefs.h <<\_ACEOF
12648 #define ENCODING_ZH 1
12652 cat >>confdefs.h <<\_ACEOF
12653 #define ENCODING_ZH_EXT 1
12660 if test x$support_perl = xyes; then
12661 # Extract the first word of "perl5", so it can be a program name with args.
12662 set dummy perl5; ac_word=$2
12663 echo "$as_me:$LINENO: checking for $ac_word" >&5
12664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12665 if test "${ac_cv_path_PERL+set}" = set; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12670 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12674 for as_dir in $PATH
12677 test -z "$as_dir" && as_dir=.
12678 for ac_exec_ext in '' $ac_executable_extensions; do
12679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12680 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12690 PERL=$ac_cv_path_PERL
12692 if test -n "$PERL"; then
12693 echo "$as_me:$LINENO: result: $PERL" >&5
12694 echo "${ECHO_T}$PERL" >&6
12696 echo "$as_me:$LINENO: result: no" >&5
12697 echo "${ECHO_T}no" >&6
12700 # Extract the first word of "perl", so it can be a program name with args.
12701 set dummy perl; ac_word=$2
12702 echo "$as_me:$LINENO: checking for $ac_word" >&5
12703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12704 if test "${ac_cv_path_PERL+set}" = set; then
12705 echo $ECHO_N "(cached) $ECHO_C" >&6
12709 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12713 for as_dir in $PATH
12716 test -z "$as_dir" && as_dir=.
12717 for ac_exec_ext in '' $ac_executable_extensions; do
12718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12719 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12729 PERL=$ac_cv_path_PERL
12731 if test -n "$PERL"; then
12732 echo "$as_me:$LINENO: result: $PERL" >&5
12733 echo "${ECHO_T}$PERL" >&6
12735 echo "$as_me:$LINENO: result: no" >&5
12736 echo "${ECHO_T}no" >&6
12740 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
12741 echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
12742 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
12744 save_CXXFLAGS="$CXXFLAGS"
12746 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
12747 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
12748 cat >conftest.$ac_ext <<_ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12755 #include <EXTERN.h>
12763 PerlInterpreter *perl = perl_alloc ();
12769 rm -f conftest.$ac_objext conftest$ac_exeext
12770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12771 (eval $ac_link) 2>conftest.er1
12773 grep -v '^ *+' conftest.er1 >conftest.err
12775 cat conftest.err >&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } &&
12778 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; } &&
12784 { ac_try='test -s conftest$ac_exeext'
12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786 (eval $ac_try) 2>&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; }; then
12792 echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.$ac_ext >&5
12797 rm -f conftest.err conftest.$ac_objext \
12798 conftest$ac_exeext conftest.$ac_ext
12799 CXXFLAGS="$save_CXXFLAGS"
12802 if test x$rxvt_perl_link = xyes; then
12803 echo "$as_me:$LINENO: result: ok" >&5
12804 echo "${ECHO_T}ok" >&6
12806 cat >>confdefs.h <<\_ACEOF
12807 #define ENABLE_PERL 1
12812 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
12813 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
12814 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
12817 echo "$as_me:$LINENO: result: no, unable to link" >&5
12818 echo "${ECHO_T}no, unable to link" >&6
12821 { { echo "$as_me:$LINENO: error: no working perl found" >&5
12822 echo "$as_me: error: no working perl found" >&2;}
12823 { (exit or perl not version >= 5.8); exit or perl not version >= 5.8; }; }
12835 CFLAGS=${CFLAGS--O}
12836 LDFLAGS=${LDFLAGS--O}
12838 CPPFLAGS="$CPPFLAGS"
12846 if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
12847 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
12848 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
12849 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
12850 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
12851 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
12858 if test x$support_addstrings = xno; then
12860 cat >>confdefs.h <<\_ACEOF
12861 #define NO_STRINGS 1
12866 MCOMMON=./autoconf/Make.common
12869 test "$program_prefix" != NONE &&
12870 program_transform_name="s,^,$program_prefix,;$program_transform_name"
12871 # Use a double $ so make ignores it.
12872 test "$program_suffix" != NONE &&
12873 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
12874 # Double any \ or $. echo might interpret backslashes.
12875 # By default was `s,x,x', remove it if useless.
12876 cat <<\_ACEOF >conftest.sed
12877 s/[\\$]/&&/g;s/;s,x,x,$//
12879 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
12886 if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
12887 include_stdint_h="#include <stdint.h>"
12889 include_stdint_h="/* #include <stdint.h> */"
12891 if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
12892 include_stdarg_h="#include <cstdarg>"
12894 include_stdarg_h="/* #include <cstdarg> */"
12896 if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
12897 include_stdlib_h="#include <cstdlib>"
12899 include_stdlib_h="/* #include <cstdlib> */"
12901 if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
12902 include_unistd_h="#include <unistd.h>"
12904 include_unistd_h="/* #include <unistd.h> */"
12906 if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
12907 include_string_h="#include <cstring>"
12909 include_string_h="/* #include <cstring> */"
12911 if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
12912 include_fcntl_h="#include <fcntl.h>"
12914 include_fcntl_h="/* #include <fcntl.h> */"
12916 if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
12917 include_util_h="#include <util.h>"
12919 include_util_h="/* #include <util.h> */"
12921 if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
12922 include_assert_h="#include <assert.h>"
12924 include_assert_h="/* #include <assert.h> */"
12926 if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
12927 include_sys_ioctl_h="#include <sys/ioctl.h>"
12929 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
12931 if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
12932 include_sys_select_h="#include <sys/select.h>"
12934 include_sys_select_h="/* #include <sys/select.h> */"
12936 if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
12937 include_sys_strredir_h="#include <sys/strredir.h>"
12939 include_sys_strredir_h="/* #include <sys/strredir.h> */"
12941 if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
12942 include_sys_time_h="#include <sys/time.h>"
12944 include_sys_time_h="/* #include <sys/time.h> */"
12946 if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
12947 include_time_h="#include <time.h>"
12949 include_time_h="/* #include <time.h> */"
12952 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/rxvtlib.h"
12954 cat >confcache <<\_ACEOF
12955 # This file is a shell script that caches the results of configure
12956 # tests run on this system so they can be shared between configure
12957 # scripts and configure runs, see configure's option --config-cache.
12958 # It is not useful on other systems. If it contains results you don't
12959 # want to keep, you may remove or edit it.
12961 # config.status only pays attention to the cache file if you give it
12962 # the --recheck option to rerun configure.
12964 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12965 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12966 # following values.
12970 # The following way of writing the cache mishandles newlines in values,
12971 # but we know of no workaround that is simple, portable, and efficient.
12972 # So, don't put newlines in cache variables' values.
12973 # Ultrix sh set writes to stderr and can't be redirected directly,
12974 # and sets the high bit in the cache file unless we assign to the vars.
12977 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12979 # `set' does not quote correctly, so add quotes (double-quote
12980 # substitution turns \\\\ into \\, and sed turns \\ into \).
12983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12986 # `set' quotes correctly as required by POSIX, so do not add quotes.
12988 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12995 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12997 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12999 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13000 if test -w $cache_file; then
13001 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13002 cat confcache >$cache_file
13004 echo "not updating unwritable cache $cache_file"
13009 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13010 # Let make expand exec_prefix.
13011 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13013 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13014 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13015 # trailing colons and then remove the whole line if VPATH becomes empty
13016 # (actually we leave an empty line to preserve line numbers).
13017 if test "x$srcdir" = x.; then
13018 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13019 s/:*\$(srcdir):*/:/;
13020 s/:*\${srcdir}:*/:/;
13022 s/^\([^=]*=[ ]*\):*/\1/;
13028 DEFS=-DHAVE_CONFIG_H
13032 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13033 # 1. Remove the extension, and $U if already installed.
13034 ac_i=`echo "$ac_i" |
13035 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13037 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13038 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13040 LIBOBJS=$ac_libobjs
13042 LTLIBOBJS=$ac_ltlibobjs
13046 : ${CONFIG_STATUS=./config.status}
13047 ac_clean_files_save=$ac_clean_files
13048 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13049 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13050 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13051 cat >$CONFIG_STATUS <<_ACEOF
13053 # Generated by $as_me.
13054 # Run this file to recreate the current configuration.
13055 # Compiler output produced by configure, useful for debugging
13056 # configure, is in config.log if it exists.
13059 ac_cs_recheck=false
13061 SHELL=\${CONFIG_SHELL-$SHELL}
13064 cat >>$CONFIG_STATUS <<\_ACEOF
13065 ## --------------------- ##
13066 ## M4sh Initialization. ##
13067 ## --------------------- ##
13069 # Be Bourne compatible
13070 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13073 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13074 # is contrary to our usage. Disable this feature.
13075 alias -g '${1+"$@"}'='"$@"'
13076 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13079 DUALCASE=1; export DUALCASE # for MKS sh
13081 # Support unset when possible.
13082 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13089 # Work around bugs in pre-3.0 UWIN ksh.
13090 $as_unset ENV MAIL MAILPATH
13097 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13098 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13099 LC_TELEPHONE LC_TIME
13101 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13102 eval $as_var=C; export $as_var
13108 # Required to use basename.
13109 if expr a : '\(a\)' >/dev/null 2>&1; then
13115 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13116 as_basename=basename
13122 # Name of the executable.
13123 as_me=`$as_basename "$0" ||
13124 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13125 X"$0" : 'X\(//\)$' \| \
13126 X"$0" : 'X\(/\)$' \| \
13127 . : '\(.\)' 2>/dev/null ||
13129 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13130 /^X\/\(\/\/\)$/{ s//\1/; q; }
13131 /^X\/\(\/\).*/{ s//\1/; q; }
13135 # PATH needs CR, and LINENO needs CR and PATH.
13136 # Avoid depending upon Character Ranges.
13137 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13138 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13139 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13140 as_cr_digits='0123456789'
13141 as_cr_alnum=$as_cr_Letters$as_cr_digits
13143 # The user is always right.
13144 if test "${PATH_SEPARATOR+set}" != set; then
13145 echo "#! /bin/sh" >conf$$.sh
13146 echo "exit 0" >>conf$$.sh
13148 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13157 as_lineno_1=$LINENO
13158 as_lineno_2=$LINENO
13159 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13160 test "x$as_lineno_1" != "x$as_lineno_2" &&
13161 test "x$as_lineno_3" = "x$as_lineno_2" || {
13162 # Find who we are. Look in the path if we contain no path at all
13165 *[\\/]* ) as_myself=$0 ;;
13166 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167 for as_dir in $PATH
13170 test -z "$as_dir" && as_dir=.
13171 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13176 # We did not find ourselves, most probably we were run as `sh COMMAND'
13177 # in which case we are not to be found in the path.
13178 if test "x$as_myself" = x; then
13181 if test ! -f "$as_myself"; then
13182 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13183 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13184 { (exit 1); exit 1; }; }
13186 case $CONFIG_SHELL in
13188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13189 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13192 test -z "$as_dir" && as_dir=.
13193 for as_base in sh bash ksh sh5; do
13196 if ("$as_dir/$as_base" -c '
13197 as_lineno_1=$LINENO
13198 as_lineno_2=$LINENO
13199 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13200 test "x$as_lineno_1" != "x$as_lineno_2" &&
13201 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13202 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13203 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13204 CONFIG_SHELL=$as_dir/$as_base
13205 export CONFIG_SHELL
13206 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13214 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13215 # uniformly replaced by the line number. The first 'sed' inserts a
13216 # line-number line before each line; the second 'sed' does the real
13217 # work. The second script uses 'N' to pair each line-number line
13218 # with the numbered line, and appends trailing '-' during
13219 # substitution so that $LINENO is not a special case at line end.
13220 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13221 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13222 sed '=' <$as_myself |
13227 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13230 s,^['$as_cr_digits']*\n,,
13231 ' >$as_me.lineno &&
13232 chmod +x $as_me.lineno ||
13233 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13234 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13235 { (exit 1); exit 1; }; }
13237 # Don't try to exec as it changes $[0], causing all sort of problems
13238 # (the dirname of $[0] is not the place where we might find the
13239 # original and so on. Autoconf is especially sensible to this).
13241 # Exit status is that of the last command.
13246 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13247 *c*,-n*) ECHO_N= ECHO_C='
13249 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13250 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13253 if expr a : '\(a\)' >/dev/null 2>&1; then
13259 rm -f conf$$ conf$$.exe conf$$.file
13261 if ln -s conf$$.file conf$$ 2>/dev/null; then
13262 # We could just check for DJGPP; but this test a) works b) is more generic
13263 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13264 if test -f conf$$.exe; then
13265 # Don't use ln at all; we don't have any links
13270 elif ln conf$$.file conf$$ 2>/dev/null; then
13275 rm -f conf$$ conf$$.exe conf$$.file
13277 if mkdir -p . 2>/dev/null; then
13280 test -d ./-p && rmdir ./-p
13284 as_executable_p="test -f"
13286 # Sed expression to map a string onto a valid CPP name.
13287 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13289 # Sed expression to map a string onto a valid variable name.
13290 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13294 # We need space, tab and new line, in precisely that order.
13304 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13305 # report actual input values of CONFIG_FILES etc. instead of their
13306 # values after options handling. Logging --version etc. is OK.
13310 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13311 ## Running $as_me. ##
13316 This file was extended by $as_me, which was
13317 generated by GNU Autoconf 2.59. Invocation command line was
13319 CONFIG_FILES = $CONFIG_FILES
13320 CONFIG_HEADERS = $CONFIG_HEADERS
13321 CONFIG_LINKS = $CONFIG_LINKS
13322 CONFIG_COMMANDS = $CONFIG_COMMANDS
13326 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13330 # Files that config.status was made for.
13331 if test -n "$ac_config_files"; then
13332 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13335 if test -n "$ac_config_headers"; then
13336 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13339 if test -n "$ac_config_links"; then
13340 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13343 if test -n "$ac_config_commands"; then
13344 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13347 cat >>$CONFIG_STATUS <<\_ACEOF
13350 \`$as_me' instantiates files from templates according to the
13351 current configuration.
13353 Usage: $0 [OPTIONS] [FILE]...
13355 -h, --help print this help, then exit
13356 -V, --version print version number, then exit
13357 -q, --quiet do not print progress messages
13358 -d, --debug don't remove temporary files
13359 --recheck update $as_me by reconfiguring in the same conditions
13360 --file=FILE[:TEMPLATE]
13361 instantiate the configuration file FILE
13362 --header=FILE[:TEMPLATE]
13363 instantiate the configuration header FILE
13365 Configuration files:
13368 Configuration headers:
13371 Report bugs to <bug-autoconf@gnu.org>."
13374 cat >>$CONFIG_STATUS <<_ACEOF
13377 configured by $0, generated by GNU Autoconf 2.59,
13378 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13380 Copyright (C) 2003 Free Software Foundation, Inc.
13381 This config.status script is free software; the Free Software Foundation
13382 gives unlimited permission to copy, distribute and modify it."
13387 cat >>$CONFIG_STATUS <<\_ACEOF
13388 # If no file are specified by the user, then we need to provide default
13389 # value. By we need to know if files were specified by the user.
13395 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13396 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13404 *) # This is not an option, so the user has probably given explicit
13407 ac_need_defaults=false;;
13411 # Handling of the options.
13413 cat >>$CONFIG_STATUS <<\_ACEOF
13414 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13416 --version | --vers* | -V )
13417 echo "$ac_cs_version"; exit 0 ;;
13419 # Conflict between --help and --header
13420 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13421 Try \`$0 --help' for more information." >&5
13422 echo "$as_me: error: ambiguous option: $1
13423 Try \`$0 --help' for more information." >&2;}
13424 { (exit 1); exit 1; }; };;
13425 --help | --hel | -h )
13426 echo "$ac_cs_usage"; exit 0 ;;
13427 --debug | --d* | -d )
13429 --file | --fil | --fi | --f )
13431 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13432 ac_need_defaults=false;;
13433 --header | --heade | --head | --hea )
13435 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13436 ac_need_defaults=false;;
13437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13438 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13441 # This is an error.
13442 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13443 Try \`$0 --help' for more information." >&5
13444 echo "$as_me: error: unrecognized option: $1
13445 Try \`$0 --help' for more information." >&2;}
13446 { (exit 1); exit 1; }; } ;;
13448 *) ac_config_targets="$ac_config_targets $1" ;;
13454 ac_configure_extra_args=
13456 if $ac_cs_silent; then
13458 ac_configure_extra_args="$ac_configure_extra_args --silent"
13462 cat >>$CONFIG_STATUS <<_ACEOF
13463 if \$ac_cs_recheck; then
13464 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13465 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13474 cat >>$CONFIG_STATUS <<\_ACEOF
13475 for ac_config_target in $ac_config_targets
13477 case "$ac_config_target" in
13478 # Handling of arguments.
13479 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
13480 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13481 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13482 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13483 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
13484 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;;
13485 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13486 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13487 { (exit 1); exit 1; }; };;
13491 # If the user did not use the arguments to specify the items to instantiate,
13492 # then the envvar interface is used. Set only those that are not.
13493 # We use the long form for the default assignment because of an extremely
13494 # bizarre bug on SunOS 4.1.3.
13495 if $ac_need_defaults; then
13496 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13497 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13500 # Have a temporary directory for convenience. Make it in the build tree
13501 # simply because there is no reason to put it here, and in addition,
13502 # creating and moving files from /tmp can sometimes cause problems.
13503 # Create a temporary directory, and hook for its removal unless debugging.
13506 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13507 trap '{ (exit 1); exit 1; }' 1 2 13 15
13510 # Create a (secure) tmp directory for tmp files.
13513 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13514 test -n "$tmp" && test -d "$tmp"
13517 tmp=./confstat$$-$RANDOM
13518 (umask 077 && mkdir $tmp)
13521 echo "$me: cannot create a temporary directory in ." >&2
13522 { (exit 1); exit 1; }
13527 cat >>$CONFIG_STATUS <<_ACEOF
13530 # CONFIG_FILES section.
13533 # No need to generate the scripts if there are no CONFIG_FILES.
13534 # This happens for instance when ./config.status config.h
13535 if test -n "\$CONFIG_FILES"; then
13536 # Protect against being on the right side of a sed subst in config.status.
13537 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13538 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13539 s,@SHELL@,$SHELL,;t t
13540 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13541 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13542 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13543 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13544 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13545 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13546 s,@exec_prefix@,$exec_prefix,;t t
13547 s,@prefix@,$prefix,;t t
13548 s,@program_transform_name@,$program_transform_name,;t t
13549 s,@bindir@,$bindir,;t t
13550 s,@sbindir@,$sbindir,;t t
13551 s,@libexecdir@,$libexecdir,;t t
13552 s,@datadir@,$datadir,;t t
13553 s,@sysconfdir@,$sysconfdir,;t t
13554 s,@sharedstatedir@,$sharedstatedir,;t t
13555 s,@localstatedir@,$localstatedir,;t t
13556 s,@libdir@,$libdir,;t t
13557 s,@includedir@,$includedir,;t t
13558 s,@oldincludedir@,$oldincludedir,;t t
13559 s,@infodir@,$infodir,;t t
13560 s,@mandir@,$mandir,;t t
13561 s,@build_alias@,$build_alias,;t t
13562 s,@host_alias@,$host_alias,;t t
13563 s,@target_alias@,$target_alias,;t t
13564 s,@DEFS@,$DEFS,;t t
13565 s,@ECHO_C@,$ECHO_C,;t t
13566 s,@ECHO_N@,$ECHO_N,;t t
13567 s,@ECHO_T@,$ECHO_T,;t t
13568 s,@LIBS@,$LIBS,;t t
13569 s,@build@,$build,;t t
13570 s,@build_cpu@,$build_cpu,;t t
13571 s,@build_vendor@,$build_vendor,;t t
13572 s,@build_os@,$build_os,;t t
13573 s,@host@,$host,;t t
13574 s,@host_cpu@,$host_cpu,;t t
13575 s,@host_vendor@,$host_vendor,;t t
13576 s,@host_os@,$host_os,;t t
13577 s,@VERSION@,$VERSION,;t t
13578 s,@DATE@,$DATE,;t t
13579 s,@LSMDATE@,$LSMDATE,;t t
13580 s,@LIBVERSION@,$LIBVERSION,;t t
13582 s,@CFLAGS@,$CFLAGS,;t t
13583 s,@LDFLAGS@,$LDFLAGS,;t t
13584 s,@CPPFLAGS@,$CPPFLAGS,;t t
13585 s,@ac_ct_CC@,$ac_ct_CC,;t t
13586 s,@EXEEXT@,$EXEEXT,;t t
13587 s,@OBJEXT@,$OBJEXT,;t t
13589 s,@CXXFLAGS@,$CXXFLAGS,;t t
13590 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13592 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13593 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13594 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13596 s,@LINKER@,$LINKER,;t t
13597 s,@CXXCPP@,$CXXCPP,;t t
13598 s,@EGREP@,$EGREP,;t t
13599 s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
13600 s,@RXVTNAME@,$RXVTNAME,;t t
13606 s,@ECHO@,$ECHO,;t t
13610 s,@X_CFLAGS@,$X_CFLAGS,;t t
13611 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13612 s,@X_LIBS@,$X_LIBS,;t t
13613 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13614 s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
13615 s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
13616 s,@XPM_LIBS@,$XPM_LIBS,;t t
13617 s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
13618 s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
13619 s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
13620 s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
13621 s,@rxvt_intp_define@,$rxvt_intp_define,;t t
13622 s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
13623 s,@PERL@,$PERL,;t t
13624 s,@PERLLIB@,$PERLLIB,;t t
13625 s,@PERLFLAGS@,$PERLFLAGS,;t t
13626 s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
13627 s,@IF_PERL@,$IF_PERL,;t t
13628 s,@PERL_O@,$PERL_O,;t t
13629 s,@DEBUG@,$DEBUG,;t t
13630 s,@DINCLUDE@,$DINCLUDE,;t t
13631 s,@DLIB@,$DLIB,;t t
13632 s,@include_stdint_h@,$include_stdint_h,;t t
13633 s,@include_stdarg_h@,$include_stdarg_h,;t t
13634 s,@include_stdlib_h@,$include_stdlib_h,;t t
13635 s,@include_unistd_h@,$include_unistd_h,;t t
13636 s,@include_string_h@,$include_string_h,;t t
13637 s,@include_fcntl_h@,$include_fcntl_h,;t t
13638 s,@include_util_h@,$include_util_h,;t t
13639 s,@include_assert_h@,$include_assert_h,;t t
13640 s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
13641 s,@include_sys_select_h@,$include_sys_select_h,;t t
13642 s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
13643 s,@include_sys_time_h@,$include_sys_time_h,;t t
13644 s,@include_time_h@,$include_time_h,;t t
13645 s,@LIBOBJS@,$LIBOBJS,;t t
13646 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13647 /@MCOMMON@/r $MCOMMON
13653 cat >>$CONFIG_STATUS <<\_ACEOF
13654 # Split the substitutions into bite-sized pieces for seds with
13655 # small command number limits, like on Digital OSF/1 and HP-UX.
13656 ac_max_sed_lines=48
13657 ac_sed_frag=1 # Number of current file.
13658 ac_beg=1 # First line for current file.
13659 ac_end=$ac_max_sed_lines # Line after last line for current file.
13662 while $ac_more_lines; do
13663 if test $ac_beg -gt 1; then
13664 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13666 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13668 if test ! -s $tmp/subs.frag; then
13669 ac_more_lines=false
13671 # The purpose of the label and of the branching condition is to
13672 # speed up the sed processing (if there are no `@' at all, there
13673 # is no need to browse any of the substitutions).
13674 # These are the two extra sed commands mentioned above.
13676 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13677 if test -z "$ac_sed_cmds"; then
13678 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13680 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13682 ac_sed_frag=`expr $ac_sed_frag + 1`
13684 ac_end=`expr $ac_end + $ac_max_sed_lines`
13687 if test -z "$ac_sed_cmds"; then
13690 fi # test -n "$CONFIG_FILES"
13693 cat >>$CONFIG_STATUS <<\_ACEOF
13694 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13695 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13697 - | *:- | *:-:* ) # input from stdin
13699 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13700 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13701 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13702 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13703 * ) ac_file_in=$ac_file.in ;;
13706 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13707 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13708 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13709 X"$ac_file" : 'X\(//\)[^/]' \| \
13710 X"$ac_file" : 'X\(//\)$' \| \
13711 X"$ac_file" : 'X\(/\)' \| \
13712 . : '\(.\)' 2>/dev/null ||
13714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13715 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13716 /^X\(\/\/\)$/{ s//\1/; q; }
13717 /^X\(\/\).*/{ s//\1/; q; }
13719 { if $as_mkdir_p; then
13724 while test ! -d "$as_dir"; do
13725 as_dirs="$as_dir $as_dirs"
13726 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13727 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13728 X"$as_dir" : 'X\(//\)[^/]' \| \
13729 X"$as_dir" : 'X\(//\)$' \| \
13730 X"$as_dir" : 'X\(/\)' \| \
13731 . : '\(.\)' 2>/dev/null ||
13733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13734 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13735 /^X\(\/\/\)$/{ s//\1/; q; }
13736 /^X\(\/\).*/{ s//\1/; q; }
13739 test ! -n "$as_dirs" || mkdir $as_dirs
13740 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13741 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13742 { (exit 1); exit 1; }; }; }
13746 if test "$ac_dir" != .; then
13747 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13748 # A "../" for each directory in $ac_dir_suffix.
13749 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13751 ac_dir_suffix= ac_top_builddir=
13755 .) # No --srcdir option. We are building in place.
13757 if test -z "$ac_top_builddir"; then
13760 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13762 [\\/]* | ?:[\\/]* ) # Absolute path.
13763 ac_srcdir=$srcdir$ac_dir_suffix;
13764 ac_top_srcdir=$srcdir ;;
13765 *) # Relative path.
13766 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13767 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13770 # Do not use `cd foo && pwd` to compute absolute paths, because
13771 # the directories may not exist.
13773 .) ac_abs_builddir="$ac_dir";;
13776 .) ac_abs_builddir=`pwd`;;
13777 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13778 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13781 case $ac_abs_builddir in
13782 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13784 case ${ac_top_builddir}. in
13785 .) ac_abs_top_builddir=$ac_abs_builddir;;
13786 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13787 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13790 case $ac_abs_builddir in
13791 .) ac_abs_srcdir=$ac_srcdir;;
13794 .) ac_abs_srcdir=$ac_abs_builddir;;
13795 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13796 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13799 case $ac_abs_builddir in
13800 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13802 case $ac_top_srcdir in
13803 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13804 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13805 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13811 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13812 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13815 # Let's still pretend it is `configure' which instantiates (i.e., don't
13816 # use $as_me), people would be surprised to read:
13817 # /* config.h. Generated by config.status. */
13818 if test x"$ac_file" = x-; then
13821 configure_input="$ac_file. "
13823 configure_input=$configure_input"Generated from `echo $ac_file_in |
13824 sed 's,.*/,,'` by configure."
13826 # First look for the input files in the build tree, otherwise in the
13828 ac_file_inputs=`IFS=:
13829 for f in $ac_file_in; do
13831 -) echo $tmp/stdin ;;
13833 # Absolute (can't be DOS-style, as IFS=:)
13834 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13835 echo "$as_me: error: cannot find input file: $f" >&2;}
13836 { (exit 1); exit 1; }; }
13839 if test -f "$f"; then
13842 elif test -f "$srcdir/$f"; then
13847 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13848 echo "$as_me: error: cannot find input file: $f" >&2;}
13849 { (exit 1); exit 1; }; }
13852 done` || { (exit 1); exit 1; }
13854 if test x"$ac_file" != x-; then
13855 { echo "$as_me:$LINENO: creating $ac_file" >&5
13856 echo "$as_me: creating $ac_file" >&6;}
13860 cat >>$CONFIG_STATUS <<_ACEOF
13864 cat >>$CONFIG_STATUS <<\_ACEOF
13866 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13867 s,@configure_input@,$configure_input,;t t
13868 s,@srcdir@,$ac_srcdir,;t t
13869 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13870 s,@top_srcdir@,$ac_top_srcdir,;t t
13871 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13872 s,@builddir@,$ac_builddir,;t t
13873 s,@abs_builddir@,$ac_abs_builddir,;t t
13874 s,@top_builddir@,$ac_top_builddir,;t t
13875 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13876 s,@INSTALL@,$ac_INSTALL,;t t
13877 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13879 if test x"$ac_file" != x-; then
13880 mv $tmp/out $ac_file
13888 cat >>$CONFIG_STATUS <<\_ACEOF
13891 # CONFIG_HEADER section.
13894 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13895 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13897 # ac_d sets the value in "#define NAME VALUE" lines.
13898 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13899 ac_dB='[ ].*$,\1#\2'
13902 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13903 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13904 ac_uB='$,\1#\2define\3'
13908 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13909 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13911 - | *:- | *:-:* ) # input from stdin
13913 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13914 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13915 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13916 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13917 * ) ac_file_in=$ac_file.in ;;
13920 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13921 echo "$as_me: creating $ac_file" >&6;}
13923 # First look for the input files in the build tree, otherwise in the
13925 ac_file_inputs=`IFS=:
13926 for f in $ac_file_in; do
13928 -) echo $tmp/stdin ;;
13930 # Absolute (can't be DOS-style, as IFS=:)
13931 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13932 echo "$as_me: error: cannot find input file: $f" >&2;}
13933 { (exit 1); exit 1; }; }
13934 # Do quote $f, to prevent DOS paths from being IFS'd.
13937 if test -f "$f"; then
13940 elif test -f "$srcdir/$f"; then
13945 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13946 echo "$as_me: error: cannot find input file: $f" >&2;}
13947 { (exit 1); exit 1; }; }
13950 done` || { (exit 1); exit 1; }
13951 # Remove the trailing spaces.
13952 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13956 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13957 # `conftest.undefs', that substitutes the proper values into
13958 # config.h.in to produce config.h. The first handles `#define'
13959 # templates, and the second `#undef' templates.
13960 # And first: Protect against being on the right side of a sed subst in
13961 # config.status. Protect against being in an unquoted here document
13962 # in config.status.
13963 rm -f conftest.defines conftest.undefs
13964 # Using a here document instead of a string reduces the quoting nightmare.
13965 # Putting comments in sed scripts is not portable.
13967 # `end' is used to avoid that the second main sed command (meant for
13968 # 0-ary CPP macros) applies to n-ary macro definitions.
13969 # See the Autoconf documentation for `clear'.
13970 cat >confdef2sed.sed <<\_ACEOF
13975 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13977 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13980 # If some macros were called several times there might be several times
13981 # the same #defines, which is useless. Nevertheless, we may not want to
13982 # sort them, since we want the *last* AC-DEFINE to be honored.
13983 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13984 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13985 rm -f confdef2sed.sed
13987 # This sed command replaces #undef with comments. This is necessary, for
13988 # example, in the case of _POSIX_SOURCE, which is predefined and required
13989 # on some systems where configure will not decide to define it.
13990 cat >>conftest.undefs <<\_ACEOF
13991 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13994 # Break up conftest.defines because some shells have a limit on the size
13995 # of here documents, and old seds have small limits too (100 cmds).
13996 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13997 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13998 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13999 echo ' :' >>$CONFIG_STATUS
14000 rm -f conftest.tail
14001 while grep . conftest.defines >/dev/null
14003 # Write a limited-size here document to $tmp/defines.sed.
14004 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14005 # Speed up: don't consider the non `#define' lines.
14006 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14007 # Work around the forget-to-reset-the-flag bug.
14008 echo 't clr' >>$CONFIG_STATUS
14009 echo ': clr' >>$CONFIG_STATUS
14010 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14012 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14014 mv $tmp/out $tmp/in
14016 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14017 rm -f conftest.defines
14018 mv conftest.tail conftest.defines
14020 rm -f conftest.defines
14021 echo ' fi # grep' >>$CONFIG_STATUS
14022 echo >>$CONFIG_STATUS
14024 # Break up conftest.undefs because some shells have a limit on the size
14025 # of here documents, and old seds have small limits too (100 cmds).
14026 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14027 rm -f conftest.tail
14028 while grep . conftest.undefs >/dev/null
14030 # Write a limited-size here document to $tmp/undefs.sed.
14031 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14032 # Speed up: don't consider the non `#undef'
14033 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14034 # Work around the forget-to-reset-the-flag bug.
14035 echo 't clr' >>$CONFIG_STATUS
14036 echo ': clr' >>$CONFIG_STATUS
14037 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14039 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14041 mv $tmp/out $tmp/in
14043 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14044 rm -f conftest.undefs
14045 mv conftest.tail conftest.undefs
14047 rm -f conftest.undefs
14049 cat >>$CONFIG_STATUS <<\_ACEOF
14050 # Let's still pretend it is `configure' which instantiates (i.e., don't
14051 # use $as_me), people would be surprised to read:
14052 # /* config.h. Generated by config.status. */
14053 if test x"$ac_file" = x-; then
14054 echo "/* Generated by configure. */" >$tmp/config.h
14056 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14058 cat $tmp/in >>$tmp/config.h
14060 if test x"$ac_file" != x-; then
14061 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14062 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14063 echo "$as_me: $ac_file is unchanged" >&6;}
14065 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14066 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14067 X"$ac_file" : 'X\(//\)[^/]' \| \
14068 X"$ac_file" : 'X\(//\)$' \| \
14069 X"$ac_file" : 'X\(/\)' \| \
14070 . : '\(.\)' 2>/dev/null ||
14072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14073 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14074 /^X\(\/\/\)$/{ s//\1/; q; }
14075 /^X\(\/\).*/{ s//\1/; q; }
14077 { if $as_mkdir_p; then
14082 while test ! -d "$as_dir"; do
14083 as_dirs="$as_dir $as_dirs"
14084 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14085 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14086 X"$as_dir" : 'X\(//\)[^/]' \| \
14087 X"$as_dir" : 'X\(//\)$' \| \
14088 X"$as_dir" : 'X\(/\)' \| \
14089 . : '\(.\)' 2>/dev/null ||
14091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14092 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14093 /^X\(\/\/\)$/{ s//\1/; q; }
14094 /^X\(\/\).*/{ s//\1/; q; }
14097 test ! -n "$as_dirs" || mkdir $as_dirs
14098 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14099 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14100 { (exit 1); exit 1; }; }; }
14103 mv $tmp/config.h $ac_file
14107 rm -f $tmp/config.h
14112 cat >>$CONFIG_STATUS <<\_ACEOF
14114 { (exit 0); exit 0; }
14116 chmod +x $CONFIG_STATUS
14117 ac_clean_files=$ac_clean_files_save
14120 # configure is writing to config.log, and then calls config.status.
14121 # config.status does its own redirection, appending to config.log.
14122 # Unfortunately, on DOS this fails, as config.log is still kept open
14123 # by configure, so config.status won't be able to write to it; its
14124 # output is simply discarded. So we exec the FD to /dev/null,
14125 # effectively closing config.log, so it can be properly (re)opened and
14126 # appended to by config.status. When coming back to configure, we
14127 # need to make the FD available again.
14128 if test "$no_create" != yes; then
14130 ac_config_status_args=
14131 test "$silent" = yes &&
14132 ac_config_status_args="$ac_config_status_args --quiet"
14134 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14136 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14137 # would make configure fail if this is the last instruction.
14138 $ac_cs_success || { (exit 1); exit 1; }
14142 echo "Configuration:
14144 Rxvt version: $VERSION : $DATE
14145 Source code location: $srcdir
14146 Install path: ${prefix}/bin
14148 Compiler flags: $CFLAGS
14151 if test "$MALLOC_TYPE" = S; then
14152 echo " malloc support: system default"
14154 if test "$MALLOC_TYPE" = G; then
14155 echo " malloc support: Gray Watson's dmalloc"
14157 if test "$MALLOC_TYPE" = D; then
14158 echo " malloc support: Doug Lea's malloc"
14161 if test x$support_xpm = xyes; then
14162 echo " Xpm library: $XPM_LIBS"
14166 The following are set in config.h
14168 echo " pty/tty type: "$rxvt_cv_ptys
14169 if test x$support_utmp != xyes; then
14170 echo " utmp support: disabled"
14173 echo " utmp support: enabled
14174 utmp file: $rxvt_cv_path_utmp
14175 utmpx file: $rxvt_cv_path_utmpx
14176 wtmp file: $rxvt_cv_path_wtmp
14177 wtmpx file: $rxvt_cv_path_wtmpx
14178 lastlog file: $rxvt_cv_path_lastlog
14179 ttys/ttytab file: $rxvt_cv_path_ttytab
14180 embedded perl: $support_perl"
14183 if test x$term != x; then
14184 echo " set TERM to: $term"
14186 if test x$terminfo != x; then
14187 echo " set TERMINFO to: $terminfo"
14189 echo " default resource name: $RESNAME"
14190 echo " resource class: $RESCLASS"
14191 if test x$RESFALLBACK != x; then
14192 echo " resource class fallback: $RESFALLBACK"
14195 if test x$rxvt_cv_ptys = xUNKNOWN; then
14196 echo ".----------------------------------------------------------------."
14197 echo ". WARNING: could not determine pty/tty type. Do not build until ."
14198 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
14199 echo ".----------------------------------------------------------------."
14201 if test x$support_xpm = xneedsmanualspecification; then
14202 echo ".----------------------------------------------------------------."
14203 echo ". WARNING: --enable-xpm-background was specified however the ."
14204 echo ". XPM includes files and libraries could not be found. ."
14205 echo ". XPM backgrounds are now being DISABLED! If you want ."
14206 echo ". to use them you should rerun configure with the ."
14207 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
14208 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
14209 echo ".----------------------------------------------------------------."
14211 if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
14212 echo ".----------------------------------------------------------------."
14213 echo ". WARNING: --enable-xim was specified however the locale support ."
14214 echo ". functions could not be found. ."
14215 echo ". XIM is now being DISABLED! ."
14216 echo ".----------------------------------------------------------------."
14219 echo " *** Optionally check src/feature.h for further options ***"
14222 echo ".----------------------------------------------------------------."
14223 echo ". NOTE: some features are disabled by default, try ."
14224 echo ". configure --help to get an idea of the optional features, ."
14225 echo ". or read ./README.configure ."
14227 echo ". The script ./reconf gives a reasonable baseline, try it if ."
14228 echo ". you do not want to read documentation and still want some ."
14229 echo ". useful features. ."
14230 echo ".----------------------------------------------------------------."