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'
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-rxvt-scroll enable rxvt style scrollbar
883 --enable-next-scroll enable NeXT style scrollbar
884 --enable-xterm-scroll enable Xterm style scrollbar
885 --enable-perl enable embedded perl interpreter
886 --enable-plain-scroll enable plain style scrollbar
887 --enable-xim XIM (X Input Method) protocol support
888 --enable-ttygid enable tty setting to group named "tty"
889 --disable-backspace-key disable handling of the backspace key
890 --disable-delete-key disable handling of the delete key
891 --disable-resources disable all resource checking
892 --enable-8bitctrls enable 8 bit control sequences (not recommended)
893 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
894 --disable-swapscreen disable swap screen support
895 --enable-iso14755 enable support for extended ISO 14755 modes
896 --enable-frills enable support for rarely used features
897 --enable-24bit enable support for using 24bit visuals if available
898 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
899 --enable-selectionscrolling enable scrolling during selections
900 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
901 --enable-slipwheeling enable slip wheel scrolling (requires previous)
902 --enable-dmalloc enable Gray Watson's malloc - for debugging use
903 --enable-dlmalloc enable Doug Lea's malloc - for production use
904 NOTE: enable only one malloc package
905 --enable-smart-resize enable smart growth/shrink behaviour
906 --enable-text-blink enable blinking text
907 --enable-pointer-blank enable pointer blank when typing or inactive pointer
910 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
911 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
912 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
913 --with-res-name=NAME use this as default resource name (default: urxvt)
914 --with-res-class=CLASS use this as the resource class (default: URxvt)
915 --with-name=NAME set the basename for the installed binaries (default: urxvt)
916 --with-term=NAME set the terminal to NAME (default: rxvt)
917 --with-terminfo=PATH set the path to the terminfo tree to PATH
918 --with-x use the X Window System
919 --with-xpm-includes=DIR use XPM includes in DIR
920 --with-xpm-library=DIR use XPM library in DIR
923 Some influential environment variables:
924 CC C compiler command
925 CFLAGS C compiler flags
926 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
927 nonstandard directory <lib dir>
928 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
929 headers in a nonstandard directory <include dir>
930 CXX C++ compiler command
931 CXXFLAGS C++ compiler flags
933 CXXCPP C++ preprocessor
935 Use these variables to override the choices made by `configure' or to help
936 it to find libraries and programs with nonstandard names/locations.
941 if test "$ac_init_help" = "recursive"; then
942 # If there are subdirs, report their specific --help.
944 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
945 test -d $ac_dir || continue
948 if test "$ac_dir" != .; then
949 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
950 # A "../" for each directory in $ac_dir_suffix.
951 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
953 ac_dir_suffix= ac_top_builddir=
957 .) # No --srcdir option. We are building in place.
959 if test -z "$ac_top_builddir"; then
962 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
964 [\\/]* | ?:[\\/]* ) # Absolute path.
965 ac_srcdir=$srcdir$ac_dir_suffix;
966 ac_top_srcdir=$srcdir ;;
968 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
969 ac_top_srcdir=$ac_top_builddir$srcdir ;;
972 # Do not use `cd foo && pwd` to compute absolute paths, because
973 # the directories may not exist.
975 .) ac_abs_builddir="$ac_dir";;
978 .) ac_abs_builddir=`pwd`;;
979 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
980 *) ac_abs_builddir=`pwd`/"$ac_dir";;
983 case $ac_abs_builddir in
984 .) ac_abs_top_builddir=${ac_top_builddir}.;;
986 case ${ac_top_builddir}. in
987 .) ac_abs_top_builddir=$ac_abs_builddir;;
988 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
989 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
992 case $ac_abs_builddir in
993 .) ac_abs_srcdir=$ac_srcdir;;
996 .) ac_abs_srcdir=$ac_abs_builddir;;
997 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
998 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1001 case $ac_abs_builddir in
1002 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1004 case $ac_top_srcdir in
1005 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1006 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1007 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1012 # Check for guested configure; otherwise get Cygnus style configure.
1013 if test -f $ac_srcdir/configure.gnu; then
1015 $SHELL $ac_srcdir/configure.gnu --help=recursive
1016 elif test -f $ac_srcdir/configure; then
1018 $SHELL $ac_srcdir/configure --help=recursive
1019 elif test -f $ac_srcdir/configure.ac ||
1020 test -f $ac_srcdir/configure.in; then
1022 $ac_configure --help
1024 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1030 test -n "$ac_init_help" && exit 0
1031 if $ac_init_version; then
1034 Copyright (C) 2003 Free Software Foundation, Inc.
1035 This configure script is free software; the Free Software Foundation
1036 gives unlimited permission to copy, distribute and modify it.
1042 This file contains any messages produced by compilers while
1043 running configure, to aid debugging if configure makes a mistake.
1045 It was created by $as_me, which was
1046 generated by GNU Autoconf 2.59. Invocation command line was
1057 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1058 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1059 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1060 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1061 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1063 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1064 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1066 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1067 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1068 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1069 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1070 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1071 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1072 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1080 test -z "$as_dir" && as_dir=.
1081 echo "PATH: $as_dir"
1096 # Keep a trace of the command line.
1097 # Strip out --no-create and --no-recursion so they do not pile up.
1098 # Strip out --silent because we don't want to record it for future runs.
1099 # Also quote any args containing shell meta-characters.
1100 # Make two passes to allow for proper duplicate-argument suppression.
1105 ac_must_keep_next=false
1111 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113 | -silent | --silent | --silen | --sile | --sil)
1115 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1116 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1119 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1121 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1122 if test $ac_must_keep_next = true; then
1123 ac_must_keep_next=false # Got value, back to normal.
1126 *=* | --config-cache | -C | -disable-* | --disable-* \
1127 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1128 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1129 | -with-* | --with-* | -without-* | --without-* | --x)
1130 case "$ac_configure_args0 " in
1131 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1134 -* ) ac_must_keep_next=true ;;
1137 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1138 # Get rid of the leading space.
1144 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1145 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1147 # When interrupted or exit'd, cleanup temporary files, and complete
1148 # config.log. We remove comments because anyway the quotes in there
1149 # would cause problems or look ugly.
1150 # WARNING: Be sure not to use single quotes in there, as some shells,
1151 # such as our DU 5.0 friend, will then `close' the trap.
1152 trap 'exit_status=$?
1153 # Save into config.log some information that might help in debugging.
1158 ## ---------------- ##
1159 ## Cache variables. ##
1160 ## ---------------- ##
1163 # The following way of writing the cache mishandles newlines in values,
1166 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1169 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1170 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1174 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1181 ## ----------------- ##
1182 ## Output variables. ##
1183 ## ----------------- ##
1186 for ac_var in $ac_subst_vars
1188 eval ac_val=$`echo $ac_var`
1189 echo "$ac_var='"'"'$ac_val'"'"'"
1193 if test -n "$ac_subst_files"; then
1200 for ac_var in $ac_subst_files
1202 eval ac_val=$`echo $ac_var`
1203 echo "$ac_var='"'"'$ac_val'"'"'"
1208 if test -s confdefs.h; then
1215 sed "/^$/d" confdefs.h | sort
1218 test "$ac_signal" != 0 &&
1219 echo "$as_me: caught signal $ac_signal"
1220 echo "$as_me: exit $exit_status"
1222 rm -f core *.core &&
1223 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1226 for ac_signal in 1 2 13 15; do
1227 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1231 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1232 rm -rf conftest* confdefs.h
1233 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1236 # Predefined preprocessor variables.
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_NAME "$PACKAGE_NAME"
1243 cat >>confdefs.h <<_ACEOF
1244 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_STRING "$PACKAGE_STRING"
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1263 # Let the site file select an alternate cache file if it wants to.
1264 # Prefer explicitly selected file to automatically selected ones.
1265 if test -z "$CONFIG_SITE"; then
1266 if test "x$prefix" != xNONE; then
1267 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1269 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1272 for ac_site_file in $CONFIG_SITE; do
1273 if test -r "$ac_site_file"; then
1274 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1275 echo "$as_me: loading site script $ac_site_file" >&6;}
1276 sed 's/^/| /' "$ac_site_file" >&5
1281 if test -r "$cache_file"; then
1282 # Some versions of bash will fail to source /dev/null (special
1283 # files actually), so we avoid doing that.
1284 if test -f "$cache_file"; then
1285 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1286 echo "$as_me: loading cache $cache_file" >&6;}
1288 [\\/]* | ?:[\\/]* ) . $cache_file;;
1289 *) . ./$cache_file;;
1293 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1294 echo "$as_me: creating cache $cache_file" >&6;}
1298 # Check that the precious variables saved in the cache have kept the same
1300 ac_cache_corrupted=false
1301 for ac_var in `(set) 2>&1 |
1302 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1303 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1304 eval ac_new_set=\$ac_env_${ac_var}_set
1305 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1306 eval ac_new_val="\$ac_env_${ac_var}_value"
1307 case $ac_old_set,$ac_new_set in
1309 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1310 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1311 ac_cache_corrupted=: ;;
1313 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1314 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1315 ac_cache_corrupted=: ;;
1318 if test "x$ac_old_val" != "x$ac_new_val"; then
1319 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1320 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1321 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1322 echo "$as_me: former value: $ac_old_val" >&2;}
1323 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1324 echo "$as_me: current value: $ac_new_val" >&2;}
1325 ac_cache_corrupted=:
1328 # Pass precious variables to config.status.
1329 if test "$ac_new_set" = set; then
1331 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1332 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1333 *) ac_arg=$ac_var=$ac_new_val ;;
1335 case " $ac_configure_args " in
1336 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1337 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1341 if $ac_cache_corrupted; then
1342 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1343 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1344 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1345 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1346 { (exit 1); exit 1; }; }
1350 ac_cpp='$CPP $CPPFLAGS'
1351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1375 ac_config_headers="$ac_config_headers config.h:config.h.in"
1379 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; 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 $srcdir $srcdir/.. $srcdir/../.." >&5
1396 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&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 # Make sure we can run config.sub.
1404 $ac_config_sub sun4 >/dev/null 2>&1 ||
1405 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1406 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1407 { (exit 1); exit 1; }; }
1409 echo "$as_me:$LINENO: checking build system type" >&5
1410 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1411 if test "${ac_cv_build+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1414 ac_cv_build_alias=$build_alias
1415 test -z "$ac_cv_build_alias" &&
1416 ac_cv_build_alias=`$ac_config_guess`
1417 test -z "$ac_cv_build_alias" &&
1418 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1419 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1420 { (exit 1); exit 1; }; }
1421 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1422 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1423 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1424 { (exit 1); exit 1; }; }
1427 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1428 echo "${ECHO_T}$ac_cv_build" >&6
1430 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1431 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1432 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1435 echo "$as_me:$LINENO: checking host system type" >&5
1436 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1437 if test "${ac_cv_host+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1440 ac_cv_host_alias=$host_alias
1441 test -z "$ac_cv_host_alias" &&
1442 ac_cv_host_alias=$ac_cv_build_alias
1443 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1444 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1445 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1446 { (exit 1); exit 1; }; }
1449 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1450 echo "${ECHO_T}$ac_cv_host" >&6
1452 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1453 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1454 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1458 VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1459 DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1461 echo "configuring for rxvt $VERSION"
1464 orig_CXXFLAGS="$CXXFLAGS"
1468 ac_cpp='$CPP $CPPFLAGS'
1469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1472 if test -n "$ac_tool_prefix"; then
1473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1474 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 if test -n "$CC"; then
1481 ac_cv_prog_CC="$CC" # Let the user override the test.
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500 if test -n "$CC"; then
1501 echo "$as_me:$LINENO: result: $CC" >&5
1502 echo "${ECHO_T}$CC" >&6
1504 echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1509 if test -z "$ac_cv_prog_CC"; then
1511 # Extract the first word of "gcc", so it can be a program name with args.
1512 set dummy gcc; ac_word=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1518 if test -n "$ac_ct_CC"; then
1519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 test -z "$as_dir" && as_dir=.
1526 for ac_exec_ext in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528 ac_cv_prog_ac_ct_CC="gcc"
1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1538 if test -n "$ac_ct_CC"; then
1539 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1540 echo "${ECHO_T}$ac_ct_CC" >&6
1542 echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1551 if test -z "$CC"; then
1552 if test -n "$ac_tool_prefix"; then
1553 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1554 set dummy ${ac_tool_prefix}cc; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 if test -n "$CC"; then
1561 ac_cv_prog_CC="$CC" # Let the user override the test.
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_CC="${ac_tool_prefix}cc"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1580 if test -n "$CC"; then
1581 echo "$as_me:$LINENO: result: $CC" >&5
1582 echo "${ECHO_T}$CC" >&6
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1589 if test -z "$ac_cv_prog_CC"; then
1591 # Extract the first word of "cc", so it can be a program name with args.
1592 set dummy cc; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 if test -n "$ac_ct_CC"; then
1599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 test -z "$as_dir" && as_dir=.
1606 for ac_exec_ext in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608 ac_cv_prog_ac_ct_CC="cc"
1609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1618 if test -n "$ac_ct_CC"; then
1619 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1620 echo "${ECHO_T}$ac_ct_CC" >&6
1622 echo "$as_me:$LINENO: result: no" >&5
1623 echo "${ECHO_T}no" >&6
1632 if test -z "$CC"; then
1633 # Extract the first word of "cc", so it can be a program name with args.
1634 set dummy cc; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_CC+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 if test -n "$CC"; then
1641 ac_cv_prog_CC="$CC" # Let the user override the test.
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648 test -z "$as_dir" && as_dir=.
1649 for ac_exec_ext in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1652 ac_prog_rejected=yes
1656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 if test $ac_prog_rejected = yes; then
1663 # We found a bogon in the path, so make sure we never use it.
1664 set dummy $ac_cv_prog_CC
1666 if test $# != 0; then
1667 # We chose a different compiler from the bogus one.
1668 # However, it has the same basename, so the bogon will be chosen
1669 # first if we set CC to just the basename; use the full file name.
1671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1677 if test -n "$CC"; then
1678 echo "$as_me:$LINENO: result: $CC" >&5
1679 echo "${ECHO_T}$CC" >&6
1681 echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1686 if test -z "$CC"; then
1687 if test -n "$ac_tool_prefix"; then
1690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_CC+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 if test -n "$CC"; then
1698 ac_cv_prog_CC="$CC" # Let the user override the test.
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 if test -n "$CC"; then
1718 echo "$as_me:$LINENO: result: $CC" >&5
1719 echo "${ECHO_T}$CC" >&6
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1725 test -n "$CC" && break
1728 if test -z "$CC"; then
1732 # Extract the first word of "$ac_prog", so it can be a program name with args.
1733 set dummy $ac_prog; ac_word=$2
1734 echo "$as_me:$LINENO: checking for $ac_word" >&5
1735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 if test -n "$ac_ct_CC"; then
1740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749 ac_cv_prog_ac_ct_CC="$ac_prog"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759 if test -n "$ac_ct_CC"; then
1760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761 echo "${ECHO_T}$ac_ct_CC" >&6
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1767 test -n "$ac_ct_CC" && break
1776 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1777 See \`config.log' for more details." >&5
1778 echo "$as_me: error: no acceptable C compiler found in \$PATH
1779 See \`config.log' for more details." >&2;}
1780 { (exit 1); exit 1; }; }
1782 # Provide some information about the compiler.
1783 echo "$as_me:$LINENO:" \
1784 "checking for C compiler version" >&5
1785 ac_compiler=`set X $ac_compile; echo $2`
1786 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1787 (eval $ac_compiler --version </dev/null >&5) 2>&5
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }
1791 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1792 (eval $ac_compiler -v </dev/null >&5) 2>&5
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }
1796 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1797 (eval $ac_compiler -V </dev/null >&5) 2>&5
1799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800 (exit $ac_status); }
1802 cat >conftest.$ac_ext <<_ACEOF
1805 cat confdefs.h >>conftest.$ac_ext
1806 cat >>conftest.$ac_ext <<_ACEOF
1807 /* end confdefs.h. */
1817 ac_clean_files_save=$ac_clean_files
1818 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1819 # Try to create an executable without -o first, disregard a.out.
1820 # It will help us diagnose broken compilers, and finding out an intuition
1822 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1823 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1824 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1825 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1826 (eval $ac_link_default) 2>&5
1828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1829 (exit $ac_status); }; then
1830 # Find the output, starting from the most likely. This scheme is
1831 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1834 # Be careful to initialize this variable, since it used to be cached.
1835 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1837 # b.out is created by i960 compilers.
1838 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1840 test -f "$ac_file" || continue
1842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1845 # This is the source file.
1848 # We found the default executable, but exeext='' is most
1852 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1853 # FIXME: I believe we export ac_cv_exeext for Libtool,
1854 # but it would be cool to find out if it's true. Does anybody
1855 # maintain Libtool? --akim.
1863 echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1866 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1867 See \`config.log' for more details." >&5
1868 echo "$as_me: error: C compiler cannot create executables
1869 See \`config.log' for more details." >&2;}
1870 { (exit 77); exit 77; }; }
1873 ac_exeext=$ac_cv_exeext
1874 echo "$as_me:$LINENO: result: $ac_file" >&5
1875 echo "${ECHO_T}$ac_file" >&6
1877 # Check the compiler produces executables we can run. If not, either
1878 # the compiler is broken, or we cross compile.
1879 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1880 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1881 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1882 # If not cross compiling, check that we can run a simple program.
1883 if test "$cross_compiling" != yes; then
1884 if { ac_try='./$ac_file'
1885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; }; then
1892 if test "$cross_compiling" = maybe; then
1895 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1896 If you meant to cross compile, use \`--host'.
1897 See \`config.log' for more details." >&5
1898 echo "$as_me: error: cannot run C compiled programs.
1899 If you meant to cross compile, use \`--host'.
1900 See \`config.log' for more details." >&2;}
1901 { (exit 1); exit 1; }; }
1905 echo "$as_me:$LINENO: result: yes" >&5
1906 echo "${ECHO_T}yes" >&6
1908 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1909 ac_clean_files=$ac_clean_files_save
1910 # Check the compiler produces executables we can run. If not, either
1911 # the compiler is broken, or we cross compile.
1912 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1913 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1914 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1915 echo "${ECHO_T}$cross_compiling" >&6
1917 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1918 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1920 (eval $ac_link) 2>&5
1922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923 (exit $ac_status); }; then
1924 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1925 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1926 # work properly (i.e., refer to `conftest.exe'), while it won't with
1928 for ac_file in conftest.exe conftest conftest.*; do
1929 test -f "$ac_file" || continue
1931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1932 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1939 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1942 See \`config.log' for more details." >&2;}
1943 { (exit 1); exit 1; }; }
1946 rm -f conftest$ac_cv_exeext
1947 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1948 echo "${ECHO_T}$ac_cv_exeext" >&6
1950 rm -f conftest.$ac_ext
1951 EXEEXT=$ac_cv_exeext
1953 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1954 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1955 if test "${ac_cv_objext+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 cat >conftest.$ac_ext <<_ACEOF
1961 cat confdefs.h >>conftest.$ac_ext
1962 cat >>conftest.$ac_ext <<_ACEOF
1963 /* end confdefs.h. */
1973 rm -f conftest.o conftest.obj
1974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1975 (eval $ac_compile) 2>&5
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }; then
1979 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1982 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1987 echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1990 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1991 See \`config.log' for more details." >&5
1992 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1993 See \`config.log' for more details." >&2;}
1994 { (exit 1); exit 1; }; }
1997 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1999 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2000 echo "${ECHO_T}$ac_cv_objext" >&6
2001 OBJEXT=$ac_cv_objext
2003 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2004 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2005 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 cat >conftest.$ac_ext <<_ACEOF
2011 cat confdefs.h >>conftest.$ac_ext
2012 cat >>conftest.$ac_ext <<_ACEOF
2013 /* end confdefs.h. */
2026 rm -f conftest.$ac_objext
2027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028 (eval $ac_compile) 2>conftest.er1
2030 grep -v '^ *+' conftest.er1 >conftest.err
2032 cat conftest.err >&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); } &&
2035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; } &&
2041 { ac_try='test -s conftest.$ac_objext'
2042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; }; then
2049 echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2055 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2058 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2059 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2060 GCC=`test $ac_compiler_gnu = yes && echo yes`
2061 ac_test_CFLAGS=${CFLAGS+set}
2062 ac_save_CFLAGS=$CFLAGS
2064 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2065 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2066 if test "${ac_cv_prog_cc_g+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 cat >conftest.$ac_ext <<_ACEOF
2072 cat confdefs.h >>conftest.$ac_ext
2073 cat >>conftest.$ac_ext <<_ACEOF
2074 /* end confdefs.h. */
2084 rm -f conftest.$ac_objext
2085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086 (eval $ac_compile) 2>conftest.er1
2088 grep -v '^ *+' conftest.er1 >conftest.err
2090 cat conftest.err >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); } &&
2093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }; } &&
2099 { ac_try='test -s conftest.$ac_objext'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; }; then
2107 echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2114 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2115 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2116 if test "$ac_test_CFLAGS" = set; then
2117 CFLAGS=$ac_save_CFLAGS
2118 elif test $ac_cv_prog_cc_g = yes; then
2119 if test "$GCC" = yes; then
2125 if test "$GCC" = yes; then
2131 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2132 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2133 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 ac_cv_prog_cc_stdc=no
2138 cat >conftest.$ac_ext <<_ACEOF
2141 cat confdefs.h >>conftest.$ac_ext
2142 cat >>conftest.$ac_ext <<_ACEOF
2143 /* end confdefs.h. */
2146 #include <sys/types.h>
2147 #include <sys/stat.h>
2148 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2149 struct buf { int x; };
2150 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2151 static char *e (p, i)
2157 static char *f (char * (*g) (char **, int), char **p, ...)
2162 s = g (p, va_arg (v,int));
2167 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2168 function prototypes and stuff, but not '\xHH' hex character constants.
2169 These don't provoke an error unfortunately, instead are silently treated
2170 as 'x'. The following induces an error, until -std1 is added to get
2171 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2172 array size at least. It's necessary to write '\x00'==0 to get something
2173 that's true only with -std1. */
2174 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2176 int test (int i, double x);
2177 struct s1 {int (*f) (int a);};
2178 struct s2 {int (*f) (double a);};
2179 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2185 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2190 # Don't try gcc -ansi; that turns off useful extensions and
2191 # breaks some systems' header files.
2192 # AIX -qlanglvl=ansi
2193 # Ultrix and OSF/1 -std1
2194 # HP-UX 10.20 and later -Ae
2195 # HP-UX older versions -Aa -D_HPUX_SOURCE
2196 # SVR4 -Xc -D__EXTENSIONS__
2197 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2199 CC="$ac_save_CC $ac_arg"
2200 rm -f conftest.$ac_objext
2201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202 (eval $ac_compile) 2>conftest.er1
2204 grep -v '^ *+' conftest.er1 >conftest.err
2206 cat conftest.err >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); } &&
2209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; } &&
2215 { ac_try='test -s conftest.$ac_objext'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2221 ac_cv_prog_cc_stdc=$ac_arg
2224 echo "$as_me: failed program was:" >&5
2225 sed 's/^/| /' conftest.$ac_ext >&5
2228 rm -f conftest.err conftest.$ac_objext
2230 rm -f conftest.$ac_ext conftest.$ac_objext
2235 case "x$ac_cv_prog_cc_stdc" in
2237 echo "$as_me:$LINENO: result: none needed" >&5
2238 echo "${ECHO_T}none needed" >&6 ;;
2240 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2241 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2242 CC="$CC $ac_cv_prog_cc_stdc" ;;
2245 # Some people use a C++ compiler to compile C. Since we use `exit',
2246 # in C++ we need to declare it. In case someone uses the same compiler
2247 # for both compiling C and C++ we need to have the C++ compiler decide
2248 # the declaration of exit, since it's the most demanding environment.
2249 cat >conftest.$ac_ext <<_ACEOF
2254 rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>conftest.er1
2258 grep -v '^ *+' conftest.er1 >conftest.err
2260 cat conftest.err >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); } &&
2263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; } &&
2269 { ac_try='test -s conftest.$ac_objext'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2275 for ac_declaration in \
2277 'extern "C" void std::exit (int) throw (); using std::exit;' \
2278 'extern "C" void std::exit (int); using std::exit;' \
2279 'extern "C" void exit (int) throw ();' \
2280 'extern "C" void exit (int);' \
2283 cat >conftest.$ac_ext <<_ACEOF
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h. */
2299 rm -f conftest.$ac_objext
2300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2301 (eval $ac_compile) 2>conftest.er1
2303 grep -v '^ *+' conftest.er1 >conftest.err
2305 cat conftest.err >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); } &&
2308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; } &&
2314 { ac_try='test -s conftest.$ac_objext'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; }; then
2322 echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328 cat >conftest.$ac_ext <<_ACEOF
2331 cat confdefs.h >>conftest.$ac_ext
2332 cat >>conftest.$ac_ext <<_ACEOF
2333 /* end confdefs.h. */
2343 rm -f conftest.$ac_objext
2344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345 (eval $ac_compile) 2>conftest.er1
2347 grep -v '^ *+' conftest.er1 >conftest.err
2349 cat conftest.err >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } &&
2352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; } &&
2358 { ac_try='test -s conftest.$ac_objext'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2366 echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2373 if test -n "$ac_declaration"; then
2374 echo '#ifdef __cplusplus' >>confdefs.h
2375 echo $ac_declaration >>confdefs.h
2376 echo '#endif' >>confdefs.h
2380 echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2386 ac_cpp='$CPP $CPPFLAGS'
2387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392 ac_cpp='$CXXCPP $CPPFLAGS'
2393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2396 if test -n "$ac_tool_prefix"; then
2397 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2400 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2401 echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2403 if test "${ac_cv_prog_CXX+set}" = set; then
2404 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 if test -n "$CXX"; then
2407 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 if test -n "$CXX"; then
2427 echo "$as_me:$LINENO: result: $CXX" >&5
2428 echo "${ECHO_T}$CXX" >&6
2430 echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6
2434 test -n "$CXX" && break
2437 if test -z "$CXX"; then
2439 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2441 # Extract the first word of "$ac_prog", so it can be a program name with args.
2442 set dummy $ac_prog; ac_word=$2
2443 echo "$as_me:$LINENO: checking for $ac_word" >&5
2444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2445 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 if test -n "$ac_ct_CXX"; then
2449 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2458 ac_cv_prog_ac_ct_CXX="$ac_prog"
2459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2468 if test -n "$ac_ct_CXX"; then
2469 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2470 echo "${ECHO_T}$ac_ct_CXX" >&6
2472 echo "$as_me:$LINENO: result: no" >&5
2473 echo "${ECHO_T}no" >&6
2476 test -n "$ac_ct_CXX" && break
2478 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2484 # Provide some information about the compiler.
2485 echo "$as_me:$LINENO:" \
2486 "checking for C++ compiler version" >&5
2487 ac_compiler=`set X $ac_compile; echo $2`
2488 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2489 (eval $ac_compiler --version </dev/null >&5) 2>&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }
2493 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2494 (eval $ac_compiler -v </dev/null >&5) 2>&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }
2498 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2499 (eval $ac_compiler -V </dev/null >&5) 2>&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }
2504 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2505 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2506 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 cat >conftest.$ac_ext <<_ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529 (eval $ac_compile) 2>conftest.er1
2531 grep -v '^ *+' conftest.er1 >conftest.err
2533 cat conftest.err >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } &&
2536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2556 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2559 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2560 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2561 GXX=`test $ac_compiler_gnu = yes && echo yes`
2562 ac_test_CXXFLAGS=${CXXFLAGS+set}
2563 ac_save_CXXFLAGS=$CXXFLAGS
2565 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2566 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2567 if test "${ac_cv_prog_cxx_g+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 cat >conftest.$ac_ext <<_ACEOF
2573 cat confdefs.h >>conftest.$ac_ext
2574 cat >>conftest.$ac_ext <<_ACEOF
2575 /* end confdefs.h. */
2585 rm -f conftest.$ac_objext
2586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587 (eval $ac_compile) 2>conftest.er1
2589 grep -v '^ *+' conftest.er1 >conftest.err
2591 cat conftest.err >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); } &&
2594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; } &&
2600 { ac_try='test -s conftest.$ac_objext'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2606 ac_cv_prog_cxx_g=yes
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2615 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2616 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2617 if test "$ac_test_CXXFLAGS" = set; then
2618 CXXFLAGS=$ac_save_CXXFLAGS
2619 elif test $ac_cv_prog_cxx_g = yes; then
2620 if test "$GXX" = yes; then
2626 if test "$GXX" = yes; then
2632 for ac_declaration in \
2634 'extern "C" void std::exit (int) throw (); using std::exit;' \
2635 'extern "C" void std::exit (int); using std::exit;' \
2636 'extern "C" void exit (int) throw ();' \
2637 'extern "C" void exit (int);' \
2640 cat >conftest.$ac_ext <<_ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2656 rm -f conftest.$ac_objext
2657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658 (eval $ac_compile) 2>conftest.er1
2660 grep -v '^ *+' conftest.er1 >conftest.err
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } &&
2665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 cat >conftest.$ac_ext <<_ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2700 rm -f conftest.$ac_objext
2701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702 (eval $ac_compile) 2>conftest.er1
2704 grep -v '^ *+' conftest.er1 >conftest.err
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; } &&
2715 { ac_try='test -s conftest.$ac_objext'
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; }; then
2723 echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730 if test -n "$ac_declaration"; then
2731 echo '#ifdef __cplusplus' >>confdefs.h
2732 echo $ac_declaration >>confdefs.h
2733 echo '#endif' >>confdefs.h
2737 ac_cpp='$CPP $CPPFLAGS'
2738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743 ac_cpp='$CPP $CPPFLAGS'
2744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2748 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2749 # On Suns, sometimes $CPP names a directory.
2750 if test -n "$CPP" && test -d "$CPP"; then
2753 if test -z "$CPP"; then
2754 if test "${ac_cv_prog_CPP+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 # Double quotes because CPP needs to be expanded
2758 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2761 for ac_c_preproc_warn_flag in '' yes
2763 # Use a header file that comes with gcc, so configuring glibc
2764 # with a fresh cross-compiler works.
2765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2766 # <limits.h> exists even on freestanding compilers.
2767 # On the NeXT, cc -E runs the code through the compiler's parser,
2768 # not just through cpp. "Syntax error" is here to catch this case.
2769 cat >conftest.$ac_ext <<_ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2776 # include <limits.h>
2778 # include <assert.h>
2782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2785 grep -v '^ *+' conftest.er1 >conftest.err
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } >/dev/null; then
2790 if test -s conftest.err; then
2791 ac_cpp_err=$ac_c_preproc_warn_flag
2792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2799 if test -z "$ac_cpp_err"; then
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2805 # Broken: fails on valid input.
2808 rm -f conftest.err conftest.$ac_ext
2810 # OK, works on sane cases. Now check whether non-existent headers
2811 # can be detected and how.
2812 cat >conftest.$ac_ext <<_ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2818 #include <ac_nonexistent.h>
2820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2823 grep -v '^ *+' conftest.er1 >conftest.err
2825 cat conftest.err >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } >/dev/null; then
2828 if test -s conftest.err; then
2829 ac_cpp_err=$ac_c_preproc_warn_flag
2830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2837 if test -z "$ac_cpp_err"; then
2838 # Broken: success on invalid input.
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2844 # Passes both tests.
2848 rm -f conftest.err conftest.$ac_ext
2851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2852 rm -f conftest.err conftest.$ac_ext
2853 if $ac_preproc_ok; then
2865 echo "$as_me:$LINENO: result: $CPP" >&5
2866 echo "${ECHO_T}$CPP" >&6
2868 for ac_c_preproc_warn_flag in '' yes
2870 # Use a header file that comes with gcc, so configuring glibc
2871 # with a fresh cross-compiler works.
2872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2873 # <limits.h> exists even on freestanding compilers.
2874 # On the NeXT, cc -E runs the code through the compiler's parser,
2875 # not just through cpp. "Syntax error" is here to catch this case.
2876 cat >conftest.$ac_ext <<_ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2883 # include <limits.h>
2885 # include <assert.h>
2889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2892 grep -v '^ *+' conftest.er1 >conftest.err
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } >/dev/null; then
2897 if test -s conftest.err; then
2898 ac_cpp_err=$ac_c_preproc_warn_flag
2899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2906 if test -z "$ac_cpp_err"; then
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2912 # Broken: fails on valid input.
2915 rm -f conftest.err conftest.$ac_ext
2917 # OK, works on sane cases. Now check whether non-existent headers
2918 # can be detected and how.
2919 cat >conftest.$ac_ext <<_ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2925 #include <ac_nonexistent.h>
2927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2930 grep -v '^ *+' conftest.er1 >conftest.err
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } >/dev/null; then
2935 if test -s conftest.err; then
2936 ac_cpp_err=$ac_c_preproc_warn_flag
2937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2944 if test -z "$ac_cpp_err"; then
2945 # Broken: success on invalid input.
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 # Passes both tests.
2955 rm -f conftest.err conftest.$ac_ext
2958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2959 rm -f conftest.err conftest.$ac_ext
2960 if $ac_preproc_ok; then
2963 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2964 See \`config.log' for more details." >&5
2965 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2966 See \`config.log' for more details." >&2;}
2967 { (exit 1); exit 1; }; }
2971 ac_cpp='$CPP $CPPFLAGS'
2972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2976 # Find a good install program. We prefer a C program (faster),
2977 # so one script is as good as another. But avoid the broken or
2978 # incompatible versions:
2979 # SysV /etc/install, /usr/sbin/install
2980 # SunOS /usr/etc/install
2981 # IRIX /sbin/install
2983 # AmigaOS /C/install, which installs bootblocks on floppy discs
2984 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2985 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2986 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2987 # OS/2's system install, which has a completely different semantic
2988 # ./install, which can be erroneously created by make from ./install.sh.
2989 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2990 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2991 if test -z "$INSTALL"; then
2992 if test "${ac_cv_path_install+set}" = set; then
2993 echo $ECHO_N "(cached) $ECHO_C" >&6
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 test -z "$as_dir" && as_dir=.
3000 # Account for people who put trailing slashes in PATH elements.
3002 ./ | .// | /cC/* | \
3003 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3004 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3007 # OSF1 and SCO ODT 3.0 have their own names for install.
3008 # Don't use installbsd from OSF since it installs stuff as root
3010 for ac_prog in ginstall scoinst install; do
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3013 if test $ac_prog = install &&
3014 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3015 # AIX install. It has an incompatible calling convention.
3017 elif test $ac_prog = install &&
3018 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3019 # program-specific install script used by HP pwplus--don't use.
3022 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3034 if test "${ac_cv_path_install+set}" = set; then
3035 INSTALL=$ac_cv_path_install
3037 # As a last resort, use the slow shell script. We don't cache a
3038 # path for INSTALL within a source directory, because that will
3039 # break other packages using the cache if that directory is
3040 # removed, or if the path is relative.
3041 INSTALL=$ac_install_sh
3044 echo "$as_me:$LINENO: result: $INSTALL" >&5
3045 echo "${ECHO_T}$INSTALL" >&6
3047 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3048 # It thinks the first close brace ends the variable substitution.
3049 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3051 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3053 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3055 for ac_prog in gawk mawk nawk awk
3057 # Extract the first word of "$ac_prog", so it can be a program name with args.
3058 set dummy $ac_prog; ac_word=$2
3059 echo "$as_me:$LINENO: checking for $ac_word" >&5
3060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3061 if test "${ac_cv_prog_AWK+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 if test -n "$AWK"; then
3065 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074 ac_cv_prog_AWK="$ac_prog"
3075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 if test -n "$AWK"; then
3085 echo "$as_me:$LINENO: result: $AWK" >&5
3086 echo "${ECHO_T}$AWK" >&6
3088 echo "$as_me:$LINENO: result: no" >&5
3089 echo "${ECHO_T}no" >&6
3092 test -n "$AWK" && break
3097 ac_cpp='$CPP $CPPFLAGS'
3098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103 if test -z "$orig_CXXFLAGS"; then
3104 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
4324 support_inheritpixmap=yes
4327 support_keepscrolling=yes
4328 support_selectionscrolling=yes
4329 support_mousewheel=yes
4330 support_mouseslipwheel=yes
4334 support_text_blink=yes
4335 support_pointer_blank=yes
4336 support_scroll_rxvt=yes
4337 support_scroll_next=yes
4338 support_scroll_xterm=yes
4339 support_scroll_plain=yes
4344 support_combining=yes
4345 support_8bitctrls=no
4346 support_iso14755=yes
4352 if test "x$enable_shared" = xyes; then
4354 cat >>confdefs.h <<\_ACEOF
4362 # Check whether --enable-everything or --disable-everything was given.
4363 if test "${enable_everything+set}" = set; then
4364 enableval="$enable_everything"
4366 if test x$enableval = xno; then
4369 support_inheritpixmap=no
4372 support_keepscrolling=no
4373 support_selectionscrolling=no
4375 support_mousewheel=no
4376 support_mouseslipwheel=no
4377 support_text_blink=no
4378 support_pointer_blank=no
4379 support_scroll_rxvt=no
4380 support_scroll_next=no
4381 support_scroll_xterm=no
4382 support_scroll_plain=no
4389 support_combining=no
4390 support_8bitctrls=no
4396 if test x$enableval = xyes; then
4399 support_inheritpixmap=yes
4402 support_keepscrolling=yes
4403 support_selectionscrolling=yes
4405 support_mousewheel=yes
4406 support_mouseslipwheel=yes
4407 support_text_blink=yes
4408 support_pointer_blank=yes
4409 support_scroll_rxvt=yes
4410 support_scroll_next=yes
4411 support_scroll_xterm=yes
4412 support_scroll_plain=yes
4418 support_unicode3=yes
4419 support_combining=yes
4420 #support_8bitctrls=yes
4421 support_iso14755=yes
4429 # Check whether --enable-unicode3 or --disable-unicode3 was given.
4430 if test "${enable_unicode3+set}" = set; then
4431 enableval="$enable_unicode3"
4432 if test x$enableval = xyes -o x$enableval = xno; then
4433 support_unicode3=$enableval
4437 # Check whether --enable-combining or --disable-combining was given.
4438 if test "${enable_combining+set}" = set; then
4439 enableval="$enable_combining"
4440 if test x$enableval = xyes -o x$enableval = xno; then
4441 support_combining=$enableval
4445 # Check whether --enable-xft or --disable-xft was given.
4446 if test "${enable_xft+set}" = set; then
4447 enableval="$enable_xft"
4448 if test x$enableval = xyes -o x$enableval = xno; then
4449 support_xft=$enableval
4453 # Check whether --enable-font-styles or --disable-font-styles was given.
4454 if test "${enable_font_styles+set}" = set; then
4455 enableval="$enable_font_styles"
4456 if test x$enableval = xyes -o x$enableval = xno; then
4457 support_styles=$enableval
4461 # Check whether --enable-utmp or --disable-utmp was given.
4462 if test "${enable_utmp+set}" = set; then
4463 enableval="$enable_utmp"
4464 if test x$enableval = xyes -o x$enableval = xno; then
4465 support_utmp=$enableval
4469 # Check whether --enable-wtmp or --disable-wtmp was given.
4470 if test "${enable_wtmp+set}" = set; then
4471 enableval="$enable_wtmp"
4472 if test x$enableval = xyes -o x$enableval = xno; then
4473 support_wtmp=$enableval
4477 # Check whether --enable-lastlog or --disable-lastlog was given.
4478 if test "${enable_lastlog+set}" = set; then
4479 enableval="$enable_lastlog"
4480 if test x$enableval = xyes -o x$enableval = xno; then
4481 support_lastlog=$enableval
4485 # Check whether --enable-xpm-background or --disable-xpm-background was given.
4486 if test "${enable_xpm_background+set}" = set; then
4487 enableval="$enable_xpm_background"
4488 if test x$enableval = xyes -o x$enableval = xno; then
4489 support_xpm=$enableval
4493 # Check whether --enable-transparency or --disable-transparency was given.
4494 if test "${enable_transparency+set}" = set; then
4495 enableval="$enable_transparency"
4496 if test x$enableval = xyes -o x$enableval = xno; then
4497 support_inheritpixmap=$enableval
4501 # Check whether --enable-tinting or --disable-tinting was given.
4502 if test "${enable_tinting+set}" = set; then
4503 enableval="$enable_tinting"
4504 if test x$enableval = xyes -o x$enableval = xno; then
4505 support_tinting=$enableval
4509 # Check whether --enable-fading or --disable-fading was given.
4510 if test "${enable_fading+set}" = set; then
4511 enableval="$enable_fading"
4512 if test x$enableval = xyes -o x$enableval = xno; then
4513 support_fading=$enableval
4517 # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
4518 if test "${enable_rxvt_scroll+set}" = set; then
4519 enableval="$enable_rxvt_scroll"
4520 if test x$enableval = xyes -o x$enableval = xno; then
4521 support_scroll_rxvt=$enableval
4525 # Check whether --enable-next-scroll or --disable-next-scroll was given.
4526 if test "${enable_next_scroll+set}" = set; then
4527 enableval="$enable_next_scroll"
4528 if test x$enableval = xyes -o x$enableval = xno; then
4529 support_scroll_next=$enableval
4533 # Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
4534 if test "${enable_xterm_scroll+set}" = set; then
4535 enableval="$enable_xterm_scroll"
4536 if test x$enableval = xyes -o x$enableval = xno; then
4537 support_scroll_xterm=$enableval
4541 # Check whether --enable-perl or --disable-perl was given.
4542 if test "${enable_perl+set}" = set; then
4543 enableval="$enable_perl"
4544 if test x$enableval = xyes -o x$enableval = xno; then
4545 support_perl=$enableval
4549 # Check whether --enable-plain-scroll or --disable-plain-scroll was given.
4550 if test "${enable_plain_scroll+set}" = set; then
4551 enableval="$enable_plain_scroll"
4552 if test x$enableval = xyes -o x$enableval = xno; then
4553 support_scroll_plain=$enableval
4559 # Check whether --with-codesets or --without-codesets was given.
4560 if test "${with_codesets+set}" = set; then
4561 withval="$with_codesets"
4565 # Check whether --enable-xim or --disable-xim was given.
4566 if test "${enable_xim+set}" = set; then
4567 enableval="$enable_xim"
4568 if test x$enableval = xyes -o x$enableval = xno; then
4569 support_xim=$enableval
4573 # Check whether --enable-ttygid or --disable-ttygid was given.
4574 if test "${enable_ttygid+set}" = set; then
4575 enableval="$enable_ttygid"
4576 if test x$enableval = xyes; then
4578 cat >>confdefs.h <<\_ACEOF
4579 #define TTY_GID_SUPPORT 1
4585 # Check whether --enable-backspace-key or --disable-backspace-key was given.
4586 if test "${enable_backspace_key+set}" = set; then
4587 enableval="$enable_backspace_key"
4588 if test x$enableval = xno; then
4590 cat >>confdefs.h <<\_ACEOF
4591 #define NO_BACKSPACE_KEY 1
4597 # Check whether --enable-delete-key or --disable-delete-key was given.
4598 if test "${enable_delete_key+set}" = set; then
4599 enableval="$enable_delete_key"
4600 if test x$enableval = xno; then
4602 cat >>confdefs.h <<\_ACEOF
4603 #define NO_DELETE_KEY 1
4609 # Check whether --enable-resources or --disable-resources was given.
4610 if test "${enable_resources+set}" = set; then
4611 enableval="$enable_resources"
4612 if test x$enableval = xno; then
4614 cat >>confdefs.h <<\_ACEOF
4615 #define NO_RESOURCES 1
4621 # Check whether --enable-8bitctrls or --disable-8bitctrls was given.
4622 if test "${enable_8bitctrls+set}" = set; then
4623 enableval="$enable_8bitctrls"
4624 if test x$enableval = xyes -o x$enableval = xno; then
4625 support_8bitctrls=$enableval
4630 # Check whether --enable-fallback or --disable-fallback was given.
4631 if test "${enable_fallback+set}" = set; then
4632 enableval="$enable_fallback"
4634 test x$enableval = xyes && enableval=Rxvt
4635 test x$enableval = xno && enableval=
4636 RESFALLBACK="$enableval"
4640 if test x$RESFALLBACK != x; then
4642 cat >>confdefs.h <<_ACEOF
4643 #define RESFALLBACK "$RESFALLBACK"
4650 # Check whether --with-res-name or --without-res-name was given.
4651 if test "${with_res_name+set}" = set; then
4652 withval="$with_res_name"
4656 cat >>confdefs.h <<_ACEOF
4657 #define RESNAME "$RESNAME"
4663 # Check whether --with-res-class or --without-res-class was given.
4664 if test "${with_res_class+set}" = set; then
4665 withval="$with_res_class"
4669 cat >>confdefs.h <<_ACEOF
4670 #define RESCLASS "$RESCLASS"
4676 # Check whether --with-name or --without-name was given.
4677 if test "${with_name+set}" = set; then
4678 withval="$with_name"
4682 cat >>confdefs.h <<_ACEOF
4683 #define RXVTNAME "$RXVTNAME"
4687 RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4690 # Check whether --enable-swapscreen or --disable-swapscreen was given.
4691 if test "${enable_swapscreen+set}" = set; then
4692 enableval="$enable_swapscreen"
4693 if test x$enableval = xno; then
4695 cat >>confdefs.h <<\_ACEOF
4696 #define NO_SECONDARY_SCREEN 1
4702 # Check whether --enable-iso14755 or --disable-iso14755 was given.
4703 if test "${enable_iso14755+set}" = set; then
4704 enableval="$enable_iso14755"
4705 if test x$enableval = xyes -o x$enableval = xno; then
4706 support_iso14755=$enableval
4710 # Check whether --enable-frills or --disable-frills was given.
4711 if test "${enable_frills+set}" = set; then
4712 enableval="$enable_frills"
4713 if test x$enableval = xyes -o x$enableval = xno; then
4714 support_frills=$enableval
4718 # Check whether --enable-24bit or --disable-24bit was given.
4719 if test "${enable_24bit+set}" = set; then
4720 enableval="$enable_24bit"
4721 if test x$enableval = xyes -o x$enableval = xno; then
4722 support_24bit=$enableval
4726 # Check whether --enable-keepscrolling or --disable-keepscrolling was given.
4727 if test "${enable_keepscrolling+set}" = set; then
4728 enableval="$enable_keepscrolling"
4729 if test x$enableval = xyes -o x$enableval = xno; then
4730 support_keepscrolling=$enableval
4734 # Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
4735 if test "${enable_selectionscrolling+set}" = set; then
4736 enableval="$enable_selectionscrolling"
4737 if test x$enableval = xyes -o x$enableval = xno; then
4738 support_selectionscrolling=$enableval
4742 # Check whether --enable-mousewheel or --disable-mousewheel was given.
4743 if test "${enable_mousewheel+set}" = set; then
4744 enableval="$enable_mousewheel"
4745 if test x$enableval = xyes -o x$enableval = xno; then
4746 support_mousewheel=$enableval
4750 # Check whether --enable-slipwheeling or --disable-slipwheeling was given.
4751 if test "${enable_slipwheeling+set}" = set; then
4752 enableval="$enable_slipwheeling"
4753 if test x$enableval = xyes -o x$enableval = xno; then
4754 support_mouseslipwheel=$enableval
4758 # Check whether --enable-dmalloc or --disable-dmalloc was given.
4759 if test "${enable_dmalloc+set}" = set; then
4760 enableval="$enable_dmalloc"
4761 if test x$enableval = xyes; then
4763 DEBUG=-DDEBUG_MALLOC
4764 DLIB="-L/usr/local/lib -ldmalloc"
4765 DINCLUDE=-I/usr/local/include
4769 # Check whether --enable-dlmalloc or --disable-dlmalloc was given.
4770 if test "${enable_dlmalloc+set}" = set; then
4771 enableval="$enable_dlmalloc"
4772 if test x$enableval = xyes; then
4775 DLIB="-L/usr/local/lib -ldlmalloc"
4780 # Check whether --enable-smart-resize or --disable-smart-resize was given.
4781 if test "${enable_smart_resize+set}" = set; then
4782 enableval="$enable_smart_resize"
4783 if test x$enableval = xyes; then
4785 cat >>confdefs.h <<\_ACEOF
4786 #define SMART_RESIZE 1
4792 # Check whether --enable-text-blink or --disable-text-blink was given.
4793 if test "${enable_text_blink+set}" = set; then
4794 enableval="$enable_text_blink"
4795 if test x$enableval = xyes -o x$enableval = xno; then
4796 support_text_blink=$enableval
4800 # Check whether --enable-pointer-blank or --disable-pointer-blank was given.
4801 if test "${enable_pointer_blank+set}" = set; then
4802 enableval="$enable_pointer_blank"
4803 if test x$enableval = xyes -o x$enableval = xno; then
4804 support_pointer_blank=$enableval
4809 # Check whether --with-term or --without-term was given.
4810 if test "${with_term+set}" = set; then
4811 withval="$with_term"
4812 if test x$withval != x; then
4814 cat >>confdefs.h <<_ACEOF
4815 #define TERMENV "$withval"
4822 # Check whether --with-terminfo or --without-terminfo was given.
4823 if test "${with_terminfo+set}" = set; then
4824 withval="$with_terminfo"
4825 if test x$withval != x; then
4827 cat >>confdefs.h <<_ACEOF
4828 #define RXVT_TERMINFO "$withval"
4836 cat >>confdefs.h <<\_ACEOF
4837 #define PROTOTYPES 1
4841 # Extract the first word of "mv", so it can be a program name with args.
4842 set dummy mv; ac_word=$2
4843 echo "$as_me:$LINENO: checking for $ac_word" >&5
4844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4845 if test "${ac_cv_path_MV+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4873 if test -n "$MV"; then
4874 echo "$as_me:$LINENO: result: $MV" >&5
4875 echo "${ECHO_T}$MV" >&6
4877 echo "$as_me:$LINENO: result: no" >&5
4878 echo "${ECHO_T}no" >&6
4881 # Extract the first word of "rm", so it can be a program name with args.
4882 set dummy rm; ac_word=$2
4883 echo "$as_me:$LINENO: checking for $ac_word" >&5
4884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4885 if test "${ac_cv_path_RM+set}" = set; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4900 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4913 if test -n "$RM"; then
4914 echo "$as_me:$LINENO: result: $RM" >&5
4915 echo "${ECHO_T}$RM" >&6
4917 echo "$as_me:$LINENO: result: no" >&5
4918 echo "${ECHO_T}no" >&6
4921 # Extract the first word of "cp", so it can be a program name with args.
4922 set dummy cp; ac_word=$2
4923 echo "$as_me:$LINENO: checking for $ac_word" >&5
4924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4925 if test "${ac_cv_path_CP+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4940 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4953 if test -n "$CP"; then
4954 echo "$as_me:$LINENO: result: $CP" >&5
4955 echo "${ECHO_T}$CP" >&6
4957 echo "$as_me:$LINENO: result: no" >&5
4958 echo "${ECHO_T}no" >&6
4961 # Extract the first word of "ln", so it can be a program name with args.
4962 set dummy ln; ac_word=$2
4963 echo "$as_me:$LINENO: checking for $ac_word" >&5
4964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4965 if test "${ac_cv_path_LN+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4980 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
4993 if test -n "$LN"; then
4994 echo "$as_me:$LINENO: result: $LN" >&5
4995 echo "${ECHO_T}$LN" >&6
4997 echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6
5001 # Extract the first word of "sed", so it can be a program name with args.
5002 set dummy sed; ac_word=$2
5003 echo "$as_me:$LINENO: checking for $ac_word" >&5
5004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5005 if test "${ac_cv_path_SED+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5033 if test -n "$SED"; then
5034 echo "$as_me:$LINENO: result: $SED" >&5
5035 echo "${ECHO_T}$SED" >&6
5037 echo "$as_me:$LINENO: result: no" >&5
5038 echo "${ECHO_T}no" >&6
5041 # Extract the first word of "echo", so it can be a program name with args.
5042 set dummy echo; ac_word=$2
5043 echo "$as_me:$LINENO: checking for $ac_word" >&5
5044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5045 if test "${ac_cv_path_ECHO+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5060 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5071 ECHO=$ac_cv_path_ECHO
5073 if test -n "$ECHO"; then
5074 echo "$as_me:$LINENO: result: $ECHO" >&5
5075 echo "${ECHO_T}$ECHO" >&6
5077 echo "$as_me:$LINENO: result: no" >&5
5078 echo "${ECHO_T}no" >&6
5081 # Extract the first word of "cmp", so it can be a program name with args.
5082 set dummy cmp; ac_word=$2
5083 echo "$as_me:$LINENO: checking for $ac_word" >&5
5084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5085 if test "${ac_cv_path_CMP+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5100 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5113 if test -n "$CMP"; then
5114 echo "$as_me:$LINENO: result: $CMP" >&5
5115 echo "${ECHO_T}$CMP" >&6
5117 echo "$as_me:$LINENO: result: no" >&5
5118 echo "${ECHO_T}no" >&6
5121 # Extract the first word of "tbl", so it can be a program name with args.
5122 set dummy tbl; ac_word=$2
5123 echo "$as_me:$LINENO: checking for $ac_word" >&5
5124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5125 if test "${ac_cv_path_TBL+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5140 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 if test -n "$TBL"; then
5153 echo "$as_me:$LINENO: result: $TBL" >&5
5154 echo "${ECHO_T}$TBL" >&6
5156 echo "$as_me:$LINENO: result: no" >&5
5157 echo "${ECHO_T}no" >&6
5160 # Extract the first word of "tic", so it can be a program name with args.
5161 set dummy tic; ac_word=$2
5162 echo "$as_me:$LINENO: checking for $ac_word" >&5
5163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5164 if test "${ac_cv_path_TIC+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5179 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 if test -n "$TIC"; then
5192 echo "$as_me:$LINENO: result: $TIC" >&5
5193 echo "${ECHO_T}$TIC" >&6
5195 echo "$as_me:$LINENO: result: no" >&5
5196 echo "${ECHO_T}no" >&6
5203 if test "x$ac_path_x_has_been_run" != xyes; then
5204 echo "$as_me:$LINENO: checking for X" >&5
5205 echo $ECHO_N "checking for X... $ECHO_C" >&6
5207 ac_path_x_has_been_run=yes
5209 # Check whether --with-x or --without-x was given.
5210 if test "${with_x+set}" = set; then
5214 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5215 if test "x$with_x" = xno; then
5216 # The user explicitly disabled X.
5219 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5220 # Both variables are already set.
5223 if test "${ac_cv_have_x+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 # One or both of the vars are not set, and there is no cached value.
5227 ac_x_includes=no ac_x_libraries=no
5229 if mkdir conftest.dir; then
5231 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5232 cat >Imakefile <<'_ACEOF'
5234 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5236 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5237 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5238 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5239 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5240 for ac_extension in a so sl; do
5241 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5242 test -f $ac_im_libdir/libX11.$ac_extension; then
5243 ac_im_usrlibdir=$ac_im_libdir; break
5246 # Screen out bogus values from the imake configuration. They are
5247 # bogus both because they are the default anyway, and because
5248 # using them would break gcc on systems where it needs fixed includes.
5249 case $ac_im_incroot in
5251 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5253 case $ac_im_usrlibdir in
5255 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5262 # Standard set of common directories for X headers.
5263 # Check X11 before X11Rn because it is often a symlink to the current release.
5275 /usr/local/X11/include
5276 /usr/local/X11R6/include
5277 /usr/local/X11R5/include
5278 /usr/local/X11R4/include
5280 /usr/local/include/X11
5281 /usr/local/include/X11R6
5282 /usr/local/include/X11R5
5283 /usr/local/include/X11R4
5287 /usr/XFree86/include/X11
5291 /usr/unsupported/include
5293 /usr/local/x11r5/include
5294 /usr/lpp/Xamples/include
5296 /usr/openwin/include
5297 /usr/openwin/share/include'
5299 if test "$ac_x_includes" = no; then
5300 # Guess where to find include files, by looking for a specified header file.
5301 # First, try using that file with no special directory specified.
5302 cat >conftest.$ac_ext <<_ACEOF
5305 cat confdefs.h >>conftest.$ac_ext
5306 cat >>conftest.$ac_ext <<_ACEOF
5307 /* end confdefs.h. */
5308 #include <X11/Xlib.h>
5310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5313 grep -v '^ *+' conftest.er1 >conftest.err
5315 cat conftest.err >&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } >/dev/null; then
5318 if test -s conftest.err; then
5319 ac_cpp_err=$ac_cxx_preproc_warn_flag
5320 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5327 if test -z "$ac_cpp_err"; then
5328 # We can compile using X headers with no special include directory.
5331 echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5334 for ac_dir in $ac_x_header_dirs; do
5335 if test -r "$ac_dir/X11/Xlib.h"; then
5336 ac_x_includes=$ac_dir
5341 rm -f conftest.err conftest.$ac_ext
5342 fi # $ac_x_includes = no
5344 if test "$ac_x_libraries" = no; then
5345 # Check for the libraries.
5346 # See if we find them without any special options.
5347 # Don't add to $LIBS permanently.
5350 cat >conftest.$ac_ext <<_ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5356 #include <X11/Xlib.h>
5365 rm -f conftest.$ac_objext conftest$ac_exeext
5366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5367 (eval $ac_link) 2>conftest.er1
5369 grep -v '^ *+' conftest.er1 >conftest.err
5371 cat conftest.err >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } &&
5374 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; } &&
5380 { ac_try='test -s conftest$ac_exeext'
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; }; then
5387 # We can link X programs with no special library path.
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5394 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5396 # Don't even attempt the hair of trying to link an X program!
5397 for ac_extension in a so sl; do
5398 if test -r $ac_dir/libX11.$ac_extension; then
5399 ac_x_libraries=$ac_dir
5405 rm -f conftest.err conftest.$ac_objext \
5406 conftest$ac_exeext conftest.$ac_ext
5407 fi # $ac_x_libraries = no
5409 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5410 # Didn't find X anywhere. Cache the known absence of X.
5411 ac_cv_have_x="have_x=no"
5413 # Record where we found X for the cache.
5414 ac_cv_have_x="have_x=yes \
5415 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5420 eval "$ac_cv_have_x"
5423 if test "$have_x" != yes; then
5424 echo "$as_me:$LINENO: result: $have_x" >&5
5425 echo "${ECHO_T}$have_x" >&6
5428 # If each of the values was on the command line, it overrides each guess.
5429 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5430 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5431 # Update the cache value to reflect the command line values.
5432 ac_cv_have_x="have_x=yes \
5433 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5434 # It might be that x_includes is empty (headers are found in the
5435 # standard search path. Then output the corresponding message
5436 ac_out_x_includes=$x_includes
5437 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
5438 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
5439 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
5443 if test "$no_x" = yes; then
5444 # Not all programs may use this symbol, but it does not hurt to define it.
5446 cat >>confdefs.h <<\_ACEOF
5447 #define X_DISPLAY_MISSING 1
5450 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5452 if test -n "$x_includes"; then
5453 X_CFLAGS="$X_CFLAGS -I$x_includes"
5456 # It would also be nice to do this for all -L options, not just this one.
5457 if test -n "$x_libraries"; then
5458 X_LIBS="$X_LIBS -L$x_libraries"
5459 # For Solaris; some versions of Sun CC require a space after -R and
5460 # others require no space. Words are not sufficient . . . .
5461 case `(uname -sr) 2>/dev/null` in
5463 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5464 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5465 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5466 cat >conftest.$ac_ext <<_ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5481 rm -f conftest.$ac_objext conftest$ac_exeext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5483 (eval $ac_link) 2>conftest.er1
5485 grep -v '^ *+' conftest.er1 >conftest.err
5487 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } &&
5490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; } &&
5496 { ac_try='test -s conftest$ac_exeext'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; }; then
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5509 rm -f conftest.err conftest.$ac_objext \
5510 conftest$ac_exeext conftest.$ac_ext
5511 if test $ac_R_nospace = yes; then
5512 echo "$as_me:$LINENO: result: no" >&5
5513 echo "${ECHO_T}no" >&6
5514 X_LIBS="$X_LIBS -R$x_libraries"
5516 LIBS="$ac_xsave_LIBS -R $x_libraries"
5517 cat >conftest.$ac_ext <<_ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5532 rm -f conftest.$ac_objext conftest$ac_exeext
5533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5534 (eval $ac_link) 2>conftest.er1
5536 grep -v '^ *+' conftest.er1 >conftest.err
5538 cat conftest.err >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } &&
5541 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; } &&
5547 { ac_try='test -s conftest$ac_exeext'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; }; then
5555 echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5560 rm -f conftest.err conftest.$ac_objext \
5561 conftest$ac_exeext conftest.$ac_ext
5562 if test $ac_R_space = yes; then
5563 echo "$as_me:$LINENO: result: yes" >&5
5564 echo "${ECHO_T}yes" >&6
5565 X_LIBS="$X_LIBS -R $x_libraries"
5567 echo "$as_me:$LINENO: result: neither works" >&5
5568 echo "${ECHO_T}neither works" >&6
5575 # Check for system-dependent libraries X programs must link with.
5576 # Do this before checking for the system-independent R6 libraries
5577 # (-lICE), since we may need -lsocket or whatever for X linking.
5579 if test "$ISC" = yes; then
5580 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5582 # Martyn Johnson says this is needed for Ultrix, if the X
5583 # libraries were built with DECnet support. And Karl Berry says
5584 # the Alpha needs dnet_stub (dnet does not exist).
5585 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5586 cat >conftest.$ac_ext <<_ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h. */
5593 /* Override any gcc2 internal prototype to avoid an error. */
5597 /* We use char because int might match the return type of a gcc2
5598 builtin and then its argument prototype would still apply. */
5599 char XOpenDisplay ();
5608 rm -f conftest.$ac_objext conftest$ac_exeext
5609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5610 (eval $ac_link) 2>conftest.er1
5612 grep -v '^ *+' conftest.er1 >conftest.err
5614 cat conftest.err >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } &&
5617 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; } &&
5623 { ac_try='test -s conftest$ac_exeext'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }; then
5631 echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.$ac_ext >&5
5634 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5635 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5636 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 ac_check_lib_save_LIBS=$LIBS
5641 cat >conftest.$ac_ext <<_ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5648 /* Override any gcc2 internal prototype to avoid an error. */
5652 /* We use char because int might match the return type of a gcc2
5653 builtin and then its argument prototype would still apply. */
5663 rm -f conftest.$ac_objext conftest$ac_exeext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5665 (eval $ac_link) 2>conftest.er1
5667 grep -v '^ *+' conftest.er1 >conftest.err
5669 cat conftest.err >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } &&
5672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } &&
5678 { ac_try='test -s conftest$ac_exeext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_cv_lib_dnet_dnet_ntoa=yes
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5689 ac_cv_lib_dnet_dnet_ntoa=no
5691 rm -f conftest.err conftest.$ac_objext \
5692 conftest$ac_exeext conftest.$ac_ext
5693 LIBS=$ac_check_lib_save_LIBS
5695 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5696 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5697 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5698 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5701 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5702 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5703 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5704 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 ac_check_lib_save_LIBS=$LIBS
5708 LIBS="-ldnet_stub $LIBS"
5709 cat >conftest.$ac_ext <<_ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5716 /* Override any gcc2 internal prototype to avoid an error. */
5720 /* We use char because int might match the return type of a gcc2
5721 builtin and then its argument prototype would still apply. */
5731 rm -f conftest.$ac_objext conftest$ac_exeext
5732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5733 (eval $ac_link) 2>conftest.er1
5735 grep -v '^ *+' conftest.er1 >conftest.err
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } &&
5740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; } &&
5746 { ac_try='test -s conftest$ac_exeext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5754 echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5757 ac_cv_lib_dnet_stub_dnet_ntoa=no
5759 rm -f conftest.err conftest.$ac_objext \
5760 conftest$ac_exeext conftest.$ac_ext
5761 LIBS=$ac_check_lib_save_LIBS
5763 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5764 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5765 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5766 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5771 rm -f conftest.err conftest.$ac_objext \
5772 conftest$ac_exeext conftest.$ac_ext
5773 LIBS="$ac_xsave_LIBS"
5775 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5776 # to get the SysV transport functions.
5777 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5779 # The nsl library prevents programs from opening the X display
5780 # on Irix 5.2, according to T.E. Dickey.
5781 # The functions gethostbyname, getservbyname, and inet_addr are
5782 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5783 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5784 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5785 if test "${ac_cv_func_gethostbyname+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 cat >conftest.$ac_ext <<_ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h. */
5794 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5796 #define gethostbyname innocuous_gethostbyname
5798 /* System header to define __stub macros and hopefully few prototypes,
5799 which can conflict with char gethostbyname (); below.
5800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5801 <limits.h> exists even on freestanding compilers. */
5804 # include <limits.h>
5806 # include <assert.h>
5809 #undef gethostbyname
5811 /* Override any gcc2 internal prototype to avoid an error. */
5816 /* We use char because int might match the return type of a gcc2
5817 builtin and then its argument prototype would still apply. */
5818 char gethostbyname ();
5819 /* The GNU C library defines this for functions which it implements
5820 to always fail with ENOSYS. Some functions are actually named
5821 something starting with __ and the normal name is an alias. */
5822 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5825 char (*f) () = gethostbyname;
5834 return f != gethostbyname;
5839 rm -f conftest.$ac_objext conftest$ac_exeext
5840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5841 (eval $ac_link) 2>conftest.er1
5843 grep -v '^ *+' conftest.er1 >conftest.err
5845 cat conftest.err >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } &&
5848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; } &&
5854 { ac_try='test -s conftest$ac_exeext'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5860 ac_cv_func_gethostbyname=yes
5862 echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5865 ac_cv_func_gethostbyname=no
5867 rm -f conftest.err conftest.$ac_objext \
5868 conftest$ac_exeext conftest.$ac_ext
5870 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5871 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5873 if test $ac_cv_func_gethostbyname = no; then
5874 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5875 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5876 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 ac_check_lib_save_LIBS=$LIBS
5881 cat >conftest.$ac_ext <<_ACEOF
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h. */
5888 /* Override any gcc2 internal prototype to avoid an error. */
5892 /* We use char because int might match the return type of a gcc2
5893 builtin and then its argument prototype would still apply. */
5894 char gethostbyname ();
5903 rm -f conftest.$ac_objext conftest$ac_exeext
5904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5905 (eval $ac_link) 2>conftest.er1
5907 grep -v '^ *+' conftest.er1 >conftest.err
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; } &&
5918 { ac_try='test -s conftest$ac_exeext'
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; }; then
5924 ac_cv_lib_nsl_gethostbyname=yes
5926 echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5929 ac_cv_lib_nsl_gethostbyname=no
5931 rm -f conftest.err conftest.$ac_objext \
5932 conftest$ac_exeext conftest.$ac_ext
5933 LIBS=$ac_check_lib_save_LIBS
5935 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5936 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5937 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5938 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5941 if test $ac_cv_lib_nsl_gethostbyname = no; then
5942 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5943 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5944 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 ac_check_lib_save_LIBS=$LIBS
5949 cat >conftest.$ac_ext <<_ACEOF
5952 cat confdefs.h >>conftest.$ac_ext
5953 cat >>conftest.$ac_ext <<_ACEOF
5954 /* end confdefs.h. */
5956 /* Override any gcc2 internal prototype to avoid an error. */
5960 /* We use char because int might match the return type of a gcc2
5961 builtin and then its argument prototype would still apply. */
5962 char gethostbyname ();
5971 rm -f conftest.$ac_objext conftest$ac_exeext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5973 (eval $ac_link) 2>conftest.er1
5975 grep -v '^ *+' conftest.er1 >conftest.err
5977 cat conftest.err >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; } &&
5986 { ac_try='test -s conftest$ac_exeext'
5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); }; }; then
5992 ac_cv_lib_bsd_gethostbyname=yes
5994 echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5997 ac_cv_lib_bsd_gethostbyname=no
5999 rm -f conftest.err conftest.$ac_objext \
6000 conftest$ac_exeext conftest.$ac_ext
6001 LIBS=$ac_check_lib_save_LIBS
6003 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6004 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6005 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6006 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6012 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6013 # socket/setsockopt and other routines are undefined under SCO ODT
6014 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6015 # on later versions), says Simon Leinen: it contains gethostby*
6016 # variants that don't use the name server (or something). -lsocket
6017 # must be given before -lnsl if both are needed. We assume that
6018 # if connect needs -lnsl, so does gethostbyname.
6019 echo "$as_me:$LINENO: checking for connect" >&5
6020 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6021 if test "${ac_cv_func_connect+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 cat >conftest.$ac_ext <<_ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6030 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6032 #define connect innocuous_connect
6034 /* System header to define __stub macros and hopefully few prototypes,
6035 which can conflict with char connect (); below.
6036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6037 <limits.h> exists even on freestanding compilers. */
6040 # include <limits.h>
6042 # include <assert.h>
6047 /* Override any gcc2 internal prototype to avoid an error. */
6052 /* We use char because int might match the return type of a gcc2
6053 builtin and then its argument prototype would still apply. */
6055 /* The GNU C library defines this for functions which it implements
6056 to always fail with ENOSYS. Some functions are actually named
6057 something starting with __ and the normal name is an alias. */
6058 #if defined (__stub_connect) || defined (__stub___connect)
6061 char (*f) () = connect;
6070 return f != connect;
6075 rm -f conftest.$ac_objext conftest$ac_exeext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6077 (eval $ac_link) 2>conftest.er1
6079 grep -v '^ *+' conftest.er1 >conftest.err
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
6084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; } &&
6090 { ac_try='test -s conftest$ac_exeext'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
6096 ac_cv_func_connect=yes
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6101 ac_cv_func_connect=no
6103 rm -f conftest.err conftest.$ac_objext \
6104 conftest$ac_exeext conftest.$ac_ext
6106 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6107 echo "${ECHO_T}$ac_cv_func_connect" >&6
6109 if test $ac_cv_func_connect = no; then
6110 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6111 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6112 if test "${ac_cv_lib_socket_connect+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 ac_check_lib_save_LIBS=$LIBS
6116 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6117 cat >conftest.$ac_ext <<_ACEOF
6120 cat confdefs.h >>conftest.$ac_ext
6121 cat >>conftest.$ac_ext <<_ACEOF
6122 /* end confdefs.h. */
6124 /* Override any gcc2 internal prototype to avoid an error. */
6128 /* We use char because int might match the return type of a gcc2
6129 builtin and then its argument prototype would still apply. */
6139 rm -f conftest.$ac_objext conftest$ac_exeext
6140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6141 (eval $ac_link) 2>conftest.er1
6143 grep -v '^ *+' conftest.er1 >conftest.err
6145 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
6148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; } &&
6154 { ac_try='test -s conftest$ac_exeext'
6155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; }; then
6160 ac_cv_lib_socket_connect=yes
6162 echo "$as_me: failed program was:" >&5
6163 sed 's/^/| /' conftest.$ac_ext >&5
6165 ac_cv_lib_socket_connect=no
6167 rm -f conftest.err conftest.$ac_objext \
6168 conftest$ac_exeext conftest.$ac_ext
6169 LIBS=$ac_check_lib_save_LIBS
6171 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6172 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6173 if test $ac_cv_lib_socket_connect = yes; then
6174 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6179 # Guillermo Gomez says -lposix is necessary on A/UX.
6180 echo "$as_me:$LINENO: checking for remove" >&5
6181 echo $ECHO_N "checking for remove... $ECHO_C" >&6
6182 if test "${ac_cv_func_remove+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 cat >conftest.$ac_ext <<_ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6191 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6193 #define remove innocuous_remove
6195 /* System header to define __stub macros and hopefully few prototypes,
6196 which can conflict with char remove (); below.
6197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6198 <limits.h> exists even on freestanding compilers. */
6201 # include <limits.h>
6203 # include <assert.h>
6208 /* Override any gcc2 internal prototype to avoid an error. */
6213 /* We use char because int might match the return type of a gcc2
6214 builtin and then its argument prototype would still apply. */
6216 /* The GNU C library defines this for functions which it implements
6217 to always fail with ENOSYS. Some functions are actually named
6218 something starting with __ and the normal name is an alias. */
6219 #if defined (__stub_remove) || defined (__stub___remove)
6222 char (*f) () = remove;
6236 rm -f conftest.$ac_objext conftest$ac_exeext
6237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6238 (eval $ac_link) 2>conftest.er1
6240 grep -v '^ *+' conftest.er1 >conftest.err
6242 cat conftest.err >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } &&
6245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; } &&
6251 { ac_try='test -s conftest$ac_exeext'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6257 ac_cv_func_remove=yes
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6262 ac_cv_func_remove=no
6264 rm -f conftest.err conftest.$ac_objext \
6265 conftest$ac_exeext conftest.$ac_ext
6267 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6268 echo "${ECHO_T}$ac_cv_func_remove" >&6
6270 if test $ac_cv_func_remove = no; then
6271 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6272 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6273 if test "${ac_cv_lib_posix_remove+set}" = set; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 ac_check_lib_save_LIBS=$LIBS
6277 LIBS="-lposix $LIBS"
6278 cat >conftest.$ac_ext <<_ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6285 /* Override any gcc2 internal prototype to avoid an error. */
6289 /* We use char because int might match the return type of a gcc2
6290 builtin and then its argument prototype would still apply. */
6300 rm -f conftest.$ac_objext conftest$ac_exeext
6301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6302 (eval $ac_link) 2>conftest.er1
6304 grep -v '^ *+' conftest.er1 >conftest.err
6306 cat conftest.err >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; } &&
6315 { ac_try='test -s conftest$ac_exeext'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6321 ac_cv_lib_posix_remove=yes
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6326 ac_cv_lib_posix_remove=no
6328 rm -f conftest.err conftest.$ac_objext \
6329 conftest$ac_exeext conftest.$ac_ext
6330 LIBS=$ac_check_lib_save_LIBS
6332 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6333 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6334 if test $ac_cv_lib_posix_remove = yes; then
6335 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6340 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6341 echo "$as_me:$LINENO: checking for shmat" >&5
6342 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6343 if test "${ac_cv_func_shmat+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 cat >conftest.$ac_ext <<_ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6352 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6354 #define shmat innocuous_shmat
6356 /* System header to define __stub macros and hopefully few prototypes,
6357 which can conflict with char shmat (); below.
6358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6359 <limits.h> exists even on freestanding compilers. */
6362 # include <limits.h>
6364 # include <assert.h>
6369 /* Override any gcc2 internal prototype to avoid an error. */
6374 /* We use char because int might match the return type of a gcc2
6375 builtin and then its argument prototype would still apply. */
6377 /* The GNU C library defines this for functions which it implements
6378 to always fail with ENOSYS. Some functions are actually named
6379 something starting with __ and the normal name is an alias. */
6380 #if defined (__stub_shmat) || defined (__stub___shmat)
6383 char (*f) () = shmat;
6397 rm -f conftest.$ac_objext conftest$ac_exeext
6398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6399 (eval $ac_link) 2>conftest.er1
6401 grep -v '^ *+' conftest.er1 >conftest.err
6403 cat conftest.err >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } &&
6406 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; } &&
6412 { ac_try='test -s conftest$ac_exeext'
6413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; }; then
6418 ac_cv_func_shmat=yes
6420 echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.$ac_ext >&5
6425 rm -f conftest.err conftest.$ac_objext \
6426 conftest$ac_exeext conftest.$ac_ext
6428 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6429 echo "${ECHO_T}$ac_cv_func_shmat" >&6
6431 if test $ac_cv_func_shmat = no; then
6432 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6433 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6434 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 ac_check_lib_save_LIBS=$LIBS
6439 cat >conftest.$ac_ext <<_ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6446 /* Override any gcc2 internal prototype to avoid an error. */
6450 /* We use char because int might match the return type of a gcc2
6451 builtin and then its argument prototype would still apply. */
6461 rm -f conftest.$ac_objext conftest$ac_exeext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6463 (eval $ac_link) 2>conftest.er1
6465 grep -v '^ *+' conftest.er1 >conftest.err
6467 cat conftest.err >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } &&
6470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }; } &&
6476 { ac_try='test -s conftest$ac_exeext'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
6482 ac_cv_lib_ipc_shmat=yes
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6487 ac_cv_lib_ipc_shmat=no
6489 rm -f conftest.err conftest.$ac_objext \
6490 conftest$ac_exeext conftest.$ac_ext
6491 LIBS=$ac_check_lib_save_LIBS
6493 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6494 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6495 if test $ac_cv_lib_ipc_shmat = yes; then
6496 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6502 # Check for libraries that X11R6 Xt/Xaw programs need.
6503 ac_save_LDFLAGS=$LDFLAGS
6504 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6505 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6506 # check for ICE first), but we must link in the order -lSM -lICE or
6507 # we get undefined symbols. So assume we have SM if we have ICE.
6508 # These have to be linked with before -lX11, unlike the other
6509 # libraries we check for below, so use a different variable.
6510 # John Interrante, Karl Berry
6511 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6512 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6513 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 ac_check_lib_save_LIBS=$LIBS
6517 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6518 cat >conftest.$ac_ext <<_ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6525 /* Override any gcc2 internal prototype to avoid an error. */
6529 /* We use char because int might match the return type of a gcc2
6530 builtin and then its argument prototype would still apply. */
6531 char IceConnectionNumber ();
6535 IceConnectionNumber ();
6540 rm -f conftest.$ac_objext conftest$ac_exeext
6541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6542 (eval $ac_link) 2>conftest.er1
6544 grep -v '^ *+' conftest.er1 >conftest.err
6546 cat conftest.err >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } &&
6549 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); }; } &&
6555 { ac_try='test -s conftest$ac_exeext'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; }; then
6561 ac_cv_lib_ICE_IceConnectionNumber=yes
6563 echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6566 ac_cv_lib_ICE_IceConnectionNumber=no
6568 rm -f conftest.err conftest.$ac_objext \
6569 conftest$ac_exeext conftest.$ac_ext
6570 LIBS=$ac_check_lib_save_LIBS
6572 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6573 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6574 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6575 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6578 LDFLAGS=$ac_save_LDFLAGS
6584 if test x$support_xpm = xyes; then
6588 # Initialize some more variables set by options.
6589 # The variables have the same names as the options, with
6590 # dashes changed to underlines.
6592 # If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6593 # paths, otherwise set no_xpm=yes.
6594 # Uses ac_ vars as temps to allow command line to override cache and checks.
6595 echo "$as_me:$LINENO: checking for libXpm" >&5
6596 echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
6599 # Check whether --with-xpm_includes or --without-xpm_includes was given.
6600 if test "${with_xpm_includes+set}" = set; then
6601 withval="$with_xpm_includes"
6602 xpm_includes="$withval"
6607 # Check whether --with-xpm_library or --without-xpm_library was given.
6608 if test "${with_xpm_library+set}" = set; then
6609 withval="$with_xpm_library"
6610 xpm_libraries="$withval"
6615 # --without-xpm overrides everything else, but does not touch the cache.
6617 # Check whether --with-xpm or --without-xpm was given.
6618 if test "${with_xpm+set}" = set; then
6622 if test "$with_xpm" = no; then
6625 if test "${ac_cv_have_xpm+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 vt_xpm_include_X11=no
6630 if test -n "$xpm_includes"; then
6631 vt_xpm_includes=$xpm_includes
6635 if test -n "$xpm_libraries"; then
6636 vt_xpm_libraries=$xpm_libraries
6641 if test "$vt_xpm_includes" = NO; then
6642 # Guess where to find xpm.h
6644 ac_save_CPPFLAGS="$CPPFLAGS"
6645 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6647 # First, try using that file with no special directory specified.
6648 cat >conftest.$ac_ext <<_ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6654 #include <X11/xpm.h>
6656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6659 grep -v '^ *+' conftest.er1 >conftest.err
6661 cat conftest.err >&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); } >/dev/null; then
6664 if test -s conftest.err; then
6665 ac_cpp_err=$ac_cxx_preproc_warn_flag
6666 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6673 if test -z "$ac_cpp_err"; then
6674 # We can compile using X headers with no special include directory.
6676 vt_xpm_include_X11=yes
6678 echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.$ac_ext >&5
6681 CPPFLAGS="$ac_save_CPPFLAGS"
6682 # Look for the header file in a standard set of common directories.
6685 /usr/X11R6/include \
6686 /usr/X11R5/include \
6687 /usr/X11R4/include \
6690 /usr/include/X11R6 \
6691 /usr/include/X11R5 \
6692 /usr/include/X11R4 \
6694 /usr/local/X11/include \
6695 /usr/local/X11R6/include \
6696 /usr/local/X11R5/include \
6697 /usr/local/X11R4/include \
6699 /usr/local/include/X11 \
6700 /usr/local/include/X11R6 \
6701 /usr/local/include/X11R5 \
6702 /usr/local/include/X11R4 \
6706 /usr/XFree86/include/X11 \
6709 /usr/local/include \
6710 /usr/unsupported/include \
6711 /usr/athena/include \
6712 /usr/local/x11r5/include \
6713 /usr/lpp/Xamples/include \
6715 /usr/openwin/include \
6716 /usr/openwin/share/include \
6719 if test -r "$ac_dir/X11/xpm.h"; then
6720 vt_xpm_includes="$ac_dir"
6721 vt_xpm_include_X11=yes
6724 if test -r "$ac_dir/xpm.h"; then
6725 vt_xpm_includes=$ac_dir
6731 rm -f conftest.err conftest.$ac_ext
6734 if test "$vt_xpm_libraries" = NO; then
6735 # Check for the libraries.
6737 # See if we find them without any special options.
6738 # Don't add to $LIBS permanently.
6739 ac_save_LIBS="$LIBS"
6740 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6741 cat >conftest.$ac_ext <<_ACEOF
6744 cat confdefs.h >>conftest.$ac_ext
6745 cat >>conftest.$ac_ext <<_ACEOF
6746 /* end confdefs.h. */
6751 XpmReadFileToPixmap()
6756 rm -f conftest.$ac_objext conftest$ac_exeext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6758 (eval $ac_link) 2>conftest.er1
6760 grep -v '^ *+' conftest.er1 >conftest.err
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; } &&
6771 { ac_try='test -s conftest$ac_exeext'
6772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; }; then
6777 LIBS="$ac_save_LIBS"
6778 # We can link libXpm with no special library path.
6781 echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6784 LIBS="$ac_save_LIBS"
6785 # First see if replacing the include by lib works.
6787 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6798 /usr/local/X11/lib \
6799 /usr/local/X11R6/lib \
6800 /usr/local/X11R5/lib \
6801 /usr/local/X11R4/lib \
6803 /usr/local/lib/X11 \
6804 /usr/local/lib/X11R6 \
6805 /usr/local/lib/X11R5 \
6806 /usr/local/lib/X11R4 \
6810 /usr/XFree86/lib/X11 \
6814 /usr/unsupported/lib \
6816 /usr/local/x11r5/lib \
6817 /usr/lpp/Xamples/lib \
6820 /usr/openwin/share/lib \
6823 for ac_extension in a so sl; do
6824 if test -r $ac_dir/libXpm.$ac_extension; then
6825 vt_xpm_libraries=$ac_dir
6831 rm -f conftest.err conftest.$ac_objext \
6832 conftest$ac_exeext conftest.$ac_ext
6836 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6837 ac_cv_have_xpm="have_xpm=no"
6839 ac_cv_have_xpm="have_xpm=yes \
6840 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6841 vt_xpm_include_X11=$vt_xpm_include_X11"
6844 eval "$ac_cv_have_xpm"
6847 if test "$have_xpm" != yes; then
6848 echo "$as_me:$LINENO: result: $have_xpm" >&5
6849 echo "${ECHO_T}$have_xpm" >&6
6852 if test "$xpm_includes" != NO; then
6853 if test "$xpm_includes" = "$vt_xpm_includes"; then
6854 if test -r "$xpm_includes/X11/xpm.h"; then
6855 vt_xpm_include_X11=yes
6858 vt_xpm_include_X11=no
6859 if test -z "$xpm_includes"; then
6860 cat >conftest.$ac_ext <<_ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h. */
6866 #include <X11/xpm.h>
6868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6871 grep -v '^ *+' conftest.er1 >conftest.err
6873 cat conftest.err >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); } >/dev/null; then
6876 if test -s conftest.err; then
6877 ac_cpp_err=$ac_cxx_preproc_warn_flag
6878 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6885 if test -z "$ac_cpp_err"; then
6886 vt_xpm_include_X11=yes
6888 echo "$as_me: failed program was:" >&5
6889 sed 's/^/| /' conftest.$ac_ext >&5
6893 rm -f conftest.err conftest.$ac_ext
6895 if test -r "$xpm_includes/X11/xpm.h"; then
6896 vt_xpm_include_X11=yes
6900 vt_xpm_includes=$xpm_includes
6902 if test "x$xpm_libraries" != xNO; then
6903 vt_xpm_libraries=$xpm_libraries
6905 # Update the cache value to reflect the command line values.
6906 ac_cv_have_xpm="have_xpm=yes \
6907 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6908 vt_xpm_include_X11=$vt_xpm_include_X11"
6909 eval "$ac_cv_have_xpm"
6910 echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
6911 echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
6912 if test -n "$vt_xpm_includes"; then
6913 XPM_CPPFLAGS="-DHAVE_LIBXPM"
6915 if test -n "$vt_xpm_includes"; then
6916 XPM_CFLAGS="-I$vt_xpm_includes"
6919 if test -n "$vt_xpm_libraries"; then
6920 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6922 if test "x$vt_xpm_include_X11" = xyes; then
6924 cat >>confdefs.h <<\_ACEOF
6925 #define XPM_INC_X11 1
6935 if test x$no_xpm = xyes; then
6936 support_xpm=needsmanualspecification
6940 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6941 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6942 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 cat >conftest.$ac_ext <<_ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6951 #include <sys/types.h>
6952 #include <sys/wait.h>
6954 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6957 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6965 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6970 rm -f conftest.$ac_objext
6971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6972 (eval $ac_compile) 2>conftest.er1
6974 grep -v '^ *+' conftest.er1 >conftest.err
6976 cat conftest.err >&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); } &&
6979 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; } &&
6985 { ac_try='test -s conftest.$ac_objext'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6991 ac_cv_header_sys_wait_h=yes
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6996 ac_cv_header_sys_wait_h=no
6998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7000 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7001 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7002 if test $ac_cv_header_sys_wait_h = yes; then
7004 cat >>confdefs.h <<\_ACEOF
7005 #define HAVE_SYS_WAIT_H 1
7010 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7011 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7012 if test "${ac_cv_header_stdc+set}" = set; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7015 cat >conftest.$ac_ext <<_ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h. */
7034 rm -f conftest.$ac_objext
7035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7036 (eval $ac_compile) 2>conftest.er1
7038 grep -v '^ *+' conftest.er1 >conftest.err
7040 cat conftest.err >&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); } &&
7043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; } &&
7049 { ac_try='test -s conftest.$ac_objext'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; }; then
7055 ac_cv_header_stdc=yes
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7060 ac_cv_header_stdc=no
7062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7064 if test $ac_cv_header_stdc = yes; then
7065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7066 cat >conftest.$ac_ext <<_ACEOF
7069 cat confdefs.h >>conftest.$ac_ext
7070 cat >>conftest.$ac_ext <<_ACEOF
7071 /* end confdefs.h. */
7075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7076 $EGREP "memchr" >/dev/null 2>&1; then
7079 ac_cv_header_stdc=no
7085 if test $ac_cv_header_stdc = yes; then
7086 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7087 cat >conftest.$ac_ext <<_ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7097 $EGREP "free" >/dev/null 2>&1; then
7100 ac_cv_header_stdc=no
7106 if test $ac_cv_header_stdc = yes; then
7107 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7108 if test "$cross_compiling" = yes; then
7111 cat >conftest.$ac_ext <<_ACEOF
7114 cat confdefs.h >>conftest.$ac_ext
7115 cat >>conftest.$ac_ext <<_ACEOF
7116 /* end confdefs.h. */
7118 #if ((' ' & 0x0FF) == 0x020)
7119 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7120 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7122 # define ISLOWER(c) \
7123 (('a' <= (c) && (c) <= 'i') \
7124 || ('j' <= (c) && (c) <= 'r') \
7125 || ('s' <= (c) && (c) <= 'z'))
7126 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7129 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7134 for (i = 0; i < 256; i++)
7135 if (XOR (islower (i), ISLOWER (i))
7136 || toupper (i) != TOUPPER (i))
7141 rm -f conftest$ac_exeext
7142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7143 (eval $ac_link) 2>&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); }; }; then
7154 echo "$as_me: program exited with status $ac_status" >&5
7155 echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.$ac_ext >&5
7159 ac_cv_header_stdc=no
7161 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7165 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7166 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7167 if test $ac_cv_header_stdc = yes; then
7169 cat >>confdefs.h <<\_ACEOF
7170 #define STDC_HEADERS 1
7175 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7185 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7186 inttypes.h stdint.h unistd.h
7188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7189 echo "$as_me:$LINENO: checking for $ac_header" >&5
7190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 cat >conftest.$ac_ext <<_ACEOF
7197 cat confdefs.h >>conftest.$ac_ext
7198 cat >>conftest.$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7200 $ac_includes_default
7202 #include <$ac_header>
7204 rm -f conftest.$ac_objext
7205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7206 (eval $ac_compile) 2>conftest.er1
7208 grep -v '^ *+' conftest.er1 >conftest.err
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } &&
7213 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); }; } &&
7219 { ac_try='test -s conftest.$ac_objext'
7220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); }; }; then
7225 eval "$as_ac_Header=yes"
7227 echo "$as_me: failed program was:" >&5
7228 sed 's/^/| /' conftest.$ac_ext >&5
7230 eval "$as_ac_Header=no"
7232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7237 cat >>confdefs.h <<_ACEOF
7238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7303 echo "$as_me:$LINENO: checking for $ac_header" >&5
7304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7311 # Is the header compilable?
7312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7314 cat >conftest.$ac_ext <<_ACEOF
7317 cat confdefs.h >>conftest.$ac_ext
7318 cat >>conftest.$ac_ext <<_ACEOF
7319 /* end confdefs.h. */
7320 $ac_includes_default
7321 #include <$ac_header>
7323 rm -f conftest.$ac_objext
7324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7325 (eval $ac_compile) 2>conftest.er1
7327 grep -v '^ *+' conftest.er1 >conftest.err
7329 cat conftest.err >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } &&
7332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); }; } &&
7338 { ac_try='test -s conftest.$ac_objext'
7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); }; }; then
7344 ac_header_compiler=yes
7346 echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7349 ac_header_compiler=no
7351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7353 echo "${ECHO_T}$ac_header_compiler" >&6
7355 # Is the header present?
7356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7358 cat >conftest.$ac_ext <<_ACEOF
7361 cat confdefs.h >>conftest.$ac_ext
7362 cat >>conftest.$ac_ext <<_ACEOF
7363 /* end confdefs.h. */
7364 #include <$ac_header>
7366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7369 grep -v '^ *+' conftest.er1 >conftest.err
7371 cat conftest.err >&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); } >/dev/null; then
7374 if test -s conftest.err; then
7375 ac_cpp_err=$ac_cxx_preproc_warn_flag
7376 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7383 if test -z "$ac_cpp_err"; then
7384 ac_header_preproc=yes
7386 echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.$ac_ext >&5
7389 ac_header_preproc=no
7391 rm -f conftest.err conftest.$ac_ext
7392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7393 echo "${ECHO_T}$ac_header_preproc" >&6
7395 # So? What about this header?
7396 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7402 ac_header_preproc=yes
7405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7419 ## ------------------------------------------ ##
7420 ## Report this to the AC_PACKAGE_NAME lists. ##
7421 ## ------------------------------------------ ##
7424 sed "s/^/$as_me: WARNING: /" >&2
7427 echo "$as_me:$LINENO: checking for $ac_header" >&5
7428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 eval "$as_ac_Header=\$ac_header_preproc"
7434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7439 cat >>confdefs.h <<_ACEOF
7440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7448 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7449 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7450 if test "${ac_cv_header_time+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 cat >conftest.$ac_ext <<_ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h. */
7459 #include <sys/types.h>
7460 #include <sys/time.h>
7466 if ((struct tm *) 0)
7472 rm -f conftest.$ac_objext
7473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7474 (eval $ac_compile) 2>conftest.er1
7476 grep -v '^ *+' conftest.er1 >conftest.err
7478 cat conftest.err >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } &&
7481 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); }; } &&
7487 { ac_try='test -s conftest.$ac_objext'
7488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); }; }; then
7493 ac_cv_header_time=yes
7495 echo "$as_me: failed program was:" >&5
7496 sed 's/^/| /' conftest.$ac_ext >&5
7498 ac_cv_header_time=no
7500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7502 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7503 echo "${ECHO_T}$ac_cv_header_time" >&6
7504 if test $ac_cv_header_time = yes; then
7506 cat >>confdefs.h <<\_ACEOF
7507 #define TIME_WITH_SYS_TIME 1
7513 echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7514 echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6
7515 if test "${rxvt_cv_header_sysioctl+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 cat >conftest.$ac_ext <<_ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7525 #include <sys/ioctl.h>
7526 #ifdef HAVE_TERMIOS_H
7527 #include <termios.h>
7537 rm -f conftest.$ac_objext
7538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7539 (eval $ac_compile) 2>conftest.er1
7541 grep -v '^ *+' conftest.er1 >conftest.err
7543 cat conftest.err >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } &&
7546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; } &&
7552 { ac_try='test -s conftest.$ac_objext'
7553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); }; }; then
7558 rxvt_cv_header_sysioctl=yes
7560 echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7563 rxvt_cv_header_sysioctl=no
7565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7567 echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7568 echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7570 if test -n "$GCC"; then
7575 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7577 ac_save_CFLAGS=$CFLAGS
7579 CFLAGS="$CFLAGS $X_CFLAGS"
7580 LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7581 echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7582 echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6
7583 if test "${rxvt_cv_rpath+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 if test "$cross_compiling" = yes; then
7587 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7588 echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7590 cat >conftest.$ac_ext <<_ACEOF
7593 cat confdefs.h >>conftest.$ac_ext
7594 cat >>conftest.$ac_ext <<_ACEOF
7595 /* end confdefs.h. */
7600 (void) XOpenDisplay("foobar");
7603 rm -f conftest$ac_exeext
7604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7605 (eval $ac_link) 2>&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); }; }; then
7616 echo "$as_me: program exited with status $ac_status" >&5
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7623 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7626 echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7627 echo "${ECHO_T}$rxvt_cv_rpath" >&6
7628 if test x$rxvt_cv_rpath != xyes; then
7629 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7630 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7631 echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7632 echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6
7633 if test "${rxvt_cv_R+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 if test "$cross_compiling" = yes; then
7639 cat >conftest.$ac_ext <<_ACEOF
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h. */
7649 (void) XOpenDisplay("foobar");
7652 rm -f conftest$ac_exeext
7653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7654 (eval $ac_link) 2>&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; }; then
7665 echo "$as_me: program exited with status $ac_status" >&5
7666 echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.$ac_ext >&5
7672 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7675 echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7676 echo "${ECHO_T}$rxvt_cv_R" >&6
7677 if test x$rxvt_cv_R != xyes; then
7678 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7682 echo "$as_me:$LINENO: checking for XPointer" >&5
7683 echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
7684 if test "${rxvt_cv_xpointer+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 cat >conftest.$ac_ext <<_ACEOF
7690 cat confdefs.h >>conftest.$ac_ext
7691 cat >>conftest.$ac_ext <<_ACEOF
7692 /* end confdefs.h. */
7693 #include <X11/Xlib.h>
7702 rm -f conftest.$ac_objext
7703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7704 (eval $ac_compile) 2>conftest.er1
7706 grep -v '^ *+' conftest.er1 >conftest.err
7708 cat conftest.err >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } &&
7711 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; } &&
7717 { ac_try='test -s conftest.$ac_objext'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; }; then
7723 rxvt_cv_xpointer=yes
7725 echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.$ac_ext >&5
7730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7732 echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7733 echo "${ECHO_T}$rxvt_cv_xpointer" >&6
7734 if test x$rxvt_cv_xpointer = xyes; then
7736 cat >>confdefs.h <<\_ACEOF
7737 #define HAVE_XPOINTER 1
7742 CFLAGS=$ac_save_CFLAGS
7745 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7746 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7747 if test "${ac_cv_c_const+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 cat >conftest.$ac_ext <<_ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7760 /* FIXME: Include the comments suggested by Paul. */
7762 /* Ultrix mips cc rejects this. */
7763 typedef int charset[2];
7765 /* SunOS 4.1.1 cc rejects this. */
7766 char const *const *ccp;
7768 /* NEC SVR4.0.2 mips cc rejects this. */
7769 struct point {int x, y;};
7770 static struct point const zero = {0,0};
7771 /* AIX XL C 1.02.0.0 rejects this.
7772 It does not let you subtract one const X* pointer from another in
7773 an arm of an if-expression whose if-part is not a constant
7775 const char *g = "string";
7776 ccp = &g + (g ? g-g : 0);
7777 /* HPUX 7.0 cc rejects these. */
7780 ccp = (char const *const *) p;
7781 { /* SCO 3.2v4 cc rejects this. */
7783 char const *s = 0 ? (char *) 0 : (char const *) 0;
7787 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7789 const int *foo = &x[0];
7792 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7793 typedef const int *iptr;
7797 { /* AIX XL C 1.02.0.0 rejects this saying
7798 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7799 struct s { int j; const int *ap[3]; };
7800 struct s *b; b->j = 5;
7802 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7811 rm -f conftest.$ac_objext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7813 (eval $ac_compile) 2>conftest.er1
7815 grep -v '^ *+' conftest.er1 >conftest.err
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
7820 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; } &&
7826 { ac_try='test -s conftest.$ac_objext'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7841 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7842 echo "${ECHO_T}$ac_cv_c_const" >&6
7843 if test $ac_cv_c_const = no; then
7845 cat >>confdefs.h <<\_ACEOF
7851 echo "$as_me:$LINENO: checking for inline" >&5
7852 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7853 if test "${ac_cv_c_inline+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7857 for ac_kw in inline __inline__ __inline; do
7858 cat >conftest.$ac_ext <<_ACEOF
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h. */
7866 static $ac_kw foo_t static_foo () {return 0; }
7867 $ac_kw foo_t foo () {return 0; }
7871 rm -f conftest.$ac_objext
7872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7873 (eval $ac_compile) 2>conftest.er1
7875 grep -v '^ *+' conftest.er1 >conftest.err
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; } &&
7886 { ac_try='test -s conftest.$ac_objext'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 ac_cv_c_inline=$ac_kw; break
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7902 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7903 echo "${ECHO_T}$ac_cv_c_inline" >&6
7906 case $ac_cv_c_inline in
7909 case $ac_cv_c_inline in
7911 *) ac_val=$ac_cv_c_inline;;
7913 cat >>confdefs.h <<_ACEOF
7915 #define inline $ac_val
7923 echo "$as_me:$LINENO: checking for mode_t" >&5
7924 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7925 if test "${ac_cv_type_mode_t+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 cat >conftest.$ac_ext <<_ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 $ac_includes_default
7940 if (sizeof (mode_t))
7946 rm -f conftest.$ac_objext
7947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7948 (eval $ac_compile) 2>conftest.er1
7950 grep -v '^ *+' conftest.er1 >conftest.err
7952 cat conftest.err >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } &&
7955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; } &&
7961 { ac_try='test -s conftest.$ac_objext'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7967 ac_cv_type_mode_t=yes
7969 echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7972 ac_cv_type_mode_t=no
7974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7976 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7977 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7978 if test $ac_cv_type_mode_t = yes; then
7982 cat >>confdefs.h <<_ACEOF
7988 echo "$as_me:$LINENO: checking for pid_t" >&5
7989 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7990 if test "${ac_cv_type_pid_t+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 cat >conftest.$ac_ext <<_ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
7999 $ac_includes_default
8011 rm -f conftest.$ac_objext
8012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8013 (eval $ac_compile) 2>conftest.er1
8015 grep -v '^ *+' conftest.er1 >conftest.err
8017 cat conftest.err >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } &&
8020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; } &&
8026 { ac_try='test -s conftest.$ac_objext'
8027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; }; then
8032 ac_cv_type_pid_t=yes
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8041 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8042 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8043 if test $ac_cv_type_pid_t = yes; then
8047 cat >>confdefs.h <<_ACEOF
8053 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8054 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
8055 if test "${ac_cv_type_uid_t+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 cat >conftest.$ac_ext <<_ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h. */
8064 #include <sys/types.h>
8067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8068 $EGREP "uid_t" >/dev/null 2>&1; then
8069 ac_cv_type_uid_t=yes
8076 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8077 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
8078 if test $ac_cv_type_uid_t = no; then
8080 cat >>confdefs.h <<\_ACEOF
8085 cat >>confdefs.h <<\_ACEOF
8092 echo "$as_me:$LINENO: checking for short" >&5
8093 echo $ECHO_N "checking for short... $ECHO_C" >&6
8094 if test "${ac_cv_type_short+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 $ac_includes_default
8115 rm -f conftest.$ac_objext
8116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8117 (eval $ac_compile) 2>conftest.er1
8119 grep -v '^ *+' conftest.er1 >conftest.err
8121 cat conftest.err >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); } &&
8124 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } &&
8130 { ac_try='test -s conftest.$ac_objext'
8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; }; then
8136 ac_cv_type_short=yes
8138 echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.$ac_ext >&5
8143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8145 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8146 echo "${ECHO_T}$ac_cv_type_short" >&6
8148 echo "$as_me:$LINENO: checking size of short" >&5
8149 echo $ECHO_N "checking size of short... $ECHO_C" >&6
8150 if test "${ac_cv_sizeof_short+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 if test "$ac_cv_type_short" = yes; then
8154 # The cast to unsigned long works around a bug in the HP C Compiler
8155 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8156 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8157 # This bug is HP SR number 8606223364.
8158 if test "$cross_compiling" = yes; then
8159 # Depending upon the size, compute the lo and hi bounds.
8160 cat >conftest.$ac_ext <<_ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8166 $ac_includes_default
8170 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
8177 rm -f conftest.$ac_objext
8178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8179 (eval $ac_compile) 2>conftest.er1
8181 grep -v '^ *+' conftest.er1 >conftest.err
8183 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } &&
8186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); }; } &&
8192 { ac_try='test -s conftest.$ac_objext'
8193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; }; then
8200 cat >conftest.$ac_ext <<_ACEOF
8203 cat confdefs.h >>conftest.$ac_ext
8204 cat >>conftest.$ac_ext <<_ACEOF
8205 /* end confdefs.h. */
8206 $ac_includes_default
8210 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8217 rm -f conftest.$ac_objext
8218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8219 (eval $ac_compile) 2>conftest.er1
8221 grep -v '^ *+' conftest.er1 >conftest.err
8223 cat conftest.err >&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); } &&
8226 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; } &&
8232 { ac_try='test -s conftest.$ac_objext'
8233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; }; then
8238 ac_hi=$ac_mid; break
8240 echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.$ac_ext >&5
8243 ac_lo=`expr $ac_mid + 1`
8244 if test $ac_lo -le $ac_mid; then
8248 ac_mid=`expr 2 '*' $ac_mid + 1`
8250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8253 echo "$as_me: failed program was:" >&5
8254 sed 's/^/| /' conftest.$ac_ext >&5
8256 cat >conftest.$ac_ext <<_ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 $ac_includes_default
8266 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
8273 rm -f conftest.$ac_objext
8274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8275 (eval $ac_compile) 2>conftest.er1
8277 grep -v '^ *+' conftest.er1 >conftest.err
8279 cat conftest.err >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); } &&
8282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; } &&
8288 { ac_try='test -s conftest.$ac_objext'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; }; then
8296 cat >conftest.$ac_ext <<_ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8302 $ac_includes_default
8306 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
8313 rm -f conftest.$ac_objext
8314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8315 (eval $ac_compile) 2>conftest.er1
8317 grep -v '^ *+' conftest.er1 >conftest.err
8319 cat conftest.err >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } &&
8322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; } &&
8328 { ac_try='test -s conftest.$ac_objext'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
8334 ac_lo=$ac_mid; break
8336 echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8339 ac_hi=`expr '(' $ac_mid ')' - 1`
8340 if test $ac_mid -le $ac_hi; then
8344 ac_mid=`expr 2 '*' $ac_mid`
8346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8349 echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8357 # Binary search between lo and hi bounds.
8358 while test "x$ac_lo" != "x$ac_hi"; do
8359 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8360 cat >conftest.$ac_ext <<_ACEOF
8363 cat confdefs.h >>conftest.$ac_ext
8364 cat >>conftest.$ac_ext <<_ACEOF
8365 /* end confdefs.h. */
8366 $ac_includes_default
8370 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8377 rm -f conftest.$ac_objext
8378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8379 (eval $ac_compile) 2>conftest.er1
8381 grep -v '^ *+' conftest.er1 >conftest.err
8383 cat conftest.err >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } &&
8386 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; } &&
8392 { ac_try='test -s conftest.$ac_objext'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; }; then
8400 echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.$ac_ext >&5
8403 ac_lo=`expr '(' $ac_mid ')' + 1`
8405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8408 ?*) ac_cv_sizeof_short=$ac_lo;;
8409 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8410 See \`config.log' for more details." >&5
8411 echo "$as_me: error: cannot compute sizeof (short), 77
8412 See \`config.log' for more details." >&2;}
8413 { (exit 1); exit 1; }; } ;;
8416 if test "$cross_compiling" = yes; then
8417 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8418 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8419 { (exit 1); exit 1; }; }
8421 cat >conftest.$ac_ext <<_ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8427 $ac_includes_default
8428 long longval () { return (long) (sizeof (short)); }
8429 unsigned long ulongval () { return (long) (sizeof (short)); }
8436 FILE *f = fopen ("conftest.val", "w");
8439 if (((long) (sizeof (short))) < 0)
8441 long i = longval ();
8442 if (i != ((long) (sizeof (short))))
8444 fprintf (f, "%ld\n", i);
8448 unsigned long i = ulongval ();
8449 if (i != ((long) (sizeof (short))))
8451 fprintf (f, "%lu\n", i);
8453 exit (ferror (f) || fclose (f) != 0);
8459 rm -f conftest$ac_exeext
8460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461 (eval $ac_link) 2>&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8470 ac_cv_sizeof_short=`cat conftest.val`
8472 echo "$as_me: program exited with status $ac_status" >&5
8473 echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8477 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8478 See \`config.log' for more details." >&5
8479 echo "$as_me: error: cannot compute sizeof (short), 77
8480 See \`config.log' for more details." >&2;}
8481 { (exit 1); exit 1; }; }
8483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8488 ac_cv_sizeof_short=0
8491 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8492 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8493 cat >>confdefs.h <<_ACEOF
8494 #define SIZEOF_SHORT $ac_cv_sizeof_short
8498 echo "$as_me:$LINENO: checking for int" >&5
8499 echo $ECHO_N "checking for int... $ECHO_C" >&6
8500 if test "${ac_cv_type_int+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 cat >conftest.$ac_ext <<_ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8509 $ac_includes_default
8521 rm -f conftest.$ac_objext
8522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8523 (eval $ac_compile) 2>conftest.er1
8525 grep -v '^ *+' conftest.er1 >conftest.err
8527 cat conftest.err >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } &&
8530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; } &&
8536 { ac_try='test -s conftest.$ac_objext'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; }; then
8544 echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8551 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8552 echo "${ECHO_T}$ac_cv_type_int" >&6
8554 echo "$as_me:$LINENO: checking size of int" >&5
8555 echo $ECHO_N "checking size of int... $ECHO_C" >&6
8556 if test "${ac_cv_sizeof_int+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 if test "$ac_cv_type_int" = yes; then
8560 # The cast to unsigned long works around a bug in the HP C Compiler
8561 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8562 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8563 # This bug is HP SR number 8606223364.
8564 if test "$cross_compiling" = yes; then
8565 # Depending upon the size, compute the lo and hi bounds.
8566 cat >conftest.$ac_ext <<_ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8572 $ac_includes_default
8576 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
8583 rm -f conftest.$ac_objext
8584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8585 (eval $ac_compile) 2>conftest.er1
8587 grep -v '^ *+' conftest.er1 >conftest.err
8589 cat conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } &&
8592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; } &&
8598 { ac_try='test -s conftest.$ac_objext'
8599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; }; then
8606 cat >conftest.$ac_ext <<_ACEOF
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h. */
8612 $ac_includes_default
8616 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8623 rm -f conftest.$ac_objext
8624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8625 (eval $ac_compile) 2>conftest.er1
8627 grep -v '^ *+' conftest.er1 >conftest.err
8629 cat conftest.err >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); } &&
8632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; } &&
8638 { ac_try='test -s conftest.$ac_objext'
8639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); }; }; then
8644 ac_hi=$ac_mid; break
8646 echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8649 ac_lo=`expr $ac_mid + 1`
8650 if test $ac_lo -le $ac_mid; then
8654 ac_mid=`expr 2 '*' $ac_mid + 1`
8656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8659 echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8662 cat >conftest.$ac_ext <<_ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h. */
8668 $ac_includes_default
8672 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8679 rm -f conftest.$ac_objext
8680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8681 (eval $ac_compile) 2>conftest.er1
8683 grep -v '^ *+' conftest.er1 >conftest.err
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } &&
8688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; } &&
8694 { ac_try='test -s conftest.$ac_objext'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; }; then
8702 cat >conftest.$ac_ext <<_ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h. */
8708 $ac_includes_default
8712 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8719 rm -f conftest.$ac_objext
8720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8721 (eval $ac_compile) 2>conftest.er1
8723 grep -v '^ *+' conftest.er1 >conftest.err
8725 cat conftest.err >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } &&
8728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; } &&
8734 { ac_try='test -s conftest.$ac_objext'
8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
8740 ac_lo=$ac_mid; break
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8745 ac_hi=`expr '(' $ac_mid ')' - 1`
8746 if test $ac_mid -le $ac_hi; then
8750 ac_mid=`expr 2 '*' $ac_mid`
8752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8763 # Binary search between lo and hi bounds.
8764 while test "x$ac_lo" != "x$ac_hi"; do
8765 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8766 cat >conftest.$ac_ext <<_ACEOF
8769 cat confdefs.h >>conftest.$ac_ext
8770 cat >>conftest.$ac_ext <<_ACEOF
8771 /* end confdefs.h. */
8772 $ac_includes_default
8776 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8783 rm -f conftest.$ac_objext
8784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8785 (eval $ac_compile) 2>conftest.er1
8787 grep -v '^ *+' conftest.er1 >conftest.err
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } &&
8792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }; } &&
8798 { ac_try='test -s conftest.$ac_objext'
8799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); }; }; then
8806 echo "$as_me: failed program was:" >&5
8807 sed 's/^/| /' conftest.$ac_ext >&5
8809 ac_lo=`expr '(' $ac_mid ')' + 1`
8811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8814 ?*) ac_cv_sizeof_int=$ac_lo;;
8815 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8816 See \`config.log' for more details." >&5
8817 echo "$as_me: error: cannot compute sizeof (int), 77
8818 See \`config.log' for more details." >&2;}
8819 { (exit 1); exit 1; }; } ;;
8822 if test "$cross_compiling" = yes; then
8823 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8824 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8825 { (exit 1); exit 1; }; }
8827 cat >conftest.$ac_ext <<_ACEOF
8830 cat confdefs.h >>conftest.$ac_ext
8831 cat >>conftest.$ac_ext <<_ACEOF
8832 /* end confdefs.h. */
8833 $ac_includes_default
8834 long longval () { return (long) (sizeof (int)); }
8835 unsigned long ulongval () { return (long) (sizeof (int)); }
8842 FILE *f = fopen ("conftest.val", "w");
8845 if (((long) (sizeof (int))) < 0)
8847 long i = longval ();
8848 if (i != ((long) (sizeof (int))))
8850 fprintf (f, "%ld\n", i);
8854 unsigned long i = ulongval ();
8855 if (i != ((long) (sizeof (int))))
8857 fprintf (f, "%lu\n", i);
8859 exit (ferror (f) || fclose (f) != 0);
8865 rm -f conftest$ac_exeext
8866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8867 (eval $ac_link) 2>&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; }; then
8876 ac_cv_sizeof_int=`cat conftest.val`
8878 echo "$as_me: program exited with status $ac_status" >&5
8879 echo "$as_me: failed program was:" >&5
8880 sed 's/^/| /' conftest.$ac_ext >&5
8883 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8884 See \`config.log' for more details." >&5
8885 echo "$as_me: error: cannot compute sizeof (int), 77
8886 See \`config.log' for more details." >&2;}
8887 { (exit 1); exit 1; }; }
8889 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8897 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8898 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8899 cat >>confdefs.h <<_ACEOF
8900 #define SIZEOF_INT $ac_cv_sizeof_int
8904 echo "$as_me:$LINENO: checking for long long" >&5
8905 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8906 if test "${ac_cv_type_long_long+set}" = set; then
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
8909 cat >conftest.$ac_ext <<_ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h. */
8915 $ac_includes_default
8919 if ((long long *) 0)
8921 if (sizeof (long long))
8927 rm -f conftest.$ac_objext
8928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8929 (eval $ac_compile) 2>conftest.er1
8931 grep -v '^ *+' conftest.er1 >conftest.err
8933 cat conftest.err >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } &&
8936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; } &&
8942 { ac_try='test -s conftest.$ac_objext'
8943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; }; then
8948 ac_cv_type_long_long=yes
8950 echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.$ac_ext >&5
8953 ac_cv_type_long_long=no
8955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8957 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8958 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8960 echo "$as_me:$LINENO: checking size of long long" >&5
8961 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8962 if test "${ac_cv_sizeof_long_long+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 if test "$ac_cv_type_long_long" = yes; then
8966 # The cast to unsigned long works around a bug in the HP C Compiler
8967 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8968 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8969 # This bug is HP SR number 8606223364.
8970 if test "$cross_compiling" = yes; then
8971 # Depending upon the size, compute the lo and hi bounds.
8972 cat >conftest.$ac_ext <<_ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8978 $ac_includes_default
8982 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8989 rm -f conftest.$ac_objext
8990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8991 (eval $ac_compile) 2>conftest.er1
8993 grep -v '^ *+' conftest.er1 >conftest.err
8995 cat conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } &&
8998 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; } &&
9004 { ac_try='test -s conftest.$ac_objext'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; }; then
9012 cat >conftest.$ac_ext <<_ACEOF
9015 cat confdefs.h >>conftest.$ac_ext
9016 cat >>conftest.$ac_ext <<_ACEOF
9017 /* end confdefs.h. */
9018 $ac_includes_default
9022 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9029 rm -f conftest.$ac_objext
9030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9031 (eval $ac_compile) 2>conftest.er1
9033 grep -v '^ *+' conftest.er1 >conftest.err
9035 cat conftest.err >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } &&
9038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; } &&
9044 { ac_try='test -s conftest.$ac_objext'
9045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; }; then
9050 ac_hi=$ac_mid; break
9052 echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9055 ac_lo=`expr $ac_mid + 1`
9056 if test $ac_lo -le $ac_mid; then
9060 ac_mid=`expr 2 '*' $ac_mid + 1`
9062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9065 echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9068 cat >conftest.$ac_ext <<_ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h. */
9074 $ac_includes_default
9078 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9085 rm -f conftest.$ac_objext
9086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9087 (eval $ac_compile) 2>conftest.er1
9089 grep -v '^ *+' conftest.er1 >conftest.err
9091 cat conftest.err >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); } &&
9094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; } &&
9100 { ac_try='test -s conftest.$ac_objext'
9101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); }; }; then
9108 cat >conftest.$ac_ext <<_ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9114 $ac_includes_default
9118 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9125 rm -f conftest.$ac_objext
9126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9127 (eval $ac_compile) 2>conftest.er1
9129 grep -v '^ *+' conftest.er1 >conftest.err
9131 cat conftest.err >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } &&
9134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; } &&
9140 { ac_try='test -s conftest.$ac_objext'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; }; then
9146 ac_lo=$ac_mid; break
9148 echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9151 ac_hi=`expr '(' $ac_mid ')' - 1`
9152 if test $ac_mid -le $ac_hi; then
9156 ac_mid=`expr 2 '*' $ac_mid`
9158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9161 echo "$as_me: failed program was:" >&5
9162 sed 's/^/| /' conftest.$ac_ext >&5
9166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9169 # Binary search between lo and hi bounds.
9170 while test "x$ac_lo" != "x$ac_hi"; do
9171 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9172 cat >conftest.$ac_ext <<_ACEOF
9175 cat confdefs.h >>conftest.$ac_ext
9176 cat >>conftest.$ac_ext <<_ACEOF
9177 /* end confdefs.h. */
9178 $ac_includes_default
9182 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9189 rm -f conftest.$ac_objext
9190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9191 (eval $ac_compile) 2>conftest.er1
9193 grep -v '^ *+' conftest.er1 >conftest.err
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; } &&
9204 { ac_try='test -s conftest.$ac_objext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9215 ac_lo=`expr '(' $ac_mid ')' + 1`
9217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9220 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9221 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9222 See \`config.log' for more details." >&5
9223 echo "$as_me: error: cannot compute sizeof (long long), 77
9224 See \`config.log' for more details." >&2;}
9225 { (exit 1); exit 1; }; } ;;
9228 if test "$cross_compiling" = yes; then
9229 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9230 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
9231 { (exit 1); exit 1; }; }
9233 cat >conftest.$ac_ext <<_ACEOF
9236 cat confdefs.h >>conftest.$ac_ext
9237 cat >>conftest.$ac_ext <<_ACEOF
9238 /* end confdefs.h. */
9239 $ac_includes_default
9240 long longval () { return (long) (sizeof (long long)); }
9241 unsigned long ulongval () { return (long) (sizeof (long long)); }
9248 FILE *f = fopen ("conftest.val", "w");
9251 if (((long) (sizeof (long long))) < 0)
9253 long i = longval ();
9254 if (i != ((long) (sizeof (long long))))
9256 fprintf (f, "%ld\n", i);
9260 unsigned long i = ulongval ();
9261 if (i != ((long) (sizeof (long long))))
9263 fprintf (f, "%lu\n", i);
9265 exit (ferror (f) || fclose (f) != 0);
9271 rm -f conftest$ac_exeext
9272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9273 (eval $ac_link) 2>&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; }; then
9282 ac_cv_sizeof_long_long=`cat conftest.val`
9284 echo "$as_me: program exited with status $ac_status" >&5
9285 echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.$ac_ext >&5
9289 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9290 See \`config.log' for more details." >&5
9291 echo "$as_me: error: cannot compute sizeof (long long), 77
9292 See \`config.log' for more details." >&2;}
9293 { (exit 1); exit 1; }; }
9295 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9300 ac_cv_sizeof_long_long=0
9303 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9304 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9305 cat >>confdefs.h <<_ACEOF
9306 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9310 echo "$as_me:$LINENO: checking for int *" >&5
9311 echo $ECHO_N "checking for int *... $ECHO_C" >&6
9312 if test "${ac_cv_type_int_p+set}" = set; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9315 cat >conftest.$ac_ext <<_ACEOF
9318 cat confdefs.h >>conftest.$ac_ext
9319 cat >>conftest.$ac_ext <<_ACEOF
9320 /* end confdefs.h. */
9321 $ac_includes_default
9333 rm -f conftest.$ac_objext
9334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9335 (eval $ac_compile) 2>conftest.er1
9337 grep -v '^ *+' conftest.er1 >conftest.err
9339 cat conftest.err >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); } &&
9342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; } &&
9348 { ac_try='test -s conftest.$ac_objext'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; }; then
9354 ac_cv_type_int_p=yes
9356 echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9363 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9364 echo "${ECHO_T}$ac_cv_type_int_p" >&6
9366 echo "$as_me:$LINENO: checking size of int *" >&5
9367 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
9368 if test "${ac_cv_sizeof_int_p+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9371 if test "$ac_cv_type_int_p" = yes; then
9372 # The cast to unsigned long works around a bug in the HP C Compiler
9373 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9374 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9375 # This bug is HP SR number 8606223364.
9376 if test "$cross_compiling" = yes; then
9377 # Depending upon the size, compute the lo and hi bounds.
9378 cat >conftest.$ac_ext <<_ACEOF
9381 cat confdefs.h >>conftest.$ac_ext
9382 cat >>conftest.$ac_ext <<_ACEOF
9383 /* end confdefs.h. */
9384 $ac_includes_default
9388 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
9395 rm -f conftest.$ac_objext
9396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9397 (eval $ac_compile) 2>conftest.er1
9399 grep -v '^ *+' conftest.er1 >conftest.err
9401 cat conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } &&
9404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; } &&
9410 { ac_try='test -s conftest.$ac_objext'
9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; }; then
9418 cat >conftest.$ac_ext <<_ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9424 $ac_includes_default
9428 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9435 rm -f conftest.$ac_objext
9436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9437 (eval $ac_compile) 2>conftest.er1
9439 grep -v '^ *+' conftest.er1 >conftest.err
9441 cat conftest.err >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } &&
9444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; } &&
9450 { ac_try='test -s conftest.$ac_objext'
9451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; }; then
9456 ac_hi=$ac_mid; break
9458 echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9461 ac_lo=`expr $ac_mid + 1`
9462 if test $ac_lo -le $ac_mid; then
9466 ac_mid=`expr 2 '*' $ac_mid + 1`
9468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9471 echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9474 cat >conftest.$ac_ext <<_ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h. */
9480 $ac_includes_default
9484 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
9491 rm -f conftest.$ac_objext
9492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9493 (eval $ac_compile) 2>conftest.er1
9495 grep -v '^ *+' conftest.er1 >conftest.err
9497 cat conftest.err >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); } &&
9500 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; } &&
9506 { ac_try='test -s conftest.$ac_objext'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9514 cat >conftest.$ac_ext <<_ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9520 $ac_includes_default
9524 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
9531 rm -f conftest.$ac_objext
9532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9533 (eval $ac_compile) 2>conftest.er1
9535 grep -v '^ *+' conftest.er1 >conftest.err
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } &&
9540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; } &&
9546 { ac_try='test -s conftest.$ac_objext'
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; }; then
9552 ac_lo=$ac_mid; break
9554 echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.$ac_ext >&5
9557 ac_hi=`expr '(' $ac_mid ')' - 1`
9558 if test $ac_mid -le $ac_hi; then
9562 ac_mid=`expr 2 '*' $ac_mid`
9564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9567 echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.$ac_ext >&5
9572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9575 # Binary search between lo and hi bounds.
9576 while test "x$ac_lo" != "x$ac_hi"; do
9577 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9578 cat >conftest.$ac_ext <<_ACEOF
9581 cat confdefs.h >>conftest.$ac_ext
9582 cat >>conftest.$ac_ext <<_ACEOF
9583 /* end confdefs.h. */
9584 $ac_includes_default
9588 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9595 rm -f conftest.$ac_objext
9596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9597 (eval $ac_compile) 2>conftest.er1
9599 grep -v '^ *+' conftest.er1 >conftest.err
9601 cat conftest.err >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } &&
9604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; } &&
9610 { ac_try='test -s conftest.$ac_objext'
9611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; }; then
9618 echo "$as_me: failed program was:" >&5
9619 sed 's/^/| /' conftest.$ac_ext >&5
9621 ac_lo=`expr '(' $ac_mid ')' + 1`
9623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9626 ?*) ac_cv_sizeof_int_p=$ac_lo;;
9627 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9628 See \`config.log' for more details." >&5
9629 echo "$as_me: error: cannot compute sizeof (int *), 77
9630 See \`config.log' for more details." >&2;}
9631 { (exit 1); exit 1; }; } ;;
9634 if test "$cross_compiling" = yes; then
9635 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9636 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
9637 { (exit 1); exit 1; }; }
9639 cat >conftest.$ac_ext <<_ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h. */
9645 $ac_includes_default
9646 long longval () { return (long) (sizeof (int *)); }
9647 unsigned long ulongval () { return (long) (sizeof (int *)); }
9654 FILE *f = fopen ("conftest.val", "w");
9657 if (((long) (sizeof (int *))) < 0)
9659 long i = longval ();
9660 if (i != ((long) (sizeof (int *))))
9662 fprintf (f, "%ld\n", i);
9666 unsigned long i = ulongval ();
9667 if (i != ((long) (sizeof (int *))))
9669 fprintf (f, "%lu\n", i);
9671 exit (ferror (f) || fclose (f) != 0);
9677 rm -f conftest$ac_exeext
9678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9679 (eval $ac_link) 2>&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; }; then
9688 ac_cv_sizeof_int_p=`cat conftest.val`
9690 echo "$as_me: program exited with status $ac_status" >&5
9691 echo "$as_me: failed program was:" >&5
9692 sed 's/^/| /' conftest.$ac_ext >&5
9695 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9696 See \`config.log' for more details." >&5
9697 echo "$as_me: error: cannot compute sizeof (int *), 77
9698 See \`config.log' for more details." >&2;}
9699 { (exit 1); exit 1; }; }
9701 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9706 ac_cv_sizeof_int_p=0
9709 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9710 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
9711 cat >>confdefs.h <<_ACEOF
9712 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
9718 echo "$as_me:$LINENO: checking for int16_t" >&5
9719 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
9720 if test "${rxvt_cv_int16_t+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 cat >conftest.$ac_ext <<_ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9738 rm -f conftest.$ac_objext
9739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9740 (eval $ac_compile) 2>conftest.er1
9742 grep -v '^ *+' conftest.er1 >conftest.err
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } &&
9747 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; } &&
9753 { ac_try='test -s conftest.$ac_objext'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; }; then
9761 echo "$as_me: failed program was:" >&5
9762 sed 's/^/| /' conftest.$ac_ext >&5
9764 if test "$ac_cv_sizeof_char" -ge 2; then
9765 rxvt_cv_int16_t=" char"
9767 if test "$ac_cv_sizeof_short" -ge 2; then
9768 rxvt_cv_int16_t=" short"
9770 if test "$ac_cv_sizeof_int" -ge 2; then
9771 rxvt_cv_int16_t=" int"
9773 if test "$ac_cv_sizeof_long" -ge 2; then
9774 rxvt_cv_int16_t=" long"
9776 if test "$ac_cv_sizeof_long_long" -ge 2; then
9777 rxvt_cv_int16_t=" long long"
9779 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9788 echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9789 echo "${ECHO_T}$rxvt_cv_int16_t" >&6
9790 if test x"$rxvt_cv_int16_t" != xyes; then
9791 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9793 if test x"" = x; then
9794 rxvt_int16_typedef="/* typedef short int16_t; */"
9796 rxvt_int16_typedef="/* typedef short int16_t; */"
9800 echo "$as_me:$LINENO: checking for uint16_t" >&5
9801 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
9802 if test "${rxvt_cv_uint16_t+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 cat >conftest.$ac_ext <<_ACEOF
9808 cat confdefs.h >>conftest.$ac_ext
9809 cat >>conftest.$ac_ext <<_ACEOF
9810 /* end confdefs.h. */
9820 rm -f conftest.$ac_objext
9821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9822 (eval $ac_compile) 2>conftest.er1
9824 grep -v '^ *+' conftest.er1 >conftest.err
9826 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } &&
9829 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; } &&
9835 { ac_try='test -s conftest.$ac_objext'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
9841 rxvt_cv_uint16_t=yes
9843 echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9846 if test "$ac_cv_sizeof_char" -ge 2; then
9847 rxvt_cv_uint16_t="unsigned char"
9849 if test "$ac_cv_sizeof_short" -ge 2; then
9850 rxvt_cv_uint16_t="unsigned short"
9852 if test "$ac_cv_sizeof_int" -ge 2; then
9853 rxvt_cv_uint16_t="unsigned int"
9855 if test "$ac_cv_sizeof_long" -ge 2; then
9856 rxvt_cv_uint16_t="unsigned long"
9858 if test "$ac_cv_sizeof_long_long" -ge 2; then
9859 rxvt_cv_uint16_t="unsigned long long"
9861 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9870 echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9871 echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
9872 if test x"$rxvt_cv_uint16_t" != xyes; then
9873 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9875 if test x"unsigned" = x; then
9876 rxvt_uint16_typedef="/* typedef short uint16_t; */"
9878 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9882 echo "$as_me:$LINENO: checking for int32_t" >&5
9883 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
9884 if test "${rxvt_cv_int32_t+set}" = set; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9887 cat >conftest.$ac_ext <<_ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h. */
9902 rm -f conftest.$ac_objext
9903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9904 (eval $ac_compile) 2>conftest.er1
9906 grep -v '^ *+' conftest.er1 >conftest.err
9908 cat conftest.err >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } &&
9911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; } &&
9917 { ac_try='test -s conftest.$ac_objext'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9925 echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9928 if test "$ac_cv_sizeof_char" -ge 4; then
9929 rxvt_cv_int32_t=" char"
9931 if test "$ac_cv_sizeof_short" -ge 4; then
9932 rxvt_cv_int32_t=" short"
9934 if test "$ac_cv_sizeof_int" -ge 4; then
9935 rxvt_cv_int32_t=" int"
9937 if test "$ac_cv_sizeof_long" -ge 4; then
9938 rxvt_cv_int32_t=" long"
9940 if test "$ac_cv_sizeof_long_long" -ge 4; then
9941 rxvt_cv_int32_t=" long long"
9943 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9952 echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9953 echo "${ECHO_T}$rxvt_cv_int32_t" >&6
9954 if test x"$rxvt_cv_int32_t" != xyes; then
9955 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9957 if test x"" = x; then
9958 rxvt_int32_typedef="/* typedef int int32_t; */"
9960 rxvt_int32_typedef="/* typedef int int32_t; */"
9964 echo "$as_me:$LINENO: checking for uint32_t" >&5
9965 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
9966 if test "${rxvt_cv_uint32_t+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 cat >conftest.$ac_ext <<_ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9984 rm -f conftest.$ac_objext
9985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9986 (eval $ac_compile) 2>conftest.er1
9988 grep -v '^ *+' conftest.er1 >conftest.err
9990 cat conftest.err >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } &&
9993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; } &&
9999 { ac_try='test -s conftest.$ac_objext'
10000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 (eval $ac_try) 2>&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; }; then
10005 rxvt_cv_uint32_t=yes
10007 echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10010 if test "$ac_cv_sizeof_char" -ge 4; then
10011 rxvt_cv_uint32_t="unsigned char"
10013 if test "$ac_cv_sizeof_short" -ge 4; then
10014 rxvt_cv_uint32_t="unsigned short"
10016 if test "$ac_cv_sizeof_int" -ge 4; then
10017 rxvt_cv_uint32_t="unsigned int"
10019 if test "$ac_cv_sizeof_long" -ge 4; then
10020 rxvt_cv_uint32_t="unsigned long"
10022 if test "$ac_cv_sizeof_long_long" -ge 4; then
10023 rxvt_cv_uint32_t="unsigned long long"
10025 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
10032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10034 echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
10035 echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
10036 if test x"$rxvt_cv_uint32_t" != xyes; then
10037 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
10039 if test x"unsigned" = x; then
10040 rxvt_uint32_typedef="/* typedef int uint32_t; */"
10042 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
10046 if test "$ac_cv_sizeof_int_p" -eq 8; then
10047 rxvt_intp_define="#define intp_t int64_t"
10048 rxvt_u_intp_define="#define u_intp_t u_int64_t"
10050 if test "$ac_cv_sizeof_int_p" -eq 4; then
10051 rxvt_intp_define="#define intp_t int32_t"
10052 rxvt_u_intp_define="#define u_intp_t u_int32_t"
10054 if test "$ac_cv_sizeof_int_p" -eq 2; then
10055 rxvt_intp_define="#define intp_t int16_t"
10056 rxvt_u_intp_define="#define u_intp_t u_int16_t"
10058 rxvt_intp_define="#error set intp_t"
10059 rxvt_u_intp_define="#error set u_intp_t"
10066 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10067 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10068 if test "${ac_cv_type_signal+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 cat >conftest.$ac_ext <<_ACEOF
10074 cat confdefs.h >>conftest.$ac_ext
10075 cat >>conftest.$ac_ext <<_ACEOF
10076 /* end confdefs.h. */
10077 #include <sys/types.h>
10078 #include <signal.h>
10083 extern "C" void (*signal (int, void (*)(int)))(int);
10085 void (*signal ()) ();
10096 rm -f conftest.$ac_objext
10097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10098 (eval $ac_compile) 2>conftest.er1
10100 grep -v '^ *+' conftest.er1 >conftest.err
10102 cat conftest.err >&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } &&
10105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107 (eval $ac_try) 2>&5
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; } &&
10111 { ac_try='test -s conftest.$ac_objext'
10112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; }; then
10117 ac_cv_type_signal=void
10119 echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10122 ac_cv_type_signal=int
10124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10126 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10127 echo "${ECHO_T}$ac_cv_type_signal" >&6
10129 cat >>confdefs.h <<_ACEOF
10130 #define RETSIGTYPE $ac_cv_type_signal
10172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10173 echo "$as_me:$LINENO: checking for $ac_func" >&5
10174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10175 if eval "test \"\${$as_ac_var+set}\" = set"; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
10178 cat >conftest.$ac_ext <<_ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10186 #define $ac_func innocuous_$ac_func
10188 /* System header to define __stub macros and hopefully few prototypes,
10189 which can conflict with char $ac_func (); below.
10190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10191 <limits.h> exists even on freestanding compilers. */
10194 # include <limits.h>
10196 # include <assert.h>
10201 /* Override any gcc2 internal prototype to avoid an error. */
10206 /* We use char because int might match the return type of a gcc2
10207 builtin and then its argument prototype would still apply. */
10209 /* The GNU C library defines this for functions which it implements
10210 to always fail with ENOSYS. Some functions are actually named
10211 something starting with __ and the normal name is an alias. */
10212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10215 char (*f) () = $ac_func;
10224 return f != $ac_func;
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231 (eval $ac_link) 2>conftest.er1
10233 grep -v '^ *+' conftest.er1 >conftest.err
10235 cat conftest.err >&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } &&
10238 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; } &&
10244 { ac_try='test -s conftest$ac_exeext'
10245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10246 (eval $ac_try) 2>&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); }; }; then
10250 eval "$as_ac_var=yes"
10252 echo "$as_me: failed program was:" >&5
10253 sed 's/^/| /' conftest.$ac_ext >&5
10255 eval "$as_ac_var=no"
10257 rm -f conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
10260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10261 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10262 if test `eval echo '${'$as_ac_var'}'` = yes; then
10263 cat >>confdefs.h <<_ACEOF
10264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10272 if test "${ac_cv_header_utmp_h+set}" = set; then
10273 echo "$as_me:$LINENO: checking for utmp.h" >&5
10274 echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10275 if test "${ac_cv_header_utmp_h+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10279 echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10281 # Is the header compilable?
10282 echo "$as_me:$LINENO: checking utmp.h usability" >&5
10283 echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
10284 cat >conftest.$ac_ext <<_ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10290 $ac_includes_default
10293 rm -f conftest.$ac_objext
10294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10295 (eval $ac_compile) 2>conftest.er1
10297 grep -v '^ *+' conftest.er1 >conftest.err
10299 cat conftest.err >&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } &&
10302 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; } &&
10308 { ac_try='test -s conftest.$ac_objext'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; }; then
10314 ac_header_compiler=yes
10316 echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10319 ac_header_compiler=no
10321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10323 echo "${ECHO_T}$ac_header_compiler" >&6
10325 # Is the header present?
10326 echo "$as_me:$LINENO: checking utmp.h presence" >&5
10327 echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
10328 cat >conftest.$ac_ext <<_ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h. */
10336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10339 grep -v '^ *+' conftest.er1 >conftest.err
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } >/dev/null; then
10344 if test -s conftest.err; then
10345 ac_cpp_err=$ac_cxx_preproc_warn_flag
10346 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10353 if test -z "$ac_cpp_err"; then
10354 ac_header_preproc=yes
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10359 ac_header_preproc=no
10361 rm -f conftest.err conftest.$ac_ext
10362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10363 echo "${ECHO_T}$ac_header_preproc" >&6
10365 # So? What about this header?
10366 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10368 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
10369 echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10370 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
10371 echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
10372 ac_header_preproc=yes
10375 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
10376 echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
10377 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
10378 echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
10379 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
10380 echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
10381 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
10382 echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
10383 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
10384 echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
10385 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
10386 echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
10389 ## ------------------------------------------ ##
10390 ## Report this to the AC_PACKAGE_NAME lists. ##
10391 ## ------------------------------------------ ##
10394 sed "s/^/$as_me: WARNING: /" >&2
10397 echo "$as_me:$LINENO: checking for utmp.h" >&5
10398 echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10399 if test "${ac_cv_header_utmp_h+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10402 ac_cv_header_utmp_h=$ac_header_preproc
10404 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10405 echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10408 if test $ac_cv_header_utmp_h = yes; then
10409 echo "$as_me:$LINENO: checking for struct utmp" >&5
10410 echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
10411 if test "${rxvt_cv_struct_utmp+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 cat >conftest.$ac_ext <<_ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h. */
10420 #include <sys/types.h>
10421 #include <stdint.h>
10431 rm -f conftest.$ac_objext
10432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10433 (eval $ac_compile) 2>conftest.er1
10435 grep -v '^ *+' conftest.er1 >conftest.err
10437 cat conftest.err >&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } &&
10440 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442 (eval $ac_try) 2>&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; } &&
10446 { ac_try='test -s conftest.$ac_objext'
10447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448 (eval $ac_try) 2>&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; }; then
10452 rxvt_cv_struct_utmp=yes
10454 echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.$ac_ext >&5
10457 rxvt_cv_struct_utmp=no
10459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10461 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
10462 echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
10463 if test x$rxvt_cv_struct_utmp = xyes; then
10465 cat >>confdefs.h <<\_ACEOF
10466 #define HAVE_STRUCT_UTMP 1
10472 echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
10473 echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
10474 if test "${rxvt_cv_struct_utmp_host+set}" = set; then
10475 echo $ECHO_N "(cached) $ECHO_C" >&6
10477 cat >conftest.$ac_ext <<_ACEOF
10480 cat confdefs.h >>conftest.$ac_ext
10481 cat >>conftest.$ac_ext <<_ACEOF
10482 /* end confdefs.h. */
10483 #include <sys/types.h>
10488 struct utmp ut; ut.ut_host;
10493 rm -f conftest.$ac_objext
10494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10495 (eval $ac_compile) 2>conftest.er1
10497 grep -v '^ *+' conftest.er1 >conftest.err
10499 cat conftest.err >&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); } &&
10502 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10504 (eval $ac_try) 2>&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; } &&
10508 { ac_try='test -s conftest.$ac_objext'
10509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510 (eval $ac_try) 2>&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); }; }; then
10514 rxvt_cv_struct_utmp_host=yes
10516 echo "$as_me: failed program was:" >&5
10517 sed 's/^/| /' conftest.$ac_ext >&5
10519 rxvt_cv_struct_utmp_host=no
10521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10523 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
10524 echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
10525 if test x$rxvt_cv_struct_utmp_host = xyes; then
10527 cat >>confdefs.h <<\_ACEOF
10528 #define HAVE_UTMP_HOST 1
10533 echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
10534 echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
10535 if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 cat >conftest.$ac_ext <<_ACEOF
10541 cat confdefs.h >>conftest.$ac_ext
10542 cat >>conftest.$ac_ext <<_ACEOF
10543 /* end confdefs.h. */
10544 #include <sys/types.h>
10549 struct utmp ut; ut.ut_pid;
10554 rm -f conftest.$ac_objext
10555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10556 (eval $ac_compile) 2>conftest.er1
10558 grep -v '^ *+' conftest.er1 >conftest.err
10560 cat conftest.err >&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } &&
10563 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565 (eval $ac_try) 2>&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; } &&
10569 { ac_try='test -s conftest.$ac_objext'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; }; then
10575 rxvt_cv_struct_utmp_pid=yes
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10580 rxvt_cv_struct_utmp_pid=no
10582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10584 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
10585 echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
10586 if test x$rxvt_cv_struct_utmp_pid = xyes; then
10588 cat >>confdefs.h <<\_ACEOF
10589 #define HAVE_UTMP_PID 1
10598 if test "${ac_cv_header_utmpx_h+set}" = set; then
10599 echo "$as_me:$LINENO: checking for utmpx.h" >&5
10600 echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10601 if test "${ac_cv_header_utmpx_h+set}" = set; then
10602 echo $ECHO_N "(cached) $ECHO_C" >&6
10604 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10605 echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10607 # Is the header compilable?
10608 echo "$as_me:$LINENO: checking utmpx.h usability" >&5
10609 echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
10610 cat >conftest.$ac_ext <<_ACEOF
10613 cat confdefs.h >>conftest.$ac_ext
10614 cat >>conftest.$ac_ext <<_ACEOF
10615 /* end confdefs.h. */
10616 $ac_includes_default
10619 rm -f conftest.$ac_objext
10620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10621 (eval $ac_compile) 2>conftest.er1
10623 grep -v '^ *+' conftest.er1 >conftest.err
10625 cat conftest.err >&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } &&
10628 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630 (eval $ac_try) 2>&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; } &&
10634 { ac_try='test -s conftest.$ac_objext'
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }; then
10640 ac_header_compiler=yes
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10645 ac_header_compiler=no
10647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10649 echo "${ECHO_T}$ac_header_compiler" >&6
10651 # Is the header present?
10652 echo "$as_me:$LINENO: checking utmpx.h presence" >&5
10653 echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
10654 cat >conftest.$ac_ext <<_ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h. */
10662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10665 grep -v '^ *+' conftest.er1 >conftest.err
10667 cat conftest.err >&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } >/dev/null; then
10670 if test -s conftest.err; then
10671 ac_cpp_err=$ac_cxx_preproc_warn_flag
10672 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10679 if test -z "$ac_cpp_err"; then
10680 ac_header_preproc=yes
10682 echo "$as_me: failed program was:" >&5
10683 sed 's/^/| /' conftest.$ac_ext >&5
10685 ac_header_preproc=no
10687 rm -f conftest.err conftest.$ac_ext
10688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10689 echo "${ECHO_T}$ac_header_preproc" >&6
10691 # So? What about this header?
10692 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10694 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
10695 echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10696 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
10697 echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
10698 ac_header_preproc=yes
10701 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
10702 echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
10703 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
10704 echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
10705 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
10706 echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
10707 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
10708 echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
10709 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
10710 echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
10711 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
10712 echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
10715 ## ------------------------------------------ ##
10716 ## Report this to the AC_PACKAGE_NAME lists. ##
10717 ## ------------------------------------------ ##
10720 sed "s/^/$as_me: WARNING: /" >&2
10723 echo "$as_me:$LINENO: checking for utmpx.h" >&5
10724 echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10725 if test "${ac_cv_header_utmpx_h+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10728 ac_cv_header_utmpx_h=$ac_header_preproc
10730 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10731 echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10734 if test $ac_cv_header_utmpx_h = yes; then
10735 echo "$as_me:$LINENO: checking for struct utmpx" >&5
10736 echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
10737 if test "${rxvt_cv_struct_utmpx+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10740 cat >conftest.$ac_ext <<_ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10746 #include <sys/types.h>
10756 rm -f conftest.$ac_objext
10757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10758 (eval $ac_compile) 2>conftest.er1
10760 grep -v '^ *+' conftest.er1 >conftest.err
10762 cat conftest.err >&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } &&
10765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767 (eval $ac_try) 2>&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); }; } &&
10771 { ac_try='test -s conftest.$ac_objext'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; }; then
10777 rxvt_cv_struct_utmpx=yes
10779 echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.$ac_ext >&5
10782 rxvt_cv_struct_utmpx=no
10784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10786 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
10787 echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
10788 if test x$rxvt_cv_struct_utmpx = xyes; then
10790 cat >>confdefs.h <<\_ACEOF
10791 #define HAVE_STRUCT_UTMPX 1
10797 echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
10798 echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
10799 if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10802 cat >conftest.$ac_ext <<_ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
10807 /* end confdefs.h. */
10808 #include <sys/types.h>
10813 struct utmpx utx; utx.ut_host;
10818 rm -f conftest.$ac_objext
10819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10820 (eval $ac_compile) 2>conftest.er1
10822 grep -v '^ *+' conftest.er1 >conftest.err
10824 cat conftest.err >&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); } &&
10827 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; } &&
10833 { ac_try='test -s conftest.$ac_objext'
10834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10835 (eval $ac_try) 2>&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); }; }; then
10839 rxvt_cv_struct_utmpx_host=yes
10841 echo "$as_me: failed program was:" >&5
10842 sed 's/^/| /' conftest.$ac_ext >&5
10844 rxvt_cv_struct_utmpx_host=no
10846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10848 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
10849 echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
10850 if test x$rxvt_cv_struct_utmpx_host = xyes; then
10852 cat >>confdefs.h <<\_ACEOF
10853 #define HAVE_UTMPX_HOST 1
10858 echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10859 echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10860 if test "${rxvt_cv_struct_utmpx_session+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 cat >conftest.$ac_ext <<_ACEOF
10866 cat confdefs.h >>conftest.$ac_ext
10867 cat >>conftest.$ac_ext <<_ACEOF
10868 /* end confdefs.h. */
10869 #include <sys/types.h>
10874 struct utmpx utx; utx.ut_session;
10879 rm -f conftest.$ac_objext
10880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10881 (eval $ac_compile) 2>conftest.er1
10883 grep -v '^ *+' conftest.er1 >conftest.err
10885 cat conftest.err >&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); } &&
10888 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890 (eval $ac_try) 2>&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; } &&
10894 { ac_try='test -s conftest.$ac_objext'
10895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896 (eval $ac_try) 2>&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; }; then
10900 rxvt_cv_struct_utmpx_session=yes
10902 echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10905 rxvt_cv_struct_utmpx_session=no
10907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10909 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5
10910 echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6
10911 if test x$rxvt_cv_struct_utmpx_session = xyes; then
10913 cat >>confdefs.h <<\_ACEOF
10914 #define HAVE_UTMPX_SESSION 1
10922 echo "$as_me:$LINENO: checking for struct lastlog" >&5
10923 echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
10924 if test "${rxvt_cv_struct_lastlog+set}" = set; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10927 cat >conftest.$ac_ext <<_ACEOF
10930 cat confdefs.h >>conftest.$ac_ext
10931 cat >>conftest.$ac_ext <<_ACEOF
10932 /* end confdefs.h. */
10933 #include <sys/types.h>
10935 #ifdef HAVE_LASTLOG_H
10936 #include <lastlog.h>
10947 rm -f conftest.$ac_objext
10948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10949 (eval $ac_compile) 2>conftest.er1
10951 grep -v '^ *+' conftest.er1 >conftest.err
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } &&
10956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958 (eval $ac_try) 2>&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; } &&
10962 { ac_try='test -s conftest.$ac_objext'
10963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964 (eval $ac_try) 2>&5
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; }; then
10968 rxvt_cv_struct_lastlog=yes
10970 echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.$ac_ext >&5
10973 rxvt_cv_struct_lastlog=no
10975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10977 echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
10978 echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
10979 if test x$rxvt_cv_struct_lastlog = xyes; then
10981 cat >>confdefs.h <<\_ACEOF
10982 #define HAVE_STRUCT_LASTLOG 1
10987 echo "$as_me:$LINENO: checking for struct lastlogx" >&5
10988 echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
10989 if test "${rxvt_cv_struct_lastlogx+set}" = set; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10992 cat >conftest.$ac_ext <<_ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10998 #include <sys/types.h>
11000 #ifdef HAVE_LASTLOG_H
11001 #include <lastlog.h>
11007 struct lastlogx ll;
11012 rm -f conftest.$ac_objext
11013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11014 (eval $ac_compile) 2>conftest.er1
11016 grep -v '^ *+' conftest.er1 >conftest.err
11018 cat conftest.err >&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } &&
11021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; } &&
11027 { ac_try='test -s conftest.$ac_objext'
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 rxvt_cv_struct_lastlogx=yes
11035 echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11038 rxvt_cv_struct_lastlogx=no
11040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11042 echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
11043 echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
11044 if test x$rxvt_cv_struct_lastlogx = xyes; then
11046 cat >>confdefs.h <<\_ACEOF
11047 #define HAVE_STRUCT_LASTLOGX 1
11053 echo "$as_me:$LINENO: checking where utmp is located" >&5
11054 echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
11055 if test "${rxvt_cv_path_utmp+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11058 if test "$cross_compiling" = yes; then
11059 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5
11060 echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
11062 cat >conftest.$ac_ext <<_ACEOF
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h. */
11069 #include <sys/types.h>
11074 char **u, *utmplist[] = {
11075 "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
11076 FILE *a, *f=fopen("conftestval", "w");
11079 fprintf(f, "%s\n", UTMP_FILE);
11083 fprintf(f, "%s\n", _PATH_UTMP);
11086 for (u = utmplist; *u; u++) {
11087 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11088 fprintf(f, "%s\n", *u);
11095 rm -f conftest$ac_exeext
11096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11097 (eval $ac_link) 2>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102 (eval $ac_try) 2>&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; }; then
11106 rxvt_cv_path_utmp=`cat conftestval`
11108 echo "$as_me: program exited with status $ac_status" >&5
11109 echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.$ac_ext >&5
11112 ( exit $ac_status )
11115 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11118 echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
11119 echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
11120 if test x$rxvt_cv_path_utmp != x; then
11122 cat >>confdefs.h <<_ACEOF
11123 #define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
11129 echo "$as_me:$LINENO: checking where utmpx is located" >&5
11130 echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
11131 if test "${rxvt_cv_path_utmpx+set}" = set; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6
11134 if test "$cross_compiling" = yes; then
11135 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5
11136 echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;}
11138 cat >conftest.$ac_ext <<_ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h. */
11145 #include <sys/types.h>
11148 #include <sys/stat.h>
11149 #ifdef HAVE_STRING_H
11150 #include <string.h>
11154 char **u, *p, *utmplist[] = {
11161 "/var/adm/utmpx", "/etc/utmpx", NULL };
11162 FILE *a, *f=fopen("conftestval", "w");
11163 struct stat statu, statux;
11165 for (u = utmplist; *u; u++) {
11166 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11167 if (stat(*u, &statux) < 0)
11170 p[strlen(p) - 1] = '\0';
11171 if (stat(p, &statu) >= 0
11172 && (statu.st_mtime - statux.st_mtime > 86400))
11174 fprintf(f, "%s\n", *u);
11181 rm -f conftest$ac_exeext
11182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11183 (eval $ac_link) 2>&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
11192 rxvt_cv_path_utmpx=`cat conftestval`
11194 echo "$as_me: program exited with status $ac_status" >&5
11195 echo "$as_me: failed program was:" >&5
11196 sed 's/^/| /' conftest.$ac_ext >&5
11198 ( exit $ac_status )
11199 rxvt_cv_path_utmpx=
11201 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11204 echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
11205 echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
11206 if test x$rxvt_cv_path_utmpx != x; then
11208 cat >>confdefs.h <<_ACEOF
11209 #define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
11215 echo "$as_me:$LINENO: checking where wtmp is located" >&5
11216 echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
11217 if test "${rxvt_cv_path_wtmp+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11220 if test "$cross_compiling" = yes; then
11221 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5
11222 echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;}
11224 cat >conftest.$ac_ext <<_ACEOF
11227 cat confdefs.h >>conftest.$ac_ext
11228 cat >>conftest.$ac_ext <<_ACEOF
11229 /* end confdefs.h. */
11231 #include <sys/types.h>
11238 char **w, *wtmplist[] = {
11239 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
11240 FILE *a, *f=fopen("conftestval", "w");
11243 fprintf(f, "%s\n", WTMP_FILE);
11247 fprintf(f, "%s\n", _PATH_WTMP);
11250 for (w = wtmplist; *w; w++) {
11251 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11252 fprintf(f, "%s\n", *w);
11259 rm -f conftest$ac_exeext
11260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11261 (eval $ac_link) 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266 (eval $ac_try) 2>&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; }; then
11270 rxvt_cv_path_wtmp=`cat conftestval`
11272 echo "$as_me: program exited with status $ac_status" >&5
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11276 ( exit $ac_status )
11279 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11282 echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
11283 echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
11284 if test x$rxvt_cv_path_wtmp != x; then
11286 cat >>confdefs.h <<_ACEOF
11287 #define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
11292 echo "$as_me:$LINENO: checking where wtmpx is located" >&5
11293 echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
11294 if test "${rxvt_cv_path_wtmpx+set}" = set; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 if test "$cross_compiling" = yes; then
11298 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5
11299 echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;}
11301 cat >conftest.$ac_ext <<_ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h. */
11308 #ifdef HAVE_UTMPX_H
11314 char **w, *wtmplist[] = {
11315 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
11316 FILE *a, *f=fopen("conftestval", "w");
11319 fprintf(f, "%s\n", WTMPX_FILE);
11323 fprintf(f, "%s\n", _PATH_WTMPX);
11326 for (w = wtmplist; *w; w++) {
11327 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11328 fprintf(f, "%s\n", *w);
11335 rm -f conftest$ac_exeext
11336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11337 (eval $ac_link) 2>&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; }; then
11346 rxvt_cv_path_wtmpx=`cat conftestval`
11348 echo "$as_me: program exited with status $ac_status" >&5
11349 echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11352 ( exit $ac_status )
11353 rxvt_cv_path_wtmpx=
11355 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11358 echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
11359 echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
11360 if test x$rxvt_cv_path_wtmpx != x; then
11362 cat >>confdefs.h <<_ACEOF
11363 #define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
11368 echo "$as_me:$LINENO: checking where lastlog is located" >&5
11369 echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
11370 if test "${rxvt_cv_path_lastlog+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 if test "$cross_compiling" = yes; then
11374 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5
11375 echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;}
11377 cat >conftest.$ac_ext <<_ACEOF
11380 cat confdefs.h >>conftest.$ac_ext
11381 cat >>conftest.$ac_ext <<_ACEOF
11382 /* end confdefs.h. */
11384 #include <sys/types.h>
11385 #ifdef HAVE_UTMPX_H
11387 #elif defined(HAVE_UTMP_H)
11390 #ifdef HAVE_LASTLOG_H
11391 #include <lastlog.h>
11396 char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
11397 FILE *a, *f=fopen("conftestval", "w");
11399 #ifdef LASTLOG_FILE
11400 fprintf(f, "%s\n", LASTLOG_FILE);
11403 #ifdef _PATH_LASTLOG
11404 fprintf(f, "%s\n", _PATH_LASTLOG);
11407 for (w = lastloglist; *w; w++) {
11408 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11409 fprintf(f, "%s\n", *w);
11416 rm -f conftest$ac_exeext
11417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11418 (eval $ac_link) 2>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423 (eval $ac_try) 2>&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); }; }; then
11427 rxvt_cv_path_lastlog=`cat conftestval`
11429 echo "$as_me: program exited with status $ac_status" >&5
11430 echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11433 ( exit $ac_status )
11434 rxvt_cv_path_lastlog=
11436 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11439 echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
11440 echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
11441 if test x$rxvt_cv_path_lastlog != x; then
11443 cat >>confdefs.h <<_ACEOF
11444 #define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
11447 if test -d "$rxvt_cv_path_lastlog"; then
11449 cat >>confdefs.h <<\_ACEOF
11450 #define LASTLOG_IS_DIR 1
11456 echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11457 echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
11458 if test "${rxvt_cv_path_lastlogx+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 if test "$cross_compiling" = yes; then
11462 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5
11463 echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;}
11465 cat >conftest.$ac_ext <<_ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11472 #ifdef HAVE_UTMPX_H
11478 char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11479 FILE *a, *f=fopen("conftestval", "w");
11481 #ifdef LASTLOGX_FILE
11482 fprintf(f, "%s\n", LASTLOGX_FILE);
11485 #ifdef _PATH_LASTLOGX
11486 fprintf(f, "%s\n", _PATH_LASTLOGX);
11489 for (w = wtmplist; *w; w++) {
11490 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11491 fprintf(f, "%s\n", *w);
11498 rm -f conftest$ac_exeext
11499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11500 (eval $ac_link) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
11509 rxvt_cv_path_lastlogx=`cat conftestval`
11511 echo "$as_me: program exited with status $ac_status" >&5
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11515 ( exit $ac_status )
11516 rxvt_cv_path_lastlogx=
11518 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11521 echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
11522 echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
11523 if test x$rxvt_cv_path_lastlogx != x; then
11525 cat >>confdefs.h <<_ACEOF
11526 #define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
11532 echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11533 echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
11534 if test "${rxvt_cv_path_ttytab+set}" = set; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
11537 for ttys_file in /etc/ttys /etc/ttytab;
11539 if test -f "$ttys_file" ; then
11540 rxvt_cv_path_ttytab=$ttys_file
11546 echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11547 echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
11548 if test x$rxvt_cv_path_ttytab != x; then
11550 cat >>confdefs.h <<_ACEOF
11551 #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11558 ac_save_CFLAGS=$CFLAGS
11559 CFLAGS="$CFLAGS $X_CFLAGS"
11560 LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11561 if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
11562 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11564 echo "$as_me:$LINENO: checking for working Xlocale" >&5
11565 echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
11566 if test "${rxvt_cv_func_xlocale+set}" = set; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
11569 if test "$cross_compiling" = yes; then
11570 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5
11571 echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
11573 cat >conftest.$ac_ext <<_ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 #include <X11/Xlib.h>
11582 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11583 exit (XSupportsLocale() ? 0 : 1);
11587 rm -f conftest$ac_exeext
11588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11589 (eval $ac_link) 2>&5
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594 (eval $ac_try) 2>&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; }; then
11598 rxvt_cv_func_xlocale=yes
11600 echo "$as_me: program exited with status $ac_status" >&5
11601 echo "$as_me: failed program was:" >&5
11602 sed 's/^/| /' conftest.$ac_ext >&5
11604 ( exit $ac_status )
11605 rxvt_cv_func_xlocale=no
11607 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11610 echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11611 echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
11612 if test x$rxvt_cv_func_xlocale = xyes; then
11614 cat >>confdefs.h <<\_ACEOF
11615 #define HAVE_XLOCALE 1
11620 echo "$as_me:$LINENO: checking for working X setlocale" >&5
11621 echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6
11622 if test "${rxvt_cv_func_xsetlocale+set}" = set; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11625 cat >conftest.$ac_ext <<_ACEOF
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h. */
11632 #include <X11/Xlocale.h>
11636 setlocale(LC_CTYPE, "");
11641 rm -f conftest.$ac_objext conftest$ac_exeext
11642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11643 (eval $ac_link) 2>conftest.er1
11645 grep -v '^ *+' conftest.er1 >conftest.err
11647 cat conftest.err >&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } &&
11650 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; } &&
11656 { ac_try='test -s conftest$ac_exeext'
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; }; then
11662 rxvt_cv_func_xsetlocale=yes
11664 echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11667 rxvt_cv_func_xsetlocale=no
11669 rm -f conftest.err conftest.$ac_objext \
11670 conftest$ac_exeext conftest.$ac_ext
11672 echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
11673 echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6
11674 if test x$rxvt_cv_func_xsetlocale = xyes; then
11676 cat >>confdefs.h <<\_ACEOF
11677 #define HAVE_XSETLOCALE 1
11682 CFLAGS=$ac_save_CFLAGS
11684 echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11685 echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6
11686 if test "${rxvt_cv_func_setlocale+set}" = set; then
11687 echo $ECHO_N "(cached) $ECHO_C" >&6
11689 cat >conftest.$ac_ext <<_ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h. */
11699 setlocale(LC_CTYPE, "");
11704 rm -f conftest.$ac_objext conftest$ac_exeext
11705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11706 (eval $ac_link) 2>conftest.er1
11708 grep -v '^ *+' conftest.er1 >conftest.err
11710 cat conftest.err >&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } &&
11713 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715 (eval $ac_try) 2>&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; } &&
11719 { ac_try='test -s conftest$ac_exeext'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; }; then
11725 rxvt_cv_func_setlocale=yes
11727 echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11730 rxvt_cv_func_setlocale=no
11732 rm -f conftest.err conftest.$ac_objext \
11733 conftest$ac_exeext conftest.$ac_ext
11735 echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
11736 echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
11737 if test x$rxvt_cv_func_setlocale = xyes; then
11739 cat >>confdefs.h <<\_ACEOF
11740 #define HAVE_SETLOCALE 1
11745 echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
11746 echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6
11747 if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
11748 echo $ECHO_N "(cached) $ECHO_C" >&6
11750 cat >conftest.$ac_ext <<_ACEOF
11753 cat confdefs.h >>conftest.$ac_ext
11754 cat >>conftest.$ac_ext <<_ACEOF
11755 /* end confdefs.h. */
11756 #include <langinfo.h>
11760 nl_langinfo(CODESET);
11765 rm -f conftest.$ac_objext conftest$ac_exeext
11766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11767 (eval $ac_link) 2>conftest.er1
11769 grep -v '^ *+' conftest.er1 >conftest.err
11771 cat conftest.err >&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); } &&
11774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11776 (eval $ac_try) 2>&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; } &&
11780 { ac_try='test -s conftest$ac_exeext'
11781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782 (eval $ac_try) 2>&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; }; then
11786 rxvt_cv_func_nl_langinfo=yes
11788 echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11791 rxvt_cv_func_nl_langinfo=no
11793 rm -f conftest.err conftest.$ac_objext \
11794 conftest$ac_exeext conftest.$ac_ext
11796 echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
11797 echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6
11798 if test x$rxvt_cv_func_nl_langinfo = xyes; then
11800 cat >>confdefs.h <<\_ACEOF
11801 #define HAVE_NL_LANGINFO 1
11806 echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
11807 echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11808 if test "${rxvt_can_pass_fds+set}" = set; then
11809 echo $ECHO_N "(cached) $ECHO_C" >&6
11811 cat >conftest.$ac_ext <<_ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h. */
11818 #include <sys/types.h>
11819 #include <sys/socket.h>
11831 iov.iov_base = &data;
11834 msg.msg_iov = &iov;
11835 msg.msg_iovlen = 1;
11836 msg.msg_control = buf;
11837 msg.msg_controllen = sizeof buf;
11839 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11840 cmsg->cmsg_level = SOL_SOCKET;
11841 cmsg->cmsg_type = SCM_RIGHTS;
11842 cmsg->cmsg_len = 100;
11844 *(int *)CMSG_DATA (cmsg) = 5;
11846 return sendmsg (3, &msg, 0);
11853 rm -f conftest.$ac_objext conftest$ac_exeext
11854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11855 (eval $ac_link) 2>conftest.er1
11857 grep -v '^ *+' conftest.er1 >conftest.err
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
11862 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; } &&
11868 { ac_try='test -s conftest$ac_exeext'
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; }; then
11874 rxvt_can_pass_fds=yes
11876 echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11879 rxvt_can_pass_fds=no
11881 rm -f conftest.err conftest.$ac_objext \
11882 conftest$ac_exeext conftest.$ac_ext
11884 echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5
11885 echo "${ECHO_T}$rxvt_can_pass_fds" >&6
11886 if test x$rxvt_can_pass_fds = xyes; then
11888 cat >>confdefs.h <<\_ACEOF
11889 #define HAVE_UNIX_FDPASS 1
11893 { { echo "$as_me:$LINENO: error: urxvt requires unix-compliant filehandle passing ability" >&5
11894 echo "$as_me: error: urxvt requires unix-compliant filehandle passing ability" >&2;}
11895 { (exit 1); exit 1; }; }
11898 echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11899 echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11900 if test "${rxvt_broken_ximcb+set}" = set; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6
11903 cat >conftest.$ac_ext <<_ACEOF
11905 #include <X11/Xlib.h>
11907 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11911 cb.callback = im_destroy_cb;
11915 rm -f conftest.$ac_objext
11916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11917 (eval $ac_compile) 2>conftest.er1
11919 grep -v '^ *+' conftest.er1 >conftest.err
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } &&
11924 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; } &&
11930 { ac_try='test -s conftest.$ac_objext'
11931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932 (eval $ac_try) 2>&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; }; then
11936 rxvt_broken_ximcb=yes
11938 echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11941 rxvt_broken_ximcb=no
11943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11945 echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
11946 echo "${ECHO_T}$rxvt_broken_ximcb" >&6
11948 if test x$rxvt_broken_ximcb = xyes; then
11950 cat >>confdefs.h <<\_ACEOF
11951 #define XIMCB_PROTO_BROKEN 1
11956 if test x$ac_cv_func_getpt = xno -a x$ac_cv_func_posix_openpt = xno; then
11957 echo "$as_me:$LINENO: checking for openpty" >&5
11958 echo $ECHO_N "checking for openpty... $ECHO_C" >&6
11959 if test "${ac_cv_func_openpty+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11962 cat >conftest.$ac_ext <<_ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h. */
11968 /* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
11969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11970 #define openpty innocuous_openpty
11972 /* System header to define __stub macros and hopefully few prototypes,
11973 which can conflict with char openpty (); below.
11974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11975 <limits.h> exists even on freestanding compilers. */
11978 # include <limits.h>
11980 # include <assert.h>
11985 /* Override any gcc2 internal prototype to avoid an error. */
11990 /* We use char because int might match the return type of a gcc2
11991 builtin and then its argument prototype would still apply. */
11993 /* The GNU C library defines this for functions which it implements
11994 to always fail with ENOSYS. Some functions are actually named
11995 something starting with __ and the normal name is an alias. */
11996 #if defined (__stub_openpty) || defined (__stub___openpty)
11999 char (*f) () = openpty;
12008 return f != openpty;
12013 rm -f conftest.$ac_objext conftest$ac_exeext
12014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12015 (eval $ac_link) 2>conftest.er1
12017 grep -v '^ *+' conftest.er1 >conftest.err
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } &&
12022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; } &&
12028 { ac_try='test -s conftest$ac_exeext'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; }; then
12034 ac_cv_func_openpty=yes
12036 echo "$as_me: failed program was:" >&5
12037 sed 's/^/| /' conftest.$ac_ext >&5
12039 ac_cv_func_openpty=no
12041 rm -f conftest.err conftest.$ac_objext \
12042 conftest$ac_exeext conftest.$ac_ext
12044 echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
12045 echo "${ECHO_T}$ac_cv_func_openpty" >&6
12046 if test $ac_cv_func_openpty = yes; then
12049 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12050 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12051 if test "${ac_cv_lib_util_openpty+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12054 ac_check_lib_save_LIBS=$LIBS
12055 LIBS="-lutil $LIBS"
12056 cat >conftest.$ac_ext <<_ACEOF
12059 cat confdefs.h >>conftest.$ac_ext
12060 cat >>conftest.$ac_ext <<_ACEOF
12061 /* end confdefs.h. */
12063 /* Override any gcc2 internal prototype to avoid an error. */
12067 /* We use char because int might match the return type of a gcc2
12068 builtin and then its argument prototype would still apply. */
12078 rm -f conftest.$ac_objext conftest$ac_exeext
12079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12080 (eval $ac_link) 2>conftest.er1
12082 grep -v '^ *+' conftest.er1 >conftest.err
12084 cat conftest.err >&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); } &&
12087 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; } &&
12093 { ac_try='test -s conftest$ac_exeext'
12094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095 (eval $ac_try) 2>&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; }; then
12099 ac_cv_lib_util_openpty=yes
12101 echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12104 ac_cv_lib_util_openpty=no
12106 rm -f conftest.err conftest.$ac_objext \
12107 conftest$ac_exeext conftest.$ac_ext
12108 LIBS=$ac_check_lib_save_LIBS
12110 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12111 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12112 if test $ac_cv_lib_util_openpty = yes; then
12113 LIBS="$LIBS -lutil"
12120 echo "$as_me:$LINENO: checking for pty/tty type" >&5
12121 echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
12122 if test "${rxvt_cv_ptys+set}" = set; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12125 if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then
12126 rxvt_cv_ptys=OPENPTY
12127 else if test x$ac_cv_func_getpt = xyes; then
12129 else if test x$ac_cv_func_posix_openpt = xyes; then
12131 else if test x$ac_cv_func__getpty = xyes; then
12133 else if test -c /dev/ttyp20; then
12135 else if test -c /dev/ptym/clone; then
12137 else if test -c /dev/ptc -a -c /dev/pts; then
12139 else if test -c /dev/ptc -a -d /dev/pts; then
12141 else if test -c /dev/ptmx -a -c /dev/pts/0; then
12142 rxvt_cv_ptys=STREAMS
12143 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
12144 rxvt_cv_ptys=STREAMS
12159 echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
12160 echo "${ECHO_T}$rxvt_cv_ptys" >&6
12162 if test x$rxvt_cv_ptys = xGLIBC; then
12164 cat >>confdefs.h <<\_ACEOF
12165 #define PTYS_ARE_GETPT 1
12169 if test x$rxvt_cv_ptys = xPOSIX; then
12171 cat >>confdefs.h <<\_ACEOF
12172 #define PTYS_ARE_POSIX 1
12176 if test x$rxvt_cv_ptys = xOPENPTY; then
12178 cat >>confdefs.h <<\_ACEOF
12179 #define PTYS_ARE_OPENPTY 1
12183 if test x$rxvt_cv_ptys = xSCO; then
12185 cat >>confdefs.h <<\_ACEOF
12186 #define PTYS_ARE_NUMERIC 1
12190 if test x$rxvt_cv_ptys = xSTREAMS; then
12192 cat >>confdefs.h <<\_ACEOF
12193 #define PTYS_ARE_PTMX 1
12197 if test x$rxvt_cv_ptys = xPTC; then
12199 cat >>confdefs.h <<\_ACEOF
12200 #define PTYS_ARE_PTC 1
12204 if test x$rxvt_cv_ptys = xSGI4; then
12206 cat >>confdefs.h <<\_ACEOF
12207 #define PTYS_ARE__GETPTY 1
12211 if test x$rxvt_cv_ptys = xHPUX; then
12213 cat >>confdefs.h <<\_ACEOF
12214 #define PTYS_ARE_CLONE 1
12218 if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xPOSIX; then
12220 cat >>confdefs.h <<\_ACEOF
12221 #define PTYS_ARE_SEARCHED 1
12227 { echo "$as_me:$LINENO: checking for pty ranges..." >&5
12228 echo "$as_me: checking for pty ranges..." >&6;}
12229 ptys=`echo /dev/pty??`
12230 pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12231 pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
12232 if test x$pch1 != x; then
12234 cat >>confdefs.h <<_ACEOF
12235 #define PTYCHAR1 "$pch1"
12239 if test x$pch2 != x; then
12241 cat >>confdefs.h <<_ACEOF
12242 #define PTYCHAR2 "$pch2"
12247 if test x$support_xft = xyes; then
12248 LIBS="$LIBS `pkg-config xft --libs`"
12249 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
12252 for ac_header in X11/Xft/Xft.h
12254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12256 echo "$as_me:$LINENO: checking for $ac_header" >&5
12257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12264 # Is the header compilable?
12265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12267 cat >conftest.$ac_ext <<_ACEOF
12270 cat confdefs.h >>conftest.$ac_ext
12271 cat >>conftest.$ac_ext <<_ACEOF
12272 /* end confdefs.h. */
12273 $ac_includes_default
12274 #include <$ac_header>
12276 rm -f conftest.$ac_objext
12277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12278 (eval $ac_compile) 2>conftest.er1
12280 grep -v '^ *+' conftest.er1 >conftest.err
12282 cat conftest.err >&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } &&
12285 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; } &&
12291 { ac_try='test -s conftest.$ac_objext'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; }; then
12297 ac_header_compiler=yes
12299 echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12302 ac_header_compiler=no
12304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12306 echo "${ECHO_T}$ac_header_compiler" >&6
12308 # Is the header present?
12309 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12311 cat >conftest.$ac_ext <<_ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12317 #include <$ac_header>
12319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12322 grep -v '^ *+' conftest.er1 >conftest.err
12324 cat conftest.err >&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); } >/dev/null; then
12327 if test -s conftest.err; then
12328 ac_cpp_err=$ac_cxx_preproc_warn_flag
12329 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12336 if test -z "$ac_cpp_err"; then
12337 ac_header_preproc=yes
12339 echo "$as_me: failed program was:" >&5
12340 sed 's/^/| /' conftest.$ac_ext >&5
12342 ac_header_preproc=no
12344 rm -f conftest.err conftest.$ac_ext
12345 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12346 echo "${ECHO_T}$ac_header_preproc" >&6
12348 # So? What about this header?
12349 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12355 ac_header_preproc=yes
12358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12361 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12363 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12365 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12369 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12372 ## ------------------------------------------ ##
12373 ## Report this to the AC_PACKAGE_NAME lists. ##
12374 ## ------------------------------------------ ##
12377 sed "s/^/$as_me: WARNING: /" >&2
12380 echo "$as_me:$LINENO: checking for $ac_header" >&5
12381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12385 eval "$as_ac_Header=\$ac_header_preproc"
12387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12392 cat >>confdefs.h <<_ACEOF
12393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12403 echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12404 echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
12405 if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12406 echo $ECHO_N "(cached) $ECHO_C" >&6
12408 ac_check_lib_save_LIBS=$LIBS
12410 cat >conftest.$ac_ext <<_ACEOF
12413 cat confdefs.h >>conftest.$ac_ext
12414 cat >>conftest.$ac_ext <<_ACEOF
12415 /* end confdefs.h. */
12417 /* Override any gcc2 internal prototype to avoid an error. */
12421 /* We use char because int might match the return type of a gcc2
12422 builtin and then its argument prototype would still apply. */
12423 char XftDrawString32 ();
12427 XftDrawString32 ();
12432 rm -f conftest.$ac_objext conftest$ac_exeext
12433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12434 (eval $ac_link) 2>conftest.er1
12436 grep -v '^ *+' conftest.er1 >conftest.err
12438 cat conftest.err >&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } &&
12441 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443 (eval $ac_try) 2>&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; } &&
12447 { ac_try='test -s conftest$ac_exeext'
12448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; }; then
12453 ac_cv_lib_Xft_XftDrawString32=yes
12455 echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12458 ac_cv_lib_Xft_XftDrawString32=no
12460 rm -f conftest.err conftest.$ac_objext \
12461 conftest$ac_exeext conftest.$ac_ext
12462 LIBS=$ac_check_lib_save_LIBS
12464 echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
12465 echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
12466 if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
12467 cat >>confdefs.h <<_ACEOF
12468 #define HAVE_LIBXFT 1
12478 if test x$support_xft = xyes; then
12480 cat >>confdefs.h <<\_ACEOF
12486 if test x$support_styles = xyes; then
12488 cat >>confdefs.h <<\_ACEOF
12489 #define ENABLE_STYLES 1
12493 if test x$support_iso14755 = xyes; then
12495 cat >>confdefs.h <<\_ACEOF
12496 #define ISO_14755 1
12500 if test x$support_8bitctrls = xyes; then
12502 cat >>confdefs.h <<\_ACEOF
12503 #define EIGHT_BIT_CONTROLS 1
12507 if test x$support_fading = xyes; then
12509 cat >>confdefs.h <<\_ACEOF
12510 #define OFF_FOCUS_FADING 1
12514 if test x$support_tinting = xyes; then
12516 cat >>confdefs.h <<\_ACEOF
12521 if test x$support_inheritpixmap = xyes; then
12523 cat >>confdefs.h <<\_ACEOF
12524 #define TRANSPARENT 1
12528 if test x$support_keepscrolling = xno; then
12530 cat >>confdefs.h <<\_ACEOF
12531 #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12535 if test x$support_selectionscrolling = xyes; then
12537 cat >>confdefs.h <<\_ACEOF
12538 #define SELECTION_SCROLLING 1
12542 if test x$support_frills = xyes; then
12544 cat >>confdefs.h <<\_ACEOF
12545 #define ENABLE_FRILLS 1
12549 if test x$support_24bit = xyes; then
12551 cat >>confdefs.h <<\_ACEOF
12552 #define PREFER_24BIT 1
12556 if test x$support_mousewheel = xyes; then
12558 cat >>confdefs.h <<\_ACEOF
12559 #define MOUSE_WHEEL 1
12563 if test x$support_mouseslipwheel = xyes; then
12565 cat >>confdefs.h <<\_ACEOF
12566 #define MOUSE_SLIP_WHEELING 1
12570 if test x$support_utmp = xyes; then
12572 cat >>confdefs.h <<\_ACEOF
12573 #define UTMP_SUPPORT 1
12577 if test x$support_wtmp = xyes; then
12579 cat >>confdefs.h <<\_ACEOF
12580 #define WTMP_SUPPORT 1
12584 if test x$support_lastlog = xyes; then
12586 cat >>confdefs.h <<\_ACEOF
12587 #define LASTLOG_SUPPORT 1
12591 if test x$support_xim = xyes -o x$multichar_set = xyes; then
12592 if test x$rxvt_cv_func_xlocale = xyes; then
12594 cat >>confdefs.h <<\_ACEOF
12600 if test x$support_xpm = xyes; then
12602 cat >>confdefs.h <<\_ACEOF
12603 #define XPM_BACKGROUND 1
12607 if test x$support_scroll_rxvt = xyes; then
12609 cat >>confdefs.h <<\_ACEOF
12610 #define RXVT_SCROLLBAR 1
12615 if test x$support_scroll_next = xyes; then
12617 cat >>confdefs.h <<\_ACEOF
12618 #define NEXT_SCROLLBAR 1
12621 scrolltypes="$scrolltypes next"
12623 if test x$support_scroll_xterm = xyes; then
12625 cat >>confdefs.h <<\_ACEOF
12626 #define XTERM_SCROLLBAR 1
12629 scrolltypes="$scrolltypes xterm"
12631 if test x$support_scroll_plain = xyes; then
12633 cat >>confdefs.h <<\_ACEOF
12634 #define PLAIN_SCROLLBAR 1
12637 scrolltypes="$scrolltypes plain"
12639 if test x$support_pointer_blank = xyes; then
12641 cat >>confdefs.h <<\_ACEOF
12642 #define POINTER_BLANK 1
12646 if test x$support_text_blink = xyes; then
12648 cat >>confdefs.h <<\_ACEOF
12649 #define TEXT_BLINK 1
12653 if test x$support_unicode3 = xyes; then
12655 cat >>confdefs.h <<\_ACEOF
12656 #define UNICODE_3 1
12660 if test x$support_combining = xyes; then
12662 cat >>confdefs.h <<\_ACEOF
12663 #define ENABLE_COMBINING 1
12667 if test x$codesets = xall; then
12668 codesets=jp,jp-ext,kr,zh,zh-ext
12671 cat >>confdefs.h <<\_ACEOF
12672 #define ENCODING_EU 1
12676 cat >>confdefs.h <<\_ACEOF
12677 #define ENCODING_VN 1
12680 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
12683 cat >>confdefs.h <<\_ACEOF
12684 #define ENCODING_JP 1
12688 cat >>confdefs.h <<\_ACEOF
12689 #define ENCODING_JP_EXT 1
12693 cat >>confdefs.h <<\_ACEOF
12694 #define ENCODING_KR 1
12698 cat >>confdefs.h <<\_ACEOF
12699 #define ENCODING_ZH 1
12703 cat >>confdefs.h <<\_ACEOF
12704 #define ENCODING_ZH_EXT 1
12711 if test x$support_perl = xyes; then
12712 # Extract the first word of "perl5", so it can be a program name with args.
12713 set dummy perl5; ac_word=$2
12714 echo "$as_me:$LINENO: checking for $ac_word" >&5
12715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12716 if test "${ac_cv_path_PERL+set}" = set; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
12721 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12725 for as_dir in $PATH
12728 test -z "$as_dir" && as_dir=.
12729 for ac_exec_ext in '' $ac_executable_extensions; do
12730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12731 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12741 PERL=$ac_cv_path_PERL
12743 if test -n "$PERL"; then
12744 echo "$as_me:$LINENO: result: $PERL" >&5
12745 echo "${ECHO_T}$PERL" >&6
12747 echo "$as_me:$LINENO: result: no" >&5
12748 echo "${ECHO_T}no" >&6
12751 # Extract the first word of "perl", so it can be a program name with args.
12752 set dummy perl; ac_word=$2
12753 echo "$as_me:$LINENO: checking for $ac_word" >&5
12754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12755 if test "${ac_cv_path_PERL+set}" = set; then
12756 echo $ECHO_N "(cached) $ECHO_C" >&6
12760 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764 for as_dir in $PATH
12767 test -z "$as_dir" && as_dir=.
12768 for ac_exec_ext in '' $ac_executable_extensions; do
12769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12770 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12780 PERL=$ac_cv_path_PERL
12782 if test -n "$PERL"; then
12783 echo "$as_me:$LINENO: result: $PERL" >&5
12784 echo "${ECHO_T}$PERL" >&6
12786 echo "$as_me:$LINENO: result: no" >&5
12787 echo "${ECHO_T}no" >&6
12791 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
12792 echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
12793 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
12795 save_CXXFLAGS="$CXXFLAGS"
12797 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
12798 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
12799 cat >conftest.$ac_ext <<_ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h. */
12806 #include <EXTERN.h>
12814 PerlInterpreter *perl = perl_alloc ();
12820 rm -f conftest.$ac_objext conftest$ac_exeext
12821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12822 (eval $ac_link) 2>conftest.er1
12824 grep -v '^ *+' conftest.er1 >conftest.err
12826 cat conftest.err >&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } &&
12829 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12831 (eval $ac_try) 2>&5
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; } &&
12835 { ac_try='test -s conftest$ac_exeext'
12836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837 (eval $ac_try) 2>&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); }; }; then
12843 echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12848 rm -f conftest.err conftest.$ac_objext \
12849 conftest$ac_exeext conftest.$ac_ext
12850 CXXFLAGS="$save_CXXFLAGS"
12853 if test x$rxvt_perl_link = xyes; then
12854 echo "$as_me:$LINENO: result: ok" >&5
12855 echo "${ECHO_T}ok" >&6
12857 cat >>confdefs.h <<\_ACEOF
12858 #define ENABLE_PERL 1
12863 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
12864 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
12865 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
12867 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
12868 echo "$as_me: error: no, unable to link" >&2;}
12869 { (exit 1); exit 1; }; }
12872 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
12873 echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
12874 { (exit 1); exit 1; }; }
12884 if test x$support_perl = xyes; then
12889 CFLAGS=${CFLAGS--O}
12890 LDFLAGS=${LDFLAGS--O}
12892 CPPFLAGS="$CPPFLAGS"
12900 if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
12901 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
12902 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
12903 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
12904 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
12905 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
12912 test "$program_prefix" != NONE &&
12913 program_transform_name="s,^,$program_prefix,;$program_transform_name"
12914 # Use a double $ so make ignores it.
12915 test "$program_suffix" != NONE &&
12916 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
12917 # Double any \ or $. echo might interpret backslashes.
12918 # By default was `s,x,x', remove it if useless.
12919 cat <<\_ACEOF >conftest.sed
12920 s/[\\$]/&&/g;s/;s,x,x,$//
12922 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
12929 if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
12930 include_stdint_h="#include <stdint.h>"
12932 include_stdint_h="/* #include <stdint.h> */"
12934 if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
12935 include_stdarg_h="#include <cstdarg>"
12937 include_stdarg_h="/* #include <cstdarg> */"
12939 if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
12940 include_stdlib_h="#include <cstdlib>"
12942 include_stdlib_h="/* #include <cstdlib> */"
12944 if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
12945 include_unistd_h="#include <unistd.h>"
12947 include_unistd_h="/* #include <unistd.h> */"
12949 if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
12950 include_string_h="#include <cstring>"
12952 include_string_h="/* #include <cstring> */"
12954 if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
12955 include_fcntl_h="#include <fcntl.h>"
12957 include_fcntl_h="/* #include <fcntl.h> */"
12959 if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
12960 include_util_h="#include <util.h>"
12962 include_util_h="/* #include <util.h> */"
12964 if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
12965 include_assert_h="#include <assert.h>"
12967 include_assert_h="/* #include <assert.h> */"
12969 if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
12970 include_sys_ioctl_h="#include <sys/ioctl.h>"
12972 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
12974 if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
12975 include_sys_select_h="#include <sys/select.h>"
12977 include_sys_select_h="/* #include <sys/select.h> */"
12979 if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
12980 include_sys_strredir_h="#include <sys/strredir.h>"
12982 include_sys_strredir_h="/* #include <sys/strredir.h> */"
12984 if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
12985 include_sys_time_h="#include <sys/time.h>"
12987 include_sys_time_h="/* #include <sys/time.h> */"
12989 if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
12990 include_time_h="#include <time.h>"
12992 include_time_h="/* #include <time.h> */"
12995 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
12997 cat >confcache <<\_ACEOF
12998 # This file is a shell script that caches the results of configure
12999 # tests run on this system so they can be shared between configure
13000 # scripts and configure runs, see configure's option --config-cache.
13001 # It is not useful on other systems. If it contains results you don't
13002 # want to keep, you may remove or edit it.
13004 # config.status only pays attention to the cache file if you give it
13005 # the --recheck option to rerun configure.
13007 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13008 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13009 # following values.
13013 # The following way of writing the cache mishandles newlines in values,
13014 # but we know of no workaround that is simple, portable, and efficient.
13015 # So, don't put newlines in cache variables' values.
13016 # Ultrix sh set writes to stderr and can't be redirected directly,
13017 # and sets the high bit in the cache file unless we assign to the vars.
13020 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13022 # `set' does not quote correctly, so add quotes (double-quote
13023 # substitution turns \\\\ into \\, and sed turns \\ into \).
13026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13029 # `set' quotes correctly as required by POSIX, so do not add quotes.
13031 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13038 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13040 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13042 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13043 if test -w $cache_file; then
13044 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13045 cat confcache >$cache_file
13047 echo "not updating unwritable cache $cache_file"
13052 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13053 # Let make expand exec_prefix.
13054 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13056 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13057 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13058 # trailing colons and then remove the whole line if VPATH becomes empty
13059 # (actually we leave an empty line to preserve line numbers).
13060 if test "x$srcdir" = x.; then
13061 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13062 s/:*\$(srcdir):*/:/;
13063 s/:*\${srcdir}:*/:/;
13065 s/^\([^=]*=[ ]*\):*/\1/;
13071 DEFS=-DHAVE_CONFIG_H
13075 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13076 # 1. Remove the extension, and $U if already installed.
13077 ac_i=`echo "$ac_i" |
13078 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13080 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13081 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13083 LIBOBJS=$ac_libobjs
13085 LTLIBOBJS=$ac_ltlibobjs
13089 : ${CONFIG_STATUS=./config.status}
13090 ac_clean_files_save=$ac_clean_files
13091 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13092 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13093 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13094 cat >$CONFIG_STATUS <<_ACEOF
13096 # Generated by $as_me.
13097 # Run this file to recreate the current configuration.
13098 # Compiler output produced by configure, useful for debugging
13099 # configure, is in config.log if it exists.
13102 ac_cs_recheck=false
13104 SHELL=\${CONFIG_SHELL-$SHELL}
13107 cat >>$CONFIG_STATUS <<\_ACEOF
13108 ## --------------------- ##
13109 ## M4sh Initialization. ##
13110 ## --------------------- ##
13112 # Be Bourne compatible
13113 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13116 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13117 # is contrary to our usage. Disable this feature.
13118 alias -g '${1+"$@"}'='"$@"'
13119 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13122 DUALCASE=1; export DUALCASE # for MKS sh
13124 # Support unset when possible.
13125 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13132 # Work around bugs in pre-3.0 UWIN ksh.
13133 $as_unset ENV MAIL MAILPATH
13140 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13141 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13142 LC_TELEPHONE LC_TIME
13144 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13145 eval $as_var=C; export $as_var
13151 # Required to use basename.
13152 if expr a : '\(a\)' >/dev/null 2>&1; then
13158 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13159 as_basename=basename
13165 # Name of the executable.
13166 as_me=`$as_basename "$0" ||
13167 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13168 X"$0" : 'X\(//\)$' \| \
13169 X"$0" : 'X\(/\)$' \| \
13170 . : '\(.\)' 2>/dev/null ||
13172 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13173 /^X\/\(\/\/\)$/{ s//\1/; q; }
13174 /^X\/\(\/\).*/{ s//\1/; q; }
13178 # PATH needs CR, and LINENO needs CR and PATH.
13179 # Avoid depending upon Character Ranges.
13180 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13181 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13182 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13183 as_cr_digits='0123456789'
13184 as_cr_alnum=$as_cr_Letters$as_cr_digits
13186 # The user is always right.
13187 if test "${PATH_SEPARATOR+set}" != set; then
13188 echo "#! /bin/sh" >conf$$.sh
13189 echo "exit 0" >>conf$$.sh
13191 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13200 as_lineno_1=$LINENO
13201 as_lineno_2=$LINENO
13202 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13203 test "x$as_lineno_1" != "x$as_lineno_2" &&
13204 test "x$as_lineno_3" = "x$as_lineno_2" || {
13205 # Find who we are. Look in the path if we contain no path at all
13208 *[\\/]* ) as_myself=$0 ;;
13209 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13210 for as_dir in $PATH
13213 test -z "$as_dir" && as_dir=.
13214 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13219 # We did not find ourselves, most probably we were run as `sh COMMAND'
13220 # in which case we are not to be found in the path.
13221 if test "x$as_myself" = x; then
13224 if test ! -f "$as_myself"; then
13225 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13226 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13227 { (exit 1); exit 1; }; }
13229 case $CONFIG_SHELL in
13231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13232 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13235 test -z "$as_dir" && as_dir=.
13236 for as_base in sh bash ksh sh5; do
13239 if ("$as_dir/$as_base" -c '
13240 as_lineno_1=$LINENO
13241 as_lineno_2=$LINENO
13242 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13243 test "x$as_lineno_1" != "x$as_lineno_2" &&
13244 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13245 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13246 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13247 CONFIG_SHELL=$as_dir/$as_base
13248 export CONFIG_SHELL
13249 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13257 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13258 # uniformly replaced by the line number. The first 'sed' inserts a
13259 # line-number line before each line; the second 'sed' does the real
13260 # work. The second script uses 'N' to pair each line-number line
13261 # with the numbered line, and appends trailing '-' during
13262 # substitution so that $LINENO is not a special case at line end.
13263 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13264 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13265 sed '=' <$as_myself |
13270 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13273 s,^['$as_cr_digits']*\n,,
13274 ' >$as_me.lineno &&
13275 chmod +x $as_me.lineno ||
13276 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13277 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13278 { (exit 1); exit 1; }; }
13280 # Don't try to exec as it changes $[0], causing all sort of problems
13281 # (the dirname of $[0] is not the place where we might find the
13282 # original and so on. Autoconf is especially sensible to this).
13284 # Exit status is that of the last command.
13289 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13290 *c*,-n*) ECHO_N= ECHO_C='
13292 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13293 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13296 if expr a : '\(a\)' >/dev/null 2>&1; then
13302 rm -f conf$$ conf$$.exe conf$$.file
13304 if ln -s conf$$.file conf$$ 2>/dev/null; then
13305 # We could just check for DJGPP; but this test a) works b) is more generic
13306 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13307 if test -f conf$$.exe; then
13308 # Don't use ln at all; we don't have any links
13313 elif ln conf$$.file conf$$ 2>/dev/null; then
13318 rm -f conf$$ conf$$.exe conf$$.file
13320 if mkdir -p . 2>/dev/null; then
13323 test -d ./-p && rmdir ./-p
13327 as_executable_p="test -f"
13329 # Sed expression to map a string onto a valid CPP name.
13330 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13332 # Sed expression to map a string onto a valid variable name.
13333 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13337 # We need space, tab and new line, in precisely that order.
13347 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13348 # report actual input values of CONFIG_FILES etc. instead of their
13349 # values after options handling. Logging --version etc. is OK.
13353 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13354 ## Running $as_me. ##
13359 This file was extended by $as_me, which was
13360 generated by GNU Autoconf 2.59. Invocation command line was
13362 CONFIG_FILES = $CONFIG_FILES
13363 CONFIG_HEADERS = $CONFIG_HEADERS
13364 CONFIG_LINKS = $CONFIG_LINKS
13365 CONFIG_COMMANDS = $CONFIG_COMMANDS
13369 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13373 # Files that config.status was made for.
13374 if test -n "$ac_config_files"; then
13375 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13378 if test -n "$ac_config_headers"; then
13379 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13382 if test -n "$ac_config_links"; then
13383 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13386 if test -n "$ac_config_commands"; then
13387 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13390 cat >>$CONFIG_STATUS <<\_ACEOF
13393 \`$as_me' instantiates files from templates according to the
13394 current configuration.
13396 Usage: $0 [OPTIONS] [FILE]...
13398 -h, --help print this help, then exit
13399 -V, --version print version number, then exit
13400 -q, --quiet do not print progress messages
13401 -d, --debug don't remove temporary files
13402 --recheck update $as_me by reconfiguring in the same conditions
13403 --file=FILE[:TEMPLATE]
13404 instantiate the configuration file FILE
13405 --header=FILE[:TEMPLATE]
13406 instantiate the configuration header FILE
13408 Configuration files:
13411 Configuration headers:
13414 Report bugs to <bug-autoconf@gnu.org>."
13417 cat >>$CONFIG_STATUS <<_ACEOF
13420 configured by $0, generated by GNU Autoconf 2.59,
13421 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13423 Copyright (C) 2003 Free Software Foundation, Inc.
13424 This config.status script is free software; the Free Software Foundation
13425 gives unlimited permission to copy, distribute and modify it."
13430 cat >>$CONFIG_STATUS <<\_ACEOF
13431 # If no file are specified by the user, then we need to provide default
13432 # value. By we need to know if files were specified by the user.
13438 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13439 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13447 *) # This is not an option, so the user has probably given explicit
13450 ac_need_defaults=false;;
13454 # Handling of the options.
13456 cat >>$CONFIG_STATUS <<\_ACEOF
13457 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13459 --version | --vers* | -V )
13460 echo "$ac_cs_version"; exit 0 ;;
13462 # Conflict between --help and --header
13463 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13464 Try \`$0 --help' for more information." >&5
13465 echo "$as_me: error: ambiguous option: $1
13466 Try \`$0 --help' for more information." >&2;}
13467 { (exit 1); exit 1; }; };;
13468 --help | --hel | -h )
13469 echo "$ac_cs_usage"; exit 0 ;;
13470 --debug | --d* | -d )
13472 --file | --fil | --fi | --f )
13474 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13475 ac_need_defaults=false;;
13476 --header | --heade | --head | --hea )
13478 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13479 ac_need_defaults=false;;
13480 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13481 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13484 # This is an error.
13485 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13486 Try \`$0 --help' for more information." >&5
13487 echo "$as_me: error: unrecognized option: $1
13488 Try \`$0 --help' for more information." >&2;}
13489 { (exit 1); exit 1; }; } ;;
13491 *) ac_config_targets="$ac_config_targets $1" ;;
13497 ac_configure_extra_args=
13499 if $ac_cs_silent; then
13501 ac_configure_extra_args="$ac_configure_extra_args --silent"
13505 cat >>$CONFIG_STATUS <<_ACEOF
13506 if \$ac_cs_recheck; then
13507 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13508 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13517 cat >>$CONFIG_STATUS <<\_ACEOF
13518 for ac_config_target in $ac_config_targets
13520 case "$ac_config_target" in
13521 # Handling of arguments.
13522 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13523 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13524 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13525 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
13526 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
13527 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13528 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13529 { (exit 1); exit 1; }; };;
13533 # If the user did not use the arguments to specify the items to instantiate,
13534 # then the envvar interface is used. Set only those that are not.
13535 # We use the long form for the default assignment because of an extremely
13536 # bizarre bug on SunOS 4.1.3.
13537 if $ac_need_defaults; then
13538 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13539 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13542 # Have a temporary directory for convenience. Make it in the build tree
13543 # simply because there is no reason to put it here, and in addition,
13544 # creating and moving files from /tmp can sometimes cause problems.
13545 # Create a temporary directory, and hook for its removal unless debugging.
13548 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13549 trap '{ (exit 1); exit 1; }' 1 2 13 15
13552 # Create a (secure) tmp directory for tmp files.
13555 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13556 test -n "$tmp" && test -d "$tmp"
13559 tmp=./confstat$$-$RANDOM
13560 (umask 077 && mkdir $tmp)
13563 echo "$me: cannot create a temporary directory in ." >&2
13564 { (exit 1); exit 1; }
13569 cat >>$CONFIG_STATUS <<_ACEOF
13572 # CONFIG_FILES section.
13575 # No need to generate the scripts if there are no CONFIG_FILES.
13576 # This happens for instance when ./config.status config.h
13577 if test -n "\$CONFIG_FILES"; then
13578 # Protect against being on the right side of a sed subst in config.status.
13579 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13580 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13581 s,@SHELL@,$SHELL,;t t
13582 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13583 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13584 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13585 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13586 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13587 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13588 s,@exec_prefix@,$exec_prefix,;t t
13589 s,@prefix@,$prefix,;t t
13590 s,@program_transform_name@,$program_transform_name,;t t
13591 s,@bindir@,$bindir,;t t
13592 s,@sbindir@,$sbindir,;t t
13593 s,@libexecdir@,$libexecdir,;t t
13594 s,@datadir@,$datadir,;t t
13595 s,@sysconfdir@,$sysconfdir,;t t
13596 s,@sharedstatedir@,$sharedstatedir,;t t
13597 s,@localstatedir@,$localstatedir,;t t
13598 s,@libdir@,$libdir,;t t
13599 s,@includedir@,$includedir,;t t
13600 s,@oldincludedir@,$oldincludedir,;t t
13601 s,@infodir@,$infodir,;t t
13602 s,@mandir@,$mandir,;t t
13603 s,@build_alias@,$build_alias,;t t
13604 s,@host_alias@,$host_alias,;t t
13605 s,@target_alias@,$target_alias,;t t
13606 s,@DEFS@,$DEFS,;t t
13607 s,@ECHO_C@,$ECHO_C,;t t
13608 s,@ECHO_N@,$ECHO_N,;t t
13609 s,@ECHO_T@,$ECHO_T,;t t
13610 s,@LIBS@,$LIBS,;t t
13611 s,@build@,$build,;t t
13612 s,@build_cpu@,$build_cpu,;t t
13613 s,@build_vendor@,$build_vendor,;t t
13614 s,@build_os@,$build_os,;t t
13615 s,@host@,$host,;t t
13616 s,@host_cpu@,$host_cpu,;t t
13617 s,@host_vendor@,$host_vendor,;t t
13618 s,@host_os@,$host_os,;t t
13619 s,@VERSION@,$VERSION,;t t
13620 s,@DATE@,$DATE,;t t
13621 s,@LSMDATE@,$LSMDATE,;t t
13622 s,@LIBVERSION@,$LIBVERSION,;t t
13624 s,@CFLAGS@,$CFLAGS,;t t
13625 s,@LDFLAGS@,$LDFLAGS,;t t
13626 s,@CPPFLAGS@,$CPPFLAGS,;t t
13627 s,@ac_ct_CC@,$ac_ct_CC,;t t
13628 s,@EXEEXT@,$EXEEXT,;t t
13629 s,@OBJEXT@,$OBJEXT,;t t
13631 s,@CXXFLAGS@,$CXXFLAGS,;t t
13632 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13634 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13635 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13636 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13638 s,@LINKER@,$LINKER,;t t
13639 s,@CXXCPP@,$CXXCPP,;t t
13640 s,@EGREP@,$EGREP,;t t
13641 s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
13642 s,@RXVTNAME@,$RXVTNAME,;t t
13648 s,@ECHO@,$ECHO,;t t
13652 s,@X_CFLAGS@,$X_CFLAGS,;t t
13653 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13654 s,@X_LIBS@,$X_LIBS,;t t
13655 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13656 s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
13657 s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
13658 s,@XPM_LIBS@,$XPM_LIBS,;t t
13659 s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
13660 s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
13661 s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
13662 s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
13663 s,@rxvt_intp_define@,$rxvt_intp_define,;t t
13664 s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
13665 s,@PERL@,$PERL,;t t
13666 s,@PERLLIB@,$PERLLIB,;t t
13667 s,@PERLFLAGS@,$PERLFLAGS,;t t
13668 s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
13669 s,@IF_PERL@,$IF_PERL,;t t
13670 s,@PERL_O@,$PERL_O,;t t
13671 s,@DEBUG@,$DEBUG,;t t
13672 s,@DINCLUDE@,$DINCLUDE,;t t
13673 s,@DLIB@,$DLIB,;t t
13674 s,@include_stdint_h@,$include_stdint_h,;t t
13675 s,@include_stdarg_h@,$include_stdarg_h,;t t
13676 s,@include_stdlib_h@,$include_stdlib_h,;t t
13677 s,@include_unistd_h@,$include_unistd_h,;t t
13678 s,@include_string_h@,$include_string_h,;t t
13679 s,@include_fcntl_h@,$include_fcntl_h,;t t
13680 s,@include_util_h@,$include_util_h,;t t
13681 s,@include_assert_h@,$include_assert_h,;t t
13682 s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
13683 s,@include_sys_select_h@,$include_sys_select_h,;t t
13684 s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
13685 s,@include_sys_time_h@,$include_sys_time_h,;t t
13686 s,@include_time_h@,$include_time_h,;t t
13687 s,@LIBOBJS@,$LIBOBJS,;t t
13688 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13693 cat >>$CONFIG_STATUS <<\_ACEOF
13694 # Split the substitutions into bite-sized pieces for seds with
13695 # small command number limits, like on Digital OSF/1 and HP-UX.
13696 ac_max_sed_lines=48
13697 ac_sed_frag=1 # Number of current file.
13698 ac_beg=1 # First line for current file.
13699 ac_end=$ac_max_sed_lines # Line after last line for current file.
13702 while $ac_more_lines; do
13703 if test $ac_beg -gt 1; then
13704 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13706 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13708 if test ! -s $tmp/subs.frag; then
13709 ac_more_lines=false
13711 # The purpose of the label and of the branching condition is to
13712 # speed up the sed processing (if there are no `@' at all, there
13713 # is no need to browse any of the substitutions).
13714 # These are the two extra sed commands mentioned above.
13716 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13717 if test -z "$ac_sed_cmds"; then
13718 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13720 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13722 ac_sed_frag=`expr $ac_sed_frag + 1`
13724 ac_end=`expr $ac_end + $ac_max_sed_lines`
13727 if test -z "$ac_sed_cmds"; then
13730 fi # test -n "$CONFIG_FILES"
13733 cat >>$CONFIG_STATUS <<\_ACEOF
13734 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13735 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13737 - | *:- | *:-:* ) # input from stdin
13739 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13740 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13741 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13742 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13743 * ) ac_file_in=$ac_file.in ;;
13746 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13747 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13748 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13749 X"$ac_file" : 'X\(//\)[^/]' \| \
13750 X"$ac_file" : 'X\(//\)$' \| \
13751 X"$ac_file" : 'X\(/\)' \| \
13752 . : '\(.\)' 2>/dev/null ||
13754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13755 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13756 /^X\(\/\/\)$/{ s//\1/; q; }
13757 /^X\(\/\).*/{ s//\1/; q; }
13759 { if $as_mkdir_p; then
13764 while test ! -d "$as_dir"; do
13765 as_dirs="$as_dir $as_dirs"
13766 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13767 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13768 X"$as_dir" : 'X\(//\)[^/]' \| \
13769 X"$as_dir" : 'X\(//\)$' \| \
13770 X"$as_dir" : 'X\(/\)' \| \
13771 . : '\(.\)' 2>/dev/null ||
13773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13774 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13775 /^X\(\/\/\)$/{ s//\1/; q; }
13776 /^X\(\/\).*/{ s//\1/; q; }
13779 test ! -n "$as_dirs" || mkdir $as_dirs
13780 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13781 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13782 { (exit 1); exit 1; }; }; }
13786 if test "$ac_dir" != .; then
13787 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13788 # A "../" for each directory in $ac_dir_suffix.
13789 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13791 ac_dir_suffix= ac_top_builddir=
13795 .) # No --srcdir option. We are building in place.
13797 if test -z "$ac_top_builddir"; then
13800 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13802 [\\/]* | ?:[\\/]* ) # Absolute path.
13803 ac_srcdir=$srcdir$ac_dir_suffix;
13804 ac_top_srcdir=$srcdir ;;
13805 *) # Relative path.
13806 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13807 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13810 # Do not use `cd foo && pwd` to compute absolute paths, because
13811 # the directories may not exist.
13813 .) ac_abs_builddir="$ac_dir";;
13816 .) ac_abs_builddir=`pwd`;;
13817 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13818 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13821 case $ac_abs_builddir in
13822 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13824 case ${ac_top_builddir}. in
13825 .) ac_abs_top_builddir=$ac_abs_builddir;;
13826 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13827 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13830 case $ac_abs_builddir in
13831 .) ac_abs_srcdir=$ac_srcdir;;
13834 .) ac_abs_srcdir=$ac_abs_builddir;;
13835 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13836 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13839 case $ac_abs_builddir in
13840 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13842 case $ac_top_srcdir in
13843 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13844 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13845 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13851 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13852 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13855 # Let's still pretend it is `configure' which instantiates (i.e., don't
13856 # use $as_me), people would be surprised to read:
13857 # /* config.h. Generated by config.status. */
13858 if test x"$ac_file" = x-; then
13861 configure_input="$ac_file. "
13863 configure_input=$configure_input"Generated from `echo $ac_file_in |
13864 sed 's,.*/,,'` by configure."
13866 # First look for the input files in the build tree, otherwise in the
13868 ac_file_inputs=`IFS=:
13869 for f in $ac_file_in; do
13871 -) echo $tmp/stdin ;;
13873 # Absolute (can't be DOS-style, as IFS=:)
13874 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13875 echo "$as_me: error: cannot find input file: $f" >&2;}
13876 { (exit 1); exit 1; }; }
13879 if test -f "$f"; then
13882 elif test -f "$srcdir/$f"; then
13887 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13888 echo "$as_me: error: cannot find input file: $f" >&2;}
13889 { (exit 1); exit 1; }; }
13892 done` || { (exit 1); exit 1; }
13894 if test x"$ac_file" != x-; then
13895 { echo "$as_me:$LINENO: creating $ac_file" >&5
13896 echo "$as_me: creating $ac_file" >&6;}
13900 cat >>$CONFIG_STATUS <<_ACEOF
13904 cat >>$CONFIG_STATUS <<\_ACEOF
13906 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13907 s,@configure_input@,$configure_input,;t t
13908 s,@srcdir@,$ac_srcdir,;t t
13909 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13910 s,@top_srcdir@,$ac_top_srcdir,;t t
13911 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13912 s,@builddir@,$ac_builddir,;t t
13913 s,@abs_builddir@,$ac_abs_builddir,;t t
13914 s,@top_builddir@,$ac_top_builddir,;t t
13915 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13916 s,@INSTALL@,$ac_INSTALL,;t t
13917 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13919 if test x"$ac_file" != x-; then
13920 mv $tmp/out $ac_file
13928 cat >>$CONFIG_STATUS <<\_ACEOF
13931 # CONFIG_HEADER section.
13934 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13935 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13937 # ac_d sets the value in "#define NAME VALUE" lines.
13938 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13939 ac_dB='[ ].*$,\1#\2'
13942 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13943 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13944 ac_uB='$,\1#\2define\3'
13948 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13949 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13951 - | *:- | *:-:* ) # input from stdin
13953 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13954 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13955 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13956 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13957 * ) ac_file_in=$ac_file.in ;;
13960 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13961 echo "$as_me: creating $ac_file" >&6;}
13963 # First look for the input files in the build tree, otherwise in the
13965 ac_file_inputs=`IFS=:
13966 for f in $ac_file_in; do
13968 -) echo $tmp/stdin ;;
13970 # Absolute (can't be DOS-style, as IFS=:)
13971 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13972 echo "$as_me: error: cannot find input file: $f" >&2;}
13973 { (exit 1); exit 1; }; }
13974 # Do quote $f, to prevent DOS paths from being IFS'd.
13977 if test -f "$f"; then
13980 elif test -f "$srcdir/$f"; then
13985 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13986 echo "$as_me: error: cannot find input file: $f" >&2;}
13987 { (exit 1); exit 1; }; }
13990 done` || { (exit 1); exit 1; }
13991 # Remove the trailing spaces.
13992 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13996 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13997 # `conftest.undefs', that substitutes the proper values into
13998 # config.h.in to produce config.h. The first handles `#define'
13999 # templates, and the second `#undef' templates.
14000 # And first: Protect against being on the right side of a sed subst in
14001 # config.status. Protect against being in an unquoted here document
14002 # in config.status.
14003 rm -f conftest.defines conftest.undefs
14004 # Using a here document instead of a string reduces the quoting nightmare.
14005 # Putting comments in sed scripts is not portable.
14007 # `end' is used to avoid that the second main sed command (meant for
14008 # 0-ary CPP macros) applies to n-ary macro definitions.
14009 # See the Autoconf documentation for `clear'.
14010 cat >confdef2sed.sed <<\_ACEOF
14015 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14017 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14020 # If some macros were called several times there might be several times
14021 # the same #defines, which is useless. Nevertheless, we may not want to
14022 # sort them, since we want the *last* AC-DEFINE to be honored.
14023 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14024 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14025 rm -f confdef2sed.sed
14027 # This sed command replaces #undef with comments. This is necessary, for
14028 # example, in the case of _POSIX_SOURCE, which is predefined and required
14029 # on some systems where configure will not decide to define it.
14030 cat >>conftest.undefs <<\_ACEOF
14031 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14034 # Break up conftest.defines because some shells have a limit on the size
14035 # of here documents, and old seds have small limits too (100 cmds).
14036 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14037 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14038 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14039 echo ' :' >>$CONFIG_STATUS
14040 rm -f conftest.tail
14041 while grep . conftest.defines >/dev/null
14043 # Write a limited-size here document to $tmp/defines.sed.
14044 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14045 # Speed up: don't consider the non `#define' lines.
14046 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14047 # Work around the forget-to-reset-the-flag bug.
14048 echo 't clr' >>$CONFIG_STATUS
14049 echo ': clr' >>$CONFIG_STATUS
14050 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14052 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14054 mv $tmp/out $tmp/in
14056 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14057 rm -f conftest.defines
14058 mv conftest.tail conftest.defines
14060 rm -f conftest.defines
14061 echo ' fi # grep' >>$CONFIG_STATUS
14062 echo >>$CONFIG_STATUS
14064 # Break up conftest.undefs because some shells have a limit on the size
14065 # of here documents, and old seds have small limits too (100 cmds).
14066 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14067 rm -f conftest.tail
14068 while grep . conftest.undefs >/dev/null
14070 # Write a limited-size here document to $tmp/undefs.sed.
14071 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14072 # Speed up: don't consider the non `#undef'
14073 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14074 # Work around the forget-to-reset-the-flag bug.
14075 echo 't clr' >>$CONFIG_STATUS
14076 echo ': clr' >>$CONFIG_STATUS
14077 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14079 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14081 mv $tmp/out $tmp/in
14083 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14084 rm -f conftest.undefs
14085 mv conftest.tail conftest.undefs
14087 rm -f conftest.undefs
14089 cat >>$CONFIG_STATUS <<\_ACEOF
14090 # Let's still pretend it is `configure' which instantiates (i.e., don't
14091 # use $as_me), people would be surprised to read:
14092 # /* config.h. Generated by config.status. */
14093 if test x"$ac_file" = x-; then
14094 echo "/* Generated by configure. */" >$tmp/config.h
14096 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14098 cat $tmp/in >>$tmp/config.h
14100 if test x"$ac_file" != x-; then
14101 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14102 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14103 echo "$as_me: $ac_file is unchanged" >&6;}
14105 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14106 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14107 X"$ac_file" : 'X\(//\)[^/]' \| \
14108 X"$ac_file" : 'X\(//\)$' \| \
14109 X"$ac_file" : 'X\(/\)' \| \
14110 . : '\(.\)' 2>/dev/null ||
14112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14114 /^X\(\/\/\)$/{ s//\1/; q; }
14115 /^X\(\/\).*/{ s//\1/; q; }
14117 { if $as_mkdir_p; then
14122 while test ! -d "$as_dir"; do
14123 as_dirs="$as_dir $as_dirs"
14124 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14125 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14126 X"$as_dir" : 'X\(//\)[^/]' \| \
14127 X"$as_dir" : 'X\(//\)$' \| \
14128 X"$as_dir" : 'X\(/\)' \| \
14129 . : '\(.\)' 2>/dev/null ||
14131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14132 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14133 /^X\(\/\/\)$/{ s//\1/; q; }
14134 /^X\(\/\).*/{ s//\1/; q; }
14137 test ! -n "$as_dirs" || mkdir $as_dirs
14138 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14139 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14140 { (exit 1); exit 1; }; }; }
14143 mv $tmp/config.h $ac_file
14147 rm -f $tmp/config.h
14152 cat >>$CONFIG_STATUS <<\_ACEOF
14154 { (exit 0); exit 0; }
14156 chmod +x $CONFIG_STATUS
14157 ac_clean_files=$ac_clean_files_save
14160 # configure is writing to config.log, and then calls config.status.
14161 # config.status does its own redirection, appending to config.log.
14162 # Unfortunately, on DOS this fails, as config.log is still kept open
14163 # by configure, so config.status won't be able to write to it; its
14164 # output is simply discarded. So we exec the FD to /dev/null,
14165 # effectively closing config.log, so it can be properly (re)opened and
14166 # appended to by config.status. When coming back to configure, we
14167 # need to make the FD available again.
14168 if test "$no_create" != yes; then
14170 ac_config_status_args=
14171 test "$silent" = yes &&
14172 ac_config_status_args="$ac_config_status_args --quiet"
14174 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14176 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14177 # would make configure fail if this is the last instruction.
14178 $ac_cs_success || { (exit 1); exit 1; }
14182 echo "Configuration:
14184 Rxvt version: $VERSION : $DATE
14185 Source code location: $srcdir
14186 Install path: ${prefix}/bin
14188 Compiler flags: $CFLAGS
14191 if test "$MALLOC_TYPE" = S; then
14192 echo " malloc support: system default"
14194 if test "$MALLOC_TYPE" = G; then
14195 echo " malloc support: Gray Watson's dmalloc"
14197 if test "$MALLOC_TYPE" = D; then
14198 echo " malloc support: Doug Lea's malloc"
14201 if test x$support_xpm = xyes; then
14202 echo " Xpm library: $XPM_LIBS"
14206 The following are set in config.h
14208 echo " pty/tty type: "$rxvt_cv_ptys
14209 if test x$support_utmp != xyes; then
14210 echo " utmp support: disabled"
14213 echo " utmp support: enabled
14214 utmp file: $rxvt_cv_path_utmp
14215 utmpx file: $rxvt_cv_path_utmpx
14216 wtmp file: $rxvt_cv_path_wtmp
14217 wtmpx file: $rxvt_cv_path_wtmpx
14218 lastlog file: $rxvt_cv_path_lastlog
14219 ttys/ttytab file: $rxvt_cv_path_ttytab
14220 embedded perl: $support_perl"
14223 if test x$term != x; then
14224 echo " set TERM to: $term"
14226 if test x$terminfo != x; then
14227 echo " set TERMINFO to: $terminfo"
14229 echo " default resource name: $RESNAME"
14230 echo " resource class: $RESCLASS"
14231 if test x$RESFALLBACK != x; then
14232 echo " resource class fallback: $RESFALLBACK"
14235 if test x$rxvt_cv_ptys = xUNKNOWN; then
14236 echo ".----------------------------------------------------------------."
14237 echo ". WARNING: could not determine pty/tty type. Do not build until ."
14238 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
14239 echo ".----------------------------------------------------------------."
14241 if test x$support_xpm = xneedsmanualspecification; then
14242 echo ".----------------------------------------------------------------."
14243 echo ". WARNING: --enable-xpm-background was specified however the ."
14244 echo ". XPM includes files and libraries could not be found. ."
14245 echo ". XPM backgrounds are now being DISABLED! If you want ."
14246 echo ". to use them you should rerun configure with the ."
14247 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
14248 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
14249 echo ".----------------------------------------------------------------."
14251 if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
14252 echo ".----------------------------------------------------------------."
14253 echo ". WARNING: --enable-xim was specified however the locale support ."
14254 echo ". functions could not be found. ."
14255 echo ". XIM is now being DISABLED! ."
14256 echo ".----------------------------------------------------------------."
14259 echo " *** Optionally check src/feature.h for further options ***"
14262 echo ".----------------------------------------------------------------."
14263 echo ". NOTE: some features are disabled by default, try ."
14264 echo ". configure --help to get an idea of the optional features, ."
14265 echo ". or read ./README.configure ."
14267 echo ". The script ./reconf gives a reasonable baseline, try it if ."
14268 echo ". you do not want to read documentation and still want some ."
14269 echo ". useful features. ."
14270 echo ".----------------------------------------------------------------."