ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.107
Committed: Thu Jun 28 17:20:24 2007 UTC (16 years, 10 months ago) by ayin
Branch: MAIN
Changes since 1.106: +0 -2 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 ayin 1.106 # Generated by GNU Autoconf 2.59.
4 pcg 1.1 #
5 ayin 1.106 # 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 ayin 1.106 # Be Bourne compatible
13 pcg 1.11 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 ayin 1.106 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20     set -o posix
21 pcg 1.11 fi
22 ayin 1.106 DUALCASE=1; export DUALCASE # for MKS sh
23 pcg 1.11
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 ayin 1.106 $as_unset ENV MAIL MAILPATH
34 pcg 1.11 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 ayin 1.106 $as_unset $as_var
48 pcg 1.11 fi
49     done
50    
51     # Required to use basename.
52 ayin 1.106 if expr a : '\(a\)' >/dev/null 2>&1; then
53 pcg 1.11 as_expr=expr
54     else
55     as_expr=false
56     fi
57    
58 ayin 1.106 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 pcg 1.11 as_basename=basename
60     else
61     as_basename=false
62     fi
63    
64    
65     # Name of the executable.
66 ayin 1.106 as_me=`$as_basename "$0" ||
67 pcg 1.11 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68     X"$0" : 'X\(//\)$' \| \
69 ayin 1.106 X"$0" : 'X\(/\)$' \| \
70     . : '\(.\)' 2>/dev/null ||
71 pcg 1.11 echo X/"$0" |
72 ayin 1.106 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73     /^X\/\(\/\/\)$/{ s//\1/; q; }
74     /^X\/\(\/\).*/{ s//\1/; q; }
75     s/.*/./; q'`
76 root 1.105
77    
78 ayin 1.106 # 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 root 1.105
86 ayin 1.106 # 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 root 1.105 fi
98    
99 ayin 1.102
100 ayin 1.106 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 ayin 1.102
117 ayin 1.106 ;;
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 pcg 1.11 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 ayin 1.106 for as_base in sh bash ksh sh5; do
136     case $as_dir in
137 pcg 1.11 /*)
138 ayin 1.106 if ("$as_dir/$as_base" -c '
139 root 1.105 as_lineno_1=$LINENO
140     as_lineno_2=$LINENO
141 ayin 1.106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 root 1.105 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 ayin 1.106 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 pcg 1.11
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 ayin 1.106 # 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 pcg 1.11 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 ayin 1.106 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164     sed '=' <$as_myself |
165 pcg 1.11 sed '
166     N
167 ayin 1.106 s,$,-,
168     : loop
169     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 pcg 1.11 t loop
171 ayin 1.106 s,-$,,
172     s,^['$as_cr_digits']*\n,,
173 pcg 1.11 ' >$as_me.lineno &&
174 ayin 1.106 chmod +x $as_me.lineno ||
175 pcg 1.11 { 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 ayin 1.106 # original and so on. Autoconf is especially sensible to this).
181     . ./$as_me.lineno
182 pcg 1.11 # Exit status is that of the last command.
183     exit
184     }
185    
186    
187 ayin 1.106 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 pcg 1.11 esac
193    
194 ayin 1.106 if expr a : '\(a\)' >/dev/null 2>&1; then
195 pcg 1.11 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 ayin 1.106 # 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 pcg 1.11 as_ln_s='cp -p'
208 ayin 1.106 else
209     as_ln_s='ln -s'
210     fi
211 pcg 1.11 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 ayin 1.106 rm -f conf$$ conf$$.exe conf$$.file
217 pcg 1.11
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 ayin 1.106 as_executable_p="test -f"
226 pcg 1.11
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 ayin 1.106 # 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 ayin 1.106 exec 6>&1
250    
251 pcg 1.11 #
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 ayin 1.106 # 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 pcg 1.11 # 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 ayin 1.106 #if HAVE_SYS_TYPES_H
279 pcg 1.11 # include <sys/types.h>
280     #endif
281 ayin 1.106 #if HAVE_SYS_STAT_H
282 pcg 1.11 # include <sys/stat.h>
283     #endif
284 ayin 1.106 #if STDC_HEADERS
285 pcg 1.11 # include <stdlib.h>
286     # include <stddef.h>
287     #else
288 ayin 1.106 # if HAVE_STDLIB_H
289 pcg 1.11 # include <stdlib.h>
290     # endif
291     #endif
292 ayin 1.106 #if HAVE_STRING_H
293     # if !STDC_HEADERS && HAVE_MEMORY_H
294 pcg 1.11 # include <memory.h>
295     # endif
296     # include <string.h>
297     #endif
298 ayin 1.106 #if HAVE_STRINGS_H
299 pcg 1.11 # include <strings.h>
300     #endif
301 ayin 1.106 #if HAVE_INTTYPES_H
302 pcg 1.11 # include <inttypes.h>
303 ayin 1.106 #else
304     # if HAVE_STDINT_H
305     # include <stdint.h>
306     # endif
307 pcg 1.11 #endif
308 ayin 1.106 #if HAVE_UNISTD_H
309 pcg 1.11 # include <unistd.h>
310     #endif"
311    
312 ayin 1.106 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 EGREP LINKER INSTALL_LIBRXVT RXVTNAME TIC CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS afterimage_config 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 PKG_CONFIG XFT_CONFIG PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O LIBAFTERIMAGE_CFLAGS AFTERIMAGE_LIBS 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 root 1.73 ac_subst_files=''
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 ayin 1.106 datadir='${prefix}/share'
344 pcg 1.1 sysconfdir='${prefix}/etc'
345     sharedstatedir='${prefix}/com'
346     localstatedir='${prefix}/var'
347 ayin 1.106 libdir='${exec_prefix}/lib'
348 pcg 1.1 includedir='${prefix}/include'
349     oldincludedir='/usr/include'
350 ayin 1.106 infodir='${prefix}/info'
351     mandir='${prefix}/man'
352 pcg 1.1
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 ayin 1.106 eval "$ac_prev=\$ac_option"
359 pcg 1.1 ac_prev=
360     continue
361     fi
362    
363 ayin 1.106 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 ayin 1.106 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 ayin 1.106 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 pcg 1.1 ac_prev=datadir ;;
391 ayin 1.106 -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 ayin 1.106 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 pcg 1.11 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400     { (exit 1); exit 1; }; }
401 ayin 1.106 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 ayin 1.106 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 pcg 1.11 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409     { (exit 1); exit 1; }; }
410 ayin 1.106 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413     *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416 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 ayin 1.106 | --localstate | --localstat | --localsta | --localst \
468     | --locals | --local | --loca | --loc | --lo)
469 pcg 1.1 ac_prev=localstatedir ;;
470     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 ayin 1.106 | --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 ayin 1.106 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 pcg 1.11 { echo "$as_me: error: invalid package name: $ac_package" >&2
591     { (exit 1); exit 1; }; }
592 ayin 1.106 ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595     *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598 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 ayin 1.106 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 pcg 1.11 { echo "$as_me: error: invalid package name: $ac_package" >&2
604     { (exit 1); exit 1; }; }
605 ayin 1.106 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 ayin 1.106 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639 pcg 1.11 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 ayin 1.106 # Be sure to have absolute paths.
659     for ac_var in exec_prefix prefix
660 pcg 1.11 do
661 ayin 1.106 eval ac_val=$`echo $ac_var`
662 pcg 1.11 case $ac_val in
663 ayin 1.106 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665     { (exit 1); exit 1; }; };;
666     esac
667     done
668    
669     # Be sure to have absolute paths.
670     for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671     localstatedir libdir includedir oldincludedir infodir mandir
672     do
673     eval ac_val=$`echo $ac_var`
674     case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677     { (exit 1); exit 1; }; };;
678 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 ayin 1.106 # Try the directory containing this script, then its parent.
709     ac_confdir=`(dirname "$0") 2>/dev/null ||
710 pcg 1.11 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711     X"$0" : 'X\(//\)[^/]' \| \
712     X"$0" : 'X\(//\)$' \| \
713 ayin 1.106 X"$0" : 'X\(/\)' \| \
714     . : '\(.\)' 2>/dev/null ||
715 pcg 1.11 echo X"$0" |
716 ayin 1.106 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 ayin 1.106 if test ! -r $srcdir/$ac_unique_file; then
723 pcg 1.1 srcdir=..
724     fi
725     else
726     ac_srcdir_defaulted=no
727     fi
728 ayin 1.106 if test ! -r $srcdir/$ac_unique_file; then
729     if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731     { (exit 1); exit 1; }; }
732     else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734     { (exit 1); exit 1; }; }
735     fi
736     fi
737     (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738     { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739     { (exit 1); exit 1; }; }
740     srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741     ac_env_build_alias_set=${build_alias+set}
742     ac_env_build_alias_value=$build_alias
743     ac_cv_env_build_alias_set=${build_alias+set}
744     ac_cv_env_build_alias_value=$build_alias
745     ac_env_host_alias_set=${host_alias+set}
746     ac_env_host_alias_value=$host_alias
747     ac_cv_env_host_alias_set=${host_alias+set}
748     ac_cv_env_host_alias_value=$host_alias
749     ac_env_target_alias_set=${target_alias+set}
750     ac_env_target_alias_value=$target_alias
751     ac_cv_env_target_alias_set=${target_alias+set}
752     ac_cv_env_target_alias_value=$target_alias
753     ac_env_CC_set=${CC+set}
754     ac_env_CC_value=$CC
755     ac_cv_env_CC_set=${CC+set}
756     ac_cv_env_CC_value=$CC
757     ac_env_CFLAGS_set=${CFLAGS+set}
758     ac_env_CFLAGS_value=$CFLAGS
759     ac_cv_env_CFLAGS_set=${CFLAGS+set}
760     ac_cv_env_CFLAGS_value=$CFLAGS
761     ac_env_LDFLAGS_set=${LDFLAGS+set}
762     ac_env_LDFLAGS_value=$LDFLAGS
763     ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764     ac_cv_env_LDFLAGS_value=$LDFLAGS
765     ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766     ac_env_CPPFLAGS_value=$CPPFLAGS
767     ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768     ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769     ac_env_CXX_set=${CXX+set}
770     ac_env_CXX_value=$CXX
771     ac_cv_env_CXX_set=${CXX+set}
772     ac_cv_env_CXX_value=$CXX
773     ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774     ac_env_CXXFLAGS_value=$CXXFLAGS
775     ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776     ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777     ac_env_CPP_set=${CPP+set}
778     ac_env_CPP_value=$CPP
779     ac_cv_env_CPP_set=${CPP+set}
780     ac_cv_env_CPP_value=$CPP
781     ac_env_CXXCPP_set=${CXXCPP+set}
782     ac_env_CXXCPP_value=$CXXCPP
783     ac_cv_env_CXXCPP_set=${CXXCPP+set}
784     ac_cv_env_CXXCPP_value=$CXXCPP
785 root 1.105
786 pcg 1.11 #
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 ayin 1.106 _ACEOF
814    
815     cat <<_ACEOF
816 pcg 1.11 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 ayin 1.106 --datadir=DIR read-only architecture-independent data [PREFIX/share]
834 pcg 1.11 --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 ayin 1.106 --infodir=DIR info documentation [PREFIX/info]
841     --mandir=DIR man documentation [PREFIX/man]
842 pcg 1.11 _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 root 1.103 --enable-xpm-background enable background pixmaps
876     --enable-afterimage enable integration with libAfterImage for background images
877     --enable-afterstep enable integration with AfterStep window manager
878 pcg 1.11 --enable-transparency enable transparent backgrounds
879 pcg 1.24 --enable-tinting enable tinting of transparent bg
880 root 1.31 --enable-fading enable colors fading when off focus
881 pcg 1.11 --enable-rxvt-scroll enable rxvt style scrollbar
882     --enable-next-scroll enable NeXT style scrollbar
883     --enable-xterm-scroll enable Xterm style scrollbar
884 root 1.60 --enable-perl enable embedded perl interpreter
885 pcg 1.11 --enable-plain-scroll enable plain style scrollbar
886     --enable-xim XIM (X Input Method) protocol support
887     --disable-backspace-key disable handling of the backspace key
888     --disable-delete-key disable handling of the delete key
889     --disable-resources disable all resource checking
890 root 1.26 --enable-8bitctrls enable 8 bit control sequences (not recommended)
891 pcg 1.15 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
892 pcg 1.11 --disable-swapscreen disable swap screen support
893 root 1.34 --enable-iso14755 enable support for extended ISO 14755 modes
894 pcg 1.11 --enable-frills enable support for rarely used features
895     --enable-keepscrolling enable continual scrolling on scrollbar arrow press
896     --enable-selectionscrolling enable scrolling during selections
897     --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
898     --enable-slipwheeling enable slip wheel scrolling (requires previous)
899     --enable-smart-resize enable smart growth/shrink behaviour
900     --enable-text-blink enable blinking text
901     --enable-pointer-blank enable pointer blank when typing or inactive pointer
902 root 1.92 --enable-utmp enable utmp (utmpx) support
903     --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
904     --enable-lastlog enable lastlog support (requires --enable-utmp)
905 pcg 1.11
906     Optional Packages:
907     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
908     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
909 root 1.103 --with-afterimage-config=DIR use libAfterImage config script in DIR
910 root 1.41 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
911 pcg 1.15 --with-res-name=NAME use this as default resource name (default: urxvt)
912 pcg 1.18 --with-res-class=CLASS use this as the resource class (default: URxvt)
913 pcg 1.15 --with-name=NAME set the basename for the installed binaries (default: urxvt)
914     --with-term=NAME set the terminal to NAME (default: rxvt)
915 pcg 1.11 --with-terminfo=PATH set the path to the terminfo tree to PATH
916     --with-x use the X Window System
917     --with-xpm-includes=DIR use XPM includes in DIR
918     --with-xpm-library=DIR use XPM library in DIR
919     --with-xpm use XPM
920    
921     Some influential environment variables:
922     CC C compiler command
923     CFLAGS C compiler flags
924     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
925     nonstandard directory <lib dir>
926 ayin 1.106 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
927     headers in a nonstandard directory <include dir>
928 pcg 1.11 CXX C++ compiler command
929     CXXFLAGS C++ compiler flags
930     CPP C preprocessor
931 pcg 1.13 CXXCPP C++ preprocessor
932 pcg 1.11
933     Use these variables to override the choices made by `configure' or to help
934     it to find libraries and programs with nonstandard names/locations.
935    
936     _ACEOF
937     fi
938    
939     if test "$ac_init_help" = "recursive"; then
940     # If there are subdirs, report their specific --help.
941 ayin 1.106 ac_popdir=`pwd`
942 pcg 1.11 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
943 ayin 1.106 test -d $ac_dir || continue
944 pcg 1.11 ac_builddir=.
945    
946 ayin 1.106 if test "$ac_dir" != .; then
947 pcg 1.11 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
948 ayin 1.106 # A "../" for each directory in $ac_dir_suffix.
949     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
950     else
951     ac_dir_suffix= ac_top_builddir=
952     fi
953 pcg 1.11
954     case $srcdir in
955 ayin 1.106 .) # No --srcdir option. We are building in place.
956 pcg 1.11 ac_srcdir=.
957 ayin 1.106 if test -z "$ac_top_builddir"; then
958     ac_top_srcdir=.
959     else
960     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
961     fi ;;
962     [\\/]* | ?:[\\/]* ) # Absolute path.
963 pcg 1.11 ac_srcdir=$srcdir$ac_dir_suffix;
964 ayin 1.106 ac_top_srcdir=$srcdir ;;
965     *) # Relative path.
966     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
967     ac_top_srcdir=$ac_top_builddir$srcdir ;;
968     esac
969    
970     # Do not use `cd foo && pwd` to compute absolute paths, because
971     # the directories may not exist.
972     case `pwd` in
973     .) ac_abs_builddir="$ac_dir";;
974     *)
975     case "$ac_dir" in
976     .) ac_abs_builddir=`pwd`;;
977     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
978     *) ac_abs_builddir=`pwd`/"$ac_dir";;
979     esac;;
980     esac
981     case $ac_abs_builddir in
982     .) ac_abs_top_builddir=${ac_top_builddir}.;;
983     *)
984     case ${ac_top_builddir}. in
985     .) ac_abs_top_builddir=$ac_abs_builddir;;
986     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
987     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
988     esac;;
989     esac
990     case $ac_abs_builddir in
991     .) ac_abs_srcdir=$ac_srcdir;;
992     *)
993     case $ac_srcdir in
994     .) ac_abs_srcdir=$ac_abs_builddir;;
995     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
996     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
997     esac;;
998     esac
999     case $ac_abs_builddir in
1000     .) ac_abs_top_srcdir=$ac_top_srcdir;;
1001     *)
1002     case $ac_top_srcdir in
1003     .) ac_abs_top_srcdir=$ac_abs_builddir;;
1004     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1005     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1006     esac;;
1007 pcg 1.11 esac
1008    
1009 ayin 1.106 cd $ac_dir
1010     # Check for guested configure; otherwise get Cygnus style configure.
1011     if test -f $ac_srcdir/configure.gnu; then
1012     echo
1013     $SHELL $ac_srcdir/configure.gnu --help=recursive
1014     elif test -f $ac_srcdir/configure; then
1015     echo
1016     $SHELL $ac_srcdir/configure --help=recursive
1017     elif test -f $ac_srcdir/configure.ac ||
1018     test -f $ac_srcdir/configure.in; then
1019     echo
1020     $ac_configure --help
1021 pcg 1.11 else
1022     echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1023 ayin 1.106 fi
1024     cd $ac_popdir
1025 pcg 1.11 done
1026     fi
1027    
1028 ayin 1.106 test -n "$ac_init_help" && exit 0
1029 pcg 1.11 if $ac_init_version; then
1030     cat <<\_ACEOF
1031    
1032 ayin 1.106 Copyright (C) 2003 Free Software Foundation, Inc.
1033 pcg 1.11 This configure script is free software; the Free Software Foundation
1034     gives unlimited permission to copy, distribute and modify it.
1035     _ACEOF
1036 ayin 1.106 exit 0
1037 pcg 1.11 fi
1038 ayin 1.106 exec 5>config.log
1039     cat >&5 <<_ACEOF
1040 pcg 1.11 This file contains any messages produced by compilers while
1041     running configure, to aid debugging if configure makes a mistake.
1042    
1043     It was created by $as_me, which was
1044 ayin 1.106 generated by GNU Autoconf 2.59. Invocation command line was
1045 pcg 1.11
1046     $ $0 $@
1047    
1048     _ACEOF
1049     {
1050     cat <<_ASUNAME
1051     ## --------- ##
1052     ## Platform. ##
1053     ## --------- ##
1054    
1055     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1056     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1057     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1058     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1059     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1060    
1061     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1062     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1063    
1064     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1065     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1066     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1067 ayin 1.106 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1068 pcg 1.11 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1069     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1070     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1071    
1072     _ASUNAME
1073    
1074     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1075     for as_dir in $PATH
1076     do
1077     IFS=$as_save_IFS
1078     test -z "$as_dir" && as_dir=.
1079     echo "PATH: $as_dir"
1080     done
1081    
1082     } >&5
1083    
1084     cat >&5 <<_ACEOF
1085    
1086    
1087     ## ----------- ##
1088     ## Core tests. ##
1089     ## ----------- ##
1090    
1091     _ACEOF
1092    
1093    
1094     # Keep a trace of the command line.
1095     # Strip out --no-create and --no-recursion so they do not pile up.
1096     # Strip out --silent because we don't want to record it for future runs.
1097     # Also quote any args containing shell meta-characters.
1098     # Make two passes to allow for proper duplicate-argument suppression.
1099     ac_configure_args=
1100     ac_configure_args0=
1101     ac_configure_args1=
1102 ayin 1.106 ac_sep=
1103 pcg 1.11 ac_must_keep_next=false
1104     for ac_pass in 1 2
1105     do
1106     for ac_arg
1107     do
1108     case $ac_arg in
1109     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1110     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1111     | -silent | --silent | --silen | --sile | --sil)
1112     continue ;;
1113 ayin 1.106 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1114 pcg 1.11 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1115     esac
1116     case $ac_pass in
1117     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1118     2)
1119     ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1120     if test $ac_must_keep_next = true; then
1121     ac_must_keep_next=false # Got value, back to normal.
1122     else
1123     case $ac_arg in
1124     *=* | --config-cache | -C | -disable-* | --disable-* \
1125     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1126     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1127     | -with-* | --with-* | -without-* | --without-* | --x)
1128     case "$ac_configure_args0 " in
1129     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1130     esac
1131     ;;
1132     -* ) ac_must_keep_next=true ;;
1133     esac
1134     fi
1135 ayin 1.106 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1136     # Get rid of the leading space.
1137     ac_sep=" "
1138 pcg 1.11 ;;
1139     esac
1140     done
1141     done
1142     $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1143     $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1144    
1145     # When interrupted or exit'd, cleanup temporary files, and complete
1146     # config.log. We remove comments because anyway the quotes in there
1147     # would cause problems or look ugly.
1148 ayin 1.106 # WARNING: Be sure not to use single quotes in there, as some shells,
1149     # such as our DU 5.0 friend, will then `close' the trap.
1150 pcg 1.11 trap 'exit_status=$?
1151     # Save into config.log some information that might help in debugging.
1152     {
1153     echo
1154    
1155     cat <<\_ASBOX
1156     ## ---------------- ##
1157     ## Cache variables. ##
1158     ## ---------------- ##
1159     _ASBOX
1160     echo
1161     # The following way of writing the cache mishandles newlines in values,
1162 ayin 1.106 {
1163 pcg 1.11 (set) 2>&1 |
1164 ayin 1.106 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1165     *ac_space=\ *)
1166 pcg 1.11 sed -n \
1167 ayin 1.106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1168     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1169     ;;
1170 pcg 1.11 *)
1171 ayin 1.106 sed -n \
1172     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1173 pcg 1.11 ;;
1174 ayin 1.106 esac;
1175     }
1176 pcg 1.11 echo
1177    
1178     cat <<\_ASBOX
1179     ## ----------------- ##
1180     ## Output variables. ##
1181     ## ----------------- ##
1182     _ASBOX
1183     echo
1184     for ac_var in $ac_subst_vars
1185     do
1186 ayin 1.106 eval ac_val=$`echo $ac_var`
1187     echo "$ac_var='"'"'$ac_val'"'"'"
1188 pcg 1.11 done | sort
1189     echo
1190    
1191     if test -n "$ac_subst_files"; then
1192     cat <<\_ASBOX
1193 ayin 1.106 ## ------------- ##
1194     ## Output files. ##
1195     ## ------------- ##
1196 pcg 1.11 _ASBOX
1197     echo
1198     for ac_var in $ac_subst_files
1199     do
1200 ayin 1.106 eval ac_val=$`echo $ac_var`
1201     echo "$ac_var='"'"'$ac_val'"'"'"
1202 pcg 1.11 done | sort
1203     echo
1204     fi
1205    
1206     if test -s confdefs.h; then
1207     cat <<\_ASBOX
1208     ## ----------- ##
1209     ## confdefs.h. ##
1210     ## ----------- ##
1211     _ASBOX
1212     echo
1213 ayin 1.106 sed "/^$/d" confdefs.h | sort
1214 pcg 1.11 echo
1215     fi
1216     test "$ac_signal" != 0 &&
1217     echo "$as_me: caught signal $ac_signal"
1218     echo "$as_me: exit $exit_status"
1219     } >&5
1220 ayin 1.106 rm -f core *.core &&
1221     rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1222 pcg 1.11 exit $exit_status
1223 ayin 1.106 ' 0
1224 pcg 1.11 for ac_signal in 1 2 13 15; do
1225     trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1226     done
1227     ac_signal=0
1228    
1229     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1230 ayin 1.106 rm -rf conftest* confdefs.h
1231     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1232     echo >confdefs.h
1233 pcg 1.11
1234     # Predefined preprocessor variables.
1235    
1236     cat >>confdefs.h <<_ACEOF
1237     #define PACKAGE_NAME "$PACKAGE_NAME"
1238     _ACEOF
1239    
1240    
1241     cat >>confdefs.h <<_ACEOF
1242     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1243     _ACEOF
1244    
1245    
1246     cat >>confdefs.h <<_ACEOF
1247     #define PACKAGE_VERSION "$PACKAGE_VERSION"
1248     _ACEOF
1249    
1250    
1251     cat >>confdefs.h <<_ACEOF
1252     #define PACKAGE_STRING "$PACKAGE_STRING"
1253     _ACEOF
1254    
1255    
1256     cat >>confdefs.h <<_ACEOF
1257     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1258     _ACEOF
1259 pcg 1.1
1260 pcg 1.11
1261     # Let the site file select an alternate cache file if it wants to.
1262 pcg 1.1 # Prefer explicitly selected file to automatically selected ones.
1263 ayin 1.106 if test -z "$CONFIG_SITE"; then
1264     if test "x$prefix" != xNONE; then
1265     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1266     else
1267     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1268     fi
1269 pcg 1.1 fi
1270 ayin 1.106 for ac_site_file in $CONFIG_SITE; do
1271 pcg 1.1 if test -r "$ac_site_file"; then
1272 pcg 1.11 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1273     echo "$as_me: loading site script $ac_site_file" >&6;}
1274     sed 's/^/| /' "$ac_site_file" >&5
1275 pcg 1.1 . "$ac_site_file"
1276     fi
1277     done
1278    
1279     if test -r "$cache_file"; then
1280 pcg 1.11 # Some versions of bash will fail to source /dev/null (special
1281     # files actually), so we avoid doing that.
1282     if test -f "$cache_file"; then
1283     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1284     echo "$as_me: loading cache $cache_file" >&6;}
1285     case $cache_file in
1286 ayin 1.106 [\\/]* | ?:[\\/]* ) . $cache_file;;
1287     *) . ./$cache_file;;
1288 pcg 1.11 esac
1289     fi
1290 pcg 1.1 else
1291 pcg 1.11 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1292     echo "$as_me: creating cache $cache_file" >&6;}
1293     >$cache_file
1294     fi
1295    
1296     # Check that the precious variables saved in the cache have kept the same
1297     # value.
1298     ac_cache_corrupted=false
1299 ayin 1.106 for ac_var in `(set) 2>&1 |
1300     sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1301 pcg 1.11 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1302     eval ac_new_set=\$ac_env_${ac_var}_set
1303 ayin 1.106 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1304     eval ac_new_val="\$ac_env_${ac_var}_value"
1305 pcg 1.11 case $ac_old_set,$ac_new_set in
1306     set,)
1307     { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1308     echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1309     ac_cache_corrupted=: ;;
1310     ,set)
1311     { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1312     echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1313     ac_cache_corrupted=: ;;
1314     ,);;
1315     *)
1316     if test "x$ac_old_val" != "x$ac_new_val"; then
1317     { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1318     echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1319     { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1320     echo "$as_me: former value: $ac_old_val" >&2;}
1321     { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1322     echo "$as_me: current value: $ac_new_val" >&2;}
1323     ac_cache_corrupted=:
1324     fi;;
1325     esac
1326     # Pass precious variables to config.status.
1327     if test "$ac_new_set" = set; then
1328     case $ac_new_val in
1329 ayin 1.106 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1330     ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1331 pcg 1.11 *) ac_arg=$ac_var=$ac_new_val ;;
1332     esac
1333     case " $ac_configure_args " in
1334     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1335     *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1336     esac
1337     fi
1338     done
1339     if $ac_cache_corrupted; then
1340     { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1341     echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1342     { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1343     echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1344     { (exit 1); exit 1; }; }
1345 pcg 1.1 fi
1346    
1347 ayin 1.106 ac_ext=c
1348     ac_cpp='$CPP $CPPFLAGS'
1349     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1350     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1351     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1352    
1353 ayin 1.104
1354 pcg 1.11
1355    
1356    
1357    
1358    
1359    
1360    
1361    
1362    
1363    
1364    
1365    
1366    
1367    
1368    
1369    
1370    
1371 pcg 1.1
1372    
1373 ayin 1.106 ac_config_headers="$ac_config_headers config.h:config.h.in"
1374 root 1.76
1375    
1376 pcg 1.1 ac_aux_dir=
1377 ayin 1.106 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1378     if test -f $ac_dir/install-sh; then
1379 pcg 1.1 ac_aux_dir=$ac_dir
1380     ac_install_sh="$ac_aux_dir/install-sh -c"
1381     break
1382 ayin 1.106 elif test -f $ac_dir/install.sh; then
1383 pcg 1.1 ac_aux_dir=$ac_dir
1384     ac_install_sh="$ac_aux_dir/install.sh -c"
1385     break
1386 ayin 1.106 elif test -f $ac_dir/shtool; then
1387 pcg 1.11 ac_aux_dir=$ac_dir
1388     ac_install_sh="$ac_aux_dir/shtool install -c"
1389     break
1390 pcg 1.1 fi
1391     done
1392     if test -z "$ac_aux_dir"; then
1393 ayin 1.106 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1394     echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1395 pcg 1.11 { (exit 1); exit 1; }; }
1396     fi
1397 ayin 1.106 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1398     ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1399     ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1400 pcg 1.1
1401 root 1.48 # Make sure we can run config.sub.
1402 ayin 1.106 $ac_config_sub sun4 >/dev/null 2>&1 ||
1403     { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1404     echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1405 root 1.48 { (exit 1); exit 1; }; }
1406    
1407 ayin 1.106 echo "$as_me:$LINENO: checking build system type" >&5
1408     echo $ECHO_N "checking build system type... $ECHO_C" >&6
1409 root 1.48 if test "${ac_cv_build+set}" = set; then
1410     echo $ECHO_N "(cached) $ECHO_C" >&6
1411     else
1412 ayin 1.106 ac_cv_build_alias=$build_alias
1413     test -z "$ac_cv_build_alias" &&
1414     ac_cv_build_alias=`$ac_config_guess`
1415     test -z "$ac_cv_build_alias" &&
1416 root 1.48 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1417     echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1418     { (exit 1); exit 1; }; }
1419 ayin 1.106 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1420     { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1421     echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1422 root 1.48 { (exit 1); exit 1; }; }
1423    
1424     fi
1425 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1426     echo "${ECHO_T}$ac_cv_build" >&6
1427 root 1.48 build=$ac_cv_build
1428 ayin 1.106 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1429     build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1430     build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431 root 1.48
1432    
1433 ayin 1.106 echo "$as_me:$LINENO: checking host system type" >&5
1434     echo $ECHO_N "checking host system type... $ECHO_C" >&6
1435 root 1.48 if test "${ac_cv_host+set}" = set; then
1436     echo $ECHO_N "(cached) $ECHO_C" >&6
1437     else
1438 ayin 1.106 ac_cv_host_alias=$host_alias
1439     test -z "$ac_cv_host_alias" &&
1440     ac_cv_host_alias=$ac_cv_build_alias
1441     ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1442     { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1443     echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1444 root 1.48 { (exit 1); exit 1; }; }
1445    
1446     fi
1447 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1448     echo "${ECHO_T}$ac_cv_host" >&6
1449 root 1.48 host=$ac_cv_host
1450 ayin 1.106 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1451     host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1452     host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1453 root 1.48
1454    
1455    
1456 pcg 1.1 VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1457     DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1458     echo ""
1459     echo "configuring for rxvt $VERSION"
1460     echo ""
1461    
1462 root 1.72 orig_CXXFLAGS="$CXXFLAGS"
1463    
1464 pcg 1.1
1465 pcg 1.11 ac_ext=c
1466     ac_cpp='$CPP $CPPFLAGS'
1467     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470     if test -n "$ac_tool_prefix"; then
1471     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1472     set dummy ${ac_tool_prefix}gcc; ac_word=$2
1473 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_word" >&5
1474     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 pcg 1.11 if test "${ac_cv_prog_CC+set}" = set; then
1476     echo $ECHO_N "(cached) $ECHO_C" >&6
1477     else
1478     if test -n "$CC"; then
1479     ac_cv_prog_CC="$CC" # Let the user override the test.
1480     else
1481     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482     for as_dir in $PATH
1483     do
1484     IFS=$as_save_IFS
1485     test -z "$as_dir" && as_dir=.
1486     for ac_exec_ext in '' $ac_executable_extensions; do
1487 ayin 1.106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488 pcg 1.11 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490     break 2
1491     fi
1492     done
1493     done
1494    
1495     fi
1496     fi
1497     CC=$ac_cv_prog_CC
1498     if test -n "$CC"; then
1499 ayin 1.106 echo "$as_me:$LINENO: result: $CC" >&5
1500     echo "${ECHO_T}$CC" >&6
1501 pcg 1.11 else
1502 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
1503     echo "${ECHO_T}no" >&6
1504 pcg 1.11 fi
1505    
1506     fi
1507     if test -z "$ac_cv_prog_CC"; then
1508     ac_ct_CC=$CC
1509     # Extract the first word of "gcc", so it can be a program name with args.
1510 pcg 1.1 set dummy gcc; ac_word=$2
1511 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_word" >&5
1512     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1513 pcg 1.11 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1514     echo $ECHO_N "(cached) $ECHO_C" >&6
1515     else
1516     if test -n "$ac_ct_CC"; then
1517     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1518     else
1519     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1520     for as_dir in $PATH
1521     do
1522     IFS=$as_save_IFS
1523     test -z "$as_dir" && as_dir=.
1524     for ac_exec_ext in '' $ac_executable_extensions; do
1525 ayin 1.106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1526 pcg 1.11 ac_cv_prog_ac_ct_CC="gcc"
1527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1528     break 2
1529     fi
1530     done
1531     done
1532    
1533     fi
1534     fi
1535     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1536     if test -n "$ac_ct_CC"; then
1537 ayin 1.106 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1538     echo "${ECHO_T}$ac_ct_CC" >&6
1539 pcg 1.11 else
1540 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
1541     echo "${ECHO_T}no" >&6
1542 pcg 1.11 fi
1543    
1544 ayin 1.106 CC=$ac_ct_CC
1545 pcg 1.11 else
1546     CC="$ac_cv_prog_CC"
1547     fi
1548    
1549     if test -z "$CC"; then
1550 ayin 1.106 if test -n "$ac_tool_prefix"; then
1551     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1552 pcg 1.11 set dummy ${ac_tool_prefix}cc; ac_word=$2
1553 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_word" >&5
1554     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555 pcg 1.11 if test "${ac_cv_prog_CC+set}" = set; then
1556     echo $ECHO_N "(cached) $ECHO_C" >&6
1557 pcg 1.1 else
1558     if test -n "$CC"; then
1559     ac_cv_prog_CC="$CC" # Let the user override the test.
1560     else
1561 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562     for as_dir in $PATH
1563     do
1564     IFS=$as_save_IFS
1565     test -z "$as_dir" && as_dir=.
1566     for ac_exec_ext in '' $ac_executable_extensions; do
1567 ayin 1.106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568 pcg 1.11 ac_cv_prog_CC="${ac_tool_prefix}cc"
1569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570     break 2
1571     fi
1572     done
1573     done
1574    
1575 pcg 1.1 fi
1576     fi
1577 pcg 1.11 CC=$ac_cv_prog_CC
1578 pcg 1.1 if test -n "$CC"; then
1579 ayin 1.106 echo "$as_me:$LINENO: result: $CC" >&5
1580     echo "${ECHO_T}$CC" >&6
1581     else
1582     echo "$as_me:$LINENO: result: no" >&5
1583     echo "${ECHO_T}no" >&6
1584     fi
1585    
1586     fi
1587     if test -z "$ac_cv_prog_CC"; then
1588     ac_ct_CC=$CC
1589     # Extract the first word of "cc", so it can be a program name with args.
1590     set dummy cc; ac_word=$2
1591     echo "$as_me:$LINENO: checking for $ac_word" >&5
1592     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1594     echo $ECHO_N "(cached) $ECHO_C" >&6
1595     else
1596     if test -n "$ac_ct_CC"; then
1597     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1598     else
1599     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600     for as_dir in $PATH
1601     do
1602     IFS=$as_save_IFS
1603     test -z "$as_dir" && as_dir=.
1604     for ac_exec_ext in '' $ac_executable_extensions; do
1605     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606     ac_cv_prog_ac_ct_CC="cc"
1607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608     break 2
1609     fi
1610     done
1611     done
1612    
1613     fi
1614     fi
1615     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1616     if test -n "$ac_ct_CC"; then
1617     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1618     echo "${ECHO_T}$ac_ct_CC" >&6
1619 ayin 1.104 else
1620 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
1621     echo "${ECHO_T}no" >&6
1622 ayin 1.104 fi
1623    
1624 ayin 1.106 CC=$ac_ct_CC
1625     else
1626     CC="$ac_cv_prog_CC"
1627     fi
1628 root 1.105
1629 pcg 1.11 fi
1630 pcg 1.1 if test -z "$CC"; then
1631     # Extract the first word of "cc", so it can be a program name with args.
1632     set dummy cc; ac_word=$2
1633 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 pcg 1.11 if test "${ac_cv_prog_CC+set}" = set; then
1636     echo $ECHO_N "(cached) $ECHO_C" >&6
1637 pcg 1.1 else
1638     if test -n "$CC"; then
1639     ac_cv_prog_CC="$CC" # Let the user override the test.
1640     else
1641     ac_prog_rejected=no
1642 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643     for as_dir in $PATH
1644     do
1645     IFS=$as_save_IFS
1646     test -z "$as_dir" && as_dir=.
1647     for ac_exec_ext in '' $ac_executable_extensions; do
1648 ayin 1.106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649 pcg 1.11 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1650     ac_prog_rejected=yes
1651     continue
1652     fi
1653     ac_cv_prog_CC="cc"
1654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655     break 2
1656     fi
1657     done
1658     done
1659    
1660 pcg 1.1 if test $ac_prog_rejected = yes; then
1661     # We found a bogon in the path, so make sure we never use it.
1662     set dummy $ac_cv_prog_CC
1663     shift
1664 pcg 1.11 if test $# != 0; then
1665 pcg 1.1 # We chose a different compiler from the bogus one.
1666     # However, it has the same basename, so the bogon will be chosen
1667     # first if we set CC to just the basename; use the full file name.
1668     shift
1669 pcg 1.11 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1670 pcg 1.1 fi
1671     fi
1672     fi
1673     fi
1674 pcg 1.11 CC=$ac_cv_prog_CC
1675 pcg 1.1 if test -n "$CC"; then
1676 ayin 1.106 echo "$as_me:$LINENO: result: $CC" >&5
1677     echo "${ECHO_T}$CC" >&6
1678 pcg 1.1 else
1679 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
1680     echo "${ECHO_T}no" >&6
1681 pcg 1.1 fi
1682    
1683 pcg 1.11 fi
1684     if test -z "$CC"; then
1685     if test -n "$ac_tool_prefix"; then
1686 ayin 1.106 for ac_prog in cl
1687 pcg 1.11 do
1688     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1689     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1690 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 pcg 1.11 if test "${ac_cv_prog_CC+set}" = set; then
1693     echo $ECHO_N "(cached) $ECHO_C" >&6
1694 pcg 1.1 else
1695     if test -n "$CC"; then
1696     ac_cv_prog_CC="$CC" # Let the user override the test.
1697     else
1698 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699     for as_dir in $PATH
1700     do
1701     IFS=$as_save_IFS
1702     test -z "$as_dir" && as_dir=.
1703     for ac_exec_ext in '' $ac_executable_extensions; do
1704 ayin 1.106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 pcg 1.11 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707     break 2
1708     fi
1709     done
1710     done
1711    
1712 pcg 1.1 fi
1713     fi
1714 pcg 1.11 CC=$ac_cv_prog_CC
1715 pcg 1.1 if test -n "$CC"; then
1716 ayin 1.106 echo "$as_me:$LINENO: result: $CC" >&5
1717     echo "${ECHO_T}$CC" >&6
1718 pcg 1.1 else
1719 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
1720     echo "${ECHO_T}no" >&6
1721 pcg 1.11 fi
1722    
1723     test -n "$CC" && break
1724     done
1725 pcg 1.1 fi
1726 pcg 1.11 if test -z "$CC"; then
1727     ac_ct_CC=$CC
1728 ayin 1.106 for ac_prog in cl
1729 pcg 1.11 do
1730     # Extract the first word of "$ac_prog", so it can be a program name with args.
1731     set dummy $ac_prog; ac_word=$2
1732 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 pcg 1.11 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1735     echo $ECHO_N "(cached) $ECHO_C" >&6
1736     else
1737     if test -n "$ac_ct_CC"; then
1738     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1739     else
1740     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741     for as_dir in $PATH
1742     do
1743     IFS=$as_save_IFS
1744     test -z "$as_dir" && as_dir=.
1745     for ac_exec_ext in '' $ac_executable_extensions; do
1746 ayin 1.106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 pcg 1.11 ac_cv_prog_ac_ct_CC="$ac_prog"
1748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749     break 2
1750 pcg 1.1 fi
1751 pcg 1.11 done
1752     done
1753    
1754     fi
1755     fi
1756     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1757     if test -n "$ac_ct_CC"; then
1758 ayin 1.106 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1759     echo "${ECHO_T}$ac_ct_CC" >&6
1760 pcg 1.11 else
1761 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
1762     echo "${ECHO_T}no" >&6
1763 pcg 1.11 fi
1764    
1765     test -n "$ac_ct_CC" && break
1766     done
1767    
1768 ayin 1.106 CC=$ac_ct_CC
1769 pcg 1.11 fi
1770    
1771 pcg 1.1 fi
1772    
1773    
1774 pcg 1.11 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1775     See \`config.log' for more details." >&5
1776     echo "$as_me: error: no acceptable C compiler found in \$PATH
1777     See \`config.log' for more details." >&2;}
1778     { (exit 1); exit 1; }; }
1779    
1780     # Provide some information about the compiler.
1781 ayin 1.106 echo "$as_me:$LINENO:" \
1782     "checking for C compiler version" >&5
1783 pcg 1.11 ac_compiler=`set X $ac_compile; echo $2`
1784 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1785     (eval $ac_compiler --version </dev/null >&5) 2>&5
1786 pcg 1.11 ac_status=$?
1787     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788     (exit $ac_status); }
1789 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1790     (eval $ac_compiler -v </dev/null >&5) 2>&5
1791 pcg 1.11 ac_status=$?
1792     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793     (exit $ac_status); }
1794 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1795     (eval $ac_compiler -V </dev/null >&5) 2>&5
1796 pcg 1.11 ac_status=$?
1797     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798     (exit $ac_status); }
1799    
1800     cat >conftest.$ac_ext <<_ACEOF
1801     /* confdefs.h. */
1802     _ACEOF
1803     cat confdefs.h >>conftest.$ac_ext
1804     cat >>conftest.$ac_ext <<_ACEOF
1805     /* end confdefs.h. */
1806 pcg 1.1
1807 pcg 1.11 int
1808     main ()
1809     {
1810 pcg 1.1
1811 pcg 1.11 ;
1812     return 0;
1813     }
1814     _ACEOF
1815     ac_clean_files_save=$ac_clean_files
1816     ac_clean_files="$ac_clean_files a.out a.exe b.out"
1817     # Try to create an executable without -o first, disregard a.out.
1818     # It will help us diagnose broken compilers, and finding out an intuition
1819     # of exeext.
1820 ayin 1.106 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1821     echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1822 pcg 1.11 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1823 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1824     (eval $ac_link_default) 2>&5
1825 pcg 1.11 ac_status=$?
1826     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827     (exit $ac_status); }; then
1828 ayin 1.106 # Find the output, starting from the most likely. This scheme is
1829     # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1830     # resort.
1831    
1832     # Be careful to initialize this variable, since it used to be cached.
1833     # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1834     ac_cv_exeext=
1835     # b.out is created by i960 compilers.
1836     for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1837 pcg 1.11 do
1838     test -f "$ac_file" || continue
1839     case $ac_file in
1840 ayin 1.106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1841     ;;
1842     conftest.$ac_ext )
1843     # This is the source file.
1844 pcg 1.11 ;;
1845     [ab].out )
1846     # We found the default executable, but exeext='' is most
1847     # certainly right.
1848     break;;
1849     *.* )
1850 ayin 1.106 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1851     # FIXME: I believe we export ac_cv_exeext for Libtool,
1852     # but it would be cool to find out if it's true. Does anybody
1853     # maintain Libtool? --akim.
1854     export ac_cv_exeext
1855 pcg 1.11 break;;
1856     * )
1857     break;;
1858     esac
1859     done
1860     else
1861     echo "$as_me: failed program was:" >&5
1862     sed 's/^/| /' conftest.$ac_ext >&5
1863 pcg 1.1
1864 pcg 1.11 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1865     See \`config.log' for more details." >&5
1866     echo "$as_me: error: C compiler cannot create executables
1867     See \`config.log' for more details." >&2;}
1868     { (exit 77); exit 77; }; }
1869     fi
1870    
1871     ac_exeext=$ac_cv_exeext
1872 ayin 1.106 echo "$as_me:$LINENO: result: $ac_file" >&5
1873     echo "${ECHO_T}$ac_file" >&6
1874 pcg 1.11
1875 ayin 1.106 # Check the compiler produces executables we can run. If not, either
1876 pcg 1.11 # the compiler is broken, or we cross compile.
1877 ayin 1.106 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1878     echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1879 pcg 1.11 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1880     # If not cross compiling, check that we can run a simple program.
1881     if test "$cross_compiling" != yes; then
1882     if { ac_try='./$ac_file'
1883 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1884     (eval $ac_try) 2>&5
1885 pcg 1.11 ac_status=$?
1886     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887     (exit $ac_status); }; }; then
1888     cross_compiling=no
1889     else
1890     if test "$cross_compiling" = maybe; then
1891     cross_compiling=yes
1892     else
1893     { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1894     If you meant to cross compile, use \`--host'.
1895     See \`config.log' for more details." >&5
1896     echo "$as_me: error: cannot run C compiled programs.
1897     If you meant to cross compile, use \`--host'.
1898     See \`config.log' for more details." >&2;}
1899     { (exit 1); exit 1; }; }
1900     fi
1901 pcg 1.1 fi
1902 pcg 1.11 fi
1903 ayin 1.106 echo "$as_me:$LINENO: result: yes" >&5
1904     echo "${ECHO_T}yes" >&6
1905 pcg 1.11
1906     rm -f a.out a.exe conftest$ac_cv_exeext b.out
1907     ac_clean_files=$ac_clean_files_save
1908 ayin 1.106 # Check the compiler produces executables we can run. If not, either
1909 pcg 1.11 # the compiler is broken, or we cross compile.
1910 ayin 1.106 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1911     echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1912     echo "$as_me:$LINENO: result: $cross_compiling" >&5
1913     echo "${ECHO_T}$cross_compiling" >&6
1914    
1915     echo "$as_me:$LINENO: checking for suffix of executables" >&5
1916     echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1917     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1918     (eval $ac_link) 2>&5
1919 pcg 1.11 ac_status=$?
1920     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921     (exit $ac_status); }; then
1922     # If both `conftest.exe' and `conftest' are `present' (well, observable)
1923     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1924     # work properly (i.e., refer to `conftest.exe'), while it won't with
1925     # `rm'.
1926     for ac_file in conftest.exe conftest conftest.*; do
1927     test -f "$ac_file" || continue
1928     case $ac_file in
1929 ayin 1.106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1930 pcg 1.11 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1931 ayin 1.106 export ac_cv_exeext
1932 pcg 1.11 break;;
1933     * ) break;;
1934     esac
1935     done
1936 pcg 1.1 else
1937 pcg 1.11 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1938     See \`config.log' for more details." >&5
1939     echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1940     See \`config.log' for more details." >&2;}
1941     { (exit 1); exit 1; }; }
1942 pcg 1.1 fi
1943 pcg 1.11
1944     rm -f conftest$ac_cv_exeext
1945 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1946     echo "${ECHO_T}$ac_cv_exeext" >&6
1947 pcg 1.11
1948     rm -f conftest.$ac_ext
1949     EXEEXT=$ac_cv_exeext
1950     ac_exeext=$EXEEXT
1951 ayin 1.106 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1952     echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1953 pcg 1.11 if test "${ac_cv_objext+set}" = set; then
1954     echo $ECHO_N "(cached) $ECHO_C" >&6
1955     else
1956     cat >conftest.$ac_ext <<_ACEOF
1957     /* confdefs.h. */
1958     _ACEOF
1959     cat confdefs.h >>conftest.$ac_ext
1960     cat >>conftest.$ac_ext <<_ACEOF
1961     /* end confdefs.h. */
1962    
1963     int
1964     main ()
1965     {
1966    
1967     ;
1968     return 0;
1969     }
1970     _ACEOF
1971     rm -f conftest.o conftest.obj
1972 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1973     (eval $ac_compile) 2>&5
1974 pcg 1.11 ac_status=$?
1975     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976     (exit $ac_status); }; then
1977 ayin 1.106 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1978 pcg 1.11 case $ac_file in
1979 ayin 1.106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1980 pcg 1.11 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1981     break;;
1982     esac
1983     done
1984 pcg 1.1 else
1985 pcg 1.11 echo "$as_me: failed program was:" >&5
1986     sed 's/^/| /' conftest.$ac_ext >&5
1987    
1988     { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1989     See \`config.log' for more details." >&5
1990     echo "$as_me: error: cannot compute suffix of object files: cannot compile
1991     See \`config.log' for more details." >&2;}
1992     { (exit 1); exit 1; }; }
1993 pcg 1.1 fi
1994 pcg 1.11
1995     rm -f conftest.$ac_cv_objext conftest.$ac_ext
1996 pcg 1.1 fi
1997 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1998     echo "${ECHO_T}$ac_cv_objext" >&6
1999 pcg 1.11 OBJEXT=$ac_cv_objext
2000     ac_objext=$OBJEXT
2001 ayin 1.106 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2002     echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2003 pcg 1.11 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2004     echo $ECHO_N "(cached) $ECHO_C" >&6
2005     else
2006     cat >conftest.$ac_ext <<_ACEOF
2007     /* confdefs.h. */
2008     _ACEOF
2009     cat confdefs.h >>conftest.$ac_ext
2010     cat >>conftest.$ac_ext <<_ACEOF
2011     /* end confdefs.h. */
2012    
2013     int
2014     main ()
2015     {
2016     #ifndef __GNUC__
2017     choke me
2018     #endif
2019 pcg 1.1
2020 pcg 1.11 ;
2021     return 0;
2022     }
2023     _ACEOF
2024     rm -f conftest.$ac_objext
2025 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2026     (eval $ac_compile) 2>conftest.er1
2027 pcg 1.11 ac_status=$?
2028     grep -v '^ *+' conftest.er1 >conftest.err
2029     rm -f conftest.er1
2030     cat conftest.err >&5
2031     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 ayin 1.106 (exit $ac_status); } &&
2033     { ac_try='test -z "$ac_c_werror_flag"
2034     || test ! -s conftest.err'
2035     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2036     (eval $ac_try) 2>&5
2037     ac_status=$?
2038     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039     (exit $ac_status); }; } &&
2040     { ac_try='test -s conftest.$ac_objext'
2041     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2042     (eval $ac_try) 2>&5
2043     ac_status=$?
2044     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045     (exit $ac_status); }; }; then
2046 pcg 1.11 ac_compiler_gnu=yes
2047     else
2048     echo "$as_me: failed program was:" >&5
2049     sed 's/^/| /' conftest.$ac_ext >&5
2050    
2051 ayin 1.106 ac_compiler_gnu=no
2052 pcg 1.11 fi
2053 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2054 pcg 1.11 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2055    
2056     fi
2057 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2058     echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2059 pcg 1.11 GCC=`test $ac_compiler_gnu = yes && echo yes`
2060     ac_test_CFLAGS=${CFLAGS+set}
2061     ac_save_CFLAGS=$CFLAGS
2062 ayin 1.106 CFLAGS="-g"
2063     echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2064     echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2065 pcg 1.11 if test "${ac_cv_prog_cc_g+set}" = set; then
2066     echo $ECHO_N "(cached) $ECHO_C" >&6
2067     else
2068 ayin 1.106 cat >conftest.$ac_ext <<_ACEOF
2069 pcg 1.11 /* confdefs.h. */
2070     _ACEOF
2071     cat confdefs.h >>conftest.$ac_ext
2072     cat >>conftest.$ac_ext <<_ACEOF
2073     /* end confdefs.h. */
2074 pcg 1.1
2075 pcg 1.11 int
2076     main ()
2077     {
2078 pcg 1.1
2079 pcg 1.11 ;
2080     return 0;
2081     }
2082     _ACEOF
2083     rm -f conftest.$ac_objext
2084 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2085     (eval $ac_compile) 2>conftest.er1
2086 pcg 1.11 ac_status=$?
2087     grep -v '^ *+' conftest.er1 >conftest.err
2088     rm -f conftest.er1
2089     cat conftest.err >&5
2090     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 ayin 1.106 (exit $ac_status); } &&
2092     { ac_try='test -z "$ac_c_werror_flag"
2093     || test ! -s conftest.err'
2094     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095     (eval $ac_try) 2>&5
2096 pcg 1.11 ac_status=$?
2097     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 ayin 1.106 (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 pcg 1.11 ac_status=$?
2103     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 ayin 1.106 (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 ayin 1.106 ac_cv_prog_cc_g=no
2111 root 1.105 fi
2112 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113 pcg 1.1 fi
2114 ayin 1.106 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 ayin 1.106 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 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
2135     else
2136 ayin 1.106 ac_cv_prog_cc_stdc=no
2137 pcg 1.11 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 ayin 1.106 as 'x'. The following induces an error, until -std1 is added to get
2171 pcg 1.11 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 ayin 1.106 that's true only with -std1. */
2174 pcg 1.11 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 ayin 1.106 # 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 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202     (eval $ac_compile) 2>conftest.er1
2203 pcg 1.11 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 ayin 1.106 (exit $ac_status); } &&
2209     { ac_try='test -z "$ac_c_werror_flag"
2210     || test ! -s conftest.err'
2211     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212     (eval $ac_try) 2>&5
2213     ac_status=$?
2214     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215     (exit $ac_status); }; } &&
2216     { ac_try='test -s conftest.$ac_objext'
2217     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218     (eval $ac_try) 2>&5
2219     ac_status=$?
2220     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221     (exit $ac_status); }; }; then
2222     ac_cv_prog_cc_stdc=$ac_arg
2223     break
2224 pcg 1.1 else
2225 pcg 1.11 echo "$as_me: failed program was:" >&5
2226     sed 's/^/| /' conftest.$ac_ext >&5
2227    
2228 pcg 1.1 fi
2229 ayin 1.106 rm -f conftest.err conftest.$ac_objext
2230 pcg 1.1 done
2231 ayin 1.106 rm -f conftest.$ac_ext conftest.$ac_objext
2232 pcg 1.11 CC=$ac_save_CC
2233 pcg 1.1
2234 pcg 1.11 fi
2235 ayin 1.106
2236     case "x$ac_cv_prog_cc_stdc" in
2237     x|xno)
2238     echo "$as_me:$LINENO: result: none needed" >&5
2239     echo "${ECHO_T}none needed" >&6 ;;
2240 pcg 1.11 *)
2241 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2242     echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2243     CC="$CC $ac_cv_prog_cc_stdc" ;;
2244 pcg 1.11 esac
2245 pcg 1.1
2246 ayin 1.106 # Some people use a C++ compiler to compile C. Since we use `exit',
2247     # in C++ we need to declare it. In case someone uses the same compiler
2248     # for both compiling C and C++ we need to have the C++ compiler decide
2249     # the declaration of exit, since it's the most demanding environment.
2250     cat >conftest.$ac_ext <<_ACEOF
2251     #ifndef __cplusplus
2252     choke me
2253     #endif
2254     _ACEOF
2255     rm -f conftest.$ac_objext
2256     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2257     (eval $ac_compile) 2>conftest.er1
2258     ac_status=$?
2259     grep -v '^ *+' conftest.er1 >conftest.err
2260     rm -f conftest.er1
2261     cat conftest.err >&5
2262     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263     (exit $ac_status); } &&
2264     { ac_try='test -z "$ac_c_werror_flag"
2265     || test ! -s conftest.err'
2266     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267     (eval $ac_try) 2>&5
2268     ac_status=$?
2269     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270     (exit $ac_status); }; } &&
2271     { ac_try='test -s conftest.$ac_objext'
2272     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273     (eval $ac_try) 2>&5
2274     ac_status=$?
2275     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276     (exit $ac_status); }; }; then
2277     for ac_declaration in \
2278     '' \
2279     'extern "C" void std::exit (int) throw (); using std::exit;' \
2280     'extern "C" void std::exit (int); using std::exit;' \
2281     'extern "C" void exit (int) throw ();' \
2282     'extern "C" void exit (int);' \
2283     'void exit (int);'
2284     do
2285     cat >conftest.$ac_ext <<_ACEOF
2286     /* confdefs.h. */
2287     _ACEOF
2288     cat confdefs.h >>conftest.$ac_ext
2289     cat >>conftest.$ac_ext <<_ACEOF
2290     /* end confdefs.h. */
2291     $ac_declaration
2292     #include <stdlib.h>
2293     int
2294     main ()
2295     {
2296     exit (42);
2297     ;
2298     return 0;
2299     }
2300     _ACEOF
2301     rm -f conftest.$ac_objext
2302     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303     (eval $ac_compile) 2>conftest.er1
2304     ac_status=$?
2305     grep -v '^ *+' conftest.er1 >conftest.err
2306     rm -f conftest.er1
2307     cat conftest.err >&5
2308     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309     (exit $ac_status); } &&
2310     { ac_try='test -z "$ac_c_werror_flag"
2311     || test ! -s conftest.err'
2312     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313     (eval $ac_try) 2>&5
2314     ac_status=$?
2315     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316     (exit $ac_status); }; } &&
2317     { ac_try='test -s conftest.$ac_objext'
2318     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319     (eval $ac_try) 2>&5
2320     ac_status=$?
2321     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322     (exit $ac_status); }; }; then
2323     :
2324     else
2325     echo "$as_me: failed program was:" >&5
2326     sed 's/^/| /' conftest.$ac_ext >&5
2327 root 1.105
2328 ayin 1.106 continue
2329     fi
2330     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2331     cat >conftest.$ac_ext <<_ACEOF
2332     /* confdefs.h. */
2333     _ACEOF
2334     cat confdefs.h >>conftest.$ac_ext
2335     cat >>conftest.$ac_ext <<_ACEOF
2336     /* end confdefs.h. */
2337     $ac_declaration
2338     int
2339     main ()
2340     {
2341     exit (42);
2342     ;
2343     return 0;
2344     }
2345     _ACEOF
2346     rm -f conftest.$ac_objext
2347     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348     (eval $ac_compile) 2>conftest.er1
2349     ac_status=$?
2350     grep -v '^ *+' conftest.er1 >conftest.err
2351     rm -f conftest.er1
2352     cat conftest.err >&5
2353     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354     (exit $ac_status); } &&
2355     { ac_try='test -z "$ac_c_werror_flag"
2356     || test ! -s conftest.err'
2357     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358     (eval $ac_try) 2>&5
2359     ac_status=$?
2360     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361     (exit $ac_status); }; } &&
2362     { ac_try='test -s conftest.$ac_objext'
2363     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364     (eval $ac_try) 2>&5
2365     ac_status=$?
2366     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367     (exit $ac_status); }; }; then
2368     break
2369     else
2370     echo "$as_me: failed program was:" >&5
2371     sed 's/^/| /' conftest.$ac_ext >&5
2372    
2373     fi
2374     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2375     done
2376     rm -f conftest*
2377     if test -n "$ac_declaration"; then
2378     echo '#ifdef __cplusplus' >>confdefs.h
2379     echo $ac_declaration >>confdefs.h
2380     echo '#endif' >>confdefs.h
2381     fi
2382    
2383     else
2384     echo "$as_me: failed program was:" >&5
2385     sed 's/^/| /' conftest.$ac_ext >&5
2386    
2387     fi
2388     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2389 root 1.105 ac_ext=c
2390     ac_cpp='$CPP $CPPFLAGS'
2391     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394    
2395 ayin 1.106 ac_ext=cc
2396 root 1.105 ac_cpp='$CXXCPP $CPPFLAGS'
2397     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2398     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2399     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2400 ayin 1.106 if test -n "$ac_tool_prefix"; then
2401     for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2402 root 1.105 do
2403     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2404     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2405 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_word" >&5
2406     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2407 root 1.105 if test "${ac_cv_prog_CXX+set}" = set; then
2408     echo $ECHO_N "(cached) $ECHO_C" >&6
2409     else
2410     if test -n "$CXX"; then
2411     ac_cv_prog_CXX="$CXX" # Let the user override the test.
2412     else
2413     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414     for as_dir in $PATH
2415 ayin 1.104 do
2416 root 1.105 IFS=$as_save_IFS
2417     test -z "$as_dir" && as_dir=.
2418     for ac_exec_ext in '' $ac_executable_extensions; do
2419 ayin 1.106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2420 root 1.105 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422     break 2
2423     fi
2424     done
2425     done
2426    
2427 pcg 1.1 fi
2428     fi
2429 pcg 1.11 CXX=$ac_cv_prog_CXX
2430     if test -n "$CXX"; then
2431 ayin 1.106 echo "$as_me:$LINENO: result: $CXX" >&5
2432     echo "${ECHO_T}$CXX" >&6
2433 pcg 1.1 else
2434 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
2435     echo "${ECHO_T}no" >&6
2436 pcg 1.1 fi
2437    
2438 pcg 1.11 test -n "$CXX" && break
2439     done
2440     fi
2441     if test -z "$CXX"; then
2442     ac_ct_CXX=$CXX
2443 ayin 1.106 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2444 pcg 1.11 do
2445     # Extract the first word of "$ac_prog", so it can be a program name with args.
2446     set dummy $ac_prog; ac_word=$2
2447 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_word" >&5
2448     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2449 pcg 1.11 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2450     echo $ECHO_N "(cached) $ECHO_C" >&6
2451 pcg 1.1 else
2452 pcg 1.11 if test -n "$ac_ct_CXX"; then
2453     ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2454 pcg 1.1 else
2455 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456     for as_dir in $PATH
2457     do
2458     IFS=$as_save_IFS
2459     test -z "$as_dir" && as_dir=.
2460     for ac_exec_ext in '' $ac_executable_extensions; do
2461 ayin 1.106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2462 pcg 1.11 ac_cv_prog_ac_ct_CXX="$ac_prog"
2463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464     break 2
2465     fi
2466     done
2467     done
2468    
2469 pcg 1.1 fi
2470 pcg 1.11 fi
2471     ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2472     if test -n "$ac_ct_CXX"; then
2473 ayin 1.106 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2474     echo "${ECHO_T}$ac_ct_CXX" >&6
2475 pcg 1.11 else
2476 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
2477     echo "${ECHO_T}no" >&6
2478 pcg 1.1 fi
2479    
2480 pcg 1.11 test -n "$ac_ct_CXX" && break
2481     done
2482 ayin 1.106 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2483 pcg 1.11
2484 ayin 1.106 CXX=$ac_ct_CXX
2485 pcg 1.11 fi
2486    
2487 ayin 1.106
2488 pcg 1.11 # Provide some information about the compiler.
2489 ayin 1.106 echo "$as_me:$LINENO:" \
2490     "checking for C++ compiler version" >&5
2491 pcg 1.11 ac_compiler=`set X $ac_compile; echo $2`
2492 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2493     (eval $ac_compiler --version </dev/null >&5) 2>&5
2494 pcg 1.11 ac_status=$?
2495     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496     (exit $ac_status); }
2497 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2498     (eval $ac_compiler -v </dev/null >&5) 2>&5
2499 pcg 1.11 ac_status=$?
2500     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501     (exit $ac_status); }
2502 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2503     (eval $ac_compiler -V </dev/null >&5) 2>&5
2504 pcg 1.11 ac_status=$?
2505     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506     (exit $ac_status); }
2507    
2508 ayin 1.106 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2509     echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2510 pcg 1.11 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2511     echo $ECHO_N "(cached) $ECHO_C" >&6
2512     else
2513     cat >conftest.$ac_ext <<_ACEOF
2514     /* confdefs.h. */
2515     _ACEOF
2516     cat confdefs.h >>conftest.$ac_ext
2517     cat >>conftest.$ac_ext <<_ACEOF
2518     /* end confdefs.h. */
2519    
2520     int
2521     main ()
2522     {
2523     #ifndef __GNUC__
2524     choke me
2525     #endif
2526    
2527     ;
2528     return 0;
2529     }
2530     _ACEOF
2531     rm -f conftest.$ac_objext
2532 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2533     (eval $ac_compile) 2>conftest.er1
2534 pcg 1.11 ac_status=$?
2535     grep -v '^ *+' conftest.er1 >conftest.err
2536     rm -f conftest.er1
2537     cat conftest.err >&5
2538     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 ayin 1.106 (exit $ac_status); } &&
2540     { ac_try='test -z "$ac_cxx_werror_flag"
2541     || test ! -s conftest.err'
2542     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543     (eval $ac_try) 2>&5
2544     ac_status=$?
2545     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546     (exit $ac_status); }; } &&
2547     { ac_try='test -s conftest.$ac_objext'
2548     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549     (eval $ac_try) 2>&5
2550     ac_status=$?
2551     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552     (exit $ac_status); }; }; then
2553 pcg 1.11 ac_compiler_gnu=yes
2554     else
2555     echo "$as_me: failed program was:" >&5
2556     sed 's/^/| /' conftest.$ac_ext >&5
2557    
2558 ayin 1.106 ac_compiler_gnu=no
2559 pcg 1.11 fi
2560 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2561 pcg 1.11 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2562    
2563     fi
2564 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2565     echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2566 pcg 1.11 GXX=`test $ac_compiler_gnu = yes && echo yes`
2567     ac_test_CXXFLAGS=${CXXFLAGS+set}
2568     ac_save_CXXFLAGS=$CXXFLAGS
2569 ayin 1.106 CXXFLAGS="-g"
2570     echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2571     echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2572 pcg 1.11 if test "${ac_cv_prog_cxx_g+set}" = set; then
2573     echo $ECHO_N "(cached) $ECHO_C" >&6
2574     else
2575 ayin 1.106 cat >conftest.$ac_ext <<_ACEOF
2576 pcg 1.11 /* confdefs.h. */
2577     _ACEOF
2578     cat confdefs.h >>conftest.$ac_ext
2579     cat >>conftest.$ac_ext <<_ACEOF
2580     /* end confdefs.h. */
2581    
2582     int
2583     main ()
2584     {
2585    
2586     ;
2587     return 0;
2588     }
2589     _ACEOF
2590     rm -f conftest.$ac_objext
2591 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592     (eval $ac_compile) 2>conftest.er1
2593 pcg 1.11 ac_status=$?
2594     grep -v '^ *+' conftest.er1 >conftest.err
2595     rm -f conftest.er1
2596     cat conftest.err >&5
2597     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 ayin 1.106 (exit $ac_status); } &&
2599     { ac_try='test -z "$ac_cxx_werror_flag"
2600     || test ! -s conftest.err'
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); }; } &&
2606     { ac_try='test -s conftest.$ac_objext'
2607     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608     (eval $ac_try) 2>&5
2609     ac_status=$?
2610     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611     (exit $ac_status); }; }; then
2612 pcg 1.11 ac_cv_prog_cxx_g=yes
2613     else
2614     echo "$as_me: failed program was:" >&5
2615     sed 's/^/| /' conftest.$ac_ext >&5
2616    
2617 ayin 1.106 ac_cv_prog_cxx_g=no
2618     fi
2619     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2620     fi
2621     echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2622     echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2623     if test "$ac_test_CXXFLAGS" = set; then
2624     CXXFLAGS=$ac_save_CXXFLAGS
2625     elif test $ac_cv_prog_cxx_g = yes; then
2626     if test "$GXX" = yes; then
2627     CXXFLAGS="-g -O2"
2628     else
2629     CXXFLAGS="-g"
2630     fi
2631     else
2632     if test "$GXX" = yes; then
2633     CXXFLAGS="-O2"
2634     else
2635     CXXFLAGS=
2636     fi
2637     fi
2638     for ac_declaration in \
2639     '' \
2640     'extern "C" void std::exit (int) throw (); using std::exit;' \
2641     'extern "C" void std::exit (int); using std::exit;' \
2642     'extern "C" void exit (int) throw ();' \
2643     'extern "C" void exit (int);' \
2644     'void exit (int);'
2645     do
2646     cat >conftest.$ac_ext <<_ACEOF
2647 pcg 1.11 /* confdefs.h. */
2648     _ACEOF
2649     cat confdefs.h >>conftest.$ac_ext
2650     cat >>conftest.$ac_ext <<_ACEOF
2651     /* end confdefs.h. */
2652 ayin 1.106 $ac_declaration
2653     #include <stdlib.h>
2654 pcg 1.11 int
2655     main ()
2656     {
2657 ayin 1.106 exit (42);
2658 pcg 1.11 ;
2659     return 0;
2660     }
2661     _ACEOF
2662     rm -f conftest.$ac_objext
2663 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2664     (eval $ac_compile) 2>conftest.er1
2665 pcg 1.11 ac_status=$?
2666     grep -v '^ *+' conftest.er1 >conftest.err
2667     rm -f conftest.er1
2668     cat conftest.err >&5
2669     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 ayin 1.106 (exit $ac_status); } &&
2671     { ac_try='test -z "$ac_cxx_werror_flag"
2672     || test ! -s conftest.err'
2673     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674     (eval $ac_try) 2>&5
2675     ac_status=$?
2676     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677     (exit $ac_status); }; } &&
2678     { ac_try='test -s conftest.$ac_objext'
2679     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680     (eval $ac_try) 2>&5
2681     ac_status=$?
2682     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683     (exit $ac_status); }; }; then
2684 pcg 1.11 :
2685     else
2686     echo "$as_me: failed program was:" >&5
2687     sed 's/^/| /' conftest.$ac_ext >&5
2688    
2689 ayin 1.106 continue
2690     fi
2691     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2692     cat >conftest.$ac_ext <<_ACEOF
2693 pcg 1.11 /* confdefs.h. */
2694     _ACEOF
2695     cat confdefs.h >>conftest.$ac_ext
2696     cat >>conftest.$ac_ext <<_ACEOF
2697     /* end confdefs.h. */
2698 ayin 1.106 $ac_declaration
2699 pcg 1.11 int
2700     main ()
2701     {
2702 ayin 1.106 exit (42);
2703 pcg 1.11 ;
2704     return 0;
2705     }
2706     _ACEOF
2707     rm -f conftest.$ac_objext
2708 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2709     (eval $ac_compile) 2>conftest.er1
2710 pcg 1.11 ac_status=$?
2711     grep -v '^ *+' conftest.er1 >conftest.err
2712     rm -f conftest.er1
2713     cat conftest.err >&5
2714     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 ayin 1.106 (exit $ac_status); } &&
2716     { ac_try='test -z "$ac_cxx_werror_flag"
2717     || test ! -s conftest.err'
2718     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719     (eval $ac_try) 2>&5
2720     ac_status=$?
2721     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722     (exit $ac_status); }; } &&
2723     { ac_try='test -s conftest.$ac_objext'
2724     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725     (eval $ac_try) 2>&5
2726     ac_status=$?
2727     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728     (exit $ac_status); }; }; then
2729     break
2730 pcg 1.11 else
2731     echo "$as_me: failed program was:" >&5
2732     sed 's/^/| /' conftest.$ac_ext >&5
2733    
2734     fi
2735 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2736     done
2737     rm -f conftest*
2738     if test -n "$ac_declaration"; then
2739     echo '#ifdef __cplusplus' >>confdefs.h
2740     echo $ac_declaration >>confdefs.h
2741     echo '#endif' >>confdefs.h
2742 pcg 1.11 fi
2743    
2744     ac_ext=c
2745     ac_cpp='$CPP $CPPFLAGS'
2746     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749 pcg 1.1
2750 pcg 1.11 ac_ext=c
2751     ac_cpp='$CPP $CPPFLAGS'
2752     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2753     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2754     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2755 ayin 1.106 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2756     echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2757 pcg 1.1 # On Suns, sometimes $CPP names a directory.
2758     if test -n "$CPP" && test -d "$CPP"; then
2759     CPP=
2760     fi
2761     if test -z "$CPP"; then
2762 pcg 1.11 if test "${ac_cv_prog_CPP+set}" = set; then
2763     echo $ECHO_N "(cached) $ECHO_C" >&6
2764 pcg 1.1 else
2765 pcg 1.11 # Double quotes because CPP needs to be expanded
2766     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2767     do
2768     ac_preproc_ok=false
2769     for ac_c_preproc_warn_flag in '' yes
2770     do
2771     # Use a header file that comes with gcc, so configuring glibc
2772     # with a fresh cross-compiler works.
2773     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2774     # <limits.h> exists even on freestanding compilers.
2775 pcg 1.1 # On the NeXT, cc -E runs the code through the compiler's parser,
2776 pcg 1.11 # not just through cpp. "Syntax error" is here to catch this case.
2777     cat >conftest.$ac_ext <<_ACEOF
2778     /* confdefs.h. */
2779     _ACEOF
2780     cat confdefs.h >>conftest.$ac_ext
2781     cat >>conftest.$ac_ext <<_ACEOF
2782     /* end confdefs.h. */
2783     #ifdef __STDC__
2784     # include <limits.h>
2785     #else
2786     # include <assert.h>
2787     #endif
2788     Syntax error
2789     _ACEOF
2790 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2791     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2792 pcg 1.11 ac_status=$?
2793     grep -v '^ *+' conftest.er1 >conftest.err
2794     rm -f conftest.er1
2795     cat conftest.err >&5
2796     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 ayin 1.106 (exit $ac_status); } >/dev/null; then
2798     if test -s conftest.err; then
2799     ac_cpp_err=$ac_c_preproc_warn_flag
2800     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2801     else
2802     ac_cpp_err=
2803     fi
2804     else
2805     ac_cpp_err=yes
2806     fi
2807     if test -z "$ac_cpp_err"; then
2808 pcg 1.1 :
2809     else
2810 pcg 1.11 echo "$as_me: failed program was:" >&5
2811     sed 's/^/| /' conftest.$ac_ext >&5
2812    
2813     # Broken: fails on valid input.
2814     continue
2815     fi
2816     rm -f conftest.err conftest.$ac_ext
2817    
2818 ayin 1.106 # OK, works on sane cases. Now check whether non-existent headers
2819 pcg 1.11 # can be detected and how.
2820     cat >conftest.$ac_ext <<_ACEOF
2821     /* confdefs.h. */
2822     _ACEOF
2823     cat confdefs.h >>conftest.$ac_ext
2824     cat >>conftest.$ac_ext <<_ACEOF
2825     /* end confdefs.h. */
2826     #include <ac_nonexistent.h>
2827     _ACEOF
2828 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2829     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2830 pcg 1.11 ac_status=$?
2831     grep -v '^ *+' conftest.er1 >conftest.err
2832     rm -f conftest.er1
2833     cat conftest.err >&5
2834     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 ayin 1.106 (exit $ac_status); } >/dev/null; then
2836     if test -s conftest.err; then
2837     ac_cpp_err=$ac_c_preproc_warn_flag
2838     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2839     else
2840     ac_cpp_err=
2841     fi
2842     else
2843     ac_cpp_err=yes
2844     fi
2845     if test -z "$ac_cpp_err"; then
2846 pcg 1.11 # Broken: success on invalid input.
2847     continue
2848     else
2849     echo "$as_me: failed program was:" >&5
2850     sed 's/^/| /' conftest.$ac_ext >&5
2851    
2852     # Passes both tests.
2853     ac_preproc_ok=:
2854     break
2855     fi
2856     rm -f conftest.err conftest.$ac_ext
2857    
2858     done
2859     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2860     rm -f conftest.err conftest.$ac_ext
2861     if $ac_preproc_ok; then
2862     break
2863     fi
2864    
2865     done
2866     ac_cv_prog_CPP=$CPP
2867    
2868     fi
2869     CPP=$ac_cv_prog_CPP
2870     else
2871     ac_cv_prog_CPP=$CPP
2872     fi
2873 ayin 1.106 echo "$as_me:$LINENO: result: $CPP" >&5
2874     echo "${ECHO_T}$CPP" >&6
2875 pcg 1.11 ac_preproc_ok=false
2876     for ac_c_preproc_warn_flag in '' yes
2877     do
2878     # Use a header file that comes with gcc, so configuring glibc
2879     # with a fresh cross-compiler works.
2880     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2881     # <limits.h> exists even on freestanding compilers.
2882     # On the NeXT, cc -E runs the code through the compiler's parser,
2883     # not just through cpp. "Syntax error" is here to catch this case.
2884     cat >conftest.$ac_ext <<_ACEOF
2885     /* confdefs.h. */
2886     _ACEOF
2887     cat confdefs.h >>conftest.$ac_ext
2888     cat >>conftest.$ac_ext <<_ACEOF
2889     /* end confdefs.h. */
2890     #ifdef __STDC__
2891     # include <limits.h>
2892     #else
2893     # include <assert.h>
2894     #endif
2895     Syntax error
2896     _ACEOF
2897 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2898     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2899 pcg 1.11 ac_status=$?
2900     grep -v '^ *+' conftest.er1 >conftest.err
2901     rm -f conftest.er1
2902     cat conftest.err >&5
2903     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 ayin 1.106 (exit $ac_status); } >/dev/null; then
2905     if test -s conftest.err; then
2906     ac_cpp_err=$ac_c_preproc_warn_flag
2907     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2908     else
2909     ac_cpp_err=
2910     fi
2911     else
2912     ac_cpp_err=yes
2913     fi
2914     if test -z "$ac_cpp_err"; then
2915 pcg 1.1 :
2916     else
2917 pcg 1.11 echo "$as_me: failed program was:" >&5
2918     sed 's/^/| /' conftest.$ac_ext >&5
2919    
2920     # Broken: fails on valid input.
2921     continue
2922 pcg 1.1 fi
2923 pcg 1.11 rm -f conftest.err conftest.$ac_ext
2924    
2925 ayin 1.106 # OK, works on sane cases. Now check whether non-existent headers
2926 pcg 1.11 # can be detected and how.
2927     cat >conftest.$ac_ext <<_ACEOF
2928     /* confdefs.h. */
2929     _ACEOF
2930     cat confdefs.h >>conftest.$ac_ext
2931     cat >>conftest.$ac_ext <<_ACEOF
2932     /* end confdefs.h. */
2933     #include <ac_nonexistent.h>
2934     _ACEOF
2935 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2936     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2937 pcg 1.11 ac_status=$?
2938     grep -v '^ *+' conftest.er1 >conftest.err
2939     rm -f conftest.er1
2940     cat conftest.err >&5
2941     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 ayin 1.106 (exit $ac_status); } >/dev/null; then
2943     if test -s conftest.err; then
2944     ac_cpp_err=$ac_c_preproc_warn_flag
2945     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2946     else
2947     ac_cpp_err=
2948     fi
2949     else
2950     ac_cpp_err=yes
2951     fi
2952     if test -z "$ac_cpp_err"; then
2953 pcg 1.11 # Broken: success on invalid input.
2954     continue
2955     else
2956     echo "$as_me: failed program was:" >&5
2957     sed 's/^/| /' conftest.$ac_ext >&5
2958    
2959     # Passes both tests.
2960     ac_preproc_ok=:
2961     break
2962 pcg 1.1 fi
2963 pcg 1.11 rm -f conftest.err conftest.$ac_ext
2964    
2965     done
2966     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2967     rm -f conftest.err conftest.$ac_ext
2968     if $ac_preproc_ok; then
2969     :
2970 pcg 1.1 else
2971 pcg 1.11 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2972     See \`config.log' for more details." >&5
2973     echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2974     See \`config.log' for more details." >&2;}
2975     { (exit 1); exit 1; }; }
2976 pcg 1.1 fi
2977 pcg 1.11
2978     ac_ext=c
2979     ac_cpp='$CPP $CPPFLAGS'
2980     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983 pcg 1.1
2984     # Find a good install program. We prefer a C program (faster),
2985     # so one script is as good as another. But avoid the broken or
2986     # incompatible versions:
2987     # SysV /etc/install, /usr/sbin/install
2988     # SunOS /usr/etc/install
2989     # IRIX /sbin/install
2990     # AIX /bin/install
2991 pcg 1.11 # AmigaOS /C/install, which installs bootblocks on floppy discs
2992 pcg 1.1 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2993     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2994     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2995 pcg 1.11 # OS/2's system install, which has a completely different semantic
2996 pcg 1.1 # ./install, which can be erroneously created by make from ./install.sh.
2997 ayin 1.106 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2998     echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2999 pcg 1.1 if test -z "$INSTALL"; then
3000 pcg 1.11 if test "${ac_cv_path_install+set}" = set; then
3001     echo $ECHO_N "(cached) $ECHO_C" >&6
3002 pcg 1.1 else
3003 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004     for as_dir in $PATH
3005     do
3006     IFS=$as_save_IFS
3007     test -z "$as_dir" && as_dir=.
3008     # Account for people who put trailing slashes in PATH elements.
3009     case $as_dir/ in
3010     ./ | .// | /cC/* | \
3011     /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3012     ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3013     /usr/ucb/* ) ;;
3014     *)
3015     # OSF1 and SCO ODT 3.0 have their own names for install.
3016     # Don't use installbsd from OSF since it installs stuff as root
3017     # by default.
3018     for ac_prog in ginstall scoinst install; do
3019     for ac_exec_ext in '' $ac_executable_extensions; do
3020 ayin 1.106 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3021 pcg 1.1 if test $ac_prog = install &&
3022 pcg 1.11 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3023 pcg 1.1 # AIX install. It has an incompatible calling convention.
3024     :
3025 pcg 1.11 elif test $ac_prog = install &&
3026     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3027     # program-specific install script used by HP pwplus--don't use.
3028     :
3029 pcg 1.1 else
3030 pcg 1.11 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3031     break 3
3032 pcg 1.1 fi
3033     fi
3034     done
3035 pcg 1.11 done
3036     ;;
3037     esac
3038     done
3039    
3040 pcg 1.1
3041     fi
3042     if test "${ac_cv_path_install+set}" = set; then
3043 pcg 1.11 INSTALL=$ac_cv_path_install
3044 pcg 1.1 else
3045 ayin 1.106 # As a last resort, use the slow shell script. We don't cache a
3046     # path for INSTALL within a source directory, because that will
3047 pcg 1.1 # break other packages using the cache if that directory is
3048 ayin 1.106 # removed, or if the path is relative.
3049 pcg 1.11 INSTALL=$ac_install_sh
3050 pcg 1.1 fi
3051     fi
3052 ayin 1.106 echo "$as_me:$LINENO: result: $INSTALL" >&5
3053     echo "${ECHO_T}$INSTALL" >&6
3054 pcg 1.1
3055     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3056     # It thinks the first close brace ends the variable substitution.
3057     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3058    
3059 pcg 1.11 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3060 pcg 1.1
3061     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3062    
3063    
3064 pcg 1.11
3065    
3066 ayin 1.106 echo "$as_me:$LINENO: checking for egrep" >&5
3067     echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3068     if test "${ac_cv_prog_egrep+set}" = set; then
3069 ayin 1.102 echo $ECHO_N "(cached) $ECHO_C" >&6
3070     else
3071 ayin 1.106 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3072     then ac_cv_prog_egrep='grep -E'
3073     else ac_cv_prog_egrep='egrep'
3074 root 1.105 fi
3075     fi
3076 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3077     echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3078     EGREP=$ac_cv_prog_egrep
3079 root 1.105
3080    
3081    
3082 ayin 1.106 echo "$as_me:$LINENO: checking for AIX" >&5
3083     echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3084 ayin 1.102 cat >conftest.$ac_ext <<_ACEOF
3085 pcg 1.11 /* confdefs.h. */
3086     _ACEOF
3087     cat confdefs.h >>conftest.$ac_ext
3088     cat >>conftest.$ac_ext <<_ACEOF
3089     /* end confdefs.h. */
3090 root 1.105 #ifdef _AIX
3091     yes
3092     #endif
3093 pcg 1.1
3094 pcg 1.11 _ACEOF
3095 root 1.105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3096     $EGREP "yes" >/dev/null 2>&1; then
3097 ayin 1.106 echo "$as_me:$LINENO: result: yes" >&5
3098     echo "${ECHO_T}yes" >&6
3099 root 1.105 cat >>confdefs.h <<\_ACEOF
3100     #define _ALL_SOURCE 1
3101     _ACEOF
3102    
3103 root 1.80 else
3104 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
3105     echo "${ECHO_T}no" >&6
3106 root 1.105 fi
3107     rm -f conftest*
3108    
3109 root 1.80
3110 ayin 1.106 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3111     echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3112 root 1.105 if test "${ac_cv_search_strerror+set}" = set; then
3113     echo $ECHO_N "(cached) $ECHO_C" >&6
3114     else
3115     ac_func_search_save_LIBS=$LIBS
3116 ayin 1.106 ac_cv_search_strerror=no
3117 root 1.105 cat >conftest.$ac_ext <<_ACEOF
3118 ayin 1.104 /* confdefs.h. */
3119     _ACEOF
3120     cat confdefs.h >>conftest.$ac_ext
3121     cat >>conftest.$ac_ext <<_ACEOF
3122     /* end confdefs.h. */
3123    
3124 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
3125 ayin 1.104 #ifdef __cplusplus
3126     extern "C"
3127     #endif
3128 ayin 1.106 /* We use char because int might match the return type of a gcc2
3129     builtin and then its argument prototype would still apply. */
3130 ayin 1.104 char strerror ();
3131     int
3132     main ()
3133     {
3134 ayin 1.106 strerror ();
3135 ayin 1.104 ;
3136     return 0;
3137     }
3138     _ACEOF
3139 ayin 1.106 rm -f conftest.$ac_objext conftest$ac_exeext
3140     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3141     (eval $ac_link) 2>conftest.er1
3142 ayin 1.104 ac_status=$?
3143     grep -v '^ *+' conftest.er1 >conftest.err
3144     rm -f conftest.er1
3145     cat conftest.err >&5
3146     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 ayin 1.106 (exit $ac_status); } &&
3148     { ac_try='test -z "$ac_c_werror_flag"
3149     || test ! -s conftest.err'
3150     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151     (eval $ac_try) 2>&5
3152     ac_status=$?
3153     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154     (exit $ac_status); }; } &&
3155     { ac_try='test -s conftest$ac_exeext'
3156     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157     (eval $ac_try) 2>&5
3158     ac_status=$?
3159     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160     (exit $ac_status); }; }; then
3161     ac_cv_search_strerror="none required"
3162 ayin 1.104 else
3163     echo "$as_me: failed program was:" >&5
3164     sed 's/^/| /' conftest.$ac_ext >&5
3165    
3166 root 1.105 fi
3167 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
3168     conftest$ac_exeext conftest.$ac_ext
3169     if test "$ac_cv_search_strerror" = no; then
3170     for ac_lib in cposix; do
3171     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3172     cat >conftest.$ac_ext <<_ACEOF
3173     /* confdefs.h. */
3174     _ACEOF
3175     cat confdefs.h >>conftest.$ac_ext
3176     cat >>conftest.$ac_ext <<_ACEOF
3177     /* end confdefs.h. */
3178    
3179     /* Override any gcc2 internal prototype to avoid an error. */
3180     #ifdef __cplusplus
3181     extern "C"
3182     #endif
3183     /* We use char because int might match the return type of a gcc2
3184     builtin and then its argument prototype would still apply. */
3185     char strerror ();
3186     int
3187     main ()
3188     {
3189     strerror ();
3190     ;
3191     return 0;
3192     }
3193     _ACEOF
3194     rm -f conftest.$ac_objext conftest$ac_exeext
3195     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3196     (eval $ac_link) 2>conftest.er1
3197     ac_status=$?
3198     grep -v '^ *+' conftest.er1 >conftest.err
3199     rm -f conftest.er1
3200     cat conftest.err >&5
3201     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202     (exit $ac_status); } &&
3203     { ac_try='test -z "$ac_c_werror_flag"
3204     || test ! -s conftest.err'
3205     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206     (eval $ac_try) 2>&5
3207     ac_status=$?
3208     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209     (exit $ac_status); }; } &&
3210     { ac_try='test -s conftest$ac_exeext'
3211     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212     (eval $ac_try) 2>&5
3213     ac_status=$?
3214     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215     (exit $ac_status); }; }; then
3216     ac_cv_search_strerror="-l$ac_lib"
3217     break
3218     else
3219     echo "$as_me: failed program was:" >&5
3220     sed 's/^/| /' conftest.$ac_ext >&5
3221    
3222     fi
3223     rm -f conftest.err conftest.$ac_objext \
3224     conftest$ac_exeext conftest.$ac_ext
3225     done
3226     fi
3227     LIBS=$ac_func_search_save_LIBS
3228     fi
3229     echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3230     echo "${ECHO_T}$ac_cv_search_strerror" >&6
3231     if test "$ac_cv_search_strerror" != no; then
3232     test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3233    
3234     fi
3235    
3236     ac_ext=cc
3237     ac_cpp='$CXXCPP $CPPFLAGS'
3238     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3241    
3242    
3243     if test x$GCC = xyes && test x$GXX = xyes; then
3244     echo "$as_me:$LINENO: checking for working libsupc++" >&5
3245     echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6
3246     save_CXX="$CXX"
3247     save_LIBS="$LIBS"
3248     CXX="$CC"
3249     LIBS="$LIBS -lsupc++"
3250     LINKER="$CC"
3251    
3252     cat >conftest.$ac_ext <<_ACEOF
3253 root 1.80 /* confdefs.h. */
3254     _ACEOF
3255     cat confdefs.h >>conftest.$ac_ext
3256     cat >>conftest.$ac_ext <<_ACEOF
3257     /* end confdefs.h. */
3258 root 1.84 struct test { }; void f() try { throw new test; } catch (...) { throw; }
3259 root 1.80 int
3260     main ()
3261     {
3262 root 1.84
3263 root 1.80 ;
3264     return 0;
3265     }
3266     _ACEOF
3267     rm -f conftest.$ac_objext conftest$ac_exeext
3268 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3269     (eval $ac_link) 2>conftest.er1
3270 root 1.80 ac_status=$?
3271     grep -v '^ *+' conftest.er1 >conftest.err
3272     rm -f conftest.er1
3273     cat conftest.err >&5
3274     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 ayin 1.106 (exit $ac_status); } &&
3276     { ac_try='test -z "$ac_cxx_werror_flag"
3277     || test ! -s conftest.err'
3278     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279     (eval $ac_try) 2>&5
3280     ac_status=$?
3281     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282     (exit $ac_status); }; } &&
3283     { ac_try='test -s conftest$ac_exeext'
3284     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285     (eval $ac_try) 2>&5
3286     ac_status=$?
3287     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288     (exit $ac_status); }; }; then
3289     echo "$as_me:$LINENO: result: ok" >&5
3290     echo "${ECHO_T}ok" >&6
3291 root 1.80 else
3292     echo "$as_me: failed program was:" >&5
3293     sed 's/^/| /' conftest.$ac_ext >&5
3294    
3295 root 1.84
3296 ayin 1.106 echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5
3297     echo "${ECHO_T}no, making everything bigger and slower" >&6
3298 root 1.84 LIBS="$save_LIBS"
3299 root 1.85 LINKER="$save_CXX"
3300 root 1.84
3301    
3302 root 1.80 fi
3303 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
3304 root 1.80 conftest$ac_exeext conftest.$ac_ext
3305 root 1.85 CXX="$save_CXX"
3306 root 1.80 fi
3307     LINKER=$LINKER
3308    
3309    
3310     if test -z "$orig_CXXFLAGS"; then
3311     if test x$GCC = xyes && test "x$GXX" = xyes; then
3312 root 1.91 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3313 root 1.84 cat >conftest.$ac_ext <<_ACEOF
3314 root 1.83 /* confdefs.h. */
3315     _ACEOF
3316     cat confdefs.h >>conftest.$ac_ext
3317     cat >>conftest.$ac_ext <<_ACEOF
3318     /* end confdefs.h. */
3319    
3320     int
3321     main ()
3322     {
3323    
3324     ;
3325     return 0;
3326     }
3327 root 1.80 _ACEOF
3328     rm -f conftest.$ac_objext
3329 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3330     (eval $ac_compile) 2>conftest.er1
3331 root 1.80 ac_status=$?
3332     grep -v '^ *+' conftest.er1 >conftest.err
3333     rm -f conftest.er1
3334     cat conftest.err >&5
3335     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 ayin 1.106 (exit $ac_status); } &&
3337     { ac_try='test -z "$ac_cxx_werror_flag"
3338     || test ! -s conftest.err'
3339     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340     (eval $ac_try) 2>&5
3341     ac_status=$?
3342     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343     (exit $ac_status); }; } &&
3344     { ac_try='test -s conftest.$ac_objext'
3345     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346     (eval $ac_try) 2>&5
3347     ac_status=$?
3348     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349     (exit $ac_status); }; }; then
3350 root 1.82 :
3351 root 1.80 else
3352     echo "$as_me: failed program was:" >&5
3353     sed 's/^/| /' conftest.$ac_ext >&5
3354    
3355 ayin 1.106 CXXFLAGS="-g -O3"
3356 root 1.80 fi
3357 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3358 root 1.80 else
3359     CXXFLAGS="-O"
3360     fi
3361     CFLAGS="$CXXFLAGS"
3362     fi
3363    
3364    
3365     cat >>confdefs.h <<\_ACEOF
3366     #define _GNU_SOURCE 1
3367     _ACEOF
3368    
3369    
3370     case $host in
3371     *-*-solaris* )
3372    
3373     cat >>confdefs.h <<\_ACEOF
3374 root 1.105 #define _XOPEN_SOURCE 500
3375 root 1.80 _ACEOF
3376 pcg 1.11
3377 root 1.80 ;;
3378     esac
3379 pcg 1.1
3380    
3381 ayin 1.106 echo "$as_me:$LINENO: checking for setlocale" >&5
3382     echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3383 root 1.57 if test "${ac_cv_func_setlocale+set}" = set; then
3384     echo $ECHO_N "(cached) $ECHO_C" >&6
3385     else
3386     cat >conftest.$ac_ext <<_ACEOF
3387     /* confdefs.h. */
3388     _ACEOF
3389     cat confdefs.h >>conftest.$ac_ext
3390     cat >>conftest.$ac_ext <<_ACEOF
3391     /* end confdefs.h. */
3392     /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3393     For example, HP-UX 11i <limits.h> declares gettimeofday. */
3394     #define setlocale innocuous_setlocale
3395    
3396     /* System header to define __stub macros and hopefully few prototypes,
3397     which can conflict with char setlocale (); below.
3398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3399     <limits.h> exists even on freestanding compilers. */
3400    
3401     #ifdef __STDC__
3402     # include <limits.h>
3403     #else
3404     # include <assert.h>
3405     #endif
3406    
3407     #undef setlocale
3408    
3409 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
3410 root 1.57 #ifdef __cplusplus
3411     extern "C"
3412 ayin 1.106 {
3413 root 1.57 #endif
3414 ayin 1.106 /* We use char because int might match the return type of a gcc2
3415     builtin and then its argument prototype would still apply. */
3416 root 1.57 char setlocale ();
3417     /* The GNU C library defines this for functions which it implements
3418     to always fail with ENOSYS. Some functions are actually named
3419     something starting with __ and the normal name is an alias. */
3420 ayin 1.106 #if defined (__stub_setlocale) || defined (__stub___setlocale)
3421 root 1.57 choke me
3422 ayin 1.106 #else
3423     char (*f) () = setlocale;
3424     #endif
3425     #ifdef __cplusplus
3426     }
3427 root 1.57 #endif
3428    
3429     int
3430     main ()
3431     {
3432 ayin 1.106 return f != setlocale;
3433 root 1.57 ;
3434     return 0;
3435     }
3436     _ACEOF
3437     rm -f conftest.$ac_objext conftest$ac_exeext
3438 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3439     (eval $ac_link) 2>conftest.er1
3440 root 1.57 ac_status=$?
3441     grep -v '^ *+' conftest.er1 >conftest.err
3442     rm -f conftest.er1
3443     cat conftest.err >&5
3444     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 ayin 1.106 (exit $ac_status); } &&
3446     { ac_try='test -z "$ac_cxx_werror_flag"
3447     || test ! -s conftest.err'
3448     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449     (eval $ac_try) 2>&5
3450     ac_status=$?
3451     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452     (exit $ac_status); }; } &&
3453     { ac_try='test -s conftest$ac_exeext'
3454     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455     (eval $ac_try) 2>&5
3456     ac_status=$?
3457     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458     (exit $ac_status); }; }; then
3459 root 1.57 ac_cv_func_setlocale=yes
3460     else
3461     echo "$as_me: failed program was:" >&5
3462     sed 's/^/| /' conftest.$ac_ext >&5
3463    
3464 ayin 1.106 ac_cv_func_setlocale=no
3465 root 1.57 fi
3466 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
3467 root 1.57 conftest$ac_exeext conftest.$ac_ext
3468     fi
3469 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
3470     echo "${ECHO_T}$ac_cv_func_setlocale" >&6
3471 root 1.57 if test $ac_cv_func_setlocale = yes; then
3472     :
3473     else
3474 ayin 1.106 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3475     echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3476 pcg 1.25 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3477     echo $ECHO_N "(cached) $ECHO_C" >&6
3478     else
3479     ac_check_lib_save_LIBS=$LIBS
3480     LIBS="-lxpg4 $LIBS"
3481     cat >conftest.$ac_ext <<_ACEOF
3482     /* confdefs.h. */
3483     _ACEOF
3484     cat confdefs.h >>conftest.$ac_ext
3485     cat >>conftest.$ac_ext <<_ACEOF
3486     /* end confdefs.h. */
3487    
3488 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
3489 pcg 1.25 #ifdef __cplusplus
3490     extern "C"
3491     #endif
3492 ayin 1.106 /* We use char because int might match the return type of a gcc2
3493     builtin and then its argument prototype would still apply. */
3494 pcg 1.25 char setlocale ();
3495     int
3496     main ()
3497     {
3498 ayin 1.106 setlocale ();
3499 pcg 1.25 ;
3500     return 0;
3501     }
3502     _ACEOF
3503     rm -f conftest.$ac_objext conftest$ac_exeext
3504 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3505     (eval $ac_link) 2>conftest.er1
3506 pcg 1.25 ac_status=$?
3507     grep -v '^ *+' conftest.er1 >conftest.err
3508     rm -f conftest.er1
3509     cat conftest.err >&5
3510     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 ayin 1.106 (exit $ac_status); } &&
3512     { ac_try='test -z "$ac_cxx_werror_flag"
3513     || test ! -s conftest.err'
3514     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515     (eval $ac_try) 2>&5
3516     ac_status=$?
3517     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518     (exit $ac_status); }; } &&
3519     { ac_try='test -s conftest$ac_exeext'
3520     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521     (eval $ac_try) 2>&5
3522     ac_status=$?
3523     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524     (exit $ac_status); }; }; then
3525 pcg 1.25 ac_cv_lib_xpg4_setlocale=yes
3526     else
3527     echo "$as_me: failed program was:" >&5
3528     sed 's/^/| /' conftest.$ac_ext >&5
3529    
3530 ayin 1.106 ac_cv_lib_xpg4_setlocale=no
3531 pcg 1.25 fi
3532 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
3533 pcg 1.25 conftest$ac_exeext conftest.$ac_ext
3534     LIBS=$ac_check_lib_save_LIBS
3535     fi
3536 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3537     echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3538 pcg 1.25 if test $ac_cv_lib_xpg4_setlocale = yes; then
3539     LIBS="$LIBS -lxpg4"
3540     fi
3541    
3542 root 1.57 fi
3543    
3544    
3545 ayin 1.106 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3546     echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3547 root 1.57 if test "${ac_cv_func_gethostbyname+set}" = set; then
3548     echo $ECHO_N "(cached) $ECHO_C" >&6
3549     else
3550     cat >conftest.$ac_ext <<_ACEOF
3551     /* confdefs.h. */
3552     _ACEOF
3553     cat confdefs.h >>conftest.$ac_ext
3554     cat >>conftest.$ac_ext <<_ACEOF
3555     /* end confdefs.h. */
3556     /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3557     For example, HP-UX 11i <limits.h> declares gettimeofday. */
3558     #define gethostbyname innocuous_gethostbyname
3559    
3560     /* System header to define __stub macros and hopefully few prototypes,
3561     which can conflict with char gethostbyname (); below.
3562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3563     <limits.h> exists even on freestanding compilers. */
3564    
3565     #ifdef __STDC__
3566     # include <limits.h>
3567     #else
3568     # include <assert.h>
3569     #endif
3570    
3571     #undef gethostbyname
3572    
3573 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
3574 root 1.57 #ifdef __cplusplus
3575     extern "C"
3576 ayin 1.106 {
3577 root 1.57 #endif
3578 ayin 1.106 /* We use char because int might match the return type of a gcc2
3579     builtin and then its argument prototype would still apply. */
3580 root 1.57 char gethostbyname ();
3581     /* The GNU C library defines this for functions which it implements
3582     to always fail with ENOSYS. Some functions are actually named
3583     something starting with __ and the normal name is an alias. */
3584 ayin 1.106 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3585 root 1.57 choke me
3586 ayin 1.106 #else
3587     char (*f) () = gethostbyname;
3588     #endif
3589     #ifdef __cplusplus
3590     }
3591 root 1.57 #endif
3592    
3593     int
3594     main ()
3595     {
3596 ayin 1.106 return f != gethostbyname;
3597 root 1.57 ;
3598     return 0;
3599     }
3600     _ACEOF
3601     rm -f conftest.$ac_objext conftest$ac_exeext
3602 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3603     (eval $ac_link) 2>conftest.er1
3604 root 1.57 ac_status=$?
3605     grep -v '^ *+' conftest.er1 >conftest.err
3606     rm -f conftest.er1
3607     cat conftest.err >&5
3608     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 ayin 1.106 (exit $ac_status); } &&
3610     { ac_try='test -z "$ac_cxx_werror_flag"
3611     || test ! -s conftest.err'
3612     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613     (eval $ac_try) 2>&5
3614     ac_status=$?
3615     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616     (exit $ac_status); }; } &&
3617     { ac_try='test -s conftest$ac_exeext'
3618     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619     (eval $ac_try) 2>&5
3620     ac_status=$?
3621     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622     (exit $ac_status); }; }; then
3623 root 1.57 ac_cv_func_gethostbyname=yes
3624     else
3625     echo "$as_me: failed program was:" >&5
3626     sed 's/^/| /' conftest.$ac_ext >&5
3627 pcg 1.25
3628 ayin 1.106 ac_cv_func_gethostbyname=no
3629 root 1.57 fi
3630 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
3631 root 1.57 conftest$ac_exeext conftest.$ac_ext
3632     fi
3633 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3634     echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3635 root 1.57 if test $ac_cv_func_gethostbyname = yes; then
3636     :
3637     else
3638 ayin 1.106 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3639     echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3640 pcg 1.25 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3641     echo $ECHO_N "(cached) $ECHO_C" >&6
3642     else
3643     ac_check_lib_save_LIBS=$LIBS
3644     LIBS="-lnsl $LIBS"
3645     cat >conftest.$ac_ext <<_ACEOF
3646     /* confdefs.h. */
3647     _ACEOF
3648     cat confdefs.h >>conftest.$ac_ext
3649     cat >>conftest.$ac_ext <<_ACEOF
3650     /* end confdefs.h. */
3651    
3652 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
3653 pcg 1.25 #ifdef __cplusplus
3654     extern "C"
3655     #endif
3656 ayin 1.106 /* We use char because int might match the return type of a gcc2
3657     builtin and then its argument prototype would still apply. */
3658 pcg 1.25 char gethostbyname ();
3659     int
3660     main ()
3661     {
3662 ayin 1.106 gethostbyname ();
3663 pcg 1.25 ;
3664     return 0;
3665     }
3666     _ACEOF
3667     rm -f conftest.$ac_objext conftest$ac_exeext
3668 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3669     (eval $ac_link) 2>conftest.er1
3670 pcg 1.25 ac_status=$?
3671     grep -v '^ *+' conftest.er1 >conftest.err
3672     rm -f conftest.er1
3673     cat conftest.err >&5
3674     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 ayin 1.106 (exit $ac_status); } &&
3676     { ac_try='test -z "$ac_cxx_werror_flag"
3677     || test ! -s conftest.err'
3678     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679     (eval $ac_try) 2>&5
3680     ac_status=$?
3681     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682     (exit $ac_status); }; } &&
3683     { ac_try='test -s conftest$ac_exeext'
3684     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685     (eval $ac_try) 2>&5
3686     ac_status=$?
3687     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688     (exit $ac_status); }; }; then
3689 pcg 1.25 ac_cv_lib_nsl_gethostbyname=yes
3690     else
3691     echo "$as_me: failed program was:" >&5
3692     sed 's/^/| /' conftest.$ac_ext >&5
3693    
3694 ayin 1.106 ac_cv_lib_nsl_gethostbyname=no
3695 pcg 1.25 fi
3696 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
3697 pcg 1.25 conftest$ac_exeext conftest.$ac_ext
3698     LIBS=$ac_check_lib_save_LIBS
3699     fi
3700 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3701     echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3702 pcg 1.25 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3703     LIBS="$LIBS -lnsl"
3704     fi
3705    
3706 root 1.57 fi
3707    
3708 ayin 1.106 echo "$as_me:$LINENO: checking for socket" >&5
3709     echo $ECHO_N "checking for socket... $ECHO_C" >&6
3710 root 1.57 if test "${ac_cv_func_socket+set}" = set; then
3711     echo $ECHO_N "(cached) $ECHO_C" >&6
3712     else
3713     cat >conftest.$ac_ext <<_ACEOF
3714     /* confdefs.h. */
3715     _ACEOF
3716     cat confdefs.h >>conftest.$ac_ext
3717     cat >>conftest.$ac_ext <<_ACEOF
3718     /* end confdefs.h. */
3719     /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3720     For example, HP-UX 11i <limits.h> declares gettimeofday. */
3721     #define socket innocuous_socket
3722    
3723     /* System header to define __stub macros and hopefully few prototypes,
3724     which can conflict with char socket (); below.
3725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3726     <limits.h> exists even on freestanding compilers. */
3727    
3728     #ifdef __STDC__
3729     # include <limits.h>
3730     #else
3731     # include <assert.h>
3732     #endif
3733    
3734     #undef socket
3735    
3736 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
3737 root 1.57 #ifdef __cplusplus
3738     extern "C"
3739 ayin 1.106 {
3740 root 1.57 #endif
3741 ayin 1.106 /* We use char because int might match the return type of a gcc2
3742     builtin and then its argument prototype would still apply. */
3743 root 1.57 char socket ();
3744     /* The GNU C library defines this for functions which it implements
3745     to always fail with ENOSYS. Some functions are actually named
3746     something starting with __ and the normal name is an alias. */
3747 ayin 1.106 #if defined (__stub_socket) || defined (__stub___socket)
3748 root 1.57 choke me
3749 ayin 1.106 #else
3750     char (*f) () = socket;
3751     #endif
3752     #ifdef __cplusplus
3753     }
3754 root 1.57 #endif
3755    
3756     int
3757     main ()
3758     {
3759 ayin 1.106 return f != socket;
3760 root 1.57 ;
3761     return 0;
3762     }
3763     _ACEOF
3764     rm -f conftest.$ac_objext conftest$ac_exeext
3765 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3766     (eval $ac_link) 2>conftest.er1
3767 root 1.57 ac_status=$?
3768     grep -v '^ *+' conftest.er1 >conftest.err
3769     rm -f conftest.er1
3770     cat conftest.err >&5
3771     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 ayin 1.106 (exit $ac_status); } &&
3773     { ac_try='test -z "$ac_cxx_werror_flag"
3774     || test ! -s conftest.err'
3775     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776     (eval $ac_try) 2>&5
3777     ac_status=$?
3778     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779     (exit $ac_status); }; } &&
3780     { ac_try='test -s conftest$ac_exeext'
3781     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782     (eval $ac_try) 2>&5
3783     ac_status=$?
3784     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785     (exit $ac_status); }; }; then
3786 root 1.57 ac_cv_func_socket=yes
3787     else
3788     echo "$as_me: failed program was:" >&5
3789     sed 's/^/| /' conftest.$ac_ext >&5
3790    
3791 ayin 1.106 ac_cv_func_socket=no
3792 root 1.57 fi
3793 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
3794 root 1.57 conftest$ac_exeext conftest.$ac_ext
3795     fi
3796 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3797     echo "${ECHO_T}$ac_cv_func_socket" >&6
3798 root 1.57 if test $ac_cv_func_socket = yes; then
3799     :
3800     else
3801 ayin 1.106 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3802     echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3803 pcg 1.25 if test "${ac_cv_lib_socket_socket+set}" = set; then
3804     echo $ECHO_N "(cached) $ECHO_C" >&6
3805     else
3806     ac_check_lib_save_LIBS=$LIBS
3807     LIBS="-lsocket $LIBS"
3808     cat >conftest.$ac_ext <<_ACEOF
3809     /* confdefs.h. */
3810     _ACEOF
3811     cat confdefs.h >>conftest.$ac_ext
3812     cat >>conftest.$ac_ext <<_ACEOF
3813     /* end confdefs.h. */
3814    
3815 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
3816 pcg 1.25 #ifdef __cplusplus
3817     extern "C"
3818     #endif
3819 ayin 1.106 /* We use char because int might match the return type of a gcc2
3820     builtin and then its argument prototype would still apply. */
3821 pcg 1.25 char socket ();
3822     int
3823     main ()
3824     {
3825 ayin 1.106 socket ();
3826 pcg 1.25 ;
3827     return 0;
3828     }
3829     _ACEOF
3830     rm -f conftest.$ac_objext conftest$ac_exeext
3831 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3832     (eval $ac_link) 2>conftest.er1
3833 pcg 1.25 ac_status=$?
3834     grep -v '^ *+' conftest.er1 >conftest.err
3835     rm -f conftest.er1
3836     cat conftest.err >&5
3837     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 ayin 1.106 (exit $ac_status); } &&
3839     { ac_try='test -z "$ac_cxx_werror_flag"
3840     || test ! -s conftest.err'
3841     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842     (eval $ac_try) 2>&5
3843     ac_status=$?
3844     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845     (exit $ac_status); }; } &&
3846     { ac_try='test -s conftest$ac_exeext'
3847     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848     (eval $ac_try) 2>&5
3849     ac_status=$?
3850     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851     (exit $ac_status); }; }; then
3852 pcg 1.25 ac_cv_lib_socket_socket=yes
3853     else
3854     echo "$as_me: failed program was:" >&5
3855     sed 's/^/| /' conftest.$ac_ext >&5
3856    
3857 ayin 1.106 ac_cv_lib_socket_socket=no
3858 root 1.51 fi
3859 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
3860 root 1.51 conftest$ac_exeext conftest.$ac_ext
3861     LIBS=$ac_check_lib_save_LIBS
3862     fi
3863 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3864     echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3865 root 1.51 if test $ac_cv_lib_socket_socket = yes; then
3866     LIBS="$LIBS -lsocket"
3867 pcg 1.1 fi
3868    
3869 root 1.57 fi
3870    
3871 pcg 1.1
3872    
3873 root 1.54 support_frills=yes
3874 root 1.62 support_inheritpixmap=yes
3875 root 1.54 support_tinting=yes
3876     support_fading=yes
3877     support_keepscrolling=yes
3878     support_selectionscrolling=yes
3879     support_mousewheel=yes
3880     support_mouseslipwheel=yes
3881     support_text_blink=yes
3882     support_pointer_blank=yes
3883     support_scroll_rxvt=yes
3884     support_scroll_next=yes
3885     support_scroll_xterm=yes
3886     support_scroll_plain=yes
3887     support_xim=yes
3888 root 1.62 support_xpm=yes
3889 root 1.103 support_afterimage=yes
3890     support_afterstep=yes
3891 root 1.54 support_xft=yes
3892 pcg 1.1 support_unicode3=no
3893 root 1.54 support_combining=yes
3894 root 1.26 support_8bitctrls=no
3895 root 1.54 support_iso14755=yes
3896     support_styles=yes
3897 root 1.62 support_perl=yes
3898 root 1.54 codesets=all
3899 pcg 1.1
3900    
3901     if test "x$enable_shared" = xyes; then
3902 pcg 1.11
3903     cat >>confdefs.h <<\_ACEOF
3904 pcg 1.1 #define LIBRXVT 1
3905 pcg 1.11 _ACEOF
3906 pcg 1.1
3907     INSTALL_LIBRXVT=yes
3908     fi
3909    
3910    
3911 ayin 1.106 # Check whether --enable-everything or --disable-everything was given.
3912 pcg 1.1 if test "${enable_everything+set}" = set; then
3913 ayin 1.106 enableval="$enable_everything"
3914    
3915 root 1.54 if test x$enableval = xno; then
3916     support_frills=no
3917     support_inheritpixmap=no
3918     support_tinting=no
3919     support_fading=no
3920     support_keepscrolling=no
3921     support_selectionscrolling=no
3922     support_lastlog=no
3923     support_mousewheel=no
3924     support_mouseslipwheel=no
3925     support_text_blink=no
3926     support_pointer_blank=no
3927     support_scroll_rxvt=no
3928     support_scroll_next=no
3929     support_scroll_xterm=no
3930     support_scroll_plain=no
3931     support_utmp=no
3932     support_wtmp=no
3933     support_xim=no
3934     support_xpm=no
3935 root 1.103 support_afterimage=no
3936     support_afterstep=no
3937 root 1.54 support_xft=no
3938     support_unicode3=no
3939     support_combining=no
3940     support_8bitctrls=no
3941     support_iso14755=no
3942     support_styles=no
3943 root 1.60 support_perl=no
3944 root 1.54 codesets=
3945     fi
3946     if test x$enableval = xyes; then
3947     support_frills=yes
3948     support_inheritpixmap=yes
3949     support_tinting=yes
3950     support_fading=yes
3951     support_keepscrolling=yes
3952     support_selectionscrolling=yes
3953     support_lastlog=yes
3954     support_mousewheel=yes
3955     support_mouseslipwheel=yes
3956     support_text_blink=yes
3957     support_pointer_blank=yes
3958     support_scroll_rxvt=yes
3959     support_scroll_next=yes
3960     support_scroll_xterm=yes
3961     support_scroll_plain=yes
3962     support_utmp=yes
3963     support_wtmp=yes
3964     support_xim=yes
3965     support_xpm=yes
3966 root 1.103 support_afterimage=yes
3967     support_afterstep=yes
3968 root 1.54 support_xft=yes
3969     support_unicode3=yes
3970     support_combining=yes
3971     #support_8bitctrls=yes
3972     support_iso14755=yes
3973     support_styles=yes
3974 root 1.60 support_perl=yes
3975 root 1.54 codesets=all
3976     fi
3977    
3978 ayin 1.106 fi;
3979 pcg 1.4
3980 ayin 1.106 # Check whether --enable-unicode3 or --disable-unicode3 was given.
3981 pcg 1.1 if test "${enable_unicode3+set}" = set; then
3982 ayin 1.106 enableval="$enable_unicode3"
3983     if test x$enableval = xyes -o x$enableval = xno; then
3984 root 1.39 support_unicode3=$enableval
3985 pcg 1.1 fi
3986 ayin 1.106 fi;
3987 root 1.105
3988 ayin 1.106 # Check whether --enable-combining or --disable-combining was given.
3989 pcg 1.18 if test "${enable_combining+set}" = set; then
3990 ayin 1.106 enableval="$enable_combining"
3991     if test x$enableval = xyes -o x$enableval = xno; then
3992 root 1.39 support_combining=$enableval
3993 pcg 1.18 fi
3994 ayin 1.106 fi;
3995 root 1.105
3996 ayin 1.106 # Check whether --enable-xft or --disable-xft was given.
3997 pcg 1.1 if test "${enable_xft+set}" = set; then
3998 ayin 1.106 enableval="$enable_xft"
3999     if test x$enableval = xyes -o x$enableval = xno; then
4000 root 1.39 support_xft=$enableval
4001     fi
4002 ayin 1.106 fi;
4003 root 1.105
4004 ayin 1.106 # Check whether --enable-font-styles or --disable-font-styles was given.
4005 root 1.39 if test "${enable_font_styles+set}" = set; then
4006 ayin 1.106 enableval="$enable_font_styles"
4007     if test x$enableval = xyes -o x$enableval = xno; then
4008 root 1.39 support_styles=$enableval
4009 pcg 1.1 fi
4010 ayin 1.106 fi;
4011 root 1.105
4012 ayin 1.106 # Check whether --enable-xpm-background or --disable-xpm-background was given.
4013 pcg 1.1 if test "${enable_xpm_background+set}" = set; then
4014 ayin 1.106 enableval="$enable_xpm_background"
4015     if test x$enableval = xyes -o x$enableval = xno; then
4016 pcg 1.1 support_xpm=$enableval
4017     fi
4018 ayin 1.106 fi;
4019 root 1.105
4020 ayin 1.106 # Check whether --enable-afterimage or --disable-afterimage was given.
4021 root 1.103 if test "${enable_afterimage+set}" = set; then
4022 ayin 1.106 enableval="$enable_afterimage"
4023     if test x$enableval = xyes -o x$enableval = xno; then
4024 root 1.103 support_afterimage=$enableval
4025     fi
4026 ayin 1.106 fi;
4027 root 1.103
4028 root 1.105
4029 ayin 1.106 # Check whether --with-afterimage_config or --without-afterimage_config was given.
4030 root 1.103 if test "${with_afterimage_config+set}" = set; then
4031 ayin 1.106 withval="$with_afterimage_config"
4032     if test "x$withval" != x; then
4033 ayin 1.104 afterimage_config=$withval/afterimage-config
4034     fi
4035 ayin 1.106 fi;
4036 root 1.105
4037 ayin 1.106 # Check whether --enable-afterstep or --disable-afterstep was given.
4038 root 1.103 if test "${enable_afterstep+set}" = set; then
4039 ayin 1.106 enableval="$enable_afterstep"
4040     if test x$enableval = xyes -o x$enableval = xno; then
4041 root 1.103 support_afterstep=$enableval
4042     fi
4043 ayin 1.106 fi;
4044 root 1.105
4045 ayin 1.106 # Check whether --enable-transparency or --disable-transparency was given.
4046 pcg 1.1 if test "${enable_transparency+set}" = set; then
4047 ayin 1.106 enableval="$enable_transparency"
4048     if test x$enableval = xyes -o x$enableval = xno; then
4049 pcg 1.1 support_inheritpixmap=$enableval
4050     fi
4051 ayin 1.106 fi;
4052 root 1.105
4053 ayin 1.106 # Check whether --enable-tinting or --disable-tinting was given.
4054 pcg 1.24 if test "${enable_tinting+set}" = set; then
4055 ayin 1.106 enableval="$enable_tinting"
4056     if test x$enableval = xyes -o x$enableval = xno; then
4057 pcg 1.24 support_tinting=$enableval
4058     fi
4059 ayin 1.106 fi;
4060 root 1.105
4061 ayin 1.106 # Check whether --enable-fading or --disable-fading was given.
4062 root 1.31 if test "${enable_fading+set}" = set; then
4063 ayin 1.106 enableval="$enable_fading"
4064     if test x$enableval = xyes -o x$enableval = xno; then
4065 root 1.31 support_fading=$enableval
4066     fi
4067 ayin 1.106 fi;
4068 root 1.105
4069 ayin 1.106 # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
4070 pcg 1.1 if test "${enable_rxvt_scroll+set}" = set; then
4071 ayin 1.106 enableval="$enable_rxvt_scroll"
4072     if test x$enableval = xyes -o x$enableval = xno; then
4073 pcg 1.1 support_scroll_rxvt=$enableval
4074     fi
4075 ayin 1.106 fi;
4076 root 1.105
4077 ayin 1.106 # Check whether --enable-next-scroll or --disable-next-scroll was given.
4078 pcg 1.1 if test "${enable_next_scroll+set}" = set; then
4079 ayin 1.106 enableval="$enable_next_scroll"
4080     if test x$enableval = xyes -o x$enableval = xno; then
4081 pcg 1.1 support_scroll_next=$enableval
4082     fi
4083 ayin 1.106 fi;
4084 root 1.105
4085 ayin 1.106 # Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
4086 pcg 1.1 if test "${enable_xterm_scroll+set}" = set; then
4087 ayin 1.106 enableval="$enable_xterm_scroll"
4088     if test x$enableval = xyes -o x$enableval = xno; then
4089 pcg 1.1 support_scroll_xterm=$enableval
4090     fi
4091 ayin 1.106 fi;
4092 root 1.105
4093 ayin 1.106 # Check whether --enable-perl or --disable-perl was given.
4094 root 1.60 if test "${enable_perl+set}" = set; then
4095 ayin 1.106 enableval="$enable_perl"
4096     if test x$enableval = xyes -o x$enableval = xno; then
4097 root 1.60 support_perl=$enableval
4098     fi
4099 ayin 1.106 fi;
4100 root 1.105
4101 ayin 1.106 # Check whether --enable-plain-scroll or --disable-plain-scroll was given.
4102 pcg 1.11 if test "${enable_plain_scroll+set}" = set; then
4103 ayin 1.106 enableval="$enable_plain_scroll"
4104     if test x$enableval = xyes -o x$enableval = xno; then
4105 pcg 1.11 support_scroll_plain=$enableval
4106     fi
4107 ayin 1.106 fi;
4108 pcg 1.1
4109 root 1.105
4110 ayin 1.106 # Check whether --with-codesets or --without-codesets was given.
4111 pcg 1.15 if test "${with_codesets+set}" = set; then
4112 ayin 1.106 withval="$with_codesets"
4113     codesets="$withval"
4114     fi;
4115 root 1.105
4116 ayin 1.106 # Check whether --enable-xim or --disable-xim was given.
4117 pcg 1.1 if test "${enable_xim+set}" = set; then
4118 ayin 1.106 enableval="$enable_xim"
4119     if test x$enableval = xyes -o x$enableval = xno; then
4120 pcg 1.1 support_xim=$enableval
4121     fi
4122 ayin 1.106 fi;
4123 root 1.105
4124 ayin 1.106 # Check whether --enable-backspace-key or --disable-backspace-key was given.
4125 pcg 1.1 if test "${enable_backspace_key+set}" = set; then
4126 ayin 1.106 enableval="$enable_backspace_key"
4127     if test x$enableval = xno; then
4128 pcg 1.11
4129     cat >>confdefs.h <<\_ACEOF
4130 pcg 1.1 #define NO_BACKSPACE_KEY 1
4131 pcg 1.11 _ACEOF
4132 pcg 1.1
4133     fi
4134 ayin 1.106 fi;
4135 root 1.105
4136 ayin 1.106 # Check whether --enable-delete-key or --disable-delete-key was given.
4137 pcg 1.1 if test "${enable_delete_key+set}" = set; then
4138 ayin 1.106 enableval="$enable_delete_key"
4139     if test x$enableval = xno; then
4140 pcg 1.11
4141     cat >>confdefs.h <<\_ACEOF
4142 pcg 1.1 #define NO_DELETE_KEY 1
4143 pcg 1.11 _ACEOF
4144 pcg 1.1
4145     fi
4146 ayin 1.106 fi;
4147 root 1.105
4148 ayin 1.106 # Check whether --enable-resources or --disable-resources was given.
4149 pcg 1.1 if test "${enable_resources+set}" = set; then
4150 ayin 1.106 enableval="$enable_resources"
4151     if test x$enableval = xno; then
4152 pcg 1.11
4153     cat >>confdefs.h <<\_ACEOF
4154 pcg 1.1 #define NO_RESOURCES 1
4155 pcg 1.11 _ACEOF
4156 pcg 1.1
4157     fi
4158 ayin 1.106 fi;
4159 root 1.105
4160 ayin 1.106 # Check whether --enable-8bitctrls or --disable-8bitctrls was given.
4161 root 1.26 if test "${enable_8bitctrls+set}" = set; then
4162 ayin 1.106 enableval="$enable_8bitctrls"
4163     if test x$enableval = xyes -o x$enableval = xno; then
4164 root 1.39 support_8bitctrls=$enableval
4165 root 1.26 fi
4166 ayin 1.106 fi;
4167 root 1.26
4168 pcg 1.15 RESFALLBACK=Rxvt
4169 ayin 1.106 # Check whether --enable-fallback or --disable-fallback was given.
4170 pcg 1.15 if test "${enable_fallback+set}" = set; then
4171 ayin 1.106 enableval="$enable_fallback"
4172    
4173 pcg 1.15 test x$enableval = xyes && enableval=Rxvt
4174     test x$enableval = xno && enableval=
4175     RESFALLBACK="$enableval"
4176    
4177 ayin 1.106 fi;
4178 pcg 1.15
4179     if test x$RESFALLBACK != x; then
4180    
4181     cat >>confdefs.h <<_ACEOF
4182     #define RESFALLBACK "$RESFALLBACK"
4183     _ACEOF
4184    
4185     fi
4186    
4187     RESNAME=urxvt
4188    
4189 ayin 1.106 # Check whether --with-res-name or --without-res-name was given.
4190 pcg 1.15 if test "${with_res_name+set}" = set; then
4191 ayin 1.106 withval="$with_res_name"
4192     RESNAME="$withval"
4193     fi;
4194 pcg 1.15
4195     cat >>confdefs.h <<_ACEOF
4196     #define RESNAME "$RESNAME"
4197     _ACEOF
4198    
4199    
4200     RESCLASS=URxvt
4201    
4202 ayin 1.106 # Check whether --with-res-class or --without-res-class was given.
4203 pcg 1.15 if test "${with_res_class+set}" = set; then
4204 ayin 1.106 withval="$with_res_class"
4205     RESCLASS="$withval"
4206     fi;
4207 pcg 1.15
4208     cat >>confdefs.h <<_ACEOF
4209     #define RESCLASS "$RESCLASS"
4210     _ACEOF
4211    
4212    
4213     RXVTNAME=urxvt
4214    
4215 ayin 1.106 # Check whether --with-name or --without-name was given.
4216 pcg 1.15 if test "${with_name+set}" = set; then
4217 ayin 1.106 withval="$with_name"
4218     RXVTNAME="$withval"
4219     fi;
4220 pcg 1.15
4221 root 1.39 cat >>confdefs.h <<_ACEOF
4222     #define RXVTNAME "$RXVTNAME"
4223     _ACEOF
4224    
4225    
4226 pcg 1.15 RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4227    
4228    
4229 ayin 1.106 # Check whether --enable-swapscreen or --disable-swapscreen was given.
4230 pcg 1.1 if test "${enable_swapscreen+set}" = set; then
4231 ayin 1.106 enableval="$enable_swapscreen"
4232     if test x$enableval = xno; then
4233 pcg 1.11
4234     cat >>confdefs.h <<\_ACEOF
4235 pcg 1.1 #define NO_SECONDARY_SCREEN 1
4236 pcg 1.11 _ACEOF
4237 pcg 1.1
4238     fi
4239 ayin 1.106 fi;
4240 root 1.105
4241 ayin 1.106 # Check whether --enable-iso14755 or --disable-iso14755 was given.
4242 root 1.34 if test "${enable_iso14755+set}" = set; then
4243 ayin 1.106 enableval="$enable_iso14755"
4244     if test x$enableval = xyes -o x$enableval = xno; then
4245 root 1.34 support_iso14755=$enableval
4246     fi
4247 ayin 1.106 fi;
4248 root 1.105
4249 ayin 1.106 # Check whether --enable-frills or --disable-frills was given.
4250 pcg 1.1 if test "${enable_frills+set}" = set; then
4251 ayin 1.106 enableval="$enable_frills"
4252     if test x$enableval = xyes -o x$enableval = xno; then
4253 pcg 1.1 support_frills=$enableval
4254     fi
4255 ayin 1.106 fi;
4256 root 1.105
4257 ayin 1.106 # Check whether --enable-keepscrolling or --disable-keepscrolling was given.
4258 pcg 1.1 if test "${enable_keepscrolling+set}" = set; then
4259 ayin 1.106 enableval="$enable_keepscrolling"
4260     if test x$enableval = xyes -o x$enableval = xno; then
4261 pcg 1.1 support_keepscrolling=$enableval
4262     fi
4263 ayin 1.106 fi;
4264 root 1.105
4265 ayin 1.106 # Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
4266 pcg 1.1 if test "${enable_selectionscrolling+set}" = set; then
4267 ayin 1.106 enableval="$enable_selectionscrolling"
4268     if test x$enableval = xyes -o x$enableval = xno; then
4269 pcg 1.1 support_selectionscrolling=$enableval
4270     fi
4271 ayin 1.106 fi;
4272 root 1.105
4273 ayin 1.106 # Check whether --enable-mousewheel or --disable-mousewheel was given.
4274 pcg 1.1 if test "${enable_mousewheel+set}" = set; then
4275 ayin 1.106 enableval="$enable_mousewheel"
4276     if test x$enableval = xyes -o x$enableval = xno; then
4277 pcg 1.1 support_mousewheel=$enableval
4278     fi
4279 ayin 1.106 fi;
4280 root 1.105
4281 ayin 1.106 # Check whether --enable-slipwheeling or --disable-slipwheeling was given.
4282 pcg 1.1 if test "${enable_slipwheeling+set}" = set; then
4283 ayin 1.106 enableval="$enable_slipwheeling"
4284     if test x$enableval = xyes -o x$enableval = xno; then
4285 pcg 1.1 support_mouseslipwheel=$enableval
4286     fi
4287 ayin 1.106 fi;
4288 root 1.105
4289 ayin 1.106 # Check whether --enable-smart-resize or --disable-smart-resize was given.
4290 pcg 1.1 if test "${enable_smart_resize+set}" = set; then
4291 ayin 1.106 enableval="$enable_smart_resize"
4292     if test x$enableval = xyes; then
4293 pcg 1.11
4294     cat >>confdefs.h <<\_ACEOF
4295 pcg 1.1 #define SMART_RESIZE 1
4296 pcg 1.11 _ACEOF
4297 pcg 1.1
4298     fi
4299 ayin 1.106 fi;
4300 root 1.105
4301 ayin 1.106 # Check whether --enable-text-blink or --disable-text-blink was given.
4302 pcg 1.11 if test "${enable_text_blink+set}" = set; then
4303 ayin 1.106 enableval="$enable_text_blink"
4304     if test x$enableval = xyes -o x$enableval = xno; then
4305 pcg 1.11 support_text_blink=$enableval
4306     fi
4307 ayin 1.106 fi;
4308 root 1.105
4309 ayin 1.106 # Check whether --enable-pointer-blank or --disable-pointer-blank was given.
4310 pcg 1.1 if test "${enable_pointer_blank+set}" = set; then
4311 ayin 1.106 enableval="$enable_pointer_blank"
4312     if test x$enableval = xyes -o x$enableval = xno; then
4313 pcg 1.1 support_pointer_blank=$enableval
4314     fi
4315 ayin 1.106 fi;
4316 root 1.105
4317 pcg 1.1
4318 ayin 1.106 # Check whether --with-term or --without-term was given.
4319 pcg 1.1 if test "${with_term+set}" = set; then
4320 ayin 1.106 withval="$with_term"
4321     if test x$withval != x; then
4322 pcg 1.11
4323     cat >>confdefs.h <<_ACEOF
4324 pcg 1.1 #define TERMENV "$withval"
4325 pcg 1.11 _ACEOF
4326 pcg 1.1 term="$withval"
4327     fi
4328 ayin 1.106 fi;
4329 root 1.105
4330 pcg 1.1
4331 ayin 1.106 # Check whether --with-terminfo or --without-terminfo was given.
4332 pcg 1.1 if test "${with_terminfo+set}" = set; then
4333 ayin 1.106 withval="$with_terminfo"
4334     if test x$withval != x; then
4335 pcg 1.11
4336     cat >>confdefs.h <<_ACEOF
4337 pcg 1.1 #define RXVT_TERMINFO "$withval"
4338 pcg 1.11 _ACEOF
4339 pcg 1.1 terminfo="$withval"
4340     fi
4341 ayin 1.106 fi;
4342 ayin 1.102
4343 pcg 1.1
4344 ayin 1.104 # Extract the first word of "tic", so it can be a program name with args.
4345     set dummy tic; ac_word=$2
4346 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4347     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4348 ayin 1.104 if test "${ac_cv_path_TIC+set}" = set; then
4349 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 pcg 1.1 else
4351 ayin 1.104 case $TIC in
4352 pcg 1.11 [\\/]* | ?:[\\/]*)
4353 ayin 1.104 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
4354 pcg 1.1 ;;
4355     *)
4356 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357     for as_dir in $PATH
4358     do
4359     IFS=$as_save_IFS
4360     test -z "$as_dir" && as_dir=.
4361     for ac_exec_ext in '' $ac_executable_extensions; do
4362 ayin 1.106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4363 ayin 1.104 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
4364 pcg 1.11 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365     break 2
4366     fi
4367     done
4368     done
4369    
4370 pcg 1.1 ;;
4371     esac
4372     fi
4373 ayin 1.104 TIC=$ac_cv_path_TIC
4374 ayin 1.106
4375 ayin 1.104 if test -n "$TIC"; then
4376 ayin 1.106 echo "$as_me:$LINENO: result: $TIC" >&5
4377     echo "${ECHO_T}$TIC" >&6
4378 pcg 1.1 else
4379 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
4380     echo "${ECHO_T}no" >&6
4381 pcg 1.1 fi
4382    
4383 ayin 1.102
4384 ayin 1.104
4385    
4386 ayin 1.106 ac_ext=cc
4387 ayin 1.104 ac_cpp='$CXXCPP $CPPFLAGS'
4388     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4391 ayin 1.106 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4392     echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4393 ayin 1.104 if test -z "$CXXCPP"; then
4394     if test "${ac_cv_prog_CXXCPP+set}" = set; then
4395 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 pcg 1.1 else
4397 ayin 1.104 # Double quotes because CXXCPP needs to be expanded
4398     for CXXCPP in "$CXX -E" "/lib/cpp"
4399     do
4400     ac_preproc_ok=false
4401     for ac_cxx_preproc_warn_flag in '' yes
4402 pcg 1.11 do
4403 ayin 1.104 # Use a header file that comes with gcc, so configuring glibc
4404     # with a fresh cross-compiler works.
4405     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4406     # <limits.h> exists even on freestanding compilers.
4407     # On the NeXT, cc -E runs the code through the compiler's parser,
4408 root 1.80 # not just through cpp. "Syntax error" is here to catch this case.
4409     cat >conftest.$ac_ext <<_ACEOF
4410     /* confdefs.h. */
4411     _ACEOF
4412     cat confdefs.h >>conftest.$ac_ext
4413     cat >>conftest.$ac_ext <<_ACEOF
4414     /* end confdefs.h. */
4415     #ifdef __STDC__
4416     # include <limits.h>
4417     #else
4418     # include <assert.h>
4419     #endif
4420     Syntax error
4421     _ACEOF
4422 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4423     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4424 root 1.80 ac_status=$?
4425     grep -v '^ *+' conftest.er1 >conftest.err
4426     rm -f conftest.er1
4427     cat conftest.err >&5
4428     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 ayin 1.106 (exit $ac_status); } >/dev/null; then
4430     if test -s conftest.err; then
4431     ac_cpp_err=$ac_cxx_preproc_warn_flag
4432     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4433     else
4434     ac_cpp_err=
4435     fi
4436     else
4437     ac_cpp_err=yes
4438     fi
4439     if test -z "$ac_cpp_err"; then
4440 root 1.80 :
4441     else
4442     echo "$as_me: failed program was:" >&5
4443     sed 's/^/| /' conftest.$ac_ext >&5
4444    
4445     # Broken: fails on valid input.
4446     continue
4447     fi
4448     rm -f conftest.err conftest.$ac_ext
4449    
4450 ayin 1.106 # OK, works on sane cases. Now check whether non-existent headers
4451 root 1.80 # can be detected and how.
4452     cat >conftest.$ac_ext <<_ACEOF
4453     /* confdefs.h. */
4454     _ACEOF
4455     cat confdefs.h >>conftest.$ac_ext
4456     cat >>conftest.$ac_ext <<_ACEOF
4457     /* end confdefs.h. */
4458     #include <ac_nonexistent.h>
4459     _ACEOF
4460 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4461     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4462 root 1.80 ac_status=$?
4463     grep -v '^ *+' conftest.er1 >conftest.err
4464     rm -f conftest.er1
4465     cat conftest.err >&5
4466     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 ayin 1.106 (exit $ac_status); } >/dev/null; then
4468     if test -s conftest.err; then
4469     ac_cpp_err=$ac_cxx_preproc_warn_flag
4470     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4471     else
4472     ac_cpp_err=
4473     fi
4474     else
4475     ac_cpp_err=yes
4476     fi
4477     if test -z "$ac_cpp_err"; then
4478 root 1.80 # Broken: success on invalid input.
4479     continue
4480     else
4481     echo "$as_me: failed program was:" >&5
4482     sed 's/^/| /' conftest.$ac_ext >&5
4483    
4484     # Passes both tests.
4485     ac_preproc_ok=:
4486     break
4487     fi
4488     rm -f conftest.err conftest.$ac_ext
4489    
4490     done
4491     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4492     rm -f conftest.err conftest.$ac_ext
4493     if $ac_preproc_ok; then
4494     break
4495     fi
4496    
4497     done
4498     ac_cv_prog_CXXCPP=$CXXCPP
4499    
4500     fi
4501     CXXCPP=$ac_cv_prog_CXXCPP
4502     else
4503     ac_cv_prog_CXXCPP=$CXXCPP
4504     fi
4505 ayin 1.106 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4506     echo "${ECHO_T}$CXXCPP" >&6
4507 root 1.80 ac_preproc_ok=false
4508     for ac_cxx_preproc_warn_flag in '' yes
4509     do
4510     # Use a header file that comes with gcc, so configuring glibc
4511     # with a fresh cross-compiler works.
4512     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4513     # <limits.h> exists even on freestanding compilers.
4514     # On the NeXT, cc -E runs the code through the compiler's parser,
4515     # not just through cpp. "Syntax error" is here to catch this case.
4516     cat >conftest.$ac_ext <<_ACEOF
4517     /* confdefs.h. */
4518     _ACEOF
4519     cat confdefs.h >>conftest.$ac_ext
4520     cat >>conftest.$ac_ext <<_ACEOF
4521     /* end confdefs.h. */
4522     #ifdef __STDC__
4523     # include <limits.h>
4524     #else
4525     # include <assert.h>
4526     #endif
4527     Syntax error
4528     _ACEOF
4529 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4530     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4531 root 1.80 ac_status=$?
4532     grep -v '^ *+' conftest.er1 >conftest.err
4533     rm -f conftest.er1
4534     cat conftest.err >&5
4535     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 ayin 1.106 (exit $ac_status); } >/dev/null; then
4537     if test -s conftest.err; then
4538     ac_cpp_err=$ac_cxx_preproc_warn_flag
4539     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4540     else
4541     ac_cpp_err=
4542     fi
4543     else
4544     ac_cpp_err=yes
4545     fi
4546     if test -z "$ac_cpp_err"; then
4547 root 1.80 :
4548     else
4549     echo "$as_me: failed program was:" >&5
4550     sed 's/^/| /' conftest.$ac_ext >&5
4551    
4552     # Broken: fails on valid input.
4553     continue
4554     fi
4555     rm -f conftest.err conftest.$ac_ext
4556    
4557 ayin 1.106 # OK, works on sane cases. Now check whether non-existent headers
4558 root 1.80 # can be detected and how.
4559     cat >conftest.$ac_ext <<_ACEOF
4560     /* confdefs.h. */
4561     _ACEOF
4562     cat confdefs.h >>conftest.$ac_ext
4563     cat >>conftest.$ac_ext <<_ACEOF
4564     /* end confdefs.h. */
4565     #include <ac_nonexistent.h>
4566     _ACEOF
4567 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4568     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4569 root 1.80 ac_status=$?
4570     grep -v '^ *+' conftest.er1 >conftest.err
4571     rm -f conftest.er1
4572     cat conftest.err >&5
4573     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 ayin 1.106 (exit $ac_status); } >/dev/null; then
4575     if test -s conftest.err; then
4576     ac_cpp_err=$ac_cxx_preproc_warn_flag
4577     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4578     else
4579     ac_cpp_err=
4580     fi
4581     else
4582     ac_cpp_err=yes
4583     fi
4584     if test -z "$ac_cpp_err"; then
4585 root 1.80 # Broken: success on invalid input.
4586     continue
4587     else
4588     echo "$as_me: failed program was:" >&5
4589     sed 's/^/| /' conftest.$ac_ext >&5
4590    
4591     # Passes both tests.
4592     ac_preproc_ok=:
4593     break
4594     fi
4595     rm -f conftest.err conftest.$ac_ext
4596    
4597     done
4598     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4599     rm -f conftest.err conftest.$ac_ext
4600     if $ac_preproc_ok; then
4601     :
4602     else
4603     { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4604     See \`config.log' for more details." >&5
4605     echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4606     See \`config.log' for more details." >&2;}
4607     { (exit 1); exit 1; }; }
4608     fi
4609    
4610 ayin 1.106 ac_ext=cc
4611 root 1.80 ac_cpp='$CXXCPP $CPPFLAGS'
4612     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4613     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4614     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4615    
4616    
4617 ayin 1.106 echo "$as_me:$LINENO: checking for X" >&5
4618     echo $ECHO_N "checking for X... $ECHO_C" >&6
4619 pcg 1.24
4620 pcg 1.11
4621 ayin 1.106 # Check whether --with-x or --without-x was given.
4622 pcg 1.1 if test "${with_x+set}" = set; then
4623 ayin 1.106 withval="$with_x"
4624 pcg 1.1
4625 ayin 1.106 fi;
4626 pcg 1.1 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4627     if test "x$with_x" = xno; then
4628     # The user explicitly disabled X.
4629     have_x=disabled
4630     else
4631 ayin 1.106 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4632     # Both variables are already set.
4633     have_x=yes
4634     else
4635     if test "${ac_cv_have_x+set}" = set; then
4636 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 pcg 1.1 else
4638     # One or both of the vars are not set, and there is no cached value.
4639 pcg 1.11 ac_x_includes=no ac_x_libraries=no
4640 ayin 1.106 rm -fr conftest.dir
4641 pcg 1.11 if mkdir conftest.dir; then
4642     cd conftest.dir
4643 ayin 1.106 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4644 pcg 1.11 cat >Imakefile <<'_ACEOF'
4645 ayin 1.106 acfindx:
4646     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4647 pcg 1.11 _ACEOF
4648 ayin 1.106 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4649 pcg 1.1 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4650 ayin 1.106 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4651 pcg 1.1 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4652     for ac_extension in a so sl; do
4653 ayin 1.106 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4654     test -f $ac_im_libdir/libX11.$ac_extension; then
4655 pcg 1.11 ac_im_usrlibdir=$ac_im_libdir; break
4656 pcg 1.1 fi
4657     done
4658     # Screen out bogus values from the imake configuration. They are
4659     # bogus both because they are the default anyway, and because
4660     # using them would break gcc on systems where it needs fixed includes.
4661 pcg 1.11 case $ac_im_incroot in
4662 ayin 1.106 /usr/include) ;;
4663 pcg 1.11 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4664 pcg 1.1 esac
4665 pcg 1.11 case $ac_im_usrlibdir in
4666 pcg 1.1 /usr/lib | /lib) ;;
4667 pcg 1.11 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4668 pcg 1.1 esac
4669     fi
4670     cd ..
4671 ayin 1.106 rm -fr conftest.dir
4672 pcg 1.1 fi
4673    
4674 pcg 1.11 # Standard set of common directories for X headers.
4675     # Check X11 before X11Rn because it is often a symlink to the current release.
4676     ac_x_header_dirs='
4677     /usr/X11/include
4678     /usr/X11R6/include
4679     /usr/X11R5/include
4680     /usr/X11R4/include
4681    
4682     /usr/include/X11
4683     /usr/include/X11R6
4684     /usr/include/X11R5
4685     /usr/include/X11R4
4686    
4687     /usr/local/X11/include
4688     /usr/local/X11R6/include
4689     /usr/local/X11R5/include
4690     /usr/local/X11R4/include
4691    
4692     /usr/local/include/X11
4693     /usr/local/include/X11R6
4694     /usr/local/include/X11R5
4695     /usr/local/include/X11R4
4696    
4697     /usr/X386/include
4698     /usr/x386/include
4699     /usr/XFree86/include/X11
4700    
4701     /usr/include
4702     /usr/local/include
4703     /usr/unsupported/include
4704     /usr/athena/include
4705     /usr/local/x11r5/include
4706     /usr/lpp/Xamples/include
4707    
4708     /usr/openwin/include
4709     /usr/openwin/share/include'
4710 pcg 1.1
4711 pcg 1.11 if test "$ac_x_includes" = no; then
4712 ayin 1.106 # Guess where to find include files, by looking for Intrinsic.h.
4713 pcg 1.1 # First, try using that file with no special directory specified.
4714 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
4715     /* confdefs.h. */
4716     _ACEOF
4717     cat confdefs.h >>conftest.$ac_ext
4718     cat >>conftest.$ac_ext <<_ACEOF
4719     /* end confdefs.h. */
4720 ayin 1.106 #include <X11/Intrinsic.h>
4721 pcg 1.11 _ACEOF
4722 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4723     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4724 pcg 1.11 ac_status=$?
4725     grep -v '^ *+' conftest.er1 >conftest.err
4726     rm -f conftest.er1
4727     cat conftest.err >&5
4728     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 ayin 1.106 (exit $ac_status); } >/dev/null; then
4730     if test -s conftest.err; then
4731     ac_cpp_err=$ac_cxx_preproc_warn_flag
4732     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4733     else
4734     ac_cpp_err=
4735     fi
4736     else
4737     ac_cpp_err=yes
4738     fi
4739     if test -z "$ac_cpp_err"; then
4740 pcg 1.1 # We can compile using X headers with no special include directory.
4741     ac_x_includes=
4742     else
4743 pcg 1.11 echo "$as_me: failed program was:" >&5
4744     sed 's/^/| /' conftest.$ac_ext >&5
4745    
4746     for ac_dir in $ac_x_header_dirs; do
4747 ayin 1.106 if test -r "$ac_dir/X11/Intrinsic.h"; then
4748 pcg 1.11 ac_x_includes=$ac_dir
4749     break
4750     fi
4751     done
4752 pcg 1.1 fi
4753 pcg 1.11 rm -f conftest.err conftest.$ac_ext
4754     fi # $ac_x_includes = no
4755 pcg 1.1
4756 pcg 1.11 if test "$ac_x_libraries" = no; then
4757 pcg 1.1 # Check for the libraries.
4758     # See if we find them without any special options.
4759     # Don't add to $LIBS permanently.
4760 pcg 1.11 ac_save_LIBS=$LIBS
4761 ayin 1.106 LIBS="-lXt $LIBS"
4762 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
4763     /* confdefs.h. */
4764     _ACEOF
4765     cat confdefs.h >>conftest.$ac_ext
4766     cat >>conftest.$ac_ext <<_ACEOF
4767     /* end confdefs.h. */
4768 ayin 1.106 #include <X11/Intrinsic.h>
4769 pcg 1.11 int
4770     main ()
4771     {
4772 ayin 1.106 XtMalloc (0)
4773 pcg 1.11 ;
4774     return 0;
4775     }
4776     _ACEOF
4777     rm -f conftest.$ac_objext conftest$ac_exeext
4778 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4779     (eval $ac_link) 2>conftest.er1
4780 pcg 1.11 ac_status=$?
4781     grep -v '^ *+' conftest.er1 >conftest.err
4782     rm -f conftest.er1
4783     cat conftest.err >&5
4784     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 ayin 1.106 (exit $ac_status); } &&
4786     { ac_try='test -z "$ac_cxx_werror_flag"
4787     || test ! -s conftest.err'
4788     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789     (eval $ac_try) 2>&5
4790     ac_status=$?
4791     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792     (exit $ac_status); }; } &&
4793     { ac_try='test -s conftest$ac_exeext'
4794     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795     (eval $ac_try) 2>&5
4796     ac_status=$?
4797     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798     (exit $ac_status); }; }; then
4799 pcg 1.11 LIBS=$ac_save_LIBS
4800 pcg 1.1 # We can link X programs with no special library path.
4801     ac_x_libraries=
4802     else
4803 pcg 1.11 echo "$as_me: failed program was:" >&5
4804     sed 's/^/| /' conftest.$ac_ext >&5
4805    
4806 ayin 1.106 LIBS=$ac_save_LIBS
4807 pcg 1.11 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4808 pcg 1.1 do
4809 pcg 1.11 # Don't even attempt the hair of trying to link an X program!
4810 pcg 1.1 for ac_extension in a so sl; do
4811 ayin 1.106 if test -r $ac_dir/libXt.$ac_extension; then
4812 pcg 1.1 ac_x_libraries=$ac_dir
4813     break 2
4814     fi
4815     done
4816     done
4817     fi
4818 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
4819 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
4820     fi # $ac_x_libraries = no
4821 pcg 1.1
4822 ayin 1.106 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4823     # Didn't find X anywhere. Cache the known absence of X.
4824     ac_cv_have_x="have_x=no"
4825     else
4826     # Record where we found X for the cache.
4827     ac_cv_have_x="have_x=yes \
4828     ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4829     fi
4830 ayin 1.104 fi
4831 ayin 1.106
4832     fi
4833 pcg 1.1 eval "$ac_cv_have_x"
4834     fi # $with_x != no
4835    
4836     if test "$have_x" != yes; then
4837 ayin 1.106 echo "$as_me:$LINENO: result: $have_x" >&5
4838     echo "${ECHO_T}$have_x" >&6
4839 pcg 1.1 no_x=yes
4840     else
4841     # If each of the values was on the command line, it overrides each guess.
4842     test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4843     test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4844     # Update the cache value to reflect the command line values.
4845 ayin 1.106 ac_cv_have_x="have_x=yes \
4846     ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4847     echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4848     echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4849 pcg 1.1 fi
4850    
4851     if test "$no_x" = yes; then
4852     # Not all programs may use this symbol, but it does not hurt to define it.
4853 pcg 1.11
4854     cat >>confdefs.h <<\_ACEOF
4855 pcg 1.1 #define X_DISPLAY_MISSING 1
4856 pcg 1.11 _ACEOF
4857 pcg 1.1
4858     X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4859     else
4860     if test -n "$x_includes"; then
4861     X_CFLAGS="$X_CFLAGS -I$x_includes"
4862     fi
4863    
4864     # It would also be nice to do this for all -L options, not just this one.
4865     if test -n "$x_libraries"; then
4866     X_LIBS="$X_LIBS -L$x_libraries"
4867     # For Solaris; some versions of Sun CC require a space after -R and
4868     # others require no space. Words are not sufficient . . . .
4869 ayin 1.106 case `(uname -sr) 2>/dev/null` in
4870     "SunOS 5"*)
4871     echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4872     echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4873     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4874     cat >conftest.$ac_ext <<_ACEOF
4875 pcg 1.11 /* confdefs.h. */
4876     _ACEOF
4877     cat confdefs.h >>conftest.$ac_ext
4878     cat >>conftest.$ac_ext <<_ACEOF
4879     /* end confdefs.h. */
4880 pcg 1.1
4881 pcg 1.11 int
4882     main ()
4883     {
4884 pcg 1.1
4885 pcg 1.11 ;
4886     return 0;
4887     }
4888     _ACEOF
4889     rm -f conftest.$ac_objext conftest$ac_exeext
4890 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4891     (eval $ac_link) 2>conftest.er1
4892 pcg 1.11 ac_status=$?
4893     grep -v '^ *+' conftest.er1 >conftest.err
4894     rm -f conftest.er1
4895     cat conftest.err >&5
4896     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 ayin 1.106 (exit $ac_status); } &&
4898     { ac_try='test -z "$ac_cxx_werror_flag"
4899     || test ! -s conftest.err'
4900     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901     (eval $ac_try) 2>&5
4902     ac_status=$?
4903     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904     (exit $ac_status); }; } &&
4905     { ac_try='test -s conftest$ac_exeext'
4906     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907     (eval $ac_try) 2>&5
4908     ac_status=$?
4909     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910     (exit $ac_status); }; }; then
4911     ac_R_nospace=yes
4912 pcg 1.1 else
4913 pcg 1.11 echo "$as_me: failed program was:" >&5
4914     sed 's/^/| /' conftest.$ac_ext >&5
4915    
4916 ayin 1.106 ac_R_nospace=no
4917     fi
4918     rm -f conftest.err conftest.$ac_objext \
4919     conftest$ac_exeext conftest.$ac_ext
4920     if test $ac_R_nospace = yes; then
4921     echo "$as_me:$LINENO: result: no" >&5
4922     echo "${ECHO_T}no" >&6
4923     X_LIBS="$X_LIBS -R$x_libraries"
4924     else
4925 pcg 1.1 LIBS="$ac_xsave_LIBS -R $x_libraries"
4926 ayin 1.106 cat >conftest.$ac_ext <<_ACEOF
4927 pcg 1.11 /* confdefs.h. */
4928     _ACEOF
4929     cat confdefs.h >>conftest.$ac_ext
4930     cat >>conftest.$ac_ext <<_ACEOF
4931     /* end confdefs.h. */
4932 pcg 1.1
4933 pcg 1.11 int
4934     main ()
4935     {
4936 pcg 1.1
4937 pcg 1.11 ;
4938     return 0;
4939     }
4940     _ACEOF
4941     rm -f conftest.$ac_objext conftest$ac_exeext
4942 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4943     (eval $ac_link) 2>conftest.er1
4944 pcg 1.11 ac_status=$?
4945     grep -v '^ *+' conftest.er1 >conftest.err
4946     rm -f conftest.er1
4947     cat conftest.err >&5
4948     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 ayin 1.106 (exit $ac_status); } &&
4950     { ac_try='test -z "$ac_cxx_werror_flag"
4951     || test ! -s conftest.err'
4952     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953     (eval $ac_try) 2>&5
4954     ac_status=$?
4955     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956     (exit $ac_status); }; } &&
4957     { ac_try='test -s conftest$ac_exeext'
4958     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959     (eval $ac_try) 2>&5
4960     ac_status=$?
4961     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962     (exit $ac_status); }; }; then
4963     ac_R_space=yes
4964 pcg 1.1 else
4965 pcg 1.11 echo "$as_me: failed program was:" >&5
4966     sed 's/^/| /' conftest.$ac_ext >&5
4967    
4968 ayin 1.106 ac_R_space=no
4969 ayin 1.102 fi
4970 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
4971 root 1.105 conftest$ac_exeext conftest.$ac_ext
4972 ayin 1.106 if test $ac_R_space = yes; then
4973     echo "$as_me:$LINENO: result: yes" >&5
4974     echo "${ECHO_T}yes" >&6
4975     X_LIBS="$X_LIBS -R $x_libraries"
4976     else
4977     echo "$as_me:$LINENO: result: neither works" >&5
4978     echo "${ECHO_T}neither works" >&6
4979     fi
4980     fi
4981     LIBS=$ac_xsave_LIBS
4982     esac
4983 pcg 1.1 fi
4984    
4985     # Check for system-dependent libraries X programs must link with.
4986     # Do this before checking for the system-independent R6 libraries
4987     # (-lICE), since we may need -lsocket or whatever for X linking.
4988    
4989     if test "$ISC" = yes; then
4990     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4991     else
4992 pcg 1.11 # Martyn Johnson says this is needed for Ultrix, if the X
4993     # libraries were built with DECnet support. And Karl Berry says
4994 pcg 1.1 # the Alpha needs dnet_stub (dnet does not exist).
4995 pcg 1.11 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4996     cat >conftest.$ac_ext <<_ACEOF
4997     /* confdefs.h. */
4998     _ACEOF
4999     cat confdefs.h >>conftest.$ac_ext
5000     cat >>conftest.$ac_ext <<_ACEOF
5001     /* end confdefs.h. */
5002    
5003 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
5004 pcg 1.11 #ifdef __cplusplus
5005     extern "C"
5006     #endif
5007 ayin 1.106 /* We use char because int might match the return type of a gcc2
5008     builtin and then its argument prototype would still apply. */
5009 pcg 1.11 char XOpenDisplay ();
5010     int
5011     main ()
5012     {
5013 ayin 1.106 XOpenDisplay ();
5014 pcg 1.11 ;
5015     return 0;
5016     }
5017     _ACEOF
5018     rm -f conftest.$ac_objext conftest$ac_exeext
5019 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5020     (eval $ac_link) 2>conftest.er1
5021 pcg 1.11 ac_status=$?
5022     grep -v '^ *+' conftest.er1 >conftest.err
5023     rm -f conftest.er1
5024     cat conftest.err >&5
5025     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 ayin 1.106 (exit $ac_status); } &&
5027     { ac_try='test -z "$ac_cxx_werror_flag"
5028     || test ! -s conftest.err'
5029     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030     (eval $ac_try) 2>&5
5031     ac_status=$?
5032     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033     (exit $ac_status); }; } &&
5034     { ac_try='test -s conftest$ac_exeext'
5035     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036     (eval $ac_try) 2>&5
5037     ac_status=$?
5038     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039     (exit $ac_status); }; }; then
5040 pcg 1.11 :
5041     else
5042     echo "$as_me: failed program was:" >&5
5043     sed 's/^/| /' conftest.$ac_ext >&5
5044 pcg 1.1
5045 ayin 1.106 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5046     echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5047 pcg 1.11 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5048     echo $ECHO_N "(cached) $ECHO_C" >&6
5049 pcg 1.1 else
5050 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5051     LIBS="-ldnet $LIBS"
5052     cat >conftest.$ac_ext <<_ACEOF
5053     /* confdefs.h. */
5054     _ACEOF
5055     cat confdefs.h >>conftest.$ac_ext
5056     cat >>conftest.$ac_ext <<_ACEOF
5057     /* end confdefs.h. */
5058 pcg 1.1
5059 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
5060 pcg 1.11 #ifdef __cplusplus
5061     extern "C"
5062     #endif
5063 ayin 1.106 /* We use char because int might match the return type of a gcc2
5064     builtin and then its argument prototype would still apply. */
5065 pcg 1.11 char dnet_ntoa ();
5066     int
5067     main ()
5068     {
5069 ayin 1.106 dnet_ntoa ();
5070 pcg 1.11 ;
5071     return 0;
5072     }
5073     _ACEOF
5074     rm -f conftest.$ac_objext conftest$ac_exeext
5075 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5076     (eval $ac_link) 2>conftest.er1
5077 pcg 1.11 ac_status=$?
5078     grep -v '^ *+' conftest.er1 >conftest.err
5079     rm -f conftest.er1
5080     cat conftest.err >&5
5081     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 ayin 1.106 (exit $ac_status); } &&
5083     { ac_try='test -z "$ac_cxx_werror_flag"
5084     || test ! -s conftest.err'
5085     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086     (eval $ac_try) 2>&5
5087     ac_status=$?
5088     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089     (exit $ac_status); }; } &&
5090     { ac_try='test -s conftest$ac_exeext'
5091     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092     (eval $ac_try) 2>&5
5093     ac_status=$?
5094     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095     (exit $ac_status); }; }; then
5096 pcg 1.11 ac_cv_lib_dnet_dnet_ntoa=yes
5097     else
5098     echo "$as_me: failed program was:" >&5
5099     sed 's/^/| /' conftest.$ac_ext >&5
5100    
5101 ayin 1.106 ac_cv_lib_dnet_dnet_ntoa=no
5102 pcg 1.11 fi
5103 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
5104 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5105     LIBS=$ac_check_lib_save_LIBS
5106     fi
5107 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5108     echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5109 pcg 1.11 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5110 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5111     fi
5112    
5113     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5114 ayin 1.106 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5115     echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5116 pcg 1.11 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5117     echo $ECHO_N "(cached) $ECHO_C" >&6
5118 pcg 1.1 else
5119 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5120 pcg 1.1 LIBS="-ldnet_stub $LIBS"
5121 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5122     /* confdefs.h. */
5123     _ACEOF
5124     cat confdefs.h >>conftest.$ac_ext
5125     cat >>conftest.$ac_ext <<_ACEOF
5126     /* end confdefs.h. */
5127    
5128 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
5129 pcg 1.11 #ifdef __cplusplus
5130     extern "C"
5131     #endif
5132 ayin 1.106 /* We use char because int might match the return type of a gcc2
5133     builtin and then its argument prototype would still apply. */
5134 pcg 1.11 char dnet_ntoa ();
5135     int
5136     main ()
5137     {
5138 ayin 1.106 dnet_ntoa ();
5139 pcg 1.11 ;
5140     return 0;
5141     }
5142     _ACEOF
5143     rm -f conftest.$ac_objext conftest$ac_exeext
5144 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5145     (eval $ac_link) 2>conftest.er1
5146 pcg 1.11 ac_status=$?
5147     grep -v '^ *+' conftest.er1 >conftest.err
5148     rm -f conftest.er1
5149     cat conftest.err >&5
5150     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 ayin 1.106 (exit $ac_status); } &&
5152     { ac_try='test -z "$ac_cxx_werror_flag"
5153     || test ! -s conftest.err'
5154     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155     (eval $ac_try) 2>&5
5156     ac_status=$?
5157     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158     (exit $ac_status); }; } &&
5159     { ac_try='test -s conftest$ac_exeext'
5160     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161     (eval $ac_try) 2>&5
5162     ac_status=$?
5163     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164     (exit $ac_status); }; }; then
5165 pcg 1.11 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5166     else
5167     echo "$as_me: failed program was:" >&5
5168     sed 's/^/| /' conftest.$ac_ext >&5
5169    
5170 ayin 1.106 ac_cv_lib_dnet_stub_dnet_ntoa=no
5171 pcg 1.11 fi
5172 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
5173 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5174     LIBS=$ac_check_lib_save_LIBS
5175     fi
5176 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5177     echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5178 pcg 1.11 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5179 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5180     fi
5181    
5182     fi
5183 pcg 1.11 fi
5184 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
5185 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5186     LIBS="$ac_xsave_LIBS"
5187 pcg 1.1
5188     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5189     # to get the SysV transport functions.
5190 pcg 1.11 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5191 pcg 1.1 # needs -lnsl.
5192     # The nsl library prevents programs from opening the X display
5193 pcg 1.11 # on Irix 5.2, according to T.E. Dickey.
5194     # The functions gethostbyname, getservbyname, and inet_addr are
5195     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5196 ayin 1.106 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5197     echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5198 pcg 1.11 if test "${ac_cv_func_gethostbyname+set}" = set; then
5199     echo $ECHO_N "(cached) $ECHO_C" >&6
5200     else
5201     cat >conftest.$ac_ext <<_ACEOF
5202     /* confdefs.h. */
5203     _ACEOF
5204     cat confdefs.h >>conftest.$ac_ext
5205     cat >>conftest.$ac_ext <<_ACEOF
5206     /* end confdefs.h. */
5207     /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5208     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5209     #define gethostbyname innocuous_gethostbyname
5210    
5211 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
5212 pcg 1.11 which can conflict with char gethostbyname (); below.
5213     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5214     <limits.h> exists even on freestanding compilers. */
5215    
5216     #ifdef __STDC__
5217     # include <limits.h>
5218     #else
5219     # include <assert.h>
5220     #endif
5221    
5222     #undef gethostbyname
5223    
5224 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
5225 pcg 1.11 #ifdef __cplusplus
5226     extern "C"
5227 ayin 1.106 {
5228 pcg 1.11 #endif
5229 ayin 1.106 /* We use char because int might match the return type of a gcc2
5230     builtin and then its argument prototype would still apply. */
5231 pcg 1.11 char gethostbyname ();
5232 pcg 1.1 /* The GNU C library defines this for functions which it implements
5233     to always fail with ENOSYS. Some functions are actually named
5234     something starting with __ and the normal name is an alias. */
5235 ayin 1.106 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5236 pcg 1.1 choke me
5237 ayin 1.106 #else
5238     char (*f) () = gethostbyname;
5239     #endif
5240     #ifdef __cplusplus
5241     }
5242 pcg 1.1 #endif
5243    
5244 pcg 1.11 int
5245     main ()
5246     {
5247 ayin 1.106 return f != gethostbyname;
5248 pcg 1.11 ;
5249     return 0;
5250     }
5251     _ACEOF
5252     rm -f conftest.$ac_objext conftest$ac_exeext
5253 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5254     (eval $ac_link) 2>conftest.er1
5255 pcg 1.11 ac_status=$?
5256     grep -v '^ *+' conftest.er1 >conftest.err
5257     rm -f conftest.er1
5258     cat conftest.err >&5
5259     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 ayin 1.106 (exit $ac_status); } &&
5261     { ac_try='test -z "$ac_cxx_werror_flag"
5262     || test ! -s conftest.err'
5263     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264     (eval $ac_try) 2>&5
5265     ac_status=$?
5266     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267     (exit $ac_status); }; } &&
5268     { ac_try='test -s conftest$ac_exeext'
5269     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270     (eval $ac_try) 2>&5
5271     ac_status=$?
5272     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273     (exit $ac_status); }; }; then
5274 pcg 1.11 ac_cv_func_gethostbyname=yes
5275     else
5276     echo "$as_me: failed program was:" >&5
5277     sed 's/^/| /' conftest.$ac_ext >&5
5278    
5279 ayin 1.106 ac_cv_func_gethostbyname=no
5280 pcg 1.11 fi
5281 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
5282 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5283     fi
5284 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5285     echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5286 pcg 1.11
5287 pcg 1.1 if test $ac_cv_func_gethostbyname = no; then
5288 ayin 1.106 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5289     echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5290 pcg 1.11 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5291     echo $ECHO_N "(cached) $ECHO_C" >&6
5292 pcg 1.1 else
5293 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5294 pcg 1.1 LIBS="-lnsl $LIBS"
5295 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5296     /* confdefs.h. */
5297     _ACEOF
5298     cat confdefs.h >>conftest.$ac_ext
5299     cat >>conftest.$ac_ext <<_ACEOF
5300     /* end confdefs.h. */
5301    
5302 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
5303 pcg 1.11 #ifdef __cplusplus
5304     extern "C"
5305     #endif
5306 ayin 1.106 /* We use char because int might match the return type of a gcc2
5307     builtin and then its argument prototype would still apply. */
5308 pcg 1.11 char gethostbyname ();
5309     int
5310     main ()
5311     {
5312 ayin 1.106 gethostbyname ();
5313 pcg 1.11 ;
5314     return 0;
5315     }
5316     _ACEOF
5317     rm -f conftest.$ac_objext conftest$ac_exeext
5318 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5319     (eval $ac_link) 2>conftest.er1
5320 pcg 1.11 ac_status=$?
5321     grep -v '^ *+' conftest.er1 >conftest.err
5322     rm -f conftest.er1
5323     cat conftest.err >&5
5324     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 ayin 1.106 (exit $ac_status); } &&
5326     { ac_try='test -z "$ac_cxx_werror_flag"
5327     || test ! -s conftest.err'
5328     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329     (eval $ac_try) 2>&5
5330     ac_status=$?
5331     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332     (exit $ac_status); }; } &&
5333     { ac_try='test -s conftest$ac_exeext'
5334     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335     (eval $ac_try) 2>&5
5336     ac_status=$?
5337     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338     (exit $ac_status); }; }; then
5339 pcg 1.11 ac_cv_lib_nsl_gethostbyname=yes
5340     else
5341     echo "$as_me: failed program was:" >&5
5342     sed 's/^/| /' conftest.$ac_ext >&5
5343    
5344 ayin 1.106 ac_cv_lib_nsl_gethostbyname=no
5345 pcg 1.11 fi
5346 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
5347 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5348     LIBS=$ac_check_lib_save_LIBS
5349     fi
5350 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5351     echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5352 pcg 1.11 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5353     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5354     fi
5355 pcg 1.1
5356 pcg 1.11 if test $ac_cv_lib_nsl_gethostbyname = no; then
5357 ayin 1.106 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5358     echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5359 pcg 1.11 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5360     echo $ECHO_N "(cached) $ECHO_C" >&6
5361     else
5362     ac_check_lib_save_LIBS=$LIBS
5363     LIBS="-lbsd $LIBS"
5364     cat >conftest.$ac_ext <<_ACEOF
5365     /* confdefs.h. */
5366     _ACEOF
5367     cat confdefs.h >>conftest.$ac_ext
5368     cat >>conftest.$ac_ext <<_ACEOF
5369     /* end confdefs.h. */
5370 pcg 1.1
5371 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
5372 pcg 1.11 #ifdef __cplusplus
5373     extern "C"
5374     #endif
5375 ayin 1.106 /* We use char because int might match the return type of a gcc2
5376     builtin and then its argument prototype would still apply. */
5377 pcg 1.11 char gethostbyname ();
5378     int
5379     main ()
5380     {
5381 ayin 1.106 gethostbyname ();
5382 pcg 1.11 ;
5383     return 0;
5384     }
5385     _ACEOF
5386     rm -f conftest.$ac_objext conftest$ac_exeext
5387 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5388     (eval $ac_link) 2>conftest.er1
5389 pcg 1.11 ac_status=$?
5390     grep -v '^ *+' conftest.er1 >conftest.err
5391     rm -f conftest.er1
5392     cat conftest.err >&5
5393     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 ayin 1.106 (exit $ac_status); } &&
5395     { ac_try='test -z "$ac_cxx_werror_flag"
5396     || test ! -s conftest.err'
5397     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398     (eval $ac_try) 2>&5
5399     ac_status=$?
5400     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401     (exit $ac_status); }; } &&
5402     { ac_try='test -s conftest$ac_exeext'
5403     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404     (eval $ac_try) 2>&5
5405     ac_status=$?
5406     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407     (exit $ac_status); }; }; then
5408 pcg 1.11 ac_cv_lib_bsd_gethostbyname=yes
5409     else
5410     echo "$as_me: failed program was:" >&5
5411     sed 's/^/| /' conftest.$ac_ext >&5
5412    
5413 ayin 1.106 ac_cv_lib_bsd_gethostbyname=no
5414 pcg 1.11 fi
5415 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
5416 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5417     LIBS=$ac_check_lib_save_LIBS
5418     fi
5419 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5420     echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5421 pcg 1.11 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5422     X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5423 pcg 1.1 fi
5424    
5425 pcg 1.11 fi
5426 pcg 1.1 fi
5427    
5428     # lieder@skyler.mavd.honeywell.com says without -lsocket,
5429     # socket/setsockopt and other routines are undefined under SCO ODT
5430     # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5431 pcg 1.11 # on later versions), says Simon Leinen: it contains gethostby*
5432     # variants that don't use the name server (or something). -lsocket
5433     # must be given before -lnsl if both are needed. We assume that
5434     # if connect needs -lnsl, so does gethostbyname.
5435 ayin 1.106 echo "$as_me:$LINENO: checking for connect" >&5
5436     echo $ECHO_N "checking for connect... $ECHO_C" >&6
5437 pcg 1.11 if test "${ac_cv_func_connect+set}" = set; then
5438     echo $ECHO_N "(cached) $ECHO_C" >&6
5439     else
5440     cat >conftest.$ac_ext <<_ACEOF
5441     /* confdefs.h. */
5442     _ACEOF
5443     cat confdefs.h >>conftest.$ac_ext
5444     cat >>conftest.$ac_ext <<_ACEOF
5445     /* end confdefs.h. */
5446     /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5447     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5448     #define connect innocuous_connect
5449    
5450 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
5451 pcg 1.11 which can conflict with char connect (); below.
5452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5453     <limits.h> exists even on freestanding compilers. */
5454    
5455     #ifdef __STDC__
5456     # include <limits.h>
5457     #else
5458     # include <assert.h>
5459     #endif
5460    
5461     #undef connect
5462    
5463 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
5464 pcg 1.11 #ifdef __cplusplus
5465     extern "C"
5466 ayin 1.106 {
5467 pcg 1.11 #endif
5468 ayin 1.106 /* We use char because int might match the return type of a gcc2
5469     builtin and then its argument prototype would still apply. */
5470 pcg 1.11 char connect ();
5471 pcg 1.1 /* The GNU C library defines this for functions which it implements
5472     to always fail with ENOSYS. Some functions are actually named
5473     something starting with __ and the normal name is an alias. */
5474 ayin 1.106 #if defined (__stub_connect) || defined (__stub___connect)
5475 pcg 1.1 choke me
5476 ayin 1.106 #else
5477     char (*f) () = connect;
5478     #endif
5479     #ifdef __cplusplus
5480     }
5481 pcg 1.1 #endif
5482    
5483 pcg 1.11 int
5484     main ()
5485     {
5486 ayin 1.106 return f != connect;
5487 pcg 1.11 ;
5488     return 0;
5489     }
5490     _ACEOF
5491     rm -f conftest.$ac_objext conftest$ac_exeext
5492 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5493     (eval $ac_link) 2>conftest.er1
5494 pcg 1.11 ac_status=$?
5495     grep -v '^ *+' conftest.er1 >conftest.err
5496     rm -f conftest.er1
5497     cat conftest.err >&5
5498     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 ayin 1.106 (exit $ac_status); } &&
5500     { ac_try='test -z "$ac_cxx_werror_flag"
5501     || test ! -s conftest.err'
5502     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503     (eval $ac_try) 2>&5
5504     ac_status=$?
5505     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506     (exit $ac_status); }; } &&
5507     { ac_try='test -s conftest$ac_exeext'
5508     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509     (eval $ac_try) 2>&5
5510     ac_status=$?
5511     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512     (exit $ac_status); }; }; then
5513 pcg 1.11 ac_cv_func_connect=yes
5514     else
5515     echo "$as_me: failed program was:" >&5
5516     sed 's/^/| /' conftest.$ac_ext >&5
5517    
5518 ayin 1.106 ac_cv_func_connect=no
5519 pcg 1.1 fi
5520 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
5521 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5522 pcg 1.1 fi
5523 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5524     echo "${ECHO_T}$ac_cv_func_connect" >&6
5525 pcg 1.1
5526     if test $ac_cv_func_connect = no; then
5527 ayin 1.106 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5528     echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5529 pcg 1.11 if test "${ac_cv_lib_socket_connect+set}" = set; then
5530     echo $ECHO_N "(cached) $ECHO_C" >&6
5531 pcg 1.1 else
5532 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5533 pcg 1.1 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5534 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5535     /* confdefs.h. */
5536     _ACEOF
5537     cat confdefs.h >>conftest.$ac_ext
5538     cat >>conftest.$ac_ext <<_ACEOF
5539     /* end confdefs.h. */
5540    
5541 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
5542 pcg 1.11 #ifdef __cplusplus
5543     extern "C"
5544     #endif
5545 ayin 1.106 /* We use char because int might match the return type of a gcc2
5546     builtin and then its argument prototype would still apply. */
5547 pcg 1.11 char connect ();
5548     int
5549     main ()
5550     {
5551 ayin 1.106 connect ();
5552 pcg 1.11 ;
5553     return 0;
5554     }
5555     _ACEOF
5556     rm -f conftest.$ac_objext conftest$ac_exeext
5557 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5558     (eval $ac_link) 2>conftest.er1
5559 pcg 1.11 ac_status=$?
5560     grep -v '^ *+' conftest.er1 >conftest.err
5561     rm -f conftest.er1
5562     cat conftest.err >&5
5563     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 ayin 1.106 (exit $ac_status); } &&
5565     { ac_try='test -z "$ac_cxx_werror_flag"
5566     || test ! -s conftest.err'
5567     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568     (eval $ac_try) 2>&5
5569     ac_status=$?
5570     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571     (exit $ac_status); }; } &&
5572     { ac_try='test -s conftest$ac_exeext'
5573     { (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); }; }; then
5578 pcg 1.11 ac_cv_lib_socket_connect=yes
5579     else
5580     echo "$as_me: failed program was:" >&5
5581     sed 's/^/| /' conftest.$ac_ext >&5
5582    
5583 ayin 1.106 ac_cv_lib_socket_connect=no
5584 pcg 1.11 fi
5585 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
5586 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5587     LIBS=$ac_check_lib_save_LIBS
5588     fi
5589 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5590     echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5591 pcg 1.11 if test $ac_cv_lib_socket_connect = yes; then
5592 pcg 1.1 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5593     fi
5594    
5595     fi
5596    
5597 pcg 1.11 # Guillermo Gomez says -lposix is necessary on A/UX.
5598 ayin 1.106 echo "$as_me:$LINENO: checking for remove" >&5
5599     echo $ECHO_N "checking for remove... $ECHO_C" >&6
5600 pcg 1.11 if test "${ac_cv_func_remove+set}" = set; then
5601     echo $ECHO_N "(cached) $ECHO_C" >&6
5602     else
5603     cat >conftest.$ac_ext <<_ACEOF
5604     /* confdefs.h. */
5605     _ACEOF
5606     cat confdefs.h >>conftest.$ac_ext
5607     cat >>conftest.$ac_ext <<_ACEOF
5608     /* end confdefs.h. */
5609     /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5610     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5611     #define remove innocuous_remove
5612    
5613 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
5614 pcg 1.11 which can conflict with char remove (); below.
5615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5616     <limits.h> exists even on freestanding compilers. */
5617    
5618     #ifdef __STDC__
5619     # include <limits.h>
5620     #else
5621     # include <assert.h>
5622     #endif
5623    
5624     #undef remove
5625    
5626 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
5627 pcg 1.11 #ifdef __cplusplus
5628     extern "C"
5629 ayin 1.106 {
5630 pcg 1.11 #endif
5631 ayin 1.106 /* We use char because int might match the return type of a gcc2
5632     builtin and then its argument prototype would still apply. */
5633 pcg 1.11 char remove ();
5634 pcg 1.1 /* The GNU C library defines this for functions which it implements
5635     to always fail with ENOSYS. Some functions are actually named
5636     something starting with __ and the normal name is an alias. */
5637 ayin 1.106 #if defined (__stub_remove) || defined (__stub___remove)
5638 pcg 1.1 choke me
5639 ayin 1.106 #else
5640     char (*f) () = remove;
5641     #endif
5642     #ifdef __cplusplus
5643     }
5644 pcg 1.1 #endif
5645    
5646 pcg 1.11 int
5647     main ()
5648     {
5649 ayin 1.106 return f != remove;
5650 pcg 1.11 ;
5651     return 0;
5652     }
5653     _ACEOF
5654     rm -f conftest.$ac_objext conftest$ac_exeext
5655 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5656     (eval $ac_link) 2>conftest.er1
5657 pcg 1.11 ac_status=$?
5658     grep -v '^ *+' conftest.er1 >conftest.err
5659     rm -f conftest.er1
5660     cat conftest.err >&5
5661     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 ayin 1.106 (exit $ac_status); } &&
5663     { ac_try='test -z "$ac_cxx_werror_flag"
5664     || test ! -s conftest.err'
5665     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666     (eval $ac_try) 2>&5
5667     ac_status=$?
5668     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669     (exit $ac_status); }; } &&
5670     { ac_try='test -s conftest$ac_exeext'
5671     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672     (eval $ac_try) 2>&5
5673     ac_status=$?
5674     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675     (exit $ac_status); }; }; then
5676 pcg 1.11 ac_cv_func_remove=yes
5677     else
5678     echo "$as_me: failed program was:" >&5
5679     sed 's/^/| /' conftest.$ac_ext >&5
5680    
5681 ayin 1.106 ac_cv_func_remove=no
5682 pcg 1.1 fi
5683 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
5684 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5685 pcg 1.1 fi
5686 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5687     echo "${ECHO_T}$ac_cv_func_remove" >&6
5688 pcg 1.1
5689     if test $ac_cv_func_remove = no; then
5690 ayin 1.106 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5691     echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5692 pcg 1.11 if test "${ac_cv_lib_posix_remove+set}" = set; then
5693     echo $ECHO_N "(cached) $ECHO_C" >&6
5694 pcg 1.1 else
5695 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5696 pcg 1.1 LIBS="-lposix $LIBS"
5697 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5698     /* confdefs.h. */
5699     _ACEOF
5700     cat confdefs.h >>conftest.$ac_ext
5701     cat >>conftest.$ac_ext <<_ACEOF
5702     /* end confdefs.h. */
5703    
5704 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
5705 pcg 1.11 #ifdef __cplusplus
5706     extern "C"
5707     #endif
5708 ayin 1.106 /* We use char because int might match the return type of a gcc2
5709     builtin and then its argument prototype would still apply. */
5710 pcg 1.11 char remove ();
5711     int
5712     main ()
5713     {
5714 ayin 1.106 remove ();
5715 pcg 1.11 ;
5716     return 0;
5717     }
5718     _ACEOF
5719     rm -f conftest.$ac_objext conftest$ac_exeext
5720 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5721     (eval $ac_link) 2>conftest.er1
5722 pcg 1.11 ac_status=$?
5723     grep -v '^ *+' conftest.er1 >conftest.err
5724     rm -f conftest.er1
5725     cat conftest.err >&5
5726     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 ayin 1.106 (exit $ac_status); } &&
5728     { ac_try='test -z "$ac_cxx_werror_flag"
5729     || test ! -s conftest.err'
5730     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731     (eval $ac_try) 2>&5
5732     ac_status=$?
5733     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734     (exit $ac_status); }; } &&
5735     { ac_try='test -s conftest$ac_exeext'
5736     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737     (eval $ac_try) 2>&5
5738     ac_status=$?
5739     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740     (exit $ac_status); }; }; then
5741 pcg 1.11 ac_cv_lib_posix_remove=yes
5742     else
5743     echo "$as_me: failed program was:" >&5
5744     sed 's/^/| /' conftest.$ac_ext >&5
5745    
5746 ayin 1.106 ac_cv_lib_posix_remove=no
5747 pcg 1.11 fi
5748 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
5749 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5750     LIBS=$ac_check_lib_save_LIBS
5751     fi
5752 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5753     echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5754 pcg 1.11 if test $ac_cv_lib_posix_remove = yes; then
5755 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5756     fi
5757    
5758     fi
5759    
5760     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5761 ayin 1.106 echo "$as_me:$LINENO: checking for shmat" >&5
5762     echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5763 pcg 1.11 if test "${ac_cv_func_shmat+set}" = set; then
5764     echo $ECHO_N "(cached) $ECHO_C" >&6
5765     else
5766     cat >conftest.$ac_ext <<_ACEOF
5767     /* confdefs.h. */
5768     _ACEOF
5769     cat confdefs.h >>conftest.$ac_ext
5770     cat >>conftest.$ac_ext <<_ACEOF
5771     /* end confdefs.h. */
5772     /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5773     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5774     #define shmat innocuous_shmat
5775    
5776 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
5777 pcg 1.11 which can conflict with char shmat (); below.
5778     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5779     <limits.h> exists even on freestanding compilers. */
5780    
5781     #ifdef __STDC__
5782     # include <limits.h>
5783     #else
5784     # include <assert.h>
5785     #endif
5786    
5787     #undef shmat
5788    
5789 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
5790 pcg 1.11 #ifdef __cplusplus
5791     extern "C"
5792 ayin 1.106 {
5793 pcg 1.11 #endif
5794 ayin 1.106 /* We use char because int might match the return type of a gcc2
5795     builtin and then its argument prototype would still apply. */
5796 pcg 1.11 char shmat ();
5797 pcg 1.1 /* The GNU C library defines this for functions which it implements
5798     to always fail with ENOSYS. Some functions are actually named
5799     something starting with __ and the normal name is an alias. */
5800 ayin 1.106 #if defined (__stub_shmat) || defined (__stub___shmat)
5801 pcg 1.1 choke me
5802 ayin 1.106 #else
5803     char (*f) () = shmat;
5804     #endif
5805     #ifdef __cplusplus
5806     }
5807 pcg 1.11 #endif
5808    
5809     int
5810     main ()
5811     {
5812 ayin 1.106 return f != shmat;
5813 pcg 1.11 ;
5814     return 0;
5815     }
5816     _ACEOF
5817     rm -f conftest.$ac_objext conftest$ac_exeext
5818 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5819     (eval $ac_link) 2>conftest.er1
5820 pcg 1.11 ac_status=$?
5821     grep -v '^ *+' conftest.er1 >conftest.err
5822     rm -f conftest.er1
5823     cat conftest.err >&5
5824     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 ayin 1.106 (exit $ac_status); } &&
5826     { ac_try='test -z "$ac_cxx_werror_flag"
5827     || test ! -s conftest.err'
5828     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829     (eval $ac_try) 2>&5
5830     ac_status=$?
5831     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832     (exit $ac_status); }; } &&
5833     { ac_try='test -s conftest$ac_exeext'
5834     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835     (eval $ac_try) 2>&5
5836     ac_status=$?
5837     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838     (exit $ac_status); }; }; then
5839 pcg 1.11 ac_cv_func_shmat=yes
5840     else
5841     echo "$as_me: failed program was:" >&5
5842     sed 's/^/| /' conftest.$ac_ext >&5
5843 pcg 1.1
5844 ayin 1.106 ac_cv_func_shmat=no
5845 pcg 1.1 fi
5846 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
5847 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5848 pcg 1.1 fi
5849 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5850     echo "${ECHO_T}$ac_cv_func_shmat" >&6
5851 pcg 1.1
5852     if test $ac_cv_func_shmat = no; then
5853 ayin 1.106 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5854     echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5855 pcg 1.11 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5856     echo $ECHO_N "(cached) $ECHO_C" >&6
5857 pcg 1.1 else
5858 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5859 pcg 1.1 LIBS="-lipc $LIBS"
5860 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5861     /* confdefs.h. */
5862     _ACEOF
5863     cat confdefs.h >>conftest.$ac_ext
5864     cat >>conftest.$ac_ext <<_ACEOF
5865     /* end confdefs.h. */
5866    
5867 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
5868 pcg 1.11 #ifdef __cplusplus
5869     extern "C"
5870     #endif
5871 ayin 1.106 /* We use char because int might match the return type of a gcc2
5872     builtin and then its argument prototype would still apply. */
5873 pcg 1.11 char shmat ();
5874     int
5875     main ()
5876     {
5877 ayin 1.106 shmat ();
5878 pcg 1.11 ;
5879     return 0;
5880     }
5881     _ACEOF
5882     rm -f conftest.$ac_objext conftest$ac_exeext
5883 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5884     (eval $ac_link) 2>conftest.er1
5885 pcg 1.11 ac_status=$?
5886     grep -v '^ *+' conftest.er1 >conftest.err
5887     rm -f conftest.er1
5888     cat conftest.err >&5
5889     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 ayin 1.106 (exit $ac_status); } &&
5891     { ac_try='test -z "$ac_cxx_werror_flag"
5892     || test ! -s conftest.err'
5893     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894     (eval $ac_try) 2>&5
5895     ac_status=$?
5896     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897     (exit $ac_status); }; } &&
5898     { ac_try='test -s conftest$ac_exeext'
5899     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900     (eval $ac_try) 2>&5
5901     ac_status=$?
5902     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903     (exit $ac_status); }; }; then
5904 pcg 1.11 ac_cv_lib_ipc_shmat=yes
5905     else
5906     echo "$as_me: failed program was:" >&5
5907     sed 's/^/| /' conftest.$ac_ext >&5
5908    
5909 ayin 1.106 ac_cv_lib_ipc_shmat=no
5910 pcg 1.11 fi
5911 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
5912 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5913     LIBS=$ac_check_lib_save_LIBS
5914     fi
5915 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5916     echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5917 pcg 1.11 if test $ac_cv_lib_ipc_shmat = yes; then
5918 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5919     fi
5920    
5921     fi
5922     fi
5923    
5924     # Check for libraries that X11R6 Xt/Xaw programs need.
5925 pcg 1.11 ac_save_LDFLAGS=$LDFLAGS
5926 pcg 1.1 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5927     # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5928     # check for ICE first), but we must link in the order -lSM -lICE or
5929     # we get undefined symbols. So assume we have SM if we have ICE.
5930     # These have to be linked with before -lX11, unlike the other
5931     # libraries we check for below, so use a different variable.
5932 pcg 1.11 # John Interrante, Karl Berry
5933 ayin 1.106 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5934     echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5935 pcg 1.11 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5936     echo $ECHO_N "(cached) $ECHO_C" >&6
5937 pcg 1.1 else
5938 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5939 pcg 1.1 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5940 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5941     /* confdefs.h. */
5942     _ACEOF
5943     cat confdefs.h >>conftest.$ac_ext
5944     cat >>conftest.$ac_ext <<_ACEOF
5945     /* end confdefs.h. */
5946    
5947 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
5948 pcg 1.11 #ifdef __cplusplus
5949     extern "C"
5950     #endif
5951 ayin 1.106 /* We use char because int might match the return type of a gcc2
5952     builtin and then its argument prototype would still apply. */
5953 pcg 1.11 char IceConnectionNumber ();
5954     int
5955     main ()
5956     {
5957 ayin 1.106 IceConnectionNumber ();
5958 pcg 1.11 ;
5959     return 0;
5960     }
5961     _ACEOF
5962     rm -f conftest.$ac_objext conftest$ac_exeext
5963 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5964     (eval $ac_link) 2>conftest.er1
5965 pcg 1.11 ac_status=$?
5966     grep -v '^ *+' conftest.er1 >conftest.err
5967     rm -f conftest.er1
5968     cat conftest.err >&5
5969     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 ayin 1.106 (exit $ac_status); } &&
5971     { ac_try='test -z "$ac_cxx_werror_flag"
5972     || test ! -s conftest.err'
5973     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974     (eval $ac_try) 2>&5
5975     ac_status=$?
5976     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977     (exit $ac_status); }; } &&
5978     { ac_try='test -s conftest$ac_exeext'
5979     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980     (eval $ac_try) 2>&5
5981     ac_status=$?
5982     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983     (exit $ac_status); }; }; then
5984 pcg 1.11 ac_cv_lib_ICE_IceConnectionNumber=yes
5985     else
5986     echo "$as_me: failed program was:" >&5
5987     sed 's/^/| /' conftest.$ac_ext >&5
5988    
5989 ayin 1.106 ac_cv_lib_ICE_IceConnectionNumber=no
5990 pcg 1.11 fi
5991 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
5992 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5993     LIBS=$ac_check_lib_save_LIBS
5994     fi
5995 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5996     echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5997 pcg 1.11 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5998 pcg 1.1 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5999     fi
6000    
6001 pcg 1.11 LDFLAGS=$ac_save_LDFLAGS
6002 pcg 1.1
6003     fi
6004    
6005    
6006    
6007 root 1.103 LIBAFTERIMAGE_CFLAGS=
6008     AFTERIMAGE_LIBS=
6009     have_afterimage=
6010    
6011     if test x$support_afterimage = xyes; then
6012     support_afterimage=no
6013    
6014 ayin 1.104 if test "x$afterimage_config" = "x" ; then
6015 root 1.103 # Extract the first word of "afterimage-config", so it can be a program name with args.
6016     set dummy afterimage-config; ac_word=$2
6017 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_word" >&5
6018     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6019 root 1.103 if test "${ac_cv_path_afterimage_config+set}" = set; then
6020     echo $ECHO_N "(cached) $ECHO_C" >&6
6021     else
6022     case $afterimage_config in
6023     [\\/]* | ?:[\\/]*)
6024     ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6025     ;;
6026     *)
6027     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028     for as_dir in $PATH
6029     do
6030     IFS=$as_save_IFS
6031     test -z "$as_dir" && as_dir=.
6032     for ac_exec_ext in '' $ac_executable_extensions; do
6033 ayin 1.106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6034 root 1.103 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6036     break 2
6037     fi
6038     done
6039     done
6040    
6041     test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6042     ;;
6043     esac
6044     fi
6045     afterimage_config=$ac_cv_path_afterimage_config
6046 ayin 1.106
6047 root 1.103 if test -n "$afterimage_config"; then
6048 ayin 1.106 echo "$as_me:$LINENO: result: $afterimage_config" >&5
6049     echo "${ECHO_T}$afterimage_config" >&6
6050 root 1.103 else
6051 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
6052     echo "${ECHO_T}no" >&6
6053 root 1.103 fi
6054    
6055     fi
6056    
6057 ayin 1.106 echo "$as_me:$LINENO: checking for libAfterImage" >&5
6058     echo $ECHO_N "checking for libAfterImage... $ECHO_C" >&6
6059 root 1.103 if $afterimage_config --version >/dev/null 2>&1 ; then
6060     LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6061     AFTERIMAGE_LIBS=`$afterimage_config --libs`
6062     if test "x$AFTERIMAGE_LIBS" != "x"; then
6063     support_afterimage=yes
6064     fi
6065     fi
6066    
6067     if test "x$support_afterimage" = "xyes"; then
6068 ayin 1.106 echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
6069     echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6
6070 root 1.103 else
6071 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
6072     echo "${ECHO_T}no" >&6
6073 root 1.103 fi
6074     fi
6075    
6076     if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
6077 pcg 1.11
6078 pcg 1.1
6079    
6080     # Initialize some more variables set by options.
6081     # The variables have the same names as the options, with
6082     # dashes changed to underlines.
6083    
6084     # If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6085     # paths, otherwise set no_xpm=yes.
6086     # Uses ac_ vars as temps to allow command line to override cache and checks.
6087 ayin 1.106 echo "$as_me:$LINENO: checking for libXpm" >&5
6088     echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
6089 pcg 1.11
6090 pcg 1.1
6091 ayin 1.106 # Check whether --with-xpm_includes or --without-xpm_includes was given.
6092 pcg 1.1 if test "${with_xpm_includes+set}" = set; then
6093 ayin 1.106 withval="$with_xpm_includes"
6094     xpm_includes="$withval"
6095 pcg 1.1 else
6096     xpm_includes=NO
6097 ayin 1.106 fi;
6098 root 1.105
6099 ayin 1.106 # Check whether --with-xpm_library or --without-xpm_library was given.
6100 pcg 1.1 if test "${with_xpm_library+set}" = set; then
6101 ayin 1.106 withval="$with_xpm_library"
6102     xpm_libraries="$withval"
6103 pcg 1.1 else
6104     xpm_libraries=NO
6105 ayin 1.106 fi;
6106 pcg 1.1
6107 pcg 1.11 # --without-xpm overrides everything else, but does not touch the cache.
6108 pcg 1.1
6109 ayin 1.106 # Check whether --with-xpm or --without-xpm was given.
6110 pcg 1.1 if test "${with_xpm+set}" = set; then
6111 ayin 1.106 withval="$with_xpm"
6112 pcg 1.1
6113 ayin 1.106 fi;
6114 pcg 1.1 if test "$with_xpm" = no; then
6115     have_xpm=disabled
6116     else
6117 pcg 1.11 if test "${ac_cv_have_xpm+set}" = set; then
6118     echo $ECHO_N "(cached) $ECHO_C" >&6
6119 pcg 1.1 else
6120 pcg 1.11
6121 pcg 1.1 vt_xpm_include_X11=no
6122     if test -n "$xpm_includes"; then
6123     vt_xpm_includes=$xpm_includes
6124     else
6125     vt_xpm_includes=NO
6126     fi
6127     if test -n "$xpm_libraries"; then
6128     vt_xpm_libraries=$xpm_libraries
6129     else
6130     vt_xpm_libraries=NO
6131     fi
6132    
6133     if test "$vt_xpm_includes" = NO; then
6134     # Guess where to find xpm.h
6135    
6136     ac_save_CPPFLAGS="$CPPFLAGS"
6137     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6138    
6139     # First, try using that file with no special directory specified.
6140 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6141     /* confdefs.h. */
6142     _ACEOF
6143     cat confdefs.h >>conftest.$ac_ext
6144     cat >>conftest.$ac_ext <<_ACEOF
6145     /* end confdefs.h. */
6146 pcg 1.1 #include <X11/xpm.h>
6147 pcg 1.11 _ACEOF
6148 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6149     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6150 pcg 1.11 ac_status=$?
6151     grep -v '^ *+' conftest.er1 >conftest.err
6152     rm -f conftest.er1
6153     cat conftest.err >&5
6154     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 ayin 1.106 (exit $ac_status); } >/dev/null; then
6156     if test -s conftest.err; then
6157     ac_cpp_err=$ac_cxx_preproc_warn_flag
6158     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6159     else
6160     ac_cpp_err=
6161     fi
6162     else
6163     ac_cpp_err=yes
6164     fi
6165     if test -z "$ac_cpp_err"; then
6166 pcg 1.1 # We can compile using X headers with no special include directory.
6167     vt_xpm_includes=
6168     vt_xpm_include_X11=yes
6169     else
6170 pcg 1.11 echo "$as_me: failed program was:" >&5
6171     sed 's/^/| /' conftest.$ac_ext >&5
6172    
6173 pcg 1.1 CPPFLAGS="$ac_save_CPPFLAGS"
6174     # Look for the header file in a standard set of common directories.
6175     for ac_dir in \
6176     /usr/X11/include \
6177     /usr/X11R6/include \
6178     /usr/X11R5/include \
6179     /usr/X11R4/include \
6180     \
6181     /usr/include/X11 \
6182     /usr/include/X11R6 \
6183     /usr/include/X11R5 \
6184     /usr/include/X11R4 \
6185     \
6186     /usr/local/X11/include \
6187     /usr/local/X11R6/include \
6188     /usr/local/X11R5/include \
6189     /usr/local/X11R4/include \
6190     \
6191     /usr/local/include/X11 \
6192     /usr/local/include/X11R6 \
6193     /usr/local/include/X11R5 \
6194     /usr/local/include/X11R4 \
6195     \
6196     /usr/X386/include \
6197     /usr/x386/include \
6198     /usr/XFree86/include/X11 \
6199     \
6200     /usr/include \
6201     /usr/local/include \
6202     /usr/unsupported/include \
6203     /usr/athena/include \
6204     /usr/local/x11r5/include \
6205     /usr/lpp/Xamples/include \
6206     \
6207     /usr/openwin/include \
6208     /usr/openwin/share/include \
6209     ; \
6210     do
6211     if test -r "$ac_dir/X11/xpm.h"; then
6212     vt_xpm_includes="$ac_dir"
6213     vt_xpm_include_X11=yes
6214     break
6215     else
6216     if test -r "$ac_dir/xpm.h"; then
6217     vt_xpm_includes=$ac_dir
6218     break
6219     fi
6220     fi
6221     done
6222     fi
6223 pcg 1.11 rm -f conftest.err conftest.$ac_ext
6224 pcg 1.1 fi
6225    
6226     if test "$vt_xpm_libraries" = NO; then
6227     # Check for the libraries.
6228    
6229     # See if we find them without any special options.
6230     # Don't add to $LIBS permanently.
6231     ac_save_LIBS="$LIBS"
6232     LIBS="$LIBS $X_LIBS -lXpm -lX11"
6233 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6234     /* confdefs.h. */
6235     _ACEOF
6236     cat confdefs.h >>conftest.$ac_ext
6237     cat >>conftest.$ac_ext <<_ACEOF
6238     /* end confdefs.h. */
6239 pcg 1.1
6240 pcg 1.11 int
6241     main ()
6242     {
6243 pcg 1.1 XpmReadFileToPixmap()
6244 pcg 1.11 ;
6245     return 0;
6246     }
6247     _ACEOF
6248     rm -f conftest.$ac_objext conftest$ac_exeext
6249 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6250     (eval $ac_link) 2>conftest.er1
6251 pcg 1.11 ac_status=$?
6252     grep -v '^ *+' conftest.er1 >conftest.err
6253     rm -f conftest.er1
6254     cat conftest.err >&5
6255     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 ayin 1.106 (exit $ac_status); } &&
6257     { ac_try='test -z "$ac_cxx_werror_flag"
6258     || test ! -s conftest.err'
6259     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260     (eval $ac_try) 2>&5
6261     ac_status=$?
6262     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263     (exit $ac_status); }; } &&
6264     { ac_try='test -s conftest$ac_exeext'
6265     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266     (eval $ac_try) 2>&5
6267     ac_status=$?
6268     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269     (exit $ac_status); }; }; then
6270 pcg 1.1 LIBS="$ac_save_LIBS"
6271     # We can link libXpm with no special library path.
6272     vt_xpm_libraries=
6273     else
6274 pcg 1.11 echo "$as_me: failed program was:" >&5
6275     sed 's/^/| /' conftest.$ac_ext >&5
6276    
6277 ayin 1.106 LIBS="$ac_save_LIBS"
6278 pcg 1.1 # First see if replacing the include by lib works.
6279     for ac_dir in \
6280     `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6281     /usr/X11/lib \
6282     /usr/X11R6/lib \
6283     /usr/X11R5/lib \
6284     /usr/X11R4/lib \
6285     \
6286     /usr/lib/X11 \
6287     /usr/lib/X11R6 \
6288     /usr/lib/X11R5 \
6289     /usr/lib/X11R4 \
6290     \
6291     /usr/local/X11/lib \
6292     /usr/local/X11R6/lib \
6293     /usr/local/X11R5/lib \
6294     /usr/local/X11R4/lib \
6295     \
6296     /usr/local/lib/X11 \
6297     /usr/local/lib/X11R6 \
6298     /usr/local/lib/X11R5 \
6299     /usr/local/lib/X11R4 \
6300     \
6301     /usr/X386/lib \
6302     /usr/x386/lib \
6303     /usr/XFree86/lib/X11 \
6304     \
6305     /usr/lib \
6306     /usr/local/lib \
6307     /usr/unsupported/lib \
6308     /usr/athena/lib \
6309     /usr/local/x11r5/lib \
6310     /usr/lpp/Xamples/lib \
6311     \
6312     /usr/openwin/lib \
6313     /usr/openwin/share/lib \
6314     ; \
6315     do
6316     for ac_extension in a so sl; do
6317     if test -r $ac_dir/libXpm.$ac_extension; then
6318     vt_xpm_libraries=$ac_dir
6319     break 2
6320     fi
6321     done
6322     done
6323     fi
6324 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
6325 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
6326 pcg 1.1 fi
6327    
6328    
6329     if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6330     ac_cv_have_xpm="have_xpm=no"
6331     else
6332     ac_cv_have_xpm="have_xpm=yes \
6333     vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6334     vt_xpm_include_X11=$vt_xpm_include_X11"
6335     fi
6336     fi
6337     eval "$ac_cv_have_xpm"
6338     fi
6339    
6340     if test "$have_xpm" != yes; then
6341 ayin 1.106 echo "$as_me:$LINENO: result: $have_xpm" >&5
6342     echo "${ECHO_T}$have_xpm" >&6
6343 pcg 1.1 no_xpm=yes
6344     else
6345     if test "$xpm_includes" != NO; then
6346     if test "$xpm_includes" = "$vt_xpm_includes"; then
6347     if test -r "$xpm_includes/X11/xpm.h"; then
6348     vt_xpm_include_X11=yes
6349     fi
6350     else
6351     vt_xpm_include_X11=no
6352     if test -z "$xpm_includes"; then
6353 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6354     /* confdefs.h. */
6355     _ACEOF
6356     cat confdefs.h >>conftest.$ac_ext
6357     cat >>conftest.$ac_ext <<_ACEOF
6358     /* end confdefs.h. */
6359 pcg 1.1 #include <X11/xpm.h>
6360 pcg 1.11 _ACEOF
6361 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6362     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6363 pcg 1.11 ac_status=$?
6364     grep -v '^ *+' conftest.er1 >conftest.err
6365     rm -f conftest.er1
6366     cat conftest.err >&5
6367     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 ayin 1.106 (exit $ac_status); } >/dev/null; then
6369     if test -s conftest.err; then
6370     ac_cpp_err=$ac_cxx_preproc_warn_flag
6371     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6372     else
6373     ac_cpp_err=
6374     fi
6375     else
6376     ac_cpp_err=yes
6377     fi
6378     if test -z "$ac_cpp_err"; then
6379 root 1.105 vt_xpm_include_X11=yes
6380     else
6381 pcg 1.11 echo "$as_me: failed program was:" >&5
6382     sed 's/^/| /' conftest.$ac_ext >&5
6383    
6384    
6385 pcg 1.1 fi
6386 pcg 1.11 rm -f conftest.err conftest.$ac_ext
6387 pcg 1.1 else
6388     if test -r "$xpm_includes/X11/xpm.h"; then
6389     vt_xpm_include_X11=yes
6390     fi
6391     fi
6392     fi
6393     vt_xpm_includes=$xpm_includes
6394     fi
6395     if test "x$xpm_libraries" != xNO; then
6396     vt_xpm_libraries=$xpm_libraries
6397     fi
6398     # Update the cache value to reflect the command line values.
6399     ac_cv_have_xpm="have_xpm=yes \
6400     vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6401     vt_xpm_include_X11=$vt_xpm_include_X11"
6402     eval "$ac_cv_have_xpm"
6403 ayin 1.106 echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
6404     echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
6405 pcg 1.1 if test -n "$vt_xpm_includes"; then
6406     XPM_CPPFLAGS="-DHAVE_LIBXPM"
6407     fi
6408     if test -n "$vt_xpm_includes"; then
6409     XPM_CFLAGS="-I$vt_xpm_includes"
6410     fi
6411     XPM_LIBS="-lXpm"
6412     if test -n "$vt_xpm_libraries"; then
6413     XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6414     fi
6415     if test "x$vt_xpm_include_X11" = xyes; then
6416 pcg 1.11
6417     cat >>confdefs.h <<\_ACEOF
6418 pcg 1.1 #define XPM_INC_X11 1
6419 pcg 1.11 _ACEOF
6420 pcg 1.1
6421     fi
6422     fi
6423    
6424    
6425    
6426    
6427    
6428     if test x$no_xpm = xyes; then
6429     support_xpm=needsmanualspecification
6430     fi
6431     fi
6432    
6433 ayin 1.106 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6434     echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6435 pcg 1.11 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6436     echo $ECHO_N "(cached) $ECHO_C" >&6
6437     else
6438     cat >conftest.$ac_ext <<_ACEOF
6439     /* confdefs.h. */
6440     _ACEOF
6441     cat confdefs.h >>conftest.$ac_ext
6442     cat >>conftest.$ac_ext <<_ACEOF
6443     /* end confdefs.h. */
6444 pcg 1.1 #include <sys/types.h>
6445     #include <sys/wait.h>
6446     #ifndef WEXITSTATUS
6447 ayin 1.106 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6448 pcg 1.1 #endif
6449     #ifndef WIFEXITED
6450 pcg 1.11 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6451 pcg 1.1 #endif
6452 pcg 1.11
6453     int
6454     main ()
6455     {
6456     int s;
6457     wait (&s);
6458     s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6459     ;
6460     return 0;
6461     }
6462     _ACEOF
6463     rm -f conftest.$ac_objext
6464 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6465     (eval $ac_compile) 2>conftest.er1
6466 pcg 1.11 ac_status=$?
6467     grep -v '^ *+' conftest.er1 >conftest.err
6468     rm -f conftest.er1
6469     cat conftest.err >&5
6470     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 ayin 1.106 (exit $ac_status); } &&
6472     { ac_try='test -z "$ac_cxx_werror_flag"
6473     || test ! -s conftest.err'
6474     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475     (eval $ac_try) 2>&5
6476     ac_status=$?
6477     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478     (exit $ac_status); }; } &&
6479     { ac_try='test -s conftest.$ac_objext'
6480     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481     (eval $ac_try) 2>&5
6482     ac_status=$?
6483     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484     (exit $ac_status); }; }; then
6485 pcg 1.11 ac_cv_header_sys_wait_h=yes
6486 pcg 1.1 else
6487 pcg 1.11 echo "$as_me: failed program was:" >&5
6488     sed 's/^/| /' conftest.$ac_ext >&5
6489    
6490 ayin 1.106 ac_cv_header_sys_wait_h=no
6491 pcg 1.1 fi
6492 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6493 pcg 1.1 fi
6494 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6495     echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6496 pcg 1.11 if test $ac_cv_header_sys_wait_h = yes; then
6497 pcg 1.1
6498 pcg 1.11 cat >>confdefs.h <<\_ACEOF
6499 pcg 1.1 #define HAVE_SYS_WAIT_H 1
6500 pcg 1.11 _ACEOF
6501 pcg 1.1
6502     fi
6503    
6504 ayin 1.106 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6505     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6506 root 1.51 if test "${ac_cv_header_stdc+set}" = set; then
6507     echo $ECHO_N "(cached) $ECHO_C" >&6
6508     else
6509     cat >conftest.$ac_ext <<_ACEOF
6510     /* confdefs.h. */
6511     _ACEOF
6512     cat confdefs.h >>conftest.$ac_ext
6513     cat >>conftest.$ac_ext <<_ACEOF
6514     /* end confdefs.h. */
6515     #include <stdlib.h>
6516     #include <stdarg.h>
6517     #include <string.h>
6518     #include <float.h>
6519    
6520     int
6521     main ()
6522     {
6523    
6524     ;
6525     return 0;
6526     }
6527     _ACEOF
6528     rm -f conftest.$ac_objext
6529 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530     (eval $ac_compile) 2>conftest.er1
6531 root 1.51 ac_status=$?
6532     grep -v '^ *+' conftest.er1 >conftest.err
6533     rm -f conftest.er1
6534     cat conftest.err >&5
6535     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 ayin 1.106 (exit $ac_status); } &&
6537     { ac_try='test -z "$ac_cxx_werror_flag"
6538     || test ! -s conftest.err'
6539     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540     (eval $ac_try) 2>&5
6541     ac_status=$?
6542     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543     (exit $ac_status); }; } &&
6544     { ac_try='test -s conftest.$ac_objext'
6545     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546     (eval $ac_try) 2>&5
6547     ac_status=$?
6548     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549     (exit $ac_status); }; }; then
6550 root 1.51 ac_cv_header_stdc=yes
6551     else
6552     echo "$as_me: failed program was:" >&5
6553     sed 's/^/| /' conftest.$ac_ext >&5
6554    
6555 ayin 1.106 ac_cv_header_stdc=no
6556 root 1.51 fi
6557 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6558 root 1.51
6559     if test $ac_cv_header_stdc = yes; then
6560     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6561     cat >conftest.$ac_ext <<_ACEOF
6562     /* confdefs.h. */
6563     _ACEOF
6564     cat confdefs.h >>conftest.$ac_ext
6565     cat >>conftest.$ac_ext <<_ACEOF
6566     /* end confdefs.h. */
6567     #include <string.h>
6568    
6569     _ACEOF
6570     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6571     $EGREP "memchr" >/dev/null 2>&1; then
6572     :
6573     else
6574     ac_cv_header_stdc=no
6575     fi
6576     rm -f conftest*
6577    
6578     fi
6579    
6580     if test $ac_cv_header_stdc = yes; then
6581     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6582     cat >conftest.$ac_ext <<_ACEOF
6583     /* confdefs.h. */
6584     _ACEOF
6585     cat confdefs.h >>conftest.$ac_ext
6586     cat >>conftest.$ac_ext <<_ACEOF
6587     /* end confdefs.h. */
6588     #include <stdlib.h>
6589    
6590     _ACEOF
6591     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6592     $EGREP "free" >/dev/null 2>&1; then
6593     :
6594     else
6595     ac_cv_header_stdc=no
6596     fi
6597     rm -f conftest*
6598    
6599     fi
6600    
6601     if test $ac_cv_header_stdc = yes; then
6602     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6603     if test "$cross_compiling" = yes; then
6604     :
6605     else
6606     cat >conftest.$ac_ext <<_ACEOF
6607     /* confdefs.h. */
6608     _ACEOF
6609     cat confdefs.h >>conftest.$ac_ext
6610     cat >>conftest.$ac_ext <<_ACEOF
6611     /* end confdefs.h. */
6612     #include <ctype.h>
6613     #if ((' ' & 0x0FF) == 0x020)
6614     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6615     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6616     #else
6617     # define ISLOWER(c) \
6618     (('a' <= (c) && (c) <= 'i') \
6619     || ('j' <= (c) && (c) <= 'r') \
6620     || ('s' <= (c) && (c) <= 'z'))
6621     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6622     #endif
6623    
6624     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6625     int
6626     main ()
6627     {
6628     int i;
6629     for (i = 0; i < 256; i++)
6630     if (XOR (islower (i), ISLOWER (i))
6631     || toupper (i) != TOUPPER (i))
6632 ayin 1.106 exit(2);
6633     exit (0);
6634 root 1.51 }
6635     _ACEOF
6636     rm -f conftest$ac_exeext
6637 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6638     (eval $ac_link) 2>&5
6639 root 1.51 ac_status=$?
6640     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6642 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643     (eval $ac_try) 2>&5
6644 root 1.51 ac_status=$?
6645     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646     (exit $ac_status); }; }; then
6647     :
6648     else
6649     echo "$as_me: program exited with status $ac_status" >&5
6650     echo "$as_me: failed program was:" >&5
6651     sed 's/^/| /' conftest.$ac_ext >&5
6652    
6653     ( exit $ac_status )
6654     ac_cv_header_stdc=no
6655     fi
6656 ayin 1.106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6657 root 1.51 fi
6658     fi
6659     fi
6660 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6661     echo "${ECHO_T}$ac_cv_header_stdc" >&6
6662 root 1.51 if test $ac_cv_header_stdc = yes; then
6663    
6664     cat >>confdefs.h <<\_ACEOF
6665     #define STDC_HEADERS 1
6666     _ACEOF
6667    
6668     fi
6669    
6670     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6671    
6672    
6673    
6674    
6675    
6676    
6677    
6678    
6679    
6680     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6681     inttypes.h stdint.h unistd.h
6682     do
6683     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6684 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_header" >&5
6685     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6686     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6687 root 1.51 echo $ECHO_N "(cached) $ECHO_C" >&6
6688     else
6689     cat >conftest.$ac_ext <<_ACEOF
6690     /* confdefs.h. */
6691     _ACEOF
6692     cat confdefs.h >>conftest.$ac_ext
6693     cat >>conftest.$ac_ext <<_ACEOF
6694     /* end confdefs.h. */
6695     $ac_includes_default
6696    
6697     #include <$ac_header>
6698     _ACEOF
6699     rm -f conftest.$ac_objext
6700 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6701     (eval $ac_compile) 2>conftest.er1
6702 root 1.51 ac_status=$?
6703     grep -v '^ *+' conftest.er1 >conftest.err
6704     rm -f conftest.er1
6705     cat conftest.err >&5
6706     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 ayin 1.106 (exit $ac_status); } &&
6708     { ac_try='test -z "$ac_cxx_werror_flag"
6709     || test ! -s conftest.err'
6710     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711     (eval $ac_try) 2>&5
6712     ac_status=$?
6713     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714     (exit $ac_status); }; } &&
6715     { ac_try='test -s conftest.$ac_objext'
6716     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717     (eval $ac_try) 2>&5
6718     ac_status=$?
6719     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720     (exit $ac_status); }; }; then
6721 root 1.51 eval "$as_ac_Header=yes"
6722     else
6723     echo "$as_me: failed program was:" >&5
6724     sed 's/^/| /' conftest.$ac_ext >&5
6725    
6726 ayin 1.106 eval "$as_ac_Header=no"
6727 root 1.51 fi
6728 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6729 root 1.51 fi
6730 ayin 1.106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6731     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6732 root 1.51 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6733     cat >>confdefs.h <<_ACEOF
6734     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6735     _ACEOF
6736    
6737     fi
6738    
6739     done
6740    
6741    
6742 pcg 1.11
6743    
6744    
6745    
6746    
6747    
6748    
6749    
6750    
6751    
6752    
6753    
6754    
6755    
6756    
6757    
6758    
6759     for ac_header in \
6760 pcg 1.1 assert.h \
6761     fcntl.h \
6762     stdarg.h \
6763     stdlib.h \
6764     string.h \
6765     termios.h \
6766     unistd.h \
6767     sys/byteorder.h \
6768     sys/ioctl.h \
6769     sys/select.h \
6770     sys/sockio.h \
6771     sys/strredir.h \
6772     sys/time.h \
6773 root 1.83 stdint.h \
6774     wchar.h \
6775     cwchar \
6776     clocale \
6777 pcg 1.1
6778     do
6779 pcg 1.11 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6780 ayin 1.106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6781     echo "$as_me:$LINENO: checking for $ac_header" >&5
6782     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6783     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6784 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
6785     fi
6786 ayin 1.106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6787     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6788 pcg 1.11 else
6789     # Is the header compilable?
6790 ayin 1.106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6791     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6792 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6793     /* confdefs.h. */
6794     _ACEOF
6795     cat confdefs.h >>conftest.$ac_ext
6796     cat >>conftest.$ac_ext <<_ACEOF
6797     /* end confdefs.h. */
6798     $ac_includes_default
6799     #include <$ac_header>
6800     _ACEOF
6801     rm -f conftest.$ac_objext
6802 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6803     (eval $ac_compile) 2>conftest.er1
6804 pcg 1.11 ac_status=$?
6805     grep -v '^ *+' conftest.er1 >conftest.err
6806     rm -f conftest.er1
6807     cat conftest.err >&5
6808     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 ayin 1.106 (exit $ac_status); } &&
6810     { ac_try='test -z "$ac_cxx_werror_flag"
6811     || test ! -s conftest.err'
6812     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813     (eval $ac_try) 2>&5
6814     ac_status=$?
6815     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816     (exit $ac_status); }; } &&
6817     { ac_try='test -s conftest.$ac_objext'
6818     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819     (eval $ac_try) 2>&5
6820     ac_status=$?
6821     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822     (exit $ac_status); }; }; then
6823 pcg 1.11 ac_header_compiler=yes
6824     else
6825     echo "$as_me: failed program was:" >&5
6826     sed 's/^/| /' conftest.$ac_ext >&5
6827    
6828 ayin 1.106 ac_header_compiler=no
6829 pcg 1.11 fi
6830 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6831     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6832     echo "${ECHO_T}$ac_header_compiler" >&6
6833 pcg 1.11
6834     # Is the header present?
6835 ayin 1.106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6836     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6837 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6838     /* confdefs.h. */
6839     _ACEOF
6840     cat confdefs.h >>conftest.$ac_ext
6841     cat >>conftest.$ac_ext <<_ACEOF
6842     /* end confdefs.h. */
6843     #include <$ac_header>
6844     _ACEOF
6845 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6846     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6847 pcg 1.11 ac_status=$?
6848     grep -v '^ *+' conftest.er1 >conftest.err
6849     rm -f conftest.er1
6850     cat conftest.err >&5
6851     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 ayin 1.106 (exit $ac_status); } >/dev/null; then
6853     if test -s conftest.err; then
6854     ac_cpp_err=$ac_cxx_preproc_warn_flag
6855     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6856     else
6857     ac_cpp_err=
6858     fi
6859     else
6860     ac_cpp_err=yes
6861     fi
6862     if test -z "$ac_cpp_err"; then
6863 pcg 1.11 ac_header_preproc=yes
6864 pcg 1.1 else
6865 pcg 1.11 echo "$as_me: failed program was:" >&5
6866     sed 's/^/| /' conftest.$ac_ext >&5
6867    
6868     ac_header_preproc=no
6869     fi
6870     rm -f conftest.err conftest.$ac_ext
6871 ayin 1.106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6872     echo "${ECHO_T}$ac_header_preproc" >&6
6873 pcg 1.11
6874     # So? What about this header?
6875 pcg 1.13 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6876 pcg 1.11 yes:no: )
6877     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6878     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6879     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6880     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6881     ac_header_preproc=yes
6882     ;;
6883     no:yes:* )
6884     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6885     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6886     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6887     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6888     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6889     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6890     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6891     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6892     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6893     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6894     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6895     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6896 ayin 1.106 (
6897     cat <<\_ASBOX
6898     ## ------------------------------------------ ##
6899     ## Report this to the AC_PACKAGE_NAME lists. ##
6900     ## ------------------------------------------ ##
6901     _ASBOX
6902     ) |
6903     sed "s/^/$as_me: WARNING: /" >&2
6904 pcg 1.11 ;;
6905     esac
6906 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_header" >&5
6907     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6908     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6909 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 pcg 1.1 else
6911 pcg 1.11 eval "$as_ac_Header=\$ac_header_preproc"
6912 pcg 1.1 fi
6913 ayin 1.106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6914     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6915 pcg 1.11
6916 pcg 1.1 fi
6917 pcg 1.11 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6918     cat >>confdefs.h <<_ACEOF
6919     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6920     _ACEOF
6921    
6922 pcg 1.1 fi
6923 pcg 1.11
6924 pcg 1.1 done
6925    
6926    
6927 ayin 1.106 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6928     echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6929 pcg 1.11 if test "${ac_cv_header_time+set}" = set; then
6930     echo $ECHO_N "(cached) $ECHO_C" >&6
6931     else
6932     cat >conftest.$ac_ext <<_ACEOF
6933     /* confdefs.h. */
6934     _ACEOF
6935     cat confdefs.h >>conftest.$ac_ext
6936     cat >>conftest.$ac_ext <<_ACEOF
6937     /* end confdefs.h. */
6938 pcg 1.1 #include <sys/types.h>
6939     #include <sys/time.h>
6940     #include <time.h>
6941 pcg 1.11
6942     int
6943     main ()
6944     {
6945     if ((struct tm *) 0)
6946     return 0;
6947     ;
6948     return 0;
6949     }
6950     _ACEOF
6951     rm -f conftest.$ac_objext
6952 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6953     (eval $ac_compile) 2>conftest.er1
6954 pcg 1.11 ac_status=$?
6955     grep -v '^ *+' conftest.er1 >conftest.err
6956     rm -f conftest.er1
6957     cat conftest.err >&5
6958     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 ayin 1.106 (exit $ac_status); } &&
6960     { ac_try='test -z "$ac_cxx_werror_flag"
6961     || test ! -s conftest.err'
6962     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963     (eval $ac_try) 2>&5
6964     ac_status=$?
6965     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966     (exit $ac_status); }; } &&
6967     { ac_try='test -s conftest.$ac_objext'
6968     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6969     (eval $ac_try) 2>&5
6970     ac_status=$?
6971     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972     (exit $ac_status); }; }; then
6973 pcg 1.1 ac_cv_header_time=yes
6974     else
6975 pcg 1.11 echo "$as_me: failed program was:" >&5
6976     sed 's/^/| /' conftest.$ac_ext >&5
6977    
6978 ayin 1.106 ac_cv_header_time=no
6979 pcg 1.1 fi
6980 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6981 pcg 1.1 fi
6982 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6983     echo "${ECHO_T}$ac_cv_header_time" >&6
6984 pcg 1.11 if test $ac_cv_header_time = yes; then
6985 pcg 1.1
6986 pcg 1.11 cat >>confdefs.h <<\_ACEOF
6987 pcg 1.1 #define TIME_WITH_SYS_TIME 1
6988 pcg 1.11 _ACEOF
6989 pcg 1.1
6990     fi
6991    
6992    
6993 ayin 1.106 echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
6994     echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6
6995 pcg 1.11 if test "${rxvt_cv_header_sysioctl+set}" = set; then
6996     echo $ECHO_N "(cached) $ECHO_C" >&6
6997 pcg 1.1 else
6998 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6999     /* confdefs.h. */
7000     _ACEOF
7001     cat confdefs.h >>conftest.$ac_ext
7002     cat >>conftest.$ac_ext <<_ACEOF
7003     /* end confdefs.h. */
7004 pcg 1.1 #include <stdio.h>
7005     #include <sys/ioctl.h>
7006     #ifdef HAVE_TERMIOS_H
7007     #include <termios.h>
7008     #endif
7009 pcg 1.11 int
7010     main ()
7011     {
7012 pcg 1.1 int a = ECHO;
7013 pcg 1.11 ;
7014     return 0;
7015     }
7016     _ACEOF
7017     rm -f conftest.$ac_objext
7018 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7019     (eval $ac_compile) 2>conftest.er1
7020 pcg 1.11 ac_status=$?
7021     grep -v '^ *+' conftest.er1 >conftest.err
7022     rm -f conftest.er1
7023     cat conftest.err >&5
7024     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 ayin 1.106 (exit $ac_status); } &&
7026     { ac_try='test -z "$ac_cxx_werror_flag"
7027     || test ! -s conftest.err'
7028     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029     (eval $ac_try) 2>&5
7030 pcg 1.11 ac_status=$?
7031     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 ayin 1.106 (exit $ac_status); }; } &&
7033     { ac_try='test -s conftest.$ac_objext'
7034     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035     (eval $ac_try) 2>&5
7036 pcg 1.11 ac_status=$?
7037     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038     (exit $ac_status); }; }; then
7039 ayin 1.106 rxvt_cv_header_sysioctl=yes
7040 pcg 1.1 else
7041 ayin 1.106 echo "$as_me: failed program was:" >&5
7042 pcg 1.11 sed 's/^/| /' conftest.$ac_ext >&5
7043    
7044 ayin 1.106 rxvt_cv_header_sysioctl=no
7045 pcg 1.1 fi
7046 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7047 pcg 1.1 fi
7048 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7049     echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7050 pcg 1.1
7051 ayin 1.106 echo "$as_me:$LINENO: checking for XPointer" >&5
7052     echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
7053 pcg 1.11 if test "${rxvt_cv_xpointer+set}" = set; then
7054     echo $ECHO_N "(cached) $ECHO_C" >&6
7055     else
7056     cat >conftest.$ac_ext <<_ACEOF
7057     /* confdefs.h. */
7058     _ACEOF
7059     cat confdefs.h >>conftest.$ac_ext
7060     cat >>conftest.$ac_ext <<_ACEOF
7061     /* end confdefs.h. */
7062 pcg 1.1 #include <X11/Xlib.h>
7063 pcg 1.11 int
7064     main ()
7065     {
7066 pcg 1.1 XPointer dummy;
7067 pcg 1.11 ;
7068     return 0;
7069     }
7070     _ACEOF
7071     rm -f conftest.$ac_objext
7072 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7073     (eval $ac_compile) 2>conftest.er1
7074 pcg 1.11 ac_status=$?
7075     grep -v '^ *+' conftest.er1 >conftest.err
7076     rm -f conftest.er1
7077     cat conftest.err >&5
7078     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 ayin 1.106 (exit $ac_status); } &&
7080     { ac_try='test -z "$ac_cxx_werror_flag"
7081     || test ! -s conftest.err'
7082     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083     (eval $ac_try) 2>&5
7084     ac_status=$?
7085     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086     (exit $ac_status); }; } &&
7087     { ac_try='test -s conftest.$ac_objext'
7088     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089     (eval $ac_try) 2>&5
7090     ac_status=$?
7091     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092     (exit $ac_status); }; }; then
7093 pcg 1.1 rxvt_cv_xpointer=yes
7094     else
7095 pcg 1.11 echo "$as_me: failed program was:" >&5
7096     sed 's/^/| /' conftest.$ac_ext >&5
7097    
7098 ayin 1.106 rxvt_cv_xpointer=no
7099 pcg 1.1 fi
7100 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7101 pcg 1.1 fi
7102 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7103     echo "${ECHO_T}$rxvt_cv_xpointer" >&6
7104 pcg 1.11 if test x$rxvt_cv_xpointer = xyes; then
7105 pcg 1.1
7106 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7107 pcg 1.1 #define HAVE_XPOINTER 1
7108 pcg 1.11 _ACEOF
7109 pcg 1.1
7110     fi
7111    
7112 ayin 1.106 echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7113     echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6
7114 root 1.99 if test "${rxvt_xlib_illegal_access+set}" = set; then
7115     echo $ECHO_N "(cached) $ECHO_C" >&6
7116     else
7117     cat >conftest.$ac_ext <<_ACEOF
7118     /* confdefs.h. */
7119     _ACEOF
7120     cat confdefs.h >>conftest.$ac_ext
7121     cat >>conftest.$ac_ext <<_ACEOF
7122     /* end confdefs.h. */
7123    
7124     #define XLIB_ILLEGAL_ACCESS
7125     #include <X11/Xlib.h>
7126    
7127     int
7128     main ()
7129     {
7130    
7131     Display *dpy;
7132     dpy->xdefaults = (char *)0;
7133    
7134     ;
7135     return 0;
7136     }
7137     _ACEOF
7138     rm -f conftest.$ac_objext
7139 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7140     (eval $ac_compile) 2>conftest.er1
7141 root 1.99 ac_status=$?
7142     grep -v '^ *+' conftest.er1 >conftest.err
7143     rm -f conftest.er1
7144     cat conftest.err >&5
7145     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 ayin 1.106 (exit $ac_status); } &&
7147     { ac_try='test -z "$ac_cxx_werror_flag"
7148     || test ! -s conftest.err'
7149     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150     (eval $ac_try) 2>&5
7151     ac_status=$?
7152     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153     (exit $ac_status); }; } &&
7154     { ac_try='test -s conftest.$ac_objext'
7155     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156     (eval $ac_try) 2>&5
7157     ac_status=$?
7158     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159     (exit $ac_status); }; }; then
7160 root 1.99 rxvt_xlib_illegal_access=yes
7161     else
7162     echo "$as_me: failed program was:" >&5
7163     sed 's/^/| /' conftest.$ac_ext >&5
7164    
7165 ayin 1.106 rxvt_xlib_illegal_access=no
7166 root 1.99
7167     fi
7168 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7169 root 1.99 fi
7170 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5
7171     echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6
7172 root 1.99 if test x$rxvt_xlib_illegal_access = xyes; then
7173    
7174     cat >>confdefs.h <<\_ACEOF
7175     #define XLIB_ILLEGAL_ACCESS 1
7176     _ACEOF
7177    
7178     fi
7179 pcg 1.1
7180 ayin 1.106 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7181     echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7182 pcg 1.11 if test "${ac_cv_c_const+set}" = set; then
7183     echo $ECHO_N "(cached) $ECHO_C" >&6
7184     else
7185     cat >conftest.$ac_ext <<_ACEOF
7186     /* confdefs.h. */
7187     _ACEOF
7188     cat confdefs.h >>conftest.$ac_ext
7189     cat >>conftest.$ac_ext <<_ACEOF
7190     /* end confdefs.h. */
7191 pcg 1.1
7192 pcg 1.11 int
7193     main ()
7194     {
7195     /* FIXME: Include the comments suggested by Paul. */
7196     #ifndef __cplusplus
7197     /* Ultrix mips cc rejects this. */
7198     typedef int charset[2];
7199 ayin 1.106 const charset x;
7200 pcg 1.11 /* SunOS 4.1.1 cc rejects this. */
7201 ayin 1.106 char const *const *ccp;
7202     char **p;
7203 pcg 1.11 /* NEC SVR4.0.2 mips cc rejects this. */
7204     struct point {int x, y;};
7205     static struct point const zero = {0,0};
7206     /* AIX XL C 1.02.0.0 rejects this.
7207     It does not let you subtract one const X* pointer from another in
7208     an arm of an if-expression whose if-part is not a constant
7209     expression */
7210     const char *g = "string";
7211 ayin 1.106 ccp = &g + (g ? g-g : 0);
7212 pcg 1.11 /* HPUX 7.0 cc rejects these. */
7213 ayin 1.106 ++ccp;
7214     p = (char**) ccp;
7215     ccp = (char const *const *) p;
7216 pcg 1.11 { /* SCO 3.2v4 cc rejects this. */
7217     char *t;
7218     char const *s = 0 ? (char *) 0 : (char const *) 0;
7219    
7220     *t++ = 0;
7221     }
7222     { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7223     int x[] = {25, 17};
7224     const int *foo = &x[0];
7225     ++foo;
7226     }
7227     { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7228     typedef const int *iptr;
7229     iptr p = 0;
7230     ++p;
7231     }
7232     { /* AIX XL C 1.02.0.0 rejects this saying
7233     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7234     struct s { int j; const int *ap[3]; };
7235     struct s *b; b->j = 5;
7236     }
7237     { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7238     const int foo = 10;
7239     }
7240     #endif
7241 pcg 1.1
7242 pcg 1.11 ;
7243     return 0;
7244 pcg 1.1 }
7245 pcg 1.11 _ACEOF
7246     rm -f conftest.$ac_objext
7247 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7248     (eval $ac_compile) 2>conftest.er1
7249 pcg 1.11 ac_status=$?
7250     grep -v '^ *+' conftest.er1 >conftest.err
7251     rm -f conftest.er1
7252     cat conftest.err >&5
7253     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 ayin 1.106 (exit $ac_status); } &&
7255     { ac_try='test -z "$ac_cxx_werror_flag"
7256     || test ! -s conftest.err'
7257     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258     (eval $ac_try) 2>&5
7259     ac_status=$?
7260     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261     (exit $ac_status); }; } &&
7262     { ac_try='test -s conftest.$ac_objext'
7263     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264     (eval $ac_try) 2>&5
7265     ac_status=$?
7266     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267     (exit $ac_status); }; }; then
7268 pcg 1.1 ac_cv_c_const=yes
7269     else
7270 pcg 1.11 echo "$as_me: failed program was:" >&5
7271     sed 's/^/| /' conftest.$ac_ext >&5
7272    
7273 ayin 1.106 ac_cv_c_const=no
7274 pcg 1.1 fi
7275 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7276 pcg 1.1 fi
7277 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7278     echo "${ECHO_T}$ac_cv_c_const" >&6
7279 pcg 1.11 if test $ac_cv_c_const = no; then
7280 pcg 1.1
7281 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7282     #define const
7283     _ACEOF
7284 pcg 1.1
7285     fi
7286    
7287 ayin 1.106 echo "$as_me:$LINENO: checking for inline" >&5
7288     echo $ECHO_N "checking for inline... $ECHO_C" >&6
7289 pcg 1.11 if test "${ac_cv_c_inline+set}" = set; then
7290     echo $ECHO_N "(cached) $ECHO_C" >&6
7291 pcg 1.1 else
7292     ac_cv_c_inline=no
7293     for ac_kw in inline __inline__ __inline; do
7294 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7295     /* confdefs.h. */
7296     _ACEOF
7297     cat confdefs.h >>conftest.$ac_ext
7298     cat >>conftest.$ac_ext <<_ACEOF
7299     /* end confdefs.h. */
7300     #ifndef __cplusplus
7301     typedef int foo_t;
7302     static $ac_kw foo_t static_foo () {return 0; }
7303     $ac_kw foo_t foo () {return 0; }
7304     #endif
7305 pcg 1.1
7306 pcg 1.11 _ACEOF
7307     rm -f conftest.$ac_objext
7308 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7309     (eval $ac_compile) 2>conftest.er1
7310 pcg 1.11 ac_status=$?
7311     grep -v '^ *+' conftest.er1 >conftest.err
7312     rm -f conftest.er1
7313     cat conftest.err >&5
7314     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 ayin 1.106 (exit $ac_status); } &&
7316     { ac_try='test -z "$ac_cxx_werror_flag"
7317     || test ! -s conftest.err'
7318     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319     (eval $ac_try) 2>&5
7320     ac_status=$?
7321     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322     (exit $ac_status); }; } &&
7323     { ac_try='test -s conftest.$ac_objext'
7324     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325     (eval $ac_try) 2>&5
7326     ac_status=$?
7327     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328     (exit $ac_status); }; }; then
7329     ac_cv_c_inline=$ac_kw; break
7330 pcg 1.1 else
7331 pcg 1.11 echo "$as_me: failed program was:" >&5
7332     sed 's/^/| /' conftest.$ac_ext >&5
7333    
7334 pcg 1.1 fi
7335 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7336 pcg 1.1 done
7337    
7338     fi
7339 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7340     echo "${ECHO_T}$ac_cv_c_inline" >&6
7341 pcg 1.11
7342 pcg 1.1
7343 pcg 1.11 case $ac_cv_c_inline in
7344 pcg 1.1 inline | yes) ;;
7345 pcg 1.11 *)
7346     case $ac_cv_c_inline in
7347     no) ac_val=;;
7348     *) ac_val=$ac_cv_c_inline;;
7349     esac
7350     cat >>confdefs.h <<_ACEOF
7351     #ifndef __cplusplus
7352     #define inline $ac_val
7353     #endif
7354     _ACEOF
7355     ;;
7356 pcg 1.1 esac
7357    
7358    
7359    
7360 ayin 1.106 echo "$as_me:$LINENO: checking for mode_t" >&5
7361     echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7362 pcg 1.11 if test "${ac_cv_type_mode_t+set}" = set; then
7363     echo $ECHO_N "(cached) $ECHO_C" >&6
7364     else
7365     cat >conftest.$ac_ext <<_ACEOF
7366     /* confdefs.h. */
7367     _ACEOF
7368     cat confdefs.h >>conftest.$ac_ext
7369     cat >>conftest.$ac_ext <<_ACEOF
7370     /* end confdefs.h. */
7371     $ac_includes_default
7372     int
7373     main ()
7374     {
7375 ayin 1.106 if ((mode_t *) 0)
7376 pcg 1.11 return 0;
7377 ayin 1.106 if (sizeof (mode_t))
7378 pcg 1.11 return 0;
7379     ;
7380     return 0;
7381     }
7382     _ACEOF
7383     rm -f conftest.$ac_objext
7384 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7385     (eval $ac_compile) 2>conftest.er1
7386 pcg 1.11 ac_status=$?
7387     grep -v '^ *+' conftest.er1 >conftest.err
7388     rm -f conftest.er1
7389     cat conftest.err >&5
7390     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 ayin 1.106 (exit $ac_status); } &&
7392     { ac_try='test -z "$ac_cxx_werror_flag"
7393     || test ! -s conftest.err'
7394     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395     (eval $ac_try) 2>&5
7396     ac_status=$?
7397     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398     (exit $ac_status); }; } &&
7399     { ac_try='test -s conftest.$ac_objext'
7400     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401     (eval $ac_try) 2>&5
7402     ac_status=$?
7403     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404     (exit $ac_status); }; }; then
7405 pcg 1.11 ac_cv_type_mode_t=yes
7406 pcg 1.1 else
7407 pcg 1.11 echo "$as_me: failed program was:" >&5
7408     sed 's/^/| /' conftest.$ac_ext >&5
7409 pcg 1.1
7410 ayin 1.106 ac_cv_type_mode_t=no
7411 pcg 1.1 fi
7412 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7413 pcg 1.1 fi
7414 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7415     echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7416 pcg 1.11 if test $ac_cv_type_mode_t = yes; then
7417 pcg 1.1 :
7418     else
7419    
7420 pcg 1.11 cat >>confdefs.h <<_ACEOF
7421     #define mode_t int
7422     _ACEOF
7423 pcg 1.1
7424     fi
7425    
7426 ayin 1.106 echo "$as_me:$LINENO: checking for pid_t" >&5
7427     echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7428 pcg 1.11 if test "${ac_cv_type_pid_t+set}" = set; then
7429     echo $ECHO_N "(cached) $ECHO_C" >&6
7430     else
7431     cat >conftest.$ac_ext <<_ACEOF
7432     /* confdefs.h. */
7433     _ACEOF
7434     cat confdefs.h >>conftest.$ac_ext
7435     cat >>conftest.$ac_ext <<_ACEOF
7436     /* end confdefs.h. */
7437     $ac_includes_default
7438     int
7439     main ()
7440     {
7441 ayin 1.106 if ((pid_t *) 0)
7442 pcg 1.11 return 0;
7443 ayin 1.106 if (sizeof (pid_t))
7444 pcg 1.11 return 0;
7445     ;
7446     return 0;
7447     }
7448     _ACEOF
7449     rm -f conftest.$ac_objext
7450 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7451     (eval $ac_compile) 2>conftest.er1
7452 pcg 1.11 ac_status=$?
7453     grep -v '^ *+' conftest.er1 >conftest.err
7454     rm -f conftest.er1
7455     cat conftest.err >&5
7456     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 ayin 1.106 (exit $ac_status); } &&
7458     { ac_try='test -z "$ac_cxx_werror_flag"
7459     || test ! -s conftest.err'
7460     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461     (eval $ac_try) 2>&5
7462     ac_status=$?
7463     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464     (exit $ac_status); }; } &&
7465     { ac_try='test -s conftest.$ac_objext'
7466     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467     (eval $ac_try) 2>&5
7468     ac_status=$?
7469     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470     (exit $ac_status); }; }; then
7471 pcg 1.11 ac_cv_type_pid_t=yes
7472 pcg 1.1 else
7473 pcg 1.11 echo "$as_me: failed program was:" >&5
7474     sed 's/^/| /' conftest.$ac_ext >&5
7475 pcg 1.1
7476 ayin 1.106 ac_cv_type_pid_t=no
7477 pcg 1.1 fi
7478 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7479 pcg 1.1 fi
7480 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7481     echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7482 pcg 1.11 if test $ac_cv_type_pid_t = yes; then
7483     :
7484 pcg 1.1 else
7485    
7486 pcg 1.11 cat >>confdefs.h <<_ACEOF
7487 pcg 1.1 #define pid_t int
7488 pcg 1.11 _ACEOF
7489 pcg 1.1
7490     fi
7491    
7492 ayin 1.106 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7493     echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7494 pcg 1.11 if test "${ac_cv_type_uid_t+set}" = set; then
7495     echo $ECHO_N "(cached) $ECHO_C" >&6
7496 pcg 1.1 else
7497 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7498     /* confdefs.h. */
7499     _ACEOF
7500     cat confdefs.h >>conftest.$ac_ext
7501     cat >>conftest.$ac_ext <<_ACEOF
7502     /* end confdefs.h. */
7503 pcg 1.1 #include <sys/types.h>
7504 pcg 1.11
7505     _ACEOF
7506 pcg 1.1 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7507 pcg 1.11 $EGREP "uid_t" >/dev/null 2>&1; then
7508 pcg 1.1 ac_cv_type_uid_t=yes
7509     else
7510     ac_cv_type_uid_t=no
7511     fi
7512     rm -f conftest*
7513    
7514     fi
7515 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7516     echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7517 pcg 1.11 if test $ac_cv_type_uid_t = no; then
7518 pcg 1.1
7519 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7520 pcg 1.1 #define uid_t int
7521 pcg 1.11 _ACEOF
7522    
7523 pcg 1.1
7524 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7525 pcg 1.1 #define gid_t int
7526 pcg 1.11 _ACEOF
7527 pcg 1.1
7528     fi
7529    
7530    
7531 ayin 1.106 echo "$as_me:$LINENO: checking for short" >&5
7532     echo $ECHO_N "checking for short... $ECHO_C" >&6
7533 pcg 1.11 if test "${ac_cv_type_short+set}" = set; then
7534     echo $ECHO_N "(cached) $ECHO_C" >&6
7535     else
7536     cat >conftest.$ac_ext <<_ACEOF
7537     /* confdefs.h. */
7538     _ACEOF
7539     cat confdefs.h >>conftest.$ac_ext
7540     cat >>conftest.$ac_ext <<_ACEOF
7541     /* end confdefs.h. */
7542     $ac_includes_default
7543     int
7544     main ()
7545     {
7546 ayin 1.106 if ((short *) 0)
7547 pcg 1.11 return 0;
7548 ayin 1.106 if (sizeof (short))
7549 pcg 1.11 return 0;
7550     ;
7551     return 0;
7552     }
7553     _ACEOF
7554     rm -f conftest.$ac_objext
7555 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7556     (eval $ac_compile) 2>conftest.er1
7557 pcg 1.11 ac_status=$?
7558     grep -v '^ *+' conftest.er1 >conftest.err
7559     rm -f conftest.er1
7560     cat conftest.err >&5
7561     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 ayin 1.106 (exit $ac_status); } &&
7563     { ac_try='test -z "$ac_cxx_werror_flag"
7564     || test ! -s conftest.err'
7565     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7566     (eval $ac_try) 2>&5
7567     ac_status=$?
7568     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569     (exit $ac_status); }; } &&
7570     { ac_try='test -s conftest.$ac_objext'
7571     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7572     (eval $ac_try) 2>&5
7573     ac_status=$?
7574     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575     (exit $ac_status); }; }; then
7576 root 1.42 ac_cv_type_short=yes
7577 pcg 1.11 else
7578     echo "$as_me: failed program was:" >&5
7579     sed 's/^/| /' conftest.$ac_ext >&5
7580    
7581 ayin 1.106 ac_cv_type_short=no
7582 pcg 1.11 fi
7583 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7584 pcg 1.11 fi
7585 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7586     echo "${ECHO_T}$ac_cv_type_short" >&6
7587 pcg 1.11
7588 ayin 1.106 echo "$as_me:$LINENO: checking size of short" >&5
7589     echo $ECHO_N "checking size of short... $ECHO_C" >&6
7590 root 1.42 if test "${ac_cv_sizeof_short+set}" = set; then
7591 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
7592     else
7593 ayin 1.106 if test "$ac_cv_type_short" = yes; then
7594     # The cast to unsigned long works around a bug in the HP C Compiler
7595     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7596     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7597     # This bug is HP SR number 8606223364.
7598 pcg 1.11 if test "$cross_compiling" = yes; then
7599     # Depending upon the size, compute the lo and hi bounds.
7600     cat >conftest.$ac_ext <<_ACEOF
7601     /* confdefs.h. */
7602     _ACEOF
7603     cat confdefs.h >>conftest.$ac_ext
7604     cat >>conftest.$ac_ext <<_ACEOF
7605     /* end confdefs.h. */
7606     $ac_includes_default
7607     int
7608     main ()
7609     {
7610 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7611 pcg 1.11 test_array [0] = 0
7612    
7613     ;
7614     return 0;
7615     }
7616     _ACEOF
7617     rm -f conftest.$ac_objext
7618 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7619     (eval $ac_compile) 2>conftest.er1
7620 pcg 1.11 ac_status=$?
7621     grep -v '^ *+' conftest.er1 >conftest.err
7622     rm -f conftest.er1
7623     cat conftest.err >&5
7624     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 ayin 1.106 (exit $ac_status); } &&
7626     { ac_try='test -z "$ac_cxx_werror_flag"
7627     || test ! -s conftest.err'
7628     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629     (eval $ac_try) 2>&5
7630     ac_status=$?
7631     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632     (exit $ac_status); }; } &&
7633     { ac_try='test -s conftest.$ac_objext'
7634     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635     (eval $ac_try) 2>&5
7636     ac_status=$?
7637     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638     (exit $ac_status); }; }; then
7639 pcg 1.11 ac_lo=0 ac_mid=0
7640     while :; do
7641     cat >conftest.$ac_ext <<_ACEOF
7642     /* confdefs.h. */
7643     _ACEOF
7644     cat confdefs.h >>conftest.$ac_ext
7645     cat >>conftest.$ac_ext <<_ACEOF
7646     /* end confdefs.h. */
7647     $ac_includes_default
7648     int
7649     main ()
7650     {
7651 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7652 pcg 1.11 test_array [0] = 0
7653    
7654     ;
7655     return 0;
7656     }
7657     _ACEOF
7658     rm -f conftest.$ac_objext
7659 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7660     (eval $ac_compile) 2>conftest.er1
7661 pcg 1.11 ac_status=$?
7662     grep -v '^ *+' conftest.er1 >conftest.err
7663     rm -f conftest.er1
7664     cat conftest.err >&5
7665     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 ayin 1.106 (exit $ac_status); } &&
7667     { ac_try='test -z "$ac_cxx_werror_flag"
7668     || test ! -s conftest.err'
7669     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670     (eval $ac_try) 2>&5
7671     ac_status=$?
7672     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673     (exit $ac_status); }; } &&
7674     { ac_try='test -s conftest.$ac_objext'
7675     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676     (eval $ac_try) 2>&5
7677     ac_status=$?
7678     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679     (exit $ac_status); }; }; then
7680 pcg 1.11 ac_hi=$ac_mid; break
7681     else
7682     echo "$as_me: failed program was:" >&5
7683     sed 's/^/| /' conftest.$ac_ext >&5
7684    
7685 ayin 1.106 ac_lo=`expr $ac_mid + 1`
7686     if test $ac_lo -le $ac_mid; then
7687     ac_lo= ac_hi=
7688     break
7689     fi
7690     ac_mid=`expr 2 '*' $ac_mid + 1`
7691 pcg 1.11 fi
7692 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7693 pcg 1.11 done
7694     else
7695     echo "$as_me: failed program was:" >&5
7696     sed 's/^/| /' conftest.$ac_ext >&5
7697    
7698 ayin 1.106 cat >conftest.$ac_ext <<_ACEOF
7699 pcg 1.11 /* confdefs.h. */
7700     _ACEOF
7701     cat confdefs.h >>conftest.$ac_ext
7702     cat >>conftest.$ac_ext <<_ACEOF
7703     /* end confdefs.h. */
7704     $ac_includes_default
7705     int
7706     main ()
7707     {
7708 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7709 pcg 1.11 test_array [0] = 0
7710    
7711     ;
7712     return 0;
7713     }
7714     _ACEOF
7715     rm -f conftest.$ac_objext
7716 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7717     (eval $ac_compile) 2>conftest.er1
7718 pcg 1.11 ac_status=$?
7719     grep -v '^ *+' conftest.er1 >conftest.err
7720     rm -f conftest.er1
7721     cat conftest.err >&5
7722     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 ayin 1.106 (exit $ac_status); } &&
7724     { ac_try='test -z "$ac_cxx_werror_flag"
7725     || test ! -s conftest.err'
7726     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727     (eval $ac_try) 2>&5
7728     ac_status=$?
7729     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730     (exit $ac_status); }; } &&
7731     { ac_try='test -s conftest.$ac_objext'
7732     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733     (eval $ac_try) 2>&5
7734     ac_status=$?
7735     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736     (exit $ac_status); }; }; then
7737 pcg 1.11 ac_hi=-1 ac_mid=-1
7738     while :; do
7739     cat >conftest.$ac_ext <<_ACEOF
7740     /* confdefs.h. */
7741     _ACEOF
7742     cat confdefs.h >>conftest.$ac_ext
7743     cat >>conftest.$ac_ext <<_ACEOF
7744     /* end confdefs.h. */
7745     $ac_includes_default
7746     int
7747     main ()
7748     {
7749 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7750 pcg 1.11 test_array [0] = 0
7751    
7752     ;
7753     return 0;
7754     }
7755     _ACEOF
7756     rm -f conftest.$ac_objext
7757 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7758     (eval $ac_compile) 2>conftest.er1
7759 pcg 1.11 ac_status=$?
7760     grep -v '^ *+' conftest.er1 >conftest.err
7761     rm -f conftest.er1
7762     cat conftest.err >&5
7763     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 ayin 1.106 (exit $ac_status); } &&
7765     { ac_try='test -z "$ac_cxx_werror_flag"
7766     || test ! -s conftest.err'
7767     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768     (eval $ac_try) 2>&5
7769     ac_status=$?
7770     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771     (exit $ac_status); }; } &&
7772     { ac_try='test -s conftest.$ac_objext'
7773     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7774     (eval $ac_try) 2>&5
7775     ac_status=$?
7776     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777     (exit $ac_status); }; }; then
7778 pcg 1.11 ac_lo=$ac_mid; break
7779     else
7780     echo "$as_me: failed program was:" >&5
7781     sed 's/^/| /' conftest.$ac_ext >&5
7782    
7783 ayin 1.106 ac_hi=`expr '(' $ac_mid ')' - 1`
7784     if test $ac_mid -le $ac_hi; then
7785     ac_lo= ac_hi=
7786     break
7787     fi
7788     ac_mid=`expr 2 '*' $ac_mid`
7789 pcg 1.11 fi
7790 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7791 pcg 1.11 done
7792     else
7793     echo "$as_me: failed program was:" >&5
7794     sed 's/^/| /' conftest.$ac_ext >&5
7795 pcg 1.1
7796 ayin 1.106 ac_lo= ac_hi=
7797 pcg 1.1 fi
7798 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7799 pcg 1.11 fi
7800 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7801 pcg 1.11 # Binary search between lo and hi bounds.
7802     while test "x$ac_lo" != "x$ac_hi"; do
7803     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7804     cat >conftest.$ac_ext <<_ACEOF
7805     /* confdefs.h. */
7806     _ACEOF
7807     cat confdefs.h >>conftest.$ac_ext
7808     cat >>conftest.$ac_ext <<_ACEOF
7809     /* end confdefs.h. */
7810     $ac_includes_default
7811     int
7812     main ()
7813     {
7814 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7815 pcg 1.11 test_array [0] = 0
7816 pcg 1.1
7817 pcg 1.11 ;
7818     return 0;
7819     }
7820     _ACEOF
7821     rm -f conftest.$ac_objext
7822 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7823     (eval $ac_compile) 2>conftest.er1
7824 pcg 1.11 ac_status=$?
7825     grep -v '^ *+' conftest.er1 >conftest.err
7826     rm -f conftest.er1
7827     cat conftest.err >&5
7828     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 ayin 1.106 (exit $ac_status); } &&
7830     { ac_try='test -z "$ac_cxx_werror_flag"
7831     || test ! -s conftest.err'
7832     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833     (eval $ac_try) 2>&5
7834     ac_status=$?
7835     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836     (exit $ac_status); }; } &&
7837     { ac_try='test -s conftest.$ac_objext'
7838     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839     (eval $ac_try) 2>&5
7840     ac_status=$?
7841     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842     (exit $ac_status); }; }; then
7843 pcg 1.11 ac_hi=$ac_mid
7844     else
7845     echo "$as_me: failed program was:" >&5
7846     sed 's/^/| /' conftest.$ac_ext >&5
7847 pcg 1.1
7848 ayin 1.106 ac_lo=`expr '(' $ac_mid ')' + 1`
7849 pcg 1.11 fi
7850 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7851 pcg 1.11 done
7852     case $ac_lo in
7853 root 1.42 ?*) ac_cv_sizeof_short=$ac_lo;;
7854 ayin 1.106 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7855 pcg 1.11 See \`config.log' for more details." >&5
7856 ayin 1.106 echo "$as_me: error: cannot compute sizeof (short), 77
7857 pcg 1.11 See \`config.log' for more details." >&2;}
7858 ayin 1.106 { (exit 1); exit 1; }; } ;;
7859 pcg 1.11 esac
7860 pcg 1.1 else
7861 ayin 1.106 if test "$cross_compiling" = yes; then
7862     { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7863     See \`config.log' for more details." >&5
7864     echo "$as_me: error: cannot run test program while cross compiling
7865     See \`config.log' for more details." >&2;}
7866     { (exit 1); exit 1; }; }
7867     else
7868 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7869     /* confdefs.h. */
7870     _ACEOF
7871     cat confdefs.h >>conftest.$ac_ext
7872     cat >>conftest.$ac_ext <<_ACEOF
7873     /* end confdefs.h. */
7874     $ac_includes_default
7875 ayin 1.106 long longval () { return (long) (sizeof (short)); }
7876     unsigned long ulongval () { return (long) (sizeof (short)); }
7877 pcg 1.1 #include <stdio.h>
7878 pcg 1.11 #include <stdlib.h>
7879     int
7880     main ()
7881 pcg 1.1 {
7882 pcg 1.11
7883     FILE *f = fopen ("conftest.val", "w");
7884     if (! f)
7885 ayin 1.106 exit (1);
7886     if (((long) (sizeof (short))) < 0)
7887 pcg 1.11 {
7888 ayin 1.106 long i = longval ();
7889     if (i != ((long) (sizeof (short))))
7890     exit (1);
7891 pcg 1.11 fprintf (f, "%ld\n", i);
7892     }
7893     else
7894     {
7895 ayin 1.106 unsigned long i = ulongval ();
7896     if (i != ((long) (sizeof (short))))
7897     exit (1);
7898 pcg 1.11 fprintf (f, "%lu\n", i);
7899     }
7900 ayin 1.106 exit (ferror (f) || fclose (f) != 0);
7901 pcg 1.11
7902     ;
7903     return 0;
7904 pcg 1.1 }
7905 pcg 1.11 _ACEOF
7906     rm -f conftest$ac_exeext
7907 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7908     (eval $ac_link) 2>&5
7909 pcg 1.11 ac_status=$?
7910     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7912 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913     (eval $ac_try) 2>&5
7914 pcg 1.11 ac_status=$?
7915     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916     (exit $ac_status); }; }; then
7917 root 1.42 ac_cv_sizeof_short=`cat conftest.val`
7918 pcg 1.11 else
7919     echo "$as_me: program exited with status $ac_status" >&5
7920     echo "$as_me: failed program was:" >&5
7921     sed 's/^/| /' conftest.$ac_ext >&5
7922    
7923     ( exit $ac_status )
7924 ayin 1.106 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7925 pcg 1.11 See \`config.log' for more details." >&5
7926 ayin 1.106 echo "$as_me: error: cannot compute sizeof (short), 77
7927 pcg 1.11 See \`config.log' for more details." >&2;}
7928 ayin 1.106 { (exit 1); exit 1; }; }
7929     fi
7930     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7931 pcg 1.11 fi
7932     fi
7933     rm -f conftest.val
7934 ayin 1.106 else
7935     ac_cv_sizeof_short=0
7936 ayin 1.104 fi
7937 ayin 1.106 fi
7938     echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7939     echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7940 pcg 1.11 cat >>confdefs.h <<_ACEOF
7941 root 1.42 #define SIZEOF_SHORT $ac_cv_sizeof_short
7942 pcg 1.11 _ACEOF
7943    
7944    
7945 ayin 1.106 echo "$as_me:$LINENO: checking for int" >&5
7946     echo $ECHO_N "checking for int... $ECHO_C" >&6
7947 root 1.42 if test "${ac_cv_type_int+set}" = set; then
7948 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
7949     else
7950     cat >conftest.$ac_ext <<_ACEOF
7951     /* confdefs.h. */
7952     _ACEOF
7953     cat confdefs.h >>conftest.$ac_ext
7954     cat >>conftest.$ac_ext <<_ACEOF
7955     /* end confdefs.h. */
7956     $ac_includes_default
7957     int
7958     main ()
7959     {
7960 ayin 1.106 if ((int *) 0)
7961 pcg 1.11 return 0;
7962 ayin 1.106 if (sizeof (int))
7963 pcg 1.11 return 0;
7964     ;
7965     return 0;
7966     }
7967     _ACEOF
7968     rm -f conftest.$ac_objext
7969 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7970     (eval $ac_compile) 2>conftest.er1
7971 pcg 1.11 ac_status=$?
7972     grep -v '^ *+' conftest.er1 >conftest.err
7973     rm -f conftest.er1
7974     cat conftest.err >&5
7975     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 ayin 1.106 (exit $ac_status); } &&
7977     { ac_try='test -z "$ac_cxx_werror_flag"
7978     || test ! -s conftest.err'
7979     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980     (eval $ac_try) 2>&5
7981     ac_status=$?
7982     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983     (exit $ac_status); }; } &&
7984     { ac_try='test -s conftest.$ac_objext'
7985     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986     (eval $ac_try) 2>&5
7987     ac_status=$?
7988     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989     (exit $ac_status); }; }; then
7990 root 1.42 ac_cv_type_int=yes
7991 pcg 1.11 else
7992     echo "$as_me: failed program was:" >&5
7993     sed 's/^/| /' conftest.$ac_ext >&5
7994    
7995 ayin 1.106 ac_cv_type_int=no
7996 pcg 1.11 fi
7997 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7998 pcg 1.11 fi
7999 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8000     echo "${ECHO_T}$ac_cv_type_int" >&6
8001 pcg 1.11
8002 ayin 1.106 echo "$as_me:$LINENO: checking size of int" >&5
8003     echo $ECHO_N "checking size of int... $ECHO_C" >&6
8004 root 1.42 if test "${ac_cv_sizeof_int+set}" = set; then
8005 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
8006     else
8007 ayin 1.106 if test "$ac_cv_type_int" = yes; then
8008     # The cast to unsigned long works around a bug in the HP C Compiler
8009     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8010     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8011     # This bug is HP SR number 8606223364.
8012 pcg 1.11 if test "$cross_compiling" = yes; then
8013     # Depending upon the size, compute the lo and hi bounds.
8014     cat >conftest.$ac_ext <<_ACEOF
8015     /* confdefs.h. */
8016     _ACEOF
8017     cat confdefs.h >>conftest.$ac_ext
8018     cat >>conftest.$ac_ext <<_ACEOF
8019     /* end confdefs.h. */
8020     $ac_includes_default
8021     int
8022     main ()
8023     {
8024 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
8025 pcg 1.11 test_array [0] = 0
8026    
8027     ;
8028     return 0;
8029     }
8030     _ACEOF
8031     rm -f conftest.$ac_objext
8032 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8033     (eval $ac_compile) 2>conftest.er1
8034 pcg 1.11 ac_status=$?
8035     grep -v '^ *+' conftest.er1 >conftest.err
8036     rm -f conftest.er1
8037     cat conftest.err >&5
8038     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 ayin 1.106 (exit $ac_status); } &&
8040     { ac_try='test -z "$ac_cxx_werror_flag"
8041     || test ! -s conftest.err'
8042     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043     (eval $ac_try) 2>&5
8044     ac_status=$?
8045     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046     (exit $ac_status); }; } &&
8047     { ac_try='test -s conftest.$ac_objext'
8048     { (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); }; }; then
8053 pcg 1.11 ac_lo=0 ac_mid=0
8054     while :; do
8055     cat >conftest.$ac_ext <<_ACEOF
8056     /* confdefs.h. */
8057     _ACEOF
8058     cat confdefs.h >>conftest.$ac_ext
8059     cat >>conftest.$ac_ext <<_ACEOF
8060     /* end confdefs.h. */
8061     $ac_includes_default
8062     int
8063     main ()
8064     {
8065 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8066 pcg 1.11 test_array [0] = 0
8067    
8068     ;
8069     return 0;
8070     }
8071     _ACEOF
8072     rm -f conftest.$ac_objext
8073 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8074     (eval $ac_compile) 2>conftest.er1
8075 pcg 1.11 ac_status=$?
8076     grep -v '^ *+' conftest.er1 >conftest.err
8077     rm -f conftest.er1
8078     cat conftest.err >&5
8079     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 ayin 1.106 (exit $ac_status); } &&
8081     { ac_try='test -z "$ac_cxx_werror_flag"
8082     || test ! -s conftest.err'
8083     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084     (eval $ac_try) 2>&5
8085     ac_status=$?
8086     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087     (exit $ac_status); }; } &&
8088     { ac_try='test -s conftest.$ac_objext'
8089     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090     (eval $ac_try) 2>&5
8091     ac_status=$?
8092     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093     (exit $ac_status); }; }; then
8094 pcg 1.11 ac_hi=$ac_mid; break
8095     else
8096     echo "$as_me: failed program was:" >&5
8097     sed 's/^/| /' conftest.$ac_ext >&5
8098    
8099 ayin 1.106 ac_lo=`expr $ac_mid + 1`
8100     if test $ac_lo -le $ac_mid; then
8101     ac_lo= ac_hi=
8102     break
8103     fi
8104     ac_mid=`expr 2 '*' $ac_mid + 1`
8105 pcg 1.11 fi
8106 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8107 pcg 1.11 done
8108     else
8109     echo "$as_me: failed program was:" >&5
8110     sed 's/^/| /' conftest.$ac_ext >&5
8111    
8112 ayin 1.106 cat >conftest.$ac_ext <<_ACEOF
8113 pcg 1.11 /* confdefs.h. */
8114     _ACEOF
8115     cat confdefs.h >>conftest.$ac_ext
8116     cat >>conftest.$ac_ext <<_ACEOF
8117     /* end confdefs.h. */
8118     $ac_includes_default
8119     int
8120     main ()
8121     {
8122 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8123 pcg 1.11 test_array [0] = 0
8124    
8125     ;
8126     return 0;
8127     }
8128     _ACEOF
8129     rm -f conftest.$ac_objext
8130 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8131     (eval $ac_compile) 2>conftest.er1
8132 pcg 1.11 ac_status=$?
8133     grep -v '^ *+' conftest.er1 >conftest.err
8134     rm -f conftest.er1
8135     cat conftest.err >&5
8136     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 ayin 1.106 (exit $ac_status); } &&
8138     { ac_try='test -z "$ac_cxx_werror_flag"
8139     || test ! -s conftest.err'
8140     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141     (eval $ac_try) 2>&5
8142     ac_status=$?
8143     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144     (exit $ac_status); }; } &&
8145     { ac_try='test -s conftest.$ac_objext'
8146     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147     (eval $ac_try) 2>&5
8148     ac_status=$?
8149     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150     (exit $ac_status); }; }; then
8151 pcg 1.11 ac_hi=-1 ac_mid=-1
8152     while :; do
8153     cat >conftest.$ac_ext <<_ACEOF
8154     /* confdefs.h. */
8155     _ACEOF
8156     cat confdefs.h >>conftest.$ac_ext
8157     cat >>conftest.$ac_ext <<_ACEOF
8158     /* end confdefs.h. */
8159     $ac_includes_default
8160     int
8161     main ()
8162     {
8163 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8164 pcg 1.11 test_array [0] = 0
8165    
8166     ;
8167     return 0;
8168     }
8169     _ACEOF
8170     rm -f conftest.$ac_objext
8171 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8172     (eval $ac_compile) 2>conftest.er1
8173 pcg 1.11 ac_status=$?
8174     grep -v '^ *+' conftest.er1 >conftest.err
8175     rm -f conftest.er1
8176     cat conftest.err >&5
8177     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 ayin 1.106 (exit $ac_status); } &&
8179     { ac_try='test -z "$ac_cxx_werror_flag"
8180     || test ! -s conftest.err'
8181     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182     (eval $ac_try) 2>&5
8183     ac_status=$?
8184     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185     (exit $ac_status); }; } &&
8186     { ac_try='test -s conftest.$ac_objext'
8187     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188     (eval $ac_try) 2>&5
8189     ac_status=$?
8190     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191     (exit $ac_status); }; }; then
8192 pcg 1.11 ac_lo=$ac_mid; break
8193     else
8194     echo "$as_me: failed program was:" >&5
8195     sed 's/^/| /' conftest.$ac_ext >&5
8196    
8197 ayin 1.106 ac_hi=`expr '(' $ac_mid ')' - 1`
8198     if test $ac_mid -le $ac_hi; then
8199     ac_lo= ac_hi=
8200     break
8201     fi
8202     ac_mid=`expr 2 '*' $ac_mid`
8203 pcg 1.11 fi
8204 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8205 pcg 1.11 done
8206     else
8207     echo "$as_me: failed program was:" >&5
8208     sed 's/^/| /' conftest.$ac_ext >&5
8209 pcg 1.1
8210 ayin 1.106 ac_lo= ac_hi=
8211 pcg 1.11 fi
8212 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8213 pcg 1.1 fi
8214 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8215 pcg 1.11 # Binary search between lo and hi bounds.
8216     while test "x$ac_lo" != "x$ac_hi"; do
8217     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8218     cat >conftest.$ac_ext <<_ACEOF
8219     /* confdefs.h. */
8220     _ACEOF
8221     cat confdefs.h >>conftest.$ac_ext
8222     cat >>conftest.$ac_ext <<_ACEOF
8223     /* end confdefs.h. */
8224     $ac_includes_default
8225     int
8226     main ()
8227     {
8228 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8229 pcg 1.11 test_array [0] = 0
8230 pcg 1.1
8231 pcg 1.11 ;
8232     return 0;
8233     }
8234     _ACEOF
8235     rm -f conftest.$ac_objext
8236 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8237     (eval $ac_compile) 2>conftest.er1
8238 pcg 1.11 ac_status=$?
8239     grep -v '^ *+' conftest.er1 >conftest.err
8240     rm -f conftest.er1
8241     cat conftest.err >&5
8242     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 ayin 1.106 (exit $ac_status); } &&
8244     { ac_try='test -z "$ac_cxx_werror_flag"
8245     || test ! -s conftest.err'
8246     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247     (eval $ac_try) 2>&5
8248     ac_status=$?
8249     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250     (exit $ac_status); }; } &&
8251     { ac_try='test -s conftest.$ac_objext'
8252     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253     (eval $ac_try) 2>&5
8254     ac_status=$?
8255     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256     (exit $ac_status); }; }; then
8257 pcg 1.11 ac_hi=$ac_mid
8258     else
8259     echo "$as_me: failed program was:" >&5
8260     sed 's/^/| /' conftest.$ac_ext >&5
8261 pcg 1.1
8262 ayin 1.106 ac_lo=`expr '(' $ac_mid ')' + 1`
8263 pcg 1.11 fi
8264 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8265 pcg 1.11 done
8266     case $ac_lo in
8267 root 1.42 ?*) ac_cv_sizeof_int=$ac_lo;;
8268 ayin 1.106 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8269 pcg 1.11 See \`config.log' for more details." >&5
8270 ayin 1.106 echo "$as_me: error: cannot compute sizeof (int), 77
8271 pcg 1.11 See \`config.log' for more details." >&2;}
8272 ayin 1.106 { (exit 1); exit 1; }; } ;;
8273 pcg 1.11 esac
8274 pcg 1.1 else
8275 ayin 1.106 if test "$cross_compiling" = yes; then
8276     { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8277     See \`config.log' for more details." >&5
8278     echo "$as_me: error: cannot run test program while cross compiling
8279     See \`config.log' for more details." >&2;}
8280     { (exit 1); exit 1; }; }
8281     else
8282 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
8283     /* confdefs.h. */
8284     _ACEOF
8285     cat confdefs.h >>conftest.$ac_ext
8286     cat >>conftest.$ac_ext <<_ACEOF
8287     /* end confdefs.h. */
8288     $ac_includes_default
8289 ayin 1.106 long longval () { return (long) (sizeof (int)); }
8290     unsigned long ulongval () { return (long) (sizeof (int)); }
8291 pcg 1.1 #include <stdio.h>
8292 pcg 1.11 #include <stdlib.h>
8293     int
8294     main ()
8295 pcg 1.1 {
8296 pcg 1.11
8297     FILE *f = fopen ("conftest.val", "w");
8298     if (! f)
8299 ayin 1.106 exit (1);
8300     if (((long) (sizeof (int))) < 0)
8301 pcg 1.11 {
8302 ayin 1.106 long i = longval ();
8303     if (i != ((long) (sizeof (int))))
8304     exit (1);
8305 pcg 1.11 fprintf (f, "%ld\n", i);
8306     }
8307     else
8308     {
8309 ayin 1.106 unsigned long i = ulongval ();
8310     if (i != ((long) (sizeof (int))))
8311     exit (1);
8312 pcg 1.11 fprintf (f, "%lu\n", i);
8313     }
8314 ayin 1.106 exit (ferror (f) || fclose (f) != 0);
8315 pcg 1.11
8316     ;
8317     return 0;
8318 pcg 1.1 }
8319 pcg 1.11 _ACEOF
8320     rm -f conftest$ac_exeext
8321 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8322     (eval $ac_link) 2>&5
8323 pcg 1.11 ac_status=$?
8324     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8326 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327     (eval $ac_try) 2>&5
8328 pcg 1.11 ac_status=$?
8329     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330     (exit $ac_status); }; }; then
8331 root 1.42 ac_cv_sizeof_int=`cat conftest.val`
8332 pcg 1.11 else
8333     echo "$as_me: program exited with status $ac_status" >&5
8334     echo "$as_me: failed program was:" >&5
8335     sed 's/^/| /' conftest.$ac_ext >&5
8336    
8337     ( exit $ac_status )
8338 ayin 1.106 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8339 pcg 1.11 See \`config.log' for more details." >&5
8340 ayin 1.106 echo "$as_me: error: cannot compute sizeof (int), 77
8341 pcg 1.11 See \`config.log' for more details." >&2;}
8342 ayin 1.106 { (exit 1); exit 1; }; }
8343     fi
8344     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8345 pcg 1.11 fi
8346     fi
8347     rm -f conftest.val
8348 ayin 1.106 else
8349     ac_cv_sizeof_int=0
8350 ayin 1.104 fi
8351 ayin 1.106 fi
8352     echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8353     echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8354 pcg 1.11 cat >>confdefs.h <<_ACEOF
8355 root 1.42 #define SIZEOF_INT $ac_cv_sizeof_int
8356 pcg 1.11 _ACEOF
8357    
8358    
8359 ayin 1.106 echo "$as_me:$LINENO: checking for long long" >&5
8360     echo $ECHO_N "checking for long long... $ECHO_C" >&6
8361 pcg 1.11 if test "${ac_cv_type_long_long+set}" = set; then
8362     echo $ECHO_N "(cached) $ECHO_C" >&6
8363     else
8364     cat >conftest.$ac_ext <<_ACEOF
8365     /* confdefs.h. */
8366     _ACEOF
8367     cat confdefs.h >>conftest.$ac_ext
8368     cat >>conftest.$ac_ext <<_ACEOF
8369     /* end confdefs.h. */
8370     $ac_includes_default
8371     int
8372     main ()
8373     {
8374 ayin 1.106 if ((long long *) 0)
8375 pcg 1.11 return 0;
8376 ayin 1.106 if (sizeof (long long))
8377 pcg 1.11 return 0;
8378     ;
8379     return 0;
8380     }
8381     _ACEOF
8382     rm -f conftest.$ac_objext
8383 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8384     (eval $ac_compile) 2>conftest.er1
8385 pcg 1.11 ac_status=$?
8386     grep -v '^ *+' conftest.er1 >conftest.err
8387     rm -f conftest.er1
8388     cat conftest.err >&5
8389     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 ayin 1.106 (exit $ac_status); } &&
8391     { ac_try='test -z "$ac_cxx_werror_flag"
8392     || test ! -s conftest.err'
8393     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394     (eval $ac_try) 2>&5
8395     ac_status=$?
8396     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397     (exit $ac_status); }; } &&
8398     { ac_try='test -s conftest.$ac_objext'
8399     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400     (eval $ac_try) 2>&5
8401     ac_status=$?
8402     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403     (exit $ac_status); }; }; then
8404 pcg 1.11 ac_cv_type_long_long=yes
8405     else
8406     echo "$as_me: failed program was:" >&5
8407     sed 's/^/| /' conftest.$ac_ext >&5
8408    
8409 ayin 1.106 ac_cv_type_long_long=no
8410 pcg 1.11 fi
8411 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8412 pcg 1.11 fi
8413 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8414     echo "${ECHO_T}$ac_cv_type_long_long" >&6
8415 pcg 1.11
8416 ayin 1.106 echo "$as_me:$LINENO: checking size of long long" >&5
8417     echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8418 pcg 1.11 if test "${ac_cv_sizeof_long_long+set}" = set; then
8419     echo $ECHO_N "(cached) $ECHO_C" >&6
8420     else
8421 ayin 1.106 if test "$ac_cv_type_long_long" = yes; then
8422     # The cast to unsigned long works around a bug in the HP C Compiler
8423     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8424     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8425     # This bug is HP SR number 8606223364.
8426 pcg 1.11 if test "$cross_compiling" = yes; then
8427     # Depending upon the size, compute the lo and hi bounds.
8428     cat >conftest.$ac_ext <<_ACEOF
8429     /* confdefs.h. */
8430     _ACEOF
8431     cat confdefs.h >>conftest.$ac_ext
8432     cat >>conftest.$ac_ext <<_ACEOF
8433     /* end confdefs.h. */
8434     $ac_includes_default
8435     int
8436     main ()
8437     {
8438 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8439 pcg 1.11 test_array [0] = 0
8440    
8441     ;
8442     return 0;
8443     }
8444     _ACEOF
8445     rm -f conftest.$ac_objext
8446 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8447     (eval $ac_compile) 2>conftest.er1
8448 pcg 1.11 ac_status=$?
8449     grep -v '^ *+' conftest.er1 >conftest.err
8450     rm -f conftest.er1
8451     cat conftest.err >&5
8452     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 ayin 1.106 (exit $ac_status); } &&
8454     { ac_try='test -z "$ac_cxx_werror_flag"
8455     || test ! -s conftest.err'
8456     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457     (eval $ac_try) 2>&5
8458     ac_status=$?
8459     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460     (exit $ac_status); }; } &&
8461     { ac_try='test -s conftest.$ac_objext'
8462     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463     (eval $ac_try) 2>&5
8464     ac_status=$?
8465     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466     (exit $ac_status); }; }; then
8467 pcg 1.11 ac_lo=0 ac_mid=0
8468     while :; do
8469     cat >conftest.$ac_ext <<_ACEOF
8470     /* confdefs.h. */
8471     _ACEOF
8472     cat confdefs.h >>conftest.$ac_ext
8473     cat >>conftest.$ac_ext <<_ACEOF
8474     /* end confdefs.h. */
8475     $ac_includes_default
8476     int
8477     main ()
8478     {
8479 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8480 pcg 1.11 test_array [0] = 0
8481    
8482     ;
8483     return 0;
8484     }
8485     _ACEOF
8486     rm -f conftest.$ac_objext
8487 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8488     (eval $ac_compile) 2>conftest.er1
8489 pcg 1.11 ac_status=$?
8490     grep -v '^ *+' conftest.er1 >conftest.err
8491     rm -f conftest.er1
8492     cat conftest.err >&5
8493     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 ayin 1.106 (exit $ac_status); } &&
8495     { ac_try='test -z "$ac_cxx_werror_flag"
8496     || test ! -s conftest.err'
8497     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498     (eval $ac_try) 2>&5
8499     ac_status=$?
8500     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501     (exit $ac_status); }; } &&
8502     { ac_try='test -s conftest.$ac_objext'
8503     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504     (eval $ac_try) 2>&5
8505     ac_status=$?
8506     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507     (exit $ac_status); }; }; then
8508 root 1.105 ac_hi=$ac_mid; break
8509     else
8510 pcg 1.11 echo "$as_me: failed program was:" >&5
8511     sed 's/^/| /' conftest.$ac_ext >&5
8512    
8513 ayin 1.106 ac_lo=`expr $ac_mid + 1`
8514     if test $ac_lo -le $ac_mid; then
8515     ac_lo= ac_hi=
8516     break
8517     fi
8518     ac_mid=`expr 2 '*' $ac_mid + 1`
8519 pcg 1.11 fi
8520 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8521 pcg 1.11 done
8522     else
8523     echo "$as_me: failed program was:" >&5
8524     sed 's/^/| /' conftest.$ac_ext >&5
8525    
8526 ayin 1.106 cat >conftest.$ac_ext <<_ACEOF
8527 pcg 1.11 /* confdefs.h. */
8528     _ACEOF
8529     cat confdefs.h >>conftest.$ac_ext
8530     cat >>conftest.$ac_ext <<_ACEOF
8531     /* end confdefs.h. */
8532     $ac_includes_default
8533     int
8534     main ()
8535     {
8536 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8537 pcg 1.11 test_array [0] = 0
8538    
8539     ;
8540     return 0;
8541     }
8542     _ACEOF
8543     rm -f conftest.$ac_objext
8544 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8545     (eval $ac_compile) 2>conftest.er1
8546 pcg 1.11 ac_status=$?
8547     grep -v '^ *+' conftest.er1 >conftest.err
8548     rm -f conftest.er1
8549     cat conftest.err >&5
8550     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 ayin 1.106 (exit $ac_status); } &&
8552     { ac_try='test -z "$ac_cxx_werror_flag"
8553     || test ! -s conftest.err'
8554     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555     (eval $ac_try) 2>&5
8556     ac_status=$?
8557     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558     (exit $ac_status); }; } &&
8559     { ac_try='test -s conftest.$ac_objext'
8560     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561     (eval $ac_try) 2>&5
8562     ac_status=$?
8563     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564     (exit $ac_status); }; }; then
8565 pcg 1.11 ac_hi=-1 ac_mid=-1
8566     while :; do
8567     cat >conftest.$ac_ext <<_ACEOF
8568     /* confdefs.h. */
8569     _ACEOF
8570     cat confdefs.h >>conftest.$ac_ext
8571     cat >>conftest.$ac_ext <<_ACEOF
8572     /* end confdefs.h. */
8573     $ac_includes_default
8574     int
8575     main ()
8576     {
8577 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8578 pcg 1.11 test_array [0] = 0
8579    
8580     ;
8581     return 0;
8582     }
8583     _ACEOF
8584     rm -f conftest.$ac_objext
8585 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8586     (eval $ac_compile) 2>conftest.er1
8587 pcg 1.11 ac_status=$?
8588     grep -v '^ *+' conftest.er1 >conftest.err
8589     rm -f conftest.er1
8590     cat conftest.err >&5
8591     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 ayin 1.106 (exit $ac_status); } &&
8593     { ac_try='test -z "$ac_cxx_werror_flag"
8594     || test ! -s conftest.err'
8595     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596     (eval $ac_try) 2>&5
8597     ac_status=$?
8598     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599     (exit $ac_status); }; } &&
8600     { ac_try='test -s conftest.$ac_objext'
8601     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602     (eval $ac_try) 2>&5
8603     ac_status=$?
8604     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605     (exit $ac_status); }; }; then
8606 pcg 1.11 ac_lo=$ac_mid; break
8607     else
8608     echo "$as_me: failed program was:" >&5
8609     sed 's/^/| /' conftest.$ac_ext >&5
8610    
8611 ayin 1.106 ac_hi=`expr '(' $ac_mid ')' - 1`
8612     if test $ac_mid -le $ac_hi; then
8613     ac_lo= ac_hi=
8614     break
8615     fi
8616     ac_mid=`expr 2 '*' $ac_mid`
8617 pcg 1.11 fi
8618 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8619 pcg 1.11 done
8620     else
8621     echo "$as_me: failed program was:" >&5
8622     sed 's/^/| /' conftest.$ac_ext >&5
8623 pcg 1.1
8624 ayin 1.106 ac_lo= ac_hi=
8625 pcg 1.11 fi
8626 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8627 pcg 1.1 fi
8628 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8629 pcg 1.11 # Binary search between lo and hi bounds.
8630     while test "x$ac_lo" != "x$ac_hi"; do
8631     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8632     cat >conftest.$ac_ext <<_ACEOF
8633     /* confdefs.h. */
8634     _ACEOF
8635     cat confdefs.h >>conftest.$ac_ext
8636     cat >>conftest.$ac_ext <<_ACEOF
8637     /* end confdefs.h. */
8638     $ac_includes_default
8639     int
8640     main ()
8641     {
8642 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8643 pcg 1.11 test_array [0] = 0
8644 pcg 1.1
8645 pcg 1.11 ;
8646     return 0;
8647     }
8648     _ACEOF
8649     rm -f conftest.$ac_objext
8650 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8651     (eval $ac_compile) 2>conftest.er1
8652 pcg 1.11 ac_status=$?
8653     grep -v '^ *+' conftest.er1 >conftest.err
8654     rm -f conftest.er1
8655     cat conftest.err >&5
8656     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 ayin 1.106 (exit $ac_status); } &&
8658     { ac_try='test -z "$ac_cxx_werror_flag"
8659     || test ! -s conftest.err'
8660     { (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 pcg 1.11 ac_hi=$ac_mid
8672     else
8673     echo "$as_me: failed program was:" >&5
8674     sed 's/^/| /' conftest.$ac_ext >&5
8675 pcg 1.1
8676 ayin 1.106 ac_lo=`expr '(' $ac_mid ')' + 1`
8677 pcg 1.11 fi
8678 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8679 pcg 1.11 done
8680     case $ac_lo in
8681     ?*) ac_cv_sizeof_long_long=$ac_lo;;
8682 ayin 1.106 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8683 pcg 1.11 See \`config.log' for more details." >&5
8684 ayin 1.106 echo "$as_me: error: cannot compute sizeof (long long), 77
8685 pcg 1.11 See \`config.log' for more details." >&2;}
8686 ayin 1.106 { (exit 1); exit 1; }; } ;;
8687 pcg 1.11 esac
8688 pcg 1.1 else
8689 ayin 1.106 if test "$cross_compiling" = yes; then
8690     { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8691     See \`config.log' for more details." >&5
8692     echo "$as_me: error: cannot run test program while cross compiling
8693     See \`config.log' for more details." >&2;}
8694     { (exit 1); exit 1; }; }
8695     else
8696 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
8697     /* confdefs.h. */
8698     _ACEOF
8699     cat confdefs.h >>conftest.$ac_ext
8700     cat >>conftest.$ac_ext <<_ACEOF
8701     /* end confdefs.h. */
8702     $ac_includes_default
8703 ayin 1.106 long longval () { return (long) (sizeof (long long)); }
8704     unsigned long ulongval () { return (long) (sizeof (long long)); }
8705 pcg 1.1 #include <stdio.h>
8706 pcg 1.11 #include <stdlib.h>
8707     int
8708     main ()
8709 pcg 1.1 {
8710 pcg 1.11
8711     FILE *f = fopen ("conftest.val", "w");
8712     if (! f)
8713 ayin 1.106 exit (1);
8714     if (((long) (sizeof (long long))) < 0)
8715 pcg 1.11 {
8716 ayin 1.106 long i = longval ();
8717     if (i != ((long) (sizeof (long long))))
8718     exit (1);
8719 pcg 1.11 fprintf (f, "%ld\n", i);
8720     }
8721     else
8722     {
8723 ayin 1.106 unsigned long i = ulongval ();
8724     if (i != ((long) (sizeof (long long))))
8725     exit (1);
8726 pcg 1.11 fprintf (f, "%lu\n", i);
8727     }
8728 ayin 1.106 exit (ferror (f) || fclose (f) != 0);
8729 pcg 1.11
8730     ;
8731     return 0;
8732 pcg 1.1 }
8733 pcg 1.11 _ACEOF
8734     rm -f conftest$ac_exeext
8735 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8736     (eval $ac_link) 2>&5
8737 pcg 1.11 ac_status=$?
8738     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8740 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741     (eval $ac_try) 2>&5
8742 pcg 1.11 ac_status=$?
8743     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744     (exit $ac_status); }; }; then
8745     ac_cv_sizeof_long_long=`cat conftest.val`
8746     else
8747     echo "$as_me: program exited with status $ac_status" >&5
8748     echo "$as_me: failed program was:" >&5
8749     sed 's/^/| /' conftest.$ac_ext >&5
8750    
8751     ( exit $ac_status )
8752 ayin 1.106 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8753 pcg 1.11 See \`config.log' for more details." >&5
8754 ayin 1.106 echo "$as_me: error: cannot compute sizeof (long long), 77
8755 pcg 1.11 See \`config.log' for more details." >&2;}
8756 ayin 1.106 { (exit 1); exit 1; }; }
8757     fi
8758     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8759 pcg 1.11 fi
8760     fi
8761     rm -f conftest.val
8762 ayin 1.106 else
8763     ac_cv_sizeof_long_long=0
8764 ayin 1.104 fi
8765 ayin 1.106 fi
8766     echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8767     echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8768 pcg 1.11 cat >>confdefs.h <<_ACEOF
8769     #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8770     _ACEOF
8771    
8772    
8773 ayin 1.106 echo "$as_me:$LINENO: checking for int *" >&5
8774     echo $ECHO_N "checking for int *... $ECHO_C" >&6
8775 pcg 1.11 if test "${ac_cv_type_int_p+set}" = set; then
8776     echo $ECHO_N "(cached) $ECHO_C" >&6
8777     else
8778     cat >conftest.$ac_ext <<_ACEOF
8779     /* confdefs.h. */
8780     _ACEOF
8781     cat confdefs.h >>conftest.$ac_ext
8782     cat >>conftest.$ac_ext <<_ACEOF
8783     /* end confdefs.h. */
8784     $ac_includes_default
8785     int
8786     main ()
8787     {
8788 ayin 1.106 if ((int * *) 0)
8789 pcg 1.11 return 0;
8790 ayin 1.106 if (sizeof (int *))
8791 pcg 1.11 return 0;
8792     ;
8793     return 0;
8794     }
8795     _ACEOF
8796     rm -f conftest.$ac_objext
8797 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8798     (eval $ac_compile) 2>conftest.er1
8799 pcg 1.11 ac_status=$?
8800     grep -v '^ *+' conftest.er1 >conftest.err
8801     rm -f conftest.er1
8802     cat conftest.err >&5
8803     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 ayin 1.106 (exit $ac_status); } &&
8805     { ac_try='test -z "$ac_cxx_werror_flag"
8806     || test ! -s conftest.err'
8807     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808     (eval $ac_try) 2>&5
8809     ac_status=$?
8810     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811     (exit $ac_status); }; } &&
8812     { ac_try='test -s conftest.$ac_objext'
8813     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814     (eval $ac_try) 2>&5
8815     ac_status=$?
8816     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817     (exit $ac_status); }; }; then
8818 pcg 1.11 ac_cv_type_int_p=yes
8819     else
8820     echo "$as_me: failed program was:" >&5
8821     sed 's/^/| /' conftest.$ac_ext >&5
8822    
8823 ayin 1.106 ac_cv_type_int_p=no
8824 pcg 1.11 fi
8825 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8826 pcg 1.11 fi
8827 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
8828     echo "${ECHO_T}$ac_cv_type_int_p" >&6
8829 pcg 1.11
8830 ayin 1.106 echo "$as_me:$LINENO: checking size of int *" >&5
8831     echo $ECHO_N "checking size of int *... $ECHO_C" >&6
8832 pcg 1.11 if test "${ac_cv_sizeof_int_p+set}" = set; then
8833     echo $ECHO_N "(cached) $ECHO_C" >&6
8834     else
8835 ayin 1.106 if test "$ac_cv_type_int_p" = yes; then
8836     # The cast to unsigned long works around a bug in the HP C Compiler
8837     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8838     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8839     # This bug is HP SR number 8606223364.
8840 pcg 1.11 if test "$cross_compiling" = yes; then
8841     # Depending upon the size, compute the lo and hi bounds.
8842     cat >conftest.$ac_ext <<_ACEOF
8843     /* confdefs.h. */
8844     _ACEOF
8845     cat confdefs.h >>conftest.$ac_ext
8846     cat >>conftest.$ac_ext <<_ACEOF
8847     /* end confdefs.h. */
8848     $ac_includes_default
8849     int
8850     main ()
8851     {
8852 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
8853 pcg 1.11 test_array [0] = 0
8854    
8855     ;
8856     return 0;
8857     }
8858     _ACEOF
8859     rm -f conftest.$ac_objext
8860 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8861     (eval $ac_compile) 2>conftest.er1
8862 pcg 1.11 ac_status=$?
8863     grep -v '^ *+' conftest.er1 >conftest.err
8864     rm -f conftest.er1
8865     cat conftest.err >&5
8866     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 ayin 1.106 (exit $ac_status); } &&
8868     { ac_try='test -z "$ac_cxx_werror_flag"
8869     || test ! -s conftest.err'
8870     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871     (eval $ac_try) 2>&5
8872     ac_status=$?
8873     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874     (exit $ac_status); }; } &&
8875     { ac_try='test -s conftest.$ac_objext'
8876     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877     (eval $ac_try) 2>&5
8878     ac_status=$?
8879     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880     (exit $ac_status); }; }; then
8881 pcg 1.11 ac_lo=0 ac_mid=0
8882     while :; do
8883     cat >conftest.$ac_ext <<_ACEOF
8884     /* confdefs.h. */
8885     _ACEOF
8886     cat confdefs.h >>conftest.$ac_ext
8887     cat >>conftest.$ac_ext <<_ACEOF
8888     /* end confdefs.h. */
8889     $ac_includes_default
8890     int
8891     main ()
8892     {
8893 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
8894 pcg 1.11 test_array [0] = 0
8895    
8896     ;
8897     return 0;
8898     }
8899     _ACEOF
8900     rm -f conftest.$ac_objext
8901 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8902     (eval $ac_compile) 2>conftest.er1
8903 pcg 1.11 ac_status=$?
8904     grep -v '^ *+' conftest.er1 >conftest.err
8905     rm -f conftest.er1
8906     cat conftest.err >&5
8907     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 ayin 1.106 (exit $ac_status); } &&
8909     { ac_try='test -z "$ac_cxx_werror_flag"
8910     || test ! -s conftest.err'
8911     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912     (eval $ac_try) 2>&5
8913     ac_status=$?
8914     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915     (exit $ac_status); }; } &&
8916     { ac_try='test -s conftest.$ac_objext'
8917     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918     (eval $ac_try) 2>&5
8919     ac_status=$?
8920     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921     (exit $ac_status); }; }; then
8922 pcg 1.11 ac_hi=$ac_mid; break
8923     else
8924     echo "$as_me: failed program was:" >&5
8925     sed 's/^/| /' conftest.$ac_ext >&5
8926    
8927 ayin 1.106 ac_lo=`expr $ac_mid + 1`
8928     if test $ac_lo -le $ac_mid; then
8929     ac_lo= ac_hi=
8930     break
8931     fi
8932     ac_mid=`expr 2 '*' $ac_mid + 1`
8933 pcg 1.11 fi
8934 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8935 pcg 1.11 done
8936     else
8937     echo "$as_me: failed program was:" >&5
8938     sed 's/^/| /' conftest.$ac_ext >&5
8939    
8940 ayin 1.106 cat >conftest.$ac_ext <<_ACEOF
8941 pcg 1.11 /* confdefs.h. */
8942     _ACEOF
8943     cat confdefs.h >>conftest.$ac_ext
8944     cat >>conftest.$ac_ext <<_ACEOF
8945     /* end confdefs.h. */
8946     $ac_includes_default
8947     int
8948     main ()
8949     {
8950 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
8951 pcg 1.11 test_array [0] = 0
8952    
8953     ;
8954     return 0;
8955     }
8956     _ACEOF
8957     rm -f conftest.$ac_objext
8958 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8959     (eval $ac_compile) 2>conftest.er1
8960 pcg 1.11 ac_status=$?
8961     grep -v '^ *+' conftest.er1 >conftest.err
8962     rm -f conftest.er1
8963     cat conftest.err >&5
8964     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 ayin 1.106 (exit $ac_status); } &&
8966     { ac_try='test -z "$ac_cxx_werror_flag"
8967     || test ! -s conftest.err'
8968     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8969     (eval $ac_try) 2>&5
8970     ac_status=$?
8971     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972     (exit $ac_status); }; } &&
8973     { ac_try='test -s conftest.$ac_objext'
8974     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975     (eval $ac_try) 2>&5
8976     ac_status=$?
8977     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978     (exit $ac_status); }; }; then
8979 pcg 1.11 ac_hi=-1 ac_mid=-1
8980     while :; do
8981     cat >conftest.$ac_ext <<_ACEOF
8982     /* confdefs.h. */
8983     _ACEOF
8984     cat confdefs.h >>conftest.$ac_ext
8985     cat >>conftest.$ac_ext <<_ACEOF
8986     /* end confdefs.h. */
8987     $ac_includes_default
8988     int
8989     main ()
8990     {
8991 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
8992 pcg 1.11 test_array [0] = 0
8993    
8994     ;
8995     return 0;
8996     }
8997     _ACEOF
8998     rm -f conftest.$ac_objext
8999 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9000     (eval $ac_compile) 2>conftest.er1
9001 pcg 1.11 ac_status=$?
9002     grep -v '^ *+' conftest.er1 >conftest.err
9003     rm -f conftest.er1
9004     cat conftest.err >&5
9005     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 ayin 1.106 (exit $ac_status); } &&
9007     { ac_try='test -z "$ac_cxx_werror_flag"
9008     || test ! -s conftest.err'
9009     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010     (eval $ac_try) 2>&5
9011     ac_status=$?
9012     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013     (exit $ac_status); }; } &&
9014     { ac_try='test -s conftest.$ac_objext'
9015     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016     (eval $ac_try) 2>&5
9017     ac_status=$?
9018     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019     (exit $ac_status); }; }; then
9020 pcg 1.11 ac_lo=$ac_mid; break
9021     else
9022     echo "$as_me: failed program was:" >&5
9023     sed 's/^/| /' conftest.$ac_ext >&5
9024    
9025 ayin 1.106 ac_hi=`expr '(' $ac_mid ')' - 1`
9026     if test $ac_mid -le $ac_hi; then
9027     ac_lo= ac_hi=
9028     break
9029     fi
9030     ac_mid=`expr 2 '*' $ac_mid`
9031 pcg 1.11 fi
9032 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9033 pcg 1.11 done
9034     else
9035     echo "$as_me: failed program was:" >&5
9036     sed 's/^/| /' conftest.$ac_ext >&5
9037    
9038 ayin 1.106 ac_lo= ac_hi=
9039 pcg 1.11 fi
9040 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9041 pcg 1.11 fi
9042 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9043 pcg 1.11 # Binary search between lo and hi bounds.
9044     while test "x$ac_lo" != "x$ac_hi"; do
9045     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9046     cat >conftest.$ac_ext <<_ACEOF
9047     /* confdefs.h. */
9048     _ACEOF
9049     cat confdefs.h >>conftest.$ac_ext
9050     cat >>conftest.$ac_ext <<_ACEOF
9051     /* end confdefs.h. */
9052     $ac_includes_default
9053     int
9054     main ()
9055     {
9056 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9057 pcg 1.11 test_array [0] = 0
9058    
9059     ;
9060     return 0;
9061     }
9062     _ACEOF
9063     rm -f conftest.$ac_objext
9064 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9065     (eval $ac_compile) 2>conftest.er1
9066 pcg 1.11 ac_status=$?
9067     grep -v '^ *+' conftest.er1 >conftest.err
9068     rm -f conftest.er1
9069     cat conftest.err >&5
9070     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 ayin 1.106 (exit $ac_status); } &&
9072     { ac_try='test -z "$ac_cxx_werror_flag"
9073     || test ! -s conftest.err'
9074     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075     (eval $ac_try) 2>&5
9076     ac_status=$?
9077     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078     (exit $ac_status); }; } &&
9079     { ac_try='test -s conftest.$ac_objext'
9080     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081     (eval $ac_try) 2>&5
9082     ac_status=$?
9083     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084     (exit $ac_status); }; }; then
9085 pcg 1.11 ac_hi=$ac_mid
9086     else
9087     echo "$as_me: failed program was:" >&5
9088     sed 's/^/| /' conftest.$ac_ext >&5
9089 pcg 1.1
9090 ayin 1.106 ac_lo=`expr '(' $ac_mid ')' + 1`
9091 pcg 1.1 fi
9092 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9093 pcg 1.11 done
9094     case $ac_lo in
9095     ?*) ac_cv_sizeof_int_p=$ac_lo;;
9096 ayin 1.106 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9097 pcg 1.11 See \`config.log' for more details." >&5
9098 ayin 1.106 echo "$as_me: error: cannot compute sizeof (int *), 77
9099 pcg 1.11 See \`config.log' for more details." >&2;}
9100 ayin 1.106 { (exit 1); exit 1; }; } ;;
9101 pcg 1.11 esac
9102 pcg 1.1 else
9103 ayin 1.106 if test "$cross_compiling" = yes; then
9104     { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9105     See \`config.log' for more details." >&5
9106     echo "$as_me: error: cannot run test program while cross compiling
9107     See \`config.log' for more details." >&2;}
9108     { (exit 1); exit 1; }; }
9109     else
9110 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
9111     /* confdefs.h. */
9112     _ACEOF
9113     cat confdefs.h >>conftest.$ac_ext
9114     cat >>conftest.$ac_ext <<_ACEOF
9115     /* end confdefs.h. */
9116     $ac_includes_default
9117 ayin 1.106 long longval () { return (long) (sizeof (int *)); }
9118     unsigned long ulongval () { return (long) (sizeof (int *)); }
9119 pcg 1.1 #include <stdio.h>
9120 pcg 1.11 #include <stdlib.h>
9121     int
9122     main ()
9123 pcg 1.1 {
9124 pcg 1.11
9125     FILE *f = fopen ("conftest.val", "w");
9126     if (! f)
9127 ayin 1.106 exit (1);
9128     if (((long) (sizeof (int *))) < 0)
9129 pcg 1.11 {
9130 ayin 1.106 long i = longval ();
9131     if (i != ((long) (sizeof (int *))))
9132     exit (1);
9133 pcg 1.11 fprintf (f, "%ld\n", i);
9134     }
9135     else
9136     {
9137 ayin 1.106 unsigned long i = ulongval ();
9138     if (i != ((long) (sizeof (int *))))
9139     exit (1);
9140 pcg 1.11 fprintf (f, "%lu\n", i);
9141     }
9142 ayin 1.106 exit (ferror (f) || fclose (f) != 0);
9143 pcg 1.11
9144     ;
9145     return 0;
9146 pcg 1.1 }
9147 pcg 1.11 _ACEOF
9148     rm -f conftest$ac_exeext
9149 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9150     (eval $ac_link) 2>&5
9151 pcg 1.11 ac_status=$?
9152     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9154 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155     (eval $ac_try) 2>&5
9156 pcg 1.11 ac_status=$?
9157     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158     (exit $ac_status); }; }; then
9159     ac_cv_sizeof_int_p=`cat conftest.val`
9160     else
9161     echo "$as_me: program exited with status $ac_status" >&5
9162     echo "$as_me: failed program was:" >&5
9163     sed 's/^/| /' conftest.$ac_ext >&5
9164    
9165     ( exit $ac_status )
9166 ayin 1.106 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9167 pcg 1.11 See \`config.log' for more details." >&5
9168 ayin 1.106 echo "$as_me: error: cannot compute sizeof (int *), 77
9169 pcg 1.11 See \`config.log' for more details." >&2;}
9170 ayin 1.106 { (exit 1); exit 1; }; }
9171     fi
9172     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9173 pcg 1.11 fi
9174     fi
9175     rm -f conftest.val
9176 ayin 1.106 else
9177     ac_cv_sizeof_int_p=0
9178 ayin 1.104 fi
9179 ayin 1.106 fi
9180     echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9181     echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
9182 pcg 1.11 cat >>confdefs.h <<_ACEOF
9183 pcg 1.1 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
9184 pcg 1.11 _ACEOF
9185 pcg 1.1
9186    
9187    
9188    
9189 ayin 1.106 echo "$as_me:$LINENO: checking for int16_t" >&5
9190     echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
9191 pcg 1.11 if test "${rxvt_cv_int16_t+set}" = set; then
9192     echo $ECHO_N "(cached) $ECHO_C" >&6
9193 pcg 1.1 else
9194 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
9195     /* confdefs.h. */
9196     _ACEOF
9197     cat confdefs.h >>conftest.$ac_ext
9198     cat >>conftest.$ac_ext <<_ACEOF
9199     /* end confdefs.h. */
9200 pcg 1.1 #include <stdint.h>
9201 pcg 1.11 int
9202     main ()
9203     {
9204 pcg 1.1 int16_t dummy;
9205 pcg 1.11 ;
9206     return 0;
9207     }
9208     _ACEOF
9209     rm -f conftest.$ac_objext
9210 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9211     (eval $ac_compile) 2>conftest.er1
9212 pcg 1.11 ac_status=$?
9213     grep -v '^ *+' conftest.er1 >conftest.err
9214     rm -f conftest.er1
9215     cat conftest.err >&5
9216     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 ayin 1.106 (exit $ac_status); } &&
9218     { ac_try='test -z "$ac_cxx_werror_flag"
9219     || test ! -s conftest.err'
9220     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221     (eval $ac_try) 2>&5
9222     ac_status=$?
9223     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224     (exit $ac_status); }; } &&
9225     { ac_try='test -s conftest.$ac_objext'
9226     { (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); }; }; then
9231 pcg 1.1 rxvt_cv_int16_t=yes
9232     else
9233 pcg 1.11 echo "$as_me: failed program was:" >&5
9234     sed 's/^/| /' conftest.$ac_ext >&5
9235    
9236 ayin 1.106 if test "$ac_cv_sizeof_char" -ge 2; then
9237 pcg 1.1 rxvt_cv_int16_t=" char"
9238     else
9239 root 1.50 if test "$ac_cv_sizeof_short" -ge 2; then
9240 pcg 1.1 rxvt_cv_int16_t=" short"
9241     else
9242 root 1.50 if test "$ac_cv_sizeof_int" -ge 2; then
9243 pcg 1.1 rxvt_cv_int16_t=" int"
9244     else
9245 root 1.50 if test "$ac_cv_sizeof_long" -ge 2; then
9246 pcg 1.1 rxvt_cv_int16_t=" long"
9247     else
9248 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 2; then
9249 pcg 1.1 rxvt_cv_int16_t=" long long"
9250     else
9251     rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9252     fi
9253     fi
9254     fi
9255     fi
9256     fi
9257     fi
9258 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9259 pcg 1.1 fi
9260 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9261     echo "${ECHO_T}$rxvt_cv_int16_t" >&6
9262 pcg 1.1 if test x"$rxvt_cv_int16_t" != xyes; then
9263     rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9264     else
9265     if test x"" = x; then
9266     rxvt_int16_typedef="/* typedef short int16_t; */"
9267     else
9268     rxvt_int16_typedef="/* typedef short int16_t; */"
9269     fi
9270 pcg 1.11 fi
9271 pcg 1.1
9272 ayin 1.106 echo "$as_me:$LINENO: checking for uint16_t" >&5
9273     echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
9274 pcg 1.11 if test "${rxvt_cv_uint16_t+set}" = set; then
9275     echo $ECHO_N "(cached) $ECHO_C" >&6
9276     else
9277     cat >conftest.$ac_ext <<_ACEOF
9278     /* confdefs.h. */
9279     _ACEOF
9280     cat confdefs.h >>conftest.$ac_ext
9281     cat >>conftest.$ac_ext <<_ACEOF
9282     /* end confdefs.h. */
9283 pcg 1.1 #include <stdint.h>
9284 pcg 1.11 int
9285     main ()
9286     {
9287 pcg 1.1 uint16_t dummy;
9288 pcg 1.11 ;
9289     return 0;
9290     }
9291     _ACEOF
9292     rm -f conftest.$ac_objext
9293 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9294     (eval $ac_compile) 2>conftest.er1
9295 pcg 1.11 ac_status=$?
9296     grep -v '^ *+' conftest.er1 >conftest.err
9297     rm -f conftest.er1
9298     cat conftest.err >&5
9299     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 ayin 1.106 (exit $ac_status); } &&
9301     { ac_try='test -z "$ac_cxx_werror_flag"
9302     || test ! -s conftest.err'
9303     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304     (eval $ac_try) 2>&5
9305     ac_status=$?
9306     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307     (exit $ac_status); }; } &&
9308     { ac_try='test -s conftest.$ac_objext'
9309     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310     (eval $ac_try) 2>&5
9311     ac_status=$?
9312     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313     (exit $ac_status); }; }; then
9314 pcg 1.1 rxvt_cv_uint16_t=yes
9315     else
9316 pcg 1.11 echo "$as_me: failed program was:" >&5
9317     sed 's/^/| /' conftest.$ac_ext >&5
9318    
9319 ayin 1.106 if test "$ac_cv_sizeof_char" -ge 2; then
9320 pcg 1.1 rxvt_cv_uint16_t="unsigned char"
9321     else
9322 root 1.50 if test "$ac_cv_sizeof_short" -ge 2; then
9323 pcg 1.1 rxvt_cv_uint16_t="unsigned short"
9324     else
9325 root 1.50 if test "$ac_cv_sizeof_int" -ge 2; then
9326 pcg 1.1 rxvt_cv_uint16_t="unsigned int"
9327     else
9328 root 1.50 if test "$ac_cv_sizeof_long" -ge 2; then
9329 pcg 1.1 rxvt_cv_uint16_t="unsigned long"
9330     else
9331 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 2; then
9332 pcg 1.1 rxvt_cv_uint16_t="unsigned long long"
9333     else
9334     rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9335     fi
9336     fi
9337     fi
9338     fi
9339     fi
9340     fi
9341 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9342 pcg 1.1 fi
9343 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9344     echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
9345 pcg 1.1 if test x"$rxvt_cv_uint16_t" != xyes; then
9346     rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9347     else
9348     if test x"unsigned" = x; then
9349     rxvt_uint16_typedef="/* typedef short uint16_t; */"
9350     else
9351     rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9352     fi
9353 pcg 1.11 fi
9354 pcg 1.1
9355 ayin 1.106 echo "$as_me:$LINENO: checking for int32_t" >&5
9356     echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
9357 pcg 1.11 if test "${rxvt_cv_int32_t+set}" = set; then
9358     echo $ECHO_N "(cached) $ECHO_C" >&6
9359     else
9360     cat >conftest.$ac_ext <<_ACEOF
9361     /* confdefs.h. */
9362     _ACEOF
9363     cat confdefs.h >>conftest.$ac_ext
9364     cat >>conftest.$ac_ext <<_ACEOF
9365     /* end confdefs.h. */
9366 pcg 1.1 #include <stdint.h>
9367 pcg 1.11 int
9368     main ()
9369     {
9370 pcg 1.1 int32_t dummy;
9371 pcg 1.11 ;
9372     return 0;
9373     }
9374     _ACEOF
9375     rm -f conftest.$ac_objext
9376 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9377     (eval $ac_compile) 2>conftest.er1
9378 pcg 1.11 ac_status=$?
9379     grep -v '^ *+' conftest.er1 >conftest.err
9380     rm -f conftest.er1
9381     cat conftest.err >&5
9382     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 ayin 1.106 (exit $ac_status); } &&
9384     { ac_try='test -z "$ac_cxx_werror_flag"
9385     || test ! -s conftest.err'
9386     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387     (eval $ac_try) 2>&5
9388     ac_status=$?
9389     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390     (exit $ac_status); }; } &&
9391     { ac_try='test -s conftest.$ac_objext'
9392     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393     (eval $ac_try) 2>&5
9394     ac_status=$?
9395     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396     (exit $ac_status); }; }; then
9397 pcg 1.1 rxvt_cv_int32_t=yes
9398     else
9399 pcg 1.11 echo "$as_me: failed program was:" >&5
9400     sed 's/^/| /' conftest.$ac_ext >&5
9401    
9402 ayin 1.106 if test "$ac_cv_sizeof_char" -ge 4; then
9403 pcg 1.1 rxvt_cv_int32_t=" char"
9404     else
9405 root 1.50 if test "$ac_cv_sizeof_short" -ge 4; then
9406 pcg 1.1 rxvt_cv_int32_t=" short"
9407     else
9408 root 1.50 if test "$ac_cv_sizeof_int" -ge 4; then
9409 pcg 1.1 rxvt_cv_int32_t=" int"
9410     else
9411 root 1.50 if test "$ac_cv_sizeof_long" -ge 4; then
9412 pcg 1.1 rxvt_cv_int32_t=" long"
9413     else
9414 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 4; then
9415 pcg 1.1 rxvt_cv_int32_t=" long long"
9416     else
9417     rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9418     fi
9419     fi
9420     fi
9421     fi
9422     fi
9423     fi
9424 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9425 pcg 1.1 fi
9426 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9427     echo "${ECHO_T}$rxvt_cv_int32_t" >&6
9428 pcg 1.1 if test x"$rxvt_cv_int32_t" != xyes; then
9429     rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9430     else
9431     if test x"" = x; then
9432     rxvt_int32_typedef="/* typedef int int32_t; */"
9433     else
9434     rxvt_int32_typedef="/* typedef int int32_t; */"
9435     fi
9436 pcg 1.11 fi
9437 pcg 1.1
9438 ayin 1.106 echo "$as_me:$LINENO: checking for uint32_t" >&5
9439     echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
9440 pcg 1.11 if test "${rxvt_cv_uint32_t+set}" = set; then
9441     echo $ECHO_N "(cached) $ECHO_C" >&6
9442     else
9443     cat >conftest.$ac_ext <<_ACEOF
9444     /* confdefs.h. */
9445     _ACEOF
9446     cat confdefs.h >>conftest.$ac_ext
9447     cat >>conftest.$ac_ext <<_ACEOF
9448     /* end confdefs.h. */
9449 pcg 1.1 #include <stdint.h>
9450 pcg 1.11 int
9451     main ()
9452     {
9453 pcg 1.1 uint32_t dummy;
9454 pcg 1.11 ;
9455     return 0;
9456     }
9457     _ACEOF
9458     rm -f conftest.$ac_objext
9459 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9460     (eval $ac_compile) 2>conftest.er1
9461 pcg 1.11 ac_status=$?
9462     grep -v '^ *+' conftest.er1 >conftest.err
9463     rm -f conftest.er1
9464     cat conftest.err >&5
9465     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 ayin 1.106 (exit $ac_status); } &&
9467     { ac_try='test -z "$ac_cxx_werror_flag"
9468     || test ! -s conftest.err'
9469     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470     (eval $ac_try) 2>&5
9471     ac_status=$?
9472     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473     (exit $ac_status); }; } &&
9474     { ac_try='test -s conftest.$ac_objext'
9475     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476     (eval $ac_try) 2>&5
9477     ac_status=$?
9478     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479     (exit $ac_status); }; }; then
9480 pcg 1.1 rxvt_cv_uint32_t=yes
9481     else
9482 pcg 1.11 echo "$as_me: failed program was:" >&5
9483     sed 's/^/| /' conftest.$ac_ext >&5
9484    
9485 ayin 1.106 if test "$ac_cv_sizeof_char" -ge 4; then
9486 pcg 1.1 rxvt_cv_uint32_t="unsigned char"
9487     else
9488 root 1.50 if test "$ac_cv_sizeof_short" -ge 4; then
9489 pcg 1.1 rxvt_cv_uint32_t="unsigned short"
9490     else
9491 root 1.50 if test "$ac_cv_sizeof_int" -ge 4; then
9492 pcg 1.1 rxvt_cv_uint32_t="unsigned int"
9493     else
9494 root 1.50 if test "$ac_cv_sizeof_long" -ge 4; then
9495 pcg 1.1 rxvt_cv_uint32_t="unsigned long"
9496     else
9497 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 4; then
9498 pcg 1.1 rxvt_cv_uint32_t="unsigned long long"
9499     else
9500     rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
9501     fi
9502     fi
9503     fi
9504     fi
9505     fi
9506     fi
9507 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9508 pcg 1.1 fi
9509 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
9510     echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
9511 pcg 1.1 if test x"$rxvt_cv_uint32_t" != xyes; then
9512     rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
9513     else
9514     if test x"unsigned" = x; then
9515     rxvt_uint32_typedef="/* typedef int uint32_t; */"
9516     else
9517     rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
9518     fi
9519 pcg 1.11 fi
9520 pcg 1.1
9521 root 1.50 if test "$ac_cv_sizeof_int_p" -eq 8; then
9522 pcg 1.1 rxvt_intp_define="#define intp_t int64_t"
9523     rxvt_u_intp_define="#define u_intp_t u_int64_t"
9524     else
9525 root 1.50 if test "$ac_cv_sizeof_int_p" -eq 4; then
9526 pcg 1.1 rxvt_intp_define="#define intp_t int32_t"
9527     rxvt_u_intp_define="#define u_intp_t u_int32_t"
9528     else
9529 root 1.50 if test "$ac_cv_sizeof_int_p" -eq 2; then
9530 pcg 1.1 rxvt_intp_define="#define intp_t int16_t"
9531     rxvt_u_intp_define="#define u_intp_t u_int16_t"
9532     else
9533     rxvt_intp_define="#error set intp_t"
9534     rxvt_u_intp_define="#error set u_intp_t"
9535     fi
9536     fi
9537     fi
9538    
9539    
9540    
9541 ayin 1.106 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9542     echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9543 pcg 1.11 if test "${ac_cv_type_signal+set}" = set; then
9544     echo $ECHO_N "(cached) $ECHO_C" >&6
9545     else
9546     cat >conftest.$ac_ext <<_ACEOF
9547     /* confdefs.h. */
9548     _ACEOF
9549     cat confdefs.h >>conftest.$ac_ext
9550     cat >>conftest.$ac_ext <<_ACEOF
9551     /* end confdefs.h. */
9552 pcg 1.1 #include <sys/types.h>
9553     #include <signal.h>
9554 ayin 1.106 #ifdef signal
9555     # undef signal
9556     #endif
9557     #ifdef __cplusplus
9558     extern "C" void (*signal (int, void (*)(int)))(int);
9559     #else
9560     void (*signal ()) ();
9561     #endif
9562 pcg 1.1
9563 pcg 1.11 int
9564     main ()
9565     {
9566 ayin 1.106 int i;
9567 pcg 1.11 ;
9568     return 0;
9569     }
9570     _ACEOF
9571     rm -f conftest.$ac_objext
9572 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9573     (eval $ac_compile) 2>conftest.er1
9574 pcg 1.11 ac_status=$?
9575     grep -v '^ *+' conftest.er1 >conftest.err
9576     rm -f conftest.er1
9577     cat conftest.err >&5
9578     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 ayin 1.106 (exit $ac_status); } &&
9580     { ac_try='test -z "$ac_cxx_werror_flag"
9581     || test ! -s conftest.err'
9582     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583     (eval $ac_try) 2>&5
9584     ac_status=$?
9585     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586     (exit $ac_status); }; } &&
9587     { ac_try='test -s conftest.$ac_objext'
9588     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589     (eval $ac_try) 2>&5
9590     ac_status=$?
9591     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592     (exit $ac_status); }; }; then
9593     ac_cv_type_signal=void
9594 pcg 1.1 else
9595 pcg 1.11 echo "$as_me: failed program was:" >&5
9596     sed 's/^/| /' conftest.$ac_ext >&5
9597    
9598 ayin 1.106 ac_cv_type_signal=int
9599 pcg 1.1 fi
9600 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9601 pcg 1.1 fi
9602 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9603     echo "${ECHO_T}$ac_cv_type_signal" >&6
9604 pcg 1.1
9605 pcg 1.11 cat >>confdefs.h <<_ACEOF
9606 pcg 1.1 #define RETSIGTYPE $ac_cv_type_signal
9607 pcg 1.11 _ACEOF
9608 pcg 1.1
9609    
9610    
9611 root 1.76
9612 pcg 1.11
9613    
9614 root 1.83 for ac_func in \
9615     unsetenv \
9616     setutent \
9617     on_exit \
9618    
9619     do
9620     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9621 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_func" >&5
9622     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9623     if eval "test \"\${$as_ac_var+set}\" = set"; then
9624 root 1.83 echo $ECHO_N "(cached) $ECHO_C" >&6
9625     else
9626     cat >conftest.$ac_ext <<_ACEOF
9627     /* confdefs.h. */
9628     _ACEOF
9629     cat confdefs.h >>conftest.$ac_ext
9630     cat >>conftest.$ac_ext <<_ACEOF
9631     /* end confdefs.h. */
9632     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9633     For example, HP-UX 11i <limits.h> declares gettimeofday. */
9634     #define $ac_func innocuous_$ac_func
9635    
9636     /* System header to define __stub macros and hopefully few prototypes,
9637     which can conflict with char $ac_func (); below.
9638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9639     <limits.h> exists even on freestanding compilers. */
9640    
9641     #ifdef __STDC__
9642     # include <limits.h>
9643     #else
9644     # include <assert.h>
9645     #endif
9646    
9647     #undef $ac_func
9648 pcg 1.11
9649 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
9650 root 1.83 #ifdef __cplusplus
9651     extern "C"
9652 ayin 1.106 {
9653 root 1.83 #endif
9654 ayin 1.106 /* We use char because int might match the return type of a gcc2
9655     builtin and then its argument prototype would still apply. */
9656 root 1.83 char $ac_func ();
9657     /* The GNU C library defines this for functions which it implements
9658     to always fail with ENOSYS. Some functions are actually named
9659     something starting with __ and the normal name is an alias. */
9660 ayin 1.106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9661 root 1.83 choke me
9662 ayin 1.106 #else
9663     char (*f) () = $ac_func;
9664     #endif
9665     #ifdef __cplusplus
9666     }
9667 root 1.83 #endif
9668 pcg 1.11
9669 root 1.83 int
9670     main ()
9671     {
9672 ayin 1.106 return f != $ac_func;
9673 root 1.83 ;
9674     return 0;
9675     }
9676     _ACEOF
9677     rm -f conftest.$ac_objext conftest$ac_exeext
9678 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9679     (eval $ac_link) 2>conftest.er1
9680 root 1.83 ac_status=$?
9681     grep -v '^ *+' conftest.er1 >conftest.err
9682     rm -f conftest.er1
9683     cat conftest.err >&5
9684     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 ayin 1.106 (exit $ac_status); } &&
9686     { ac_try='test -z "$ac_cxx_werror_flag"
9687     || test ! -s conftest.err'
9688     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689     (eval $ac_try) 2>&5
9690     ac_status=$?
9691     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692     (exit $ac_status); }; } &&
9693     { ac_try='test -s conftest$ac_exeext'
9694     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695     (eval $ac_try) 2>&5
9696     ac_status=$?
9697     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698     (exit $ac_status); }; }; then
9699 root 1.83 eval "$as_ac_var=yes"
9700     else
9701     echo "$as_me: failed program was:" >&5
9702     sed 's/^/| /' conftest.$ac_ext >&5
9703 pcg 1.11
9704 ayin 1.106 eval "$as_ac_var=no"
9705 root 1.83 fi
9706 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
9707 root 1.83 conftest$ac_exeext conftest.$ac_ext
9708     fi
9709 ayin 1.106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9710     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9711 root 1.83 if test `eval echo '${'$as_ac_var'}'` = yes; then
9712     cat >>confdefs.h <<_ACEOF
9713     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9714     _ACEOF
9715 pcg 1.11
9716 root 1.83 fi
9717     done
9718 pcg 1.11
9719    
9720    
9721 root 1.92 support_utmp=yes
9722     support_wtmp=yes
9723     support_lastlog=yes
9724    
9725 ayin 1.106 # Check whether --enable-utmp or --disable-utmp was given.
9726 root 1.92 if test "${enable_utmp+set}" = set; then
9727 ayin 1.106 enableval="$enable_utmp"
9728     if test x$enableval = xyes -o x$enableval = xno; then
9729 root 1.92 support_utmp=$enableval
9730     fi
9731 ayin 1.106 fi;
9732 ayin 1.102
9733 ayin 1.106 # Check whether --enable-wtmp or --disable-wtmp was given.
9734 root 1.92 if test "${enable_wtmp+set}" = set; then
9735 ayin 1.106 enableval="$enable_wtmp"
9736     if test x$enableval = xyes -o x$enableval = xno; then
9737 root 1.92 support_wtmp=$enableval
9738     fi
9739 ayin 1.106 fi;
9740 ayin 1.102
9741 ayin 1.106 # Check whether --enable-lastlog or --disable-lastlog was given.
9742 root 1.92 if test "${enable_lastlog+set}" = set; then
9743 ayin 1.106 enableval="$enable_lastlog"
9744     if test x$enableval = xyes -o x$enableval = xno; then
9745 root 1.92 support_lastlog=$enableval
9746     fi
9747 ayin 1.106 fi;
9748 root 1.92
9749     if test x$support_utmp = xyes; then
9750    
9751     cat >>confdefs.h <<\_ACEOF
9752     #define UTMP_SUPPORT 1
9753     _ACEOF
9754    
9755     fi
9756     if test x$support_wtmp = xyes; then
9757    
9758     cat >>confdefs.h <<\_ACEOF
9759     #define WTMP_SUPPORT 1
9760     _ACEOF
9761    
9762     fi
9763     if test x$support_lastlog = xyes; then
9764    
9765     cat >>confdefs.h <<\_ACEOF
9766     #define LASTLOG_SUPPORT 1
9767     _ACEOF
9768    
9769     fi
9770    
9771 pcg 1.11
9772 root 1.88
9773    
9774     for ac_func in \
9775     ttyslot \
9776     updwtmp \
9777     updwtmpx \
9778    
9779     do
9780     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9781 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_func" >&5
9782     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9783     if eval "test \"\${$as_ac_var+set}\" = set"; then
9784 root 1.88 echo $ECHO_N "(cached) $ECHO_C" >&6
9785     else
9786     cat >conftest.$ac_ext <<_ACEOF
9787     /* confdefs.h. */
9788     _ACEOF
9789     cat confdefs.h >>conftest.$ac_ext
9790     cat >>conftest.$ac_ext <<_ACEOF
9791     /* end confdefs.h. */
9792     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9793     For example, HP-UX 11i <limits.h> declares gettimeofday. */
9794     #define $ac_func innocuous_$ac_func
9795    
9796     /* System header to define __stub macros and hopefully few prototypes,
9797     which can conflict with char $ac_func (); below.
9798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9799     <limits.h> exists even on freestanding compilers. */
9800    
9801     #ifdef __STDC__
9802     # include <limits.h>
9803     #else
9804     # include <assert.h>
9805     #endif
9806    
9807     #undef $ac_func
9808    
9809 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
9810 root 1.88 #ifdef __cplusplus
9811     extern "C"
9812 ayin 1.106 {
9813 root 1.88 #endif
9814 ayin 1.106 /* We use char because int might match the return type of a gcc2
9815     builtin and then its argument prototype would still apply. */
9816 root 1.88 char $ac_func ();
9817     /* The GNU C library defines this for functions which it implements
9818     to always fail with ENOSYS. Some functions are actually named
9819     something starting with __ and the normal name is an alias. */
9820 ayin 1.106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9821 root 1.88 choke me
9822 ayin 1.106 #else
9823     char (*f) () = $ac_func;
9824     #endif
9825     #ifdef __cplusplus
9826     }
9827 root 1.88 #endif
9828    
9829     int
9830     main ()
9831     {
9832 ayin 1.106 return f != $ac_func;
9833 root 1.88 ;
9834     return 0;
9835     }
9836     _ACEOF
9837     rm -f conftest.$ac_objext conftest$ac_exeext
9838 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839     (eval $ac_link) 2>conftest.er1
9840 root 1.88 ac_status=$?
9841     grep -v '^ *+' conftest.er1 >conftest.err
9842     rm -f conftest.er1
9843     cat conftest.err >&5
9844     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 ayin 1.106 (exit $ac_status); } &&
9846     { ac_try='test -z "$ac_cxx_werror_flag"
9847     || test ! -s conftest.err'
9848     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849     (eval $ac_try) 2>&5
9850     ac_status=$?
9851     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852     (exit $ac_status); }; } &&
9853     { ac_try='test -s conftest$ac_exeext'
9854     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855     (eval $ac_try) 2>&5
9856     ac_status=$?
9857     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858     (exit $ac_status); }; }; then
9859 root 1.88 eval "$as_ac_var=yes"
9860     else
9861     echo "$as_me: failed program was:" >&5
9862     sed 's/^/| /' conftest.$ac_ext >&5
9863    
9864 ayin 1.106 eval "$as_ac_var=no"
9865 root 1.88 fi
9866 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
9867 root 1.88 conftest$ac_exeext conftest.$ac_ext
9868     fi
9869 ayin 1.106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9870     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9871 root 1.88 if test `eval echo '${'$as_ac_var'}'` = yes; then
9872     cat >>confdefs.h <<_ACEOF
9873     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9874     _ACEOF
9875    
9876     fi
9877     done
9878    
9879    
9880    
9881    
9882    
9883     for ac_header in \
9884     utmp.h \
9885     utmpx.h \
9886     lastlog.h \
9887    
9888     do
9889     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9890 ayin 1.106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9891     echo "$as_me:$LINENO: checking for $ac_header" >&5
9892     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9893     if eval "test \"\${$as_ac_Header+set}\" = set"; then
9894 root 1.88 echo $ECHO_N "(cached) $ECHO_C" >&6
9895     fi
9896 ayin 1.106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9897     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9898 root 1.88 else
9899     # Is the header compilable?
9900 ayin 1.106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9901     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9902 root 1.88 cat >conftest.$ac_ext <<_ACEOF
9903     /* confdefs.h. */
9904     _ACEOF
9905     cat confdefs.h >>conftest.$ac_ext
9906     cat >>conftest.$ac_ext <<_ACEOF
9907     /* end confdefs.h. */
9908     $ac_includes_default
9909     #include <$ac_header>
9910     _ACEOF
9911     rm -f conftest.$ac_objext
9912 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9913     (eval $ac_compile) 2>conftest.er1
9914 root 1.88 ac_status=$?
9915     grep -v '^ *+' conftest.er1 >conftest.err
9916     rm -f conftest.er1
9917     cat conftest.err >&5
9918     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 ayin 1.106 (exit $ac_status); } &&
9920     { ac_try='test -z "$ac_cxx_werror_flag"
9921     || test ! -s conftest.err'
9922     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923     (eval $ac_try) 2>&5
9924     ac_status=$?
9925     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926     (exit $ac_status); }; } &&
9927     { ac_try='test -s conftest.$ac_objext'
9928     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929     (eval $ac_try) 2>&5
9930     ac_status=$?
9931     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932     (exit $ac_status); }; }; then
9933 root 1.88 ac_header_compiler=yes
9934     else
9935     echo "$as_me: failed program was:" >&5
9936     sed 's/^/| /' conftest.$ac_ext >&5
9937    
9938 ayin 1.106 ac_header_compiler=no
9939 root 1.88 fi
9940 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9941     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9942     echo "${ECHO_T}$ac_header_compiler" >&6
9943 root 1.88
9944     # Is the header present?
9945 ayin 1.106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9946     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9947 root 1.88 cat >conftest.$ac_ext <<_ACEOF
9948     /* confdefs.h. */
9949     _ACEOF
9950     cat confdefs.h >>conftest.$ac_ext
9951     cat >>conftest.$ac_ext <<_ACEOF
9952     /* end confdefs.h. */
9953     #include <$ac_header>
9954     _ACEOF
9955 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9956     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9957 root 1.88 ac_status=$?
9958     grep -v '^ *+' conftest.er1 >conftest.err
9959     rm -f conftest.er1
9960     cat conftest.err >&5
9961     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 ayin 1.106 (exit $ac_status); } >/dev/null; then
9963     if test -s conftest.err; then
9964     ac_cpp_err=$ac_cxx_preproc_warn_flag
9965     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9966     else
9967     ac_cpp_err=
9968     fi
9969     else
9970     ac_cpp_err=yes
9971     fi
9972     if test -z "$ac_cpp_err"; then
9973 root 1.88 ac_header_preproc=yes
9974     else
9975     echo "$as_me: failed program was:" >&5
9976     sed 's/^/| /' conftest.$ac_ext >&5
9977    
9978     ac_header_preproc=no
9979     fi
9980     rm -f conftest.err conftest.$ac_ext
9981 ayin 1.106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9982     echo "${ECHO_T}$ac_header_preproc" >&6
9983 root 1.88
9984     # So? What about this header?
9985     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9986     yes:no: )
9987     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9988     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9990     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9991     ac_header_preproc=yes
9992     ;;
9993     no:yes:* )
9994     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9995     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9996     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9997     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9998     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9999     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10000     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10001     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10003     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10004     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10005     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10006 ayin 1.106 (
10007     cat <<\_ASBOX
10008     ## ------------------------------------------ ##
10009     ## Report this to the AC_PACKAGE_NAME lists. ##
10010     ## ------------------------------------------ ##
10011     _ASBOX
10012     ) |
10013     sed "s/^/$as_me: WARNING: /" >&2
10014 root 1.88 ;;
10015     esac
10016 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_header" >&5
10017     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10018     if eval "test \"\${$as_ac_Header+set}\" = set"; then
10019 root 1.88 echo $ECHO_N "(cached) $ECHO_C" >&6
10020     else
10021     eval "$as_ac_Header=\$ac_header_preproc"
10022     fi
10023 ayin 1.106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10024     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10025 root 1.88
10026     fi
10027     if test `eval echo '${'$as_ac_Header'}'` = yes; then
10028     cat >>confdefs.h <<_ACEOF
10029     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10030     _ACEOF
10031    
10032     fi
10033    
10034     done
10035    
10036    
10037    
10038     if test "${ac_cv_header_utmp_h+set}" = set; then
10039 ayin 1.106 echo "$as_me:$LINENO: checking for utmp.h" >&5
10040     echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10041 root 1.88 if test "${ac_cv_header_utmp_h+set}" = set; then
10042     echo $ECHO_N "(cached) $ECHO_C" >&6
10043     fi
10044 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10045     echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10046 root 1.88 else
10047     # Is the header compilable?
10048 ayin 1.106 echo "$as_me:$LINENO: checking utmp.h usability" >&5
10049     echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
10050 root 1.88 cat >conftest.$ac_ext <<_ACEOF
10051     /* confdefs.h. */
10052     _ACEOF
10053     cat confdefs.h >>conftest.$ac_ext
10054     cat >>conftest.$ac_ext <<_ACEOF
10055     /* end confdefs.h. */
10056     $ac_includes_default
10057     #include <utmp.h>
10058     _ACEOF
10059     rm -f conftest.$ac_objext
10060 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10061     (eval $ac_compile) 2>conftest.er1
10062 root 1.88 ac_status=$?
10063     grep -v '^ *+' conftest.er1 >conftest.err
10064     rm -f conftest.er1
10065     cat conftest.err >&5
10066     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 ayin 1.106 (exit $ac_status); } &&
10068     { ac_try='test -z "$ac_cxx_werror_flag"
10069     || test ! -s conftest.err'
10070     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071     (eval $ac_try) 2>&5
10072     ac_status=$?
10073     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074     (exit $ac_status); }; } &&
10075     { ac_try='test -s conftest.$ac_objext'
10076     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077     (eval $ac_try) 2>&5
10078     ac_status=$?
10079     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080     (exit $ac_status); }; }; then
10081 root 1.88 ac_header_compiler=yes
10082     else
10083     echo "$as_me: failed program was:" >&5
10084     sed 's/^/| /' conftest.$ac_ext >&5
10085    
10086 ayin 1.106 ac_header_compiler=no
10087 root 1.88 fi
10088 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10089     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10090     echo "${ECHO_T}$ac_header_compiler" >&6
10091 root 1.88
10092     # Is the header present?
10093 ayin 1.106 echo "$as_me:$LINENO: checking utmp.h presence" >&5
10094     echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
10095 root 1.88 cat >conftest.$ac_ext <<_ACEOF
10096     /* confdefs.h. */
10097     _ACEOF
10098     cat confdefs.h >>conftest.$ac_ext
10099     cat >>conftest.$ac_ext <<_ACEOF
10100     /* end confdefs.h. */
10101     #include <utmp.h>
10102     _ACEOF
10103 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10104     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10105 root 1.88 ac_status=$?
10106     grep -v '^ *+' conftest.er1 >conftest.err
10107     rm -f conftest.er1
10108     cat conftest.err >&5
10109     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 ayin 1.106 (exit $ac_status); } >/dev/null; then
10111     if test -s conftest.err; then
10112     ac_cpp_err=$ac_cxx_preproc_warn_flag
10113     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10114     else
10115     ac_cpp_err=
10116     fi
10117     else
10118     ac_cpp_err=yes
10119     fi
10120     if test -z "$ac_cpp_err"; then
10121 root 1.88 ac_header_preproc=yes
10122     else
10123     echo "$as_me: failed program was:" >&5
10124     sed 's/^/| /' conftest.$ac_ext >&5
10125    
10126     ac_header_preproc=no
10127     fi
10128     rm -f conftest.err conftest.$ac_ext
10129 ayin 1.106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10130     echo "${ECHO_T}$ac_header_preproc" >&6
10131 root 1.88
10132     # So? What about this header?
10133     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10134     yes:no: )
10135     { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
10136     echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10137     { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
10138     echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
10139     ac_header_preproc=yes
10140     ;;
10141     no:yes:* )
10142     { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
10143     echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
10144     { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
10145     echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
10146     { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
10147     echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
10148     { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
10149     echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
10150     { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
10151     echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
10152     { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
10153     echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
10154 ayin 1.106 (
10155     cat <<\_ASBOX
10156     ## ------------------------------------------ ##
10157     ## Report this to the AC_PACKAGE_NAME lists. ##
10158     ## ------------------------------------------ ##
10159     _ASBOX
10160     ) |
10161     sed "s/^/$as_me: WARNING: /" >&2
10162 root 1.88 ;;
10163     esac
10164 ayin 1.106 echo "$as_me:$LINENO: checking for utmp.h" >&5
10165     echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10166 root 1.88 if test "${ac_cv_header_utmp_h+set}" = set; then
10167     echo $ECHO_N "(cached) $ECHO_C" >&6
10168     else
10169     ac_cv_header_utmp_h=$ac_header_preproc
10170     fi
10171 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10172     echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10173 root 1.88
10174     fi
10175     if test $ac_cv_header_utmp_h = yes; then
10176 ayin 1.106 echo "$as_me:$LINENO: checking for struct utmp" >&5
10177     echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
10178 root 1.88 if test "${struct_utmp+set}" = set; then
10179     echo $ECHO_N "(cached) $ECHO_C" >&6
10180     else
10181     cat >conftest.$ac_ext <<_ACEOF
10182     /* confdefs.h. */
10183     _ACEOF
10184     cat confdefs.h >>conftest.$ac_ext
10185     cat >>conftest.$ac_ext <<_ACEOF
10186     /* end confdefs.h. */
10187     #include <sys/types.h>
10188     #include <utmp.h>
10189     int
10190     main ()
10191     {
10192     struct utmp ut;
10193     ;
10194     return 0;
10195     }
10196     _ACEOF
10197     rm -f conftest.$ac_objext
10198 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10199     (eval $ac_compile) 2>conftest.er1
10200 root 1.88 ac_status=$?
10201     grep -v '^ *+' conftest.er1 >conftest.err
10202     rm -f conftest.er1
10203     cat conftest.err >&5
10204     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 ayin 1.106 (exit $ac_status); } &&
10206     { ac_try='test -z "$ac_cxx_werror_flag"
10207     || test ! -s conftest.err'
10208     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209     (eval $ac_try) 2>&5
10210     ac_status=$?
10211     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212     (exit $ac_status); }; } &&
10213     { ac_try='test -s conftest.$ac_objext'
10214     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215     (eval $ac_try) 2>&5
10216     ac_status=$?
10217     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218     (exit $ac_status); }; }; then
10219 root 1.88 struct_utmp=yes
10220     else
10221     echo "$as_me: failed program was:" >&5
10222     sed 's/^/| /' conftest.$ac_ext >&5
10223    
10224 ayin 1.106 struct_utmp=no
10225 root 1.88 fi
10226 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10227 root 1.88 fi
10228 ayin 1.106 echo "$as_me:$LINENO: result: $struct_utmp" >&5
10229     echo "${ECHO_T}$struct_utmp" >&6
10230 root 1.88 if test x$struct_utmp = xyes; then
10231    
10232     cat >>confdefs.h <<\_ACEOF
10233     #define HAVE_STRUCT_UTMP 1
10234     _ACEOF
10235    
10236     fi
10237    
10238    
10239 ayin 1.106 echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
10240     echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
10241 root 1.88 if test "${struct_utmp_host+set}" = set; then
10242     echo $ECHO_N "(cached) $ECHO_C" >&6
10243     else
10244     cat >conftest.$ac_ext <<_ACEOF
10245     /* confdefs.h. */
10246     _ACEOF
10247     cat confdefs.h >>conftest.$ac_ext
10248     cat >>conftest.$ac_ext <<_ACEOF
10249     /* end confdefs.h. */
10250     #include <sys/types.h>
10251     #include <utmp.h>
10252     int
10253     main ()
10254     {
10255     struct utmp ut; ut.ut_host;
10256     ;
10257     return 0;
10258     }
10259     _ACEOF
10260     rm -f conftest.$ac_objext
10261 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10262     (eval $ac_compile) 2>conftest.er1
10263 root 1.88 ac_status=$?
10264     grep -v '^ *+' conftest.er1 >conftest.err
10265     rm -f conftest.er1
10266     cat conftest.err >&5
10267     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 ayin 1.106 (exit $ac_status); } &&
10269     { ac_try='test -z "$ac_cxx_werror_flag"
10270     || test ! -s conftest.err'
10271     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272     (eval $ac_try) 2>&5
10273     ac_status=$?
10274     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275     (exit $ac_status); }; } &&
10276     { ac_try='test -s conftest.$ac_objext'
10277     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278     (eval $ac_try) 2>&5
10279     ac_status=$?
10280     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281     (exit $ac_status); }; }; then
10282 root 1.88 struct_utmp_host=yes
10283     else
10284     echo "$as_me: failed program was:" >&5
10285     sed 's/^/| /' conftest.$ac_ext >&5
10286    
10287 ayin 1.106 struct_utmp_host=no
10288 root 1.88 fi
10289 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10290 root 1.88 fi
10291 ayin 1.106 echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
10292     echo "${ECHO_T}$struct_utmp_host" >&6
10293 root 1.88 if test x$struct_utmp_host = xyes; then
10294    
10295     cat >>confdefs.h <<\_ACEOF
10296     #define HAVE_UTMP_HOST 1
10297     _ACEOF
10298    
10299     fi
10300    
10301 ayin 1.106 echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
10302     echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
10303 root 1.88 if test "${struct_utmp_pid+set}" = set; then
10304     echo $ECHO_N "(cached) $ECHO_C" >&6
10305     else
10306     cat >conftest.$ac_ext <<_ACEOF
10307     /* confdefs.h. */
10308     _ACEOF
10309     cat confdefs.h >>conftest.$ac_ext
10310     cat >>conftest.$ac_ext <<_ACEOF
10311     /* end confdefs.h. */
10312     #include <sys/types.h>
10313     #include <utmp.h>
10314     int
10315     main ()
10316     {
10317     struct utmp ut; ut.ut_pid;
10318     ;
10319     return 0;
10320     }
10321     _ACEOF
10322     rm -f conftest.$ac_objext
10323 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10324     (eval $ac_compile) 2>conftest.er1
10325 root 1.88 ac_status=$?
10326     grep -v '^ *+' conftest.er1 >conftest.err
10327     rm -f conftest.er1
10328     cat conftest.err >&5
10329     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 ayin 1.106 (exit $ac_status); } &&
10331     { ac_try='test -z "$ac_cxx_werror_flag"
10332     || test ! -s conftest.err'
10333     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334     (eval $ac_try) 2>&5
10335     ac_status=$?
10336     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337     (exit $ac_status); }; } &&
10338     { ac_try='test -s conftest.$ac_objext'
10339     { (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); }; }; then
10344 root 1.88 struct_utmp_pid=yes
10345     else
10346     echo "$as_me: failed program was:" >&5
10347     sed 's/^/| /' conftest.$ac_ext >&5
10348    
10349 ayin 1.106 struct_utmp_pid=no
10350 root 1.88 fi
10351 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10352 root 1.88 fi
10353 ayin 1.106 echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
10354     echo "${ECHO_T}$struct_utmp_pid" >&6
10355 root 1.88 if test x$struct_utmp_pid = xyes; then
10356    
10357     cat >>confdefs.h <<\_ACEOF
10358     #define HAVE_UTMP_PID 1
10359     _ACEOF
10360    
10361     fi
10362    
10363     fi
10364    
10365    
10366    
10367     if test "${ac_cv_header_utmpx_h+set}" = set; then
10368 ayin 1.106 echo "$as_me:$LINENO: checking for utmpx.h" >&5
10369     echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10370 root 1.88 if test "${ac_cv_header_utmpx_h+set}" = set; then
10371     echo $ECHO_N "(cached) $ECHO_C" >&6
10372     fi
10373 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10374     echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10375 root 1.88 else
10376     # Is the header compilable?
10377 ayin 1.106 echo "$as_me:$LINENO: checking utmpx.h usability" >&5
10378     echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
10379 root 1.88 cat >conftest.$ac_ext <<_ACEOF
10380     /* confdefs.h. */
10381     _ACEOF
10382     cat confdefs.h >>conftest.$ac_ext
10383     cat >>conftest.$ac_ext <<_ACEOF
10384     /* end confdefs.h. */
10385     $ac_includes_default
10386     #include <utmpx.h>
10387     _ACEOF
10388     rm -f conftest.$ac_objext
10389 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10390     (eval $ac_compile) 2>conftest.er1
10391 root 1.88 ac_status=$?
10392     grep -v '^ *+' conftest.er1 >conftest.err
10393     rm -f conftest.er1
10394     cat conftest.err >&5
10395     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 ayin 1.106 (exit $ac_status); } &&
10397     { ac_try='test -z "$ac_cxx_werror_flag"
10398     || test ! -s conftest.err'
10399     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10400     (eval $ac_try) 2>&5
10401     ac_status=$?
10402     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403     (exit $ac_status); }; } &&
10404     { ac_try='test -s conftest.$ac_objext'
10405     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406     (eval $ac_try) 2>&5
10407     ac_status=$?
10408     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409     (exit $ac_status); }; }; then
10410 root 1.88 ac_header_compiler=yes
10411     else
10412     echo "$as_me: failed program was:" >&5
10413     sed 's/^/| /' conftest.$ac_ext >&5
10414    
10415 ayin 1.106 ac_header_compiler=no
10416 root 1.88 fi
10417 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10418     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10419     echo "${ECHO_T}$ac_header_compiler" >&6
10420 root 1.88
10421     # Is the header present?
10422 ayin 1.106 echo "$as_me:$LINENO: checking utmpx.h presence" >&5
10423     echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
10424 root 1.88 cat >conftest.$ac_ext <<_ACEOF
10425     /* confdefs.h. */
10426     _ACEOF
10427     cat confdefs.h >>conftest.$ac_ext
10428     cat >>conftest.$ac_ext <<_ACEOF
10429     /* end confdefs.h. */
10430     #include <utmpx.h>
10431     _ACEOF
10432 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10433     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10434 root 1.88 ac_status=$?
10435     grep -v '^ *+' conftest.er1 >conftest.err
10436     rm -f conftest.er1
10437     cat conftest.err >&5
10438     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 ayin 1.106 (exit $ac_status); } >/dev/null; then
10440     if test -s conftest.err; then
10441     ac_cpp_err=$ac_cxx_preproc_warn_flag
10442     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10443     else
10444     ac_cpp_err=
10445     fi
10446     else
10447     ac_cpp_err=yes
10448     fi
10449     if test -z "$ac_cpp_err"; then
10450 root 1.88 ac_header_preproc=yes
10451     else
10452     echo "$as_me: failed program was:" >&5
10453     sed 's/^/| /' conftest.$ac_ext >&5
10454    
10455     ac_header_preproc=no
10456     fi
10457     rm -f conftest.err conftest.$ac_ext
10458 ayin 1.106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10459     echo "${ECHO_T}$ac_header_preproc" >&6
10460 root 1.88
10461     # So? What about this header?
10462     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10463     yes:no: )
10464     { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
10465     echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10466     { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
10467     echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
10468     ac_header_preproc=yes
10469     ;;
10470     no:yes:* )
10471     { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
10472     echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
10473     { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
10474     echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
10475     { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
10476     echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
10477     { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
10478     echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
10479     { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
10480     echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
10481     { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
10482     echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
10483 ayin 1.106 (
10484     cat <<\_ASBOX
10485     ## ------------------------------------------ ##
10486     ## Report this to the AC_PACKAGE_NAME lists. ##
10487     ## ------------------------------------------ ##
10488     _ASBOX
10489     ) |
10490     sed "s/^/$as_me: WARNING: /" >&2
10491 root 1.88 ;;
10492     esac
10493 ayin 1.106 echo "$as_me:$LINENO: checking for utmpx.h" >&5
10494     echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10495 root 1.88 if test "${ac_cv_header_utmpx_h+set}" = set; then
10496     echo $ECHO_N "(cached) $ECHO_C" >&6
10497     else
10498     ac_cv_header_utmpx_h=$ac_header_preproc
10499     fi
10500 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10501     echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10502 root 1.88
10503     fi
10504     if test $ac_cv_header_utmpx_h = yes; then
10505 ayin 1.106 echo "$as_me:$LINENO: checking for struct utmpx" >&5
10506     echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
10507 root 1.88 if test "${struct_utmpx+set}" = set; then
10508     echo $ECHO_N "(cached) $ECHO_C" >&6
10509     else
10510     cat >conftest.$ac_ext <<_ACEOF
10511     /* confdefs.h. */
10512     _ACEOF
10513     cat confdefs.h >>conftest.$ac_ext
10514     cat >>conftest.$ac_ext <<_ACEOF
10515     /* end confdefs.h. */
10516     #include <sys/types.h>
10517     #include <utmpx.h>
10518     int
10519     main ()
10520     {
10521     struct utmpx ut;
10522     ;
10523     return 0;
10524     }
10525     _ACEOF
10526     rm -f conftest.$ac_objext
10527 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10528     (eval $ac_compile) 2>conftest.er1
10529 root 1.88 ac_status=$?
10530     grep -v '^ *+' conftest.er1 >conftest.err
10531     rm -f conftest.er1
10532     cat conftest.err >&5
10533     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 ayin 1.106 (exit $ac_status); } &&
10535     { ac_try='test -z "$ac_cxx_werror_flag"
10536     || test ! -s conftest.err'
10537     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538     (eval $ac_try) 2>&5
10539     ac_status=$?
10540     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541     (exit $ac_status); }; } &&
10542     { ac_try='test -s conftest.$ac_objext'
10543     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544     (eval $ac_try) 2>&5
10545     ac_status=$?
10546     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547     (exit $ac_status); }; }; then
10548 root 1.105 struct_utmpx=yes
10549 root 1.88 else
10550     echo "$as_me: failed program was:" >&5
10551     sed 's/^/| /' conftest.$ac_ext >&5
10552    
10553 ayin 1.106 struct_utmpx=no
10554 root 1.88 fi
10555 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10556 root 1.88 fi
10557 ayin 1.106 echo "$as_me:$LINENO: result: $struct_utmpx" >&5
10558     echo "${ECHO_T}$struct_utmpx" >&6
10559 root 1.88 if test x$struct_utmpx = xyes; then
10560    
10561     cat >>confdefs.h <<\_ACEOF
10562     #define HAVE_STRUCT_UTMPX 1
10563     _ACEOF
10564    
10565     fi
10566    
10567    
10568 ayin 1.106 echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
10569     echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
10570 root 1.88 if test "${struct_utmpx_host+set}" = set; then
10571     echo $ECHO_N "(cached) $ECHO_C" >&6
10572     else
10573     cat >conftest.$ac_ext <<_ACEOF
10574     /* confdefs.h. */
10575     _ACEOF
10576     cat confdefs.h >>conftest.$ac_ext
10577     cat >>conftest.$ac_ext <<_ACEOF
10578     /* end confdefs.h. */
10579     #include <sys/types.h>
10580     #include <utmpx.h>
10581     int
10582     main ()
10583     {
10584     struct utmpx utx; utx.ut_host;
10585     ;
10586     return 0;
10587     }
10588     _ACEOF
10589     rm -f conftest.$ac_objext
10590 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10591     (eval $ac_compile) 2>conftest.er1
10592 root 1.88 ac_status=$?
10593     grep -v '^ *+' conftest.er1 >conftest.err
10594     rm -f conftest.er1
10595     cat conftest.err >&5
10596     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 ayin 1.106 (exit $ac_status); } &&
10598     { ac_try='test -z "$ac_cxx_werror_flag"
10599     || test ! -s conftest.err'
10600     { (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 root 1.88 struct_utmpx_host=yes
10612     else
10613     echo "$as_me: failed program was:" >&5
10614     sed 's/^/| /' conftest.$ac_ext >&5
10615    
10616 ayin 1.106 struct_utmpx_host=no
10617 root 1.88 fi
10618 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10619 root 1.88 fi
10620 ayin 1.106 echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
10621     echo "${ECHO_T}$struct_utmpx_host" >&6
10622 root 1.88 if test x$struct_utmpx_host = xyes; then
10623    
10624     cat >>confdefs.h <<\_ACEOF
10625     #define HAVE_UTMPX_HOST 1
10626     _ACEOF
10627    
10628     fi
10629    
10630 ayin 1.106 echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10631     echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10632 root 1.88 if test "${struct_utmpx_session+set}" = set; then
10633     echo $ECHO_N "(cached) $ECHO_C" >&6
10634     else
10635     cat >conftest.$ac_ext <<_ACEOF
10636     /* confdefs.h. */
10637     _ACEOF
10638     cat confdefs.h >>conftest.$ac_ext
10639     cat >>conftest.$ac_ext <<_ACEOF
10640     /* end confdefs.h. */
10641     #include <sys/types.h>
10642     #include <utmpx.h>
10643     int
10644     main ()
10645     {
10646     struct utmpx utx; utx.ut_session;
10647     ;
10648     return 0;
10649     }
10650     _ACEOF
10651     rm -f conftest.$ac_objext
10652 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10653     (eval $ac_compile) 2>conftest.er1
10654 root 1.88 ac_status=$?
10655     grep -v '^ *+' conftest.er1 >conftest.err
10656     rm -f conftest.er1
10657     cat conftest.err >&5
10658     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 ayin 1.106 (exit $ac_status); } &&
10660     { ac_try='test -z "$ac_cxx_werror_flag"
10661     || test ! -s conftest.err'
10662     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663     (eval $ac_try) 2>&5
10664     ac_status=$?
10665     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666     (exit $ac_status); }; } &&
10667     { ac_try='test -s conftest.$ac_objext'
10668     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669     (eval $ac_try) 2>&5
10670     ac_status=$?
10671     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672     (exit $ac_status); }; }; then
10673 ayin 1.102 struct_utmpx_session=yes
10674 root 1.88 else
10675     echo "$as_me: failed program was:" >&5
10676     sed 's/^/| /' conftest.$ac_ext >&5
10677    
10678 ayin 1.106 struct_utmpx_session=no
10679 root 1.88 fi
10680 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10681 root 1.88 fi
10682 ayin 1.106 echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
10683     echo "${ECHO_T}$struct_utmpx_session" >&6
10684 root 1.88 if test x$struct_utmpx_session = xyes; then
10685    
10686     cat >>confdefs.h <<\_ACEOF
10687     #define HAVE_UTMPX_SESSION 1
10688     _ACEOF
10689    
10690     fi
10691    
10692     fi
10693    
10694    
10695 ayin 1.106 echo "$as_me:$LINENO: checking for struct lastlog" >&5
10696     echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
10697 root 1.88 if test "${struct_lastlog+set}" = set; then
10698     echo $ECHO_N "(cached) $ECHO_C" >&6
10699     else
10700     cat >conftest.$ac_ext <<_ACEOF
10701     /* confdefs.h. */
10702     _ACEOF
10703     cat confdefs.h >>conftest.$ac_ext
10704     cat >>conftest.$ac_ext <<_ACEOF
10705     /* end confdefs.h. */
10706     #include <sys/types.h>
10707     #include <utmp.h>
10708     #ifdef HAVE_LASTLOG_H
10709     #include <lastlog.h>
10710     #endif
10711    
10712     int
10713     main ()
10714     {
10715     struct lastlog ll;
10716     ;
10717     return 0;
10718     }
10719     _ACEOF
10720     rm -f conftest.$ac_objext
10721 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10722     (eval $ac_compile) 2>conftest.er1
10723 root 1.88 ac_status=$?
10724     grep -v '^ *+' conftest.er1 >conftest.err
10725     rm -f conftest.er1
10726     cat conftest.err >&5
10727     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 ayin 1.106 (exit $ac_status); } &&
10729     { ac_try='test -z "$ac_cxx_werror_flag"
10730     || test ! -s conftest.err'
10731     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732     (eval $ac_try) 2>&5
10733     ac_status=$?
10734     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735     (exit $ac_status); }; } &&
10736     { ac_try='test -s conftest.$ac_objext'
10737     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738     (eval $ac_try) 2>&5
10739     ac_status=$?
10740     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741     (exit $ac_status); }; }; then
10742 root 1.88 struct_lastlog=yes
10743     else
10744     echo "$as_me: failed program was:" >&5
10745     sed 's/^/| /' conftest.$ac_ext >&5
10746    
10747 ayin 1.106 struct_lastlog=no
10748 root 1.88 fi
10749 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10750 root 1.88 fi
10751 ayin 1.106 echo "$as_me:$LINENO: result: $struct_lastlog" >&5
10752     echo "${ECHO_T}$struct_lastlog" >&6
10753 root 1.88 if test x$struct_lastlog = xyes; then
10754    
10755     cat >>confdefs.h <<\_ACEOF
10756     #define HAVE_STRUCT_LASTLOG 1
10757     _ACEOF
10758    
10759     fi
10760    
10761 ayin 1.106 echo "$as_me:$LINENO: checking for struct lastlogx" >&5
10762     echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
10763 root 1.88 if test "${struct_lastlogx+set}" = set; then
10764     echo $ECHO_N "(cached) $ECHO_C" >&6
10765     else
10766     cat >conftest.$ac_ext <<_ACEOF
10767     /* confdefs.h. */
10768     _ACEOF
10769     cat confdefs.h >>conftest.$ac_ext
10770     cat >>conftest.$ac_ext <<_ACEOF
10771     /* end confdefs.h. */
10772     #include <sys/types.h>
10773     #include <utmpx.h>
10774     #ifdef HAVE_LASTLOG_H
10775     #include <lastlog.h>
10776     #endif
10777    
10778     int
10779     main ()
10780     {
10781     struct lastlogx ll;
10782     ;
10783     return 0;
10784     }
10785     _ACEOF
10786     rm -f conftest.$ac_objext
10787 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10788     (eval $ac_compile) 2>conftest.er1
10789 root 1.88 ac_status=$?
10790     grep -v '^ *+' conftest.er1 >conftest.err
10791     rm -f conftest.er1
10792     cat conftest.err >&5
10793     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 ayin 1.106 (exit $ac_status); } &&
10795     { ac_try='test -z "$ac_cxx_werror_flag"
10796     || test ! -s conftest.err'
10797     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10798     (eval $ac_try) 2>&5
10799     ac_status=$?
10800     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801     (exit $ac_status); }; } &&
10802     { ac_try='test -s conftest.$ac_objext'
10803     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804     (eval $ac_try) 2>&5
10805     ac_status=$?
10806     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807     (exit $ac_status); }; }; then
10808 root 1.88 struct_lastlogx=yes
10809     else
10810     echo "$as_me: failed program was:" >&5
10811     sed 's/^/| /' conftest.$ac_ext >&5
10812    
10813 ayin 1.106 struct_lastlogx=no
10814 root 1.88 fi
10815 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10816 root 1.88 fi
10817 ayin 1.106 echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
10818     echo "${ECHO_T}$struct_lastlogx" >&6
10819 root 1.88 if test x$struct_lastlogx = xyes; then
10820    
10821     cat >>confdefs.h <<\_ACEOF
10822     #define HAVE_STRUCT_LASTLOGX 1
10823     _ACEOF
10824    
10825     fi
10826    
10827    
10828 ayin 1.106 echo "$as_me:$LINENO: checking where utmp is located" >&5
10829     echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
10830 root 1.88 if test "${path_utmp+set}" = set; then
10831     echo $ECHO_N "(cached) $ECHO_C" >&6
10832     else
10833     if test "$cross_compiling" = yes; then
10834     { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
10835     echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
10836     else
10837     cat >conftest.$ac_ext <<_ACEOF
10838     /* confdefs.h. */
10839     _ACEOF
10840     cat confdefs.h >>conftest.$ac_ext
10841     cat >>conftest.$ac_ext <<_ACEOF
10842     /* end confdefs.h. */
10843     #include <stdio.h>
10844 ayin 1.102 #include <stdlib.h>
10845 root 1.88 #include <sys/types.h>
10846     #include <utmp.h>
10847     #include <errno.h>
10848     main()
10849     {
10850     char **u, *utmplist[] = {
10851     "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
10852     FILE *a, *f=fopen("conftestval", "w");
10853     if (!f) exit(1);
10854     #ifdef UTMP_FILE
10855     fprintf(f, "%s\n", UTMP_FILE);
10856     exit(0);
10857     #endif
10858     #ifdef _PATH_UTMP
10859     fprintf(f, "%s\n", _PATH_UTMP);
10860     exit(0);
10861     #endif
10862     for (u = utmplist; *u; u++) {
10863     if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
10864     fprintf(f, "%s\n", *u);
10865     exit(0);
10866     }
10867     }
10868     exit(0);
10869     }
10870     _ACEOF
10871     rm -f conftest$ac_exeext
10872 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10873     (eval $ac_link) 2>&5
10874 root 1.88 ac_status=$?
10875     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10877 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10878     (eval $ac_try) 2>&5
10879 root 1.88 ac_status=$?
10880     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881     (exit $ac_status); }; }; then
10882     path_utmp=`cat conftestval`
10883     else
10884     echo "$as_me: program exited with status $ac_status" >&5
10885     echo "$as_me: failed program was:" >&5
10886     sed 's/^/| /' conftest.$ac_ext >&5
10887    
10888     ( exit $ac_status )
10889     path_utmp=
10890     fi
10891 ayin 1.106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10892 root 1.88 fi
10893     fi
10894 ayin 1.106 echo "$as_me:$LINENO: result: $path_utmp" >&5
10895     echo "${ECHO_T}$path_utmp" >&6
10896 root 1.88 if test x$path_utmp != x; then
10897    
10898     cat >>confdefs.h <<_ACEOF
10899     #define UTMP_FILE "$path_utmp"
10900     _ACEOF
10901    
10902     fi
10903    
10904    
10905 ayin 1.106 echo "$as_me:$LINENO: checking where utmpx is located" >&5
10906     echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
10907 root 1.88 if test "${path_utmpx+set}" = set; then
10908     echo $ECHO_N "(cached) $ECHO_C" >&6
10909     else
10910     if test "$cross_compiling" = yes; then
10911     { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5
10912     echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
10913     else
10914     cat >conftest.$ac_ext <<_ACEOF
10915     /* confdefs.h. */
10916     _ACEOF
10917     cat confdefs.h >>conftest.$ac_ext
10918     cat >>conftest.$ac_ext <<_ACEOF
10919     /* end confdefs.h. */
10920     #include <stdio.h>
10921 ayin 1.102 #include <stdlib.h>
10922 root 1.88 #include <sys/types.h>
10923     #include <utmpx.h>
10924     #include <errno.h>
10925     #include <sys/stat.h>
10926     #ifdef HAVE_STRING_H
10927     #include <string.h>
10928     #endif
10929     main()
10930     {
10931     char **u, *p, *utmplist[] = {
10932     #ifdef UTMPX_FILE
10933     UTMPX_FILE,
10934     #endif
10935     #ifdef _PATH_UTMPX
10936     _PATH_UTMPX,
10937     #endif
10938     "/var/adm/utmpx", "/etc/utmpx", NULL };
10939     FILE *a, *f=fopen("conftestval", "w");
10940     struct stat statu, statux;
10941     if (!f) exit(1);
10942     for (u = utmplist; *u; u++) {
10943     if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
10944     if (stat(*u, &statux) < 0)
10945     continue;
10946     p = strdup(*u);
10947     p[strlen(p) - 1] = '\0';
10948     if (stat(p, &statu) >= 0
10949     && (statu.st_mtime - statux.st_mtime > 86400))
10950     continue;
10951     fprintf(f, "%s\n", *u);
10952     exit(0);
10953     }
10954     }
10955     exit(0);
10956     }
10957     _ACEOF
10958     rm -f conftest$ac_exeext
10959 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10960     (eval $ac_link) 2>&5
10961 root 1.88 ac_status=$?
10962     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10964 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10965     (eval $ac_try) 2>&5
10966 root 1.88 ac_status=$?
10967     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968     (exit $ac_status); }; }; then
10969     path_utmpx=`cat conftestval`
10970     else
10971     echo "$as_me: program exited with status $ac_status" >&5
10972     echo "$as_me: failed program was:" >&5
10973     sed 's/^/| /' conftest.$ac_ext >&5
10974    
10975     ( exit $ac_status )
10976     path_utmpx=
10977     fi
10978 ayin 1.106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10979 root 1.88 fi
10980     fi
10981 ayin 1.106 echo "$as_me:$LINENO: result: $path_utmpx" >&5
10982     echo "${ECHO_T}$path_utmpx" >&6
10983 root 1.88 if test x$path_utmpx != x; then
10984    
10985     cat >>confdefs.h <<_ACEOF
10986     #define UTMPX_FILE "$path_utmpx"
10987     _ACEOF
10988    
10989     fi
10990    
10991    
10992 ayin 1.106 echo "$as_me:$LINENO: checking where wtmp is located" >&5
10993     echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
10994 root 1.88 if test "${path_wtmp+set}" = set; then
10995     echo $ECHO_N "(cached) $ECHO_C" >&6
10996     else
10997     if test "$cross_compiling" = yes; then
10998     { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5
10999     echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
11000     else
11001     cat >conftest.$ac_ext <<_ACEOF
11002     /* confdefs.h. */
11003     _ACEOF
11004     cat confdefs.h >>conftest.$ac_ext
11005     cat >>conftest.$ac_ext <<_ACEOF
11006     /* end confdefs.h. */
11007     #include <stdio.h>
11008 ayin 1.102 #include <stdlib.h>
11009 root 1.88 #include <sys/types.h>
11010     #ifdef HAVE_UTMP_H
11011     #include <utmp.h>
11012     #endif
11013     #include <errno.h>
11014     main()
11015     {
11016     char **w, *wtmplist[] = {
11017     "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
11018     FILE *a, *f=fopen("conftestval", "w");
11019     if (!f) exit(1);
11020     #ifdef WTMP_FILE
11021     fprintf(f, "%s\n", WTMP_FILE);
11022     exit(0);
11023     #endif
11024     #ifdef _PATH_WTMP
11025     fprintf(f, "%s\n", _PATH_WTMP);
11026     exit(0);
11027     #endif
11028     for (w = wtmplist; *w; w++) {
11029     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11030     fprintf(f, "%s\n", *w);
11031     exit(0);
11032     }
11033     }
11034     exit(0);
11035     }
11036     _ACEOF
11037     rm -f conftest$ac_exeext
11038 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11039     (eval $ac_link) 2>&5
11040 root 1.88 ac_status=$?
11041     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11043 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044     (eval $ac_try) 2>&5
11045 root 1.88 ac_status=$?
11046     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047     (exit $ac_status); }; }; then
11048     path_wtmp=`cat conftestval`
11049     else
11050     echo "$as_me: program exited with status $ac_status" >&5
11051     echo "$as_me: failed program was:" >&5
11052     sed 's/^/| /' conftest.$ac_ext >&5
11053    
11054     ( exit $ac_status )
11055     path_wtmp=
11056     fi
11057 ayin 1.106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11058 root 1.88 fi
11059     fi
11060 ayin 1.106 echo "$as_me:$LINENO: result: $path_wtmp" >&5
11061     echo "${ECHO_T}$path_wtmp" >&6
11062 root 1.88 if test x$path_wtmp != x; then
11063    
11064     cat >>confdefs.h <<_ACEOF
11065     #define WTMP_FILE "$path_wtmp"
11066     _ACEOF
11067    
11068     fi
11069    
11070 ayin 1.106 echo "$as_me:$LINENO: checking where wtmpx is located" >&5
11071     echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
11072 root 1.88 if test "${path_wtmpx+set}" = set; then
11073     echo $ECHO_N "(cached) $ECHO_C" >&6
11074     else
11075     if test "$cross_compiling" = yes; then
11076     { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5
11077     echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
11078     else
11079     cat >conftest.$ac_ext <<_ACEOF
11080     /* confdefs.h. */
11081     _ACEOF
11082     cat confdefs.h >>conftest.$ac_ext
11083     cat >>conftest.$ac_ext <<_ACEOF
11084     /* end confdefs.h. */
11085     #include <stdio.h>
11086 ayin 1.102 #include <stdlib.h>
11087 root 1.88 #ifdef HAVE_UTMPX_H
11088     #include <utmpx.h>
11089     #endif
11090     #include <errno.h>
11091     main()
11092     {
11093     char **w, *wtmplist[] = {
11094     "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
11095     FILE *a, *f=fopen("conftestval", "w");
11096     if (!f) exit(1);
11097     #ifdef WTMPX_FILE
11098     fprintf(f, "%s\n", WTMPX_FILE);
11099     exit(0);
11100     #endif
11101     #ifdef _PATH_WTMPX
11102     fprintf(f, "%s\n", _PATH_WTMPX);
11103     exit(0);
11104     #endif
11105     for (w = wtmplist; *w; w++) {
11106     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11107     fprintf(f, "%s\n", *w);
11108     exit(0);
11109     }
11110     }
11111     exit(0);
11112     }
11113     _ACEOF
11114     rm -f conftest$ac_exeext
11115 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11116     (eval $ac_link) 2>&5
11117 root 1.88 ac_status=$?
11118     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11120 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121     (eval $ac_try) 2>&5
11122 root 1.88 ac_status=$?
11123     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124     (exit $ac_status); }; }; then
11125     path_wtmpx=`cat conftestval`
11126     else
11127     echo "$as_me: program exited with status $ac_status" >&5
11128     echo "$as_me: failed program was:" >&5
11129     sed 's/^/| /' conftest.$ac_ext >&5
11130    
11131     ( exit $ac_status )
11132     path_wtmpx=
11133     fi
11134 ayin 1.106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11135 root 1.88 fi
11136     fi
11137 ayin 1.106 echo "$as_me:$LINENO: result: $path_wtmpx" >&5
11138     echo "${ECHO_T}$path_wtmpx" >&6
11139 root 1.88 if test x$path_wtmpx != x; then
11140    
11141     cat >>confdefs.h <<_ACEOF
11142     #define WTMPX_FILE "$path_wtmpx"
11143     _ACEOF
11144    
11145     fi
11146    
11147 ayin 1.106 echo "$as_me:$LINENO: checking where lastlog is located" >&5
11148     echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
11149 root 1.88 if test "${path_lastlog+set}" = set; then
11150     echo $ECHO_N "(cached) $ECHO_C" >&6
11151     else
11152     if test "$cross_compiling" = yes; then
11153     { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5
11154     echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
11155     else
11156     cat >conftest.$ac_ext <<_ACEOF
11157     /* confdefs.h. */
11158     _ACEOF
11159     cat confdefs.h >>conftest.$ac_ext
11160     cat >>conftest.$ac_ext <<_ACEOF
11161     /* end confdefs.h. */
11162     #include <stdio.h>
11163 ayin 1.102 #include <stdlib.h>
11164 root 1.88 #include <sys/types.h>
11165     #ifdef HAVE_UTMPX_H
11166     #include <utmpx.h>
11167     #elif defined(HAVE_UTMP_H)
11168     #include <utmp.h>
11169     #endif
11170     #ifdef HAVE_LASTLOG_H
11171     #include <lastlog.h>
11172     #endif
11173     #include <errno.h>
11174     main()
11175     {
11176     char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
11177     FILE *a, *f=fopen("conftestval", "w");
11178     if (!f) exit(1);
11179     #ifdef LASTLOG_FILE
11180     fprintf(f, "%s\n", LASTLOG_FILE);
11181     exit(0);
11182     #endif
11183     #ifdef _PATH_LASTLOG
11184     fprintf(f, "%s\n", _PATH_LASTLOG);
11185     exit(0);
11186     #endif
11187     for (w = lastloglist; *w; w++) {
11188     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11189     fprintf(f, "%s\n", *w);
11190     exit(0);
11191     }
11192     }
11193     exit(0);
11194     }
11195     _ACEOF
11196     rm -f conftest$ac_exeext
11197 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11198     (eval $ac_link) 2>&5
11199 root 1.88 ac_status=$?
11200     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11202 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203     (eval $ac_try) 2>&5
11204 root 1.88 ac_status=$?
11205     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206     (exit $ac_status); }; }; then
11207     path_lastlog=`cat conftestval`
11208     else
11209     echo "$as_me: program exited with status $ac_status" >&5
11210     echo "$as_me: failed program was:" >&5
11211     sed 's/^/| /' conftest.$ac_ext >&5
11212    
11213     ( exit $ac_status )
11214     path_lastlog=
11215     fi
11216 ayin 1.106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11217 root 1.88 fi
11218     fi
11219 ayin 1.106 echo "$as_me:$LINENO: result: $path_lastlog" >&5
11220     echo "${ECHO_T}$path_lastlog" >&6
11221 root 1.88 if test x$path_lastlog != x; then
11222    
11223     cat >>confdefs.h <<_ACEOF
11224     #define LASTLOG_FILE "$path_lastlog"
11225     _ACEOF
11226    
11227     if test -d "$path_lastlog"; then
11228    
11229     cat >>confdefs.h <<\_ACEOF
11230     #define LASTLOG_IS_DIR 1
11231     _ACEOF
11232    
11233     fi
11234     fi
11235    
11236 ayin 1.106 echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11237     echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
11238 root 1.88 if test "${path_lastlogx+set}" = set; then
11239     echo $ECHO_N "(cached) $ECHO_C" >&6
11240     else
11241     if test "$cross_compiling" = yes; then
11242     { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
11243     echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
11244     else
11245     cat >conftest.$ac_ext <<_ACEOF
11246     /* confdefs.h. */
11247     _ACEOF
11248     cat confdefs.h >>conftest.$ac_ext
11249     cat >>conftest.$ac_ext <<_ACEOF
11250     /* end confdefs.h. */
11251     #include <stdio.h>
11252 ayin 1.102 #include <stdlib.h>
11253 root 1.88 #ifdef HAVE_UTMPX_H
11254     #include <utmpx.h>
11255     #endif
11256     #include <errno.h>
11257     main()
11258     {
11259     char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11260     FILE *a, *f=fopen("conftestval", "w");
11261     if (!f) exit(1);
11262     #ifdef LASTLOGX_FILE
11263     fprintf(f, "%s\n", LASTLOGX_FILE);
11264     exit(0);
11265     #endif
11266     #ifdef _PATH_LASTLOGX
11267     fprintf(f, "%s\n", _PATH_LASTLOGX);
11268     exit(0);
11269     #endif
11270     for (w = wtmplist; *w; w++) {
11271     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11272     fprintf(f, "%s\n", *w);
11273     exit(0);
11274     }
11275     }
11276     exit(0);
11277     }
11278     _ACEOF
11279     rm -f conftest$ac_exeext
11280 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11281     (eval $ac_link) 2>&5
11282 root 1.88 ac_status=$?
11283     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11285 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286     (eval $ac_try) 2>&5
11287 root 1.88 ac_status=$?
11288     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289     (exit $ac_status); }; }; then
11290     path_lastlogx=`cat conftestval`
11291     else
11292     echo "$as_me: program exited with status $ac_status" >&5
11293     echo "$as_me: failed program was:" >&5
11294     sed 's/^/| /' conftest.$ac_ext >&5
11295    
11296     ( exit $ac_status )
11297     path_lastlogx=
11298     fi
11299 ayin 1.106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11300 root 1.88 fi
11301     fi
11302 ayin 1.106 echo "$as_me:$LINENO: result: $path_lastlogx" >&5
11303     echo "${ECHO_T}$path_lastlogx" >&6
11304 root 1.88 if test x$path_lastlogx != x; then
11305    
11306     cat >>confdefs.h <<_ACEOF
11307     #define LASTLOGX_FILE "$path_lastlogx"
11308     _ACEOF
11309    
11310     fi
11311    
11312    
11313    
11314 ayin 1.106 echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11315     echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
11316 root 1.88 if test "${rxvt_cv_path_ttytab+set}" = set; then
11317     echo $ECHO_N "(cached) $ECHO_C" >&6
11318     else
11319     for ttys_file in /etc/ttys /etc/ttytab;
11320     do
11321     if test -f "$ttys_file" ; then
11322     rxvt_cv_path_ttytab=$ttys_file
11323     break
11324     fi
11325     done
11326    
11327     fi
11328 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11329     echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
11330 root 1.88 if test x$rxvt_cv_path_ttytab != x; then
11331    
11332     cat >>confdefs.h <<_ACEOF
11333     #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11334     _ACEOF
11335    
11336     fi
11337    
11338    
11339     ac_save_LIBS=$LIBS
11340     ac_save_CFLAGS=$CFLAGS
11341     CFLAGS="$CFLAGS $X_CFLAGS"
11342     LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11343 ayin 1.106 echo "$as_me:$LINENO: checking for working Xlocale" >&5
11344     echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
11345 root 1.88 if test "${rxvt_cv_func_xlocale+set}" = set; then
11346     echo $ECHO_N "(cached) $ECHO_C" >&6
11347     else
11348     if test "$cross_compiling" = yes; then
11349 root 1.105 :
11350 root 1.88 else
11351     cat >conftest.$ac_ext <<_ACEOF
11352     /* confdefs.h. */
11353     _ACEOF
11354     cat confdefs.h >>conftest.$ac_ext
11355     cat >>conftest.$ac_ext <<_ACEOF
11356     /* end confdefs.h. */
11357     #include <X11/Xlib.h>
11358 ayin 1.102 #include <stdlib.h>
11359 root 1.88 main() {
11360     char *p;
11361     if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11362     exit (XSupportsLocale() ? 0 : 1);
11363     else
11364     exit (1);}
11365     _ACEOF
11366     rm -f conftest$ac_exeext
11367 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11368     (eval $ac_link) 2>&5
11369 root 1.88 ac_status=$?
11370     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11372 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373     (eval $ac_try) 2>&5
11374 root 1.88 ac_status=$?
11375     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376     (exit $ac_status); }; }; then
11377     rxvt_cv_func_xlocale=yes
11378     else
11379     echo "$as_me: program exited with status $ac_status" >&5
11380     echo "$as_me: failed program was:" >&5
11381     sed 's/^/| /' conftest.$ac_ext >&5
11382    
11383     ( exit $ac_status )
11384     rxvt_cv_func_xlocale=no
11385     fi
11386 ayin 1.106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11387 root 1.88 fi
11388     fi
11389 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11390     echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
11391 root 1.105 if test x$support_xim = xyes; then
11392     if test x$rxvt_cv_func_xlocale = xyes; then
11393 root 1.88
11394     cat >>confdefs.h <<\_ACEOF
11395 root 1.105 #define USE_XIM 1
11396 root 1.88 _ACEOF
11397    
11398 root 1.105 fi
11399 root 1.88 fi
11400    
11401 ayin 1.106 echo "$as_me:$LINENO: checking for working X setlocale" >&5
11402     echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6
11403 root 1.88 if test "${rxvt_cv_func_xsetlocale+set}" = set; then
11404     echo $ECHO_N "(cached) $ECHO_C" >&6
11405     else
11406     cat >conftest.$ac_ext <<_ACEOF
11407     /* confdefs.h. */
11408     _ACEOF
11409     cat confdefs.h >>conftest.$ac_ext
11410     cat >>conftest.$ac_ext <<_ACEOF
11411     /* end confdefs.h. */
11412     #define X_LOCALE 1
11413     #include <X11/Xlocale.h>
11414     int
11415     main ()
11416     {
11417     setlocale(LC_CTYPE, "");
11418     ;
11419     return 0;
11420     }
11421     _ACEOF
11422     rm -f conftest.$ac_objext conftest$ac_exeext
11423 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11424     (eval $ac_link) 2>conftest.er1
11425 root 1.88 ac_status=$?
11426     grep -v '^ *+' conftest.er1 >conftest.err
11427     rm -f conftest.er1
11428     cat conftest.err >&5
11429     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 ayin 1.106 (exit $ac_status); } &&
11431     { ac_try='test -z "$ac_cxx_werror_flag"
11432     || test ! -s conftest.err'
11433     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434     (eval $ac_try) 2>&5
11435     ac_status=$?
11436     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437     (exit $ac_status); }; } &&
11438     { ac_try='test -s conftest$ac_exeext'
11439     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440     (eval $ac_try) 2>&5
11441     ac_status=$?
11442     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443     (exit $ac_status); }; }; then
11444 root 1.88 rxvt_cv_func_xsetlocale=yes
11445     else
11446     echo "$as_me: failed program was:" >&5
11447     sed 's/^/| /' conftest.$ac_ext >&5
11448    
11449 ayin 1.106 rxvt_cv_func_xsetlocale=no
11450 root 1.88 fi
11451 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
11452 root 1.88 conftest$ac_exeext conftest.$ac_ext
11453     fi
11454 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
11455     echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6
11456 root 1.88 if test x$rxvt_cv_func_xsetlocale = xyes; then
11457    
11458     cat >>confdefs.h <<\_ACEOF
11459     #define HAVE_XSETLOCALE 1
11460     _ACEOF
11461    
11462     fi
11463     LIBS=$ac_save_LIBS
11464     CFLAGS=$ac_save_CFLAGS
11465    
11466 ayin 1.106 echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11467     echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6
11468 root 1.88 if test "${rxvt_cv_func_setlocale+set}" = set; then
11469     echo $ECHO_N "(cached) $ECHO_C" >&6
11470     else
11471     cat >conftest.$ac_ext <<_ACEOF
11472     /* confdefs.h. */
11473     _ACEOF
11474     cat confdefs.h >>conftest.$ac_ext
11475     cat >>conftest.$ac_ext <<_ACEOF
11476     /* end confdefs.h. */
11477     #include <clocale>
11478     int
11479     main ()
11480     {
11481     setlocale(LC_CTYPE, "");
11482     ;
11483     return 0;
11484     }
11485     _ACEOF
11486     rm -f conftest.$ac_objext conftest$ac_exeext
11487 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11488     (eval $ac_link) 2>conftest.er1
11489 root 1.88 ac_status=$?
11490     grep -v '^ *+' conftest.er1 >conftest.err
11491     rm -f conftest.er1
11492     cat conftest.err >&5
11493     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 ayin 1.106 (exit $ac_status); } &&
11495     { ac_try='test -z "$ac_cxx_werror_flag"
11496     || test ! -s conftest.err'
11497     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11498     (eval $ac_try) 2>&5
11499     ac_status=$?
11500     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501     (exit $ac_status); }; } &&
11502     { ac_try='test -s conftest$ac_exeext'
11503     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11504     (eval $ac_try) 2>&5
11505     ac_status=$?
11506     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507     (exit $ac_status); }; }; then
11508 root 1.88 rxvt_cv_func_setlocale=yes
11509     else
11510     echo "$as_me: failed program was:" >&5
11511     sed 's/^/| /' conftest.$ac_ext >&5
11512    
11513 ayin 1.106 rxvt_cv_func_setlocale=no
11514 root 1.88 fi
11515 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
11516 root 1.88 conftest$ac_exeext conftest.$ac_ext
11517     fi
11518 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
11519     echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
11520 root 1.88 if test x$rxvt_cv_func_setlocale = xyes; then
11521    
11522     cat >>confdefs.h <<\_ACEOF
11523     #define HAVE_SETLOCALE 1
11524     _ACEOF
11525    
11526     fi
11527    
11528 ayin 1.106 echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
11529     echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6
11530 root 1.88 if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
11531     echo $ECHO_N "(cached) $ECHO_C" >&6
11532     else
11533     cat >conftest.$ac_ext <<_ACEOF
11534     /* confdefs.h. */
11535     _ACEOF
11536     cat confdefs.h >>conftest.$ac_ext
11537     cat >>conftest.$ac_ext <<_ACEOF
11538     /* end confdefs.h. */
11539     #include <langinfo.h>
11540     int
11541     main ()
11542     {
11543     nl_langinfo(CODESET);
11544     ;
11545     return 0;
11546     }
11547     _ACEOF
11548     rm -f conftest.$ac_objext conftest$ac_exeext
11549 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11550     (eval $ac_link) 2>conftest.er1
11551 root 1.88 ac_status=$?
11552     grep -v '^ *+' conftest.er1 >conftest.err
11553     rm -f conftest.er1
11554     cat conftest.err >&5
11555     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 ayin 1.106 (exit $ac_status); } &&
11557     { ac_try='test -z "$ac_cxx_werror_flag"
11558     || test ! -s conftest.err'
11559     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11560     (eval $ac_try) 2>&5
11561     ac_status=$?
11562     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563     (exit $ac_status); }; } &&
11564     { ac_try='test -s conftest$ac_exeext'
11565     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566     (eval $ac_try) 2>&5
11567     ac_status=$?
11568     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569     (exit $ac_status); }; }; then
11570 root 1.88 rxvt_cv_func_nl_langinfo=yes
11571     else
11572     echo "$as_me: failed program was:" >&5
11573     sed 's/^/| /' conftest.$ac_ext >&5
11574    
11575 ayin 1.106 rxvt_cv_func_nl_langinfo=no
11576 root 1.88 fi
11577 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
11578 root 1.88 conftest$ac_exeext conftest.$ac_ext
11579     fi
11580 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
11581     echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6
11582 root 1.88 if test x$rxvt_cv_func_nl_langinfo = xyes; then
11583    
11584     cat >>confdefs.h <<\_ACEOF
11585     #define HAVE_NL_LANGINFO 1
11586     _ACEOF
11587    
11588     fi
11589    
11590    
11591 ayin 1.106 echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
11592     echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11593 root 1.88 if test "${can_pass_fds+set}" = set; then
11594     echo $ECHO_N "(cached) $ECHO_C" >&6
11595     else
11596     cat >conftest.$ac_ext <<_ACEOF
11597     /* confdefs.h. */
11598     _ACEOF
11599     cat confdefs.h >>conftest.$ac_ext
11600     cat >>conftest.$ac_ext <<_ACEOF
11601     /* end confdefs.h. */
11602    
11603 root 1.93 #include <cstddef> // broken bsds (is that redundant?) need this
11604 root 1.88 #include <sys/types.h>
11605     #include <sys/socket.h>
11606     #include <sys/uio.h>
11607    
11608     int
11609     main ()
11610     {
11611    
11612     {
11613     msghdr msg;
11614     iovec iov;
11615     char buf [100];
11616     char data = 0;
11617    
11618     iov.iov_base = &data;
11619     iov.iov_len = 1;
11620    
11621     msg.msg_iov = &iov;
11622     msg.msg_iovlen = 1;
11623     msg.msg_control = buf;
11624     msg.msg_controllen = sizeof buf;
11625    
11626     cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11627     cmsg->cmsg_level = SOL_SOCKET;
11628     cmsg->cmsg_type = SCM_RIGHTS;
11629     cmsg->cmsg_len = 100;
11630    
11631     *(int *)CMSG_DATA (cmsg) = 5;
11632    
11633     return sendmsg (3, &msg, 0);
11634     }
11635    
11636     ;
11637     return 0;
11638     }
11639     _ACEOF
11640     rm -f conftest.$ac_objext conftest$ac_exeext
11641 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11642     (eval $ac_link) 2>conftest.er1
11643 root 1.88 ac_status=$?
11644     grep -v '^ *+' conftest.er1 >conftest.err
11645     rm -f conftest.er1
11646     cat conftest.err >&5
11647     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 ayin 1.106 (exit $ac_status); } &&
11649     { ac_try='test -z "$ac_cxx_werror_flag"
11650     || test ! -s conftest.err'
11651     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652     (eval $ac_try) 2>&5
11653     ac_status=$?
11654     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655     (exit $ac_status); }; } &&
11656     { ac_try='test -s conftest$ac_exeext'
11657     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658     (eval $ac_try) 2>&5
11659     ac_status=$?
11660     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661     (exit $ac_status); }; }; then
11662 root 1.88 can_pass_fds=yes
11663     else
11664     echo "$as_me: failed program was:" >&5
11665     sed 's/^/| /' conftest.$ac_ext >&5
11666    
11667 ayin 1.106 can_pass_fds=no
11668 root 1.88 fi
11669 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
11670 root 1.88 conftest$ac_exeext conftest.$ac_ext
11671     fi
11672 ayin 1.106 echo "$as_me:$LINENO: result: $can_pass_fds" >&5
11673     echo "${ECHO_T}$can_pass_fds" >&6
11674 root 1.88 if test x$can_pass_fds = xyes; then
11675    
11676     cat >>confdefs.h <<\_ACEOF
11677     #define HAVE_UNIX_FDPASS 1
11678     _ACEOF
11679    
11680     else
11681     { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
11682     echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
11683     { (exit 1); exit 1; }; }
11684     fi
11685    
11686    
11687 ayin 1.106 echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11688     echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11689 root 1.88 if test "${rxvt_broken_ximcb+set}" = set; then
11690 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
11691     else
11692 root 1.88 cat >conftest.$ac_ext <<_ACEOF
11693    
11694     #include <X11/Xlib.h>
11695    
11696     void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11697    
11698     void f() {
11699     XIMCallback cb;
11700     cb.callback = im_destroy_cb;
11701     }
11702    
11703     _ACEOF
11704     rm -f conftest.$ac_objext
11705 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11706     (eval $ac_compile) 2>conftest.er1
11707 root 1.88 ac_status=$?
11708     grep -v '^ *+' conftest.er1 >conftest.err
11709     rm -f conftest.er1
11710     cat conftest.err >&5
11711     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 ayin 1.106 (exit $ac_status); } &&
11713     { ac_try='test -z "$ac_cxx_werror_flag"
11714     || test ! -s conftest.err'
11715     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716     (eval $ac_try) 2>&5
11717     ac_status=$?
11718     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719     (exit $ac_status); }; } &&
11720     { ac_try='test -s conftest.$ac_objext'
11721     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722     (eval $ac_try) 2>&5
11723     ac_status=$?
11724     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725     (exit $ac_status); }; }; then
11726 root 1.88 rxvt_broken_ximcb=yes
11727     else
11728     echo "$as_me: failed program was:" >&5
11729     sed 's/^/| /' conftest.$ac_ext >&5
11730    
11731 ayin 1.106 rxvt_broken_ximcb=no
11732 root 1.88 fi
11733 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11734 root 1.88 fi
11735 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
11736     echo "${ECHO_T}$rxvt_broken_ximcb" >&6
11737 root 1.88
11738     if test x$rxvt_broken_ximcb = xyes; then
11739    
11740     cat >>confdefs.h <<\_ACEOF
11741     #define XIMCB_PROTO_BROKEN 1
11742     _ACEOF
11743    
11744     fi
11745    
11746    
11747    
11748    
11749    
11750    
11751    
11752     for ac_header in \
11753     pty.h \
11754     util.h \
11755     libutil.h \
11756     sys/ioctl.h \
11757     sys/stropts.h \
11758    
11759 root 1.83 do
11760 root 1.88 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11761 ayin 1.106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11762     echo "$as_me:$LINENO: checking for $ac_header" >&5
11763     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11764     if eval "test \"\${$as_ac_Header+set}\" = set"; then
11765 root 1.88 echo $ECHO_N "(cached) $ECHO_C" >&6
11766     fi
11767 ayin 1.106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11768     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11769 root 1.88 else
11770     # Is the header compilable?
11771 ayin 1.106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11772     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11773 root 1.88 cat >conftest.$ac_ext <<_ACEOF
11774     /* confdefs.h. */
11775     _ACEOF
11776     cat confdefs.h >>conftest.$ac_ext
11777     cat >>conftest.$ac_ext <<_ACEOF
11778     /* end confdefs.h. */
11779     $ac_includes_default
11780     #include <$ac_header>
11781     _ACEOF
11782     rm -f conftest.$ac_objext
11783 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11784     (eval $ac_compile) 2>conftest.er1
11785 root 1.88 ac_status=$?
11786     grep -v '^ *+' conftest.er1 >conftest.err
11787     rm -f conftest.er1
11788     cat conftest.err >&5
11789     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 ayin 1.106 (exit $ac_status); } &&
11791     { ac_try='test -z "$ac_cxx_werror_flag"
11792     || test ! -s conftest.err'
11793     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11794     (eval $ac_try) 2>&5
11795     ac_status=$?
11796     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797     (exit $ac_status); }; } &&
11798     { ac_try='test -s conftest.$ac_objext'
11799     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800     (eval $ac_try) 2>&5
11801     ac_status=$?
11802     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803     (exit $ac_status); }; }; then
11804 root 1.88 ac_header_compiler=yes
11805     else
11806     echo "$as_me: failed program was:" >&5
11807     sed 's/^/| /' conftest.$ac_ext >&5
11808    
11809 ayin 1.106 ac_header_compiler=no
11810 root 1.88 fi
11811 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11812     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11813     echo "${ECHO_T}$ac_header_compiler" >&6
11814 root 1.88
11815     # Is the header present?
11816 ayin 1.106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11817     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11818 root 1.88 cat >conftest.$ac_ext <<_ACEOF
11819     /* confdefs.h. */
11820     _ACEOF
11821     cat confdefs.h >>conftest.$ac_ext
11822     cat >>conftest.$ac_ext <<_ACEOF
11823     /* end confdefs.h. */
11824     #include <$ac_header>
11825     _ACEOF
11826 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11827     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11828 root 1.88 ac_status=$?
11829     grep -v '^ *+' conftest.er1 >conftest.err
11830     rm -f conftest.er1
11831     cat conftest.err >&5
11832     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 ayin 1.106 (exit $ac_status); } >/dev/null; then
11834     if test -s conftest.err; then
11835     ac_cpp_err=$ac_cxx_preproc_warn_flag
11836     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11837     else
11838     ac_cpp_err=
11839     fi
11840     else
11841     ac_cpp_err=yes
11842     fi
11843     if test -z "$ac_cpp_err"; then
11844 root 1.88 ac_header_preproc=yes
11845     else
11846     echo "$as_me: failed program was:" >&5
11847     sed 's/^/| /' conftest.$ac_ext >&5
11848    
11849     ac_header_preproc=no
11850     fi
11851     rm -f conftest.err conftest.$ac_ext
11852 ayin 1.106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11853     echo "${ECHO_T}$ac_header_preproc" >&6
11854 root 1.88
11855     # So? What about this header?
11856     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11857     yes:no: )
11858     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11859     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11860     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11861     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11862     ac_header_preproc=yes
11863     ;;
11864     no:yes:* )
11865     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11866     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11867     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11868     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11869     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11870     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11871     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11872     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11873     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11874     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11875     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11876     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11877 ayin 1.106 (
11878     cat <<\_ASBOX
11879     ## ------------------------------------------ ##
11880     ## Report this to the AC_PACKAGE_NAME lists. ##
11881     ## ------------------------------------------ ##
11882     _ASBOX
11883     ) |
11884     sed "s/^/$as_me: WARNING: /" >&2
11885 root 1.88 ;;
11886     esac
11887 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_header" >&5
11888     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11889     if eval "test \"\${$as_ac_Header+set}\" = set"; then
11890 root 1.88 echo $ECHO_N "(cached) $ECHO_C" >&6
11891     else
11892     eval "$as_ac_Header=\$ac_header_preproc"
11893     fi
11894 ayin 1.106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11895     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11896 root 1.88
11897     fi
11898     if test `eval echo '${'$as_ac_Header'}'` = yes; then
11899     cat >>confdefs.h <<_ACEOF
11900     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11901     _ACEOF
11902 root 1.83
11903 pcg 1.11 fi
11904 root 1.83
11905 root 1.88 done
11906    
11907 root 1.83
11908    
11909    
11910    
11911    
11912    
11913 root 1.94
11914    
11915    
11916    
11917 root 1.88 for ac_func in \
11918     revoke \
11919     _getpty \
11920     getpt \
11921     posix_openpt \
11922     isastream \
11923 root 1.94 setuid \
11924     seteuid \
11925     setreuid \
11926     setresuid \
11927 root 1.83
11928 root 1.88 do
11929     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11930 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_func" >&5
11931     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11932     if eval "test \"\${$as_ac_var+set}\" = set"; then
11933 root 1.83 echo $ECHO_N "(cached) $ECHO_C" >&6
11934     else
11935     cat >conftest.$ac_ext <<_ACEOF
11936     /* confdefs.h. */
11937     _ACEOF
11938     cat confdefs.h >>conftest.$ac_ext
11939     cat >>conftest.$ac_ext <<_ACEOF
11940     /* end confdefs.h. */
11941 root 1.88 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11942     For example, HP-UX 11i <limits.h> declares gettimeofday. */
11943     #define $ac_func innocuous_$ac_func
11944    
11945     /* System header to define __stub macros and hopefully few prototypes,
11946     which can conflict with char $ac_func (); below.
11947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11948     <limits.h> exists even on freestanding compilers. */
11949    
11950     #ifdef __STDC__
11951     # include <limits.h>
11952     #else
11953     # include <assert.h>
11954     #endif
11955    
11956     #undef $ac_func
11957    
11958 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
11959 root 1.88 #ifdef __cplusplus
11960     extern "C"
11961 ayin 1.106 {
11962 root 1.88 #endif
11963 ayin 1.106 /* We use char because int might match the return type of a gcc2
11964     builtin and then its argument prototype would still apply. */
11965 root 1.88 char $ac_func ();
11966     /* The GNU C library defines this for functions which it implements
11967     to always fail with ENOSYS. Some functions are actually named
11968     something starting with __ and the normal name is an alias. */
11969 ayin 1.106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11970 root 1.88 choke me
11971 ayin 1.106 #else
11972     char (*f) () = $ac_func;
11973     #endif
11974     #ifdef __cplusplus
11975     }
11976 root 1.88 #endif
11977    
11978 root 1.83 int
11979     main ()
11980     {
11981 ayin 1.106 return f != $ac_func;
11982 root 1.56 ;
11983     return 0;
11984     }
11985     _ACEOF
11986     rm -f conftest.$ac_objext conftest$ac_exeext
11987 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11988     (eval $ac_link) 2>conftest.er1
11989 root 1.56 ac_status=$?
11990     grep -v '^ *+' conftest.er1 >conftest.err
11991     rm -f conftest.er1
11992     cat conftest.err >&5
11993     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 ayin 1.106 (exit $ac_status); } &&
11995     { ac_try='test -z "$ac_cxx_werror_flag"
11996     || test ! -s conftest.err'
11997     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998     (eval $ac_try) 2>&5
11999     ac_status=$?
12000     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001     (exit $ac_status); }; } &&
12002     { ac_try='test -s conftest$ac_exeext'
12003     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004     (eval $ac_try) 2>&5
12005     ac_status=$?
12006     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007     (exit $ac_status); }; }; then
12008 root 1.88 eval "$as_ac_var=yes"
12009 root 1.56 else
12010     echo "$as_me: failed program was:" >&5
12011     sed 's/^/| /' conftest.$ac_ext >&5
12012    
12013 ayin 1.106 eval "$as_ac_var=no"
12014 root 1.56 fi
12015 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
12016 root 1.56 conftest$ac_exeext conftest.$ac_ext
12017     fi
12018 ayin 1.106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12019     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12020 root 1.88 if test `eval echo '${'$as_ac_var'}'` = yes; then
12021     cat >>confdefs.h <<_ACEOF
12022     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12023     _ACEOF
12024    
12025     fi
12026     done
12027    
12028    
12029     have_clone=no
12030    
12031 ayin 1.106 echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12032     echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6
12033 root 1.88 if test -e /dev/ptym/clone; then
12034 ayin 1.106 echo "$as_me:$LINENO: result: yes" >&5
12035     echo "${ECHO_T}yes" >&6
12036 root 1.88
12037     cat >>confdefs.h <<\_ACEOF
12038     #define HAVE_DEV_CLONE 1
12039     _ACEOF
12040    
12041 root 1.83
12042     cat >>confdefs.h <<\_ACEOF
12043 root 1.88 #define CLONE_DEVICE "/dev/ptym/clone"
12044 root 1.56 _ACEOF
12045    
12046 root 1.88 have_clone=yes
12047     else
12048 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
12049     echo "${ECHO_T}no" >&6
12050 root 1.56 fi
12051    
12052 ayin 1.106 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12053     echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12054 root 1.88 if test -e /dev/ptc; then
12055 ayin 1.106 echo "$as_me:$LINENO: result: yes" >&5
12056     echo "${ECHO_T}yes" >&6
12057 root 1.88
12058     cat >>confdefs.h <<\_ACEOF
12059     #define HAVE_DEV_PTC 1
12060     _ACEOF
12061    
12062    
12063     cat >>confdefs.h <<\_ACEOF
12064     #define CLONE_DEVICE "/dev/ptc"
12065     _ACEOF
12066    
12067     have_clone=yes
12068 root 1.31 else
12069 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
12070     echo "${ECHO_T}no" >&6
12071 root 1.88 fi
12072    
12073     case $host in
12074     *-*-cygwin*)
12075     have_clone=yes
12076    
12077     cat >>confdefs.h <<\_ACEOF
12078     #define CLONE_DEVICE "/dev/ptmx"
12079     _ACEOF
12080    
12081     ;;
12082     *)
12083 ayin 1.106 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12084     echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
12085 root 1.88 if test -e /dev/ptmx; then
12086 ayin 1.106 echo "$as_me:$LINENO: result: yes" >&5
12087     echo "${ECHO_T}yes" >&6
12088 root 1.88
12089     cat >>confdefs.h <<\_ACEOF
12090     #define HAVE_DEV_PTMX 1
12091     _ACEOF
12092    
12093    
12094     cat >>confdefs.h <<\_ACEOF
12095     #define CLONE_DEVICE "/dev/ptmx"
12096     _ACEOF
12097    
12098     have_clone=yes
12099     else
12100 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
12101     echo "${ECHO_T}no" >&6
12102 root 1.88 fi
12103     ;;
12104     esac
12105    
12106     if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12107 ayin 1.106 echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5
12108     echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6
12109 root 1.83 cat >conftest.$ac_ext <<_ACEOF
12110     /* confdefs.h. */
12111     _ACEOF
12112     cat confdefs.h >>conftest.$ac_ext
12113     cat >>conftest.$ac_ext <<_ACEOF
12114     /* end confdefs.h. */
12115 root 1.88 #include <stdlib.h>
12116 root 1.83 int
12117     main ()
12118     {
12119 root 1.88 grantpt(0);unlockpt(0);ptsname(0);
12120 root 1.83 ;
12121     return 0;
12122 root 1.31 }
12123     _ACEOF
12124 root 1.83 rm -f conftest.$ac_objext conftest$ac_exeext
12125 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12126     (eval $ac_link) 2>conftest.er1
12127 root 1.31 ac_status=$?
12128     grep -v '^ *+' conftest.er1 >conftest.err
12129     rm -f conftest.er1
12130     cat conftest.err >&5
12131     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 ayin 1.106 (exit $ac_status); } &&
12133     { ac_try='test -z "$ac_cxx_werror_flag"
12134     || test ! -s conftest.err'
12135     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136     (eval $ac_try) 2>&5
12137     ac_status=$?
12138     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139     (exit $ac_status); }; } &&
12140     { ac_try='test -s conftest$ac_exeext'
12141     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142     (eval $ac_try) 2>&5
12143     ac_status=$?
12144     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145     (exit $ac_status); }; }; then
12146 root 1.88 unix98_pty=yes
12147    
12148     cat >>confdefs.h <<\_ACEOF
12149     #define UNIX98_PTY 1
12150     _ACEOF
12151    
12152 ayin 1.106 echo "$as_me:$LINENO: result: yes" >&5
12153     echo "${ECHO_T}yes" >&6
12154 root 1.31 else
12155     echo "$as_me: failed program was:" >&5
12156     sed 's/^/| /' conftest.$ac_ext >&5
12157    
12158 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
12159     echo "${ECHO_T}no" >&6
12160 root 1.31 fi
12161 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
12162 root 1.83 conftest$ac_exeext conftest.$ac_ext
12163 root 1.31 fi
12164    
12165 root 1.88 if test -z "$unix98_pty"; then
12166 root 1.31
12167 root 1.88 for ac_func in openpty
12168     do
12169     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12170 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_func" >&5
12171     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12172     if eval "test \"\${$as_ac_var+set}\" = set"; then
12173 root 1.66 echo $ECHO_N "(cached) $ECHO_C" >&6
12174     else
12175     cat >conftest.$ac_ext <<_ACEOF
12176     /* confdefs.h. */
12177     _ACEOF
12178     cat confdefs.h >>conftest.$ac_ext
12179     cat >>conftest.$ac_ext <<_ACEOF
12180     /* end confdefs.h. */
12181 root 1.88 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12182     For example, HP-UX 11i <limits.h> declares gettimeofday. */
12183     #define $ac_func innocuous_$ac_func
12184    
12185     /* System header to define __stub macros and hopefully few prototypes,
12186     which can conflict with char $ac_func (); below.
12187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12188     <limits.h> exists even on freestanding compilers. */
12189    
12190     #ifdef __STDC__
12191     # include <limits.h>
12192     #else
12193     # include <assert.h>
12194     #endif
12195    
12196     #undef $ac_func
12197    
12198 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
12199 root 1.88 #ifdef __cplusplus
12200     extern "C"
12201 ayin 1.106 {
12202 root 1.88 #endif
12203 ayin 1.106 /* We use char because int might match the return type of a gcc2
12204     builtin and then its argument prototype would still apply. */
12205 root 1.88 char $ac_func ();
12206     /* The GNU C library defines this for functions which it implements
12207     to always fail with ENOSYS. Some functions are actually named
12208     something starting with __ and the normal name is an alias. */
12209 ayin 1.106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12210 root 1.88 choke me
12211 ayin 1.106 #else
12212     char (*f) () = $ac_func;
12213     #endif
12214     #ifdef __cplusplus
12215     }
12216 root 1.88 #endif
12217    
12218 root 1.66 int
12219     main ()
12220     {
12221 ayin 1.106 return f != $ac_func;
12222 root 1.66 ;
12223     return 0;
12224     }
12225     _ACEOF
12226     rm -f conftest.$ac_objext conftest$ac_exeext
12227 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12228     (eval $ac_link) 2>conftest.er1
12229 root 1.66 ac_status=$?
12230     grep -v '^ *+' conftest.er1 >conftest.err
12231     rm -f conftest.er1
12232     cat conftest.err >&5
12233     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 ayin 1.106 (exit $ac_status); } &&
12235     { ac_try='test -z "$ac_cxx_werror_flag"
12236     || test ! -s conftest.err'
12237     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238     (eval $ac_try) 2>&5
12239     ac_status=$?
12240     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241     (exit $ac_status); }; } &&
12242     { ac_try='test -s conftest$ac_exeext'
12243     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244     (eval $ac_try) 2>&5
12245     ac_status=$?
12246     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247     (exit $ac_status); }; }; then
12248 root 1.88 eval "$as_ac_var=yes"
12249 root 1.66 else
12250     echo "$as_me: failed program was:" >&5
12251     sed 's/^/| /' conftest.$ac_ext >&5
12252    
12253 ayin 1.106 eval "$as_ac_var=no"
12254 root 1.66 fi
12255 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
12256 root 1.66 conftest$ac_exeext conftest.$ac_ext
12257     fi
12258 ayin 1.106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12259     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12260 root 1.88 if test `eval echo '${'$as_ac_var'}'` = yes; then
12261     cat >>confdefs.h <<_ACEOF
12262     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12263 root 1.83 _ACEOF
12264    
12265 root 1.88 else
12266 ayin 1.106 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12267     echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12268 root 1.88 if test "${ac_cv_lib_util_openpty+set}" = set; then
12269 root 1.66 echo $ECHO_N "(cached) $ECHO_C" >&6
12270     else
12271 root 1.88 ac_check_lib_save_LIBS=$LIBS
12272     LIBS="-lutil $LIBS"
12273     cat >conftest.$ac_ext <<_ACEOF
12274     /* confdefs.h. */
12275     _ACEOF
12276     cat confdefs.h >>conftest.$ac_ext
12277     cat >>conftest.$ac_ext <<_ACEOF
12278     /* end confdefs.h. */
12279 root 1.87
12280 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
12281 root 1.88 #ifdef __cplusplus
12282     extern "C"
12283     #endif
12284 ayin 1.106 /* We use char because int might match the return type of a gcc2
12285     builtin and then its argument prototype would still apply. */
12286 root 1.88 char openpty ();
12287     int
12288     main ()
12289     {
12290 ayin 1.106 openpty ();
12291 root 1.88 ;
12292     return 0;
12293 root 1.66 }
12294     _ACEOF
12295 root 1.88 rm -f conftest.$ac_objext conftest$ac_exeext
12296 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12297     (eval $ac_link) 2>conftest.er1
12298 root 1.66 ac_status=$?
12299     grep -v '^ *+' conftest.er1 >conftest.err
12300     rm -f conftest.er1
12301     cat conftest.err >&5
12302     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 ayin 1.106 (exit $ac_status); } &&
12304     { ac_try='test -z "$ac_cxx_werror_flag"
12305     || test ! -s conftest.err'
12306     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307     (eval $ac_try) 2>&5
12308     ac_status=$?
12309     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310     (exit $ac_status); }; } &&
12311     { ac_try='test -s conftest$ac_exeext'
12312     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313     (eval $ac_try) 2>&5
12314     ac_status=$?
12315     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316     (exit $ac_status); }; }; then
12317 root 1.88 ac_cv_lib_util_openpty=yes
12318 root 1.66 else
12319     echo "$as_me: failed program was:" >&5
12320     sed 's/^/| /' conftest.$ac_ext >&5
12321    
12322 ayin 1.106 ac_cv_lib_util_openpty=no
12323 root 1.88 fi
12324 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
12325 root 1.88 conftest$ac_exeext conftest.$ac_ext
12326     LIBS=$ac_check_lib_save_LIBS
12327 root 1.66 fi
12328 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12329     echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12330 root 1.88 if test $ac_cv_lib_util_openpty = yes; then
12331     cat >>confdefs.h <<\_ACEOF
12332     #define HAVE_OPENPTY 1
12333     _ACEOF
12334     LIBS="$LIBS -lutil"
12335 root 1.66 fi
12336 root 1.87
12337 root 1.88 fi
12338     done
12339 pcg 1.1
12340     fi
12341    
12342    
12343 root 1.90
12344 ayin 1.106 echo "$as_me:$LINENO: checking for tty group" >&5
12345     echo $ECHO_N "checking for tty group... $ECHO_C" >&6
12346 root 1.90 if test "${tty_group+set}" = set; then
12347     echo $ECHO_N "(cached) $ECHO_C" >&6
12348     else
12349     if test "$cross_compiling" = yes; then
12350     tty_group=no
12351     else
12352     cat >conftest.$ac_ext <<_ACEOF
12353     /* confdefs.h. */
12354     _ACEOF
12355     cat confdefs.h >>conftest.$ac_ext
12356     cat >>conftest.$ac_ext <<_ACEOF
12357     /* end confdefs.h. */
12358    
12359     #include <sys/types.h>
12360     #include <sys/stat.h>
12361     #include <unistd.h>
12362     #include <grp.h>
12363    
12364     main()
12365     {
12366     struct stat st;
12367     struct group *gr;
12368     char *tty;
12369     gr = getgrnam("tty");
12370     tty = ttyname(0);
12371     if (gr != 0
12372     && tty != 0
12373     && (stat(tty, &st)) == 0
12374     && st.st_gid == gr->gr_gid)
12375     return 0;
12376     else
12377     return 1;
12378     }
12379     _ACEOF
12380     rm -f conftest$ac_exeext
12381 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12382     (eval $ac_link) 2>&5
12383 root 1.90 ac_status=$?
12384     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12386 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387     (eval $ac_try) 2>&5
12388 root 1.90 ac_status=$?
12389     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390     (exit $ac_status); }; }; then
12391     tty_group=yes
12392     else
12393     echo "$as_me: program exited with status $ac_status" >&5
12394     echo "$as_me: failed program was:" >&5
12395     sed 's/^/| /' conftest.$ac_ext >&5
12396    
12397     ( exit $ac_status )
12398     tty_group=no
12399     fi
12400 ayin 1.106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12401 root 1.90 fi
12402     fi
12403 ayin 1.106 echo "$as_me:$LINENO: result: $tty_group" >&5
12404     echo "${ECHO_T}$tty_group" >&6
12405 root 1.90 if test x$tty_group = xyes; then
12406    
12407     cat >>confdefs.h <<\_ACEOF
12408     #define TTY_GID_SUPPORT 1
12409     _ACEOF
12410    
12411     fi
12412    
12413 root 1.39 if test x$support_xft = xyes; then
12414 root 1.86 # Extract the first word of "pkg-config", so it can be a program name with args.
12415     set dummy pkg-config; ac_word=$2
12416 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_word" >&5
12417     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12418 root 1.86 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12419     echo $ECHO_N "(cached) $ECHO_C" >&6
12420     else
12421     case $PKG_CONFIG in
12422     [\\/]* | ?:[\\/]*)
12423     ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12424     ;;
12425     *)
12426     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12427     for as_dir in $PATH
12428     do
12429     IFS=$as_save_IFS
12430     test -z "$as_dir" && as_dir=.
12431     for ac_exec_ext in '' $ac_executable_extensions; do
12432 ayin 1.106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12433 root 1.86 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12435     break 2
12436     fi
12437     done
12438     done
12439    
12440     test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12441     ;;
12442     esac
12443     fi
12444     PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12445 ayin 1.106
12446 root 1.86 if test -n "$PKG_CONFIG"; then
12447 ayin 1.106 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12448     echo "${ECHO_T}$PKG_CONFIG" >&6
12449 root 1.86 else
12450 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
12451     echo "${ECHO_T}no" >&6
12452 root 1.86 fi
12453    
12454 root 1.90 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12455     LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12456     CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12457     else
12458     # Extract the first word of "xft-config", so it can be a program name with args.
12459 root 1.86 set dummy xft-config; ac_word=$2
12460 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_word" >&5
12461     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12462 root 1.86 if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12463     echo $ECHO_N "(cached) $ECHO_C" >&6
12464     else
12465     case $XFT_CONFIG in
12466     [\\/]* | ?:[\\/]*)
12467     ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12468     ;;
12469     *)
12470     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471     for as_dir in $PATH
12472     do
12473     IFS=$as_save_IFS
12474     test -z "$as_dir" && as_dir=.
12475     for ac_exec_ext in '' $ac_executable_extensions; do
12476 ayin 1.106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12477 root 1.86 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12479     break 2
12480     fi
12481     done
12482     done
12483    
12484     test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
12485     ;;
12486     esac
12487     fi
12488     XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12489 ayin 1.106
12490 root 1.86 if test -n "$XFT_CONFIG"; then
12491 ayin 1.106 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12492     echo "${ECHO_T}$XFT_CONFIG" >&6
12493 root 1.86 else
12494 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
12495     echo "${ECHO_T}no" >&6
12496 root 1.86 fi
12497    
12498     if test $XFT_CONFIG != no; then
12499     LIBS="$LIBS `$XFT_CONFIG --libs`"
12500     CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12501     fi
12502     fi
12503 root 1.34
12504    
12505 root 1.39 for ac_header in X11/Xft/Xft.h
12506     do
12507     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12508 ayin 1.106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12509     echo "$as_me:$LINENO: checking for $ac_header" >&5
12510     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12511     if eval "test \"\${$as_ac_Header+set}\" = set"; then
12512 root 1.39 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 root 1.34 fi
12514 ayin 1.106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12515     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12516 root 1.39 else
12517     # Is the header compilable?
12518 ayin 1.106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12519     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12520 root 1.39 cat >conftest.$ac_ext <<_ACEOF
12521     /* confdefs.h. */
12522 root 1.26 _ACEOF
12523 root 1.39 cat confdefs.h >>conftest.$ac_ext
12524     cat >>conftest.$ac_ext <<_ACEOF
12525     /* end confdefs.h. */
12526     $ac_includes_default
12527     #include <$ac_header>
12528 root 1.31 _ACEOF
12529 root 1.39 rm -f conftest.$ac_objext
12530 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12531     (eval $ac_compile) 2>conftest.er1
12532 root 1.39 ac_status=$?
12533     grep -v '^ *+' conftest.er1 >conftest.err
12534     rm -f conftest.er1
12535     cat conftest.err >&5
12536     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 ayin 1.106 (exit $ac_status); } &&
12538     { ac_try='test -z "$ac_cxx_werror_flag"
12539     || test ! -s conftest.err'
12540     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541     (eval $ac_try) 2>&5
12542     ac_status=$?
12543     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544     (exit $ac_status); }; } &&
12545     { ac_try='test -s conftest.$ac_objext'
12546     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547     (eval $ac_try) 2>&5
12548     ac_status=$?
12549     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550     (exit $ac_status); }; }; then
12551 root 1.39 ac_header_compiler=yes
12552     else
12553     echo "$as_me: failed program was:" >&5
12554     sed 's/^/| /' conftest.$ac_ext >&5
12555 root 1.31
12556 ayin 1.106 ac_header_compiler=no
12557 root 1.31 fi
12558 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12559     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12560     echo "${ECHO_T}$ac_header_compiler" >&6
12561 pcg 1.24
12562 root 1.39 # Is the header present?
12563 ayin 1.106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12564     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12565 root 1.39 cat >conftest.$ac_ext <<_ACEOF
12566     /* confdefs.h. */
12567 pcg 1.24 _ACEOF
12568 root 1.39 cat confdefs.h >>conftest.$ac_ext
12569     cat >>conftest.$ac_ext <<_ACEOF
12570     /* end confdefs.h. */
12571     #include <$ac_header>
12572 pcg 1.11 _ACEOF
12573 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12574     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12575 root 1.39 ac_status=$?
12576     grep -v '^ *+' conftest.er1 >conftest.err
12577     rm -f conftest.er1
12578     cat conftest.err >&5
12579     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 ayin 1.106 (exit $ac_status); } >/dev/null; then
12581     if test -s conftest.err; then
12582     ac_cpp_err=$ac_cxx_preproc_warn_flag
12583     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12584     else
12585     ac_cpp_err=
12586     fi
12587     else
12588     ac_cpp_err=yes
12589     fi
12590     if test -z "$ac_cpp_err"; then
12591 root 1.39 ac_header_preproc=yes
12592     else
12593     echo "$as_me: failed program was:" >&5
12594     sed 's/^/| /' conftest.$ac_ext >&5
12595 pcg 1.1
12596 root 1.39 ac_header_preproc=no
12597 pcg 1.1 fi
12598 root 1.39 rm -f conftest.err conftest.$ac_ext
12599 ayin 1.106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12600     echo "${ECHO_T}$ac_header_preproc" >&6
12601 pcg 1.1
12602 root 1.39 # So? What about this header?
12603     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12604     yes:no: )
12605     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12606     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12608     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12609     ac_header_preproc=yes
12610     ;;
12611     no:yes:* )
12612     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12613     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12614     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12615     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12616     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12617     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12618     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12619     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12620     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12621     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12622     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12623     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12624 ayin 1.106 (
12625     cat <<\_ASBOX
12626     ## ------------------------------------------ ##
12627     ## Report this to the AC_PACKAGE_NAME lists. ##
12628     ## ------------------------------------------ ##
12629     _ASBOX
12630     ) |
12631     sed "s/^/$as_me: WARNING: /" >&2
12632 root 1.39 ;;
12633     esac
12634 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_header" >&5
12635     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12636     if eval "test \"\${$as_ac_Header+set}\" = set"; then
12637 root 1.39 echo $ECHO_N "(cached) $ECHO_C" >&6
12638     else
12639     eval "$as_ac_Header=\$ac_header_preproc"
12640 pcg 1.1 fi
12641 ayin 1.106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12642     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12643 pcg 1.1
12644     fi
12645 root 1.39 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12646     cat >>confdefs.h <<_ACEOF
12647     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12648 pcg 1.11 _ACEOF
12649 pcg 1.1
12650 root 1.39 else
12651     support_xft=no
12652 pcg 1.1 fi
12653 pcg 1.11
12654 root 1.39 done
12655 pcg 1.1
12656 pcg 1.11
12657 ayin 1.106 echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12658     echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
12659 root 1.39 if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12660     echo $ECHO_N "(cached) $ECHO_C" >&6
12661     else
12662     ac_check_lib_save_LIBS=$LIBS
12663     LIBS="-lXft $LIBS"
12664     cat >conftest.$ac_ext <<_ACEOF
12665     /* confdefs.h. */
12666     _ACEOF
12667     cat confdefs.h >>conftest.$ac_ext
12668     cat >>conftest.$ac_ext <<_ACEOF
12669     /* end confdefs.h. */
12670    
12671 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
12672 root 1.39 #ifdef __cplusplus
12673     extern "C"
12674     #endif
12675 ayin 1.106 /* We use char because int might match the return type of a gcc2
12676     builtin and then its argument prototype would still apply. */
12677 root 1.39 char XftDrawString32 ();
12678     int
12679     main ()
12680     {
12681 ayin 1.106 XftDrawString32 ();
12682 root 1.39 ;
12683     return 0;
12684     }
12685     _ACEOF
12686     rm -f conftest.$ac_objext conftest$ac_exeext
12687 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12688     (eval $ac_link) 2>conftest.er1
12689 root 1.39 ac_status=$?
12690     grep -v '^ *+' conftest.er1 >conftest.err
12691     rm -f conftest.er1
12692     cat conftest.err >&5
12693     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 ayin 1.106 (exit $ac_status); } &&
12695     { ac_try='test -z "$ac_cxx_werror_flag"
12696     || test ! -s conftest.err'
12697     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12698     (eval $ac_try) 2>&5
12699     ac_status=$?
12700     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701     (exit $ac_status); }; } &&
12702     { ac_try='test -s conftest$ac_exeext'
12703     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704     (eval $ac_try) 2>&5
12705     ac_status=$?
12706     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707     (exit $ac_status); }; }; then
12708 root 1.39 ac_cv_lib_Xft_XftDrawString32=yes
12709     else
12710     echo "$as_me: failed program was:" >&5
12711     sed 's/^/| /' conftest.$ac_ext >&5
12712    
12713 ayin 1.106 ac_cv_lib_Xft_XftDrawString32=no
12714 root 1.39 fi
12715 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
12716 root 1.39 conftest$ac_exeext conftest.$ac_ext
12717     LIBS=$ac_check_lib_save_LIBS
12718     fi
12719 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
12720     echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
12721 root 1.39 if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
12722     cat >>confdefs.h <<_ACEOF
12723     #define HAVE_LIBXFT 1
12724     _ACEOF
12725    
12726     LIBS="-lXft $LIBS"
12727    
12728     else
12729     support_xft=no
12730     fi
12731    
12732    
12733     if test x$support_xft = xyes; then
12734    
12735     cat >>confdefs.h <<\_ACEOF
12736     #define XFT 1
12737     _ACEOF
12738    
12739     fi
12740     fi
12741     if test x$support_styles = xyes; then
12742    
12743     cat >>confdefs.h <<\_ACEOF
12744     #define ENABLE_STYLES 1
12745     _ACEOF
12746    
12747     fi
12748     if test x$support_iso14755 = xyes; then
12749    
12750     cat >>confdefs.h <<\_ACEOF
12751     #define ISO_14755 1
12752     _ACEOF
12753    
12754     fi
12755     if test x$support_8bitctrls = xyes; then
12756    
12757     cat >>confdefs.h <<\_ACEOF
12758     #define EIGHT_BIT_CONTROLS 1
12759     _ACEOF
12760    
12761     fi
12762     if test x$support_fading = xyes; then
12763    
12764     cat >>confdefs.h <<\_ACEOF
12765     #define OFF_FOCUS_FADING 1
12766     _ACEOF
12767    
12768     fi
12769     if test x$support_tinting = xyes; then
12770    
12771     cat >>confdefs.h <<\_ACEOF
12772     #define TINTING 1
12773     _ACEOF
12774    
12775     fi
12776     if test x$support_inheritpixmap = xyes; then
12777    
12778     cat >>confdefs.h <<\_ACEOF
12779 root 1.105 #define ENABLE_TRANSPARENCY 1
12780 root 1.39 _ACEOF
12781    
12782     fi
12783     if test x$support_keepscrolling = xno; then
12784    
12785     cat >>confdefs.h <<\_ACEOF
12786     #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12787     _ACEOF
12788    
12789     fi
12790     if test x$support_selectionscrolling = xyes; then
12791    
12792     cat >>confdefs.h <<\_ACEOF
12793     #define SELECTION_SCROLLING 1
12794     _ACEOF
12795    
12796     fi
12797 pcg 1.1 if test x$support_mousewheel = xyes; then
12798 pcg 1.11
12799     cat >>confdefs.h <<\_ACEOF
12800 pcg 1.1 #define MOUSE_WHEEL 1
12801 pcg 1.11 _ACEOF
12802 pcg 1.1
12803     fi
12804     if test x$support_mouseslipwheel = xyes; then
12805 pcg 1.11
12806     cat >>confdefs.h <<\_ACEOF
12807 pcg 1.1 #define MOUSE_SLIP_WHEELING 1
12808 pcg 1.11 _ACEOF
12809 pcg 1.1
12810     fi
12811 root 1.103 if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
12812 pcg 1.11
12813     cat >>confdefs.h <<\_ACEOF
12814 pcg 1.1 #define XPM_BACKGROUND 1
12815 pcg 1.11 _ACEOF
12816 pcg 1.1
12817     fi
12818 root 1.103
12819     if test x$support_afterimage = xyes; then
12820    
12821     cat >>confdefs.h <<\_ACEOF
12822     #define HAVE_AFTERIMAGE 1
12823     _ACEOF
12824    
12825     fi
12826    
12827     if test x$support_afterstep = xyes; then
12828    
12829     cat >>confdefs.h <<\_ACEOF
12830     #define AFTERSTEP_INTEGRATION 1
12831     _ACEOF
12832    
12833     fi
12834    
12835 pcg 1.1 if test x$support_scroll_rxvt = xyes; then
12836 pcg 1.11
12837     cat >>confdefs.h <<\_ACEOF
12838 pcg 1.1 #define RXVT_SCROLLBAR 1
12839 pcg 1.11 _ACEOF
12840 pcg 1.1
12841     scrolltypes="rxvt"
12842     fi
12843     if test x$support_scroll_next = xyes; then
12844 pcg 1.11
12845     cat >>confdefs.h <<\_ACEOF
12846 pcg 1.1 #define NEXT_SCROLLBAR 1
12847 pcg 1.11 _ACEOF
12848 pcg 1.1
12849     scrolltypes="$scrolltypes next"
12850     fi
12851     if test x$support_scroll_xterm = xyes; then
12852 pcg 1.11
12853     cat >>confdefs.h <<\_ACEOF
12854 pcg 1.1 #define XTERM_SCROLLBAR 1
12855 pcg 1.11 _ACEOF
12856 pcg 1.1
12857     scrolltypes="$scrolltypes xterm"
12858     fi
12859 pcg 1.11 if test x$support_scroll_plain = xyes; then
12860    
12861     cat >>confdefs.h <<\_ACEOF
12862     #define PLAIN_SCROLLBAR 1
12863     _ACEOF
12864    
12865     scrolltypes="$scrolltypes plain"
12866     fi
12867 pcg 1.1 if test x$support_pointer_blank = xyes; then
12868 pcg 1.11
12869     cat >>confdefs.h <<\_ACEOF
12870 pcg 1.1 #define POINTER_BLANK 1
12871 pcg 1.11 _ACEOF
12872 pcg 1.1
12873     fi
12874 pcg 1.11 if test x$support_text_blink = xyes; then
12875    
12876     cat >>confdefs.h <<\_ACEOF
12877     #define TEXT_BLINK 1
12878     _ACEOF
12879 pcg 1.1
12880     fi
12881     if test x$support_unicode3 = xyes; then
12882 pcg 1.11
12883     cat >>confdefs.h <<\_ACEOF
12884 pcg 1.1 #define UNICODE_3 1
12885 pcg 1.11 _ACEOF
12886 pcg 1.1
12887     fi
12888 pcg 1.18 if test x$support_combining = xyes; then
12889    
12890     cat >>confdefs.h <<\_ACEOF
12891 pcg 1.20 #define ENABLE_COMBINING 1
12892 pcg 1.18 _ACEOF
12893    
12894     fi
12895 pcg 1.1 if test x$codesets = xall; then
12896 root 1.40 codesets=jp,jp-ext,kr,zh,zh-ext
12897 pcg 1.1 fi
12898 pcg 1.11
12899     cat >>confdefs.h <<\_ACEOF
12900 pcg 1.1 #define ENCODING_EU 1
12901 pcg 1.11 _ACEOF
12902 pcg 1.1
12903 pcg 1.13
12904 pcg 1.11 cat >>confdefs.h <<\_ACEOF
12905 pcg 1.1 #define ENCODING_VN 1
12906 pcg 1.11 _ACEOF
12907 pcg 1.13
12908 root 1.34 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
12909 pcg 1.13 case "$codeset" in
12910 pcg 1.11 JP )
12911     cat >>confdefs.h <<\_ACEOF
12912 pcg 1.1 #define ENCODING_JP 1
12913 pcg 1.11 _ACEOF
12914 pcg 1.1 ;;
12915 pcg 1.11 JP_EXT )
12916     cat >>confdefs.h <<\_ACEOF
12917 pcg 1.1 #define ENCODING_JP_EXT 1
12918 pcg 1.11 _ACEOF
12919 pcg 1.1 ;;
12920 pcg 1.11 KR )
12921     cat >>confdefs.h <<\_ACEOF
12922 pcg 1.1 #define ENCODING_KR 1
12923 pcg 1.11 _ACEOF
12924 pcg 1.1 ;;
12925 root 1.40 ZH )
12926 pcg 1.11 cat >>confdefs.h <<\_ACEOF
12927 root 1.40 #define ENCODING_ZH 1
12928 pcg 1.11 _ACEOF
12929 pcg 1.1 ;;
12930 root 1.40 ZH_EXT )
12931 pcg 1.11 cat >>confdefs.h <<\_ACEOF
12932 root 1.40 #define ENCODING_ZH_EXT 1
12933 pcg 1.11 _ACEOF
12934 pcg 1.1 ;;
12935     esac
12936     done
12937    
12938 root 1.60 IF_PERL=\#
12939     if test x$support_perl = xyes; then
12940     # Extract the first word of "perl5", so it can be a program name with args.
12941     set dummy perl5; ac_word=$2
12942 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_word" >&5
12943     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12944 root 1.60 if test "${ac_cv_path_PERL+set}" = set; then
12945     echo $ECHO_N "(cached) $ECHO_C" >&6
12946     else
12947     case $PERL in
12948     [\\/]* | ?:[\\/]*)
12949     ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12950     ;;
12951     *)
12952     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12953     for as_dir in $PATH
12954     do
12955     IFS=$as_save_IFS
12956     test -z "$as_dir" && as_dir=.
12957     for ac_exec_ext in '' $ac_executable_extensions; do
12958 ayin 1.106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12959 root 1.60 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12961     break 2
12962     fi
12963     done
12964     done
12965    
12966     ;;
12967     esac
12968     fi
12969     PERL=$ac_cv_path_PERL
12970 ayin 1.106
12971 root 1.60 if test -n "$PERL"; then
12972 ayin 1.106 echo "$as_me:$LINENO: result: $PERL" >&5
12973     echo "${ECHO_T}$PERL" >&6
12974 root 1.60 else
12975 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
12976     echo "${ECHO_T}no" >&6
12977 root 1.60 fi
12978    
12979     # Extract the first word of "perl", so it can be a program name with args.
12980     set dummy perl; ac_word=$2
12981 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_word" >&5
12982     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12983 root 1.60 if test "${ac_cv_path_PERL+set}" = set; then
12984     echo $ECHO_N "(cached) $ECHO_C" >&6
12985     else
12986     case $PERL in
12987     [\\/]* | ?:[\\/]*)
12988     ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12989     ;;
12990     *)
12991     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12992     for as_dir in $PATH
12993     do
12994     IFS=$as_save_IFS
12995     test -z "$as_dir" && as_dir=.
12996     for ac_exec_ext in '' $ac_executable_extensions; do
12997 ayin 1.106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12998 root 1.60 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13000     break 2
13001     fi
13002     done
13003     done
13004    
13005     ;;
13006     esac
13007     fi
13008     PERL=$ac_cv_path_PERL
13009 ayin 1.106
13010 root 1.60 if test -n "$PERL"; then
13011 ayin 1.106 echo "$as_me:$LINENO: result: $PERL" >&5
13012     echo "${ECHO_T}$PERL" >&6
13013 root 1.60 else
13014 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
13015     echo "${ECHO_T}no" >&6
13016 root 1.60 fi
13017    
13018    
13019 ayin 1.106 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
13020     echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
13021 root 1.60 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13022    
13023 root 1.62 save_CXXFLAGS="$CXXFLAGS"
13024     save_LIBS="$LIBS"
13025     CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13026     LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13027     cat >conftest.$ac_ext <<_ACEOF
13028     /* confdefs.h. */
13029     _ACEOF
13030     cat confdefs.h >>conftest.$ac_ext
13031     cat >>conftest.$ac_ext <<_ACEOF
13032     /* end confdefs.h. */
13033    
13034     #include <EXTERN.h>
13035     #include <perl.h>
13036     #include <XSUB.h>
13037    
13038     int
13039     main ()
13040     {
13041    
13042     PerlInterpreter *perl = perl_alloc ();
13043    
13044     ;
13045     return 0;
13046     }
13047     _ACEOF
13048     rm -f conftest.$ac_objext conftest$ac_exeext
13049 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13050     (eval $ac_link) 2>conftest.er1
13051 root 1.62 ac_status=$?
13052     grep -v '^ *+' conftest.er1 >conftest.err
13053     rm -f conftest.er1
13054     cat conftest.err >&5
13055     echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 ayin 1.106 (exit $ac_status); } &&
13057     { ac_try='test -z "$ac_cxx_werror_flag"
13058     || test ! -s conftest.err'
13059     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060     (eval $ac_try) 2>&5
13061     ac_status=$?
13062     echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063     (exit $ac_status); }; } &&
13064     { ac_try='test -s conftest$ac_exeext'
13065     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066     (eval $ac_try) 2>&5
13067     ac_status=$?
13068     echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069     (exit $ac_status); }; }; then
13070 root 1.62 rxvt_perl_link=yes
13071     else
13072     echo "$as_me: failed program was:" >&5
13073     sed 's/^/| /' conftest.$ac_ext >&5
13074    
13075 ayin 1.106 rxvt_perl_link=no
13076 root 1.62 fi
13077 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
13078 root 1.62 conftest$ac_exeext conftest.$ac_ext
13079     CXXFLAGS="$save_CXXFLAGS"
13080     LIBS="$save_LIBS"
13081    
13082     if test x$rxvt_perl_link = xyes; then
13083 ayin 1.106 echo "$as_me:$LINENO: result: ok" >&5
13084     echo "${ECHO_T}ok" >&6
13085 root 1.62
13086 root 1.60 cat >>confdefs.h <<\_ACEOF
13087     #define ENABLE_PERL 1
13088     _ACEOF
13089    
13090 root 1.62 IF_PERL=
13091     PERL_O=rxvtperl.o
13092     PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13093     PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13094     PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13095     else
13096 root 1.77 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
13097     echo "$as_me: error: no, unable to link" >&2;}
13098     { (exit 1); exit 1; }; }
13099 root 1.62 fi
13100 root 1.60 else
13101 root 1.77 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
13102     echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
13103     { (exit 1); exit 1; }; }
13104 root 1.60 fi
13105     fi
13106    
13107    
13108    
13109    
13110    
13111    
13112    
13113 root 1.66 if test x$support_perl = xyes; then
13114 root 1.64 support_frills=yes
13115     fi
13116    
13117 ayin 1.106 if test x$support_frills = xyes; then
13118    
13119     cat >>confdefs.h <<\_ACEOF
13120     #define ENABLE_FRILLS 1
13121     _ACEOF
13122    
13123     fi
13124    
13125 pcg 1.1
13126    
13127    
13128    
13129    
13130    
13131    
13132    
13133    
13134    
13135 root 1.103
13136    
13137 pcg 1.1 test "$program_prefix" != NONE &&
13138 ayin 1.106 program_transform_name="s,^,$program_prefix,;$program_transform_name"
13139 pcg 1.1 # Use a double $ so make ignores it.
13140     test "$program_suffix" != NONE &&
13141 ayin 1.106 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
13142 pcg 1.11 # Double any \ or $. echo might interpret backslashes.
13143     # By default was `s,x,x', remove it if useless.
13144     cat <<\_ACEOF >conftest.sed
13145     s/[\\$]/&&/g;s/;s,x,x,$//
13146     _ACEOF
13147     program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13148 ayin 1.106 rm conftest.sed
13149 pcg 1.1
13150    
13151    
13152    
13153    
13154     if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13155     include_stdint_h="#include <stdint.h>"
13156     else
13157     include_stdint_h="/* #include <stdint.h> */"
13158 pcg 1.11 fi
13159 pcg 1.1 if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13160 pcg 1.18 include_stdarg_h="#include <cstdarg>"
13161 pcg 1.1 else
13162 pcg 1.18 include_stdarg_h="/* #include <cstdarg> */"
13163 pcg 1.11 fi
13164 pcg 1.1 if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13165 pcg 1.18 include_stdlib_h="#include <cstdlib>"
13166 pcg 1.1 else
13167 pcg 1.18 include_stdlib_h="/* #include <cstdlib> */"
13168 pcg 1.11 fi
13169 pcg 1.1 if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13170     include_unistd_h="#include <unistd.h>"
13171     else
13172     include_unistd_h="/* #include <unistd.h> */"
13173 pcg 1.11 fi
13174 pcg 1.1 if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13175 pcg 1.18 include_string_h="#include <cstring>"
13176 pcg 1.1 else
13177 pcg 1.18 include_string_h="/* #include <cstring> */"
13178 pcg 1.11 fi
13179 pcg 1.1 if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13180     include_fcntl_h="#include <fcntl.h>"
13181     else
13182     include_fcntl_h="/* #include <fcntl.h> */"
13183 pcg 1.11 fi
13184 pcg 1.1 if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13185     include_util_h="#include <util.h>"
13186     else
13187     include_util_h="/* #include <util.h> */"
13188 pcg 1.11 fi
13189 pcg 1.1 if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13190     include_assert_h="#include <assert.h>"
13191     else
13192     include_assert_h="/* #include <assert.h> */"
13193 pcg 1.11 fi
13194 pcg 1.1 if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13195     include_sys_ioctl_h="#include <sys/ioctl.h>"
13196     else
13197     include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13198 pcg 1.11 fi
13199 pcg 1.1 if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13200     include_sys_select_h="#include <sys/select.h>"
13201     else
13202     include_sys_select_h="/* #include <sys/select.h> */"
13203 pcg 1.11 fi
13204 pcg 1.1 if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13205     include_sys_strredir_h="#include <sys/strredir.h>"
13206     else
13207     include_sys_strredir_h="/* #include <sys/strredir.h> */"
13208 pcg 1.11 fi
13209 pcg 1.1 if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13210     include_sys_time_h="#include <sys/time.h>"
13211     else
13212     include_sys_time_h="/* #include <sys/time.h> */"
13213 pcg 1.11 fi
13214 pcg 1.1 if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13215     include_time_h="#include <time.h>"
13216     else
13217     include_time_h="/* #include <time.h> */"
13218 pcg 1.11 fi
13219 pcg 1.1
13220 ayin 1.106 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13221 root 1.32
13222 pcg 1.11 cat >confcache <<\_ACEOF
13223 pcg 1.1 # This file is a shell script that caches the results of configure
13224     # tests run on this system so they can be shared between configure
13225 pcg 1.11 # scripts and configure runs, see configure's option --config-cache.
13226     # It is not useful on other systems. If it contains results you don't
13227     # want to keep, you may remove or edit it.
13228 pcg 1.1 #
13229 pcg 1.11 # config.status only pays attention to the cache file if you give it
13230     # the --recheck option to rerun configure.
13231 pcg 1.1 #
13232 pcg 1.11 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13233     # loading this file, other *unset* `ac_cv_foo' will be assigned the
13234     # following values.
13235    
13236     _ACEOF
13237    
13238 pcg 1.1 # The following way of writing the cache mishandles newlines in values,
13239     # but we know of no workaround that is simple, portable, and efficient.
13240 ayin 1.106 # So, don't put newlines in cache variables' values.
13241 pcg 1.1 # Ultrix sh set writes to stderr and can't be redirected directly,
13242     # and sets the high bit in the cache file unless we assign to the vars.
13243 ayin 1.106 {
13244 pcg 1.11 (set) 2>&1 |
13245 ayin 1.106 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13246     *ac_space=\ *)
13247 pcg 1.11 # `set' does not quote correctly, so add quotes (double-quote
13248     # substitution turns \\\\ into \\, and sed turns \\ into \).
13249     sed -n \
13250     "s/'/'\\\\''/g;
13251     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13252 ayin 1.106 ;;
13253 pcg 1.11 *)
13254     # `set' quotes correctly as required by POSIX, so do not add quotes.
13255 ayin 1.106 sed -n \
13256     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13257 pcg 1.11 ;;
13258 ayin 1.106 esac;
13259     } |
13260 pcg 1.11 sed '
13261     t clear
13262 ayin 1.106 : clear
13263 pcg 1.11 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13264     t end
13265 ayin 1.106 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13266     : end' >>confcache
13267     if diff $cache_file confcache >/dev/null 2>&1; then :; else
13268     if test -w $cache_file; then
13269     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13270 pcg 1.11 cat confcache >$cache_file
13271 pcg 1.1 else
13272 ayin 1.106 echo "not updating unwritable cache $cache_file"
13273 pcg 1.1 fi
13274     fi
13275     rm -f confcache
13276    
13277     test "x$prefix" = xNONE && prefix=$ac_default_prefix
13278     # Let make expand exec_prefix.
13279     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13280    
13281 ayin 1.106 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13282     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13283     # trailing colons and then remove the whole line if VPATH becomes empty
13284     # (actually we leave an empty line to preserve line numbers).
13285     if test "x$srcdir" = x.; then
13286     ac_vpsub='/^[ ]*VPATH[ ]*=/{
13287     s/:*\$(srcdir):*/:/;
13288     s/:*\${srcdir}:*/:/;
13289     s/:*@srcdir@:*/:/;
13290     s/^\([^=]*=[ ]*\):*/\1/;
13291     s/:*$//;
13292     s/^[^=]*=[ ]*$//;
13293     }'
13294     fi
13295    
13296 pcg 1.11 DEFS=-DHAVE_CONFIG_H
13297    
13298     ac_libobjs=
13299     ac_ltlibobjs=
13300     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13301     # 1. Remove the extension, and $U if already installed.
13302 ayin 1.106 ac_i=`echo "$ac_i" |
13303     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13304     # 2. Add them.
13305     ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13306     ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13307 pcg 1.11 done
13308     LIBOBJS=$ac_libobjs
13309    
13310     LTLIBOBJS=$ac_ltlibobjs
13311    
13312 pcg 1.1
13313    
13314     : ${CONFIG_STATUS=./config.status}
13315 pcg 1.11 ac_clean_files_save=$ac_clean_files
13316     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13317     { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13318     echo "$as_me: creating $CONFIG_STATUS" >&6;}
13319     cat >$CONFIG_STATUS <<_ACEOF
13320     #! $SHELL
13321     # Generated by $as_me.
13322 pcg 1.1 # Run this file to recreate the current configuration.
13323     # Compiler output produced by configure, useful for debugging
13324 pcg 1.11 # configure, is in config.log if it exists.
13325    
13326     debug=false
13327     ac_cs_recheck=false
13328     ac_cs_silent=false
13329     SHELL=\${CONFIG_SHELL-$SHELL}
13330     _ACEOF
13331    
13332     cat >>$CONFIG_STATUS <<\_ACEOF
13333     ## --------------------- ##
13334     ## M4sh Initialization. ##
13335     ## --------------------- ##
13336    
13337 ayin 1.106 # Be Bourne compatible
13338 pcg 1.11 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13339     emulate sh
13340     NULLCMD=:
13341     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13342     # is contrary to our usage. Disable this feature.
13343     alias -g '${1+"$@"}'='"$@"'
13344 ayin 1.106 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13345     set -o posix
13346     fi
13347     DUALCASE=1; export DUALCASE # for MKS sh
13348    
13349     # Support unset when possible.
13350     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13351     as_unset=unset
13352 root 1.105 else
13353 ayin 1.106 as_unset=false
13354 pcg 1.11 fi
13355    
13356    
13357 ayin 1.106 # Work around bugs in pre-3.0 UWIN ksh.
13358     $as_unset ENV MAIL MAILPATH
13359     PS1='$ '
13360     PS2='> '
13361 root 1.105 PS4='+ '
13362    
13363     # NLS nuisances.
13364     for as_var in \
13365     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13366     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13367     LC_TELEPHONE LC_TIME
13368     do
13369     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13370     eval $as_var=C; export $as_var
13371     else
13372 ayin 1.106 $as_unset $as_var
13373 ayin 1.104 fi
13374 root 1.105 done
13375    
13376     # Required to use basename.
13377 ayin 1.106 if expr a : '\(a\)' >/dev/null 2>&1; then
13378 root 1.105 as_expr=expr
13379     else
13380     as_expr=false
13381     fi
13382    
13383 ayin 1.106 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13384 root 1.105 as_basename=basename
13385     else
13386     as_basename=false
13387     fi
13388    
13389    
13390     # Name of the executable.
13391 ayin 1.106 as_me=`$as_basename "$0" ||
13392 root 1.105 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13393     X"$0" : 'X\(//\)$' \| \
13394 ayin 1.106 X"$0" : 'X\(/\)$' \| \
13395     . : '\(.\)' 2>/dev/null ||
13396 root 1.105 echo X/"$0" |
13397 ayin 1.106 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13398     /^X\/\(\/\/\)$/{ s//\1/; q; }
13399     /^X\/\(\/\).*/{ s//\1/; q; }
13400     s/.*/./; q'`
13401 root 1.105
13402    
13403 ayin 1.106 # PATH needs CR, and LINENO needs CR and PATH.
13404     # Avoid depending upon Character Ranges.
13405     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13406     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13407     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13408     as_cr_digits='0123456789'
13409     as_cr_alnum=$as_cr_Letters$as_cr_digits
13410    
13411     # The user is always right.
13412     if test "${PATH_SEPARATOR+set}" != set; then
13413     echo "#! /bin/sh" >conf$$.sh
13414     echo "exit 0" >>conf$$.sh
13415     chmod +x conf$$.sh
13416     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13417     PATH_SEPARATOR=';'
13418     else
13419     PATH_SEPARATOR=:
13420     fi
13421     rm -f conf$$.sh
13422     fi
13423 root 1.105
13424    
13425 pcg 1.11 as_lineno_1=$LINENO
13426     as_lineno_2=$LINENO
13427 ayin 1.106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13428 pcg 1.11 test "x$as_lineno_1" != "x$as_lineno_2" &&
13429 ayin 1.106 test "x$as_lineno_3" = "x$as_lineno_2" || {
13430     # Find who we are. Look in the path if we contain no path at all
13431     # relative or not.
13432     case $0 in
13433     *[\\/]* ) as_myself=$0 ;;
13434     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13435     for as_dir in $PATH
13436     do
13437     IFS=$as_save_IFS
13438     test -z "$as_dir" && as_dir=.
13439     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13440     done
13441    
13442     ;;
13443     esac
13444     # We did not find ourselves, most probably we were run as `sh COMMAND'
13445     # in which case we are not to be found in the path.
13446     if test "x$as_myself" = x; then
13447     as_myself=$0
13448     fi
13449     if test ! -f "$as_myself"; then
13450     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13451     echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13452     { (exit 1); exit 1; }; }
13453     fi
13454     case $CONFIG_SHELL in
13455     '')
13456     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13457     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13458     do
13459     IFS=$as_save_IFS
13460     test -z "$as_dir" && as_dir=.
13461     for as_base in sh bash ksh sh5; do
13462     case $as_dir in
13463     /*)
13464     if ("$as_dir/$as_base" -c '
13465     as_lineno_1=$LINENO
13466     as_lineno_2=$LINENO
13467     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13468     test "x$as_lineno_1" != "x$as_lineno_2" &&
13469     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13470     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13471     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13472     CONFIG_SHELL=$as_dir/$as_base
13473     export CONFIG_SHELL
13474     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13475     fi;;
13476     esac
13477     done
13478     done
13479     ;;
13480     esac
13481 pcg 1.11
13482     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13483     # uniformly replaced by the line number. The first 'sed' inserts a
13484 ayin 1.106 # line-number line before each line; the second 'sed' does the real
13485     # work. The second script uses 'N' to pair each line-number line
13486     # with the numbered line, and appends trailing '-' during
13487     # substitution so that $LINENO is not a special case at line end.
13488 pcg 1.11 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13489 ayin 1.106 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13490     sed '=' <$as_myself |
13491 pcg 1.11 sed '
13492     N
13493 ayin 1.106 s,$,-,
13494     : loop
13495     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13496 pcg 1.11 t loop
13497 ayin 1.106 s,-$,,
13498     s,^['$as_cr_digits']*\n,,
13499 pcg 1.11 ' >$as_me.lineno &&
13500 ayin 1.106 chmod +x $as_me.lineno ||
13501     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13502     echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13503 pcg 1.11 { (exit 1); exit 1; }; }
13504    
13505     # Don't try to exec as it changes $[0], causing all sort of problems
13506     # (the dirname of $[0] is not the place where we might find the
13507 ayin 1.106 # original and so on. Autoconf is especially sensible to this).
13508     . ./$as_me.lineno
13509 pcg 1.11 # Exit status is that of the last command.
13510     exit
13511     }
13512    
13513    
13514 ayin 1.106 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13515     *c*,-n*) ECHO_N= ECHO_C='
13516     ' ECHO_T=' ' ;;
13517     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13518     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13519 pcg 1.11 esac
13520    
13521 ayin 1.106 if expr a : '\(a\)' >/dev/null 2>&1; then
13522 pcg 1.11 as_expr=expr
13523     else
13524     as_expr=false
13525     fi
13526    
13527     rm -f conf$$ conf$$.exe conf$$.file
13528     echo >conf$$.file
13529     if ln -s conf$$.file conf$$ 2>/dev/null; then
13530 ayin 1.106 # We could just check for DJGPP; but this test a) works b) is more generic
13531     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13532     if test -f conf$$.exe; then
13533     # Don't use ln at all; we don't have any links
13534 pcg 1.11 as_ln_s='cp -p'
13535 ayin 1.106 else
13536     as_ln_s='ln -s'
13537     fi
13538 pcg 1.11 elif ln conf$$.file conf$$ 2>/dev/null; then
13539     as_ln_s=ln
13540     else
13541     as_ln_s='cp -p'
13542     fi
13543 ayin 1.106 rm -f conf$$ conf$$.exe conf$$.file
13544 pcg 1.11
13545     if mkdir -p . 2>/dev/null; then
13546     as_mkdir_p=:
13547     else
13548     test -d ./-p && rmdir ./-p
13549     as_mkdir_p=false
13550     fi
13551    
13552 ayin 1.106 as_executable_p="test -f"
13553 pcg 1.11
13554     # Sed expression to map a string onto a valid CPP name.
13555     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13556    
13557     # Sed expression to map a string onto a valid variable name.
13558     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13559    
13560    
13561 ayin 1.106 # IFS
13562     # We need space, tab and new line, in precisely that order.
13563     as_nl='
13564     '
13565     IFS=" $as_nl"
13566    
13567     # CDPATH.
13568     $as_unset CDPATH
13569    
13570 pcg 1.11 exec 6>&1
13571    
13572 ayin 1.106 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13573 pcg 1.11 # report actual input values of CONFIG_FILES etc. instead of their
13574 ayin 1.106 # values after options handling. Logging --version etc. is OK.
13575     exec 5>>config.log
13576     {
13577     echo
13578     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13579     ## Running $as_me. ##
13580     _ASBOX
13581     } >&5
13582     cat >&5 <<_CSEOF
13583    
13584 pcg 1.11 This file was extended by $as_me, which was
13585 ayin 1.106 generated by GNU Autoconf 2.59. Invocation command line was
13586 pcg 1.11
13587     CONFIG_FILES = $CONFIG_FILES
13588     CONFIG_HEADERS = $CONFIG_HEADERS
13589     CONFIG_LINKS = $CONFIG_LINKS
13590     CONFIG_COMMANDS = $CONFIG_COMMANDS
13591     $ $0 $@
13592    
13593 ayin 1.106 _CSEOF
13594     echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13595     echo >&5
13596 pcg 1.11 _ACEOF
13597    
13598     # Files that config.status was made for.
13599 ayin 1.106 if test -n "$ac_config_files"; then
13600     echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13601     fi
13602    
13603     if test -n "$ac_config_headers"; then
13604     echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13605     fi
13606    
13607     if test -n "$ac_config_links"; then
13608     echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13609     fi
13610 ayin 1.104
13611 ayin 1.106 if test -n "$ac_config_commands"; then
13612     echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13613     fi
13614 pcg 1.11
13615     cat >>$CONFIG_STATUS <<\_ACEOF
13616 ayin 1.106
13617 pcg 1.11 ac_cs_usage="\
13618     \`$as_me' instantiates files from templates according to the
13619     current configuration.
13620    
13621     Usage: $0 [OPTIONS] [FILE]...
13622    
13623     -h, --help print this help, then exit
13624 ayin 1.106 -V, --version print version number, then exit
13625 pcg 1.11 -q, --quiet do not print progress messages
13626     -d, --debug don't remove temporary files
13627     --recheck update $as_me by reconfiguring in the same conditions
13628     --file=FILE[:TEMPLATE]
13629     instantiate the configuration file FILE
13630     --header=FILE[:TEMPLATE]
13631     instantiate the configuration header FILE
13632    
13633     Configuration files:
13634     $config_files
13635    
13636     Configuration headers:
13637     $config_headers
13638    
13639     Report bugs to <bug-autoconf@gnu.org>."
13640 ayin 1.106 _ACEOF
13641 root 1.105
13642 pcg 1.11 cat >>$CONFIG_STATUS <<_ACEOF
13643     ac_cs_version="\\
13644     config.status
13645 ayin 1.106 configured by $0, generated by GNU Autoconf 2.59,
13646     with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13647 pcg 1.11
13648 ayin 1.106 Copyright (C) 2003 Free Software Foundation, Inc.
13649 pcg 1.11 This config.status script is free software; the Free Software Foundation
13650     gives unlimited permission to copy, distribute and modify it."
13651 ayin 1.106 srcdir=$srcdir
13652     INSTALL="$INSTALL"
13653 pcg 1.11 _ACEOF
13654    
13655     cat >>$CONFIG_STATUS <<\_ACEOF
13656     # If no file are specified by the user, then we need to provide default
13657     # value. By we need to know if files were specified by the user.
13658     ac_need_defaults=:
13659     while test $# != 0
13660 pcg 1.1 do
13661 pcg 1.11 case $1 in
13662     --*=*)
13663 ayin 1.106 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13664     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13665 pcg 1.11 ac_shift=:
13666     ;;
13667 ayin 1.106 -*)
13668 pcg 1.11 ac_option=$1
13669     ac_optarg=$2
13670     ac_shift=shift
13671     ;;
13672 ayin 1.106 *) # This is not an option, so the user has probably given explicit
13673     # arguments.
13674     ac_option=$1
13675     ac_need_defaults=false;;
13676 pcg 1.11 esac
13677    
13678     case $ac_option in
13679     # Handling of the options.
13680 ayin 1.106 _ACEOF
13681     cat >>$CONFIG_STATUS <<\_ACEOF
13682 pcg 1.1 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13683 pcg 1.11 ac_cs_recheck=: ;;
13684 ayin 1.106 --version | --vers* | -V )
13685     echo "$ac_cs_version"; exit 0 ;;
13686     --he | --h)
13687     # Conflict between --help and --header
13688     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13689     Try \`$0 --help' for more information." >&5
13690     echo "$as_me: error: ambiguous option: $1
13691     Try \`$0 --help' for more information." >&2;}
13692     { (exit 1); exit 1; }; };;
13693     --help | --hel | -h )
13694     echo "$ac_cs_usage"; exit 0 ;;
13695     --debug | --d* | -d )
13696 pcg 1.11 debug=: ;;
13697     --file | --fil | --fi | --f )
13698     $ac_shift
13699     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13700     ac_need_defaults=false;;
13701     --header | --heade | --head | --hea )
13702     $ac_shift
13703     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13704     ac_need_defaults=false;;
13705     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13706     | -silent | --silent | --silen | --sile | --sil | --si | --s)
13707     ac_cs_silent=: ;;
13708    
13709     # This is an error.
13710 ayin 1.106 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13711     Try \`$0 --help' for more information." >&5
13712     echo "$as_me: error: unrecognized option: $1
13713     Try \`$0 --help' for more information." >&2;}
13714 pcg 1.11 { (exit 1); exit 1; }; } ;;
13715    
13716 ayin 1.106 *) ac_config_targets="$ac_config_targets $1" ;;
13717 pcg 1.11
13718     esac
13719     shift
13720     done
13721    
13722     ac_configure_extra_args=
13723    
13724     if $ac_cs_silent; then
13725     exec 6>/dev/null
13726     ac_configure_extra_args="$ac_configure_extra_args --silent"
13727     fi
13728    
13729     _ACEOF
13730     cat >>$CONFIG_STATUS <<_ACEOF
13731     if \$ac_cs_recheck; then
13732 ayin 1.106 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13733     exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13734 pcg 1.11 fi
13735    
13736     _ACEOF
13737    
13738 ayin 1.106
13739    
13740    
13741 ayin 1.104
13742 root 1.105 cat >>$CONFIG_STATUS <<\_ACEOF
13743 pcg 1.11 for ac_config_target in $ac_config_targets
13744     do
13745 ayin 1.106 case "$ac_config_target" in
13746     # Handling of arguments.
13747     "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13748     "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13749     "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13750     "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
13751     "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
13752 pcg 1.11 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13753     echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13754     { (exit 1); exit 1; }; };;
13755 pcg 1.1 esac
13756     done
13757    
13758 pcg 1.11 # If the user did not use the arguments to specify the items to instantiate,
13759     # then the envvar interface is used. Set only those that are not.
13760     # We use the long form for the default assignment because of an extremely
13761     # bizarre bug on SunOS 4.1.3.
13762     if $ac_need_defaults; then
13763     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13764     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13765     fi
13766    
13767     # Have a temporary directory for convenience. Make it in the build tree
13768 ayin 1.106 # simply because there is no reason to put it here, and in addition,
13769 pcg 1.11 # creating and moving files from /tmp can sometimes cause problems.
13770 ayin 1.106 # Create a temporary directory, and hook for its removal unless debugging.
13771 pcg 1.11 $debug ||
13772     {
13773 ayin 1.106 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13774 pcg 1.11 trap '{ (exit 1); exit 1; }' 1 2 13 15
13775     }
13776 ayin 1.106
13777 pcg 1.11 # Create a (secure) tmp directory for tmp files.
13778    
13779     {
13780 ayin 1.106 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13781 pcg 1.11 test -n "$tmp" && test -d "$tmp"
13782     } ||
13783     {
13784 ayin 1.106 tmp=./confstat$$-$RANDOM
13785     (umask 077 && mkdir $tmp)
13786 pcg 1.11 } ||
13787     {
13788     echo "$me: cannot create a temporary directory in ." >&2
13789     { (exit 1); exit 1; }
13790     }
13791    
13792 ayin 1.106 _ACEOF
13793    
13794     cat >>$CONFIG_STATUS <<_ACEOF
13795    
13796 root 1.105 #
13797 ayin 1.106 # CONFIG_FILES section.
13798 root 1.105 #
13799    
13800     # No need to generate the scripts if there are no CONFIG_FILES.
13801     # This happens for instance when ./config.status config.h
13802 ayin 1.106 if test -n "\$CONFIG_FILES"; then
13803     # Protect against being on the right side of a sed subst in config.status.
13804     sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13805     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13806     s,@SHELL@,$SHELL,;t t
13807     s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13808     s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13809     s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13810     s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13811     s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13812     s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13813     s,@exec_prefix@,$exec_prefix,;t t
13814     s,@prefix@,$prefix,;t t
13815     s,@program_transform_name@,$program_transform_name,;t t
13816     s,@bindir@,$bindir,;t t
13817     s,@sbindir@,$sbindir,;t t
13818     s,@libexecdir@,$libexecdir,;t t
13819     s,@datadir@,$datadir,;t t
13820     s,@sysconfdir@,$sysconfdir,;t t
13821     s,@sharedstatedir@,$sharedstatedir,;t t
13822     s,@localstatedir@,$localstatedir,;t t
13823     s,@libdir@,$libdir,;t t
13824     s,@includedir@,$includedir,;t t
13825     s,@oldincludedir@,$oldincludedir,;t t
13826     s,@infodir@,$infodir,;t t
13827     s,@mandir@,$mandir,;t t
13828     s,@build_alias@,$build_alias,;t t
13829     s,@host_alias@,$host_alias,;t t
13830     s,@target_alias@,$target_alias,;t t
13831     s,@DEFS@,$DEFS,;t t
13832     s,@ECHO_C@,$ECHO_C,;t t
13833     s,@ECHO_N@,$ECHO_N,;t t
13834     s,@ECHO_T@,$ECHO_T,;t t
13835     s,@LIBS@,$LIBS,;t t
13836     s,@build@,$build,;t t
13837     s,@build_cpu@,$build_cpu,;t t
13838     s,@build_vendor@,$build_vendor,;t t
13839     s,@build_os@,$build_os,;t t
13840     s,@host@,$host,;t t
13841     s,@host_cpu@,$host_cpu,;t t
13842     s,@host_vendor@,$host_vendor,;t t
13843     s,@host_os@,$host_os,;t t
13844     s,@VERSION@,$VERSION,;t t
13845     s,@DATE@,$DATE,;t t
13846     s,@LSMDATE@,$LSMDATE,;t t
13847     s,@LIBVERSION@,$LIBVERSION,;t t
13848     s,@CC@,$CC,;t t
13849     s,@CFLAGS@,$CFLAGS,;t t
13850     s,@LDFLAGS@,$LDFLAGS,;t t
13851     s,@CPPFLAGS@,$CPPFLAGS,;t t
13852     s,@ac_ct_CC@,$ac_ct_CC,;t t
13853     s,@EXEEXT@,$EXEEXT,;t t
13854     s,@OBJEXT@,$OBJEXT,;t t
13855     s,@CXX@,$CXX,;t t
13856     s,@CXXFLAGS@,$CXXFLAGS,;t t
13857     s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13858     s,@CPP@,$CPP,;t t
13859     s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13860     s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13861     s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13862     s,@EGREP@,$EGREP,;t t
13863     s,@LINKER@,$LINKER,;t t
13864     s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
13865     s,@RXVTNAME@,$RXVTNAME,;t t
13866     s,@TIC@,$TIC,;t t
13867     s,@CXXCPP@,$CXXCPP,;t t
13868     s,@X_CFLAGS@,$X_CFLAGS,;t t
13869     s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13870     s,@X_LIBS@,$X_LIBS,;t t
13871     s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13872     s,@afterimage_config@,$afterimage_config,;t t
13873     s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
13874     s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
13875     s,@XPM_LIBS@,$XPM_LIBS,;t t
13876     s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
13877     s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
13878     s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
13879     s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
13880     s,@rxvt_intp_define@,$rxvt_intp_define,;t t
13881     s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
13882     s,@PKG_CONFIG@,$PKG_CONFIG,;t t
13883     s,@XFT_CONFIG@,$XFT_CONFIG,;t t
13884     s,@PERL@,$PERL,;t t
13885     s,@PERLLIB@,$PERLLIB,;t t
13886     s,@PERLFLAGS@,$PERLFLAGS,;t t
13887     s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
13888     s,@IF_PERL@,$IF_PERL,;t t
13889     s,@PERL_O@,$PERL_O,;t t
13890     s,@LIBAFTERIMAGE_CFLAGS@,$LIBAFTERIMAGE_CFLAGS,;t t
13891     s,@AFTERIMAGE_LIBS@,$AFTERIMAGE_LIBS,;t t
13892     s,@include_stdint_h@,$include_stdint_h,;t t
13893     s,@include_stdarg_h@,$include_stdarg_h,;t t
13894     s,@include_stdlib_h@,$include_stdlib_h,;t t
13895     s,@include_unistd_h@,$include_unistd_h,;t t
13896     s,@include_string_h@,$include_string_h,;t t
13897     s,@include_fcntl_h@,$include_fcntl_h,;t t
13898     s,@include_util_h@,$include_util_h,;t t
13899     s,@include_assert_h@,$include_assert_h,;t t
13900     s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
13901     s,@include_sys_select_h@,$include_sys_select_h,;t t
13902     s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
13903     s,@include_sys_time_h@,$include_sys_time_h,;t t
13904     s,@include_time_h@,$include_time_h,;t t
13905     s,@LIBOBJS@,$LIBOBJS,;t t
13906     s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13907     CEOF
13908    
13909     _ACEOF
13910    
13911     cat >>$CONFIG_STATUS <<\_ACEOF
13912     # Split the substitutions into bite-sized pieces for seds with
13913     # small command number limits, like on Digital OSF/1 and HP-UX.
13914     ac_max_sed_lines=48
13915     ac_sed_frag=1 # Number of current file.
13916     ac_beg=1 # First line for current file.
13917     ac_end=$ac_max_sed_lines # Line after last line for current file.
13918     ac_more_lines=:
13919     ac_sed_cmds=
13920     while $ac_more_lines; do
13921     if test $ac_beg -gt 1; then
13922     sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13923     else
13924     sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13925     fi
13926     if test ! -s $tmp/subs.frag; then
13927     ac_more_lines=false
13928     else
13929     # The purpose of the label and of the branching condition is to
13930     # speed up the sed processing (if there are no `@' at all, there
13931     # is no need to browse any of the substitutions).
13932     # These are the two extra sed commands mentioned above.
13933     (echo ':t
13934     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13935     if test -z "$ac_sed_cmds"; then
13936     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13937     else
13938     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13939     fi
13940     ac_sed_frag=`expr $ac_sed_frag + 1`
13941     ac_beg=$ac_end
13942     ac_end=`expr $ac_end + $ac_max_sed_lines`
13943     fi
13944     done
13945     if test -z "$ac_sed_cmds"; then
13946     ac_sed_cmds=cat
13947 root 1.105 fi
13948 ayin 1.106 fi # test -n "$CONFIG_FILES"
13949 ayin 1.104
13950 root 1.105 _ACEOF
13951 pcg 1.11 cat >>$CONFIG_STATUS <<\_ACEOF
13952 ayin 1.106 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13953     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13954     case $ac_file in
13955     - | *:- | *:-:* ) # input from stdin
13956     cat >$tmp/stdin
13957     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13958     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13959     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13960     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13961     * ) ac_file_in=$ac_file.in ;;
13962 ayin 1.102 esac
13963    
13964 ayin 1.106 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13965     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13966 pcg 1.11 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13967     X"$ac_file" : 'X\(//\)[^/]' \| \
13968     X"$ac_file" : 'X\(//\)$' \| \
13969 ayin 1.106 X"$ac_file" : 'X\(/\)' \| \
13970     . : '\(.\)' 2>/dev/null ||
13971 pcg 1.11 echo X"$ac_file" |
13972 ayin 1.106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13973     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13974     /^X\(\/\/\)$/{ s//\1/; q; }
13975     /^X\(\/\).*/{ s//\1/; q; }
13976     s/.*/./; q'`
13977     { if $as_mkdir_p; then
13978     mkdir -p "$ac_dir"
13979     else
13980     as_dir="$ac_dir"
13981 pcg 1.11 as_dirs=
13982 ayin 1.106 while test ! -d "$as_dir"; do
13983     as_dirs="$as_dir $as_dirs"
13984     as_dir=`(dirname "$as_dir") 2>/dev/null ||
13985 pcg 1.11 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13986     X"$as_dir" : 'X\(//\)[^/]' \| \
13987     X"$as_dir" : 'X\(//\)$' \| \
13988 ayin 1.106 X"$as_dir" : 'X\(/\)' \| \
13989     . : '\(.\)' 2>/dev/null ||
13990 pcg 1.11 echo X"$as_dir" |
13991 ayin 1.106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13992     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13993     /^X\(\/\/\)$/{ s//\1/; q; }
13994     /^X\(\/\).*/{ s//\1/; q; }
13995     s/.*/./; q'`
13996 pcg 1.11 done
13997 ayin 1.106 test ! -n "$as_dirs" || mkdir $as_dirs
13998     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13999     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14000 pcg 1.11 { (exit 1); exit 1; }; }; }
14001 ayin 1.106
14002 pcg 1.11 ac_builddir=.
14003    
14004 ayin 1.106 if test "$ac_dir" != .; then
14005 pcg 1.11 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14006 ayin 1.106 # A "../" for each directory in $ac_dir_suffix.
14007     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14008     else
14009     ac_dir_suffix= ac_top_builddir=
14010     fi
14011 pcg 1.11
14012     case $srcdir in
14013 ayin 1.106 .) # No --srcdir option. We are building in place.
14014 pcg 1.11 ac_srcdir=.
14015 ayin 1.106 if test -z "$ac_top_builddir"; then
14016     ac_top_srcdir=.
14017     else
14018     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14019     fi ;;
14020     [\\/]* | ?:[\\/]* ) # Absolute path.
14021 pcg 1.11 ac_srcdir=$srcdir$ac_dir_suffix;
14022 ayin 1.106 ac_top_srcdir=$srcdir ;;
14023     *) # Relative path.
14024     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14025     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14026 pcg 1.11 esac
14027    
14028 ayin 1.106 # Do not use `cd foo && pwd` to compute absolute paths, because
14029     # the directories may not exist.
14030     case `pwd` in
14031     .) ac_abs_builddir="$ac_dir";;
14032     *)
14033     case "$ac_dir" in
14034     .) ac_abs_builddir=`pwd`;;
14035     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14036     *) ac_abs_builddir=`pwd`/"$ac_dir";;
14037     esac;;
14038     esac
14039     case $ac_abs_builddir in
14040     .) ac_abs_top_builddir=${ac_top_builddir}.;;
14041     *)
14042     case ${ac_top_builddir}. in
14043     .) ac_abs_top_builddir=$ac_abs_builddir;;
14044     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14045     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14046     esac;;
14047     esac
14048     case $ac_abs_builddir in
14049     .) ac_abs_srcdir=$ac_srcdir;;
14050     *)
14051     case $ac_srcdir in
14052     .) ac_abs_srcdir=$ac_abs_builddir;;
14053     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14054     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14055     esac;;
14056     esac
14057     case $ac_abs_builddir in
14058     .) ac_abs_top_srcdir=$ac_top_srcdir;;
14059     *)
14060     case $ac_top_srcdir in
14061     .) ac_abs_top_srcdir=$ac_abs_builddir;;
14062     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14063     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14064     esac;;
14065     esac
14066 pcg 1.11
14067 pcg 1.1
14068 pcg 1.11 case $INSTALL in
14069     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14070 ayin 1.106 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14071 pcg 1.1 esac
14072    
14073 ayin 1.106 if test x"$ac_file" != x-; then
14074     { echo "$as_me:$LINENO: creating $ac_file" >&5
14075     echo "$as_me: creating $ac_file" >&6;}
14076     rm -f "$ac_file"
14077     fi
14078     # Let's still pretend it is `configure' which instantiates (i.e., don't
14079     # use $as_me), people would be surprised to read:
14080     # /* config.h. Generated by config.status. */
14081     if test x"$ac_file" = x-; then
14082     configure_input=
14083     else
14084     configure_input="$ac_file. "
14085     fi
14086     configure_input=$configure_input"Generated from `echo $ac_file_in |
14087     sed 's,.*/,,'` by configure."
14088    
14089     # First look for the input files in the build tree, otherwise in the
14090     # src tree.
14091     ac_file_inputs=`IFS=:
14092     for f in $ac_file_in; do
14093     case $f in
14094     -) echo $tmp/stdin ;;
14095     [\\/$]*)
14096     # Absolute (can't be DOS-style, as IFS=:)
14097     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14098     echo "$as_me: error: cannot find input file: $f" >&2;}
14099     { (exit 1); exit 1; }; }
14100     echo "$f";;
14101     *) # Relative
14102     if test -f "$f"; then
14103     # Build tree
14104     echo "$f"
14105     elif test -f "$srcdir/$f"; then
14106     # Source tree
14107     echo "$srcdir/$f"
14108     else
14109     # /dev/null tree
14110     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14111     echo "$as_me: error: cannot find input file: $f" >&2;}
14112     { (exit 1); exit 1; }; }
14113     fi;;
14114     esac
14115     done` || { (exit 1); exit 1; }
14116 root 1.105 _ACEOF
14117     cat >>$CONFIG_STATUS <<_ACEOF
14118 pcg 1.11 sed "$ac_vpsub
14119     $extrasub
14120     _ACEOF
14121     cat >>$CONFIG_STATUS <<\_ACEOF
14122     :t
14123     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14124 ayin 1.106 s,@configure_input@,$configure_input,;t t
14125     s,@srcdir@,$ac_srcdir,;t t
14126     s,@abs_srcdir@,$ac_abs_srcdir,;t t
14127     s,@top_srcdir@,$ac_top_srcdir,;t t
14128     s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14129     s,@builddir@,$ac_builddir,;t t
14130     s,@abs_builddir@,$ac_abs_builddir,;t t
14131     s,@top_builddir@,$ac_top_builddir,;t t
14132     s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14133     s,@INSTALL@,$ac_INSTALL,;t t
14134     " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14135     rm -f $tmp/stdin
14136     if test x"$ac_file" != x-; then
14137     mv $tmp/out $ac_file
14138     else
14139     cat $tmp/out
14140     rm -f $tmp/out
14141     fi
14142    
14143     done
14144     _ACEOF
14145     cat >>$CONFIG_STATUS <<\_ACEOF
14146    
14147     #
14148     # CONFIG_HEADER section.
14149     #
14150 ayin 1.104
14151 ayin 1.106 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14152     # NAME is the cpp macro being defined and VALUE is the value it is being given.
14153     #
14154     # ac_d sets the value in "#define NAME VALUE" lines.
14155     ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14156     ac_dB='[ ].*$,\1#\2'
14157     ac_dC=' '
14158     ac_dD=',;t'
14159     # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14160     ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14161     ac_uB='$,\1#\2define\3'
14162     ac_uC=' '
14163     ac_uD=',;t'
14164    
14165     for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14166     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14167 pcg 1.11 case $ac_file in
14168 ayin 1.106 - | *:- | *:-:* ) # input from stdin
14169     cat >$tmp/stdin
14170     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14171     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14172     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14173     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14174     * ) ac_file_in=$ac_file.in ;;
14175 pcg 1.1 esac
14176    
14177 ayin 1.106 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14178     echo "$as_me: creating $ac_file" >&6;}
14179    
14180     # First look for the input files in the build tree, otherwise in the
14181     # src tree.
14182     ac_file_inputs=`IFS=:
14183     for f in $ac_file_in; do
14184     case $f in
14185     -) echo $tmp/stdin ;;
14186     [\\/$]*)
14187     # Absolute (can't be DOS-style, as IFS=:)
14188     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14189     echo "$as_me: error: cannot find input file: $f" >&2;}
14190     { (exit 1); exit 1; }; }
14191     # Do quote $f, to prevent DOS paths from being IFS'd.
14192     echo "$f";;
14193     *) # Relative
14194     if test -f "$f"; then
14195     # Build tree
14196     echo "$f"
14197     elif test -f "$srcdir/$f"; then
14198     # Source tree
14199     echo "$srcdir/$f"
14200     else
14201     # /dev/null tree
14202     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14203     echo "$as_me: error: cannot find input file: $f" >&2;}
14204     { (exit 1); exit 1; }; }
14205     fi;;
14206     esac
14207     done` || { (exit 1); exit 1; }
14208     # Remove the trailing spaces.
14209     sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14210    
14211     _ACEOF
14212    
14213     # Transform confdefs.h into two sed scripts, `conftest.defines' and
14214     # `conftest.undefs', that substitutes the proper values into
14215     # config.h.in to produce config.h. The first handles `#define'
14216     # templates, and the second `#undef' templates.
14217     # And first: Protect against being on the right side of a sed subst in
14218     # config.status. Protect against being in an unquoted here document
14219     # in config.status.
14220     rm -f conftest.defines conftest.undefs
14221     # Using a here document instead of a string reduces the quoting nightmare.
14222     # Putting comments in sed scripts is not portable.
14223     #
14224     # `end' is used to avoid that the second main sed command (meant for
14225     # 0-ary CPP macros) applies to n-ary macro definitions.
14226     # See the Autoconf documentation for `clear'.
14227     cat >confdef2sed.sed <<\_ACEOF
14228     s/[\\&,]/\\&/g
14229     s,[\\$`],\\&,g
14230     t clear
14231     : clear
14232     s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14233     t end
14234     s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14235     : end
14236     _ACEOF
14237     # If some macros were called several times there might be several times
14238     # the same #defines, which is useless. Nevertheless, we may not want to
14239     # sort them, since we want the *last* AC-DEFINE to be honored.
14240     uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14241     sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14242     rm -f confdef2sed.sed
14243 ayin 1.104
14244 ayin 1.106 # This sed command replaces #undef with comments. This is necessary, for
14245 pcg 1.1 # example, in the case of _POSIX_SOURCE, which is predefined and required
14246     # on some systems where configure will not decide to define it.
14247 ayin 1.106 cat >>conftest.undefs <<\_ACEOF
14248     s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14249 pcg 1.11 _ACEOF
14250 ayin 1.106
14251     # Break up conftest.defines because some shells have a limit on the size
14252     # of here documents, and old seds have small limits too (100 cmds).
14253     echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14254     echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14255     echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14256     echo ' :' >>$CONFIG_STATUS
14257     rm -f conftest.tail
14258     while grep . conftest.defines >/dev/null
14259     do
14260     # Write a limited-size here document to $tmp/defines.sed.
14261     echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14262     # Speed up: don't consider the non `#define' lines.
14263     echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14264     # Work around the forget-to-reset-the-flag bug.
14265     echo 't clr' >>$CONFIG_STATUS
14266     echo ': clr' >>$CONFIG_STATUS
14267     sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14268 pcg 1.11 echo 'CEOF
14269 ayin 1.106 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14270     rm -f $tmp/in
14271     mv $tmp/out $tmp/in
14272     ' >>$CONFIG_STATUS
14273     sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14274 pcg 1.11 rm -f conftest.defines
14275     mv conftest.tail conftest.defines
14276     done
14277 ayin 1.106 rm -f conftest.defines
14278     echo ' fi # grep' >>$CONFIG_STATUS
14279     echo >>$CONFIG_STATUS
14280    
14281     # Break up conftest.undefs because some shells have a limit on the size
14282     # of here documents, and old seds have small limits too (100 cmds).
14283     echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14284     rm -f conftest.tail
14285     while grep . conftest.undefs >/dev/null
14286     do
14287     # Write a limited-size here document to $tmp/undefs.sed.
14288     echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14289     # Speed up: don't consider the non `#undef'
14290     echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14291     # Work around the forget-to-reset-the-flag bug.
14292     echo 't clr' >>$CONFIG_STATUS
14293     echo ': clr' >>$CONFIG_STATUS
14294     sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14295     echo 'CEOF
14296     sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14297     rm -f $tmp/in
14298     mv $tmp/out $tmp/in
14299     ' >>$CONFIG_STATUS
14300     sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14301     rm -f conftest.undefs
14302     mv conftest.tail conftest.undefs
14303     done
14304     rm -f conftest.undefs
14305 pcg 1.11
14306     cat >>$CONFIG_STATUS <<\_ACEOF
14307 ayin 1.106 # Let's still pretend it is `configure' which instantiates (i.e., don't
14308     # use $as_me), people would be surprised to read:
14309     # /* config.h. Generated by config.status. */
14310     if test x"$ac_file" = x-; then
14311     echo "/* Generated by configure. */" >$tmp/config.h
14312     else
14313     echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14314     fi
14315     cat $tmp/in >>$tmp/config.h
14316     rm -f $tmp/in
14317 pcg 1.11 if test x"$ac_file" != x-; then
14318 ayin 1.106 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14319 pcg 1.11 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14320     echo "$as_me: $ac_file is unchanged" >&6;}
14321     else
14322 ayin 1.106 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14323     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14324     X"$ac_file" : 'X\(//\)[^/]' \| \
14325     X"$ac_file" : 'X\(//\)$' \| \
14326     X"$ac_file" : 'X\(/\)' \| \
14327     . : '\(.\)' 2>/dev/null ||
14328     echo X"$ac_file" |
14329     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14330     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14331     /^X\(\/\/\)$/{ s//\1/; q; }
14332     /^X\(\/\).*/{ s//\1/; q; }
14333     s/.*/./; q'`
14334     { if $as_mkdir_p; then
14335     mkdir -p "$ac_dir"
14336     else
14337     as_dir="$ac_dir"
14338     as_dirs=
14339     while test ! -d "$as_dir"; do
14340     as_dirs="$as_dir $as_dirs"
14341     as_dir=`(dirname "$as_dir") 2>/dev/null ||
14342     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14343     X"$as_dir" : 'X\(//\)[^/]' \| \
14344     X"$as_dir" : 'X\(//\)$' \| \
14345     X"$as_dir" : 'X\(/\)' \| \
14346     . : '\(.\)' 2>/dev/null ||
14347     echo X"$as_dir" |
14348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14349     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14350     /^X\(\/\/\)$/{ s//\1/; q; }
14351     /^X\(\/\).*/{ s//\1/; q; }
14352     s/.*/./; q'`
14353     done
14354     test ! -n "$as_dirs" || mkdir $as_dirs
14355     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14356     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14357     { (exit 1); exit 1; }; }; }
14358    
14359 pcg 1.11 rm -f $ac_file
14360 ayin 1.106 mv $tmp/config.h $ac_file
14361 pcg 1.1 fi
14362 pcg 1.11 else
14363 ayin 1.106 cat $tmp/config.h
14364     rm -f $tmp/config.h
14365 pcg 1.1 fi
14366 ayin 1.106 done
14367     _ACEOF
14368 pcg 1.11
14369 ayin 1.106 cat >>$CONFIG_STATUS <<\_ACEOF
14370 pcg 1.1
14371 pcg 1.11 { (exit 0); exit 0; }
14372     _ACEOF
14373     chmod +x $CONFIG_STATUS
14374     ac_clean_files=$ac_clean_files_save
14375 pcg 1.1
14376    
14377 pcg 1.11 # configure is writing to config.log, and then calls config.status.
14378     # config.status does its own redirection, appending to config.log.
14379     # Unfortunately, on DOS this fails, as config.log is still kept open
14380     # by configure, so config.status won't be able to write to it; its
14381     # output is simply discarded. So we exec the FD to /dev/null,
14382     # effectively closing config.log, so it can be properly (re)opened and
14383     # appended to by config.status. When coming back to configure, we
14384     # need to make the FD available again.
14385     if test "$no_create" != yes; then
14386     ac_cs_success=:
14387     ac_config_status_args=
14388     test "$silent" = yes &&
14389     ac_config_status_args="$ac_config_status_args --quiet"
14390     exec 5>/dev/null
14391     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14392     exec 5>>config.log
14393     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14394     # would make configure fail if this is the last instruction.
14395     $ac_cs_success || { (exit 1); exit 1; }
14396     fi
14397 pcg 1.1
14398    
14399     echo "Configuration:
14400    
14401     Rxvt version: $VERSION : $DATE
14402     Source code location: $srcdir
14403     Install path: ${prefix}/bin
14404 pcg 1.13 Compiler: $CXX
14405 root 1.100 Compiler flags: $CXXFLAGS
14406 pcg 1.13 Linker: $LINKER"
14407 pcg 1.1
14408     if test x$support_xpm = xyes; then
14409     echo " Xpm library: $XPM_LIBS"
14410     fi
14411    
14412 root 1.103 if test x$support_afterimage = xyes; then
14413     echo " AfterImage support: yes"
14414     fi
14415    
14416     if test x$support_afterstep = xyes; then
14417 ayin 1.104 echo " AfterStep integration: yes"
14418 root 1.103 fi
14419    
14420 pcg 1.1 if test x$term != x; then
14421 pcg 1.18 echo " set TERM to: $term"
14422 pcg 1.1 fi
14423     if test x$terminfo != x; then
14424 pcg 1.18 echo " set TERMINFO to: $terminfo"
14425     fi
14426     echo " default resource name: $RESNAME"
14427     echo " resource class: $RESCLASS"
14428     if test x$RESFALLBACK != x; then
14429     echo " resource class fallback: $RESFALLBACK"
14430 pcg 1.1 fi
14431 pcg 1.18 echo
14432 root 1.89 echo " embedded perl: $support_perl"
14433     echo
14434 pcg 1.1 if test x$support_xpm = xneedsmanualspecification; then
14435     echo ".----------------------------------------------------------------."
14436     echo ". WARNING: --enable-xpm-background was specified however the ."
14437     echo ". XPM includes files and libraries could not be found. ."
14438     echo ". XPM backgrounds are now being DISABLED! If you want ."
14439     echo ". to use them you should rerun configure with the ."
14440     echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
14441     echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
14442     echo ".----------------------------------------------------------------."
14443     fi
14444     if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
14445     echo ".----------------------------------------------------------------."
14446     echo ". WARNING: --enable-xim was specified however the locale support ."
14447     echo ". functions could not be found. ."
14448     echo ". XIM is now being DISABLED! ."
14449     echo ".----------------------------------------------------------------."
14450     fi
14451 pcg 1.20
14452 root 1.96 echo "*** Optionally check src/feature.h for further, rarely used options ***"
14453 pcg 1.20 echo
14454