ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.59
Committed: Sun Jan 1 06:28:45 2006 UTC (18 years, 5 months ago) by root
Branch: MAIN
CVS Tags: rel-6_2
Changes since 1.58: +162 -0 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 pcg 1.1 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 pcg 1.11 # Generated by GNU Autoconf 2.59.
4 pcg 1.1 #
5 pcg 1.11 # Copyright (C) 2003 Free Software Foundation, Inc.
6 pcg 1.1 # This configure script is free software; the Free Software Foundation
7     # gives unlimited permission to copy, distribute and modify it.
8 pcg 1.11 ## --------------------- ##
9     ## M4sh Initialization. ##
10     ## --------------------- ##
11    
12     # Be Bourne compatible
13     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14     emulate sh
15     NULLCMD=:
16     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17     # is contrary to our usage. Disable this feature.
18     alias -g '${1+"$@"}'='"$@"'
19     elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20     set -o posix
21     fi
22     DUALCASE=1; export DUALCASE # for MKS sh
23    
24     # Support unset when possible.
25     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26     as_unset=unset
27     else
28     as_unset=false
29     fi
30    
31    
32     # Work around bugs in pre-3.0 UWIN ksh.
33     $as_unset ENV MAIL MAILPATH
34     PS1='$ '
35     PS2='> '
36     PS4='+ '
37    
38     # NLS nuisances.
39     for as_var in \
40     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42     LC_TELEPHONE LC_TIME
43     do
44     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46     else
47     $as_unset $as_var
48     fi
49     done
50    
51     # Required to use basename.
52     if expr a : '\(a\)' >/dev/null 2>&1; then
53     as_expr=expr
54     else
55     as_expr=false
56     fi
57    
58     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59     as_basename=basename
60     else
61     as_basename=false
62     fi
63    
64    
65     # Name of the executable.
66     as_me=`$as_basename "$0" ||
67     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68     X"$0" : 'X\(//\)$' \| \
69     X"$0" : 'X\(/\)$' \| \
70     . : '\(.\)' 2>/dev/null ||
71     echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73     /^X\/\(\/\/\)$/{ s//\1/; q; }
74     /^X\/\(\/\).*/{ s//\1/; q; }
75     s/.*/./; q'`
76    
77    
78     # PATH needs CR, and LINENO needs CR and PATH.
79     # Avoid depending upon Character Ranges.
80     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83     as_cr_digits='0123456789'
84     as_cr_alnum=$as_cr_Letters$as_cr_digits
85    
86     # The user is always right.
87     if test "${PATH_SEPARATOR+set}" != set; then
88     echo "#! /bin/sh" >conf$$.sh
89     echo "exit 0" >>conf$$.sh
90     chmod +x conf$$.sh
91     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93     else
94     PATH_SEPARATOR=:
95     fi
96     rm -f conf$$.sh
97     fi
98    
99    
100     as_lineno_1=$LINENO
101     as_lineno_2=$LINENO
102     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103     test "x$as_lineno_1" != "x$as_lineno_2" &&
104     test "x$as_lineno_3" = "x$as_lineno_2" || {
105     # Find who we are. Look in the path if we contain no path at all
106     # relative or not.
107     case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110     for as_dir in $PATH
111     do
112     IFS=$as_save_IFS
113     test -z "$as_dir" && as_dir=.
114     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115     done
116    
117     ;;
118     esac
119     # We did not find ourselves, most probably we were run as `sh COMMAND'
120     # in which case we are not to be found in the path.
121     if test "x$as_myself" = x; then
122     as_myself=$0
123     fi
124     if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126     { (exit 1); exit 1; }; }
127     fi
128     case $CONFIG_SHELL in
129     '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132     do
133     IFS=$as_save_IFS
134     test -z "$as_dir" && as_dir=.
135     for as_base in sh bash ksh sh5; do
136     case $as_dir in
137     /*)
138     if ("$as_dir/$as_base" -c '
139     as_lineno_1=$LINENO
140     as_lineno_2=$LINENO
141     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142     test "x$as_lineno_1" != "x$as_lineno_2" &&
143     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146     CONFIG_SHELL=$as_dir/$as_base
147     export CONFIG_SHELL
148     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149     fi;;
150     esac
151     done
152     done
153     ;;
154     esac
155    
156     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157     # uniformly replaced by the line number. The first 'sed' inserts a
158     # line-number line before each line; the second 'sed' does the real
159     # work. The second script uses 'N' to pair each line-number line
160     # with the numbered line, and appends trailing '-' during
161     # substitution so that $LINENO is not a special case at line end.
162     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164     sed '=' <$as_myself |
165     sed '
166     N
167     s,$,-,
168     : loop
169     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170     t loop
171     s,-$,,
172     s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174     chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176     { (exit 1); exit 1; }; }
177    
178     # Don't try to exec as it changes $[0], causing all sort of problems
179     # (the dirname of $[0] is not the place where we might find the
180     # original and so on. Autoconf is especially sensible to this).
181     . ./$as_me.lineno
182     # Exit status is that of the last command.
183     exit
184     }
185    
186    
187     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188     *c*,-n*) ECHO_N= ECHO_C='
189     ' ECHO_T=' ' ;;
190     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192     esac
193    
194     if expr a : '\(a\)' >/dev/null 2>&1; then
195     as_expr=expr
196     else
197     as_expr=false
198     fi
199    
200     rm -f conf$$ conf$$.exe conf$$.file
201     echo >conf$$.file
202     if ln -s conf$$.file conf$$ 2>/dev/null; then
203     # We could just check for DJGPP; but this test a) works b) is more generic
204     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205     if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208     else
209     as_ln_s='ln -s'
210     fi
211     elif ln conf$$.file conf$$ 2>/dev/null; then
212     as_ln_s=ln
213     else
214     as_ln_s='cp -p'
215     fi
216     rm -f conf$$ conf$$.exe conf$$.file
217    
218     if mkdir -p . 2>/dev/null; then
219     as_mkdir_p=:
220     else
221     test -d ./-p && rmdir ./-p
222     as_mkdir_p=false
223     fi
224    
225     as_executable_p="test -f"
226    
227     # Sed expression to map a string onto a valid CPP name.
228     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229    
230     # Sed expression to map a string onto a valid variable name.
231     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232    
233    
234     # IFS
235     # We need space, tab and new line, in precisely that order.
236     as_nl='
237     '
238     IFS=" $as_nl"
239    
240     # CDPATH.
241     $as_unset CDPATH
242 pcg 1.1
243    
244 pcg 1.11 # Name of the host.
245     # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246     # so uname gets run too.
247     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248    
249     exec 6>&1
250    
251     #
252     # Initializations.
253     #
254     ac_default_prefix=/usr/local
255     ac_config_libobj_dir=.
256     cross_compiling=no
257     subdirs=
258     MFLAGS=
259     MAKEFLAGS=
260     SHELL=${CONFIG_SHELL-/bin/sh}
261    
262     # Maximum number of lines to put in a shell here document.
263     # This variable seems obsolete. It should probably be removed, and
264     # only ac_max_sed_lines should be used.
265     : ${ac_max_here_lines=38}
266    
267     # Identity of this package.
268     PACKAGE_NAME=
269     PACKAGE_TARNAME=
270     PACKAGE_VERSION=
271     PACKAGE_STRING=
272     PACKAGE_BUGREPORT=
273    
274     ac_unique_file="src/feature.h"
275     # Factoring default headers for most tests.
276     ac_includes_default="\
277     #include <stdio.h>
278     #if HAVE_SYS_TYPES_H
279     # include <sys/types.h>
280     #endif
281     #if HAVE_SYS_STAT_H
282     # include <sys/stat.h>
283     #endif
284     #if STDC_HEADERS
285     # include <stdlib.h>
286     # include <stddef.h>
287     #else
288     # if HAVE_STDLIB_H
289     # include <stdlib.h>
290     # endif
291     #endif
292     #if HAVE_STRING_H
293     # if !STDC_HEADERS && HAVE_MEMORY_H
294     # include <memory.h>
295     # endif
296     # include <string.h>
297     #endif
298     #if HAVE_STRINGS_H
299     # include <strings.h>
300     #endif
301     #if HAVE_INTTYPES_H
302     # include <inttypes.h>
303     #else
304     # if HAVE_STDINT_H
305     # include <stdint.h>
306     # endif
307     #endif
308     #if HAVE_UNISTD_H
309     # include <unistd.h>
310     #endif"
311    
312 root 1.51 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP TBL TIC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS'
313 pcg 1.11 ac_subst_files='MCOMMON'
314 pcg 1.1
315     # Initialize some variables set by options.
316 pcg 1.11 ac_init_help=
317     ac_init_version=false
318 pcg 1.1 # The variables have the same names as the options, with
319     # dashes changed to underlines.
320 pcg 1.11 cache_file=/dev/null
321 pcg 1.1 exec_prefix=NONE
322     no_create=
323     no_recursion=
324     prefix=NONE
325     program_prefix=NONE
326     program_suffix=NONE
327     program_transform_name=s,x,x,
328     silent=
329     site=
330     srcdir=
331     verbose=
332     x_includes=NONE
333     x_libraries=NONE
334 pcg 1.11
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 pcg 1.1 bindir='${exec_prefix}/bin'
341     sbindir='${exec_prefix}/sbin'
342     libexecdir='${exec_prefix}/libexec'
343     datadir='${prefix}/share'
344     sysconfdir='${prefix}/etc'
345     sharedstatedir='${prefix}/com'
346     localstatedir='${prefix}/var'
347     libdir='${exec_prefix}/lib'
348     includedir='${prefix}/include'
349     oldincludedir='/usr/include'
350     infodir='${prefix}/info'
351     mandir='${prefix}/man'
352    
353     ac_prev=
354     for ac_option
355     do
356     # If the previous option needs an argument, assign it.
357     if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361     fi
362    
363 pcg 1.11 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 pcg 1.1
365     # Accept the important Cygnus configure options, so we can diagnose typos.
366    
367 pcg 1.11 case $ac_option in
368 pcg 1.1
369     -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 pcg 1.11 bindir=$ac_optarg ;;
373 pcg 1.1
374     -build | --build | --buil | --bui | --bu)
375 pcg 1.11 ac_prev=build_alias ;;
376 pcg 1.1 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 pcg 1.11 build_alias=$ac_optarg ;;
378 pcg 1.1
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 pcg 1.11 cache_file=$ac_optarg ;;
385    
386     --config-cache | -C)
387     cache_file=config.cache ;;
388 pcg 1.1
389     -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391     -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392     | --da=*)
393 pcg 1.11 datadir=$ac_optarg ;;
394 pcg 1.1
395     -disable-* | --disable-*)
396 pcg 1.11 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 pcg 1.1 # Reject names that are not valid shell variable names.
398 pcg 1.11 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400     { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403 pcg 1.1
404     -enable-* | --enable-*)
405 pcg 1.11 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 pcg 1.1 # Reject names that are not valid shell variable names.
407 pcg 1.11 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409     { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 pcg 1.1 *) ac_optarg=yes ;;
414     esac
415 pcg 1.11 eval "enable_$ac_feature='$ac_optarg'" ;;
416 pcg 1.1
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 pcg 1.11 exec_prefix=$ac_optarg ;;
425 pcg 1.1
426     -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429    
430 pcg 1.11 -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436 pcg 1.1
437     -host | --host | --hos | --ho)
438 pcg 1.11 ac_prev=host_alias ;;
439 pcg 1.1 -host=* | --host=* | --hos=* | --ho=*)
440 pcg 1.11 host_alias=$ac_optarg ;;
441 pcg 1.1
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 pcg 1.11 includedir=$ac_optarg ;;
448 pcg 1.1
449     -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 pcg 1.11 infodir=$ac_optarg ;;
453 pcg 1.1
454     -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456     -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 pcg 1.11 libdir=$ac_optarg ;;
458 pcg 1.1
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 pcg 1.11 libexecdir=$ac_optarg ;;
465 pcg 1.1
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 pcg 1.11 localstatedir=$ac_optarg ;;
474 pcg 1.1
475     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 pcg 1.11 mandir=$ac_optarg ;;
479 pcg 1.1
480     -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483    
484     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 pcg 1.11 | --no-cr | --no-c | -n)
486 pcg 1.1 no_create=yes ;;
487    
488     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491    
492     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494     | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 pcg 1.11 oldincludedir=$ac_optarg ;;
500 pcg 1.1
501     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 pcg 1.11 prefix=$ac_optarg ;;
505 pcg 1.1
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 pcg 1.11 program_prefix=$ac_optarg ;;
512 pcg 1.1
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 pcg 1.11 program_suffix=$ac_optarg ;;
519 pcg 1.1
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 pcg 1.11 program_transform_name=$ac_optarg ;;
536 pcg 1.1
537     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538     | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540    
541     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544     | --sbi=* | --sb=*)
545 pcg 1.11 sbindir=$ac_optarg ;;
546 pcg 1.1
547     -sharedstatedir | --sharedstatedir | --sharedstatedi \
548     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549     | --sharedst | --shareds | --shared | --share | --shar \
550     | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555     | --sha=* | --sh=*)
556 pcg 1.11 sharedstatedir=$ac_optarg ;;
557 pcg 1.1
558     -site | --site | --sit)
559     ac_prev=site ;;
560     -site=* | --site=* | --sit=*)
561 pcg 1.11 site=$ac_optarg ;;
562 pcg 1.1
563     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 pcg 1.11 srcdir=$ac_optarg ;;
567 pcg 1.1
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 pcg 1.11 sysconfdir=$ac_optarg ;;
574 pcg 1.1
575     -target | --target | --targe | --targ | --tar | --ta | --t)
576 pcg 1.11 ac_prev=target_alias ;;
577 pcg 1.1 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 pcg 1.11 target_alias=$ac_optarg ;;
579 pcg 1.1
580     -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582    
583 pcg 1.11 -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585 pcg 1.1
586     -with-* | --with-*)
587 pcg 1.11 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 pcg 1.1 # Reject names that are not valid shell variable names.
589 pcg 1.11 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 pcg 1.1 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 pcg 1.11 case $ac_option in
594     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 pcg 1.1 *) ac_optarg=yes ;;
596     esac
597 pcg 1.11 eval "with_$ac_package='$ac_optarg'" ;;
598 pcg 1.1
599     -without-* | --without-*)
600 pcg 1.11 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 pcg 1.1 # Reject names that are not valid shell variable names.
602 pcg 1.11 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603     { echo "$as_me: error: invalid package name: $ac_package" >&2
604     { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607 pcg 1.1
608     --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611    
612     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613     | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 pcg 1.11 x_includes=$ac_optarg ;;
618 pcg 1.1
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 pcg 1.11 x_libraries=$ac_optarg ;;
625 pcg 1.1
626 pcg 1.11 -*) { echo "$as_me: error: unrecognized option: $ac_option
627     Try \`$0 --help' for more information." >&2
628     { (exit 1); exit 1; }; }
629 pcg 1.1 ;;
630    
631 pcg 1.11 *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635     { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636     { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640    
641 pcg 1.1 *)
642 pcg 1.11 # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645     echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 pcg 1.1 ;;
648    
649     esac
650     done
651    
652     if test -n "$ac_prev"; then
653 pcg 1.11 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654     { echo "$as_me: error: missing argument to $ac_option" >&2
655     { (exit 1); exit 1; }; }
656 pcg 1.1 fi
657    
658 pcg 1.11 # Be sure to have absolute paths.
659     for ac_var in exec_prefix prefix
660     do
661     eval ac_val=$`echo $ac_var`
662     case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665     { (exit 1); exit 1; }; };;
666     esac
667     done
668 pcg 1.1
669 pcg 1.11 # Be sure to have absolute paths.
670     for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671     localstatedir libdir includedir oldincludedir infodir mandir
672 pcg 1.1 do
673 pcg 1.11 eval ac_val=$`echo $ac_var`
674     case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677     { (exit 1); exit 1; }; };;
678 pcg 1.1 esac
679     done
680    
681 pcg 1.11 # There might be people who depend on the old broken behavior: `$host'
682     # used to hold the argument of --host etc.
683     # FIXME: To remove some day.
684     build=$build_alias
685     host=$host_alias
686     target=$target_alias
687    
688     # FIXME: To remove some day.
689     if test "x$host_alias" != x; then
690     if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694     elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696     fi
697     fi
698    
699     ac_tool_prefix=
700     test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 pcg 1.1
702 pcg 1.11 test "$silent" = yes && exec 6>/dev/null
703 pcg 1.1
704    
705     # Find the source files, if location was not specified.
706     if test -z "$srcdir"; then
707     ac_srcdir_defaulted=yes
708     # Try the directory containing this script, then its parent.
709 pcg 1.11 ac_confdir=`(dirname "$0") 2>/dev/null ||
710     $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711     X"$0" : 'X\(//\)[^/]' \| \
712     X"$0" : 'X\(//\)$' \| \
713     X"$0" : 'X\(/\)' \| \
714     . : '\(.\)' 2>/dev/null ||
715     echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718     /^X\(\/\/\)$/{ s//\1/; q; }
719     /^X\(\/\).*/{ s//\1/; q; }
720     s/.*/./; q'`
721 pcg 1.1 srcdir=$ac_confdir
722     if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724     fi
725     else
726     ac_srcdir_defaulted=no
727     fi
728     if test ! -r $srcdir/$ac_unique_file; then
729     if test "$ac_srcdir_defaulted" = yes; then
730 pcg 1.11 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731     { (exit 1); exit 1; }; }
732 pcg 1.1 else
733 pcg 1.11 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734     { (exit 1); exit 1; }; }
735 pcg 1.1 fi
736     fi
737 pcg 1.11 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738     { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739     { (exit 1); exit 1; }; }
740     srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741     ac_env_build_alias_set=${build_alias+set}
742     ac_env_build_alias_value=$build_alias
743     ac_cv_env_build_alias_set=${build_alias+set}
744     ac_cv_env_build_alias_value=$build_alias
745     ac_env_host_alias_set=${host_alias+set}
746     ac_env_host_alias_value=$host_alias
747     ac_cv_env_host_alias_set=${host_alias+set}
748     ac_cv_env_host_alias_value=$host_alias
749     ac_env_target_alias_set=${target_alias+set}
750     ac_env_target_alias_value=$target_alias
751     ac_cv_env_target_alias_set=${target_alias+set}
752     ac_cv_env_target_alias_value=$target_alias
753     ac_env_CC_set=${CC+set}
754     ac_env_CC_value=$CC
755     ac_cv_env_CC_set=${CC+set}
756     ac_cv_env_CC_value=$CC
757     ac_env_CFLAGS_set=${CFLAGS+set}
758     ac_env_CFLAGS_value=$CFLAGS
759     ac_cv_env_CFLAGS_set=${CFLAGS+set}
760     ac_cv_env_CFLAGS_value=$CFLAGS
761     ac_env_LDFLAGS_set=${LDFLAGS+set}
762     ac_env_LDFLAGS_value=$LDFLAGS
763     ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764     ac_cv_env_LDFLAGS_value=$LDFLAGS
765     ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766     ac_env_CPPFLAGS_value=$CPPFLAGS
767     ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768     ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769     ac_env_CXX_set=${CXX+set}
770     ac_env_CXX_value=$CXX
771     ac_cv_env_CXX_set=${CXX+set}
772     ac_cv_env_CXX_value=$CXX
773     ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774     ac_env_CXXFLAGS_value=$CXXFLAGS
775     ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776     ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777     ac_env_CPP_set=${CPP+set}
778     ac_env_CPP_value=$CPP
779     ac_cv_env_CPP_set=${CPP+set}
780     ac_cv_env_CPP_value=$CPP
781 pcg 1.13 ac_env_CXXCPP_set=${CXXCPP+set}
782     ac_env_CXXCPP_value=$CXXCPP
783     ac_cv_env_CXXCPP_set=${CXXCPP+set}
784     ac_cv_env_CXXCPP_value=$CXXCPP
785 pcg 1.11
786     #
787     # Report the --help message.
788     #
789     if test "$ac_init_help" = "long"; then
790     # Omit some internal or obsolete options to make the list less imposing.
791     # This message is too long to be a string in the A/UX 3.1 sh.
792     cat <<_ACEOF
793     \`configure' configures this package to adapt to many kinds of systems.
794    
795     Usage: $0 [OPTION]... [VAR=VALUE]...
796    
797     To assign environment variables (e.g., CC, CFLAGS...), specify them as
798     VAR=VALUE. See below for descriptions of some of the useful variables.
799    
800     Defaults for the options are specified in brackets.
801    
802     Configuration:
803     -h, --help display this help and exit
804     --help=short display options specific to this package
805     --help=recursive display the short help of all the included packages
806     -V, --version display version information and exit
807     -q, --quiet, --silent do not print \`checking...' messages
808     --cache-file=FILE cache test results in FILE [disabled]
809     -C, --config-cache alias for \`--cache-file=config.cache'
810     -n, --no-create do not create output files
811     --srcdir=DIR find the sources in DIR [configure dir or \`..']
812    
813     _ACEOF
814    
815     cat <<_ACEOF
816     Installation directories:
817     --prefix=PREFIX install architecture-independent files in PREFIX
818     [$ac_default_prefix]
819     --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
820     [PREFIX]
821    
822     By default, \`make install' will install all the files in
823     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
824     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
825     for instance \`--prefix=\$HOME'.
826    
827     For better control, use the options below.
828    
829     Fine tuning of the installation directories:
830     --bindir=DIR user executables [EPREFIX/bin]
831     --sbindir=DIR system admin executables [EPREFIX/sbin]
832     --libexecdir=DIR program executables [EPREFIX/libexec]
833     --datadir=DIR read-only architecture-independent data [PREFIX/share]
834     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
835     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
836     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
837     --libdir=DIR object code libraries [EPREFIX/lib]
838     --includedir=DIR C header files [PREFIX/include]
839     --oldincludedir=DIR C header files for non-gcc [/usr/include]
840     --infodir=DIR info documentation [PREFIX/info]
841     --mandir=DIR man documentation [PREFIX/man]
842     _ACEOF
843    
844     cat <<\_ACEOF
845    
846     X features:
847     --x-includes=DIR X include files are in DIR
848     --x-libraries=DIR X library files are in DIR
849    
850     Program names:
851     --program-prefix=PREFIX prepend PREFIX to installed program names
852     --program-suffix=SUFFIX append SUFFIX to installed program names
853     --program-transform-name=PROGRAM run sed PROGRAM on installed program names
854    
855     System types:
856     --build=BUILD configure for building on BUILD [guessed]
857     --host=HOST cross-compile to build programs to run on HOST [BUILD]
858     _ACEOF
859     fi
860    
861     if test -n "$ac_init_help"; then
862    
863     cat <<\_ACEOF
864    
865     Optional Features:
866     --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
867     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
868 pcg 1.13 --enable-everything enable standard non-multichoice features
869 pcg 1.11 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 pcg 1.18 --enable-combining enable composition of base and combining characters
873 pcg 1.15 --enable-xft enable xft support on systems that have it
874 root 1.39 --enable-font-styles enable bold and italic support
875 pcg 1.11 --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 pcg 1.24 --enable-tinting enable tinting of transparent bg
881 root 1.31 --enable-fading enable colors fading when off focus
882 pcg 1.11 --enable-menubar enable menubar
883     --enable-rxvt-scroll enable rxvt style scrollbar
884     --enable-next-scroll enable NeXT style scrollbar
885     --enable-xterm-scroll enable Xterm style scrollbar
886     --enable-plain-scroll enable plain style scrollbar
887     --enable-half-shadow use half width/height shadow on rxvt scrollbar
888     --enable-xim XIM (X Input Method) protocol support
889     --enable-ttygid enable tty setting to group named "tty"
890     --disable-backspace-key disable handling of the backspace key
891     --disable-delete-key disable handling of the delete key
892     --disable-resources disable all resource checking
893     --enable-xgetdefault enable resources via X instead of our small version
894 root 1.26 --enable-8bitctrls enable 8 bit control sequences (not recommended)
895 pcg 1.15 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
896 pcg 1.11 --enable-strings enable some replacement system functions
897     --disable-swapscreen disable swap screen support
898 root 1.34 --enable-iso14755 enable support for extended ISO 14755 modes
899 pcg 1.11 --enable-frills enable support for rarely used features
900     --enable-24bit enable support for using 24bit visuals if available
901     --enable-keepscrolling enable continual scrolling on scrollbar arrow press
902     --enable-selectionscrolling enable scrolling during selections
903     --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
904     --enable-slipwheeling enable slip wheel scrolling (requires previous)
905     --enable-dmalloc enable Gray Watson's malloc - for debugging use
906     --enable-dlmalloc enable Doug Lea's malloc - for production use
907     NOTE: enable only one malloc package
908     --enable-smart-resize enable smart growth/shrink behaviour
909     --enable-text-blink enable blinking text
910     --enable-pointer-blank enable pointer blank when typing or inactive pointer
911    
912     Optional Packages:
913     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
914     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
915 root 1.41 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
916 pcg 1.15 --with-res-name=NAME use this as default resource name (default: urxvt)
917 pcg 1.18 --with-res-class=CLASS use this as the resource class (default: URxvt)
918 pcg 1.15 --with-name=NAME set the basename for the installed binaries (default: urxvt)
919     --with-term=NAME set the terminal to NAME (default: rxvt)
920 pcg 1.11 --with-terminfo=PATH set the path to the terminfo tree to PATH
921     --with-x use the X Window System
922     --with-xpm-includes=DIR use XPM includes in DIR
923     --with-xpm-library=DIR use XPM library in DIR
924     --with-xpm use XPM
925    
926     Some influential environment variables:
927     CC C compiler command
928     CFLAGS C compiler flags
929     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
930     nonstandard directory <lib dir>
931     CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
932     headers in a nonstandard directory <include dir>
933     CXX C++ compiler command
934     CXXFLAGS C++ compiler flags
935     CPP C preprocessor
936 pcg 1.13 CXXCPP C++ preprocessor
937 pcg 1.11
938     Use these variables to override the choices made by `configure' or to help
939     it to find libraries and programs with nonstandard names/locations.
940    
941     _ACEOF
942     fi
943    
944     if test "$ac_init_help" = "recursive"; then
945     # If there are subdirs, report their specific --help.
946     ac_popdir=`pwd`
947     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
948     test -d $ac_dir || continue
949     ac_builddir=.
950    
951     if test "$ac_dir" != .; then
952     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
953     # A "../" for each directory in $ac_dir_suffix.
954     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
955     else
956     ac_dir_suffix= ac_top_builddir=
957     fi
958    
959     case $srcdir in
960     .) # No --srcdir option. We are building in place.
961     ac_srcdir=.
962     if test -z "$ac_top_builddir"; then
963     ac_top_srcdir=.
964     else
965     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
966     fi ;;
967     [\\/]* | ?:[\\/]* ) # Absolute path.
968     ac_srcdir=$srcdir$ac_dir_suffix;
969     ac_top_srcdir=$srcdir ;;
970     *) # Relative path.
971     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
972     ac_top_srcdir=$ac_top_builddir$srcdir ;;
973     esac
974    
975     # Do not use `cd foo && pwd` to compute absolute paths, because
976     # the directories may not exist.
977     case `pwd` in
978     .) ac_abs_builddir="$ac_dir";;
979     *)
980     case "$ac_dir" in
981     .) ac_abs_builddir=`pwd`;;
982     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
983     *) ac_abs_builddir=`pwd`/"$ac_dir";;
984     esac;;
985     esac
986     case $ac_abs_builddir in
987     .) ac_abs_top_builddir=${ac_top_builddir}.;;
988     *)
989     case ${ac_top_builddir}. in
990     .) ac_abs_top_builddir=$ac_abs_builddir;;
991     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
992     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
993     esac;;
994     esac
995     case $ac_abs_builddir in
996     .) ac_abs_srcdir=$ac_srcdir;;
997     *)
998     case $ac_srcdir in
999     .) ac_abs_srcdir=$ac_abs_builddir;;
1000     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1001     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1002     esac;;
1003     esac
1004     case $ac_abs_builddir in
1005     .) ac_abs_top_srcdir=$ac_top_srcdir;;
1006     *)
1007     case $ac_top_srcdir in
1008     .) ac_abs_top_srcdir=$ac_abs_builddir;;
1009     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1010     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1011     esac;;
1012     esac
1013    
1014     cd $ac_dir
1015     # Check for guested configure; otherwise get Cygnus style configure.
1016     if test -f $ac_srcdir/configure.gnu; then
1017     echo
1018     $SHELL $ac_srcdir/configure.gnu --help=recursive
1019     elif test -f $ac_srcdir/configure; then
1020     echo
1021     $SHELL $ac_srcdir/configure --help=recursive
1022     elif test -f $ac_srcdir/configure.ac ||
1023     test -f $ac_srcdir/configure.in; then
1024     echo
1025     $ac_configure --help
1026     else
1027     echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1028     fi
1029     cd "$ac_popdir"
1030     done
1031     fi
1032    
1033     test -n "$ac_init_help" && exit 0
1034     if $ac_init_version; then
1035     cat <<\_ACEOF
1036    
1037     Copyright (C) 2003 Free Software Foundation, Inc.
1038     This configure script is free software; the Free Software Foundation
1039     gives unlimited permission to copy, distribute and modify it.
1040     _ACEOF
1041     exit 0
1042     fi
1043     exec 5>config.log
1044     cat >&5 <<_ACEOF
1045     This file contains any messages produced by compilers while
1046     running configure, to aid debugging if configure makes a mistake.
1047    
1048     It was created by $as_me, which was
1049     generated by GNU Autoconf 2.59. Invocation command line was
1050    
1051     $ $0 $@
1052    
1053     _ACEOF
1054     {
1055     cat <<_ASUNAME
1056     ## --------- ##
1057     ## Platform. ##
1058     ## --------- ##
1059    
1060     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1061     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1062     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1063     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1064     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1065    
1066     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1067     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1068    
1069     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1070     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1071     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1072     hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1073     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1074     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1075     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1076    
1077     _ASUNAME
1078    
1079     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1080     for as_dir in $PATH
1081     do
1082     IFS=$as_save_IFS
1083     test -z "$as_dir" && as_dir=.
1084     echo "PATH: $as_dir"
1085     done
1086    
1087     } >&5
1088    
1089     cat >&5 <<_ACEOF
1090    
1091    
1092     ## ----------- ##
1093     ## Core tests. ##
1094     ## ----------- ##
1095    
1096     _ACEOF
1097    
1098    
1099     # Keep a trace of the command line.
1100     # Strip out --no-create and --no-recursion so they do not pile up.
1101     # Strip out --silent because we don't want to record it for future runs.
1102     # Also quote any args containing shell meta-characters.
1103     # Make two passes to allow for proper duplicate-argument suppression.
1104     ac_configure_args=
1105     ac_configure_args0=
1106     ac_configure_args1=
1107     ac_sep=
1108     ac_must_keep_next=false
1109     for ac_pass in 1 2
1110     do
1111     for ac_arg
1112     do
1113     case $ac_arg in
1114     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1115     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116     | -silent | --silent | --silen | --sile | --sil)
1117     continue ;;
1118     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1119     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1120     esac
1121     case $ac_pass in
1122     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1123     2)
1124     ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1125     if test $ac_must_keep_next = true; then
1126     ac_must_keep_next=false # Got value, back to normal.
1127     else
1128     case $ac_arg in
1129     *=* | --config-cache | -C | -disable-* | --disable-* \
1130     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1131     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1132     | -with-* | --with-* | -without-* | --without-* | --x)
1133     case "$ac_configure_args0 " in
1134     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1135     esac
1136     ;;
1137     -* ) ac_must_keep_next=true ;;
1138     esac
1139     fi
1140     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1141     # Get rid of the leading space.
1142     ac_sep=" "
1143     ;;
1144     esac
1145     done
1146     done
1147     $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1148     $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1149    
1150     # When interrupted or exit'd, cleanup temporary files, and complete
1151     # config.log. We remove comments because anyway the quotes in there
1152     # would cause problems or look ugly.
1153     # WARNING: Be sure not to use single quotes in there, as some shells,
1154     # such as our DU 5.0 friend, will then `close' the trap.
1155     trap 'exit_status=$?
1156     # Save into config.log some information that might help in debugging.
1157     {
1158     echo
1159    
1160     cat <<\_ASBOX
1161     ## ---------------- ##
1162     ## Cache variables. ##
1163     ## ---------------- ##
1164     _ASBOX
1165     echo
1166     # The following way of writing the cache mishandles newlines in values,
1167     {
1168     (set) 2>&1 |
1169     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1170     *ac_space=\ *)
1171     sed -n \
1172     "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1173     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1174     ;;
1175     *)
1176     sed -n \
1177     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1178     ;;
1179     esac;
1180     }
1181     echo
1182    
1183     cat <<\_ASBOX
1184     ## ----------------- ##
1185     ## Output variables. ##
1186     ## ----------------- ##
1187     _ASBOX
1188     echo
1189     for ac_var in $ac_subst_vars
1190     do
1191     eval ac_val=$`echo $ac_var`
1192     echo "$ac_var='"'"'$ac_val'"'"'"
1193     done | sort
1194     echo
1195    
1196     if test -n "$ac_subst_files"; then
1197     cat <<\_ASBOX
1198     ## ------------- ##
1199     ## Output files. ##
1200     ## ------------- ##
1201     _ASBOX
1202     echo
1203     for ac_var in $ac_subst_files
1204     do
1205     eval ac_val=$`echo $ac_var`
1206     echo "$ac_var='"'"'$ac_val'"'"'"
1207     done | sort
1208     echo
1209     fi
1210    
1211     if test -s confdefs.h; then
1212     cat <<\_ASBOX
1213     ## ----------- ##
1214     ## confdefs.h. ##
1215     ## ----------- ##
1216     _ASBOX
1217     echo
1218     sed "/^$/d" confdefs.h | sort
1219     echo
1220     fi
1221     test "$ac_signal" != 0 &&
1222     echo "$as_me: caught signal $ac_signal"
1223     echo "$as_me: exit $exit_status"
1224     } >&5
1225     rm -f core *.core &&
1226     rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1227     exit $exit_status
1228     ' 0
1229     for ac_signal in 1 2 13 15; do
1230     trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1231     done
1232     ac_signal=0
1233    
1234     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1235     rm -rf conftest* confdefs.h
1236     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1237     echo >confdefs.h
1238    
1239     # Predefined preprocessor variables.
1240    
1241     cat >>confdefs.h <<_ACEOF
1242     #define PACKAGE_NAME "$PACKAGE_NAME"
1243     _ACEOF
1244    
1245    
1246     cat >>confdefs.h <<_ACEOF
1247     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1248     _ACEOF
1249    
1250    
1251     cat >>confdefs.h <<_ACEOF
1252     #define PACKAGE_VERSION "$PACKAGE_VERSION"
1253     _ACEOF
1254    
1255    
1256     cat >>confdefs.h <<_ACEOF
1257     #define PACKAGE_STRING "$PACKAGE_STRING"
1258     _ACEOF
1259    
1260    
1261     cat >>confdefs.h <<_ACEOF
1262     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1263     _ACEOF
1264 pcg 1.1
1265 pcg 1.11
1266     # Let the site file select an alternate cache file if it wants to.
1267 pcg 1.1 # Prefer explicitly selected file to automatically selected ones.
1268     if test -z "$CONFIG_SITE"; then
1269     if test "x$prefix" != xNONE; then
1270     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1271     else
1272     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1273     fi
1274     fi
1275     for ac_site_file in $CONFIG_SITE; do
1276     if test -r "$ac_site_file"; then
1277 pcg 1.11 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1278     echo "$as_me: loading site script $ac_site_file" >&6;}
1279     sed 's/^/| /' "$ac_site_file" >&5
1280 pcg 1.1 . "$ac_site_file"
1281     fi
1282     done
1283    
1284     if test -r "$cache_file"; then
1285 pcg 1.11 # Some versions of bash will fail to source /dev/null (special
1286     # files actually), so we avoid doing that.
1287     if test -f "$cache_file"; then
1288     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1289     echo "$as_me: loading cache $cache_file" >&6;}
1290     case $cache_file in
1291     [\\/]* | ?:[\\/]* ) . $cache_file;;
1292     *) . ./$cache_file;;
1293     esac
1294     fi
1295 pcg 1.1 else
1296 pcg 1.11 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1297     echo "$as_me: creating cache $cache_file" >&6;}
1298     >$cache_file
1299     fi
1300    
1301     # Check that the precious variables saved in the cache have kept the same
1302     # value.
1303     ac_cache_corrupted=false
1304     for ac_var in `(set) 2>&1 |
1305     sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1306     eval ac_old_set=\$ac_cv_env_${ac_var}_set
1307     eval ac_new_set=\$ac_env_${ac_var}_set
1308     eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1309     eval ac_new_val="\$ac_env_${ac_var}_value"
1310     case $ac_old_set,$ac_new_set in
1311     set,)
1312     { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1313     echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1314     ac_cache_corrupted=: ;;
1315     ,set)
1316     { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1317     echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1318     ac_cache_corrupted=: ;;
1319     ,);;
1320     *)
1321     if test "x$ac_old_val" != "x$ac_new_val"; then
1322     { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1323     echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1324     { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1325     echo "$as_me: former value: $ac_old_val" >&2;}
1326     { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1327     echo "$as_me: current value: $ac_new_val" >&2;}
1328     ac_cache_corrupted=:
1329     fi;;
1330     esac
1331     # Pass precious variables to config.status.
1332     if test "$ac_new_set" = set; then
1333     case $ac_new_val in
1334     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1335     ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1336     *) ac_arg=$ac_var=$ac_new_val ;;
1337     esac
1338     case " $ac_configure_args " in
1339     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1340     *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1341     esac
1342     fi
1343     done
1344     if $ac_cache_corrupted; then
1345     { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1346     echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1347     { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1348     echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1349     { (exit 1); exit 1; }; }
1350 pcg 1.1 fi
1351    
1352     ac_ext=c
1353     ac_cpp='$CPP $CPPFLAGS'
1354 pcg 1.11 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1355     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1356     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1357    
1358    
1359    
1360    
1361    
1362    
1363    
1364    
1365    
1366    
1367    
1368    
1369    
1370    
1371    
1372    
1373    
1374 pcg 1.1
1375    
1376 root 1.32
1377 pcg 1.1 ac_aux_dir=
1378     for ac_dir in autoconf $srcdir/autoconf; do
1379     if test -f $ac_dir/install-sh; then
1380     ac_aux_dir=$ac_dir
1381     ac_install_sh="$ac_aux_dir/install-sh -c"
1382     break
1383     elif test -f $ac_dir/install.sh; then
1384     ac_aux_dir=$ac_dir
1385     ac_install_sh="$ac_aux_dir/install.sh -c"
1386     break
1387 pcg 1.11 elif test -f $ac_dir/shtool; then
1388     ac_aux_dir=$ac_dir
1389     ac_install_sh="$ac_aux_dir/shtool install -c"
1390     break
1391 pcg 1.1 fi
1392     done
1393     if test -z "$ac_aux_dir"; then
1394 pcg 1.11 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1395     echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1396     { (exit 1); exit 1; }; }
1397     fi
1398     ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1399     ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1400     ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1401 pcg 1.1
1402 pcg 1.11 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
1403 pcg 1.1
1404    
1405 root 1.48 # Make sure we can run config.sub.
1406     $ac_config_sub sun4 >/dev/null 2>&1 ||
1407     { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1408     echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1409     { (exit 1); exit 1; }; }
1410    
1411     echo "$as_me:$LINENO: checking build system type" >&5
1412     echo $ECHO_N "checking build system type... $ECHO_C" >&6
1413     if test "${ac_cv_build+set}" = set; then
1414     echo $ECHO_N "(cached) $ECHO_C" >&6
1415     else
1416     ac_cv_build_alias=$build_alias
1417     test -z "$ac_cv_build_alias" &&
1418     ac_cv_build_alias=`$ac_config_guess`
1419     test -z "$ac_cv_build_alias" &&
1420     { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1421     echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1422     { (exit 1); exit 1; }; }
1423     ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1424     { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1425     echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1426     { (exit 1); exit 1; }; }
1427    
1428     fi
1429     echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1430     echo "${ECHO_T}$ac_cv_build" >&6
1431     build=$ac_cv_build
1432     build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1433     build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1434     build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1435    
1436    
1437     echo "$as_me:$LINENO: checking host system type" >&5
1438     echo $ECHO_N "checking host system type... $ECHO_C" >&6
1439     if test "${ac_cv_host+set}" = set; then
1440     echo $ECHO_N "(cached) $ECHO_C" >&6
1441     else
1442     ac_cv_host_alias=$host_alias
1443     test -z "$ac_cv_host_alias" &&
1444     ac_cv_host_alias=$ac_cv_build_alias
1445     ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1446     { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1447     echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1448     { (exit 1); exit 1; }; }
1449    
1450     fi
1451     echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1452     echo "${ECHO_T}$ac_cv_host" >&6
1453     host=$ac_cv_host
1454     host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1455     host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1456     host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1457    
1458    
1459    
1460 pcg 1.1 VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1461     DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1462     echo ""
1463     echo "configuring for rxvt $VERSION"
1464     echo ""
1465    
1466    
1467 pcg 1.11 ac_ext=c
1468     ac_cpp='$CPP $CPPFLAGS'
1469     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1470     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1471     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1472     if test -n "$ac_tool_prefix"; then
1473     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1474     set dummy ${ac_tool_prefix}gcc; ac_word=$2
1475     echo "$as_me:$LINENO: checking for $ac_word" >&5
1476     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477     if test "${ac_cv_prog_CC+set}" = set; then
1478     echo $ECHO_N "(cached) $ECHO_C" >&6
1479     else
1480     if test -n "$CC"; then
1481     ac_cv_prog_CC="$CC" # Let the user override the test.
1482     else
1483     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484     for as_dir in $PATH
1485     do
1486     IFS=$as_save_IFS
1487     test -z "$as_dir" && as_dir=.
1488     for ac_exec_ext in '' $ac_executable_extensions; do
1489     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492     break 2
1493     fi
1494     done
1495     done
1496    
1497     fi
1498     fi
1499     CC=$ac_cv_prog_CC
1500     if test -n "$CC"; then
1501     echo "$as_me:$LINENO: result: $CC" >&5
1502     echo "${ECHO_T}$CC" >&6
1503     else
1504     echo "$as_me:$LINENO: result: no" >&5
1505     echo "${ECHO_T}no" >&6
1506     fi
1507    
1508     fi
1509     if test -z "$ac_cv_prog_CC"; then
1510     ac_ct_CC=$CC
1511     # Extract the first word of "gcc", so it can be a program name with args.
1512 pcg 1.1 set dummy gcc; ac_word=$2
1513 pcg 1.11 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1516     echo $ECHO_N "(cached) $ECHO_C" >&6
1517     else
1518     if test -n "$ac_ct_CC"; then
1519     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1520     else
1521     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522     for as_dir in $PATH
1523     do
1524     IFS=$as_save_IFS
1525     test -z "$as_dir" && as_dir=.
1526     for ac_exec_ext in '' $ac_executable_extensions; do
1527     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528     ac_cv_prog_ac_ct_CC="gcc"
1529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530     break 2
1531     fi
1532     done
1533     done
1534    
1535     fi
1536     fi
1537     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1538     if test -n "$ac_ct_CC"; then
1539     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1540     echo "${ECHO_T}$ac_ct_CC" >&6
1541     else
1542     echo "$as_me:$LINENO: result: no" >&5
1543     echo "${ECHO_T}no" >&6
1544     fi
1545    
1546     CC=$ac_ct_CC
1547     else
1548     CC="$ac_cv_prog_CC"
1549     fi
1550    
1551     if test -z "$CC"; then
1552     if test -n "$ac_tool_prefix"; then
1553     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1554     set dummy ${ac_tool_prefix}cc; ac_word=$2
1555     echo "$as_me:$LINENO: checking for $ac_word" >&5
1556     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557     if test "${ac_cv_prog_CC+set}" = set; then
1558     echo $ECHO_N "(cached) $ECHO_C" >&6
1559 pcg 1.1 else
1560     if test -n "$CC"; then
1561     ac_cv_prog_CC="$CC" # Let the user override the test.
1562     else
1563 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564     for as_dir in $PATH
1565     do
1566     IFS=$as_save_IFS
1567     test -z "$as_dir" && as_dir=.
1568     for ac_exec_ext in '' $ac_executable_extensions; do
1569     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570     ac_cv_prog_CC="${ac_tool_prefix}cc"
1571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572     break 2
1573     fi
1574     done
1575     done
1576    
1577 pcg 1.1 fi
1578     fi
1579 pcg 1.11 CC=$ac_cv_prog_CC
1580 pcg 1.1 if test -n "$CC"; then
1581 pcg 1.11 echo "$as_me:$LINENO: result: $CC" >&5
1582     echo "${ECHO_T}$CC" >&6
1583     else
1584     echo "$as_me:$LINENO: result: no" >&5
1585     echo "${ECHO_T}no" >&6
1586     fi
1587    
1588     fi
1589     if test -z "$ac_cv_prog_CC"; then
1590     ac_ct_CC=$CC
1591     # Extract the first word of "cc", so it can be a program name with args.
1592     set dummy cc; ac_word=$2
1593     echo "$as_me:$LINENO: checking for $ac_word" >&5
1594     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1596     echo $ECHO_N "(cached) $ECHO_C" >&6
1597     else
1598     if test -n "$ac_ct_CC"; then
1599     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1600     else
1601     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602     for as_dir in $PATH
1603     do
1604     IFS=$as_save_IFS
1605     test -z "$as_dir" && as_dir=.
1606     for ac_exec_ext in '' $ac_executable_extensions; do
1607     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608     ac_cv_prog_ac_ct_CC="cc"
1609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610     break 2
1611     fi
1612     done
1613     done
1614    
1615     fi
1616     fi
1617     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1618     if test -n "$ac_ct_CC"; then
1619     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1620     echo "${ECHO_T}$ac_ct_CC" >&6
1621     else
1622     echo "$as_me:$LINENO: result: no" >&5
1623     echo "${ECHO_T}no" >&6
1624     fi
1625    
1626     CC=$ac_ct_CC
1627 pcg 1.1 else
1628 pcg 1.11 CC="$ac_cv_prog_CC"
1629 pcg 1.1 fi
1630    
1631 pcg 1.11 fi
1632 pcg 1.1 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 pcg 1.11 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637     if test "${ac_cv_prog_CC+set}" = set; then
1638     echo $ECHO_N "(cached) $ECHO_C" >&6
1639 pcg 1.1 else
1640     if test -n "$CC"; then
1641     ac_cv_prog_CC="$CC" # Let the user override the test.
1642     else
1643     ac_prog_rejected=no
1644 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645     for as_dir in $PATH
1646     do
1647     IFS=$as_save_IFS
1648     test -z "$as_dir" && as_dir=.
1649     for ac_exec_ext in '' $ac_executable_extensions; do
1650     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1652     ac_prog_rejected=yes
1653     continue
1654     fi
1655     ac_cv_prog_CC="cc"
1656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657     break 2
1658     fi
1659     done
1660     done
1661    
1662 pcg 1.1 if test $ac_prog_rejected = yes; then
1663     # We found a bogon in the path, so make sure we never use it.
1664     set dummy $ac_cv_prog_CC
1665     shift
1666 pcg 1.11 if test $# != 0; then
1667 pcg 1.1 # We chose a different compiler from the bogus one.
1668     # However, it has the same basename, so the bogon will be chosen
1669     # first if we set CC to just the basename; use the full file name.
1670     shift
1671 pcg 1.11 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1672 pcg 1.1 fi
1673     fi
1674     fi
1675     fi
1676 pcg 1.11 CC=$ac_cv_prog_CC
1677 pcg 1.1 if test -n "$CC"; then
1678 pcg 1.11 echo "$as_me:$LINENO: result: $CC" >&5
1679     echo "${ECHO_T}$CC" >&6
1680 pcg 1.1 else
1681 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
1682     echo "${ECHO_T}no" >&6
1683 pcg 1.1 fi
1684    
1685 pcg 1.11 fi
1686     if test -z "$CC"; then
1687     if test -n "$ac_tool_prefix"; then
1688     for ac_prog in cl
1689     do
1690     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1691     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1692     echo "$as_me:$LINENO: checking for $ac_word" >&5
1693     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694     if test "${ac_cv_prog_CC+set}" = set; then
1695     echo $ECHO_N "(cached) $ECHO_C" >&6
1696 pcg 1.1 else
1697     if test -n "$CC"; then
1698     ac_cv_prog_CC="$CC" # Let the user override the test.
1699     else
1700 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701     for as_dir in $PATH
1702     do
1703     IFS=$as_save_IFS
1704     test -z "$as_dir" && as_dir=.
1705     for ac_exec_ext in '' $ac_executable_extensions; do
1706     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709     break 2
1710     fi
1711     done
1712     done
1713    
1714 pcg 1.1 fi
1715     fi
1716 pcg 1.11 CC=$ac_cv_prog_CC
1717 pcg 1.1 if test -n "$CC"; then
1718 pcg 1.11 echo "$as_me:$LINENO: result: $CC" >&5
1719     echo "${ECHO_T}$CC" >&6
1720 pcg 1.1 else
1721 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
1722     echo "${ECHO_T}no" >&6
1723     fi
1724    
1725     test -n "$CC" && break
1726     done
1727 pcg 1.1 fi
1728 pcg 1.11 if test -z "$CC"; then
1729     ac_ct_CC=$CC
1730     for ac_prog in cl
1731     do
1732     # Extract the first word of "$ac_prog", so it can be a program name with args.
1733     set dummy $ac_prog; ac_word=$2
1734     echo "$as_me:$LINENO: checking for $ac_word" >&5
1735     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737     echo $ECHO_N "(cached) $ECHO_C" >&6
1738     else
1739     if test -n "$ac_ct_CC"; then
1740     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1741     else
1742     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743     for as_dir in $PATH
1744     do
1745     IFS=$as_save_IFS
1746     test -z "$as_dir" && as_dir=.
1747     for ac_exec_ext in '' $ac_executable_extensions; do
1748     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749     ac_cv_prog_ac_ct_CC="$ac_prog"
1750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751     break 2
1752 pcg 1.1 fi
1753 pcg 1.11 done
1754     done
1755    
1756     fi
1757     fi
1758     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759     if test -n "$ac_ct_CC"; then
1760     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761     echo "${ECHO_T}$ac_ct_CC" >&6
1762     else
1763     echo "$as_me:$LINENO: result: no" >&5
1764     echo "${ECHO_T}no" >&6
1765     fi
1766    
1767     test -n "$ac_ct_CC" && break
1768     done
1769    
1770     CC=$ac_ct_CC
1771     fi
1772    
1773 pcg 1.1 fi
1774    
1775    
1776 pcg 1.11 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1777     See \`config.log' for more details." >&5
1778     echo "$as_me: error: no acceptable C compiler found in \$PATH
1779     See \`config.log' for more details." >&2;}
1780     { (exit 1); exit 1; }; }
1781    
1782     # Provide some information about the compiler.
1783     echo "$as_me:$LINENO:" \
1784     "checking for C compiler version" >&5
1785     ac_compiler=`set X $ac_compile; echo $2`
1786     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1787     (eval $ac_compiler --version </dev/null >&5) 2>&5
1788     ac_status=$?
1789     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790     (exit $ac_status); }
1791     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1792     (eval $ac_compiler -v </dev/null >&5) 2>&5
1793     ac_status=$?
1794     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795     (exit $ac_status); }
1796     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1797     (eval $ac_compiler -V </dev/null >&5) 2>&5
1798     ac_status=$?
1799     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800     (exit $ac_status); }
1801    
1802     cat >conftest.$ac_ext <<_ACEOF
1803     /* confdefs.h. */
1804     _ACEOF
1805     cat confdefs.h >>conftest.$ac_ext
1806     cat >>conftest.$ac_ext <<_ACEOF
1807     /* end confdefs.h. */
1808 pcg 1.1
1809 pcg 1.11 int
1810     main ()
1811     {
1812 pcg 1.1
1813 pcg 1.11 ;
1814     return 0;
1815     }
1816     _ACEOF
1817     ac_clean_files_save=$ac_clean_files
1818     ac_clean_files="$ac_clean_files a.out a.exe b.out"
1819     # Try to create an executable without -o first, disregard a.out.
1820     # It will help us diagnose broken compilers, and finding out an intuition
1821     # of exeext.
1822     echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1823     echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1824     ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1825     if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1826     (eval $ac_link_default) 2>&5
1827     ac_status=$?
1828     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1829     (exit $ac_status); }; then
1830     # Find the output, starting from the most likely. This scheme is
1831     # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1832     # resort.
1833    
1834     # Be careful to initialize this variable, since it used to be cached.
1835     # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1836     ac_cv_exeext=
1837     # b.out is created by i960 compilers.
1838     for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1839     do
1840     test -f "$ac_file" || continue
1841     case $ac_file in
1842     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1843     ;;
1844     conftest.$ac_ext )
1845     # This is the source file.
1846     ;;
1847     [ab].out )
1848     # We found the default executable, but exeext='' is most
1849     # certainly right.
1850     break;;
1851     *.* )
1852     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1853     # FIXME: I believe we export ac_cv_exeext for Libtool,
1854     # but it would be cool to find out if it's true. Does anybody
1855     # maintain Libtool? --akim.
1856     export ac_cv_exeext
1857     break;;
1858     * )
1859     break;;
1860     esac
1861     done
1862     else
1863     echo "$as_me: failed program was:" >&5
1864     sed 's/^/| /' conftest.$ac_ext >&5
1865 pcg 1.1
1866 pcg 1.11 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1867     See \`config.log' for more details." >&5
1868     echo "$as_me: error: C compiler cannot create executables
1869     See \`config.log' for more details." >&2;}
1870     { (exit 77); exit 77; }; }
1871     fi
1872    
1873     ac_exeext=$ac_cv_exeext
1874     echo "$as_me:$LINENO: result: $ac_file" >&5
1875     echo "${ECHO_T}$ac_file" >&6
1876    
1877     # Check the compiler produces executables we can run. If not, either
1878     # the compiler is broken, or we cross compile.
1879     echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1880     echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1881     # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1882     # If not cross compiling, check that we can run a simple program.
1883     if test "$cross_compiling" != yes; then
1884     if { ac_try='./$ac_file'
1885     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1886     (eval $ac_try) 2>&5
1887     ac_status=$?
1888     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889     (exit $ac_status); }; }; then
1890     cross_compiling=no
1891     else
1892     if test "$cross_compiling" = maybe; then
1893     cross_compiling=yes
1894     else
1895     { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1896     If you meant to cross compile, use \`--host'.
1897     See \`config.log' for more details." >&5
1898     echo "$as_me: error: cannot run C compiled programs.
1899     If you meant to cross compile, use \`--host'.
1900     See \`config.log' for more details." >&2;}
1901     { (exit 1); exit 1; }; }
1902     fi
1903 pcg 1.1 fi
1904 pcg 1.11 fi
1905     echo "$as_me:$LINENO: result: yes" >&5
1906     echo "${ECHO_T}yes" >&6
1907    
1908     rm -f a.out a.exe conftest$ac_cv_exeext b.out
1909     ac_clean_files=$ac_clean_files_save
1910     # Check the compiler produces executables we can run. If not, either
1911     # the compiler is broken, or we cross compile.
1912     echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1913     echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1914     echo "$as_me:$LINENO: result: $cross_compiling" >&5
1915     echo "${ECHO_T}$cross_compiling" >&6
1916    
1917     echo "$as_me:$LINENO: checking for suffix of executables" >&5
1918     echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1919     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1920     (eval $ac_link) 2>&5
1921     ac_status=$?
1922     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923     (exit $ac_status); }; then
1924     # If both `conftest.exe' and `conftest' are `present' (well, observable)
1925     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1926     # work properly (i.e., refer to `conftest.exe'), while it won't with
1927     # `rm'.
1928     for ac_file in conftest.exe conftest conftest.*; do
1929     test -f "$ac_file" || continue
1930     case $ac_file in
1931     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1932     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1933     export ac_cv_exeext
1934     break;;
1935     * ) break;;
1936     esac
1937     done
1938 pcg 1.1 else
1939 pcg 1.11 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1940     See \`config.log' for more details." >&5
1941     echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1942     See \`config.log' for more details." >&2;}
1943     { (exit 1); exit 1; }; }
1944 pcg 1.1 fi
1945 pcg 1.11
1946     rm -f conftest$ac_cv_exeext
1947     echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1948     echo "${ECHO_T}$ac_cv_exeext" >&6
1949    
1950     rm -f conftest.$ac_ext
1951     EXEEXT=$ac_cv_exeext
1952     ac_exeext=$EXEEXT
1953     echo "$as_me:$LINENO: checking for suffix of object files" >&5
1954     echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1955     if test "${ac_cv_objext+set}" = set; then
1956     echo $ECHO_N "(cached) $ECHO_C" >&6
1957     else
1958     cat >conftest.$ac_ext <<_ACEOF
1959     /* confdefs.h. */
1960     _ACEOF
1961     cat confdefs.h >>conftest.$ac_ext
1962     cat >>conftest.$ac_ext <<_ACEOF
1963     /* end confdefs.h. */
1964    
1965     int
1966     main ()
1967     {
1968    
1969     ;
1970     return 0;
1971     }
1972     _ACEOF
1973     rm -f conftest.o conftest.obj
1974     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1975     (eval $ac_compile) 2>&5
1976     ac_status=$?
1977     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978     (exit $ac_status); }; then
1979     for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1980     case $ac_file in
1981     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1982     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1983     break;;
1984     esac
1985     done
1986 pcg 1.1 else
1987 pcg 1.11 echo "$as_me: failed program was:" >&5
1988     sed 's/^/| /' conftest.$ac_ext >&5
1989    
1990     { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1991     See \`config.log' for more details." >&5
1992     echo "$as_me: error: cannot compute suffix of object files: cannot compile
1993     See \`config.log' for more details." >&2;}
1994     { (exit 1); exit 1; }; }
1995 pcg 1.1 fi
1996 pcg 1.11
1997     rm -f conftest.$ac_cv_objext conftest.$ac_ext
1998 pcg 1.1 fi
1999 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2000     echo "${ECHO_T}$ac_cv_objext" >&6
2001     OBJEXT=$ac_cv_objext
2002     ac_objext=$OBJEXT
2003     echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2004     echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2005     if test "${ac_cv_c_compiler_gnu+set}" = set; then
2006     echo $ECHO_N "(cached) $ECHO_C" >&6
2007     else
2008     cat >conftest.$ac_ext <<_ACEOF
2009     /* confdefs.h. */
2010     _ACEOF
2011     cat confdefs.h >>conftest.$ac_ext
2012     cat >>conftest.$ac_ext <<_ACEOF
2013     /* end confdefs.h. */
2014    
2015     int
2016     main ()
2017     {
2018     #ifndef __GNUC__
2019     choke me
2020     #endif
2021 pcg 1.1
2022 pcg 1.11 ;
2023     return 0;
2024     }
2025     _ACEOF
2026     rm -f conftest.$ac_objext
2027     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028     (eval $ac_compile) 2>conftest.er1
2029     ac_status=$?
2030     grep -v '^ *+' conftest.er1 >conftest.err
2031     rm -f conftest.er1
2032     cat conftest.err >&5
2033     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034     (exit $ac_status); } &&
2035     { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2036     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037     (eval $ac_try) 2>&5
2038     ac_status=$?
2039     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040     (exit $ac_status); }; } &&
2041     { ac_try='test -s conftest.$ac_objext'
2042     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043     (eval $ac_try) 2>&5
2044     ac_status=$?
2045     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046     (exit $ac_status); }; }; then
2047     ac_compiler_gnu=yes
2048     else
2049     echo "$as_me: failed program was:" >&5
2050     sed 's/^/| /' conftest.$ac_ext >&5
2051    
2052     ac_compiler_gnu=no
2053     fi
2054     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2055     ac_cv_c_compiler_gnu=$ac_compiler_gnu
2056    
2057     fi
2058     echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2059     echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2060     GCC=`test $ac_compiler_gnu = yes && echo yes`
2061     ac_test_CFLAGS=${CFLAGS+set}
2062     ac_save_CFLAGS=$CFLAGS
2063     CFLAGS="-g"
2064     echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2065     echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2066     if test "${ac_cv_prog_cc_g+set}" = set; then
2067     echo $ECHO_N "(cached) $ECHO_C" >&6
2068     else
2069     cat >conftest.$ac_ext <<_ACEOF
2070     /* confdefs.h. */
2071     _ACEOF
2072     cat confdefs.h >>conftest.$ac_ext
2073     cat >>conftest.$ac_ext <<_ACEOF
2074     /* end confdefs.h. */
2075 pcg 1.1
2076 pcg 1.11 int
2077     main ()
2078     {
2079 pcg 1.1
2080 pcg 1.11 ;
2081     return 0;
2082     }
2083     _ACEOF
2084     rm -f conftest.$ac_objext
2085     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086     (eval $ac_compile) 2>conftest.er1
2087     ac_status=$?
2088     grep -v '^ *+' conftest.er1 >conftest.err
2089     rm -f conftest.er1
2090     cat conftest.err >&5
2091     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092     (exit $ac_status); } &&
2093     { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2094     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095     (eval $ac_try) 2>&5
2096     ac_status=$?
2097     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098     (exit $ac_status); }; } &&
2099     { ac_try='test -s conftest.$ac_objext'
2100     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101     (eval $ac_try) 2>&5
2102     ac_status=$?
2103     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104     (exit $ac_status); }; }; then
2105 pcg 1.1 ac_cv_prog_cc_g=yes
2106     else
2107 pcg 1.11 echo "$as_me: failed program was:" >&5
2108     sed 's/^/| /' conftest.$ac_ext >&5
2109    
2110     ac_cv_prog_cc_g=no
2111 pcg 1.1 fi
2112 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113 pcg 1.1 fi
2114 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2115     echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2116 pcg 1.1 if test "$ac_test_CFLAGS" = set; then
2117 pcg 1.11 CFLAGS=$ac_save_CFLAGS
2118 pcg 1.1 elif test $ac_cv_prog_cc_g = yes; then
2119     if test "$GCC" = yes; then
2120     CFLAGS="-g -O2"
2121     else
2122     CFLAGS="-g"
2123     fi
2124     else
2125     if test "$GCC" = yes; then
2126     CFLAGS="-O2"
2127     else
2128     CFLAGS=
2129     fi
2130     fi
2131 pcg 1.11 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2132     echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2133     if test "${ac_cv_prog_cc_stdc+set}" = set; then
2134     echo $ECHO_N "(cached) $ECHO_C" >&6
2135     else
2136     ac_cv_prog_cc_stdc=no
2137     ac_save_CC=$CC
2138     cat >conftest.$ac_ext <<_ACEOF
2139     /* confdefs.h. */
2140     _ACEOF
2141     cat confdefs.h >>conftest.$ac_ext
2142     cat >>conftest.$ac_ext <<_ACEOF
2143     /* end confdefs.h. */
2144     #include <stdarg.h>
2145     #include <stdio.h>
2146     #include <sys/types.h>
2147     #include <sys/stat.h>
2148     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2149     struct buf { int x; };
2150     FILE * (*rcsopen) (struct buf *, struct stat *, int);
2151     static char *e (p, i)
2152     char **p;
2153     int i;
2154     {
2155     return p[i];
2156     }
2157     static char *f (char * (*g) (char **, int), char **p, ...)
2158     {
2159     char *s;
2160     va_list v;
2161     va_start (v,p);
2162     s = g (p, va_arg (v,int));
2163     va_end (v);
2164     return s;
2165     }
2166 pcg 1.1
2167 pcg 1.11 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2168     function prototypes and stuff, but not '\xHH' hex character constants.
2169     These don't provoke an error unfortunately, instead are silently treated
2170     as 'x'. The following induces an error, until -std1 is added to get
2171     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2172     array size at least. It's necessary to write '\x00'==0 to get something
2173     that's true only with -std1. */
2174     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2175    
2176     int test (int i, double x);
2177     struct s1 {int (*f) (int a);};
2178     struct s2 {int (*f) (double a);};
2179     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2180     int argc;
2181     char **argv;
2182     int
2183     main ()
2184     {
2185     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2186     ;
2187     return 0;
2188     }
2189     _ACEOF
2190     # Don't try gcc -ansi; that turns off useful extensions and
2191     # breaks some systems' header files.
2192     # AIX -qlanglvl=ansi
2193     # Ultrix and OSF/1 -std1
2194     # HP-UX 10.20 and later -Ae
2195     # HP-UX older versions -Aa -D_HPUX_SOURCE
2196     # SVR4 -Xc -D__EXTENSIONS__
2197     for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2198 pcg 1.1 do
2199 pcg 1.11 CC="$ac_save_CC $ac_arg"
2200     rm -f conftest.$ac_objext
2201     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202     (eval $ac_compile) 2>conftest.er1
2203     ac_status=$?
2204     grep -v '^ *+' conftest.er1 >conftest.err
2205     rm -f conftest.er1
2206     cat conftest.err >&5
2207     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208     (exit $ac_status); } &&
2209     { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2210     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211     (eval $ac_try) 2>&5
2212     ac_status=$?
2213     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214     (exit $ac_status); }; } &&
2215     { ac_try='test -s conftest.$ac_objext'
2216     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217     (eval $ac_try) 2>&5
2218     ac_status=$?
2219     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220     (exit $ac_status); }; }; then
2221     ac_cv_prog_cc_stdc=$ac_arg
2222     break
2223 pcg 1.1 else
2224 pcg 1.11 echo "$as_me: failed program was:" >&5
2225     sed 's/^/| /' conftest.$ac_ext >&5
2226    
2227 pcg 1.1 fi
2228 pcg 1.11 rm -f conftest.err conftest.$ac_objext
2229 pcg 1.1 done
2230 pcg 1.11 rm -f conftest.$ac_ext conftest.$ac_objext
2231     CC=$ac_save_CC
2232 pcg 1.1
2233 pcg 1.11 fi
2234 pcg 1.1
2235 pcg 1.11 case "x$ac_cv_prog_cc_stdc" in
2236     x|xno)
2237     echo "$as_me:$LINENO: result: none needed" >&5
2238     echo "${ECHO_T}none needed" >&6 ;;
2239     *)
2240     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2241     echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2242     CC="$CC $ac_cv_prog_cc_stdc" ;;
2243     esac
2244 pcg 1.1
2245 pcg 1.11 # Some people use a C++ compiler to compile C. Since we use `exit',
2246     # in C++ we need to declare it. In case someone uses the same compiler
2247     # for both compiling C and C++ we need to have the C++ compiler decide
2248     # the declaration of exit, since it's the most demanding environment.
2249     cat >conftest.$ac_ext <<_ACEOF
2250     #ifndef __cplusplus
2251     choke me
2252     #endif
2253     _ACEOF
2254     rm -f conftest.$ac_objext
2255     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256     (eval $ac_compile) 2>conftest.er1
2257     ac_status=$?
2258     grep -v '^ *+' conftest.er1 >conftest.err
2259     rm -f conftest.er1
2260     cat conftest.err >&5
2261     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262     (exit $ac_status); } &&
2263     { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2264     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265     (eval $ac_try) 2>&5
2266     ac_status=$?
2267     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268     (exit $ac_status); }; } &&
2269     { ac_try='test -s conftest.$ac_objext'
2270     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271     (eval $ac_try) 2>&5
2272     ac_status=$?
2273     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274     (exit $ac_status); }; }; then
2275     for ac_declaration in \
2276     '' \
2277     'extern "C" void std::exit (int) throw (); using std::exit;' \
2278     'extern "C" void std::exit (int); using std::exit;' \
2279     'extern "C" void exit (int) throw ();' \
2280     'extern "C" void exit (int);' \
2281     'void exit (int);'
2282     do
2283     cat >conftest.$ac_ext <<_ACEOF
2284     /* confdefs.h. */
2285     _ACEOF
2286     cat confdefs.h >>conftest.$ac_ext
2287     cat >>conftest.$ac_ext <<_ACEOF
2288     /* end confdefs.h. */
2289     $ac_declaration
2290     #include <stdlib.h>
2291     int
2292     main ()
2293     {
2294     exit (42);
2295     ;
2296     return 0;
2297     }
2298     _ACEOF
2299     rm -f conftest.$ac_objext
2300     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2301     (eval $ac_compile) 2>conftest.er1
2302     ac_status=$?
2303     grep -v '^ *+' conftest.er1 >conftest.err
2304     rm -f conftest.er1
2305     cat conftest.err >&5
2306     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307     (exit $ac_status); } &&
2308     { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2309     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310     (eval $ac_try) 2>&5
2311     ac_status=$?
2312     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313     (exit $ac_status); }; } &&
2314     { ac_try='test -s conftest.$ac_objext'
2315     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316     (eval $ac_try) 2>&5
2317     ac_status=$?
2318     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319     (exit $ac_status); }; }; then
2320     :
2321     else
2322     echo "$as_me: failed program was:" >&5
2323     sed 's/^/| /' conftest.$ac_ext >&5
2324 pcg 1.1
2325 pcg 1.11 continue
2326     fi
2327     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328     cat >conftest.$ac_ext <<_ACEOF
2329     /* confdefs.h. */
2330     _ACEOF
2331     cat confdefs.h >>conftest.$ac_ext
2332     cat >>conftest.$ac_ext <<_ACEOF
2333     /* end confdefs.h. */
2334     $ac_declaration
2335     int
2336     main ()
2337     {
2338     exit (42);
2339     ;
2340     return 0;
2341     }
2342     _ACEOF
2343     rm -f conftest.$ac_objext
2344     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345     (eval $ac_compile) 2>conftest.er1
2346     ac_status=$?
2347     grep -v '^ *+' conftest.er1 >conftest.err
2348     rm -f conftest.er1
2349     cat conftest.err >&5
2350     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351     (exit $ac_status); } &&
2352     { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2353     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354     (eval $ac_try) 2>&5
2355     ac_status=$?
2356     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357     (exit $ac_status); }; } &&
2358     { ac_try='test -s conftest.$ac_objext'
2359     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360     (eval $ac_try) 2>&5
2361     ac_status=$?
2362     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363     (exit $ac_status); }; }; then
2364     break
2365     else
2366     echo "$as_me: failed program was:" >&5
2367     sed 's/^/| /' conftest.$ac_ext >&5
2368 pcg 1.1
2369 pcg 1.11 fi
2370     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371     done
2372     rm -f conftest*
2373     if test -n "$ac_declaration"; then
2374     echo '#ifdef __cplusplus' >>confdefs.h
2375     echo $ac_declaration >>confdefs.h
2376     echo '#endif' >>confdefs.h
2377     fi
2378 pcg 1.1
2379     else
2380 pcg 1.11 echo "$as_me: failed program was:" >&5
2381     sed 's/^/| /' conftest.$ac_ext >&5
2382    
2383 pcg 1.1 fi
2384 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385 pcg 1.1 ac_ext=c
2386     ac_cpp='$CPP $CPPFLAGS'
2387 pcg 1.11 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390    
2391     ac_ext=cc
2392     ac_cpp='$CXXCPP $CPPFLAGS'
2393     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2396     if test -n "$ac_tool_prefix"; then
2397     for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2398     do
2399     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2400     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2401     echo "$as_me:$LINENO: checking for $ac_word" >&5
2402     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2403     if test "${ac_cv_prog_CXX+set}" = set; then
2404     echo $ECHO_N "(cached) $ECHO_C" >&6
2405     else
2406     if test -n "$CXX"; then
2407     ac_cv_prog_CXX="$CXX" # Let the user override the test.
2408 pcg 1.1 else
2409 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410     for as_dir in $PATH
2411     do
2412     IFS=$as_save_IFS
2413     test -z "$as_dir" && as_dir=.
2414     for ac_exec_ext in '' $ac_executable_extensions; do
2415     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418     break 2
2419     fi
2420     done
2421     done
2422    
2423 pcg 1.1 fi
2424     fi
2425 pcg 1.11 CXX=$ac_cv_prog_CXX
2426     if test -n "$CXX"; then
2427     echo "$as_me:$LINENO: result: $CXX" >&5
2428     echo "${ECHO_T}$CXX" >&6
2429 pcg 1.1 else
2430 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
2431     echo "${ECHO_T}no" >&6
2432 pcg 1.1 fi
2433    
2434 pcg 1.11 test -n "$CXX" && break
2435     done
2436     fi
2437     if test -z "$CXX"; then
2438     ac_ct_CXX=$CXX
2439     for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2440     do
2441     # Extract the first word of "$ac_prog", so it can be a program name with args.
2442     set dummy $ac_prog; ac_word=$2
2443     echo "$as_me:$LINENO: checking for $ac_word" >&5
2444     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2445     if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2446     echo $ECHO_N "(cached) $ECHO_C" >&6
2447 pcg 1.1 else
2448 pcg 1.11 if test -n "$ac_ct_CXX"; then
2449     ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2450 pcg 1.1 else
2451 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452     for as_dir in $PATH
2453     do
2454     IFS=$as_save_IFS
2455     test -z "$as_dir" && as_dir=.
2456     for ac_exec_ext in '' $ac_executable_extensions; do
2457     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2458     ac_cv_prog_ac_ct_CXX="$ac_prog"
2459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460     break 2
2461     fi
2462     done
2463     done
2464    
2465 pcg 1.1 fi
2466 pcg 1.11 fi
2467     ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2468     if test -n "$ac_ct_CXX"; then
2469     echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2470     echo "${ECHO_T}$ac_ct_CXX" >&6
2471     else
2472     echo "$as_me:$LINENO: result: no" >&5
2473     echo "${ECHO_T}no" >&6
2474 pcg 1.1 fi
2475    
2476 pcg 1.11 test -n "$ac_ct_CXX" && break
2477     done
2478     test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2479    
2480     CXX=$ac_ct_CXX
2481     fi
2482    
2483    
2484     # Provide some information about the compiler.
2485     echo "$as_me:$LINENO:" \
2486     "checking for C++ compiler version" >&5
2487     ac_compiler=`set X $ac_compile; echo $2`
2488     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2489     (eval $ac_compiler --version </dev/null >&5) 2>&5
2490     ac_status=$?
2491     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492     (exit $ac_status); }
2493     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2494     (eval $ac_compiler -v </dev/null >&5) 2>&5
2495     ac_status=$?
2496     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497     (exit $ac_status); }
2498     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2499     (eval $ac_compiler -V </dev/null >&5) 2>&5
2500     ac_status=$?
2501     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502     (exit $ac_status); }
2503    
2504     echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2505     echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2506     if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2507     echo $ECHO_N "(cached) $ECHO_C" >&6
2508     else
2509     cat >conftest.$ac_ext <<_ACEOF
2510     /* confdefs.h. */
2511     _ACEOF
2512     cat confdefs.h >>conftest.$ac_ext
2513     cat >>conftest.$ac_ext <<_ACEOF
2514     /* end confdefs.h. */
2515    
2516     int
2517     main ()
2518     {
2519     #ifndef __GNUC__
2520     choke me
2521     #endif
2522    
2523     ;
2524     return 0;
2525     }
2526     _ACEOF
2527     rm -f conftest.$ac_objext
2528     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529     (eval $ac_compile) 2>conftest.er1
2530     ac_status=$?
2531     grep -v '^ *+' conftest.er1 >conftest.err
2532     rm -f conftest.er1
2533     cat conftest.err >&5
2534     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535     (exit $ac_status); } &&
2536     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2537     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538     (eval $ac_try) 2>&5
2539     ac_status=$?
2540     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541     (exit $ac_status); }; } &&
2542     { ac_try='test -s conftest.$ac_objext'
2543     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544     (eval $ac_try) 2>&5
2545     ac_status=$?
2546     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547     (exit $ac_status); }; }; then
2548     ac_compiler_gnu=yes
2549     else
2550     echo "$as_me: failed program was:" >&5
2551     sed 's/^/| /' conftest.$ac_ext >&5
2552    
2553     ac_compiler_gnu=no
2554     fi
2555     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2556     ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2557    
2558     fi
2559     echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2560     echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2561     GXX=`test $ac_compiler_gnu = yes && echo yes`
2562     ac_test_CXXFLAGS=${CXXFLAGS+set}
2563     ac_save_CXXFLAGS=$CXXFLAGS
2564     CXXFLAGS="-g"
2565     echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2566     echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2567     if test "${ac_cv_prog_cxx_g+set}" = set; then
2568     echo $ECHO_N "(cached) $ECHO_C" >&6
2569     else
2570     cat >conftest.$ac_ext <<_ACEOF
2571     /* confdefs.h. */
2572     _ACEOF
2573     cat confdefs.h >>conftest.$ac_ext
2574     cat >>conftest.$ac_ext <<_ACEOF
2575     /* end confdefs.h. */
2576    
2577     int
2578     main ()
2579     {
2580    
2581     ;
2582     return 0;
2583     }
2584     _ACEOF
2585     rm -f conftest.$ac_objext
2586     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587     (eval $ac_compile) 2>conftest.er1
2588     ac_status=$?
2589     grep -v '^ *+' conftest.er1 >conftest.err
2590     rm -f conftest.er1
2591     cat conftest.err >&5
2592     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593     (exit $ac_status); } &&
2594     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2595     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596     (eval $ac_try) 2>&5
2597     ac_status=$?
2598     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599     (exit $ac_status); }; } &&
2600     { ac_try='test -s conftest.$ac_objext'
2601     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602     (eval $ac_try) 2>&5
2603     ac_status=$?
2604     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605     (exit $ac_status); }; }; then
2606     ac_cv_prog_cxx_g=yes
2607     else
2608     echo "$as_me: failed program was:" >&5
2609     sed 's/^/| /' conftest.$ac_ext >&5
2610    
2611     ac_cv_prog_cxx_g=no
2612     fi
2613     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2614     fi
2615     echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2616     echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2617 pcg 1.1 if test "$ac_test_CXXFLAGS" = set; then
2618 pcg 1.11 CXXFLAGS=$ac_save_CXXFLAGS
2619 pcg 1.1 elif test $ac_cv_prog_cxx_g = yes; then
2620     if test "$GXX" = yes; then
2621     CXXFLAGS="-g -O2"
2622     else
2623     CXXFLAGS="-g"
2624     fi
2625     else
2626     if test "$GXX" = yes; then
2627     CXXFLAGS="-O2"
2628     else
2629     CXXFLAGS=
2630     fi
2631     fi
2632 pcg 1.11 for ac_declaration in \
2633     '' \
2634     'extern "C" void std::exit (int) throw (); using std::exit;' \
2635     'extern "C" void std::exit (int); using std::exit;' \
2636     'extern "C" void exit (int) throw ();' \
2637     'extern "C" void exit (int);' \
2638     'void exit (int);'
2639     do
2640     cat >conftest.$ac_ext <<_ACEOF
2641     /* confdefs.h. */
2642     _ACEOF
2643     cat confdefs.h >>conftest.$ac_ext
2644     cat >>conftest.$ac_ext <<_ACEOF
2645     /* end confdefs.h. */
2646     $ac_declaration
2647     #include <stdlib.h>
2648     int
2649     main ()
2650     {
2651     exit (42);
2652     ;
2653     return 0;
2654     }
2655     _ACEOF
2656     rm -f conftest.$ac_objext
2657     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658     (eval $ac_compile) 2>conftest.er1
2659     ac_status=$?
2660     grep -v '^ *+' conftest.er1 >conftest.err
2661     rm -f conftest.er1
2662     cat conftest.err >&5
2663     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664     (exit $ac_status); } &&
2665     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2666     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667     (eval $ac_try) 2>&5
2668     ac_status=$?
2669     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670     (exit $ac_status); }; } &&
2671     { ac_try='test -s conftest.$ac_objext'
2672     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673     (eval $ac_try) 2>&5
2674     ac_status=$?
2675     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676     (exit $ac_status); }; }; then
2677     :
2678     else
2679     echo "$as_me: failed program was:" >&5
2680     sed 's/^/| /' conftest.$ac_ext >&5
2681    
2682     continue
2683     fi
2684     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685     cat >conftest.$ac_ext <<_ACEOF
2686     /* confdefs.h. */
2687     _ACEOF
2688     cat confdefs.h >>conftest.$ac_ext
2689     cat >>conftest.$ac_ext <<_ACEOF
2690     /* end confdefs.h. */
2691     $ac_declaration
2692     int
2693     main ()
2694     {
2695     exit (42);
2696     ;
2697     return 0;
2698     }
2699     _ACEOF
2700     rm -f conftest.$ac_objext
2701     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702     (eval $ac_compile) 2>conftest.er1
2703     ac_status=$?
2704     grep -v '^ *+' conftest.er1 >conftest.err
2705     rm -f conftest.er1
2706     cat conftest.err >&5
2707     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708     (exit $ac_status); } &&
2709     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2710     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711     (eval $ac_try) 2>&5
2712     ac_status=$?
2713     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714     (exit $ac_status); }; } &&
2715     { ac_try='test -s conftest.$ac_objext'
2716     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717     (eval $ac_try) 2>&5
2718     ac_status=$?
2719     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720     (exit $ac_status); }; }; then
2721     break
2722     else
2723     echo "$as_me: failed program was:" >&5
2724     sed 's/^/| /' conftest.$ac_ext >&5
2725    
2726     fi
2727     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728     done
2729     rm -f conftest*
2730     if test -n "$ac_declaration"; then
2731     echo '#ifdef __cplusplus' >>confdefs.h
2732     echo $ac_declaration >>confdefs.h
2733     echo '#endif' >>confdefs.h
2734     fi
2735    
2736     ac_ext=c
2737     ac_cpp='$CPP $CPPFLAGS'
2738     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741 pcg 1.1
2742 pcg 1.11 ac_ext=c
2743     ac_cpp='$CPP $CPPFLAGS'
2744     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747     echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2748     echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2749 pcg 1.1 # On Suns, sometimes $CPP names a directory.
2750     if test -n "$CPP" && test -d "$CPP"; then
2751     CPP=
2752     fi
2753     if test -z "$CPP"; then
2754 pcg 1.11 if test "${ac_cv_prog_CPP+set}" = set; then
2755     echo $ECHO_N "(cached) $ECHO_C" >&6
2756 pcg 1.1 else
2757 pcg 1.11 # Double quotes because CPP needs to be expanded
2758     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2759     do
2760     ac_preproc_ok=false
2761     for ac_c_preproc_warn_flag in '' yes
2762     do
2763     # Use a header file that comes with gcc, so configuring glibc
2764     # with a fresh cross-compiler works.
2765     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2766     # <limits.h> exists even on freestanding compilers.
2767 pcg 1.1 # On the NeXT, cc -E runs the code through the compiler's parser,
2768 pcg 1.11 # not just through cpp. "Syntax error" is here to catch this case.
2769     cat >conftest.$ac_ext <<_ACEOF
2770     /* confdefs.h. */
2771     _ACEOF
2772     cat confdefs.h >>conftest.$ac_ext
2773     cat >>conftest.$ac_ext <<_ACEOF
2774     /* end confdefs.h. */
2775     #ifdef __STDC__
2776     # include <limits.h>
2777     #else
2778     # include <assert.h>
2779     #endif
2780     Syntax error
2781     _ACEOF
2782     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2783     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2784     ac_status=$?
2785     grep -v '^ *+' conftest.er1 >conftest.err
2786     rm -f conftest.er1
2787     cat conftest.err >&5
2788     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789     (exit $ac_status); } >/dev/null; then
2790     if test -s conftest.err; then
2791     ac_cpp_err=$ac_c_preproc_warn_flag
2792     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2793     else
2794     ac_cpp_err=
2795     fi
2796     else
2797     ac_cpp_err=yes
2798     fi
2799     if test -z "$ac_cpp_err"; then
2800 pcg 1.1 :
2801     else
2802 pcg 1.11 echo "$as_me: failed program was:" >&5
2803     sed 's/^/| /' conftest.$ac_ext >&5
2804    
2805     # Broken: fails on valid input.
2806     continue
2807     fi
2808     rm -f conftest.err conftest.$ac_ext
2809    
2810     # OK, works on sane cases. Now check whether non-existent headers
2811     # can be detected and how.
2812     cat >conftest.$ac_ext <<_ACEOF
2813     /* confdefs.h. */
2814     _ACEOF
2815     cat confdefs.h >>conftest.$ac_ext
2816     cat >>conftest.$ac_ext <<_ACEOF
2817     /* end confdefs.h. */
2818     #include <ac_nonexistent.h>
2819     _ACEOF
2820     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2821     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2822     ac_status=$?
2823     grep -v '^ *+' conftest.er1 >conftest.err
2824     rm -f conftest.er1
2825     cat conftest.err >&5
2826     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827     (exit $ac_status); } >/dev/null; then
2828     if test -s conftest.err; then
2829     ac_cpp_err=$ac_c_preproc_warn_flag
2830     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2831     else
2832     ac_cpp_err=
2833     fi
2834     else
2835     ac_cpp_err=yes
2836     fi
2837     if test -z "$ac_cpp_err"; then
2838     # Broken: success on invalid input.
2839     continue
2840     else
2841     echo "$as_me: failed program was:" >&5
2842     sed 's/^/| /' conftest.$ac_ext >&5
2843    
2844     # Passes both tests.
2845     ac_preproc_ok=:
2846     break
2847     fi
2848     rm -f conftest.err conftest.$ac_ext
2849    
2850     done
2851     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2852     rm -f conftest.err conftest.$ac_ext
2853     if $ac_preproc_ok; then
2854     break
2855     fi
2856    
2857     done
2858     ac_cv_prog_CPP=$CPP
2859    
2860     fi
2861     CPP=$ac_cv_prog_CPP
2862     else
2863     ac_cv_prog_CPP=$CPP
2864     fi
2865     echo "$as_me:$LINENO: result: $CPP" >&5
2866     echo "${ECHO_T}$CPP" >&6
2867     ac_preproc_ok=false
2868     for ac_c_preproc_warn_flag in '' yes
2869     do
2870     # Use a header file that comes with gcc, so configuring glibc
2871     # with a fresh cross-compiler works.
2872     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2873     # <limits.h> exists even on freestanding compilers.
2874     # On the NeXT, cc -E runs the code through the compiler's parser,
2875     # not just through cpp. "Syntax error" is here to catch this case.
2876     cat >conftest.$ac_ext <<_ACEOF
2877     /* confdefs.h. */
2878     _ACEOF
2879     cat confdefs.h >>conftest.$ac_ext
2880     cat >>conftest.$ac_ext <<_ACEOF
2881     /* end confdefs.h. */
2882     #ifdef __STDC__
2883     # include <limits.h>
2884     #else
2885     # include <assert.h>
2886     #endif
2887     Syntax error
2888     _ACEOF
2889     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2890     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2891     ac_status=$?
2892     grep -v '^ *+' conftest.er1 >conftest.err
2893     rm -f conftest.er1
2894     cat conftest.err >&5
2895     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896     (exit $ac_status); } >/dev/null; then
2897     if test -s conftest.err; then
2898     ac_cpp_err=$ac_c_preproc_warn_flag
2899     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2900     else
2901     ac_cpp_err=
2902     fi
2903 pcg 1.1 else
2904 pcg 1.11 ac_cpp_err=yes
2905     fi
2906     if test -z "$ac_cpp_err"; then
2907 pcg 1.1 :
2908     else
2909 pcg 1.11 echo "$as_me: failed program was:" >&5
2910     sed 's/^/| /' conftest.$ac_ext >&5
2911    
2912     # Broken: fails on valid input.
2913     continue
2914 pcg 1.1 fi
2915 pcg 1.11 rm -f conftest.err conftest.$ac_ext
2916    
2917     # OK, works on sane cases. Now check whether non-existent headers
2918     # can be detected and how.
2919     cat >conftest.$ac_ext <<_ACEOF
2920     /* confdefs.h. */
2921     _ACEOF
2922     cat confdefs.h >>conftest.$ac_ext
2923     cat >>conftest.$ac_ext <<_ACEOF
2924     /* end confdefs.h. */
2925     #include <ac_nonexistent.h>
2926     _ACEOF
2927     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2928     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2929     ac_status=$?
2930     grep -v '^ *+' conftest.er1 >conftest.err
2931     rm -f conftest.er1
2932     cat conftest.err >&5
2933     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934     (exit $ac_status); } >/dev/null; then
2935     if test -s conftest.err; then
2936     ac_cpp_err=$ac_c_preproc_warn_flag
2937     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2938     else
2939     ac_cpp_err=
2940     fi
2941     else
2942     ac_cpp_err=yes
2943 pcg 1.1 fi
2944 pcg 1.11 if test -z "$ac_cpp_err"; then
2945     # Broken: success on invalid input.
2946     continue
2947     else
2948     echo "$as_me: failed program was:" >&5
2949     sed 's/^/| /' conftest.$ac_ext >&5
2950    
2951     # Passes both tests.
2952     ac_preproc_ok=:
2953     break
2954 pcg 1.1 fi
2955 pcg 1.11 rm -f conftest.err conftest.$ac_ext
2956    
2957     done
2958     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2959     rm -f conftest.err conftest.$ac_ext
2960     if $ac_preproc_ok; then
2961     :
2962 pcg 1.1 else
2963 pcg 1.11 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2964     See \`config.log' for more details." >&5
2965     echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2966     See \`config.log' for more details." >&2;}
2967     { (exit 1); exit 1; }; }
2968 pcg 1.1 fi
2969 pcg 1.11
2970     ac_ext=c
2971     ac_cpp='$CPP $CPPFLAGS'
2972     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2973     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2974     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2975 pcg 1.1
2976     # Find a good install program. We prefer a C program (faster),
2977     # so one script is as good as another. But avoid the broken or
2978     # incompatible versions:
2979     # SysV /etc/install, /usr/sbin/install
2980     # SunOS /usr/etc/install
2981     # IRIX /sbin/install
2982     # AIX /bin/install
2983 pcg 1.11 # AmigaOS /C/install, which installs bootblocks on floppy discs
2984 pcg 1.1 # 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 pcg 1.11 # OS/2's system install, which has a completely different semantic
2988 pcg 1.1 # ./install, which can be erroneously created by make from ./install.sh.
2989 pcg 1.11 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 pcg 1.1 if test -z "$INSTALL"; then
2992 pcg 1.11 if test "${ac_cv_path_install+set}" = set; then
2993     echo $ECHO_N "(cached) $ECHO_C" >&6
2994 pcg 1.1 else
2995 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996     for as_dir in $PATH
2997     do
2998     IFS=$as_save_IFS
2999     test -z "$as_dir" && as_dir=.
3000     # Account for people who put trailing slashes in PATH elements.
3001     case $as_dir/ in
3002     ./ | .// | /cC/* | \
3003     /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3004     ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3005     /usr/ucb/* ) ;;
3006     *)
3007     # OSF1 and SCO ODT 3.0 have their own names for install.
3008     # Don't use installbsd from OSF since it installs stuff as root
3009     # by default.
3010     for ac_prog in ginstall scoinst install; do
3011     for ac_exec_ext in '' $ac_executable_extensions; do
3012     if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3013 pcg 1.1 if test $ac_prog = install &&
3014 pcg 1.11 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3015 pcg 1.1 # AIX install. It has an incompatible calling convention.
3016     :
3017 pcg 1.11 elif test $ac_prog = install &&
3018     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3019     # program-specific install script used by HP pwplus--don't use.
3020     :
3021 pcg 1.1 else
3022 pcg 1.11 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3023     break 3
3024 pcg 1.1 fi
3025     fi
3026     done
3027 pcg 1.11 done
3028     ;;
3029     esac
3030     done
3031    
3032 pcg 1.1
3033     fi
3034     if test "${ac_cv_path_install+set}" = set; then
3035 pcg 1.11 INSTALL=$ac_cv_path_install
3036 pcg 1.1 else
3037     # As a last resort, use the slow shell script. We don't cache a
3038     # path for INSTALL within a source directory, because that will
3039     # break other packages using the cache if that directory is
3040     # removed, or if the path is relative.
3041 pcg 1.11 INSTALL=$ac_install_sh
3042 pcg 1.1 fi
3043     fi
3044 pcg 1.11 echo "$as_me:$LINENO: result: $INSTALL" >&5
3045     echo "${ECHO_T}$INSTALL" >&6
3046 pcg 1.1
3047     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3048     # It thinks the first close brace ends the variable substitution.
3049     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3050    
3051 pcg 1.11 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3052 pcg 1.1
3053     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3054    
3055 pcg 1.11 for ac_prog in gawk mawk nawk awk
3056 pcg 1.1 do
3057 pcg 1.11 # Extract the first word of "$ac_prog", so it can be a program name with args.
3058 pcg 1.1 set dummy $ac_prog; ac_word=$2
3059 pcg 1.11 echo "$as_me:$LINENO: checking for $ac_word" >&5
3060     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3061     if test "${ac_cv_prog_AWK+set}" = set; then
3062     echo $ECHO_N "(cached) $ECHO_C" >&6
3063 pcg 1.1 else
3064     if test -n "$AWK"; then
3065     ac_cv_prog_AWK="$AWK" # Let the user override the test.
3066     else
3067 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068     for as_dir in $PATH
3069     do
3070     IFS=$as_save_IFS
3071     test -z "$as_dir" && as_dir=.
3072     for ac_exec_ext in '' $ac_executable_extensions; do
3073     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074     ac_cv_prog_AWK="$ac_prog"
3075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3076     break 2
3077     fi
3078     done
3079     done
3080    
3081 pcg 1.1 fi
3082     fi
3083 pcg 1.11 AWK=$ac_cv_prog_AWK
3084 pcg 1.1 if test -n "$AWK"; then
3085 pcg 1.11 echo "$as_me:$LINENO: result: $AWK" >&5
3086     echo "${ECHO_T}$AWK" >&6
3087 pcg 1.1 else
3088 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
3089     echo "${ECHO_T}no" >&6
3090 pcg 1.1 fi
3091    
3092 pcg 1.11 test -n "$AWK" && break
3093 pcg 1.1 done
3094    
3095    
3096 pcg 1.13 ac_ext=c
3097     ac_cpp='$CPP $CPPFLAGS'
3098     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101    
3102    
3103 root 1.48 if test -z "$orig_CXXFLAGS"; then
3104     CXXFLAGS='-O'
3105     if test x$GCC = xyes && test "x$GXX" = xyes; then
3106     CXXFLAGS="-g -O3"
3107     fi
3108     CFLAGS="$CXXFLAGS"
3109     fi
3110    
3111 pcg 1.13 LINKER="$CXX"
3112     if test x$GCC = xyes && test x$GXX = xyes; then
3113    
3114     echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3115     echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3116     if test "${ac_cv_lib_supcpp_main+set}" = set; then
3117     echo $ECHO_N "(cached) $ECHO_C" >&6
3118     else
3119     ac_check_lib_save_LIBS=$LIBS
3120     LIBS="-lsupc++ $LIBS"
3121     cat >conftest.$ac_ext <<_ACEOF
3122     /* confdefs.h. */
3123     _ACEOF
3124     cat confdefs.h >>conftest.$ac_ext
3125     cat >>conftest.$ac_ext <<_ACEOF
3126     /* end confdefs.h. */
3127    
3128    
3129     int
3130     main ()
3131     {
3132     main ();
3133     ;
3134     return 0;
3135     }
3136     _ACEOF
3137     rm -f conftest.$ac_objext conftest$ac_exeext
3138     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3139     (eval $ac_link) 2>conftest.er1
3140     ac_status=$?
3141     grep -v '^ *+' conftest.er1 >conftest.err
3142     rm -f conftest.er1
3143     cat conftest.err >&5
3144     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145     (exit $ac_status); } &&
3146     { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3147     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148     (eval $ac_try) 2>&5
3149     ac_status=$?
3150     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151     (exit $ac_status); }; } &&
3152     { ac_try='test -s conftest$ac_exeext'
3153     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154     (eval $ac_try) 2>&5
3155     ac_status=$?
3156     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157     (exit $ac_status); }; }; then
3158     ac_cv_lib_supcpp_main=yes
3159     else
3160     echo "$as_me: failed program was:" >&5
3161     sed 's/^/| /' conftest.$ac_ext >&5
3162    
3163     ac_cv_lib_supcpp_main=no
3164     fi
3165     rm -f conftest.err conftest.$ac_objext \
3166     conftest$ac_exeext conftest.$ac_ext
3167     LIBS=$ac_check_lib_save_LIBS
3168     fi
3169     echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3170     echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3171     if test $ac_cv_lib_supcpp_main = yes; then
3172    
3173     LINKER="$CC"
3174     LIBS="$LIBS -lsupc++"
3175    
3176     fi
3177    
3178     fi
3179     LINKER=$LINKER
3180    
3181    
3182 root 1.48
3183     cat >>confdefs.h <<\_ACEOF
3184     #define _GNU_SOURCE 1
3185     _ACEOF
3186    
3187    
3188     case $host in
3189     *-*-solaris* )
3190    
3191     cat >>confdefs.h <<\_ACEOF
3192     #define _XOPEN_SOURCE_EXTENDED 1
3193     _ACEOF
3194    
3195    
3196     cat >>confdefs.h <<\_ACEOF
3197     #define _XOPEN_SOURCE 2
3198     _ACEOF
3199    
3200    
3201     cat >>confdefs.h <<\_ACEOF
3202     #define __EXTENSIONS__ 1
3203     _ACEOF
3204    
3205     ;;
3206     esac
3207 pcg 1.13
3208    
3209     ac_ext=cc
3210     ac_cpp='$CXXCPP $CPPFLAGS'
3211     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3214    
3215    
3216    
3217     ac_ext=cc
3218     ac_cpp='$CXXCPP $CPPFLAGS'
3219     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3222     echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3223     echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3224     if test -z "$CXXCPP"; then
3225     if test "${ac_cv_prog_CXXCPP+set}" = set; then
3226     echo $ECHO_N "(cached) $ECHO_C" >&6
3227     else
3228     # Double quotes because CXXCPP needs to be expanded
3229     for CXXCPP in "$CXX -E" "/lib/cpp"
3230     do
3231     ac_preproc_ok=false
3232     for ac_cxx_preproc_warn_flag in '' yes
3233     do
3234     # Use a header file that comes with gcc, so configuring glibc
3235     # with a fresh cross-compiler works.
3236     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3237     # <limits.h> exists even on freestanding compilers.
3238     # On the NeXT, cc -E runs the code through the compiler's parser,
3239     # not just through cpp. "Syntax error" is here to catch this case.
3240     cat >conftest.$ac_ext <<_ACEOF
3241     /* confdefs.h. */
3242     _ACEOF
3243     cat confdefs.h >>conftest.$ac_ext
3244     cat >>conftest.$ac_ext <<_ACEOF
3245     /* end confdefs.h. */
3246     #ifdef __STDC__
3247     # include <limits.h>
3248     #else
3249     # include <assert.h>
3250     #endif
3251     Syntax error
3252     _ACEOF
3253     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3254     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3255     ac_status=$?
3256     grep -v '^ *+' conftest.er1 >conftest.err
3257     rm -f conftest.er1
3258     cat conftest.err >&5
3259     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260     (exit $ac_status); } >/dev/null; then
3261     if test -s conftest.err; then
3262     ac_cpp_err=$ac_cxx_preproc_warn_flag
3263     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3264     else
3265     ac_cpp_err=
3266     fi
3267     else
3268     ac_cpp_err=yes
3269     fi
3270     if test -z "$ac_cpp_err"; then
3271     :
3272     else
3273     echo "$as_me: failed program was:" >&5
3274     sed 's/^/| /' conftest.$ac_ext >&5
3275    
3276     # Broken: fails on valid input.
3277     continue
3278     fi
3279     rm -f conftest.err conftest.$ac_ext
3280    
3281     # OK, works on sane cases. Now check whether non-existent headers
3282     # can be detected and how.
3283     cat >conftest.$ac_ext <<_ACEOF
3284     /* confdefs.h. */
3285     _ACEOF
3286     cat confdefs.h >>conftest.$ac_ext
3287     cat >>conftest.$ac_ext <<_ACEOF
3288     /* end confdefs.h. */
3289     #include <ac_nonexistent.h>
3290     _ACEOF
3291     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3292     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3293     ac_status=$?
3294     grep -v '^ *+' conftest.er1 >conftest.err
3295     rm -f conftest.er1
3296     cat conftest.err >&5
3297     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298     (exit $ac_status); } >/dev/null; then
3299     if test -s conftest.err; then
3300     ac_cpp_err=$ac_cxx_preproc_warn_flag
3301     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3302     else
3303     ac_cpp_err=
3304     fi
3305     else
3306     ac_cpp_err=yes
3307     fi
3308     if test -z "$ac_cpp_err"; then
3309     # Broken: success on invalid input.
3310     continue
3311     else
3312     echo "$as_me: failed program was:" >&5
3313     sed 's/^/| /' conftest.$ac_ext >&5
3314    
3315     # Passes both tests.
3316     ac_preproc_ok=:
3317     break
3318     fi
3319     rm -f conftest.err conftest.$ac_ext
3320    
3321     done
3322     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3323     rm -f conftest.err conftest.$ac_ext
3324     if $ac_preproc_ok; then
3325     break
3326     fi
3327    
3328     done
3329     ac_cv_prog_CXXCPP=$CXXCPP
3330    
3331     fi
3332     CXXCPP=$ac_cv_prog_CXXCPP
3333     else
3334     ac_cv_prog_CXXCPP=$CXXCPP
3335     fi
3336     echo "$as_me:$LINENO: result: $CXXCPP" >&5
3337     echo "${ECHO_T}$CXXCPP" >&6
3338     ac_preproc_ok=false
3339     for ac_cxx_preproc_warn_flag in '' yes
3340     do
3341     # Use a header file that comes with gcc, so configuring glibc
3342     # with a fresh cross-compiler works.
3343     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3344     # <limits.h> exists even on freestanding compilers.
3345     # On the NeXT, cc -E runs the code through the compiler's parser,
3346     # not just through cpp. "Syntax error" is here to catch this case.
3347     cat >conftest.$ac_ext <<_ACEOF
3348     /* confdefs.h. */
3349     _ACEOF
3350     cat confdefs.h >>conftest.$ac_ext
3351     cat >>conftest.$ac_ext <<_ACEOF
3352     /* end confdefs.h. */
3353     #ifdef __STDC__
3354     # include <limits.h>
3355     #else
3356     # include <assert.h>
3357     #endif
3358     Syntax error
3359     _ACEOF
3360     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3361     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3362     ac_status=$?
3363     grep -v '^ *+' conftest.er1 >conftest.err
3364     rm -f conftest.er1
3365     cat conftest.err >&5
3366     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367     (exit $ac_status); } >/dev/null; then
3368     if test -s conftest.err; then
3369     ac_cpp_err=$ac_cxx_preproc_warn_flag
3370     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3371     else
3372     ac_cpp_err=
3373     fi
3374     else
3375     ac_cpp_err=yes
3376     fi
3377     if test -z "$ac_cpp_err"; then
3378     :
3379     else
3380     echo "$as_me: failed program was:" >&5
3381     sed 's/^/| /' conftest.$ac_ext >&5
3382    
3383     # Broken: fails on valid input.
3384     continue
3385     fi
3386     rm -f conftest.err conftest.$ac_ext
3387    
3388     # OK, works on sane cases. Now check whether non-existent headers
3389     # can be detected and how.
3390     cat >conftest.$ac_ext <<_ACEOF
3391     /* confdefs.h. */
3392     _ACEOF
3393     cat confdefs.h >>conftest.$ac_ext
3394     cat >>conftest.$ac_ext <<_ACEOF
3395     /* end confdefs.h. */
3396     #include <ac_nonexistent.h>
3397     _ACEOF
3398     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3399     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3400     ac_status=$?
3401     grep -v '^ *+' conftest.er1 >conftest.err
3402     rm -f conftest.er1
3403     cat conftest.err >&5
3404     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405     (exit $ac_status); } >/dev/null; then
3406     if test -s conftest.err; then
3407     ac_cpp_err=$ac_cxx_preproc_warn_flag
3408     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3409     else
3410     ac_cpp_err=
3411     fi
3412     else
3413     ac_cpp_err=yes
3414     fi
3415     if test -z "$ac_cpp_err"; then
3416     # Broken: success on invalid input.
3417     continue
3418     else
3419     echo "$as_me: failed program was:" >&5
3420     sed 's/^/| /' conftest.$ac_ext >&5
3421    
3422     # Passes both tests.
3423     ac_preproc_ok=:
3424     break
3425     fi
3426     rm -f conftest.err conftest.$ac_ext
3427    
3428     done
3429     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3430     rm -f conftest.err conftest.$ac_ext
3431     if $ac_preproc_ok; then
3432     :
3433     else
3434     { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3435     See \`config.log' for more details." >&5
3436     echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3437     See \`config.log' for more details." >&2;}
3438     { (exit 1); exit 1; }; }
3439     fi
3440    
3441     ac_ext=cc
3442     ac_cpp='$CXXCPP $CPPFLAGS'
3443     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3446 pcg 1.11
3447    
3448     echo "$as_me:$LINENO: checking for egrep" >&5
3449     echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3450     if test "${ac_cv_prog_egrep+set}" = set; then
3451     echo $ECHO_N "(cached) $ECHO_C" >&6
3452     else
3453     if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3454     then ac_cv_prog_egrep='grep -E'
3455     else ac_cv_prog_egrep='egrep'
3456     fi
3457     fi
3458     echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3459     echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3460     EGREP=$ac_cv_prog_egrep
3461    
3462    
3463    
3464     echo "$as_me:$LINENO: checking for AIX" >&5
3465     echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3466     cat >conftest.$ac_ext <<_ACEOF
3467     /* confdefs.h. */
3468     _ACEOF
3469     cat confdefs.h >>conftest.$ac_ext
3470     cat >>conftest.$ac_ext <<_ACEOF
3471     /* end confdefs.h. */
3472 pcg 1.1 #ifdef _AIX
3473     yes
3474     #endif
3475    
3476 pcg 1.11 _ACEOF
3477 pcg 1.1 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3478 pcg 1.11 $EGREP "yes" >/dev/null 2>&1; then
3479     echo "$as_me:$LINENO: result: yes" >&5
3480     echo "${ECHO_T}yes" >&6
3481     cat >>confdefs.h <<\_ACEOF
3482 pcg 1.1 #define _ALL_SOURCE 1
3483 pcg 1.11 _ACEOF
3484 pcg 1.1
3485     else
3486 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
3487     echo "${ECHO_T}no" >&6
3488 pcg 1.1 fi
3489     rm -f conftest*
3490    
3491    
3492 pcg 1.11 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3493     echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3494     if test "${ac_cv_search_strerror+set}" = set; then
3495     echo $ECHO_N "(cached) $ECHO_C" >&6
3496     else
3497     ac_func_search_save_LIBS=$LIBS
3498     ac_cv_search_strerror=no
3499     cat >conftest.$ac_ext <<_ACEOF
3500     /* confdefs.h. */
3501     _ACEOF
3502     cat confdefs.h >>conftest.$ac_ext
3503     cat >>conftest.$ac_ext <<_ACEOF
3504     /* end confdefs.h. */
3505    
3506     /* Override any gcc2 internal prototype to avoid an error. */
3507     #ifdef __cplusplus
3508     extern "C"
3509     #endif
3510     /* We use char because int might match the return type of a gcc2
3511     builtin and then its argument prototype would still apply. */
3512     char strerror ();
3513     int
3514     main ()
3515     {
3516     strerror ();
3517     ;
3518     return 0;
3519     }
3520     _ACEOF
3521     rm -f conftest.$ac_objext conftest$ac_exeext
3522     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3523     (eval $ac_link) 2>conftest.er1
3524     ac_status=$?
3525     grep -v '^ *+' conftest.er1 >conftest.err
3526     rm -f conftest.er1
3527     cat conftest.err >&5
3528     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529     (exit $ac_status); } &&
3530 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3531 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532     (eval $ac_try) 2>&5
3533     ac_status=$?
3534     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535     (exit $ac_status); }; } &&
3536     { ac_try='test -s conftest$ac_exeext'
3537     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538     (eval $ac_try) 2>&5
3539     ac_status=$?
3540     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541     (exit $ac_status); }; }; then
3542     ac_cv_search_strerror="none required"
3543     else
3544     echo "$as_me: failed program was:" >&5
3545     sed 's/^/| /' conftest.$ac_ext >&5
3546    
3547     fi
3548     rm -f conftest.err conftest.$ac_objext \
3549     conftest$ac_exeext conftest.$ac_ext
3550     if test "$ac_cv_search_strerror" = no; then
3551     for ac_lib in cposix; do
3552     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3553     cat >conftest.$ac_ext <<_ACEOF
3554     /* confdefs.h. */
3555     _ACEOF
3556     cat confdefs.h >>conftest.$ac_ext
3557     cat >>conftest.$ac_ext <<_ACEOF
3558     /* end confdefs.h. */
3559 pcg 1.1
3560 pcg 1.11 /* Override any gcc2 internal prototype to avoid an error. */
3561     #ifdef __cplusplus
3562     extern "C"
3563     #endif
3564     /* We use char because int might match the return type of a gcc2
3565     builtin and then its argument prototype would still apply. */
3566     char strerror ();
3567     int
3568     main ()
3569     {
3570     strerror ();
3571     ;
3572     return 0;
3573     }
3574     _ACEOF
3575     rm -f conftest.$ac_objext conftest$ac_exeext
3576     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3577     (eval $ac_link) 2>conftest.er1
3578     ac_status=$?
3579     grep -v '^ *+' conftest.er1 >conftest.err
3580     rm -f conftest.er1
3581     cat conftest.err >&5
3582     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583     (exit $ac_status); } &&
3584 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3585 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586     (eval $ac_try) 2>&5
3587     ac_status=$?
3588     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589     (exit $ac_status); }; } &&
3590     { ac_try='test -s conftest$ac_exeext'
3591     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592     (eval $ac_try) 2>&5
3593     ac_status=$?
3594     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595     (exit $ac_status); }; }; then
3596     ac_cv_search_strerror="-l$ac_lib"
3597     break
3598 pcg 1.1 else
3599 pcg 1.11 echo "$as_me: failed program was:" >&5
3600     sed 's/^/| /' conftest.$ac_ext >&5
3601    
3602     fi
3603     rm -f conftest.err conftest.$ac_objext \
3604     conftest$ac_exeext conftest.$ac_ext
3605     done
3606     fi
3607     LIBS=$ac_func_search_save_LIBS
3608     fi
3609     echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3610     echo "${ECHO_T}$ac_cv_search_strerror" >&6
3611     if test "$ac_cv_search_strerror" != no; then
3612     test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3613    
3614 pcg 1.1 fi
3615    
3616    
3617 root 1.57 echo "$as_me:$LINENO: checking for setlocale" >&5
3618     echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3619     if test "${ac_cv_func_setlocale+set}" = set; then
3620     echo $ECHO_N "(cached) $ECHO_C" >&6
3621     else
3622     cat >conftest.$ac_ext <<_ACEOF
3623     /* confdefs.h. */
3624     _ACEOF
3625     cat confdefs.h >>conftest.$ac_ext
3626     cat >>conftest.$ac_ext <<_ACEOF
3627     /* end confdefs.h. */
3628     /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3629     For example, HP-UX 11i <limits.h> declares gettimeofday. */
3630     #define setlocale innocuous_setlocale
3631    
3632     /* System header to define __stub macros and hopefully few prototypes,
3633     which can conflict with char setlocale (); below.
3634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3635     <limits.h> exists even on freestanding compilers. */
3636    
3637     #ifdef __STDC__
3638     # include <limits.h>
3639     #else
3640     # include <assert.h>
3641     #endif
3642    
3643     #undef setlocale
3644    
3645     /* Override any gcc2 internal prototype to avoid an error. */
3646     #ifdef __cplusplus
3647     extern "C"
3648     {
3649     #endif
3650     /* We use char because int might match the return type of a gcc2
3651     builtin and then its argument prototype would still apply. */
3652     char setlocale ();
3653     /* The GNU C library defines this for functions which it implements
3654     to always fail with ENOSYS. Some functions are actually named
3655     something starting with __ and the normal name is an alias. */
3656     #if defined (__stub_setlocale) || defined (__stub___setlocale)
3657     choke me
3658     #else
3659     char (*f) () = setlocale;
3660     #endif
3661     #ifdef __cplusplus
3662     }
3663     #endif
3664    
3665     int
3666     main ()
3667     {
3668     return f != setlocale;
3669     ;
3670     return 0;
3671     }
3672     _ACEOF
3673     rm -f conftest.$ac_objext conftest$ac_exeext
3674     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3675     (eval $ac_link) 2>conftest.er1
3676     ac_status=$?
3677     grep -v '^ *+' conftest.er1 >conftest.err
3678     rm -f conftest.er1
3679     cat conftest.err >&5
3680     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681     (exit $ac_status); } &&
3682     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3683     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684     (eval $ac_try) 2>&5
3685     ac_status=$?
3686     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687     (exit $ac_status); }; } &&
3688     { ac_try='test -s conftest$ac_exeext'
3689     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690     (eval $ac_try) 2>&5
3691     ac_status=$?
3692     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693     (exit $ac_status); }; }; then
3694     ac_cv_func_setlocale=yes
3695     else
3696     echo "$as_me: failed program was:" >&5
3697     sed 's/^/| /' conftest.$ac_ext >&5
3698    
3699     ac_cv_func_setlocale=no
3700     fi
3701     rm -f conftest.err conftest.$ac_objext \
3702     conftest$ac_exeext conftest.$ac_ext
3703     fi
3704     echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
3705     echo "${ECHO_T}$ac_cv_func_setlocale" >&6
3706     if test $ac_cv_func_setlocale = yes; then
3707     :
3708     else
3709     echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3710 pcg 1.25 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3711     if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3712     echo $ECHO_N "(cached) $ECHO_C" >&6
3713     else
3714     ac_check_lib_save_LIBS=$LIBS
3715     LIBS="-lxpg4 $LIBS"
3716     cat >conftest.$ac_ext <<_ACEOF
3717     /* confdefs.h. */
3718     _ACEOF
3719     cat confdefs.h >>conftest.$ac_ext
3720     cat >>conftest.$ac_ext <<_ACEOF
3721     /* end confdefs.h. */
3722    
3723     /* Override any gcc2 internal prototype to avoid an error. */
3724     #ifdef __cplusplus
3725     extern "C"
3726     #endif
3727     /* We use char because int might match the return type of a gcc2
3728     builtin and then its argument prototype would still apply. */
3729     char setlocale ();
3730     int
3731     main ()
3732     {
3733     setlocale ();
3734     ;
3735     return 0;
3736     }
3737     _ACEOF
3738     rm -f conftest.$ac_objext conftest$ac_exeext
3739     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3740     (eval $ac_link) 2>conftest.er1
3741     ac_status=$?
3742     grep -v '^ *+' conftest.er1 >conftest.err
3743     rm -f conftest.er1
3744     cat conftest.err >&5
3745     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746     (exit $ac_status); } &&
3747     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3748     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749     (eval $ac_try) 2>&5
3750     ac_status=$?
3751     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752     (exit $ac_status); }; } &&
3753     { ac_try='test -s conftest$ac_exeext'
3754     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755     (eval $ac_try) 2>&5
3756     ac_status=$?
3757     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758     (exit $ac_status); }; }; then
3759     ac_cv_lib_xpg4_setlocale=yes
3760     else
3761     echo "$as_me: failed program was:" >&5
3762     sed 's/^/| /' conftest.$ac_ext >&5
3763    
3764     ac_cv_lib_xpg4_setlocale=no
3765     fi
3766     rm -f conftest.err conftest.$ac_objext \
3767     conftest$ac_exeext conftest.$ac_ext
3768     LIBS=$ac_check_lib_save_LIBS
3769     fi
3770     echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3771     echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3772     if test $ac_cv_lib_xpg4_setlocale = yes; then
3773     LIBS="$LIBS -lxpg4"
3774     fi
3775    
3776 root 1.57 fi
3777    
3778    
3779     echo "$as_me:$LINENO: checking for gethostbyname" >&5
3780     echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3781     if test "${ac_cv_func_gethostbyname+set}" = set; then
3782     echo $ECHO_N "(cached) $ECHO_C" >&6
3783     else
3784     cat >conftest.$ac_ext <<_ACEOF
3785     /* confdefs.h. */
3786     _ACEOF
3787     cat confdefs.h >>conftest.$ac_ext
3788     cat >>conftest.$ac_ext <<_ACEOF
3789     /* end confdefs.h. */
3790     /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3791     For example, HP-UX 11i <limits.h> declares gettimeofday. */
3792     #define gethostbyname innocuous_gethostbyname
3793    
3794     /* System header to define __stub macros and hopefully few prototypes,
3795     which can conflict with char gethostbyname (); below.
3796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3797     <limits.h> exists even on freestanding compilers. */
3798    
3799     #ifdef __STDC__
3800     # include <limits.h>
3801     #else
3802     # include <assert.h>
3803     #endif
3804    
3805     #undef gethostbyname
3806    
3807     /* Override any gcc2 internal prototype to avoid an error. */
3808     #ifdef __cplusplus
3809     extern "C"
3810     {
3811     #endif
3812     /* We use char because int might match the return type of a gcc2
3813     builtin and then its argument prototype would still apply. */
3814     char gethostbyname ();
3815     /* The GNU C library defines this for functions which it implements
3816     to always fail with ENOSYS. Some functions are actually named
3817     something starting with __ and the normal name is an alias. */
3818     #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3819     choke me
3820     #else
3821     char (*f) () = gethostbyname;
3822     #endif
3823     #ifdef __cplusplus
3824     }
3825     #endif
3826    
3827     int
3828     main ()
3829     {
3830     return f != gethostbyname;
3831     ;
3832     return 0;
3833     }
3834     _ACEOF
3835     rm -f conftest.$ac_objext conftest$ac_exeext
3836     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3837     (eval $ac_link) 2>conftest.er1
3838     ac_status=$?
3839     grep -v '^ *+' conftest.er1 >conftest.err
3840     rm -f conftest.er1
3841     cat conftest.err >&5
3842     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843     (exit $ac_status); } &&
3844     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3845     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846     (eval $ac_try) 2>&5
3847     ac_status=$?
3848     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849     (exit $ac_status); }; } &&
3850     { ac_try='test -s conftest$ac_exeext'
3851     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852     (eval $ac_try) 2>&5
3853     ac_status=$?
3854     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855     (exit $ac_status); }; }; then
3856     ac_cv_func_gethostbyname=yes
3857     else
3858     echo "$as_me: failed program was:" >&5
3859     sed 's/^/| /' conftest.$ac_ext >&5
3860 pcg 1.25
3861 root 1.57 ac_cv_func_gethostbyname=no
3862     fi
3863     rm -f conftest.err conftest.$ac_objext \
3864     conftest$ac_exeext conftest.$ac_ext
3865     fi
3866     echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3867     echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3868     if test $ac_cv_func_gethostbyname = yes; then
3869     :
3870     else
3871     echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3872 pcg 1.25 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3873     if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3874     echo $ECHO_N "(cached) $ECHO_C" >&6
3875     else
3876     ac_check_lib_save_LIBS=$LIBS
3877     LIBS="-lnsl $LIBS"
3878     cat >conftest.$ac_ext <<_ACEOF
3879     /* confdefs.h. */
3880     _ACEOF
3881     cat confdefs.h >>conftest.$ac_ext
3882     cat >>conftest.$ac_ext <<_ACEOF
3883     /* end confdefs.h. */
3884    
3885     /* Override any gcc2 internal prototype to avoid an error. */
3886     #ifdef __cplusplus
3887     extern "C"
3888     #endif
3889     /* We use char because int might match the return type of a gcc2
3890     builtin and then its argument prototype would still apply. */
3891     char gethostbyname ();
3892     int
3893     main ()
3894     {
3895     gethostbyname ();
3896     ;
3897     return 0;
3898     }
3899     _ACEOF
3900     rm -f conftest.$ac_objext conftest$ac_exeext
3901     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3902     (eval $ac_link) 2>conftest.er1
3903     ac_status=$?
3904     grep -v '^ *+' conftest.er1 >conftest.err
3905     rm -f conftest.er1
3906     cat conftest.err >&5
3907     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908     (exit $ac_status); } &&
3909     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3910     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911     (eval $ac_try) 2>&5
3912     ac_status=$?
3913     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914     (exit $ac_status); }; } &&
3915     { ac_try='test -s conftest$ac_exeext'
3916     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917     (eval $ac_try) 2>&5
3918     ac_status=$?
3919     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920     (exit $ac_status); }; }; then
3921     ac_cv_lib_nsl_gethostbyname=yes
3922     else
3923     echo "$as_me: failed program was:" >&5
3924     sed 's/^/| /' conftest.$ac_ext >&5
3925    
3926     ac_cv_lib_nsl_gethostbyname=no
3927     fi
3928     rm -f conftest.err conftest.$ac_objext \
3929     conftest$ac_exeext conftest.$ac_ext
3930     LIBS=$ac_check_lib_save_LIBS
3931     fi
3932     echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3933     echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3934     if test $ac_cv_lib_nsl_gethostbyname = yes; then
3935     LIBS="$LIBS -lnsl"
3936     fi
3937    
3938 root 1.57 fi
3939    
3940     echo "$as_me:$LINENO: checking for socket" >&5
3941     echo $ECHO_N "checking for socket... $ECHO_C" >&6
3942     if test "${ac_cv_func_socket+set}" = set; then
3943     echo $ECHO_N "(cached) $ECHO_C" >&6
3944     else
3945     cat >conftest.$ac_ext <<_ACEOF
3946     /* confdefs.h. */
3947     _ACEOF
3948     cat confdefs.h >>conftest.$ac_ext
3949     cat >>conftest.$ac_ext <<_ACEOF
3950     /* end confdefs.h. */
3951     /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3952     For example, HP-UX 11i <limits.h> declares gettimeofday. */
3953     #define socket innocuous_socket
3954    
3955     /* System header to define __stub macros and hopefully few prototypes,
3956     which can conflict with char socket (); below.
3957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3958     <limits.h> exists even on freestanding compilers. */
3959    
3960     #ifdef __STDC__
3961     # include <limits.h>
3962     #else
3963     # include <assert.h>
3964     #endif
3965    
3966     #undef socket
3967    
3968     /* Override any gcc2 internal prototype to avoid an error. */
3969     #ifdef __cplusplus
3970     extern "C"
3971     {
3972     #endif
3973     /* We use char because int might match the return type of a gcc2
3974     builtin and then its argument prototype would still apply. */
3975     char socket ();
3976     /* The GNU C library defines this for functions which it implements
3977     to always fail with ENOSYS. Some functions are actually named
3978     something starting with __ and the normal name is an alias. */
3979     #if defined (__stub_socket) || defined (__stub___socket)
3980     choke me
3981     #else
3982     char (*f) () = socket;
3983     #endif
3984     #ifdef __cplusplus
3985     }
3986     #endif
3987    
3988     int
3989     main ()
3990     {
3991     return f != socket;
3992     ;
3993     return 0;
3994     }
3995     _ACEOF
3996     rm -f conftest.$ac_objext conftest$ac_exeext
3997     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3998     (eval $ac_link) 2>conftest.er1
3999     ac_status=$?
4000     grep -v '^ *+' conftest.er1 >conftest.err
4001     rm -f conftest.er1
4002     cat conftest.err >&5
4003     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004     (exit $ac_status); } &&
4005     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4006     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007     (eval $ac_try) 2>&5
4008     ac_status=$?
4009     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010     (exit $ac_status); }; } &&
4011     { ac_try='test -s conftest$ac_exeext'
4012     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013     (eval $ac_try) 2>&5
4014     ac_status=$?
4015     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016     (exit $ac_status); }; }; then
4017     ac_cv_func_socket=yes
4018     else
4019     echo "$as_me: failed program was:" >&5
4020     sed 's/^/| /' conftest.$ac_ext >&5
4021    
4022     ac_cv_func_socket=no
4023     fi
4024     rm -f conftest.err conftest.$ac_objext \
4025     conftest$ac_exeext conftest.$ac_ext
4026     fi
4027     echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4028     echo "${ECHO_T}$ac_cv_func_socket" >&6
4029     if test $ac_cv_func_socket = yes; then
4030     :
4031     else
4032     echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4033 pcg 1.25 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4034     if test "${ac_cv_lib_socket_socket+set}" = set; then
4035     echo $ECHO_N "(cached) $ECHO_C" >&6
4036     else
4037     ac_check_lib_save_LIBS=$LIBS
4038     LIBS="-lsocket $LIBS"
4039     cat >conftest.$ac_ext <<_ACEOF
4040     /* confdefs.h. */
4041     _ACEOF
4042     cat confdefs.h >>conftest.$ac_ext
4043     cat >>conftest.$ac_ext <<_ACEOF
4044     /* end confdefs.h. */
4045    
4046     /* Override any gcc2 internal prototype to avoid an error. */
4047     #ifdef __cplusplus
4048     extern "C"
4049     #endif
4050     /* We use char because int might match the return type of a gcc2
4051     builtin and then its argument prototype would still apply. */
4052     char socket ();
4053     int
4054     main ()
4055     {
4056     socket ();
4057     ;
4058     return 0;
4059     }
4060     _ACEOF
4061     rm -f conftest.$ac_objext conftest$ac_exeext
4062     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4063     (eval $ac_link) 2>conftest.er1
4064     ac_status=$?
4065     grep -v '^ *+' conftest.er1 >conftest.err
4066     rm -f conftest.er1
4067     cat conftest.err >&5
4068     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069     (exit $ac_status); } &&
4070     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4071     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072     (eval $ac_try) 2>&5
4073     ac_status=$?
4074     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075     (exit $ac_status); }; } &&
4076     { ac_try='test -s conftest$ac_exeext'
4077     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078     (eval $ac_try) 2>&5
4079     ac_status=$?
4080     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081     (exit $ac_status); }; }; then
4082     ac_cv_lib_socket_socket=yes
4083     else
4084     echo "$as_me: failed program was:" >&5
4085     sed 's/^/| /' conftest.$ac_ext >&5
4086    
4087 root 1.51 ac_cv_lib_socket_socket=no
4088     fi
4089     rm -f conftest.err conftest.$ac_objext \
4090     conftest$ac_exeext conftest.$ac_ext
4091     LIBS=$ac_check_lib_save_LIBS
4092     fi
4093     echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4094     echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4095     if test $ac_cv_lib_socket_socket = yes; then
4096     LIBS="$LIBS -lsocket"
4097 pcg 1.1 fi
4098    
4099 root 1.57 fi
4100    
4101 pcg 1.1
4102 root 1.59 echo "$as_me:$LINENO: checking for sched_yield" >&5
4103     echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
4104     if test "${ac_cv_func_sched_yield+set}" = set; then
4105     echo $ECHO_N "(cached) $ECHO_C" >&6
4106     else
4107     cat >conftest.$ac_ext <<_ACEOF
4108     /* confdefs.h. */
4109     _ACEOF
4110     cat confdefs.h >>conftest.$ac_ext
4111     cat >>conftest.$ac_ext <<_ACEOF
4112     /* end confdefs.h. */
4113     /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
4114     For example, HP-UX 11i <limits.h> declares gettimeofday. */
4115     #define sched_yield innocuous_sched_yield
4116    
4117     /* System header to define __stub macros and hopefully few prototypes,
4118     which can conflict with char sched_yield (); below.
4119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4120     <limits.h> exists even on freestanding compilers. */
4121    
4122     #ifdef __STDC__
4123     # include <limits.h>
4124     #else
4125     # include <assert.h>
4126     #endif
4127    
4128     #undef sched_yield
4129    
4130     /* Override any gcc2 internal prototype to avoid an error. */
4131     #ifdef __cplusplus
4132     extern "C"
4133     {
4134     #endif
4135     /* We use char because int might match the return type of a gcc2
4136     builtin and then its argument prototype would still apply. */
4137     char sched_yield ();
4138     /* The GNU C library defines this for functions which it implements
4139     to always fail with ENOSYS. Some functions are actually named
4140     something starting with __ and the normal name is an alias. */
4141     #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
4142     choke me
4143     #else
4144     char (*f) () = sched_yield;
4145     #endif
4146     #ifdef __cplusplus
4147     }
4148     #endif
4149    
4150     int
4151     main ()
4152     {
4153     return f != sched_yield;
4154     ;
4155     return 0;
4156     }
4157     _ACEOF
4158     rm -f conftest.$ac_objext conftest$ac_exeext
4159     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4160     (eval $ac_link) 2>conftest.er1
4161     ac_status=$?
4162     grep -v '^ *+' conftest.er1 >conftest.err
4163     rm -f conftest.er1
4164     cat conftest.err >&5
4165     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166     (exit $ac_status); } &&
4167     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4168     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169     (eval $ac_try) 2>&5
4170     ac_status=$?
4171     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172     (exit $ac_status); }; } &&
4173     { ac_try='test -s conftest$ac_exeext'
4174     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175     (eval $ac_try) 2>&5
4176     ac_status=$?
4177     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178     (exit $ac_status); }; }; then
4179     ac_cv_func_sched_yield=yes
4180     else
4181     echo "$as_me: failed program was:" >&5
4182     sed 's/^/| /' conftest.$ac_ext >&5
4183    
4184     ac_cv_func_sched_yield=no
4185     fi
4186     rm -f conftest.err conftest.$ac_objext \
4187     conftest$ac_exeext conftest.$ac_ext
4188     fi
4189     echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
4190     echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
4191     if test $ac_cv_func_sched_yield = yes; then
4192     :
4193     else
4194     echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
4195     echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
4196     if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
4197     echo $ECHO_N "(cached) $ECHO_C" >&6
4198     else
4199     ac_check_lib_save_LIBS=$LIBS
4200     LIBS="-lrt $LIBS"
4201     cat >conftest.$ac_ext <<_ACEOF
4202     /* confdefs.h. */
4203     _ACEOF
4204     cat confdefs.h >>conftest.$ac_ext
4205     cat >>conftest.$ac_ext <<_ACEOF
4206     /* end confdefs.h. */
4207    
4208     /* Override any gcc2 internal prototype to avoid an error. */
4209     #ifdef __cplusplus
4210     extern "C"
4211     #endif
4212     /* We use char because int might match the return type of a gcc2
4213     builtin and then its argument prototype would still apply. */
4214     char sched_yield ();
4215     int
4216     main ()
4217     {
4218     sched_yield ();
4219     ;
4220     return 0;
4221     }
4222     _ACEOF
4223     rm -f conftest.$ac_objext conftest$ac_exeext
4224     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4225     (eval $ac_link) 2>conftest.er1
4226     ac_status=$?
4227     grep -v '^ *+' conftest.er1 >conftest.err
4228     rm -f conftest.er1
4229     cat conftest.err >&5
4230     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231     (exit $ac_status); } &&
4232     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4233     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234     (eval $ac_try) 2>&5
4235     ac_status=$?
4236     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237     (exit $ac_status); }; } &&
4238     { ac_try='test -s conftest$ac_exeext'
4239     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240     (eval $ac_try) 2>&5
4241     ac_status=$?
4242     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243     (exit $ac_status); }; }; then
4244     ac_cv_lib_rt_sched_yield=yes
4245     else
4246     echo "$as_me: failed program was:" >&5
4247     sed 's/^/| /' conftest.$ac_ext >&5
4248    
4249     ac_cv_lib_rt_sched_yield=no
4250     fi
4251     rm -f conftest.err conftest.$ac_objext \
4252     conftest$ac_exeext conftest.$ac_ext
4253     LIBS=$ac_check_lib_save_LIBS
4254     fi
4255     echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
4256     echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
4257     if test $ac_cv_lib_rt_sched_yield = yes; then
4258     LIBS="$LIBS -lrt"
4259     fi
4260    
4261     fi
4262    
4263    
4264 root 1.58 echo "$as_me:$LINENO: checking for sched_yield support" >&5
4265     echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6
4266     cat >conftest.$ac_ext <<_ACEOF
4267     /* confdefs.h. */
4268     _ACEOF
4269     cat confdefs.h >>conftest.$ac_ext
4270     cat >>conftest.$ac_ext <<_ACEOF
4271     /* end confdefs.h. */
4272     #include <sched.h>
4273     int
4274     main ()
4275     {
4276     sched_yield ()
4277     ;
4278     return 0;
4279     }
4280     _ACEOF
4281     rm -f conftest.$ac_objext conftest$ac_exeext
4282     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4283     (eval $ac_link) 2>conftest.er1
4284     ac_status=$?
4285     grep -v '^ *+' conftest.er1 >conftest.err
4286     rm -f conftest.er1
4287     cat conftest.err >&5
4288     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289     (exit $ac_status); } &&
4290     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4291     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292     (eval $ac_try) 2>&5
4293     ac_status=$?
4294     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295     (exit $ac_status); }; } &&
4296     { ac_try='test -s conftest$ac_exeext'
4297     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298     (eval $ac_try) 2>&5
4299     ac_status=$?
4300     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301     (exit $ac_status); }; }; then
4302     echo "$as_me:$LINENO: result: yes" >&5
4303     echo "${ECHO_T}yes" >&6
4304    
4305     cat >>confdefs.h <<\_ACEOF
4306     #define HAVE_SCHED_YIELD 1
4307     _ACEOF
4308    
4309     else
4310     echo "$as_me: failed program was:" >&5
4311     sed 's/^/| /' conftest.$ac_ext >&5
4312    
4313     echo "$as_me:$LINENO: result: no" >&5
4314     echo "${ECHO_T}no" >&6
4315     fi
4316     rm -f conftest.err conftest.$ac_objext \
4317     conftest$ac_exeext conftest.$ac_ext
4318    
4319 pcg 1.1
4320     MALLOC_TYPE=S
4321 root 1.54
4322 pcg 1.1 support_addstrings=no
4323 root 1.54 support_frills=yes
4324 pcg 1.1 support_inheritpixmap=no
4325 root 1.54 support_tinting=yes
4326     support_fading=yes
4327     support_keepscrolling=yes
4328     support_selectionscrolling=yes
4329 pcg 1.11 support_menubar=no
4330 root 1.54 support_mousewheel=yes
4331     support_mouseslipwheel=yes
4332     support_utmp=yes
4333     support_wtmp=yes
4334     support_lastlog=yes
4335     support_text_blink=yes
4336     support_pointer_blank=yes
4337     support_scroll_rxvt=yes
4338     support_scroll_next=yes
4339     support_scroll_xterm=yes
4340     support_scroll_plain=yes
4341     support_xim=yes
4342 pcg 1.1 support_xpm=no
4343 root 1.54 support_xft=yes
4344 pcg 1.1 support_unicode3=no
4345 root 1.54 support_combining=yes
4346 root 1.26 support_8bitctrls=no
4347 root 1.54 support_iso14755=yes
4348     support_styles=yes
4349     codesets=all
4350 pcg 1.1
4351    
4352     if test "x$enable_shared" = xyes; then
4353 pcg 1.11
4354     cat >>confdefs.h <<\_ACEOF
4355 pcg 1.1 #define LIBRXVT 1
4356 pcg 1.11 _ACEOF
4357 pcg 1.1
4358     INSTALL_LIBRXVT=yes
4359     fi
4360    
4361    
4362     # Check whether --enable-everything or --disable-everything was given.
4363     if test "${enable_everything+set}" = set; then
4364     enableval="$enable_everything"
4365 root 1.54
4366     if test x$enableval = xno; then
4367     support_24bit=no
4368     support_frills=no
4369     support_inheritpixmap=no
4370     support_tinting=no
4371     support_fading=no
4372     support_keepscrolling=no
4373     support_selectionscrolling=no
4374     support_lastlog=no
4375     support_menubar=no
4376     support_mousewheel=no
4377     support_mouseslipwheel=no
4378     support_text_blink=no
4379     support_pointer_blank=no
4380     support_scroll_rxvt=no
4381     support_scroll_next=no
4382     support_scroll_xterm=no
4383     support_scroll_plain=no
4384     support_utmp=no
4385     support_wtmp=no
4386     support_xim=no
4387     support_xpm=no
4388     support_xft=no
4389     support_unicode3=no
4390     support_combining=no
4391     support_8bitctrls=no
4392     support_iso14755=no
4393     support_styles=no
4394     codesets=
4395     fi
4396     if test x$enableval = xyes; then
4397     support_24bit=yes
4398     support_frills=yes
4399     support_inheritpixmap=yes
4400     support_tinting=yes
4401     support_fading=yes
4402     support_keepscrolling=yes
4403     support_selectionscrolling=yes
4404     support_lastlog=yes
4405     support_menubar=yes
4406     support_mousewheel=yes
4407     support_mouseslipwheel=yes
4408     support_text_blink=yes
4409     support_pointer_blank=yes
4410     support_scroll_rxvt=yes
4411     support_scroll_next=yes
4412     support_scroll_xterm=yes
4413     support_scroll_plain=yes
4414     support_utmp=yes
4415     support_wtmp=yes
4416     support_xim=yes
4417     support_xpm=yes
4418     support_xft=yes
4419     support_unicode3=yes
4420     support_combining=yes
4421     #support_8bitctrls=yes
4422     support_iso14755=yes
4423     support_styles=yes
4424     codesets=all
4425     fi
4426    
4427 pcg 1.11 fi;
4428 pcg 1.4
4429 pcg 1.1 # Check whether --enable-unicode3 or --disable-unicode3 was given.
4430     if test "${enable_unicode3+set}" = set; then
4431     enableval="$enable_unicode3"
4432 pcg 1.13 if test x$enableval = xyes -o x$enableval = xno; then
4433 root 1.39 support_unicode3=$enableval
4434 pcg 1.1 fi
4435 pcg 1.11 fi;
4436 pcg 1.1
4437 pcg 1.18 # 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 root 1.39 support_combining=$enableval
4442 pcg 1.18 fi
4443     fi;
4444    
4445 pcg 1.1 # Check whether --enable-xft or --disable-xft was given.
4446     if test "${enable_xft+set}" = set; then
4447     enableval="$enable_xft"
4448 pcg 1.13 if test x$enableval = xyes -o x$enableval = xno; then
4449 root 1.39 support_xft=$enableval
4450     fi
4451     fi;
4452    
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
4458 pcg 1.1 fi
4459 pcg 1.11 fi;
4460 pcg 1.1
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
4466     fi
4467 pcg 1.11 fi;
4468 pcg 1.1
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
4474     fi
4475 pcg 1.11 fi;
4476 pcg 1.1
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
4482     fi
4483 pcg 1.11 fi;
4484 pcg 1.1
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
4490     fi
4491 pcg 1.11 fi;
4492 pcg 1.1
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
4498     fi
4499 pcg 1.11 fi;
4500 pcg 1.1
4501 pcg 1.24 # 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
4506     fi
4507     fi;
4508    
4509 root 1.31 # 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
4514     fi
4515     fi;
4516    
4517 pcg 1.1 # Check whether --enable-menubar or --disable-menubar was given.
4518     if test "${enable_menubar+set}" = set; then
4519     enableval="$enable_menubar"
4520     if test x$enableval = xyes -o x$enableval = xno; then
4521     support_menubar=$enableval
4522     fi
4523 pcg 1.11 fi;
4524 pcg 1.1
4525     # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
4526     if test "${enable_rxvt_scroll+set}" = set; then
4527     enableval="$enable_rxvt_scroll"
4528     if test x$enableval = xyes -o x$enableval = xno; then
4529     support_scroll_rxvt=$enableval
4530     fi
4531 pcg 1.11 fi;
4532 pcg 1.1
4533     # Check whether --enable-next-scroll or --disable-next-scroll was given.
4534     if test "${enable_next_scroll+set}" = set; then
4535     enableval="$enable_next_scroll"
4536     if test x$enableval = xyes -o x$enableval = xno; then
4537     support_scroll_next=$enableval
4538     fi
4539 pcg 1.11 fi;
4540 pcg 1.1
4541     # Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
4542     if test "${enable_xterm_scroll+set}" = set; then
4543     enableval="$enable_xterm_scroll"
4544     if test x$enableval = xyes -o x$enableval = xno; then
4545     support_scroll_xterm=$enableval
4546     fi
4547 pcg 1.11 fi;
4548 pcg 1.1
4549 pcg 1.11 # 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
4554     fi
4555     fi;
4556 pcg 1.1
4557     # Check whether --enable-half-shadow or --disable-half-shadow was given.
4558     if test "${enable_half_shadow+set}" = set; then
4559     enableval="$enable_half_shadow"
4560     if test x$enableval = xyes; then
4561 pcg 1.11
4562     cat >>confdefs.h <<\_ACEOF
4563 pcg 1.1 #define HALFSHADOW 1
4564 pcg 1.11 _ACEOF
4565 pcg 1.1
4566     fi
4567 pcg 1.11 fi;
4568 pcg 1.1
4569 pcg 1.15
4570     # Check whether --with-codesets or --without-codesets was given.
4571     if test "${with_codesets+set}" = set; then
4572     withval="$with_codesets"
4573     codesets="$withval"
4574     fi;
4575    
4576 pcg 1.1 # Check whether --enable-xim or --disable-xim was given.
4577     if test "${enable_xim+set}" = set; then
4578     enableval="$enable_xim"
4579     if test x$enableval = xyes -o x$enableval = xno; then
4580     support_xim=$enableval
4581     fi
4582 pcg 1.11 fi;
4583 pcg 1.1
4584     # Check whether --enable-ttygid or --disable-ttygid was given.
4585     if test "${enable_ttygid+set}" = set; then
4586     enableval="$enable_ttygid"
4587     if test x$enableval = xyes; then
4588 pcg 1.11
4589     cat >>confdefs.h <<\_ACEOF
4590 pcg 1.1 #define TTY_GID_SUPPORT 1
4591 pcg 1.11 _ACEOF
4592 pcg 1.1
4593     fi
4594 pcg 1.11 fi;
4595 pcg 1.1
4596     # Check whether --enable-backspace-key or --disable-backspace-key was given.
4597     if test "${enable_backspace_key+set}" = set; then
4598     enableval="$enable_backspace_key"
4599     if test x$enableval = xno; then
4600 pcg 1.11
4601     cat >>confdefs.h <<\_ACEOF
4602 pcg 1.1 #define NO_BACKSPACE_KEY 1
4603 pcg 1.11 _ACEOF
4604 pcg 1.1
4605     fi
4606 pcg 1.11 fi;
4607 pcg 1.1
4608     # Check whether --enable-delete-key or --disable-delete-key was given.
4609     if test "${enable_delete_key+set}" = set; then
4610     enableval="$enable_delete_key"
4611     if test x$enableval = xno; then
4612 pcg 1.11
4613     cat >>confdefs.h <<\_ACEOF
4614 pcg 1.1 #define NO_DELETE_KEY 1
4615 pcg 1.11 _ACEOF
4616 pcg 1.1
4617     fi
4618 pcg 1.11 fi;
4619 pcg 1.1
4620     # Check whether --enable-resources or --disable-resources was given.
4621     if test "${enable_resources+set}" = set; then
4622     enableval="$enable_resources"
4623     if test x$enableval = xno; then
4624 pcg 1.11
4625     cat >>confdefs.h <<\_ACEOF
4626 pcg 1.1 #define NO_RESOURCES 1
4627 pcg 1.11 _ACEOF
4628 pcg 1.1
4629     fi
4630 pcg 1.11 fi;
4631 pcg 1.1
4632     # Check whether --enable-xgetdefault or --disable-xgetdefault was given.
4633     if test "${enable_xgetdefault+set}" = set; then
4634     enableval="$enable_xgetdefault"
4635     if test x$enableval = xyes; then
4636 pcg 1.11
4637     cat >>confdefs.h <<\_ACEOF
4638 pcg 1.1 #define USE_XGETDEFAULT 1
4639 pcg 1.11 _ACEOF
4640 pcg 1.1
4641     fi
4642 pcg 1.11 fi;
4643 pcg 1.1
4644 root 1.26 # Check whether --enable-8bitctrls or --disable-8bitctrls was given.
4645     if test "${enable_8bitctrls+set}" = set; then
4646     enableval="$enable_8bitctrls"
4647     if test x$enableval = xyes -o x$enableval = xno; then
4648 root 1.39 support_8bitctrls=$enableval
4649 root 1.26 fi
4650     fi;
4651    
4652 pcg 1.15 RESFALLBACK=Rxvt
4653     # Check whether --enable-fallback or --disable-fallback was given.
4654     if test "${enable_fallback+set}" = set; then
4655     enableval="$enable_fallback"
4656    
4657     test x$enableval = xyes && enableval=Rxvt
4658     test x$enableval = xno && enableval=
4659     RESFALLBACK="$enableval"
4660    
4661     fi;
4662    
4663     if test x$RESFALLBACK != x; then
4664    
4665     cat >>confdefs.h <<_ACEOF
4666     #define RESFALLBACK "$RESFALLBACK"
4667     _ACEOF
4668    
4669     fi
4670    
4671     RESNAME=urxvt
4672    
4673     # Check whether --with-res-name or --without-res-name was given.
4674     if test "${with_res_name+set}" = set; then
4675     withval="$with_res_name"
4676     RESNAME="$withval"
4677     fi;
4678    
4679     cat >>confdefs.h <<_ACEOF
4680     #define RESNAME "$RESNAME"
4681     _ACEOF
4682    
4683    
4684     RESCLASS=URxvt
4685    
4686     # Check whether --with-res-class or --without-res-class was given.
4687     if test "${with_res_class+set}" = set; then
4688     withval="$with_res_class"
4689     RESCLASS="$withval"
4690     fi;
4691    
4692     cat >>confdefs.h <<_ACEOF
4693     #define RESCLASS "$RESCLASS"
4694     _ACEOF
4695    
4696    
4697     RXVTNAME=urxvt
4698    
4699     # Check whether --with-name or --without-name was given.
4700     if test "${with_name+set}" = set; then
4701     withval="$with_name"
4702     RXVTNAME="$withval"
4703     fi;
4704    
4705 root 1.39 cat >>confdefs.h <<_ACEOF
4706     #define RXVTNAME "$RXVTNAME"
4707     _ACEOF
4708    
4709    
4710 pcg 1.15 RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4711    
4712    
4713 pcg 1.1 # Check whether --enable-strings or --disable-strings was given.
4714     if test "${enable_strings+set}" = set; then
4715     enableval="$enable_strings"
4716     if test x$enableval = xyes -o x$enableval = xno; then
4717     support_addstrings=$enableval
4718     fi
4719 pcg 1.11 fi;
4720 pcg 1.1
4721     # Check whether --enable-swapscreen or --disable-swapscreen was given.
4722     if test "${enable_swapscreen+set}" = set; then
4723     enableval="$enable_swapscreen"
4724     if test x$enableval = xno; then
4725 pcg 1.11
4726     cat >>confdefs.h <<\_ACEOF
4727 pcg 1.1 #define NO_SECONDARY_SCREEN 1
4728 pcg 1.11 _ACEOF
4729 pcg 1.1
4730     fi
4731 pcg 1.11 fi;
4732 pcg 1.1
4733 root 1.34 # Check whether --enable-iso14755 or --disable-iso14755 was given.
4734     if test "${enable_iso14755+set}" = set; then
4735     enableval="$enable_iso14755"
4736     if test x$enableval = xyes -o x$enableval = xno; then
4737     support_iso14755=$enableval
4738     fi
4739     fi;
4740    
4741 pcg 1.1 # Check whether --enable-frills or --disable-frills was given.
4742     if test "${enable_frills+set}" = set; then
4743     enableval="$enable_frills"
4744     if test x$enableval = xyes -o x$enableval = xno; then
4745     support_frills=$enableval
4746     fi
4747 pcg 1.11 fi;
4748 pcg 1.1
4749     # Check whether --enable-24bit or --disable-24bit was given.
4750     if test "${enable_24bit+set}" = set; then
4751     enableval="$enable_24bit"
4752     if test x$enableval = xyes -o x$enableval = xno; then
4753     support_24bit=$enableval
4754     fi
4755 pcg 1.11 fi;
4756 pcg 1.1
4757     # Check whether --enable-keepscrolling or --disable-keepscrolling was given.
4758     if test "${enable_keepscrolling+set}" = set; then
4759     enableval="$enable_keepscrolling"
4760     if test x$enableval = xyes -o x$enableval = xno; then
4761     support_keepscrolling=$enableval
4762     fi
4763 pcg 1.11 fi;
4764 pcg 1.1
4765     # Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
4766     if test "${enable_selectionscrolling+set}" = set; then
4767     enableval="$enable_selectionscrolling"
4768     if test x$enableval = xyes -o x$enableval = xno; then
4769     support_selectionscrolling=$enableval
4770     fi
4771 pcg 1.11 fi;
4772 pcg 1.1
4773     # Check whether --enable-mousewheel or --disable-mousewheel was given.
4774     if test "${enable_mousewheel+set}" = set; then
4775     enableval="$enable_mousewheel"
4776     if test x$enableval = xyes -o x$enableval = xno; then
4777     support_mousewheel=$enableval
4778     fi
4779 pcg 1.11 fi;
4780 pcg 1.1
4781     # Check whether --enable-slipwheeling or --disable-slipwheeling was given.
4782     if test "${enable_slipwheeling+set}" = set; then
4783     enableval="$enable_slipwheeling"
4784     if test x$enableval = xyes -o x$enableval = xno; then
4785     support_mouseslipwheel=$enableval
4786     fi
4787 pcg 1.11 fi;
4788 pcg 1.1
4789     # Check whether --enable-dmalloc or --disable-dmalloc was given.
4790     if test "${enable_dmalloc+set}" = set; then
4791     enableval="$enable_dmalloc"
4792     if test x$enableval = xyes; then
4793     MALLOC_TYPE=G
4794     DEBUG=-DDEBUG_MALLOC
4795     DLIB="-L/usr/local/lib -ldmalloc"
4796     DINCLUDE=-I/usr/local/include
4797     fi
4798 pcg 1.11 fi;
4799 pcg 1.1
4800     # Check whether --enable-dlmalloc or --disable-dlmalloc was given.
4801     if test "${enable_dlmalloc+set}" = set; then
4802     enableval="$enable_dlmalloc"
4803     if test x$enableval = xyes; then
4804     MALLOC_TYPE=D
4805     DEBUG=
4806     DLIB="-L/usr/local/lib -ldlmalloc"
4807     DINCLUDE=
4808     fi
4809 pcg 1.11 fi;
4810 pcg 1.1
4811     # Check whether --enable-smart-resize or --disable-smart-resize was given.
4812     if test "${enable_smart_resize+set}" = set; then
4813     enableval="$enable_smart_resize"
4814     if test x$enableval = xyes; then
4815 pcg 1.11
4816     cat >>confdefs.h <<\_ACEOF
4817 pcg 1.1 #define SMART_RESIZE 1
4818 pcg 1.11 _ACEOF
4819 pcg 1.1
4820     fi
4821 pcg 1.11 fi;
4822 pcg 1.1
4823 pcg 1.11 # Check whether --enable-text-blink or --disable-text-blink was given.
4824     if test "${enable_text_blink+set}" = set; then
4825     enableval="$enable_text_blink"
4826     if test x$enableval = xyes -o x$enableval = xno; then
4827     support_text_blink=$enableval
4828     fi
4829     fi;
4830 pcg 1.1
4831     # Check whether --enable-pointer-blank or --disable-pointer-blank was given.
4832     if test "${enable_pointer_blank+set}" = set; then
4833     enableval="$enable_pointer_blank"
4834     if test x$enableval = xyes -o x$enableval = xno; then
4835     support_pointer_blank=$enableval
4836     fi
4837 pcg 1.11 fi;
4838 pcg 1.1
4839    
4840     # Check whether --with-term or --without-term was given.
4841     if test "${with_term+set}" = set; then
4842     withval="$with_term"
4843     if test x$withval != x; then
4844 pcg 1.11
4845     cat >>confdefs.h <<_ACEOF
4846 pcg 1.1 #define TERMENV "$withval"
4847 pcg 1.11 _ACEOF
4848 pcg 1.1 term="$withval"
4849     fi
4850 pcg 1.11 fi;
4851 pcg 1.1
4852    
4853     # Check whether --with-terminfo or --without-terminfo was given.
4854     if test "${with_terminfo+set}" = set; then
4855     withval="$with_terminfo"
4856     if test x$withval != x; then
4857 pcg 1.11
4858     cat >>confdefs.h <<_ACEOF
4859 pcg 1.1 #define RXVT_TERMINFO "$withval"
4860 pcg 1.11 _ACEOF
4861 pcg 1.1 terminfo="$withval"
4862     fi
4863 pcg 1.11 fi;
4864 pcg 1.1
4865    
4866    
4867 pcg 1.11 cat >>confdefs.h <<\_ACEOF
4868 pcg 1.1 #define PROTOTYPES 1
4869 pcg 1.11 _ACEOF
4870 pcg 1.1
4871    
4872     # Extract the first word of "mv", so it can be a program name with args.
4873     set dummy mv; ac_word=$2
4874 pcg 1.11 echo "$as_me:$LINENO: checking for $ac_word" >&5
4875     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4876     if test "${ac_cv_path_MV+set}" = set; then
4877     echo $ECHO_N "(cached) $ECHO_C" >&6
4878 pcg 1.1 else
4879 pcg 1.11 case $MV in
4880     [\\/]* | ?:[\\/]*)
4881 pcg 1.1 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4882     ;;
4883     *)
4884 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885     for as_dir in $PATH
4886     do
4887     IFS=$as_save_IFS
4888     test -z "$as_dir" && as_dir=.
4889     for ac_exec_ext in '' $ac_executable_extensions; do
4890     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4891     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4893     break 2
4894     fi
4895     done
4896     done
4897    
4898 pcg 1.1 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4899     ;;
4900     esac
4901     fi
4902 pcg 1.11 MV=$ac_cv_path_MV
4903    
4904 pcg 1.1 if test -n "$MV"; then
4905 pcg 1.11 echo "$as_me:$LINENO: result: $MV" >&5
4906     echo "${ECHO_T}$MV" >&6
4907 pcg 1.1 else
4908 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
4909     echo "${ECHO_T}no" >&6
4910 pcg 1.1 fi
4911    
4912     # Extract the first word of "rm", so it can be a program name with args.
4913     set dummy rm; ac_word=$2
4914 pcg 1.11 echo "$as_me:$LINENO: checking for $ac_word" >&5
4915     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4916     if test "${ac_cv_path_RM+set}" = set; then
4917     echo $ECHO_N "(cached) $ECHO_C" >&6
4918 pcg 1.1 else
4919 pcg 1.11 case $RM in
4920     [\\/]* | ?:[\\/]*)
4921 pcg 1.1 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4922     ;;
4923     *)
4924 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925     for as_dir in $PATH
4926     do
4927     IFS=$as_save_IFS
4928     test -z "$as_dir" && as_dir=.
4929     for ac_exec_ext in '' $ac_executable_extensions; do
4930     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4931     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4933     break 2
4934     fi
4935     done
4936     done
4937    
4938 pcg 1.1 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4939     ;;
4940     esac
4941     fi
4942 pcg 1.11 RM=$ac_cv_path_RM
4943    
4944 pcg 1.1 if test -n "$RM"; then
4945 pcg 1.11 echo "$as_me:$LINENO: result: $RM" >&5
4946     echo "${ECHO_T}$RM" >&6
4947 pcg 1.1 else
4948 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
4949     echo "${ECHO_T}no" >&6
4950 pcg 1.1 fi
4951    
4952     # Extract the first word of "cp", so it can be a program name with args.
4953     set dummy cp; ac_word=$2
4954 pcg 1.11 echo "$as_me:$LINENO: checking for $ac_word" >&5
4955     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4956     if test "${ac_cv_path_CP+set}" = set; then
4957     echo $ECHO_N "(cached) $ECHO_C" >&6
4958 pcg 1.1 else
4959 pcg 1.11 case $CP in
4960     [\\/]* | ?:[\\/]*)
4961 pcg 1.1 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4962     ;;
4963     *)
4964 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965     for as_dir in $PATH
4966     do
4967     IFS=$as_save_IFS
4968     test -z "$as_dir" && as_dir=.
4969     for ac_exec_ext in '' $ac_executable_extensions; do
4970     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4973     break 2
4974     fi
4975     done
4976     done
4977    
4978 pcg 1.1 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4979     ;;
4980     esac
4981     fi
4982 pcg 1.11 CP=$ac_cv_path_CP
4983    
4984 pcg 1.1 if test -n "$CP"; then
4985 pcg 1.11 echo "$as_me:$LINENO: result: $CP" >&5
4986     echo "${ECHO_T}$CP" >&6
4987 pcg 1.1 else
4988 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
4989     echo "${ECHO_T}no" >&6
4990 pcg 1.1 fi
4991    
4992     # Extract the first word of "ln", so it can be a program name with args.
4993     set dummy ln; ac_word=$2
4994 pcg 1.11 echo "$as_me:$LINENO: checking for $ac_word" >&5
4995     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4996     if test "${ac_cv_path_LN+set}" = set; then
4997     echo $ECHO_N "(cached) $ECHO_C" >&6
4998 pcg 1.1 else
4999 pcg 1.11 case $LN in
5000     [\\/]* | ?:[\\/]*)
5001 pcg 1.1 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5002     ;;
5003     *)
5004 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005     for as_dir in $PATH
5006     do
5007     IFS=$as_save_IFS
5008     test -z "$as_dir" && as_dir=.
5009     for ac_exec_ext in '' $ac_executable_extensions; do
5010     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5011     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
5012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5013     break 2
5014     fi
5015     done
5016     done
5017    
5018 pcg 1.1 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
5019     ;;
5020     esac
5021     fi
5022 pcg 1.11 LN=$ac_cv_path_LN
5023    
5024 pcg 1.1 if test -n "$LN"; then
5025 pcg 1.11 echo "$as_me:$LINENO: result: $LN" >&5
5026     echo "${ECHO_T}$LN" >&6
5027 pcg 1.1 else
5028 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
5029     echo "${ECHO_T}no" >&6
5030 pcg 1.1 fi
5031    
5032     # Extract the first word of "sed", so it can be a program name with args.
5033     set dummy sed; ac_word=$2
5034 pcg 1.11 echo "$as_me:$LINENO: checking for $ac_word" >&5
5035     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5036     if test "${ac_cv_path_SED+set}" = set; then
5037     echo $ECHO_N "(cached) $ECHO_C" >&6
5038 pcg 1.1 else
5039 pcg 1.11 case $SED in
5040     [\\/]* | ?:[\\/]*)
5041 pcg 1.1 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5042     ;;
5043     *)
5044 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045     for as_dir in $PATH
5046     do
5047     IFS=$as_save_IFS
5048     test -z "$as_dir" && as_dir=.
5049     for ac_exec_ext in '' $ac_executable_extensions; do
5050     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5051     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5053     break 2
5054     fi
5055     done
5056     done
5057    
5058 pcg 1.1 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5059     ;;
5060     esac
5061     fi
5062 pcg 1.11 SED=$ac_cv_path_SED
5063    
5064 pcg 1.1 if test -n "$SED"; then
5065 pcg 1.11 echo "$as_me:$LINENO: result: $SED" >&5
5066     echo "${ECHO_T}$SED" >&6
5067 pcg 1.1 else
5068 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
5069     echo "${ECHO_T}no" >&6
5070 pcg 1.1 fi
5071    
5072     # Extract the first word of "echo", so it can be a program name with args.
5073     set dummy echo; ac_word=$2
5074 pcg 1.11 echo "$as_me:$LINENO: checking for $ac_word" >&5
5075     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5076     if test "${ac_cv_path_ECHO+set}" = set; then
5077     echo $ECHO_N "(cached) $ECHO_C" >&6
5078 pcg 1.1 else
5079 pcg 1.11 case $ECHO in
5080     [\\/]* | ?:[\\/]*)
5081 pcg 1.1 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5082     ;;
5083     *)
5084 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085     for as_dir in $PATH
5086     do
5087     IFS=$as_save_IFS
5088     test -z "$as_dir" && as_dir=.
5089     for ac_exec_ext in '' $ac_executable_extensions; do
5090     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5093     break 2
5094     fi
5095     done
5096     done
5097    
5098 pcg 1.1 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5099     ;;
5100     esac
5101     fi
5102 pcg 1.11 ECHO=$ac_cv_path_ECHO
5103    
5104 pcg 1.1 if test -n "$ECHO"; then
5105 pcg 1.11 echo "$as_me:$LINENO: result: $ECHO" >&5
5106     echo "${ECHO_T}$ECHO" >&6
5107 pcg 1.1 else
5108 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
5109     echo "${ECHO_T}no" >&6
5110 pcg 1.1 fi
5111    
5112     # Extract the first word of "cmp", so it can be a program name with args.
5113     set dummy cmp; ac_word=$2
5114 pcg 1.11 echo "$as_me:$LINENO: checking for $ac_word" >&5
5115     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5116     if test "${ac_cv_path_CMP+set}" = set; then
5117     echo $ECHO_N "(cached) $ECHO_C" >&6
5118 pcg 1.1 else
5119 pcg 1.11 case $CMP in
5120     [\\/]* | ?:[\\/]*)
5121 pcg 1.1 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5122     ;;
5123     *)
5124 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125     for as_dir in $PATH
5126     do
5127     IFS=$as_save_IFS
5128     test -z "$as_dir" && as_dir=.
5129     for ac_exec_ext in '' $ac_executable_extensions; do
5130     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5131     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5133     break 2
5134     fi
5135     done
5136     done
5137    
5138 pcg 1.1 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5139     ;;
5140     esac
5141     fi
5142 pcg 1.11 CMP=$ac_cv_path_CMP
5143    
5144 pcg 1.1 if test -n "$CMP"; then
5145 pcg 1.11 echo "$as_me:$LINENO: result: $CMP" >&5
5146     echo "${ECHO_T}$CMP" >&6
5147 pcg 1.1 else
5148 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
5149     echo "${ECHO_T}no" >&6
5150 pcg 1.1 fi
5151    
5152     # Extract the first word of "tbl", so it can be a program name with args.
5153     set dummy tbl; ac_word=$2
5154 pcg 1.11 echo "$as_me:$LINENO: checking for $ac_word" >&5
5155     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156     if test "${ac_cv_path_TBL+set}" = set; then
5157     echo $ECHO_N "(cached) $ECHO_C" >&6
5158 pcg 1.1 else
5159 pcg 1.11 case $TBL in
5160     [\\/]* | ?:[\\/]*)
5161 pcg 1.1 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5162     ;;
5163     *)
5164 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165     for as_dir in $PATH
5166     do
5167     IFS=$as_save_IFS
5168     test -z "$as_dir" && as_dir=.
5169     for ac_exec_ext in '' $ac_executable_extensions; do
5170     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5173     break 2
5174     fi
5175     done
5176     done
5177    
5178 pcg 1.1 ;;
5179     esac
5180     fi
5181 pcg 1.11 TBL=$ac_cv_path_TBL
5182    
5183 pcg 1.1 if test -n "$TBL"; then
5184 pcg 1.11 echo "$as_me:$LINENO: result: $TBL" >&5
5185     echo "${ECHO_T}$TBL" >&6
5186 pcg 1.1 else
5187 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
5188     echo "${ECHO_T}no" >&6
5189 pcg 1.1 fi
5190    
5191 root 1.39 # Extract the first word of "tic", so it can be a program name with args.
5192     set dummy tic; ac_word=$2
5193     echo "$as_me:$LINENO: checking for $ac_word" >&5
5194     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5195     if test "${ac_cv_path_TIC+set}" = set; then
5196     echo $ECHO_N "(cached) $ECHO_C" >&6
5197     else
5198     case $TIC in
5199     [\\/]* | ?:[\\/]*)
5200     ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5201     ;;
5202     *)
5203     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204     for as_dir in $PATH
5205     do
5206     IFS=$as_save_IFS
5207     test -z "$as_dir" && as_dir=.
5208     for ac_exec_ext in '' $ac_executable_extensions; do
5209     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210     ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212     break 2
5213     fi
5214     done
5215     done
5216    
5217     ;;
5218     esac
5219     fi
5220     TIC=$ac_cv_path_TIC
5221    
5222     if test -n "$TIC"; then
5223     echo "$as_me:$LINENO: result: $TIC" >&5
5224     echo "${ECHO_T}$TIC" >&6
5225     else
5226     echo "$as_me:$LINENO: result: no" >&5
5227     echo "${ECHO_T}no" >&6
5228     fi
5229    
5230 pcg 1.1
5231    
5232    
5233 pcg 1.24
5234     if test "x$ac_path_x_has_been_run" != xyes; then
5235     echo "$as_me:$LINENO: checking for X" >&5
5236 pcg 1.11 echo $ECHO_N "checking for X... $ECHO_C" >&6
5237    
5238 pcg 1.24 ac_path_x_has_been_run=yes
5239 pcg 1.1
5240     # Check whether --with-x or --without-x was given.
5241     if test "${with_x+set}" = set; then
5242     withval="$with_x"
5243    
5244 pcg 1.11 fi;
5245 pcg 1.1 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5246     if test "x$with_x" = xno; then
5247     # The user explicitly disabled X.
5248     have_x=disabled
5249     else
5250     if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5251     # Both variables are already set.
5252     have_x=yes
5253     else
5254 pcg 1.11 if test "${ac_cv_have_x+set}" = set; then
5255     echo $ECHO_N "(cached) $ECHO_C" >&6
5256 pcg 1.1 else
5257     # One or both of the vars are not set, and there is no cached value.
5258 pcg 1.11 ac_x_includes=no ac_x_libraries=no
5259     rm -fr conftest.dir
5260     if mkdir conftest.dir; then
5261     cd conftest.dir
5262 pcg 1.1 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5263 pcg 1.11 cat >Imakefile <<'_ACEOF'
5264 pcg 1.1 acfindx:
5265     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5266 pcg 1.11 _ACEOF
5267 pcg 1.1 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5268     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5269     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5270     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5271     for ac_extension in a so sl; do
5272     if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5273 pcg 1.11 test -f $ac_im_libdir/libX11.$ac_extension; then
5274     ac_im_usrlibdir=$ac_im_libdir; break
5275 pcg 1.1 fi
5276     done
5277     # Screen out bogus values from the imake configuration. They are
5278     # bogus both because they are the default anyway, and because
5279     # using them would break gcc on systems where it needs fixed includes.
5280 pcg 1.11 case $ac_im_incroot in
5281 pcg 1.1 /usr/include) ;;
5282 pcg 1.11 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5283 pcg 1.1 esac
5284 pcg 1.11 case $ac_im_usrlibdir in
5285 pcg 1.1 /usr/lib | /lib) ;;
5286 pcg 1.11 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5287 pcg 1.1 esac
5288     fi
5289     cd ..
5290 pcg 1.11 rm -fr conftest.dir
5291 pcg 1.1 fi
5292    
5293 pcg 1.11 # Standard set of common directories for X headers.
5294     # Check X11 before X11Rn because it is often a symlink to the current release.
5295     ac_x_header_dirs='
5296     /usr/X11/include
5297     /usr/X11R6/include
5298     /usr/X11R5/include
5299     /usr/X11R4/include
5300    
5301     /usr/include/X11
5302     /usr/include/X11R6
5303     /usr/include/X11R5
5304     /usr/include/X11R4
5305    
5306     /usr/local/X11/include
5307     /usr/local/X11R6/include
5308     /usr/local/X11R5/include
5309     /usr/local/X11R4/include
5310    
5311     /usr/local/include/X11
5312     /usr/local/include/X11R6
5313     /usr/local/include/X11R5
5314     /usr/local/include/X11R4
5315    
5316     /usr/X386/include
5317     /usr/x386/include
5318     /usr/XFree86/include/X11
5319    
5320     /usr/include
5321     /usr/local/include
5322     /usr/unsupported/include
5323     /usr/athena/include
5324     /usr/local/x11r5/include
5325     /usr/lpp/Xamples/include
5326    
5327     /usr/openwin/include
5328     /usr/openwin/share/include'
5329 pcg 1.1
5330 pcg 1.11 if test "$ac_x_includes" = no; then
5331 pcg 1.24 # Guess where to find include files, by looking for a specified header file.
5332 pcg 1.1 # First, try using that file with no special directory specified.
5333 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5334     /* confdefs.h. */
5335     _ACEOF
5336     cat confdefs.h >>conftest.$ac_ext
5337     cat >>conftest.$ac_ext <<_ACEOF
5338     /* end confdefs.h. */
5339 root 1.54 #include <X11/Xlib.h>
5340 pcg 1.11 _ACEOF
5341     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5342     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5343     ac_status=$?
5344     grep -v '^ *+' conftest.er1 >conftest.err
5345     rm -f conftest.er1
5346     cat conftest.err >&5
5347     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348     (exit $ac_status); } >/dev/null; then
5349     if test -s conftest.err; then
5350 pcg 1.13 ac_cpp_err=$ac_cxx_preproc_warn_flag
5351     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5352 pcg 1.11 else
5353     ac_cpp_err=
5354     fi
5355     else
5356     ac_cpp_err=yes
5357     fi
5358     if test -z "$ac_cpp_err"; then
5359 pcg 1.1 # We can compile using X headers with no special include directory.
5360     ac_x_includes=
5361     else
5362 pcg 1.11 echo "$as_me: failed program was:" >&5
5363     sed 's/^/| /' conftest.$ac_ext >&5
5364    
5365     for ac_dir in $ac_x_header_dirs; do
5366 root 1.54 if test -r "$ac_dir/X11/Xlib.h"; then
5367 pcg 1.11 ac_x_includes=$ac_dir
5368     break
5369     fi
5370     done
5371 pcg 1.1 fi
5372 pcg 1.11 rm -f conftest.err conftest.$ac_ext
5373     fi # $ac_x_includes = no
5374 pcg 1.1
5375 pcg 1.11 if test "$ac_x_libraries" = no; then
5376 pcg 1.1 # Check for the libraries.
5377     # See if we find them without any special options.
5378     # Don't add to $LIBS permanently.
5379 pcg 1.11 ac_save_LIBS=$LIBS
5380 root 1.54 LIBS="-lX11 $LIBS"
5381 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5382     /* confdefs.h. */
5383     _ACEOF
5384     cat confdefs.h >>conftest.$ac_ext
5385     cat >>conftest.$ac_ext <<_ACEOF
5386     /* end confdefs.h. */
5387 root 1.54 #include <X11/Xlib.h>
5388 pcg 1.11 int
5389     main ()
5390     {
5391 root 1.54 XrmInitialize ()
5392 pcg 1.11 ;
5393     return 0;
5394     }
5395     _ACEOF
5396     rm -f conftest.$ac_objext conftest$ac_exeext
5397     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5398     (eval $ac_link) 2>conftest.er1
5399     ac_status=$?
5400     grep -v '^ *+' conftest.er1 >conftest.err
5401     rm -f conftest.er1
5402     cat conftest.err >&5
5403     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404     (exit $ac_status); } &&
5405 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5406 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407     (eval $ac_try) 2>&5
5408     ac_status=$?
5409     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410     (exit $ac_status); }; } &&
5411     { ac_try='test -s conftest$ac_exeext'
5412     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413     (eval $ac_try) 2>&5
5414     ac_status=$?
5415     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416     (exit $ac_status); }; }; then
5417     LIBS=$ac_save_LIBS
5418 pcg 1.1 # We can link X programs with no special library path.
5419     ac_x_libraries=
5420     else
5421 pcg 1.11 echo "$as_me: failed program was:" >&5
5422     sed 's/^/| /' conftest.$ac_ext >&5
5423    
5424     LIBS=$ac_save_LIBS
5425     for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5426 pcg 1.1 do
5427 pcg 1.11 # Don't even attempt the hair of trying to link an X program!
5428 pcg 1.1 for ac_extension in a so sl; do
5429 root 1.54 if test -r $ac_dir/libX11.$ac_extension; then
5430 pcg 1.1 ac_x_libraries=$ac_dir
5431     break 2
5432     fi
5433     done
5434     done
5435     fi
5436 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
5437     conftest$ac_exeext conftest.$ac_ext
5438     fi # $ac_x_libraries = no
5439 pcg 1.1
5440 pcg 1.11 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5441 pcg 1.1 # Didn't find X anywhere. Cache the known absence of X.
5442     ac_cv_have_x="have_x=no"
5443     else
5444     # Record where we found X for the cache.
5445     ac_cv_have_x="have_x=yes \
5446 pcg 1.11 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5447 pcg 1.1 fi
5448     fi
5449 pcg 1.11
5450 pcg 1.1 fi
5451     eval "$ac_cv_have_x"
5452     fi # $with_x != no
5453    
5454     if test "$have_x" != yes; then
5455 pcg 1.11 echo "$as_me:$LINENO: result: $have_x" >&5
5456     echo "${ECHO_T}$have_x" >&6
5457 pcg 1.1 no_x=yes
5458     else
5459     # If each of the values was on the command line, it overrides each guess.
5460     test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5461     test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5462     # Update the cache value to reflect the command line values.
5463     ac_cv_have_x="have_x=yes \
5464     ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5465 pcg 1.24 # It might be that x_includes is empty (headers are found in the
5466     # standard search path. Then output the corresponding message
5467     ac_out_x_includes=$x_includes
5468     test "x$x_includes" = x && ac_out_x_includes="in standard search path"
5469     echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
5470     echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
5471 pcg 1.1 fi
5472    
5473 pcg 1.24 fi
5474 pcg 1.1 if test "$no_x" = yes; then
5475     # Not all programs may use this symbol, but it does not hurt to define it.
5476 pcg 1.11
5477     cat >>confdefs.h <<\_ACEOF
5478 pcg 1.1 #define X_DISPLAY_MISSING 1
5479 pcg 1.11 _ACEOF
5480 pcg 1.1
5481     X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5482     else
5483     if test -n "$x_includes"; then
5484     X_CFLAGS="$X_CFLAGS -I$x_includes"
5485     fi
5486    
5487     # It would also be nice to do this for all -L options, not just this one.
5488     if test -n "$x_libraries"; then
5489     X_LIBS="$X_LIBS -L$x_libraries"
5490     # For Solaris; some versions of Sun CC require a space after -R and
5491     # others require no space. Words are not sufficient . . . .
5492 pcg 1.11 case `(uname -sr) 2>/dev/null` in
5493 pcg 1.1 "SunOS 5"*)
5494 pcg 1.11 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5495     echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5496     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5497     cat >conftest.$ac_ext <<_ACEOF
5498     /* confdefs.h. */
5499     _ACEOF
5500     cat confdefs.h >>conftest.$ac_ext
5501     cat >>conftest.$ac_ext <<_ACEOF
5502     /* end confdefs.h. */
5503 pcg 1.1
5504 pcg 1.11 int
5505     main ()
5506     {
5507 pcg 1.1
5508 pcg 1.11 ;
5509     return 0;
5510     }
5511     _ACEOF
5512     rm -f conftest.$ac_objext conftest$ac_exeext
5513     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5514     (eval $ac_link) 2>conftest.er1
5515     ac_status=$?
5516     grep -v '^ *+' conftest.er1 >conftest.err
5517     rm -f conftest.er1
5518     cat conftest.err >&5
5519     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520     (exit $ac_status); } &&
5521 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5522 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523     (eval $ac_try) 2>&5
5524     ac_status=$?
5525     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526     (exit $ac_status); }; } &&
5527     { ac_try='test -s conftest$ac_exeext'
5528     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529     (eval $ac_try) 2>&5
5530     ac_status=$?
5531     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532     (exit $ac_status); }; }; then
5533 pcg 1.1 ac_R_nospace=yes
5534     else
5535 pcg 1.11 echo "$as_me: failed program was:" >&5
5536     sed 's/^/| /' conftest.$ac_ext >&5
5537    
5538     ac_R_nospace=no
5539 pcg 1.1 fi
5540 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
5541     conftest$ac_exeext conftest.$ac_ext
5542 pcg 1.1 if test $ac_R_nospace = yes; then
5543 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
5544     echo "${ECHO_T}no" >&6
5545 pcg 1.1 X_LIBS="$X_LIBS -R$x_libraries"
5546     else
5547     LIBS="$ac_xsave_LIBS -R $x_libraries"
5548 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5549     /* confdefs.h. */
5550     _ACEOF
5551     cat confdefs.h >>conftest.$ac_ext
5552     cat >>conftest.$ac_ext <<_ACEOF
5553     /* end confdefs.h. */
5554 pcg 1.1
5555 pcg 1.11 int
5556     main ()
5557     {
5558 pcg 1.1
5559 pcg 1.11 ;
5560     return 0;
5561     }
5562     _ACEOF
5563     rm -f conftest.$ac_objext conftest$ac_exeext
5564     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5565     (eval $ac_link) 2>conftest.er1
5566     ac_status=$?
5567     grep -v '^ *+' conftest.er1 >conftest.err
5568     rm -f conftest.er1
5569     cat conftest.err >&5
5570     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571     (exit $ac_status); } &&
5572 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5573 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574     (eval $ac_try) 2>&5
5575     ac_status=$?
5576     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577     (exit $ac_status); }; } &&
5578     { ac_try='test -s conftest$ac_exeext'
5579     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580     (eval $ac_try) 2>&5
5581     ac_status=$?
5582     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583     (exit $ac_status); }; }; then
5584 pcg 1.1 ac_R_space=yes
5585     else
5586 pcg 1.11 echo "$as_me: failed program was:" >&5
5587     sed 's/^/| /' conftest.$ac_ext >&5
5588    
5589     ac_R_space=no
5590 pcg 1.1 fi
5591 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
5592     conftest$ac_exeext conftest.$ac_ext
5593 pcg 1.1 if test $ac_R_space = yes; then
5594 pcg 1.11 echo "$as_me:$LINENO: result: yes" >&5
5595     echo "${ECHO_T}yes" >&6
5596 pcg 1.1 X_LIBS="$X_LIBS -R $x_libraries"
5597     else
5598 pcg 1.11 echo "$as_me:$LINENO: result: neither works" >&5
5599     echo "${ECHO_T}neither works" >&6
5600 pcg 1.1 fi
5601     fi
5602 pcg 1.11 LIBS=$ac_xsave_LIBS
5603 pcg 1.1 esac
5604     fi
5605    
5606     # Check for system-dependent libraries X programs must link with.
5607     # Do this before checking for the system-independent R6 libraries
5608     # (-lICE), since we may need -lsocket or whatever for X linking.
5609    
5610     if test "$ISC" = yes; then
5611     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5612     else
5613 pcg 1.11 # Martyn Johnson says this is needed for Ultrix, if the X
5614     # libraries were built with DECnet support. And Karl Berry says
5615 pcg 1.1 # the Alpha needs dnet_stub (dnet does not exist).
5616 pcg 1.11 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5617     cat >conftest.$ac_ext <<_ACEOF
5618     /* confdefs.h. */
5619     _ACEOF
5620     cat confdefs.h >>conftest.$ac_ext
5621     cat >>conftest.$ac_ext <<_ACEOF
5622     /* end confdefs.h. */
5623    
5624 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
5625 pcg 1.11 #ifdef __cplusplus
5626     extern "C"
5627     #endif
5628 pcg 1.1 /* We use char because int might match the return type of a gcc2
5629 pcg 1.11 builtin and then its argument prototype would still apply. */
5630     char XOpenDisplay ();
5631     int
5632     main ()
5633     {
5634     XOpenDisplay ();
5635     ;
5636     return 0;
5637     }
5638     _ACEOF
5639     rm -f conftest.$ac_objext conftest$ac_exeext
5640     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5641     (eval $ac_link) 2>conftest.er1
5642     ac_status=$?
5643     grep -v '^ *+' conftest.er1 >conftest.err
5644     rm -f conftest.er1
5645     cat conftest.err >&5
5646     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647     (exit $ac_status); } &&
5648 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5649 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650     (eval $ac_try) 2>&5
5651     ac_status=$?
5652     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653     (exit $ac_status); }; } &&
5654     { ac_try='test -s conftest$ac_exeext'
5655     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656     (eval $ac_try) 2>&5
5657     ac_status=$?
5658     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659     (exit $ac_status); }; }; then
5660     :
5661     else
5662     echo "$as_me: failed program was:" >&5
5663     sed 's/^/| /' conftest.$ac_ext >&5
5664 pcg 1.1
5665 pcg 1.11 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5666     echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5667     if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5668     echo $ECHO_N "(cached) $ECHO_C" >&6
5669 pcg 1.1 else
5670 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5671     LIBS="-ldnet $LIBS"
5672     cat >conftest.$ac_ext <<_ACEOF
5673     /* confdefs.h. */
5674     _ACEOF
5675     cat confdefs.h >>conftest.$ac_ext
5676     cat >>conftest.$ac_ext <<_ACEOF
5677     /* end confdefs.h. */
5678 pcg 1.1
5679 pcg 1.11 /* Override any gcc2 internal prototype to avoid an error. */
5680     #ifdef __cplusplus
5681     extern "C"
5682     #endif
5683     /* We use char because int might match the return type of a gcc2
5684     builtin and then its argument prototype would still apply. */
5685     char dnet_ntoa ();
5686     int
5687     main ()
5688     {
5689     dnet_ntoa ();
5690     ;
5691     return 0;
5692     }
5693     _ACEOF
5694     rm -f conftest.$ac_objext conftest$ac_exeext
5695     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5696     (eval $ac_link) 2>conftest.er1
5697     ac_status=$?
5698     grep -v '^ *+' conftest.er1 >conftest.err
5699     rm -f conftest.er1
5700     cat conftest.err >&5
5701     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702     (exit $ac_status); } &&
5703 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5704 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705     (eval $ac_try) 2>&5
5706     ac_status=$?
5707     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708     (exit $ac_status); }; } &&
5709     { ac_try='test -s conftest$ac_exeext'
5710     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711     (eval $ac_try) 2>&5
5712     ac_status=$?
5713     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714     (exit $ac_status); }; }; then
5715     ac_cv_lib_dnet_dnet_ntoa=yes
5716     else
5717     echo "$as_me: failed program was:" >&5
5718     sed 's/^/| /' conftest.$ac_ext >&5
5719    
5720     ac_cv_lib_dnet_dnet_ntoa=no
5721     fi
5722     rm -f conftest.err conftest.$ac_objext \
5723     conftest$ac_exeext conftest.$ac_ext
5724     LIBS=$ac_check_lib_save_LIBS
5725     fi
5726     echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5727     echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5728     if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5729 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5730     fi
5731    
5732     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5733 pcg 1.11 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5734     echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5735     if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5736     echo $ECHO_N "(cached) $ECHO_C" >&6
5737 pcg 1.1 else
5738 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5739 pcg 1.1 LIBS="-ldnet_stub $LIBS"
5740 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5741     /* confdefs.h. */
5742     _ACEOF
5743     cat confdefs.h >>conftest.$ac_ext
5744     cat >>conftest.$ac_ext <<_ACEOF
5745     /* end confdefs.h. */
5746    
5747 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
5748 pcg 1.11 #ifdef __cplusplus
5749     extern "C"
5750     #endif
5751 pcg 1.1 /* We use char because int might match the return type of a gcc2
5752 pcg 1.11 builtin and then its argument prototype would still apply. */
5753     char dnet_ntoa ();
5754     int
5755     main ()
5756     {
5757     dnet_ntoa ();
5758     ;
5759     return 0;
5760     }
5761     _ACEOF
5762     rm -f conftest.$ac_objext conftest$ac_exeext
5763     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5764     (eval $ac_link) 2>conftest.er1
5765     ac_status=$?
5766     grep -v '^ *+' conftest.er1 >conftest.err
5767     rm -f conftest.er1
5768     cat conftest.err >&5
5769     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770     (exit $ac_status); } &&
5771 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5772 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773     (eval $ac_try) 2>&5
5774     ac_status=$?
5775     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776     (exit $ac_status); }; } &&
5777     { ac_try='test -s conftest$ac_exeext'
5778     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779     (eval $ac_try) 2>&5
5780     ac_status=$?
5781     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782     (exit $ac_status); }; }; then
5783     ac_cv_lib_dnet_stub_dnet_ntoa=yes
5784     else
5785     echo "$as_me: failed program was:" >&5
5786     sed 's/^/| /' conftest.$ac_ext >&5
5787    
5788     ac_cv_lib_dnet_stub_dnet_ntoa=no
5789     fi
5790     rm -f conftest.err conftest.$ac_objext \
5791     conftest$ac_exeext conftest.$ac_ext
5792     LIBS=$ac_check_lib_save_LIBS
5793     fi
5794     echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5795     echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5796     if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5797 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5798     fi
5799    
5800     fi
5801 pcg 1.11 fi
5802     rm -f conftest.err conftest.$ac_objext \
5803     conftest$ac_exeext conftest.$ac_ext
5804     LIBS="$ac_xsave_LIBS"
5805 pcg 1.1
5806     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5807     # to get the SysV transport functions.
5808 pcg 1.11 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5809 pcg 1.1 # needs -lnsl.
5810     # The nsl library prevents programs from opening the X display
5811 pcg 1.11 # on Irix 5.2, according to T.E. Dickey.
5812     # The functions gethostbyname, getservbyname, and inet_addr are
5813     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5814     echo "$as_me:$LINENO: checking for gethostbyname" >&5
5815     echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5816     if test "${ac_cv_func_gethostbyname+set}" = set; then
5817     echo $ECHO_N "(cached) $ECHO_C" >&6
5818     else
5819     cat >conftest.$ac_ext <<_ACEOF
5820     /* confdefs.h. */
5821     _ACEOF
5822     cat confdefs.h >>conftest.$ac_ext
5823     cat >>conftest.$ac_ext <<_ACEOF
5824     /* end confdefs.h. */
5825     /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5826     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5827     #define gethostbyname innocuous_gethostbyname
5828    
5829 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
5830 pcg 1.11 which can conflict with char gethostbyname (); below.
5831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5832     <limits.h> exists even on freestanding compilers. */
5833    
5834     #ifdef __STDC__
5835     # include <limits.h>
5836     #else
5837     # include <assert.h>
5838     #endif
5839    
5840     #undef gethostbyname
5841    
5842 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
5843 pcg 1.11 #ifdef __cplusplus
5844     extern "C"
5845     {
5846     #endif
5847 pcg 1.1 /* We use char because int might match the return type of a gcc2
5848 pcg 1.11 builtin and then its argument prototype would still apply. */
5849     char gethostbyname ();
5850 pcg 1.1 /* The GNU C library defines this for functions which it implements
5851     to always fail with ENOSYS. Some functions are actually named
5852     something starting with __ and the normal name is an alias. */
5853     #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5854     choke me
5855     #else
5856 pcg 1.11 char (*f) () = gethostbyname;
5857     #endif
5858     #ifdef __cplusplus
5859     }
5860 pcg 1.1 #endif
5861    
5862 pcg 1.11 int
5863     main ()
5864     {
5865     return f != gethostbyname;
5866     ;
5867     return 0;
5868     }
5869     _ACEOF
5870     rm -f conftest.$ac_objext conftest$ac_exeext
5871     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5872     (eval $ac_link) 2>conftest.er1
5873     ac_status=$?
5874     grep -v '^ *+' conftest.er1 >conftest.err
5875     rm -f conftest.er1
5876     cat conftest.err >&5
5877     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878     (exit $ac_status); } &&
5879 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5880 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881     (eval $ac_try) 2>&5
5882     ac_status=$?
5883     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884     (exit $ac_status); }; } &&
5885     { ac_try='test -s conftest$ac_exeext'
5886     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887     (eval $ac_try) 2>&5
5888     ac_status=$?
5889     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890     (exit $ac_status); }; }; then
5891     ac_cv_func_gethostbyname=yes
5892     else
5893     echo "$as_me: failed program was:" >&5
5894     sed 's/^/| /' conftest.$ac_ext >&5
5895    
5896     ac_cv_func_gethostbyname=no
5897     fi
5898     rm -f conftest.err conftest.$ac_objext \
5899     conftest$ac_exeext conftest.$ac_ext
5900     fi
5901     echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5902     echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5903    
5904 pcg 1.1 if test $ac_cv_func_gethostbyname = no; then
5905 pcg 1.11 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5906     echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5907     if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5908     echo $ECHO_N "(cached) $ECHO_C" >&6
5909 pcg 1.1 else
5910 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5911 pcg 1.1 LIBS="-lnsl $LIBS"
5912 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5913     /* confdefs.h. */
5914     _ACEOF
5915     cat confdefs.h >>conftest.$ac_ext
5916     cat >>conftest.$ac_ext <<_ACEOF
5917     /* end confdefs.h. */
5918    
5919 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
5920 pcg 1.11 #ifdef __cplusplus
5921     extern "C"
5922     #endif
5923 pcg 1.1 /* We use char because int might match the return type of a gcc2
5924 pcg 1.11 builtin and then its argument prototype would still apply. */
5925     char gethostbyname ();
5926     int
5927     main ()
5928     {
5929     gethostbyname ();
5930     ;
5931     return 0;
5932     }
5933     _ACEOF
5934     rm -f conftest.$ac_objext conftest$ac_exeext
5935     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5936     (eval $ac_link) 2>conftest.er1
5937     ac_status=$?
5938     grep -v '^ *+' conftest.er1 >conftest.err
5939     rm -f conftest.er1
5940     cat conftest.err >&5
5941     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942     (exit $ac_status); } &&
5943 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5944 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945     (eval $ac_try) 2>&5
5946     ac_status=$?
5947     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948     (exit $ac_status); }; } &&
5949     { ac_try='test -s conftest$ac_exeext'
5950     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951     (eval $ac_try) 2>&5
5952     ac_status=$?
5953     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954     (exit $ac_status); }; }; then
5955     ac_cv_lib_nsl_gethostbyname=yes
5956     else
5957     echo "$as_me: failed program was:" >&5
5958     sed 's/^/| /' conftest.$ac_ext >&5
5959    
5960     ac_cv_lib_nsl_gethostbyname=no
5961     fi
5962     rm -f conftest.err conftest.$ac_objext \
5963     conftest$ac_exeext conftest.$ac_ext
5964     LIBS=$ac_check_lib_save_LIBS
5965     fi
5966     echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5967     echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5968     if test $ac_cv_lib_nsl_gethostbyname = yes; then
5969     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5970     fi
5971 pcg 1.1
5972 pcg 1.11 if test $ac_cv_lib_nsl_gethostbyname = no; then
5973     echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5974     echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5975     if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5976     echo $ECHO_N "(cached) $ECHO_C" >&6
5977     else
5978     ac_check_lib_save_LIBS=$LIBS
5979     LIBS="-lbsd $LIBS"
5980     cat >conftest.$ac_ext <<_ACEOF
5981     /* confdefs.h. */
5982     _ACEOF
5983     cat confdefs.h >>conftest.$ac_ext
5984     cat >>conftest.$ac_ext <<_ACEOF
5985     /* end confdefs.h. */
5986 pcg 1.1
5987 pcg 1.11 /* Override any gcc2 internal prototype to avoid an error. */
5988     #ifdef __cplusplus
5989     extern "C"
5990     #endif
5991     /* We use char because int might match the return type of a gcc2
5992     builtin and then its argument prototype would still apply. */
5993     char gethostbyname ();
5994     int
5995     main ()
5996     {
5997     gethostbyname ();
5998     ;
5999     return 0;
6000     }
6001     _ACEOF
6002     rm -f conftest.$ac_objext conftest$ac_exeext
6003     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6004     (eval $ac_link) 2>conftest.er1
6005     ac_status=$?
6006     grep -v '^ *+' conftest.er1 >conftest.err
6007     rm -f conftest.er1
6008     cat conftest.err >&5
6009     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010     (exit $ac_status); } &&
6011 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6012 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013     (eval $ac_try) 2>&5
6014     ac_status=$?
6015     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016     (exit $ac_status); }; } &&
6017     { ac_try='test -s conftest$ac_exeext'
6018     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019     (eval $ac_try) 2>&5
6020     ac_status=$?
6021     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022     (exit $ac_status); }; }; then
6023     ac_cv_lib_bsd_gethostbyname=yes
6024     else
6025     echo "$as_me: failed program was:" >&5
6026     sed 's/^/| /' conftest.$ac_ext >&5
6027    
6028     ac_cv_lib_bsd_gethostbyname=no
6029     fi
6030     rm -f conftest.err conftest.$ac_objext \
6031     conftest$ac_exeext conftest.$ac_ext
6032     LIBS=$ac_check_lib_save_LIBS
6033     fi
6034     echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6035     echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6036     if test $ac_cv_lib_bsd_gethostbyname = yes; then
6037     X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6038 pcg 1.1 fi
6039    
6040 pcg 1.11 fi
6041 pcg 1.1 fi
6042    
6043     # lieder@skyler.mavd.honeywell.com says without -lsocket,
6044     # socket/setsockopt and other routines are undefined under SCO ODT
6045     # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6046 pcg 1.11 # on later versions), says Simon Leinen: it contains gethostby*
6047     # variants that don't use the name server (or something). -lsocket
6048     # must be given before -lnsl if both are needed. We assume that
6049     # if connect needs -lnsl, so does gethostbyname.
6050     echo "$as_me:$LINENO: checking for connect" >&5
6051     echo $ECHO_N "checking for connect... $ECHO_C" >&6
6052     if test "${ac_cv_func_connect+set}" = set; then
6053     echo $ECHO_N "(cached) $ECHO_C" >&6
6054     else
6055     cat >conftest.$ac_ext <<_ACEOF
6056     /* confdefs.h. */
6057     _ACEOF
6058     cat confdefs.h >>conftest.$ac_ext
6059     cat >>conftest.$ac_ext <<_ACEOF
6060     /* end confdefs.h. */
6061     /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6062     For example, HP-UX 11i <limits.h> declares gettimeofday. */
6063     #define connect innocuous_connect
6064    
6065 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
6066 pcg 1.11 which can conflict with char connect (); below.
6067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6068     <limits.h> exists even on freestanding compilers. */
6069    
6070     #ifdef __STDC__
6071     # include <limits.h>
6072     #else
6073     # include <assert.h>
6074     #endif
6075    
6076     #undef connect
6077    
6078 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
6079 pcg 1.11 #ifdef __cplusplus
6080     extern "C"
6081     {
6082     #endif
6083 pcg 1.1 /* We use char because int might match the return type of a gcc2
6084 pcg 1.11 builtin and then its argument prototype would still apply. */
6085     char connect ();
6086 pcg 1.1 /* The GNU C library defines this for functions which it implements
6087     to always fail with ENOSYS. Some functions are actually named
6088     something starting with __ and the normal name is an alias. */
6089     #if defined (__stub_connect) || defined (__stub___connect)
6090     choke me
6091     #else
6092 pcg 1.11 char (*f) () = connect;
6093     #endif
6094     #ifdef __cplusplus
6095     }
6096 pcg 1.1 #endif
6097    
6098 pcg 1.11 int
6099     main ()
6100     {
6101     return f != connect;
6102     ;
6103     return 0;
6104     }
6105     _ACEOF
6106     rm -f conftest.$ac_objext conftest$ac_exeext
6107     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6108     (eval $ac_link) 2>conftest.er1
6109     ac_status=$?
6110     grep -v '^ *+' conftest.er1 >conftest.err
6111     rm -f conftest.er1
6112     cat conftest.err >&5
6113     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114     (exit $ac_status); } &&
6115 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6116 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117     (eval $ac_try) 2>&5
6118     ac_status=$?
6119     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120     (exit $ac_status); }; } &&
6121     { ac_try='test -s conftest$ac_exeext'
6122     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123     (eval $ac_try) 2>&5
6124     ac_status=$?
6125     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126     (exit $ac_status); }; }; then
6127     ac_cv_func_connect=yes
6128     else
6129     echo "$as_me: failed program was:" >&5
6130     sed 's/^/| /' conftest.$ac_ext >&5
6131    
6132     ac_cv_func_connect=no
6133 pcg 1.1 fi
6134 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
6135     conftest$ac_exeext conftest.$ac_ext
6136 pcg 1.1 fi
6137 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6138     echo "${ECHO_T}$ac_cv_func_connect" >&6
6139 pcg 1.1
6140     if test $ac_cv_func_connect = no; then
6141 pcg 1.11 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6142     echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6143     if test "${ac_cv_lib_socket_connect+set}" = set; then
6144     echo $ECHO_N "(cached) $ECHO_C" >&6
6145 pcg 1.1 else
6146 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
6147 pcg 1.1 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6148 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6149     /* confdefs.h. */
6150     _ACEOF
6151     cat confdefs.h >>conftest.$ac_ext
6152     cat >>conftest.$ac_ext <<_ACEOF
6153     /* end confdefs.h. */
6154    
6155 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
6156 pcg 1.11 #ifdef __cplusplus
6157     extern "C"
6158     #endif
6159 pcg 1.1 /* We use char because int might match the return type of a gcc2
6160 pcg 1.11 builtin and then its argument prototype would still apply. */
6161     char connect ();
6162     int
6163     main ()
6164     {
6165     connect ();
6166     ;
6167     return 0;
6168     }
6169     _ACEOF
6170     rm -f conftest.$ac_objext conftest$ac_exeext
6171     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6172     (eval $ac_link) 2>conftest.er1
6173     ac_status=$?
6174     grep -v '^ *+' conftest.er1 >conftest.err
6175     rm -f conftest.er1
6176     cat conftest.err >&5
6177     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178     (exit $ac_status); } &&
6179 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6180 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181     (eval $ac_try) 2>&5
6182     ac_status=$?
6183     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184     (exit $ac_status); }; } &&
6185     { ac_try='test -s conftest$ac_exeext'
6186     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187     (eval $ac_try) 2>&5
6188     ac_status=$?
6189     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190     (exit $ac_status); }; }; then
6191     ac_cv_lib_socket_connect=yes
6192     else
6193     echo "$as_me: failed program was:" >&5
6194     sed 's/^/| /' conftest.$ac_ext >&5
6195    
6196     ac_cv_lib_socket_connect=no
6197     fi
6198     rm -f conftest.err conftest.$ac_objext \
6199     conftest$ac_exeext conftest.$ac_ext
6200     LIBS=$ac_check_lib_save_LIBS
6201     fi
6202     echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6203     echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6204     if test $ac_cv_lib_socket_connect = yes; then
6205 pcg 1.1 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6206     fi
6207    
6208     fi
6209    
6210 pcg 1.11 # Guillermo Gomez says -lposix is necessary on A/UX.
6211     echo "$as_me:$LINENO: checking for remove" >&5
6212     echo $ECHO_N "checking for remove... $ECHO_C" >&6
6213     if test "${ac_cv_func_remove+set}" = set; then
6214     echo $ECHO_N "(cached) $ECHO_C" >&6
6215     else
6216     cat >conftest.$ac_ext <<_ACEOF
6217     /* confdefs.h. */
6218     _ACEOF
6219     cat confdefs.h >>conftest.$ac_ext
6220     cat >>conftest.$ac_ext <<_ACEOF
6221     /* end confdefs.h. */
6222     /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6223     For example, HP-UX 11i <limits.h> declares gettimeofday. */
6224     #define remove innocuous_remove
6225    
6226 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
6227 pcg 1.11 which can conflict with char remove (); below.
6228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6229     <limits.h> exists even on freestanding compilers. */
6230    
6231     #ifdef __STDC__
6232     # include <limits.h>
6233     #else
6234     # include <assert.h>
6235     #endif
6236    
6237     #undef remove
6238    
6239 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
6240 pcg 1.11 #ifdef __cplusplus
6241     extern "C"
6242     {
6243     #endif
6244 pcg 1.1 /* We use char because int might match the return type of a gcc2
6245 pcg 1.11 builtin and then its argument prototype would still apply. */
6246     char remove ();
6247 pcg 1.1 /* The GNU C library defines this for functions which it implements
6248     to always fail with ENOSYS. Some functions are actually named
6249     something starting with __ and the normal name is an alias. */
6250     #if defined (__stub_remove) || defined (__stub___remove)
6251     choke me
6252     #else
6253 pcg 1.11 char (*f) () = remove;
6254     #endif
6255     #ifdef __cplusplus
6256     }
6257 pcg 1.1 #endif
6258    
6259 pcg 1.11 int
6260     main ()
6261     {
6262     return f != remove;
6263     ;
6264     return 0;
6265     }
6266     _ACEOF
6267     rm -f conftest.$ac_objext conftest$ac_exeext
6268     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6269     (eval $ac_link) 2>conftest.er1
6270     ac_status=$?
6271     grep -v '^ *+' conftest.er1 >conftest.err
6272     rm -f conftest.er1
6273     cat conftest.err >&5
6274     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275     (exit $ac_status); } &&
6276 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6277 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278     (eval $ac_try) 2>&5
6279     ac_status=$?
6280     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281     (exit $ac_status); }; } &&
6282     { ac_try='test -s conftest$ac_exeext'
6283     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284     (eval $ac_try) 2>&5
6285     ac_status=$?
6286     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287     (exit $ac_status); }; }; then
6288     ac_cv_func_remove=yes
6289     else
6290     echo "$as_me: failed program was:" >&5
6291     sed 's/^/| /' conftest.$ac_ext >&5
6292    
6293     ac_cv_func_remove=no
6294 pcg 1.1 fi
6295 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
6296     conftest$ac_exeext conftest.$ac_ext
6297 pcg 1.1 fi
6298 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6299     echo "${ECHO_T}$ac_cv_func_remove" >&6
6300 pcg 1.1
6301     if test $ac_cv_func_remove = no; then
6302 pcg 1.11 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6303     echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6304     if test "${ac_cv_lib_posix_remove+set}" = set; then
6305     echo $ECHO_N "(cached) $ECHO_C" >&6
6306 pcg 1.1 else
6307 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
6308 pcg 1.1 LIBS="-lposix $LIBS"
6309 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6310     /* confdefs.h. */
6311     _ACEOF
6312     cat confdefs.h >>conftest.$ac_ext
6313     cat >>conftest.$ac_ext <<_ACEOF
6314     /* end confdefs.h. */
6315    
6316 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
6317 pcg 1.11 #ifdef __cplusplus
6318     extern "C"
6319     #endif
6320 pcg 1.1 /* We use char because int might match the return type of a gcc2
6321 pcg 1.11 builtin and then its argument prototype would still apply. */
6322     char remove ();
6323     int
6324     main ()
6325     {
6326     remove ();
6327     ;
6328     return 0;
6329     }
6330     _ACEOF
6331     rm -f conftest.$ac_objext conftest$ac_exeext
6332     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6333     (eval $ac_link) 2>conftest.er1
6334     ac_status=$?
6335     grep -v '^ *+' conftest.er1 >conftest.err
6336     rm -f conftest.er1
6337     cat conftest.err >&5
6338     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339     (exit $ac_status); } &&
6340 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6341 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342     (eval $ac_try) 2>&5
6343     ac_status=$?
6344     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345     (exit $ac_status); }; } &&
6346     { ac_try='test -s conftest$ac_exeext'
6347     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348     (eval $ac_try) 2>&5
6349     ac_status=$?
6350     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351     (exit $ac_status); }; }; then
6352     ac_cv_lib_posix_remove=yes
6353     else
6354     echo "$as_me: failed program was:" >&5
6355     sed 's/^/| /' conftest.$ac_ext >&5
6356    
6357     ac_cv_lib_posix_remove=no
6358     fi
6359     rm -f conftest.err conftest.$ac_objext \
6360     conftest$ac_exeext conftest.$ac_ext
6361     LIBS=$ac_check_lib_save_LIBS
6362     fi
6363     echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6364     echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6365     if test $ac_cv_lib_posix_remove = yes; then
6366 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6367     fi
6368    
6369     fi
6370    
6371     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6372 pcg 1.11 echo "$as_me:$LINENO: checking for shmat" >&5
6373     echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6374     if test "${ac_cv_func_shmat+set}" = set; then
6375     echo $ECHO_N "(cached) $ECHO_C" >&6
6376     else
6377     cat >conftest.$ac_ext <<_ACEOF
6378     /* confdefs.h. */
6379     _ACEOF
6380     cat confdefs.h >>conftest.$ac_ext
6381     cat >>conftest.$ac_ext <<_ACEOF
6382     /* end confdefs.h. */
6383     /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6384     For example, HP-UX 11i <limits.h> declares gettimeofday. */
6385     #define shmat innocuous_shmat
6386    
6387 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
6388 pcg 1.11 which can conflict with char shmat (); below.
6389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6390     <limits.h> exists even on freestanding compilers. */
6391    
6392     #ifdef __STDC__
6393     # include <limits.h>
6394     #else
6395     # include <assert.h>
6396     #endif
6397    
6398     #undef shmat
6399    
6400 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
6401 pcg 1.11 #ifdef __cplusplus
6402     extern "C"
6403     {
6404     #endif
6405 pcg 1.1 /* We use char because int might match the return type of a gcc2
6406 pcg 1.11 builtin and then its argument prototype would still apply. */
6407     char shmat ();
6408 pcg 1.1 /* The GNU C library defines this for functions which it implements
6409     to always fail with ENOSYS. Some functions are actually named
6410     something starting with __ and the normal name is an alias. */
6411     #if defined (__stub_shmat) || defined (__stub___shmat)
6412     choke me
6413     #else
6414 pcg 1.11 char (*f) () = shmat;
6415 pcg 1.1 #endif
6416 pcg 1.11 #ifdef __cplusplus
6417     }
6418     #endif
6419    
6420     int
6421     main ()
6422     {
6423     return f != shmat;
6424     ;
6425     return 0;
6426     }
6427     _ACEOF
6428     rm -f conftest.$ac_objext conftest$ac_exeext
6429     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6430     (eval $ac_link) 2>conftest.er1
6431     ac_status=$?
6432     grep -v '^ *+' conftest.er1 >conftest.err
6433     rm -f conftest.er1
6434     cat conftest.err >&5
6435     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436     (exit $ac_status); } &&
6437 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6438 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439     (eval $ac_try) 2>&5
6440     ac_status=$?
6441     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442     (exit $ac_status); }; } &&
6443     { ac_try='test -s conftest$ac_exeext'
6444     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445     (eval $ac_try) 2>&5
6446     ac_status=$?
6447     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448     (exit $ac_status); }; }; then
6449     ac_cv_func_shmat=yes
6450     else
6451     echo "$as_me: failed program was:" >&5
6452     sed 's/^/| /' conftest.$ac_ext >&5
6453 pcg 1.1
6454 pcg 1.11 ac_cv_func_shmat=no
6455 pcg 1.1 fi
6456 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
6457     conftest$ac_exeext conftest.$ac_ext
6458 pcg 1.1 fi
6459 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6460     echo "${ECHO_T}$ac_cv_func_shmat" >&6
6461 pcg 1.1
6462     if test $ac_cv_func_shmat = no; then
6463 pcg 1.11 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6464     echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6465     if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6466     echo $ECHO_N "(cached) $ECHO_C" >&6
6467 pcg 1.1 else
6468 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
6469 pcg 1.1 LIBS="-lipc $LIBS"
6470 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6471     /* confdefs.h. */
6472     _ACEOF
6473     cat confdefs.h >>conftest.$ac_ext
6474     cat >>conftest.$ac_ext <<_ACEOF
6475     /* end confdefs.h. */
6476    
6477 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
6478 pcg 1.11 #ifdef __cplusplus
6479     extern "C"
6480     #endif
6481 pcg 1.1 /* We use char because int might match the return type of a gcc2
6482 pcg 1.11 builtin and then its argument prototype would still apply. */
6483     char shmat ();
6484     int
6485     main ()
6486     {
6487     shmat ();
6488     ;
6489     return 0;
6490     }
6491     _ACEOF
6492     rm -f conftest.$ac_objext conftest$ac_exeext
6493     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6494     (eval $ac_link) 2>conftest.er1
6495     ac_status=$?
6496     grep -v '^ *+' conftest.er1 >conftest.err
6497     rm -f conftest.er1
6498     cat conftest.err >&5
6499     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500     (exit $ac_status); } &&
6501 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6502 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6503     (eval $ac_try) 2>&5
6504     ac_status=$?
6505     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506     (exit $ac_status); }; } &&
6507     { ac_try='test -s conftest$ac_exeext'
6508     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6509     (eval $ac_try) 2>&5
6510     ac_status=$?
6511     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512     (exit $ac_status); }; }; then
6513     ac_cv_lib_ipc_shmat=yes
6514     else
6515     echo "$as_me: failed program was:" >&5
6516     sed 's/^/| /' conftest.$ac_ext >&5
6517    
6518     ac_cv_lib_ipc_shmat=no
6519     fi
6520     rm -f conftest.err conftest.$ac_objext \
6521     conftest$ac_exeext conftest.$ac_ext
6522     LIBS=$ac_check_lib_save_LIBS
6523     fi
6524     echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6525     echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6526     if test $ac_cv_lib_ipc_shmat = yes; then
6527 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6528     fi
6529    
6530     fi
6531     fi
6532    
6533     # Check for libraries that X11R6 Xt/Xaw programs need.
6534 pcg 1.11 ac_save_LDFLAGS=$LDFLAGS
6535 pcg 1.1 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6536     # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6537     # check for ICE first), but we must link in the order -lSM -lICE or
6538     # we get undefined symbols. So assume we have SM if we have ICE.
6539     # These have to be linked with before -lX11, unlike the other
6540     # libraries we check for below, so use a different variable.
6541 pcg 1.11 # John Interrante, Karl Berry
6542     echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6543     echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6544     if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6545     echo $ECHO_N "(cached) $ECHO_C" >&6
6546 pcg 1.1 else
6547 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
6548 pcg 1.1 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6549 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6550     /* confdefs.h. */
6551     _ACEOF
6552     cat confdefs.h >>conftest.$ac_ext
6553     cat >>conftest.$ac_ext <<_ACEOF
6554     /* end confdefs.h. */
6555    
6556 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
6557 pcg 1.11 #ifdef __cplusplus
6558     extern "C"
6559     #endif
6560 pcg 1.1 /* We use char because int might match the return type of a gcc2
6561 pcg 1.11 builtin and then its argument prototype would still apply. */
6562     char IceConnectionNumber ();
6563     int
6564     main ()
6565     {
6566     IceConnectionNumber ();
6567     ;
6568     return 0;
6569     }
6570     _ACEOF
6571     rm -f conftest.$ac_objext conftest$ac_exeext
6572     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573     (eval $ac_link) 2>conftest.er1
6574     ac_status=$?
6575     grep -v '^ *+' conftest.er1 >conftest.err
6576     rm -f conftest.er1
6577     cat conftest.err >&5
6578     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579     (exit $ac_status); } &&
6580 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6581 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582     (eval $ac_try) 2>&5
6583     ac_status=$?
6584     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585     (exit $ac_status); }; } &&
6586     { ac_try='test -s conftest$ac_exeext'
6587     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588     (eval $ac_try) 2>&5
6589     ac_status=$?
6590     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591     (exit $ac_status); }; }; then
6592     ac_cv_lib_ICE_IceConnectionNumber=yes
6593     else
6594     echo "$as_me: failed program was:" >&5
6595     sed 's/^/| /' conftest.$ac_ext >&5
6596    
6597     ac_cv_lib_ICE_IceConnectionNumber=no
6598     fi
6599     rm -f conftest.err conftest.$ac_objext \
6600     conftest$ac_exeext conftest.$ac_ext
6601     LIBS=$ac_check_lib_save_LIBS
6602     fi
6603     echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6604     echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6605     if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6606 pcg 1.1 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6607     fi
6608    
6609 pcg 1.11 LDFLAGS=$ac_save_LDFLAGS
6610 pcg 1.1
6611     fi
6612    
6613    
6614    
6615     if test x$support_xpm = xyes; then
6616 pcg 1.11
6617 pcg 1.1
6618    
6619     # Initialize some more variables set by options.
6620     # The variables have the same names as the options, with
6621     # dashes changed to underlines.
6622    
6623     # If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6624     # paths, otherwise set no_xpm=yes.
6625     # Uses ac_ vars as temps to allow command line to override cache and checks.
6626 pcg 1.11 echo "$as_me:$LINENO: checking for libXpm" >&5
6627     echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
6628    
6629 pcg 1.1
6630     # Check whether --with-xpm_includes or --without-xpm_includes was given.
6631     if test "${with_xpm_includes+set}" = set; then
6632     withval="$with_xpm_includes"
6633     xpm_includes="$withval"
6634     else
6635     xpm_includes=NO
6636 pcg 1.11 fi;
6637 pcg 1.1
6638     # Check whether --with-xpm_library or --without-xpm_library was given.
6639     if test "${with_xpm_library+set}" = set; then
6640     withval="$with_xpm_library"
6641     xpm_libraries="$withval"
6642     else
6643     xpm_libraries=NO
6644 pcg 1.11 fi;
6645 pcg 1.1
6646 pcg 1.11 # --without-xpm overrides everything else, but does not touch the cache.
6647 pcg 1.1
6648     # Check whether --with-xpm or --without-xpm was given.
6649     if test "${with_xpm+set}" = set; then
6650     withval="$with_xpm"
6651    
6652 pcg 1.11 fi;
6653 pcg 1.1 if test "$with_xpm" = no; then
6654     have_xpm=disabled
6655     else
6656 pcg 1.11 if test "${ac_cv_have_xpm+set}" = set; then
6657     echo $ECHO_N "(cached) $ECHO_C" >&6
6658 pcg 1.1 else
6659 pcg 1.11
6660 pcg 1.1 vt_xpm_include_X11=no
6661     if test -n "$xpm_includes"; then
6662     vt_xpm_includes=$xpm_includes
6663     else
6664     vt_xpm_includes=NO
6665     fi
6666     if test -n "$xpm_libraries"; then
6667     vt_xpm_libraries=$xpm_libraries
6668     else
6669     vt_xpm_libraries=NO
6670     fi
6671    
6672     if test "$vt_xpm_includes" = NO; then
6673     # Guess where to find xpm.h
6674    
6675     ac_save_CPPFLAGS="$CPPFLAGS"
6676     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6677    
6678     # First, try using that file with no special directory specified.
6679 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6680     /* confdefs.h. */
6681     _ACEOF
6682     cat confdefs.h >>conftest.$ac_ext
6683     cat >>conftest.$ac_ext <<_ACEOF
6684     /* end confdefs.h. */
6685 pcg 1.1 #include <X11/xpm.h>
6686 pcg 1.11 _ACEOF
6687     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6688     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6689     ac_status=$?
6690     grep -v '^ *+' conftest.er1 >conftest.err
6691     rm -f conftest.er1
6692     cat conftest.err >&5
6693     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694     (exit $ac_status); } >/dev/null; then
6695     if test -s conftest.err; then
6696 pcg 1.13 ac_cpp_err=$ac_cxx_preproc_warn_flag
6697     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6698 pcg 1.11 else
6699     ac_cpp_err=
6700     fi
6701     else
6702     ac_cpp_err=yes
6703     fi
6704     if test -z "$ac_cpp_err"; then
6705 pcg 1.1 # We can compile using X headers with no special include directory.
6706     vt_xpm_includes=
6707     vt_xpm_include_X11=yes
6708     else
6709 pcg 1.11 echo "$as_me: failed program was:" >&5
6710     sed 's/^/| /' conftest.$ac_ext >&5
6711    
6712 pcg 1.1 CPPFLAGS="$ac_save_CPPFLAGS"
6713     # Look for the header file in a standard set of common directories.
6714     for ac_dir in \
6715     /usr/X11/include \
6716     /usr/X11R6/include \
6717     /usr/X11R5/include \
6718     /usr/X11R4/include \
6719     \
6720     /usr/include/X11 \
6721     /usr/include/X11R6 \
6722     /usr/include/X11R5 \
6723     /usr/include/X11R4 \
6724     \
6725     /usr/local/X11/include \
6726     /usr/local/X11R6/include \
6727     /usr/local/X11R5/include \
6728     /usr/local/X11R4/include \
6729     \
6730     /usr/local/include/X11 \
6731     /usr/local/include/X11R6 \
6732     /usr/local/include/X11R5 \
6733     /usr/local/include/X11R4 \
6734     \
6735     /usr/X386/include \
6736     /usr/x386/include \
6737     /usr/XFree86/include/X11 \
6738     \
6739     /usr/include \
6740     /usr/local/include \
6741     /usr/unsupported/include \
6742     /usr/athena/include \
6743     /usr/local/x11r5/include \
6744     /usr/lpp/Xamples/include \
6745     \
6746     /usr/openwin/include \
6747     /usr/openwin/share/include \
6748     ; \
6749     do
6750     if test -r "$ac_dir/X11/xpm.h"; then
6751     vt_xpm_includes="$ac_dir"
6752     vt_xpm_include_X11=yes
6753     break
6754     else
6755     if test -r "$ac_dir/xpm.h"; then
6756     vt_xpm_includes=$ac_dir
6757     break
6758     fi
6759     fi
6760     done
6761     fi
6762 pcg 1.11 rm -f conftest.err conftest.$ac_ext
6763 pcg 1.1 fi
6764    
6765     if test "$vt_xpm_libraries" = NO; then
6766     # Check for the libraries.
6767    
6768     # See if we find them without any special options.
6769     # Don't add to $LIBS permanently.
6770     ac_save_LIBS="$LIBS"
6771     LIBS="$LIBS $X_LIBS -lXpm -lX11"
6772 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6773     /* confdefs.h. */
6774     _ACEOF
6775     cat confdefs.h >>conftest.$ac_ext
6776     cat >>conftest.$ac_ext <<_ACEOF
6777     /* end confdefs.h. */
6778 pcg 1.1
6779 pcg 1.11 int
6780     main ()
6781     {
6782 pcg 1.1 XpmReadFileToPixmap()
6783 pcg 1.11 ;
6784     return 0;
6785     }
6786     _ACEOF
6787     rm -f conftest.$ac_objext conftest$ac_exeext
6788     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6789     (eval $ac_link) 2>conftest.er1
6790     ac_status=$?
6791     grep -v '^ *+' conftest.er1 >conftest.err
6792     rm -f conftest.er1
6793     cat conftest.err >&5
6794     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795     (exit $ac_status); } &&
6796 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6797 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798     (eval $ac_try) 2>&5
6799     ac_status=$?
6800     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801     (exit $ac_status); }; } &&
6802     { ac_try='test -s conftest$ac_exeext'
6803     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804     (eval $ac_try) 2>&5
6805     ac_status=$?
6806     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807     (exit $ac_status); }; }; then
6808 pcg 1.1 LIBS="$ac_save_LIBS"
6809     # We can link libXpm with no special library path.
6810     vt_xpm_libraries=
6811     else
6812 pcg 1.11 echo "$as_me: failed program was:" >&5
6813     sed 's/^/| /' conftest.$ac_ext >&5
6814    
6815     LIBS="$ac_save_LIBS"
6816 pcg 1.1 # First see if replacing the include by lib works.
6817     for ac_dir in \
6818     `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6819     /usr/X11/lib \
6820     /usr/X11R6/lib \
6821     /usr/X11R5/lib \
6822     /usr/X11R4/lib \
6823     \
6824     /usr/lib/X11 \
6825     /usr/lib/X11R6 \
6826     /usr/lib/X11R5 \
6827     /usr/lib/X11R4 \
6828     \
6829     /usr/local/X11/lib \
6830     /usr/local/X11R6/lib \
6831     /usr/local/X11R5/lib \
6832     /usr/local/X11R4/lib \
6833     \
6834     /usr/local/lib/X11 \
6835     /usr/local/lib/X11R6 \
6836     /usr/local/lib/X11R5 \
6837     /usr/local/lib/X11R4 \
6838     \
6839     /usr/X386/lib \
6840     /usr/x386/lib \
6841     /usr/XFree86/lib/X11 \
6842     \
6843     /usr/lib \
6844     /usr/local/lib \
6845     /usr/unsupported/lib \
6846     /usr/athena/lib \
6847     /usr/local/x11r5/lib \
6848     /usr/lpp/Xamples/lib \
6849     \
6850     /usr/openwin/lib \
6851     /usr/openwin/share/lib \
6852     ; \
6853     do
6854     for ac_extension in a so sl; do
6855     if test -r $ac_dir/libXpm.$ac_extension; then
6856     vt_xpm_libraries=$ac_dir
6857     break 2
6858     fi
6859     done
6860     done
6861     fi
6862 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
6863     conftest$ac_exeext conftest.$ac_ext
6864 pcg 1.1 fi
6865    
6866    
6867     if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6868     ac_cv_have_xpm="have_xpm=no"
6869     else
6870     ac_cv_have_xpm="have_xpm=yes \
6871     vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6872     vt_xpm_include_X11=$vt_xpm_include_X11"
6873     fi
6874     fi
6875     eval "$ac_cv_have_xpm"
6876     fi
6877    
6878     if test "$have_xpm" != yes; then
6879 pcg 1.11 echo "$as_me:$LINENO: result: $have_xpm" >&5
6880     echo "${ECHO_T}$have_xpm" >&6
6881 pcg 1.1 no_xpm=yes
6882     else
6883     if test "$xpm_includes" != NO; then
6884     if test "$xpm_includes" = "$vt_xpm_includes"; then
6885     if test -r "$xpm_includes/X11/xpm.h"; then
6886     vt_xpm_include_X11=yes
6887     fi
6888     else
6889     vt_xpm_include_X11=no
6890     if test -z "$xpm_includes"; then
6891 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6892     /* confdefs.h. */
6893     _ACEOF
6894     cat confdefs.h >>conftest.$ac_ext
6895     cat >>conftest.$ac_ext <<_ACEOF
6896     /* end confdefs.h. */
6897 pcg 1.1 #include <X11/xpm.h>
6898 pcg 1.11 _ACEOF
6899     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6900     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6901     ac_status=$?
6902     grep -v '^ *+' conftest.er1 >conftest.err
6903     rm -f conftest.er1
6904     cat conftest.err >&5
6905     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906     (exit $ac_status); } >/dev/null; then
6907     if test -s conftest.err; then
6908 pcg 1.13 ac_cpp_err=$ac_cxx_preproc_warn_flag
6909     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6910 pcg 1.11 else
6911     ac_cpp_err=
6912     fi
6913     else
6914     ac_cpp_err=yes
6915     fi
6916     if test -z "$ac_cpp_err"; then
6917 pcg 1.1 vt_xpm_include_X11=yes
6918     else
6919 pcg 1.11 echo "$as_me: failed program was:" >&5
6920     sed 's/^/| /' conftest.$ac_ext >&5
6921    
6922    
6923 pcg 1.1 fi
6924 pcg 1.11 rm -f conftest.err conftest.$ac_ext
6925 pcg 1.1 else
6926     if test -r "$xpm_includes/X11/xpm.h"; then
6927     vt_xpm_include_X11=yes
6928     fi
6929     fi
6930     fi
6931     vt_xpm_includes=$xpm_includes
6932     fi
6933     if test "x$xpm_libraries" != xNO; then
6934     vt_xpm_libraries=$xpm_libraries
6935     fi
6936     # Update the cache value to reflect the command line values.
6937     ac_cv_have_xpm="have_xpm=yes \
6938     vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6939     vt_xpm_include_X11=$vt_xpm_include_X11"
6940     eval "$ac_cv_have_xpm"
6941 pcg 1.11 echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
6942     echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
6943 pcg 1.1 if test -n "$vt_xpm_includes"; then
6944     XPM_CPPFLAGS="-DHAVE_LIBXPM"
6945     fi
6946     if test -n "$vt_xpm_includes"; then
6947     XPM_CFLAGS="-I$vt_xpm_includes"
6948     fi
6949     XPM_LIBS="-lXpm"
6950     if test -n "$vt_xpm_libraries"; then
6951     XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6952     fi
6953     if test "x$vt_xpm_include_X11" = xyes; then
6954 pcg 1.11
6955     cat >>confdefs.h <<\_ACEOF
6956 pcg 1.1 #define XPM_INC_X11 1
6957 pcg 1.11 _ACEOF
6958 pcg 1.1
6959     fi
6960     fi
6961    
6962    
6963    
6964    
6965    
6966     if test x$no_xpm = xyes; then
6967     support_xpm=needsmanualspecification
6968     fi
6969     fi
6970    
6971 pcg 1.11 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6972     echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6973     if test "${ac_cv_header_sys_wait_h+set}" = set; then
6974     echo $ECHO_N "(cached) $ECHO_C" >&6
6975     else
6976     cat >conftest.$ac_ext <<_ACEOF
6977     /* confdefs.h. */
6978     _ACEOF
6979     cat confdefs.h >>conftest.$ac_ext
6980     cat >>conftest.$ac_ext <<_ACEOF
6981     /* end confdefs.h. */
6982 pcg 1.1 #include <sys/types.h>
6983     #include <sys/wait.h>
6984     #ifndef WEXITSTATUS
6985 pcg 1.11 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6986 pcg 1.1 #endif
6987     #ifndef WIFEXITED
6988 pcg 1.11 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6989 pcg 1.1 #endif
6990 pcg 1.11
6991     int
6992     main ()
6993     {
6994     int s;
6995     wait (&s);
6996     s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6997     ;
6998     return 0;
6999     }
7000     _ACEOF
7001     rm -f conftest.$ac_objext
7002     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7003     (eval $ac_compile) 2>conftest.er1
7004     ac_status=$?
7005     grep -v '^ *+' conftest.er1 >conftest.err
7006     rm -f conftest.er1
7007     cat conftest.err >&5
7008     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009     (exit $ac_status); } &&
7010 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7011 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012     (eval $ac_try) 2>&5
7013     ac_status=$?
7014     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015     (exit $ac_status); }; } &&
7016     { ac_try='test -s conftest.$ac_objext'
7017     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018     (eval $ac_try) 2>&5
7019     ac_status=$?
7020     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021     (exit $ac_status); }; }; then
7022     ac_cv_header_sys_wait_h=yes
7023 pcg 1.1 else
7024 pcg 1.11 echo "$as_me: failed program was:" >&5
7025     sed 's/^/| /' conftest.$ac_ext >&5
7026    
7027     ac_cv_header_sys_wait_h=no
7028 pcg 1.1 fi
7029 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7030 pcg 1.1 fi
7031 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7032     echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7033     if test $ac_cv_header_sys_wait_h = yes; then
7034 pcg 1.1
7035 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7036 pcg 1.1 #define HAVE_SYS_WAIT_H 1
7037 pcg 1.11 _ACEOF
7038 pcg 1.1
7039     fi
7040    
7041 root 1.51 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7042     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7043     if test "${ac_cv_header_stdc+set}" = set; then
7044     echo $ECHO_N "(cached) $ECHO_C" >&6
7045     else
7046     cat >conftest.$ac_ext <<_ACEOF
7047     /* confdefs.h. */
7048     _ACEOF
7049     cat confdefs.h >>conftest.$ac_ext
7050     cat >>conftest.$ac_ext <<_ACEOF
7051     /* end confdefs.h. */
7052     #include <stdlib.h>
7053     #include <stdarg.h>
7054     #include <string.h>
7055     #include <float.h>
7056    
7057     int
7058     main ()
7059     {
7060    
7061     ;
7062     return 0;
7063     }
7064     _ACEOF
7065     rm -f conftest.$ac_objext
7066     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067     (eval $ac_compile) 2>conftest.er1
7068     ac_status=$?
7069     grep -v '^ *+' conftest.er1 >conftest.err
7070     rm -f conftest.er1
7071     cat conftest.err >&5
7072     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073     (exit $ac_status); } &&
7074     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7075     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076     (eval $ac_try) 2>&5
7077     ac_status=$?
7078     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079     (exit $ac_status); }; } &&
7080     { ac_try='test -s conftest.$ac_objext'
7081     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082     (eval $ac_try) 2>&5
7083     ac_status=$?
7084     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085     (exit $ac_status); }; }; then
7086     ac_cv_header_stdc=yes
7087     else
7088     echo "$as_me: failed program was:" >&5
7089     sed 's/^/| /' conftest.$ac_ext >&5
7090    
7091     ac_cv_header_stdc=no
7092     fi
7093     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7094    
7095     if test $ac_cv_header_stdc = yes; then
7096     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7097     cat >conftest.$ac_ext <<_ACEOF
7098     /* confdefs.h. */
7099     _ACEOF
7100     cat confdefs.h >>conftest.$ac_ext
7101     cat >>conftest.$ac_ext <<_ACEOF
7102     /* end confdefs.h. */
7103     #include <string.h>
7104    
7105     _ACEOF
7106     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7107     $EGREP "memchr" >/dev/null 2>&1; then
7108     :
7109     else
7110     ac_cv_header_stdc=no
7111     fi
7112     rm -f conftest*
7113    
7114     fi
7115    
7116     if test $ac_cv_header_stdc = yes; then
7117     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7118     cat >conftest.$ac_ext <<_ACEOF
7119     /* confdefs.h. */
7120     _ACEOF
7121     cat confdefs.h >>conftest.$ac_ext
7122     cat >>conftest.$ac_ext <<_ACEOF
7123     /* end confdefs.h. */
7124     #include <stdlib.h>
7125    
7126     _ACEOF
7127     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7128     $EGREP "free" >/dev/null 2>&1; then
7129     :
7130     else
7131     ac_cv_header_stdc=no
7132     fi
7133     rm -f conftest*
7134    
7135     fi
7136    
7137     if test $ac_cv_header_stdc = yes; then
7138     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7139     if test "$cross_compiling" = yes; then
7140     :
7141     else
7142     cat >conftest.$ac_ext <<_ACEOF
7143     /* confdefs.h. */
7144     _ACEOF
7145     cat confdefs.h >>conftest.$ac_ext
7146     cat >>conftest.$ac_ext <<_ACEOF
7147     /* end confdefs.h. */
7148     #include <ctype.h>
7149     #if ((' ' & 0x0FF) == 0x020)
7150     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7151     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7152     #else
7153     # define ISLOWER(c) \
7154     (('a' <= (c) && (c) <= 'i') \
7155     || ('j' <= (c) && (c) <= 'r') \
7156     || ('s' <= (c) && (c) <= 'z'))
7157     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7158     #endif
7159    
7160     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7161     int
7162     main ()
7163     {
7164     int i;
7165     for (i = 0; i < 256; i++)
7166     if (XOR (islower (i), ISLOWER (i))
7167     || toupper (i) != TOUPPER (i))
7168     exit(2);
7169     exit (0);
7170     }
7171     _ACEOF
7172     rm -f conftest$ac_exeext
7173     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7174     (eval $ac_link) 2>&5
7175     ac_status=$?
7176     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7178     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7179     (eval $ac_try) 2>&5
7180     ac_status=$?
7181     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182     (exit $ac_status); }; }; then
7183     :
7184     else
7185     echo "$as_me: program exited with status $ac_status" >&5
7186     echo "$as_me: failed program was:" >&5
7187     sed 's/^/| /' conftest.$ac_ext >&5
7188    
7189     ( exit $ac_status )
7190     ac_cv_header_stdc=no
7191     fi
7192     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7193     fi
7194     fi
7195     fi
7196     echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7197     echo "${ECHO_T}$ac_cv_header_stdc" >&6
7198     if test $ac_cv_header_stdc = yes; then
7199    
7200     cat >>confdefs.h <<\_ACEOF
7201     #define STDC_HEADERS 1
7202     _ACEOF
7203    
7204     fi
7205    
7206     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7207    
7208    
7209    
7210    
7211    
7212    
7213    
7214    
7215    
7216     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7217     inttypes.h stdint.h unistd.h
7218     do
7219     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7220     echo "$as_me:$LINENO: checking for $ac_header" >&5
7221     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7222     if eval "test \"\${$as_ac_Header+set}\" = set"; then
7223     echo $ECHO_N "(cached) $ECHO_C" >&6
7224     else
7225     cat >conftest.$ac_ext <<_ACEOF
7226     /* confdefs.h. */
7227     _ACEOF
7228     cat confdefs.h >>conftest.$ac_ext
7229     cat >>conftest.$ac_ext <<_ACEOF
7230     /* end confdefs.h. */
7231     $ac_includes_default
7232    
7233     #include <$ac_header>
7234     _ACEOF
7235     rm -f conftest.$ac_objext
7236     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7237     (eval $ac_compile) 2>conftest.er1
7238     ac_status=$?
7239     grep -v '^ *+' conftest.er1 >conftest.err
7240     rm -f conftest.er1
7241     cat conftest.err >&5
7242     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243     (exit $ac_status); } &&
7244     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7245     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246     (eval $ac_try) 2>&5
7247     ac_status=$?
7248     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249     (exit $ac_status); }; } &&
7250     { ac_try='test -s conftest.$ac_objext'
7251     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252     (eval $ac_try) 2>&5
7253     ac_status=$?
7254     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255     (exit $ac_status); }; }; then
7256     eval "$as_ac_Header=yes"
7257     else
7258     echo "$as_me: failed program was:" >&5
7259     sed 's/^/| /' conftest.$ac_ext >&5
7260    
7261     eval "$as_ac_Header=no"
7262     fi
7263     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7264     fi
7265     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7266     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7267     if test `eval echo '${'$as_ac_Header'}'` = yes; then
7268     cat >>confdefs.h <<_ACEOF
7269     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7270     _ACEOF
7271    
7272     fi
7273    
7274     done
7275    
7276    
7277 pcg 1.11
7278    
7279    
7280    
7281    
7282    
7283    
7284    
7285    
7286    
7287    
7288    
7289    
7290    
7291    
7292    
7293    
7294    
7295    
7296 root 1.33
7297 root 1.48
7298 root 1.50
7299    
7300    
7301 pcg 1.11 for ac_header in \
7302 pcg 1.1 assert.h \
7303     fcntl.h \
7304     grp.h \
7305     libc.h \
7306     lastlog.h \
7307     stdarg.h \
7308     stdlib.h \
7309     string.h \
7310     termios.h \
7311     unistd.h \
7312     sys/byteorder.h \
7313     sys/ioctl.h \
7314     sys/select.h \
7315     sys/sockio.h \
7316     sys/strredir.h \
7317 root 1.33 sys/stropts.h \
7318 pcg 1.1 sys/time.h \
7319     utmp.h \
7320     utmpx.h \
7321     stdint.h \
7322 root 1.48 pty.h \
7323 root 1.50 wchar.h \
7324     cwchar \
7325     clocale \
7326 pcg 1.1
7327     do
7328 pcg 1.11 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7329     if eval "test \"\${$as_ac_Header+set}\" = set"; then
7330     echo "$as_me:$LINENO: checking for $ac_header" >&5
7331     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7332     if eval "test \"\${$as_ac_Header+set}\" = set"; then
7333     echo $ECHO_N "(cached) $ECHO_C" >&6
7334     fi
7335     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7336     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7337     else
7338     # Is the header compilable?
7339     echo "$as_me:$LINENO: checking $ac_header usability" >&5
7340     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7341     cat >conftest.$ac_ext <<_ACEOF
7342     /* confdefs.h. */
7343     _ACEOF
7344     cat confdefs.h >>conftest.$ac_ext
7345     cat >>conftest.$ac_ext <<_ACEOF
7346     /* end confdefs.h. */
7347     $ac_includes_default
7348     #include <$ac_header>
7349     _ACEOF
7350     rm -f conftest.$ac_objext
7351     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7352     (eval $ac_compile) 2>conftest.er1
7353     ac_status=$?
7354     grep -v '^ *+' conftest.er1 >conftest.err
7355     rm -f conftest.er1
7356     cat conftest.err >&5
7357     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358     (exit $ac_status); } &&
7359 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7360 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361     (eval $ac_try) 2>&5
7362     ac_status=$?
7363     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364     (exit $ac_status); }; } &&
7365     { ac_try='test -s conftest.$ac_objext'
7366     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367     (eval $ac_try) 2>&5
7368     ac_status=$?
7369     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370     (exit $ac_status); }; }; then
7371     ac_header_compiler=yes
7372     else
7373     echo "$as_me: failed program was:" >&5
7374     sed 's/^/| /' conftest.$ac_ext >&5
7375    
7376     ac_header_compiler=no
7377     fi
7378     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7379     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7380     echo "${ECHO_T}$ac_header_compiler" >&6
7381    
7382     # Is the header present?
7383     echo "$as_me:$LINENO: checking $ac_header presence" >&5
7384     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7385     cat >conftest.$ac_ext <<_ACEOF
7386     /* confdefs.h. */
7387     _ACEOF
7388     cat confdefs.h >>conftest.$ac_ext
7389     cat >>conftest.$ac_ext <<_ACEOF
7390     /* end confdefs.h. */
7391     #include <$ac_header>
7392     _ACEOF
7393     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7394     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7395     ac_status=$?
7396     grep -v '^ *+' conftest.er1 >conftest.err
7397     rm -f conftest.er1
7398     cat conftest.err >&5
7399     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400     (exit $ac_status); } >/dev/null; then
7401     if test -s conftest.err; then
7402 pcg 1.13 ac_cpp_err=$ac_cxx_preproc_warn_flag
7403     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7404 pcg 1.11 else
7405     ac_cpp_err=
7406     fi
7407     else
7408     ac_cpp_err=yes
7409     fi
7410     if test -z "$ac_cpp_err"; then
7411     ac_header_preproc=yes
7412 pcg 1.1 else
7413 pcg 1.11 echo "$as_me: failed program was:" >&5
7414     sed 's/^/| /' conftest.$ac_ext >&5
7415    
7416     ac_header_preproc=no
7417     fi
7418     rm -f conftest.err conftest.$ac_ext
7419     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7420     echo "${ECHO_T}$ac_header_preproc" >&6
7421    
7422     # So? What about this header?
7423 pcg 1.13 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7424 pcg 1.11 yes:no: )
7425     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7426     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7428     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7429     ac_header_preproc=yes
7430     ;;
7431     no:yes:* )
7432     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7433     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7434     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7435     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7436     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7437     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7438     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7439     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7441     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7442     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7443     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7444     (
7445     cat <<\_ASBOX
7446     ## ------------------------------------------ ##
7447     ## Report this to the AC_PACKAGE_NAME lists. ##
7448     ## ------------------------------------------ ##
7449     _ASBOX
7450     ) |
7451     sed "s/^/$as_me: WARNING: /" >&2
7452     ;;
7453     esac
7454     echo "$as_me:$LINENO: checking for $ac_header" >&5
7455     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7456     if eval "test \"\${$as_ac_Header+set}\" = set"; then
7457     echo $ECHO_N "(cached) $ECHO_C" >&6
7458 pcg 1.1 else
7459 pcg 1.11 eval "$as_ac_Header=\$ac_header_preproc"
7460 pcg 1.1 fi
7461 pcg 1.11 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7462     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7463    
7464 pcg 1.1 fi
7465 pcg 1.11 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7466     cat >>confdefs.h <<_ACEOF
7467     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7468     _ACEOF
7469    
7470 pcg 1.1 fi
7471 pcg 1.11
7472 pcg 1.1 done
7473    
7474    
7475 pcg 1.11 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7476     echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7477     if test "${ac_cv_header_time+set}" = set; then
7478     echo $ECHO_N "(cached) $ECHO_C" >&6
7479     else
7480     cat >conftest.$ac_ext <<_ACEOF
7481     /* confdefs.h. */
7482     _ACEOF
7483     cat confdefs.h >>conftest.$ac_ext
7484     cat >>conftest.$ac_ext <<_ACEOF
7485     /* end confdefs.h. */
7486 pcg 1.1 #include <sys/types.h>
7487     #include <sys/time.h>
7488     #include <time.h>
7489 pcg 1.11
7490     int
7491     main ()
7492     {
7493     if ((struct tm *) 0)
7494     return 0;
7495     ;
7496     return 0;
7497     }
7498     _ACEOF
7499     rm -f conftest.$ac_objext
7500     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7501     (eval $ac_compile) 2>conftest.er1
7502     ac_status=$?
7503     grep -v '^ *+' conftest.er1 >conftest.err
7504     rm -f conftest.er1
7505     cat conftest.err >&5
7506     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507     (exit $ac_status); } &&
7508 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7509 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510     (eval $ac_try) 2>&5
7511     ac_status=$?
7512     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513     (exit $ac_status); }; } &&
7514     { ac_try='test -s conftest.$ac_objext'
7515     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516     (eval $ac_try) 2>&5
7517     ac_status=$?
7518     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519     (exit $ac_status); }; }; then
7520 pcg 1.1 ac_cv_header_time=yes
7521     else
7522 pcg 1.11 echo "$as_me: failed program was:" >&5
7523     sed 's/^/| /' conftest.$ac_ext >&5
7524    
7525     ac_cv_header_time=no
7526 pcg 1.1 fi
7527 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7528 pcg 1.1 fi
7529 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7530     echo "${ECHO_T}$ac_cv_header_time" >&6
7531     if test $ac_cv_header_time = yes; then
7532 pcg 1.1
7533 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7534 pcg 1.1 #define TIME_WITH_SYS_TIME 1
7535 pcg 1.11 _ACEOF
7536 pcg 1.1
7537     fi
7538    
7539    
7540 pcg 1.11 echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7541     echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6
7542     if test "${rxvt_cv_header_sysioctl+set}" = set; then
7543     echo $ECHO_N "(cached) $ECHO_C" >&6
7544 pcg 1.1 else
7545 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7546     /* confdefs.h. */
7547     _ACEOF
7548     cat confdefs.h >>conftest.$ac_ext
7549     cat >>conftest.$ac_ext <<_ACEOF
7550     /* end confdefs.h. */
7551 pcg 1.1 #include <stdio.h>
7552     #include <sys/ioctl.h>
7553     #ifdef HAVE_TERMIOS_H
7554     #include <termios.h>
7555     #endif
7556 pcg 1.11 int
7557     main ()
7558     {
7559 pcg 1.1 int a = ECHO;
7560 pcg 1.11 ;
7561     return 0;
7562     }
7563     _ACEOF
7564     rm -f conftest.$ac_objext
7565     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7566     (eval $ac_compile) 2>conftest.er1
7567     ac_status=$?
7568     grep -v '^ *+' conftest.er1 >conftest.err
7569     rm -f conftest.er1
7570     cat conftest.err >&5
7571     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572     (exit $ac_status); } &&
7573 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7574 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575     (eval $ac_try) 2>&5
7576     ac_status=$?
7577     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578     (exit $ac_status); }; } &&
7579     { ac_try='test -s conftest.$ac_objext'
7580     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581     (eval $ac_try) 2>&5
7582     ac_status=$?
7583     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584     (exit $ac_status); }; }; then
7585 pcg 1.1 rxvt_cv_header_sysioctl=yes
7586     else
7587 pcg 1.11 echo "$as_me: failed program was:" >&5
7588     sed 's/^/| /' conftest.$ac_ext >&5
7589    
7590     rxvt_cv_header_sysioctl=no
7591 pcg 1.1 fi
7592 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7593 pcg 1.1 fi
7594 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7595     echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7596 pcg 1.1
7597     if test -n "$GCC"; then
7598     LDARG="-Wl,"
7599     else
7600     LDARG=""
7601     fi
7602     R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7603    
7604     ac_save_CFLAGS=$CFLAGS
7605     ac_save_LIBS=$LIBS
7606     CFLAGS="$CFLAGS $X_CFLAGS"
7607     LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7608 pcg 1.11 echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7609     echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6
7610     if test "${rxvt_cv_rpath+set}" = set; then
7611     echo $ECHO_N "(cached) $ECHO_C" >&6
7612 pcg 1.1 else
7613     if test "$cross_compiling" = yes; then
7614 pcg 1.11 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7615     echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7616 pcg 1.1 else
7617 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7618     /* confdefs.h. */
7619     _ACEOF
7620     cat confdefs.h >>conftest.$ac_ext
7621     cat >>conftest.$ac_ext <<_ACEOF
7622     /* end confdefs.h. */
7623 pcg 1.1
7624     main()
7625     {
7626     exit(0);
7627     (void) XOpenDisplay("foobar");
7628     }
7629 pcg 1.11 _ACEOF
7630     rm -f conftest$ac_exeext
7631     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7632     (eval $ac_link) 2>&5
7633     ac_status=$?
7634     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7636     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637     (eval $ac_try) 2>&5
7638     ac_status=$?
7639     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640     (exit $ac_status); }; }; then
7641 pcg 1.1 rxvt_cv_rpath=yes
7642     else
7643 pcg 1.11 echo "$as_me: program exited with status $ac_status" >&5
7644     echo "$as_me: failed program was:" >&5
7645     sed 's/^/| /' conftest.$ac_ext >&5
7646    
7647     ( exit $ac_status )
7648     rxvt_cv_rpath=no
7649 pcg 1.1 fi
7650 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7651 pcg 1.1 fi
7652     fi
7653 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7654     echo "${ECHO_T}$rxvt_cv_rpath" >&6
7655 pcg 1.1 if test x$rxvt_cv_rpath != xyes; then
7656     R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7657     LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7658 pcg 1.11 echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7659     echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6
7660     if test "${rxvt_cv_R+set}" = set; then
7661     echo $ECHO_N "(cached) $ECHO_C" >&6
7662 pcg 1.1 else
7663     if test "$cross_compiling" = yes; then
7664     rxvt_cv_R=no
7665     else
7666 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7667     /* confdefs.h. */
7668     _ACEOF
7669     cat confdefs.h >>conftest.$ac_ext
7670     cat >>conftest.$ac_ext <<_ACEOF
7671     /* end confdefs.h. */
7672 pcg 1.1
7673     main()
7674     {
7675     exit(0);
7676     (void) XOpenDisplay("foobar");
7677     }
7678 pcg 1.11 _ACEOF
7679     rm -f conftest$ac_exeext
7680     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7681     (eval $ac_link) 2>&5
7682     ac_status=$?
7683     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7685     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686     (eval $ac_try) 2>&5
7687     ac_status=$?
7688     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689     (exit $ac_status); }; }; then
7690 pcg 1.1 rxvt_cv_R=yes
7691     else
7692 pcg 1.11 echo "$as_me: program exited with status $ac_status" >&5
7693     echo "$as_me: failed program was:" >&5
7694     sed 's/^/| /' conftest.$ac_ext >&5
7695    
7696     ( exit $ac_status )
7697     rxvt_cv_R=no
7698 pcg 1.1 fi
7699 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7700 pcg 1.1 fi
7701     fi
7702 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7703     echo "${ECHO_T}$rxvt_cv_R" >&6
7704 pcg 1.1 if test x$rxvt_cv_R != xyes; then
7705     LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7706     fi
7707     fi
7708    
7709 pcg 1.11 echo "$as_me:$LINENO: checking for XPointer" >&5
7710     echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
7711     if test "${rxvt_cv_xpointer+set}" = set; then
7712     echo $ECHO_N "(cached) $ECHO_C" >&6
7713     else
7714     cat >conftest.$ac_ext <<_ACEOF
7715     /* confdefs.h. */
7716     _ACEOF
7717     cat confdefs.h >>conftest.$ac_ext
7718     cat >>conftest.$ac_ext <<_ACEOF
7719     /* end confdefs.h. */
7720 pcg 1.1 #include <X11/Xlib.h>
7721 pcg 1.11 int
7722     main ()
7723     {
7724 pcg 1.1 XPointer dummy;
7725 pcg 1.11 ;
7726     return 0;
7727     }
7728     _ACEOF
7729     rm -f conftest.$ac_objext
7730     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7731     (eval $ac_compile) 2>conftest.er1
7732     ac_status=$?
7733     grep -v '^ *+' conftest.er1 >conftest.err
7734     rm -f conftest.er1
7735     cat conftest.err >&5
7736     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737     (exit $ac_status); } &&
7738 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7739 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740     (eval $ac_try) 2>&5
7741     ac_status=$?
7742     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743     (exit $ac_status); }; } &&
7744     { ac_try='test -s conftest.$ac_objext'
7745     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746     (eval $ac_try) 2>&5
7747     ac_status=$?
7748     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749     (exit $ac_status); }; }; then
7750 pcg 1.1 rxvt_cv_xpointer=yes
7751     else
7752 pcg 1.11 echo "$as_me: failed program was:" >&5
7753     sed 's/^/| /' conftest.$ac_ext >&5
7754    
7755     rxvt_cv_xpointer=no
7756 pcg 1.1 fi
7757 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7758 pcg 1.1 fi
7759 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7760     echo "${ECHO_T}$rxvt_cv_xpointer" >&6
7761     if test x$rxvt_cv_xpointer = xyes; then
7762 pcg 1.1
7763 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7764 pcg 1.1 #define HAVE_XPOINTER 1
7765 pcg 1.11 _ACEOF
7766 pcg 1.1
7767     fi
7768     LIBS=$ac_save_LIBS
7769     CFLAGS=$ac_save_CFLAGS
7770    
7771    
7772 pcg 1.11 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7773     echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7774     if test "${ac_cv_c_const+set}" = set; then
7775     echo $ECHO_N "(cached) $ECHO_C" >&6
7776     else
7777     cat >conftest.$ac_ext <<_ACEOF
7778     /* confdefs.h. */
7779     _ACEOF
7780     cat confdefs.h >>conftest.$ac_ext
7781     cat >>conftest.$ac_ext <<_ACEOF
7782     /* end confdefs.h. */
7783 pcg 1.1
7784 pcg 1.11 int
7785     main ()
7786     {
7787     /* FIXME: Include the comments suggested by Paul. */
7788     #ifndef __cplusplus
7789     /* Ultrix mips cc rejects this. */
7790     typedef int charset[2];
7791     const charset x;
7792     /* SunOS 4.1.1 cc rejects this. */
7793     char const *const *ccp;
7794     char **p;
7795     /* NEC SVR4.0.2 mips cc rejects this. */
7796     struct point {int x, y;};
7797     static struct point const zero = {0,0};
7798     /* AIX XL C 1.02.0.0 rejects this.
7799     It does not let you subtract one const X* pointer from another in
7800     an arm of an if-expression whose if-part is not a constant
7801     expression */
7802     const char *g = "string";
7803     ccp = &g + (g ? g-g : 0);
7804     /* HPUX 7.0 cc rejects these. */
7805     ++ccp;
7806     p = (char**) ccp;
7807     ccp = (char const *const *) p;
7808     { /* SCO 3.2v4 cc rejects this. */
7809     char *t;
7810     char const *s = 0 ? (char *) 0 : (char const *) 0;
7811    
7812     *t++ = 0;
7813     }
7814     { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7815     int x[] = {25, 17};
7816     const int *foo = &x[0];
7817     ++foo;
7818     }
7819     { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7820     typedef const int *iptr;
7821     iptr p = 0;
7822     ++p;
7823     }
7824     { /* AIX XL C 1.02.0.0 rejects this saying
7825     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7826     struct s { int j; const int *ap[3]; };
7827     struct s *b; b->j = 5;
7828     }
7829     { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7830     const int foo = 10;
7831     }
7832     #endif
7833 pcg 1.1
7834 pcg 1.11 ;
7835     return 0;
7836 pcg 1.1 }
7837 pcg 1.11 _ACEOF
7838     rm -f conftest.$ac_objext
7839     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7840     (eval $ac_compile) 2>conftest.er1
7841     ac_status=$?
7842     grep -v '^ *+' conftest.er1 >conftest.err
7843     rm -f conftest.er1
7844     cat conftest.err >&5
7845     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846     (exit $ac_status); } &&
7847 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7848 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849     (eval $ac_try) 2>&5
7850     ac_status=$?
7851     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852     (exit $ac_status); }; } &&
7853     { ac_try='test -s conftest.$ac_objext'
7854     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855     (eval $ac_try) 2>&5
7856     ac_status=$?
7857     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858     (exit $ac_status); }; }; then
7859 pcg 1.1 ac_cv_c_const=yes
7860     else
7861 pcg 1.11 echo "$as_me: failed program was:" >&5
7862     sed 's/^/| /' conftest.$ac_ext >&5
7863    
7864     ac_cv_c_const=no
7865 pcg 1.1 fi
7866 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7867 pcg 1.1 fi
7868 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7869     echo "${ECHO_T}$ac_cv_c_const" >&6
7870     if test $ac_cv_c_const = no; then
7871 pcg 1.1
7872 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7873     #define const
7874     _ACEOF
7875 pcg 1.1
7876     fi
7877    
7878 pcg 1.11 echo "$as_me:$LINENO: checking for inline" >&5
7879     echo $ECHO_N "checking for inline... $ECHO_C" >&6
7880     if test "${ac_cv_c_inline+set}" = set; then
7881     echo $ECHO_N "(cached) $ECHO_C" >&6
7882 pcg 1.1 else
7883     ac_cv_c_inline=no
7884     for ac_kw in inline __inline__ __inline; do
7885 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7886     /* confdefs.h. */
7887     _ACEOF
7888     cat confdefs.h >>conftest.$ac_ext
7889     cat >>conftest.$ac_ext <<_ACEOF
7890     /* end confdefs.h. */
7891     #ifndef __cplusplus
7892     typedef int foo_t;
7893     static $ac_kw foo_t static_foo () {return 0; }
7894     $ac_kw foo_t foo () {return 0; }
7895     #endif
7896 pcg 1.1
7897 pcg 1.11 _ACEOF
7898     rm -f conftest.$ac_objext
7899     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7900     (eval $ac_compile) 2>conftest.er1
7901     ac_status=$?
7902     grep -v '^ *+' conftest.er1 >conftest.err
7903     rm -f conftest.er1
7904     cat conftest.err >&5
7905     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906     (exit $ac_status); } &&
7907 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7908 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909     (eval $ac_try) 2>&5
7910     ac_status=$?
7911     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912     (exit $ac_status); }; } &&
7913     { ac_try='test -s conftest.$ac_objext'
7914     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915     (eval $ac_try) 2>&5
7916     ac_status=$?
7917     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918     (exit $ac_status); }; }; then
7919 pcg 1.1 ac_cv_c_inline=$ac_kw; break
7920     else
7921 pcg 1.11 echo "$as_me: failed program was:" >&5
7922     sed 's/^/| /' conftest.$ac_ext >&5
7923    
7924 pcg 1.1 fi
7925 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7926 pcg 1.1 done
7927    
7928     fi
7929 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7930     echo "${ECHO_T}$ac_cv_c_inline" >&6
7931    
7932 pcg 1.1
7933 pcg 1.11 case $ac_cv_c_inline in
7934 pcg 1.1 inline | yes) ;;
7935 pcg 1.11 *)
7936     case $ac_cv_c_inline in
7937     no) ac_val=;;
7938     *) ac_val=$ac_cv_c_inline;;
7939     esac
7940     cat >>confdefs.h <<_ACEOF
7941     #ifndef __cplusplus
7942     #define inline $ac_val
7943     #endif
7944     _ACEOF
7945     ;;
7946 pcg 1.1 esac
7947    
7948    
7949    
7950 pcg 1.11 echo "$as_me:$LINENO: checking for mode_t" >&5
7951     echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7952     if test "${ac_cv_type_mode_t+set}" = set; then
7953     echo $ECHO_N "(cached) $ECHO_C" >&6
7954     else
7955     cat >conftest.$ac_ext <<_ACEOF
7956     /* confdefs.h. */
7957     _ACEOF
7958     cat confdefs.h >>conftest.$ac_ext
7959     cat >>conftest.$ac_ext <<_ACEOF
7960     /* end confdefs.h. */
7961     $ac_includes_default
7962     int
7963     main ()
7964     {
7965     if ((mode_t *) 0)
7966     return 0;
7967     if (sizeof (mode_t))
7968     return 0;
7969     ;
7970     return 0;
7971     }
7972     _ACEOF
7973     rm -f conftest.$ac_objext
7974     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7975     (eval $ac_compile) 2>conftest.er1
7976     ac_status=$?
7977     grep -v '^ *+' conftest.er1 >conftest.err
7978     rm -f conftest.er1
7979     cat conftest.err >&5
7980     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981     (exit $ac_status); } &&
7982 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7983 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984     (eval $ac_try) 2>&5
7985     ac_status=$?
7986     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987     (exit $ac_status); }; } &&
7988     { ac_try='test -s conftest.$ac_objext'
7989     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990     (eval $ac_try) 2>&5
7991     ac_status=$?
7992     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993     (exit $ac_status); }; }; then
7994     ac_cv_type_mode_t=yes
7995 pcg 1.1 else
7996 pcg 1.11 echo "$as_me: failed program was:" >&5
7997     sed 's/^/| /' conftest.$ac_ext >&5
7998 pcg 1.1
7999 pcg 1.11 ac_cv_type_mode_t=no
8000 pcg 1.1 fi
8001 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8002 pcg 1.1 fi
8003 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8004     echo "${ECHO_T}$ac_cv_type_mode_t" >&6
8005     if test $ac_cv_type_mode_t = yes; then
8006 pcg 1.1 :
8007     else
8008    
8009 pcg 1.11 cat >>confdefs.h <<_ACEOF
8010     #define mode_t int
8011     _ACEOF
8012 pcg 1.1
8013     fi
8014    
8015 pcg 1.11 echo "$as_me:$LINENO: checking for pid_t" >&5
8016     echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8017     if test "${ac_cv_type_pid_t+set}" = set; then
8018     echo $ECHO_N "(cached) $ECHO_C" >&6
8019     else
8020     cat >conftest.$ac_ext <<_ACEOF
8021     /* confdefs.h. */
8022     _ACEOF
8023     cat confdefs.h >>conftest.$ac_ext
8024     cat >>conftest.$ac_ext <<_ACEOF
8025     /* end confdefs.h. */
8026     $ac_includes_default
8027     int
8028     main ()
8029     {
8030     if ((pid_t *) 0)
8031     return 0;
8032     if (sizeof (pid_t))
8033     return 0;
8034     ;
8035     return 0;
8036     }
8037     _ACEOF
8038     rm -f conftest.$ac_objext
8039     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8040     (eval $ac_compile) 2>conftest.er1
8041     ac_status=$?
8042     grep -v '^ *+' conftest.er1 >conftest.err
8043     rm -f conftest.er1
8044     cat conftest.err >&5
8045     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046     (exit $ac_status); } &&
8047 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8048 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049     (eval $ac_try) 2>&5
8050     ac_status=$?
8051     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052     (exit $ac_status); }; } &&
8053     { ac_try='test -s conftest.$ac_objext'
8054     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055     (eval $ac_try) 2>&5
8056     ac_status=$?
8057     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058     (exit $ac_status); }; }; then
8059     ac_cv_type_pid_t=yes
8060 pcg 1.1 else
8061 pcg 1.11 echo "$as_me: failed program was:" >&5
8062     sed 's/^/| /' conftest.$ac_ext >&5
8063 pcg 1.1
8064 pcg 1.11 ac_cv_type_pid_t=no
8065 pcg 1.1 fi
8066 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8067 pcg 1.1 fi
8068 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8069     echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8070     if test $ac_cv_type_pid_t = yes; then
8071     :
8072 pcg 1.1 else
8073    
8074 pcg 1.11 cat >>confdefs.h <<_ACEOF
8075 pcg 1.1 #define pid_t int
8076 pcg 1.11 _ACEOF
8077 pcg 1.1
8078     fi
8079    
8080 pcg 1.11 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8081     echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
8082     if test "${ac_cv_type_uid_t+set}" = set; then
8083     echo $ECHO_N "(cached) $ECHO_C" >&6
8084 pcg 1.1 else
8085 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
8086     /* confdefs.h. */
8087     _ACEOF
8088     cat confdefs.h >>conftest.$ac_ext
8089     cat >>conftest.$ac_ext <<_ACEOF
8090     /* end confdefs.h. */
8091 pcg 1.1 #include <sys/types.h>
8092 pcg 1.11
8093     _ACEOF
8094 pcg 1.1 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8095 pcg 1.11 $EGREP "uid_t" >/dev/null 2>&1; then
8096 pcg 1.1 ac_cv_type_uid_t=yes
8097     else
8098     ac_cv_type_uid_t=no
8099     fi
8100     rm -f conftest*
8101    
8102     fi
8103 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8104     echo "${ECHO_T}$ac_cv_type_uid_t" >&6
8105     if test $ac_cv_type_uid_t = no; then
8106 pcg 1.1
8107 pcg 1.11 cat >>confdefs.h <<\_ACEOF
8108 pcg 1.1 #define uid_t int
8109 pcg 1.11 _ACEOF
8110    
8111 pcg 1.1
8112 pcg 1.11 cat >>confdefs.h <<\_ACEOF
8113 pcg 1.1 #define gid_t int
8114 pcg 1.11 _ACEOF
8115 pcg 1.1
8116     fi
8117    
8118    
8119 pcg 1.11 echo "$as_me:$LINENO: checking for short" >&5
8120     echo $ECHO_N "checking for short... $ECHO_C" >&6
8121     if test "${ac_cv_type_short+set}" = set; then
8122     echo $ECHO_N "(cached) $ECHO_C" >&6
8123     else
8124     cat >conftest.$ac_ext <<_ACEOF
8125     /* confdefs.h. */
8126     _ACEOF
8127     cat confdefs.h >>conftest.$ac_ext
8128     cat >>conftest.$ac_ext <<_ACEOF
8129     /* end confdefs.h. */
8130     $ac_includes_default
8131     int
8132     main ()
8133     {
8134 root 1.42 if ((short *) 0)
8135 pcg 1.11 return 0;
8136 root 1.42 if (sizeof (short))
8137 pcg 1.11 return 0;
8138     ;
8139     return 0;
8140     }
8141     _ACEOF
8142     rm -f conftest.$ac_objext
8143     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8144     (eval $ac_compile) 2>conftest.er1
8145     ac_status=$?
8146     grep -v '^ *+' conftest.er1 >conftest.err
8147     rm -f conftest.er1
8148     cat conftest.err >&5
8149     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150     (exit $ac_status); } &&
8151 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8152 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8153     (eval $ac_try) 2>&5
8154     ac_status=$?
8155     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156     (exit $ac_status); }; } &&
8157     { ac_try='test -s conftest.$ac_objext'
8158     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8159     (eval $ac_try) 2>&5
8160     ac_status=$?
8161     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162     (exit $ac_status); }; }; then
8163 root 1.42 ac_cv_type_short=yes
8164 pcg 1.11 else
8165     echo "$as_me: failed program was:" >&5
8166     sed 's/^/| /' conftest.$ac_ext >&5
8167    
8168 root 1.42 ac_cv_type_short=no
8169 pcg 1.11 fi
8170     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8171     fi
8172 root 1.42 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8173     echo "${ECHO_T}$ac_cv_type_short" >&6
8174 pcg 1.11
8175 root 1.42 echo "$as_me:$LINENO: checking size of short" >&5
8176     echo $ECHO_N "checking size of short... $ECHO_C" >&6
8177     if test "${ac_cv_sizeof_short+set}" = set; then
8178 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
8179     else
8180 root 1.42 if test "$ac_cv_type_short" = yes; then
8181 pcg 1.11 # The cast to unsigned long works around a bug in the HP C Compiler
8182     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8183     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8184     # This bug is HP SR number 8606223364.
8185     if test "$cross_compiling" = yes; then
8186     # Depending upon the size, compute the lo and hi bounds.
8187     cat >conftest.$ac_ext <<_ACEOF
8188     /* confdefs.h. */
8189     _ACEOF
8190     cat confdefs.h >>conftest.$ac_ext
8191     cat >>conftest.$ac_ext <<_ACEOF
8192     /* end confdefs.h. */
8193     $ac_includes_default
8194     int
8195     main ()
8196     {
8197 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
8198 pcg 1.11 test_array [0] = 0
8199    
8200     ;
8201     return 0;
8202     }
8203     _ACEOF
8204     rm -f conftest.$ac_objext
8205     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8206     (eval $ac_compile) 2>conftest.er1
8207     ac_status=$?
8208     grep -v '^ *+' conftest.er1 >conftest.err
8209     rm -f conftest.er1
8210     cat conftest.err >&5
8211     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212     (exit $ac_status); } &&
8213 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8214 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215     (eval $ac_try) 2>&5
8216     ac_status=$?
8217     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218     (exit $ac_status); }; } &&
8219     { ac_try='test -s conftest.$ac_objext'
8220     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221     (eval $ac_try) 2>&5
8222     ac_status=$?
8223     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224     (exit $ac_status); }; }; then
8225     ac_lo=0 ac_mid=0
8226     while :; do
8227     cat >conftest.$ac_ext <<_ACEOF
8228     /* confdefs.h. */
8229     _ACEOF
8230     cat confdefs.h >>conftest.$ac_ext
8231     cat >>conftest.$ac_ext <<_ACEOF
8232     /* end confdefs.h. */
8233     $ac_includes_default
8234     int
8235     main ()
8236     {
8237 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8238 pcg 1.11 test_array [0] = 0
8239    
8240     ;
8241     return 0;
8242     }
8243     _ACEOF
8244     rm -f conftest.$ac_objext
8245     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8246     (eval $ac_compile) 2>conftest.er1
8247     ac_status=$?
8248     grep -v '^ *+' conftest.er1 >conftest.err
8249     rm -f conftest.er1
8250     cat conftest.err >&5
8251     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252     (exit $ac_status); } &&
8253 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8254 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255     (eval $ac_try) 2>&5
8256     ac_status=$?
8257     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258     (exit $ac_status); }; } &&
8259     { ac_try='test -s conftest.$ac_objext'
8260     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261     (eval $ac_try) 2>&5
8262     ac_status=$?
8263     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264     (exit $ac_status); }; }; then
8265     ac_hi=$ac_mid; break
8266     else
8267     echo "$as_me: failed program was:" >&5
8268     sed 's/^/| /' conftest.$ac_ext >&5
8269    
8270     ac_lo=`expr $ac_mid + 1`
8271     if test $ac_lo -le $ac_mid; then
8272     ac_lo= ac_hi=
8273     break
8274     fi
8275     ac_mid=`expr 2 '*' $ac_mid + 1`
8276     fi
8277     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8278     done
8279     else
8280     echo "$as_me: failed program was:" >&5
8281     sed 's/^/| /' conftest.$ac_ext >&5
8282    
8283     cat >conftest.$ac_ext <<_ACEOF
8284     /* confdefs.h. */
8285     _ACEOF
8286     cat confdefs.h >>conftest.$ac_ext
8287     cat >>conftest.$ac_ext <<_ACEOF
8288     /* end confdefs.h. */
8289     $ac_includes_default
8290     int
8291     main ()
8292     {
8293 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
8294 pcg 1.11 test_array [0] = 0
8295    
8296     ;
8297     return 0;
8298     }
8299     _ACEOF
8300     rm -f conftest.$ac_objext
8301     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8302     (eval $ac_compile) 2>conftest.er1
8303     ac_status=$?
8304     grep -v '^ *+' conftest.er1 >conftest.err
8305     rm -f conftest.er1
8306     cat conftest.err >&5
8307     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308     (exit $ac_status); } &&
8309 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8310 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311     (eval $ac_try) 2>&5
8312     ac_status=$?
8313     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314     (exit $ac_status); }; } &&
8315     { ac_try='test -s conftest.$ac_objext'
8316     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8317     (eval $ac_try) 2>&5
8318     ac_status=$?
8319     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320     (exit $ac_status); }; }; then
8321     ac_hi=-1 ac_mid=-1
8322     while :; do
8323     cat >conftest.$ac_ext <<_ACEOF
8324     /* confdefs.h. */
8325     _ACEOF
8326     cat confdefs.h >>conftest.$ac_ext
8327     cat >>conftest.$ac_ext <<_ACEOF
8328     /* end confdefs.h. */
8329     $ac_includes_default
8330     int
8331     main ()
8332     {
8333 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
8334 pcg 1.11 test_array [0] = 0
8335    
8336     ;
8337     return 0;
8338     }
8339     _ACEOF
8340     rm -f conftest.$ac_objext
8341     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8342     (eval $ac_compile) 2>conftest.er1
8343     ac_status=$?
8344     grep -v '^ *+' conftest.er1 >conftest.err
8345     rm -f conftest.er1
8346     cat conftest.err >&5
8347     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348     (exit $ac_status); } &&
8349 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8350 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351     (eval $ac_try) 2>&5
8352     ac_status=$?
8353     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354     (exit $ac_status); }; } &&
8355     { ac_try='test -s conftest.$ac_objext'
8356     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357     (eval $ac_try) 2>&5
8358     ac_status=$?
8359     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360     (exit $ac_status); }; }; then
8361     ac_lo=$ac_mid; break
8362     else
8363     echo "$as_me: failed program was:" >&5
8364     sed 's/^/| /' conftest.$ac_ext >&5
8365    
8366     ac_hi=`expr '(' $ac_mid ')' - 1`
8367     if test $ac_mid -le $ac_hi; then
8368     ac_lo= ac_hi=
8369     break
8370     fi
8371     ac_mid=`expr 2 '*' $ac_mid`
8372     fi
8373     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8374     done
8375     else
8376     echo "$as_me: failed program was:" >&5
8377     sed 's/^/| /' conftest.$ac_ext >&5
8378 pcg 1.1
8379 pcg 1.11 ac_lo= ac_hi=
8380 pcg 1.1 fi
8381 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8382     fi
8383     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8384     # Binary search between lo and hi bounds.
8385     while test "x$ac_lo" != "x$ac_hi"; do
8386     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8387     cat >conftest.$ac_ext <<_ACEOF
8388     /* confdefs.h. */
8389     _ACEOF
8390     cat confdefs.h >>conftest.$ac_ext
8391     cat >>conftest.$ac_ext <<_ACEOF
8392     /* end confdefs.h. */
8393     $ac_includes_default
8394     int
8395     main ()
8396     {
8397 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8398 pcg 1.11 test_array [0] = 0
8399 pcg 1.1
8400 pcg 1.11 ;
8401     return 0;
8402     }
8403     _ACEOF
8404     rm -f conftest.$ac_objext
8405     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8406     (eval $ac_compile) 2>conftest.er1
8407     ac_status=$?
8408     grep -v '^ *+' conftest.er1 >conftest.err
8409     rm -f conftest.er1
8410     cat conftest.err >&5
8411     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412     (exit $ac_status); } &&
8413 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8414 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415     (eval $ac_try) 2>&5
8416     ac_status=$?
8417     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418     (exit $ac_status); }; } &&
8419     { ac_try='test -s conftest.$ac_objext'
8420     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421     (eval $ac_try) 2>&5
8422     ac_status=$?
8423     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424     (exit $ac_status); }; }; then
8425     ac_hi=$ac_mid
8426     else
8427     echo "$as_me: failed program was:" >&5
8428     sed 's/^/| /' conftest.$ac_ext >&5
8429 pcg 1.1
8430 pcg 1.11 ac_lo=`expr '(' $ac_mid ')' + 1`
8431     fi
8432     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8433     done
8434     case $ac_lo in
8435 root 1.42 ?*) ac_cv_sizeof_short=$ac_lo;;
8436     '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8437 pcg 1.11 See \`config.log' for more details." >&5
8438 root 1.42 echo "$as_me: error: cannot compute sizeof (short), 77
8439 pcg 1.11 See \`config.log' for more details." >&2;}
8440     { (exit 1); exit 1; }; } ;;
8441     esac
8442 pcg 1.1 else
8443     if test "$cross_compiling" = yes; then
8444 pcg 1.13 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8445     echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8446 pcg 1.11 { (exit 1); exit 1; }; }
8447     else
8448     cat >conftest.$ac_ext <<_ACEOF
8449     /* confdefs.h. */
8450     _ACEOF
8451     cat confdefs.h >>conftest.$ac_ext
8452     cat >>conftest.$ac_ext <<_ACEOF
8453     /* end confdefs.h. */
8454     $ac_includes_default
8455 root 1.42 long longval () { return (long) (sizeof (short)); }
8456     unsigned long ulongval () { return (long) (sizeof (short)); }
8457 pcg 1.1 #include <stdio.h>
8458 pcg 1.11 #include <stdlib.h>
8459     int
8460     main ()
8461 pcg 1.1 {
8462 pcg 1.11
8463     FILE *f = fopen ("conftest.val", "w");
8464     if (! f)
8465     exit (1);
8466 root 1.42 if (((long) (sizeof (short))) < 0)
8467 pcg 1.11 {
8468     long i = longval ();
8469 root 1.42 if (i != ((long) (sizeof (short))))
8470 pcg 1.11 exit (1);
8471     fprintf (f, "%ld\n", i);
8472     }
8473     else
8474     {
8475     unsigned long i = ulongval ();
8476 root 1.42 if (i != ((long) (sizeof (short))))
8477 pcg 1.11 exit (1);
8478     fprintf (f, "%lu\n", i);
8479     }
8480     exit (ferror (f) || fclose (f) != 0);
8481    
8482     ;
8483     return 0;
8484 pcg 1.1 }
8485 pcg 1.11 _ACEOF
8486     rm -f conftest$ac_exeext
8487     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8488     (eval $ac_link) 2>&5
8489     ac_status=$?
8490     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8492     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493     (eval $ac_try) 2>&5
8494     ac_status=$?
8495     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496     (exit $ac_status); }; }; then
8497 root 1.42 ac_cv_sizeof_short=`cat conftest.val`
8498 pcg 1.11 else
8499     echo "$as_me: program exited with status $ac_status" >&5
8500     echo "$as_me: failed program was:" >&5
8501     sed 's/^/| /' conftest.$ac_ext >&5
8502    
8503     ( exit $ac_status )
8504 root 1.42 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8505 pcg 1.11 See \`config.log' for more details." >&5
8506 root 1.42 echo "$as_me: error: cannot compute sizeof (short), 77
8507 pcg 1.11 See \`config.log' for more details." >&2;}
8508     { (exit 1); exit 1; }; }
8509     fi
8510     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8511     fi
8512     fi
8513     rm -f conftest.val
8514     else
8515 root 1.42 ac_cv_sizeof_short=0
8516 pcg 1.1 fi
8517     fi
8518 root 1.42 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8519     echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8520 pcg 1.11 cat >>confdefs.h <<_ACEOF
8521 root 1.42 #define SIZEOF_SHORT $ac_cv_sizeof_short
8522 pcg 1.11 _ACEOF
8523    
8524    
8525 root 1.42 echo "$as_me:$LINENO: checking for int" >&5
8526     echo $ECHO_N "checking for int... $ECHO_C" >&6
8527     if test "${ac_cv_type_int+set}" = set; then
8528 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
8529     else
8530     cat >conftest.$ac_ext <<_ACEOF
8531     /* confdefs.h. */
8532     _ACEOF
8533     cat confdefs.h >>conftest.$ac_ext
8534     cat >>conftest.$ac_ext <<_ACEOF
8535     /* end confdefs.h. */
8536     $ac_includes_default
8537     int
8538     main ()
8539     {
8540 root 1.42 if ((int *) 0)
8541 pcg 1.11 return 0;
8542 root 1.42 if (sizeof (int))
8543 pcg 1.11 return 0;
8544     ;
8545     return 0;
8546     }
8547     _ACEOF
8548     rm -f conftest.$ac_objext
8549     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8550     (eval $ac_compile) 2>conftest.er1
8551     ac_status=$?
8552     grep -v '^ *+' conftest.er1 >conftest.err
8553     rm -f conftest.er1
8554     cat conftest.err >&5
8555     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556     (exit $ac_status); } &&
8557 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8558 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559     (eval $ac_try) 2>&5
8560     ac_status=$?
8561     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562     (exit $ac_status); }; } &&
8563     { ac_try='test -s conftest.$ac_objext'
8564     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565     (eval $ac_try) 2>&5
8566     ac_status=$?
8567     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568     (exit $ac_status); }; }; then
8569 root 1.42 ac_cv_type_int=yes
8570 pcg 1.11 else
8571     echo "$as_me: failed program was:" >&5
8572     sed 's/^/| /' conftest.$ac_ext >&5
8573    
8574 root 1.42 ac_cv_type_int=no
8575 pcg 1.11 fi
8576     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8577     fi
8578 root 1.42 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8579     echo "${ECHO_T}$ac_cv_type_int" >&6
8580 pcg 1.11
8581 root 1.42 echo "$as_me:$LINENO: checking size of int" >&5
8582     echo $ECHO_N "checking size of int... $ECHO_C" >&6
8583     if test "${ac_cv_sizeof_int+set}" = set; then
8584 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
8585     else
8586 root 1.42 if test "$ac_cv_type_int" = yes; then
8587 pcg 1.11 # The cast to unsigned long works around a bug in the HP C Compiler
8588     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8589     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8590     # This bug is HP SR number 8606223364.
8591     if test "$cross_compiling" = yes; then
8592     # Depending upon the size, compute the lo and hi bounds.
8593     cat >conftest.$ac_ext <<_ACEOF
8594     /* confdefs.h. */
8595     _ACEOF
8596     cat confdefs.h >>conftest.$ac_ext
8597     cat >>conftest.$ac_ext <<_ACEOF
8598     /* end confdefs.h. */
8599     $ac_includes_default
8600     int
8601     main ()
8602     {
8603 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
8604 pcg 1.11 test_array [0] = 0
8605    
8606     ;
8607     return 0;
8608     }
8609     _ACEOF
8610     rm -f conftest.$ac_objext
8611     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8612     (eval $ac_compile) 2>conftest.er1
8613     ac_status=$?
8614     grep -v '^ *+' conftest.er1 >conftest.err
8615     rm -f conftest.er1
8616     cat conftest.err >&5
8617     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618     (exit $ac_status); } &&
8619 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8620 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621     (eval $ac_try) 2>&5
8622     ac_status=$?
8623     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624     (exit $ac_status); }; } &&
8625     { ac_try='test -s conftest.$ac_objext'
8626     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627     (eval $ac_try) 2>&5
8628     ac_status=$?
8629     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630     (exit $ac_status); }; }; then
8631     ac_lo=0 ac_mid=0
8632     while :; do
8633     cat >conftest.$ac_ext <<_ACEOF
8634     /* confdefs.h. */
8635     _ACEOF
8636     cat confdefs.h >>conftest.$ac_ext
8637     cat >>conftest.$ac_ext <<_ACEOF
8638     /* end confdefs.h. */
8639     $ac_includes_default
8640     int
8641     main ()
8642     {
8643 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8644 pcg 1.11 test_array [0] = 0
8645    
8646     ;
8647     return 0;
8648     }
8649     _ACEOF
8650     rm -f conftest.$ac_objext
8651     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8652     (eval $ac_compile) 2>conftest.er1
8653     ac_status=$?
8654     grep -v '^ *+' conftest.er1 >conftest.err
8655     rm -f conftest.er1
8656     cat conftest.err >&5
8657     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658     (exit $ac_status); } &&
8659 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8660 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661     (eval $ac_try) 2>&5
8662     ac_status=$?
8663     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664     (exit $ac_status); }; } &&
8665     { ac_try='test -s conftest.$ac_objext'
8666     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667     (eval $ac_try) 2>&5
8668     ac_status=$?
8669     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670     (exit $ac_status); }; }; then
8671     ac_hi=$ac_mid; break
8672     else
8673     echo "$as_me: failed program was:" >&5
8674     sed 's/^/| /' conftest.$ac_ext >&5
8675    
8676     ac_lo=`expr $ac_mid + 1`
8677     if test $ac_lo -le $ac_mid; then
8678     ac_lo= ac_hi=
8679     break
8680     fi
8681     ac_mid=`expr 2 '*' $ac_mid + 1`
8682     fi
8683     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8684     done
8685     else
8686     echo "$as_me: failed program was:" >&5
8687     sed 's/^/| /' conftest.$ac_ext >&5
8688    
8689     cat >conftest.$ac_ext <<_ACEOF
8690     /* confdefs.h. */
8691     _ACEOF
8692     cat confdefs.h >>conftest.$ac_ext
8693     cat >>conftest.$ac_ext <<_ACEOF
8694     /* end confdefs.h. */
8695     $ac_includes_default
8696     int
8697     main ()
8698     {
8699 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8700 pcg 1.11 test_array [0] = 0
8701    
8702     ;
8703     return 0;
8704     }
8705     _ACEOF
8706     rm -f conftest.$ac_objext
8707     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8708     (eval $ac_compile) 2>conftest.er1
8709     ac_status=$?
8710     grep -v '^ *+' conftest.er1 >conftest.err
8711     rm -f conftest.er1
8712     cat conftest.err >&5
8713     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714     (exit $ac_status); } &&
8715 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8716 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717     (eval $ac_try) 2>&5
8718     ac_status=$?
8719     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720     (exit $ac_status); }; } &&
8721     { ac_try='test -s conftest.$ac_objext'
8722     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723     (eval $ac_try) 2>&5
8724     ac_status=$?
8725     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726     (exit $ac_status); }; }; then
8727     ac_hi=-1 ac_mid=-1
8728     while :; do
8729     cat >conftest.$ac_ext <<_ACEOF
8730     /* confdefs.h. */
8731     _ACEOF
8732     cat confdefs.h >>conftest.$ac_ext
8733     cat >>conftest.$ac_ext <<_ACEOF
8734     /* end confdefs.h. */
8735     $ac_includes_default
8736     int
8737     main ()
8738     {
8739 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8740 pcg 1.11 test_array [0] = 0
8741    
8742     ;
8743     return 0;
8744     }
8745     _ACEOF
8746     rm -f conftest.$ac_objext
8747     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8748     (eval $ac_compile) 2>conftest.er1
8749     ac_status=$?
8750     grep -v '^ *+' conftest.er1 >conftest.err
8751     rm -f conftest.er1
8752     cat conftest.err >&5
8753     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754     (exit $ac_status); } &&
8755 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8756 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757     (eval $ac_try) 2>&5
8758     ac_status=$?
8759     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760     (exit $ac_status); }; } &&
8761     { ac_try='test -s conftest.$ac_objext'
8762     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763     (eval $ac_try) 2>&5
8764     ac_status=$?
8765     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766     (exit $ac_status); }; }; then
8767     ac_lo=$ac_mid; break
8768     else
8769     echo "$as_me: failed program was:" >&5
8770     sed 's/^/| /' conftest.$ac_ext >&5
8771    
8772     ac_hi=`expr '(' $ac_mid ')' - 1`
8773     if test $ac_mid -le $ac_hi; then
8774     ac_lo= ac_hi=
8775     break
8776     fi
8777     ac_mid=`expr 2 '*' $ac_mid`
8778     fi
8779     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8780     done
8781     else
8782     echo "$as_me: failed program was:" >&5
8783     sed 's/^/| /' conftest.$ac_ext >&5
8784 pcg 1.1
8785 pcg 1.11 ac_lo= ac_hi=
8786     fi
8787     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8788 pcg 1.1 fi
8789 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8790     # Binary search between lo and hi bounds.
8791     while test "x$ac_lo" != "x$ac_hi"; do
8792     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8793     cat >conftest.$ac_ext <<_ACEOF
8794     /* confdefs.h. */
8795     _ACEOF
8796     cat confdefs.h >>conftest.$ac_ext
8797     cat >>conftest.$ac_ext <<_ACEOF
8798     /* end confdefs.h. */
8799     $ac_includes_default
8800     int
8801     main ()
8802     {
8803 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8804 pcg 1.11 test_array [0] = 0
8805 pcg 1.1
8806 pcg 1.11 ;
8807     return 0;
8808     }
8809     _ACEOF
8810     rm -f conftest.$ac_objext
8811     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8812     (eval $ac_compile) 2>conftest.er1
8813     ac_status=$?
8814     grep -v '^ *+' conftest.er1 >conftest.err
8815     rm -f conftest.er1
8816     cat conftest.err >&5
8817     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818     (exit $ac_status); } &&
8819 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8820 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821     (eval $ac_try) 2>&5
8822     ac_status=$?
8823     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824     (exit $ac_status); }; } &&
8825     { ac_try='test -s conftest.$ac_objext'
8826     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8827     (eval $ac_try) 2>&5
8828     ac_status=$?
8829     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830     (exit $ac_status); }; }; then
8831     ac_hi=$ac_mid
8832     else
8833     echo "$as_me: failed program was:" >&5
8834     sed 's/^/| /' conftest.$ac_ext >&5
8835 pcg 1.1
8836 pcg 1.11 ac_lo=`expr '(' $ac_mid ')' + 1`
8837     fi
8838     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8839     done
8840     case $ac_lo in
8841 root 1.42 ?*) ac_cv_sizeof_int=$ac_lo;;
8842     '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8843 pcg 1.11 See \`config.log' for more details." >&5
8844 root 1.42 echo "$as_me: error: cannot compute sizeof (int), 77
8845 pcg 1.11 See \`config.log' for more details." >&2;}
8846     { (exit 1); exit 1; }; } ;;
8847     esac
8848 pcg 1.1 else
8849     if test "$cross_compiling" = yes; then
8850 pcg 1.13 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8851     echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8852 pcg 1.11 { (exit 1); exit 1; }; }
8853     else
8854     cat >conftest.$ac_ext <<_ACEOF
8855     /* confdefs.h. */
8856     _ACEOF
8857     cat confdefs.h >>conftest.$ac_ext
8858     cat >>conftest.$ac_ext <<_ACEOF
8859     /* end confdefs.h. */
8860     $ac_includes_default
8861 root 1.42 long longval () { return (long) (sizeof (int)); }
8862     unsigned long ulongval () { return (long) (sizeof (int)); }
8863 pcg 1.1 #include <stdio.h>
8864 pcg 1.11 #include <stdlib.h>
8865     int
8866     main ()
8867 pcg 1.1 {
8868 pcg 1.11
8869     FILE *f = fopen ("conftest.val", "w");
8870     if (! f)
8871     exit (1);
8872 root 1.42 if (((long) (sizeof (int))) < 0)
8873 pcg 1.11 {
8874     long i = longval ();
8875 root 1.42 if (i != ((long) (sizeof (int))))
8876 pcg 1.11 exit (1);
8877     fprintf (f, "%ld\n", i);
8878     }
8879     else
8880     {
8881     unsigned long i = ulongval ();
8882 root 1.42 if (i != ((long) (sizeof (int))))
8883 pcg 1.11 exit (1);
8884     fprintf (f, "%lu\n", i);
8885     }
8886     exit (ferror (f) || fclose (f) != 0);
8887    
8888     ;
8889     return 0;
8890 pcg 1.1 }
8891 pcg 1.11 _ACEOF
8892     rm -f conftest$ac_exeext
8893     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8894     (eval $ac_link) 2>&5
8895     ac_status=$?
8896     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8898     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899     (eval $ac_try) 2>&5
8900     ac_status=$?
8901     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902     (exit $ac_status); }; }; then
8903 root 1.42 ac_cv_sizeof_int=`cat conftest.val`
8904 pcg 1.11 else
8905     echo "$as_me: program exited with status $ac_status" >&5
8906     echo "$as_me: failed program was:" >&5
8907     sed 's/^/| /' conftest.$ac_ext >&5
8908    
8909     ( exit $ac_status )
8910 root 1.42 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8911 pcg 1.11 See \`config.log' for more details." >&5
8912 root 1.42 echo "$as_me: error: cannot compute sizeof (int), 77
8913 pcg 1.11 See \`config.log' for more details." >&2;}
8914     { (exit 1); exit 1; }; }
8915     fi
8916     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8917     fi
8918     fi
8919     rm -f conftest.val
8920     else
8921 root 1.42 ac_cv_sizeof_int=0
8922 pcg 1.1 fi
8923     fi
8924 root 1.42 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8925     echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8926 pcg 1.11 cat >>confdefs.h <<_ACEOF
8927 root 1.42 #define SIZEOF_INT $ac_cv_sizeof_int
8928 pcg 1.11 _ACEOF
8929    
8930    
8931     echo "$as_me:$LINENO: checking for long long" >&5
8932     echo $ECHO_N "checking for long long... $ECHO_C" >&6
8933     if test "${ac_cv_type_long_long+set}" = set; then
8934     echo $ECHO_N "(cached) $ECHO_C" >&6
8935     else
8936     cat >conftest.$ac_ext <<_ACEOF
8937     /* confdefs.h. */
8938     _ACEOF
8939     cat confdefs.h >>conftest.$ac_ext
8940     cat >>conftest.$ac_ext <<_ACEOF
8941     /* end confdefs.h. */
8942     $ac_includes_default
8943     int
8944     main ()
8945     {
8946     if ((long long *) 0)
8947     return 0;
8948     if (sizeof (long long))
8949     return 0;
8950     ;
8951     return 0;
8952     }
8953     _ACEOF
8954     rm -f conftest.$ac_objext
8955     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8956     (eval $ac_compile) 2>conftest.er1
8957     ac_status=$?
8958     grep -v '^ *+' conftest.er1 >conftest.err
8959     rm -f conftest.er1
8960     cat conftest.err >&5
8961     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962     (exit $ac_status); } &&
8963 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8964 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965     (eval $ac_try) 2>&5
8966     ac_status=$?
8967     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968     (exit $ac_status); }; } &&
8969     { ac_try='test -s conftest.$ac_objext'
8970     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971     (eval $ac_try) 2>&5
8972     ac_status=$?
8973     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974     (exit $ac_status); }; }; then
8975     ac_cv_type_long_long=yes
8976     else
8977     echo "$as_me: failed program was:" >&5
8978     sed 's/^/| /' conftest.$ac_ext >&5
8979    
8980     ac_cv_type_long_long=no
8981     fi
8982     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8983     fi
8984     echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8985     echo "${ECHO_T}$ac_cv_type_long_long" >&6
8986    
8987     echo "$as_me:$LINENO: checking size of long long" >&5
8988     echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8989     if test "${ac_cv_sizeof_long_long+set}" = set; then
8990     echo $ECHO_N "(cached) $ECHO_C" >&6
8991     else
8992     if test "$ac_cv_type_long_long" = yes; then
8993     # The cast to unsigned long works around a bug in the HP C Compiler
8994     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8995     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8996     # This bug is HP SR number 8606223364.
8997     if test "$cross_compiling" = yes; then
8998     # Depending upon the size, compute the lo and hi bounds.
8999     cat >conftest.$ac_ext <<_ACEOF
9000     /* confdefs.h. */
9001     _ACEOF
9002     cat confdefs.h >>conftest.$ac_ext
9003     cat >>conftest.$ac_ext <<_ACEOF
9004     /* end confdefs.h. */
9005     $ac_includes_default
9006     int
9007     main ()
9008     {
9009     static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9010     test_array [0] = 0
9011    
9012     ;
9013     return 0;
9014     }
9015     _ACEOF
9016     rm -f conftest.$ac_objext
9017     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9018     (eval $ac_compile) 2>conftest.er1
9019     ac_status=$?
9020     grep -v '^ *+' conftest.er1 >conftest.err
9021     rm -f conftest.er1
9022     cat conftest.err >&5
9023     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024     (exit $ac_status); } &&
9025 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9026 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9027     (eval $ac_try) 2>&5
9028     ac_status=$?
9029     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030     (exit $ac_status); }; } &&
9031     { ac_try='test -s conftest.$ac_objext'
9032     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033     (eval $ac_try) 2>&5
9034     ac_status=$?
9035     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036     (exit $ac_status); }; }; then
9037     ac_lo=0 ac_mid=0
9038     while :; do
9039     cat >conftest.$ac_ext <<_ACEOF
9040     /* confdefs.h. */
9041     _ACEOF
9042     cat confdefs.h >>conftest.$ac_ext
9043     cat >>conftest.$ac_ext <<_ACEOF
9044     /* end confdefs.h. */
9045     $ac_includes_default
9046     int
9047     main ()
9048     {
9049     static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9050     test_array [0] = 0
9051    
9052     ;
9053     return 0;
9054     }
9055     _ACEOF
9056     rm -f conftest.$ac_objext
9057     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9058     (eval $ac_compile) 2>conftest.er1
9059     ac_status=$?
9060     grep -v '^ *+' conftest.er1 >conftest.err
9061     rm -f conftest.er1
9062     cat conftest.err >&5
9063     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064     (exit $ac_status); } &&
9065 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9066 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067     (eval $ac_try) 2>&5
9068     ac_status=$?
9069     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070     (exit $ac_status); }; } &&
9071     { ac_try='test -s conftest.$ac_objext'
9072     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073     (eval $ac_try) 2>&5
9074     ac_status=$?
9075     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076     (exit $ac_status); }; }; then
9077     ac_hi=$ac_mid; break
9078     else
9079     echo "$as_me: failed program was:" >&5
9080     sed 's/^/| /' conftest.$ac_ext >&5
9081    
9082     ac_lo=`expr $ac_mid + 1`
9083     if test $ac_lo -le $ac_mid; then
9084     ac_lo= ac_hi=
9085     break
9086     fi
9087     ac_mid=`expr 2 '*' $ac_mid + 1`
9088     fi
9089     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9090     done
9091     else
9092     echo "$as_me: failed program was:" >&5
9093     sed 's/^/| /' conftest.$ac_ext >&5
9094    
9095     cat >conftest.$ac_ext <<_ACEOF
9096     /* confdefs.h. */
9097     _ACEOF
9098     cat confdefs.h >>conftest.$ac_ext
9099     cat >>conftest.$ac_ext <<_ACEOF
9100     /* end confdefs.h. */
9101     $ac_includes_default
9102     int
9103     main ()
9104     {
9105     static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9106     test_array [0] = 0
9107    
9108     ;
9109     return 0;
9110     }
9111     _ACEOF
9112     rm -f conftest.$ac_objext
9113     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9114     (eval $ac_compile) 2>conftest.er1
9115     ac_status=$?
9116     grep -v '^ *+' conftest.er1 >conftest.err
9117     rm -f conftest.er1
9118     cat conftest.err >&5
9119     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120     (exit $ac_status); } &&
9121 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9122 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123     (eval $ac_try) 2>&5
9124     ac_status=$?
9125     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126     (exit $ac_status); }; } &&
9127     { ac_try='test -s conftest.$ac_objext'
9128     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129     (eval $ac_try) 2>&5
9130     ac_status=$?
9131     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132     (exit $ac_status); }; }; then
9133     ac_hi=-1 ac_mid=-1
9134     while :; do
9135     cat >conftest.$ac_ext <<_ACEOF
9136     /* confdefs.h. */
9137     _ACEOF
9138     cat confdefs.h >>conftest.$ac_ext
9139     cat >>conftest.$ac_ext <<_ACEOF
9140     /* end confdefs.h. */
9141     $ac_includes_default
9142     int
9143     main ()
9144     {
9145     static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9146     test_array [0] = 0
9147    
9148     ;
9149     return 0;
9150     }
9151     _ACEOF
9152     rm -f conftest.$ac_objext
9153     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9154     (eval $ac_compile) 2>conftest.er1
9155     ac_status=$?
9156     grep -v '^ *+' conftest.er1 >conftest.err
9157     rm -f conftest.er1
9158     cat conftest.err >&5
9159     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160     (exit $ac_status); } &&
9161 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9162 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163     (eval $ac_try) 2>&5
9164     ac_status=$?
9165     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166     (exit $ac_status); }; } &&
9167     { ac_try='test -s conftest.$ac_objext'
9168     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169     (eval $ac_try) 2>&5
9170     ac_status=$?
9171     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172     (exit $ac_status); }; }; then
9173     ac_lo=$ac_mid; break
9174     else
9175     echo "$as_me: failed program was:" >&5
9176     sed 's/^/| /' conftest.$ac_ext >&5
9177    
9178     ac_hi=`expr '(' $ac_mid ')' - 1`
9179     if test $ac_mid -le $ac_hi; then
9180     ac_lo= ac_hi=
9181     break
9182     fi
9183     ac_mid=`expr 2 '*' $ac_mid`
9184     fi
9185     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9186     done
9187     else
9188     echo "$as_me: failed program was:" >&5
9189     sed 's/^/| /' conftest.$ac_ext >&5
9190 pcg 1.1
9191 pcg 1.11 ac_lo= ac_hi=
9192     fi
9193     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9194 pcg 1.1 fi
9195 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9196     # Binary search between lo and hi bounds.
9197     while test "x$ac_lo" != "x$ac_hi"; do
9198     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9199     cat >conftest.$ac_ext <<_ACEOF
9200     /* confdefs.h. */
9201     _ACEOF
9202     cat confdefs.h >>conftest.$ac_ext
9203     cat >>conftest.$ac_ext <<_ACEOF
9204     /* end confdefs.h. */
9205     $ac_includes_default
9206     int
9207     main ()
9208     {
9209     static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9210     test_array [0] = 0
9211 pcg 1.1
9212 pcg 1.11 ;
9213     return 0;
9214     }
9215     _ACEOF
9216     rm -f conftest.$ac_objext
9217     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9218     (eval $ac_compile) 2>conftest.er1
9219     ac_status=$?
9220     grep -v '^ *+' conftest.er1 >conftest.err
9221     rm -f conftest.er1
9222     cat conftest.err >&5
9223     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224     (exit $ac_status); } &&
9225 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9226 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227     (eval $ac_try) 2>&5
9228     ac_status=$?
9229     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230     (exit $ac_status); }; } &&
9231     { ac_try='test -s conftest.$ac_objext'
9232     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9233     (eval $ac_try) 2>&5
9234     ac_status=$?
9235     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236     (exit $ac_status); }; }; then
9237     ac_hi=$ac_mid
9238     else
9239     echo "$as_me: failed program was:" >&5
9240     sed 's/^/| /' conftest.$ac_ext >&5
9241 pcg 1.1
9242 pcg 1.11 ac_lo=`expr '(' $ac_mid ')' + 1`
9243     fi
9244     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9245     done
9246     case $ac_lo in
9247     ?*) ac_cv_sizeof_long_long=$ac_lo;;
9248     '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9249     See \`config.log' for more details." >&5
9250     echo "$as_me: error: cannot compute sizeof (long long), 77
9251     See \`config.log' for more details." >&2;}
9252     { (exit 1); exit 1; }; } ;;
9253     esac
9254 pcg 1.1 else
9255     if test "$cross_compiling" = yes; then
9256 pcg 1.13 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9257     echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
9258 pcg 1.11 { (exit 1); exit 1; }; }
9259     else
9260     cat >conftest.$ac_ext <<_ACEOF
9261     /* confdefs.h. */
9262     _ACEOF
9263     cat confdefs.h >>conftest.$ac_ext
9264     cat >>conftest.$ac_ext <<_ACEOF
9265     /* end confdefs.h. */
9266     $ac_includes_default
9267     long longval () { return (long) (sizeof (long long)); }
9268     unsigned long ulongval () { return (long) (sizeof (long long)); }
9269 pcg 1.1 #include <stdio.h>
9270 pcg 1.11 #include <stdlib.h>
9271     int
9272     main ()
9273 pcg 1.1 {
9274 pcg 1.11
9275     FILE *f = fopen ("conftest.val", "w");
9276     if (! f)
9277     exit (1);
9278     if (((long) (sizeof (long long))) < 0)
9279     {
9280     long i = longval ();
9281     if (i != ((long) (sizeof (long long))))
9282     exit (1);
9283     fprintf (f, "%ld\n", i);
9284     }
9285     else
9286     {
9287     unsigned long i = ulongval ();
9288     if (i != ((long) (sizeof (long long))))
9289     exit (1);
9290     fprintf (f, "%lu\n", i);
9291     }
9292     exit (ferror (f) || fclose (f) != 0);
9293    
9294     ;
9295     return 0;
9296 pcg 1.1 }
9297 pcg 1.11 _ACEOF
9298     rm -f conftest$ac_exeext
9299     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9300     (eval $ac_link) 2>&5
9301     ac_status=$?
9302     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9304     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305     (eval $ac_try) 2>&5
9306     ac_status=$?
9307     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308     (exit $ac_status); }; }; then
9309     ac_cv_sizeof_long_long=`cat conftest.val`
9310     else
9311     echo "$as_me: program exited with status $ac_status" >&5
9312     echo "$as_me: failed program was:" >&5
9313     sed 's/^/| /' conftest.$ac_ext >&5
9314    
9315     ( exit $ac_status )
9316     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9317     See \`config.log' for more details." >&5
9318     echo "$as_me: error: cannot compute sizeof (long long), 77
9319     See \`config.log' for more details." >&2;}
9320     { (exit 1); exit 1; }; }
9321     fi
9322     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9323     fi
9324     fi
9325     rm -f conftest.val
9326     else
9327 pcg 1.1 ac_cv_sizeof_long_long=0
9328     fi
9329 pcg 1.11 fi
9330     echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9331     echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9332     cat >>confdefs.h <<_ACEOF
9333     #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9334     _ACEOF
9335    
9336    
9337     echo "$as_me:$LINENO: checking for int *" >&5
9338     echo $ECHO_N "checking for int *... $ECHO_C" >&6
9339     if test "${ac_cv_type_int_p+set}" = set; then
9340     echo $ECHO_N "(cached) $ECHO_C" >&6
9341     else
9342     cat >conftest.$ac_ext <<_ACEOF
9343     /* confdefs.h. */
9344     _ACEOF
9345     cat confdefs.h >>conftest.$ac_ext
9346     cat >>conftest.$ac_ext <<_ACEOF
9347     /* end confdefs.h. */
9348     $ac_includes_default
9349     int
9350     main ()
9351     {
9352     if ((int * *) 0)
9353     return 0;
9354     if (sizeof (int *))
9355     return 0;
9356     ;
9357     return 0;
9358     }
9359     _ACEOF
9360     rm -f conftest.$ac_objext
9361     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9362     (eval $ac_compile) 2>conftest.er1
9363     ac_status=$?
9364     grep -v '^ *+' conftest.er1 >conftest.err
9365     rm -f conftest.er1
9366     cat conftest.err >&5
9367     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368     (exit $ac_status); } &&
9369 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9370 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371     (eval $ac_try) 2>&5
9372     ac_status=$?
9373     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374     (exit $ac_status); }; } &&
9375     { ac_try='test -s conftest.$ac_objext'
9376     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377     (eval $ac_try) 2>&5
9378     ac_status=$?
9379     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380     (exit $ac_status); }; }; then
9381     ac_cv_type_int_p=yes
9382     else
9383     echo "$as_me: failed program was:" >&5
9384     sed 's/^/| /' conftest.$ac_ext >&5
9385    
9386     ac_cv_type_int_p=no
9387     fi
9388     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9389     fi
9390     echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9391     echo "${ECHO_T}$ac_cv_type_int_p" >&6
9392    
9393     echo "$as_me:$LINENO: checking size of int *" >&5
9394     echo $ECHO_N "checking size of int *... $ECHO_C" >&6
9395     if test "${ac_cv_sizeof_int_p+set}" = set; then
9396     echo $ECHO_N "(cached) $ECHO_C" >&6
9397     else
9398     if test "$ac_cv_type_int_p" = yes; then
9399     # The cast to unsigned long works around a bug in the HP C Compiler
9400     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9401     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9402     # This bug is HP SR number 8606223364.
9403     if test "$cross_compiling" = yes; then
9404     # Depending upon the size, compute the lo and hi bounds.
9405     cat >conftest.$ac_ext <<_ACEOF
9406     /* confdefs.h. */
9407     _ACEOF
9408     cat confdefs.h >>conftest.$ac_ext
9409     cat >>conftest.$ac_ext <<_ACEOF
9410     /* end confdefs.h. */
9411     $ac_includes_default
9412     int
9413     main ()
9414     {
9415     static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
9416     test_array [0] = 0
9417    
9418     ;
9419     return 0;
9420     }
9421     _ACEOF
9422     rm -f conftest.$ac_objext
9423     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9424     (eval $ac_compile) 2>conftest.er1
9425     ac_status=$?
9426     grep -v '^ *+' conftest.er1 >conftest.err
9427     rm -f conftest.er1
9428     cat conftest.err >&5
9429     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430     (exit $ac_status); } &&
9431 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9432 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9433     (eval $ac_try) 2>&5
9434     ac_status=$?
9435     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436     (exit $ac_status); }; } &&
9437     { ac_try='test -s conftest.$ac_objext'
9438     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439     (eval $ac_try) 2>&5
9440     ac_status=$?
9441     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442     (exit $ac_status); }; }; then
9443     ac_lo=0 ac_mid=0
9444     while :; do
9445     cat >conftest.$ac_ext <<_ACEOF
9446     /* confdefs.h. */
9447     _ACEOF
9448     cat confdefs.h >>conftest.$ac_ext
9449     cat >>conftest.$ac_ext <<_ACEOF
9450     /* end confdefs.h. */
9451     $ac_includes_default
9452     int
9453     main ()
9454     {
9455     static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9456     test_array [0] = 0
9457    
9458     ;
9459     return 0;
9460     }
9461     _ACEOF
9462     rm -f conftest.$ac_objext
9463     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9464     (eval $ac_compile) 2>conftest.er1
9465     ac_status=$?
9466     grep -v '^ *+' conftest.er1 >conftest.err
9467     rm -f conftest.er1
9468     cat conftest.err >&5
9469     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470     (exit $ac_status); } &&
9471 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9472 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473     (eval $ac_try) 2>&5
9474     ac_status=$?
9475     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476     (exit $ac_status); }; } &&
9477     { ac_try='test -s conftest.$ac_objext'
9478     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479     (eval $ac_try) 2>&5
9480     ac_status=$?
9481     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482     (exit $ac_status); }; }; then
9483     ac_hi=$ac_mid; break
9484     else
9485     echo "$as_me: failed program was:" >&5
9486     sed 's/^/| /' conftest.$ac_ext >&5
9487    
9488     ac_lo=`expr $ac_mid + 1`
9489     if test $ac_lo -le $ac_mid; then
9490     ac_lo= ac_hi=
9491     break
9492     fi
9493     ac_mid=`expr 2 '*' $ac_mid + 1`
9494     fi
9495     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9496     done
9497     else
9498     echo "$as_me: failed program was:" >&5
9499     sed 's/^/| /' conftest.$ac_ext >&5
9500    
9501     cat >conftest.$ac_ext <<_ACEOF
9502     /* confdefs.h. */
9503     _ACEOF
9504     cat confdefs.h >>conftest.$ac_ext
9505     cat >>conftest.$ac_ext <<_ACEOF
9506     /* end confdefs.h. */
9507     $ac_includes_default
9508     int
9509     main ()
9510     {
9511     static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
9512     test_array [0] = 0
9513    
9514     ;
9515     return 0;
9516     }
9517     _ACEOF
9518     rm -f conftest.$ac_objext
9519     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9520     (eval $ac_compile) 2>conftest.er1
9521     ac_status=$?
9522     grep -v '^ *+' conftest.er1 >conftest.err
9523     rm -f conftest.er1
9524     cat conftest.err >&5
9525     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526     (exit $ac_status); } &&
9527 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9528 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529     (eval $ac_try) 2>&5
9530     ac_status=$?
9531     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532     (exit $ac_status); }; } &&
9533     { ac_try='test -s conftest.$ac_objext'
9534     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535     (eval $ac_try) 2>&5
9536     ac_status=$?
9537     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538     (exit $ac_status); }; }; then
9539     ac_hi=-1 ac_mid=-1
9540     while :; do
9541     cat >conftest.$ac_ext <<_ACEOF
9542     /* confdefs.h. */
9543     _ACEOF
9544     cat confdefs.h >>conftest.$ac_ext
9545     cat >>conftest.$ac_ext <<_ACEOF
9546     /* end confdefs.h. */
9547     $ac_includes_default
9548     int
9549     main ()
9550     {
9551     static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
9552     test_array [0] = 0
9553    
9554     ;
9555     return 0;
9556     }
9557     _ACEOF
9558     rm -f conftest.$ac_objext
9559     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9560     (eval $ac_compile) 2>conftest.er1
9561     ac_status=$?
9562     grep -v '^ *+' conftest.er1 >conftest.err
9563     rm -f conftest.er1
9564     cat conftest.err >&5
9565     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566     (exit $ac_status); } &&
9567 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9568 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569     (eval $ac_try) 2>&5
9570     ac_status=$?
9571     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572     (exit $ac_status); }; } &&
9573     { ac_try='test -s conftest.$ac_objext'
9574     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575     (eval $ac_try) 2>&5
9576     ac_status=$?
9577     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578     (exit $ac_status); }; }; then
9579     ac_lo=$ac_mid; break
9580     else
9581     echo "$as_me: failed program was:" >&5
9582     sed 's/^/| /' conftest.$ac_ext >&5
9583    
9584     ac_hi=`expr '(' $ac_mid ')' - 1`
9585     if test $ac_mid -le $ac_hi; then
9586     ac_lo= ac_hi=
9587     break
9588     fi
9589     ac_mid=`expr 2 '*' $ac_mid`
9590     fi
9591     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9592     done
9593     else
9594     echo "$as_me: failed program was:" >&5
9595     sed 's/^/| /' conftest.$ac_ext >&5
9596    
9597     ac_lo= ac_hi=
9598     fi
9599     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9600     fi
9601     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9602     # Binary search between lo and hi bounds.
9603     while test "x$ac_lo" != "x$ac_hi"; do
9604     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9605     cat >conftest.$ac_ext <<_ACEOF
9606     /* confdefs.h. */
9607     _ACEOF
9608     cat confdefs.h >>conftest.$ac_ext
9609     cat >>conftest.$ac_ext <<_ACEOF
9610     /* end confdefs.h. */
9611     $ac_includes_default
9612     int
9613     main ()
9614     {
9615     static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9616     test_array [0] = 0
9617    
9618     ;
9619     return 0;
9620     }
9621     _ACEOF
9622     rm -f conftest.$ac_objext
9623     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9624     (eval $ac_compile) 2>conftest.er1
9625     ac_status=$?
9626     grep -v '^ *+' conftest.er1 >conftest.err
9627     rm -f conftest.er1
9628     cat conftest.err >&5
9629     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630     (exit $ac_status); } &&
9631 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9632 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633     (eval $ac_try) 2>&5
9634     ac_status=$?
9635     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636     (exit $ac_status); }; } &&
9637     { ac_try='test -s conftest.$ac_objext'
9638     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639     (eval $ac_try) 2>&5
9640     ac_status=$?
9641     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642     (exit $ac_status); }; }; then
9643     ac_hi=$ac_mid
9644     else
9645     echo "$as_me: failed program was:" >&5
9646     sed 's/^/| /' conftest.$ac_ext >&5
9647 pcg 1.1
9648 pcg 1.11 ac_lo=`expr '(' $ac_mid ')' + 1`
9649 pcg 1.1 fi
9650 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9651     done
9652     case $ac_lo in
9653     ?*) ac_cv_sizeof_int_p=$ac_lo;;
9654     '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9655     See \`config.log' for more details." >&5
9656     echo "$as_me: error: cannot compute sizeof (int *), 77
9657     See \`config.log' for more details." >&2;}
9658     { (exit 1); exit 1; }; } ;;
9659     esac
9660 pcg 1.1 else
9661     if test "$cross_compiling" = yes; then
9662 pcg 1.13 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9663     echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
9664 pcg 1.11 { (exit 1); exit 1; }; }
9665     else
9666     cat >conftest.$ac_ext <<_ACEOF
9667     /* confdefs.h. */
9668     _ACEOF
9669     cat confdefs.h >>conftest.$ac_ext
9670     cat >>conftest.$ac_ext <<_ACEOF
9671     /* end confdefs.h. */
9672     $ac_includes_default
9673     long longval () { return (long) (sizeof (int *)); }
9674     unsigned long ulongval () { return (long) (sizeof (int *)); }
9675 pcg 1.1 #include <stdio.h>
9676 pcg 1.11 #include <stdlib.h>
9677     int
9678     main ()
9679 pcg 1.1 {
9680 pcg 1.11
9681     FILE *f = fopen ("conftest.val", "w");
9682     if (! f)
9683     exit (1);
9684     if (((long) (sizeof (int *))) < 0)
9685     {
9686     long i = longval ();
9687     if (i != ((long) (sizeof (int *))))
9688     exit (1);
9689     fprintf (f, "%ld\n", i);
9690     }
9691     else
9692     {
9693     unsigned long i = ulongval ();
9694     if (i != ((long) (sizeof (int *))))
9695     exit (1);
9696     fprintf (f, "%lu\n", i);
9697     }
9698     exit (ferror (f) || fclose (f) != 0);
9699    
9700     ;
9701     return 0;
9702 pcg 1.1 }
9703 pcg 1.11 _ACEOF
9704     rm -f conftest$ac_exeext
9705     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9706     (eval $ac_link) 2>&5
9707     ac_status=$?
9708     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9710     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711     (eval $ac_try) 2>&5
9712     ac_status=$?
9713     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714     (exit $ac_status); }; }; then
9715     ac_cv_sizeof_int_p=`cat conftest.val`
9716     else
9717     echo "$as_me: program exited with status $ac_status" >&5
9718     echo "$as_me: failed program was:" >&5
9719     sed 's/^/| /' conftest.$ac_ext >&5
9720    
9721     ( exit $ac_status )
9722     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9723     See \`config.log' for more details." >&5
9724     echo "$as_me: error: cannot compute sizeof (int *), 77
9725     See \`config.log' for more details." >&2;}
9726     { (exit 1); exit 1; }; }
9727     fi
9728     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9729     fi
9730     fi
9731     rm -f conftest.val
9732     else
9733 pcg 1.1 ac_cv_sizeof_int_p=0
9734     fi
9735     fi
9736 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9737     echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
9738     cat >>confdefs.h <<_ACEOF
9739 pcg 1.1 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
9740 pcg 1.11 _ACEOF
9741 pcg 1.1
9742    
9743    
9744    
9745 pcg 1.11 echo "$as_me:$LINENO: checking for int16_t" >&5
9746     echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
9747     if test "${rxvt_cv_int16_t+set}" = set; then
9748     echo $ECHO_N "(cached) $ECHO_C" >&6
9749 pcg 1.1 else
9750 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
9751     /* confdefs.h. */
9752     _ACEOF
9753     cat confdefs.h >>conftest.$ac_ext
9754     cat >>conftest.$ac_ext <<_ACEOF
9755     /* end confdefs.h. */
9756 pcg 1.1 #include <stdint.h>
9757 pcg 1.11 int
9758     main ()
9759     {
9760 pcg 1.1 int16_t dummy;
9761 pcg 1.11 ;
9762     return 0;
9763     }
9764     _ACEOF
9765     rm -f conftest.$ac_objext
9766     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9767     (eval $ac_compile) 2>conftest.er1
9768     ac_status=$?
9769     grep -v '^ *+' conftest.er1 >conftest.err
9770     rm -f conftest.er1
9771     cat conftest.err >&5
9772     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773     (exit $ac_status); } &&
9774 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9775 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776     (eval $ac_try) 2>&5
9777     ac_status=$?
9778     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779     (exit $ac_status); }; } &&
9780     { ac_try='test -s conftest.$ac_objext'
9781     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782     (eval $ac_try) 2>&5
9783     ac_status=$?
9784     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785     (exit $ac_status); }; }; then
9786 pcg 1.1 rxvt_cv_int16_t=yes
9787     else
9788 pcg 1.11 echo "$as_me: failed program was:" >&5
9789     sed 's/^/| /' conftest.$ac_ext >&5
9790    
9791 root 1.50 if test "$ac_cv_sizeof_char" -ge 2; then
9792 pcg 1.1 rxvt_cv_int16_t=" char"
9793     else
9794 root 1.50 if test "$ac_cv_sizeof_short" -ge 2; then
9795 pcg 1.1 rxvt_cv_int16_t=" short"
9796     else
9797 root 1.50 if test "$ac_cv_sizeof_int" -ge 2; then
9798 pcg 1.1 rxvt_cv_int16_t=" int"
9799     else
9800 root 1.50 if test "$ac_cv_sizeof_long" -ge 2; then
9801 pcg 1.1 rxvt_cv_int16_t=" long"
9802     else
9803 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 2; then
9804 pcg 1.1 rxvt_cv_int16_t=" long long"
9805     else
9806     rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9807     fi
9808     fi
9809     fi
9810     fi
9811     fi
9812     fi
9813 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9814 pcg 1.1 fi
9815 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9816     echo "${ECHO_T}$rxvt_cv_int16_t" >&6
9817 pcg 1.1 if test x"$rxvt_cv_int16_t" != xyes; then
9818     rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9819     else
9820     if test x"" = x; then
9821     rxvt_int16_typedef="/* typedef short int16_t; */"
9822     else
9823     rxvt_int16_typedef="/* typedef short int16_t; */"
9824     fi
9825 pcg 1.11 fi
9826 pcg 1.1
9827 pcg 1.11 echo "$as_me:$LINENO: checking for uint16_t" >&5
9828     echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
9829     if test "${rxvt_cv_uint16_t+set}" = set; then
9830     echo $ECHO_N "(cached) $ECHO_C" >&6
9831     else
9832     cat >conftest.$ac_ext <<_ACEOF
9833     /* confdefs.h. */
9834     _ACEOF
9835     cat confdefs.h >>conftest.$ac_ext
9836     cat >>conftest.$ac_ext <<_ACEOF
9837     /* end confdefs.h. */
9838 pcg 1.1 #include <stdint.h>
9839 pcg 1.11 int
9840     main ()
9841     {
9842 pcg 1.1 uint16_t dummy;
9843 pcg 1.11 ;
9844     return 0;
9845     }
9846     _ACEOF
9847     rm -f conftest.$ac_objext
9848     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9849     (eval $ac_compile) 2>conftest.er1
9850     ac_status=$?
9851     grep -v '^ *+' conftest.er1 >conftest.err
9852     rm -f conftest.er1
9853     cat conftest.err >&5
9854     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855     (exit $ac_status); } &&
9856 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9857 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858     (eval $ac_try) 2>&5
9859     ac_status=$?
9860     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861     (exit $ac_status); }; } &&
9862     { ac_try='test -s conftest.$ac_objext'
9863     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864     (eval $ac_try) 2>&5
9865     ac_status=$?
9866     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867     (exit $ac_status); }; }; then
9868 pcg 1.1 rxvt_cv_uint16_t=yes
9869     else
9870 pcg 1.11 echo "$as_me: failed program was:" >&5
9871     sed 's/^/| /' conftest.$ac_ext >&5
9872    
9873 root 1.50 if test "$ac_cv_sizeof_char" -ge 2; then
9874 pcg 1.1 rxvt_cv_uint16_t="unsigned char"
9875     else
9876 root 1.50 if test "$ac_cv_sizeof_short" -ge 2; then
9877 pcg 1.1 rxvt_cv_uint16_t="unsigned short"
9878     else
9879 root 1.50 if test "$ac_cv_sizeof_int" -ge 2; then
9880 pcg 1.1 rxvt_cv_uint16_t="unsigned int"
9881     else
9882 root 1.50 if test "$ac_cv_sizeof_long" -ge 2; then
9883 pcg 1.1 rxvt_cv_uint16_t="unsigned long"
9884     else
9885 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 2; then
9886 pcg 1.1 rxvt_cv_uint16_t="unsigned long long"
9887     else
9888     rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9889     fi
9890     fi
9891     fi
9892     fi
9893     fi
9894     fi
9895 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9896 pcg 1.1 fi
9897 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9898     echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
9899 pcg 1.1 if test x"$rxvt_cv_uint16_t" != xyes; then
9900     rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9901     else
9902     if test x"unsigned" = x; then
9903     rxvt_uint16_typedef="/* typedef short uint16_t; */"
9904     else
9905     rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9906     fi
9907 pcg 1.11 fi
9908 pcg 1.1
9909 pcg 1.11 echo "$as_me:$LINENO: checking for int32_t" >&5
9910     echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
9911     if test "${rxvt_cv_int32_t+set}" = set; then
9912     echo $ECHO_N "(cached) $ECHO_C" >&6
9913     else
9914     cat >conftest.$ac_ext <<_ACEOF
9915     /* confdefs.h. */
9916     _ACEOF
9917     cat confdefs.h >>conftest.$ac_ext
9918     cat >>conftest.$ac_ext <<_ACEOF
9919     /* end confdefs.h. */
9920 pcg 1.1 #include <stdint.h>
9921 pcg 1.11 int
9922     main ()
9923     {
9924 pcg 1.1 int32_t dummy;
9925 pcg 1.11 ;
9926     return 0;
9927     }
9928     _ACEOF
9929     rm -f conftest.$ac_objext
9930     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9931     (eval $ac_compile) 2>conftest.er1
9932     ac_status=$?
9933     grep -v '^ *+' conftest.er1 >conftest.err
9934     rm -f conftest.er1
9935     cat conftest.err >&5
9936     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937     (exit $ac_status); } &&
9938 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9939 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940     (eval $ac_try) 2>&5
9941     ac_status=$?
9942     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943     (exit $ac_status); }; } &&
9944     { ac_try='test -s conftest.$ac_objext'
9945     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946     (eval $ac_try) 2>&5
9947     ac_status=$?
9948     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949     (exit $ac_status); }; }; then
9950 pcg 1.1 rxvt_cv_int32_t=yes
9951     else
9952 pcg 1.11 echo "$as_me: failed program was:" >&5
9953     sed 's/^/| /' conftest.$ac_ext >&5
9954    
9955 root 1.50 if test "$ac_cv_sizeof_char" -ge 4; then
9956 pcg 1.1 rxvt_cv_int32_t=" char"
9957     else
9958 root 1.50 if test "$ac_cv_sizeof_short" -ge 4; then
9959 pcg 1.1 rxvt_cv_int32_t=" short"
9960     else
9961 root 1.50 if test "$ac_cv_sizeof_int" -ge 4; then
9962 pcg 1.1 rxvt_cv_int32_t=" int"
9963     else
9964 root 1.50 if test "$ac_cv_sizeof_long" -ge 4; then
9965 pcg 1.1 rxvt_cv_int32_t=" long"
9966     else
9967 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 4; then
9968 pcg 1.1 rxvt_cv_int32_t=" long long"
9969     else
9970     rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9971     fi
9972     fi
9973     fi
9974     fi
9975     fi
9976     fi
9977 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9978 pcg 1.1 fi
9979 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9980     echo "${ECHO_T}$rxvt_cv_int32_t" >&6
9981 pcg 1.1 if test x"$rxvt_cv_int32_t" != xyes; then
9982     rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9983     else
9984     if test x"" = x; then
9985     rxvt_int32_typedef="/* typedef int int32_t; */"
9986     else
9987     rxvt_int32_typedef="/* typedef int int32_t; */"
9988     fi
9989 pcg 1.11 fi
9990 pcg 1.1
9991 pcg 1.11 echo "$as_me:$LINENO: checking for uint32_t" >&5
9992     echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
9993     if test "${rxvt_cv_uint32_t+set}" = set; then
9994     echo $ECHO_N "(cached) $ECHO_C" >&6
9995     else
9996     cat >conftest.$ac_ext <<_ACEOF
9997     /* confdefs.h. */
9998     _ACEOF
9999     cat confdefs.h >>conftest.$ac_ext
10000     cat >>conftest.$ac_ext <<_ACEOF
10001     /* end confdefs.h. */
10002 pcg 1.1 #include <stdint.h>
10003 pcg 1.11 int
10004     main ()
10005     {
10006 pcg 1.1 uint32_t dummy;
10007 pcg 1.11 ;
10008     return 0;
10009     }
10010     _ACEOF
10011     rm -f conftest.$ac_objext
10012     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10013     (eval $ac_compile) 2>conftest.er1
10014     ac_status=$?
10015     grep -v '^ *+' conftest.er1 >conftest.err
10016     rm -f conftest.er1
10017     cat conftest.err >&5
10018     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019     (exit $ac_status); } &&
10020 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10021 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022     (eval $ac_try) 2>&5
10023     ac_status=$?
10024     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025     (exit $ac_status); }; } &&
10026     { ac_try='test -s conftest.$ac_objext'
10027     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028     (eval $ac_try) 2>&5
10029     ac_status=$?
10030     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031     (exit $ac_status); }; }; then
10032 pcg 1.1 rxvt_cv_uint32_t=yes
10033     else
10034 pcg 1.11 echo "$as_me: failed program was:" >&5
10035     sed 's/^/| /' conftest.$ac_ext >&5
10036    
10037 root 1.50 if test "$ac_cv_sizeof_char" -ge 4; then
10038 pcg 1.1 rxvt_cv_uint32_t="unsigned char"
10039     else
10040 root 1.50 if test "$ac_cv_sizeof_short" -ge 4; then
10041 pcg 1.1 rxvt_cv_uint32_t="unsigned short"
10042     else
10043 root 1.50 if test "$ac_cv_sizeof_int" -ge 4; then
10044 pcg 1.1 rxvt_cv_uint32_t="unsigned int"
10045     else
10046 root 1.50 if test "$ac_cv_sizeof_long" -ge 4; then
10047 pcg 1.1 rxvt_cv_uint32_t="unsigned long"
10048     else
10049 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 4; then
10050 pcg 1.1 rxvt_cv_uint32_t="unsigned long long"
10051     else
10052     rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
10053     fi
10054     fi
10055     fi
10056     fi
10057     fi
10058     fi
10059 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10060 pcg 1.1 fi
10061 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
10062     echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
10063 pcg 1.1 if test x"$rxvt_cv_uint32_t" != xyes; then
10064     rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
10065     else
10066     if test x"unsigned" = x; then
10067     rxvt_uint32_typedef="/* typedef int uint32_t; */"
10068     else
10069     rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
10070     fi
10071 pcg 1.11 fi
10072 pcg 1.1
10073 root 1.50 if test "$ac_cv_sizeof_int_p" -eq 8; then
10074 pcg 1.1 rxvt_intp_define="#define intp_t int64_t"
10075     rxvt_u_intp_define="#define u_intp_t u_int64_t"
10076     else
10077 root 1.50 if test "$ac_cv_sizeof_int_p" -eq 4; then
10078 pcg 1.1 rxvt_intp_define="#define intp_t int32_t"
10079     rxvt_u_intp_define="#define u_intp_t u_int32_t"
10080     else
10081 root 1.50 if test "$ac_cv_sizeof_int_p" -eq 2; then
10082 pcg 1.1 rxvt_intp_define="#define intp_t int16_t"
10083     rxvt_u_intp_define="#define u_intp_t u_int16_t"
10084     else
10085     rxvt_intp_define="#error set intp_t"
10086     rxvt_u_intp_define="#error set u_intp_t"
10087     fi
10088     fi
10089     fi
10090    
10091    
10092    
10093 pcg 1.11 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10094     echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10095     if test "${ac_cv_type_signal+set}" = set; then
10096     echo $ECHO_N "(cached) $ECHO_C" >&6
10097     else
10098     cat >conftest.$ac_ext <<_ACEOF
10099     /* confdefs.h. */
10100     _ACEOF
10101     cat confdefs.h >>conftest.$ac_ext
10102     cat >>conftest.$ac_ext <<_ACEOF
10103     /* end confdefs.h. */
10104 pcg 1.1 #include <sys/types.h>
10105     #include <signal.h>
10106     #ifdef signal
10107 pcg 1.11 # undef signal
10108 pcg 1.1 #endif
10109     #ifdef __cplusplus
10110     extern "C" void (*signal (int, void (*)(int)))(int);
10111     #else
10112     void (*signal ()) ();
10113     #endif
10114    
10115 pcg 1.11 int
10116     main ()
10117     {
10118 pcg 1.1 int i;
10119 pcg 1.11 ;
10120     return 0;
10121     }
10122     _ACEOF
10123     rm -f conftest.$ac_objext
10124     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10125     (eval $ac_compile) 2>conftest.er1
10126     ac_status=$?
10127     grep -v '^ *+' conftest.er1 >conftest.err
10128     rm -f conftest.er1
10129     cat conftest.err >&5
10130     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131     (exit $ac_status); } &&
10132 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10133 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134     (eval $ac_try) 2>&5
10135     ac_status=$?
10136     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137     (exit $ac_status); }; } &&
10138     { ac_try='test -s conftest.$ac_objext'
10139     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140     (eval $ac_try) 2>&5
10141     ac_status=$?
10142     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143     (exit $ac_status); }; }; then
10144 pcg 1.1 ac_cv_type_signal=void
10145     else
10146 pcg 1.11 echo "$as_me: failed program was:" >&5
10147     sed 's/^/| /' conftest.$ac_ext >&5
10148    
10149     ac_cv_type_signal=int
10150 pcg 1.1 fi
10151 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10152 pcg 1.1 fi
10153 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10154     echo "${ECHO_T}$ac_cv_type_signal" >&6
10155 pcg 1.1
10156 pcg 1.11 cat >>confdefs.h <<_ACEOF
10157 pcg 1.1 #define RETSIGTYPE $ac_cv_type_signal
10158 pcg 1.11 _ACEOF
10159 pcg 1.1
10160    
10161    
10162     case "$host_alias" in
10163     *ultrix) ac_cv_func_setsid='no' ;;
10164     *) break;;
10165     esac
10166    
10167 pcg 1.11
10168    
10169    
10170    
10171    
10172    
10173    
10174    
10175    
10176    
10177    
10178    
10179    
10180    
10181    
10182    
10183    
10184    
10185 root 1.52
10186 pcg 1.1 for ac_func in \
10187     atexit \
10188     revoke \
10189     unsetenv \
10190     setutent \
10191     seteuid \
10192     setreuid \
10193     setsid \
10194     setpgrp \
10195     setpgid \
10196     openpty \
10197     _getpty \
10198     grantpt \
10199     unlockpt \
10200     isastream \
10201     on_exit \
10202     nanosleep \
10203     updwtmp \
10204 root 1.52 updwtmpx \
10205 pcg 1.1 ttyslot \
10206    
10207     do
10208 pcg 1.11 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10209     echo "$as_me:$LINENO: checking for $ac_func" >&5
10210     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10211     if eval "test \"\${$as_ac_var+set}\" = set"; then
10212     echo $ECHO_N "(cached) $ECHO_C" >&6
10213     else
10214     cat >conftest.$ac_ext <<_ACEOF
10215     /* confdefs.h. */
10216     _ACEOF
10217     cat confdefs.h >>conftest.$ac_ext
10218     cat >>conftest.$ac_ext <<_ACEOF
10219     /* end confdefs.h. */
10220     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10221     For example, HP-UX 11i <limits.h> declares gettimeofday. */
10222     #define $ac_func innocuous_$ac_func
10223    
10224 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
10225 pcg 1.11 which can conflict with char $ac_func (); below.
10226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10227     <limits.h> exists even on freestanding compilers. */
10228    
10229     #ifdef __STDC__
10230     # include <limits.h>
10231     #else
10232     # include <assert.h>
10233     #endif
10234    
10235     #undef $ac_func
10236    
10237 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
10238 pcg 1.11 #ifdef __cplusplus
10239     extern "C"
10240     {
10241     #endif
10242 pcg 1.1 /* We use char because int might match the return type of a gcc2
10243 pcg 1.11 builtin and then its argument prototype would still apply. */
10244     char $ac_func ();
10245 pcg 1.1 /* The GNU C library defines this for functions which it implements
10246     to always fail with ENOSYS. Some functions are actually named
10247     something starting with __ and the normal name is an alias. */
10248     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10249     choke me
10250     #else
10251 pcg 1.11 char (*f) () = $ac_func;
10252     #endif
10253     #ifdef __cplusplus
10254     }
10255 pcg 1.1 #endif
10256    
10257 pcg 1.11 int
10258     main ()
10259     {
10260     return f != $ac_func;
10261     ;
10262     return 0;
10263     }
10264     _ACEOF
10265     rm -f conftest.$ac_objext conftest$ac_exeext
10266     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10267     (eval $ac_link) 2>conftest.er1
10268     ac_status=$?
10269     grep -v '^ *+' conftest.er1 >conftest.err
10270     rm -f conftest.er1
10271     cat conftest.err >&5
10272     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273     (exit $ac_status); } &&
10274 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10275 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10276     (eval $ac_try) 2>&5
10277     ac_status=$?
10278     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279     (exit $ac_status); }; } &&
10280     { ac_try='test -s conftest$ac_exeext'
10281     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282     (eval $ac_try) 2>&5
10283     ac_status=$?
10284     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285     (exit $ac_status); }; }; then
10286     eval "$as_ac_var=yes"
10287     else
10288     echo "$as_me: failed program was:" >&5
10289     sed 's/^/| /' conftest.$ac_ext >&5
10290    
10291     eval "$as_ac_var=no"
10292     fi
10293     rm -f conftest.err conftest.$ac_objext \
10294     conftest$ac_exeext conftest.$ac_ext
10295     fi
10296     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10297     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10298     if test `eval echo '${'$as_ac_var'}'` = yes; then
10299     cat >>confdefs.h <<_ACEOF
10300     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10301     _ACEOF
10302 pcg 1.1
10303     fi
10304     done
10305    
10306    
10307    
10308 pcg 1.11 if test "${ac_cv_header_utmp_h+set}" = set; then
10309     echo "$as_me:$LINENO: checking for utmp.h" >&5
10310     echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10311     if test "${ac_cv_header_utmp_h+set}" = set; then
10312     echo $ECHO_N "(cached) $ECHO_C" >&6
10313     fi
10314     echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10315     echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10316     else
10317     # Is the header compilable?
10318     echo "$as_me:$LINENO: checking utmp.h usability" >&5
10319     echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
10320     cat >conftest.$ac_ext <<_ACEOF
10321     /* confdefs.h. */
10322     _ACEOF
10323     cat confdefs.h >>conftest.$ac_ext
10324     cat >>conftest.$ac_ext <<_ACEOF
10325     /* end confdefs.h. */
10326     $ac_includes_default
10327     #include <utmp.h>
10328     _ACEOF
10329     rm -f conftest.$ac_objext
10330     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10331     (eval $ac_compile) 2>conftest.er1
10332     ac_status=$?
10333     grep -v '^ *+' conftest.er1 >conftest.err
10334     rm -f conftest.er1
10335     cat conftest.err >&5
10336     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337     (exit $ac_status); } &&
10338 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10339 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340     (eval $ac_try) 2>&5
10341     ac_status=$?
10342     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343     (exit $ac_status); }; } &&
10344     { ac_try='test -s conftest.$ac_objext'
10345     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10346     (eval $ac_try) 2>&5
10347     ac_status=$?
10348     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349     (exit $ac_status); }; }; then
10350     ac_header_compiler=yes
10351     else
10352     echo "$as_me: failed program was:" >&5
10353     sed 's/^/| /' conftest.$ac_ext >&5
10354    
10355     ac_header_compiler=no
10356     fi
10357     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10358     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10359     echo "${ECHO_T}$ac_header_compiler" >&6
10360    
10361     # Is the header present?
10362     echo "$as_me:$LINENO: checking utmp.h presence" >&5
10363     echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
10364     cat >conftest.$ac_ext <<_ACEOF
10365     /* confdefs.h. */
10366     _ACEOF
10367     cat confdefs.h >>conftest.$ac_ext
10368     cat >>conftest.$ac_ext <<_ACEOF
10369     /* end confdefs.h. */
10370 pcg 1.1 #include <utmp.h>
10371 pcg 1.11 _ACEOF
10372     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10373     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10374     ac_status=$?
10375     grep -v '^ *+' conftest.er1 >conftest.err
10376     rm -f conftest.er1
10377     cat conftest.err >&5
10378     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379     (exit $ac_status); } >/dev/null; then
10380     if test -s conftest.err; then
10381 pcg 1.13 ac_cpp_err=$ac_cxx_preproc_warn_flag
10382     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10383 pcg 1.11 else
10384     ac_cpp_err=
10385     fi
10386 pcg 1.1 else
10387 pcg 1.11 ac_cpp_err=yes
10388 pcg 1.1 fi
10389 pcg 1.11 if test -z "$ac_cpp_err"; then
10390     ac_header_preproc=yes
10391     else
10392     echo "$as_me: failed program was:" >&5
10393     sed 's/^/| /' conftest.$ac_ext >&5
10394    
10395     ac_header_preproc=no
10396 pcg 1.1 fi
10397 pcg 1.11 rm -f conftest.err conftest.$ac_ext
10398     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10399     echo "${ECHO_T}$ac_header_preproc" >&6
10400    
10401     # So? What about this header?
10402 pcg 1.13 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10403 pcg 1.11 yes:no: )
10404     { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
10405     echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10406     { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
10407     echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
10408     ac_header_preproc=yes
10409     ;;
10410     no:yes:* )
10411     { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
10412     echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
10413     { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
10414     echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
10415     { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
10416     echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
10417     { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
10418     echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
10419     { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
10420     echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
10421     { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
10422     echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
10423     (
10424     cat <<\_ASBOX
10425     ## ------------------------------------------ ##
10426     ## Report this to the AC_PACKAGE_NAME lists. ##
10427     ## ------------------------------------------ ##
10428     _ASBOX
10429     ) |
10430     sed "s/^/$as_me: WARNING: /" >&2
10431     ;;
10432     esac
10433     echo "$as_me:$LINENO: checking for utmp.h" >&5
10434     echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10435     if test "${ac_cv_header_utmp_h+set}" = set; then
10436     echo $ECHO_N "(cached) $ECHO_C" >&6
10437     else
10438     ac_cv_header_utmp_h=$ac_header_preproc
10439     fi
10440     echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10441     echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10442    
10443     fi
10444     if test $ac_cv_header_utmp_h = yes; then
10445     echo "$as_me:$LINENO: checking for struct utmp" >&5
10446     echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
10447     if test "${rxvt_cv_struct_utmp+set}" = set; then
10448     echo $ECHO_N "(cached) $ECHO_C" >&6
10449     else
10450     cat >conftest.$ac_ext <<_ACEOF
10451     /* confdefs.h. */
10452     _ACEOF
10453     cat confdefs.h >>conftest.$ac_ext
10454     cat >>conftest.$ac_ext <<_ACEOF
10455     /* end confdefs.h. */
10456 pcg 1.1 #include <sys/types.h>
10457     #include <stdint.h>
10458     #include <utmp.h>
10459 pcg 1.11 int
10460     main ()
10461     {
10462 pcg 1.1 struct utmp ut;
10463 pcg 1.11 ;
10464     return 0;
10465     }
10466     _ACEOF
10467     rm -f conftest.$ac_objext
10468     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10469     (eval $ac_compile) 2>conftest.er1
10470     ac_status=$?
10471     grep -v '^ *+' conftest.er1 >conftest.err
10472     rm -f conftest.er1
10473     cat conftest.err >&5
10474     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475     (exit $ac_status); } &&
10476 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10477 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478     (eval $ac_try) 2>&5
10479     ac_status=$?
10480     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481     (exit $ac_status); }; } &&
10482     { ac_try='test -s conftest.$ac_objext'
10483     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484     (eval $ac_try) 2>&5
10485     ac_status=$?
10486     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487     (exit $ac_status); }; }; then
10488 pcg 1.1 rxvt_cv_struct_utmp=yes
10489     else
10490 pcg 1.11 echo "$as_me: failed program was:" >&5
10491     sed 's/^/| /' conftest.$ac_ext >&5
10492    
10493     rxvt_cv_struct_utmp=no
10494 pcg 1.1 fi
10495 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10496 pcg 1.1 fi
10497 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
10498     echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
10499     if test x$rxvt_cv_struct_utmp = xyes; then
10500 pcg 1.1
10501 pcg 1.11 cat >>confdefs.h <<\_ACEOF
10502 pcg 1.1 #define HAVE_STRUCT_UTMP 1
10503 pcg 1.11 _ACEOF
10504 pcg 1.1
10505     fi
10506    
10507    
10508 pcg 1.11 echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
10509     echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
10510     if test "${rxvt_cv_struct_utmp_host+set}" = set; then
10511     echo $ECHO_N "(cached) $ECHO_C" >&6
10512 pcg 1.1 else
10513 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
10514     /* confdefs.h. */
10515     _ACEOF
10516     cat confdefs.h >>conftest.$ac_ext
10517     cat >>conftest.$ac_ext <<_ACEOF
10518     /* end confdefs.h. */
10519 pcg 1.1 #include <sys/types.h>
10520     #include <utmp.h>
10521 pcg 1.11 int
10522     main ()
10523     {
10524 pcg 1.1 struct utmp ut; ut.ut_host;
10525 pcg 1.11 ;
10526     return 0;
10527     }
10528     _ACEOF
10529     rm -f conftest.$ac_objext
10530     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10531     (eval $ac_compile) 2>conftest.er1
10532     ac_status=$?
10533     grep -v '^ *+' conftest.er1 >conftest.err
10534     rm -f conftest.er1
10535     cat conftest.err >&5
10536     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537     (exit $ac_status); } &&
10538 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10539 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10540     (eval $ac_try) 2>&5
10541     ac_status=$?
10542     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543     (exit $ac_status); }; } &&
10544     { ac_try='test -s conftest.$ac_objext'
10545     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546     (eval $ac_try) 2>&5
10547     ac_status=$?
10548     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549     (exit $ac_status); }; }; then
10550 pcg 1.1 rxvt_cv_struct_utmp_host=yes
10551     else
10552 pcg 1.11 echo "$as_me: failed program was:" >&5
10553     sed 's/^/| /' conftest.$ac_ext >&5
10554    
10555     rxvt_cv_struct_utmp_host=no
10556 pcg 1.1 fi
10557 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10558 pcg 1.1 fi
10559 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
10560     echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
10561     if test x$rxvt_cv_struct_utmp_host = xyes; then
10562 pcg 1.1
10563 pcg 1.11 cat >>confdefs.h <<\_ACEOF
10564 pcg 1.1 #define HAVE_UTMP_HOST 1
10565 pcg 1.11 _ACEOF
10566 pcg 1.1
10567     fi
10568    
10569 pcg 1.11 echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
10570     echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
10571     if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
10572     echo $ECHO_N "(cached) $ECHO_C" >&6
10573 pcg 1.1 else
10574 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
10575     /* confdefs.h. */
10576     _ACEOF
10577     cat confdefs.h >>conftest.$ac_ext
10578     cat >>conftest.$ac_ext <<_ACEOF
10579     /* end confdefs.h. */
10580 pcg 1.1 #include <sys/types.h>
10581     #include <utmp.h>
10582 pcg 1.11 int
10583     main ()
10584     {
10585 pcg 1.1 struct utmp ut; ut.ut_pid;
10586 pcg 1.11 ;
10587     return 0;
10588     }
10589     _ACEOF
10590     rm -f conftest.$ac_objext
10591     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10592     (eval $ac_compile) 2>conftest.er1
10593     ac_status=$?
10594     grep -v '^ *+' conftest.er1 >conftest.err
10595     rm -f conftest.er1
10596     cat conftest.err >&5
10597     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598     (exit $ac_status); } &&
10599 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10600 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601     (eval $ac_try) 2>&5
10602     ac_status=$?
10603     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604     (exit $ac_status); }; } &&
10605     { ac_try='test -s conftest.$ac_objext'
10606     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607     (eval $ac_try) 2>&5
10608     ac_status=$?
10609     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610     (exit $ac_status); }; }; then
10611 pcg 1.1 rxvt_cv_struct_utmp_pid=yes
10612     else
10613 pcg 1.11 echo "$as_me: failed program was:" >&5
10614     sed 's/^/| /' conftest.$ac_ext >&5
10615    
10616     rxvt_cv_struct_utmp_pid=no
10617 pcg 1.1 fi
10618 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10619 pcg 1.1 fi
10620 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
10621     echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
10622     if test x$rxvt_cv_struct_utmp_pid = xyes; then
10623 pcg 1.1
10624 pcg 1.11 cat >>confdefs.h <<\_ACEOF
10625 pcg 1.1 #define HAVE_UTMP_PID 1
10626 pcg 1.11 _ACEOF
10627 pcg 1.1
10628     fi
10629    
10630     fi
10631    
10632 pcg 1.11
10633    
10634     if test "${ac_cv_header_utmpx_h+set}" = set; then
10635     echo "$as_me:$LINENO: checking for utmpx.h" >&5
10636     echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10637     if test "${ac_cv_header_utmpx_h+set}" = set; then
10638     echo $ECHO_N "(cached) $ECHO_C" >&6
10639     fi
10640     echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10641     echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10642 pcg 1.1 else
10643 pcg 1.11 # Is the header compilable?
10644     echo "$as_me:$LINENO: checking utmpx.h usability" >&5
10645     echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
10646     cat >conftest.$ac_ext <<_ACEOF
10647     /* confdefs.h. */
10648     _ACEOF
10649     cat confdefs.h >>conftest.$ac_ext
10650     cat >>conftest.$ac_ext <<_ACEOF
10651     /* end confdefs.h. */
10652     $ac_includes_default
10653     #include <utmpx.h>
10654     _ACEOF
10655     rm -f conftest.$ac_objext
10656     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10657     (eval $ac_compile) 2>conftest.er1
10658     ac_status=$?
10659     grep -v '^ *+' conftest.er1 >conftest.err
10660     rm -f conftest.er1
10661     cat conftest.err >&5
10662     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663     (exit $ac_status); } &&
10664 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10665 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666     (eval $ac_try) 2>&5
10667     ac_status=$?
10668     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669     (exit $ac_status); }; } &&
10670     { ac_try='test -s conftest.$ac_objext'
10671     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672     (eval $ac_try) 2>&5
10673     ac_status=$?
10674     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675     (exit $ac_status); }; }; then
10676     ac_header_compiler=yes
10677     else
10678     echo "$as_me: failed program was:" >&5
10679     sed 's/^/| /' conftest.$ac_ext >&5
10680    
10681     ac_header_compiler=no
10682     fi
10683     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10684     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10685     echo "${ECHO_T}$ac_header_compiler" >&6
10686    
10687     # Is the header present?
10688     echo "$as_me:$LINENO: checking utmpx.h presence" >&5
10689     echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
10690     cat >conftest.$ac_ext <<_ACEOF
10691     /* confdefs.h. */
10692     _ACEOF
10693     cat confdefs.h >>conftest.$ac_ext
10694     cat >>conftest.$ac_ext <<_ACEOF
10695     /* end confdefs.h. */
10696 pcg 1.1 #include <utmpx.h>
10697 pcg 1.11 _ACEOF
10698     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10699     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10700     ac_status=$?
10701     grep -v '^ *+' conftest.er1 >conftest.err
10702     rm -f conftest.er1
10703     cat conftest.err >&5
10704     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705     (exit $ac_status); } >/dev/null; then
10706     if test -s conftest.err; then
10707 pcg 1.13 ac_cpp_err=$ac_cxx_preproc_warn_flag
10708     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10709 pcg 1.11 else
10710     ac_cpp_err=
10711     fi
10712 pcg 1.1 else
10713 pcg 1.11 ac_cpp_err=yes
10714 pcg 1.1 fi
10715 pcg 1.11 if test -z "$ac_cpp_err"; then
10716     ac_header_preproc=yes
10717     else
10718     echo "$as_me: failed program was:" >&5
10719     sed 's/^/| /' conftest.$ac_ext >&5
10720    
10721     ac_header_preproc=no
10722 pcg 1.1 fi
10723 pcg 1.11 rm -f conftest.err conftest.$ac_ext
10724     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10725     echo "${ECHO_T}$ac_header_preproc" >&6
10726    
10727     # So? What about this header?
10728 pcg 1.13 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10729 pcg 1.11 yes:no: )
10730     { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
10731     echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10732     { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
10733     echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
10734     ac_header_preproc=yes
10735     ;;
10736     no:yes:* )
10737     { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
10738     echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
10739     { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
10740     echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
10741     { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
10742     echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
10743     { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
10744     echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
10745     { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
10746     echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
10747     { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
10748     echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
10749     (
10750     cat <<\_ASBOX
10751     ## ------------------------------------------ ##
10752     ## Report this to the AC_PACKAGE_NAME lists. ##
10753     ## ------------------------------------------ ##
10754     _ASBOX
10755     ) |
10756     sed "s/^/$as_me: WARNING: /" >&2
10757     ;;
10758     esac
10759     echo "$as_me:$LINENO: checking for utmpx.h" >&5
10760     echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10761     if test "${ac_cv_header_utmpx_h+set}" = set; then
10762     echo $ECHO_N "(cached) $ECHO_C" >&6
10763     else
10764     ac_cv_header_utmpx_h=$ac_header_preproc
10765     fi
10766     echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10767     echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10768    
10769     fi
10770     if test $ac_cv_header_utmpx_h = yes; then
10771     echo "$as_me:$LINENO: checking for struct utmpx" >&5
10772     echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
10773     if test "${rxvt_cv_struct_utmpx+set}" = set; then
10774     echo $ECHO_N "(cached) $ECHO_C" >&6
10775     else
10776     cat >conftest.$ac_ext <<_ACEOF
10777     /* confdefs.h. */
10778     _ACEOF
10779     cat confdefs.h >>conftest.$ac_ext
10780     cat >>conftest.$ac_ext <<_ACEOF
10781     /* end confdefs.h. */
10782 pcg 1.1 #include <sys/types.h>
10783     #include <utmpx.h>
10784 pcg 1.11 int
10785     main ()
10786     {
10787 pcg 1.1 struct utmpx ut;
10788 pcg 1.11 ;
10789     return 0;
10790     }
10791     _ACEOF
10792     rm -f conftest.$ac_objext
10793     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10794     (eval $ac_compile) 2>conftest.er1
10795     ac_status=$?
10796     grep -v '^ *+' conftest.er1 >conftest.err
10797     rm -f conftest.er1
10798     cat conftest.err >&5
10799     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800     (exit $ac_status); } &&
10801 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10802 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10803     (eval $ac_try) 2>&5
10804     ac_status=$?
10805     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806     (exit $ac_status); }; } &&
10807     { ac_try='test -s conftest.$ac_objext'
10808     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10809     (eval $ac_try) 2>&5
10810     ac_status=$?
10811     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812     (exit $ac_status); }; }; then
10813 pcg 1.1 rxvt_cv_struct_utmpx=yes
10814     else
10815 pcg 1.11 echo "$as_me: failed program was:" >&5
10816     sed 's/^/| /' conftest.$ac_ext >&5
10817    
10818     rxvt_cv_struct_utmpx=no
10819 pcg 1.1 fi
10820 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10821 pcg 1.1 fi
10822 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
10823     echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
10824     if test x$rxvt_cv_struct_utmpx = xyes; then
10825 pcg 1.1
10826 pcg 1.11 cat >>confdefs.h <<\_ACEOF
10827 pcg 1.1 #define HAVE_STRUCT_UTMPX 1
10828 pcg 1.11 _ACEOF
10829 pcg 1.1
10830     fi
10831    
10832    
10833 pcg 1.11 echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
10834     echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
10835     if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
10836     echo $ECHO_N "(cached) $ECHO_C" >&6
10837 pcg 1.1 else
10838 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
10839     /* confdefs.h. */
10840     _ACEOF
10841     cat confdefs.h >>conftest.$ac_ext
10842     cat >>conftest.$ac_ext <<_ACEOF
10843     /* end confdefs.h. */
10844 pcg 1.1 #include <sys/types.h>
10845     #include <utmpx.h>
10846 pcg 1.11 int
10847     main ()
10848     {
10849 pcg 1.1 struct utmpx utx; utx.ut_host;
10850 pcg 1.11 ;
10851     return 0;
10852     }
10853     _ACEOF
10854     rm -f conftest.$ac_objext
10855     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10856     (eval $ac_compile) 2>conftest.er1
10857     ac_status=$?
10858     grep -v '^ *+' conftest.er1 >conftest.err
10859     rm -f conftest.er1
10860     cat conftest.err >&5
10861     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862     (exit $ac_status); } &&
10863 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10864 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865     (eval $ac_try) 2>&5
10866     ac_status=$?
10867     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868     (exit $ac_status); }; } &&
10869     { ac_try='test -s conftest.$ac_objext'
10870     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10871     (eval $ac_try) 2>&5
10872     ac_status=$?
10873     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874     (exit $ac_status); }; }; then
10875 pcg 1.1 rxvt_cv_struct_utmpx_host=yes
10876     else
10877 pcg 1.11 echo "$as_me: failed program was:" >&5
10878     sed 's/^/| /' conftest.$ac_ext >&5
10879    
10880     rxvt_cv_struct_utmpx_host=no
10881 pcg 1.1 fi
10882 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10883 pcg 1.1 fi
10884 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
10885     echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
10886     if test x$rxvt_cv_struct_utmpx_host = xyes; then
10887 pcg 1.1
10888 pcg 1.11 cat >>confdefs.h <<\_ACEOF
10889 pcg 1.1 #define HAVE_UTMPX_HOST 1
10890 pcg 1.11 _ACEOF
10891 pcg 1.1
10892     fi
10893    
10894 root 1.52 echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10895     echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10896     if test "${rxvt_cv_struct_utmpx_session+set}" = set; then
10897     echo $ECHO_N "(cached) $ECHO_C" >&6
10898     else
10899     cat >conftest.$ac_ext <<_ACEOF
10900     /* confdefs.h. */
10901     _ACEOF
10902     cat confdefs.h >>conftest.$ac_ext
10903     cat >>conftest.$ac_ext <<_ACEOF
10904     /* end confdefs.h. */
10905     #include <sys/types.h>
10906     #include <utmpx.h>
10907     int
10908     main ()
10909     {
10910     struct utmpx utx; utx.ut_session;
10911     ;
10912     return 0;
10913     }
10914     _ACEOF
10915     rm -f conftest.$ac_objext
10916     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10917     (eval $ac_compile) 2>conftest.er1
10918     ac_status=$?
10919     grep -v '^ *+' conftest.er1 >conftest.err
10920     rm -f conftest.er1
10921     cat conftest.err >&5
10922     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923     (exit $ac_status); } &&
10924     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10925     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10926     (eval $ac_try) 2>&5
10927     ac_status=$?
10928     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929     (exit $ac_status); }; } &&
10930     { ac_try='test -s conftest.$ac_objext'
10931     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932     (eval $ac_try) 2>&5
10933     ac_status=$?
10934     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935     (exit $ac_status); }; }; then
10936     rxvt_cv_struct_utmpx_session=yes
10937     else
10938     echo "$as_me: failed program was:" >&5
10939     sed 's/^/| /' conftest.$ac_ext >&5
10940    
10941     rxvt_cv_struct_utmpx_session=no
10942     fi
10943     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10944 pcg 1.1 fi
10945 root 1.52 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5
10946     echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6
10947     if test x$rxvt_cv_struct_utmpx_session = xyes; then
10948 pcg 1.1
10949 root 1.52 cat >>confdefs.h <<\_ACEOF
10950     #define HAVE_UTMPX_SESSION 1
10951     _ACEOF
10952    
10953     fi
10954    
10955     fi
10956 pcg 1.11
10957    
10958     echo "$as_me:$LINENO: checking for struct lastlog" >&5
10959     echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
10960     if test "${rxvt_cv_struct_lastlog+set}" = set; then
10961     echo $ECHO_N "(cached) $ECHO_C" >&6
10962 pcg 1.1 else
10963 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
10964     /* confdefs.h. */
10965     _ACEOF
10966     cat confdefs.h >>conftest.$ac_ext
10967     cat >>conftest.$ac_ext <<_ACEOF
10968     /* end confdefs.h. */
10969 pcg 1.1 #include <sys/types.h>
10970     #include <utmp.h>
10971     #ifdef HAVE_LASTLOG_H
10972     #include <lastlog.h>
10973     #endif
10974    
10975 pcg 1.11 int
10976     main ()
10977     {
10978 pcg 1.1 struct lastlog ll;
10979 pcg 1.11 ;
10980     return 0;
10981     }
10982     _ACEOF
10983     rm -f conftest.$ac_objext
10984     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10985     (eval $ac_compile) 2>conftest.er1
10986     ac_status=$?
10987     grep -v '^ *+' conftest.er1 >conftest.err
10988     rm -f conftest.er1
10989     cat conftest.err >&5
10990     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991     (exit $ac_status); } &&
10992 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10993 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994     (eval $ac_try) 2>&5
10995     ac_status=$?
10996     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997     (exit $ac_status); }; } &&
10998     { ac_try='test -s conftest.$ac_objext'
10999     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000     (eval $ac_try) 2>&5
11001     ac_status=$?
11002     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003     (exit $ac_status); }; }; then
11004 pcg 1.1 rxvt_cv_struct_lastlog=yes
11005     else
11006 pcg 1.11 echo "$as_me: failed program was:" >&5
11007     sed 's/^/| /' conftest.$ac_ext >&5
11008    
11009     rxvt_cv_struct_lastlog=no
11010 pcg 1.1 fi
11011 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11012 pcg 1.1 fi
11013 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
11014     echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
11015     if test x$rxvt_cv_struct_lastlog = xyes; then
11016 pcg 1.1
11017 pcg 1.11 cat >>confdefs.h <<\_ACEOF
11018 pcg 1.1 #define HAVE_STRUCT_LASTLOG 1
11019 pcg 1.11 _ACEOF
11020 pcg 1.1
11021     fi
11022    
11023 pcg 1.11 echo "$as_me:$LINENO: checking for struct lastlogx" >&5
11024     echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
11025     if test "${rxvt_cv_struct_lastlogx+set}" = set; then
11026     echo $ECHO_N "(cached) $ECHO_C" >&6
11027 pcg 1.1 else
11028 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11029     /* confdefs.h. */
11030     _ACEOF
11031     cat confdefs.h >>conftest.$ac_ext
11032     cat >>conftest.$ac_ext <<_ACEOF
11033     /* end confdefs.h. */
11034 pcg 1.1 #include <sys/types.h>
11035     #include <utmpx.h>
11036     #ifdef HAVE_LASTLOG_H
11037     #include <lastlog.h>
11038     #endif
11039    
11040 pcg 1.11 int
11041     main ()
11042     {
11043 pcg 1.1 struct lastlogx ll;
11044 pcg 1.11 ;
11045     return 0;
11046     }
11047     _ACEOF
11048     rm -f conftest.$ac_objext
11049     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11050     (eval $ac_compile) 2>conftest.er1
11051     ac_status=$?
11052     grep -v '^ *+' conftest.er1 >conftest.err
11053     rm -f conftest.er1
11054     cat conftest.err >&5
11055     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056     (exit $ac_status); } &&
11057 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11058 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059     (eval $ac_try) 2>&5
11060     ac_status=$?
11061     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062     (exit $ac_status); }; } &&
11063     { ac_try='test -s conftest.$ac_objext'
11064     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065     (eval $ac_try) 2>&5
11066     ac_status=$?
11067     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068     (exit $ac_status); }; }; then
11069 pcg 1.1 rxvt_cv_struct_lastlogx=yes
11070     else
11071 pcg 1.11 echo "$as_me: failed program was:" >&5
11072     sed 's/^/| /' conftest.$ac_ext >&5
11073    
11074     rxvt_cv_struct_lastlogx=no
11075 pcg 1.1 fi
11076 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11077 pcg 1.1 fi
11078 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
11079     echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
11080     if test x$rxvt_cv_struct_lastlogx = xyes; then
11081 pcg 1.1
11082 pcg 1.11 cat >>confdefs.h <<\_ACEOF
11083 pcg 1.1 #define HAVE_STRUCT_LASTLOGX 1
11084 pcg 1.11 _ACEOF
11085 pcg 1.1
11086     fi
11087    
11088    
11089 pcg 1.11 echo "$as_me:$LINENO: checking where utmp is located" >&5
11090     echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
11091     if test "${rxvt_cv_path_utmp+set}" = set; then
11092     echo $ECHO_N "(cached) $ECHO_C" >&6
11093 pcg 1.1 else
11094     if test "$cross_compiling" = yes; then
11095 pcg 1.11 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5
11096     echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
11097 pcg 1.1 else
11098 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11099     /* confdefs.h. */
11100     _ACEOF
11101     cat confdefs.h >>conftest.$ac_ext
11102     cat >>conftest.$ac_ext <<_ACEOF
11103     /* end confdefs.h. */
11104 pcg 1.1 #include <stdio.h>
11105     #include <sys/types.h>
11106     #include <utmp.h>
11107     #include <errno.h>
11108     main()
11109     {
11110     char **u, *utmplist[] = {
11111     "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
11112     FILE *a, *f=fopen("conftestval", "w");
11113     if (!f) exit(1);
11114     #ifdef UTMP_FILE
11115     fprintf(f, "%s\n", UTMP_FILE);
11116     exit(0);
11117     #endif
11118     #ifdef _PATH_UTMP
11119     fprintf(f, "%s\n", _PATH_UTMP);
11120     exit(0);
11121     #endif
11122     for (u = utmplist; *u; u++) {
11123     if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11124     fprintf(f, "%s\n", *u);
11125     exit(0);
11126     }
11127     }
11128     exit(0);
11129     }
11130 pcg 1.11 _ACEOF
11131     rm -f conftest$ac_exeext
11132     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11133     (eval $ac_link) 2>&5
11134     ac_status=$?
11135     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11137     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138     (eval $ac_try) 2>&5
11139     ac_status=$?
11140     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141     (exit $ac_status); }; }; then
11142 pcg 1.1 rxvt_cv_path_utmp=`cat conftestval`
11143     else
11144 pcg 1.11 echo "$as_me: program exited with status $ac_status" >&5
11145     echo "$as_me: failed program was:" >&5
11146     sed 's/^/| /' conftest.$ac_ext >&5
11147    
11148     ( exit $ac_status )
11149     rxvt_cv_path_utmp=
11150 pcg 1.1 fi
11151 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11152 pcg 1.1 fi
11153     fi
11154 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
11155     echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
11156     if test x$rxvt_cv_path_utmp != x; then
11157 pcg 1.1
11158 pcg 1.11 cat >>confdefs.h <<_ACEOF
11159 pcg 1.1 #define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
11160 pcg 1.11 _ACEOF
11161 pcg 1.1
11162     fi
11163    
11164    
11165 pcg 1.11 echo "$as_me:$LINENO: checking where utmpx is located" >&5
11166     echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
11167     if test "${rxvt_cv_path_utmpx+set}" = set; then
11168     echo $ECHO_N "(cached) $ECHO_C" >&6
11169 pcg 1.1 else
11170     if test "$cross_compiling" = yes; then
11171 pcg 1.11 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5
11172     echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;}
11173 pcg 1.1 else
11174 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11175     /* confdefs.h. */
11176     _ACEOF
11177     cat confdefs.h >>conftest.$ac_ext
11178     cat >>conftest.$ac_ext <<_ACEOF
11179     /* end confdefs.h. */
11180 pcg 1.1 #include <stdio.h>
11181     #include <sys/types.h>
11182     #include <utmpx.h>
11183     #include <errno.h>
11184     #include <sys/stat.h>
11185     #ifdef HAVE_STRING_H
11186     #include <string.h>
11187     #endif
11188     main()
11189     {
11190     char **u, *p, *utmplist[] = {
11191     #ifdef UTMPX_FILE
11192     UTMPX_FILE,
11193     #endif
11194     #ifdef _PATH_UTMPX
11195     _PATH_UTMPX,
11196     #endif
11197     "/var/adm/utmpx", "/etc/utmpx", NULL };
11198     FILE *a, *f=fopen("conftestval", "w");
11199     struct stat statu, statux;
11200     if (!f) exit(1);
11201     for (u = utmplist; *u; u++) {
11202     if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11203     if (stat(*u, &statux) < 0)
11204     continue;
11205     p = strdup(*u);
11206     p[strlen(p) - 1] = '\0';
11207     if (stat(p, &statu) >= 0
11208     && (statu.st_mtime - statux.st_mtime > 86400))
11209     continue;
11210     fprintf(f, "%s\n", *u);
11211     exit(0);
11212     }
11213     }
11214     exit(0);
11215     }
11216 pcg 1.11 _ACEOF
11217     rm -f conftest$ac_exeext
11218     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11219     (eval $ac_link) 2>&5
11220     ac_status=$?
11221     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11223     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11224     (eval $ac_try) 2>&5
11225     ac_status=$?
11226     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227     (exit $ac_status); }; }; then
11228 pcg 1.1 rxvt_cv_path_utmpx=`cat conftestval`
11229     else
11230 pcg 1.11 echo "$as_me: program exited with status $ac_status" >&5
11231     echo "$as_me: failed program was:" >&5
11232     sed 's/^/| /' conftest.$ac_ext >&5
11233    
11234     ( exit $ac_status )
11235     rxvt_cv_path_utmpx=
11236 pcg 1.1 fi
11237 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11238 pcg 1.1 fi
11239     fi
11240 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
11241     echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
11242     if test x$rxvt_cv_path_utmpx != x; then
11243 pcg 1.1
11244 pcg 1.11 cat >>confdefs.h <<_ACEOF
11245 pcg 1.1 #define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
11246 pcg 1.11 _ACEOF
11247 pcg 1.1
11248     fi
11249    
11250    
11251 pcg 1.11 echo "$as_me:$LINENO: checking where wtmp is located" >&5
11252     echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
11253     if test "${rxvt_cv_path_wtmp+set}" = set; then
11254     echo $ECHO_N "(cached) $ECHO_C" >&6
11255 pcg 1.1 else
11256     if test "$cross_compiling" = yes; then
11257 pcg 1.11 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5
11258     echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;}
11259 pcg 1.1 else
11260 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11261     /* confdefs.h. */
11262     _ACEOF
11263     cat confdefs.h >>conftest.$ac_ext
11264     cat >>conftest.$ac_ext <<_ACEOF
11265     /* end confdefs.h. */
11266 pcg 1.1 #include <stdio.h>
11267     #include <sys/types.h>
11268     #ifdef HAVE_UTMP_H
11269     #include <utmp.h>
11270     #endif
11271     #include <errno.h>
11272     main()
11273     {
11274     char **w, *wtmplist[] = {
11275 pcg 1.11 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
11276 pcg 1.1 FILE *a, *f=fopen("conftestval", "w");
11277     if (!f) exit(1);
11278     #ifdef WTMP_FILE
11279     fprintf(f, "%s\n", WTMP_FILE);
11280     exit(0);
11281     #endif
11282     #ifdef _PATH_WTMP
11283     fprintf(f, "%s\n", _PATH_WTMP);
11284     exit(0);
11285     #endif
11286     for (w = wtmplist; *w; w++) {
11287     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11288     fprintf(f, "%s\n", *w);
11289     exit(0);
11290     }
11291     }
11292     exit(0);
11293     }
11294 pcg 1.11 _ACEOF
11295     rm -f conftest$ac_exeext
11296     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11297     (eval $ac_link) 2>&5
11298     ac_status=$?
11299     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11301     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302     (eval $ac_try) 2>&5
11303     ac_status=$?
11304     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305     (exit $ac_status); }; }; then
11306 pcg 1.1 rxvt_cv_path_wtmp=`cat conftestval`
11307     else
11308 pcg 1.11 echo "$as_me: program exited with status $ac_status" >&5
11309     echo "$as_me: failed program was:" >&5
11310     sed 's/^/| /' conftest.$ac_ext >&5
11311    
11312     ( exit $ac_status )
11313     rxvt_cv_path_wtmp=
11314 pcg 1.1 fi
11315 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11316 pcg 1.1 fi
11317     fi
11318 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
11319     echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
11320     if test x$rxvt_cv_path_wtmp != x; then
11321 pcg 1.1
11322 pcg 1.11 cat >>confdefs.h <<_ACEOF
11323 pcg 1.1 #define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
11324 pcg 1.11 _ACEOF
11325 pcg 1.1
11326     fi
11327    
11328 pcg 1.11 echo "$as_me:$LINENO: checking where wtmpx is located" >&5
11329     echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
11330     if test "${rxvt_cv_path_wtmpx+set}" = set; then
11331     echo $ECHO_N "(cached) $ECHO_C" >&6
11332 pcg 1.1 else
11333     if test "$cross_compiling" = yes; then
11334 pcg 1.11 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5
11335     echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;}
11336 pcg 1.1 else
11337 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11338     /* confdefs.h. */
11339     _ACEOF
11340     cat confdefs.h >>conftest.$ac_ext
11341     cat >>conftest.$ac_ext <<_ACEOF
11342     /* end confdefs.h. */
11343 pcg 1.1 #include <stdio.h>
11344     #ifdef HAVE_UTMPX_H
11345     #include <utmpx.h>
11346     #endif
11347     #include <errno.h>
11348     main()
11349     {
11350     char **w, *wtmplist[] = {
11351 pcg 1.11 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
11352 pcg 1.1 FILE *a, *f=fopen("conftestval", "w");
11353     if (!f) exit(1);
11354     #ifdef WTMPX_FILE
11355     fprintf(f, "%s\n", WTMPX_FILE);
11356     exit(0);
11357     #endif
11358     #ifdef _PATH_WTMPX
11359     fprintf(f, "%s\n", _PATH_WTMPX);
11360     exit(0);
11361     #endif
11362     for (w = wtmplist; *w; w++) {
11363     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11364     fprintf(f, "%s\n", *w);
11365     exit(0);
11366     }
11367     }
11368     exit(0);
11369     }
11370 pcg 1.11 _ACEOF
11371     rm -f conftest$ac_exeext
11372     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11373     (eval $ac_link) 2>&5
11374     ac_status=$?
11375     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11377     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378     (eval $ac_try) 2>&5
11379     ac_status=$?
11380     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381     (exit $ac_status); }; }; then
11382 pcg 1.1 rxvt_cv_path_wtmpx=`cat conftestval`
11383     else
11384 pcg 1.11 echo "$as_me: program exited with status $ac_status" >&5
11385     echo "$as_me: failed program was:" >&5
11386     sed 's/^/| /' conftest.$ac_ext >&5
11387    
11388     ( exit $ac_status )
11389     rxvt_cv_path_wtmpx=
11390 pcg 1.1 fi
11391 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11392 pcg 1.1 fi
11393     fi
11394 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
11395     echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
11396     if test x$rxvt_cv_path_wtmpx != x; then
11397 pcg 1.1
11398 pcg 1.11 cat >>confdefs.h <<_ACEOF
11399 pcg 1.1 #define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
11400 pcg 1.11 _ACEOF
11401 pcg 1.1
11402     fi
11403    
11404 pcg 1.11 echo "$as_me:$LINENO: checking where lastlog is located" >&5
11405     echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
11406     if test "${rxvt_cv_path_lastlog+set}" = set; then
11407     echo $ECHO_N "(cached) $ECHO_C" >&6
11408 pcg 1.1 else
11409     if test "$cross_compiling" = yes; then
11410 pcg 1.11 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5
11411     echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;}
11412 pcg 1.1 else
11413 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11414     /* confdefs.h. */
11415     _ACEOF
11416     cat confdefs.h >>conftest.$ac_ext
11417     cat >>conftest.$ac_ext <<_ACEOF
11418     /* end confdefs.h. */
11419 pcg 1.1 #include <stdio.h>
11420     #include <sys/types.h>
11421     #ifdef HAVE_UTMPX_H
11422     #include <utmpx.h>
11423     #elif defined(HAVE_UTMP_H)
11424     #include <utmp.h>
11425     #endif
11426     #ifdef HAVE_LASTLOG_H
11427     #include <lastlog.h>
11428     #endif
11429     #include <errno.h>
11430     main()
11431     {
11432     char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
11433     FILE *a, *f=fopen("conftestval", "w");
11434     if (!f) exit(1);
11435     #ifdef LASTLOG_FILE
11436     fprintf(f, "%s\n", LASTLOG_FILE);
11437     exit(0);
11438     #endif
11439     #ifdef _PATH_LASTLOG
11440     fprintf(f, "%s\n", _PATH_LASTLOG);
11441     exit(0);
11442     #endif
11443     for (w = lastloglist; *w; w++) {
11444     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11445     fprintf(f, "%s\n", *w);
11446     exit(0);
11447     }
11448     }
11449     exit(0);
11450     }
11451 pcg 1.11 _ACEOF
11452     rm -f conftest$ac_exeext
11453     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11454     (eval $ac_link) 2>&5
11455     ac_status=$?
11456     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11458     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459     (eval $ac_try) 2>&5
11460     ac_status=$?
11461     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462     (exit $ac_status); }; }; then
11463 pcg 1.1 rxvt_cv_path_lastlog=`cat conftestval`
11464     else
11465 pcg 1.11 echo "$as_me: program exited with status $ac_status" >&5
11466     echo "$as_me: failed program was:" >&5
11467     sed 's/^/| /' conftest.$ac_ext >&5
11468    
11469     ( exit $ac_status )
11470     rxvt_cv_path_lastlog=
11471 pcg 1.1 fi
11472 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11473 pcg 1.1 fi
11474     fi
11475 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
11476     echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
11477     if test x$rxvt_cv_path_lastlog != x; then
11478 pcg 1.1
11479 pcg 1.11 cat >>confdefs.h <<_ACEOF
11480 pcg 1.1 #define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
11481 pcg 1.11 _ACEOF
11482 pcg 1.1
11483     if test -d "$rxvt_cv_path_lastlog"; then
11484 pcg 1.11
11485     cat >>confdefs.h <<\_ACEOF
11486 pcg 1.1 #define LASTLOG_IS_DIR 1
11487 pcg 1.11 _ACEOF
11488 pcg 1.1
11489     fi
11490     fi
11491    
11492 pcg 1.11 echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11493     echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
11494     if test "${rxvt_cv_path_lastlogx+set}" = set; then
11495     echo $ECHO_N "(cached) $ECHO_C" >&6
11496 pcg 1.1 else
11497     if test "$cross_compiling" = yes; then
11498 pcg 1.11 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5
11499     echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;}
11500 pcg 1.1 else
11501 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11502     /* confdefs.h. */
11503     _ACEOF
11504     cat confdefs.h >>conftest.$ac_ext
11505     cat >>conftest.$ac_ext <<_ACEOF
11506     /* end confdefs.h. */
11507 pcg 1.1 #include <stdio.h>
11508     #ifdef HAVE_UTMPX_H
11509     #include <utmpx.h>
11510     #endif
11511     #include <errno.h>
11512     main()
11513     {
11514     char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11515     FILE *a, *f=fopen("conftestval", "w");
11516     if (!f) exit(1);
11517     #ifdef LASTLOGX_FILE
11518     fprintf(f, "%s\n", LASTLOGX_FILE);
11519     exit(0);
11520     #endif
11521     #ifdef _PATH_LASTLOGX
11522     fprintf(f, "%s\n", _PATH_LASTLOGX);
11523     exit(0);
11524     #endif
11525     for (w = wtmplist; *w; w++) {
11526     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11527     fprintf(f, "%s\n", *w);
11528     exit(0);
11529     }
11530     }
11531     exit(0);
11532     }
11533 pcg 1.11 _ACEOF
11534     rm -f conftest$ac_exeext
11535     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11536     (eval $ac_link) 2>&5
11537     ac_status=$?
11538     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11540     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541     (eval $ac_try) 2>&5
11542     ac_status=$?
11543     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544     (exit $ac_status); }; }; then
11545 pcg 1.1 rxvt_cv_path_lastlogx=`cat conftestval`
11546     else
11547 pcg 1.11 echo "$as_me: program exited with status $ac_status" >&5
11548     echo "$as_me: failed program was:" >&5
11549     sed 's/^/| /' conftest.$ac_ext >&5
11550    
11551     ( exit $ac_status )
11552     rxvt_cv_path_lastlogx=
11553 pcg 1.1 fi
11554 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11555 pcg 1.1 fi
11556     fi
11557 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
11558     echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
11559     if test x$rxvt_cv_path_lastlogx != x; then
11560 pcg 1.1
11561 pcg 1.11 cat >>confdefs.h <<_ACEOF
11562 pcg 1.1 #define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
11563 pcg 1.11 _ACEOF
11564 pcg 1.1
11565     fi
11566    
11567    
11568 pcg 1.11 echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11569     echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
11570     if test "${rxvt_cv_path_ttytab+set}" = set; then
11571     echo $ECHO_N "(cached) $ECHO_C" >&6
11572 pcg 1.1 else
11573     for ttys_file in /etc/ttys /etc/ttytab;
11574     do
11575 pcg 1.11 if test -f "$ttys_file" ; then
11576 pcg 1.1 rxvt_cv_path_ttytab=$ttys_file
11577     break
11578     fi
11579     done
11580    
11581     fi
11582 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11583     echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
11584     if test x$rxvt_cv_path_ttytab != x; then
11585 pcg 1.1
11586 pcg 1.11 cat >>confdefs.h <<_ACEOF
11587 pcg 1.1 #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11588 pcg 1.11 _ACEOF
11589 pcg 1.1
11590     fi
11591    
11592    
11593     ac_save_LIBS=$LIBS
11594     ac_save_CFLAGS=$CFLAGS
11595     CFLAGS="$CFLAGS $X_CFLAGS"
11596     LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11597     if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
11598     LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11599     fi
11600 pcg 1.11 echo "$as_me:$LINENO: checking for working Xlocale" >&5
11601     echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
11602     if test "${rxvt_cv_func_xlocale+set}" = set; then
11603     echo $ECHO_N "(cached) $ECHO_C" >&6
11604 pcg 1.1 else
11605     if test "$cross_compiling" = yes; then
11606 pcg 1.11 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5
11607     echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
11608 pcg 1.1 else
11609 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11610     /* confdefs.h. */
11611     _ACEOF
11612     cat confdefs.h >>conftest.$ac_ext
11613     cat >>conftest.$ac_ext <<_ACEOF
11614     /* end confdefs.h. */
11615 pcg 1.1 #include <X11/Xlib.h>
11616     main() {
11617     char *p;
11618     if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11619     exit (XSupportsLocale() ? 0 : 1);
11620     else
11621     exit (1);}
11622 pcg 1.11 _ACEOF
11623     rm -f conftest$ac_exeext
11624     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11625     (eval $ac_link) 2>&5
11626     ac_status=$?
11627     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11629     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630     (eval $ac_try) 2>&5
11631     ac_status=$?
11632     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633     (exit $ac_status); }; }; then
11634 pcg 1.1 rxvt_cv_func_xlocale=yes
11635     else
11636 pcg 1.11 echo "$as_me: program exited with status $ac_status" >&5
11637     echo "$as_me: failed program was:" >&5
11638     sed 's/^/| /' conftest.$ac_ext >&5
11639    
11640     ( exit $ac_status )
11641     rxvt_cv_func_xlocale=no
11642 pcg 1.1 fi
11643 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11644 pcg 1.1 fi
11645     fi
11646 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11647     echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
11648     if test x$rxvt_cv_func_xlocale = xyes; then
11649 pcg 1.1
11650 pcg 1.11 cat >>confdefs.h <<\_ACEOF
11651 pcg 1.1 #define HAVE_XLOCALE 1
11652 pcg 1.11 _ACEOF
11653 pcg 1.1
11654     fi
11655    
11656 pcg 1.11 echo "$as_me:$LINENO: checking for working X setlocale" >&5
11657     echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6
11658     if test "${rxvt_cv_func_xsetlocale+set}" = set; then
11659     echo $ECHO_N "(cached) $ECHO_C" >&6
11660 pcg 1.1 else
11661 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11662     /* confdefs.h. */
11663     _ACEOF
11664     cat confdefs.h >>conftest.$ac_ext
11665     cat >>conftest.$ac_ext <<_ACEOF
11666     /* end confdefs.h. */
11667 pcg 1.1 #define X_LOCALE 1
11668     #include <X11/Xlocale.h>
11669 pcg 1.11 int
11670     main ()
11671     {
11672 pcg 1.1 setlocale(LC_CTYPE, "");
11673 pcg 1.11 ;
11674     return 0;
11675     }
11676     _ACEOF
11677     rm -f conftest.$ac_objext conftest$ac_exeext
11678     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11679     (eval $ac_link) 2>conftest.er1
11680     ac_status=$?
11681     grep -v '^ *+' conftest.er1 >conftest.err
11682     rm -f conftest.er1
11683     cat conftest.err >&5
11684     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685     (exit $ac_status); } &&
11686 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11687 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11688     (eval $ac_try) 2>&5
11689     ac_status=$?
11690     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691     (exit $ac_status); }; } &&
11692     { ac_try='test -s conftest$ac_exeext'
11693     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694     (eval $ac_try) 2>&5
11695     ac_status=$?
11696     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697     (exit $ac_status); }; }; then
11698 pcg 1.1 rxvt_cv_func_xsetlocale=yes
11699     else
11700 pcg 1.11 echo "$as_me: failed program was:" >&5
11701     sed 's/^/| /' conftest.$ac_ext >&5
11702    
11703     rxvt_cv_func_xsetlocale=no
11704 pcg 1.1 fi
11705 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
11706     conftest$ac_exeext conftest.$ac_ext
11707 pcg 1.1 fi
11708 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
11709     echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6
11710     if test x$rxvt_cv_func_xsetlocale = xyes; then
11711 pcg 1.1
11712 pcg 1.11 cat >>confdefs.h <<\_ACEOF
11713 pcg 1.1 #define HAVE_XSETLOCALE 1
11714 pcg 1.11 _ACEOF
11715 pcg 1.1
11716     fi
11717     LIBS=$ac_save_LIBS
11718     CFLAGS=$ac_save_CFLAGS
11719    
11720 pcg 1.11 echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11721     echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6
11722     if test "${rxvt_cv_func_setlocale+set}" = set; then
11723     echo $ECHO_N "(cached) $ECHO_C" >&6
11724     else
11725     cat >conftest.$ac_ext <<_ACEOF
11726     /* confdefs.h. */
11727     _ACEOF
11728     cat confdefs.h >>conftest.$ac_ext
11729     cat >>conftest.$ac_ext <<_ACEOF
11730     /* end confdefs.h. */
11731 pcg 1.18 #include <clocale>
11732 pcg 1.11 int
11733     main ()
11734     {
11735 pcg 1.1 setlocale(LC_CTYPE, "");
11736 pcg 1.11 ;
11737     return 0;
11738     }
11739     _ACEOF
11740     rm -f conftest.$ac_objext conftest$ac_exeext
11741     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11742     (eval $ac_link) 2>conftest.er1
11743     ac_status=$?
11744     grep -v '^ *+' conftest.er1 >conftest.err
11745     rm -f conftest.er1
11746     cat conftest.err >&5
11747     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748     (exit $ac_status); } &&
11749 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11750 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751     (eval $ac_try) 2>&5
11752     ac_status=$?
11753     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754     (exit $ac_status); }; } &&
11755     { ac_try='test -s conftest$ac_exeext'
11756     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757     (eval $ac_try) 2>&5
11758     ac_status=$?
11759     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760     (exit $ac_status); }; }; then
11761 pcg 1.1 rxvt_cv_func_setlocale=yes
11762     else
11763 pcg 1.11 echo "$as_me: failed program was:" >&5
11764     sed 's/^/| /' conftest.$ac_ext >&5
11765    
11766     rxvt_cv_func_setlocale=no
11767 pcg 1.1 fi
11768 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
11769     conftest$ac_exeext conftest.$ac_ext
11770 pcg 1.1 fi
11771 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
11772     echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
11773     if test x$rxvt_cv_func_setlocale = xyes; then
11774 pcg 1.1
11775 pcg 1.11 cat >>confdefs.h <<\_ACEOF
11776 pcg 1.1 #define HAVE_SETLOCALE 1
11777 pcg 1.11 _ACEOF
11778 pcg 1.1
11779     fi
11780    
11781 pcg 1.11 echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
11782     echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6
11783     if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
11784     echo $ECHO_N "(cached) $ECHO_C" >&6
11785 pcg 1.1 else
11786 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11787     /* confdefs.h. */
11788     _ACEOF
11789     cat confdefs.h >>conftest.$ac_ext
11790     cat >>conftest.$ac_ext <<_ACEOF
11791     /* end confdefs.h. */
11792 pcg 1.1 #include <langinfo.h>
11793 pcg 1.11 int
11794     main ()
11795     {
11796 pcg 1.1 nl_langinfo(CODESET);
11797 pcg 1.11 ;
11798     return 0;
11799     }
11800     _ACEOF
11801     rm -f conftest.$ac_objext conftest$ac_exeext
11802     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11803     (eval $ac_link) 2>conftest.er1
11804     ac_status=$?
11805     grep -v '^ *+' conftest.er1 >conftest.err
11806     rm -f conftest.er1
11807     cat conftest.err >&5
11808     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809     (exit $ac_status); } &&
11810 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11811 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812     (eval $ac_try) 2>&5
11813     ac_status=$?
11814     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815     (exit $ac_status); }; } &&
11816     { ac_try='test -s conftest$ac_exeext'
11817     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11818     (eval $ac_try) 2>&5
11819     ac_status=$?
11820     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821     (exit $ac_status); }; }; then
11822 pcg 1.1 rxvt_cv_func_nl_langinfo=yes
11823     else
11824 pcg 1.11 echo "$as_me: failed program was:" >&5
11825     sed 's/^/| /' conftest.$ac_ext >&5
11826    
11827     rxvt_cv_func_nl_langinfo=no
11828 pcg 1.1 fi
11829 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
11830     conftest$ac_exeext conftest.$ac_ext
11831 pcg 1.1 fi
11832 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
11833     echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6
11834     if test x$rxvt_cv_func_nl_langinfo = xyes; then
11835 pcg 1.1
11836 pcg 1.11 cat >>confdefs.h <<\_ACEOF
11837 pcg 1.1 #define HAVE_NL_LANGINFO 1
11838 pcg 1.11 _ACEOF
11839 pcg 1.1
11840     fi
11841    
11842 root 1.56 echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
11843     echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11844     if test "${rxvt_can_pass_fds+set}" = set; then
11845     echo $ECHO_N "(cached) $ECHO_C" >&6
11846     else
11847     cat >conftest.$ac_ext <<_ACEOF
11848     /* confdefs.h. */
11849     _ACEOF
11850     cat confdefs.h >>conftest.$ac_ext
11851     cat >>conftest.$ac_ext <<_ACEOF
11852     /* end confdefs.h. */
11853    
11854     #include <sys/types.h>
11855     #include <sys/socket.h>
11856    
11857     int
11858     main ()
11859     {
11860    
11861     {
11862     msghdr msg;
11863     iovec iov;
11864     char buf [100];
11865     char data = 0;
11866    
11867     iov.iov_base = &data;
11868     iov.iov_len = 1;
11869    
11870     msg.msg_iov = &iov;
11871     msg.msg_iovlen = 1;
11872     msg.msg_control = buf;
11873     msg.msg_controllen = sizeof buf;
11874    
11875     cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11876     cmsg->cmsg_level = SOL_SOCKET;
11877     cmsg->cmsg_type = SCM_RIGHTS;
11878     cmsg->cmsg_len = 100;
11879    
11880     *(int *)CMSG_DATA (cmsg) = 5;
11881    
11882     return sendmsg (3, &msg, 0);
11883     }
11884    
11885     ;
11886     return 0;
11887     }
11888     _ACEOF
11889     rm -f conftest.$ac_objext conftest$ac_exeext
11890     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11891     (eval $ac_link) 2>conftest.er1
11892     ac_status=$?
11893     grep -v '^ *+' conftest.er1 >conftest.err
11894     rm -f conftest.er1
11895     cat conftest.err >&5
11896     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897     (exit $ac_status); } &&
11898     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11899     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900     (eval $ac_try) 2>&5
11901     ac_status=$?
11902     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903     (exit $ac_status); }; } &&
11904     { ac_try='test -s conftest$ac_exeext'
11905     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906     (eval $ac_try) 2>&5
11907     ac_status=$?
11908     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909     (exit $ac_status); }; }; then
11910     rxvt_can_pass_fds=yes
11911     else
11912     echo "$as_me: failed program was:" >&5
11913     sed 's/^/| /' conftest.$ac_ext >&5
11914    
11915     rxvt_can_pass_fds=no
11916     fi
11917     rm -f conftest.err conftest.$ac_objext \
11918     conftest$ac_exeext conftest.$ac_ext
11919     fi
11920     echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5
11921     echo "${ECHO_T}$rxvt_can_pass_fds" >&6
11922     if test x$rxvt_can_pass_fds = xyes; then
11923    
11924     cat >>confdefs.h <<\_ACEOF
11925     #define HAVE_UNIX_FDPASS 1
11926     _ACEOF
11927    
11928     fi
11929    
11930 root 1.31 echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11931     echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11932     if test "${rxvt_broken_ximcb+set}" = set; then
11933     echo $ECHO_N "(cached) $ECHO_C" >&6
11934     else
11935     cat >conftest.$ac_ext <<_ACEOF
11936    
11937     #include <X11/Xlib.h>
11938    
11939     void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11940    
11941     void f() {
11942     XIMCallback cb;
11943     cb.callback = im_destroy_cb;
11944     }
11945    
11946     _ACEOF
11947     rm -f conftest.$ac_objext
11948     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11949     (eval $ac_compile) 2>conftest.er1
11950     ac_status=$?
11951     grep -v '^ *+' conftest.er1 >conftest.err
11952     rm -f conftest.er1
11953     cat conftest.err >&5
11954     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955     (exit $ac_status); } &&
11956     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11957     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11958     (eval $ac_try) 2>&5
11959     ac_status=$?
11960     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961     (exit $ac_status); }; } &&
11962     { ac_try='test -s conftest.$ac_objext'
11963     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964     (eval $ac_try) 2>&5
11965     ac_status=$?
11966     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967     (exit $ac_status); }; }; then
11968     rxvt_broken_ximcb=yes
11969     else
11970     echo "$as_me: failed program was:" >&5
11971     sed 's/^/| /' conftest.$ac_ext >&5
11972    
11973     rxvt_broken_ximcb=no
11974     fi
11975     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11976     fi
11977     echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
11978     echo "${ECHO_T}$rxvt_broken_ximcb" >&6
11979    
11980     if test x$rxvt_broken_ximcb = xyes; then
11981    
11982     cat >>confdefs.h <<\_ACEOF
11983     #define XIMCB_PROTO_BROKEN 1
11984     _ACEOF
11985    
11986     fi
11987    
11988 pcg 1.11 echo "$as_me:$LINENO: checking for getpt" >&5
11989     echo $ECHO_N "checking for getpt... $ECHO_C" >&6
11990     if test "${rxvt_cv_func_getpt+set}" = set; then
11991     echo $ECHO_N "(cached) $ECHO_C" >&6
11992 pcg 1.1 else
11993 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11994     /* confdefs.h. */
11995     _ACEOF
11996     cat confdefs.h >>conftest.$ac_ext
11997     cat >>conftest.$ac_ext <<_ACEOF
11998     /* end confdefs.h. */
11999 pcg 1.1 #define _GNU_SOURCE
12000     #ifdef HAVE_STDLIB_H
12001 pcg 1.18 # include <cstdlib>
12002 pcg 1.1 #endif
12003 pcg 1.11 int
12004     main ()
12005     {
12006 pcg 1.1 (void)getpt();
12007 pcg 1.11 ;
12008     return 0;
12009     }
12010     _ACEOF
12011     rm -f conftest.$ac_objext conftest$ac_exeext
12012     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12013     (eval $ac_link) 2>conftest.er1
12014     ac_status=$?
12015     grep -v '^ *+' conftest.er1 >conftest.err
12016     rm -f conftest.er1
12017     cat conftest.err >&5
12018     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019     (exit $ac_status); } &&
12020 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12021 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022     (eval $ac_try) 2>&5
12023     ac_status=$?
12024     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025     (exit $ac_status); }; } &&
12026     { ac_try='test -s conftest$ac_exeext'
12027     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12028     (eval $ac_try) 2>&5
12029     ac_status=$?
12030     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031     (exit $ac_status); }; }; then
12032 pcg 1.1 rxvt_cv_func_getpt=yes
12033     else
12034 pcg 1.11 echo "$as_me: failed program was:" >&5
12035     sed 's/^/| /' conftest.$ac_ext >&5
12036    
12037     rxvt_cv_func_getpt=no
12038 pcg 1.1 fi
12039 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
12040     conftest$ac_exeext conftest.$ac_ext
12041 pcg 1.1 fi
12042 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
12043     echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
12044     if test x$rxvt_cv_func_getpt = xyes; then
12045 pcg 1.1
12046 pcg 1.11 cat >>confdefs.h <<\_ACEOF
12047 pcg 1.1 #define HAVE_GETPT 1
12048 pcg 1.11 _ACEOF
12049 pcg 1.1
12050     fi
12051    
12052 pcg 1.11 echo "$as_me:$LINENO: checking for pty/tty type" >&5
12053     echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
12054     if test "${rxvt_cv_ptys+set}" = set; then
12055     echo $ECHO_N "(cached) $ECHO_C" >&6
12056 pcg 1.1 else
12057     if test x$ac_cv_func_openpty = xyes; then
12058     rxvt_cv_ptys=OPENPTY
12059     else if test x$ac_cv_func__getpty = xyes; then
12060     rxvt_cv_ptys=SGI4
12061     else if test -c /dev/ttyp20; then
12062     rxvt_cv_ptys=SCO
12063     else if test -c /dev/ptym/clone; then
12064     rxvt_cv_ptys=HPUX
12065     else if test x$rxvt_cv_func_getpt = xyes; then
12066     rxvt_cv_ptys=GLIBC
12067     else if test -c /dev/ptc -a -c /dev/pts; then
12068     rxvt_cv_ptys=PTC
12069     else if test -c /dev/ptc -a -d /dev/pts; then
12070     rxvt_cv_ptys=PTC
12071     else if test -c /dev/ptmx -a -c /dev/pts/0; then
12072     rxvt_cv_ptys=STREAMS
12073     else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
12074     rxvt_cv_ptys=STREAMS
12075     else
12076     rxvt_cv_ptys=BSD
12077     fi
12078     fi
12079     fi
12080     fi
12081     fi
12082     fi
12083     fi
12084     fi
12085     fi
12086    
12087     fi
12088 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
12089     echo "${ECHO_T}$rxvt_cv_ptys" >&6
12090 pcg 1.1
12091 pcg 1.11 if test x$rxvt_cv_ptys = xOPENPTY; then
12092 pcg 1.1
12093 pcg 1.11 cat >>confdefs.h <<\_ACEOF
12094 pcg 1.1 #define PTYS_ARE_OPENPTY 1
12095 pcg 1.11 _ACEOF
12096 pcg 1.1
12097     fi
12098     if test x$rxvt_cv_ptys = xSCO; then
12099 pcg 1.11
12100     cat >>confdefs.h <<\_ACEOF
12101 pcg 1.1 #define PTYS_ARE_NUMERIC 1
12102 pcg 1.11 _ACEOF
12103 pcg 1.1
12104     fi
12105     if test x$rxvt_cv_ptys = xSTREAMS; then
12106 pcg 1.11
12107     cat >>confdefs.h <<\_ACEOF
12108 pcg 1.1 #define PTYS_ARE_PTMX 1
12109 pcg 1.11 _ACEOF
12110 pcg 1.1
12111     fi
12112     if test x$rxvt_cv_ptys = xPTC; then
12113 pcg 1.11
12114     cat >>confdefs.h <<\_ACEOF
12115 pcg 1.1 #define PTYS_ARE_PTC 1
12116 pcg 1.11 _ACEOF
12117 pcg 1.1
12118     fi
12119     if test x$rxvt_cv_ptys = xSGI4; then
12120 pcg 1.11
12121     cat >>confdefs.h <<\_ACEOF
12122 pcg 1.1 #define PTYS_ARE__GETPTY 1
12123 pcg 1.11 _ACEOF
12124 pcg 1.1
12125     fi
12126     if test x$rxvt_cv_ptys = xCONVEX; then
12127 pcg 1.11
12128     cat >>confdefs.h <<\_ACEOF
12129 pcg 1.1 #define PTYS_ARE_GETPTY 1
12130 pcg 1.11 _ACEOF
12131 pcg 1.1
12132     fi
12133     if test x$rxvt_cv_ptys = xGLIBC; then
12134 pcg 1.11
12135     cat >>confdefs.h <<\_ACEOF
12136 pcg 1.1 #define PTYS_ARE_GETPT 1
12137 pcg 1.11 _ACEOF
12138 pcg 1.1
12139     fi
12140     if test x$rxvt_cv_ptys = xHPUX; then
12141 pcg 1.11
12142     cat >>confdefs.h <<\_ACEOF
12143 pcg 1.1 #define PTYS_ARE_CLONE 1
12144 pcg 1.11 _ACEOF
12145 pcg 1.1
12146     fi
12147     if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
12148 pcg 1.11
12149     cat >>confdefs.h <<\_ACEOF
12150 pcg 1.1 #define PTYS_ARE_SEARCHED 1
12151 pcg 1.11 _ACEOF
12152 pcg 1.1
12153     fi
12154    
12155    
12156 pcg 1.11 { echo "$as_me:$LINENO: checking for pty ranges..." >&5
12157     echo "$as_me: checking for pty ranges..." >&6;}
12158 pcg 1.1 ptys=`echo /dev/pty??`
12159     pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12160     pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
12161     if test x$pch1 != x; then
12162 pcg 1.11
12163     cat >>confdefs.h <<_ACEOF
12164 pcg 1.1 #define PTYCHAR1 "$pch1"
12165 pcg 1.11 _ACEOF
12166 pcg 1.1
12167     fi
12168     if test x$pch2 != x; then
12169 pcg 1.11
12170     cat >>confdefs.h <<_ACEOF
12171 pcg 1.1 #define PTYCHAR2 "$pch2"
12172 pcg 1.11 _ACEOF
12173 pcg 1.1
12174     fi
12175    
12176 root 1.39 if test x$support_xft = xyes; then
12177     LIBS="$LIBS `pkg-config xft --libs`"
12178     CFLAGS="$CFLAGS `pkg-config xft --cflags`"
12179     CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
12180 root 1.34
12181    
12182 root 1.39 for ac_header in X11/Xft/Xft.h
12183     do
12184     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12185     if eval "test \"\${$as_ac_Header+set}\" = set"; then
12186     echo "$as_me:$LINENO: checking for $ac_header" >&5
12187     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12188     if eval "test \"\${$as_ac_Header+set}\" = set"; then
12189     echo $ECHO_N "(cached) $ECHO_C" >&6
12190 root 1.34 fi
12191 root 1.39 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12192     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12193     else
12194     # Is the header compilable?
12195     echo "$as_me:$LINENO: checking $ac_header usability" >&5
12196     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12197     cat >conftest.$ac_ext <<_ACEOF
12198     /* confdefs.h. */
12199 root 1.26 _ACEOF
12200 root 1.39 cat confdefs.h >>conftest.$ac_ext
12201     cat >>conftest.$ac_ext <<_ACEOF
12202     /* end confdefs.h. */
12203     $ac_includes_default
12204     #include <$ac_header>
12205 root 1.31 _ACEOF
12206 root 1.39 rm -f conftest.$ac_objext
12207     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12208     (eval $ac_compile) 2>conftest.er1
12209     ac_status=$?
12210     grep -v '^ *+' conftest.er1 >conftest.err
12211     rm -f conftest.er1
12212     cat conftest.err >&5
12213     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214     (exit $ac_status); } &&
12215     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12216     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217     (eval $ac_try) 2>&5
12218     ac_status=$?
12219     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220     (exit $ac_status); }; } &&
12221     { ac_try='test -s conftest.$ac_objext'
12222     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223     (eval $ac_try) 2>&5
12224     ac_status=$?
12225     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226     (exit $ac_status); }; }; then
12227     ac_header_compiler=yes
12228     else
12229     echo "$as_me: failed program was:" >&5
12230     sed 's/^/| /' conftest.$ac_ext >&5
12231 root 1.31
12232 root 1.39 ac_header_compiler=no
12233 root 1.31 fi
12234 root 1.39 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12235     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12236     echo "${ECHO_T}$ac_header_compiler" >&6
12237 pcg 1.24
12238 root 1.39 # Is the header present?
12239     echo "$as_me:$LINENO: checking $ac_header presence" >&5
12240     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12241     cat >conftest.$ac_ext <<_ACEOF
12242     /* confdefs.h. */
12243 pcg 1.24 _ACEOF
12244 root 1.39 cat confdefs.h >>conftest.$ac_ext
12245     cat >>conftest.$ac_ext <<_ACEOF
12246     /* end confdefs.h. */
12247     #include <$ac_header>
12248 pcg 1.11 _ACEOF
12249 root 1.39 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12250     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12251     ac_status=$?
12252     grep -v '^ *+' conftest.er1 >conftest.err
12253     rm -f conftest.er1
12254     cat conftest.err >&5
12255     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256     (exit $ac_status); } >/dev/null; then
12257     if test -s conftest.err; then
12258     ac_cpp_err=$ac_cxx_preproc_warn_flag
12259     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12260     else
12261     ac_cpp_err=
12262     fi
12263     else
12264     ac_cpp_err=yes
12265 pcg 1.1 fi
12266 root 1.39 if test -z "$ac_cpp_err"; then
12267     ac_header_preproc=yes
12268     else
12269     echo "$as_me: failed program was:" >&5
12270     sed 's/^/| /' conftest.$ac_ext >&5
12271 pcg 1.1
12272 root 1.39 ac_header_preproc=no
12273 pcg 1.1 fi
12274 root 1.39 rm -f conftest.err conftest.$ac_ext
12275     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12276     echo "${ECHO_T}$ac_header_preproc" >&6
12277 pcg 1.1
12278 root 1.39 # So? What about this header?
12279     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12280     yes:no: )
12281     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12282     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12284     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12285     ac_header_preproc=yes
12286     ;;
12287     no:yes:* )
12288     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12289     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12290     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12291     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12292     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12293     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12294     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12295     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12297     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12298     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12299     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12300     (
12301     cat <<\_ASBOX
12302     ## ------------------------------------------ ##
12303     ## Report this to the AC_PACKAGE_NAME lists. ##
12304     ## ------------------------------------------ ##
12305     _ASBOX
12306     ) |
12307     sed "s/^/$as_me: WARNING: /" >&2
12308     ;;
12309     esac
12310     echo "$as_me:$LINENO: checking for $ac_header" >&5
12311     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12312     if eval "test \"\${$as_ac_Header+set}\" = set"; then
12313     echo $ECHO_N "(cached) $ECHO_C" >&6
12314     else
12315     eval "$as_ac_Header=\$ac_header_preproc"
12316 pcg 1.1 fi
12317 root 1.39 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12318     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12319 pcg 1.1
12320     fi
12321 root 1.39 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12322     cat >>confdefs.h <<_ACEOF
12323     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12324 pcg 1.11 _ACEOF
12325 pcg 1.1
12326 root 1.39 else
12327     support_xft=no
12328 pcg 1.1 fi
12329 pcg 1.11
12330 root 1.39 done
12331 pcg 1.1
12332 pcg 1.11
12333 root 1.39 echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12334     echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
12335     if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12336     echo $ECHO_N "(cached) $ECHO_C" >&6
12337     else
12338     ac_check_lib_save_LIBS=$LIBS
12339     LIBS="-lXft $LIBS"
12340     cat >conftest.$ac_ext <<_ACEOF
12341     /* confdefs.h. */
12342     _ACEOF
12343     cat confdefs.h >>conftest.$ac_ext
12344     cat >>conftest.$ac_ext <<_ACEOF
12345     /* end confdefs.h. */
12346    
12347     /* Override any gcc2 internal prototype to avoid an error. */
12348     #ifdef __cplusplus
12349     extern "C"
12350     #endif
12351     /* We use char because int might match the return type of a gcc2
12352     builtin and then its argument prototype would still apply. */
12353     char XftDrawString32 ();
12354     int
12355     main ()
12356     {
12357     XftDrawString32 ();
12358     ;
12359     return 0;
12360     }
12361     _ACEOF
12362     rm -f conftest.$ac_objext conftest$ac_exeext
12363     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12364     (eval $ac_link) 2>conftest.er1
12365     ac_status=$?
12366     grep -v '^ *+' conftest.er1 >conftest.err
12367     rm -f conftest.er1
12368     cat conftest.err >&5
12369     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370     (exit $ac_status); } &&
12371     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12372     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373     (eval $ac_try) 2>&5
12374     ac_status=$?
12375     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376     (exit $ac_status); }; } &&
12377     { ac_try='test -s conftest$ac_exeext'
12378     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379     (eval $ac_try) 2>&5
12380     ac_status=$?
12381     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382     (exit $ac_status); }; }; then
12383     ac_cv_lib_Xft_XftDrawString32=yes
12384     else
12385     echo "$as_me: failed program was:" >&5
12386     sed 's/^/| /' conftest.$ac_ext >&5
12387    
12388     ac_cv_lib_Xft_XftDrawString32=no
12389     fi
12390     rm -f conftest.err conftest.$ac_objext \
12391     conftest$ac_exeext conftest.$ac_ext
12392     LIBS=$ac_check_lib_save_LIBS
12393     fi
12394     echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
12395     echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
12396     if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
12397     cat >>confdefs.h <<_ACEOF
12398     #define HAVE_LIBXFT 1
12399     _ACEOF
12400    
12401     LIBS="-lXft $LIBS"
12402    
12403     else
12404     support_xft=no
12405     fi
12406    
12407    
12408     if test x$support_xft = xyes; then
12409    
12410     cat >>confdefs.h <<\_ACEOF
12411     #define XFT 1
12412     _ACEOF
12413    
12414     fi
12415     fi
12416     if test x$support_styles = xyes; then
12417    
12418     cat >>confdefs.h <<\_ACEOF
12419     #define ENABLE_STYLES 1
12420     _ACEOF
12421    
12422     fi
12423     if test x$support_iso14755 = xyes; then
12424    
12425     cat >>confdefs.h <<\_ACEOF
12426     #define ISO_14755 1
12427     _ACEOF
12428    
12429     fi
12430     if test x$support_8bitctrls = xyes; then
12431    
12432     cat >>confdefs.h <<\_ACEOF
12433     #define EIGHT_BIT_CONTROLS 1
12434     _ACEOF
12435    
12436     fi
12437     if test x$support_fading = xyes; then
12438    
12439     cat >>confdefs.h <<\_ACEOF
12440     #define OFF_FOCUS_FADING 1
12441     _ACEOF
12442    
12443     fi
12444     if test x$support_tinting = xyes; then
12445    
12446     cat >>confdefs.h <<\_ACEOF
12447     #define TINTING 1
12448     _ACEOF
12449    
12450     fi
12451     if test x$support_inheritpixmap = xyes; then
12452    
12453     cat >>confdefs.h <<\_ACEOF
12454     #define TRANSPARENT 1
12455     _ACEOF
12456    
12457     fi
12458     if test x$support_keepscrolling = xno; then
12459    
12460     cat >>confdefs.h <<\_ACEOF
12461     #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12462     _ACEOF
12463    
12464     fi
12465     if test x$support_selectionscrolling = xyes; then
12466    
12467     cat >>confdefs.h <<\_ACEOF
12468     #define SELECTION_SCROLLING 1
12469     _ACEOF
12470    
12471     fi
12472     if test x$support_menubar = xyes; then
12473    
12474     cat >>confdefs.h <<\_ACEOF
12475     #define MENUBAR 1
12476     _ACEOF
12477    
12478     fi
12479     if test x$support_frills = xyes; then
12480    
12481     cat >>confdefs.h <<\_ACEOF
12482     #define ENABLE_FRILLS 1
12483     _ACEOF
12484    
12485     fi
12486     if test x$support_24bit = xyes; then
12487    
12488     cat >>confdefs.h <<\_ACEOF
12489     #define PREFER_24BIT 1
12490 pcg 1.11 _ACEOF
12491 pcg 1.1
12492     fi
12493     if test x$support_mousewheel = xyes; then
12494 pcg 1.11
12495     cat >>confdefs.h <<\_ACEOF
12496 pcg 1.1 #define MOUSE_WHEEL 1
12497 pcg 1.11 _ACEOF
12498 pcg 1.1
12499     fi
12500     if test x$support_mouseslipwheel = xyes; then
12501 pcg 1.11
12502     cat >>confdefs.h <<\_ACEOF
12503 pcg 1.1 #define MOUSE_SLIP_WHEELING 1
12504 pcg 1.11 _ACEOF
12505 pcg 1.1
12506     fi
12507     if test x$support_utmp = xyes; then
12508 pcg 1.11
12509     cat >>confdefs.h <<\_ACEOF
12510 pcg 1.1 #define UTMP_SUPPORT 1
12511 pcg 1.11 _ACEOF
12512 pcg 1.1
12513     fi
12514     if test x$support_wtmp = xyes; then
12515 pcg 1.11
12516     cat >>confdefs.h <<\_ACEOF
12517 pcg 1.1 #define WTMP_SUPPORT 1
12518 pcg 1.11 _ACEOF
12519 pcg 1.1
12520     fi
12521     if test x$support_lastlog = xyes; then
12522 pcg 1.11
12523     cat >>confdefs.h <<\_ACEOF
12524 pcg 1.1 #define LASTLOG_SUPPORT 1
12525 pcg 1.11 _ACEOF
12526 pcg 1.1
12527     fi
12528     if test x$support_xim = xyes -o x$multichar_set = xyes; then
12529     if test x$rxvt_cv_func_xlocale = xyes; then
12530 pcg 1.11
12531     cat >>confdefs.h <<\_ACEOF
12532 pcg 1.1 #define USE_XIM 1
12533 pcg 1.11 _ACEOF
12534 pcg 1.1
12535     fi
12536     fi
12537     if test x$support_xpm = xyes; then
12538 pcg 1.11
12539     cat >>confdefs.h <<\_ACEOF
12540 pcg 1.1 #define XPM_BACKGROUND 1
12541 pcg 1.11 _ACEOF
12542 pcg 1.1
12543     fi
12544     if test x$support_scroll_rxvt = xyes; then
12545 pcg 1.11
12546     cat >>confdefs.h <<\_ACEOF
12547 pcg 1.1 #define RXVT_SCROLLBAR 1
12548 pcg 1.11 _ACEOF
12549 pcg 1.1
12550     scrolltypes="rxvt"
12551     fi
12552     if test x$support_scroll_next = xyes; then
12553 pcg 1.11
12554     cat >>confdefs.h <<\_ACEOF
12555 pcg 1.1 #define NEXT_SCROLLBAR 1
12556 pcg 1.11 _ACEOF
12557 pcg 1.1
12558     scrolltypes="$scrolltypes next"
12559     fi
12560     if test x$support_scroll_xterm = xyes; then
12561 pcg 1.11
12562     cat >>confdefs.h <<\_ACEOF
12563 pcg 1.1 #define XTERM_SCROLLBAR 1
12564 pcg 1.11 _ACEOF
12565 pcg 1.1
12566     scrolltypes="$scrolltypes xterm"
12567     fi
12568 pcg 1.11 if test x$support_scroll_plain = xyes; then
12569    
12570     cat >>confdefs.h <<\_ACEOF
12571     #define PLAIN_SCROLLBAR 1
12572     _ACEOF
12573    
12574     scrolltypes="$scrolltypes plain"
12575     fi
12576 pcg 1.1 if test x$support_pointer_blank = xyes; then
12577 pcg 1.11
12578     cat >>confdefs.h <<\_ACEOF
12579 pcg 1.1 #define POINTER_BLANK 1
12580 pcg 1.11 _ACEOF
12581 pcg 1.1
12582     fi
12583 pcg 1.11 if test x$support_text_blink = xyes; then
12584    
12585     cat >>confdefs.h <<\_ACEOF
12586     #define TEXT_BLINK 1
12587     _ACEOF
12588 pcg 1.1
12589     fi
12590     if test x$support_unicode3 = xyes; then
12591 pcg 1.11
12592     cat >>confdefs.h <<\_ACEOF
12593 pcg 1.1 #define UNICODE_3 1
12594 pcg 1.11 _ACEOF
12595 pcg 1.1
12596     fi
12597 pcg 1.18 if test x$support_combining = xyes; then
12598    
12599     cat >>confdefs.h <<\_ACEOF
12600 pcg 1.20 #define ENABLE_COMBINING 1
12601 pcg 1.18 _ACEOF
12602    
12603     fi
12604 pcg 1.1 if test x$codesets = xall; then
12605 root 1.40 codesets=jp,jp-ext,kr,zh,zh-ext
12606 pcg 1.1 fi
12607 pcg 1.11
12608     cat >>confdefs.h <<\_ACEOF
12609 pcg 1.1 #define ENCODING_EU 1
12610 pcg 1.11 _ACEOF
12611 pcg 1.1
12612 pcg 1.13
12613 pcg 1.11 cat >>confdefs.h <<\_ACEOF
12614 pcg 1.1 #define ENCODING_VN 1
12615 pcg 1.11 _ACEOF
12616 pcg 1.13
12617 root 1.34 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
12618 pcg 1.13 case "$codeset" in
12619 pcg 1.11 JP )
12620     cat >>confdefs.h <<\_ACEOF
12621 pcg 1.1 #define ENCODING_JP 1
12622 pcg 1.11 _ACEOF
12623 pcg 1.1 ;;
12624 pcg 1.11 JP_EXT )
12625     cat >>confdefs.h <<\_ACEOF
12626 pcg 1.1 #define ENCODING_JP_EXT 1
12627 pcg 1.11 _ACEOF
12628 pcg 1.1 ;;
12629 pcg 1.11 KR )
12630     cat >>confdefs.h <<\_ACEOF
12631 pcg 1.1 #define ENCODING_KR 1
12632 pcg 1.11 _ACEOF
12633 pcg 1.1 ;;
12634 root 1.40 ZH )
12635 pcg 1.11 cat >>confdefs.h <<\_ACEOF
12636 root 1.40 #define ENCODING_ZH 1
12637 pcg 1.11 _ACEOF
12638 pcg 1.1 ;;
12639 root 1.40 ZH_EXT )
12640 pcg 1.11 cat >>confdefs.h <<\_ACEOF
12641 root 1.40 #define ENCODING_ZH_EXT 1
12642 pcg 1.11 _ACEOF
12643 pcg 1.1 ;;
12644     esac
12645     done
12646    
12647    
12648     CFLAGS=${CFLAGS--O}
12649     LDFLAGS=${LDFLAGS--O}
12650    
12651     CPPFLAGS="$CPPFLAGS"
12652    
12653    
12654    
12655    
12656    
12657    
12658    
12659     if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
12660     DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
12661     LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
12662     X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
12663     X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
12664     XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
12665     fi
12666    
12667    
12668    
12669    
12670    
12671     if test x$support_addstrings = xno; then
12672 pcg 1.11
12673     cat >>confdefs.h <<\_ACEOF
12674 pcg 1.1 #define NO_STRINGS 1
12675 pcg 1.11 _ACEOF
12676 pcg 1.1
12677     fi
12678    
12679     MCOMMON=./autoconf/Make.common
12680    
12681    
12682     test "$program_prefix" != NONE &&
12683 pcg 1.11 program_transform_name="s,^,$program_prefix,;$program_transform_name"
12684 pcg 1.1 # Use a double $ so make ignores it.
12685     test "$program_suffix" != NONE &&
12686 pcg 1.11 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
12687     # Double any \ or $. echo might interpret backslashes.
12688     # By default was `s,x,x', remove it if useless.
12689     cat <<\_ACEOF >conftest.sed
12690     s/[\\$]/&&/g;s/;s,x,x,$//
12691     _ACEOF
12692     program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
12693     rm conftest.sed
12694 pcg 1.1
12695    
12696    
12697    
12698    
12699     if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
12700     include_stdint_h="#include <stdint.h>"
12701     else
12702     include_stdint_h="/* #include <stdint.h> */"
12703 pcg 1.11 fi
12704 pcg 1.1 if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
12705 pcg 1.18 include_stdarg_h="#include <cstdarg>"
12706 pcg 1.1 else
12707 pcg 1.18 include_stdarg_h="/* #include <cstdarg> */"
12708 pcg 1.11 fi
12709 pcg 1.1 if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
12710 pcg 1.18 include_stdlib_h="#include <cstdlib>"
12711 pcg 1.1 else
12712 pcg 1.18 include_stdlib_h="/* #include <cstdlib> */"
12713 pcg 1.11 fi
12714 pcg 1.1 if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
12715     include_unistd_h="#include <unistd.h>"
12716     else
12717     include_unistd_h="/* #include <unistd.h> */"
12718 pcg 1.11 fi
12719 pcg 1.1 if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
12720 pcg 1.18 include_string_h="#include <cstring>"
12721 pcg 1.1 else
12722 pcg 1.18 include_string_h="/* #include <cstring> */"
12723 pcg 1.11 fi
12724 pcg 1.1 if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
12725     include_fcntl_h="#include <fcntl.h>"
12726     else
12727     include_fcntl_h="/* #include <fcntl.h> */"
12728 pcg 1.11 fi
12729 pcg 1.1 if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
12730     include_util_h="#include <util.h>"
12731     else
12732     include_util_h="/* #include <util.h> */"
12733 pcg 1.11 fi
12734 pcg 1.1 if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
12735     include_assert_h="#include <assert.h>"
12736     else
12737     include_assert_h="/* #include <assert.h> */"
12738 pcg 1.11 fi
12739 pcg 1.1 if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
12740     include_sys_ioctl_h="#include <sys/ioctl.h>"
12741     else
12742     include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
12743 pcg 1.11 fi
12744 pcg 1.1 if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
12745     include_sys_select_h="#include <sys/select.h>"
12746     else
12747     include_sys_select_h="/* #include <sys/select.h> */"
12748 pcg 1.11 fi
12749 pcg 1.1 if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
12750     include_sys_strredir_h="#include <sys/strredir.h>"
12751     else
12752     include_sys_strredir_h="/* #include <sys/strredir.h> */"
12753 pcg 1.11 fi
12754 pcg 1.1 if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
12755     include_sys_time_h="#include <sys/time.h>"
12756     else
12757     include_sys_time_h="/* #include <sys/time.h> */"
12758 pcg 1.11 fi
12759 pcg 1.1 if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
12760     include_time_h="#include <time.h>"
12761     else
12762     include_time_h="/* #include <time.h> */"
12763 pcg 1.11 fi
12764 pcg 1.1
12765 root 1.49 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/rxvtlib.h"
12766 root 1.32
12767 pcg 1.11 cat >confcache <<\_ACEOF
12768 pcg 1.1 # This file is a shell script that caches the results of configure
12769     # tests run on this system so they can be shared between configure
12770 pcg 1.11 # scripts and configure runs, see configure's option --config-cache.
12771     # It is not useful on other systems. If it contains results you don't
12772     # want to keep, you may remove or edit it.
12773 pcg 1.1 #
12774 pcg 1.11 # config.status only pays attention to the cache file if you give it
12775     # the --recheck option to rerun configure.
12776 pcg 1.1 #
12777 pcg 1.11 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12778     # loading this file, other *unset* `ac_cv_foo' will be assigned the
12779     # following values.
12780    
12781     _ACEOF
12782    
12783 pcg 1.1 # The following way of writing the cache mishandles newlines in values,
12784     # but we know of no workaround that is simple, portable, and efficient.
12785     # So, don't put newlines in cache variables' values.
12786     # Ultrix sh set writes to stderr and can't be redirected directly,
12787     # and sets the high bit in the cache file unless we assign to the vars.
12788 pcg 1.11 {
12789     (set) 2>&1 |
12790     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12791     *ac_space=\ *)
12792     # `set' does not quote correctly, so add quotes (double-quote
12793     # substitution turns \\\\ into \\, and sed turns \\ into \).
12794     sed -n \
12795     "s/'/'\\\\''/g;
12796     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12797     ;;
12798     *)
12799     # `set' quotes correctly as required by POSIX, so do not add quotes.
12800     sed -n \
12801     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12802     ;;
12803     esac;
12804     } |
12805     sed '
12806     t clear
12807     : clear
12808     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12809     t end
12810     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12811     : end' >>confcache
12812     if diff $cache_file confcache >/dev/null 2>&1; then :; else
12813 pcg 1.1 if test -w $cache_file; then
12814 pcg 1.11 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12815     cat confcache >$cache_file
12816 pcg 1.1 else
12817     echo "not updating unwritable cache $cache_file"
12818     fi
12819     fi
12820     rm -f confcache
12821    
12822     test "x$prefix" = xNONE && prefix=$ac_default_prefix
12823     # Let make expand exec_prefix.
12824     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12825    
12826 pcg 1.11 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12827     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12828     # trailing colons and then remove the whole line if VPATH becomes empty
12829     # (actually we leave an empty line to preserve line numbers).
12830 pcg 1.1 if test "x$srcdir" = x.; then
12831 pcg 1.11 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12832     s/:*\$(srcdir):*/:/;
12833     s/:*\${srcdir}:*/:/;
12834     s/:*@srcdir@:*/:/;
12835     s/^\([^=]*=[ ]*\):*/\1/;
12836     s/:*$//;
12837     s/^[^=]*=[ ]*$//;
12838     }'
12839 pcg 1.1 fi
12840    
12841 pcg 1.11 DEFS=-DHAVE_CONFIG_H
12842    
12843     ac_libobjs=
12844     ac_ltlibobjs=
12845     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12846     # 1. Remove the extension, and $U if already installed.
12847     ac_i=`echo "$ac_i" |
12848     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12849     # 2. Add them.
12850     ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12851     ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12852     done
12853     LIBOBJS=$ac_libobjs
12854    
12855     LTLIBOBJS=$ac_ltlibobjs
12856    
12857 pcg 1.1
12858    
12859     : ${CONFIG_STATUS=./config.status}
12860 pcg 1.11 ac_clean_files_save=$ac_clean_files
12861     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12862     { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12863     echo "$as_me: creating $CONFIG_STATUS" >&6;}
12864     cat >$CONFIG_STATUS <<_ACEOF
12865     #! $SHELL
12866     # Generated by $as_me.
12867 pcg 1.1 # Run this file to recreate the current configuration.
12868     # Compiler output produced by configure, useful for debugging
12869 pcg 1.11 # configure, is in config.log if it exists.
12870    
12871     debug=false
12872     ac_cs_recheck=false
12873     ac_cs_silent=false
12874     SHELL=\${CONFIG_SHELL-$SHELL}
12875     _ACEOF
12876    
12877     cat >>$CONFIG_STATUS <<\_ACEOF
12878     ## --------------------- ##
12879     ## M4sh Initialization. ##
12880     ## --------------------- ##
12881    
12882     # Be Bourne compatible
12883     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12884     emulate sh
12885     NULLCMD=:
12886     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12887     # is contrary to our usage. Disable this feature.
12888     alias -g '${1+"$@"}'='"$@"'
12889     elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12890     set -o posix
12891     fi
12892     DUALCASE=1; export DUALCASE # for MKS sh
12893    
12894     # Support unset when possible.
12895     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12896     as_unset=unset
12897     else
12898     as_unset=false
12899     fi
12900    
12901    
12902     # Work around bugs in pre-3.0 UWIN ksh.
12903     $as_unset ENV MAIL MAILPATH
12904     PS1='$ '
12905     PS2='> '
12906     PS4='+ '
12907    
12908     # NLS nuisances.
12909     for as_var in \
12910     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12911     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12912     LC_TELEPHONE LC_TIME
12913     do
12914     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12915     eval $as_var=C; export $as_var
12916     else
12917     $as_unset $as_var
12918     fi
12919     done
12920    
12921     # Required to use basename.
12922     if expr a : '\(a\)' >/dev/null 2>&1; then
12923     as_expr=expr
12924     else
12925     as_expr=false
12926     fi
12927    
12928     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12929     as_basename=basename
12930     else
12931     as_basename=false
12932     fi
12933    
12934    
12935     # Name of the executable.
12936     as_me=`$as_basename "$0" ||
12937     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12938     X"$0" : 'X\(//\)$' \| \
12939     X"$0" : 'X\(/\)$' \| \
12940     . : '\(.\)' 2>/dev/null ||
12941     echo X/"$0" |
12942     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12943     /^X\/\(\/\/\)$/{ s//\1/; q; }
12944     /^X\/\(\/\).*/{ s//\1/; q; }
12945     s/.*/./; q'`
12946    
12947    
12948     # PATH needs CR, and LINENO needs CR and PATH.
12949     # Avoid depending upon Character Ranges.
12950     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12951     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12952     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12953     as_cr_digits='0123456789'
12954     as_cr_alnum=$as_cr_Letters$as_cr_digits
12955    
12956     # The user is always right.
12957     if test "${PATH_SEPARATOR+set}" != set; then
12958     echo "#! /bin/sh" >conf$$.sh
12959     echo "exit 0" >>conf$$.sh
12960     chmod +x conf$$.sh
12961     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12962     PATH_SEPARATOR=';'
12963     else
12964     PATH_SEPARATOR=:
12965     fi
12966     rm -f conf$$.sh
12967     fi
12968    
12969    
12970     as_lineno_1=$LINENO
12971     as_lineno_2=$LINENO
12972     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12973     test "x$as_lineno_1" != "x$as_lineno_2" &&
12974     test "x$as_lineno_3" = "x$as_lineno_2" || {
12975     # Find who we are. Look in the path if we contain no path at all
12976     # relative or not.
12977     case $0 in
12978     *[\\/]* ) as_myself=$0 ;;
12979     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12980     for as_dir in $PATH
12981     do
12982     IFS=$as_save_IFS
12983     test -z "$as_dir" && as_dir=.
12984     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12985     done
12986    
12987     ;;
12988     esac
12989     # We did not find ourselves, most probably we were run as `sh COMMAND'
12990     # in which case we are not to be found in the path.
12991     if test "x$as_myself" = x; then
12992     as_myself=$0
12993     fi
12994     if test ! -f "$as_myself"; then
12995     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12996     echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12997     { (exit 1); exit 1; }; }
12998     fi
12999     case $CONFIG_SHELL in
13000     '')
13001     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13002     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13003     do
13004     IFS=$as_save_IFS
13005     test -z "$as_dir" && as_dir=.
13006     for as_base in sh bash ksh sh5; do
13007     case $as_dir in
13008     /*)
13009     if ("$as_dir/$as_base" -c '
13010     as_lineno_1=$LINENO
13011     as_lineno_2=$LINENO
13012     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13013     test "x$as_lineno_1" != "x$as_lineno_2" &&
13014     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13015     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13016     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13017     CONFIG_SHELL=$as_dir/$as_base
13018     export CONFIG_SHELL
13019     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13020     fi;;
13021     esac
13022     done
13023     done
13024     ;;
13025     esac
13026    
13027     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13028     # uniformly replaced by the line number. The first 'sed' inserts a
13029     # line-number line before each line; the second 'sed' does the real
13030     # work. The second script uses 'N' to pair each line-number line
13031     # with the numbered line, and appends trailing '-' during
13032     # substitution so that $LINENO is not a special case at line end.
13033     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13034     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13035     sed '=' <$as_myself |
13036     sed '
13037     N
13038     s,$,-,
13039     : loop
13040     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13041     t loop
13042     s,-$,,
13043     s,^['$as_cr_digits']*\n,,
13044     ' >$as_me.lineno &&
13045     chmod +x $as_me.lineno ||
13046     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13047     echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13048     { (exit 1); exit 1; }; }
13049    
13050     # Don't try to exec as it changes $[0], causing all sort of problems
13051     # (the dirname of $[0] is not the place where we might find the
13052     # original and so on. Autoconf is especially sensible to this).
13053     . ./$as_me.lineno
13054     # Exit status is that of the last command.
13055     exit
13056     }
13057    
13058    
13059     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13060     *c*,-n*) ECHO_N= ECHO_C='
13061     ' ECHO_T=' ' ;;
13062     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13063     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13064     esac
13065    
13066     if expr a : '\(a\)' >/dev/null 2>&1; then
13067     as_expr=expr
13068     else
13069     as_expr=false
13070     fi
13071    
13072     rm -f conf$$ conf$$.exe conf$$.file
13073     echo >conf$$.file
13074     if ln -s conf$$.file conf$$ 2>/dev/null; then
13075     # We could just check for DJGPP; but this test a) works b) is more generic
13076     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13077     if test -f conf$$.exe; then
13078     # Don't use ln at all; we don't have any links
13079     as_ln_s='cp -p'
13080     else
13081     as_ln_s='ln -s'
13082     fi
13083     elif ln conf$$.file conf$$ 2>/dev/null; then
13084     as_ln_s=ln
13085     else
13086     as_ln_s='cp -p'
13087     fi
13088     rm -f conf$$ conf$$.exe conf$$.file
13089    
13090     if mkdir -p . 2>/dev/null; then
13091     as_mkdir_p=:
13092     else
13093     test -d ./-p && rmdir ./-p
13094     as_mkdir_p=false
13095     fi
13096    
13097     as_executable_p="test -f"
13098    
13099     # Sed expression to map a string onto a valid CPP name.
13100     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13101    
13102     # Sed expression to map a string onto a valid variable name.
13103     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13104    
13105    
13106     # IFS
13107     # We need space, tab and new line, in precisely that order.
13108     as_nl='
13109     '
13110     IFS=" $as_nl"
13111    
13112     # CDPATH.
13113     $as_unset CDPATH
13114    
13115     exec 6>&1
13116    
13117     # Open the log real soon, to keep \$[0] and so on meaningful, and to
13118     # report actual input values of CONFIG_FILES etc. instead of their
13119     # values after options handling. Logging --version etc. is OK.
13120     exec 5>>config.log
13121     {
13122     echo
13123     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13124     ## Running $as_me. ##
13125     _ASBOX
13126     } >&5
13127     cat >&5 <<_CSEOF
13128    
13129     This file was extended by $as_me, which was
13130     generated by GNU Autoconf 2.59. Invocation command line was
13131    
13132     CONFIG_FILES = $CONFIG_FILES
13133     CONFIG_HEADERS = $CONFIG_HEADERS
13134     CONFIG_LINKS = $CONFIG_LINKS
13135     CONFIG_COMMANDS = $CONFIG_COMMANDS
13136     $ $0 $@
13137    
13138     _CSEOF
13139     echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13140     echo >&5
13141     _ACEOF
13142    
13143     # Files that config.status was made for.
13144     if test -n "$ac_config_files"; then
13145     echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13146     fi
13147    
13148     if test -n "$ac_config_headers"; then
13149     echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13150     fi
13151    
13152     if test -n "$ac_config_links"; then
13153     echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13154     fi
13155 pcg 1.1
13156 pcg 1.11 if test -n "$ac_config_commands"; then
13157     echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13158     fi
13159    
13160     cat >>$CONFIG_STATUS <<\_ACEOF
13161    
13162     ac_cs_usage="\
13163     \`$as_me' instantiates files from templates according to the
13164     current configuration.
13165    
13166     Usage: $0 [OPTIONS] [FILE]...
13167    
13168     -h, --help print this help, then exit
13169     -V, --version print version number, then exit
13170     -q, --quiet do not print progress messages
13171     -d, --debug don't remove temporary files
13172     --recheck update $as_me by reconfiguring in the same conditions
13173     --file=FILE[:TEMPLATE]
13174     instantiate the configuration file FILE
13175     --header=FILE[:TEMPLATE]
13176     instantiate the configuration header FILE
13177    
13178     Configuration files:
13179     $config_files
13180    
13181     Configuration headers:
13182     $config_headers
13183    
13184     Report bugs to <bug-autoconf@gnu.org>."
13185     _ACEOF
13186    
13187     cat >>$CONFIG_STATUS <<_ACEOF
13188     ac_cs_version="\\
13189     config.status
13190     configured by $0, generated by GNU Autoconf 2.59,
13191     with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13192    
13193     Copyright (C) 2003 Free Software Foundation, Inc.
13194     This config.status script is free software; the Free Software Foundation
13195     gives unlimited permission to copy, distribute and modify it."
13196     srcdir=$srcdir
13197     INSTALL="$INSTALL"
13198     _ACEOF
13199    
13200     cat >>$CONFIG_STATUS <<\_ACEOF
13201     # If no file are specified by the user, then we need to provide default
13202     # value. By we need to know if files were specified by the user.
13203     ac_need_defaults=:
13204     while test $# != 0
13205 pcg 1.1 do
13206 pcg 1.11 case $1 in
13207     --*=*)
13208     ac_option=`expr "x$1" : 'x\([^=]*\)='`
13209     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13210     ac_shift=:
13211     ;;
13212     -*)
13213     ac_option=$1
13214     ac_optarg=$2
13215     ac_shift=shift
13216     ;;
13217     *) # This is not an option, so the user has probably given explicit
13218     # arguments.
13219     ac_option=$1
13220     ac_need_defaults=false;;
13221     esac
13222    
13223     case $ac_option in
13224     # Handling of the options.
13225     _ACEOF
13226     cat >>$CONFIG_STATUS <<\_ACEOF
13227 pcg 1.1 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13228 pcg 1.11 ac_cs_recheck=: ;;
13229     --version | --vers* | -V )
13230     echo "$ac_cs_version"; exit 0 ;;
13231     --he | --h)
13232     # Conflict between --help and --header
13233     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13234     Try \`$0 --help' for more information." >&5
13235     echo "$as_me: error: ambiguous option: $1
13236     Try \`$0 --help' for more information." >&2;}
13237     { (exit 1); exit 1; }; };;
13238     --help | --hel | -h )
13239     echo "$ac_cs_usage"; exit 0 ;;
13240     --debug | --d* | -d )
13241     debug=: ;;
13242     --file | --fil | --fi | --f )
13243     $ac_shift
13244     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13245     ac_need_defaults=false;;
13246     --header | --heade | --head | --hea )
13247     $ac_shift
13248     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13249     ac_need_defaults=false;;
13250     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13251     | -silent | --silent | --silen | --sile | --sil | --si | --s)
13252     ac_cs_silent=: ;;
13253    
13254     # This is an error.
13255     -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13256     Try \`$0 --help' for more information." >&5
13257     echo "$as_me: error: unrecognized option: $1
13258     Try \`$0 --help' for more information." >&2;}
13259     { (exit 1); exit 1; }; } ;;
13260    
13261     *) ac_config_targets="$ac_config_targets $1" ;;
13262    
13263     esac
13264     shift
13265     done
13266    
13267     ac_configure_extra_args=
13268    
13269     if $ac_cs_silent; then
13270     exec 6>/dev/null
13271     ac_configure_extra_args="$ac_configure_extra_args --silent"
13272     fi
13273    
13274     _ACEOF
13275     cat >>$CONFIG_STATUS <<_ACEOF
13276     if \$ac_cs_recheck; then
13277     echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13278     exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13279     fi
13280    
13281     _ACEOF
13282    
13283    
13284    
13285    
13286    
13287     cat >>$CONFIG_STATUS <<\_ACEOF
13288     for ac_config_target in $ac_config_targets
13289     do
13290     case "$ac_config_target" in
13291     # Handling of arguments.
13292     "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
13293     "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13294     "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13295     "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13296     "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
13297     "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;;
13298     *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13299     echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13300     { (exit 1); exit 1; }; };;
13301 pcg 1.1 esac
13302     done
13303    
13304 pcg 1.11 # If the user did not use the arguments to specify the items to instantiate,
13305     # then the envvar interface is used. Set only those that are not.
13306     # We use the long form for the default assignment because of an extremely
13307     # bizarre bug on SunOS 4.1.3.
13308     if $ac_need_defaults; then
13309     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13310     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13311     fi
13312    
13313     # Have a temporary directory for convenience. Make it in the build tree
13314     # simply because there is no reason to put it here, and in addition,
13315     # creating and moving files from /tmp can sometimes cause problems.
13316     # Create a temporary directory, and hook for its removal unless debugging.
13317     $debug ||
13318     {
13319     trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13320     trap '{ (exit 1); exit 1; }' 1 2 13 15
13321     }
13322    
13323     # Create a (secure) tmp directory for tmp files.
13324    
13325     {
13326     tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13327     test -n "$tmp" && test -d "$tmp"
13328     } ||
13329     {
13330     tmp=./confstat$$-$RANDOM
13331     (umask 077 && mkdir $tmp)
13332     } ||
13333     {
13334     echo "$me: cannot create a temporary directory in ." >&2
13335     { (exit 1); exit 1; }
13336     }
13337    
13338     _ACEOF
13339    
13340     cat >>$CONFIG_STATUS <<_ACEOF
13341 pcg 1.1
13342 pcg 1.11 #
13343     # CONFIG_FILES section.
13344     #
13345 pcg 1.1
13346 pcg 1.11 # No need to generate the scripts if there are no CONFIG_FILES.
13347     # This happens for instance when ./config.status config.h
13348     if test -n "\$CONFIG_FILES"; then
13349     # Protect against being on the right side of a sed subst in config.status.
13350     sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13351     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13352     s,@SHELL@,$SHELL,;t t
13353     s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13354     s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13355     s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13356     s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13357     s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13358     s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13359     s,@exec_prefix@,$exec_prefix,;t t
13360     s,@prefix@,$prefix,;t t
13361     s,@program_transform_name@,$program_transform_name,;t t
13362     s,@bindir@,$bindir,;t t
13363     s,@sbindir@,$sbindir,;t t
13364     s,@libexecdir@,$libexecdir,;t t
13365     s,@datadir@,$datadir,;t t
13366     s,@sysconfdir@,$sysconfdir,;t t
13367     s,@sharedstatedir@,$sharedstatedir,;t t
13368     s,@localstatedir@,$localstatedir,;t t
13369     s,@libdir@,$libdir,;t t
13370     s,@includedir@,$includedir,;t t
13371     s,@oldincludedir@,$oldincludedir,;t t
13372     s,@infodir@,$infodir,;t t
13373     s,@mandir@,$mandir,;t t
13374     s,@build_alias@,$build_alias,;t t
13375     s,@host_alias@,$host_alias,;t t
13376     s,@target_alias@,$target_alias,;t t
13377     s,@DEFS@,$DEFS,;t t
13378     s,@ECHO_C@,$ECHO_C,;t t
13379     s,@ECHO_N@,$ECHO_N,;t t
13380     s,@ECHO_T@,$ECHO_T,;t t
13381     s,@LIBS@,$LIBS,;t t
13382 root 1.48 s,@build@,$build,;t t
13383     s,@build_cpu@,$build_cpu,;t t
13384     s,@build_vendor@,$build_vendor,;t t
13385     s,@build_os@,$build_os,;t t
13386     s,@host@,$host,;t t
13387     s,@host_cpu@,$host_cpu,;t t
13388     s,@host_vendor@,$host_vendor,;t t
13389     s,@host_os@,$host_os,;t t
13390 pcg 1.11 s,@VERSION@,$VERSION,;t t
13391     s,@DATE@,$DATE,;t t
13392     s,@LSMDATE@,$LSMDATE,;t t
13393     s,@LIBVERSION@,$LIBVERSION,;t t
13394     s,@CC@,$CC,;t t
13395     s,@CFLAGS@,$CFLAGS,;t t
13396     s,@LDFLAGS@,$LDFLAGS,;t t
13397     s,@CPPFLAGS@,$CPPFLAGS,;t t
13398     s,@ac_ct_CC@,$ac_ct_CC,;t t
13399     s,@EXEEXT@,$EXEEXT,;t t
13400     s,@OBJEXT@,$OBJEXT,;t t
13401     s,@CXX@,$CXX,;t t
13402     s,@CXXFLAGS@,$CXXFLAGS,;t t
13403     s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13404     s,@CPP@,$CPP,;t t
13405     s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13406     s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13407     s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13408     s,@AWK@,$AWK,;t t
13409 pcg 1.13 s,@LINKER@,$LINKER,;t t
13410     s,@CXXCPP@,$CXXCPP,;t t
13411 pcg 1.11 s,@EGREP@,$EGREP,;t t
13412     s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
13413 pcg 1.15 s,@RXVTNAME@,$RXVTNAME,;t t
13414 pcg 1.11 s,@MV@,$MV,;t t
13415     s,@RM@,$RM,;t t
13416     s,@CP@,$CP,;t t
13417     s,@LN@,$LN,;t t
13418     s,@SED@,$SED,;t t
13419 root 1.51 s,@ECHO@,$ECHO,;t t
13420 pcg 1.11 s,@CMP@,$CMP,;t t
13421     s,@TBL@,$TBL,;t t
13422 root 1.39 s,@TIC@,$TIC,;t t
13423 pcg 1.11 s,@X_CFLAGS@,$X_CFLAGS,;t t
13424     s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13425     s,@X_LIBS@,$X_LIBS,;t t
13426     s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13427     s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
13428     s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
13429     s,@XPM_LIBS@,$XPM_LIBS,;t t
13430     s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
13431     s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
13432     s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
13433     s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
13434     s,@rxvt_intp_define@,$rxvt_intp_define,;t t
13435     s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
13436     s,@DEBUG@,$DEBUG,;t t
13437     s,@DINCLUDE@,$DINCLUDE,;t t
13438     s,@DLIB@,$DLIB,;t t
13439     s,@include_stdint_h@,$include_stdint_h,;t t
13440     s,@include_stdarg_h@,$include_stdarg_h,;t t
13441     s,@include_stdlib_h@,$include_stdlib_h,;t t
13442     s,@include_unistd_h@,$include_unistd_h,;t t
13443     s,@include_string_h@,$include_string_h,;t t
13444     s,@include_fcntl_h@,$include_fcntl_h,;t t
13445     s,@include_util_h@,$include_util_h,;t t
13446     s,@include_assert_h@,$include_assert_h,;t t
13447     s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
13448     s,@include_sys_select_h@,$include_sys_select_h,;t t
13449     s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
13450     s,@include_sys_time_h@,$include_sys_time_h,;t t
13451     s,@include_time_h@,$include_time_h,;t t
13452     s,@LIBOBJS@,$LIBOBJS,;t t
13453     s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13454 pcg 1.1 /@MCOMMON@/r $MCOMMON
13455 pcg 1.11 s,@MCOMMON@,,;t t
13456 pcg 1.1 CEOF
13457    
13458 pcg 1.11 _ACEOF
13459 pcg 1.1
13460 pcg 1.11 cat >>$CONFIG_STATUS <<\_ACEOF
13461     # Split the substitutions into bite-sized pieces for seds with
13462     # small command number limits, like on Digital OSF/1 and HP-UX.
13463     ac_max_sed_lines=48
13464     ac_sed_frag=1 # Number of current file.
13465     ac_beg=1 # First line for current file.
13466     ac_end=$ac_max_sed_lines # Line after last line for current file.
13467     ac_more_lines=:
13468     ac_sed_cmds=
13469     while $ac_more_lines; do
13470     if test $ac_beg -gt 1; then
13471     sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13472     else
13473     sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13474     fi
13475     if test ! -s $tmp/subs.frag; then
13476     ac_more_lines=false
13477 pcg 1.1 else
13478 pcg 1.11 # The purpose of the label and of the branching condition is to
13479     # speed up the sed processing (if there are no `@' at all, there
13480     # is no need to browse any of the substitutions).
13481     # These are the two extra sed commands mentioned above.
13482     (echo ':t
13483     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13484     if test -z "$ac_sed_cmds"; then
13485     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13486     else
13487     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13488     fi
13489     ac_sed_frag=`expr $ac_sed_frag + 1`
13490     ac_beg=$ac_end
13491     ac_end=`expr $ac_end + $ac_max_sed_lines`
13492 pcg 1.1 fi
13493 pcg 1.11 done
13494     if test -z "$ac_sed_cmds"; then
13495     ac_sed_cmds=cat
13496 pcg 1.1 fi
13497 pcg 1.11 fi # test -n "$CONFIG_FILES"
13498 pcg 1.1
13499 pcg 1.11 _ACEOF
13500     cat >>$CONFIG_STATUS <<\_ACEOF
13501     for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13502 pcg 1.1 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13503 pcg 1.11 case $ac_file in
13504     - | *:- | *:-:* ) # input from stdin
13505     cat >$tmp/stdin
13506     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13507     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13508     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13509     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13510     * ) ac_file_in=$ac_file.in ;;
13511 pcg 1.1 esac
13512    
13513 pcg 1.11 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13514     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13515     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13516     X"$ac_file" : 'X\(//\)[^/]' \| \
13517     X"$ac_file" : 'X\(//\)$' \| \
13518     X"$ac_file" : 'X\(/\)' \| \
13519     . : '\(.\)' 2>/dev/null ||
13520     echo X"$ac_file" |
13521     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13522     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13523     /^X\(\/\/\)$/{ s//\1/; q; }
13524     /^X\(\/\).*/{ s//\1/; q; }
13525     s/.*/./; q'`
13526     { if $as_mkdir_p; then
13527     mkdir -p "$ac_dir"
13528     else
13529     as_dir="$ac_dir"
13530     as_dirs=
13531     while test ! -d "$as_dir"; do
13532     as_dirs="$as_dir $as_dirs"
13533     as_dir=`(dirname "$as_dir") 2>/dev/null ||
13534     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13535     X"$as_dir" : 'X\(//\)[^/]' \| \
13536     X"$as_dir" : 'X\(//\)$' \| \
13537     X"$as_dir" : 'X\(/\)' \| \
13538     . : '\(.\)' 2>/dev/null ||
13539     echo X"$as_dir" |
13540     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13541     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13542     /^X\(\/\/\)$/{ s//\1/; q; }
13543     /^X\(\/\).*/{ s//\1/; q; }
13544     s/.*/./; q'`
13545     done
13546     test ! -n "$as_dirs" || mkdir $as_dirs
13547     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13548     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13549     { (exit 1); exit 1; }; }; }
13550    
13551     ac_builddir=.
13552    
13553     if test "$ac_dir" != .; then
13554     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13555     # A "../" for each directory in $ac_dir_suffix.
13556     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13557     else
13558     ac_dir_suffix= ac_top_builddir=
13559     fi
13560    
13561     case $srcdir in
13562     .) # No --srcdir option. We are building in place.
13563     ac_srcdir=.
13564     if test -z "$ac_top_builddir"; then
13565     ac_top_srcdir=.
13566     else
13567     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13568     fi ;;
13569     [\\/]* | ?:[\\/]* ) # Absolute path.
13570     ac_srcdir=$srcdir$ac_dir_suffix;
13571     ac_top_srcdir=$srcdir ;;
13572     *) # Relative path.
13573     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13574     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13575     esac
13576    
13577     # Do not use `cd foo && pwd` to compute absolute paths, because
13578     # the directories may not exist.
13579     case `pwd` in
13580     .) ac_abs_builddir="$ac_dir";;
13581     *)
13582     case "$ac_dir" in
13583     .) ac_abs_builddir=`pwd`;;
13584     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13585     *) ac_abs_builddir=`pwd`/"$ac_dir";;
13586     esac;;
13587     esac
13588     case $ac_abs_builddir in
13589     .) ac_abs_top_builddir=${ac_top_builddir}.;;
13590     *)
13591     case ${ac_top_builddir}. in
13592     .) ac_abs_top_builddir=$ac_abs_builddir;;
13593     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13594     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13595     esac;;
13596     esac
13597     case $ac_abs_builddir in
13598     .) ac_abs_srcdir=$ac_srcdir;;
13599     *)
13600     case $ac_srcdir in
13601     .) ac_abs_srcdir=$ac_abs_builddir;;
13602     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13603     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13604     esac;;
13605     esac
13606     case $ac_abs_builddir in
13607     .) ac_abs_top_srcdir=$ac_top_srcdir;;
13608     *)
13609     case $ac_top_srcdir in
13610     .) ac_abs_top_srcdir=$ac_abs_builddir;;
13611     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13612     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13613     esac;;
13614     esac
13615    
13616 pcg 1.1
13617 pcg 1.11 case $INSTALL in
13618     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13619     *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13620 pcg 1.1 esac
13621    
13622 pcg 1.11 # Let's still pretend it is `configure' which instantiates (i.e., don't
13623     # use $as_me), people would be surprised to read:
13624     # /* config.h. Generated by config.status. */
13625     if test x"$ac_file" = x-; then
13626     configure_input=
13627     else
13628     configure_input="$ac_file. "
13629     fi
13630     configure_input=$configure_input"Generated from `echo $ac_file_in |
13631     sed 's,.*/,,'` by configure."
13632    
13633     # First look for the input files in the build tree, otherwise in the
13634     # src tree.
13635     ac_file_inputs=`IFS=:
13636     for f in $ac_file_in; do
13637     case $f in
13638     -) echo $tmp/stdin ;;
13639     [\\/$]*)
13640     # Absolute (can't be DOS-style, as IFS=:)
13641     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13642     echo "$as_me: error: cannot find input file: $f" >&2;}
13643     { (exit 1); exit 1; }; }
13644     echo "$f";;
13645     *) # Relative
13646     if test -f "$f"; then
13647     # Build tree
13648     echo "$f"
13649     elif test -f "$srcdir/$f"; then
13650     # Source tree
13651     echo "$srcdir/$f"
13652     else
13653     # /dev/null tree
13654     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13655     echo "$as_me: error: cannot find input file: $f" >&2;}
13656     { (exit 1); exit 1; }; }
13657     fi;;
13658     esac
13659     done` || { (exit 1); exit 1; }
13660    
13661     if test x"$ac_file" != x-; then
13662     { echo "$as_me:$LINENO: creating $ac_file" >&5
13663     echo "$as_me: creating $ac_file" >&6;}
13664     rm -f "$ac_file"
13665     fi
13666     _ACEOF
13667     cat >>$CONFIG_STATUS <<_ACEOF
13668     sed "$ac_vpsub
13669     $extrasub
13670     _ACEOF
13671     cat >>$CONFIG_STATUS <<\_ACEOF
13672     :t
13673     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13674     s,@configure_input@,$configure_input,;t t
13675     s,@srcdir@,$ac_srcdir,;t t
13676     s,@abs_srcdir@,$ac_abs_srcdir,;t t
13677     s,@top_srcdir@,$ac_top_srcdir,;t t
13678     s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13679     s,@builddir@,$ac_builddir,;t t
13680     s,@abs_builddir@,$ac_abs_builddir,;t t
13681     s,@top_builddir@,$ac_top_builddir,;t t
13682     s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13683     s,@INSTALL@,$ac_INSTALL,;t t
13684     " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13685     rm -f $tmp/stdin
13686     if test x"$ac_file" != x-; then
13687     mv $tmp/out $ac_file
13688     else
13689     cat $tmp/out
13690     rm -f $tmp/out
13691     fi
13692 pcg 1.1
13693 pcg 1.11 done
13694     _ACEOF
13695     cat >>$CONFIG_STATUS <<\_ACEOF
13696 pcg 1.1
13697 pcg 1.11 #
13698     # CONFIG_HEADER section.
13699     #
13700 pcg 1.1
13701     # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13702     # NAME is the cpp macro being defined and VALUE is the value it is being given.
13703     #
13704     # ac_d sets the value in "#define NAME VALUE" lines.
13705 pcg 1.11 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13706     ac_dB='[ ].*$,\1#\2'
13707     ac_dC=' '
13708     ac_dD=',;t'
13709     # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13710     ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13711     ac_uB='$,\1#\2define\3'
13712 pcg 1.1 ac_uC=' '
13713 pcg 1.11 ac_uD=',;t'
13714 pcg 1.1
13715 pcg 1.11 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13716 pcg 1.1 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13717 pcg 1.11 case $ac_file in
13718     - | *:- | *:-:* ) # input from stdin
13719     cat >$tmp/stdin
13720     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13721     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13722     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13723     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13724     * ) ac_file_in=$ac_file.in ;;
13725 pcg 1.1 esac
13726    
13727 pcg 1.11 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13728     echo "$as_me: creating $ac_file" >&6;}
13729 pcg 1.1
13730 pcg 1.11 # First look for the input files in the build tree, otherwise in the
13731     # src tree.
13732     ac_file_inputs=`IFS=:
13733     for f in $ac_file_in; do
13734     case $f in
13735     -) echo $tmp/stdin ;;
13736     [\\/$]*)
13737     # Absolute (can't be DOS-style, as IFS=:)
13738     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13739     echo "$as_me: error: cannot find input file: $f" >&2;}
13740     { (exit 1); exit 1; }; }
13741     # Do quote $f, to prevent DOS paths from being IFS'd.
13742     echo "$f";;
13743     *) # Relative
13744     if test -f "$f"; then
13745     # Build tree
13746     echo "$f"
13747     elif test -f "$srcdir/$f"; then
13748     # Source tree
13749     echo "$srcdir/$f"
13750     else
13751     # /dev/null tree
13752     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13753     echo "$as_me: error: cannot find input file: $f" >&2;}
13754     { (exit 1); exit 1; }; }
13755     fi;;
13756     esac
13757     done` || { (exit 1); exit 1; }
13758     # Remove the trailing spaces.
13759     sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13760    
13761     _ACEOF
13762    
13763     # Transform confdefs.h into two sed scripts, `conftest.defines' and
13764     # `conftest.undefs', that substitutes the proper values into
13765     # config.h.in to produce config.h. The first handles `#define'
13766     # templates, and the second `#undef' templates.
13767     # And first: Protect against being on the right side of a sed subst in
13768     # config.status. Protect against being in an unquoted here document
13769     # in config.status.
13770     rm -f conftest.defines conftest.undefs
13771     # Using a here document instead of a string reduces the quoting nightmare.
13772     # Putting comments in sed scripts is not portable.
13773     #
13774     # `end' is used to avoid that the second main sed command (meant for
13775     # 0-ary CPP macros) applies to n-ary macro definitions.
13776     # See the Autoconf documentation for `clear'.
13777     cat >confdef2sed.sed <<\_ACEOF
13778     s/[\\&,]/\\&/g
13779     s,[\\$`],\\&,g
13780     t clear
13781     : clear
13782     s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13783     t end
13784     s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13785     : end
13786     _ACEOF
13787     # If some macros were called several times there might be several times
13788     # the same #defines, which is useless. Nevertheless, we may not want to
13789     # sort them, since we want the *last* AC-DEFINE to be honored.
13790     uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13791     sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13792     rm -f confdef2sed.sed
13793 pcg 1.1
13794     # This sed command replaces #undef with comments. This is necessary, for
13795     # example, in the case of _POSIX_SOURCE, which is predefined and required
13796     # on some systems where configure will not decide to define it.
13797 pcg 1.11 cat >>conftest.undefs <<\_ACEOF
13798     s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13799     _ACEOF
13800    
13801     # Break up conftest.defines because some shells have a limit on the size
13802     # of here documents, and old seds have small limits too (100 cmds).
13803     echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13804     echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13805     echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13806     echo ' :' >>$CONFIG_STATUS
13807     rm -f conftest.tail
13808     while grep . conftest.defines >/dev/null
13809     do
13810     # Write a limited-size here document to $tmp/defines.sed.
13811     echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13812     # Speed up: don't consider the non `#define' lines.
13813     echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13814     # Work around the forget-to-reset-the-flag bug.
13815     echo 't clr' >>$CONFIG_STATUS
13816     echo ': clr' >>$CONFIG_STATUS
13817     sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13818     echo 'CEOF
13819     sed -f $tmp/defines.sed $tmp/in >$tmp/out
13820     rm -f $tmp/in
13821     mv $tmp/out $tmp/in
13822     ' >>$CONFIG_STATUS
13823     sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13824     rm -f conftest.defines
13825     mv conftest.tail conftest.defines
13826     done
13827     rm -f conftest.defines
13828     echo ' fi # grep' >>$CONFIG_STATUS
13829     echo >>$CONFIG_STATUS
13830    
13831     # Break up conftest.undefs because some shells have a limit on the size
13832     # of here documents, and old seds have small limits too (100 cmds).
13833     echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13834 pcg 1.1 rm -f conftest.tail
13835 pcg 1.11 while grep . conftest.undefs >/dev/null
13836 pcg 1.1 do
13837 pcg 1.11 # Write a limited-size here document to $tmp/undefs.sed.
13838     echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13839     # Speed up: don't consider the non `#undef'
13840     echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13841     # Work around the forget-to-reset-the-flag bug.
13842     echo 't clr' >>$CONFIG_STATUS
13843     echo ': clr' >>$CONFIG_STATUS
13844     sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13845 pcg 1.1 echo 'CEOF
13846 pcg 1.11 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13847     rm -f $tmp/in
13848     mv $tmp/out $tmp/in
13849     ' >>$CONFIG_STATUS
13850     sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13851     rm -f conftest.undefs
13852     mv conftest.tail conftest.undefs
13853     done
13854     rm -f conftest.undefs
13855    
13856     cat >>$CONFIG_STATUS <<\_ACEOF
13857     # Let's still pretend it is `configure' which instantiates (i.e., don't
13858     # use $as_me), people would be surprised to read:
13859     # /* config.h. Generated by config.status. */
13860     if test x"$ac_file" = x-; then
13861     echo "/* Generated by configure. */" >$tmp/config.h
13862     else
13863     echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13864     fi
13865     cat $tmp/in >>$tmp/config.h
13866     rm -f $tmp/in
13867     if test x"$ac_file" != x-; then
13868     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13869     { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13870     echo "$as_me: $ac_file is unchanged" >&6;}
13871     else
13872     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13873     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13874     X"$ac_file" : 'X\(//\)[^/]' \| \
13875     X"$ac_file" : 'X\(//\)$' \| \
13876     X"$ac_file" : 'X\(/\)' \| \
13877     . : '\(.\)' 2>/dev/null ||
13878     echo X"$ac_file" |
13879     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13880     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13881     /^X\(\/\/\)$/{ s//\1/; q; }
13882     /^X\(\/\).*/{ s//\1/; q; }
13883     s/.*/./; q'`
13884     { if $as_mkdir_p; then
13885     mkdir -p "$ac_dir"
13886     else
13887     as_dir="$ac_dir"
13888     as_dirs=
13889     while test ! -d "$as_dir"; do
13890     as_dirs="$as_dir $as_dirs"
13891     as_dir=`(dirname "$as_dir") 2>/dev/null ||
13892     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13893     X"$as_dir" : 'X\(//\)[^/]' \| \
13894     X"$as_dir" : 'X\(//\)$' \| \
13895     X"$as_dir" : 'X\(/\)' \| \
13896     . : '\(.\)' 2>/dev/null ||
13897     echo X"$as_dir" |
13898     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13899     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13900     /^X\(\/\/\)$/{ s//\1/; q; }
13901     /^X\(\/\).*/{ s//\1/; q; }
13902     s/.*/./; q'`
13903     done
13904     test ! -n "$as_dirs" || mkdir $as_dirs
13905     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13906     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13907     { (exit 1); exit 1; }; }; }
13908    
13909     rm -f $ac_file
13910     mv $tmp/config.h $ac_file
13911 pcg 1.1 fi
13912 pcg 1.11 else
13913     cat $tmp/config.h
13914     rm -f $tmp/config.h
13915 pcg 1.1 fi
13916 pcg 1.11 done
13917     _ACEOF
13918    
13919     cat >>$CONFIG_STATUS <<\_ACEOF
13920 pcg 1.1
13921 pcg 1.11 { (exit 0); exit 0; }
13922     _ACEOF
13923     chmod +x $CONFIG_STATUS
13924     ac_clean_files=$ac_clean_files_save
13925 pcg 1.1
13926    
13927 pcg 1.11 # configure is writing to config.log, and then calls config.status.
13928     # config.status does its own redirection, appending to config.log.
13929     # Unfortunately, on DOS this fails, as config.log is still kept open
13930     # by configure, so config.status won't be able to write to it; its
13931     # output is simply discarded. So we exec the FD to /dev/null,
13932     # effectively closing config.log, so it can be properly (re)opened and
13933     # appended to by config.status. When coming back to configure, we
13934     # need to make the FD available again.
13935     if test "$no_create" != yes; then
13936     ac_cs_success=:
13937     ac_config_status_args=
13938     test "$silent" = yes &&
13939     ac_config_status_args="$ac_config_status_args --quiet"
13940     exec 5>/dev/null
13941     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13942     exec 5>>config.log
13943     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13944     # would make configure fail if this is the last instruction.
13945     $ac_cs_success || { (exit 1); exit 1; }
13946     fi
13947 pcg 1.1
13948    
13949     echo "Configuration:
13950    
13951     Rxvt version: $VERSION : $DATE
13952     Source code location: $srcdir
13953     Install path: ${prefix}/bin
13954 pcg 1.13 Compiler: $CXX
13955     Compiler flags: $CFLAGS
13956     Linker: $LINKER"
13957 pcg 1.1
13958     if test "$MALLOC_TYPE" = S; then
13959     echo " malloc support: system default"
13960     fi
13961     if test "$MALLOC_TYPE" = G; then
13962     echo " malloc support: Gray Watson's dmalloc"
13963     fi
13964     if test "$MALLOC_TYPE" = D; then
13965     echo " malloc support: Doug Lea's malloc"
13966     fi
13967    
13968     if test x$support_xpm = xyes; then
13969     echo " Xpm library: $XPM_LIBS"
13970     fi
13971    
13972     echo "
13973     The following are set in config.h
13974     "
13975     echo " pty/tty type: "$rxvt_cv_ptys
13976     if test x$support_utmp != xyes; then
13977 pcg 1.20 echo " utmp support: disabled"
13978     echo
13979 pcg 1.1 else
13980     echo " utmp support: enabled
13981     utmp file: $rxvt_cv_path_utmp
13982     utmpx file: $rxvt_cv_path_utmpx
13983     wtmp file: $rxvt_cv_path_wtmp
13984     wtmpx file: $rxvt_cv_path_wtmpx
13985     lastlog file: $rxvt_cv_path_lastlog
13986 pcg 1.20 ttys/ttytab file: $rxvt_cv_path_ttytab"
13987     echo
13988 pcg 1.1 fi
13989     if test x$term != x; then
13990 pcg 1.18 echo " set TERM to: $term"
13991 pcg 1.1 fi
13992     if test x$terminfo != x; then
13993 pcg 1.18 echo " set TERMINFO to: $terminfo"
13994     fi
13995     echo " default resource name: $RESNAME"
13996     echo " resource class: $RESCLASS"
13997     if test x$RESFALLBACK != x; then
13998     echo " resource class fallback: $RESFALLBACK"
13999 pcg 1.1 fi
14000 pcg 1.18 echo
14001 pcg 1.1 if test x$rxvt_cv_ptys = xUNKNOWN; then
14002     echo ".----------------------------------------------------------------."
14003     echo ". WARNING: could not determine pty/tty type. Do not build until ."
14004     echo ". the appropriate PTYS_ARE_* is defined in config.h ."
14005     echo ".----------------------------------------------------------------."
14006     fi
14007     if test x$support_xpm = xneedsmanualspecification; then
14008     echo ".----------------------------------------------------------------."
14009     echo ". WARNING: --enable-xpm-background was specified however the ."
14010     echo ". XPM includes files and libraries could not be found. ."
14011     echo ". XPM backgrounds are now being DISABLED! If you want ."
14012     echo ". to use them you should rerun configure with the ."
14013     echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
14014     echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
14015     echo ".----------------------------------------------------------------."
14016     fi
14017     if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
14018     echo ".----------------------------------------------------------------."
14019     echo ". WARNING: --enable-xim was specified however the locale support ."
14020     echo ". functions could not be found. ."
14021     echo ". XIM is now being DISABLED! ."
14022     echo ".----------------------------------------------------------------."
14023     fi
14024 pcg 1.20
14025 root 1.53 echo " *** Optionally check src/feature.h for further options ***"
14026 pcg 1.20 echo
14027    
14028     echo ".----------------------------------------------------------------."
14029 root 1.55 echo ". NOTE: some features are disabled by default, try ."
14030 root 1.53 echo ". configure --help to get an idea of the optional features, ."
14031     echo ". or read ./README.configure ."
14032     echo ". ."
14033     echo ". The script ./reconf gives a reasonable baseline, try it if ."
14034     echo ". you do not want to read documentation and still want some ."
14035     echo ". useful features. ."
14036 pcg 1.20 echo ".----------------------------------------------------------------."
14037     echo
14038