ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.106
Committed: Tue Jun 26 22:08:16 2007 UTC (16 years, 11 months ago) by ayin
Branch: MAIN
Changes since 1.105: +5013 -5486 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     LIBS=$ac_save_LIBS
7112     CFLAGS=$ac_save_CFLAGS
7113    
7114 ayin 1.106 echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7115     echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6
7116 root 1.99 if test "${rxvt_xlib_illegal_access+set}" = set; then
7117     echo $ECHO_N "(cached) $ECHO_C" >&6
7118     else
7119     cat >conftest.$ac_ext <<_ACEOF
7120     /* confdefs.h. */
7121     _ACEOF
7122     cat confdefs.h >>conftest.$ac_ext
7123     cat >>conftest.$ac_ext <<_ACEOF
7124     /* end confdefs.h. */
7125    
7126     #define XLIB_ILLEGAL_ACCESS
7127     #include <X11/Xlib.h>
7128    
7129     int
7130     main ()
7131     {
7132    
7133     Display *dpy;
7134     dpy->xdefaults = (char *)0;
7135    
7136     ;
7137     return 0;
7138     }
7139     _ACEOF
7140     rm -f conftest.$ac_objext
7141 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7142     (eval $ac_compile) 2>conftest.er1
7143 root 1.99 ac_status=$?
7144     grep -v '^ *+' conftest.er1 >conftest.err
7145     rm -f conftest.er1
7146     cat conftest.err >&5
7147     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 ayin 1.106 (exit $ac_status); } &&
7149     { ac_try='test -z "$ac_cxx_werror_flag"
7150     || test ! -s conftest.err'
7151     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152     (eval $ac_try) 2>&5
7153     ac_status=$?
7154     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155     (exit $ac_status); }; } &&
7156     { ac_try='test -s conftest.$ac_objext'
7157     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158     (eval $ac_try) 2>&5
7159     ac_status=$?
7160     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161     (exit $ac_status); }; }; then
7162 root 1.99 rxvt_xlib_illegal_access=yes
7163     else
7164     echo "$as_me: failed program was:" >&5
7165     sed 's/^/| /' conftest.$ac_ext >&5
7166    
7167 ayin 1.106 rxvt_xlib_illegal_access=no
7168 root 1.99
7169     fi
7170 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7171 root 1.99 fi
7172 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5
7173     echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6
7174 root 1.99 if test x$rxvt_xlib_illegal_access = xyes; then
7175    
7176     cat >>confdefs.h <<\_ACEOF
7177     #define XLIB_ILLEGAL_ACCESS 1
7178     _ACEOF
7179    
7180     fi
7181 pcg 1.1
7182 ayin 1.106 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7183     echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7184 pcg 1.11 if test "${ac_cv_c_const+set}" = set; then
7185     echo $ECHO_N "(cached) $ECHO_C" >&6
7186     else
7187     cat >conftest.$ac_ext <<_ACEOF
7188     /* confdefs.h. */
7189     _ACEOF
7190     cat confdefs.h >>conftest.$ac_ext
7191     cat >>conftest.$ac_ext <<_ACEOF
7192     /* end confdefs.h. */
7193 pcg 1.1
7194 pcg 1.11 int
7195     main ()
7196     {
7197     /* FIXME: Include the comments suggested by Paul. */
7198     #ifndef __cplusplus
7199     /* Ultrix mips cc rejects this. */
7200     typedef int charset[2];
7201 ayin 1.106 const charset x;
7202 pcg 1.11 /* SunOS 4.1.1 cc rejects this. */
7203 ayin 1.106 char const *const *ccp;
7204     char **p;
7205 pcg 1.11 /* NEC SVR4.0.2 mips cc rejects this. */
7206     struct point {int x, y;};
7207     static struct point const zero = {0,0};
7208     /* AIX XL C 1.02.0.0 rejects this.
7209     It does not let you subtract one const X* pointer from another in
7210     an arm of an if-expression whose if-part is not a constant
7211     expression */
7212     const char *g = "string";
7213 ayin 1.106 ccp = &g + (g ? g-g : 0);
7214 pcg 1.11 /* HPUX 7.0 cc rejects these. */
7215 ayin 1.106 ++ccp;
7216     p = (char**) ccp;
7217     ccp = (char const *const *) p;
7218 pcg 1.11 { /* SCO 3.2v4 cc rejects this. */
7219     char *t;
7220     char const *s = 0 ? (char *) 0 : (char const *) 0;
7221    
7222     *t++ = 0;
7223     }
7224     { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7225     int x[] = {25, 17};
7226     const int *foo = &x[0];
7227     ++foo;
7228     }
7229     { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7230     typedef const int *iptr;
7231     iptr p = 0;
7232     ++p;
7233     }
7234     { /* AIX XL C 1.02.0.0 rejects this saying
7235     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7236     struct s { int j; const int *ap[3]; };
7237     struct s *b; b->j = 5;
7238     }
7239     { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7240     const int foo = 10;
7241     }
7242     #endif
7243 pcg 1.1
7244 pcg 1.11 ;
7245     return 0;
7246 pcg 1.1 }
7247 pcg 1.11 _ACEOF
7248     rm -f conftest.$ac_objext
7249 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7250     (eval $ac_compile) 2>conftest.er1
7251 pcg 1.11 ac_status=$?
7252     grep -v '^ *+' conftest.er1 >conftest.err
7253     rm -f conftest.er1
7254     cat conftest.err >&5
7255     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 ayin 1.106 (exit $ac_status); } &&
7257     { ac_try='test -z "$ac_cxx_werror_flag"
7258     || test ! -s conftest.err'
7259     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260     (eval $ac_try) 2>&5
7261     ac_status=$?
7262     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263     (exit $ac_status); }; } &&
7264     { ac_try='test -s conftest.$ac_objext'
7265     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266     (eval $ac_try) 2>&5
7267     ac_status=$?
7268     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269     (exit $ac_status); }; }; then
7270 pcg 1.1 ac_cv_c_const=yes
7271     else
7272 pcg 1.11 echo "$as_me: failed program was:" >&5
7273     sed 's/^/| /' conftest.$ac_ext >&5
7274    
7275 ayin 1.106 ac_cv_c_const=no
7276 pcg 1.1 fi
7277 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7278 pcg 1.1 fi
7279 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7280     echo "${ECHO_T}$ac_cv_c_const" >&6
7281 pcg 1.11 if test $ac_cv_c_const = no; then
7282 pcg 1.1
7283 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7284     #define const
7285     _ACEOF
7286 pcg 1.1
7287     fi
7288    
7289 ayin 1.106 echo "$as_me:$LINENO: checking for inline" >&5
7290     echo $ECHO_N "checking for inline... $ECHO_C" >&6
7291 pcg 1.11 if test "${ac_cv_c_inline+set}" = set; then
7292     echo $ECHO_N "(cached) $ECHO_C" >&6
7293 pcg 1.1 else
7294     ac_cv_c_inline=no
7295     for ac_kw in inline __inline__ __inline; do
7296 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7297     /* confdefs.h. */
7298     _ACEOF
7299     cat confdefs.h >>conftest.$ac_ext
7300     cat >>conftest.$ac_ext <<_ACEOF
7301     /* end confdefs.h. */
7302     #ifndef __cplusplus
7303     typedef int foo_t;
7304     static $ac_kw foo_t static_foo () {return 0; }
7305     $ac_kw foo_t foo () {return 0; }
7306     #endif
7307 pcg 1.1
7308 pcg 1.11 _ACEOF
7309     rm -f conftest.$ac_objext
7310 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7311     (eval $ac_compile) 2>conftest.er1
7312 pcg 1.11 ac_status=$?
7313     grep -v '^ *+' conftest.er1 >conftest.err
7314     rm -f conftest.er1
7315     cat conftest.err >&5
7316     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 ayin 1.106 (exit $ac_status); } &&
7318     { ac_try='test -z "$ac_cxx_werror_flag"
7319     || test ! -s conftest.err'
7320     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7321     (eval $ac_try) 2>&5
7322     ac_status=$?
7323     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324     (exit $ac_status); }; } &&
7325     { ac_try='test -s conftest.$ac_objext'
7326     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327     (eval $ac_try) 2>&5
7328     ac_status=$?
7329     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330     (exit $ac_status); }; }; then
7331     ac_cv_c_inline=$ac_kw; break
7332 pcg 1.1 else
7333 pcg 1.11 echo "$as_me: failed program was:" >&5
7334     sed 's/^/| /' conftest.$ac_ext >&5
7335    
7336 pcg 1.1 fi
7337 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7338 pcg 1.1 done
7339    
7340     fi
7341 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7342     echo "${ECHO_T}$ac_cv_c_inline" >&6
7343 pcg 1.11
7344 pcg 1.1
7345 pcg 1.11 case $ac_cv_c_inline in
7346 pcg 1.1 inline | yes) ;;
7347 pcg 1.11 *)
7348     case $ac_cv_c_inline in
7349     no) ac_val=;;
7350     *) ac_val=$ac_cv_c_inline;;
7351     esac
7352     cat >>confdefs.h <<_ACEOF
7353     #ifndef __cplusplus
7354     #define inline $ac_val
7355     #endif
7356     _ACEOF
7357     ;;
7358 pcg 1.1 esac
7359    
7360    
7361    
7362 ayin 1.106 echo "$as_me:$LINENO: checking for mode_t" >&5
7363     echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7364 pcg 1.11 if test "${ac_cv_type_mode_t+set}" = set; then
7365     echo $ECHO_N "(cached) $ECHO_C" >&6
7366     else
7367     cat >conftest.$ac_ext <<_ACEOF
7368     /* confdefs.h. */
7369     _ACEOF
7370     cat confdefs.h >>conftest.$ac_ext
7371     cat >>conftest.$ac_ext <<_ACEOF
7372     /* end confdefs.h. */
7373     $ac_includes_default
7374     int
7375     main ()
7376     {
7377 ayin 1.106 if ((mode_t *) 0)
7378 pcg 1.11 return 0;
7379 ayin 1.106 if (sizeof (mode_t))
7380 pcg 1.11 return 0;
7381     ;
7382     return 0;
7383     }
7384     _ACEOF
7385     rm -f conftest.$ac_objext
7386 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7387     (eval $ac_compile) 2>conftest.er1
7388 pcg 1.11 ac_status=$?
7389     grep -v '^ *+' conftest.er1 >conftest.err
7390     rm -f conftest.er1
7391     cat conftest.err >&5
7392     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 ayin 1.106 (exit $ac_status); } &&
7394     { ac_try='test -z "$ac_cxx_werror_flag"
7395     || test ! -s conftest.err'
7396     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7397     (eval $ac_try) 2>&5
7398     ac_status=$?
7399     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400     (exit $ac_status); }; } &&
7401     { ac_try='test -s conftest.$ac_objext'
7402     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403     (eval $ac_try) 2>&5
7404     ac_status=$?
7405     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406     (exit $ac_status); }; }; then
7407 pcg 1.11 ac_cv_type_mode_t=yes
7408 pcg 1.1 else
7409 pcg 1.11 echo "$as_me: failed program was:" >&5
7410     sed 's/^/| /' conftest.$ac_ext >&5
7411 pcg 1.1
7412 ayin 1.106 ac_cv_type_mode_t=no
7413 pcg 1.1 fi
7414 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7415 pcg 1.1 fi
7416 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7417     echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7418 pcg 1.11 if test $ac_cv_type_mode_t = yes; then
7419 pcg 1.1 :
7420     else
7421    
7422 pcg 1.11 cat >>confdefs.h <<_ACEOF
7423     #define mode_t int
7424     _ACEOF
7425 pcg 1.1
7426     fi
7427    
7428 ayin 1.106 echo "$as_me:$LINENO: checking for pid_t" >&5
7429     echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7430 pcg 1.11 if test "${ac_cv_type_pid_t+set}" = set; then
7431     echo $ECHO_N "(cached) $ECHO_C" >&6
7432     else
7433     cat >conftest.$ac_ext <<_ACEOF
7434     /* confdefs.h. */
7435     _ACEOF
7436     cat confdefs.h >>conftest.$ac_ext
7437     cat >>conftest.$ac_ext <<_ACEOF
7438     /* end confdefs.h. */
7439     $ac_includes_default
7440     int
7441     main ()
7442     {
7443 ayin 1.106 if ((pid_t *) 0)
7444 pcg 1.11 return 0;
7445 ayin 1.106 if (sizeof (pid_t))
7446 pcg 1.11 return 0;
7447     ;
7448     return 0;
7449     }
7450     _ACEOF
7451     rm -f conftest.$ac_objext
7452 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7453     (eval $ac_compile) 2>conftest.er1
7454 pcg 1.11 ac_status=$?
7455     grep -v '^ *+' conftest.er1 >conftest.err
7456     rm -f conftest.er1
7457     cat conftest.err >&5
7458     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 ayin 1.106 (exit $ac_status); } &&
7460     { ac_try='test -z "$ac_cxx_werror_flag"
7461     || test ! -s conftest.err'
7462     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463     (eval $ac_try) 2>&5
7464     ac_status=$?
7465     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466     (exit $ac_status); }; } &&
7467     { ac_try='test -s conftest.$ac_objext'
7468     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469     (eval $ac_try) 2>&5
7470     ac_status=$?
7471     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472     (exit $ac_status); }; }; then
7473 pcg 1.11 ac_cv_type_pid_t=yes
7474 pcg 1.1 else
7475 pcg 1.11 echo "$as_me: failed program was:" >&5
7476     sed 's/^/| /' conftest.$ac_ext >&5
7477 pcg 1.1
7478 ayin 1.106 ac_cv_type_pid_t=no
7479 pcg 1.1 fi
7480 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7481 pcg 1.1 fi
7482 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7483     echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7484 pcg 1.11 if test $ac_cv_type_pid_t = yes; then
7485     :
7486 pcg 1.1 else
7487    
7488 pcg 1.11 cat >>confdefs.h <<_ACEOF
7489 pcg 1.1 #define pid_t int
7490 pcg 1.11 _ACEOF
7491 pcg 1.1
7492     fi
7493    
7494 ayin 1.106 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7495     echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7496 pcg 1.11 if test "${ac_cv_type_uid_t+set}" = set; then
7497     echo $ECHO_N "(cached) $ECHO_C" >&6
7498 pcg 1.1 else
7499 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7500     /* confdefs.h. */
7501     _ACEOF
7502     cat confdefs.h >>conftest.$ac_ext
7503     cat >>conftest.$ac_ext <<_ACEOF
7504     /* end confdefs.h. */
7505 pcg 1.1 #include <sys/types.h>
7506 pcg 1.11
7507     _ACEOF
7508 pcg 1.1 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7509 pcg 1.11 $EGREP "uid_t" >/dev/null 2>&1; then
7510 pcg 1.1 ac_cv_type_uid_t=yes
7511     else
7512     ac_cv_type_uid_t=no
7513     fi
7514     rm -f conftest*
7515    
7516     fi
7517 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7518     echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7519 pcg 1.11 if test $ac_cv_type_uid_t = no; then
7520 pcg 1.1
7521 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7522 pcg 1.1 #define uid_t int
7523 pcg 1.11 _ACEOF
7524    
7525 pcg 1.1
7526 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7527 pcg 1.1 #define gid_t int
7528 pcg 1.11 _ACEOF
7529 pcg 1.1
7530     fi
7531    
7532    
7533 ayin 1.106 echo "$as_me:$LINENO: checking for short" >&5
7534     echo $ECHO_N "checking for short... $ECHO_C" >&6
7535 pcg 1.11 if test "${ac_cv_type_short+set}" = set; then
7536     echo $ECHO_N "(cached) $ECHO_C" >&6
7537     else
7538     cat >conftest.$ac_ext <<_ACEOF
7539     /* confdefs.h. */
7540     _ACEOF
7541     cat confdefs.h >>conftest.$ac_ext
7542     cat >>conftest.$ac_ext <<_ACEOF
7543     /* end confdefs.h. */
7544     $ac_includes_default
7545     int
7546     main ()
7547     {
7548 ayin 1.106 if ((short *) 0)
7549 pcg 1.11 return 0;
7550 ayin 1.106 if (sizeof (short))
7551 pcg 1.11 return 0;
7552     ;
7553     return 0;
7554     }
7555     _ACEOF
7556     rm -f conftest.$ac_objext
7557 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7558     (eval $ac_compile) 2>conftest.er1
7559 pcg 1.11 ac_status=$?
7560     grep -v '^ *+' conftest.er1 >conftest.err
7561     rm -f conftest.er1
7562     cat conftest.err >&5
7563     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 ayin 1.106 (exit $ac_status); } &&
7565     { ac_try='test -z "$ac_cxx_werror_flag"
7566     || test ! -s conftest.err'
7567     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7568     (eval $ac_try) 2>&5
7569     ac_status=$?
7570     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571     (exit $ac_status); }; } &&
7572     { ac_try='test -s conftest.$ac_objext'
7573     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574     (eval $ac_try) 2>&5
7575     ac_status=$?
7576     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577     (exit $ac_status); }; }; then
7578 root 1.42 ac_cv_type_short=yes
7579 pcg 1.11 else
7580     echo "$as_me: failed program was:" >&5
7581     sed 's/^/| /' conftest.$ac_ext >&5
7582    
7583 ayin 1.106 ac_cv_type_short=no
7584 pcg 1.11 fi
7585 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7586 pcg 1.11 fi
7587 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7588     echo "${ECHO_T}$ac_cv_type_short" >&6
7589 pcg 1.11
7590 ayin 1.106 echo "$as_me:$LINENO: checking size of short" >&5
7591     echo $ECHO_N "checking size of short... $ECHO_C" >&6
7592 root 1.42 if test "${ac_cv_sizeof_short+set}" = set; then
7593 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
7594     else
7595 ayin 1.106 if test "$ac_cv_type_short" = yes; then
7596     # The cast to unsigned long works around a bug in the HP C Compiler
7597     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7598     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7599     # This bug is HP SR number 8606223364.
7600 pcg 1.11 if test "$cross_compiling" = yes; then
7601     # Depending upon the size, compute the lo and hi bounds.
7602     cat >conftest.$ac_ext <<_ACEOF
7603     /* confdefs.h. */
7604     _ACEOF
7605     cat confdefs.h >>conftest.$ac_ext
7606     cat >>conftest.$ac_ext <<_ACEOF
7607     /* end confdefs.h. */
7608     $ac_includes_default
7609     int
7610     main ()
7611     {
7612 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7613 pcg 1.11 test_array [0] = 0
7614    
7615     ;
7616     return 0;
7617     }
7618     _ACEOF
7619     rm -f conftest.$ac_objext
7620 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7621     (eval $ac_compile) 2>conftest.er1
7622 pcg 1.11 ac_status=$?
7623     grep -v '^ *+' conftest.er1 >conftest.err
7624     rm -f conftest.er1
7625     cat conftest.err >&5
7626     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 ayin 1.106 (exit $ac_status); } &&
7628     { ac_try='test -z "$ac_cxx_werror_flag"
7629     || test ! -s conftest.err'
7630     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631     (eval $ac_try) 2>&5
7632     ac_status=$?
7633     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634     (exit $ac_status); }; } &&
7635     { ac_try='test -s conftest.$ac_objext'
7636     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637     (eval $ac_try) 2>&5
7638     ac_status=$?
7639     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640     (exit $ac_status); }; }; then
7641 pcg 1.11 ac_lo=0 ac_mid=0
7642     while :; do
7643     cat >conftest.$ac_ext <<_ACEOF
7644     /* confdefs.h. */
7645     _ACEOF
7646     cat confdefs.h >>conftest.$ac_ext
7647     cat >>conftest.$ac_ext <<_ACEOF
7648     /* end confdefs.h. */
7649     $ac_includes_default
7650     int
7651     main ()
7652     {
7653 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7654 pcg 1.11 test_array [0] = 0
7655    
7656     ;
7657     return 0;
7658     }
7659     _ACEOF
7660     rm -f conftest.$ac_objext
7661 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7662     (eval $ac_compile) 2>conftest.er1
7663 pcg 1.11 ac_status=$?
7664     grep -v '^ *+' conftest.er1 >conftest.err
7665     rm -f conftest.er1
7666     cat conftest.err >&5
7667     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 ayin 1.106 (exit $ac_status); } &&
7669     { ac_try='test -z "$ac_cxx_werror_flag"
7670     || test ! -s conftest.err'
7671     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672     (eval $ac_try) 2>&5
7673     ac_status=$?
7674     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675     (exit $ac_status); }; } &&
7676     { ac_try='test -s conftest.$ac_objext'
7677     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678     (eval $ac_try) 2>&5
7679     ac_status=$?
7680     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681     (exit $ac_status); }; }; then
7682 pcg 1.11 ac_hi=$ac_mid; break
7683     else
7684     echo "$as_me: failed program was:" >&5
7685     sed 's/^/| /' conftest.$ac_ext >&5
7686    
7687 ayin 1.106 ac_lo=`expr $ac_mid + 1`
7688     if test $ac_lo -le $ac_mid; then
7689     ac_lo= ac_hi=
7690     break
7691     fi
7692     ac_mid=`expr 2 '*' $ac_mid + 1`
7693 pcg 1.11 fi
7694 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7695 pcg 1.11 done
7696     else
7697     echo "$as_me: failed program was:" >&5
7698     sed 's/^/| /' conftest.$ac_ext >&5
7699    
7700 ayin 1.106 cat >conftest.$ac_ext <<_ACEOF
7701 pcg 1.11 /* confdefs.h. */
7702     _ACEOF
7703     cat confdefs.h >>conftest.$ac_ext
7704     cat >>conftest.$ac_ext <<_ACEOF
7705     /* end confdefs.h. */
7706     $ac_includes_default
7707     int
7708     main ()
7709     {
7710 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7711 pcg 1.11 test_array [0] = 0
7712    
7713     ;
7714     return 0;
7715     }
7716     _ACEOF
7717     rm -f conftest.$ac_objext
7718 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7719     (eval $ac_compile) 2>conftest.er1
7720 pcg 1.11 ac_status=$?
7721     grep -v '^ *+' conftest.er1 >conftest.err
7722     rm -f conftest.er1
7723     cat conftest.err >&5
7724     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 ayin 1.106 (exit $ac_status); } &&
7726     { ac_try='test -z "$ac_cxx_werror_flag"
7727     || test ! -s conftest.err'
7728     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729     (eval $ac_try) 2>&5
7730     ac_status=$?
7731     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732     (exit $ac_status); }; } &&
7733     { ac_try='test -s conftest.$ac_objext'
7734     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735     (eval $ac_try) 2>&5
7736     ac_status=$?
7737     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738     (exit $ac_status); }; }; then
7739 pcg 1.11 ac_hi=-1 ac_mid=-1
7740     while :; do
7741     cat >conftest.$ac_ext <<_ACEOF
7742     /* confdefs.h. */
7743     _ACEOF
7744     cat confdefs.h >>conftest.$ac_ext
7745     cat >>conftest.$ac_ext <<_ACEOF
7746     /* end confdefs.h. */
7747     $ac_includes_default
7748     int
7749     main ()
7750     {
7751 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7752 pcg 1.11 test_array [0] = 0
7753    
7754     ;
7755     return 0;
7756     }
7757     _ACEOF
7758     rm -f conftest.$ac_objext
7759 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7760     (eval $ac_compile) 2>conftest.er1
7761 pcg 1.11 ac_status=$?
7762     grep -v '^ *+' conftest.er1 >conftest.err
7763     rm -f conftest.er1
7764     cat conftest.err >&5
7765     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 ayin 1.106 (exit $ac_status); } &&
7767     { ac_try='test -z "$ac_cxx_werror_flag"
7768     || test ! -s conftest.err'
7769     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770     (eval $ac_try) 2>&5
7771     ac_status=$?
7772     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773     (exit $ac_status); }; } &&
7774     { ac_try='test -s conftest.$ac_objext'
7775     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776     (eval $ac_try) 2>&5
7777     ac_status=$?
7778     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779     (exit $ac_status); }; }; then
7780 pcg 1.11 ac_lo=$ac_mid; break
7781     else
7782     echo "$as_me: failed program was:" >&5
7783     sed 's/^/| /' conftest.$ac_ext >&5
7784    
7785 ayin 1.106 ac_hi=`expr '(' $ac_mid ')' - 1`
7786     if test $ac_mid -le $ac_hi; then
7787     ac_lo= ac_hi=
7788     break
7789     fi
7790     ac_mid=`expr 2 '*' $ac_mid`
7791 pcg 1.11 fi
7792 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7793 pcg 1.11 done
7794     else
7795     echo "$as_me: failed program was:" >&5
7796     sed 's/^/| /' conftest.$ac_ext >&5
7797 pcg 1.1
7798 ayin 1.106 ac_lo= ac_hi=
7799 pcg 1.1 fi
7800 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7801 pcg 1.11 fi
7802 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7803 pcg 1.11 # Binary search between lo and hi bounds.
7804     while test "x$ac_lo" != "x$ac_hi"; do
7805     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7806     cat >conftest.$ac_ext <<_ACEOF
7807     /* confdefs.h. */
7808     _ACEOF
7809     cat confdefs.h >>conftest.$ac_ext
7810     cat >>conftest.$ac_ext <<_ACEOF
7811     /* end confdefs.h. */
7812     $ac_includes_default
7813     int
7814     main ()
7815     {
7816 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7817 pcg 1.11 test_array [0] = 0
7818 pcg 1.1
7819 pcg 1.11 ;
7820     return 0;
7821     }
7822     _ACEOF
7823     rm -f conftest.$ac_objext
7824 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7825     (eval $ac_compile) 2>conftest.er1
7826 pcg 1.11 ac_status=$?
7827     grep -v '^ *+' conftest.er1 >conftest.err
7828     rm -f conftest.er1
7829     cat conftest.err >&5
7830     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 ayin 1.106 (exit $ac_status); } &&
7832     { ac_try='test -z "$ac_cxx_werror_flag"
7833     || test ! -s conftest.err'
7834     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835     (eval $ac_try) 2>&5
7836     ac_status=$?
7837     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838     (exit $ac_status); }; } &&
7839     { ac_try='test -s conftest.$ac_objext'
7840     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841     (eval $ac_try) 2>&5
7842     ac_status=$?
7843     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844     (exit $ac_status); }; }; then
7845 pcg 1.11 ac_hi=$ac_mid
7846     else
7847     echo "$as_me: failed program was:" >&5
7848     sed 's/^/| /' conftest.$ac_ext >&5
7849 pcg 1.1
7850 ayin 1.106 ac_lo=`expr '(' $ac_mid ')' + 1`
7851 pcg 1.11 fi
7852 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7853 pcg 1.11 done
7854     case $ac_lo in
7855 root 1.42 ?*) ac_cv_sizeof_short=$ac_lo;;
7856 ayin 1.106 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7857 pcg 1.11 See \`config.log' for more details." >&5
7858 ayin 1.106 echo "$as_me: error: cannot compute sizeof (short), 77
7859 pcg 1.11 See \`config.log' for more details." >&2;}
7860 ayin 1.106 { (exit 1); exit 1; }; } ;;
7861 pcg 1.11 esac
7862 pcg 1.1 else
7863 ayin 1.106 if test "$cross_compiling" = yes; then
7864     { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7865     See \`config.log' for more details." >&5
7866     echo "$as_me: error: cannot run test program while cross compiling
7867     See \`config.log' for more details." >&2;}
7868     { (exit 1); exit 1; }; }
7869     else
7870 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7871     /* confdefs.h. */
7872     _ACEOF
7873     cat confdefs.h >>conftest.$ac_ext
7874     cat >>conftest.$ac_ext <<_ACEOF
7875     /* end confdefs.h. */
7876     $ac_includes_default
7877 ayin 1.106 long longval () { return (long) (sizeof (short)); }
7878     unsigned long ulongval () { return (long) (sizeof (short)); }
7879 pcg 1.1 #include <stdio.h>
7880 pcg 1.11 #include <stdlib.h>
7881     int
7882     main ()
7883 pcg 1.1 {
7884 pcg 1.11
7885     FILE *f = fopen ("conftest.val", "w");
7886     if (! f)
7887 ayin 1.106 exit (1);
7888     if (((long) (sizeof (short))) < 0)
7889 pcg 1.11 {
7890 ayin 1.106 long i = longval ();
7891     if (i != ((long) (sizeof (short))))
7892     exit (1);
7893 pcg 1.11 fprintf (f, "%ld\n", i);
7894     }
7895     else
7896     {
7897 ayin 1.106 unsigned long i = ulongval ();
7898     if (i != ((long) (sizeof (short))))
7899     exit (1);
7900 pcg 1.11 fprintf (f, "%lu\n", i);
7901     }
7902 ayin 1.106 exit (ferror (f) || fclose (f) != 0);
7903 pcg 1.11
7904     ;
7905     return 0;
7906 pcg 1.1 }
7907 pcg 1.11 _ACEOF
7908     rm -f conftest$ac_exeext
7909 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7910     (eval $ac_link) 2>&5
7911 pcg 1.11 ac_status=$?
7912     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7914 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915     (eval $ac_try) 2>&5
7916 pcg 1.11 ac_status=$?
7917     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918     (exit $ac_status); }; }; then
7919 root 1.42 ac_cv_sizeof_short=`cat conftest.val`
7920 pcg 1.11 else
7921     echo "$as_me: program exited with status $ac_status" >&5
7922     echo "$as_me: failed program was:" >&5
7923     sed 's/^/| /' conftest.$ac_ext >&5
7924    
7925     ( exit $ac_status )
7926 ayin 1.106 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7927 pcg 1.11 See \`config.log' for more details." >&5
7928 ayin 1.106 echo "$as_me: error: cannot compute sizeof (short), 77
7929 pcg 1.11 See \`config.log' for more details." >&2;}
7930 ayin 1.106 { (exit 1); exit 1; }; }
7931     fi
7932     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7933 pcg 1.11 fi
7934     fi
7935     rm -f conftest.val
7936 ayin 1.106 else
7937     ac_cv_sizeof_short=0
7938 ayin 1.104 fi
7939 ayin 1.106 fi
7940     echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7941     echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7942 pcg 1.11 cat >>confdefs.h <<_ACEOF
7943 root 1.42 #define SIZEOF_SHORT $ac_cv_sizeof_short
7944 pcg 1.11 _ACEOF
7945    
7946    
7947 ayin 1.106 echo "$as_me:$LINENO: checking for int" >&5
7948     echo $ECHO_N "checking for int... $ECHO_C" >&6
7949 root 1.42 if test "${ac_cv_type_int+set}" = set; then
7950 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
7951     else
7952     cat >conftest.$ac_ext <<_ACEOF
7953     /* confdefs.h. */
7954     _ACEOF
7955     cat confdefs.h >>conftest.$ac_ext
7956     cat >>conftest.$ac_ext <<_ACEOF
7957     /* end confdefs.h. */
7958     $ac_includes_default
7959     int
7960     main ()
7961     {
7962 ayin 1.106 if ((int *) 0)
7963 pcg 1.11 return 0;
7964 ayin 1.106 if (sizeof (int))
7965 pcg 1.11 return 0;
7966     ;
7967     return 0;
7968     }
7969     _ACEOF
7970     rm -f conftest.$ac_objext
7971 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7972     (eval $ac_compile) 2>conftest.er1
7973 pcg 1.11 ac_status=$?
7974     grep -v '^ *+' conftest.er1 >conftest.err
7975     rm -f conftest.er1
7976     cat conftest.err >&5
7977     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 ayin 1.106 (exit $ac_status); } &&
7979     { ac_try='test -z "$ac_cxx_werror_flag"
7980     || test ! -s conftest.err'
7981     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982     (eval $ac_try) 2>&5
7983     ac_status=$?
7984     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985     (exit $ac_status); }; } &&
7986     { ac_try='test -s conftest.$ac_objext'
7987     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988     (eval $ac_try) 2>&5
7989     ac_status=$?
7990     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991     (exit $ac_status); }; }; then
7992 root 1.42 ac_cv_type_int=yes
7993 pcg 1.11 else
7994     echo "$as_me: failed program was:" >&5
7995     sed 's/^/| /' conftest.$ac_ext >&5
7996    
7997 ayin 1.106 ac_cv_type_int=no
7998 pcg 1.11 fi
7999 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8000 pcg 1.11 fi
8001 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8002     echo "${ECHO_T}$ac_cv_type_int" >&6
8003 pcg 1.11
8004 ayin 1.106 echo "$as_me:$LINENO: checking size of int" >&5
8005     echo $ECHO_N "checking size of int... $ECHO_C" >&6
8006 root 1.42 if test "${ac_cv_sizeof_int+set}" = set; then
8007 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
8008     else
8009 ayin 1.106 if test "$ac_cv_type_int" = yes; then
8010     # The cast to unsigned long works around a bug in the HP C Compiler
8011     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8012     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8013     # This bug is HP SR number 8606223364.
8014 pcg 1.11 if test "$cross_compiling" = yes; then
8015     # Depending upon the size, compute the lo and hi bounds.
8016     cat >conftest.$ac_ext <<_ACEOF
8017     /* confdefs.h. */
8018     _ACEOF
8019     cat confdefs.h >>conftest.$ac_ext
8020     cat >>conftest.$ac_ext <<_ACEOF
8021     /* end confdefs.h. */
8022     $ac_includes_default
8023     int
8024     main ()
8025     {
8026 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
8027 pcg 1.11 test_array [0] = 0
8028    
8029     ;
8030     return 0;
8031     }
8032     _ACEOF
8033     rm -f conftest.$ac_objext
8034 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8035     (eval $ac_compile) 2>conftest.er1
8036 pcg 1.11 ac_status=$?
8037     grep -v '^ *+' conftest.er1 >conftest.err
8038     rm -f conftest.er1
8039     cat conftest.err >&5
8040     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 ayin 1.106 (exit $ac_status); } &&
8042     { ac_try='test -z "$ac_cxx_werror_flag"
8043     || test ! -s conftest.err'
8044     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045     (eval $ac_try) 2>&5
8046     ac_status=$?
8047     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048     (exit $ac_status); }; } &&
8049     { ac_try='test -s conftest.$ac_objext'
8050     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051     (eval $ac_try) 2>&5
8052     ac_status=$?
8053     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054     (exit $ac_status); }; }; then
8055 pcg 1.11 ac_lo=0 ac_mid=0
8056     while :; do
8057     cat >conftest.$ac_ext <<_ACEOF
8058     /* confdefs.h. */
8059     _ACEOF
8060     cat confdefs.h >>conftest.$ac_ext
8061     cat >>conftest.$ac_ext <<_ACEOF
8062     /* end confdefs.h. */
8063     $ac_includes_default
8064     int
8065     main ()
8066     {
8067 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8068 pcg 1.11 test_array [0] = 0
8069    
8070     ;
8071     return 0;
8072     }
8073     _ACEOF
8074     rm -f conftest.$ac_objext
8075 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8076     (eval $ac_compile) 2>conftest.er1
8077 pcg 1.11 ac_status=$?
8078     grep -v '^ *+' conftest.er1 >conftest.err
8079     rm -f conftest.er1
8080     cat conftest.err >&5
8081     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 ayin 1.106 (exit $ac_status); } &&
8083     { ac_try='test -z "$ac_cxx_werror_flag"
8084     || test ! -s conftest.err'
8085     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086     (eval $ac_try) 2>&5
8087     ac_status=$?
8088     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089     (exit $ac_status); }; } &&
8090     { ac_try='test -s conftest.$ac_objext'
8091     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092     (eval $ac_try) 2>&5
8093     ac_status=$?
8094     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095     (exit $ac_status); }; }; then
8096 pcg 1.11 ac_hi=$ac_mid; break
8097     else
8098     echo "$as_me: failed program was:" >&5
8099     sed 's/^/| /' conftest.$ac_ext >&5
8100    
8101 ayin 1.106 ac_lo=`expr $ac_mid + 1`
8102     if test $ac_lo -le $ac_mid; then
8103     ac_lo= ac_hi=
8104     break
8105     fi
8106     ac_mid=`expr 2 '*' $ac_mid + 1`
8107 pcg 1.11 fi
8108 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8109 pcg 1.11 done
8110     else
8111     echo "$as_me: failed program was:" >&5
8112     sed 's/^/| /' conftest.$ac_ext >&5
8113    
8114 ayin 1.106 cat >conftest.$ac_ext <<_ACEOF
8115 pcg 1.11 /* confdefs.h. */
8116     _ACEOF
8117     cat confdefs.h >>conftest.$ac_ext
8118     cat >>conftest.$ac_ext <<_ACEOF
8119     /* end confdefs.h. */
8120     $ac_includes_default
8121     int
8122     main ()
8123     {
8124 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8125 pcg 1.11 test_array [0] = 0
8126    
8127     ;
8128     return 0;
8129     }
8130     _ACEOF
8131     rm -f conftest.$ac_objext
8132 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8133     (eval $ac_compile) 2>conftest.er1
8134 pcg 1.11 ac_status=$?
8135     grep -v '^ *+' conftest.er1 >conftest.err
8136     rm -f conftest.er1
8137     cat conftest.err >&5
8138     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 ayin 1.106 (exit $ac_status); } &&
8140     { ac_try='test -z "$ac_cxx_werror_flag"
8141     || test ! -s conftest.err'
8142     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143     (eval $ac_try) 2>&5
8144     ac_status=$?
8145     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146     (exit $ac_status); }; } &&
8147     { ac_try='test -s conftest.$ac_objext'
8148     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149     (eval $ac_try) 2>&5
8150     ac_status=$?
8151     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152     (exit $ac_status); }; }; then
8153 pcg 1.11 ac_hi=-1 ac_mid=-1
8154     while :; do
8155     cat >conftest.$ac_ext <<_ACEOF
8156     /* confdefs.h. */
8157     _ACEOF
8158     cat confdefs.h >>conftest.$ac_ext
8159     cat >>conftest.$ac_ext <<_ACEOF
8160     /* end confdefs.h. */
8161     $ac_includes_default
8162     int
8163     main ()
8164     {
8165 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8166 pcg 1.11 test_array [0] = 0
8167    
8168     ;
8169     return 0;
8170     }
8171     _ACEOF
8172     rm -f conftest.$ac_objext
8173 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8174     (eval $ac_compile) 2>conftest.er1
8175 pcg 1.11 ac_status=$?
8176     grep -v '^ *+' conftest.er1 >conftest.err
8177     rm -f conftest.er1
8178     cat conftest.err >&5
8179     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 ayin 1.106 (exit $ac_status); } &&
8181     { ac_try='test -z "$ac_cxx_werror_flag"
8182     || test ! -s conftest.err'
8183     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184     (eval $ac_try) 2>&5
8185     ac_status=$?
8186     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187     (exit $ac_status); }; } &&
8188     { ac_try='test -s conftest.$ac_objext'
8189     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190     (eval $ac_try) 2>&5
8191     ac_status=$?
8192     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193     (exit $ac_status); }; }; then
8194 pcg 1.11 ac_lo=$ac_mid; break
8195     else
8196     echo "$as_me: failed program was:" >&5
8197     sed 's/^/| /' conftest.$ac_ext >&5
8198    
8199 ayin 1.106 ac_hi=`expr '(' $ac_mid ')' - 1`
8200     if test $ac_mid -le $ac_hi; then
8201     ac_lo= ac_hi=
8202     break
8203     fi
8204     ac_mid=`expr 2 '*' $ac_mid`
8205 pcg 1.11 fi
8206 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8207 pcg 1.11 done
8208     else
8209     echo "$as_me: failed program was:" >&5
8210     sed 's/^/| /' conftest.$ac_ext >&5
8211 pcg 1.1
8212 ayin 1.106 ac_lo= ac_hi=
8213 pcg 1.11 fi
8214 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8215 pcg 1.1 fi
8216 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8217 pcg 1.11 # Binary search between lo and hi bounds.
8218     while test "x$ac_lo" != "x$ac_hi"; do
8219     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8220     cat >conftest.$ac_ext <<_ACEOF
8221     /* confdefs.h. */
8222     _ACEOF
8223     cat confdefs.h >>conftest.$ac_ext
8224     cat >>conftest.$ac_ext <<_ACEOF
8225     /* end confdefs.h. */
8226     $ac_includes_default
8227     int
8228     main ()
8229     {
8230 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8231 pcg 1.11 test_array [0] = 0
8232 pcg 1.1
8233 pcg 1.11 ;
8234     return 0;
8235     }
8236     _ACEOF
8237     rm -f conftest.$ac_objext
8238 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8239     (eval $ac_compile) 2>conftest.er1
8240 pcg 1.11 ac_status=$?
8241     grep -v '^ *+' conftest.er1 >conftest.err
8242     rm -f conftest.er1
8243     cat conftest.err >&5
8244     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 ayin 1.106 (exit $ac_status); } &&
8246     { ac_try='test -z "$ac_cxx_werror_flag"
8247     || test ! -s conftest.err'
8248     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8249     (eval $ac_try) 2>&5
8250     ac_status=$?
8251     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252     (exit $ac_status); }; } &&
8253     { ac_try='test -s conftest.$ac_objext'
8254     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255     (eval $ac_try) 2>&5
8256     ac_status=$?
8257     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258     (exit $ac_status); }; }; then
8259 pcg 1.11 ac_hi=$ac_mid
8260     else
8261     echo "$as_me: failed program was:" >&5
8262     sed 's/^/| /' conftest.$ac_ext >&5
8263 pcg 1.1
8264 ayin 1.106 ac_lo=`expr '(' $ac_mid ')' + 1`
8265 pcg 1.11 fi
8266 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8267 pcg 1.11 done
8268     case $ac_lo in
8269 root 1.42 ?*) ac_cv_sizeof_int=$ac_lo;;
8270 ayin 1.106 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8271 pcg 1.11 See \`config.log' for more details." >&5
8272 ayin 1.106 echo "$as_me: error: cannot compute sizeof (int), 77
8273 pcg 1.11 See \`config.log' for more details." >&2;}
8274 ayin 1.106 { (exit 1); exit 1; }; } ;;
8275 pcg 1.11 esac
8276 pcg 1.1 else
8277 ayin 1.106 if test "$cross_compiling" = yes; then
8278     { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8279     See \`config.log' for more details." >&5
8280     echo "$as_me: error: cannot run test program while cross compiling
8281     See \`config.log' for more details." >&2;}
8282     { (exit 1); exit 1; }; }
8283     else
8284 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
8285     /* confdefs.h. */
8286     _ACEOF
8287     cat confdefs.h >>conftest.$ac_ext
8288     cat >>conftest.$ac_ext <<_ACEOF
8289     /* end confdefs.h. */
8290     $ac_includes_default
8291 ayin 1.106 long longval () { return (long) (sizeof (int)); }
8292     unsigned long ulongval () { return (long) (sizeof (int)); }
8293 pcg 1.1 #include <stdio.h>
8294 pcg 1.11 #include <stdlib.h>
8295     int
8296     main ()
8297 pcg 1.1 {
8298 pcg 1.11
8299     FILE *f = fopen ("conftest.val", "w");
8300     if (! f)
8301 ayin 1.106 exit (1);
8302     if (((long) (sizeof (int))) < 0)
8303 pcg 1.11 {
8304 ayin 1.106 long i = longval ();
8305     if (i != ((long) (sizeof (int))))
8306     exit (1);
8307 pcg 1.11 fprintf (f, "%ld\n", i);
8308     }
8309     else
8310     {
8311 ayin 1.106 unsigned long i = ulongval ();
8312     if (i != ((long) (sizeof (int))))
8313     exit (1);
8314 pcg 1.11 fprintf (f, "%lu\n", i);
8315     }
8316 ayin 1.106 exit (ferror (f) || fclose (f) != 0);
8317 pcg 1.11
8318     ;
8319     return 0;
8320 pcg 1.1 }
8321 pcg 1.11 _ACEOF
8322     rm -f conftest$ac_exeext
8323 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324     (eval $ac_link) 2>&5
8325 pcg 1.11 ac_status=$?
8326     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8328 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329     (eval $ac_try) 2>&5
8330 pcg 1.11 ac_status=$?
8331     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332     (exit $ac_status); }; }; then
8333 root 1.42 ac_cv_sizeof_int=`cat conftest.val`
8334 pcg 1.11 else
8335     echo "$as_me: program exited with status $ac_status" >&5
8336     echo "$as_me: failed program was:" >&5
8337     sed 's/^/| /' conftest.$ac_ext >&5
8338    
8339     ( exit $ac_status )
8340 ayin 1.106 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8341 pcg 1.11 See \`config.log' for more details." >&5
8342 ayin 1.106 echo "$as_me: error: cannot compute sizeof (int), 77
8343 pcg 1.11 See \`config.log' for more details." >&2;}
8344 ayin 1.106 { (exit 1); exit 1; }; }
8345     fi
8346     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8347 pcg 1.11 fi
8348     fi
8349     rm -f conftest.val
8350 ayin 1.106 else
8351     ac_cv_sizeof_int=0
8352 ayin 1.104 fi
8353 ayin 1.106 fi
8354     echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8355     echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8356 pcg 1.11 cat >>confdefs.h <<_ACEOF
8357 root 1.42 #define SIZEOF_INT $ac_cv_sizeof_int
8358 pcg 1.11 _ACEOF
8359    
8360    
8361 ayin 1.106 echo "$as_me:$LINENO: checking for long long" >&5
8362     echo $ECHO_N "checking for long long... $ECHO_C" >&6
8363 pcg 1.11 if test "${ac_cv_type_long_long+set}" = set; then
8364     echo $ECHO_N "(cached) $ECHO_C" >&6
8365     else
8366     cat >conftest.$ac_ext <<_ACEOF
8367     /* confdefs.h. */
8368     _ACEOF
8369     cat confdefs.h >>conftest.$ac_ext
8370     cat >>conftest.$ac_ext <<_ACEOF
8371     /* end confdefs.h. */
8372     $ac_includes_default
8373     int
8374     main ()
8375     {
8376 ayin 1.106 if ((long long *) 0)
8377 pcg 1.11 return 0;
8378 ayin 1.106 if (sizeof (long long))
8379 pcg 1.11 return 0;
8380     ;
8381     return 0;
8382     }
8383     _ACEOF
8384     rm -f conftest.$ac_objext
8385 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8386     (eval $ac_compile) 2>conftest.er1
8387 pcg 1.11 ac_status=$?
8388     grep -v '^ *+' conftest.er1 >conftest.err
8389     rm -f conftest.er1
8390     cat conftest.err >&5
8391     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 ayin 1.106 (exit $ac_status); } &&
8393     { ac_try='test -z "$ac_cxx_werror_flag"
8394     || test ! -s conftest.err'
8395     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396     (eval $ac_try) 2>&5
8397     ac_status=$?
8398     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399     (exit $ac_status); }; } &&
8400     { ac_try='test -s conftest.$ac_objext'
8401     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402     (eval $ac_try) 2>&5
8403     ac_status=$?
8404     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405     (exit $ac_status); }; }; then
8406 pcg 1.11 ac_cv_type_long_long=yes
8407     else
8408     echo "$as_me: failed program was:" >&5
8409     sed 's/^/| /' conftest.$ac_ext >&5
8410    
8411 ayin 1.106 ac_cv_type_long_long=no
8412 pcg 1.11 fi
8413 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8414 pcg 1.11 fi
8415 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8416     echo "${ECHO_T}$ac_cv_type_long_long" >&6
8417 pcg 1.11
8418 ayin 1.106 echo "$as_me:$LINENO: checking size of long long" >&5
8419     echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8420 pcg 1.11 if test "${ac_cv_sizeof_long_long+set}" = set; then
8421     echo $ECHO_N "(cached) $ECHO_C" >&6
8422     else
8423 ayin 1.106 if test "$ac_cv_type_long_long" = yes; then
8424     # The cast to unsigned long works around a bug in the HP C Compiler
8425     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8426     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8427     # This bug is HP SR number 8606223364.
8428 pcg 1.11 if test "$cross_compiling" = yes; then
8429     # Depending upon the size, compute the lo and hi bounds.
8430     cat >conftest.$ac_ext <<_ACEOF
8431     /* confdefs.h. */
8432     _ACEOF
8433     cat confdefs.h >>conftest.$ac_ext
8434     cat >>conftest.$ac_ext <<_ACEOF
8435     /* end confdefs.h. */
8436     $ac_includes_default
8437     int
8438     main ()
8439     {
8440 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8441 pcg 1.11 test_array [0] = 0
8442    
8443     ;
8444     return 0;
8445     }
8446     _ACEOF
8447     rm -f conftest.$ac_objext
8448 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8449     (eval $ac_compile) 2>conftest.er1
8450 pcg 1.11 ac_status=$?
8451     grep -v '^ *+' conftest.er1 >conftest.err
8452     rm -f conftest.er1
8453     cat conftest.err >&5
8454     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 ayin 1.106 (exit $ac_status); } &&
8456     { ac_try='test -z "$ac_cxx_werror_flag"
8457     || test ! -s conftest.err'
8458     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459     (eval $ac_try) 2>&5
8460     ac_status=$?
8461     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462     (exit $ac_status); }; } &&
8463     { ac_try='test -s conftest.$ac_objext'
8464     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465     (eval $ac_try) 2>&5
8466     ac_status=$?
8467     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468     (exit $ac_status); }; }; then
8469 pcg 1.11 ac_lo=0 ac_mid=0
8470     while :; do
8471     cat >conftest.$ac_ext <<_ACEOF
8472     /* confdefs.h. */
8473     _ACEOF
8474     cat confdefs.h >>conftest.$ac_ext
8475     cat >>conftest.$ac_ext <<_ACEOF
8476     /* end confdefs.h. */
8477     $ac_includes_default
8478     int
8479     main ()
8480     {
8481 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8482 pcg 1.11 test_array [0] = 0
8483    
8484     ;
8485     return 0;
8486     }
8487     _ACEOF
8488     rm -f conftest.$ac_objext
8489 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8490     (eval $ac_compile) 2>conftest.er1
8491 pcg 1.11 ac_status=$?
8492     grep -v '^ *+' conftest.er1 >conftest.err
8493     rm -f conftest.er1
8494     cat conftest.err >&5
8495     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 ayin 1.106 (exit $ac_status); } &&
8497     { ac_try='test -z "$ac_cxx_werror_flag"
8498     || test ! -s conftest.err'
8499     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500     (eval $ac_try) 2>&5
8501     ac_status=$?
8502     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503     (exit $ac_status); }; } &&
8504     { ac_try='test -s conftest.$ac_objext'
8505     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506     (eval $ac_try) 2>&5
8507     ac_status=$?
8508     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509     (exit $ac_status); }; }; then
8510 root 1.105 ac_hi=$ac_mid; break
8511     else
8512 pcg 1.11 echo "$as_me: failed program was:" >&5
8513     sed 's/^/| /' conftest.$ac_ext >&5
8514    
8515 ayin 1.106 ac_lo=`expr $ac_mid + 1`
8516     if test $ac_lo -le $ac_mid; then
8517     ac_lo= ac_hi=
8518     break
8519     fi
8520     ac_mid=`expr 2 '*' $ac_mid + 1`
8521 pcg 1.11 fi
8522 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8523 pcg 1.11 done
8524     else
8525     echo "$as_me: failed program was:" >&5
8526     sed 's/^/| /' conftest.$ac_ext >&5
8527    
8528 ayin 1.106 cat >conftest.$ac_ext <<_ACEOF
8529 pcg 1.11 /* confdefs.h. */
8530     _ACEOF
8531     cat confdefs.h >>conftest.$ac_ext
8532     cat >>conftest.$ac_ext <<_ACEOF
8533     /* end confdefs.h. */
8534     $ac_includes_default
8535     int
8536     main ()
8537     {
8538 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8539 pcg 1.11 test_array [0] = 0
8540    
8541     ;
8542     return 0;
8543     }
8544     _ACEOF
8545     rm -f conftest.$ac_objext
8546 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8547     (eval $ac_compile) 2>conftest.er1
8548 pcg 1.11 ac_status=$?
8549     grep -v '^ *+' conftest.er1 >conftest.err
8550     rm -f conftest.er1
8551     cat conftest.err >&5
8552     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 ayin 1.106 (exit $ac_status); } &&
8554     { ac_try='test -z "$ac_cxx_werror_flag"
8555     || test ! -s conftest.err'
8556     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557     (eval $ac_try) 2>&5
8558     ac_status=$?
8559     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560     (exit $ac_status); }; } &&
8561     { ac_try='test -s conftest.$ac_objext'
8562     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563     (eval $ac_try) 2>&5
8564     ac_status=$?
8565     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566     (exit $ac_status); }; }; then
8567 pcg 1.11 ac_hi=-1 ac_mid=-1
8568     while :; do
8569     cat >conftest.$ac_ext <<_ACEOF
8570     /* confdefs.h. */
8571     _ACEOF
8572     cat confdefs.h >>conftest.$ac_ext
8573     cat >>conftest.$ac_ext <<_ACEOF
8574     /* end confdefs.h. */
8575     $ac_includes_default
8576     int
8577     main ()
8578     {
8579 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8580 pcg 1.11 test_array [0] = 0
8581    
8582     ;
8583     return 0;
8584     }
8585     _ACEOF
8586     rm -f conftest.$ac_objext
8587 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8588     (eval $ac_compile) 2>conftest.er1
8589 pcg 1.11 ac_status=$?
8590     grep -v '^ *+' conftest.er1 >conftest.err
8591     rm -f conftest.er1
8592     cat conftest.err >&5
8593     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 ayin 1.106 (exit $ac_status); } &&
8595     { ac_try='test -z "$ac_cxx_werror_flag"
8596     || test ! -s conftest.err'
8597     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598     (eval $ac_try) 2>&5
8599     ac_status=$?
8600     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601     (exit $ac_status); }; } &&
8602     { ac_try='test -s conftest.$ac_objext'
8603     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604     (eval $ac_try) 2>&5
8605     ac_status=$?
8606     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607     (exit $ac_status); }; }; then
8608 pcg 1.11 ac_lo=$ac_mid; break
8609     else
8610     echo "$as_me: failed program was:" >&5
8611     sed 's/^/| /' conftest.$ac_ext >&5
8612    
8613 ayin 1.106 ac_hi=`expr '(' $ac_mid ')' - 1`
8614     if test $ac_mid -le $ac_hi; then
8615     ac_lo= ac_hi=
8616     break
8617     fi
8618     ac_mid=`expr 2 '*' $ac_mid`
8619 pcg 1.11 fi
8620 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8621 pcg 1.11 done
8622     else
8623     echo "$as_me: failed program was:" >&5
8624     sed 's/^/| /' conftest.$ac_ext >&5
8625 pcg 1.1
8626 ayin 1.106 ac_lo= ac_hi=
8627 pcg 1.11 fi
8628 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8629 pcg 1.1 fi
8630 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8631 pcg 1.11 # Binary search between lo and hi bounds.
8632     while test "x$ac_lo" != "x$ac_hi"; do
8633     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8634     cat >conftest.$ac_ext <<_ACEOF
8635     /* confdefs.h. */
8636     _ACEOF
8637     cat confdefs.h >>conftest.$ac_ext
8638     cat >>conftest.$ac_ext <<_ACEOF
8639     /* end confdefs.h. */
8640     $ac_includes_default
8641     int
8642     main ()
8643     {
8644 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8645 pcg 1.11 test_array [0] = 0
8646 pcg 1.1
8647 pcg 1.11 ;
8648     return 0;
8649     }
8650     _ACEOF
8651     rm -f conftest.$ac_objext
8652 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8653     (eval $ac_compile) 2>conftest.er1
8654 pcg 1.11 ac_status=$?
8655     grep -v '^ *+' conftest.er1 >conftest.err
8656     rm -f conftest.er1
8657     cat conftest.err >&5
8658     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 ayin 1.106 (exit $ac_status); } &&
8660     { ac_try='test -z "$ac_cxx_werror_flag"
8661     || test ! -s conftest.err'
8662     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663     (eval $ac_try) 2>&5
8664     ac_status=$?
8665     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666     (exit $ac_status); }; } &&
8667     { ac_try='test -s conftest.$ac_objext'
8668     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669     (eval $ac_try) 2>&5
8670     ac_status=$?
8671     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672     (exit $ac_status); }; }; then
8673 pcg 1.11 ac_hi=$ac_mid
8674     else
8675     echo "$as_me: failed program was:" >&5
8676     sed 's/^/| /' conftest.$ac_ext >&5
8677 pcg 1.1
8678 ayin 1.106 ac_lo=`expr '(' $ac_mid ')' + 1`
8679 pcg 1.11 fi
8680 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8681 pcg 1.11 done
8682     case $ac_lo in
8683     ?*) ac_cv_sizeof_long_long=$ac_lo;;
8684 ayin 1.106 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8685 pcg 1.11 See \`config.log' for more details." >&5
8686 ayin 1.106 echo "$as_me: error: cannot compute sizeof (long long), 77
8687 pcg 1.11 See \`config.log' for more details." >&2;}
8688 ayin 1.106 { (exit 1); exit 1; }; } ;;
8689 pcg 1.11 esac
8690 pcg 1.1 else
8691 ayin 1.106 if test "$cross_compiling" = yes; then
8692     { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8693     See \`config.log' for more details." >&5
8694     echo "$as_me: error: cannot run test program while cross compiling
8695     See \`config.log' for more details." >&2;}
8696     { (exit 1); exit 1; }; }
8697     else
8698 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
8699     /* confdefs.h. */
8700     _ACEOF
8701     cat confdefs.h >>conftest.$ac_ext
8702     cat >>conftest.$ac_ext <<_ACEOF
8703     /* end confdefs.h. */
8704     $ac_includes_default
8705 ayin 1.106 long longval () { return (long) (sizeof (long long)); }
8706     unsigned long ulongval () { return (long) (sizeof (long long)); }
8707 pcg 1.1 #include <stdio.h>
8708 pcg 1.11 #include <stdlib.h>
8709     int
8710     main ()
8711 pcg 1.1 {
8712 pcg 1.11
8713     FILE *f = fopen ("conftest.val", "w");
8714     if (! f)
8715 ayin 1.106 exit (1);
8716     if (((long) (sizeof (long long))) < 0)
8717 pcg 1.11 {
8718 ayin 1.106 long i = longval ();
8719     if (i != ((long) (sizeof (long long))))
8720     exit (1);
8721 pcg 1.11 fprintf (f, "%ld\n", i);
8722     }
8723     else
8724     {
8725 ayin 1.106 unsigned long i = ulongval ();
8726     if (i != ((long) (sizeof (long long))))
8727     exit (1);
8728 pcg 1.11 fprintf (f, "%lu\n", i);
8729     }
8730 ayin 1.106 exit (ferror (f) || fclose (f) != 0);
8731 pcg 1.11
8732     ;
8733     return 0;
8734 pcg 1.1 }
8735 pcg 1.11 _ACEOF
8736     rm -f conftest$ac_exeext
8737 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8738     (eval $ac_link) 2>&5
8739 pcg 1.11 ac_status=$?
8740     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8742 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743     (eval $ac_try) 2>&5
8744 pcg 1.11 ac_status=$?
8745     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746     (exit $ac_status); }; }; then
8747     ac_cv_sizeof_long_long=`cat conftest.val`
8748     else
8749     echo "$as_me: program exited with status $ac_status" >&5
8750     echo "$as_me: failed program was:" >&5
8751     sed 's/^/| /' conftest.$ac_ext >&5
8752    
8753     ( exit $ac_status )
8754 ayin 1.106 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8755 pcg 1.11 See \`config.log' for more details." >&5
8756 ayin 1.106 echo "$as_me: error: cannot compute sizeof (long long), 77
8757 pcg 1.11 See \`config.log' for more details." >&2;}
8758 ayin 1.106 { (exit 1); exit 1; }; }
8759     fi
8760     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8761 pcg 1.11 fi
8762     fi
8763     rm -f conftest.val
8764 ayin 1.106 else
8765     ac_cv_sizeof_long_long=0
8766 ayin 1.104 fi
8767 ayin 1.106 fi
8768     echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8769     echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8770 pcg 1.11 cat >>confdefs.h <<_ACEOF
8771     #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8772     _ACEOF
8773    
8774    
8775 ayin 1.106 echo "$as_me:$LINENO: checking for int *" >&5
8776     echo $ECHO_N "checking for int *... $ECHO_C" >&6
8777 pcg 1.11 if test "${ac_cv_type_int_p+set}" = set; then
8778     echo $ECHO_N "(cached) $ECHO_C" >&6
8779     else
8780     cat >conftest.$ac_ext <<_ACEOF
8781     /* confdefs.h. */
8782     _ACEOF
8783     cat confdefs.h >>conftest.$ac_ext
8784     cat >>conftest.$ac_ext <<_ACEOF
8785     /* end confdefs.h. */
8786     $ac_includes_default
8787     int
8788     main ()
8789     {
8790 ayin 1.106 if ((int * *) 0)
8791 pcg 1.11 return 0;
8792 ayin 1.106 if (sizeof (int *))
8793 pcg 1.11 return 0;
8794     ;
8795     return 0;
8796     }
8797     _ACEOF
8798     rm -f conftest.$ac_objext
8799 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8800     (eval $ac_compile) 2>conftest.er1
8801 pcg 1.11 ac_status=$?
8802     grep -v '^ *+' conftest.er1 >conftest.err
8803     rm -f conftest.er1
8804     cat conftest.err >&5
8805     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 ayin 1.106 (exit $ac_status); } &&
8807     { ac_try='test -z "$ac_cxx_werror_flag"
8808     || test ! -s conftest.err'
8809     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810     (eval $ac_try) 2>&5
8811     ac_status=$?
8812     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813     (exit $ac_status); }; } &&
8814     { ac_try='test -s conftest.$ac_objext'
8815     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816     (eval $ac_try) 2>&5
8817     ac_status=$?
8818     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819     (exit $ac_status); }; }; then
8820 pcg 1.11 ac_cv_type_int_p=yes
8821     else
8822     echo "$as_me: failed program was:" >&5
8823     sed 's/^/| /' conftest.$ac_ext >&5
8824    
8825 ayin 1.106 ac_cv_type_int_p=no
8826 pcg 1.11 fi
8827 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8828 pcg 1.11 fi
8829 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
8830     echo "${ECHO_T}$ac_cv_type_int_p" >&6
8831 pcg 1.11
8832 ayin 1.106 echo "$as_me:$LINENO: checking size of int *" >&5
8833     echo $ECHO_N "checking size of int *... $ECHO_C" >&6
8834 pcg 1.11 if test "${ac_cv_sizeof_int_p+set}" = set; then
8835     echo $ECHO_N "(cached) $ECHO_C" >&6
8836     else
8837 ayin 1.106 if test "$ac_cv_type_int_p" = yes; then
8838     # The cast to unsigned long works around a bug in the HP C Compiler
8839     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8840     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8841     # This bug is HP SR number 8606223364.
8842 pcg 1.11 if test "$cross_compiling" = yes; then
8843     # Depending upon the size, compute the lo and hi bounds.
8844     cat >conftest.$ac_ext <<_ACEOF
8845     /* confdefs.h. */
8846     _ACEOF
8847     cat confdefs.h >>conftest.$ac_ext
8848     cat >>conftest.$ac_ext <<_ACEOF
8849     /* end confdefs.h. */
8850     $ac_includes_default
8851     int
8852     main ()
8853     {
8854 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
8855 pcg 1.11 test_array [0] = 0
8856    
8857     ;
8858     return 0;
8859     }
8860     _ACEOF
8861     rm -f conftest.$ac_objext
8862 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8863     (eval $ac_compile) 2>conftest.er1
8864 pcg 1.11 ac_status=$?
8865     grep -v '^ *+' conftest.er1 >conftest.err
8866     rm -f conftest.er1
8867     cat conftest.err >&5
8868     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 ayin 1.106 (exit $ac_status); } &&
8870     { ac_try='test -z "$ac_cxx_werror_flag"
8871     || test ! -s conftest.err'
8872     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873     (eval $ac_try) 2>&5
8874     ac_status=$?
8875     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876     (exit $ac_status); }; } &&
8877     { ac_try='test -s conftest.$ac_objext'
8878     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879     (eval $ac_try) 2>&5
8880     ac_status=$?
8881     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882     (exit $ac_status); }; }; then
8883 pcg 1.11 ac_lo=0 ac_mid=0
8884     while :; do
8885     cat >conftest.$ac_ext <<_ACEOF
8886     /* confdefs.h. */
8887     _ACEOF
8888     cat confdefs.h >>conftest.$ac_ext
8889     cat >>conftest.$ac_ext <<_ACEOF
8890     /* end confdefs.h. */
8891     $ac_includes_default
8892     int
8893     main ()
8894     {
8895 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
8896 pcg 1.11 test_array [0] = 0
8897    
8898     ;
8899     return 0;
8900     }
8901     _ACEOF
8902     rm -f conftest.$ac_objext
8903 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8904     (eval $ac_compile) 2>conftest.er1
8905 pcg 1.11 ac_status=$?
8906     grep -v '^ *+' conftest.er1 >conftest.err
8907     rm -f conftest.er1
8908     cat conftest.err >&5
8909     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 ayin 1.106 (exit $ac_status); } &&
8911     { ac_try='test -z "$ac_cxx_werror_flag"
8912     || test ! -s conftest.err'
8913     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914     (eval $ac_try) 2>&5
8915     ac_status=$?
8916     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917     (exit $ac_status); }; } &&
8918     { ac_try='test -s conftest.$ac_objext'
8919     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920     (eval $ac_try) 2>&5
8921     ac_status=$?
8922     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923     (exit $ac_status); }; }; then
8924 pcg 1.11 ac_hi=$ac_mid; break
8925     else
8926     echo "$as_me: failed program was:" >&5
8927     sed 's/^/| /' conftest.$ac_ext >&5
8928    
8929 ayin 1.106 ac_lo=`expr $ac_mid + 1`
8930     if test $ac_lo -le $ac_mid; then
8931     ac_lo= ac_hi=
8932     break
8933     fi
8934     ac_mid=`expr 2 '*' $ac_mid + 1`
8935 pcg 1.11 fi
8936 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8937 pcg 1.11 done
8938     else
8939     echo "$as_me: failed program was:" >&5
8940     sed 's/^/| /' conftest.$ac_ext >&5
8941    
8942 ayin 1.106 cat >conftest.$ac_ext <<_ACEOF
8943 pcg 1.11 /* confdefs.h. */
8944     _ACEOF
8945     cat confdefs.h >>conftest.$ac_ext
8946     cat >>conftest.$ac_ext <<_ACEOF
8947     /* end confdefs.h. */
8948     $ac_includes_default
8949     int
8950     main ()
8951     {
8952 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
8953 pcg 1.11 test_array [0] = 0
8954    
8955     ;
8956     return 0;
8957     }
8958     _ACEOF
8959     rm -f conftest.$ac_objext
8960 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8961     (eval $ac_compile) 2>conftest.er1
8962 pcg 1.11 ac_status=$?
8963     grep -v '^ *+' conftest.er1 >conftest.err
8964     rm -f conftest.er1
8965     cat conftest.err >&5
8966     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 ayin 1.106 (exit $ac_status); } &&
8968     { ac_try='test -z "$ac_cxx_werror_flag"
8969     || test ! -s conftest.err'
8970     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971     (eval $ac_try) 2>&5
8972     ac_status=$?
8973     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974     (exit $ac_status); }; } &&
8975     { ac_try='test -s conftest.$ac_objext'
8976     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977     (eval $ac_try) 2>&5
8978     ac_status=$?
8979     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980     (exit $ac_status); }; }; then
8981 pcg 1.11 ac_hi=-1 ac_mid=-1
8982     while :; do
8983     cat >conftest.$ac_ext <<_ACEOF
8984     /* confdefs.h. */
8985     _ACEOF
8986     cat confdefs.h >>conftest.$ac_ext
8987     cat >>conftest.$ac_ext <<_ACEOF
8988     /* end confdefs.h. */
8989     $ac_includes_default
8990     int
8991     main ()
8992     {
8993 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
8994 pcg 1.11 test_array [0] = 0
8995    
8996     ;
8997     return 0;
8998     }
8999     _ACEOF
9000     rm -f conftest.$ac_objext
9001 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9002     (eval $ac_compile) 2>conftest.er1
9003 pcg 1.11 ac_status=$?
9004     grep -v '^ *+' conftest.er1 >conftest.err
9005     rm -f conftest.er1
9006     cat conftest.err >&5
9007     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 ayin 1.106 (exit $ac_status); } &&
9009     { ac_try='test -z "$ac_cxx_werror_flag"
9010     || test ! -s conftest.err'
9011     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012     (eval $ac_try) 2>&5
9013     ac_status=$?
9014     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015     (exit $ac_status); }; } &&
9016     { ac_try='test -s conftest.$ac_objext'
9017     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018     (eval $ac_try) 2>&5
9019     ac_status=$?
9020     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021     (exit $ac_status); }; }; then
9022 pcg 1.11 ac_lo=$ac_mid; break
9023     else
9024     echo "$as_me: failed program was:" >&5
9025     sed 's/^/| /' conftest.$ac_ext >&5
9026    
9027 ayin 1.106 ac_hi=`expr '(' $ac_mid ')' - 1`
9028     if test $ac_mid -le $ac_hi; then
9029     ac_lo= ac_hi=
9030     break
9031     fi
9032     ac_mid=`expr 2 '*' $ac_mid`
9033 pcg 1.11 fi
9034 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9035 pcg 1.11 done
9036     else
9037     echo "$as_me: failed program was:" >&5
9038     sed 's/^/| /' conftest.$ac_ext >&5
9039    
9040 ayin 1.106 ac_lo= ac_hi=
9041 pcg 1.11 fi
9042 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9043 pcg 1.11 fi
9044 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9045 pcg 1.11 # Binary search between lo and hi bounds.
9046     while test "x$ac_lo" != "x$ac_hi"; do
9047     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9048     cat >conftest.$ac_ext <<_ACEOF
9049     /* confdefs.h. */
9050     _ACEOF
9051     cat confdefs.h >>conftest.$ac_ext
9052     cat >>conftest.$ac_ext <<_ACEOF
9053     /* end confdefs.h. */
9054     $ac_includes_default
9055     int
9056     main ()
9057     {
9058 ayin 1.106 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9059 pcg 1.11 test_array [0] = 0
9060    
9061     ;
9062     return 0;
9063     }
9064     _ACEOF
9065     rm -f conftest.$ac_objext
9066 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9067     (eval $ac_compile) 2>conftest.er1
9068 pcg 1.11 ac_status=$?
9069     grep -v '^ *+' conftest.er1 >conftest.err
9070     rm -f conftest.er1
9071     cat conftest.err >&5
9072     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 ayin 1.106 (exit $ac_status); } &&
9074     { ac_try='test -z "$ac_cxx_werror_flag"
9075     || test ! -s conftest.err'
9076     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077     (eval $ac_try) 2>&5
9078     ac_status=$?
9079     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080     (exit $ac_status); }; } &&
9081     { ac_try='test -s conftest.$ac_objext'
9082     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083     (eval $ac_try) 2>&5
9084     ac_status=$?
9085     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086     (exit $ac_status); }; }; then
9087 pcg 1.11 ac_hi=$ac_mid
9088     else
9089     echo "$as_me: failed program was:" >&5
9090     sed 's/^/| /' conftest.$ac_ext >&5
9091 pcg 1.1
9092 ayin 1.106 ac_lo=`expr '(' $ac_mid ')' + 1`
9093 pcg 1.1 fi
9094 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9095 pcg 1.11 done
9096     case $ac_lo in
9097     ?*) ac_cv_sizeof_int_p=$ac_lo;;
9098 ayin 1.106 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9099 pcg 1.11 See \`config.log' for more details." >&5
9100 ayin 1.106 echo "$as_me: error: cannot compute sizeof (int *), 77
9101 pcg 1.11 See \`config.log' for more details." >&2;}
9102 ayin 1.106 { (exit 1); exit 1; }; } ;;
9103 pcg 1.11 esac
9104 pcg 1.1 else
9105 ayin 1.106 if test "$cross_compiling" = yes; then
9106     { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9107     See \`config.log' for more details." >&5
9108     echo "$as_me: error: cannot run test program while cross compiling
9109     See \`config.log' for more details." >&2;}
9110     { (exit 1); exit 1; }; }
9111     else
9112 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
9113     /* confdefs.h. */
9114     _ACEOF
9115     cat confdefs.h >>conftest.$ac_ext
9116     cat >>conftest.$ac_ext <<_ACEOF
9117     /* end confdefs.h. */
9118     $ac_includes_default
9119 ayin 1.106 long longval () { return (long) (sizeof (int *)); }
9120     unsigned long ulongval () { return (long) (sizeof (int *)); }
9121 pcg 1.1 #include <stdio.h>
9122 pcg 1.11 #include <stdlib.h>
9123     int
9124     main ()
9125 pcg 1.1 {
9126 pcg 1.11
9127     FILE *f = fopen ("conftest.val", "w");
9128     if (! f)
9129 ayin 1.106 exit (1);
9130     if (((long) (sizeof (int *))) < 0)
9131 pcg 1.11 {
9132 ayin 1.106 long i = longval ();
9133     if (i != ((long) (sizeof (int *))))
9134     exit (1);
9135 pcg 1.11 fprintf (f, "%ld\n", i);
9136     }
9137     else
9138     {
9139 ayin 1.106 unsigned long i = ulongval ();
9140     if (i != ((long) (sizeof (int *))))
9141     exit (1);
9142 pcg 1.11 fprintf (f, "%lu\n", i);
9143     }
9144 ayin 1.106 exit (ferror (f) || fclose (f) != 0);
9145 pcg 1.11
9146     ;
9147     return 0;
9148 pcg 1.1 }
9149 pcg 1.11 _ACEOF
9150     rm -f conftest$ac_exeext
9151 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9152     (eval $ac_link) 2>&5
9153 pcg 1.11 ac_status=$?
9154     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9156 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157     (eval $ac_try) 2>&5
9158 pcg 1.11 ac_status=$?
9159     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160     (exit $ac_status); }; }; then
9161     ac_cv_sizeof_int_p=`cat conftest.val`
9162     else
9163     echo "$as_me: program exited with status $ac_status" >&5
9164     echo "$as_me: failed program was:" >&5
9165     sed 's/^/| /' conftest.$ac_ext >&5
9166    
9167     ( exit $ac_status )
9168 ayin 1.106 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9169 pcg 1.11 See \`config.log' for more details." >&5
9170 ayin 1.106 echo "$as_me: error: cannot compute sizeof (int *), 77
9171 pcg 1.11 See \`config.log' for more details." >&2;}
9172 ayin 1.106 { (exit 1); exit 1; }; }
9173     fi
9174     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9175 pcg 1.11 fi
9176     fi
9177     rm -f conftest.val
9178 ayin 1.106 else
9179     ac_cv_sizeof_int_p=0
9180 ayin 1.104 fi
9181 ayin 1.106 fi
9182     echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9183     echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
9184 pcg 1.11 cat >>confdefs.h <<_ACEOF
9185 pcg 1.1 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
9186 pcg 1.11 _ACEOF
9187 pcg 1.1
9188    
9189    
9190    
9191 ayin 1.106 echo "$as_me:$LINENO: checking for int16_t" >&5
9192     echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
9193 pcg 1.11 if test "${rxvt_cv_int16_t+set}" = set; then
9194     echo $ECHO_N "(cached) $ECHO_C" >&6
9195 pcg 1.1 else
9196 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
9197     /* confdefs.h. */
9198     _ACEOF
9199     cat confdefs.h >>conftest.$ac_ext
9200     cat >>conftest.$ac_ext <<_ACEOF
9201     /* end confdefs.h. */
9202 pcg 1.1 #include <stdint.h>
9203 pcg 1.11 int
9204     main ()
9205     {
9206 pcg 1.1 int16_t dummy;
9207 pcg 1.11 ;
9208     return 0;
9209     }
9210     _ACEOF
9211     rm -f conftest.$ac_objext
9212 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213     (eval $ac_compile) 2>conftest.er1
9214 pcg 1.11 ac_status=$?
9215     grep -v '^ *+' conftest.er1 >conftest.err
9216     rm -f conftest.er1
9217     cat conftest.err >&5
9218     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 ayin 1.106 (exit $ac_status); } &&
9220     { ac_try='test -z "$ac_cxx_werror_flag"
9221     || test ! -s conftest.err'
9222     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223     (eval $ac_try) 2>&5
9224     ac_status=$?
9225     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226     (exit $ac_status); }; } &&
9227     { ac_try='test -s conftest.$ac_objext'
9228     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229     (eval $ac_try) 2>&5
9230     ac_status=$?
9231     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232     (exit $ac_status); }; }; then
9233 pcg 1.1 rxvt_cv_int16_t=yes
9234     else
9235 pcg 1.11 echo "$as_me: failed program was:" >&5
9236     sed 's/^/| /' conftest.$ac_ext >&5
9237    
9238 ayin 1.106 if test "$ac_cv_sizeof_char" -ge 2; then
9239 pcg 1.1 rxvt_cv_int16_t=" char"
9240     else
9241 root 1.50 if test "$ac_cv_sizeof_short" -ge 2; then
9242 pcg 1.1 rxvt_cv_int16_t=" short"
9243     else
9244 root 1.50 if test "$ac_cv_sizeof_int" -ge 2; then
9245 pcg 1.1 rxvt_cv_int16_t=" int"
9246     else
9247 root 1.50 if test "$ac_cv_sizeof_long" -ge 2; then
9248 pcg 1.1 rxvt_cv_int16_t=" long"
9249     else
9250 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 2; then
9251 pcg 1.1 rxvt_cv_int16_t=" long long"
9252     else
9253     rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9254     fi
9255     fi
9256     fi
9257     fi
9258     fi
9259     fi
9260 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9261 pcg 1.1 fi
9262 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9263     echo "${ECHO_T}$rxvt_cv_int16_t" >&6
9264 pcg 1.1 if test x"$rxvt_cv_int16_t" != xyes; then
9265     rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9266     else
9267     if test x"" = x; then
9268     rxvt_int16_typedef="/* typedef short int16_t; */"
9269     else
9270     rxvt_int16_typedef="/* typedef short int16_t; */"
9271     fi
9272 pcg 1.11 fi
9273 pcg 1.1
9274 ayin 1.106 echo "$as_me:$LINENO: checking for uint16_t" >&5
9275     echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
9276 pcg 1.11 if test "${rxvt_cv_uint16_t+set}" = set; then
9277     echo $ECHO_N "(cached) $ECHO_C" >&6
9278     else
9279     cat >conftest.$ac_ext <<_ACEOF
9280     /* confdefs.h. */
9281     _ACEOF
9282     cat confdefs.h >>conftest.$ac_ext
9283     cat >>conftest.$ac_ext <<_ACEOF
9284     /* end confdefs.h. */
9285 pcg 1.1 #include <stdint.h>
9286 pcg 1.11 int
9287     main ()
9288     {
9289 pcg 1.1 uint16_t dummy;
9290 pcg 1.11 ;
9291     return 0;
9292     }
9293     _ACEOF
9294     rm -f conftest.$ac_objext
9295 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9296     (eval $ac_compile) 2>conftest.er1
9297 pcg 1.11 ac_status=$?
9298     grep -v '^ *+' conftest.er1 >conftest.err
9299     rm -f conftest.er1
9300     cat conftest.err >&5
9301     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 ayin 1.106 (exit $ac_status); } &&
9303     { ac_try='test -z "$ac_cxx_werror_flag"
9304     || test ! -s conftest.err'
9305     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306     (eval $ac_try) 2>&5
9307     ac_status=$?
9308     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309     (exit $ac_status); }; } &&
9310     { ac_try='test -s conftest.$ac_objext'
9311     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312     (eval $ac_try) 2>&5
9313     ac_status=$?
9314     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315     (exit $ac_status); }; }; then
9316 pcg 1.1 rxvt_cv_uint16_t=yes
9317     else
9318 pcg 1.11 echo "$as_me: failed program was:" >&5
9319     sed 's/^/| /' conftest.$ac_ext >&5
9320    
9321 ayin 1.106 if test "$ac_cv_sizeof_char" -ge 2; then
9322 pcg 1.1 rxvt_cv_uint16_t="unsigned char"
9323     else
9324 root 1.50 if test "$ac_cv_sizeof_short" -ge 2; then
9325 pcg 1.1 rxvt_cv_uint16_t="unsigned short"
9326     else
9327 root 1.50 if test "$ac_cv_sizeof_int" -ge 2; then
9328 pcg 1.1 rxvt_cv_uint16_t="unsigned int"
9329     else
9330 root 1.50 if test "$ac_cv_sizeof_long" -ge 2; then
9331 pcg 1.1 rxvt_cv_uint16_t="unsigned long"
9332     else
9333 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 2; then
9334 pcg 1.1 rxvt_cv_uint16_t="unsigned long long"
9335     else
9336     rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9337     fi
9338     fi
9339     fi
9340     fi
9341     fi
9342     fi
9343 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9344 pcg 1.1 fi
9345 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9346     echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
9347 pcg 1.1 if test x"$rxvt_cv_uint16_t" != xyes; then
9348     rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9349     else
9350     if test x"unsigned" = x; then
9351     rxvt_uint16_typedef="/* typedef short uint16_t; */"
9352     else
9353     rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9354     fi
9355 pcg 1.11 fi
9356 pcg 1.1
9357 ayin 1.106 echo "$as_me:$LINENO: checking for int32_t" >&5
9358     echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
9359 pcg 1.11 if test "${rxvt_cv_int32_t+set}" = set; then
9360     echo $ECHO_N "(cached) $ECHO_C" >&6
9361     else
9362     cat >conftest.$ac_ext <<_ACEOF
9363     /* confdefs.h. */
9364     _ACEOF
9365     cat confdefs.h >>conftest.$ac_ext
9366     cat >>conftest.$ac_ext <<_ACEOF
9367     /* end confdefs.h. */
9368 pcg 1.1 #include <stdint.h>
9369 pcg 1.11 int
9370     main ()
9371     {
9372 pcg 1.1 int32_t dummy;
9373 pcg 1.11 ;
9374     return 0;
9375     }
9376     _ACEOF
9377     rm -f conftest.$ac_objext
9378 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9379     (eval $ac_compile) 2>conftest.er1
9380 pcg 1.11 ac_status=$?
9381     grep -v '^ *+' conftest.er1 >conftest.err
9382     rm -f conftest.er1
9383     cat conftest.err >&5
9384     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 ayin 1.106 (exit $ac_status); } &&
9386     { ac_try='test -z "$ac_cxx_werror_flag"
9387     || test ! -s conftest.err'
9388     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9389     (eval $ac_try) 2>&5
9390     ac_status=$?
9391     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392     (exit $ac_status); }; } &&
9393     { ac_try='test -s conftest.$ac_objext'
9394     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395     (eval $ac_try) 2>&5
9396     ac_status=$?
9397     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398     (exit $ac_status); }; }; then
9399 pcg 1.1 rxvt_cv_int32_t=yes
9400     else
9401 pcg 1.11 echo "$as_me: failed program was:" >&5
9402     sed 's/^/| /' conftest.$ac_ext >&5
9403    
9404 ayin 1.106 if test "$ac_cv_sizeof_char" -ge 4; then
9405 pcg 1.1 rxvt_cv_int32_t=" char"
9406     else
9407 root 1.50 if test "$ac_cv_sizeof_short" -ge 4; then
9408 pcg 1.1 rxvt_cv_int32_t=" short"
9409     else
9410 root 1.50 if test "$ac_cv_sizeof_int" -ge 4; then
9411 pcg 1.1 rxvt_cv_int32_t=" int"
9412     else
9413 root 1.50 if test "$ac_cv_sizeof_long" -ge 4; then
9414 pcg 1.1 rxvt_cv_int32_t=" long"
9415     else
9416 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 4; then
9417 pcg 1.1 rxvt_cv_int32_t=" long long"
9418     else
9419     rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9420     fi
9421     fi
9422     fi
9423     fi
9424     fi
9425     fi
9426 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9427 pcg 1.1 fi
9428 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9429     echo "${ECHO_T}$rxvt_cv_int32_t" >&6
9430 pcg 1.1 if test x"$rxvt_cv_int32_t" != xyes; then
9431     rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9432     else
9433     if test x"" = x; then
9434     rxvt_int32_typedef="/* typedef int int32_t; */"
9435     else
9436     rxvt_int32_typedef="/* typedef int int32_t; */"
9437     fi
9438 pcg 1.11 fi
9439 pcg 1.1
9440 ayin 1.106 echo "$as_me:$LINENO: checking for uint32_t" >&5
9441     echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
9442 pcg 1.11 if test "${rxvt_cv_uint32_t+set}" = set; then
9443     echo $ECHO_N "(cached) $ECHO_C" >&6
9444     else
9445     cat >conftest.$ac_ext <<_ACEOF
9446     /* confdefs.h. */
9447     _ACEOF
9448     cat confdefs.h >>conftest.$ac_ext
9449     cat >>conftest.$ac_ext <<_ACEOF
9450     /* end confdefs.h. */
9451 pcg 1.1 #include <stdint.h>
9452 pcg 1.11 int
9453     main ()
9454     {
9455 pcg 1.1 uint32_t dummy;
9456 pcg 1.11 ;
9457     return 0;
9458     }
9459     _ACEOF
9460     rm -f conftest.$ac_objext
9461 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9462     (eval $ac_compile) 2>conftest.er1
9463 pcg 1.11 ac_status=$?
9464     grep -v '^ *+' conftest.er1 >conftest.err
9465     rm -f conftest.er1
9466     cat conftest.err >&5
9467     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 ayin 1.106 (exit $ac_status); } &&
9469     { ac_try='test -z "$ac_cxx_werror_flag"
9470     || test ! -s conftest.err'
9471     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472     (eval $ac_try) 2>&5
9473     ac_status=$?
9474     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475     (exit $ac_status); }; } &&
9476     { ac_try='test -s conftest.$ac_objext'
9477     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478     (eval $ac_try) 2>&5
9479     ac_status=$?
9480     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481     (exit $ac_status); }; }; then
9482 pcg 1.1 rxvt_cv_uint32_t=yes
9483     else
9484 pcg 1.11 echo "$as_me: failed program was:" >&5
9485     sed 's/^/| /' conftest.$ac_ext >&5
9486    
9487 ayin 1.106 if test "$ac_cv_sizeof_char" -ge 4; then
9488 pcg 1.1 rxvt_cv_uint32_t="unsigned char"
9489     else
9490 root 1.50 if test "$ac_cv_sizeof_short" -ge 4; then
9491 pcg 1.1 rxvt_cv_uint32_t="unsigned short"
9492     else
9493 root 1.50 if test "$ac_cv_sizeof_int" -ge 4; then
9494 pcg 1.1 rxvt_cv_uint32_t="unsigned int"
9495     else
9496 root 1.50 if test "$ac_cv_sizeof_long" -ge 4; then
9497 pcg 1.1 rxvt_cv_uint32_t="unsigned long"
9498     else
9499 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 4; then
9500 pcg 1.1 rxvt_cv_uint32_t="unsigned long long"
9501     else
9502     rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
9503     fi
9504     fi
9505     fi
9506     fi
9507     fi
9508     fi
9509 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9510 pcg 1.1 fi
9511 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
9512     echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
9513 pcg 1.1 if test x"$rxvt_cv_uint32_t" != xyes; then
9514     rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
9515     else
9516     if test x"unsigned" = x; then
9517     rxvt_uint32_typedef="/* typedef int uint32_t; */"
9518     else
9519     rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
9520     fi
9521 pcg 1.11 fi
9522 pcg 1.1
9523 root 1.50 if test "$ac_cv_sizeof_int_p" -eq 8; then
9524 pcg 1.1 rxvt_intp_define="#define intp_t int64_t"
9525     rxvt_u_intp_define="#define u_intp_t u_int64_t"
9526     else
9527 root 1.50 if test "$ac_cv_sizeof_int_p" -eq 4; then
9528 pcg 1.1 rxvt_intp_define="#define intp_t int32_t"
9529     rxvt_u_intp_define="#define u_intp_t u_int32_t"
9530     else
9531 root 1.50 if test "$ac_cv_sizeof_int_p" -eq 2; then
9532 pcg 1.1 rxvt_intp_define="#define intp_t int16_t"
9533     rxvt_u_intp_define="#define u_intp_t u_int16_t"
9534     else
9535     rxvt_intp_define="#error set intp_t"
9536     rxvt_u_intp_define="#error set u_intp_t"
9537     fi
9538     fi
9539     fi
9540    
9541    
9542    
9543 ayin 1.106 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9544     echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9545 pcg 1.11 if test "${ac_cv_type_signal+set}" = set; then
9546     echo $ECHO_N "(cached) $ECHO_C" >&6
9547     else
9548     cat >conftest.$ac_ext <<_ACEOF
9549     /* confdefs.h. */
9550     _ACEOF
9551     cat confdefs.h >>conftest.$ac_ext
9552     cat >>conftest.$ac_ext <<_ACEOF
9553     /* end confdefs.h. */
9554 pcg 1.1 #include <sys/types.h>
9555     #include <signal.h>
9556 ayin 1.106 #ifdef signal
9557     # undef signal
9558     #endif
9559     #ifdef __cplusplus
9560     extern "C" void (*signal (int, void (*)(int)))(int);
9561     #else
9562     void (*signal ()) ();
9563     #endif
9564 pcg 1.1
9565 pcg 1.11 int
9566     main ()
9567     {
9568 ayin 1.106 int i;
9569 pcg 1.11 ;
9570     return 0;
9571     }
9572     _ACEOF
9573     rm -f conftest.$ac_objext
9574 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9575     (eval $ac_compile) 2>conftest.er1
9576 pcg 1.11 ac_status=$?
9577     grep -v '^ *+' conftest.er1 >conftest.err
9578     rm -f conftest.er1
9579     cat conftest.err >&5
9580     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 ayin 1.106 (exit $ac_status); } &&
9582     { ac_try='test -z "$ac_cxx_werror_flag"
9583     || test ! -s conftest.err'
9584     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585     (eval $ac_try) 2>&5
9586     ac_status=$?
9587     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588     (exit $ac_status); }; } &&
9589     { ac_try='test -s conftest.$ac_objext'
9590     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591     (eval $ac_try) 2>&5
9592     ac_status=$?
9593     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594     (exit $ac_status); }; }; then
9595     ac_cv_type_signal=void
9596 pcg 1.1 else
9597 pcg 1.11 echo "$as_me: failed program was:" >&5
9598     sed 's/^/| /' conftest.$ac_ext >&5
9599    
9600 ayin 1.106 ac_cv_type_signal=int
9601 pcg 1.1 fi
9602 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9603 pcg 1.1 fi
9604 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9605     echo "${ECHO_T}$ac_cv_type_signal" >&6
9606 pcg 1.1
9607 pcg 1.11 cat >>confdefs.h <<_ACEOF
9608 pcg 1.1 #define RETSIGTYPE $ac_cv_type_signal
9609 pcg 1.11 _ACEOF
9610 pcg 1.1
9611    
9612    
9613 root 1.76
9614 pcg 1.11
9615    
9616 root 1.83 for ac_func in \
9617     unsetenv \
9618     setutent \
9619     on_exit \
9620    
9621     do
9622     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9623 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_func" >&5
9624     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9625     if eval "test \"\${$as_ac_var+set}\" = set"; then
9626 root 1.83 echo $ECHO_N "(cached) $ECHO_C" >&6
9627     else
9628     cat >conftest.$ac_ext <<_ACEOF
9629     /* confdefs.h. */
9630     _ACEOF
9631     cat confdefs.h >>conftest.$ac_ext
9632     cat >>conftest.$ac_ext <<_ACEOF
9633     /* end confdefs.h. */
9634     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9635     For example, HP-UX 11i <limits.h> declares gettimeofday. */
9636     #define $ac_func innocuous_$ac_func
9637    
9638     /* System header to define __stub macros and hopefully few prototypes,
9639     which can conflict with char $ac_func (); below.
9640     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9641     <limits.h> exists even on freestanding compilers. */
9642    
9643     #ifdef __STDC__
9644     # include <limits.h>
9645     #else
9646     # include <assert.h>
9647     #endif
9648    
9649     #undef $ac_func
9650 pcg 1.11
9651 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
9652 root 1.83 #ifdef __cplusplus
9653     extern "C"
9654 ayin 1.106 {
9655 root 1.83 #endif
9656 ayin 1.106 /* We use char because int might match the return type of a gcc2
9657     builtin and then its argument prototype would still apply. */
9658 root 1.83 char $ac_func ();
9659     /* The GNU C library defines this for functions which it implements
9660     to always fail with ENOSYS. Some functions are actually named
9661     something starting with __ and the normal name is an alias. */
9662 ayin 1.106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9663 root 1.83 choke me
9664 ayin 1.106 #else
9665     char (*f) () = $ac_func;
9666     #endif
9667     #ifdef __cplusplus
9668     }
9669 root 1.83 #endif
9670 pcg 1.11
9671 root 1.83 int
9672     main ()
9673     {
9674 ayin 1.106 return f != $ac_func;
9675 root 1.83 ;
9676     return 0;
9677     }
9678     _ACEOF
9679     rm -f conftest.$ac_objext conftest$ac_exeext
9680 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9681     (eval $ac_link) 2>conftest.er1
9682 root 1.83 ac_status=$?
9683     grep -v '^ *+' conftest.er1 >conftest.err
9684     rm -f conftest.er1
9685     cat conftest.err >&5
9686     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 ayin 1.106 (exit $ac_status); } &&
9688     { ac_try='test -z "$ac_cxx_werror_flag"
9689     || test ! -s conftest.err'
9690     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691     (eval $ac_try) 2>&5
9692     ac_status=$?
9693     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694     (exit $ac_status); }; } &&
9695     { ac_try='test -s conftest$ac_exeext'
9696     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697     (eval $ac_try) 2>&5
9698     ac_status=$?
9699     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700     (exit $ac_status); }; }; then
9701 root 1.83 eval "$as_ac_var=yes"
9702     else
9703     echo "$as_me: failed program was:" >&5
9704     sed 's/^/| /' conftest.$ac_ext >&5
9705 pcg 1.11
9706 ayin 1.106 eval "$as_ac_var=no"
9707 root 1.83 fi
9708 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
9709 root 1.83 conftest$ac_exeext conftest.$ac_ext
9710     fi
9711 ayin 1.106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9712     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9713 root 1.83 if test `eval echo '${'$as_ac_var'}'` = yes; then
9714     cat >>confdefs.h <<_ACEOF
9715     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9716     _ACEOF
9717 pcg 1.11
9718 root 1.83 fi
9719     done
9720 pcg 1.11
9721    
9722    
9723 root 1.92 support_utmp=yes
9724     support_wtmp=yes
9725     support_lastlog=yes
9726    
9727 ayin 1.106 # Check whether --enable-utmp or --disable-utmp was given.
9728 root 1.92 if test "${enable_utmp+set}" = set; then
9729 ayin 1.106 enableval="$enable_utmp"
9730     if test x$enableval = xyes -o x$enableval = xno; then
9731 root 1.92 support_utmp=$enableval
9732     fi
9733 ayin 1.106 fi;
9734 ayin 1.102
9735 ayin 1.106 # Check whether --enable-wtmp or --disable-wtmp was given.
9736 root 1.92 if test "${enable_wtmp+set}" = set; then
9737 ayin 1.106 enableval="$enable_wtmp"
9738     if test x$enableval = xyes -o x$enableval = xno; then
9739 root 1.92 support_wtmp=$enableval
9740     fi
9741 ayin 1.106 fi;
9742 ayin 1.102
9743 ayin 1.106 # Check whether --enable-lastlog or --disable-lastlog was given.
9744 root 1.92 if test "${enable_lastlog+set}" = set; then
9745 ayin 1.106 enableval="$enable_lastlog"
9746     if test x$enableval = xyes -o x$enableval = xno; then
9747 root 1.92 support_lastlog=$enableval
9748     fi
9749 ayin 1.106 fi;
9750 root 1.92
9751     if test x$support_utmp = xyes; then
9752    
9753     cat >>confdefs.h <<\_ACEOF
9754     #define UTMP_SUPPORT 1
9755     _ACEOF
9756    
9757     fi
9758     if test x$support_wtmp = xyes; then
9759    
9760     cat >>confdefs.h <<\_ACEOF
9761     #define WTMP_SUPPORT 1
9762     _ACEOF
9763    
9764     fi
9765     if test x$support_lastlog = xyes; then
9766    
9767     cat >>confdefs.h <<\_ACEOF
9768     #define LASTLOG_SUPPORT 1
9769     _ACEOF
9770    
9771     fi
9772    
9773 pcg 1.11
9774 root 1.88
9775    
9776     for ac_func in \
9777     ttyslot \
9778     updwtmp \
9779     updwtmpx \
9780    
9781     do
9782     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9783 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_func" >&5
9784     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9785     if eval "test \"\${$as_ac_var+set}\" = set"; then
9786 root 1.88 echo $ECHO_N "(cached) $ECHO_C" >&6
9787     else
9788     cat >conftest.$ac_ext <<_ACEOF
9789     /* confdefs.h. */
9790     _ACEOF
9791     cat confdefs.h >>conftest.$ac_ext
9792     cat >>conftest.$ac_ext <<_ACEOF
9793     /* end confdefs.h. */
9794     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9795     For example, HP-UX 11i <limits.h> declares gettimeofday. */
9796     #define $ac_func innocuous_$ac_func
9797    
9798     /* System header to define __stub macros and hopefully few prototypes,
9799     which can conflict with char $ac_func (); below.
9800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9801     <limits.h> exists even on freestanding compilers. */
9802    
9803     #ifdef __STDC__
9804     # include <limits.h>
9805     #else
9806     # include <assert.h>
9807     #endif
9808    
9809     #undef $ac_func
9810    
9811 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
9812 root 1.88 #ifdef __cplusplus
9813     extern "C"
9814 ayin 1.106 {
9815 root 1.88 #endif
9816 ayin 1.106 /* We use char because int might match the return type of a gcc2
9817     builtin and then its argument prototype would still apply. */
9818 root 1.88 char $ac_func ();
9819     /* The GNU C library defines this for functions which it implements
9820     to always fail with ENOSYS. Some functions are actually named
9821     something starting with __ and the normal name is an alias. */
9822 ayin 1.106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9823 root 1.88 choke me
9824 ayin 1.106 #else
9825     char (*f) () = $ac_func;
9826     #endif
9827     #ifdef __cplusplus
9828     }
9829 root 1.88 #endif
9830    
9831     int
9832     main ()
9833     {
9834 ayin 1.106 return f != $ac_func;
9835 root 1.88 ;
9836     return 0;
9837     }
9838     _ACEOF
9839     rm -f conftest.$ac_objext conftest$ac_exeext
9840 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9841     (eval $ac_link) 2>conftest.er1
9842 root 1.88 ac_status=$?
9843     grep -v '^ *+' conftest.er1 >conftest.err
9844     rm -f conftest.er1
9845     cat conftest.err >&5
9846     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 ayin 1.106 (exit $ac_status); } &&
9848     { ac_try='test -z "$ac_cxx_werror_flag"
9849     || test ! -s conftest.err'
9850     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851     (eval $ac_try) 2>&5
9852     ac_status=$?
9853     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854     (exit $ac_status); }; } &&
9855     { ac_try='test -s conftest$ac_exeext'
9856     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857     (eval $ac_try) 2>&5
9858     ac_status=$?
9859     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860     (exit $ac_status); }; }; then
9861 root 1.88 eval "$as_ac_var=yes"
9862     else
9863     echo "$as_me: failed program was:" >&5
9864     sed 's/^/| /' conftest.$ac_ext >&5
9865    
9866 ayin 1.106 eval "$as_ac_var=no"
9867 root 1.88 fi
9868 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
9869 root 1.88 conftest$ac_exeext conftest.$ac_ext
9870     fi
9871 ayin 1.106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9872     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9873 root 1.88 if test `eval echo '${'$as_ac_var'}'` = yes; then
9874     cat >>confdefs.h <<_ACEOF
9875     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9876     _ACEOF
9877    
9878     fi
9879     done
9880    
9881    
9882    
9883    
9884    
9885     for ac_header in \
9886     utmp.h \
9887     utmpx.h \
9888     lastlog.h \
9889    
9890     do
9891     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9892 ayin 1.106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9893     echo "$as_me:$LINENO: checking for $ac_header" >&5
9894     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9895     if eval "test \"\${$as_ac_Header+set}\" = set"; then
9896 root 1.88 echo $ECHO_N "(cached) $ECHO_C" >&6
9897     fi
9898 ayin 1.106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9899     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9900 root 1.88 else
9901     # Is the header compilable?
9902 ayin 1.106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9903     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9904 root 1.88 cat >conftest.$ac_ext <<_ACEOF
9905     /* confdefs.h. */
9906     _ACEOF
9907     cat confdefs.h >>conftest.$ac_ext
9908     cat >>conftest.$ac_ext <<_ACEOF
9909     /* end confdefs.h. */
9910     $ac_includes_default
9911     #include <$ac_header>
9912     _ACEOF
9913     rm -f conftest.$ac_objext
9914 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9915     (eval $ac_compile) 2>conftest.er1
9916 root 1.88 ac_status=$?
9917     grep -v '^ *+' conftest.er1 >conftest.err
9918     rm -f conftest.er1
9919     cat conftest.err >&5
9920     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 ayin 1.106 (exit $ac_status); } &&
9922     { ac_try='test -z "$ac_cxx_werror_flag"
9923     || test ! -s conftest.err'
9924     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925     (eval $ac_try) 2>&5
9926     ac_status=$?
9927     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928     (exit $ac_status); }; } &&
9929     { ac_try='test -s conftest.$ac_objext'
9930     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931     (eval $ac_try) 2>&5
9932     ac_status=$?
9933     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934     (exit $ac_status); }; }; then
9935 root 1.88 ac_header_compiler=yes
9936     else
9937     echo "$as_me: failed program was:" >&5
9938     sed 's/^/| /' conftest.$ac_ext >&5
9939    
9940 ayin 1.106 ac_header_compiler=no
9941 root 1.88 fi
9942 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9943     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9944     echo "${ECHO_T}$ac_header_compiler" >&6
9945 root 1.88
9946     # Is the header present?
9947 ayin 1.106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9948     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9949 root 1.88 cat >conftest.$ac_ext <<_ACEOF
9950     /* confdefs.h. */
9951     _ACEOF
9952     cat confdefs.h >>conftest.$ac_ext
9953     cat >>conftest.$ac_ext <<_ACEOF
9954     /* end confdefs.h. */
9955     #include <$ac_header>
9956     _ACEOF
9957 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9958     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9959 root 1.88 ac_status=$?
9960     grep -v '^ *+' conftest.er1 >conftest.err
9961     rm -f conftest.er1
9962     cat conftest.err >&5
9963     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 ayin 1.106 (exit $ac_status); } >/dev/null; then
9965     if test -s conftest.err; then
9966     ac_cpp_err=$ac_cxx_preproc_warn_flag
9967     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9968     else
9969     ac_cpp_err=
9970     fi
9971     else
9972     ac_cpp_err=yes
9973     fi
9974     if test -z "$ac_cpp_err"; then
9975 root 1.88 ac_header_preproc=yes
9976     else
9977     echo "$as_me: failed program was:" >&5
9978     sed 's/^/| /' conftest.$ac_ext >&5
9979    
9980     ac_header_preproc=no
9981     fi
9982     rm -f conftest.err conftest.$ac_ext
9983 ayin 1.106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9984     echo "${ECHO_T}$ac_header_preproc" >&6
9985 root 1.88
9986     # So? What about this header?
9987     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9988     yes:no: )
9989     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9990     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9991     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9992     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9993     ac_header_preproc=yes
9994     ;;
9995     no:yes:* )
9996     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9997     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9998     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9999     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10000     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10001     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10002     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10003     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10005     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10006     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10007     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10008 ayin 1.106 (
10009     cat <<\_ASBOX
10010     ## ------------------------------------------ ##
10011     ## Report this to the AC_PACKAGE_NAME lists. ##
10012     ## ------------------------------------------ ##
10013     _ASBOX
10014     ) |
10015     sed "s/^/$as_me: WARNING: /" >&2
10016 root 1.88 ;;
10017     esac
10018 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_header" >&5
10019     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10020     if eval "test \"\${$as_ac_Header+set}\" = set"; then
10021 root 1.88 echo $ECHO_N "(cached) $ECHO_C" >&6
10022     else
10023     eval "$as_ac_Header=\$ac_header_preproc"
10024     fi
10025 ayin 1.106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10026     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10027 root 1.88
10028     fi
10029     if test `eval echo '${'$as_ac_Header'}'` = yes; then
10030     cat >>confdefs.h <<_ACEOF
10031     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10032     _ACEOF
10033    
10034     fi
10035    
10036     done
10037    
10038    
10039    
10040     if test "${ac_cv_header_utmp_h+set}" = set; then
10041 ayin 1.106 echo "$as_me:$LINENO: checking for utmp.h" >&5
10042     echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10043 root 1.88 if test "${ac_cv_header_utmp_h+set}" = set; then
10044     echo $ECHO_N "(cached) $ECHO_C" >&6
10045     fi
10046 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10047     echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10048 root 1.88 else
10049     # Is the header compilable?
10050 ayin 1.106 echo "$as_me:$LINENO: checking utmp.h usability" >&5
10051     echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
10052 root 1.88 cat >conftest.$ac_ext <<_ACEOF
10053     /* confdefs.h. */
10054     _ACEOF
10055     cat confdefs.h >>conftest.$ac_ext
10056     cat >>conftest.$ac_ext <<_ACEOF
10057     /* end confdefs.h. */
10058     $ac_includes_default
10059     #include <utmp.h>
10060     _ACEOF
10061     rm -f conftest.$ac_objext
10062 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10063     (eval $ac_compile) 2>conftest.er1
10064 root 1.88 ac_status=$?
10065     grep -v '^ *+' conftest.er1 >conftest.err
10066     rm -f conftest.er1
10067     cat conftest.err >&5
10068     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 ayin 1.106 (exit $ac_status); } &&
10070     { ac_try='test -z "$ac_cxx_werror_flag"
10071     || test ! -s conftest.err'
10072     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073     (eval $ac_try) 2>&5
10074     ac_status=$?
10075     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076     (exit $ac_status); }; } &&
10077     { ac_try='test -s conftest.$ac_objext'
10078     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079     (eval $ac_try) 2>&5
10080     ac_status=$?
10081     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082     (exit $ac_status); }; }; then
10083 root 1.88 ac_header_compiler=yes
10084     else
10085     echo "$as_me: failed program was:" >&5
10086     sed 's/^/| /' conftest.$ac_ext >&5
10087    
10088 ayin 1.106 ac_header_compiler=no
10089 root 1.88 fi
10090 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10091     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10092     echo "${ECHO_T}$ac_header_compiler" >&6
10093 root 1.88
10094     # Is the header present?
10095 ayin 1.106 echo "$as_me:$LINENO: checking utmp.h presence" >&5
10096     echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
10097 root 1.88 cat >conftest.$ac_ext <<_ACEOF
10098     /* confdefs.h. */
10099     _ACEOF
10100     cat confdefs.h >>conftest.$ac_ext
10101     cat >>conftest.$ac_ext <<_ACEOF
10102     /* end confdefs.h. */
10103     #include <utmp.h>
10104     _ACEOF
10105 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10106     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10107 root 1.88 ac_status=$?
10108     grep -v '^ *+' conftest.er1 >conftest.err
10109     rm -f conftest.er1
10110     cat conftest.err >&5
10111     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 ayin 1.106 (exit $ac_status); } >/dev/null; then
10113     if test -s conftest.err; then
10114     ac_cpp_err=$ac_cxx_preproc_warn_flag
10115     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10116     else
10117     ac_cpp_err=
10118     fi
10119     else
10120     ac_cpp_err=yes
10121     fi
10122     if test -z "$ac_cpp_err"; then
10123 root 1.88 ac_header_preproc=yes
10124     else
10125     echo "$as_me: failed program was:" >&5
10126     sed 's/^/| /' conftest.$ac_ext >&5
10127    
10128     ac_header_preproc=no
10129     fi
10130     rm -f conftest.err conftest.$ac_ext
10131 ayin 1.106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10132     echo "${ECHO_T}$ac_header_preproc" >&6
10133 root 1.88
10134     # So? What about this header?
10135     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10136     yes:no: )
10137     { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
10138     echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10139     { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
10140     echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
10141     ac_header_preproc=yes
10142     ;;
10143     no:yes:* )
10144     { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
10145     echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
10146     { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
10147     echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
10148     { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
10149     echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
10150     { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
10151     echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
10152     { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
10153     echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
10154     { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
10155     echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
10156 ayin 1.106 (
10157     cat <<\_ASBOX
10158     ## ------------------------------------------ ##
10159     ## Report this to the AC_PACKAGE_NAME lists. ##
10160     ## ------------------------------------------ ##
10161     _ASBOX
10162     ) |
10163     sed "s/^/$as_me: WARNING: /" >&2
10164 root 1.88 ;;
10165     esac
10166 ayin 1.106 echo "$as_me:$LINENO: checking for utmp.h" >&5
10167     echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10168 root 1.88 if test "${ac_cv_header_utmp_h+set}" = set; then
10169     echo $ECHO_N "(cached) $ECHO_C" >&6
10170     else
10171     ac_cv_header_utmp_h=$ac_header_preproc
10172     fi
10173 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10174     echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10175 root 1.88
10176     fi
10177     if test $ac_cv_header_utmp_h = yes; then
10178 ayin 1.106 echo "$as_me:$LINENO: checking for struct utmp" >&5
10179     echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
10180 root 1.88 if test "${struct_utmp+set}" = set; then
10181     echo $ECHO_N "(cached) $ECHO_C" >&6
10182     else
10183     cat >conftest.$ac_ext <<_ACEOF
10184     /* confdefs.h. */
10185     _ACEOF
10186     cat confdefs.h >>conftest.$ac_ext
10187     cat >>conftest.$ac_ext <<_ACEOF
10188     /* end confdefs.h. */
10189     #include <sys/types.h>
10190     #include <utmp.h>
10191     int
10192     main ()
10193     {
10194     struct utmp ut;
10195     ;
10196     return 0;
10197     }
10198     _ACEOF
10199     rm -f conftest.$ac_objext
10200 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10201     (eval $ac_compile) 2>conftest.er1
10202 root 1.88 ac_status=$?
10203     grep -v '^ *+' conftest.er1 >conftest.err
10204     rm -f conftest.er1
10205     cat conftest.err >&5
10206     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 ayin 1.106 (exit $ac_status); } &&
10208     { ac_try='test -z "$ac_cxx_werror_flag"
10209     || test ! -s conftest.err'
10210     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211     (eval $ac_try) 2>&5
10212     ac_status=$?
10213     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214     (exit $ac_status); }; } &&
10215     { ac_try='test -s conftest.$ac_objext'
10216     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217     (eval $ac_try) 2>&5
10218     ac_status=$?
10219     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220     (exit $ac_status); }; }; then
10221 root 1.88 struct_utmp=yes
10222     else
10223     echo "$as_me: failed program was:" >&5
10224     sed 's/^/| /' conftest.$ac_ext >&5
10225    
10226 ayin 1.106 struct_utmp=no
10227 root 1.88 fi
10228 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10229 root 1.88 fi
10230 ayin 1.106 echo "$as_me:$LINENO: result: $struct_utmp" >&5
10231     echo "${ECHO_T}$struct_utmp" >&6
10232 root 1.88 if test x$struct_utmp = xyes; then
10233    
10234     cat >>confdefs.h <<\_ACEOF
10235     #define HAVE_STRUCT_UTMP 1
10236     _ACEOF
10237    
10238     fi
10239    
10240    
10241 ayin 1.106 echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
10242     echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
10243 root 1.88 if test "${struct_utmp_host+set}" = set; then
10244     echo $ECHO_N "(cached) $ECHO_C" >&6
10245     else
10246     cat >conftest.$ac_ext <<_ACEOF
10247     /* confdefs.h. */
10248     _ACEOF
10249     cat confdefs.h >>conftest.$ac_ext
10250     cat >>conftest.$ac_ext <<_ACEOF
10251     /* end confdefs.h. */
10252     #include <sys/types.h>
10253     #include <utmp.h>
10254     int
10255     main ()
10256     {
10257     struct utmp ut; ut.ut_host;
10258     ;
10259     return 0;
10260     }
10261     _ACEOF
10262     rm -f conftest.$ac_objext
10263 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10264     (eval $ac_compile) 2>conftest.er1
10265 root 1.88 ac_status=$?
10266     grep -v '^ *+' conftest.er1 >conftest.err
10267     rm -f conftest.er1
10268     cat conftest.err >&5
10269     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 ayin 1.106 (exit $ac_status); } &&
10271     { ac_try='test -z "$ac_cxx_werror_flag"
10272     || test ! -s conftest.err'
10273     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274     (eval $ac_try) 2>&5
10275     ac_status=$?
10276     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277     (exit $ac_status); }; } &&
10278     { ac_try='test -s conftest.$ac_objext'
10279     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280     (eval $ac_try) 2>&5
10281     ac_status=$?
10282     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283     (exit $ac_status); }; }; then
10284 root 1.88 struct_utmp_host=yes
10285     else
10286     echo "$as_me: failed program was:" >&5
10287     sed 's/^/| /' conftest.$ac_ext >&5
10288    
10289 ayin 1.106 struct_utmp_host=no
10290 root 1.88 fi
10291 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10292 root 1.88 fi
10293 ayin 1.106 echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
10294     echo "${ECHO_T}$struct_utmp_host" >&6
10295 root 1.88 if test x$struct_utmp_host = xyes; then
10296    
10297     cat >>confdefs.h <<\_ACEOF
10298     #define HAVE_UTMP_HOST 1
10299     _ACEOF
10300    
10301     fi
10302    
10303 ayin 1.106 echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
10304     echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
10305 root 1.88 if test "${struct_utmp_pid+set}" = set; then
10306     echo $ECHO_N "(cached) $ECHO_C" >&6
10307     else
10308     cat >conftest.$ac_ext <<_ACEOF
10309     /* confdefs.h. */
10310     _ACEOF
10311     cat confdefs.h >>conftest.$ac_ext
10312     cat >>conftest.$ac_ext <<_ACEOF
10313     /* end confdefs.h. */
10314     #include <sys/types.h>
10315     #include <utmp.h>
10316     int
10317     main ()
10318     {
10319     struct utmp ut; ut.ut_pid;
10320     ;
10321     return 0;
10322     }
10323     _ACEOF
10324     rm -f conftest.$ac_objext
10325 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10326     (eval $ac_compile) 2>conftest.er1
10327 root 1.88 ac_status=$?
10328     grep -v '^ *+' conftest.er1 >conftest.err
10329     rm -f conftest.er1
10330     cat conftest.err >&5
10331     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 ayin 1.106 (exit $ac_status); } &&
10333     { ac_try='test -z "$ac_cxx_werror_flag"
10334     || test ! -s conftest.err'
10335     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336     (eval $ac_try) 2>&5
10337     ac_status=$?
10338     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339     (exit $ac_status); }; } &&
10340     { ac_try='test -s conftest.$ac_objext'
10341     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342     (eval $ac_try) 2>&5
10343     ac_status=$?
10344     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345     (exit $ac_status); }; }; then
10346 root 1.88 struct_utmp_pid=yes
10347     else
10348     echo "$as_me: failed program was:" >&5
10349     sed 's/^/| /' conftest.$ac_ext >&5
10350    
10351 ayin 1.106 struct_utmp_pid=no
10352 root 1.88 fi
10353 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10354 root 1.88 fi
10355 ayin 1.106 echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
10356     echo "${ECHO_T}$struct_utmp_pid" >&6
10357 root 1.88 if test x$struct_utmp_pid = xyes; then
10358    
10359     cat >>confdefs.h <<\_ACEOF
10360     #define HAVE_UTMP_PID 1
10361     _ACEOF
10362    
10363     fi
10364    
10365     fi
10366    
10367    
10368    
10369     if test "${ac_cv_header_utmpx_h+set}" = set; then
10370 ayin 1.106 echo "$as_me:$LINENO: checking for utmpx.h" >&5
10371     echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10372 root 1.88 if test "${ac_cv_header_utmpx_h+set}" = set; then
10373     echo $ECHO_N "(cached) $ECHO_C" >&6
10374     fi
10375 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10376     echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10377 root 1.88 else
10378     # Is the header compilable?
10379 ayin 1.106 echo "$as_me:$LINENO: checking utmpx.h usability" >&5
10380     echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
10381 root 1.88 cat >conftest.$ac_ext <<_ACEOF
10382     /* confdefs.h. */
10383     _ACEOF
10384     cat confdefs.h >>conftest.$ac_ext
10385     cat >>conftest.$ac_ext <<_ACEOF
10386     /* end confdefs.h. */
10387     $ac_includes_default
10388     #include <utmpx.h>
10389     _ACEOF
10390     rm -f conftest.$ac_objext
10391 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10392     (eval $ac_compile) 2>conftest.er1
10393 root 1.88 ac_status=$?
10394     grep -v '^ *+' conftest.er1 >conftest.err
10395     rm -f conftest.er1
10396     cat conftest.err >&5
10397     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 ayin 1.106 (exit $ac_status); } &&
10399     { ac_try='test -z "$ac_cxx_werror_flag"
10400     || test ! -s conftest.err'
10401     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10402     (eval $ac_try) 2>&5
10403     ac_status=$?
10404     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405     (exit $ac_status); }; } &&
10406     { ac_try='test -s conftest.$ac_objext'
10407     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408     (eval $ac_try) 2>&5
10409     ac_status=$?
10410     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411     (exit $ac_status); }; }; then
10412 root 1.88 ac_header_compiler=yes
10413     else
10414     echo "$as_me: failed program was:" >&5
10415     sed 's/^/| /' conftest.$ac_ext >&5
10416    
10417 ayin 1.106 ac_header_compiler=no
10418 root 1.88 fi
10419 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10420     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10421     echo "${ECHO_T}$ac_header_compiler" >&6
10422 root 1.88
10423     # Is the header present?
10424 ayin 1.106 echo "$as_me:$LINENO: checking utmpx.h presence" >&5
10425     echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
10426 root 1.88 cat >conftest.$ac_ext <<_ACEOF
10427     /* confdefs.h. */
10428     _ACEOF
10429     cat confdefs.h >>conftest.$ac_ext
10430     cat >>conftest.$ac_ext <<_ACEOF
10431     /* end confdefs.h. */
10432     #include <utmpx.h>
10433     _ACEOF
10434 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10435     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10436 root 1.88 ac_status=$?
10437     grep -v '^ *+' conftest.er1 >conftest.err
10438     rm -f conftest.er1
10439     cat conftest.err >&5
10440     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 ayin 1.106 (exit $ac_status); } >/dev/null; then
10442     if test -s conftest.err; then
10443     ac_cpp_err=$ac_cxx_preproc_warn_flag
10444     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10445     else
10446     ac_cpp_err=
10447     fi
10448     else
10449     ac_cpp_err=yes
10450     fi
10451     if test -z "$ac_cpp_err"; then
10452 root 1.88 ac_header_preproc=yes
10453     else
10454     echo "$as_me: failed program was:" >&5
10455     sed 's/^/| /' conftest.$ac_ext >&5
10456    
10457     ac_header_preproc=no
10458     fi
10459     rm -f conftest.err conftest.$ac_ext
10460 ayin 1.106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10461     echo "${ECHO_T}$ac_header_preproc" >&6
10462 root 1.88
10463     # So? What about this header?
10464     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10465     yes:no: )
10466     { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
10467     echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10468     { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
10469     echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
10470     ac_header_preproc=yes
10471     ;;
10472     no:yes:* )
10473     { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
10474     echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
10475     { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
10476     echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
10477     { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
10478     echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
10479     { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
10480     echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
10481     { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
10482     echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
10483     { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
10484     echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
10485 ayin 1.106 (
10486     cat <<\_ASBOX
10487     ## ------------------------------------------ ##
10488     ## Report this to the AC_PACKAGE_NAME lists. ##
10489     ## ------------------------------------------ ##
10490     _ASBOX
10491     ) |
10492     sed "s/^/$as_me: WARNING: /" >&2
10493 root 1.88 ;;
10494     esac
10495 ayin 1.106 echo "$as_me:$LINENO: checking for utmpx.h" >&5
10496     echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10497 root 1.88 if test "${ac_cv_header_utmpx_h+set}" = set; then
10498     echo $ECHO_N "(cached) $ECHO_C" >&6
10499     else
10500     ac_cv_header_utmpx_h=$ac_header_preproc
10501     fi
10502 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10503     echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10504 root 1.88
10505     fi
10506     if test $ac_cv_header_utmpx_h = yes; then
10507 ayin 1.106 echo "$as_me:$LINENO: checking for struct utmpx" >&5
10508     echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
10509 root 1.88 if test "${struct_utmpx+set}" = set; then
10510     echo $ECHO_N "(cached) $ECHO_C" >&6
10511     else
10512     cat >conftest.$ac_ext <<_ACEOF
10513     /* confdefs.h. */
10514     _ACEOF
10515     cat confdefs.h >>conftest.$ac_ext
10516     cat >>conftest.$ac_ext <<_ACEOF
10517     /* end confdefs.h. */
10518     #include <sys/types.h>
10519     #include <utmpx.h>
10520     int
10521     main ()
10522     {
10523     struct utmpx ut;
10524     ;
10525     return 0;
10526     }
10527     _ACEOF
10528     rm -f conftest.$ac_objext
10529 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10530     (eval $ac_compile) 2>conftest.er1
10531 root 1.88 ac_status=$?
10532     grep -v '^ *+' conftest.er1 >conftest.err
10533     rm -f conftest.er1
10534     cat conftest.err >&5
10535     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 ayin 1.106 (exit $ac_status); } &&
10537     { ac_try='test -z "$ac_cxx_werror_flag"
10538     || test ! -s conftest.err'
10539     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10540     (eval $ac_try) 2>&5
10541     ac_status=$?
10542     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543     (exit $ac_status); }; } &&
10544     { ac_try='test -s conftest.$ac_objext'
10545     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546     (eval $ac_try) 2>&5
10547     ac_status=$?
10548     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549     (exit $ac_status); }; }; then
10550 root 1.105 struct_utmpx=yes
10551 root 1.88 else
10552     echo "$as_me: failed program was:" >&5
10553     sed 's/^/| /' conftest.$ac_ext >&5
10554    
10555 ayin 1.106 struct_utmpx=no
10556 root 1.88 fi
10557 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10558 root 1.88 fi
10559 ayin 1.106 echo "$as_me:$LINENO: result: $struct_utmpx" >&5
10560     echo "${ECHO_T}$struct_utmpx" >&6
10561 root 1.88 if test x$struct_utmpx = xyes; then
10562    
10563     cat >>confdefs.h <<\_ACEOF
10564     #define HAVE_STRUCT_UTMPX 1
10565     _ACEOF
10566    
10567     fi
10568    
10569    
10570 ayin 1.106 echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
10571     echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
10572 root 1.88 if test "${struct_utmpx_host+set}" = set; then
10573     echo $ECHO_N "(cached) $ECHO_C" >&6
10574     else
10575     cat >conftest.$ac_ext <<_ACEOF
10576     /* confdefs.h. */
10577     _ACEOF
10578     cat confdefs.h >>conftest.$ac_ext
10579     cat >>conftest.$ac_ext <<_ACEOF
10580     /* end confdefs.h. */
10581     #include <sys/types.h>
10582     #include <utmpx.h>
10583     int
10584     main ()
10585     {
10586     struct utmpx utx; utx.ut_host;
10587     ;
10588     return 0;
10589     }
10590     _ACEOF
10591     rm -f conftest.$ac_objext
10592 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10593     (eval $ac_compile) 2>conftest.er1
10594 root 1.88 ac_status=$?
10595     grep -v '^ *+' conftest.er1 >conftest.err
10596     rm -f conftest.er1
10597     cat conftest.err >&5
10598     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 ayin 1.106 (exit $ac_status); } &&
10600     { ac_try='test -z "$ac_cxx_werror_flag"
10601     || test ! -s conftest.err'
10602     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603     (eval $ac_try) 2>&5
10604     ac_status=$?
10605     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606     (exit $ac_status); }; } &&
10607     { ac_try='test -s conftest.$ac_objext'
10608     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609     (eval $ac_try) 2>&5
10610     ac_status=$?
10611     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612     (exit $ac_status); }; }; then
10613 root 1.88 struct_utmpx_host=yes
10614     else
10615     echo "$as_me: failed program was:" >&5
10616     sed 's/^/| /' conftest.$ac_ext >&5
10617    
10618 ayin 1.106 struct_utmpx_host=no
10619 root 1.88 fi
10620 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10621 root 1.88 fi
10622 ayin 1.106 echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
10623     echo "${ECHO_T}$struct_utmpx_host" >&6
10624 root 1.88 if test x$struct_utmpx_host = xyes; then
10625    
10626     cat >>confdefs.h <<\_ACEOF
10627     #define HAVE_UTMPX_HOST 1
10628     _ACEOF
10629    
10630     fi
10631    
10632 ayin 1.106 echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10633     echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10634 root 1.88 if test "${struct_utmpx_session+set}" = set; then
10635     echo $ECHO_N "(cached) $ECHO_C" >&6
10636     else
10637     cat >conftest.$ac_ext <<_ACEOF
10638     /* confdefs.h. */
10639     _ACEOF
10640     cat confdefs.h >>conftest.$ac_ext
10641     cat >>conftest.$ac_ext <<_ACEOF
10642     /* end confdefs.h. */
10643     #include <sys/types.h>
10644     #include <utmpx.h>
10645     int
10646     main ()
10647     {
10648     struct utmpx utx; utx.ut_session;
10649     ;
10650     return 0;
10651     }
10652     _ACEOF
10653     rm -f conftest.$ac_objext
10654 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10655     (eval $ac_compile) 2>conftest.er1
10656 root 1.88 ac_status=$?
10657     grep -v '^ *+' conftest.er1 >conftest.err
10658     rm -f conftest.er1
10659     cat conftest.err >&5
10660     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 ayin 1.106 (exit $ac_status); } &&
10662     { ac_try='test -z "$ac_cxx_werror_flag"
10663     || test ! -s conftest.err'
10664     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665     (eval $ac_try) 2>&5
10666     ac_status=$?
10667     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668     (exit $ac_status); }; } &&
10669     { ac_try='test -s conftest.$ac_objext'
10670     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671     (eval $ac_try) 2>&5
10672     ac_status=$?
10673     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674     (exit $ac_status); }; }; then
10675 ayin 1.102 struct_utmpx_session=yes
10676 root 1.88 else
10677     echo "$as_me: failed program was:" >&5
10678     sed 's/^/| /' conftest.$ac_ext >&5
10679    
10680 ayin 1.106 struct_utmpx_session=no
10681 root 1.88 fi
10682 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10683 root 1.88 fi
10684 ayin 1.106 echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
10685     echo "${ECHO_T}$struct_utmpx_session" >&6
10686 root 1.88 if test x$struct_utmpx_session = xyes; then
10687    
10688     cat >>confdefs.h <<\_ACEOF
10689     #define HAVE_UTMPX_SESSION 1
10690     _ACEOF
10691    
10692     fi
10693    
10694     fi
10695    
10696    
10697 ayin 1.106 echo "$as_me:$LINENO: checking for struct lastlog" >&5
10698     echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
10699 root 1.88 if test "${struct_lastlog+set}" = set; then
10700     echo $ECHO_N "(cached) $ECHO_C" >&6
10701     else
10702     cat >conftest.$ac_ext <<_ACEOF
10703     /* confdefs.h. */
10704     _ACEOF
10705     cat confdefs.h >>conftest.$ac_ext
10706     cat >>conftest.$ac_ext <<_ACEOF
10707     /* end confdefs.h. */
10708     #include <sys/types.h>
10709     #include <utmp.h>
10710     #ifdef HAVE_LASTLOG_H
10711     #include <lastlog.h>
10712     #endif
10713    
10714     int
10715     main ()
10716     {
10717     struct lastlog ll;
10718     ;
10719     return 0;
10720     }
10721     _ACEOF
10722     rm -f conftest.$ac_objext
10723 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10724     (eval $ac_compile) 2>conftest.er1
10725 root 1.88 ac_status=$?
10726     grep -v '^ *+' conftest.er1 >conftest.err
10727     rm -f conftest.er1
10728     cat conftest.err >&5
10729     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 ayin 1.106 (exit $ac_status); } &&
10731     { ac_try='test -z "$ac_cxx_werror_flag"
10732     || test ! -s conftest.err'
10733     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734     (eval $ac_try) 2>&5
10735     ac_status=$?
10736     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737     (exit $ac_status); }; } &&
10738     { ac_try='test -s conftest.$ac_objext'
10739     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740     (eval $ac_try) 2>&5
10741     ac_status=$?
10742     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743     (exit $ac_status); }; }; then
10744 root 1.88 struct_lastlog=yes
10745     else
10746     echo "$as_me: failed program was:" >&5
10747     sed 's/^/| /' conftest.$ac_ext >&5
10748    
10749 ayin 1.106 struct_lastlog=no
10750 root 1.88 fi
10751 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10752 root 1.88 fi
10753 ayin 1.106 echo "$as_me:$LINENO: result: $struct_lastlog" >&5
10754     echo "${ECHO_T}$struct_lastlog" >&6
10755 root 1.88 if test x$struct_lastlog = xyes; then
10756    
10757     cat >>confdefs.h <<\_ACEOF
10758     #define HAVE_STRUCT_LASTLOG 1
10759     _ACEOF
10760    
10761     fi
10762    
10763 ayin 1.106 echo "$as_me:$LINENO: checking for struct lastlogx" >&5
10764     echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
10765 root 1.88 if test "${struct_lastlogx+set}" = set; then
10766     echo $ECHO_N "(cached) $ECHO_C" >&6
10767     else
10768     cat >conftest.$ac_ext <<_ACEOF
10769     /* confdefs.h. */
10770     _ACEOF
10771     cat confdefs.h >>conftest.$ac_ext
10772     cat >>conftest.$ac_ext <<_ACEOF
10773     /* end confdefs.h. */
10774     #include <sys/types.h>
10775     #include <utmpx.h>
10776     #ifdef HAVE_LASTLOG_H
10777     #include <lastlog.h>
10778     #endif
10779    
10780     int
10781     main ()
10782     {
10783     struct lastlogx ll;
10784     ;
10785     return 0;
10786     }
10787     _ACEOF
10788     rm -f conftest.$ac_objext
10789 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10790     (eval $ac_compile) 2>conftest.er1
10791 root 1.88 ac_status=$?
10792     grep -v '^ *+' conftest.er1 >conftest.err
10793     rm -f conftest.er1
10794     cat conftest.err >&5
10795     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 ayin 1.106 (exit $ac_status); } &&
10797     { ac_try='test -z "$ac_cxx_werror_flag"
10798     || test ! -s conftest.err'
10799     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800     (eval $ac_try) 2>&5
10801     ac_status=$?
10802     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803     (exit $ac_status); }; } &&
10804     { ac_try='test -s conftest.$ac_objext'
10805     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806     (eval $ac_try) 2>&5
10807     ac_status=$?
10808     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809     (exit $ac_status); }; }; then
10810 root 1.88 struct_lastlogx=yes
10811     else
10812     echo "$as_me: failed program was:" >&5
10813     sed 's/^/| /' conftest.$ac_ext >&5
10814    
10815 ayin 1.106 struct_lastlogx=no
10816 root 1.88 fi
10817 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10818 root 1.88 fi
10819 ayin 1.106 echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
10820     echo "${ECHO_T}$struct_lastlogx" >&6
10821 root 1.88 if test x$struct_lastlogx = xyes; then
10822    
10823     cat >>confdefs.h <<\_ACEOF
10824     #define HAVE_STRUCT_LASTLOGX 1
10825     _ACEOF
10826    
10827     fi
10828    
10829    
10830 ayin 1.106 echo "$as_me:$LINENO: checking where utmp is located" >&5
10831     echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
10832 root 1.88 if test "${path_utmp+set}" = set; then
10833     echo $ECHO_N "(cached) $ECHO_C" >&6
10834     else
10835     if test "$cross_compiling" = yes; then
10836     { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
10837     echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
10838     else
10839     cat >conftest.$ac_ext <<_ACEOF
10840     /* confdefs.h. */
10841     _ACEOF
10842     cat confdefs.h >>conftest.$ac_ext
10843     cat >>conftest.$ac_ext <<_ACEOF
10844     /* end confdefs.h. */
10845     #include <stdio.h>
10846 ayin 1.102 #include <stdlib.h>
10847 root 1.88 #include <sys/types.h>
10848     #include <utmp.h>
10849     #include <errno.h>
10850     main()
10851     {
10852     char **u, *utmplist[] = {
10853     "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
10854     FILE *a, *f=fopen("conftestval", "w");
10855     if (!f) exit(1);
10856     #ifdef UTMP_FILE
10857     fprintf(f, "%s\n", UTMP_FILE);
10858     exit(0);
10859     #endif
10860     #ifdef _PATH_UTMP
10861     fprintf(f, "%s\n", _PATH_UTMP);
10862     exit(0);
10863     #endif
10864     for (u = utmplist; *u; u++) {
10865     if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
10866     fprintf(f, "%s\n", *u);
10867     exit(0);
10868     }
10869     }
10870     exit(0);
10871     }
10872     _ACEOF
10873     rm -f conftest$ac_exeext
10874 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10875     (eval $ac_link) 2>&5
10876 root 1.88 ac_status=$?
10877     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10879 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10880     (eval $ac_try) 2>&5
10881 root 1.88 ac_status=$?
10882     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883     (exit $ac_status); }; }; then
10884     path_utmp=`cat conftestval`
10885     else
10886     echo "$as_me: program exited with status $ac_status" >&5
10887     echo "$as_me: failed program was:" >&5
10888     sed 's/^/| /' conftest.$ac_ext >&5
10889    
10890     ( exit $ac_status )
10891     path_utmp=
10892     fi
10893 ayin 1.106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10894 root 1.88 fi
10895     fi
10896 ayin 1.106 echo "$as_me:$LINENO: result: $path_utmp" >&5
10897     echo "${ECHO_T}$path_utmp" >&6
10898 root 1.88 if test x$path_utmp != x; then
10899    
10900     cat >>confdefs.h <<_ACEOF
10901     #define UTMP_FILE "$path_utmp"
10902     _ACEOF
10903    
10904     fi
10905    
10906    
10907 ayin 1.106 echo "$as_me:$LINENO: checking where utmpx is located" >&5
10908     echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
10909 root 1.88 if test "${path_utmpx+set}" = set; then
10910     echo $ECHO_N "(cached) $ECHO_C" >&6
10911     else
10912     if test "$cross_compiling" = yes; then
10913     { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5
10914     echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
10915     else
10916     cat >conftest.$ac_ext <<_ACEOF
10917     /* confdefs.h. */
10918     _ACEOF
10919     cat confdefs.h >>conftest.$ac_ext
10920     cat >>conftest.$ac_ext <<_ACEOF
10921     /* end confdefs.h. */
10922     #include <stdio.h>
10923 ayin 1.102 #include <stdlib.h>
10924 root 1.88 #include <sys/types.h>
10925     #include <utmpx.h>
10926     #include <errno.h>
10927     #include <sys/stat.h>
10928     #ifdef HAVE_STRING_H
10929     #include <string.h>
10930     #endif
10931     main()
10932     {
10933     char **u, *p, *utmplist[] = {
10934     #ifdef UTMPX_FILE
10935     UTMPX_FILE,
10936     #endif
10937     #ifdef _PATH_UTMPX
10938     _PATH_UTMPX,
10939     #endif
10940     "/var/adm/utmpx", "/etc/utmpx", NULL };
10941     FILE *a, *f=fopen("conftestval", "w");
10942     struct stat statu, statux;
10943     if (!f) exit(1);
10944     for (u = utmplist; *u; u++) {
10945     if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
10946     if (stat(*u, &statux) < 0)
10947     continue;
10948     p = strdup(*u);
10949     p[strlen(p) - 1] = '\0';
10950     if (stat(p, &statu) >= 0
10951     && (statu.st_mtime - statux.st_mtime > 86400))
10952     continue;
10953     fprintf(f, "%s\n", *u);
10954     exit(0);
10955     }
10956     }
10957     exit(0);
10958     }
10959     _ACEOF
10960     rm -f conftest$ac_exeext
10961 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10962     (eval $ac_link) 2>&5
10963 root 1.88 ac_status=$?
10964     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10966 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10967     (eval $ac_try) 2>&5
10968 root 1.88 ac_status=$?
10969     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970     (exit $ac_status); }; }; then
10971     path_utmpx=`cat conftestval`
10972     else
10973     echo "$as_me: program exited with status $ac_status" >&5
10974     echo "$as_me: failed program was:" >&5
10975     sed 's/^/| /' conftest.$ac_ext >&5
10976    
10977     ( exit $ac_status )
10978     path_utmpx=
10979     fi
10980 ayin 1.106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10981 root 1.88 fi
10982     fi
10983 ayin 1.106 echo "$as_me:$LINENO: result: $path_utmpx" >&5
10984     echo "${ECHO_T}$path_utmpx" >&6
10985 root 1.88 if test x$path_utmpx != x; then
10986    
10987     cat >>confdefs.h <<_ACEOF
10988     #define UTMPX_FILE "$path_utmpx"
10989     _ACEOF
10990    
10991     fi
10992    
10993    
10994 ayin 1.106 echo "$as_me:$LINENO: checking where wtmp is located" >&5
10995     echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
10996 root 1.88 if test "${path_wtmp+set}" = set; then
10997     echo $ECHO_N "(cached) $ECHO_C" >&6
10998     else
10999     if test "$cross_compiling" = yes; then
11000     { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5
11001     echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
11002     else
11003     cat >conftest.$ac_ext <<_ACEOF
11004     /* confdefs.h. */
11005     _ACEOF
11006     cat confdefs.h >>conftest.$ac_ext
11007     cat >>conftest.$ac_ext <<_ACEOF
11008     /* end confdefs.h. */
11009     #include <stdio.h>
11010 ayin 1.102 #include <stdlib.h>
11011 root 1.88 #include <sys/types.h>
11012     #ifdef HAVE_UTMP_H
11013     #include <utmp.h>
11014     #endif
11015     #include <errno.h>
11016     main()
11017     {
11018     char **w, *wtmplist[] = {
11019     "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
11020     FILE *a, *f=fopen("conftestval", "w");
11021     if (!f) exit(1);
11022     #ifdef WTMP_FILE
11023     fprintf(f, "%s\n", WTMP_FILE);
11024     exit(0);
11025     #endif
11026     #ifdef _PATH_WTMP
11027     fprintf(f, "%s\n", _PATH_WTMP);
11028     exit(0);
11029     #endif
11030     for (w = wtmplist; *w; w++) {
11031     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11032     fprintf(f, "%s\n", *w);
11033     exit(0);
11034     }
11035     }
11036     exit(0);
11037     }
11038     _ACEOF
11039     rm -f conftest$ac_exeext
11040 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11041     (eval $ac_link) 2>&5
11042 root 1.88 ac_status=$?
11043     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11045 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046     (eval $ac_try) 2>&5
11047 root 1.88 ac_status=$?
11048     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049     (exit $ac_status); }; }; then
11050     path_wtmp=`cat conftestval`
11051     else
11052     echo "$as_me: program exited with status $ac_status" >&5
11053     echo "$as_me: failed program was:" >&5
11054     sed 's/^/| /' conftest.$ac_ext >&5
11055    
11056     ( exit $ac_status )
11057     path_wtmp=
11058     fi
11059 ayin 1.106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11060 root 1.88 fi
11061     fi
11062 ayin 1.106 echo "$as_me:$LINENO: result: $path_wtmp" >&5
11063     echo "${ECHO_T}$path_wtmp" >&6
11064 root 1.88 if test x$path_wtmp != x; then
11065    
11066     cat >>confdefs.h <<_ACEOF
11067     #define WTMP_FILE "$path_wtmp"
11068     _ACEOF
11069    
11070     fi
11071    
11072 ayin 1.106 echo "$as_me:$LINENO: checking where wtmpx is located" >&5
11073     echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
11074 root 1.88 if test "${path_wtmpx+set}" = set; then
11075     echo $ECHO_N "(cached) $ECHO_C" >&6
11076     else
11077     if test "$cross_compiling" = yes; then
11078     { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5
11079     echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
11080     else
11081     cat >conftest.$ac_ext <<_ACEOF
11082     /* confdefs.h. */
11083     _ACEOF
11084     cat confdefs.h >>conftest.$ac_ext
11085     cat >>conftest.$ac_ext <<_ACEOF
11086     /* end confdefs.h. */
11087     #include <stdio.h>
11088 ayin 1.102 #include <stdlib.h>
11089 root 1.88 #ifdef HAVE_UTMPX_H
11090     #include <utmpx.h>
11091     #endif
11092     #include <errno.h>
11093     main()
11094     {
11095     char **w, *wtmplist[] = {
11096     "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
11097     FILE *a, *f=fopen("conftestval", "w");
11098     if (!f) exit(1);
11099     #ifdef WTMPX_FILE
11100     fprintf(f, "%s\n", WTMPX_FILE);
11101     exit(0);
11102     #endif
11103     #ifdef _PATH_WTMPX
11104     fprintf(f, "%s\n", _PATH_WTMPX);
11105     exit(0);
11106     #endif
11107     for (w = wtmplist; *w; w++) {
11108     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11109     fprintf(f, "%s\n", *w);
11110     exit(0);
11111     }
11112     }
11113     exit(0);
11114     }
11115     _ACEOF
11116     rm -f conftest$ac_exeext
11117 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11118     (eval $ac_link) 2>&5
11119 root 1.88 ac_status=$?
11120     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11122 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11123     (eval $ac_try) 2>&5
11124 root 1.88 ac_status=$?
11125     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126     (exit $ac_status); }; }; then
11127     path_wtmpx=`cat conftestval`
11128     else
11129     echo "$as_me: program exited with status $ac_status" >&5
11130     echo "$as_me: failed program was:" >&5
11131     sed 's/^/| /' conftest.$ac_ext >&5
11132    
11133     ( exit $ac_status )
11134     path_wtmpx=
11135     fi
11136 ayin 1.106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11137 root 1.88 fi
11138     fi
11139 ayin 1.106 echo "$as_me:$LINENO: result: $path_wtmpx" >&5
11140     echo "${ECHO_T}$path_wtmpx" >&6
11141 root 1.88 if test x$path_wtmpx != x; then
11142    
11143     cat >>confdefs.h <<_ACEOF
11144     #define WTMPX_FILE "$path_wtmpx"
11145     _ACEOF
11146    
11147     fi
11148    
11149 ayin 1.106 echo "$as_me:$LINENO: checking where lastlog is located" >&5
11150     echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
11151 root 1.88 if test "${path_lastlog+set}" = set; then
11152     echo $ECHO_N "(cached) $ECHO_C" >&6
11153     else
11154     if test "$cross_compiling" = yes; then
11155     { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5
11156     echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
11157     else
11158     cat >conftest.$ac_ext <<_ACEOF
11159     /* confdefs.h. */
11160     _ACEOF
11161     cat confdefs.h >>conftest.$ac_ext
11162     cat >>conftest.$ac_ext <<_ACEOF
11163     /* end confdefs.h. */
11164     #include <stdio.h>
11165 ayin 1.102 #include <stdlib.h>
11166 root 1.88 #include <sys/types.h>
11167     #ifdef HAVE_UTMPX_H
11168     #include <utmpx.h>
11169     #elif defined(HAVE_UTMP_H)
11170     #include <utmp.h>
11171     #endif
11172     #ifdef HAVE_LASTLOG_H
11173     #include <lastlog.h>
11174     #endif
11175     #include <errno.h>
11176     main()
11177     {
11178     char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
11179     FILE *a, *f=fopen("conftestval", "w");
11180     if (!f) exit(1);
11181     #ifdef LASTLOG_FILE
11182     fprintf(f, "%s\n", LASTLOG_FILE);
11183     exit(0);
11184     #endif
11185     #ifdef _PATH_LASTLOG
11186     fprintf(f, "%s\n", _PATH_LASTLOG);
11187     exit(0);
11188     #endif
11189     for (w = lastloglist; *w; w++) {
11190     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11191     fprintf(f, "%s\n", *w);
11192     exit(0);
11193     }
11194     }
11195     exit(0);
11196     }
11197     _ACEOF
11198     rm -f conftest$ac_exeext
11199 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11200     (eval $ac_link) 2>&5
11201 root 1.88 ac_status=$?
11202     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11204 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205     (eval $ac_try) 2>&5
11206 root 1.88 ac_status=$?
11207     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208     (exit $ac_status); }; }; then
11209     path_lastlog=`cat conftestval`
11210     else
11211     echo "$as_me: program exited with status $ac_status" >&5
11212     echo "$as_me: failed program was:" >&5
11213     sed 's/^/| /' conftest.$ac_ext >&5
11214    
11215     ( exit $ac_status )
11216     path_lastlog=
11217     fi
11218 ayin 1.106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11219 root 1.88 fi
11220     fi
11221 ayin 1.106 echo "$as_me:$LINENO: result: $path_lastlog" >&5
11222     echo "${ECHO_T}$path_lastlog" >&6
11223 root 1.88 if test x$path_lastlog != x; then
11224    
11225     cat >>confdefs.h <<_ACEOF
11226     #define LASTLOG_FILE "$path_lastlog"
11227     _ACEOF
11228    
11229     if test -d "$path_lastlog"; then
11230    
11231     cat >>confdefs.h <<\_ACEOF
11232     #define LASTLOG_IS_DIR 1
11233     _ACEOF
11234    
11235     fi
11236     fi
11237    
11238 ayin 1.106 echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11239     echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
11240 root 1.88 if test "${path_lastlogx+set}" = set; then
11241     echo $ECHO_N "(cached) $ECHO_C" >&6
11242     else
11243     if test "$cross_compiling" = yes; then
11244     { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
11245     echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
11246     else
11247     cat >conftest.$ac_ext <<_ACEOF
11248     /* confdefs.h. */
11249     _ACEOF
11250     cat confdefs.h >>conftest.$ac_ext
11251     cat >>conftest.$ac_ext <<_ACEOF
11252     /* end confdefs.h. */
11253     #include <stdio.h>
11254 ayin 1.102 #include <stdlib.h>
11255 root 1.88 #ifdef HAVE_UTMPX_H
11256     #include <utmpx.h>
11257     #endif
11258     #include <errno.h>
11259     main()
11260     {
11261     char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11262     FILE *a, *f=fopen("conftestval", "w");
11263     if (!f) exit(1);
11264     #ifdef LASTLOGX_FILE
11265     fprintf(f, "%s\n", LASTLOGX_FILE);
11266     exit(0);
11267     #endif
11268     #ifdef _PATH_LASTLOGX
11269     fprintf(f, "%s\n", _PATH_LASTLOGX);
11270     exit(0);
11271     #endif
11272     for (w = wtmplist; *w; w++) {
11273     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11274     fprintf(f, "%s\n", *w);
11275     exit(0);
11276     }
11277     }
11278     exit(0);
11279     }
11280     _ACEOF
11281     rm -f conftest$ac_exeext
11282 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11283     (eval $ac_link) 2>&5
11284 root 1.88 ac_status=$?
11285     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11287 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288     (eval $ac_try) 2>&5
11289 root 1.88 ac_status=$?
11290     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291     (exit $ac_status); }; }; then
11292     path_lastlogx=`cat conftestval`
11293     else
11294     echo "$as_me: program exited with status $ac_status" >&5
11295     echo "$as_me: failed program was:" >&5
11296     sed 's/^/| /' conftest.$ac_ext >&5
11297    
11298     ( exit $ac_status )
11299     path_lastlogx=
11300     fi
11301 ayin 1.106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11302 root 1.88 fi
11303     fi
11304 ayin 1.106 echo "$as_me:$LINENO: result: $path_lastlogx" >&5
11305     echo "${ECHO_T}$path_lastlogx" >&6
11306 root 1.88 if test x$path_lastlogx != x; then
11307    
11308     cat >>confdefs.h <<_ACEOF
11309     #define LASTLOGX_FILE "$path_lastlogx"
11310     _ACEOF
11311    
11312     fi
11313    
11314    
11315    
11316 ayin 1.106 echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11317     echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
11318 root 1.88 if test "${rxvt_cv_path_ttytab+set}" = set; then
11319     echo $ECHO_N "(cached) $ECHO_C" >&6
11320     else
11321     for ttys_file in /etc/ttys /etc/ttytab;
11322     do
11323     if test -f "$ttys_file" ; then
11324     rxvt_cv_path_ttytab=$ttys_file
11325     break
11326     fi
11327     done
11328    
11329     fi
11330 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11331     echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
11332 root 1.88 if test x$rxvt_cv_path_ttytab != x; then
11333    
11334     cat >>confdefs.h <<_ACEOF
11335     #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11336     _ACEOF
11337    
11338     fi
11339    
11340    
11341     ac_save_LIBS=$LIBS
11342     ac_save_CFLAGS=$CFLAGS
11343     CFLAGS="$CFLAGS $X_CFLAGS"
11344     LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11345 ayin 1.106 echo "$as_me:$LINENO: checking for working Xlocale" >&5
11346     echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
11347 root 1.88 if test "${rxvt_cv_func_xlocale+set}" = set; then
11348     echo $ECHO_N "(cached) $ECHO_C" >&6
11349     else
11350     if test "$cross_compiling" = yes; then
11351 root 1.105 :
11352 root 1.88 else
11353     cat >conftest.$ac_ext <<_ACEOF
11354     /* confdefs.h. */
11355     _ACEOF
11356     cat confdefs.h >>conftest.$ac_ext
11357     cat >>conftest.$ac_ext <<_ACEOF
11358     /* end confdefs.h. */
11359     #include <X11/Xlib.h>
11360 ayin 1.102 #include <stdlib.h>
11361 root 1.88 main() {
11362     char *p;
11363     if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11364     exit (XSupportsLocale() ? 0 : 1);
11365     else
11366     exit (1);}
11367     _ACEOF
11368     rm -f conftest$ac_exeext
11369 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11370     (eval $ac_link) 2>&5
11371 root 1.88 ac_status=$?
11372     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11374 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375     (eval $ac_try) 2>&5
11376 root 1.88 ac_status=$?
11377     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378     (exit $ac_status); }; }; then
11379     rxvt_cv_func_xlocale=yes
11380     else
11381     echo "$as_me: program exited with status $ac_status" >&5
11382     echo "$as_me: failed program was:" >&5
11383     sed 's/^/| /' conftest.$ac_ext >&5
11384    
11385     ( exit $ac_status )
11386     rxvt_cv_func_xlocale=no
11387     fi
11388 ayin 1.106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11389 root 1.88 fi
11390     fi
11391 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11392     echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
11393 root 1.105 if test x$support_xim = xyes; then
11394     if test x$rxvt_cv_func_xlocale = xyes; then
11395 root 1.88
11396     cat >>confdefs.h <<\_ACEOF
11397 root 1.105 #define USE_XIM 1
11398 root 1.88 _ACEOF
11399    
11400 root 1.105 fi
11401 root 1.88 fi
11402    
11403 ayin 1.106 echo "$as_me:$LINENO: checking for working X setlocale" >&5
11404     echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6
11405 root 1.88 if test "${rxvt_cv_func_xsetlocale+set}" = set; then
11406     echo $ECHO_N "(cached) $ECHO_C" >&6
11407     else
11408     cat >conftest.$ac_ext <<_ACEOF
11409     /* confdefs.h. */
11410     _ACEOF
11411     cat confdefs.h >>conftest.$ac_ext
11412     cat >>conftest.$ac_ext <<_ACEOF
11413     /* end confdefs.h. */
11414     #define X_LOCALE 1
11415     #include <X11/Xlocale.h>
11416     int
11417     main ()
11418     {
11419     setlocale(LC_CTYPE, "");
11420     ;
11421     return 0;
11422     }
11423     _ACEOF
11424     rm -f conftest.$ac_objext conftest$ac_exeext
11425 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11426     (eval $ac_link) 2>conftest.er1
11427 root 1.88 ac_status=$?
11428     grep -v '^ *+' conftest.er1 >conftest.err
11429     rm -f conftest.er1
11430     cat conftest.err >&5
11431     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 ayin 1.106 (exit $ac_status); } &&
11433     { ac_try='test -z "$ac_cxx_werror_flag"
11434     || test ! -s conftest.err'
11435     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436     (eval $ac_try) 2>&5
11437     ac_status=$?
11438     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439     (exit $ac_status); }; } &&
11440     { ac_try='test -s conftest$ac_exeext'
11441     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442     (eval $ac_try) 2>&5
11443     ac_status=$?
11444     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445     (exit $ac_status); }; }; then
11446 root 1.88 rxvt_cv_func_xsetlocale=yes
11447     else
11448     echo "$as_me: failed program was:" >&5
11449     sed 's/^/| /' conftest.$ac_ext >&5
11450    
11451 ayin 1.106 rxvt_cv_func_xsetlocale=no
11452 root 1.88 fi
11453 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
11454 root 1.88 conftest$ac_exeext conftest.$ac_ext
11455     fi
11456 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
11457     echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6
11458 root 1.88 if test x$rxvt_cv_func_xsetlocale = xyes; then
11459    
11460     cat >>confdefs.h <<\_ACEOF
11461     #define HAVE_XSETLOCALE 1
11462     _ACEOF
11463    
11464     fi
11465     LIBS=$ac_save_LIBS
11466     CFLAGS=$ac_save_CFLAGS
11467    
11468 ayin 1.106 echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11469     echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6
11470 root 1.88 if test "${rxvt_cv_func_setlocale+set}" = set; then
11471     echo $ECHO_N "(cached) $ECHO_C" >&6
11472     else
11473     cat >conftest.$ac_ext <<_ACEOF
11474     /* confdefs.h. */
11475     _ACEOF
11476     cat confdefs.h >>conftest.$ac_ext
11477     cat >>conftest.$ac_ext <<_ACEOF
11478     /* end confdefs.h. */
11479     #include <clocale>
11480     int
11481     main ()
11482     {
11483     setlocale(LC_CTYPE, "");
11484     ;
11485     return 0;
11486     }
11487     _ACEOF
11488     rm -f conftest.$ac_objext conftest$ac_exeext
11489 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11490     (eval $ac_link) 2>conftest.er1
11491 root 1.88 ac_status=$?
11492     grep -v '^ *+' conftest.er1 >conftest.err
11493     rm -f conftest.er1
11494     cat conftest.err >&5
11495     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 ayin 1.106 (exit $ac_status); } &&
11497     { ac_try='test -z "$ac_cxx_werror_flag"
11498     || test ! -s conftest.err'
11499     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500     (eval $ac_try) 2>&5
11501     ac_status=$?
11502     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503     (exit $ac_status); }; } &&
11504     { ac_try='test -s conftest$ac_exeext'
11505     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506     (eval $ac_try) 2>&5
11507     ac_status=$?
11508     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509     (exit $ac_status); }; }; then
11510 root 1.88 rxvt_cv_func_setlocale=yes
11511     else
11512     echo "$as_me: failed program was:" >&5
11513     sed 's/^/| /' conftest.$ac_ext >&5
11514    
11515 ayin 1.106 rxvt_cv_func_setlocale=no
11516 root 1.88 fi
11517 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
11518 root 1.88 conftest$ac_exeext conftest.$ac_ext
11519     fi
11520 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
11521     echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
11522 root 1.88 if test x$rxvt_cv_func_setlocale = xyes; then
11523    
11524     cat >>confdefs.h <<\_ACEOF
11525     #define HAVE_SETLOCALE 1
11526     _ACEOF
11527    
11528     fi
11529    
11530 ayin 1.106 echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
11531     echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6
11532 root 1.88 if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
11533     echo $ECHO_N "(cached) $ECHO_C" >&6
11534     else
11535     cat >conftest.$ac_ext <<_ACEOF
11536     /* confdefs.h. */
11537     _ACEOF
11538     cat confdefs.h >>conftest.$ac_ext
11539     cat >>conftest.$ac_ext <<_ACEOF
11540     /* end confdefs.h. */
11541     #include <langinfo.h>
11542     int
11543     main ()
11544     {
11545     nl_langinfo(CODESET);
11546     ;
11547     return 0;
11548     }
11549     _ACEOF
11550     rm -f conftest.$ac_objext conftest$ac_exeext
11551 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11552     (eval $ac_link) 2>conftest.er1
11553 root 1.88 ac_status=$?
11554     grep -v '^ *+' conftest.er1 >conftest.err
11555     rm -f conftest.er1
11556     cat conftest.err >&5
11557     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 ayin 1.106 (exit $ac_status); } &&
11559     { ac_try='test -z "$ac_cxx_werror_flag"
11560     || test ! -s conftest.err'
11561     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562     (eval $ac_try) 2>&5
11563     ac_status=$?
11564     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565     (exit $ac_status); }; } &&
11566     { ac_try='test -s conftest$ac_exeext'
11567     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568     (eval $ac_try) 2>&5
11569     ac_status=$?
11570     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571     (exit $ac_status); }; }; then
11572 root 1.88 rxvt_cv_func_nl_langinfo=yes
11573     else
11574     echo "$as_me: failed program was:" >&5
11575     sed 's/^/| /' conftest.$ac_ext >&5
11576    
11577 ayin 1.106 rxvt_cv_func_nl_langinfo=no
11578 root 1.88 fi
11579 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
11580 root 1.88 conftest$ac_exeext conftest.$ac_ext
11581     fi
11582 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
11583     echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6
11584 root 1.88 if test x$rxvt_cv_func_nl_langinfo = xyes; then
11585    
11586     cat >>confdefs.h <<\_ACEOF
11587     #define HAVE_NL_LANGINFO 1
11588     _ACEOF
11589    
11590     fi
11591    
11592    
11593 ayin 1.106 echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
11594     echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11595 root 1.88 if test "${can_pass_fds+set}" = set; then
11596     echo $ECHO_N "(cached) $ECHO_C" >&6
11597     else
11598     cat >conftest.$ac_ext <<_ACEOF
11599     /* confdefs.h. */
11600     _ACEOF
11601     cat confdefs.h >>conftest.$ac_ext
11602     cat >>conftest.$ac_ext <<_ACEOF
11603     /* end confdefs.h. */
11604    
11605 root 1.93 #include <cstddef> // broken bsds (is that redundant?) need this
11606 root 1.88 #include <sys/types.h>
11607     #include <sys/socket.h>
11608     #include <sys/uio.h>
11609    
11610     int
11611     main ()
11612     {
11613    
11614     {
11615     msghdr msg;
11616     iovec iov;
11617     char buf [100];
11618     char data = 0;
11619    
11620     iov.iov_base = &data;
11621     iov.iov_len = 1;
11622    
11623     msg.msg_iov = &iov;
11624     msg.msg_iovlen = 1;
11625     msg.msg_control = buf;
11626     msg.msg_controllen = sizeof buf;
11627    
11628     cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11629     cmsg->cmsg_level = SOL_SOCKET;
11630     cmsg->cmsg_type = SCM_RIGHTS;
11631     cmsg->cmsg_len = 100;
11632    
11633     *(int *)CMSG_DATA (cmsg) = 5;
11634    
11635     return sendmsg (3, &msg, 0);
11636     }
11637    
11638     ;
11639     return 0;
11640     }
11641     _ACEOF
11642     rm -f conftest.$ac_objext conftest$ac_exeext
11643 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11644     (eval $ac_link) 2>conftest.er1
11645 root 1.88 ac_status=$?
11646     grep -v '^ *+' conftest.er1 >conftest.err
11647     rm -f conftest.er1
11648     cat conftest.err >&5
11649     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 ayin 1.106 (exit $ac_status); } &&
11651     { ac_try='test -z "$ac_cxx_werror_flag"
11652     || test ! -s conftest.err'
11653     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654     (eval $ac_try) 2>&5
11655     ac_status=$?
11656     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657     (exit $ac_status); }; } &&
11658     { ac_try='test -s conftest$ac_exeext'
11659     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660     (eval $ac_try) 2>&5
11661     ac_status=$?
11662     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663     (exit $ac_status); }; }; then
11664 root 1.88 can_pass_fds=yes
11665     else
11666     echo "$as_me: failed program was:" >&5
11667     sed 's/^/| /' conftest.$ac_ext >&5
11668    
11669 ayin 1.106 can_pass_fds=no
11670 root 1.88 fi
11671 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
11672 root 1.88 conftest$ac_exeext conftest.$ac_ext
11673     fi
11674 ayin 1.106 echo "$as_me:$LINENO: result: $can_pass_fds" >&5
11675     echo "${ECHO_T}$can_pass_fds" >&6
11676 root 1.88 if test x$can_pass_fds = xyes; then
11677    
11678     cat >>confdefs.h <<\_ACEOF
11679     #define HAVE_UNIX_FDPASS 1
11680     _ACEOF
11681    
11682     else
11683     { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
11684     echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
11685     { (exit 1); exit 1; }; }
11686     fi
11687    
11688    
11689 ayin 1.106 echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11690     echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11691 root 1.88 if test "${rxvt_broken_ximcb+set}" = set; then
11692 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
11693     else
11694 root 1.88 cat >conftest.$ac_ext <<_ACEOF
11695    
11696     #include <X11/Xlib.h>
11697    
11698     void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11699    
11700     void f() {
11701     XIMCallback cb;
11702     cb.callback = im_destroy_cb;
11703     }
11704    
11705     _ACEOF
11706     rm -f conftest.$ac_objext
11707 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11708     (eval $ac_compile) 2>conftest.er1
11709 root 1.88 ac_status=$?
11710     grep -v '^ *+' conftest.er1 >conftest.err
11711     rm -f conftest.er1
11712     cat conftest.err >&5
11713     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 ayin 1.106 (exit $ac_status); } &&
11715     { ac_try='test -z "$ac_cxx_werror_flag"
11716     || test ! -s conftest.err'
11717     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718     (eval $ac_try) 2>&5
11719     ac_status=$?
11720     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721     (exit $ac_status); }; } &&
11722     { ac_try='test -s conftest.$ac_objext'
11723     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724     (eval $ac_try) 2>&5
11725     ac_status=$?
11726     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727     (exit $ac_status); }; }; then
11728 root 1.88 rxvt_broken_ximcb=yes
11729     else
11730     echo "$as_me: failed program was:" >&5
11731     sed 's/^/| /' conftest.$ac_ext >&5
11732    
11733 ayin 1.106 rxvt_broken_ximcb=no
11734 root 1.88 fi
11735 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11736 root 1.88 fi
11737 ayin 1.106 echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
11738     echo "${ECHO_T}$rxvt_broken_ximcb" >&6
11739 root 1.88
11740     if test x$rxvt_broken_ximcb = xyes; then
11741    
11742     cat >>confdefs.h <<\_ACEOF
11743     #define XIMCB_PROTO_BROKEN 1
11744     _ACEOF
11745    
11746     fi
11747    
11748    
11749    
11750    
11751    
11752    
11753    
11754     for ac_header in \
11755     pty.h \
11756     util.h \
11757     libutil.h \
11758     sys/ioctl.h \
11759     sys/stropts.h \
11760    
11761 root 1.83 do
11762 root 1.88 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11763 ayin 1.106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11764     echo "$as_me:$LINENO: checking for $ac_header" >&5
11765     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11766     if eval "test \"\${$as_ac_Header+set}\" = set"; then
11767 root 1.88 echo $ECHO_N "(cached) $ECHO_C" >&6
11768     fi
11769 ayin 1.106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11770     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11771 root 1.88 else
11772     # Is the header compilable?
11773 ayin 1.106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11774     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11775 root 1.88 cat >conftest.$ac_ext <<_ACEOF
11776     /* confdefs.h. */
11777     _ACEOF
11778     cat confdefs.h >>conftest.$ac_ext
11779     cat >>conftest.$ac_ext <<_ACEOF
11780     /* end confdefs.h. */
11781     $ac_includes_default
11782     #include <$ac_header>
11783     _ACEOF
11784     rm -f conftest.$ac_objext
11785 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11786     (eval $ac_compile) 2>conftest.er1
11787 root 1.88 ac_status=$?
11788     grep -v '^ *+' conftest.er1 >conftest.err
11789     rm -f conftest.er1
11790     cat conftest.err >&5
11791     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 ayin 1.106 (exit $ac_status); } &&
11793     { ac_try='test -z "$ac_cxx_werror_flag"
11794     || test ! -s conftest.err'
11795     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796     (eval $ac_try) 2>&5
11797     ac_status=$?
11798     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799     (exit $ac_status); }; } &&
11800     { ac_try='test -s conftest.$ac_objext'
11801     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11802     (eval $ac_try) 2>&5
11803     ac_status=$?
11804     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805     (exit $ac_status); }; }; then
11806 root 1.88 ac_header_compiler=yes
11807     else
11808     echo "$as_me: failed program was:" >&5
11809     sed 's/^/| /' conftest.$ac_ext >&5
11810    
11811 ayin 1.106 ac_header_compiler=no
11812 root 1.88 fi
11813 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11814     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11815     echo "${ECHO_T}$ac_header_compiler" >&6
11816 root 1.88
11817     # Is the header present?
11818 ayin 1.106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11819     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11820 root 1.88 cat >conftest.$ac_ext <<_ACEOF
11821     /* confdefs.h. */
11822     _ACEOF
11823     cat confdefs.h >>conftest.$ac_ext
11824     cat >>conftest.$ac_ext <<_ACEOF
11825     /* end confdefs.h. */
11826     #include <$ac_header>
11827     _ACEOF
11828 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11829     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11830 root 1.88 ac_status=$?
11831     grep -v '^ *+' conftest.er1 >conftest.err
11832     rm -f conftest.er1
11833     cat conftest.err >&5
11834     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 ayin 1.106 (exit $ac_status); } >/dev/null; then
11836     if test -s conftest.err; then
11837     ac_cpp_err=$ac_cxx_preproc_warn_flag
11838     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11839     else
11840     ac_cpp_err=
11841     fi
11842     else
11843     ac_cpp_err=yes
11844     fi
11845     if test -z "$ac_cpp_err"; then
11846 root 1.88 ac_header_preproc=yes
11847     else
11848     echo "$as_me: failed program was:" >&5
11849     sed 's/^/| /' conftest.$ac_ext >&5
11850    
11851     ac_header_preproc=no
11852     fi
11853     rm -f conftest.err conftest.$ac_ext
11854 ayin 1.106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11855     echo "${ECHO_T}$ac_header_preproc" >&6
11856 root 1.88
11857     # So? What about this header?
11858     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11859     yes:no: )
11860     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11861     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11862     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11863     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11864     ac_header_preproc=yes
11865     ;;
11866     no:yes:* )
11867     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11868     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11869     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11870     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11871     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11872     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11873     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11874     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11876     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11877     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11878     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11879 ayin 1.106 (
11880     cat <<\_ASBOX
11881     ## ------------------------------------------ ##
11882     ## Report this to the AC_PACKAGE_NAME lists. ##
11883     ## ------------------------------------------ ##
11884     _ASBOX
11885     ) |
11886     sed "s/^/$as_me: WARNING: /" >&2
11887 root 1.88 ;;
11888     esac
11889 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_header" >&5
11890     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11891     if eval "test \"\${$as_ac_Header+set}\" = set"; then
11892 root 1.88 echo $ECHO_N "(cached) $ECHO_C" >&6
11893     else
11894     eval "$as_ac_Header=\$ac_header_preproc"
11895     fi
11896 ayin 1.106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11897     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11898 root 1.88
11899     fi
11900     if test `eval echo '${'$as_ac_Header'}'` = yes; then
11901     cat >>confdefs.h <<_ACEOF
11902     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11903     _ACEOF
11904 root 1.83
11905 pcg 1.11 fi
11906 root 1.83
11907 root 1.88 done
11908    
11909 root 1.83
11910    
11911    
11912    
11913    
11914    
11915 root 1.94
11916    
11917    
11918    
11919 root 1.88 for ac_func in \
11920     revoke \
11921     _getpty \
11922     getpt \
11923     posix_openpt \
11924     isastream \
11925 root 1.94 setuid \
11926     seteuid \
11927     setreuid \
11928     setresuid \
11929 root 1.83
11930 root 1.88 do
11931     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11932 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_func" >&5
11933     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11934     if eval "test \"\${$as_ac_var+set}\" = set"; then
11935 root 1.83 echo $ECHO_N "(cached) $ECHO_C" >&6
11936     else
11937     cat >conftest.$ac_ext <<_ACEOF
11938     /* confdefs.h. */
11939     _ACEOF
11940     cat confdefs.h >>conftest.$ac_ext
11941     cat >>conftest.$ac_ext <<_ACEOF
11942     /* end confdefs.h. */
11943 root 1.88 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11944     For example, HP-UX 11i <limits.h> declares gettimeofday. */
11945     #define $ac_func innocuous_$ac_func
11946    
11947     /* System header to define __stub macros and hopefully few prototypes,
11948     which can conflict with char $ac_func (); below.
11949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11950     <limits.h> exists even on freestanding compilers. */
11951    
11952     #ifdef __STDC__
11953     # include <limits.h>
11954     #else
11955     # include <assert.h>
11956     #endif
11957    
11958     #undef $ac_func
11959    
11960 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
11961 root 1.88 #ifdef __cplusplus
11962     extern "C"
11963 ayin 1.106 {
11964 root 1.88 #endif
11965 ayin 1.106 /* We use char because int might match the return type of a gcc2
11966     builtin and then its argument prototype would still apply. */
11967 root 1.88 char $ac_func ();
11968     /* The GNU C library defines this for functions which it implements
11969     to always fail with ENOSYS. Some functions are actually named
11970     something starting with __ and the normal name is an alias. */
11971 ayin 1.106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11972 root 1.88 choke me
11973 ayin 1.106 #else
11974     char (*f) () = $ac_func;
11975     #endif
11976     #ifdef __cplusplus
11977     }
11978 root 1.88 #endif
11979    
11980 root 1.83 int
11981     main ()
11982     {
11983 ayin 1.106 return f != $ac_func;
11984 root 1.56 ;
11985     return 0;
11986     }
11987     _ACEOF
11988     rm -f conftest.$ac_objext conftest$ac_exeext
11989 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11990     (eval $ac_link) 2>conftest.er1
11991 root 1.56 ac_status=$?
11992     grep -v '^ *+' conftest.er1 >conftest.err
11993     rm -f conftest.er1
11994     cat conftest.err >&5
11995     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 ayin 1.106 (exit $ac_status); } &&
11997     { ac_try='test -z "$ac_cxx_werror_flag"
11998     || test ! -s conftest.err'
11999     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000     (eval $ac_try) 2>&5
12001     ac_status=$?
12002     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003     (exit $ac_status); }; } &&
12004     { ac_try='test -s conftest$ac_exeext'
12005     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006     (eval $ac_try) 2>&5
12007     ac_status=$?
12008     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009     (exit $ac_status); }; }; then
12010 root 1.88 eval "$as_ac_var=yes"
12011 root 1.56 else
12012     echo "$as_me: failed program was:" >&5
12013     sed 's/^/| /' conftest.$ac_ext >&5
12014    
12015 ayin 1.106 eval "$as_ac_var=no"
12016 root 1.56 fi
12017 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
12018 root 1.56 conftest$ac_exeext conftest.$ac_ext
12019     fi
12020 ayin 1.106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12021     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12022 root 1.88 if test `eval echo '${'$as_ac_var'}'` = yes; then
12023     cat >>confdefs.h <<_ACEOF
12024     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12025     _ACEOF
12026    
12027     fi
12028     done
12029    
12030    
12031     have_clone=no
12032    
12033 ayin 1.106 echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12034     echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6
12035 root 1.88 if test -e /dev/ptym/clone; then
12036 ayin 1.106 echo "$as_me:$LINENO: result: yes" >&5
12037     echo "${ECHO_T}yes" >&6
12038 root 1.88
12039     cat >>confdefs.h <<\_ACEOF
12040     #define HAVE_DEV_CLONE 1
12041     _ACEOF
12042    
12043 root 1.83
12044     cat >>confdefs.h <<\_ACEOF
12045 root 1.88 #define CLONE_DEVICE "/dev/ptym/clone"
12046 root 1.56 _ACEOF
12047    
12048 root 1.88 have_clone=yes
12049     else
12050 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
12051     echo "${ECHO_T}no" >&6
12052 root 1.56 fi
12053    
12054 ayin 1.106 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12055     echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12056 root 1.88 if test -e /dev/ptc; then
12057 ayin 1.106 echo "$as_me:$LINENO: result: yes" >&5
12058     echo "${ECHO_T}yes" >&6
12059 root 1.88
12060     cat >>confdefs.h <<\_ACEOF
12061     #define HAVE_DEV_PTC 1
12062     _ACEOF
12063    
12064    
12065     cat >>confdefs.h <<\_ACEOF
12066     #define CLONE_DEVICE "/dev/ptc"
12067     _ACEOF
12068    
12069     have_clone=yes
12070 root 1.31 else
12071 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
12072     echo "${ECHO_T}no" >&6
12073 root 1.88 fi
12074    
12075     case $host in
12076     *-*-cygwin*)
12077     have_clone=yes
12078    
12079     cat >>confdefs.h <<\_ACEOF
12080     #define CLONE_DEVICE "/dev/ptmx"
12081     _ACEOF
12082    
12083     ;;
12084     *)
12085 ayin 1.106 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12086     echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
12087 root 1.88 if test -e /dev/ptmx; then
12088 ayin 1.106 echo "$as_me:$LINENO: result: yes" >&5
12089     echo "${ECHO_T}yes" >&6
12090 root 1.88
12091     cat >>confdefs.h <<\_ACEOF
12092     #define HAVE_DEV_PTMX 1
12093     _ACEOF
12094    
12095    
12096     cat >>confdefs.h <<\_ACEOF
12097     #define CLONE_DEVICE "/dev/ptmx"
12098     _ACEOF
12099    
12100     have_clone=yes
12101     else
12102 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
12103     echo "${ECHO_T}no" >&6
12104 root 1.88 fi
12105     ;;
12106     esac
12107    
12108     if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12109 ayin 1.106 echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5
12110     echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6
12111 root 1.83 cat >conftest.$ac_ext <<_ACEOF
12112     /* confdefs.h. */
12113     _ACEOF
12114     cat confdefs.h >>conftest.$ac_ext
12115     cat >>conftest.$ac_ext <<_ACEOF
12116     /* end confdefs.h. */
12117 root 1.88 #include <stdlib.h>
12118 root 1.83 int
12119     main ()
12120     {
12121 root 1.88 grantpt(0);unlockpt(0);ptsname(0);
12122 root 1.83 ;
12123     return 0;
12124 root 1.31 }
12125     _ACEOF
12126 root 1.83 rm -f conftest.$ac_objext conftest$ac_exeext
12127 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12128     (eval $ac_link) 2>conftest.er1
12129 root 1.31 ac_status=$?
12130     grep -v '^ *+' conftest.er1 >conftest.err
12131     rm -f conftest.er1
12132     cat conftest.err >&5
12133     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 ayin 1.106 (exit $ac_status); } &&
12135     { ac_try='test -z "$ac_cxx_werror_flag"
12136     || test ! -s conftest.err'
12137     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138     (eval $ac_try) 2>&5
12139     ac_status=$?
12140     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141     (exit $ac_status); }; } &&
12142     { ac_try='test -s conftest$ac_exeext'
12143     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144     (eval $ac_try) 2>&5
12145     ac_status=$?
12146     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147     (exit $ac_status); }; }; then
12148 root 1.88 unix98_pty=yes
12149    
12150     cat >>confdefs.h <<\_ACEOF
12151     #define UNIX98_PTY 1
12152     _ACEOF
12153    
12154 ayin 1.106 echo "$as_me:$LINENO: result: yes" >&5
12155     echo "${ECHO_T}yes" >&6
12156 root 1.31 else
12157     echo "$as_me: failed program was:" >&5
12158     sed 's/^/| /' conftest.$ac_ext >&5
12159    
12160 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
12161     echo "${ECHO_T}no" >&6
12162 root 1.31 fi
12163 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
12164 root 1.83 conftest$ac_exeext conftest.$ac_ext
12165 root 1.31 fi
12166    
12167 root 1.88 if test -z "$unix98_pty"; then
12168 root 1.31
12169 root 1.88 for ac_func in openpty
12170     do
12171     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12172 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_func" >&5
12173     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12174     if eval "test \"\${$as_ac_var+set}\" = set"; then
12175 root 1.66 echo $ECHO_N "(cached) $ECHO_C" >&6
12176     else
12177     cat >conftest.$ac_ext <<_ACEOF
12178     /* confdefs.h. */
12179     _ACEOF
12180     cat confdefs.h >>conftest.$ac_ext
12181     cat >>conftest.$ac_ext <<_ACEOF
12182     /* end confdefs.h. */
12183 root 1.88 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12184     For example, HP-UX 11i <limits.h> declares gettimeofday. */
12185     #define $ac_func innocuous_$ac_func
12186    
12187     /* System header to define __stub macros and hopefully few prototypes,
12188     which can conflict with char $ac_func (); below.
12189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12190     <limits.h> exists even on freestanding compilers. */
12191    
12192     #ifdef __STDC__
12193     # include <limits.h>
12194     #else
12195     # include <assert.h>
12196     #endif
12197    
12198     #undef $ac_func
12199    
12200 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
12201 root 1.88 #ifdef __cplusplus
12202     extern "C"
12203 ayin 1.106 {
12204 root 1.88 #endif
12205 ayin 1.106 /* We use char because int might match the return type of a gcc2
12206     builtin and then its argument prototype would still apply. */
12207 root 1.88 char $ac_func ();
12208     /* The GNU C library defines this for functions which it implements
12209     to always fail with ENOSYS. Some functions are actually named
12210     something starting with __ and the normal name is an alias. */
12211 ayin 1.106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12212 root 1.88 choke me
12213 ayin 1.106 #else
12214     char (*f) () = $ac_func;
12215     #endif
12216     #ifdef __cplusplus
12217     }
12218 root 1.88 #endif
12219    
12220 root 1.66 int
12221     main ()
12222     {
12223 ayin 1.106 return f != $ac_func;
12224 root 1.66 ;
12225     return 0;
12226     }
12227     _ACEOF
12228     rm -f conftest.$ac_objext conftest$ac_exeext
12229 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12230     (eval $ac_link) 2>conftest.er1
12231 root 1.66 ac_status=$?
12232     grep -v '^ *+' conftest.er1 >conftest.err
12233     rm -f conftest.er1
12234     cat conftest.err >&5
12235     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 ayin 1.106 (exit $ac_status); } &&
12237     { ac_try='test -z "$ac_cxx_werror_flag"
12238     || test ! -s conftest.err'
12239     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12240     (eval $ac_try) 2>&5
12241     ac_status=$?
12242     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243     (exit $ac_status); }; } &&
12244     { ac_try='test -s conftest$ac_exeext'
12245     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246     (eval $ac_try) 2>&5
12247     ac_status=$?
12248     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249     (exit $ac_status); }; }; then
12250 root 1.88 eval "$as_ac_var=yes"
12251 root 1.66 else
12252     echo "$as_me: failed program was:" >&5
12253     sed 's/^/| /' conftest.$ac_ext >&5
12254    
12255 ayin 1.106 eval "$as_ac_var=no"
12256 root 1.66 fi
12257 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
12258 root 1.66 conftest$ac_exeext conftest.$ac_ext
12259     fi
12260 ayin 1.106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12261     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12262 root 1.88 if test `eval echo '${'$as_ac_var'}'` = yes; then
12263     cat >>confdefs.h <<_ACEOF
12264     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12265 root 1.83 _ACEOF
12266    
12267 root 1.88 else
12268 ayin 1.106 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12269     echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12270 root 1.88 if test "${ac_cv_lib_util_openpty+set}" = set; then
12271 root 1.66 echo $ECHO_N "(cached) $ECHO_C" >&6
12272     else
12273 root 1.88 ac_check_lib_save_LIBS=$LIBS
12274     LIBS="-lutil $LIBS"
12275     cat >conftest.$ac_ext <<_ACEOF
12276     /* confdefs.h. */
12277     _ACEOF
12278     cat confdefs.h >>conftest.$ac_ext
12279     cat >>conftest.$ac_ext <<_ACEOF
12280     /* end confdefs.h. */
12281 root 1.87
12282 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
12283 root 1.88 #ifdef __cplusplus
12284     extern "C"
12285     #endif
12286 ayin 1.106 /* We use char because int might match the return type of a gcc2
12287     builtin and then its argument prototype would still apply. */
12288 root 1.88 char openpty ();
12289     int
12290     main ()
12291     {
12292 ayin 1.106 openpty ();
12293 root 1.88 ;
12294     return 0;
12295 root 1.66 }
12296     _ACEOF
12297 root 1.88 rm -f conftest.$ac_objext conftest$ac_exeext
12298 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12299     (eval $ac_link) 2>conftest.er1
12300 root 1.66 ac_status=$?
12301     grep -v '^ *+' conftest.er1 >conftest.err
12302     rm -f conftest.er1
12303     cat conftest.err >&5
12304     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 ayin 1.106 (exit $ac_status); } &&
12306     { ac_try='test -z "$ac_cxx_werror_flag"
12307     || test ! -s conftest.err'
12308     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309     (eval $ac_try) 2>&5
12310     ac_status=$?
12311     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312     (exit $ac_status); }; } &&
12313     { ac_try='test -s conftest$ac_exeext'
12314     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315     (eval $ac_try) 2>&5
12316     ac_status=$?
12317     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318     (exit $ac_status); }; }; then
12319 root 1.88 ac_cv_lib_util_openpty=yes
12320 root 1.66 else
12321     echo "$as_me: failed program was:" >&5
12322     sed 's/^/| /' conftest.$ac_ext >&5
12323    
12324 ayin 1.106 ac_cv_lib_util_openpty=no
12325 root 1.88 fi
12326 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
12327 root 1.88 conftest$ac_exeext conftest.$ac_ext
12328     LIBS=$ac_check_lib_save_LIBS
12329 root 1.66 fi
12330 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12331     echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12332 root 1.88 if test $ac_cv_lib_util_openpty = yes; then
12333     cat >>confdefs.h <<\_ACEOF
12334     #define HAVE_OPENPTY 1
12335     _ACEOF
12336     LIBS="$LIBS -lutil"
12337 root 1.66 fi
12338 root 1.87
12339 root 1.88 fi
12340     done
12341 pcg 1.1
12342     fi
12343    
12344    
12345 root 1.90
12346 ayin 1.106 echo "$as_me:$LINENO: checking for tty group" >&5
12347     echo $ECHO_N "checking for tty group... $ECHO_C" >&6
12348 root 1.90 if test "${tty_group+set}" = set; then
12349     echo $ECHO_N "(cached) $ECHO_C" >&6
12350     else
12351     if test "$cross_compiling" = yes; then
12352     tty_group=no
12353     else
12354     cat >conftest.$ac_ext <<_ACEOF
12355     /* confdefs.h. */
12356     _ACEOF
12357     cat confdefs.h >>conftest.$ac_ext
12358     cat >>conftest.$ac_ext <<_ACEOF
12359     /* end confdefs.h. */
12360    
12361     #include <sys/types.h>
12362     #include <sys/stat.h>
12363     #include <unistd.h>
12364     #include <grp.h>
12365    
12366     main()
12367     {
12368     struct stat st;
12369     struct group *gr;
12370     char *tty;
12371     gr = getgrnam("tty");
12372     tty = ttyname(0);
12373     if (gr != 0
12374     && tty != 0
12375     && (stat(tty, &st)) == 0
12376     && st.st_gid == gr->gr_gid)
12377     return 0;
12378     else
12379     return 1;
12380     }
12381     _ACEOF
12382     rm -f conftest$ac_exeext
12383 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12384     (eval $ac_link) 2>&5
12385 root 1.90 ac_status=$?
12386     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12388 ayin 1.106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389     (eval $ac_try) 2>&5
12390 root 1.90 ac_status=$?
12391     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392     (exit $ac_status); }; }; then
12393     tty_group=yes
12394     else
12395     echo "$as_me: program exited with status $ac_status" >&5
12396     echo "$as_me: failed program was:" >&5
12397     sed 's/^/| /' conftest.$ac_ext >&5
12398    
12399     ( exit $ac_status )
12400     tty_group=no
12401     fi
12402 ayin 1.106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12403 root 1.90 fi
12404     fi
12405 ayin 1.106 echo "$as_me:$LINENO: result: $tty_group" >&5
12406     echo "${ECHO_T}$tty_group" >&6
12407 root 1.90 if test x$tty_group = xyes; then
12408    
12409     cat >>confdefs.h <<\_ACEOF
12410     #define TTY_GID_SUPPORT 1
12411     _ACEOF
12412    
12413     fi
12414    
12415 root 1.39 if test x$support_xft = xyes; then
12416 root 1.86 # Extract the first word of "pkg-config", so it can be a program name with args.
12417     set dummy pkg-config; ac_word=$2
12418 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_word" >&5
12419     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12420 root 1.86 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12421     echo $ECHO_N "(cached) $ECHO_C" >&6
12422     else
12423     case $PKG_CONFIG in
12424     [\\/]* | ?:[\\/]*)
12425     ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12426     ;;
12427     *)
12428     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429     for as_dir in $PATH
12430     do
12431     IFS=$as_save_IFS
12432     test -z "$as_dir" && as_dir=.
12433     for ac_exec_ext in '' $ac_executable_extensions; do
12434 ayin 1.106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12435 root 1.86 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12437     break 2
12438     fi
12439     done
12440     done
12441    
12442     test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12443     ;;
12444     esac
12445     fi
12446     PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12447 ayin 1.106
12448 root 1.86 if test -n "$PKG_CONFIG"; then
12449 ayin 1.106 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12450     echo "${ECHO_T}$PKG_CONFIG" >&6
12451 root 1.86 else
12452 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
12453     echo "${ECHO_T}no" >&6
12454 root 1.86 fi
12455    
12456 root 1.90 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12457     LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12458     CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12459     else
12460     # Extract the first word of "xft-config", so it can be a program name with args.
12461 root 1.86 set dummy xft-config; ac_word=$2
12462 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_word" >&5
12463     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12464 root 1.86 if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12465     echo $ECHO_N "(cached) $ECHO_C" >&6
12466     else
12467     case $XFT_CONFIG in
12468     [\\/]* | ?:[\\/]*)
12469     ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12470     ;;
12471     *)
12472     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473     for as_dir in $PATH
12474     do
12475     IFS=$as_save_IFS
12476     test -z "$as_dir" && as_dir=.
12477     for ac_exec_ext in '' $ac_executable_extensions; do
12478 ayin 1.106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12479 root 1.86 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12481     break 2
12482     fi
12483     done
12484     done
12485    
12486     test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
12487     ;;
12488     esac
12489     fi
12490     XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12491 ayin 1.106
12492 root 1.86 if test -n "$XFT_CONFIG"; then
12493 ayin 1.106 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12494     echo "${ECHO_T}$XFT_CONFIG" >&6
12495 root 1.86 else
12496 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
12497     echo "${ECHO_T}no" >&6
12498 root 1.86 fi
12499    
12500     if test $XFT_CONFIG != no; then
12501     LIBS="$LIBS `$XFT_CONFIG --libs`"
12502     CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12503     fi
12504     fi
12505 root 1.34
12506    
12507 root 1.39 for ac_header in X11/Xft/Xft.h
12508     do
12509     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12510 ayin 1.106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12511     echo "$as_me:$LINENO: checking for $ac_header" >&5
12512     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12513     if eval "test \"\${$as_ac_Header+set}\" = set"; then
12514 root 1.39 echo $ECHO_N "(cached) $ECHO_C" >&6
12515 root 1.34 fi
12516 ayin 1.106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12517     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12518 root 1.39 else
12519     # Is the header compilable?
12520 ayin 1.106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12521     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12522 root 1.39 cat >conftest.$ac_ext <<_ACEOF
12523     /* confdefs.h. */
12524 root 1.26 _ACEOF
12525 root 1.39 cat confdefs.h >>conftest.$ac_ext
12526     cat >>conftest.$ac_ext <<_ACEOF
12527     /* end confdefs.h. */
12528     $ac_includes_default
12529     #include <$ac_header>
12530 root 1.31 _ACEOF
12531 root 1.39 rm -f conftest.$ac_objext
12532 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12533     (eval $ac_compile) 2>conftest.er1
12534 root 1.39 ac_status=$?
12535     grep -v '^ *+' conftest.er1 >conftest.err
12536     rm -f conftest.er1
12537     cat conftest.err >&5
12538     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 ayin 1.106 (exit $ac_status); } &&
12540     { ac_try='test -z "$ac_cxx_werror_flag"
12541     || test ! -s conftest.err'
12542     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543     (eval $ac_try) 2>&5
12544     ac_status=$?
12545     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546     (exit $ac_status); }; } &&
12547     { ac_try='test -s conftest.$ac_objext'
12548     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549     (eval $ac_try) 2>&5
12550     ac_status=$?
12551     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552     (exit $ac_status); }; }; then
12553 root 1.39 ac_header_compiler=yes
12554     else
12555     echo "$as_me: failed program was:" >&5
12556     sed 's/^/| /' conftest.$ac_ext >&5
12557 root 1.31
12558 ayin 1.106 ac_header_compiler=no
12559 root 1.31 fi
12560 ayin 1.106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12561     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12562     echo "${ECHO_T}$ac_header_compiler" >&6
12563 pcg 1.24
12564 root 1.39 # Is the header present?
12565 ayin 1.106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12566     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12567 root 1.39 cat >conftest.$ac_ext <<_ACEOF
12568     /* confdefs.h. */
12569 pcg 1.24 _ACEOF
12570 root 1.39 cat confdefs.h >>conftest.$ac_ext
12571     cat >>conftest.$ac_ext <<_ACEOF
12572     /* end confdefs.h. */
12573     #include <$ac_header>
12574 pcg 1.11 _ACEOF
12575 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12576     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12577 root 1.39 ac_status=$?
12578     grep -v '^ *+' conftest.er1 >conftest.err
12579     rm -f conftest.er1
12580     cat conftest.err >&5
12581     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 ayin 1.106 (exit $ac_status); } >/dev/null; then
12583     if test -s conftest.err; then
12584     ac_cpp_err=$ac_cxx_preproc_warn_flag
12585     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12586     else
12587     ac_cpp_err=
12588     fi
12589     else
12590     ac_cpp_err=yes
12591     fi
12592     if test -z "$ac_cpp_err"; then
12593 root 1.39 ac_header_preproc=yes
12594     else
12595     echo "$as_me: failed program was:" >&5
12596     sed 's/^/| /' conftest.$ac_ext >&5
12597 pcg 1.1
12598 root 1.39 ac_header_preproc=no
12599 pcg 1.1 fi
12600 root 1.39 rm -f conftest.err conftest.$ac_ext
12601 ayin 1.106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12602     echo "${ECHO_T}$ac_header_preproc" >&6
12603 pcg 1.1
12604 root 1.39 # So? What about this header?
12605     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12606     yes:no: )
12607     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12608     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12609     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12610     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12611     ac_header_preproc=yes
12612     ;;
12613     no:yes:* )
12614     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12615     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12616     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12617     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12618     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12619     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12620     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12621     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12622     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12623     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12624     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12625     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12626 ayin 1.106 (
12627     cat <<\_ASBOX
12628     ## ------------------------------------------ ##
12629     ## Report this to the AC_PACKAGE_NAME lists. ##
12630     ## ------------------------------------------ ##
12631     _ASBOX
12632     ) |
12633     sed "s/^/$as_me: WARNING: /" >&2
12634 root 1.39 ;;
12635     esac
12636 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_header" >&5
12637     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12638     if eval "test \"\${$as_ac_Header+set}\" = set"; then
12639 root 1.39 echo $ECHO_N "(cached) $ECHO_C" >&6
12640     else
12641     eval "$as_ac_Header=\$ac_header_preproc"
12642 pcg 1.1 fi
12643 ayin 1.106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12644     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12645 pcg 1.1
12646     fi
12647 root 1.39 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12648     cat >>confdefs.h <<_ACEOF
12649     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12650 pcg 1.11 _ACEOF
12651 pcg 1.1
12652 root 1.39 else
12653     support_xft=no
12654 pcg 1.1 fi
12655 pcg 1.11
12656 root 1.39 done
12657 pcg 1.1
12658 pcg 1.11
12659 ayin 1.106 echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12660     echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
12661 root 1.39 if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12662     echo $ECHO_N "(cached) $ECHO_C" >&6
12663     else
12664     ac_check_lib_save_LIBS=$LIBS
12665     LIBS="-lXft $LIBS"
12666     cat >conftest.$ac_ext <<_ACEOF
12667     /* confdefs.h. */
12668     _ACEOF
12669     cat confdefs.h >>conftest.$ac_ext
12670     cat >>conftest.$ac_ext <<_ACEOF
12671     /* end confdefs.h. */
12672    
12673 ayin 1.106 /* Override any gcc2 internal prototype to avoid an error. */
12674 root 1.39 #ifdef __cplusplus
12675     extern "C"
12676     #endif
12677 ayin 1.106 /* We use char because int might match the return type of a gcc2
12678     builtin and then its argument prototype would still apply. */
12679 root 1.39 char XftDrawString32 ();
12680     int
12681     main ()
12682     {
12683 ayin 1.106 XftDrawString32 ();
12684 root 1.39 ;
12685     return 0;
12686     }
12687     _ACEOF
12688     rm -f conftest.$ac_objext conftest$ac_exeext
12689 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12690     (eval $ac_link) 2>conftest.er1
12691 root 1.39 ac_status=$?
12692     grep -v '^ *+' conftest.er1 >conftest.err
12693     rm -f conftest.er1
12694     cat conftest.err >&5
12695     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 ayin 1.106 (exit $ac_status); } &&
12697     { ac_try='test -z "$ac_cxx_werror_flag"
12698     || test ! -s conftest.err'
12699     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700     (eval $ac_try) 2>&5
12701     ac_status=$?
12702     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703     (exit $ac_status); }; } &&
12704     { ac_try='test -s conftest$ac_exeext'
12705     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706     (eval $ac_try) 2>&5
12707     ac_status=$?
12708     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709     (exit $ac_status); }; }; then
12710 root 1.39 ac_cv_lib_Xft_XftDrawString32=yes
12711     else
12712     echo "$as_me: failed program was:" >&5
12713     sed 's/^/| /' conftest.$ac_ext >&5
12714    
12715 ayin 1.106 ac_cv_lib_Xft_XftDrawString32=no
12716 root 1.39 fi
12717 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
12718 root 1.39 conftest$ac_exeext conftest.$ac_ext
12719     LIBS=$ac_check_lib_save_LIBS
12720     fi
12721 ayin 1.106 echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
12722     echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
12723 root 1.39 if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
12724     cat >>confdefs.h <<_ACEOF
12725     #define HAVE_LIBXFT 1
12726     _ACEOF
12727    
12728     LIBS="-lXft $LIBS"
12729    
12730     else
12731     support_xft=no
12732     fi
12733    
12734    
12735     if test x$support_xft = xyes; then
12736    
12737     cat >>confdefs.h <<\_ACEOF
12738     #define XFT 1
12739     _ACEOF
12740    
12741     fi
12742     fi
12743     if test x$support_styles = xyes; then
12744    
12745     cat >>confdefs.h <<\_ACEOF
12746     #define ENABLE_STYLES 1
12747     _ACEOF
12748    
12749     fi
12750     if test x$support_iso14755 = xyes; then
12751    
12752     cat >>confdefs.h <<\_ACEOF
12753     #define ISO_14755 1
12754     _ACEOF
12755    
12756     fi
12757     if test x$support_8bitctrls = xyes; then
12758    
12759     cat >>confdefs.h <<\_ACEOF
12760     #define EIGHT_BIT_CONTROLS 1
12761     _ACEOF
12762    
12763     fi
12764     if test x$support_fading = xyes; then
12765    
12766     cat >>confdefs.h <<\_ACEOF
12767     #define OFF_FOCUS_FADING 1
12768     _ACEOF
12769    
12770     fi
12771     if test x$support_tinting = xyes; then
12772    
12773     cat >>confdefs.h <<\_ACEOF
12774     #define TINTING 1
12775     _ACEOF
12776    
12777     fi
12778     if test x$support_inheritpixmap = xyes; then
12779    
12780     cat >>confdefs.h <<\_ACEOF
12781 root 1.105 #define ENABLE_TRANSPARENCY 1
12782 root 1.39 _ACEOF
12783    
12784     fi
12785     if test x$support_keepscrolling = xno; then
12786    
12787     cat >>confdefs.h <<\_ACEOF
12788     #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12789     _ACEOF
12790    
12791     fi
12792     if test x$support_selectionscrolling = xyes; then
12793    
12794     cat >>confdefs.h <<\_ACEOF
12795     #define SELECTION_SCROLLING 1
12796     _ACEOF
12797    
12798     fi
12799 pcg 1.1 if test x$support_mousewheel = xyes; then
12800 pcg 1.11
12801     cat >>confdefs.h <<\_ACEOF
12802 pcg 1.1 #define MOUSE_WHEEL 1
12803 pcg 1.11 _ACEOF
12804 pcg 1.1
12805     fi
12806     if test x$support_mouseslipwheel = xyes; then
12807 pcg 1.11
12808     cat >>confdefs.h <<\_ACEOF
12809 pcg 1.1 #define MOUSE_SLIP_WHEELING 1
12810 pcg 1.11 _ACEOF
12811 pcg 1.1
12812     fi
12813 root 1.103 if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
12814 pcg 1.11
12815     cat >>confdefs.h <<\_ACEOF
12816 pcg 1.1 #define XPM_BACKGROUND 1
12817 pcg 1.11 _ACEOF
12818 pcg 1.1
12819     fi
12820 root 1.103
12821     if test x$support_afterimage = xyes; then
12822    
12823     cat >>confdefs.h <<\_ACEOF
12824     #define HAVE_AFTERIMAGE 1
12825     _ACEOF
12826    
12827     fi
12828    
12829     if test x$support_afterstep = xyes; then
12830    
12831     cat >>confdefs.h <<\_ACEOF
12832     #define AFTERSTEP_INTEGRATION 1
12833     _ACEOF
12834    
12835     fi
12836    
12837 pcg 1.1 if test x$support_scroll_rxvt = xyes; then
12838 pcg 1.11
12839     cat >>confdefs.h <<\_ACEOF
12840 pcg 1.1 #define RXVT_SCROLLBAR 1
12841 pcg 1.11 _ACEOF
12842 pcg 1.1
12843     scrolltypes="rxvt"
12844     fi
12845     if test x$support_scroll_next = xyes; then
12846 pcg 1.11
12847     cat >>confdefs.h <<\_ACEOF
12848 pcg 1.1 #define NEXT_SCROLLBAR 1
12849 pcg 1.11 _ACEOF
12850 pcg 1.1
12851     scrolltypes="$scrolltypes next"
12852     fi
12853     if test x$support_scroll_xterm = xyes; then
12854 pcg 1.11
12855     cat >>confdefs.h <<\_ACEOF
12856 pcg 1.1 #define XTERM_SCROLLBAR 1
12857 pcg 1.11 _ACEOF
12858 pcg 1.1
12859     scrolltypes="$scrolltypes xterm"
12860     fi
12861 pcg 1.11 if test x$support_scroll_plain = xyes; then
12862    
12863     cat >>confdefs.h <<\_ACEOF
12864     #define PLAIN_SCROLLBAR 1
12865     _ACEOF
12866    
12867     scrolltypes="$scrolltypes plain"
12868     fi
12869 pcg 1.1 if test x$support_pointer_blank = xyes; then
12870 pcg 1.11
12871     cat >>confdefs.h <<\_ACEOF
12872 pcg 1.1 #define POINTER_BLANK 1
12873 pcg 1.11 _ACEOF
12874 pcg 1.1
12875     fi
12876 pcg 1.11 if test x$support_text_blink = xyes; then
12877    
12878     cat >>confdefs.h <<\_ACEOF
12879     #define TEXT_BLINK 1
12880     _ACEOF
12881 pcg 1.1
12882     fi
12883     if test x$support_unicode3 = xyes; then
12884 pcg 1.11
12885     cat >>confdefs.h <<\_ACEOF
12886 pcg 1.1 #define UNICODE_3 1
12887 pcg 1.11 _ACEOF
12888 pcg 1.1
12889     fi
12890 pcg 1.18 if test x$support_combining = xyes; then
12891    
12892     cat >>confdefs.h <<\_ACEOF
12893 pcg 1.20 #define ENABLE_COMBINING 1
12894 pcg 1.18 _ACEOF
12895    
12896     fi
12897 pcg 1.1 if test x$codesets = xall; then
12898 root 1.40 codesets=jp,jp-ext,kr,zh,zh-ext
12899 pcg 1.1 fi
12900 pcg 1.11
12901     cat >>confdefs.h <<\_ACEOF
12902 pcg 1.1 #define ENCODING_EU 1
12903 pcg 1.11 _ACEOF
12904 pcg 1.1
12905 pcg 1.13
12906 pcg 1.11 cat >>confdefs.h <<\_ACEOF
12907 pcg 1.1 #define ENCODING_VN 1
12908 pcg 1.11 _ACEOF
12909 pcg 1.13
12910 root 1.34 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
12911 pcg 1.13 case "$codeset" in
12912 pcg 1.11 JP )
12913     cat >>confdefs.h <<\_ACEOF
12914 pcg 1.1 #define ENCODING_JP 1
12915 pcg 1.11 _ACEOF
12916 pcg 1.1 ;;
12917 pcg 1.11 JP_EXT )
12918     cat >>confdefs.h <<\_ACEOF
12919 pcg 1.1 #define ENCODING_JP_EXT 1
12920 pcg 1.11 _ACEOF
12921 pcg 1.1 ;;
12922 pcg 1.11 KR )
12923     cat >>confdefs.h <<\_ACEOF
12924 pcg 1.1 #define ENCODING_KR 1
12925 pcg 1.11 _ACEOF
12926 pcg 1.1 ;;
12927 root 1.40 ZH )
12928 pcg 1.11 cat >>confdefs.h <<\_ACEOF
12929 root 1.40 #define ENCODING_ZH 1
12930 pcg 1.11 _ACEOF
12931 pcg 1.1 ;;
12932 root 1.40 ZH_EXT )
12933 pcg 1.11 cat >>confdefs.h <<\_ACEOF
12934 root 1.40 #define ENCODING_ZH_EXT 1
12935 pcg 1.11 _ACEOF
12936 pcg 1.1 ;;
12937     esac
12938     done
12939    
12940 root 1.60 IF_PERL=\#
12941     if test x$support_perl = xyes; then
12942     # Extract the first word of "perl5", so it can be a program name with args.
12943     set dummy perl5; ac_word=$2
12944 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_word" >&5
12945     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12946 root 1.60 if test "${ac_cv_path_PERL+set}" = set; then
12947     echo $ECHO_N "(cached) $ECHO_C" >&6
12948     else
12949     case $PERL in
12950     [\\/]* | ?:[\\/]*)
12951     ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12952     ;;
12953     *)
12954     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12955     for as_dir in $PATH
12956     do
12957     IFS=$as_save_IFS
12958     test -z "$as_dir" && as_dir=.
12959     for ac_exec_ext in '' $ac_executable_extensions; do
12960 ayin 1.106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12961 root 1.60 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12963     break 2
12964     fi
12965     done
12966     done
12967    
12968     ;;
12969     esac
12970     fi
12971     PERL=$ac_cv_path_PERL
12972 ayin 1.106
12973 root 1.60 if test -n "$PERL"; then
12974 ayin 1.106 echo "$as_me:$LINENO: result: $PERL" >&5
12975     echo "${ECHO_T}$PERL" >&6
12976 root 1.60 else
12977 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
12978     echo "${ECHO_T}no" >&6
12979 root 1.60 fi
12980    
12981     # Extract the first word of "perl", so it can be a program name with args.
12982     set dummy perl; ac_word=$2
12983 ayin 1.106 echo "$as_me:$LINENO: checking for $ac_word" >&5
12984     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12985 root 1.60 if test "${ac_cv_path_PERL+set}" = set; then
12986     echo $ECHO_N "(cached) $ECHO_C" >&6
12987     else
12988     case $PERL in
12989     [\\/]* | ?:[\\/]*)
12990     ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12991     ;;
12992     *)
12993     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12994     for as_dir in $PATH
12995     do
12996     IFS=$as_save_IFS
12997     test -z "$as_dir" && as_dir=.
12998     for ac_exec_ext in '' $ac_executable_extensions; do
12999 ayin 1.106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13000 root 1.60 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13002     break 2
13003     fi
13004     done
13005     done
13006    
13007     ;;
13008     esac
13009     fi
13010     PERL=$ac_cv_path_PERL
13011 ayin 1.106
13012 root 1.60 if test -n "$PERL"; then
13013 ayin 1.106 echo "$as_me:$LINENO: result: $PERL" >&5
13014     echo "${ECHO_T}$PERL" >&6
13015 root 1.60 else
13016 ayin 1.106 echo "$as_me:$LINENO: result: no" >&5
13017     echo "${ECHO_T}no" >&6
13018 root 1.60 fi
13019    
13020    
13021 ayin 1.106 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
13022     echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
13023 root 1.60 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13024    
13025 root 1.62 save_CXXFLAGS="$CXXFLAGS"
13026     save_LIBS="$LIBS"
13027     CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13028     LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13029     cat >conftest.$ac_ext <<_ACEOF
13030     /* confdefs.h. */
13031     _ACEOF
13032     cat confdefs.h >>conftest.$ac_ext
13033     cat >>conftest.$ac_ext <<_ACEOF
13034     /* end confdefs.h. */
13035    
13036     #include <EXTERN.h>
13037     #include <perl.h>
13038     #include <XSUB.h>
13039    
13040     int
13041     main ()
13042     {
13043    
13044     PerlInterpreter *perl = perl_alloc ();
13045    
13046     ;
13047     return 0;
13048     }
13049     _ACEOF
13050     rm -f conftest.$ac_objext conftest$ac_exeext
13051 ayin 1.106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13052     (eval $ac_link) 2>conftest.er1
13053 root 1.62 ac_status=$?
13054     grep -v '^ *+' conftest.er1 >conftest.err
13055     rm -f conftest.er1
13056     cat conftest.err >&5
13057     echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 ayin 1.106 (exit $ac_status); } &&
13059     { ac_try='test -z "$ac_cxx_werror_flag"
13060     || test ! -s conftest.err'
13061     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062     (eval $ac_try) 2>&5
13063     ac_status=$?
13064     echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065     (exit $ac_status); }; } &&
13066     { ac_try='test -s conftest$ac_exeext'
13067     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068     (eval $ac_try) 2>&5
13069     ac_status=$?
13070     echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071     (exit $ac_status); }; }; then
13072 root 1.62 rxvt_perl_link=yes
13073     else
13074     echo "$as_me: failed program was:" >&5
13075     sed 's/^/| /' conftest.$ac_ext >&5
13076    
13077 ayin 1.106 rxvt_perl_link=no
13078 root 1.62 fi
13079 ayin 1.106 rm -f conftest.err conftest.$ac_objext \
13080 root 1.62 conftest$ac_exeext conftest.$ac_ext
13081     CXXFLAGS="$save_CXXFLAGS"
13082     LIBS="$save_LIBS"
13083    
13084     if test x$rxvt_perl_link = xyes; then
13085 ayin 1.106 echo "$as_me:$LINENO: result: ok" >&5
13086     echo "${ECHO_T}ok" >&6
13087 root 1.62
13088 root 1.60 cat >>confdefs.h <<\_ACEOF
13089     #define ENABLE_PERL 1
13090     _ACEOF
13091    
13092 root 1.62 IF_PERL=
13093     PERL_O=rxvtperl.o
13094     PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13095     PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13096     PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13097     else
13098 root 1.77 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
13099     echo "$as_me: error: no, unable to link" >&2;}
13100     { (exit 1); exit 1; }; }
13101 root 1.62 fi
13102 root 1.60 else
13103 root 1.77 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
13104     echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
13105     { (exit 1); exit 1; }; }
13106 root 1.60 fi
13107     fi
13108    
13109    
13110    
13111    
13112    
13113    
13114    
13115 root 1.66 if test x$support_perl = xyes; then
13116 root 1.64 support_frills=yes
13117     fi
13118    
13119 ayin 1.106 if test x$support_frills = xyes; then
13120    
13121     cat >>confdefs.h <<\_ACEOF
13122     #define ENABLE_FRILLS 1
13123     _ACEOF
13124    
13125     fi
13126    
13127 pcg 1.1
13128    
13129    
13130    
13131    
13132    
13133    
13134    
13135    
13136    
13137 root 1.103
13138    
13139 pcg 1.1 test "$program_prefix" != NONE &&
13140 ayin 1.106 program_transform_name="s,^,$program_prefix,;$program_transform_name"
13141 pcg 1.1 # Use a double $ so make ignores it.
13142     test "$program_suffix" != NONE &&
13143 ayin 1.106 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
13144 pcg 1.11 # Double any \ or $. echo might interpret backslashes.
13145     # By default was `s,x,x', remove it if useless.
13146     cat <<\_ACEOF >conftest.sed
13147     s/[\\$]/&&/g;s/;s,x,x,$//
13148     _ACEOF
13149     program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13150 ayin 1.106 rm conftest.sed
13151 pcg 1.1
13152    
13153    
13154    
13155    
13156     if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13157     include_stdint_h="#include <stdint.h>"
13158     else
13159     include_stdint_h="/* #include <stdint.h> */"
13160 pcg 1.11 fi
13161 pcg 1.1 if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13162 pcg 1.18 include_stdarg_h="#include <cstdarg>"
13163 pcg 1.1 else
13164 pcg 1.18 include_stdarg_h="/* #include <cstdarg> */"
13165 pcg 1.11 fi
13166 pcg 1.1 if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13167 pcg 1.18 include_stdlib_h="#include <cstdlib>"
13168 pcg 1.1 else
13169 pcg 1.18 include_stdlib_h="/* #include <cstdlib> */"
13170 pcg 1.11 fi
13171 pcg 1.1 if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13172     include_unistd_h="#include <unistd.h>"
13173     else
13174     include_unistd_h="/* #include <unistd.h> */"
13175 pcg 1.11 fi
13176 pcg 1.1 if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13177 pcg 1.18 include_string_h="#include <cstring>"
13178 pcg 1.1 else
13179 pcg 1.18 include_string_h="/* #include <cstring> */"
13180 pcg 1.11 fi
13181 pcg 1.1 if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13182     include_fcntl_h="#include <fcntl.h>"
13183     else
13184     include_fcntl_h="/* #include <fcntl.h> */"
13185 pcg 1.11 fi
13186 pcg 1.1 if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13187     include_util_h="#include <util.h>"
13188     else
13189     include_util_h="/* #include <util.h> */"
13190 pcg 1.11 fi
13191 pcg 1.1 if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13192     include_assert_h="#include <assert.h>"
13193     else
13194     include_assert_h="/* #include <assert.h> */"
13195 pcg 1.11 fi
13196 pcg 1.1 if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13197     include_sys_ioctl_h="#include <sys/ioctl.h>"
13198     else
13199     include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13200 pcg 1.11 fi
13201 pcg 1.1 if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13202     include_sys_select_h="#include <sys/select.h>"
13203     else
13204     include_sys_select_h="/* #include <sys/select.h> */"
13205 pcg 1.11 fi
13206 pcg 1.1 if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13207     include_sys_strredir_h="#include <sys/strredir.h>"
13208     else
13209     include_sys_strredir_h="/* #include <sys/strredir.h> */"
13210 pcg 1.11 fi
13211 pcg 1.1 if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13212     include_sys_time_h="#include <sys/time.h>"
13213     else
13214     include_sys_time_h="/* #include <sys/time.h> */"
13215 pcg 1.11 fi
13216 pcg 1.1 if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13217     include_time_h="#include <time.h>"
13218     else
13219     include_time_h="/* #include <time.h> */"
13220 pcg 1.11 fi
13221 pcg 1.1
13222 ayin 1.106 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13223 root 1.32
13224 pcg 1.11 cat >confcache <<\_ACEOF
13225 pcg 1.1 # This file is a shell script that caches the results of configure
13226     # tests run on this system so they can be shared between configure
13227 pcg 1.11 # scripts and configure runs, see configure's option --config-cache.
13228     # It is not useful on other systems. If it contains results you don't
13229     # want to keep, you may remove or edit it.
13230 pcg 1.1 #
13231 pcg 1.11 # config.status only pays attention to the cache file if you give it
13232     # the --recheck option to rerun configure.
13233 pcg 1.1 #
13234 pcg 1.11 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13235     # loading this file, other *unset* `ac_cv_foo' will be assigned the
13236     # following values.
13237    
13238     _ACEOF
13239    
13240 pcg 1.1 # The following way of writing the cache mishandles newlines in values,
13241     # but we know of no workaround that is simple, portable, and efficient.
13242 ayin 1.106 # So, don't put newlines in cache variables' values.
13243 pcg 1.1 # Ultrix sh set writes to stderr and can't be redirected directly,
13244     # and sets the high bit in the cache file unless we assign to the vars.
13245 ayin 1.106 {
13246 pcg 1.11 (set) 2>&1 |
13247 ayin 1.106 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13248     *ac_space=\ *)
13249 pcg 1.11 # `set' does not quote correctly, so add quotes (double-quote
13250     # substitution turns \\\\ into \\, and sed turns \\ into \).
13251     sed -n \
13252     "s/'/'\\\\''/g;
13253     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13254 ayin 1.106 ;;
13255 pcg 1.11 *)
13256     # `set' quotes correctly as required by POSIX, so do not add quotes.
13257 ayin 1.106 sed -n \
13258     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13259 pcg 1.11 ;;
13260 ayin 1.106 esac;
13261     } |
13262 pcg 1.11 sed '
13263     t clear
13264 ayin 1.106 : clear
13265 pcg 1.11 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13266     t end
13267 ayin 1.106 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13268     : end' >>confcache
13269     if diff $cache_file confcache >/dev/null 2>&1; then :; else
13270     if test -w $cache_file; then
13271     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13272 pcg 1.11 cat confcache >$cache_file
13273 pcg 1.1 else
13274 ayin 1.106 echo "not updating unwritable cache $cache_file"
13275 pcg 1.1 fi
13276     fi
13277     rm -f confcache
13278    
13279     test "x$prefix" = xNONE && prefix=$ac_default_prefix
13280     # Let make expand exec_prefix.
13281     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13282    
13283 ayin 1.106 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13284     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13285     # trailing colons and then remove the whole line if VPATH becomes empty
13286     # (actually we leave an empty line to preserve line numbers).
13287     if test "x$srcdir" = x.; then
13288     ac_vpsub='/^[ ]*VPATH[ ]*=/{
13289     s/:*\$(srcdir):*/:/;
13290     s/:*\${srcdir}:*/:/;
13291     s/:*@srcdir@:*/:/;
13292     s/^\([^=]*=[ ]*\):*/\1/;
13293     s/:*$//;
13294     s/^[^=]*=[ ]*$//;
13295     }'
13296     fi
13297    
13298 pcg 1.11 DEFS=-DHAVE_CONFIG_H
13299    
13300     ac_libobjs=
13301     ac_ltlibobjs=
13302     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13303     # 1. Remove the extension, and $U if already installed.
13304 ayin 1.106 ac_i=`echo "$ac_i" |
13305     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13306     # 2. Add them.
13307     ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13308     ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13309 pcg 1.11 done
13310     LIBOBJS=$ac_libobjs
13311    
13312     LTLIBOBJS=$ac_ltlibobjs
13313    
13314 pcg 1.1
13315    
13316     : ${CONFIG_STATUS=./config.status}
13317 pcg 1.11 ac_clean_files_save=$ac_clean_files
13318     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13319     { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13320     echo "$as_me: creating $CONFIG_STATUS" >&6;}
13321     cat >$CONFIG_STATUS <<_ACEOF
13322     #! $SHELL
13323     # Generated by $as_me.
13324 pcg 1.1 # Run this file to recreate the current configuration.
13325     # Compiler output produced by configure, useful for debugging
13326 pcg 1.11 # configure, is in config.log if it exists.
13327    
13328     debug=false
13329     ac_cs_recheck=false
13330     ac_cs_silent=false
13331     SHELL=\${CONFIG_SHELL-$SHELL}
13332     _ACEOF
13333    
13334     cat >>$CONFIG_STATUS <<\_ACEOF
13335     ## --------------------- ##
13336     ## M4sh Initialization. ##
13337     ## --------------------- ##
13338    
13339 ayin 1.106 # Be Bourne compatible
13340 pcg 1.11 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13341     emulate sh
13342     NULLCMD=:
13343     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13344     # is contrary to our usage. Disable this feature.
13345     alias -g '${1+"$@"}'='"$@"'
13346 ayin 1.106 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13347     set -o posix
13348     fi
13349     DUALCASE=1; export DUALCASE # for MKS sh
13350    
13351     # Support unset when possible.
13352     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13353     as_unset=unset
13354 root 1.105 else
13355 ayin 1.106 as_unset=false
13356 pcg 1.11 fi
13357    
13358    
13359 ayin 1.106 # Work around bugs in pre-3.0 UWIN ksh.
13360     $as_unset ENV MAIL MAILPATH
13361     PS1='$ '
13362     PS2='> '
13363 root 1.105 PS4='+ '
13364    
13365     # NLS nuisances.
13366     for as_var in \
13367     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13368     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13369     LC_TELEPHONE LC_TIME
13370     do
13371     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13372     eval $as_var=C; export $as_var
13373     else
13374 ayin 1.106 $as_unset $as_var
13375 ayin 1.104 fi
13376 root 1.105 done
13377    
13378     # Required to use basename.
13379 ayin 1.106 if expr a : '\(a\)' >/dev/null 2>&1; then
13380 root 1.105 as_expr=expr
13381     else
13382     as_expr=false
13383     fi
13384    
13385 ayin 1.106 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13386 root 1.105 as_basename=basename
13387     else
13388     as_basename=false
13389     fi
13390    
13391    
13392     # Name of the executable.
13393 ayin 1.106 as_me=`$as_basename "$0" ||
13394 root 1.105 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13395     X"$0" : 'X\(//\)$' \| \
13396 ayin 1.106 X"$0" : 'X\(/\)$' \| \
13397     . : '\(.\)' 2>/dev/null ||
13398 root 1.105 echo X/"$0" |
13399 ayin 1.106 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13400     /^X\/\(\/\/\)$/{ s//\1/; q; }
13401     /^X\/\(\/\).*/{ s//\1/; q; }
13402     s/.*/./; q'`
13403 root 1.105
13404    
13405 ayin 1.106 # PATH needs CR, and LINENO needs CR and PATH.
13406     # Avoid depending upon Character Ranges.
13407     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13408     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13409     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13410     as_cr_digits='0123456789'
13411     as_cr_alnum=$as_cr_Letters$as_cr_digits
13412    
13413     # The user is always right.
13414     if test "${PATH_SEPARATOR+set}" != set; then
13415     echo "#! /bin/sh" >conf$$.sh
13416     echo "exit 0" >>conf$$.sh
13417     chmod +x conf$$.sh
13418     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13419     PATH_SEPARATOR=';'
13420     else
13421     PATH_SEPARATOR=:
13422     fi
13423     rm -f conf$$.sh
13424     fi
13425 root 1.105
13426    
13427 pcg 1.11 as_lineno_1=$LINENO
13428     as_lineno_2=$LINENO
13429 ayin 1.106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13430 pcg 1.11 test "x$as_lineno_1" != "x$as_lineno_2" &&
13431 ayin 1.106 test "x$as_lineno_3" = "x$as_lineno_2" || {
13432     # Find who we are. Look in the path if we contain no path at all
13433     # relative or not.
13434     case $0 in
13435     *[\\/]* ) as_myself=$0 ;;
13436     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13437     for as_dir in $PATH
13438     do
13439     IFS=$as_save_IFS
13440     test -z "$as_dir" && as_dir=.
13441     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13442     done
13443    
13444     ;;
13445     esac
13446     # We did not find ourselves, most probably we were run as `sh COMMAND'
13447     # in which case we are not to be found in the path.
13448     if test "x$as_myself" = x; then
13449     as_myself=$0
13450     fi
13451     if test ! -f "$as_myself"; then
13452     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13453     echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13454     { (exit 1); exit 1; }; }
13455     fi
13456     case $CONFIG_SHELL in
13457     '')
13458     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13459     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13460     do
13461     IFS=$as_save_IFS
13462     test -z "$as_dir" && as_dir=.
13463     for as_base in sh bash ksh sh5; do
13464     case $as_dir in
13465     /*)
13466     if ("$as_dir/$as_base" -c '
13467     as_lineno_1=$LINENO
13468     as_lineno_2=$LINENO
13469     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13470     test "x$as_lineno_1" != "x$as_lineno_2" &&
13471     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13472     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13473     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13474     CONFIG_SHELL=$as_dir/$as_base
13475     export CONFIG_SHELL
13476     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13477     fi;;
13478     esac
13479     done
13480     done
13481     ;;
13482     esac
13483 pcg 1.11
13484     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13485     # uniformly replaced by the line number. The first 'sed' inserts a
13486 ayin 1.106 # line-number line before each line; the second 'sed' does the real
13487     # work. The second script uses 'N' to pair each line-number line
13488     # with the numbered line, and appends trailing '-' during
13489     # substitution so that $LINENO is not a special case at line end.
13490 pcg 1.11 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13491 ayin 1.106 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13492     sed '=' <$as_myself |
13493 pcg 1.11 sed '
13494     N
13495 ayin 1.106 s,$,-,
13496     : loop
13497     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13498 pcg 1.11 t loop
13499 ayin 1.106 s,-$,,
13500     s,^['$as_cr_digits']*\n,,
13501 pcg 1.11 ' >$as_me.lineno &&
13502 ayin 1.106 chmod +x $as_me.lineno ||
13503     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13504     echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13505 pcg 1.11 { (exit 1); exit 1; }; }
13506    
13507     # Don't try to exec as it changes $[0], causing all sort of problems
13508     # (the dirname of $[0] is not the place where we might find the
13509 ayin 1.106 # original and so on. Autoconf is especially sensible to this).
13510     . ./$as_me.lineno
13511 pcg 1.11 # Exit status is that of the last command.
13512     exit
13513     }
13514    
13515    
13516 ayin 1.106 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13517     *c*,-n*) ECHO_N= ECHO_C='
13518     ' ECHO_T=' ' ;;
13519     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13520     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13521 pcg 1.11 esac
13522    
13523 ayin 1.106 if expr a : '\(a\)' >/dev/null 2>&1; then
13524 pcg 1.11 as_expr=expr
13525     else
13526     as_expr=false
13527     fi
13528    
13529     rm -f conf$$ conf$$.exe conf$$.file
13530     echo >conf$$.file
13531     if ln -s conf$$.file conf$$ 2>/dev/null; then
13532 ayin 1.106 # We could just check for DJGPP; but this test a) works b) is more generic
13533     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13534     if test -f conf$$.exe; then
13535     # Don't use ln at all; we don't have any links
13536 pcg 1.11 as_ln_s='cp -p'
13537 ayin 1.106 else
13538     as_ln_s='ln -s'
13539     fi
13540 pcg 1.11 elif ln conf$$.file conf$$ 2>/dev/null; then
13541     as_ln_s=ln
13542     else
13543     as_ln_s='cp -p'
13544     fi
13545 ayin 1.106 rm -f conf$$ conf$$.exe conf$$.file
13546 pcg 1.11
13547     if mkdir -p . 2>/dev/null; then
13548     as_mkdir_p=:
13549     else
13550     test -d ./-p && rmdir ./-p
13551     as_mkdir_p=false
13552     fi
13553    
13554 ayin 1.106 as_executable_p="test -f"
13555 pcg 1.11
13556     # Sed expression to map a string onto a valid CPP name.
13557     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13558    
13559     # Sed expression to map a string onto a valid variable name.
13560     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13561    
13562    
13563 ayin 1.106 # IFS
13564     # We need space, tab and new line, in precisely that order.
13565     as_nl='
13566     '
13567     IFS=" $as_nl"
13568    
13569     # CDPATH.
13570     $as_unset CDPATH
13571    
13572 pcg 1.11 exec 6>&1
13573    
13574 ayin 1.106 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13575 pcg 1.11 # report actual input values of CONFIG_FILES etc. instead of their
13576 ayin 1.106 # values after options handling. Logging --version etc. is OK.
13577     exec 5>>config.log
13578     {
13579     echo
13580     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13581     ## Running $as_me. ##
13582     _ASBOX
13583     } >&5
13584     cat >&5 <<_CSEOF
13585    
13586 pcg 1.11 This file was extended by $as_me, which was
13587 ayin 1.106 generated by GNU Autoconf 2.59. Invocation command line was
13588 pcg 1.11
13589     CONFIG_FILES = $CONFIG_FILES
13590     CONFIG_HEADERS = $CONFIG_HEADERS
13591     CONFIG_LINKS = $CONFIG_LINKS
13592     CONFIG_COMMANDS = $CONFIG_COMMANDS
13593     $ $0 $@
13594    
13595 ayin 1.106 _CSEOF
13596     echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13597     echo >&5
13598 pcg 1.11 _ACEOF
13599    
13600     # Files that config.status was made for.
13601 ayin 1.106 if test -n "$ac_config_files"; then
13602     echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13603     fi
13604    
13605     if test -n "$ac_config_headers"; then
13606     echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13607     fi
13608    
13609     if test -n "$ac_config_links"; then
13610     echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13611     fi
13612 ayin 1.104
13613 ayin 1.106 if test -n "$ac_config_commands"; then
13614     echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13615     fi
13616 pcg 1.11
13617     cat >>$CONFIG_STATUS <<\_ACEOF
13618 ayin 1.106
13619 pcg 1.11 ac_cs_usage="\
13620     \`$as_me' instantiates files from templates according to the
13621     current configuration.
13622    
13623     Usage: $0 [OPTIONS] [FILE]...
13624    
13625     -h, --help print this help, then exit
13626 ayin 1.106 -V, --version print version number, then exit
13627 pcg 1.11 -q, --quiet do not print progress messages
13628     -d, --debug don't remove temporary files
13629     --recheck update $as_me by reconfiguring in the same conditions
13630     --file=FILE[:TEMPLATE]
13631     instantiate the configuration file FILE
13632     --header=FILE[:TEMPLATE]
13633     instantiate the configuration header FILE
13634    
13635     Configuration files:
13636     $config_files
13637    
13638     Configuration headers:
13639     $config_headers
13640    
13641     Report bugs to <bug-autoconf@gnu.org>."
13642 ayin 1.106 _ACEOF
13643 root 1.105
13644 pcg 1.11 cat >>$CONFIG_STATUS <<_ACEOF
13645     ac_cs_version="\\
13646     config.status
13647 ayin 1.106 configured by $0, generated by GNU Autoconf 2.59,
13648     with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13649 pcg 1.11
13650 ayin 1.106 Copyright (C) 2003 Free Software Foundation, Inc.
13651 pcg 1.11 This config.status script is free software; the Free Software Foundation
13652     gives unlimited permission to copy, distribute and modify it."
13653 ayin 1.106 srcdir=$srcdir
13654     INSTALL="$INSTALL"
13655 pcg 1.11 _ACEOF
13656    
13657     cat >>$CONFIG_STATUS <<\_ACEOF
13658     # If no file are specified by the user, then we need to provide default
13659     # value. By we need to know if files were specified by the user.
13660     ac_need_defaults=:
13661     while test $# != 0
13662 pcg 1.1 do
13663 pcg 1.11 case $1 in
13664     --*=*)
13665 ayin 1.106 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13666     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13667 pcg 1.11 ac_shift=:
13668     ;;
13669 ayin 1.106 -*)
13670 pcg 1.11 ac_option=$1
13671     ac_optarg=$2
13672     ac_shift=shift
13673     ;;
13674 ayin 1.106 *) # This is not an option, so the user has probably given explicit
13675     # arguments.
13676     ac_option=$1
13677     ac_need_defaults=false;;
13678 pcg 1.11 esac
13679    
13680     case $ac_option in
13681     # Handling of the options.
13682 ayin 1.106 _ACEOF
13683     cat >>$CONFIG_STATUS <<\_ACEOF
13684 pcg 1.1 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13685 pcg 1.11 ac_cs_recheck=: ;;
13686 ayin 1.106 --version | --vers* | -V )
13687     echo "$ac_cs_version"; exit 0 ;;
13688     --he | --h)
13689     # Conflict between --help and --header
13690     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13691     Try \`$0 --help' for more information." >&5
13692     echo "$as_me: error: ambiguous option: $1
13693     Try \`$0 --help' for more information." >&2;}
13694     { (exit 1); exit 1; }; };;
13695     --help | --hel | -h )
13696     echo "$ac_cs_usage"; exit 0 ;;
13697     --debug | --d* | -d )
13698 pcg 1.11 debug=: ;;
13699     --file | --fil | --fi | --f )
13700     $ac_shift
13701     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13702     ac_need_defaults=false;;
13703     --header | --heade | --head | --hea )
13704     $ac_shift
13705     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13706     ac_need_defaults=false;;
13707     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13708     | -silent | --silent | --silen | --sile | --sil | --si | --s)
13709     ac_cs_silent=: ;;
13710    
13711     # This is an error.
13712 ayin 1.106 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13713     Try \`$0 --help' for more information." >&5
13714     echo "$as_me: error: unrecognized option: $1
13715     Try \`$0 --help' for more information." >&2;}
13716 pcg 1.11 { (exit 1); exit 1; }; } ;;
13717    
13718 ayin 1.106 *) ac_config_targets="$ac_config_targets $1" ;;
13719 pcg 1.11
13720     esac
13721     shift
13722     done
13723    
13724     ac_configure_extra_args=
13725    
13726     if $ac_cs_silent; then
13727     exec 6>/dev/null
13728     ac_configure_extra_args="$ac_configure_extra_args --silent"
13729     fi
13730    
13731     _ACEOF
13732     cat >>$CONFIG_STATUS <<_ACEOF
13733     if \$ac_cs_recheck; then
13734 ayin 1.106 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13735     exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13736 pcg 1.11 fi
13737    
13738     _ACEOF
13739    
13740 ayin 1.106
13741    
13742    
13743 ayin 1.104
13744 root 1.105 cat >>$CONFIG_STATUS <<\_ACEOF
13745 pcg 1.11 for ac_config_target in $ac_config_targets
13746     do
13747 ayin 1.106 case "$ac_config_target" in
13748     # Handling of arguments.
13749     "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13750     "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13751     "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13752     "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
13753     "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
13754 pcg 1.11 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13755     echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13756     { (exit 1); exit 1; }; };;
13757 pcg 1.1 esac
13758     done
13759    
13760 pcg 1.11 # If the user did not use the arguments to specify the items to instantiate,
13761     # then the envvar interface is used. Set only those that are not.
13762     # We use the long form for the default assignment because of an extremely
13763     # bizarre bug on SunOS 4.1.3.
13764     if $ac_need_defaults; then
13765     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13766     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13767     fi
13768    
13769     # Have a temporary directory for convenience. Make it in the build tree
13770 ayin 1.106 # simply because there is no reason to put it here, and in addition,
13771 pcg 1.11 # creating and moving files from /tmp can sometimes cause problems.
13772 ayin 1.106 # Create a temporary directory, and hook for its removal unless debugging.
13773 pcg 1.11 $debug ||
13774     {
13775 ayin 1.106 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13776 pcg 1.11 trap '{ (exit 1); exit 1; }' 1 2 13 15
13777     }
13778 ayin 1.106
13779 pcg 1.11 # Create a (secure) tmp directory for tmp files.
13780    
13781     {
13782 ayin 1.106 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13783 pcg 1.11 test -n "$tmp" && test -d "$tmp"
13784     } ||
13785     {
13786 ayin 1.106 tmp=./confstat$$-$RANDOM
13787     (umask 077 && mkdir $tmp)
13788 pcg 1.11 } ||
13789     {
13790     echo "$me: cannot create a temporary directory in ." >&2
13791     { (exit 1); exit 1; }
13792     }
13793    
13794 ayin 1.106 _ACEOF
13795    
13796     cat >>$CONFIG_STATUS <<_ACEOF
13797    
13798 root 1.105 #
13799 ayin 1.106 # CONFIG_FILES section.
13800 root 1.105 #
13801    
13802     # No need to generate the scripts if there are no CONFIG_FILES.
13803     # This happens for instance when ./config.status config.h
13804 ayin 1.106 if test -n "\$CONFIG_FILES"; then
13805     # Protect against being on the right side of a sed subst in config.status.
13806     sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13807     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13808     s,@SHELL@,$SHELL,;t t
13809     s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13810     s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13811     s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13812     s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13813     s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13814     s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13815     s,@exec_prefix@,$exec_prefix,;t t
13816     s,@prefix@,$prefix,;t t
13817     s,@program_transform_name@,$program_transform_name,;t t
13818     s,@bindir@,$bindir,;t t
13819     s,@sbindir@,$sbindir,;t t
13820     s,@libexecdir@,$libexecdir,;t t
13821     s,@datadir@,$datadir,;t t
13822     s,@sysconfdir@,$sysconfdir,;t t
13823     s,@sharedstatedir@,$sharedstatedir,;t t
13824     s,@localstatedir@,$localstatedir,;t t
13825     s,@libdir@,$libdir,;t t
13826     s,@includedir@,$includedir,;t t
13827     s,@oldincludedir@,$oldincludedir,;t t
13828     s,@infodir@,$infodir,;t t
13829     s,@mandir@,$mandir,;t t
13830     s,@build_alias@,$build_alias,;t t
13831     s,@host_alias@,$host_alias,;t t
13832     s,@target_alias@,$target_alias,;t t
13833     s,@DEFS@,$DEFS,;t t
13834     s,@ECHO_C@,$ECHO_C,;t t
13835     s,@ECHO_N@,$ECHO_N,;t t
13836     s,@ECHO_T@,$ECHO_T,;t t
13837     s,@LIBS@,$LIBS,;t t
13838     s,@build@,$build,;t t
13839     s,@build_cpu@,$build_cpu,;t t
13840     s,@build_vendor@,$build_vendor,;t t
13841     s,@build_os@,$build_os,;t t
13842     s,@host@,$host,;t t
13843     s,@host_cpu@,$host_cpu,;t t
13844     s,@host_vendor@,$host_vendor,;t t
13845     s,@host_os@,$host_os,;t t
13846     s,@VERSION@,$VERSION,;t t
13847     s,@DATE@,$DATE,;t t
13848     s,@LSMDATE@,$LSMDATE,;t t
13849     s,@LIBVERSION@,$LIBVERSION,;t t
13850     s,@CC@,$CC,;t t
13851     s,@CFLAGS@,$CFLAGS,;t t
13852     s,@LDFLAGS@,$LDFLAGS,;t t
13853     s,@CPPFLAGS@,$CPPFLAGS,;t t
13854     s,@ac_ct_CC@,$ac_ct_CC,;t t
13855     s,@EXEEXT@,$EXEEXT,;t t
13856     s,@OBJEXT@,$OBJEXT,;t t
13857     s,@CXX@,$CXX,;t t
13858     s,@CXXFLAGS@,$CXXFLAGS,;t t
13859     s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13860     s,@CPP@,$CPP,;t t
13861     s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13862     s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13863     s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13864     s,@EGREP@,$EGREP,;t t
13865     s,@LINKER@,$LINKER,;t t
13866     s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
13867     s,@RXVTNAME@,$RXVTNAME,;t t
13868     s,@TIC@,$TIC,;t t
13869     s,@CXXCPP@,$CXXCPP,;t t
13870     s,@X_CFLAGS@,$X_CFLAGS,;t t
13871     s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13872     s,@X_LIBS@,$X_LIBS,;t t
13873     s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13874     s,@afterimage_config@,$afterimage_config,;t t
13875     s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
13876     s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
13877     s,@XPM_LIBS@,$XPM_LIBS,;t t
13878     s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
13879     s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
13880     s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
13881     s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
13882     s,@rxvt_intp_define@,$rxvt_intp_define,;t t
13883     s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
13884     s,@PKG_CONFIG@,$PKG_CONFIG,;t t
13885     s,@XFT_CONFIG@,$XFT_CONFIG,;t t
13886     s,@PERL@,$PERL,;t t
13887     s,@PERLLIB@,$PERLLIB,;t t
13888     s,@PERLFLAGS@,$PERLFLAGS,;t t
13889     s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
13890     s,@IF_PERL@,$IF_PERL,;t t
13891     s,@PERL_O@,$PERL_O,;t t
13892     s,@LIBAFTERIMAGE_CFLAGS@,$LIBAFTERIMAGE_CFLAGS,;t t
13893     s,@AFTERIMAGE_LIBS@,$AFTERIMAGE_LIBS,;t t
13894     s,@include_stdint_h@,$include_stdint_h,;t t
13895     s,@include_stdarg_h@,$include_stdarg_h,;t t
13896     s,@include_stdlib_h@,$include_stdlib_h,;t t
13897     s,@include_unistd_h@,$include_unistd_h,;t t
13898     s,@include_string_h@,$include_string_h,;t t
13899     s,@include_fcntl_h@,$include_fcntl_h,;t t
13900     s,@include_util_h@,$include_util_h,;t t
13901     s,@include_assert_h@,$include_assert_h,;t t
13902     s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
13903     s,@include_sys_select_h@,$include_sys_select_h,;t t
13904     s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
13905     s,@include_sys_time_h@,$include_sys_time_h,;t t
13906     s,@include_time_h@,$include_time_h,;t t
13907     s,@LIBOBJS@,$LIBOBJS,;t t
13908     s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13909     CEOF
13910    
13911     _ACEOF
13912    
13913     cat >>$CONFIG_STATUS <<\_ACEOF
13914     # Split the substitutions into bite-sized pieces for seds with
13915     # small command number limits, like on Digital OSF/1 and HP-UX.
13916     ac_max_sed_lines=48
13917     ac_sed_frag=1 # Number of current file.
13918     ac_beg=1 # First line for current file.
13919     ac_end=$ac_max_sed_lines # Line after last line for current file.
13920     ac_more_lines=:
13921     ac_sed_cmds=
13922     while $ac_more_lines; do
13923     if test $ac_beg -gt 1; then
13924     sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13925     else
13926     sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13927     fi
13928     if test ! -s $tmp/subs.frag; then
13929     ac_more_lines=false
13930     else
13931     # The purpose of the label and of the branching condition is to
13932     # speed up the sed processing (if there are no `@' at all, there
13933     # is no need to browse any of the substitutions).
13934     # These are the two extra sed commands mentioned above.
13935     (echo ':t
13936     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13937     if test -z "$ac_sed_cmds"; then
13938     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13939     else
13940     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13941     fi
13942     ac_sed_frag=`expr $ac_sed_frag + 1`
13943     ac_beg=$ac_end
13944     ac_end=`expr $ac_end + $ac_max_sed_lines`
13945     fi
13946     done
13947     if test -z "$ac_sed_cmds"; then
13948     ac_sed_cmds=cat
13949 root 1.105 fi
13950 ayin 1.106 fi # test -n "$CONFIG_FILES"
13951 ayin 1.104
13952 root 1.105 _ACEOF
13953 pcg 1.11 cat >>$CONFIG_STATUS <<\_ACEOF
13954 ayin 1.106 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13955     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13956     case $ac_file in
13957     - | *:- | *:-:* ) # input from stdin
13958     cat >$tmp/stdin
13959     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13960     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13961     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13962     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13963     * ) ac_file_in=$ac_file.in ;;
13964 ayin 1.102 esac
13965    
13966 ayin 1.106 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13967     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13968 pcg 1.11 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13969     X"$ac_file" : 'X\(//\)[^/]' \| \
13970     X"$ac_file" : 'X\(//\)$' \| \
13971 ayin 1.106 X"$ac_file" : 'X\(/\)' \| \
13972     . : '\(.\)' 2>/dev/null ||
13973 pcg 1.11 echo X"$ac_file" |
13974 ayin 1.106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13975     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13976     /^X\(\/\/\)$/{ s//\1/; q; }
13977     /^X\(\/\).*/{ s//\1/; q; }
13978     s/.*/./; q'`
13979     { if $as_mkdir_p; then
13980     mkdir -p "$ac_dir"
13981     else
13982     as_dir="$ac_dir"
13983 pcg 1.11 as_dirs=
13984 ayin 1.106 while test ! -d "$as_dir"; do
13985     as_dirs="$as_dir $as_dirs"
13986     as_dir=`(dirname "$as_dir") 2>/dev/null ||
13987 pcg 1.11 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13988     X"$as_dir" : 'X\(//\)[^/]' \| \
13989     X"$as_dir" : 'X\(//\)$' \| \
13990 ayin 1.106 X"$as_dir" : 'X\(/\)' \| \
13991     . : '\(.\)' 2>/dev/null ||
13992 pcg 1.11 echo X"$as_dir" |
13993 ayin 1.106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13994     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13995     /^X\(\/\/\)$/{ s//\1/; q; }
13996     /^X\(\/\).*/{ s//\1/; q; }
13997     s/.*/./; q'`
13998 pcg 1.11 done
13999 ayin 1.106 test ! -n "$as_dirs" || mkdir $as_dirs
14000     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14001     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14002 pcg 1.11 { (exit 1); exit 1; }; }; }
14003 ayin 1.106
14004 pcg 1.11 ac_builddir=.
14005    
14006 ayin 1.106 if test "$ac_dir" != .; then
14007 pcg 1.11 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14008 ayin 1.106 # A "../" for each directory in $ac_dir_suffix.
14009     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14010     else
14011     ac_dir_suffix= ac_top_builddir=
14012     fi
14013 pcg 1.11
14014     case $srcdir in
14015 ayin 1.106 .) # No --srcdir option. We are building in place.
14016 pcg 1.11 ac_srcdir=.
14017 ayin 1.106 if test -z "$ac_top_builddir"; then
14018     ac_top_srcdir=.
14019     else
14020     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14021     fi ;;
14022     [\\/]* | ?:[\\/]* ) # Absolute path.
14023 pcg 1.11 ac_srcdir=$srcdir$ac_dir_suffix;
14024 ayin 1.106 ac_top_srcdir=$srcdir ;;
14025     *) # Relative path.
14026     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14027     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14028 pcg 1.11 esac
14029    
14030 ayin 1.106 # Do not use `cd foo && pwd` to compute absolute paths, because
14031     # the directories may not exist.
14032     case `pwd` in
14033     .) ac_abs_builddir="$ac_dir";;
14034     *)
14035     case "$ac_dir" in
14036     .) ac_abs_builddir=`pwd`;;
14037     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14038     *) ac_abs_builddir=`pwd`/"$ac_dir";;
14039     esac;;
14040     esac
14041     case $ac_abs_builddir in
14042     .) ac_abs_top_builddir=${ac_top_builddir}.;;
14043     *)
14044     case ${ac_top_builddir}. in
14045     .) ac_abs_top_builddir=$ac_abs_builddir;;
14046     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14047     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14048     esac;;
14049     esac
14050     case $ac_abs_builddir in
14051     .) ac_abs_srcdir=$ac_srcdir;;
14052     *)
14053     case $ac_srcdir in
14054     .) ac_abs_srcdir=$ac_abs_builddir;;
14055     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14056     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14057     esac;;
14058     esac
14059     case $ac_abs_builddir in
14060     .) ac_abs_top_srcdir=$ac_top_srcdir;;
14061     *)
14062     case $ac_top_srcdir in
14063     .) ac_abs_top_srcdir=$ac_abs_builddir;;
14064     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14065     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14066     esac;;
14067     esac
14068 pcg 1.11
14069 pcg 1.1
14070 pcg 1.11 case $INSTALL in
14071     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14072 ayin 1.106 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14073 pcg 1.1 esac
14074    
14075 ayin 1.106 if test x"$ac_file" != x-; then
14076     { echo "$as_me:$LINENO: creating $ac_file" >&5
14077     echo "$as_me: creating $ac_file" >&6;}
14078     rm -f "$ac_file"
14079     fi
14080     # Let's still pretend it is `configure' which instantiates (i.e., don't
14081     # use $as_me), people would be surprised to read:
14082     # /* config.h. Generated by config.status. */
14083     if test x"$ac_file" = x-; then
14084     configure_input=
14085     else
14086     configure_input="$ac_file. "
14087     fi
14088     configure_input=$configure_input"Generated from `echo $ac_file_in |
14089     sed 's,.*/,,'` by configure."
14090    
14091     # First look for the input files in the build tree, otherwise in the
14092     # src tree.
14093     ac_file_inputs=`IFS=:
14094     for f in $ac_file_in; do
14095     case $f in
14096     -) echo $tmp/stdin ;;
14097     [\\/$]*)
14098     # Absolute (can't be DOS-style, as IFS=:)
14099     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14100     echo "$as_me: error: cannot find input file: $f" >&2;}
14101     { (exit 1); exit 1; }; }
14102     echo "$f";;
14103     *) # Relative
14104     if test -f "$f"; then
14105     # Build tree
14106     echo "$f"
14107     elif test -f "$srcdir/$f"; then
14108     # Source tree
14109     echo "$srcdir/$f"
14110     else
14111     # /dev/null tree
14112     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14113     echo "$as_me: error: cannot find input file: $f" >&2;}
14114     { (exit 1); exit 1; }; }
14115     fi;;
14116     esac
14117     done` || { (exit 1); exit 1; }
14118 root 1.105 _ACEOF
14119     cat >>$CONFIG_STATUS <<_ACEOF
14120 pcg 1.11 sed "$ac_vpsub
14121     $extrasub
14122     _ACEOF
14123     cat >>$CONFIG_STATUS <<\_ACEOF
14124     :t
14125     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14126 ayin 1.106 s,@configure_input@,$configure_input,;t t
14127     s,@srcdir@,$ac_srcdir,;t t
14128     s,@abs_srcdir@,$ac_abs_srcdir,;t t
14129     s,@top_srcdir@,$ac_top_srcdir,;t t
14130     s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14131     s,@builddir@,$ac_builddir,;t t
14132     s,@abs_builddir@,$ac_abs_builddir,;t t
14133     s,@top_builddir@,$ac_top_builddir,;t t
14134     s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14135     s,@INSTALL@,$ac_INSTALL,;t t
14136     " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14137     rm -f $tmp/stdin
14138     if test x"$ac_file" != x-; then
14139     mv $tmp/out $ac_file
14140     else
14141     cat $tmp/out
14142     rm -f $tmp/out
14143     fi
14144    
14145     done
14146     _ACEOF
14147     cat >>$CONFIG_STATUS <<\_ACEOF
14148    
14149     #
14150     # CONFIG_HEADER section.
14151     #
14152 ayin 1.104
14153 ayin 1.106 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14154     # NAME is the cpp macro being defined and VALUE is the value it is being given.
14155     #
14156     # ac_d sets the value in "#define NAME VALUE" lines.
14157     ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14158     ac_dB='[ ].*$,\1#\2'
14159     ac_dC=' '
14160     ac_dD=',;t'
14161     # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14162     ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14163     ac_uB='$,\1#\2define\3'
14164     ac_uC=' '
14165     ac_uD=',;t'
14166    
14167     for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14168     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14169 pcg 1.11 case $ac_file in
14170 ayin 1.106 - | *:- | *:-:* ) # input from stdin
14171     cat >$tmp/stdin
14172     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14173     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14174     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14175     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14176     * ) ac_file_in=$ac_file.in ;;
14177 pcg 1.1 esac
14178    
14179 ayin 1.106 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14180     echo "$as_me: creating $ac_file" >&6;}
14181    
14182     # First look for the input files in the build tree, otherwise in the
14183     # src tree.
14184     ac_file_inputs=`IFS=:
14185     for f in $ac_file_in; do
14186     case $f in
14187     -) echo $tmp/stdin ;;
14188     [\\/$]*)
14189     # Absolute (can't be DOS-style, as IFS=:)
14190     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14191     echo "$as_me: error: cannot find input file: $f" >&2;}
14192     { (exit 1); exit 1; }; }
14193     # Do quote $f, to prevent DOS paths from being IFS'd.
14194     echo "$f";;
14195     *) # Relative
14196     if test -f "$f"; then
14197     # Build tree
14198     echo "$f"
14199     elif test -f "$srcdir/$f"; then
14200     # Source tree
14201     echo "$srcdir/$f"
14202     else
14203     # /dev/null tree
14204     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14205     echo "$as_me: error: cannot find input file: $f" >&2;}
14206     { (exit 1); exit 1; }; }
14207     fi;;
14208     esac
14209     done` || { (exit 1); exit 1; }
14210     # Remove the trailing spaces.
14211     sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14212    
14213     _ACEOF
14214    
14215     # Transform confdefs.h into two sed scripts, `conftest.defines' and
14216     # `conftest.undefs', that substitutes the proper values into
14217     # config.h.in to produce config.h. The first handles `#define'
14218     # templates, and the second `#undef' templates.
14219     # And first: Protect against being on the right side of a sed subst in
14220     # config.status. Protect against being in an unquoted here document
14221     # in config.status.
14222     rm -f conftest.defines conftest.undefs
14223     # Using a here document instead of a string reduces the quoting nightmare.
14224     # Putting comments in sed scripts is not portable.
14225     #
14226     # `end' is used to avoid that the second main sed command (meant for
14227     # 0-ary CPP macros) applies to n-ary macro definitions.
14228     # See the Autoconf documentation for `clear'.
14229     cat >confdef2sed.sed <<\_ACEOF
14230     s/[\\&,]/\\&/g
14231     s,[\\$`],\\&,g
14232     t clear
14233     : clear
14234     s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14235     t end
14236     s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14237     : end
14238     _ACEOF
14239     # If some macros were called several times there might be several times
14240     # the same #defines, which is useless. Nevertheless, we may not want to
14241     # sort them, since we want the *last* AC-DEFINE to be honored.
14242     uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14243     sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14244     rm -f confdef2sed.sed
14245 ayin 1.104
14246 ayin 1.106 # This sed command replaces #undef with comments. This is necessary, for
14247 pcg 1.1 # example, in the case of _POSIX_SOURCE, which is predefined and required
14248     # on some systems where configure will not decide to define it.
14249 ayin 1.106 cat >>conftest.undefs <<\_ACEOF
14250     s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14251 pcg 1.11 _ACEOF
14252 ayin 1.106
14253     # Break up conftest.defines because some shells have a limit on the size
14254     # of here documents, and old seds have small limits too (100 cmds).
14255     echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14256     echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14257     echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14258     echo ' :' >>$CONFIG_STATUS
14259     rm -f conftest.tail
14260     while grep . conftest.defines >/dev/null
14261     do
14262     # Write a limited-size here document to $tmp/defines.sed.
14263     echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14264     # Speed up: don't consider the non `#define' lines.
14265     echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14266     # Work around the forget-to-reset-the-flag bug.
14267     echo 't clr' >>$CONFIG_STATUS
14268     echo ': clr' >>$CONFIG_STATUS
14269     sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14270 pcg 1.11 echo 'CEOF
14271 ayin 1.106 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14272     rm -f $tmp/in
14273     mv $tmp/out $tmp/in
14274     ' >>$CONFIG_STATUS
14275     sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14276 pcg 1.11 rm -f conftest.defines
14277     mv conftest.tail conftest.defines
14278     done
14279 ayin 1.106 rm -f conftest.defines
14280     echo ' fi # grep' >>$CONFIG_STATUS
14281     echo >>$CONFIG_STATUS
14282    
14283     # Break up conftest.undefs because some shells have a limit on the size
14284     # of here documents, and old seds have small limits too (100 cmds).
14285     echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14286     rm -f conftest.tail
14287     while grep . conftest.undefs >/dev/null
14288     do
14289     # Write a limited-size here document to $tmp/undefs.sed.
14290     echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14291     # Speed up: don't consider the non `#undef'
14292     echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14293     # Work around the forget-to-reset-the-flag bug.
14294     echo 't clr' >>$CONFIG_STATUS
14295     echo ': clr' >>$CONFIG_STATUS
14296     sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14297     echo 'CEOF
14298     sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14299     rm -f $tmp/in
14300     mv $tmp/out $tmp/in
14301     ' >>$CONFIG_STATUS
14302     sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14303     rm -f conftest.undefs
14304     mv conftest.tail conftest.undefs
14305     done
14306     rm -f conftest.undefs
14307 pcg 1.11
14308     cat >>$CONFIG_STATUS <<\_ACEOF
14309 ayin 1.106 # Let's still pretend it is `configure' which instantiates (i.e., don't
14310     # use $as_me), people would be surprised to read:
14311     # /* config.h. Generated by config.status. */
14312     if test x"$ac_file" = x-; then
14313     echo "/* Generated by configure. */" >$tmp/config.h
14314     else
14315     echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14316     fi
14317     cat $tmp/in >>$tmp/config.h
14318     rm -f $tmp/in
14319 pcg 1.11 if test x"$ac_file" != x-; then
14320 ayin 1.106 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14321 pcg 1.11 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14322     echo "$as_me: $ac_file is unchanged" >&6;}
14323     else
14324 ayin 1.106 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14325     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14326     X"$ac_file" : 'X\(//\)[^/]' \| \
14327     X"$ac_file" : 'X\(//\)$' \| \
14328     X"$ac_file" : 'X\(/\)' \| \
14329     . : '\(.\)' 2>/dev/null ||
14330     echo X"$ac_file" |
14331     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14332     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14333     /^X\(\/\/\)$/{ s//\1/; q; }
14334     /^X\(\/\).*/{ s//\1/; q; }
14335     s/.*/./; q'`
14336     { if $as_mkdir_p; then
14337     mkdir -p "$ac_dir"
14338     else
14339     as_dir="$ac_dir"
14340     as_dirs=
14341     while test ! -d "$as_dir"; do
14342     as_dirs="$as_dir $as_dirs"
14343     as_dir=`(dirname "$as_dir") 2>/dev/null ||
14344     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14345     X"$as_dir" : 'X\(//\)[^/]' \| \
14346     X"$as_dir" : 'X\(//\)$' \| \
14347     X"$as_dir" : 'X\(/\)' \| \
14348     . : '\(.\)' 2>/dev/null ||
14349     echo X"$as_dir" |
14350     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14351     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14352     /^X\(\/\/\)$/{ s//\1/; q; }
14353     /^X\(\/\).*/{ s//\1/; q; }
14354     s/.*/./; q'`
14355     done
14356     test ! -n "$as_dirs" || mkdir $as_dirs
14357     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14358     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14359     { (exit 1); exit 1; }; }; }
14360    
14361 pcg 1.11 rm -f $ac_file
14362 ayin 1.106 mv $tmp/config.h $ac_file
14363 pcg 1.1 fi
14364 pcg 1.11 else
14365 ayin 1.106 cat $tmp/config.h
14366     rm -f $tmp/config.h
14367 pcg 1.1 fi
14368 ayin 1.106 done
14369     _ACEOF
14370 pcg 1.11
14371 ayin 1.106 cat >>$CONFIG_STATUS <<\_ACEOF
14372 pcg 1.1
14373 pcg 1.11 { (exit 0); exit 0; }
14374     _ACEOF
14375     chmod +x $CONFIG_STATUS
14376     ac_clean_files=$ac_clean_files_save
14377 pcg 1.1
14378    
14379 pcg 1.11 # configure is writing to config.log, and then calls config.status.
14380     # config.status does its own redirection, appending to config.log.
14381     # Unfortunately, on DOS this fails, as config.log is still kept open
14382     # by configure, so config.status won't be able to write to it; its
14383     # output is simply discarded. So we exec the FD to /dev/null,
14384     # effectively closing config.log, so it can be properly (re)opened and
14385     # appended to by config.status. When coming back to configure, we
14386     # need to make the FD available again.
14387     if test "$no_create" != yes; then
14388     ac_cs_success=:
14389     ac_config_status_args=
14390     test "$silent" = yes &&
14391     ac_config_status_args="$ac_config_status_args --quiet"
14392     exec 5>/dev/null
14393     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14394     exec 5>>config.log
14395     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14396     # would make configure fail if this is the last instruction.
14397     $ac_cs_success || { (exit 1); exit 1; }
14398     fi
14399 pcg 1.1
14400    
14401     echo "Configuration:
14402    
14403     Rxvt version: $VERSION : $DATE
14404     Source code location: $srcdir
14405     Install path: ${prefix}/bin
14406 pcg 1.13 Compiler: $CXX
14407 root 1.100 Compiler flags: $CXXFLAGS
14408 pcg 1.13 Linker: $LINKER"
14409 pcg 1.1
14410     if test x$support_xpm = xyes; then
14411     echo " Xpm library: $XPM_LIBS"
14412     fi
14413    
14414 root 1.103 if test x$support_afterimage = xyes; then
14415     echo " AfterImage support: yes"
14416     fi
14417    
14418     if test x$support_afterstep = xyes; then
14419 ayin 1.104 echo " AfterStep integration: yes"
14420 root 1.103 fi
14421    
14422 pcg 1.1 if test x$term != x; then
14423 pcg 1.18 echo " set TERM to: $term"
14424 pcg 1.1 fi
14425     if test x$terminfo != x; then
14426 pcg 1.18 echo " set TERMINFO to: $terminfo"
14427     fi
14428     echo " default resource name: $RESNAME"
14429     echo " resource class: $RESCLASS"
14430     if test x$RESFALLBACK != x; then
14431     echo " resource class fallback: $RESFALLBACK"
14432 pcg 1.1 fi
14433 pcg 1.18 echo
14434 root 1.89 echo " embedded perl: $support_perl"
14435     echo
14436 pcg 1.1 if test x$support_xpm = xneedsmanualspecification; then
14437     echo ".----------------------------------------------------------------."
14438     echo ". WARNING: --enable-xpm-background was specified however the ."
14439     echo ". XPM includes files and libraries could not be found. ."
14440     echo ". XPM backgrounds are now being DISABLED! If you want ."
14441     echo ". to use them you should rerun configure with the ."
14442     echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
14443     echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
14444     echo ".----------------------------------------------------------------."
14445     fi
14446     if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
14447     echo ".----------------------------------------------------------------."
14448     echo ". WARNING: --enable-xim was specified however the locale support ."
14449     echo ". functions could not be found. ."
14450     echo ". XIM is now being DISABLED! ."
14451     echo ".----------------------------------------------------------------."
14452     fi
14453 pcg 1.20
14454 root 1.96 echo "*** Optionally check src/feature.h for further, rarely used options ***"
14455 pcg 1.20 echo
14456