blob: 564099ab3d14ee47265c0ad5ee49b1e7569a8571 [file] [log] [blame]
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_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.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="vncviewer_unix/vncviewer.cxx"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_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 PACKAGE VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB SET_MAKE MITSHM_DEFINE CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS ZLIB_DIR ZLIB_INCLUDE ZLIB_LIB JPEG_DIR JPEG_INCLUDE JPEG_LIB VNCCONFIG_DIR XTEST_DEFINE XTEST_LIB READDISPLAY_DEFINE VSNPRINTF_DEFINE STRCASECMP_DEFINE STRNCASECMP_DEFINE INET_LIB SOCKLEN_T_DEFINE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
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.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
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
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -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
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
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 | --no-cr | --no-c | -n)
486 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 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
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 sbindir=$ac_optarg ;;
546
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 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
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
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
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 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672do
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 esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if 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
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if 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
736fi
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; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CXX_set=${CXX+set}
770ac_env_CXX_value=$CXX
771ac_cv_env_CXX_set=${CXX+set}
772ac_cv_env_CXX_value=$CXX
773ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774ac_env_CXXFLAGS_value=$CXXFLAGS
775ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777ac_env_CXXCPP_set=${CXXCPP+set}
778ac_env_CXXCPP_value=$CXXCPP
779ac_cv_env_CXXCPP_set=${CXXCPP+set}
780ac_cv_env_CXXCPP_value=$CXXCPP
781
782#
783# Report the --help message.
784#
785if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789\`configure' configures this package to adapt to many kinds of systems.
790
791Usage: $0 [OPTION]... [VAR=VALUE]...
792
793To assign environment variables (e.g., CC, CFLAGS...), specify them as
794VAR=VALUE. See below for descriptions of some of the useful variables.
795
796Defaults for the options are specified in brackets.
797
798Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
808
809_ACEOF
810
811 cat <<_ACEOF
812Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
817
818By default, \`make install' will install all the files in
819\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821for instance \`--prefix=\$HOME'.
822
823For better control, use the options below.
824
825Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838_ACEOF
839
840 cat <<\_ACEOF
841
842X features:
843 --x-includes=DIR X include files are in DIR
844 --x-libraries=DIR X library files are in DIR
845
846System types:
847 --build=BUILD configure for building on BUILD [guessed]
848 --host=HOST cross-compile to build programs to run on HOST [BUILD]
849_ACEOF
850fi
851
852if test -n "$ac_init_help"; then
853
854 cat <<\_ACEOF
855
856Optional Features:
857 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
858 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
859 --enable-vncconfig build the vncconfig utility (assumed by default),
860 use --disable-vncconfig to skip building vncconfig
861 --disable-nls do not use Native Language Support
862 --disable-rpath do not hardcode runtime library paths
863
864Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-x use the X Window System
868 --with-installed-zlib use the version of zlib which is installed on the
869 system instead of the one distributed with VNC
870 --with-installed-jpeg use the version of jpeg which is installed on the
871 system instead of the one distributed with VNC
872 --with-gnu-ld assume the C compiler uses GNU ld default=no
873 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
874 --without-libiconv-prefix don't search for libiconv in includedir and libdir
875 --with-included-gettext use the GNU gettext library included here
876 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
877 --without-libintl-prefix don't search for libintl in includedir and libdir
878
879Some influential environment variables:
880 CC C compiler command
881 CFLAGS C compiler flags
882 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
883 nonstandard directory <lib dir>
884 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
885 headers in a nonstandard directory <include dir>
886 CXX C++ compiler command
887 CXXFLAGS C++ compiler flags
888 CXXCPP C++ preprocessor
889
890Use these variables to override the choices made by `configure' or to help
891it to find libraries and programs with nonstandard names/locations.
892
893_ACEOF
894fi
895
896if test "$ac_init_help" = "recursive"; then
897 # If there are subdirs, report their specific --help.
898 ac_popdir=`pwd`
899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900 test -d $ac_dir || continue
901 ac_builddir=.
902
903if test "$ac_dir" != .; then
904 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
905 # A "../" for each directory in $ac_dir_suffix.
906 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
907else
908 ac_dir_suffix= ac_top_builddir=
909fi
910
911case $srcdir in
912 .) # No --srcdir option. We are building in place.
913 ac_srcdir=.
914 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=.
916 else
917 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
918 fi ;;
919 [\\/]* | ?:[\\/]* ) # Absolute path.
920 ac_srcdir=$srcdir$ac_dir_suffix;
921 ac_top_srcdir=$srcdir ;;
922 *) # Relative path.
923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
925esac
926
927# Do not use `cd foo && pwd` to compute absolute paths, because
928# the directories may not exist.
929case `pwd` in
930.) ac_abs_builddir="$ac_dir";;
931*)
932 case "$ac_dir" in
933 .) ac_abs_builddir=`pwd`;;
934 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
935 *) ac_abs_builddir=`pwd`/"$ac_dir";;
936 esac;;
937esac
938case $ac_abs_builddir in
939.) ac_abs_top_builddir=${ac_top_builddir}.;;
940*)
941 case ${ac_top_builddir}. in
942 .) ac_abs_top_builddir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
944 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
945 esac;;
946esac
947case $ac_abs_builddir in
948.) ac_abs_srcdir=$ac_srcdir;;
949*)
950 case $ac_srcdir in
951 .) ac_abs_srcdir=$ac_abs_builddir;;
952 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
953 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
954 esac;;
955esac
956case $ac_abs_builddir in
957.) ac_abs_top_srcdir=$ac_top_srcdir;;
958*)
959 case $ac_top_srcdir in
960 .) ac_abs_top_srcdir=$ac_abs_builddir;;
961 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
962 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
963 esac;;
964esac
965
966 cd $ac_dir
967 # Check for guested configure; otherwise get Cygnus style configure.
968 if test -f $ac_srcdir/configure.gnu; then
969 echo
970 $SHELL $ac_srcdir/configure.gnu --help=recursive
971 elif test -f $ac_srcdir/configure; then
972 echo
973 $SHELL $ac_srcdir/configure --help=recursive
974 elif test -f $ac_srcdir/configure.ac ||
975 test -f $ac_srcdir/configure.in; then
976 echo
977 $ac_configure --help
978 else
979 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
980 fi
981 cd $ac_popdir
982 done
983fi
984
985test -n "$ac_init_help" && exit 0
986if $ac_init_version; then
987 cat <<\_ACEOF
988
989Copyright (C) 2003 Free Software Foundation, Inc.
990This configure script is free software; the Free Software Foundation
991gives unlimited permission to copy, distribute and modify it.
992_ACEOF
993 exit 0
994fi
995exec 5>config.log
996cat >&5 <<_ACEOF
997This file contains any messages produced by compilers while
998running configure, to aid debugging if configure makes a mistake.
999
1000It was created by $as_me, which was
1001generated by GNU Autoconf 2.59. Invocation command line was
1002
1003 $ $0 $@
1004
1005_ACEOF
1006{
1007cat <<_ASUNAME
1008## --------- ##
1009## Platform. ##
1010## --------- ##
1011
1012hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1013uname -m = `(uname -m) 2>/dev/null || echo unknown`
1014uname -r = `(uname -r) 2>/dev/null || echo unknown`
1015uname -s = `(uname -s) 2>/dev/null || echo unknown`
1016uname -v = `(uname -v) 2>/dev/null || echo unknown`
1017
1018/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1019/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1020
1021/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1022/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1023/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1024hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1025/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1026/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1027/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1028
1029_ASUNAME
1030
1031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1032for as_dir in $PATH
1033do
1034 IFS=$as_save_IFS
1035 test -z "$as_dir" && as_dir=.
1036 echo "PATH: $as_dir"
1037done
1038
1039} >&5
1040
1041cat >&5 <<_ACEOF
1042
1043
1044## ----------- ##
1045## Core tests. ##
1046## ----------- ##
1047
1048_ACEOF
1049
1050
1051# Keep a trace of the command line.
1052# Strip out --no-create and --no-recursion so they do not pile up.
1053# Strip out --silent because we don't want to record it for future runs.
1054# Also quote any args containing shell meta-characters.
1055# Make two passes to allow for proper duplicate-argument suppression.
1056ac_configure_args=
1057ac_configure_args0=
1058ac_configure_args1=
1059ac_sep=
1060ac_must_keep_next=false
1061for ac_pass in 1 2
1062do
1063 for ac_arg
1064 do
1065 case $ac_arg in
1066 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1069 continue ;;
1070 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1071 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1072 esac
1073 case $ac_pass in
1074 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1075 2)
1076 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1077 if test $ac_must_keep_next = true; then
1078 ac_must_keep_next=false # Got value, back to normal.
1079 else
1080 case $ac_arg in
1081 *=* | --config-cache | -C | -disable-* | --disable-* \
1082 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1083 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1084 | -with-* | --with-* | -without-* | --without-* | --x)
1085 case "$ac_configure_args0 " in
1086 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1087 esac
1088 ;;
1089 -* ) ac_must_keep_next=true ;;
1090 esac
1091 fi
1092 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1093 # Get rid of the leading space.
1094 ac_sep=" "
1095 ;;
1096 esac
1097 done
1098done
1099$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1100$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1101
1102# When interrupted or exit'd, cleanup temporary files, and complete
1103# config.log. We remove comments because anyway the quotes in there
1104# would cause problems or look ugly.
1105# WARNING: Be sure not to use single quotes in there, as some shells,
1106# such as our DU 5.0 friend, will then `close' the trap.
1107trap 'exit_status=$?
1108 # Save into config.log some information that might help in debugging.
1109 {
1110 echo
1111
1112 cat <<\_ASBOX
1113## ---------------- ##
1114## Cache variables. ##
1115## ---------------- ##
1116_ASBOX
1117 echo
1118 # The following way of writing the cache mishandles newlines in values,
1119{
1120 (set) 2>&1 |
1121 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1122 *ac_space=\ *)
1123 sed -n \
1124 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1126 ;;
1127 *)
1128 sed -n \
1129 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130 ;;
1131 esac;
1132}
1133 echo
1134
1135 cat <<\_ASBOX
1136## ----------------- ##
1137## Output variables. ##
1138## ----------------- ##
1139_ASBOX
1140 echo
1141 for ac_var in $ac_subst_vars
1142 do
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1145 done | sort
1146 echo
1147
1148 if test -n "$ac_subst_files"; then
1149 cat <<\_ASBOX
1150## ------------- ##
1151## Output files. ##
1152## ------------- ##
1153_ASBOX
1154 echo
1155 for ac_var in $ac_subst_files
1156 do
1157 eval ac_val=$`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1159 done | sort
1160 echo
1161 fi
1162
1163 if test -s confdefs.h; then
1164 cat <<\_ASBOX
1165## ----------- ##
1166## confdefs.h. ##
1167## ----------- ##
1168_ASBOX
1169 echo
1170 sed "/^$/d" confdefs.h | sort
1171 echo
1172 fi
1173 test "$ac_signal" != 0 &&
1174 echo "$as_me: caught signal $ac_signal"
1175 echo "$as_me: exit $exit_status"
1176 } >&5
1177 rm -f core *.core &&
1178 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1179 exit $exit_status
1180 ' 0
1181for ac_signal in 1 2 13 15; do
1182 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1183done
1184ac_signal=0
1185
1186# confdefs.h avoids OS command line length limits that DEFS can exceed.
1187rm -rf conftest* confdefs.h
1188# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1189echo >confdefs.h
1190
1191# Predefined preprocessor variables.
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_NAME "$PACKAGE_NAME"
1195_ACEOF
1196
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_VERSION "$PACKAGE_VERSION"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_STRING "$PACKAGE_STRING"
1210_ACEOF
1211
1212
1213cat >>confdefs.h <<_ACEOF
1214#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1215_ACEOF
1216
1217
1218# Let the site file select an alternate cache file if it wants to.
1219# Prefer explicitly selected file to automatically selected ones.
1220if test -z "$CONFIG_SITE"; then
1221 if test "x$prefix" != xNONE; then
1222 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1223 else
1224 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1225 fi
1226fi
1227for ac_site_file in $CONFIG_SITE; do
1228 if test -r "$ac_site_file"; then
1229 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1230echo "$as_me: loading site script $ac_site_file" >&6;}
1231 sed 's/^/| /' "$ac_site_file" >&5
1232 . "$ac_site_file"
1233 fi
1234done
1235
1236if test -r "$cache_file"; then
1237 # Some versions of bash will fail to source /dev/null (special
1238 # files actually), so we avoid doing that.
1239 if test -f "$cache_file"; then
1240 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1241echo "$as_me: loading cache $cache_file" >&6;}
1242 case $cache_file in
1243 [\\/]* | ?:[\\/]* ) . $cache_file;;
1244 *) . ./$cache_file;;
1245 esac
1246 fi
1247else
1248 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1249echo "$as_me: creating cache $cache_file" >&6;}
1250 >$cache_file
1251fi
1252
1253# Check that the precious variables saved in the cache have kept the same
1254# value.
1255ac_cache_corrupted=false
1256for ac_var in `(set) 2>&1 |
1257 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1258 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1259 eval ac_new_set=\$ac_env_${ac_var}_set
1260 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1261 eval ac_new_val="\$ac_env_${ac_var}_value"
1262 case $ac_old_set,$ac_new_set in
1263 set,)
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1265echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,set)
1268 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1269echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1270 ac_cache_corrupted=: ;;
1271 ,);;
1272 *)
1273 if test "x$ac_old_val" != "x$ac_new_val"; then
1274 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1275echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1276 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1277echo "$as_me: former value: $ac_old_val" >&2;}
1278 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1279echo "$as_me: current value: $ac_new_val" >&2;}
1280 ac_cache_corrupted=:
1281 fi;;
1282 esac
1283 # Pass precious variables to config.status.
1284 if test "$ac_new_set" = set; then
1285 case $ac_new_val in
1286 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1288 *) ac_arg=$ac_var=$ac_new_val ;;
1289 esac
1290 case " $ac_configure_args " in
1291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1292 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1293 esac
1294 fi
1295done
1296if $ac_cache_corrupted; then
1297 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1298echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1299 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1300echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1301 { (exit 1); exit 1; }; }
1302fi
1303
1304ac_ext=c
1305ac_cpp='$CPP $CPPFLAGS'
1306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1308ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329PACKAGE=tightvnc
1330VERSION=1.5.0
1331cat >>confdefs.h <<_ACEOF
1332#define PACKAGE "$PACKAGE"
1333_ACEOF
1334
1335cat >>confdefs.h <<_ACEOF
1336#define VERSION "$VERSION"
1337_ACEOF
1338
1339
1340
1341
1342ac_cv_prog_cc_g=no
1343ac_cv_prog_cxx_g=no
1344
1345ac_ext=c
1346ac_cpp='$CPP $CPPFLAGS'
1347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1349ac_compiler_gnu=$ac_cv_c_compiler_gnu
1350if test -n "$ac_tool_prefix"; then
1351 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1352set dummy ${ac_tool_prefix}gcc; ac_word=$2
1353echo "$as_me:$LINENO: checking for $ac_word" >&5
1354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1355if test "${ac_cv_prog_CC+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1357else
1358 if test -n "$CC"; then
1359 ac_cv_prog_CC="$CC" # Let the user override the test.
1360else
1361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1362for as_dir in $PATH
1363do
1364 IFS=$as_save_IFS
1365 test -z "$as_dir" && as_dir=.
1366 for ac_exec_ext in '' $ac_executable_extensions; do
1367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1368 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1370 break 2
1371 fi
1372done
1373done
1374
1375fi
1376fi
1377CC=$ac_cv_prog_CC
1378if test -n "$CC"; then
1379 echo "$as_me:$LINENO: result: $CC" >&5
1380echo "${ECHO_T}$CC" >&6
1381else
1382 echo "$as_me:$LINENO: result: no" >&5
1383echo "${ECHO_T}no" >&6
1384fi
1385
1386fi
1387if test -z "$ac_cv_prog_CC"; then
1388 ac_ct_CC=$CC
1389 # Extract the first word of "gcc", so it can be a program name with args.
1390set dummy gcc; ac_word=$2
1391echo "$as_me:$LINENO: checking for $ac_word" >&5
1392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1393if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
1395else
1396 if test -n "$ac_ct_CC"; then
1397 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1398else
1399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400for as_dir in $PATH
1401do
1402 IFS=$as_save_IFS
1403 test -z "$as_dir" && as_dir=.
1404 for ac_exec_ext in '' $ac_executable_extensions; do
1405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1406 ac_cv_prog_ac_ct_CC="gcc"
1407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1408 break 2
1409 fi
1410done
1411done
1412
1413fi
1414fi
1415ac_ct_CC=$ac_cv_prog_ac_ct_CC
1416if test -n "$ac_ct_CC"; then
1417 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1418echo "${ECHO_T}$ac_ct_CC" >&6
1419else
1420 echo "$as_me:$LINENO: result: no" >&5
1421echo "${ECHO_T}no" >&6
1422fi
1423
1424 CC=$ac_ct_CC
1425else
1426 CC="$ac_cv_prog_CC"
1427fi
1428
1429if test -z "$CC"; then
1430 if test -n "$ac_tool_prefix"; then
1431 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1432set dummy ${ac_tool_prefix}cc; ac_word=$2
1433echo "$as_me:$LINENO: checking for $ac_word" >&5
1434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1435if test "${ac_cv_prog_CC+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1437else
1438 if test -n "$CC"; then
1439 ac_cv_prog_CC="$CC" # Let the user override the test.
1440else
1441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442for as_dir in $PATH
1443do
1444 IFS=$as_save_IFS
1445 test -z "$as_dir" && as_dir=.
1446 for ac_exec_ext in '' $ac_executable_extensions; do
1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448 ac_cv_prog_CC="${ac_tool_prefix}cc"
1449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1450 break 2
1451 fi
1452done
1453done
1454
1455fi
1456fi
1457CC=$ac_cv_prog_CC
1458if test -n "$CC"; then
1459 echo "$as_me:$LINENO: result: $CC" >&5
1460echo "${ECHO_T}$CC" >&6
1461else
1462 echo "$as_me:$LINENO: result: no" >&5
1463echo "${ECHO_T}no" >&6
1464fi
1465
1466fi
1467if test -z "$ac_cv_prog_CC"; then
1468 ac_ct_CC=$CC
1469 # Extract the first word of "cc", so it can be a program name with args.
1470set dummy cc; ac_word=$2
1471echo "$as_me:$LINENO: checking for $ac_word" >&5
1472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1474 echo $ECHO_N "(cached) $ECHO_C" >&6
1475else
1476 if test -n "$ac_ct_CC"; then
1477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1478else
1479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480for as_dir in $PATH
1481do
1482 IFS=$as_save_IFS
1483 test -z "$as_dir" && as_dir=.
1484 for ac_exec_ext in '' $ac_executable_extensions; do
1485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1486 ac_cv_prog_ac_ct_CC="cc"
1487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1488 break 2
1489 fi
1490done
1491done
1492
1493fi
1494fi
1495ac_ct_CC=$ac_cv_prog_ac_ct_CC
1496if test -n "$ac_ct_CC"; then
1497 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1498echo "${ECHO_T}$ac_ct_CC" >&6
1499else
1500 echo "$as_me:$LINENO: result: no" >&5
1501echo "${ECHO_T}no" >&6
1502fi
1503
1504 CC=$ac_ct_CC
1505else
1506 CC="$ac_cv_prog_CC"
1507fi
1508
1509fi
1510if test -z "$CC"; then
1511 # Extract the first word of "cc", so it can be a program name with args.
1512set dummy cc; ac_word=$2
1513echo "$as_me:$LINENO: checking for $ac_word" >&5
1514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515if test "${ac_cv_prog_CC+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1517else
1518 if test -n "$CC"; then
1519 ac_cv_prog_CC="$CC" # Let the user override the test.
1520else
1521 ac_prog_rejected=no
1522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523for as_dir in $PATH
1524do
1525 IFS=$as_save_IFS
1526 test -z "$as_dir" && as_dir=.
1527 for ac_exec_ext in '' $ac_executable_extensions; do
1528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1529 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1530 ac_prog_rejected=yes
1531 continue
1532 fi
1533 ac_cv_prog_CC="cc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1536 fi
1537done
1538done
1539
1540if test $ac_prog_rejected = yes; then
1541 # We found a bogon in the path, so make sure we never use it.
1542 set dummy $ac_cv_prog_CC
1543 shift
1544 if test $# != 0; then
1545 # We chose a different compiler from the bogus one.
1546 # However, it has the same basename, so the bogon will be chosen
1547 # first if we set CC to just the basename; use the full file name.
1548 shift
1549 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1550 fi
1551fi
1552fi
1553fi
1554CC=$ac_cv_prog_CC
1555if test -n "$CC"; then
1556 echo "$as_me:$LINENO: result: $CC" >&5
1557echo "${ECHO_T}$CC" >&6
1558else
1559 echo "$as_me:$LINENO: result: no" >&5
1560echo "${ECHO_T}no" >&6
1561fi
1562
1563fi
1564if test -z "$CC"; then
1565 if test -n "$ac_tool_prefix"; then
1566 for ac_prog in cl
1567 do
1568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1569set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1570echo "$as_me:$LINENO: checking for $ac_word" >&5
1571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1572if test "${ac_cv_prog_CC+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1574else
1575 if test -n "$CC"; then
1576 ac_cv_prog_CC="$CC" # Let the user override the test.
1577else
1578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579for as_dir in $PATH
1580do
1581 IFS=$as_save_IFS
1582 test -z "$as_dir" && as_dir=.
1583 for ac_exec_ext in '' $ac_executable_extensions; do
1584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1585 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587 break 2
1588 fi
1589done
1590done
1591
1592fi
1593fi
1594CC=$ac_cv_prog_CC
1595if test -n "$CC"; then
1596 echo "$as_me:$LINENO: result: $CC" >&5
1597echo "${ECHO_T}$CC" >&6
1598else
1599 echo "$as_me:$LINENO: result: no" >&5
1600echo "${ECHO_T}no" >&6
1601fi
1602
1603 test -n "$CC" && break
1604 done
1605fi
1606if test -z "$CC"; then
1607 ac_ct_CC=$CC
1608 for ac_prog in cl
1609do
1610 # Extract the first word of "$ac_prog", so it can be a program name with args.
1611set dummy $ac_prog; ac_word=$2
1612echo "$as_me:$LINENO: checking for $ac_word" >&5
1613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1614if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1616else
1617 if test -n "$ac_ct_CC"; then
1618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1619else
1620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621for as_dir in $PATH
1622do
1623 IFS=$as_save_IFS
1624 test -z "$as_dir" && as_dir=.
1625 for ac_exec_ext in '' $ac_executable_extensions; do
1626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1627 ac_cv_prog_ac_ct_CC="$ac_prog"
1628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1629 break 2
1630 fi
1631done
1632done
1633
1634fi
1635fi
1636ac_ct_CC=$ac_cv_prog_ac_ct_CC
1637if test -n "$ac_ct_CC"; then
1638 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1639echo "${ECHO_T}$ac_ct_CC" >&6
1640else
1641 echo "$as_me:$LINENO: result: no" >&5
1642echo "${ECHO_T}no" >&6
1643fi
1644
1645 test -n "$ac_ct_CC" && break
1646done
1647
1648 CC=$ac_ct_CC
1649fi
1650
1651fi
1652
1653
1654test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1655See \`config.log' for more details." >&5
1656echo "$as_me: error: no acceptable C compiler found in \$PATH
1657See \`config.log' for more details." >&2;}
1658 { (exit 1); exit 1; }; }
1659
1660# Provide some information about the compiler.
1661echo "$as_me:$LINENO:" \
1662 "checking for C compiler version" >&5
1663ac_compiler=`set X $ac_compile; echo $2`
1664{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1665 (eval $ac_compiler --version </dev/null >&5) 2>&5
1666 ac_status=$?
1667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1668 (exit $ac_status); }
1669{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1670 (eval $ac_compiler -v </dev/null >&5) 2>&5
1671 ac_status=$?
1672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1673 (exit $ac_status); }
1674{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1675 (eval $ac_compiler -V </dev/null >&5) 2>&5
1676 ac_status=$?
1677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1678 (exit $ac_status); }
1679
1680cat >conftest.$ac_ext <<_ACEOF
1681/* confdefs.h. */
1682_ACEOF
1683cat confdefs.h >>conftest.$ac_ext
1684cat >>conftest.$ac_ext <<_ACEOF
1685/* end confdefs.h. */
1686
1687int
1688main ()
1689{
1690
1691 ;
1692 return 0;
1693}
1694_ACEOF
1695ac_clean_files_save=$ac_clean_files
1696ac_clean_files="$ac_clean_files a.out a.exe b.out"
1697# Try to create an executable without -o first, disregard a.out.
1698# It will help us diagnose broken compilers, and finding out an intuition
1699# of exeext.
1700echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1701echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1702ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1703if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1704 (eval $ac_link_default) 2>&5
1705 ac_status=$?
1706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1707 (exit $ac_status); }; then
1708 # Find the output, starting from the most likely. This scheme is
1709# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1710# resort.
1711
1712# Be careful to initialize this variable, since it used to be cached.
1713# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1714ac_cv_exeext=
1715# b.out is created by i960 compilers.
1716for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1717do
1718 test -f "$ac_file" || continue
1719 case $ac_file in
1720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1721 ;;
1722 conftest.$ac_ext )
1723 # This is the source file.
1724 ;;
1725 [ab].out )
1726 # We found the default executable, but exeext='' is most
1727 # certainly right.
1728 break;;
1729 *.* )
1730 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1731 # FIXME: I believe we export ac_cv_exeext for Libtool,
1732 # but it would be cool to find out if it's true. Does anybody
1733 # maintain Libtool? --akim.
1734 export ac_cv_exeext
1735 break;;
1736 * )
1737 break;;
1738 esac
1739done
1740else
1741 echo "$as_me: failed program was:" >&5
1742sed 's/^/| /' conftest.$ac_ext >&5
1743
1744{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1745See \`config.log' for more details." >&5
1746echo "$as_me: error: C compiler cannot create executables
1747See \`config.log' for more details." >&2;}
1748 { (exit 77); exit 77; }; }
1749fi
1750
1751ac_exeext=$ac_cv_exeext
1752echo "$as_me:$LINENO: result: $ac_file" >&5
1753echo "${ECHO_T}$ac_file" >&6
1754
1755# Check the compiler produces executables we can run. If not, either
1756# the compiler is broken, or we cross compile.
1757echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1758echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1759# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1760# If not cross compiling, check that we can run a simple program.
1761if test "$cross_compiling" != yes; then
1762 if { ac_try='./$ac_file'
1763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1764 (eval $ac_try) 2>&5
1765 ac_status=$?
1766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1767 (exit $ac_status); }; }; then
1768 cross_compiling=no
1769 else
1770 if test "$cross_compiling" = maybe; then
1771 cross_compiling=yes
1772 else
1773 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1774If you meant to cross compile, use \`--host'.
1775See \`config.log' for more details." >&5
1776echo "$as_me: error: cannot run C compiled programs.
1777If you meant to cross compile, use \`--host'.
1778See \`config.log' for more details." >&2;}
1779 { (exit 1); exit 1; }; }
1780 fi
1781 fi
1782fi
1783echo "$as_me:$LINENO: result: yes" >&5
1784echo "${ECHO_T}yes" >&6
1785
1786rm -f a.out a.exe conftest$ac_cv_exeext b.out
1787ac_clean_files=$ac_clean_files_save
1788# Check the compiler produces executables we can run. If not, either
1789# the compiler is broken, or we cross compile.
1790echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1791echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1792echo "$as_me:$LINENO: result: $cross_compiling" >&5
1793echo "${ECHO_T}$cross_compiling" >&6
1794
1795echo "$as_me:$LINENO: checking for suffix of executables" >&5
1796echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1798 (eval $ac_link) 2>&5
1799 ac_status=$?
1800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801 (exit $ac_status); }; then
1802 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1803# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1804# work properly (i.e., refer to `conftest.exe'), while it won't with
1805# `rm'.
1806for ac_file in conftest.exe conftest conftest.*; do
1807 test -f "$ac_file" || continue
1808 case $ac_file in
1809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1810 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1811 export ac_cv_exeext
1812 break;;
1813 * ) break;;
1814 esac
1815done
1816else
1817 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1818See \`config.log' for more details." >&5
1819echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1820See \`config.log' for more details." >&2;}
1821 { (exit 1); exit 1; }; }
1822fi
1823
1824rm -f conftest$ac_cv_exeext
1825echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1826echo "${ECHO_T}$ac_cv_exeext" >&6
1827
1828rm -f conftest.$ac_ext
1829EXEEXT=$ac_cv_exeext
1830ac_exeext=$EXEEXT
1831echo "$as_me:$LINENO: checking for suffix of object files" >&5
1832echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1833if test "${ac_cv_objext+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1835else
1836 cat >conftest.$ac_ext <<_ACEOF
1837/* confdefs.h. */
1838_ACEOF
1839cat confdefs.h >>conftest.$ac_ext
1840cat >>conftest.$ac_ext <<_ACEOF
1841/* end confdefs.h. */
1842
1843int
1844main ()
1845{
1846
1847 ;
1848 return 0;
1849}
1850_ACEOF
1851rm -f conftest.o conftest.obj
1852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1853 (eval $ac_compile) 2>&5
1854 ac_status=$?
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }; then
1857 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1858 case $ac_file in
1859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1860 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1861 break;;
1862 esac
1863done
1864else
1865 echo "$as_me: failed program was:" >&5
1866sed 's/^/| /' conftest.$ac_ext >&5
1867
1868{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1869See \`config.log' for more details." >&5
1870echo "$as_me: error: cannot compute suffix of object files: cannot compile
1871See \`config.log' for more details." >&2;}
1872 { (exit 1); exit 1; }; }
1873fi
1874
1875rm -f conftest.$ac_cv_objext conftest.$ac_ext
1876fi
1877echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1878echo "${ECHO_T}$ac_cv_objext" >&6
1879OBJEXT=$ac_cv_objext
1880ac_objext=$OBJEXT
1881echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1882echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1883if test "${ac_cv_c_compiler_gnu+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1885else
1886 cat >conftest.$ac_ext <<_ACEOF
1887/* confdefs.h. */
1888_ACEOF
1889cat confdefs.h >>conftest.$ac_ext
1890cat >>conftest.$ac_ext <<_ACEOF
1891/* end confdefs.h. */
1892
1893int
1894main ()
1895{
1896#ifndef __GNUC__
1897 choke me
1898#endif
1899
1900 ;
1901 return 0;
1902}
1903_ACEOF
1904rm -f conftest.$ac_objext
1905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1906 (eval $ac_compile) 2>conftest.er1
1907 ac_status=$?
1908 grep -v '^ *+' conftest.er1 >conftest.err
1909 rm -f conftest.er1
1910 cat conftest.err >&5
1911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912 (exit $ac_status); } &&
1913 { ac_try='test -z "$ac_c_werror_flag"
1914 || test ! -s conftest.err'
1915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1916 (eval $ac_try) 2>&5
1917 ac_status=$?
1918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919 (exit $ac_status); }; } &&
1920 { ac_try='test -s conftest.$ac_objext'
1921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1922 (eval $ac_try) 2>&5
1923 ac_status=$?
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }; }; then
1926 ac_compiler_gnu=yes
1927else
1928 echo "$as_me: failed program was:" >&5
1929sed 's/^/| /' conftest.$ac_ext >&5
1930
1931ac_compiler_gnu=no
1932fi
1933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1934ac_cv_c_compiler_gnu=$ac_compiler_gnu
1935
1936fi
1937echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1938echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1939GCC=`test $ac_compiler_gnu = yes && echo yes`
1940ac_test_CFLAGS=${CFLAGS+set}
1941ac_save_CFLAGS=$CFLAGS
1942CFLAGS="-g"
1943echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1944echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1945if test "${ac_cv_prog_cc_g+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1947else
1948 cat >conftest.$ac_ext <<_ACEOF
1949/* confdefs.h. */
1950_ACEOF
1951cat confdefs.h >>conftest.$ac_ext
1952cat >>conftest.$ac_ext <<_ACEOF
1953/* end confdefs.h. */
1954
1955int
1956main ()
1957{
1958
1959 ;
1960 return 0;
1961}
1962_ACEOF
1963rm -f conftest.$ac_objext
1964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1965 (eval $ac_compile) 2>conftest.er1
1966 ac_status=$?
1967 grep -v '^ *+' conftest.er1 >conftest.err
1968 rm -f conftest.er1
1969 cat conftest.err >&5
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); } &&
1972 { ac_try='test -z "$ac_c_werror_flag"
1973 || test ! -s conftest.err'
1974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1975 (eval $ac_try) 2>&5
1976 ac_status=$?
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }; } &&
1979 { ac_try='test -s conftest.$ac_objext'
1980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1981 (eval $ac_try) 2>&5
1982 ac_status=$?
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; }; then
1985 ac_cv_prog_cc_g=yes
1986else
1987 echo "$as_me: failed program was:" >&5
1988sed 's/^/| /' conftest.$ac_ext >&5
1989
1990ac_cv_prog_cc_g=no
1991fi
1992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1993fi
1994echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1995echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1996if test "$ac_test_CFLAGS" = set; then
1997 CFLAGS=$ac_save_CFLAGS
1998elif test $ac_cv_prog_cc_g = yes; then
1999 if test "$GCC" = yes; then
2000 CFLAGS="-g -O2"
2001 else
2002 CFLAGS="-g"
2003 fi
2004else
2005 if test "$GCC" = yes; then
2006 CFLAGS="-O2"
2007 else
2008 CFLAGS=
2009 fi
2010fi
2011echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2012echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2013if test "${ac_cv_prog_cc_stdc+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2015else
2016 ac_cv_prog_cc_stdc=no
2017ac_save_CC=$CC
2018cat >conftest.$ac_ext <<_ACEOF
2019/* confdefs.h. */
2020_ACEOF
2021cat confdefs.h >>conftest.$ac_ext
2022cat >>conftest.$ac_ext <<_ACEOF
2023/* end confdefs.h. */
2024#include <stdarg.h>
2025#include <stdio.h>
2026#include <sys/types.h>
2027#include <sys/stat.h>
2028/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2029struct buf { int x; };
2030FILE * (*rcsopen) (struct buf *, struct stat *, int);
2031static char *e (p, i)
2032 char **p;
2033 int i;
2034{
2035 return p[i];
2036}
2037static char *f (char * (*g) (char **, int), char **p, ...)
2038{
2039 char *s;
2040 va_list v;
2041 va_start (v,p);
2042 s = g (p, va_arg (v,int));
2043 va_end (v);
2044 return s;
2045}
2046
2047/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2048 function prototypes and stuff, but not '\xHH' hex character constants.
2049 These don't provoke an error unfortunately, instead are silently treated
2050 as 'x'. The following induces an error, until -std1 is added to get
2051 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2052 array size at least. It's necessary to write '\x00'==0 to get something
2053 that's true only with -std1. */
2054int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2055
2056int test (int i, double x);
2057struct s1 {int (*f) (int a);};
2058struct s2 {int (*f) (double a);};
2059int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2060int argc;
2061char **argv;
2062int
2063main ()
2064{
2065return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2066 ;
2067 return 0;
2068}
2069_ACEOF
2070# Don't try gcc -ansi; that turns off useful extensions and
2071# breaks some systems' header files.
2072# AIX -qlanglvl=ansi
2073# Ultrix and OSF/1 -std1
2074# HP-UX 10.20 and later -Ae
2075# HP-UX older versions -Aa -D_HPUX_SOURCE
2076# SVR4 -Xc -D__EXTENSIONS__
2077for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2078do
2079 CC="$ac_save_CC $ac_arg"
2080 rm -f conftest.$ac_objext
2081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082 (eval $ac_compile) 2>conftest.er1
2083 ac_status=$?
2084 grep -v '^ *+' conftest.er1 >conftest.err
2085 rm -f conftest.er1
2086 cat conftest.err >&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); } &&
2089 { ac_try='test -z "$ac_c_werror_flag"
2090 || test ! -s conftest.err'
2091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092 (eval $ac_try) 2>&5
2093 ac_status=$?
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }; } &&
2096 { ac_try='test -s conftest.$ac_objext'
2097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098 (eval $ac_try) 2>&5
2099 ac_status=$?
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }; }; then
2102 ac_cv_prog_cc_stdc=$ac_arg
2103break
2104else
2105 echo "$as_me: failed program was:" >&5
2106sed 's/^/| /' conftest.$ac_ext >&5
2107
2108fi
2109rm -f conftest.err conftest.$ac_objext
2110done
2111rm -f conftest.$ac_ext conftest.$ac_objext
2112CC=$ac_save_CC
2113
2114fi
2115
2116case "x$ac_cv_prog_cc_stdc" in
2117 x|xno)
2118 echo "$as_me:$LINENO: result: none needed" >&5
2119echo "${ECHO_T}none needed" >&6 ;;
2120 *)
2121 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2122echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2123 CC="$CC $ac_cv_prog_cc_stdc" ;;
2124esac
2125
2126# Some people use a C++ compiler to compile C. Since we use `exit',
2127# in C++ we need to declare it. In case someone uses the same compiler
2128# for both compiling C and C++ we need to have the C++ compiler decide
2129# the declaration of exit, since it's the most demanding environment.
2130cat >conftest.$ac_ext <<_ACEOF
2131#ifndef __cplusplus
2132 choke me
2133#endif
2134_ACEOF
2135rm -f conftest.$ac_objext
2136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>conftest.er1
2138 ac_status=$?
2139 grep -v '^ *+' conftest.er1 >conftest.err
2140 rm -f conftest.er1
2141 cat conftest.err >&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); } &&
2144 { ac_try='test -z "$ac_c_werror_flag"
2145 || test ! -s conftest.err'
2146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2147 (eval $ac_try) 2>&5
2148 ac_status=$?
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; } &&
2151 { ac_try='test -s conftest.$ac_objext'
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 (eval $ac_try) 2>&5
2154 ac_status=$?
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; }; then
2157 for ac_declaration in \
2158 '' \
2159 'extern "C" void std::exit (int) throw (); using std::exit;' \
2160 'extern "C" void std::exit (int); using std::exit;' \
2161 'extern "C" void exit (int) throw ();' \
2162 'extern "C" void exit (int);' \
2163 'void exit (int);'
2164do
2165 cat >conftest.$ac_ext <<_ACEOF
2166/* confdefs.h. */
2167_ACEOF
2168cat confdefs.h >>conftest.$ac_ext
2169cat >>conftest.$ac_ext <<_ACEOF
2170/* end confdefs.h. */
2171$ac_declaration
2172#include <stdlib.h>
2173int
2174main ()
2175{
2176exit (42);
2177 ;
2178 return 0;
2179}
2180_ACEOF
2181rm -f conftest.$ac_objext
2182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183 (eval $ac_compile) 2>conftest.er1
2184 ac_status=$?
2185 grep -v '^ *+' conftest.er1 >conftest.err
2186 rm -f conftest.er1
2187 cat conftest.err >&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); } &&
2190 { ac_try='test -z "$ac_c_werror_flag"
2191 || test ! -s conftest.err'
2192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2193 (eval $ac_try) 2>&5
2194 ac_status=$?
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; } &&
2197 { ac_try='test -s conftest.$ac_objext'
2198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 (eval $ac_try) 2>&5
2200 ac_status=$?
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; }; then
2203 :
2204else
2205 echo "$as_me: failed program was:" >&5
2206sed 's/^/| /' conftest.$ac_ext >&5
2207
2208continue
2209fi
2210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2211 cat >conftest.$ac_ext <<_ACEOF
2212/* confdefs.h. */
2213_ACEOF
2214cat confdefs.h >>conftest.$ac_ext
2215cat >>conftest.$ac_ext <<_ACEOF
2216/* end confdefs.h. */
2217$ac_declaration
2218int
2219main ()
2220{
2221exit (42);
2222 ;
2223 return 0;
2224}
2225_ACEOF
2226rm -f conftest.$ac_objext
2227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>conftest.er1
2229 ac_status=$?
2230 grep -v '^ *+' conftest.er1 >conftest.err
2231 rm -f conftest.er1
2232 cat conftest.err >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
2235 { ac_try='test -z "$ac_c_werror_flag"
2236 || test ! -s conftest.err'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 break
2249else
2250 echo "$as_me: failed program was:" >&5
2251sed 's/^/| /' conftest.$ac_ext >&5
2252
2253fi
2254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2255done
2256rm -f conftest*
2257if test -n "$ac_declaration"; then
2258 echo '#ifdef __cplusplus' >>confdefs.h
2259 echo $ac_declaration >>confdefs.h
2260 echo '#endif' >>confdefs.h
2261fi
2262
2263else
2264 echo "$as_me: failed program was:" >&5
2265sed 's/^/| /' conftest.$ac_ext >&5
2266
2267fi
2268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2269ac_ext=c
2270ac_cpp='$CPP $CPPFLAGS'
2271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273ac_compiler_gnu=$ac_cv_c_compiler_gnu
2274
2275ac_ext=cc
2276ac_cpp='$CXXCPP $CPPFLAGS'
2277ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2278ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2279ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2280if test -n "$ac_tool_prefix"; then
2281 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2282 do
2283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2284set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2285echo "$as_me:$LINENO: checking for $ac_word" >&5
2286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2287if test "${ac_cv_prog_CXX+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289else
2290 if test -n "$CXX"; then
2291 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2292else
2293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294for as_dir in $PATH
2295do
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 break 2
2303 fi
2304done
2305done
2306
2307fi
2308fi
2309CXX=$ac_cv_prog_CXX
2310if test -n "$CXX"; then
2311 echo "$as_me:$LINENO: result: $CXX" >&5
2312echo "${ECHO_T}$CXX" >&6
2313else
2314 echo "$as_me:$LINENO: result: no" >&5
2315echo "${ECHO_T}no" >&6
2316fi
2317
2318 test -n "$CXX" && break
2319 done
2320fi
2321if test -z "$CXX"; then
2322 ac_ct_CXX=$CXX
2323 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2324do
2325 # Extract the first word of "$ac_prog", so it can be a program name with args.
2326set dummy $ac_prog; ac_word=$2
2327echo "$as_me:$LINENO: checking for $ac_word" >&5
2328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2329if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331else
2332 if test -n "$ac_ct_CXX"; then
2333 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2334else
2335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336for as_dir in $PATH
2337do
2338 IFS=$as_save_IFS
2339 test -z "$as_dir" && as_dir=.
2340 for ac_exec_ext in '' $ac_executable_extensions; do
2341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2342 ac_cv_prog_ac_ct_CXX="$ac_prog"
2343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344 break 2
2345 fi
2346done
2347done
2348
2349fi
2350fi
2351ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2352if test -n "$ac_ct_CXX"; then
2353 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2354echo "${ECHO_T}$ac_ct_CXX" >&6
2355else
2356 echo "$as_me:$LINENO: result: no" >&5
2357echo "${ECHO_T}no" >&6
2358fi
2359
2360 test -n "$ac_ct_CXX" && break
2361done
2362test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2363
2364 CXX=$ac_ct_CXX
2365fi
2366
2367
2368# Provide some information about the compiler.
2369echo "$as_me:$LINENO:" \
2370 "checking for C++ compiler version" >&5
2371ac_compiler=`set X $ac_compile; echo $2`
2372{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2373 (eval $ac_compiler --version </dev/null >&5) 2>&5
2374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }
2377{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2378 (eval $ac_compiler -v </dev/null >&5) 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }
2382{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2383 (eval $ac_compiler -V </dev/null >&5) 2>&5
2384 ac_status=$?
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }
2387
2388echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2389echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2390if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2392else
2393 cat >conftest.$ac_ext <<_ACEOF
2394/* confdefs.h. */
2395_ACEOF
2396cat confdefs.h >>conftest.$ac_ext
2397cat >>conftest.$ac_ext <<_ACEOF
2398/* end confdefs.h. */
2399
2400int
2401main ()
2402{
2403#ifndef __GNUC__
2404 choke me
2405#endif
2406
2407 ;
2408 return 0;
2409}
2410_ACEOF
2411rm -f conftest.$ac_objext
2412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413 (eval $ac_compile) 2>conftest.er1
2414 ac_status=$?
2415 grep -v '^ *+' conftest.er1 >conftest.err
2416 rm -f conftest.er1
2417 cat conftest.err >&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); } &&
2420 { ac_try='test -z "$ac_cxx_werror_flag"
2421 || test ! -s conftest.err'
2422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423 (eval $ac_try) 2>&5
2424 ac_status=$?
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; } &&
2427 { ac_try='test -s conftest.$ac_objext'
2428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429 (eval $ac_try) 2>&5
2430 ac_status=$?
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; }; then
2433 ac_compiler_gnu=yes
2434else
2435 echo "$as_me: failed program was:" >&5
2436sed 's/^/| /' conftest.$ac_ext >&5
2437
2438ac_compiler_gnu=no
2439fi
2440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2441ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2442
2443fi
2444echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2445echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2446GXX=`test $ac_compiler_gnu = yes && echo yes`
2447ac_test_CXXFLAGS=${CXXFLAGS+set}
2448ac_save_CXXFLAGS=$CXXFLAGS
2449CXXFLAGS="-g"
2450echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2451echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2452if test "${ac_cv_prog_cxx_g+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
2454else
2455 cat >conftest.$ac_ext <<_ACEOF
2456/* confdefs.h. */
2457_ACEOF
2458cat confdefs.h >>conftest.$ac_ext
2459cat >>conftest.$ac_ext <<_ACEOF
2460/* end confdefs.h. */
2461
2462int
2463main ()
2464{
2465
2466 ;
2467 return 0;
2468}
2469_ACEOF
2470rm -f conftest.$ac_objext
2471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472 (eval $ac_compile) 2>conftest.er1
2473 ac_status=$?
2474 grep -v '^ *+' conftest.er1 >conftest.err
2475 rm -f conftest.er1
2476 cat conftest.err >&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); } &&
2479 { ac_try='test -z "$ac_cxx_werror_flag"
2480 || test ! -s conftest.err'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 (eval $ac_try) 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; } &&
2486 { ac_try='test -s conftest.$ac_objext'
2487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 (eval $ac_try) 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
2492 ac_cv_prog_cxx_g=yes
2493else
2494 echo "$as_me: failed program was:" >&5
2495sed 's/^/| /' conftest.$ac_ext >&5
2496
2497ac_cv_prog_cxx_g=no
2498fi
2499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2500fi
2501echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2502echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2503if test "$ac_test_CXXFLAGS" = set; then
2504 CXXFLAGS=$ac_save_CXXFLAGS
2505elif test $ac_cv_prog_cxx_g = yes; then
2506 if test "$GXX" = yes; then
2507 CXXFLAGS="-g -O2"
2508 else
2509 CXXFLAGS="-g"
2510 fi
2511else
2512 if test "$GXX" = yes; then
2513 CXXFLAGS="-O2"
2514 else
2515 CXXFLAGS=
2516 fi
2517fi
2518for ac_declaration in \
2519 '' \
2520 'extern "C" void std::exit (int) throw (); using std::exit;' \
2521 'extern "C" void std::exit (int); using std::exit;' \
2522 'extern "C" void exit (int) throw ();' \
2523 'extern "C" void exit (int);' \
2524 'void exit (int);'
2525do
2526 cat >conftest.$ac_ext <<_ACEOF
2527/* confdefs.h. */
2528_ACEOF
2529cat confdefs.h >>conftest.$ac_ext
2530cat >>conftest.$ac_ext <<_ACEOF
2531/* end confdefs.h. */
2532$ac_declaration
2533#include <stdlib.h>
2534int
2535main ()
2536{
2537exit (42);
2538 ;
2539 return 0;
2540}
2541_ACEOF
2542rm -f conftest.$ac_objext
2543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2544 (eval $ac_compile) 2>conftest.er1
2545 ac_status=$?
2546 grep -v '^ *+' conftest.er1 >conftest.err
2547 rm -f conftest.er1
2548 cat conftest.err >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try='test -z "$ac_cxx_werror_flag"
2552 || test ! -s conftest.err'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 (eval $ac_try) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 :
2565else
2566 echo "$as_me: failed program was:" >&5
2567sed 's/^/| /' conftest.$ac_ext >&5
2568
2569continue
2570fi
2571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2572 cat >conftest.$ac_ext <<_ACEOF
2573/* confdefs.h. */
2574_ACEOF
2575cat confdefs.h >>conftest.$ac_ext
2576cat >>conftest.$ac_ext <<_ACEOF
2577/* end confdefs.h. */
2578$ac_declaration
2579int
2580main ()
2581{
2582exit (42);
2583 ;
2584 return 0;
2585}
2586_ACEOF
2587rm -f conftest.$ac_objext
2588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589 (eval $ac_compile) 2>conftest.er1
2590 ac_status=$?
2591 grep -v '^ *+' conftest.er1 >conftest.err
2592 rm -f conftest.er1
2593 cat conftest.err >&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); } &&
2596 { ac_try='test -z "$ac_cxx_werror_flag"
2597 || test ! -s conftest.err'
2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599 (eval $ac_try) 2>&5
2600 ac_status=$?
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; } &&
2603 { ac_try='test -s conftest.$ac_objext'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 (eval $ac_try) 2>&5
2606 ac_status=$?
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; }; then
2609 break
2610else
2611 echo "$as_me: failed program was:" >&5
2612sed 's/^/| /' conftest.$ac_ext >&5
2613
2614fi
2615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2616done
2617rm -f conftest*
2618if test -n "$ac_declaration"; then
2619 echo '#ifdef __cplusplus' >>confdefs.h
2620 echo $ac_declaration >>confdefs.h
2621 echo '#endif' >>confdefs.h
2622fi
2623
2624ac_ext=c
2625ac_cpp='$CPP $CPPFLAGS'
2626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2628ac_compiler_gnu=$ac_cv_c_compiler_gnu
2629
2630if test -n "$ac_tool_prefix"; then
2631 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2632set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2633echo "$as_me:$LINENO: checking for $ac_word" >&5
2634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2635if test "${ac_cv_prog_RANLIB+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2637else
2638 if test -n "$RANLIB"; then
2639 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2640else
2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642for as_dir in $PATH
2643do
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2648 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 break 2
2651 fi
2652done
2653done
2654
2655fi
2656fi
2657RANLIB=$ac_cv_prog_RANLIB
2658if test -n "$RANLIB"; then
2659 echo "$as_me:$LINENO: result: $RANLIB" >&5
2660echo "${ECHO_T}$RANLIB" >&6
2661else
2662 echo "$as_me:$LINENO: result: no" >&5
2663echo "${ECHO_T}no" >&6
2664fi
2665
2666fi
2667if test -z "$ac_cv_prog_RANLIB"; then
2668 ac_ct_RANLIB=$RANLIB
2669 # Extract the first word of "ranlib", so it can be a program name with args.
2670set dummy ranlib; ac_word=$2
2671echo "$as_me:$LINENO: checking for $ac_word" >&5
2672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2673if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2675else
2676 if test -n "$ac_ct_RANLIB"; then
2677 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2678else
2679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680for as_dir in $PATH
2681do
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686 ac_cv_prog_ac_ct_RANLIB="ranlib"
2687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 break 2
2689 fi
2690done
2691done
2692
2693 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2694fi
2695fi
2696ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2697if test -n "$ac_ct_RANLIB"; then
2698 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2699echo "${ECHO_T}$ac_ct_RANLIB" >&6
2700else
2701 echo "$as_me:$LINENO: result: no" >&5
2702echo "${ECHO_T}no" >&6
2703fi
2704
2705 RANLIB=$ac_ct_RANLIB
2706else
2707 RANLIB="$ac_cv_prog_RANLIB"
2708fi
2709
2710echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2711echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2712set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2713if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2715else
2716 cat >conftest.make <<\_ACEOF
2717all:
2718 @echo 'ac_maketemp="$(MAKE)"'
2719_ACEOF
2720# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2721eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2722if test -n "$ac_maketemp"; then
2723 eval ac_cv_prog_make_${ac_make}_set=yes
2724else
2725 eval ac_cv_prog_make_${ac_make}_set=no
2726fi
2727rm -f conftest.make
2728fi
2729if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2730 echo "$as_me:$LINENO: result: yes" >&5
2731echo "${ECHO_T}yes" >&6
2732 SET_MAKE=
2733else
2734 echo "$as_me:$LINENO: result: no" >&5
2735echo "${ECHO_T}no" >&6
2736 SET_MAKE="MAKE=${MAKE-make}"
2737fi
2738
2739ac_ext=cc
2740ac_cpp='$CXXCPP $CPPFLAGS'
2741ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2744
2745
2746case "`(uname -sr) 2>/dev/null`" in
2747"SunOS 5"*)
2748 SOLARIS=yes
2749 USE_MITSHM=yes
2750 USE_SUN_OVL=yes
2751 ;;
2752"Linux"*)
2753 LINUX=yes
2754 USE_MITSHM=yes
2755 ;;
2756"IRIX 6"*)
2757 X_LIBS="-L/usr/lib32"
2758 USE_MITSHM=yes
2759 USE_READDISPLAY=yes
2760 ;;
2761"LynxOS 2"*)
2762 SJLJ_EXCEPTIONS=yes
2763 ;;
2764esac
2765
2766if test "$USE_MITSHM" = yes; then
2767 MITSHM_DEFINE="-DHAVE_MITSHM"
2768fi
2769
2770
2771if test "$GCC" = yes; then
2772 CFLAGS="$CFLAGS -Wall"
2773 if test "$SOLARIS" = yes; then
2774 CFLAGS="$CFLAGS -Wno-unknown-pragmas -Wno-implicit-int"
2775 fi
2776fi
2777if test "$GXX" = yes; then
2778 CXXFLAGS="$CXXFLAGS -Wall"
2779 if test "$SOLARIS" = yes; then
2780 CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas -fpermissive"
2781 fi
2782 if test "$SJLJ_EXCEPTIONS" = yes; then
2783 CXXFLAGS="$CXXFLAGS -fsjlj-exceptions"
2784 fi
2785fi
2786
2787
2788ac_ext=cc
2789ac_cpp='$CXXCPP $CPPFLAGS'
2790ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2793echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2794echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2795if test -z "$CXXCPP"; then
2796 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2798else
2799 # Double quotes because CXXCPP needs to be expanded
2800 for CXXCPP in "$CXX -E" "/lib/cpp"
2801 do
2802 ac_preproc_ok=false
2803for ac_cxx_preproc_warn_flag in '' yes
2804do
2805 # Use a header file that comes with gcc, so configuring glibc
2806 # with a fresh cross-compiler works.
2807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2808 # <limits.h> exists even on freestanding compilers.
2809 # On the NeXT, cc -E runs the code through the compiler's parser,
2810 # not just through cpp. "Syntax error" is here to catch this case.
2811 cat >conftest.$ac_ext <<_ACEOF
2812/* confdefs.h. */
2813_ACEOF
2814cat confdefs.h >>conftest.$ac_ext
2815cat >>conftest.$ac_ext <<_ACEOF
2816/* end confdefs.h. */
2817#ifdef __STDC__
2818# include <limits.h>
2819#else
2820# include <assert.h>
2821#endif
2822 Syntax error
2823_ACEOF
2824if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2826 ac_status=$?
2827 grep -v '^ *+' conftest.er1 >conftest.err
2828 rm -f conftest.er1
2829 cat conftest.err >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } >/dev/null; then
2832 if test -s conftest.err; then
2833 ac_cpp_err=$ac_cxx_preproc_warn_flag
2834 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2835 else
2836 ac_cpp_err=
2837 fi
2838else
2839 ac_cpp_err=yes
2840fi
2841if test -z "$ac_cpp_err"; then
2842 :
2843else
2844 echo "$as_me: failed program was:" >&5
2845sed 's/^/| /' conftest.$ac_ext >&5
2846
2847 # Broken: fails on valid input.
2848continue
2849fi
2850rm -f conftest.err conftest.$ac_ext
2851
2852 # OK, works on sane cases. Now check whether non-existent headers
2853 # can be detected and how.
2854 cat >conftest.$ac_ext <<_ACEOF
2855/* confdefs.h. */
2856_ACEOF
2857cat confdefs.h >>conftest.$ac_ext
2858cat >>conftest.$ac_ext <<_ACEOF
2859/* end confdefs.h. */
2860#include <ac_nonexistent.h>
2861_ACEOF
2862if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2864 ac_status=$?
2865 grep -v '^ *+' conftest.er1 >conftest.err
2866 rm -f conftest.er1
2867 cat conftest.err >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } >/dev/null; then
2870 if test -s conftest.err; then
2871 ac_cpp_err=$ac_cxx_preproc_warn_flag
2872 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2873 else
2874 ac_cpp_err=
2875 fi
2876else
2877 ac_cpp_err=yes
2878fi
2879if test -z "$ac_cpp_err"; then
2880 # Broken: success on invalid input.
2881continue
2882else
2883 echo "$as_me: failed program was:" >&5
2884sed 's/^/| /' conftest.$ac_ext >&5
2885
2886 # Passes both tests.
2887ac_preproc_ok=:
2888break
2889fi
2890rm -f conftest.err conftest.$ac_ext
2891
2892done
2893# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2894rm -f conftest.err conftest.$ac_ext
2895if $ac_preproc_ok; then
2896 break
2897fi
2898
2899 done
2900 ac_cv_prog_CXXCPP=$CXXCPP
2901
2902fi
2903 CXXCPP=$ac_cv_prog_CXXCPP
2904else
2905 ac_cv_prog_CXXCPP=$CXXCPP
2906fi
2907echo "$as_me:$LINENO: result: $CXXCPP" >&5
2908echo "${ECHO_T}$CXXCPP" >&6
2909ac_preproc_ok=false
2910for ac_cxx_preproc_warn_flag in '' yes
2911do
2912 # Use a header file that comes with gcc, so configuring glibc
2913 # with a fresh cross-compiler works.
2914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2915 # <limits.h> exists even on freestanding compilers.
2916 # On the NeXT, cc -E runs the code through the compiler's parser,
2917 # not just through cpp. "Syntax error" is here to catch this case.
2918 cat >conftest.$ac_ext <<_ACEOF
2919/* confdefs.h. */
2920_ACEOF
2921cat confdefs.h >>conftest.$ac_ext
2922cat >>conftest.$ac_ext <<_ACEOF
2923/* end confdefs.h. */
2924#ifdef __STDC__
2925# include <limits.h>
2926#else
2927# include <assert.h>
2928#endif
2929 Syntax error
2930_ACEOF
2931if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2933 ac_status=$?
2934 grep -v '^ *+' conftest.er1 >conftest.err
2935 rm -f conftest.er1
2936 cat conftest.err >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } >/dev/null; then
2939 if test -s conftest.err; then
2940 ac_cpp_err=$ac_cxx_preproc_warn_flag
2941 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2942 else
2943 ac_cpp_err=
2944 fi
2945else
2946 ac_cpp_err=yes
2947fi
2948if test -z "$ac_cpp_err"; then
2949 :
2950else
2951 echo "$as_me: failed program was:" >&5
2952sed 's/^/| /' conftest.$ac_ext >&5
2953
2954 # Broken: fails on valid input.
2955continue
2956fi
2957rm -f conftest.err conftest.$ac_ext
2958
2959 # OK, works on sane cases. Now check whether non-existent headers
2960 # can be detected and how.
2961 cat >conftest.$ac_ext <<_ACEOF
2962/* confdefs.h. */
2963_ACEOF
2964cat confdefs.h >>conftest.$ac_ext
2965cat >>conftest.$ac_ext <<_ACEOF
2966/* end confdefs.h. */
2967#include <ac_nonexistent.h>
2968_ACEOF
2969if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2971 ac_status=$?
2972 grep -v '^ *+' conftest.er1 >conftest.err
2973 rm -f conftest.er1
2974 cat conftest.err >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } >/dev/null; then
2977 if test -s conftest.err; then
2978 ac_cpp_err=$ac_cxx_preproc_warn_flag
2979 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2980 else
2981 ac_cpp_err=
2982 fi
2983else
2984 ac_cpp_err=yes
2985fi
2986if test -z "$ac_cpp_err"; then
2987 # Broken: success on invalid input.
2988continue
2989else
2990 echo "$as_me: failed program was:" >&5
2991sed 's/^/| /' conftest.$ac_ext >&5
2992
2993 # Passes both tests.
2994ac_preproc_ok=:
2995break
2996fi
2997rm -f conftest.err conftest.$ac_ext
2998
2999done
3000# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3001rm -f conftest.err conftest.$ac_ext
3002if $ac_preproc_ok; then
3003 :
3004else
3005 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3006See \`config.log' for more details." >&5
3007echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3008See \`config.log' for more details." >&2;}
3009 { (exit 1); exit 1; }; }
3010fi
3011
3012ac_ext=cc
3013ac_cpp='$CXXCPP $CPPFLAGS'
3014ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3017
3018
3019echo "$as_me:$LINENO: checking for X" >&5
3020echo $ECHO_N "checking for X... $ECHO_C" >&6
3021
3022
3023# Check whether --with-x or --without-x was given.
3024if test "${with_x+set}" = set; then
3025 withval="$with_x"
3026
3027fi;
3028# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3029if test "x$with_x" = xno; then
3030 # The user explicitly disabled X.
3031 have_x=disabled
3032else
3033 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3034 # Both variables are already set.
3035 have_x=yes
3036 else
3037 if test "${ac_cv_have_x+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3039else
3040 # One or both of the vars are not set, and there is no cached value.
3041ac_x_includes=no ac_x_libraries=no
3042rm -fr conftest.dir
3043if mkdir conftest.dir; then
3044 cd conftest.dir
3045 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3046 cat >Imakefile <<'_ACEOF'
3047acfindx:
3048 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3049_ACEOF
3050 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3051 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3052 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3053 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3054 for ac_extension in a so sl; do
3055 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3056 test -f $ac_im_libdir/libX11.$ac_extension; then
3057 ac_im_usrlibdir=$ac_im_libdir; break
3058 fi
3059 done
3060 # Screen out bogus values from the imake configuration. They are
3061 # bogus both because they are the default anyway, and because
3062 # using them would break gcc on systems where it needs fixed includes.
3063 case $ac_im_incroot in
3064 /usr/include) ;;
3065 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3066 esac
3067 case $ac_im_usrlibdir in
3068 /usr/lib | /lib) ;;
3069 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3070 esac
3071 fi
3072 cd ..
3073 rm -fr conftest.dir
3074fi
3075
3076# Standard set of common directories for X headers.
3077# Check X11 before X11Rn because it is often a symlink to the current release.
3078ac_x_header_dirs='
3079/usr/X11/include
3080/usr/X11R6/include
3081/usr/X11R5/include
3082/usr/X11R4/include
3083
3084/usr/include/X11
3085/usr/include/X11R6
3086/usr/include/X11R5
3087/usr/include/X11R4
3088
3089/usr/local/X11/include
3090/usr/local/X11R6/include
3091/usr/local/X11R5/include
3092/usr/local/X11R4/include
3093
3094/usr/local/include/X11
3095/usr/local/include/X11R6
3096/usr/local/include/X11R5
3097/usr/local/include/X11R4
3098
3099/usr/X386/include
3100/usr/x386/include
3101/usr/XFree86/include/X11
3102
3103/usr/include
3104/usr/local/include
3105/usr/unsupported/include
3106/usr/athena/include
3107/usr/local/x11r5/include
3108/usr/lpp/Xamples/include
3109
3110/usr/openwin/include
3111/usr/openwin/share/include'
3112
3113if test "$ac_x_includes" = no; then
3114 # Guess where to find include files, by looking for Intrinsic.h.
3115 # First, try using that file with no special directory specified.
3116 cat >conftest.$ac_ext <<_ACEOF
3117/* confdefs.h. */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h. */
3122#include <X11/Intrinsic.h>
3123_ACEOF
3124if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3126 ac_status=$?
3127 grep -v '^ *+' conftest.er1 >conftest.err
3128 rm -f conftest.er1
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } >/dev/null; then
3132 if test -s conftest.err; then
3133 ac_cpp_err=$ac_cxx_preproc_warn_flag
3134 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3135 else
3136 ac_cpp_err=
3137 fi
3138else
3139 ac_cpp_err=yes
3140fi
3141if test -z "$ac_cpp_err"; then
3142 # We can compile using X headers with no special include directory.
3143ac_x_includes=
3144else
3145 echo "$as_me: failed program was:" >&5
3146sed 's/^/| /' conftest.$ac_ext >&5
3147
3148 for ac_dir in $ac_x_header_dirs; do
3149 if test -r "$ac_dir/X11/Intrinsic.h"; then
3150 ac_x_includes=$ac_dir
3151 break
3152 fi
3153done
3154fi
3155rm -f conftest.err conftest.$ac_ext
3156fi # $ac_x_includes = no
3157
3158if test "$ac_x_libraries" = no; then
3159 # Check for the libraries.
3160 # See if we find them without any special options.
3161 # Don't add to $LIBS permanently.
3162 ac_save_LIBS=$LIBS
3163 LIBS="-lXt $LIBS"
3164 cat >conftest.$ac_ext <<_ACEOF
3165/* confdefs.h. */
3166_ACEOF
3167cat confdefs.h >>conftest.$ac_ext
3168cat >>conftest.$ac_ext <<_ACEOF
3169/* end confdefs.h. */
3170#include <X11/Intrinsic.h>
3171int
3172main ()
3173{
3174XtMalloc (0)
3175 ;
3176 return 0;
3177}
3178_ACEOF
3179rm -f conftest.$ac_objext conftest$ac_exeext
3180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3181 (eval $ac_link) 2>conftest.er1
3182 ac_status=$?
3183 grep -v '^ *+' conftest.er1 >conftest.err
3184 rm -f conftest.er1
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } &&
3188 { ac_try='test -z "$ac_cxx_werror_flag"
3189 || test ! -s conftest.err'
3190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191 (eval $ac_try) 2>&5
3192 ac_status=$?
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); }; } &&
3195 { ac_try='test -s conftest$ac_exeext'
3196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197 (eval $ac_try) 2>&5
3198 ac_status=$?
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3201 LIBS=$ac_save_LIBS
3202# We can link X programs with no special library path.
3203ac_x_libraries=
3204else
3205 echo "$as_me: failed program was:" >&5
3206sed 's/^/| /' conftest.$ac_ext >&5
3207
3208LIBS=$ac_save_LIBS
3209for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3210do
3211 # Don't even attempt the hair of trying to link an X program!
3212 for ac_extension in a so sl; do
3213 if test -r $ac_dir/libXt.$ac_extension; then
3214 ac_x_libraries=$ac_dir
3215 break 2
3216 fi
3217 done
3218done
3219fi
3220rm -f conftest.err conftest.$ac_objext \
3221 conftest$ac_exeext conftest.$ac_ext
3222fi # $ac_x_libraries = no
3223
3224if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3225 # Didn't find X anywhere. Cache the known absence of X.
3226 ac_cv_have_x="have_x=no"
3227else
3228 # Record where we found X for the cache.
3229 ac_cv_have_x="have_x=yes \
3230 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3231fi
3232fi
3233
3234 fi
3235 eval "$ac_cv_have_x"
3236fi # $with_x != no
3237
3238if test "$have_x" != yes; then
3239 echo "$as_me:$LINENO: result: $have_x" >&5
3240echo "${ECHO_T}$have_x" >&6
3241 no_x=yes
3242else
3243 # If each of the values was on the command line, it overrides each guess.
3244 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3245 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3246 # Update the cache value to reflect the command line values.
3247 ac_cv_have_x="have_x=yes \
3248 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3249 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3250echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3251fi
3252
3253if test "$no_x" = yes; then
3254 # Not all programs may use this symbol, but it does not hurt to define it.
3255
3256cat >>confdefs.h <<\_ACEOF
3257#define X_DISPLAY_MISSING 1
3258_ACEOF
3259
3260 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3261else
3262 if test -n "$x_includes"; then
3263 X_CFLAGS="$X_CFLAGS -I$x_includes"
3264 fi
3265
3266 # It would also be nice to do this for all -L options, not just this one.
3267 if test -n "$x_libraries"; then
3268 X_LIBS="$X_LIBS -L$x_libraries"
3269 # For Solaris; some versions of Sun CC require a space after -R and
3270 # others require no space. Words are not sufficient . . . .
3271 case `(uname -sr) 2>/dev/null` in
3272 "SunOS 5"*)
3273 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3274echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3275 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3276 cat >conftest.$ac_ext <<_ACEOF
3277/* confdefs.h. */
3278_ACEOF
3279cat confdefs.h >>conftest.$ac_ext
3280cat >>conftest.$ac_ext <<_ACEOF
3281/* end confdefs.h. */
3282
3283int
3284main ()
3285{
3286
3287 ;
3288 return 0;
3289}
3290_ACEOF
3291rm -f conftest.$ac_objext conftest$ac_exeext
3292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3293 (eval $ac_link) 2>conftest.er1
3294 ac_status=$?
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } &&
3300 { ac_try='test -z "$ac_cxx_werror_flag"
3301 || test ! -s conftest.err'
3302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303 (eval $ac_try) 2>&5
3304 ac_status=$?
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }; } &&
3307 { ac_try='test -s conftest$ac_exeext'
3308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309 (eval $ac_try) 2>&5
3310 ac_status=$?
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }; }; then
3313 ac_R_nospace=yes
3314else
3315 echo "$as_me: failed program was:" >&5
3316sed 's/^/| /' conftest.$ac_ext >&5
3317
3318ac_R_nospace=no
3319fi
3320rm -f conftest.err conftest.$ac_objext \
3321 conftest$ac_exeext conftest.$ac_ext
3322 if test $ac_R_nospace = yes; then
3323 echo "$as_me:$LINENO: result: no" >&5
3324echo "${ECHO_T}no" >&6
3325 X_LIBS="$X_LIBS -R$x_libraries"
3326 else
3327 LIBS="$ac_xsave_LIBS -R $x_libraries"
3328 cat >conftest.$ac_ext <<_ACEOF
3329/* confdefs.h. */
3330_ACEOF
3331cat confdefs.h >>conftest.$ac_ext
3332cat >>conftest.$ac_ext <<_ACEOF
3333/* end confdefs.h. */
3334
3335int
3336main ()
3337{
3338
3339 ;
3340 return 0;
3341}
3342_ACEOF
3343rm -f conftest.$ac_objext conftest$ac_exeext
3344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3345 (eval $ac_link) 2>conftest.er1
3346 ac_status=$?
3347 grep -v '^ *+' conftest.er1 >conftest.err
3348 rm -f conftest.er1
3349 cat conftest.err >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } &&
3352 { ac_try='test -z "$ac_cxx_werror_flag"
3353 || test ! -s conftest.err'
3354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 (eval $ac_try) 2>&5
3356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; } &&
3359 { ac_try='test -s conftest$ac_exeext'
3360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 (eval $ac_try) 2>&5
3362 ac_status=$?
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }; }; then
3365 ac_R_space=yes
3366else
3367 echo "$as_me: failed program was:" >&5
3368sed 's/^/| /' conftest.$ac_ext >&5
3369
3370ac_R_space=no
3371fi
3372rm -f conftest.err conftest.$ac_objext \
3373 conftest$ac_exeext conftest.$ac_ext
3374 if test $ac_R_space = yes; then
3375 echo "$as_me:$LINENO: result: yes" >&5
3376echo "${ECHO_T}yes" >&6
3377 X_LIBS="$X_LIBS -R $x_libraries"
3378 else
3379 echo "$as_me:$LINENO: result: neither works" >&5
3380echo "${ECHO_T}neither works" >&6
3381 fi
3382 fi
3383 LIBS=$ac_xsave_LIBS
3384 esac
3385 fi
3386
3387 # Check for system-dependent libraries X programs must link with.
3388 # Do this before checking for the system-independent R6 libraries
3389 # (-lICE), since we may need -lsocket or whatever for X linking.
3390
3391 if test "$ISC" = yes; then
3392 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3393 else
3394 # Martyn Johnson says this is needed for Ultrix, if the X
3395 # libraries were built with DECnet support. And Karl Berry says
3396 # the Alpha needs dnet_stub (dnet does not exist).
3397 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3398 cat >conftest.$ac_ext <<_ACEOF
3399/* confdefs.h. */
3400_ACEOF
3401cat confdefs.h >>conftest.$ac_ext
3402cat >>conftest.$ac_ext <<_ACEOF
3403/* end confdefs.h. */
3404
3405/* Override any gcc2 internal prototype to avoid an error. */
3406#ifdef __cplusplus
3407extern "C"
3408#endif
3409/* We use char because int might match the return type of a gcc2
3410 builtin and then its argument prototype would still apply. */
3411char XOpenDisplay ();
3412int
3413main ()
3414{
3415XOpenDisplay ();
3416 ;
3417 return 0;
3418}
3419_ACEOF
3420rm -f conftest.$ac_objext conftest$ac_exeext
3421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3422 (eval $ac_link) 2>conftest.er1
3423 ac_status=$?
3424 grep -v '^ *+' conftest.er1 >conftest.err
3425 rm -f conftest.er1
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } &&
3429 { ac_try='test -z "$ac_cxx_werror_flag"
3430 || test ! -s conftest.err'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 (eval $ac_try) 2>&5
3433 ac_status=$?
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; } &&
3436 { ac_try='test -s conftest$ac_exeext'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 (eval $ac_try) 2>&5
3439 ac_status=$?
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; }; then
3442 :
3443else
3444 echo "$as_me: failed program was:" >&5
3445sed 's/^/| /' conftest.$ac_ext >&5
3446
3447echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3448echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3449if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451else
3452 ac_check_lib_save_LIBS=$LIBS
3453LIBS="-ldnet $LIBS"
3454cat >conftest.$ac_ext <<_ACEOF
3455/* confdefs.h. */
3456_ACEOF
3457cat confdefs.h >>conftest.$ac_ext
3458cat >>conftest.$ac_ext <<_ACEOF
3459/* end confdefs.h. */
3460
3461/* Override any gcc2 internal prototype to avoid an error. */
3462#ifdef __cplusplus
3463extern "C"
3464#endif
3465/* We use char because int might match the return type of a gcc2
3466 builtin and then its argument prototype would still apply. */
3467char dnet_ntoa ();
3468int
3469main ()
3470{
3471dnet_ntoa ();
3472 ;
3473 return 0;
3474}
3475_ACEOF
3476rm -f conftest.$ac_objext conftest$ac_exeext
3477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3478 (eval $ac_link) 2>conftest.er1
3479 ac_status=$?
3480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } &&
3485 { ac_try='test -z "$ac_cxx_werror_flag"
3486 || test ! -s conftest.err'
3487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488 (eval $ac_try) 2>&5
3489 ac_status=$?
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; } &&
3492 { ac_try='test -s conftest$ac_exeext'
3493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494 (eval $ac_try) 2>&5
3495 ac_status=$?
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }; }; then
3498 ac_cv_lib_dnet_dnet_ntoa=yes
3499else
3500 echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
3503ac_cv_lib_dnet_dnet_ntoa=no
3504fi
3505rm -f conftest.err conftest.$ac_objext \
3506 conftest$ac_exeext conftest.$ac_ext
3507LIBS=$ac_check_lib_save_LIBS
3508fi
3509echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3510echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3511if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3512 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3513fi
3514
3515 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3516 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3517echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3518if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3520else
3521 ac_check_lib_save_LIBS=$LIBS
3522LIBS="-ldnet_stub $LIBS"
3523cat >conftest.$ac_ext <<_ACEOF
3524/* confdefs.h. */
3525_ACEOF
3526cat confdefs.h >>conftest.$ac_ext
3527cat >>conftest.$ac_ext <<_ACEOF
3528/* end confdefs.h. */
3529
3530/* Override any gcc2 internal prototype to avoid an error. */
3531#ifdef __cplusplus
3532extern "C"
3533#endif
3534/* We use char because int might match the return type of a gcc2
3535 builtin and then its argument prototype would still apply. */
3536char dnet_ntoa ();
3537int
3538main ()
3539{
3540dnet_ntoa ();
3541 ;
3542 return 0;
3543}
3544_ACEOF
3545rm -f conftest.$ac_objext conftest$ac_exeext
3546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3547 (eval $ac_link) 2>conftest.er1
3548 ac_status=$?
3549 grep -v '^ *+' conftest.er1 >conftest.err
3550 rm -f conftest.er1
3551 cat conftest.err >&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); } &&
3554 { ac_try='test -z "$ac_cxx_werror_flag"
3555 || test ! -s conftest.err'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 (eval $ac_try) 2>&5
3558 ac_status=$?
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; } &&
3561 { ac_try='test -s conftest$ac_exeext'
3562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563 (eval $ac_try) 2>&5
3564 ac_status=$?
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }; }; then
3567 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3568else
3569 echo "$as_me: failed program was:" >&5
3570sed 's/^/| /' conftest.$ac_ext >&5
3571
3572ac_cv_lib_dnet_stub_dnet_ntoa=no
3573fi
3574rm -f conftest.err conftest.$ac_objext \
3575 conftest$ac_exeext conftest.$ac_ext
3576LIBS=$ac_check_lib_save_LIBS
3577fi
3578echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3579echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3580if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3581 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3582fi
3583
3584 fi
3585fi
3586rm -f conftest.err conftest.$ac_objext \
3587 conftest$ac_exeext conftest.$ac_ext
3588 LIBS="$ac_xsave_LIBS"
3589
3590 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3591 # to get the SysV transport functions.
3592 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3593 # needs -lnsl.
3594 # The nsl library prevents programs from opening the X display
3595 # on Irix 5.2, according to T.E. Dickey.
3596 # The functions gethostbyname, getservbyname, and inet_addr are
3597 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3598 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3599echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3600if test "${ac_cv_func_gethostbyname+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3602else
3603 cat >conftest.$ac_ext <<_ACEOF
3604/* confdefs.h. */
3605_ACEOF
3606cat confdefs.h >>conftest.$ac_ext
3607cat >>conftest.$ac_ext <<_ACEOF
3608/* end confdefs.h. */
3609/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3611#define gethostbyname innocuous_gethostbyname
3612
3613/* System header to define __stub macros and hopefully few prototypes,
3614 which can conflict with char gethostbyname (); below.
3615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3616 <limits.h> exists even on freestanding compilers. */
3617
3618#ifdef __STDC__
3619# include <limits.h>
3620#else
3621# include <assert.h>
3622#endif
3623
3624#undef gethostbyname
3625
3626/* Override any gcc2 internal prototype to avoid an error. */
3627#ifdef __cplusplus
3628extern "C"
3629{
3630#endif
3631/* We use char because int might match the return type of a gcc2
3632 builtin and then its argument prototype would still apply. */
3633char gethostbyname ();
3634/* The GNU C library defines this for functions which it implements
3635 to always fail with ENOSYS. Some functions are actually named
3636 something starting with __ and the normal name is an alias. */
3637#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3638choke me
3639#else
3640char (*f) () = gethostbyname;
3641#endif
3642#ifdef __cplusplus
3643}
3644#endif
3645
3646int
3647main ()
3648{
3649return f != gethostbyname;
3650 ;
3651 return 0;
3652}
3653_ACEOF
3654rm -f conftest.$ac_objext conftest$ac_exeext
3655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3656 (eval $ac_link) 2>conftest.er1
3657 ac_status=$?
3658 grep -v '^ *+' conftest.er1 >conftest.err
3659 rm -f conftest.er1
3660 cat conftest.err >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } &&
3663 { ac_try='test -z "$ac_cxx_werror_flag"
3664 || test ! -s conftest.err'
3665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666 (eval $ac_try) 2>&5
3667 ac_status=$?
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }; } &&
3670 { ac_try='test -s conftest$ac_exeext'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; }; then
3676 ac_cv_func_gethostbyname=yes
3677else
3678 echo "$as_me: failed program was:" >&5
3679sed 's/^/| /' conftest.$ac_ext >&5
3680
3681ac_cv_func_gethostbyname=no
3682fi
3683rm -f conftest.err conftest.$ac_objext \
3684 conftest$ac_exeext conftest.$ac_ext
3685fi
3686echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3687echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3688
3689 if test $ac_cv_func_gethostbyname = no; then
3690 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3691echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3692if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694else
3695 ac_check_lib_save_LIBS=$LIBS
3696LIBS="-lnsl $LIBS"
3697cat >conftest.$ac_ext <<_ACEOF
3698/* confdefs.h. */
3699_ACEOF
3700cat confdefs.h >>conftest.$ac_ext
3701cat >>conftest.$ac_ext <<_ACEOF
3702/* end confdefs.h. */
3703
3704/* Override any gcc2 internal prototype to avoid an error. */
3705#ifdef __cplusplus
3706extern "C"
3707#endif
3708/* We use char because int might match the return type of a gcc2
3709 builtin and then its argument prototype would still apply. */
3710char gethostbyname ();
3711int
3712main ()
3713{
3714gethostbyname ();
3715 ;
3716 return 0;
3717}
3718_ACEOF
3719rm -f conftest.$ac_objext conftest$ac_exeext
3720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3721 (eval $ac_link) 2>conftest.er1
3722 ac_status=$?
3723 grep -v '^ *+' conftest.er1 >conftest.err
3724 rm -f conftest.er1
3725 cat conftest.err >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } &&
3728 { ac_try='test -z "$ac_cxx_werror_flag"
3729 || test ! -s conftest.err'
3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731 (eval $ac_try) 2>&5
3732 ac_status=$?
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; } &&
3735 { ac_try='test -s conftest$ac_exeext'
3736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737 (eval $ac_try) 2>&5
3738 ac_status=$?
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); }; }; then
3741 ac_cv_lib_nsl_gethostbyname=yes
3742else
3743 echo "$as_me: failed program was:" >&5
3744sed 's/^/| /' conftest.$ac_ext >&5
3745
3746ac_cv_lib_nsl_gethostbyname=no
3747fi
3748rm -f conftest.err conftest.$ac_objext \
3749 conftest$ac_exeext conftest.$ac_ext
3750LIBS=$ac_check_lib_save_LIBS
3751fi
3752echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3753echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3754if test $ac_cv_lib_nsl_gethostbyname = yes; then
3755 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3756fi
3757
3758 if test $ac_cv_lib_nsl_gethostbyname = no; then
3759 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3760echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3761if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3763else
3764 ac_check_lib_save_LIBS=$LIBS
3765LIBS="-lbsd $LIBS"
3766cat >conftest.$ac_ext <<_ACEOF
3767/* confdefs.h. */
3768_ACEOF
3769cat confdefs.h >>conftest.$ac_ext
3770cat >>conftest.$ac_ext <<_ACEOF
3771/* end confdefs.h. */
3772
3773/* Override any gcc2 internal prototype to avoid an error. */
3774#ifdef __cplusplus
3775extern "C"
3776#endif
3777/* We use char because int might match the return type of a gcc2
3778 builtin and then its argument prototype would still apply. */
3779char gethostbyname ();
3780int
3781main ()
3782{
3783gethostbyname ();
3784 ;
3785 return 0;
3786}
3787_ACEOF
3788rm -f conftest.$ac_objext conftest$ac_exeext
3789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3790 (eval $ac_link) 2>conftest.er1
3791 ac_status=$?
3792 grep -v '^ *+' conftest.er1 >conftest.err
3793 rm -f conftest.er1
3794 cat conftest.err >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); } &&
3797 { ac_try='test -z "$ac_cxx_werror_flag"
3798 || test ! -s conftest.err'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 (eval $ac_try) 2>&5
3801 ac_status=$?
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; } &&
3804 { ac_try='test -s conftest$ac_exeext'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 (eval $ac_try) 2>&5
3807 ac_status=$?
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; }; then
3810 ac_cv_lib_bsd_gethostbyname=yes
3811else
3812 echo "$as_me: failed program was:" >&5
3813sed 's/^/| /' conftest.$ac_ext >&5
3814
3815ac_cv_lib_bsd_gethostbyname=no
3816fi
3817rm -f conftest.err conftest.$ac_objext \
3818 conftest$ac_exeext conftest.$ac_ext
3819LIBS=$ac_check_lib_save_LIBS
3820fi
3821echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3822echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3823if test $ac_cv_lib_bsd_gethostbyname = yes; then
3824 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3825fi
3826
3827 fi
3828 fi
3829
3830 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3831 # socket/setsockopt and other routines are undefined under SCO ODT
3832 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3833 # on later versions), says Simon Leinen: it contains gethostby*
3834 # variants that don't use the name server (or something). -lsocket
3835 # must be given before -lnsl if both are needed. We assume that
3836 # if connect needs -lnsl, so does gethostbyname.
3837 echo "$as_me:$LINENO: checking for connect" >&5
3838echo $ECHO_N "checking for connect... $ECHO_C" >&6
3839if test "${ac_cv_func_connect+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3841else
3842 cat >conftest.$ac_ext <<_ACEOF
3843/* confdefs.h. */
3844_ACEOF
3845cat confdefs.h >>conftest.$ac_ext
3846cat >>conftest.$ac_ext <<_ACEOF
3847/* end confdefs.h. */
3848/* Define connect to an innocuous variant, in case <limits.h> declares connect.
3849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3850#define connect innocuous_connect
3851
3852/* System header to define __stub macros and hopefully few prototypes,
3853 which can conflict with char connect (); below.
3854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3855 <limits.h> exists even on freestanding compilers. */
3856
3857#ifdef __STDC__
3858# include <limits.h>
3859#else
3860# include <assert.h>
3861#endif
3862
3863#undef connect
3864
3865/* Override any gcc2 internal prototype to avoid an error. */
3866#ifdef __cplusplus
3867extern "C"
3868{
3869#endif
3870/* We use char because int might match the return type of a gcc2
3871 builtin and then its argument prototype would still apply. */
3872char connect ();
3873/* The GNU C library defines this for functions which it implements
3874 to always fail with ENOSYS. Some functions are actually named
3875 something starting with __ and the normal name is an alias. */
3876#if defined (__stub_connect) || defined (__stub___connect)
3877choke me
3878#else
3879char (*f) () = connect;
3880#endif
3881#ifdef __cplusplus
3882}
3883#endif
3884
3885int
3886main ()
3887{
3888return f != connect;
3889 ;
3890 return 0;
3891}
3892_ACEOF
3893rm -f conftest.$ac_objext conftest$ac_exeext
3894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3895 (eval $ac_link) 2>conftest.er1
3896 ac_status=$?
3897 grep -v '^ *+' conftest.er1 >conftest.err
3898 rm -f conftest.er1
3899 cat conftest.err >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } &&
3902 { ac_try='test -z "$ac_cxx_werror_flag"
3903 || test ! -s conftest.err'
3904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905 (eval $ac_try) 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; } &&
3909 { ac_try='test -s conftest$ac_exeext'
3910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911 (eval $ac_try) 2>&5
3912 ac_status=$?
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); }; }; then
3915 ac_cv_func_connect=yes
3916else
3917 echo "$as_me: failed program was:" >&5
3918sed 's/^/| /' conftest.$ac_ext >&5
3919
3920ac_cv_func_connect=no
3921fi
3922rm -f conftest.err conftest.$ac_objext \
3923 conftest$ac_exeext conftest.$ac_ext
3924fi
3925echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3926echo "${ECHO_T}$ac_cv_func_connect" >&6
3927
3928 if test $ac_cv_func_connect = no; then
3929 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3930echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3931if test "${ac_cv_lib_socket_connect+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933else
3934 ac_check_lib_save_LIBS=$LIBS
3935LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3936cat >conftest.$ac_ext <<_ACEOF
3937/* confdefs.h. */
3938_ACEOF
3939cat confdefs.h >>conftest.$ac_ext
3940cat >>conftest.$ac_ext <<_ACEOF
3941/* end confdefs.h. */
3942
3943/* Override any gcc2 internal prototype to avoid an error. */
3944#ifdef __cplusplus
3945extern "C"
3946#endif
3947/* We use char because int might match the return type of a gcc2
3948 builtin and then its argument prototype would still apply. */
3949char connect ();
3950int
3951main ()
3952{
3953connect ();
3954 ;
3955 return 0;
3956}
3957_ACEOF
3958rm -f conftest.$ac_objext conftest$ac_exeext
3959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3960 (eval $ac_link) 2>conftest.er1
3961 ac_status=$?
3962 grep -v '^ *+' conftest.er1 >conftest.err
3963 rm -f conftest.er1
3964 cat conftest.err >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); } &&
3967 { ac_try='test -z "$ac_cxx_werror_flag"
3968 || test ! -s conftest.err'
3969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970 (eval $ac_try) 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; } &&
3974 { ac_try='test -s conftest$ac_exeext'
3975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976 (eval $ac_try) 2>&5
3977 ac_status=$?
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; }; then
3980 ac_cv_lib_socket_connect=yes
3981else
3982 echo "$as_me: failed program was:" >&5
3983sed 's/^/| /' conftest.$ac_ext >&5
3984
3985ac_cv_lib_socket_connect=no
3986fi
3987rm -f conftest.err conftest.$ac_objext \
3988 conftest$ac_exeext conftest.$ac_ext
3989LIBS=$ac_check_lib_save_LIBS
3990fi
3991echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3992echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3993if test $ac_cv_lib_socket_connect = yes; then
3994 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3995fi
3996
3997 fi
3998
3999 # Guillermo Gomez says -lposix is necessary on A/UX.
4000 echo "$as_me:$LINENO: checking for remove" >&5
4001echo $ECHO_N "checking for remove... $ECHO_C" >&6
4002if test "${ac_cv_func_remove+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4004else
4005 cat >conftest.$ac_ext <<_ACEOF
4006/* confdefs.h. */
4007_ACEOF
4008cat confdefs.h >>conftest.$ac_ext
4009cat >>conftest.$ac_ext <<_ACEOF
4010/* end confdefs.h. */
4011/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4013#define remove innocuous_remove
4014
4015/* System header to define __stub macros and hopefully few prototypes,
4016 which can conflict with char remove (); below.
4017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4018 <limits.h> exists even on freestanding compilers. */
4019
4020#ifdef __STDC__
4021# include <limits.h>
4022#else
4023# include <assert.h>
4024#endif
4025
4026#undef remove
4027
4028/* Override any gcc2 internal prototype to avoid an error. */
4029#ifdef __cplusplus
4030extern "C"
4031{
4032#endif
4033/* We use char because int might match the return type of a gcc2
4034 builtin and then its argument prototype would still apply. */
4035char remove ();
4036/* The GNU C library defines this for functions which it implements
4037 to always fail with ENOSYS. Some functions are actually named
4038 something starting with __ and the normal name is an alias. */
4039#if defined (__stub_remove) || defined (__stub___remove)
4040choke me
4041#else
4042char (*f) () = remove;
4043#endif
4044#ifdef __cplusplus
4045}
4046#endif
4047
4048int
4049main ()
4050{
4051return f != remove;
4052 ;
4053 return 0;
4054}
4055_ACEOF
4056rm -f conftest.$ac_objext conftest$ac_exeext
4057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4058 (eval $ac_link) 2>conftest.er1
4059 ac_status=$?
4060 grep -v '^ *+' conftest.er1 >conftest.err
4061 rm -f conftest.er1
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_cxx_werror_flag"
4066 || test ! -s conftest.err'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 (eval $ac_try) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try='test -s conftest$ac_exeext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 (eval $ac_try) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 ac_cv_func_remove=yes
4079else
4080 echo "$as_me: failed program was:" >&5
4081sed 's/^/| /' conftest.$ac_ext >&5
4082
4083ac_cv_func_remove=no
4084fi
4085rm -f conftest.err conftest.$ac_objext \
4086 conftest$ac_exeext conftest.$ac_ext
4087fi
4088echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4089echo "${ECHO_T}$ac_cv_func_remove" >&6
4090
4091 if test $ac_cv_func_remove = no; then
4092 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4093echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4094if test "${ac_cv_lib_posix_remove+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4096else
4097 ac_check_lib_save_LIBS=$LIBS
4098LIBS="-lposix $LIBS"
4099cat >conftest.$ac_ext <<_ACEOF
4100/* confdefs.h. */
4101_ACEOF
4102cat confdefs.h >>conftest.$ac_ext
4103cat >>conftest.$ac_ext <<_ACEOF
4104/* end confdefs.h. */
4105
4106/* Override any gcc2 internal prototype to avoid an error. */
4107#ifdef __cplusplus
4108extern "C"
4109#endif
4110/* We use char because int might match the return type of a gcc2
4111 builtin and then its argument prototype would still apply. */
4112char remove ();
4113int
4114main ()
4115{
4116remove ();
4117 ;
4118 return 0;
4119}
4120_ACEOF
4121rm -f conftest.$ac_objext conftest$ac_exeext
4122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4123 (eval $ac_link) 2>conftest.er1
4124 ac_status=$?
4125 grep -v '^ *+' conftest.er1 >conftest.err
4126 rm -f conftest.er1
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } &&
4130 { ac_try='test -z "$ac_cxx_werror_flag"
4131 || test ! -s conftest.err'
4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133 (eval $ac_try) 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; } &&
4137 { ac_try='test -s conftest$ac_exeext'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 (eval $ac_try) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; }; then
4143 ac_cv_lib_posix_remove=yes
4144else
4145 echo "$as_me: failed program was:" >&5
4146sed 's/^/| /' conftest.$ac_ext >&5
4147
4148ac_cv_lib_posix_remove=no
4149fi
4150rm -f conftest.err conftest.$ac_objext \
4151 conftest$ac_exeext conftest.$ac_ext
4152LIBS=$ac_check_lib_save_LIBS
4153fi
4154echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4155echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4156if test $ac_cv_lib_posix_remove = yes; then
4157 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4158fi
4159
4160 fi
4161
4162 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4163 echo "$as_me:$LINENO: checking for shmat" >&5
4164echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4165if test "${ac_cv_func_shmat+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4167else
4168 cat >conftest.$ac_ext <<_ACEOF
4169/* confdefs.h. */
4170_ACEOF
4171cat confdefs.h >>conftest.$ac_ext
4172cat >>conftest.$ac_ext <<_ACEOF
4173/* end confdefs.h. */
4174/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4176#define shmat innocuous_shmat
4177
4178/* System header to define __stub macros and hopefully few prototypes,
4179 which can conflict with char shmat (); below.
4180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4181 <limits.h> exists even on freestanding compilers. */
4182
4183#ifdef __STDC__
4184# include <limits.h>
4185#else
4186# include <assert.h>
4187#endif
4188
4189#undef shmat
4190
4191/* Override any gcc2 internal prototype to avoid an error. */
4192#ifdef __cplusplus
4193extern "C"
4194{
4195#endif
4196/* We use char because int might match the return type of a gcc2
4197 builtin and then its argument prototype would still apply. */
4198char shmat ();
4199/* The GNU C library defines this for functions which it implements
4200 to always fail with ENOSYS. Some functions are actually named
4201 something starting with __ and the normal name is an alias. */
4202#if defined (__stub_shmat) || defined (__stub___shmat)
4203choke me
4204#else
4205char (*f) () = shmat;
4206#endif
4207#ifdef __cplusplus
4208}
4209#endif
4210
4211int
4212main ()
4213{
4214return f != shmat;
4215 ;
4216 return 0;
4217}
4218_ACEOF
4219rm -f conftest.$ac_objext conftest$ac_exeext
4220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4221 (eval $ac_link) 2>conftest.er1
4222 ac_status=$?
4223 grep -v '^ *+' conftest.er1 >conftest.err
4224 rm -f conftest.er1
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try='test -z "$ac_cxx_werror_flag"
4229 || test ! -s conftest.err'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 (eval $ac_try) 2>&5
4232 ac_status=$?
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; } &&
4235 { ac_try='test -s conftest$ac_exeext'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 (eval $ac_try) 2>&5
4238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
4241 ac_cv_func_shmat=yes
4242else
4243 echo "$as_me: failed program was:" >&5
4244sed 's/^/| /' conftest.$ac_ext >&5
4245
4246ac_cv_func_shmat=no
4247fi
4248rm -f conftest.err conftest.$ac_objext \
4249 conftest$ac_exeext conftest.$ac_ext
4250fi
4251echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4252echo "${ECHO_T}$ac_cv_func_shmat" >&6
4253
4254 if test $ac_cv_func_shmat = no; then
4255 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4256echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4257if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4259else
4260 ac_check_lib_save_LIBS=$LIBS
4261LIBS="-lipc $LIBS"
4262cat >conftest.$ac_ext <<_ACEOF
4263/* confdefs.h. */
4264_ACEOF
4265cat confdefs.h >>conftest.$ac_ext
4266cat >>conftest.$ac_ext <<_ACEOF
4267/* end confdefs.h. */
4268
4269/* Override any gcc2 internal prototype to avoid an error. */
4270#ifdef __cplusplus
4271extern "C"
4272#endif
4273/* We use char because int might match the return type of a gcc2
4274 builtin and then its argument prototype would still apply. */
4275char shmat ();
4276int
4277main ()
4278{
4279shmat ();
4280 ;
4281 return 0;
4282}
4283_ACEOF
4284rm -f conftest.$ac_objext conftest$ac_exeext
4285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4286 (eval $ac_link) 2>conftest.er1
4287 ac_status=$?
4288 grep -v '^ *+' conftest.er1 >conftest.err
4289 rm -f conftest.er1
4290 cat conftest.err >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } &&
4293 { ac_try='test -z "$ac_cxx_werror_flag"
4294 || test ! -s conftest.err'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 (eval $ac_try) 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; } &&
4300 { ac_try='test -s conftest$ac_exeext'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 (eval $ac_try) 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4306 ac_cv_lib_ipc_shmat=yes
4307else
4308 echo "$as_me: failed program was:" >&5
4309sed 's/^/| /' conftest.$ac_ext >&5
4310
4311ac_cv_lib_ipc_shmat=no
4312fi
4313rm -f conftest.err conftest.$ac_objext \
4314 conftest$ac_exeext conftest.$ac_ext
4315LIBS=$ac_check_lib_save_LIBS
4316fi
4317echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4318echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4319if test $ac_cv_lib_ipc_shmat = yes; then
4320 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4321fi
4322
4323 fi
4324 fi
4325
4326 # Check for libraries that X11R6 Xt/Xaw programs need.
4327 ac_save_LDFLAGS=$LDFLAGS
4328 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4329 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4330 # check for ICE first), but we must link in the order -lSM -lICE or
4331 # we get undefined symbols. So assume we have SM if we have ICE.
4332 # These have to be linked with before -lX11, unlike the other
4333 # libraries we check for below, so use a different variable.
4334 # John Interrante, Karl Berry
4335 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4336echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4337if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339else
4340 ac_check_lib_save_LIBS=$LIBS
4341LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4342cat >conftest.$ac_ext <<_ACEOF
4343/* confdefs.h. */
4344_ACEOF
4345cat confdefs.h >>conftest.$ac_ext
4346cat >>conftest.$ac_ext <<_ACEOF
4347/* end confdefs.h. */
4348
4349/* Override any gcc2 internal prototype to avoid an error. */
4350#ifdef __cplusplus
4351extern "C"
4352#endif
4353/* We use char because int might match the return type of a gcc2
4354 builtin and then its argument prototype would still apply. */
4355char IceConnectionNumber ();
4356int
4357main ()
4358{
4359IceConnectionNumber ();
4360 ;
4361 return 0;
4362}
4363_ACEOF
4364rm -f conftest.$ac_objext conftest$ac_exeext
4365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4366 (eval $ac_link) 2>conftest.er1
4367 ac_status=$?
4368 grep -v '^ *+' conftest.er1 >conftest.err
4369 rm -f conftest.er1
4370 cat conftest.err >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } &&
4373 { ac_try='test -z "$ac_cxx_werror_flag"
4374 || test ! -s conftest.err'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 (eval $ac_try) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; } &&
4380 { ac_try='test -s conftest$ac_exeext'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382 (eval $ac_try) 2>&5
4383 ac_status=$?
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; }; then
4386 ac_cv_lib_ICE_IceConnectionNumber=yes
4387else
4388 echo "$as_me: failed program was:" >&5
4389sed 's/^/| /' conftest.$ac_ext >&5
4390
4391ac_cv_lib_ICE_IceConnectionNumber=no
4392fi
4393rm -f conftest.err conftest.$ac_objext \
4394 conftest$ac_exeext conftest.$ac_ext
4395LIBS=$ac_check_lib_save_LIBS
4396fi
4397echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4398echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4399if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4400 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4401fi
4402
4403 LDFLAGS=$ac_save_LDFLAGS
4404
4405fi
4406
4407
4408
4409# Check whether --with-installed-zlib or --without-installed-zlib was given.
4410if test "${with_installed_zlib+set}" = set; then
4411 withval="$with_installed_zlib"
4412
4413fi;
4414
4415if test "$with_installed_zlib" = yes; then
4416 echo "using installed zlib"
4417 ZLIB_LIB=-lz
4418else
4419 ZLIB_DIR=zlib
4420 ZLIB_INCLUDE='-I$(top_srcdir)/zlib'
4421 ZLIB_LIB='$(top_srcdir)/zlib/libz.a'
4422 echo "configuring zlib..."
4423 (cd zlib; ./configure)
4424 echo "...done configuring zlib"
4425fi
4426
4427
4428
4429
4430
4431
4432# Check whether --with-installed-jpeg or --without-installed-jpeg was given.
4433if test "${with_installed_jpeg+set}" = set; then
4434 withval="$with_installed_jpeg"
4435
4436fi;
4437
4438if test "$with_installed_jpeg" = yes; then
4439 echo "using installed jpeg"
4440 JPEG_LIB=-ljpeg
4441else
4442 JPEG_DIR=jpeg/build
4443 JPEG_INCLUDE='-I$(top_srcdir)/jpeg'
4444 JPEG_LIB='$(top_srcdir)/jpeg/build/libjpeg.a'
4445 echo "configuring jpeg..."
4446 (mkdir jpeg/build; cd jpeg/build; ../configure)
4447 echo "...done configuring jpeg"
4448fi
4449
4450
4451
4452
4453
4454# Check whether --enable-vncconfig or --disable-vncconfig was given.
4455if test "${enable_vncconfig+set}" = set; then
4456 enableval="$enable_vncconfig"
4457
4458fi;
4459if test "$enable_vncconfig" = no; then
4460 echo "vncconfig utility will not be built"
4461 VNCCONFIG_DIR=
4462else
4463 VNCCONFIG_DIR='vncconfig_unix'
4464fi
4465
4466
4467echo "$as_me:$LINENO: checking for XTestGrabControl in -lXtst" >&5
4468echo $ECHO_N "checking for XTestGrabControl in -lXtst... $ECHO_C" >&6
4469if test "${ac_cv_lib_Xtst_XTestGrabControl+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4471else
4472 ac_check_lib_save_LIBS=$LIBS
4473LIBS="-lXtst "$X_LIBS" -lXext -lX11 $LIBS"
4474cat >conftest.$ac_ext <<_ACEOF
4475/* confdefs.h. */
4476_ACEOF
4477cat confdefs.h >>conftest.$ac_ext
4478cat >>conftest.$ac_ext <<_ACEOF
4479/* end confdefs.h. */
4480
4481/* Override any gcc2 internal prototype to avoid an error. */
4482#ifdef __cplusplus
4483extern "C"
4484#endif
4485/* We use char because int might match the return type of a gcc2
4486 builtin and then its argument prototype would still apply. */
4487char XTestGrabControl ();
4488int
4489main ()
4490{
4491XTestGrabControl ();
4492 ;
4493 return 0;
4494}
4495_ACEOF
4496rm -f conftest.$ac_objext conftest$ac_exeext
4497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4498 (eval $ac_link) 2>conftest.er1
4499 ac_status=$?
4500 grep -v '^ *+' conftest.er1 >conftest.err
4501 rm -f conftest.er1
4502 cat conftest.err >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } &&
4505 { ac_try='test -z "$ac_cxx_werror_flag"
4506 || test ! -s conftest.err'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 (eval $ac_try) 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; } &&
4512 { ac_try='test -s conftest$ac_exeext'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 (eval $ac_try) 2>&5
4515 ac_status=$?
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4518 ac_cv_lib_Xtst_XTestGrabControl=yes
4519else
4520 echo "$as_me: failed program was:" >&5
4521sed 's/^/| /' conftest.$ac_ext >&5
4522
4523ac_cv_lib_Xtst_XTestGrabControl=no
4524fi
4525rm -f conftest.err conftest.$ac_objext \
4526 conftest$ac_exeext conftest.$ac_ext
4527LIBS=$ac_check_lib_save_LIBS
4528fi
4529echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestGrabControl" >&5
4530echo "${ECHO_T}$ac_cv_lib_Xtst_XTestGrabControl" >&6
4531if test $ac_cv_lib_Xtst_XTestGrabControl = yes; then
4532 USE_XTEST=yes
4533else
4534 USE_XTEST=
4535fi
4536
4537if test "$USE_XTEST" = yes; then
4538 XTEST_DEFINE='-DHAVE_XTEST'
4539 XTEST_LIB=-lXtst
4540else
4541 echo Warning: No XTest extension, building x0vncserver view-only
4542 XTEST_DEFINE=
4543 XTEST_LIB=
4544fi
4545
4546
4547
4548if test "$USE_READDISPLAY" = yes; then
4549 READDISPLAY_DEFINE='-DHAVE_READDISPLAY'
4550elif test "$USE_SUN_OVL" = yes; then
4551 READDISPLAY_DEFINE='-DHAVE_SUN_OVL'
4552else
4553 READDISPLAY_DEFINE=
4554fi
4555
4556
4557echo "$as_me:$LINENO: checking for vsnprintf" >&5
4558echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
4559if test "${ac_cv_func_vsnprintf+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4561else
4562 cat >conftest.$ac_ext <<_ACEOF
4563/* confdefs.h. */
4564_ACEOF
4565cat confdefs.h >>conftest.$ac_ext
4566cat >>conftest.$ac_ext <<_ACEOF
4567/* end confdefs.h. */
4568/* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
4569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4570#define vsnprintf innocuous_vsnprintf
4571
4572/* System header to define __stub macros and hopefully few prototypes,
4573 which can conflict with char vsnprintf (); below.
4574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4575 <limits.h> exists even on freestanding compilers. */
4576
4577#ifdef __STDC__
4578# include <limits.h>
4579#else
4580# include <assert.h>
4581#endif
4582
4583#undef vsnprintf
4584
4585/* Override any gcc2 internal prototype to avoid an error. */
4586#ifdef __cplusplus
4587extern "C"
4588{
4589#endif
4590/* We use char because int might match the return type of a gcc2
4591 builtin and then its argument prototype would still apply. */
4592char vsnprintf ();
4593/* The GNU C library defines this for functions which it implements
4594 to always fail with ENOSYS. Some functions are actually named
4595 something starting with __ and the normal name is an alias. */
4596#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
4597choke me
4598#else
4599char (*f) () = vsnprintf;
4600#endif
4601#ifdef __cplusplus
4602}
4603#endif
4604
4605int
4606main ()
4607{
4608return f != vsnprintf;
4609 ;
4610 return 0;
4611}
4612_ACEOF
4613rm -f conftest.$ac_objext conftest$ac_exeext
4614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4615 (eval $ac_link) 2>conftest.er1
4616 ac_status=$?
4617 grep -v '^ *+' conftest.er1 >conftest.err
4618 rm -f conftest.er1
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } &&
4622 { ac_try='test -z "$ac_cxx_werror_flag"
4623 || test ! -s conftest.err'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 (eval $ac_try) 2>&5
4626 ac_status=$?
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; } &&
4629 { ac_try='test -s conftest$ac_exeext'
4630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 (eval $ac_try) 2>&5
4632 ac_status=$?
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; }; then
4635 ac_cv_func_vsnprintf=yes
4636else
4637 echo "$as_me: failed program was:" >&5
4638sed 's/^/| /' conftest.$ac_ext >&5
4639
4640ac_cv_func_vsnprintf=no
4641fi
4642rm -f conftest.err conftest.$ac_objext \
4643 conftest$ac_exeext conftest.$ac_ext
4644fi
4645echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
4646echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
4647if test $ac_cv_func_vsnprintf = yes; then
4648 VSNPRINTF_DEFINE='-DHAVE_VSNPRINTF'
4649else
4650 VSNPRINTF_DEFINE=
4651fi
4652
4653
4654
4655echo "$as_me:$LINENO: checking for strcasecmp" >&5
4656echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
4657if test "${ac_cv_func_strcasecmp+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659else
4660 cat >conftest.$ac_ext <<_ACEOF
4661/* confdefs.h. */
4662_ACEOF
4663cat confdefs.h >>conftest.$ac_ext
4664cat >>conftest.$ac_ext <<_ACEOF
4665/* end confdefs.h. */
4666/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
4667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4668#define strcasecmp innocuous_strcasecmp
4669
4670/* System header to define __stub macros and hopefully few prototypes,
4671 which can conflict with char strcasecmp (); below.
4672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4673 <limits.h> exists even on freestanding compilers. */
4674
4675#ifdef __STDC__
4676# include <limits.h>
4677#else
4678# include <assert.h>
4679#endif
4680
4681#undef strcasecmp
4682
4683/* Override any gcc2 internal prototype to avoid an error. */
4684#ifdef __cplusplus
4685extern "C"
4686{
4687#endif
4688/* We use char because int might match the return type of a gcc2
4689 builtin and then its argument prototype would still apply. */
4690char strcasecmp ();
4691/* The GNU C library defines this for functions which it implements
4692 to always fail with ENOSYS. Some functions are actually named
4693 something starting with __ and the normal name is an alias. */
4694#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
4695choke me
4696#else
4697char (*f) () = strcasecmp;
4698#endif
4699#ifdef __cplusplus
4700}
4701#endif
4702
4703int
4704main ()
4705{
4706return f != strcasecmp;
4707 ;
4708 return 0;
4709}
4710_ACEOF
4711rm -f conftest.$ac_objext conftest$ac_exeext
4712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4713 (eval $ac_link) 2>conftest.er1
4714 ac_status=$?
4715 grep -v '^ *+' conftest.er1 >conftest.err
4716 rm -f conftest.er1
4717 cat conftest.err >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } &&
4720 { ac_try='test -z "$ac_cxx_werror_flag"
4721 || test ! -s conftest.err'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 (eval $ac_try) 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; } &&
4727 { ac_try='test -s conftest$ac_exeext'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 (eval $ac_try) 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; }; then
4733 ac_cv_func_strcasecmp=yes
4734else
4735 echo "$as_me: failed program was:" >&5
4736sed 's/^/| /' conftest.$ac_ext >&5
4737
4738ac_cv_func_strcasecmp=no
4739fi
4740rm -f conftest.err conftest.$ac_objext \
4741 conftest$ac_exeext conftest.$ac_ext
4742fi
4743echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
4744echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
4745if test $ac_cv_func_strcasecmp = yes; then
4746 STRCASECMP_DEFINE='-DHAVE_STRCASECMP'
4747else
4748 STRCASECMP_DEFINE=
4749fi
4750
4751
4752
4753echo "$as_me:$LINENO: checking for strncasecmp" >&5
4754echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6
4755if test "${ac_cv_func_strncasecmp+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4757else
4758 cat >conftest.$ac_ext <<_ACEOF
4759/* confdefs.h. */
4760_ACEOF
4761cat confdefs.h >>conftest.$ac_ext
4762cat >>conftest.$ac_ext <<_ACEOF
4763/* end confdefs.h. */
4764/* Define strncasecmp to an innocuous variant, in case <limits.h> declares strncasecmp.
4765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4766#define strncasecmp innocuous_strncasecmp
4767
4768/* System header to define __stub macros and hopefully few prototypes,
4769 which can conflict with char strncasecmp (); below.
4770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4771 <limits.h> exists even on freestanding compilers. */
4772
4773#ifdef __STDC__
4774# include <limits.h>
4775#else
4776# include <assert.h>
4777#endif
4778
4779#undef strncasecmp
4780
4781/* Override any gcc2 internal prototype to avoid an error. */
4782#ifdef __cplusplus
4783extern "C"
4784{
4785#endif
4786/* We use char because int might match the return type of a gcc2
4787 builtin and then its argument prototype would still apply. */
4788char strncasecmp ();
4789/* The GNU C library defines this for functions which it implements
4790 to always fail with ENOSYS. Some functions are actually named
4791 something starting with __ and the normal name is an alias. */
4792#if defined (__stub_strncasecmp) || defined (__stub___strncasecmp)
4793choke me
4794#else
4795char (*f) () = strncasecmp;
4796#endif
4797#ifdef __cplusplus
4798}
4799#endif
4800
4801int
4802main ()
4803{
4804return f != strncasecmp;
4805 ;
4806 return 0;
4807}
4808_ACEOF
4809rm -f conftest.$ac_objext conftest$ac_exeext
4810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4811 (eval $ac_link) 2>conftest.er1
4812 ac_status=$?
4813 grep -v '^ *+' conftest.er1 >conftest.err
4814 rm -f conftest.er1
4815 cat conftest.err >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } &&
4818 { ac_try='test -z "$ac_cxx_werror_flag"
4819 || test ! -s conftest.err'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 (eval $ac_try) 2>&5
4822 ac_status=$?
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; } &&
4825 { ac_try='test -s conftest$ac_exeext'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 (eval $ac_try) 2>&5
4828 ac_status=$?
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; }; then
4831 ac_cv_func_strncasecmp=yes
4832else
4833 echo "$as_me: failed program was:" >&5
4834sed 's/^/| /' conftest.$ac_ext >&5
4835
4836ac_cv_func_strncasecmp=no
4837fi
4838rm -f conftest.err conftest.$ac_objext \
4839 conftest$ac_exeext conftest.$ac_ext
4840fi
4841echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5
4842echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6
4843if test $ac_cv_func_strncasecmp = yes; then
4844 STRNCASECMP_DEFINE='-DHAVE_STRNCASECMP'
4845else
4846 STRNCASECMP_DEFINE=
4847fi
4848
4849
4850
4851
4852
4853ac_ext=c
4854ac_cpp='$CPP $CPPFLAGS'
4855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857ac_compiler_gnu=$ac_cv_c_compiler_gnu
4858
4859
4860echo "$as_me:$LINENO: checking for gethostbyname" >&5
4861echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4862if test "${ac_cv_func_gethostbyname+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864else
4865 cat >conftest.$ac_ext <<_ACEOF
4866/* confdefs.h. */
4867_ACEOF
4868cat confdefs.h >>conftest.$ac_ext
4869cat >>conftest.$ac_ext <<_ACEOF
4870/* end confdefs.h. */
4871/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4873#define gethostbyname innocuous_gethostbyname
4874
4875/* System header to define __stub macros and hopefully few prototypes,
4876 which can conflict with char gethostbyname (); below.
4877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4878 <limits.h> exists even on freestanding compilers. */
4879
4880#ifdef __STDC__
4881# include <limits.h>
4882#else
4883# include <assert.h>
4884#endif
4885
4886#undef gethostbyname
4887
4888/* Override any gcc2 internal prototype to avoid an error. */
4889#ifdef __cplusplus
4890extern "C"
4891{
4892#endif
4893/* We use char because int might match the return type of a gcc2
4894 builtin and then its argument prototype would still apply. */
4895char gethostbyname ();
4896/* The GNU C library defines this for functions which it implements
4897 to always fail with ENOSYS. Some functions are actually named
4898 something starting with __ and the normal name is an alias. */
4899#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4900choke me
4901#else
4902char (*f) () = gethostbyname;
4903#endif
4904#ifdef __cplusplus
4905}
4906#endif
4907
4908int
4909main ()
4910{
4911return f != gethostbyname;
4912 ;
4913 return 0;
4914}
4915_ACEOF
4916rm -f conftest.$ac_objext conftest$ac_exeext
4917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4918 (eval $ac_link) 2>conftest.er1
4919 ac_status=$?
4920 grep -v '^ *+' conftest.er1 >conftest.err
4921 rm -f conftest.er1
4922 cat conftest.err >&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } &&
4925 { ac_try='test -z "$ac_c_werror_flag"
4926 || test ! -s conftest.err'
4927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928 (eval $ac_try) 2>&5
4929 ac_status=$?
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); }; } &&
4932 { ac_try='test -s conftest$ac_exeext'
4933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4934 (eval $ac_try) 2>&5
4935 ac_status=$?
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); }; }; then
4938 ac_cv_func_gethostbyname=yes
4939else
4940 echo "$as_me: failed program was:" >&5
4941sed 's/^/| /' conftest.$ac_ext >&5
4942
4943ac_cv_func_gethostbyname=no
4944fi
4945rm -f conftest.err conftest.$ac_objext \
4946 conftest$ac_exeext conftest.$ac_ext
4947fi
4948echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4949echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4950if test $ac_cv_func_gethostbyname = yes; then
4951 INET_LIB_REQ=
4952else
4953 INET_LIB_REQ=yes
4954fi
4955
4956if test "$INET_LIB_REQ" = yes; then
4957 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4958echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4959if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4961else
4962 ac_check_lib_save_LIBS=$LIBS
4963LIBS="-lbsd $LIBS"
4964cat >conftest.$ac_ext <<_ACEOF
4965/* confdefs.h. */
4966_ACEOF
4967cat confdefs.h >>conftest.$ac_ext
4968cat >>conftest.$ac_ext <<_ACEOF
4969/* end confdefs.h. */
4970
4971/* Override any gcc2 internal prototype to avoid an error. */
4972#ifdef __cplusplus
4973extern "C"
4974#endif
4975/* We use char because int might match the return type of a gcc2
4976 builtin and then its argument prototype would still apply. */
4977char gethostbyname ();
4978int
4979main ()
4980{
4981gethostbyname ();
4982 ;
4983 return 0;
4984}
4985_ACEOF
4986rm -f conftest.$ac_objext conftest$ac_exeext
4987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4988 (eval $ac_link) 2>conftest.er1
4989 ac_status=$?
4990 grep -v '^ *+' conftest.er1 >conftest.err
4991 rm -f conftest.er1
4992 cat conftest.err >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } &&
4995 { ac_try='test -z "$ac_c_werror_flag"
4996 || test ! -s conftest.err'
4997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998 (eval $ac_try) 2>&5
4999 ac_status=$?
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; } &&
5002 { ac_try='test -s conftest$ac_exeext'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004 (eval $ac_try) 2>&5
5005 ac_status=$?
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; }; then
5008 ac_cv_lib_bsd_gethostbyname=yes
5009else
5010 echo "$as_me: failed program was:" >&5
5011sed 's/^/| /' conftest.$ac_ext >&5
5012
5013ac_cv_lib_bsd_gethostbyname=no
5014fi
5015rm -f conftest.err conftest.$ac_objext \
5016 conftest$ac_exeext conftest.$ac_ext
5017LIBS=$ac_check_lib_save_LIBS
5018fi
5019echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5020echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5021if test $ac_cv_lib_bsd_gethostbyname = yes; then
5022 INET_LIB=-lbsd
5023else
5024 INET_LIB=
5025fi
5026
5027fi
5028ac_ext=cc
5029ac_cpp='$CXXCPP $CPPFLAGS'
5030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5033
5034
5035
5036echo "$as_me:$LINENO: checking for socklen_t" >&5
5037echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
5038cat >conftest.$ac_ext <<_ACEOF
5039/* confdefs.h. */
5040_ACEOF
5041cat confdefs.h >>conftest.$ac_ext
5042cat >>conftest.$ac_ext <<_ACEOF
5043/* end confdefs.h. */
5044#include <sys/types.h>
5045 #include <sys/socket.h>
5046int
5047main ()
5048{
5049socklen_t x;
5050accept(0, 0, &x);
5051 ;
5052 return 0;
5053}
5054_ACEOF
5055rm -f conftest.$ac_objext
5056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5057 (eval $ac_compile) 2>conftest.er1
5058 ac_status=$?
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } &&
5064 { ac_try='test -z "$ac_cxx_werror_flag"
5065 || test ! -s conftest.err'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 (eval $ac_try) 2>&5
5068 ac_status=$?
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; } &&
5071 { ac_try='test -s conftest.$ac_objext'
5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073 (eval $ac_try) 2>&5
5074 ac_status=$?
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; }; then
5077 echo "$as_me:$LINENO: result: yes" >&5
5078echo "${ECHO_T}yes" >&6
5079SOCKLEN_T_DEFINE='-DVNC_SOCKLEN_T=socklen_t'
5080else
5081 echo "$as_me: failed program was:" >&5
5082sed 's/^/| /' conftest.$ac_ext >&5
5083
5084echo "$as_me:$LINENO: result: using int" >&5
5085echo "${ECHO_T}using int" >&6
5086SOCKLEN_T_DEFINE='-DVNC_SOCKLEN_T=int'
5087fi
5088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5089
5090
5091ac_aux_dir=
5092for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
5093 if test -f $ac_dir/install-sh; then
5094 ac_aux_dir=$ac_dir
5095 ac_install_sh="$ac_aux_dir/install-sh -c"
5096 break
5097 elif test -f $ac_dir/install.sh; then
5098 ac_aux_dir=$ac_dir
5099 ac_install_sh="$ac_aux_dir/install.sh -c"
5100 break
5101 elif test -f $ac_dir/shtool; then
5102 ac_aux_dir=$ac_dir
5103 ac_install_sh="$ac_aux_dir/shtool install -c"
5104 break
5105 fi
5106done
5107if test -z "$ac_aux_dir"; then
5108 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
5109echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
5110 { (exit 1); exit 1; }; }
5111fi
5112ac_config_guess="$SHELL $ac_aux_dir/config.guess"
5113ac_config_sub="$SHELL $ac_aux_dir/config.sub"
5114ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
5115
5116# Find a good install program. We prefer a C program (faster),
5117# so one script is as good as another. But avoid the broken or
5118# incompatible versions:
5119# SysV /etc/install, /usr/sbin/install
5120# SunOS /usr/etc/install
5121# IRIX /sbin/install
5122# AIX /bin/install
5123# AmigaOS /C/install, which installs bootblocks on floppy discs
5124# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5125# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5126# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5127# OS/2's system install, which has a completely different semantic
5128# ./install, which can be erroneously created by make from ./install.sh.
5129echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5130echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5131if test -z "$INSTALL"; then
5132if test "${ac_cv_path_install+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5134else
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136for as_dir in $PATH
5137do
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 # Account for people who put trailing slashes in PATH elements.
5141case $as_dir/ in
5142 ./ | .// | /cC/* | \
5143 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5144 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5145 /usr/ucb/* ) ;;
5146 *)
5147 # OSF1 and SCO ODT 3.0 have their own names for install.
5148 # Don't use installbsd from OSF since it installs stuff as root
5149 # by default.
5150 for ac_prog in ginstall scoinst install; do
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5153 if test $ac_prog = install &&
5154 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5155 # AIX install. It has an incompatible calling convention.
5156 :
5157 elif test $ac_prog = install &&
5158 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5159 # program-specific install script used by HP pwplus--don't use.
5160 :
5161 else
5162 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5163 break 3
5164 fi
5165 fi
5166 done
5167 done
5168 ;;
5169esac
5170done
5171
5172
5173fi
5174 if test "${ac_cv_path_install+set}" = set; then
5175 INSTALL=$ac_cv_path_install
5176 else
5177 # As a last resort, use the slow shell script. We don't cache a
5178 # path for INSTALL within a source directory, because that will
5179 # break other packages using the cache if that directory is
5180 # removed, or if the path is relative.
5181 INSTALL=$ac_install_sh
5182 fi
5183fi
5184echo "$as_me:$LINENO: result: $INSTALL" >&5
5185echo "${ECHO_T}$INSTALL" >&6
5186
5187# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5188# It thinks the first close brace ends the variable substitution.
5189test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5190
5191test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5192
5193test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5194
5195
5196 MKINSTALLDIRS=
5197 if test -n "$ac_aux_dir"; then
5198 case "$ac_aux_dir" in
5199 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5200 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5201 esac
5202 fi
5203 if test -z "$MKINSTALLDIRS"; then
5204 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5205 fi
5206
5207
5208
5209 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5210echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5211 # Check whether --enable-nls or --disable-nls was given.
5212if test "${enable_nls+set}" = set; then
5213 enableval="$enable_nls"
5214 USE_NLS=$enableval
5215else
5216 USE_NLS=yes
5217fi;
5218 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5219echo "${ECHO_T}$USE_NLS" >&6
5220
5221
5222
5223
5224
5225
5226# Prepare PATH_SEPARATOR.
5227# The user is always right.
5228if test "${PATH_SEPARATOR+set}" != set; then
5229 echo "#! /bin/sh" >conf$$.sh
5230 echo "exit 0" >>conf$$.sh
5231 chmod +x conf$$.sh
5232 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5233 PATH_SEPARATOR=';'
5234 else
5235 PATH_SEPARATOR=:
5236 fi
5237 rm -f conf$$.sh
5238fi
5239
5240# Find out how to test for executable files. Don't use a zero-byte file,
5241# as systems may use methods other than mode bits to determine executability.
5242cat >conf$$.file <<_ASEOF
5243#! /bin/sh
5244exit 0
5245_ASEOF
5246chmod +x conf$$.file
5247if test -x conf$$.file >/dev/null 2>&1; then
5248 ac_executable_p="test -x"
5249else
5250 ac_executable_p="test -f"
5251fi
5252rm -f conf$$.file
5253
5254# Extract the first word of "msgfmt", so it can be a program name with args.
5255set dummy msgfmt; ac_word=$2
5256echo "$as_me:$LINENO: checking for $ac_word" >&5
5257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5258if test "${ac_cv_path_MSGFMT+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5260else
5261 case "$MSGFMT" in
5262 [\\/]* | ?:[\\/]*)
5263 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5264 ;;
5265 *)
5266 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5267 for ac_dir in $PATH; do
5268 IFS="$ac_save_IFS"
5269 test -z "$ac_dir" && ac_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5272 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5273 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5274 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5275 break 2
5276 fi
5277 fi
5278 done
5279 done
5280 IFS="$ac_save_IFS"
5281 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5282 ;;
5283esac
5284fi
5285MSGFMT="$ac_cv_path_MSGFMT"
5286if test "$MSGFMT" != ":"; then
5287 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5288echo "${ECHO_T}$MSGFMT" >&6
5289else
5290 echo "$as_me:$LINENO: result: no" >&5
5291echo "${ECHO_T}no" >&6
5292fi
5293
5294 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5295set dummy gmsgfmt; ac_word=$2
5296echo "$as_me:$LINENO: checking for $ac_word" >&5
5297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5298if test "${ac_cv_path_GMSGFMT+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300else
5301 case $GMSGFMT in
5302 [\\/]* | ?:[\\/]*)
5303 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5304 ;;
5305 *)
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307for as_dir in $PATH
5308do
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5313 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2
5316 fi
5317done
5318done
5319
5320 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5321 ;;
5322esac
5323fi
5324GMSGFMT=$ac_cv_path_GMSGFMT
5325
5326if test -n "$GMSGFMT"; then
5327 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5328echo "${ECHO_T}$GMSGFMT" >&6
5329else
5330 echo "$as_me:$LINENO: result: no" >&5
5331echo "${ECHO_T}no" >&6
5332fi
5333
5334
5335
5336# Prepare PATH_SEPARATOR.
5337# The user is always right.
5338if test "${PATH_SEPARATOR+set}" != set; then
5339 echo "#! /bin/sh" >conf$$.sh
5340 echo "exit 0" >>conf$$.sh
5341 chmod +x conf$$.sh
5342 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5343 PATH_SEPARATOR=';'
5344 else
5345 PATH_SEPARATOR=:
5346 fi
5347 rm -f conf$$.sh
5348fi
5349
5350# Find out how to test for executable files. Don't use a zero-byte file,
5351# as systems may use methods other than mode bits to determine executability.
5352cat >conf$$.file <<_ASEOF
5353#! /bin/sh
5354exit 0
5355_ASEOF
5356chmod +x conf$$.file
5357if test -x conf$$.file >/dev/null 2>&1; then
5358 ac_executable_p="test -x"
5359else
5360 ac_executable_p="test -f"
5361fi
5362rm -f conf$$.file
5363
5364# Extract the first word of "xgettext", so it can be a program name with args.
5365set dummy xgettext; ac_word=$2
5366echo "$as_me:$LINENO: checking for $ac_word" >&5
5367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5368if test "${ac_cv_path_XGETTEXT+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5370else
5371 case "$XGETTEXT" in
5372 [\\/]* | ?:[\\/]*)
5373 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5374 ;;
5375 *)
5376 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5377 for ac_dir in $PATH; do
5378 IFS="$ac_save_IFS"
5379 test -z "$ac_dir" && ac_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5382 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5383 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5384 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5385 break 2
5386 fi
5387 fi
5388 done
5389 done
5390 IFS="$ac_save_IFS"
5391 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5392 ;;
5393esac
5394fi
5395XGETTEXT="$ac_cv_path_XGETTEXT"
5396if test "$XGETTEXT" != ":"; then
5397 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5398echo "${ECHO_T}$XGETTEXT" >&6
5399else
5400 echo "$as_me:$LINENO: result: no" >&5
5401echo "${ECHO_T}no" >&6
5402fi
5403
5404 rm -f messages.po
5405
5406
5407# Prepare PATH_SEPARATOR.
5408# The user is always right.
5409if test "${PATH_SEPARATOR+set}" != set; then
5410 echo "#! /bin/sh" >conf$$.sh
5411 echo "exit 0" >>conf$$.sh
5412 chmod +x conf$$.sh
5413 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5414 PATH_SEPARATOR=';'
5415 else
5416 PATH_SEPARATOR=:
5417 fi
5418 rm -f conf$$.sh
5419fi
5420
5421# Find out how to test for executable files. Don't use a zero-byte file,
5422# as systems may use methods other than mode bits to determine executability.
5423cat >conf$$.file <<_ASEOF
5424#! /bin/sh
5425exit 0
5426_ASEOF
5427chmod +x conf$$.file
5428if test -x conf$$.file >/dev/null 2>&1; then
5429 ac_executable_p="test -x"
5430else
5431 ac_executable_p="test -f"
5432fi
5433rm -f conf$$.file
5434
5435# Extract the first word of "msgmerge", so it can be a program name with args.
5436set dummy msgmerge; ac_word=$2
5437echo "$as_me:$LINENO: checking for $ac_word" >&5
5438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5439if test "${ac_cv_path_MSGMERGE+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5441else
5442 case "$MSGMERGE" in
5443 [\\/]* | ?:[\\/]*)
5444 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5445 ;;
5446 *)
5447 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5448 for ac_dir in $PATH; do
5449 IFS="$ac_save_IFS"
5450 test -z "$ac_dir" && ac_dir=.
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5453 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5454 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5455 break 2
5456 fi
5457 fi
5458 done
5459 done
5460 IFS="$ac_save_IFS"
5461 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5462 ;;
5463esac
5464fi
5465MSGMERGE="$ac_cv_path_MSGMERGE"
5466if test "$MSGMERGE" != ":"; then
5467 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5468echo "${ECHO_T}$MSGMERGE" >&6
5469else
5470 echo "$as_me:$LINENO: result: no" >&5
5471echo "${ECHO_T}no" >&6
5472fi
5473
5474
5475 if test "$GMSGFMT" != ":"; then
5476 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5477 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5478 : ;
5479 else
5480 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5481 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5482echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5483 GMSGFMT=":"
5484 fi
5485 fi
5486
5487 if test "$XGETTEXT" != ":"; then
5488 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5489 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5490 : ;
5491 else
5492 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5493echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5494 XGETTEXT=":"
5495 fi
5496 rm -f messages.po
5497 fi
5498
5499 ac_config_commands="$ac_config_commands default-1"
5500
5501
5502# Make sure we can run config.sub.
5503$ac_config_sub sun4 >/dev/null 2>&1 ||
5504 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5505echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5506 { (exit 1); exit 1; }; }
5507
5508echo "$as_me:$LINENO: checking build system type" >&5
5509echo $ECHO_N "checking build system type... $ECHO_C" >&6
5510if test "${ac_cv_build+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5512else
5513 ac_cv_build_alias=$build_alias
5514test -z "$ac_cv_build_alias" &&
5515 ac_cv_build_alias=`$ac_config_guess`
5516test -z "$ac_cv_build_alias" &&
5517 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5518echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5519 { (exit 1); exit 1; }; }
5520ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5521 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5522echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5523 { (exit 1); exit 1; }; }
5524
5525fi
5526echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5527echo "${ECHO_T}$ac_cv_build" >&6
5528build=$ac_cv_build
5529build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5530build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5531build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5532
5533
5534echo "$as_me:$LINENO: checking host system type" >&5
5535echo $ECHO_N "checking host system type... $ECHO_C" >&6
5536if test "${ac_cv_host+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5538else
5539 ac_cv_host_alias=$host_alias
5540test -z "$ac_cv_host_alias" &&
5541 ac_cv_host_alias=$ac_cv_build_alias
5542ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5543 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5544echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5545 { (exit 1); exit 1; }; }
5546
5547fi
5548echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5549echo "${ECHO_T}$ac_cv_host" >&6
5550host=$ac_cv_host
5551host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5552host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5553host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5554
5555
5556
5557 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5558echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
5559if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561else
5562 ac_check_lib_save_LIBS=$LIBS
5563LIBS="-lcposix $LIBS"
5564cat >conftest.$ac_ext <<_ACEOF
5565/* confdefs.h. */
5566_ACEOF
5567cat confdefs.h >>conftest.$ac_ext
5568cat >>conftest.$ac_ext <<_ACEOF
5569/* end confdefs.h. */
5570
5571/* Override any gcc2 internal prototype to avoid an error. */
5572#ifdef __cplusplus
5573extern "C"
5574#endif
5575/* We use char because int might match the return type of a gcc2
5576 builtin and then its argument prototype would still apply. */
5577char strerror ();
5578int
5579main ()
5580{
5581strerror ();
5582 ;
5583 return 0;
5584}
5585_ACEOF
5586rm -f conftest.$ac_objext conftest$ac_exeext
5587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5588 (eval $ac_link) 2>conftest.er1
5589 ac_status=$?
5590 grep -v '^ *+' conftest.er1 >conftest.err
5591 rm -f conftest.er1
5592 cat conftest.err >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } &&
5595 { ac_try='test -z "$ac_cxx_werror_flag"
5596 || test ! -s conftest.err'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598 (eval $ac_try) 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; } &&
5602 { ac_try='test -s conftest$ac_exeext'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 (eval $ac_try) 2>&5
5605 ac_status=$?
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; }; then
5608 ac_cv_lib_cposix_strerror=yes
5609else
5610 echo "$as_me: failed program was:" >&5
5611sed 's/^/| /' conftest.$ac_ext >&5
5612
5613ac_cv_lib_cposix_strerror=no
5614fi
5615rm -f conftest.err conftest.$ac_objext \
5616 conftest$ac_exeext conftest.$ac_ext
5617LIBS=$ac_check_lib_save_LIBS
5618fi
5619echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5620echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
5621if test $ac_cv_lib_cposix_strerror = yes; then
5622 LIBS="$LIBS -lcposix"
5623fi
5624
5625
5626
5627echo "$as_me:$LINENO: checking for egrep" >&5
5628echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5629if test "${ac_cv_prog_egrep+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5631else
5632 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5633 then ac_cv_prog_egrep='grep -E'
5634 else ac_cv_prog_egrep='egrep'
5635 fi
5636fi
5637echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5638echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5639 EGREP=$ac_cv_prog_egrep
5640
5641
5642echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5643echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5644if test "${ac_cv_header_stdc+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5646else
5647 cat >conftest.$ac_ext <<_ACEOF
5648/* confdefs.h. */
5649_ACEOF
5650cat confdefs.h >>conftest.$ac_ext
5651cat >>conftest.$ac_ext <<_ACEOF
5652/* end confdefs.h. */
5653#include <stdlib.h>
5654#include <stdarg.h>
5655#include <string.h>
5656#include <float.h>
5657
5658int
5659main ()
5660{
5661
5662 ;
5663 return 0;
5664}
5665_ACEOF
5666rm -f conftest.$ac_objext
5667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5668 (eval $ac_compile) 2>conftest.er1
5669 ac_status=$?
5670 grep -v '^ *+' conftest.er1 >conftest.err
5671 rm -f conftest.er1
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } &&
5675 { ac_try='test -z "$ac_cxx_werror_flag"
5676 || test ! -s conftest.err'
5677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 (eval $ac_try) 2>&5
5679 ac_status=$?
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; } &&
5682 { ac_try='test -s conftest.$ac_objext'
5683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 (eval $ac_try) 2>&5
5685 ac_status=$?
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; }; then
5688 ac_cv_header_stdc=yes
5689else
5690 echo "$as_me: failed program was:" >&5
5691sed 's/^/| /' conftest.$ac_ext >&5
5692
5693ac_cv_header_stdc=no
5694fi
5695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5696
5697if test $ac_cv_header_stdc = yes; then
5698 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5699 cat >conftest.$ac_ext <<_ACEOF
5700/* confdefs.h. */
5701_ACEOF
5702cat confdefs.h >>conftest.$ac_ext
5703cat >>conftest.$ac_ext <<_ACEOF
5704/* end confdefs.h. */
5705#include <string.h>
5706
5707_ACEOF
5708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5709 $EGREP "memchr" >/dev/null 2>&1; then
5710 :
5711else
5712 ac_cv_header_stdc=no
5713fi
5714rm -f conftest*
5715
5716fi
5717
5718if test $ac_cv_header_stdc = yes; then
5719 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5720 cat >conftest.$ac_ext <<_ACEOF
5721/* confdefs.h. */
5722_ACEOF
5723cat confdefs.h >>conftest.$ac_ext
5724cat >>conftest.$ac_ext <<_ACEOF
5725/* end confdefs.h. */
5726#include <stdlib.h>
5727
5728_ACEOF
5729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5730 $EGREP "free" >/dev/null 2>&1; then
5731 :
5732else
5733 ac_cv_header_stdc=no
5734fi
5735rm -f conftest*
5736
5737fi
5738
5739if test $ac_cv_header_stdc = yes; then
5740 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5741 if test "$cross_compiling" = yes; then
5742 :
5743else
5744 cat >conftest.$ac_ext <<_ACEOF
5745/* confdefs.h. */
5746_ACEOF
5747cat confdefs.h >>conftest.$ac_ext
5748cat >>conftest.$ac_ext <<_ACEOF
5749/* end confdefs.h. */
5750#include <ctype.h>
5751#if ((' ' & 0x0FF) == 0x020)
5752# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5753# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5754#else
5755# define ISLOWER(c) \
5756 (('a' <= (c) && (c) <= 'i') \
5757 || ('j' <= (c) && (c) <= 'r') \
5758 || ('s' <= (c) && (c) <= 'z'))
5759# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5760#endif
5761
5762#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5763int
5764main ()
5765{
5766 int i;
5767 for (i = 0; i < 256; i++)
5768 if (XOR (islower (i), ISLOWER (i))
5769 || toupper (i) != TOUPPER (i))
5770 exit(2);
5771 exit (0);
5772}
5773_ACEOF
5774rm -f conftest$ac_exeext
5775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5776 (eval $ac_link) 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 (eval $ac_try) 2>&5
5782 ac_status=$?
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
5785 :
5786else
5787 echo "$as_me: program exited with status $ac_status" >&5
5788echo "$as_me: failed program was:" >&5
5789sed 's/^/| /' conftest.$ac_ext >&5
5790
5791( exit $ac_status )
5792ac_cv_header_stdc=no
5793fi
5794rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5795fi
5796fi
5797fi
5798echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5799echo "${ECHO_T}$ac_cv_header_stdc" >&6
5800if test $ac_cv_header_stdc = yes; then
5801
5802cat >>confdefs.h <<\_ACEOF
5803#define STDC_HEADERS 1
5804_ACEOF
5805
5806fi
5807
5808echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5809echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5810if test "${ac_cv_c_const+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5812else
5813 cat >conftest.$ac_ext <<_ACEOF
5814/* confdefs.h. */
5815_ACEOF
5816cat confdefs.h >>conftest.$ac_ext
5817cat >>conftest.$ac_ext <<_ACEOF
5818/* end confdefs.h. */
5819
5820int
5821main ()
5822{
5823/* FIXME: Include the comments suggested by Paul. */
5824#ifndef __cplusplus
5825 /* Ultrix mips cc rejects this. */
5826 typedef int charset[2];
5827 const charset x;
5828 /* SunOS 4.1.1 cc rejects this. */
5829 char const *const *ccp;
5830 char **p;
5831 /* NEC SVR4.0.2 mips cc rejects this. */
5832 struct point {int x, y;};
5833 static struct point const zero = {0,0};
5834 /* AIX XL C 1.02.0.0 rejects this.
5835 It does not let you subtract one const X* pointer from another in
5836 an arm of an if-expression whose if-part is not a constant
5837 expression */
5838 const char *g = "string";
5839 ccp = &g + (g ? g-g : 0);
5840 /* HPUX 7.0 cc rejects these. */
5841 ++ccp;
5842 p = (char**) ccp;
5843 ccp = (char const *const *) p;
5844 { /* SCO 3.2v4 cc rejects this. */
5845 char *t;
5846 char const *s = 0 ? (char *) 0 : (char const *) 0;
5847
5848 *t++ = 0;
5849 }
5850 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5851 int x[] = {25, 17};
5852 const int *foo = &x[0];
5853 ++foo;
5854 }
5855 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5856 typedef const int *iptr;
5857 iptr p = 0;
5858 ++p;
5859 }
5860 { /* AIX XL C 1.02.0.0 rejects this saying
5861 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5862 struct s { int j; const int *ap[3]; };
5863 struct s *b; b->j = 5;
5864 }
5865 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5866 const int foo = 10;
5867 }
5868#endif
5869
5870 ;
5871 return 0;
5872}
5873_ACEOF
5874rm -f conftest.$ac_objext
5875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5876 (eval $ac_compile) 2>conftest.er1
5877 ac_status=$?
5878 grep -v '^ *+' conftest.er1 >conftest.err
5879 rm -f conftest.er1
5880 cat conftest.err >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } &&
5883 { ac_try='test -z "$ac_cxx_werror_flag"
5884 || test ! -s conftest.err'
5885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 (eval $ac_try) 2>&5
5887 ac_status=$?
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }; } &&
5890 { ac_try='test -s conftest.$ac_objext'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 (eval $ac_try) 2>&5
5893 ac_status=$?
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; }; then
5896 ac_cv_c_const=yes
5897else
5898 echo "$as_me: failed program was:" >&5
5899sed 's/^/| /' conftest.$ac_ext >&5
5900
5901ac_cv_c_const=no
5902fi
5903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5904fi
5905echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5906echo "${ECHO_T}$ac_cv_c_const" >&6
5907if test $ac_cv_c_const = no; then
5908
5909cat >>confdefs.h <<\_ACEOF
5910#define const
5911_ACEOF
5912
5913fi
5914
5915
5916 echo "$as_me:$LINENO: checking for signed" >&5
5917echo $ECHO_N "checking for signed... $ECHO_C" >&6
5918if test "${bh_cv_c_signed+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5920else
5921 cat >conftest.$ac_ext <<_ACEOF
5922/* confdefs.h. */
5923_ACEOF
5924cat confdefs.h >>conftest.$ac_ext
5925cat >>conftest.$ac_ext <<_ACEOF
5926/* end confdefs.h. */
5927
5928int
5929main ()
5930{
5931signed char x;
5932 ;
5933 return 0;
5934}
5935_ACEOF
5936rm -f conftest.$ac_objext
5937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938 (eval $ac_compile) 2>conftest.er1
5939 ac_status=$?
5940 grep -v '^ *+' conftest.er1 >conftest.err
5941 rm -f conftest.er1
5942 cat conftest.err >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } &&
5945 { ac_try='test -z "$ac_cxx_werror_flag"
5946 || test ! -s conftest.err'
5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 (eval $ac_try) 2>&5
5949 ac_status=$?
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; } &&
5952 { ac_try='test -s conftest.$ac_objext'
5953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954 (eval $ac_try) 2>&5
5955 ac_status=$?
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; }; then
5958 bh_cv_c_signed=yes
5959else
5960 echo "$as_me: failed program was:" >&5
5961sed 's/^/| /' conftest.$ac_ext >&5
5962
5963bh_cv_c_signed=no
5964fi
5965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5966fi
5967echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5968echo "${ECHO_T}$bh_cv_c_signed" >&6
5969 if test $bh_cv_c_signed = no; then
5970
5971cat >>confdefs.h <<\_ACEOF
5972#define signed
5973_ACEOF
5974
5975 fi
5976
5977echo "$as_me:$LINENO: checking for inline" >&5
5978echo $ECHO_N "checking for inline... $ECHO_C" >&6
5979if test "${ac_cv_c_inline+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5981else
5982 ac_cv_c_inline=no
5983for ac_kw in inline __inline__ __inline; do
5984 cat >conftest.$ac_ext <<_ACEOF
5985/* confdefs.h. */
5986_ACEOF
5987cat confdefs.h >>conftest.$ac_ext
5988cat >>conftest.$ac_ext <<_ACEOF
5989/* end confdefs.h. */
5990#ifndef __cplusplus
5991typedef int foo_t;
5992static $ac_kw foo_t static_foo () {return 0; }
5993$ac_kw foo_t foo () {return 0; }
5994#endif
5995
5996_ACEOF
5997rm -f conftest.$ac_objext
5998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5999 (eval $ac_compile) 2>conftest.er1
6000 ac_status=$?
6001 grep -v '^ *+' conftest.er1 >conftest.err
6002 rm -f conftest.er1
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try='test -z "$ac_cxx_werror_flag"
6007 || test ! -s conftest.err'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 (eval $ac_try) 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; } &&
6013 { ac_try='test -s conftest.$ac_objext'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 (eval $ac_try) 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 ac_cv_c_inline=$ac_kw; break
6020else
6021 echo "$as_me: failed program was:" >&5
6022sed 's/^/| /' conftest.$ac_ext >&5
6023
6024fi
6025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6026done
6027
6028fi
6029echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6030echo "${ECHO_T}$ac_cv_c_inline" >&6
6031
6032
6033case $ac_cv_c_inline in
6034 inline | yes) ;;
6035 *)
6036 case $ac_cv_c_inline in
6037 no) ac_val=;;
6038 *) ac_val=$ac_cv_c_inline;;
6039 esac
6040 cat >>confdefs.h <<_ACEOF
6041#ifndef __cplusplus
6042#define inline $ac_val
6043#endif
6044_ACEOF
6045 ;;
6046esac
6047
6048# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6059 inttypes.h stdint.h unistd.h
6060do
6061as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6062echo "$as_me:$LINENO: checking for $ac_header" >&5
6063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6064if eval "test \"\${$as_ac_Header+set}\" = set"; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6066else
6067 cat >conftest.$ac_ext <<_ACEOF
6068/* confdefs.h. */
6069_ACEOF
6070cat confdefs.h >>conftest.$ac_ext
6071cat >>conftest.$ac_ext <<_ACEOF
6072/* end confdefs.h. */
6073$ac_includes_default
6074
6075#include <$ac_header>
6076_ACEOF
6077rm -f conftest.$ac_objext
6078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6079 (eval $ac_compile) 2>conftest.er1
6080 ac_status=$?
6081 grep -v '^ *+' conftest.er1 >conftest.err
6082 rm -f conftest.er1
6083 cat conftest.err >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } &&
6086 { ac_try='test -z "$ac_cxx_werror_flag"
6087 || test ! -s conftest.err'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 (eval $ac_try) 2>&5
6090 ac_status=$?
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; } &&
6093 { ac_try='test -s conftest.$ac_objext'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 (eval $ac_try) 2>&5
6096 ac_status=$?
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; }; then
6099 eval "$as_ac_Header=yes"
6100else
6101 echo "$as_me: failed program was:" >&5
6102sed 's/^/| /' conftest.$ac_ext >&5
6103
6104eval "$as_ac_Header=no"
6105fi
6106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6107fi
6108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6109echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6110if test `eval echo '${'$as_ac_Header'}'` = yes; then
6111 cat >>confdefs.h <<_ACEOF
6112#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6113_ACEOF
6114
6115fi
6116
6117done
6118
6119
6120echo "$as_me:$LINENO: checking for off_t" >&5
6121echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6122if test "${ac_cv_type_off_t+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6124else
6125 cat >conftest.$ac_ext <<_ACEOF
6126/* confdefs.h. */
6127_ACEOF
6128cat confdefs.h >>conftest.$ac_ext
6129cat >>conftest.$ac_ext <<_ACEOF
6130/* end confdefs.h. */
6131$ac_includes_default
6132int
6133main ()
6134{
6135if ((off_t *) 0)
6136 return 0;
6137if (sizeof (off_t))
6138 return 0;
6139 ;
6140 return 0;
6141}
6142_ACEOF
6143rm -f conftest.$ac_objext
6144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6145 (eval $ac_compile) 2>conftest.er1
6146 ac_status=$?
6147 grep -v '^ *+' conftest.er1 >conftest.err
6148 rm -f conftest.er1
6149 cat conftest.err >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } &&
6152 { ac_try='test -z "$ac_cxx_werror_flag"
6153 || test ! -s conftest.err'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 (eval $ac_try) 2>&5
6156 ac_status=$?
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; } &&
6159 { ac_try='test -s conftest.$ac_objext'
6160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 (eval $ac_try) 2>&5
6162 ac_status=$?
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); }; }; then
6165 ac_cv_type_off_t=yes
6166else
6167 echo "$as_me: failed program was:" >&5
6168sed 's/^/| /' conftest.$ac_ext >&5
6169
6170ac_cv_type_off_t=no
6171fi
6172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6173fi
6174echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6175echo "${ECHO_T}$ac_cv_type_off_t" >&6
6176if test $ac_cv_type_off_t = yes; then
6177 :
6178else
6179
6180cat >>confdefs.h <<_ACEOF
6181#define off_t long
6182_ACEOF
6183
6184fi
6185
6186echo "$as_me:$LINENO: checking for size_t" >&5
6187echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6188if test "${ac_cv_type_size_t+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190else
6191 cat >conftest.$ac_ext <<_ACEOF
6192/* confdefs.h. */
6193_ACEOF
6194cat confdefs.h >>conftest.$ac_ext
6195cat >>conftest.$ac_ext <<_ACEOF
6196/* end confdefs.h. */
6197$ac_includes_default
6198int
6199main ()
6200{
6201if ((size_t *) 0)
6202 return 0;
6203if (sizeof (size_t))
6204 return 0;
6205 ;
6206 return 0;
6207}
6208_ACEOF
6209rm -f conftest.$ac_objext
6210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6211 (eval $ac_compile) 2>conftest.er1
6212 ac_status=$?
6213 grep -v '^ *+' conftest.er1 >conftest.err
6214 rm -f conftest.er1
6215 cat conftest.err >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } &&
6218 { ac_try='test -z "$ac_cxx_werror_flag"
6219 || test ! -s conftest.err'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 (eval $ac_try) 2>&5
6222 ac_status=$?
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; } &&
6225 { ac_try='test -s conftest.$ac_objext'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 (eval $ac_try) 2>&5
6228 ac_status=$?
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; }; then
6231 ac_cv_type_size_t=yes
6232else
6233 echo "$as_me: failed program was:" >&5
6234sed 's/^/| /' conftest.$ac_ext >&5
6235
6236ac_cv_type_size_t=no
6237fi
6238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6239fi
6240echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6241echo "${ECHO_T}$ac_cv_type_size_t" >&6
6242if test $ac_cv_type_size_t = yes; then
6243 :
6244else
6245
6246cat >>confdefs.h <<_ACEOF
6247#define size_t unsigned
6248_ACEOF
6249
6250fi
6251
6252
6253 echo "$as_me:$LINENO: checking for long long" >&5
6254echo $ECHO_N "checking for long long... $ECHO_C" >&6
6255if test "${ac_cv_type_long_long+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6257else
6258 cat >conftest.$ac_ext <<_ACEOF
6259/* confdefs.h. */
6260_ACEOF
6261cat confdefs.h >>conftest.$ac_ext
6262cat >>conftest.$ac_ext <<_ACEOF
6263/* end confdefs.h. */
6264long long ll = 1LL; int i = 63;
6265int
6266main ()
6267{
6268long long llmax = (long long) -1;
6269 return ll << i | ll >> i | llmax / ll | llmax % ll;
6270 ;
6271 return 0;
6272}
6273_ACEOF
6274rm -f conftest.$ac_objext conftest$ac_exeext
6275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6276 (eval $ac_link) 2>conftest.er1
6277 ac_status=$?
6278 grep -v '^ *+' conftest.er1 >conftest.err
6279 rm -f conftest.er1
6280 cat conftest.err >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } &&
6283 { ac_try='test -z "$ac_cxx_werror_flag"
6284 || test ! -s conftest.err'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 (eval $ac_try) 2>&5
6287 ac_status=$?
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; } &&
6290 { ac_try='test -s conftest$ac_exeext'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 (eval $ac_try) 2>&5
6293 ac_status=$?
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6296 ac_cv_type_long_long=yes
6297else
6298 echo "$as_me: failed program was:" >&5
6299sed 's/^/| /' conftest.$ac_ext >&5
6300
6301ac_cv_type_long_long=no
6302fi
6303rm -f conftest.err conftest.$ac_objext \
6304 conftest$ac_exeext conftest.$ac_ext
6305fi
6306echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6307echo "${ECHO_T}$ac_cv_type_long_long" >&6
6308 if test $ac_cv_type_long_long = yes; then
6309
6310cat >>confdefs.h <<\_ACEOF
6311#define HAVE_LONG_LONG 1
6312_ACEOF
6313
6314 fi
6315
6316
6317 echo "$as_me:$LINENO: checking for long double" >&5
6318echo $ECHO_N "checking for long double... $ECHO_C" >&6
6319if test "${gt_cv_c_long_double+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6321else
6322 if test "$GCC" = yes; then
6323 gt_cv_c_long_double=yes
6324 else
6325 cat >conftest.$ac_ext <<_ACEOF
6326/* confdefs.h. */
6327_ACEOF
6328cat confdefs.h >>conftest.$ac_ext
6329cat >>conftest.$ac_ext <<_ACEOF
6330/* end confdefs.h. */
6331
6332 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6333 long double foo = 0.0;
6334 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6335 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6336
6337int
6338main ()
6339{
6340
6341 ;
6342 return 0;
6343}
6344_ACEOF
6345rm -f conftest.$ac_objext
6346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6347 (eval $ac_compile) 2>conftest.er1
6348 ac_status=$?
6349 grep -v '^ *+' conftest.er1 >conftest.err
6350 rm -f conftest.er1
6351 cat conftest.err >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } &&
6354 { ac_try='test -z "$ac_cxx_werror_flag"
6355 || test ! -s conftest.err'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 (eval $ac_try) 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; } &&
6361 { ac_try='test -s conftest.$ac_objext'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 (eval $ac_try) 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6367 gt_cv_c_long_double=yes
6368else
6369 echo "$as_me: failed program was:" >&5
6370sed 's/^/| /' conftest.$ac_ext >&5
6371
6372gt_cv_c_long_double=no
6373fi
6374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6375 fi
6376fi
6377echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
6378echo "${ECHO_T}$gt_cv_c_long_double" >&6
6379 if test $gt_cv_c_long_double = yes; then
6380
6381cat >>confdefs.h <<\_ACEOF
6382#define HAVE_LONG_DOUBLE 1
6383_ACEOF
6384
6385 fi
6386
6387
6388 echo "$as_me:$LINENO: checking for wchar_t" >&5
6389echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
6390if test "${gt_cv_c_wchar_t+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6392else
6393 cat >conftest.$ac_ext <<_ACEOF
6394/* confdefs.h. */
6395_ACEOF
6396cat confdefs.h >>conftest.$ac_ext
6397cat >>conftest.$ac_ext <<_ACEOF
6398/* end confdefs.h. */
6399#include <stddef.h>
6400 wchar_t foo = (wchar_t)'\0';
6401int
6402main ()
6403{
6404
6405 ;
6406 return 0;
6407}
6408_ACEOF
6409rm -f conftest.$ac_objext
6410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411 (eval $ac_compile) 2>conftest.er1
6412 ac_status=$?
6413 grep -v '^ *+' conftest.er1 >conftest.err
6414 rm -f conftest.er1
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } &&
6418 { ac_try='test -z "$ac_cxx_werror_flag"
6419 || test ! -s conftest.err'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 (eval $ac_try) 2>&5
6422 ac_status=$?
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; } &&
6425 { ac_try='test -s conftest.$ac_objext'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 (eval $ac_try) 2>&5
6428 ac_status=$?
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; }; then
6431 gt_cv_c_wchar_t=yes
6432else
6433 echo "$as_me: failed program was:" >&5
6434sed 's/^/| /' conftest.$ac_ext >&5
6435
6436gt_cv_c_wchar_t=no
6437fi
6438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6439fi
6440echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
6441echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
6442 if test $gt_cv_c_wchar_t = yes; then
6443
6444cat >>confdefs.h <<\_ACEOF
6445#define HAVE_WCHAR_T 1
6446_ACEOF
6447
6448 fi
6449
6450
6451 echo "$as_me:$LINENO: checking for wint_t" >&5
6452echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
6453if test "${gt_cv_c_wint_t+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
6455else
6456 cat >conftest.$ac_ext <<_ACEOF
6457/* confdefs.h. */
6458_ACEOF
6459cat confdefs.h >>conftest.$ac_ext
6460cat >>conftest.$ac_ext <<_ACEOF
6461/* end confdefs.h. */
6462#include <wchar.h>
6463 wint_t foo = (wchar_t)'\0';
6464int
6465main ()
6466{
6467
6468 ;
6469 return 0;
6470}
6471_ACEOF
6472rm -f conftest.$ac_objext
6473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6474 (eval $ac_compile) 2>conftest.er1
6475 ac_status=$?
6476 grep -v '^ *+' conftest.er1 >conftest.err
6477 rm -f conftest.er1
6478 cat conftest.err >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } &&
6481 { ac_try='test -z "$ac_cxx_werror_flag"
6482 || test ! -s conftest.err'
6483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484 (eval $ac_try) 2>&5
6485 ac_status=$?
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); }; } &&
6488 { ac_try='test -s conftest.$ac_objext'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490 (eval $ac_try) 2>&5
6491 ac_status=$?
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; }; then
6494 gt_cv_c_wint_t=yes
6495else
6496 echo "$as_me: failed program was:" >&5
6497sed 's/^/| /' conftest.$ac_ext >&5
6498
6499gt_cv_c_wint_t=no
6500fi
6501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6502fi
6503echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
6504echo "${ECHO_T}$gt_cv_c_wint_t" >&6
6505 if test $gt_cv_c_wint_t = yes; then
6506
6507cat >>confdefs.h <<\_ACEOF
6508#define HAVE_WINT_T 1
6509_ACEOF
6510
6511 fi
6512
6513
6514 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6515echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6516if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6518else
6519 cat >conftest.$ac_ext <<_ACEOF
6520/* confdefs.h. */
6521_ACEOF
6522cat confdefs.h >>conftest.$ac_ext
6523cat >>conftest.$ac_ext <<_ACEOF
6524/* end confdefs.h. */
6525#include <sys/types.h>
6526#include <inttypes.h>
6527int
6528main ()
6529{
6530uintmax_t i = (uintmax_t) -1;
6531 ;
6532 return 0;
6533}
6534_ACEOF
6535rm -f conftest.$ac_objext
6536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6537 (eval $ac_compile) 2>conftest.er1
6538 ac_status=$?
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } &&
6544 { ac_try='test -z "$ac_cxx_werror_flag"
6545 || test ! -s conftest.err'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547 (eval $ac_try) 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; } &&
6551 { ac_try='test -s conftest.$ac_objext'
6552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553 (eval $ac_try) 2>&5
6554 ac_status=$?
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; }; then
6557 jm_ac_cv_header_inttypes_h=yes
6558else
6559 echo "$as_me: failed program was:" >&5
6560sed 's/^/| /' conftest.$ac_ext >&5
6561
6562jm_ac_cv_header_inttypes_h=no
6563fi
6564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6565fi
6566echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6567echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
6568 if test $jm_ac_cv_header_inttypes_h = yes; then
6569
6570cat >>confdefs.h <<_ACEOF
6571#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6572_ACEOF
6573
6574 fi
6575
6576
6577 echo "$as_me:$LINENO: checking for stdint.h" >&5
6578echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
6579if test "${jm_ac_cv_header_stdint_h+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6581else
6582 cat >conftest.$ac_ext <<_ACEOF
6583/* confdefs.h. */
6584_ACEOF
6585cat confdefs.h >>conftest.$ac_ext
6586cat >>conftest.$ac_ext <<_ACEOF
6587/* end confdefs.h. */
6588#include <sys/types.h>
6589#include <stdint.h>
6590int
6591main ()
6592{
6593uintmax_t i = (uintmax_t) -1;
6594 ;
6595 return 0;
6596}
6597_ACEOF
6598rm -f conftest.$ac_objext
6599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6600 (eval $ac_compile) 2>conftest.er1
6601 ac_status=$?
6602 grep -v '^ *+' conftest.er1 >conftest.err
6603 rm -f conftest.er1
6604 cat conftest.err >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } &&
6607 { ac_try='test -z "$ac_cxx_werror_flag"
6608 || test ! -s conftest.err'
6609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 (eval $ac_try) 2>&5
6611 ac_status=$?
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; } &&
6614 { ac_try='test -s conftest.$ac_objext'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 (eval $ac_try) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; }; then
6620 jm_ac_cv_header_stdint_h=yes
6621else
6622 echo "$as_me: failed program was:" >&5
6623sed 's/^/| /' conftest.$ac_ext >&5
6624
6625jm_ac_cv_header_stdint_h=no
6626fi
6627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6628fi
6629echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6630echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
6631 if test $jm_ac_cv_header_stdint_h = yes; then
6632
6633cat >>confdefs.h <<_ACEOF
6634#define HAVE_STDINT_H_WITH_UINTMAX 1
6635_ACEOF
6636
6637 fi
6638
6639
6640
6641
6642 echo "$as_me:$LINENO: checking for intmax_t" >&5
6643echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
6644if test "${gt_cv_c_intmax_t+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6646else
6647 cat >conftest.$ac_ext <<_ACEOF
6648/* confdefs.h. */
6649_ACEOF
6650cat confdefs.h >>conftest.$ac_ext
6651cat >>conftest.$ac_ext <<_ACEOF
6652/* end confdefs.h. */
6653
6654#include <stddef.h>
6655#include <stdlib.h>
6656#if HAVE_STDINT_H_WITH_UINTMAX
6657#include <stdint.h>
6658#endif
6659#if HAVE_INTTYPES_H_WITH_UINTMAX
6660#include <inttypes.h>
6661#endif
6662
6663int
6664main ()
6665{
6666intmax_t x = -1;
6667 ;
6668 return 0;
6669}
6670_ACEOF
6671rm -f conftest.$ac_objext
6672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6673 (eval $ac_compile) 2>conftest.er1
6674 ac_status=$?
6675 grep -v '^ *+' conftest.er1 >conftest.err
6676 rm -f conftest.er1
6677 cat conftest.err >&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } &&
6680 { ac_try='test -z "$ac_cxx_werror_flag"
6681 || test ! -s conftest.err'
6682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683 (eval $ac_try) 2>&5
6684 ac_status=$?
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; } &&
6687 { ac_try='test -s conftest.$ac_objext'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689 (eval $ac_try) 2>&5
6690 ac_status=$?
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; }; then
6693 gt_cv_c_intmax_t=yes
6694else
6695 echo "$as_me: failed program was:" >&5
6696sed 's/^/| /' conftest.$ac_ext >&5
6697
6698gt_cv_c_intmax_t=no
6699fi
6700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6701fi
6702echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
6703echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
6704 if test $gt_cv_c_intmax_t = yes; then
6705
6706cat >>confdefs.h <<\_ACEOF
6707#define HAVE_INTMAX_T 1
6708_ACEOF
6709
6710 fi
6711
6712
6713
6714 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
6715echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
6716if test "${gt_cv_func_printf_posix+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6718else
6719
6720 if test "$cross_compiling" = yes; then
6721
6722 cat >conftest.$ac_ext <<_ACEOF
6723/* confdefs.h. */
6724_ACEOF
6725cat confdefs.h >>conftest.$ac_ext
6726cat >>conftest.$ac_ext <<_ACEOF
6727/* end confdefs.h. */
6728
6729#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6730 notposix
6731#endif
6732
6733_ACEOF
6734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6735 $EGREP "notposix" >/dev/null 2>&1; then
6736 gt_cv_func_printf_posix="guessing no"
6737else
6738 gt_cv_func_printf_posix="guessing yes"
6739fi
6740rm -f conftest*
6741
6742
6743else
6744 cat >conftest.$ac_ext <<_ACEOF
6745/* confdefs.h. */
6746_ACEOF
6747cat confdefs.h >>conftest.$ac_ext
6748cat >>conftest.$ac_ext <<_ACEOF
6749/* end confdefs.h. */
6750
6751#include <stdio.h>
6752#include <string.h>
6753/* The string "%2$d %1$d", with dollar characters protected from the shell's
6754 dollar expansion (possibly an autoconf bug). */
6755static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6756static char buf[100];
6757int main ()
6758{
6759 sprintf (buf, format, 33, 55);
6760 return (strcmp (buf, "55 33") != 0);
6761}
6762_ACEOF
6763rm -f conftest$ac_exeext
6764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6765 (eval $ac_link) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 (eval $ac_try) 2>&5
6771 ac_status=$?
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; }; then
6774 gt_cv_func_printf_posix=yes
6775else
6776 echo "$as_me: program exited with status $ac_status" >&5
6777echo "$as_me: failed program was:" >&5
6778sed 's/^/| /' conftest.$ac_ext >&5
6779
6780( exit $ac_status )
6781gt_cv_func_printf_posix=no
6782fi
6783rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6784fi
6785
6786fi
6787echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6788echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
6789 case $gt_cv_func_printf_posix in
6790 *yes)
6791
6792cat >>confdefs.h <<\_ACEOF
6793#define HAVE_POSIX_PRINTF 1
6794_ACEOF
6795
6796 ;;
6797 esac
6798
6799# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6800# for constant arguments. Useless!
6801echo "$as_me:$LINENO: checking for working alloca.h" >&5
6802echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6803if test "${ac_cv_working_alloca_h+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6805else
6806 cat >conftest.$ac_ext <<_ACEOF
6807/* confdefs.h. */
6808_ACEOF
6809cat confdefs.h >>conftest.$ac_ext
6810cat >>conftest.$ac_ext <<_ACEOF
6811/* end confdefs.h. */
6812#include <alloca.h>
6813int
6814main ()
6815{
6816char *p = (char *) alloca (2 * sizeof (int));
6817 ;
6818 return 0;
6819}
6820_ACEOF
6821rm -f conftest.$ac_objext conftest$ac_exeext
6822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6823 (eval $ac_link) 2>conftest.er1
6824 ac_status=$?
6825 grep -v '^ *+' conftest.er1 >conftest.err
6826 rm -f conftest.er1
6827 cat conftest.err >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } &&
6830 { ac_try='test -z "$ac_cxx_werror_flag"
6831 || test ! -s conftest.err'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833 (eval $ac_try) 2>&5
6834 ac_status=$?
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; } &&
6837 { ac_try='test -s conftest$ac_exeext'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 (eval $ac_try) 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; }; then
6843 ac_cv_working_alloca_h=yes
6844else
6845 echo "$as_me: failed program was:" >&5
6846sed 's/^/| /' conftest.$ac_ext >&5
6847
6848ac_cv_working_alloca_h=no
6849fi
6850rm -f conftest.err conftest.$ac_objext \
6851 conftest$ac_exeext conftest.$ac_ext
6852fi
6853echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6854echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6855if test $ac_cv_working_alloca_h = yes; then
6856
6857cat >>confdefs.h <<\_ACEOF
6858#define HAVE_ALLOCA_H 1
6859_ACEOF
6860
6861fi
6862
6863echo "$as_me:$LINENO: checking for alloca" >&5
6864echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6865if test "${ac_cv_func_alloca_works+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867else
6868 cat >conftest.$ac_ext <<_ACEOF
6869/* confdefs.h. */
6870_ACEOF
6871cat confdefs.h >>conftest.$ac_ext
6872cat >>conftest.$ac_ext <<_ACEOF
6873/* end confdefs.h. */
6874#ifdef __GNUC__
6875# define alloca __builtin_alloca
6876#else
6877# ifdef _MSC_VER
6878# include <malloc.h>
6879# define alloca _alloca
6880# else
6881# if HAVE_ALLOCA_H
6882# include <alloca.h>
6883# else
6884# ifdef _AIX
6885 #pragma alloca
6886# else
6887# ifndef alloca /* predefined by HP cc +Olibcalls */
6888char *alloca ();
6889# endif
6890# endif
6891# endif
6892# endif
6893#endif
6894
6895int
6896main ()
6897{
6898char *p = (char *) alloca (1);
6899 ;
6900 return 0;
6901}
6902_ACEOF
6903rm -f conftest.$ac_objext conftest$ac_exeext
6904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6905 (eval $ac_link) 2>conftest.er1
6906 ac_status=$?
6907 grep -v '^ *+' conftest.er1 >conftest.err
6908 rm -f conftest.er1
6909 cat conftest.err >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } &&
6912 { ac_try='test -z "$ac_cxx_werror_flag"
6913 || test ! -s conftest.err'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 (eval $ac_try) 2>&5
6916 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; } &&
6919 { ac_try='test -s conftest$ac_exeext'
6920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921 (eval $ac_try) 2>&5
6922 ac_status=$?
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; }; then
6925 ac_cv_func_alloca_works=yes
6926else
6927 echo "$as_me: failed program was:" >&5
6928sed 's/^/| /' conftest.$ac_ext >&5
6929
6930ac_cv_func_alloca_works=no
6931fi
6932rm -f conftest.err conftest.$ac_objext \
6933 conftest$ac_exeext conftest.$ac_ext
6934fi
6935echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6936echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6937
6938if test $ac_cv_func_alloca_works = yes; then
6939
6940cat >>confdefs.h <<\_ACEOF
6941#define HAVE_ALLOCA 1
6942_ACEOF
6943
6944else
6945 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6946# that cause trouble. Some versions do not even contain alloca or
6947# contain a buggy version. If you still want to use their alloca,
6948# use ar to extract alloca.o from them instead of compiling alloca.c.
6949
6950ALLOCA=alloca.$ac_objext
6951
6952cat >>confdefs.h <<\_ACEOF
6953#define C_ALLOCA 1
6954_ACEOF
6955
6956
6957echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6958echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6959if test "${ac_cv_os_cray+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6961else
6962 cat >conftest.$ac_ext <<_ACEOF
6963/* confdefs.h. */
6964_ACEOF
6965cat confdefs.h >>conftest.$ac_ext
6966cat >>conftest.$ac_ext <<_ACEOF
6967/* end confdefs.h. */
6968#if defined(CRAY) && ! defined(CRAY2)
6969webecray
6970#else
6971wenotbecray
6972#endif
6973
6974_ACEOF
6975if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6976 $EGREP "webecray" >/dev/null 2>&1; then
6977 ac_cv_os_cray=yes
6978else
6979 ac_cv_os_cray=no
6980fi
6981rm -f conftest*
6982
6983fi
6984echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6985echo "${ECHO_T}$ac_cv_os_cray" >&6
6986if test $ac_cv_os_cray = yes; then
6987 for ac_func in _getb67 GETB67 getb67; do
6988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6989echo "$as_me:$LINENO: checking for $ac_func" >&5
6990echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6991if eval "test \"\${$as_ac_var+set}\" = set"; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6993else
6994 cat >conftest.$ac_ext <<_ACEOF
6995/* confdefs.h. */
6996_ACEOF
6997cat confdefs.h >>conftest.$ac_ext
6998cat >>conftest.$ac_ext <<_ACEOF
6999/* end confdefs.h. */
7000/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7002#define $ac_func innocuous_$ac_func
7003
7004/* System header to define __stub macros and hopefully few prototypes,
7005 which can conflict with char $ac_func (); below.
7006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7007 <limits.h> exists even on freestanding compilers. */
7008
7009#ifdef __STDC__
7010# include <limits.h>
7011#else
7012# include <assert.h>
7013#endif
7014
7015#undef $ac_func
7016
7017/* Override any gcc2 internal prototype to avoid an error. */
7018#ifdef __cplusplus
7019extern "C"
7020{
7021#endif
7022/* We use char because int might match the return type of a gcc2
7023 builtin and then its argument prototype would still apply. */
7024char $ac_func ();
7025/* The GNU C library defines this for functions which it implements
7026 to always fail with ENOSYS. Some functions are actually named
7027 something starting with __ and the normal name is an alias. */
7028#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7029choke me
7030#else
7031char (*f) () = $ac_func;
7032#endif
7033#ifdef __cplusplus
7034}
7035#endif
7036
7037int
7038main ()
7039{
7040return f != $ac_func;
7041 ;
7042 return 0;
7043}
7044_ACEOF
7045rm -f conftest.$ac_objext conftest$ac_exeext
7046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7047 (eval $ac_link) 2>conftest.er1
7048 ac_status=$?
7049 grep -v '^ *+' conftest.er1 >conftest.err
7050 rm -f conftest.er1
7051 cat conftest.err >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } &&
7054 { ac_try='test -z "$ac_cxx_werror_flag"
7055 || test ! -s conftest.err'
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057 (eval $ac_try) 2>&5
7058 ac_status=$?
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; } &&
7061 { ac_try='test -s conftest$ac_exeext'
7062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063 (eval $ac_try) 2>&5
7064 ac_status=$?
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); }; }; then
7067 eval "$as_ac_var=yes"
7068else
7069 echo "$as_me: failed program was:" >&5
7070sed 's/^/| /' conftest.$ac_ext >&5
7071
7072eval "$as_ac_var=no"
7073fi
7074rm -f conftest.err conftest.$ac_objext \
7075 conftest$ac_exeext conftest.$ac_ext
7076fi
7077echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7078echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7079if test `eval echo '${'$as_ac_var'}'` = yes; then
7080
7081cat >>confdefs.h <<_ACEOF
7082#define CRAY_STACKSEG_END $ac_func
7083_ACEOF
7084
7085 break
7086fi
7087
7088 done
7089fi
7090
7091echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7092echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7093if test "${ac_cv_c_stack_direction+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7095else
7096 if test "$cross_compiling" = yes; then
7097 ac_cv_c_stack_direction=0
7098else
7099 cat >conftest.$ac_ext <<_ACEOF
7100/* confdefs.h. */
7101_ACEOF
7102cat confdefs.h >>conftest.$ac_ext
7103cat >>conftest.$ac_ext <<_ACEOF
7104/* end confdefs.h. */
7105int
7106find_stack_direction ()
7107{
7108 static char *addr = 0;
7109 auto char dummy;
7110 if (addr == 0)
7111 {
7112 addr = &dummy;
7113 return find_stack_direction ();
7114 }
7115 else
7116 return (&dummy > addr) ? 1 : -1;
7117}
7118
7119int
7120main ()
7121{
7122 exit (find_stack_direction () < 0);
7123}
7124_ACEOF
7125rm -f conftest$ac_exeext
7126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7127 (eval $ac_link) 2>&5
7128 ac_status=$?
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 (eval $ac_try) 2>&5
7133 ac_status=$?
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; }; then
7136 ac_cv_c_stack_direction=1
7137else
7138 echo "$as_me: program exited with status $ac_status" >&5
7139echo "$as_me: failed program was:" >&5
7140sed 's/^/| /' conftest.$ac_ext >&5
7141
7142( exit $ac_status )
7143ac_cv_c_stack_direction=-1
7144fi
7145rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7146fi
7147fi
7148echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7149echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7150
7151cat >>confdefs.h <<_ACEOF
7152#define STACK_DIRECTION $ac_cv_c_stack_direction
7153_ACEOF
7154
7155
7156fi
7157
7158
7159
7160for ac_header in stdlib.h unistd.h
7161do
7162as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7163if eval "test \"\${$as_ac_Header+set}\" = set"; then
7164 echo "$as_me:$LINENO: checking for $ac_header" >&5
7165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7166if eval "test \"\${$as_ac_Header+set}\" = set"; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7168fi
7169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7171else
7172 # Is the header compilable?
7173echo "$as_me:$LINENO: checking $ac_header usability" >&5
7174echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7175cat >conftest.$ac_ext <<_ACEOF
7176/* confdefs.h. */
7177_ACEOF
7178cat confdefs.h >>conftest.$ac_ext
7179cat >>conftest.$ac_ext <<_ACEOF
7180/* end confdefs.h. */
7181$ac_includes_default
7182#include <$ac_header>
7183_ACEOF
7184rm -f conftest.$ac_objext
7185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7186 (eval $ac_compile) 2>conftest.er1
7187 ac_status=$?
7188 grep -v '^ *+' conftest.er1 >conftest.err
7189 rm -f conftest.er1
7190 cat conftest.err >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } &&
7193 { ac_try='test -z "$ac_cxx_werror_flag"
7194 || test ! -s conftest.err'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 (eval $ac_try) 2>&5
7197 ac_status=$?
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; } &&
7200 { ac_try='test -s conftest.$ac_objext'
7201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202 (eval $ac_try) 2>&5
7203 ac_status=$?
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; }; then
7206 ac_header_compiler=yes
7207else
7208 echo "$as_me: failed program was:" >&5
7209sed 's/^/| /' conftest.$ac_ext >&5
7210
7211ac_header_compiler=no
7212fi
7213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7214echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7215echo "${ECHO_T}$ac_header_compiler" >&6
7216
7217# Is the header present?
7218echo "$as_me:$LINENO: checking $ac_header presence" >&5
7219echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7220cat >conftest.$ac_ext <<_ACEOF
7221/* confdefs.h. */
7222_ACEOF
7223cat confdefs.h >>conftest.$ac_ext
7224cat >>conftest.$ac_ext <<_ACEOF
7225/* end confdefs.h. */
7226#include <$ac_header>
7227_ACEOF
7228if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7230 ac_status=$?
7231 grep -v '^ *+' conftest.er1 >conftest.err
7232 rm -f conftest.er1
7233 cat conftest.err >&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } >/dev/null; then
7236 if test -s conftest.err; then
7237 ac_cpp_err=$ac_cxx_preproc_warn_flag
7238 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7239 else
7240 ac_cpp_err=
7241 fi
7242else
7243 ac_cpp_err=yes
7244fi
7245if test -z "$ac_cpp_err"; then
7246 ac_header_preproc=yes
7247else
7248 echo "$as_me: failed program was:" >&5
7249sed 's/^/| /' conftest.$ac_ext >&5
7250
7251 ac_header_preproc=no
7252fi
7253rm -f conftest.err conftest.$ac_ext
7254echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7255echo "${ECHO_T}$ac_header_preproc" >&6
7256
7257# So? What about this header?
7258case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7259 yes:no: )
7260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7261echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7263echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7264 ac_header_preproc=yes
7265 ;;
7266 no:yes:* )
7267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7268echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7270echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7272echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7274echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7276echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7278echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7279 (
7280 cat <<\_ASBOX
7281## ------------------------------------------ ##
7282## Report this to the AC_PACKAGE_NAME lists. ##
7283## ------------------------------------------ ##
7284_ASBOX
7285 ) |
7286 sed "s/^/$as_me: WARNING: /" >&2
7287 ;;
7288esac
7289echo "$as_me:$LINENO: checking for $ac_header" >&5
7290echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7291if eval "test \"\${$as_ac_Header+set}\" = set"; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7293else
7294 eval "$as_ac_Header=\$ac_header_preproc"
7295fi
7296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7297echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7298
7299fi
7300if test `eval echo '${'$as_ac_Header'}'` = yes; then
7301 cat >>confdefs.h <<_ACEOF
7302#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7303_ACEOF
7304
7305fi
7306
7307done
7308
7309
7310for ac_func in getpagesize
7311do
7312as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7313echo "$as_me:$LINENO: checking for $ac_func" >&5
7314echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7315if eval "test \"\${$as_ac_var+set}\" = set"; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7317else
7318 cat >conftest.$ac_ext <<_ACEOF
7319/* confdefs.h. */
7320_ACEOF
7321cat confdefs.h >>conftest.$ac_ext
7322cat >>conftest.$ac_ext <<_ACEOF
7323/* end confdefs.h. */
7324/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7326#define $ac_func innocuous_$ac_func
7327
7328/* System header to define __stub macros and hopefully few prototypes,
7329 which can conflict with char $ac_func (); below.
7330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7331 <limits.h> exists even on freestanding compilers. */
7332
7333#ifdef __STDC__
7334# include <limits.h>
7335#else
7336# include <assert.h>
7337#endif
7338
7339#undef $ac_func
7340
7341/* Override any gcc2 internal prototype to avoid an error. */
7342#ifdef __cplusplus
7343extern "C"
7344{
7345#endif
7346/* We use char because int might match the return type of a gcc2
7347 builtin and then its argument prototype would still apply. */
7348char $ac_func ();
7349/* The GNU C library defines this for functions which it implements
7350 to always fail with ENOSYS. Some functions are actually named
7351 something starting with __ and the normal name is an alias. */
7352#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7353choke me
7354#else
7355char (*f) () = $ac_func;
7356#endif
7357#ifdef __cplusplus
7358}
7359#endif
7360
7361int
7362main ()
7363{
7364return f != $ac_func;
7365 ;
7366 return 0;
7367}
7368_ACEOF
7369rm -f conftest.$ac_objext conftest$ac_exeext
7370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7371 (eval $ac_link) 2>conftest.er1
7372 ac_status=$?
7373 grep -v '^ *+' conftest.er1 >conftest.err
7374 rm -f conftest.er1
7375 cat conftest.err >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } &&
7378 { ac_try='test -z "$ac_cxx_werror_flag"
7379 || test ! -s conftest.err'
7380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381 (eval $ac_try) 2>&5
7382 ac_status=$?
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }; } &&
7385 { ac_try='test -s conftest$ac_exeext'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 (eval $ac_try) 2>&5
7388 ac_status=$?
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; }; then
7391 eval "$as_ac_var=yes"
7392else
7393 echo "$as_me: failed program was:" >&5
7394sed 's/^/| /' conftest.$ac_ext >&5
7395
7396eval "$as_ac_var=no"
7397fi
7398rm -f conftest.err conftest.$ac_objext \
7399 conftest$ac_exeext conftest.$ac_ext
7400fi
7401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7402echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7403if test `eval echo '${'$as_ac_var'}'` = yes; then
7404 cat >>confdefs.h <<_ACEOF
7405#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7406_ACEOF
7407
7408fi
7409done
7410
7411echo "$as_me:$LINENO: checking for working mmap" >&5
7412echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7413if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7415else
7416 if test "$cross_compiling" = yes; then
7417 ac_cv_func_mmap_fixed_mapped=no
7418else
7419 cat >conftest.$ac_ext <<_ACEOF
7420/* confdefs.h. */
7421_ACEOF
7422cat confdefs.h >>conftest.$ac_ext
7423cat >>conftest.$ac_ext <<_ACEOF
7424/* end confdefs.h. */
7425$ac_includes_default
7426/* malloc might have been renamed as rpl_malloc. */
7427#undef malloc
7428
7429/* Thanks to Mike Haertel and Jim Avera for this test.
7430 Here is a matrix of mmap possibilities:
7431 mmap private not fixed
7432 mmap private fixed at somewhere currently unmapped
7433 mmap private fixed at somewhere already mapped
7434 mmap shared not fixed
7435 mmap shared fixed at somewhere currently unmapped
7436 mmap shared fixed at somewhere already mapped
7437 For private mappings, we should verify that changes cannot be read()
7438 back from the file, nor mmap's back from the file at a different
7439 address. (There have been systems where private was not correctly
7440 implemented like the infamous i386 svr4.0, and systems where the
7441 VM page cache was not coherent with the file system buffer cache
7442 like early versions of FreeBSD and possibly contemporary NetBSD.)
7443 For shared mappings, we should conversely verify that changes get
7444 propagated back to all the places they're supposed to be.
7445
7446 Grep wants private fixed already mapped.
7447 The main things grep needs to know about mmap are:
7448 * does it exist and is it safe to write into the mmap'd area
7449 * how to use it (BSD variants) */
7450
7451#include <fcntl.h>
7452#include <sys/mman.h>
7453
7454#if !STDC_HEADERS && !HAVE_STDLIB_H
7455char *malloc ();
7456#endif
7457
7458/* This mess was copied from the GNU getpagesize.h. */
7459#if !HAVE_GETPAGESIZE
7460/* Assume that all systems that can run configure have sys/param.h. */
7461# if !HAVE_SYS_PARAM_H
7462# define HAVE_SYS_PARAM_H 1
7463# endif
7464
7465# ifdef _SC_PAGESIZE
7466# define getpagesize() sysconf(_SC_PAGESIZE)
7467# else /* no _SC_PAGESIZE */
7468# if HAVE_SYS_PARAM_H
7469# include <sys/param.h>
7470# ifdef EXEC_PAGESIZE
7471# define getpagesize() EXEC_PAGESIZE
7472# else /* no EXEC_PAGESIZE */
7473# ifdef NBPG
7474# define getpagesize() NBPG * CLSIZE
7475# ifndef CLSIZE
7476# define CLSIZE 1
7477# endif /* no CLSIZE */
7478# else /* no NBPG */
7479# ifdef NBPC
7480# define getpagesize() NBPC
7481# else /* no NBPC */
7482# ifdef PAGESIZE
7483# define getpagesize() PAGESIZE
7484# endif /* PAGESIZE */
7485# endif /* no NBPC */
7486# endif /* no NBPG */
7487# endif /* no EXEC_PAGESIZE */
7488# else /* no HAVE_SYS_PARAM_H */
7489# define getpagesize() 8192 /* punt totally */
7490# endif /* no HAVE_SYS_PARAM_H */
7491# endif /* no _SC_PAGESIZE */
7492
7493#endif /* no HAVE_GETPAGESIZE */
7494
7495int
7496main ()
7497{
7498 char *data, *data2, *data3;
7499 int i, pagesize;
7500 int fd;
7501
7502 pagesize = getpagesize ();
7503
7504 /* First, make a file with some known garbage in it. */
7505 data = (char *) malloc (pagesize);
7506 if (!data)
7507 exit (1);
7508 for (i = 0; i < pagesize; ++i)
7509 *(data + i) = rand ();
7510 umask (0);
7511 fd = creat ("conftest.mmap", 0600);
7512 if (fd < 0)
7513 exit (1);
7514 if (write (fd, data, pagesize) != pagesize)
7515 exit (1);
7516 close (fd);
7517
7518 /* Next, try to mmap the file at a fixed address which already has
7519 something else allocated at it. If we can, also make sure that
7520 we see the same garbage. */
7521 fd = open ("conftest.mmap", O_RDWR);
7522 if (fd < 0)
7523 exit (1);
7524 data2 = (char *) malloc (2 * pagesize);
7525 if (!data2)
7526 exit (1);
7527 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
7528 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7529 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7530 exit (1);
7531 for (i = 0; i < pagesize; ++i)
7532 if (*(data + i) != *(data2 + i))
7533 exit (1);
7534
7535 /* Finally, make sure that changes to the mapped area do not
7536 percolate back to the file as seen by read(). (This is a bug on
7537 some variants of i386 svr4.0.) */
7538 for (i = 0; i < pagesize; ++i)
7539 *(data2 + i) = *(data2 + i) + 1;
7540 data3 = (char *) malloc (pagesize);
7541 if (!data3)
7542 exit (1);
7543 if (read (fd, data3, pagesize) != pagesize)
7544 exit (1);
7545 for (i = 0; i < pagesize; ++i)
7546 if (*(data + i) != *(data3 + i))
7547 exit (1);
7548 close (fd);
7549 exit (0);
7550}
7551_ACEOF
7552rm -f conftest$ac_exeext
7553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7554 (eval $ac_link) 2>&5
7555 ac_status=$?
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559 (eval $ac_try) 2>&5
7560 ac_status=$?
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); }; }; then
7563 ac_cv_func_mmap_fixed_mapped=yes
7564else
7565 echo "$as_me: program exited with status $ac_status" >&5
7566echo "$as_me: failed program was:" >&5
7567sed 's/^/| /' conftest.$ac_ext >&5
7568
7569( exit $ac_status )
7570ac_cv_func_mmap_fixed_mapped=no
7571fi
7572rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7573fi
7574fi
7575echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7576echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7577if test $ac_cv_func_mmap_fixed_mapped = yes; then
7578
7579cat >>confdefs.h <<\_ACEOF
7580#define HAVE_MMAP 1
7581_ACEOF
7582
7583fi
7584rm -f conftest.mmap
7585
7586
7587 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7588echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7589if test "${ac_cv_gnu_library_2_1+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7591else
7592 cat >conftest.$ac_ext <<_ACEOF
7593/* confdefs.h. */
7594_ACEOF
7595cat confdefs.h >>conftest.$ac_ext
7596cat >>conftest.$ac_ext <<_ACEOF
7597/* end confdefs.h. */
7598
7599#include <features.h>
7600#ifdef __GNU_LIBRARY__
7601 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7602 Lucky GNU user
7603 #endif
7604#endif
7605
7606_ACEOF
7607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7608 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7609 ac_cv_gnu_library_2_1=yes
7610else
7611 ac_cv_gnu_library_2_1=no
7612fi
7613rm -f conftest*
7614
7615
7616
7617fi
7618echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7619echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7620
7621 GLIBC21="$ac_cv_gnu_library_2_1"
7622
7623
7624
7625
7626 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
7627echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
7628if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7630else
7631
7632 if test "$cross_compiling" = yes; then
7633
7634 # Guess based on the CPU.
7635 case "$host_cpu" in
7636 alpha* | i3456786 | m68k | s390*)
7637 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7638 *)
7639 gt_cv_int_divbyzero_sigfpe="guessing no";;
7640 esac
7641
7642else
7643 cat >conftest.$ac_ext <<_ACEOF
7644/* confdefs.h. */
7645_ACEOF
7646cat confdefs.h >>conftest.$ac_ext
7647cat >>conftest.$ac_ext <<_ACEOF
7648/* end confdefs.h. */
7649
7650#include <stdlib.h>
7651#include <signal.h>
7652
7653static void
7654#ifdef __cplusplus
7655sigfpe_handler (int sig)
7656#else
7657sigfpe_handler (sig) int sig;
7658#endif
7659{
7660 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7661 exit (sig != SIGFPE);
7662}
7663
7664int x = 1;
7665int y = 0;
7666int z;
7667int nan;
7668
7669int main ()
7670{
7671 signal (SIGFPE, sigfpe_handler);
7672/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7673#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7674 signal (SIGTRAP, sigfpe_handler);
7675#endif
7676/* Linux/SPARC yields signal SIGILL. */
7677#if defined (__sparc__) && defined (__linux__)
7678 signal (SIGILL, sigfpe_handler);
7679#endif
7680
7681 z = x / y;
7682 nan = y / y;
7683 exit (1);
7684}
7685
7686_ACEOF
7687rm -f conftest$ac_exeext
7688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7689 (eval $ac_link) 2>&5
7690 ac_status=$?
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 (eval $ac_try) 2>&5
7695 ac_status=$?
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); }; }; then
7698 gt_cv_int_divbyzero_sigfpe=yes
7699else
7700 echo "$as_me: program exited with status $ac_status" >&5
7701echo "$as_me: failed program was:" >&5
7702sed 's/^/| /' conftest.$ac_ext >&5
7703
7704( exit $ac_status )
7705gt_cv_int_divbyzero_sigfpe=no
7706fi
7707rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7708fi
7709
7710fi
7711echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7712echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
7713 case "$gt_cv_int_divbyzero_sigfpe" in
7714 *yes) value=1;;
7715 *) value=0;;
7716 esac
7717
7718cat >>confdefs.h <<_ACEOF
7719#define INTDIV0_RAISES_SIGFPE $value
7720_ACEOF
7721
7722
7723
7724 echo "$as_me:$LINENO: checking for unsigned long long" >&5
7725echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7726if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7728else
7729 cat >conftest.$ac_ext <<_ACEOF
7730/* confdefs.h. */
7731_ACEOF
7732cat confdefs.h >>conftest.$ac_ext
7733cat >>conftest.$ac_ext <<_ACEOF
7734/* end confdefs.h. */
7735unsigned long long ull = 1ULL; int i = 63;
7736int
7737main ()
7738{
7739unsigned long long ullmax = (unsigned long long) -1;
7740 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7741 ;
7742 return 0;
7743}
7744_ACEOF
7745rm -f conftest.$ac_objext conftest$ac_exeext
7746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7747 (eval $ac_link) 2>conftest.er1
7748 ac_status=$?
7749 grep -v '^ *+' conftest.er1 >conftest.err
7750 rm -f conftest.er1
7751 cat conftest.err >&5
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); } &&
7754 { ac_try='test -z "$ac_cxx_werror_flag"
7755 || test ! -s conftest.err'
7756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757 (eval $ac_try) 2>&5
7758 ac_status=$?
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }; } &&
7761 { ac_try='test -s conftest$ac_exeext'
7762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763 (eval $ac_try) 2>&5
7764 ac_status=$?
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); }; }; then
7767 ac_cv_type_unsigned_long_long=yes
7768else
7769 echo "$as_me: failed program was:" >&5
7770sed 's/^/| /' conftest.$ac_ext >&5
7771
7772ac_cv_type_unsigned_long_long=no
7773fi
7774rm -f conftest.err conftest.$ac_objext \
7775 conftest$ac_exeext conftest.$ac_ext
7776fi
7777echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7778echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
7779 if test $ac_cv_type_unsigned_long_long = yes; then
7780
7781cat >>confdefs.h <<\_ACEOF
7782#define HAVE_UNSIGNED_LONG_LONG 1
7783_ACEOF
7784
7785 fi
7786
7787
7788
7789
7790 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7791
7792 test $ac_cv_type_unsigned_long_long = yes \
7793 && ac_type='unsigned long long' \
7794 || ac_type='unsigned long'
7795
7796cat >>confdefs.h <<_ACEOF
7797#define uintmax_t $ac_type
7798_ACEOF
7799
7800 else
7801
7802cat >>confdefs.h <<\_ACEOF
7803#define HAVE_UINTMAX_T 1
7804_ACEOF
7805
7806 fi
7807
7808
7809 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7810echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7811if test "${gt_cv_header_inttypes_h+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7813else
7814
7815 cat >conftest.$ac_ext <<_ACEOF
7816/* confdefs.h. */
7817_ACEOF
7818cat confdefs.h >>conftest.$ac_ext
7819cat >>conftest.$ac_ext <<_ACEOF
7820/* end confdefs.h. */
7821#include <sys/types.h>
7822#include <inttypes.h>
7823int
7824main ()
7825{
7826
7827 ;
7828 return 0;
7829}
7830_ACEOF
7831rm -f conftest.$ac_objext
7832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7833 (eval $ac_compile) 2>conftest.er1
7834 ac_status=$?
7835 grep -v '^ *+' conftest.er1 >conftest.err
7836 rm -f conftest.er1
7837 cat conftest.err >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } &&
7840 { ac_try='test -z "$ac_cxx_werror_flag"
7841 || test ! -s conftest.err'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 (eval $ac_try) 2>&5
7844 ac_status=$?
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; } &&
7847 { ac_try='test -s conftest.$ac_objext'
7848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849 (eval $ac_try) 2>&5
7850 ac_status=$?
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; }; then
7853 gt_cv_header_inttypes_h=yes
7854else
7855 echo "$as_me: failed program was:" >&5
7856sed 's/^/| /' conftest.$ac_ext >&5
7857
7858gt_cv_header_inttypes_h=no
7859fi
7860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7861
7862fi
7863echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7864echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
7865 if test $gt_cv_header_inttypes_h = yes; then
7866
7867cat >>confdefs.h <<_ACEOF
7868#define HAVE_INTTYPES_H 1
7869_ACEOF
7870
7871 fi
7872
7873
7874
7875 if test $gt_cv_header_inttypes_h = yes; then
7876 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7877echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
7878if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7880else
7881
7882 cat >conftest.$ac_ext <<_ACEOF
7883/* confdefs.h. */
7884_ACEOF
7885cat confdefs.h >>conftest.$ac_ext
7886cat >>conftest.$ac_ext <<_ACEOF
7887/* end confdefs.h. */
7888#include <inttypes.h>
7889#ifdef PRId32
7890char *p = PRId32;
7891#endif
7892
7893int
7894main ()
7895{
7896
7897 ;
7898 return 0;
7899}
7900_ACEOF
7901rm -f conftest.$ac_objext
7902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7903 (eval $ac_compile) 2>conftest.er1
7904 ac_status=$?
7905 grep -v '^ *+' conftest.er1 >conftest.err
7906 rm -f conftest.er1
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } &&
7910 { ac_try='test -z "$ac_cxx_werror_flag"
7911 || test ! -s conftest.err'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 (eval $ac_try) 2>&5
7914 ac_status=$?
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; } &&
7917 { ac_try='test -s conftest.$ac_objext'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 (eval $ac_try) 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
7923 gt_cv_inttypes_pri_broken=no
7924else
7925 echo "$as_me: failed program was:" >&5
7926sed 's/^/| /' conftest.$ac_ext >&5
7927
7928gt_cv_inttypes_pri_broken=yes
7929fi
7930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7931
7932fi
7933echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7934echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
7935 fi
7936 if test "$gt_cv_inttypes_pri_broken" = yes; then
7937
7938cat >>confdefs.h <<_ACEOF
7939#define PRI_MACROS_BROKEN 1
7940_ACEOF
7941
7942 fi
7943
7944
7945
7946for ac_header in stdint.h
7947do
7948as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7949if eval "test \"\${$as_ac_Header+set}\" = set"; then
7950 echo "$as_me:$LINENO: checking for $ac_header" >&5
7951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7952if eval "test \"\${$as_ac_Header+set}\" = set"; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7954fi
7955echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7956echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7957else
7958 # Is the header compilable?
7959echo "$as_me:$LINENO: checking $ac_header usability" >&5
7960echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7961cat >conftest.$ac_ext <<_ACEOF
7962/* confdefs.h. */
7963_ACEOF
7964cat confdefs.h >>conftest.$ac_ext
7965cat >>conftest.$ac_ext <<_ACEOF
7966/* end confdefs.h. */
7967$ac_includes_default
7968#include <$ac_header>
7969_ACEOF
7970rm -f conftest.$ac_objext
7971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7972 (eval $ac_compile) 2>conftest.er1
7973 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 (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 ac_header_compiler=yes
7993else
7994 echo "$as_me: failed program was:" >&5
7995sed 's/^/| /' conftest.$ac_ext >&5
7996
7997ac_header_compiler=no
7998fi
7999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8000echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8001echo "${ECHO_T}$ac_header_compiler" >&6
8002
8003# Is the header present?
8004echo "$as_me:$LINENO: checking $ac_header presence" >&5
8005echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8006cat >conftest.$ac_ext <<_ACEOF
8007/* confdefs.h. */
8008_ACEOF
8009cat confdefs.h >>conftest.$ac_ext
8010cat >>conftest.$ac_ext <<_ACEOF
8011/* end confdefs.h. */
8012#include <$ac_header>
8013_ACEOF
8014if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8016 ac_status=$?
8017 grep -v '^ *+' conftest.er1 >conftest.err
8018 rm -f conftest.er1
8019 cat conftest.err >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } >/dev/null; then
8022 if test -s conftest.err; then
8023 ac_cpp_err=$ac_cxx_preproc_warn_flag
8024 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8025 else
8026 ac_cpp_err=
8027 fi
8028else
8029 ac_cpp_err=yes
8030fi
8031if test -z "$ac_cpp_err"; then
8032 ac_header_preproc=yes
8033else
8034 echo "$as_me: failed program was:" >&5
8035sed 's/^/| /' conftest.$ac_ext >&5
8036
8037 ac_header_preproc=no
8038fi
8039rm -f conftest.err conftest.$ac_ext
8040echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8041echo "${ECHO_T}$ac_header_preproc" >&6
8042
8043# So? What about this header?
8044case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8045 yes:no: )
8046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8047echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8049echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8050 ac_header_preproc=yes
8051 ;;
8052 no:yes:* )
8053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8054echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8056echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8058echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8060echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8062echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8064echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8065 (
8066 cat <<\_ASBOX
8067## ------------------------------------------ ##
8068## Report this to the AC_PACKAGE_NAME lists. ##
8069## ------------------------------------------ ##
8070_ASBOX
8071 ) |
8072 sed "s/^/$as_me: WARNING: /" >&2
8073 ;;
8074esac
8075echo "$as_me:$LINENO: checking for $ac_header" >&5
8076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8077if eval "test \"\${$as_ac_Header+set}\" = set"; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8079else
8080 eval "$as_ac_Header=\$ac_header_preproc"
8081fi
8082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8083echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8084
8085fi
8086if test `eval echo '${'$as_ac_Header'}'` = yes; then
8087 cat >>confdefs.h <<_ACEOF
8088#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8089_ACEOF
8090
8091fi
8092
8093done
8094
8095 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
8096echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
8097 result=
8098 cat >conftest.$ac_ext <<_ACEOF
8099/* confdefs.h. */
8100_ACEOF
8101cat confdefs.h >>conftest.$ac_ext
8102cat >>conftest.$ac_ext <<_ACEOF
8103/* end confdefs.h. */
8104
8105#include <limits.h>
8106#if HAVE_STDINT_H
8107#include <stdint.h>
8108#endif
8109#ifdef SIZE_MAX
8110Found it
8111#endif
8112
8113_ACEOF
8114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8115 $EGREP "Found it" >/dev/null 2>&1; then
8116 result=yes
8117fi
8118rm -f conftest*
8119
8120 if test -z "$result"; then
8121 if test "$cross_compiling" = yes; then
8122 # Depending upon the size, compute the lo and hi bounds.
8123cat >conftest.$ac_ext <<_ACEOF
8124/* confdefs.h. */
8125_ACEOF
8126cat confdefs.h >>conftest.$ac_ext
8127cat >>conftest.$ac_ext <<_ACEOF
8128/* end confdefs.h. */
8129#include <stddef.h>
8130int
8131main ()
8132{
8133static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
8134test_array [0] = 0
8135
8136 ;
8137 return 0;
8138}
8139_ACEOF
8140rm -f conftest.$ac_objext
8141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8142 (eval $ac_compile) 2>conftest.er1
8143 ac_status=$?
8144 grep -v '^ *+' conftest.er1 >conftest.err
8145 rm -f conftest.er1
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } &&
8149 { ac_try='test -z "$ac_cxx_werror_flag"
8150 || test ! -s conftest.err'
8151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152 (eval $ac_try) 2>&5
8153 ac_status=$?
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; } &&
8156 { ac_try='test -s conftest.$ac_objext'
8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158 (eval $ac_try) 2>&5
8159 ac_status=$?
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; }; then
8162 ac_lo=0 ac_mid=0
8163 while :; do
8164 cat >conftest.$ac_ext <<_ACEOF
8165/* confdefs.h. */
8166_ACEOF
8167cat confdefs.h >>conftest.$ac_ext
8168cat >>conftest.$ac_ext <<_ACEOF
8169/* end confdefs.h. */
8170#include <stddef.h>
8171int
8172main ()
8173{
8174static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
8175test_array [0] = 0
8176
8177 ;
8178 return 0;
8179}
8180_ACEOF
8181rm -f conftest.$ac_objext
8182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8183 (eval $ac_compile) 2>conftest.er1
8184 ac_status=$?
8185 grep -v '^ *+' conftest.er1 >conftest.err
8186 rm -f conftest.er1
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } &&
8190 { ac_try='test -z "$ac_cxx_werror_flag"
8191 || test ! -s conftest.err'
8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193 (eval $ac_try) 2>&5
8194 ac_status=$?
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; } &&
8197 { ac_try='test -s conftest.$ac_objext'
8198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199 (eval $ac_try) 2>&5
8200 ac_status=$?
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); }; }; then
8203 ac_hi=$ac_mid; break
8204else
8205 echo "$as_me: failed program was:" >&5
8206sed 's/^/| /' conftest.$ac_ext >&5
8207
8208ac_lo=`expr $ac_mid + 1`
8209 if test $ac_lo -le $ac_mid; then
8210 ac_lo= ac_hi=
8211 break
8212 fi
8213 ac_mid=`expr 2 '*' $ac_mid + 1`
8214fi
8215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8216 done
8217else
8218 echo "$as_me: failed program was:" >&5
8219sed 's/^/| /' conftest.$ac_ext >&5
8220
8221cat >conftest.$ac_ext <<_ACEOF
8222/* confdefs.h. */
8223_ACEOF
8224cat confdefs.h >>conftest.$ac_ext
8225cat >>conftest.$ac_ext <<_ACEOF
8226/* end confdefs.h. */
8227#include <stddef.h>
8228int
8229main ()
8230{
8231static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
8232test_array [0] = 0
8233
8234 ;
8235 return 0;
8236}
8237_ACEOF
8238rm -f conftest.$ac_objext
8239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8240 (eval $ac_compile) 2>conftest.er1
8241 ac_status=$?
8242 grep -v '^ *+' conftest.er1 >conftest.err
8243 rm -f conftest.er1
8244 cat conftest.err >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } &&
8247 { ac_try='test -z "$ac_cxx_werror_flag"
8248 || test ! -s conftest.err'
8249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 (eval $ac_try) 2>&5
8251 ac_status=$?
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); }; } &&
8254 { ac_try='test -s conftest.$ac_objext'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 (eval $ac_try) 2>&5
8257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; }; then
8260 ac_hi=-1 ac_mid=-1
8261 while :; do
8262 cat >conftest.$ac_ext <<_ACEOF
8263/* confdefs.h. */
8264_ACEOF
8265cat confdefs.h >>conftest.$ac_ext
8266cat >>conftest.$ac_ext <<_ACEOF
8267/* end confdefs.h. */
8268#include <stddef.h>
8269int
8270main ()
8271{
8272static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
8273test_array [0] = 0
8274
8275 ;
8276 return 0;
8277}
8278_ACEOF
8279rm -f conftest.$ac_objext
8280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8281 (eval $ac_compile) 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } &&
8288 { ac_try='test -z "$ac_cxx_werror_flag"
8289 || test ! -s conftest.err'
8290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291 (eval $ac_try) 2>&5
8292 ac_status=$?
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; } &&
8295 { ac_try='test -s conftest.$ac_objext'
8296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 (eval $ac_try) 2>&5
8298 ac_status=$?
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; }; then
8301 ac_lo=$ac_mid; break
8302else
8303 echo "$as_me: failed program was:" >&5
8304sed 's/^/| /' conftest.$ac_ext >&5
8305
8306ac_hi=`expr '(' $ac_mid ')' - 1`
8307 if test $ac_mid -le $ac_hi; then
8308 ac_lo= ac_hi=
8309 break
8310 fi
8311 ac_mid=`expr 2 '*' $ac_mid`
8312fi
8313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8314 done
8315else
8316 echo "$as_me: failed program was:" >&5
8317sed 's/^/| /' conftest.$ac_ext >&5
8318
8319ac_lo= ac_hi=
8320fi
8321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8322fi
8323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8324# Binary search between lo and hi bounds.
8325while test "x$ac_lo" != "x$ac_hi"; do
8326 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8327 cat >conftest.$ac_ext <<_ACEOF
8328/* confdefs.h. */
8329_ACEOF
8330cat confdefs.h >>conftest.$ac_ext
8331cat >>conftest.$ac_ext <<_ACEOF
8332/* end confdefs.h. */
8333#include <stddef.h>
8334int
8335main ()
8336{
8337static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
8338test_array [0] = 0
8339
8340 ;
8341 return 0;
8342}
8343_ACEOF
8344rm -f conftest.$ac_objext
8345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8346 (eval $ac_compile) 2>conftest.er1
8347 ac_status=$?
8348 grep -v '^ *+' conftest.er1 >conftest.err
8349 rm -f conftest.er1
8350 cat conftest.err >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); } &&
8353 { ac_try='test -z "$ac_cxx_werror_flag"
8354 || test ! -s conftest.err'
8355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356 (eval $ac_try) 2>&5
8357 ac_status=$?
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; } &&
8360 { ac_try='test -s conftest.$ac_objext'
8361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362 (eval $ac_try) 2>&5
8363 ac_status=$?
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); }; }; then
8366 ac_hi=$ac_mid
8367else
8368 echo "$as_me: failed program was:" >&5
8369sed 's/^/| /' conftest.$ac_ext >&5
8370
8371ac_lo=`expr '(' $ac_mid ')' + 1`
8372fi
8373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8374done
8375case $ac_lo in
8376?*) res_hi=$ac_lo;;
8377'') result=? ;;
8378esac
8379else
8380 if test "$cross_compiling" = yes; then
8381 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8382See \`config.log' for more details." >&5
8383echo "$as_me: error: cannot run test program while cross compiling
8384See \`config.log' for more details." >&2;}
8385 { (exit 1); exit 1; }; }
8386else
8387 cat >conftest.$ac_ext <<_ACEOF
8388/* confdefs.h. */
8389_ACEOF
8390cat confdefs.h >>conftest.$ac_ext
8391cat >>conftest.$ac_ext <<_ACEOF
8392/* end confdefs.h. */
8393#include <stddef.h>
8394long longval () { return ~(size_t)0 / 10; }
8395unsigned long ulongval () { return ~(size_t)0 / 10; }
8396#include <stdio.h>
8397#include <stdlib.h>
8398int
8399main ()
8400{
8401
8402 FILE *f = fopen ("conftest.val", "w");
8403 if (! f)
8404 exit (1);
8405 if ((~(size_t)0 / 10) < 0)
8406 {
8407 long i = longval ();
8408 if (i != (~(size_t)0 / 10))
8409 exit (1);
8410 fprintf (f, "%ld\n", i);
8411 }
8412 else
8413 {
8414 unsigned long i = ulongval ();
8415 if (i != (~(size_t)0 / 10))
8416 exit (1);
8417 fprintf (f, "%lu\n", i);
8418 }
8419 exit (ferror (f) || fclose (f) != 0);
8420
8421 ;
8422 return 0;
8423}
8424_ACEOF
8425rm -f conftest$ac_exeext
8426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8427 (eval $ac_link) 2>&5
8428 ac_status=$?
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 (eval $ac_try) 2>&5
8433 ac_status=$?
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 res_hi=`cat conftest.val`
8437else
8438 echo "$as_me: program exited with status $ac_status" >&5
8439echo "$as_me: failed program was:" >&5
8440sed 's/^/| /' conftest.$ac_ext >&5
8441
8442( exit $ac_status )
8443result=?
8444fi
8445rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8446fi
8447fi
8448rm -f conftest.val
8449 if test "$cross_compiling" = yes; then
8450 # Depending upon the size, compute the lo and hi bounds.
8451cat >conftest.$ac_ext <<_ACEOF
8452/* confdefs.h. */
8453_ACEOF
8454cat confdefs.h >>conftest.$ac_ext
8455cat >>conftest.$ac_ext <<_ACEOF
8456/* end confdefs.h. */
8457#include <stddef.h>
8458int
8459main ()
8460{
8461static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
8462test_array [0] = 0
8463
8464 ;
8465 return 0;
8466}
8467_ACEOF
8468rm -f conftest.$ac_objext
8469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8470 (eval $ac_compile) 2>conftest.er1
8471 ac_status=$?
8472 grep -v '^ *+' conftest.er1 >conftest.err
8473 rm -f conftest.er1
8474 cat conftest.err >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
8477 { ac_try='test -z "$ac_cxx_werror_flag"
8478 || test ! -s conftest.err'
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 (eval $ac_try) 2>&5
8481 ac_status=$?
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; } &&
8484 { ac_try='test -s conftest.$ac_objext'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 (eval $ac_try) 2>&5
8487 ac_status=$?
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; }; then
8490 ac_lo=0 ac_mid=0
8491 while :; do
8492 cat >conftest.$ac_ext <<_ACEOF
8493/* confdefs.h. */
8494_ACEOF
8495cat confdefs.h >>conftest.$ac_ext
8496cat >>conftest.$ac_ext <<_ACEOF
8497/* end confdefs.h. */
8498#include <stddef.h>
8499int
8500main ()
8501{
8502static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8503test_array [0] = 0
8504
8505 ;
8506 return 0;
8507}
8508_ACEOF
8509rm -f conftest.$ac_objext
8510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8511 (eval $ac_compile) 2>conftest.er1
8512 ac_status=$?
8513 grep -v '^ *+' conftest.er1 >conftest.err
8514 rm -f conftest.er1
8515 cat conftest.err >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } &&
8518 { ac_try='test -z "$ac_cxx_werror_flag"
8519 || test ! -s conftest.err'
8520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521 (eval $ac_try) 2>&5
8522 ac_status=$?
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; } &&
8525 { ac_try='test -s conftest.$ac_objext'
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 (eval $ac_try) 2>&5
8528 ac_status=$?
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; }; then
8531 ac_hi=$ac_mid; break
8532else
8533 echo "$as_me: failed program was:" >&5
8534sed 's/^/| /' conftest.$ac_ext >&5
8535
8536ac_lo=`expr $ac_mid + 1`
8537 if test $ac_lo -le $ac_mid; then
8538 ac_lo= ac_hi=
8539 break
8540 fi
8541 ac_mid=`expr 2 '*' $ac_mid + 1`
8542fi
8543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8544 done
8545else
8546 echo "$as_me: failed program was:" >&5
8547sed 's/^/| /' conftest.$ac_ext >&5
8548
8549cat >conftest.$ac_ext <<_ACEOF
8550/* confdefs.h. */
8551_ACEOF
8552cat confdefs.h >>conftest.$ac_ext
8553cat >>conftest.$ac_ext <<_ACEOF
8554/* end confdefs.h. */
8555#include <stddef.h>
8556int
8557main ()
8558{
8559static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
8560test_array [0] = 0
8561
8562 ;
8563 return 0;
8564}
8565_ACEOF
8566rm -f conftest.$ac_objext
8567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8568 (eval $ac_compile) 2>conftest.er1
8569 ac_status=$?
8570 grep -v '^ *+' conftest.er1 >conftest.err
8571 rm -f conftest.er1
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } &&
8575 { ac_try='test -z "$ac_cxx_werror_flag"
8576 || test ! -s conftest.err'
8577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 (eval $ac_try) 2>&5
8579 ac_status=$?
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; } &&
8582 { ac_try='test -s conftest.$ac_objext'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 (eval $ac_try) 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; }; then
8588 ac_hi=-1 ac_mid=-1
8589 while :; do
8590 cat >conftest.$ac_ext <<_ACEOF
8591/* confdefs.h. */
8592_ACEOF
8593cat confdefs.h >>conftest.$ac_ext
8594cat >>conftest.$ac_ext <<_ACEOF
8595/* end confdefs.h. */
8596#include <stddef.h>
8597int
8598main ()
8599{
8600static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
8601test_array [0] = 0
8602
8603 ;
8604 return 0;
8605}
8606_ACEOF
8607rm -f conftest.$ac_objext
8608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8609 (eval $ac_compile) 2>conftest.er1
8610 ac_status=$?
8611 grep -v '^ *+' conftest.er1 >conftest.err
8612 rm -f conftest.er1
8613 cat conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } &&
8616 { ac_try='test -z "$ac_cxx_werror_flag"
8617 || test ! -s conftest.err'
8618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619 (eval $ac_try) 2>&5
8620 ac_status=$?
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); }; } &&
8623 { ac_try='test -s conftest.$ac_objext'
8624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625 (eval $ac_try) 2>&5
8626 ac_status=$?
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; }; then
8629 ac_lo=$ac_mid; break
8630else
8631 echo "$as_me: failed program was:" >&5
8632sed 's/^/| /' conftest.$ac_ext >&5
8633
8634ac_hi=`expr '(' $ac_mid ')' - 1`
8635 if test $ac_mid -le $ac_hi; then
8636 ac_lo= ac_hi=
8637 break
8638 fi
8639 ac_mid=`expr 2 '*' $ac_mid`
8640fi
8641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8642 done
8643else
8644 echo "$as_me: failed program was:" >&5
8645sed 's/^/| /' conftest.$ac_ext >&5
8646
8647ac_lo= ac_hi=
8648fi
8649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8650fi
8651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8652# Binary search between lo and hi bounds.
8653while test "x$ac_lo" != "x$ac_hi"; do
8654 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8655 cat >conftest.$ac_ext <<_ACEOF
8656/* confdefs.h. */
8657_ACEOF
8658cat confdefs.h >>conftest.$ac_ext
8659cat >>conftest.$ac_ext <<_ACEOF
8660/* end confdefs.h. */
8661#include <stddef.h>
8662int
8663main ()
8664{
8665static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8666test_array [0] = 0
8667
8668 ;
8669 return 0;
8670}
8671_ACEOF
8672rm -f conftest.$ac_objext
8673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8674 (eval $ac_compile) 2>conftest.er1
8675 ac_status=$?
8676 grep -v '^ *+' conftest.er1 >conftest.err
8677 rm -f conftest.er1
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } &&
8681 { ac_try='test -z "$ac_cxx_werror_flag"
8682 || test ! -s conftest.err'
8683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684 (eval $ac_try) 2>&5
8685 ac_status=$?
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); }; } &&
8688 { ac_try='test -s conftest.$ac_objext'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 (eval $ac_try) 2>&5
8691 ac_status=$?
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; }; then
8694 ac_hi=$ac_mid
8695else
8696 echo "$as_me: failed program was:" >&5
8697sed 's/^/| /' conftest.$ac_ext >&5
8698
8699ac_lo=`expr '(' $ac_mid ')' + 1`
8700fi
8701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8702done
8703case $ac_lo in
8704?*) res_lo=$ac_lo;;
8705'') result=? ;;
8706esac
8707else
8708 if test "$cross_compiling" = yes; then
8709 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8710See \`config.log' for more details." >&5
8711echo "$as_me: error: cannot run test program while cross compiling
8712See \`config.log' for more details." >&2;}
8713 { (exit 1); exit 1; }; }
8714else
8715 cat >conftest.$ac_ext <<_ACEOF
8716/* confdefs.h. */
8717_ACEOF
8718cat confdefs.h >>conftest.$ac_ext
8719cat >>conftest.$ac_ext <<_ACEOF
8720/* end confdefs.h. */
8721#include <stddef.h>
8722long longval () { return ~(size_t)0 % 10; }
8723unsigned long ulongval () { return ~(size_t)0 % 10; }
8724#include <stdio.h>
8725#include <stdlib.h>
8726int
8727main ()
8728{
8729
8730 FILE *f = fopen ("conftest.val", "w");
8731 if (! f)
8732 exit (1);
8733 if ((~(size_t)0 % 10) < 0)
8734 {
8735 long i = longval ();
8736 if (i != (~(size_t)0 % 10))
8737 exit (1);
8738 fprintf (f, "%ld\n", i);
8739 }
8740 else
8741 {
8742 unsigned long i = ulongval ();
8743 if (i != (~(size_t)0 % 10))
8744 exit (1);
8745 fprintf (f, "%lu\n", i);
8746 }
8747 exit (ferror (f) || fclose (f) != 0);
8748
8749 ;
8750 return 0;
8751}
8752_ACEOF
8753rm -f conftest$ac_exeext
8754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8755 (eval $ac_link) 2>&5
8756 ac_status=$?
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 (eval $ac_try) 2>&5
8761 ac_status=$?
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
8764 res_lo=`cat conftest.val`
8765else
8766 echo "$as_me: program exited with status $ac_status" >&5
8767echo "$as_me: failed program was:" >&5
8768sed 's/^/| /' conftest.$ac_ext >&5
8769
8770( exit $ac_status )
8771result=?
8772fi
8773rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8774fi
8775fi
8776rm -f conftest.val
8777 if test "$cross_compiling" = yes; then
8778 # Depending upon the size, compute the lo and hi bounds.
8779cat >conftest.$ac_ext <<_ACEOF
8780/* confdefs.h. */
8781_ACEOF
8782cat confdefs.h >>conftest.$ac_ext
8783cat >>conftest.$ac_ext <<_ACEOF
8784/* end confdefs.h. */
8785#include <stddef.h>
8786int
8787main ()
8788{
8789static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
8790test_array [0] = 0
8791
8792 ;
8793 return 0;
8794}
8795_ACEOF
8796rm -f conftest.$ac_objext
8797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8798 (eval $ac_compile) 2>conftest.er1
8799 ac_status=$?
8800 grep -v '^ *+' conftest.er1 >conftest.err
8801 rm -f conftest.er1
8802 cat conftest.err >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); } &&
8805 { ac_try='test -z "$ac_cxx_werror_flag"
8806 || test ! -s conftest.err'
8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808 (eval $ac_try) 2>&5
8809 ac_status=$?
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; } &&
8812 { ac_try='test -s conftest.$ac_objext'
8813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814 (eval $ac_try) 2>&5
8815 ac_status=$?
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
8818 ac_lo=0 ac_mid=0
8819 while :; do
8820 cat >conftest.$ac_ext <<_ACEOF
8821/* confdefs.h. */
8822_ACEOF
8823cat confdefs.h >>conftest.$ac_ext
8824cat >>conftest.$ac_ext <<_ACEOF
8825/* end confdefs.h. */
8826#include <stddef.h>
8827int
8828main ()
8829{
8830static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8831test_array [0] = 0
8832
8833 ;
8834 return 0;
8835}
8836_ACEOF
8837rm -f conftest.$ac_objext
8838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8839 (eval $ac_compile) 2>conftest.er1
8840 ac_status=$?
8841 grep -v '^ *+' conftest.er1 >conftest.err
8842 rm -f conftest.er1
8843 cat conftest.err >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } &&
8846 { ac_try='test -z "$ac_cxx_werror_flag"
8847 || test ! -s conftest.err'
8848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849 (eval $ac_try) 2>&5
8850 ac_status=$?
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; } &&
8853 { ac_try='test -s conftest.$ac_objext'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855 (eval $ac_try) 2>&5
8856 ac_status=$?
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; }; then
8859 ac_hi=$ac_mid; break
8860else
8861 echo "$as_me: failed program was:" >&5
8862sed 's/^/| /' conftest.$ac_ext >&5
8863
8864ac_lo=`expr $ac_mid + 1`
8865 if test $ac_lo -le $ac_mid; then
8866 ac_lo= ac_hi=
8867 break
8868 fi
8869 ac_mid=`expr 2 '*' $ac_mid + 1`
8870fi
8871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8872 done
8873else
8874 echo "$as_me: failed program was:" >&5
8875sed 's/^/| /' conftest.$ac_ext >&5
8876
8877cat >conftest.$ac_ext <<_ACEOF
8878/* confdefs.h. */
8879_ACEOF
8880cat confdefs.h >>conftest.$ac_ext
8881cat >>conftest.$ac_ext <<_ACEOF
8882/* end confdefs.h. */
8883#include <stddef.h>
8884int
8885main ()
8886{
8887static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8888test_array [0] = 0
8889
8890 ;
8891 return 0;
8892}
8893_ACEOF
8894rm -f conftest.$ac_objext
8895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8896 (eval $ac_compile) 2>conftest.er1
8897 ac_status=$?
8898 grep -v '^ *+' conftest.er1 >conftest.err
8899 rm -f conftest.er1
8900 cat conftest.err >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } &&
8903 { ac_try='test -z "$ac_cxx_werror_flag"
8904 || test ! -s conftest.err'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906 (eval $ac_try) 2>&5
8907 ac_status=$?
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; } &&
8910 { ac_try='test -s conftest.$ac_objext'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 (eval $ac_try) 2>&5
8913 ac_status=$?
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; }; then
8916 ac_hi=-1 ac_mid=-1
8917 while :; do
8918 cat >conftest.$ac_ext <<_ACEOF
8919/* confdefs.h. */
8920_ACEOF
8921cat confdefs.h >>conftest.$ac_ext
8922cat >>conftest.$ac_ext <<_ACEOF
8923/* end confdefs.h. */
8924#include <stddef.h>
8925int
8926main ()
8927{
8928static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8929test_array [0] = 0
8930
8931 ;
8932 return 0;
8933}
8934_ACEOF
8935rm -f conftest.$ac_objext
8936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8937 (eval $ac_compile) 2>conftest.er1
8938 ac_status=$?
8939 grep -v '^ *+' conftest.er1 >conftest.err
8940 rm -f conftest.er1
8941 cat conftest.err >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } &&
8944 { ac_try='test -z "$ac_cxx_werror_flag"
8945 || test ! -s conftest.err'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 (eval $ac_try) 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; } &&
8951 { ac_try='test -s conftest.$ac_objext'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 (eval $ac_try) 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8957 ac_lo=$ac_mid; break
8958else
8959 echo "$as_me: failed program was:" >&5
8960sed 's/^/| /' conftest.$ac_ext >&5
8961
8962ac_hi=`expr '(' $ac_mid ')' - 1`
8963 if test $ac_mid -le $ac_hi; then
8964 ac_lo= ac_hi=
8965 break
8966 fi
8967 ac_mid=`expr 2 '*' $ac_mid`
8968fi
8969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8970 done
8971else
8972 echo "$as_me: failed program was:" >&5
8973sed 's/^/| /' conftest.$ac_ext >&5
8974
8975ac_lo= ac_hi=
8976fi
8977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8978fi
8979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8980# Binary search between lo and hi bounds.
8981while test "x$ac_lo" != "x$ac_hi"; do
8982 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8983 cat >conftest.$ac_ext <<_ACEOF
8984/* confdefs.h. */
8985_ACEOF
8986cat confdefs.h >>conftest.$ac_ext
8987cat >>conftest.$ac_ext <<_ACEOF
8988/* end confdefs.h. */
8989#include <stddef.h>
8990int
8991main ()
8992{
8993static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8994test_array [0] = 0
8995
8996 ;
8997 return 0;
8998}
8999_ACEOF
9000rm -f conftest.$ac_objext
9001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9002 (eval $ac_compile) 2>conftest.er1
9003 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 (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 ac_hi=$ac_mid
9023else
9024 echo "$as_me: failed program was:" >&5
9025sed 's/^/| /' conftest.$ac_ext >&5
9026
9027ac_lo=`expr '(' $ac_mid ')' + 1`
9028fi
9029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9030done
9031case $ac_lo in
9032?*) fits_in_uint=$ac_lo;;
9033'') result=? ;;
9034esac
9035else
9036 if test "$cross_compiling" = yes; then
9037 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9038See \`config.log' for more details." >&5
9039echo "$as_me: error: cannot run test program while cross compiling
9040See \`config.log' for more details." >&2;}
9041 { (exit 1); exit 1; }; }
9042else
9043 cat >conftest.$ac_ext <<_ACEOF
9044/* confdefs.h. */
9045_ACEOF
9046cat confdefs.h >>conftest.$ac_ext
9047cat >>conftest.$ac_ext <<_ACEOF
9048/* end confdefs.h. */
9049#include <stddef.h>
9050long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
9051unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
9052#include <stdio.h>
9053#include <stdlib.h>
9054int
9055main ()
9056{
9057
9058 FILE *f = fopen ("conftest.val", "w");
9059 if (! f)
9060 exit (1);
9061 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
9062 {
9063 long i = longval ();
9064 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
9065 exit (1);
9066 fprintf (f, "%ld\n", i);
9067 }
9068 else
9069 {
9070 unsigned long i = ulongval ();
9071 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
9072 exit (1);
9073 fprintf (f, "%lu\n", i);
9074 }
9075 exit (ferror (f) || fclose (f) != 0);
9076
9077 ;
9078 return 0;
9079}
9080_ACEOF
9081rm -f conftest$ac_exeext
9082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9083 (eval $ac_link) 2>&5
9084 ac_status=$?
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088 (eval $ac_try) 2>&5
9089 ac_status=$?
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; }; then
9092 fits_in_uint=`cat conftest.val`
9093else
9094 echo "$as_me: program exited with status $ac_status" >&5
9095echo "$as_me: failed program was:" >&5
9096sed 's/^/| /' conftest.$ac_ext >&5
9097
9098( exit $ac_status )
9099result=?
9100fi
9101rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9102fi
9103fi
9104rm -f conftest.val
9105 if test "$fits_in_uint" = 1; then
9106 cat >conftest.$ac_ext <<_ACEOF
9107/* confdefs.h. */
9108_ACEOF
9109cat confdefs.h >>conftest.$ac_ext
9110cat >>conftest.$ac_ext <<_ACEOF
9111/* end confdefs.h. */
9112#include <stddef.h>
9113 extern size_t foo;
9114 extern unsigned long foo;
9115
9116int
9117main ()
9118{
9119
9120 ;
9121 return 0;
9122}
9123_ACEOF
9124rm -f conftest.$ac_objext
9125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9126 (eval $ac_compile) 2>conftest.er1
9127 ac_status=$?
9128 grep -v '^ *+' conftest.er1 >conftest.err
9129 rm -f conftest.er1
9130 cat conftest.err >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); } &&
9133 { ac_try='test -z "$ac_cxx_werror_flag"
9134 || test ! -s conftest.err'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 (eval $ac_try) 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; } &&
9140 { ac_try='test -s conftest.$ac_objext'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 (eval $ac_try) 2>&5
9143 ac_status=$?
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; }; then
9146 fits_in_uint=0
9147else
9148 echo "$as_me: failed program was:" >&5
9149sed 's/^/| /' conftest.$ac_ext >&5
9150
9151fi
9152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9153 fi
9154 if test -z "$result"; then
9155 if test "$fits_in_uint" = 1; then
9156 result="$res_hi$res_lo"U
9157 else
9158 result="$res_hi$res_lo"UL
9159 fi
9160 else
9161 result='~(size_t)0'
9162 fi
9163 fi
9164 echo "$as_me:$LINENO: result: $result" >&5
9165echo "${ECHO_T}$result" >&6
9166 if test "$result" != yes; then
9167
9168cat >>confdefs.h <<_ACEOF
9169#define SIZE_MAX $result
9170_ACEOF
9171
9172 fi
9173
9174
9175
9176
9177for ac_header in stdint.h
9178do
9179as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9180if eval "test \"\${$as_ac_Header+set}\" = set"; then
9181 echo "$as_me:$LINENO: checking for $ac_header" >&5
9182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9183if eval "test \"\${$as_ac_Header+set}\" = set"; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9185fi
9186echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9187echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9188else
9189 # Is the header compilable?
9190echo "$as_me:$LINENO: checking $ac_header usability" >&5
9191echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9192cat >conftest.$ac_ext <<_ACEOF
9193/* confdefs.h. */
9194_ACEOF
9195cat confdefs.h >>conftest.$ac_ext
9196cat >>conftest.$ac_ext <<_ACEOF
9197/* end confdefs.h. */
9198$ac_includes_default
9199#include <$ac_header>
9200_ACEOF
9201rm -f conftest.$ac_objext
9202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9203 (eval $ac_compile) 2>conftest.er1
9204 ac_status=$?
9205 grep -v '^ *+' conftest.er1 >conftest.err
9206 rm -f conftest.er1
9207 cat conftest.err >&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); } &&
9210 { ac_try='test -z "$ac_cxx_werror_flag"
9211 || test ! -s conftest.err'
9212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 (eval $ac_try) 2>&5
9214 ac_status=$?
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; } &&
9217 { ac_try='test -s conftest.$ac_objext'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219 (eval $ac_try) 2>&5
9220 ac_status=$?
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; }; then
9223 ac_header_compiler=yes
9224else
9225 echo "$as_me: failed program was:" >&5
9226sed 's/^/| /' conftest.$ac_ext >&5
9227
9228ac_header_compiler=no
9229fi
9230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9231echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9232echo "${ECHO_T}$ac_header_compiler" >&6
9233
9234# Is the header present?
9235echo "$as_me:$LINENO: checking $ac_header presence" >&5
9236echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9237cat >conftest.$ac_ext <<_ACEOF
9238/* confdefs.h. */
9239_ACEOF
9240cat confdefs.h >>conftest.$ac_ext
9241cat >>conftest.$ac_ext <<_ACEOF
9242/* end confdefs.h. */
9243#include <$ac_header>
9244_ACEOF
9245if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9247 ac_status=$?
9248 grep -v '^ *+' conftest.er1 >conftest.err
9249 rm -f conftest.er1
9250 cat conftest.err >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } >/dev/null; then
9253 if test -s conftest.err; then
9254 ac_cpp_err=$ac_cxx_preproc_warn_flag
9255 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9256 else
9257 ac_cpp_err=
9258 fi
9259else
9260 ac_cpp_err=yes
9261fi
9262if test -z "$ac_cpp_err"; then
9263 ac_header_preproc=yes
9264else
9265 echo "$as_me: failed program was:" >&5
9266sed 's/^/| /' conftest.$ac_ext >&5
9267
9268 ac_header_preproc=no
9269fi
9270rm -f conftest.err conftest.$ac_ext
9271echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9272echo "${ECHO_T}$ac_header_preproc" >&6
9273
9274# So? What about this header?
9275case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9276 yes:no: )
9277 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9278echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9280echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9281 ac_header_preproc=yes
9282 ;;
9283 no:yes:* )
9284 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9285echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9286 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9287echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9288 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9289echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9290 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9291echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9293echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9294 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9295echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9296 (
9297 cat <<\_ASBOX
9298## ------------------------------------------ ##
9299## Report this to the AC_PACKAGE_NAME lists. ##
9300## ------------------------------------------ ##
9301_ASBOX
9302 ) |
9303 sed "s/^/$as_me: WARNING: /" >&2
9304 ;;
9305esac
9306echo "$as_me:$LINENO: checking for $ac_header" >&5
9307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9308if eval "test \"\${$as_ac_Header+set}\" = set"; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
9310else
9311 eval "$as_ac_Header=\$ac_header_preproc"
9312fi
9313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9314echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9315
9316fi
9317if test `eval echo '${'$as_ac_Header'}'` = yes; then
9318 cat >>confdefs.h <<_ACEOF
9319#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9320_ACEOF
9321
9322fi
9323
9324done
9325
9326
9327
9328 if test "X$prefix" = "XNONE"; then
9329 acl_final_prefix="$ac_default_prefix"
9330 else
9331 acl_final_prefix="$prefix"
9332 fi
9333 if test "X$exec_prefix" = "XNONE"; then
9334 acl_final_exec_prefix='${prefix}'
9335 else
9336 acl_final_exec_prefix="$exec_prefix"
9337 fi
9338 acl_save_prefix="$prefix"
9339 prefix="$acl_final_prefix"
9340 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9341 prefix="$acl_save_prefix"
9342
9343
9344# Check whether --with-gnu-ld or --without-gnu-ld was given.
9345if test "${with_gnu_ld+set}" = set; then
9346 withval="$with_gnu_ld"
9347 test "$withval" = no || with_gnu_ld=yes
9348else
9349 with_gnu_ld=no
9350fi;
9351# Prepare PATH_SEPARATOR.
9352# The user is always right.
9353if test "${PATH_SEPARATOR+set}" != set; then
9354 echo "#! /bin/sh" >conf$$.sh
9355 echo "exit 0" >>conf$$.sh
9356 chmod +x conf$$.sh
9357 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9358 PATH_SEPARATOR=';'
9359 else
9360 PATH_SEPARATOR=:
9361 fi
9362 rm -f conf$$.sh
9363fi
9364ac_prog=ld
9365if test "$GCC" = yes; then
9366 # Check if gcc -print-prog-name=ld gives a path.
9367 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9368echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9369 case $host in
9370 *-*-mingw*)
9371 # gcc leaves a trailing carriage return which upsets mingw
9372 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9373 *)
9374 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9375 esac
9376 case $ac_prog in
9377 # Accept absolute paths.
9378 [\\/]* | [A-Za-z]:[\\/]*)
9379 re_direlt='/[^/][^/]*/\.\./'
9380 # Canonicalize the path of ld
9381 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9382 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9383 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9384 done
9385 test -z "$LD" && LD="$ac_prog"
9386 ;;
9387 "")
9388 # If it fails, then pretend we aren't using GCC.
9389 ac_prog=ld
9390 ;;
9391 *)
9392 # If it is relative, then search for the first ld in PATH.
9393 with_gnu_ld=unknown
9394 ;;
9395 esac
9396elif test "$with_gnu_ld" = yes; then
9397 echo "$as_me:$LINENO: checking for GNU ld" >&5
9398echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9399else
9400 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9401echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9402fi
9403if test "${acl_cv_path_LD+set}" = set; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9405else
9406 if test -z "$LD"; then
9407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9408 for ac_dir in $PATH; do
9409 test -z "$ac_dir" && ac_dir=.
9410 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9411 acl_cv_path_LD="$ac_dir/$ac_prog"
9412 # Check to see if the program is GNU ld. I'd rather use --version,
9413 # but apparently some GNU ld's only accept -v.
9414 # Break only if it was the GNU/non-GNU ld that we prefer.
9415 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9416 *GNU* | *'with BFD'*)
9417 test "$with_gnu_ld" != no && break ;;
9418 *)
9419 test "$with_gnu_ld" != yes && break ;;
9420 esac
9421 fi
9422 done
9423 IFS="$ac_save_ifs"
9424else
9425 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9426fi
9427fi
9428
9429LD="$acl_cv_path_LD"
9430if test -n "$LD"; then
9431 echo "$as_me:$LINENO: result: $LD" >&5
9432echo "${ECHO_T}$LD" >&6
9433else
9434 echo "$as_me:$LINENO: result: no" >&5
9435echo "${ECHO_T}no" >&6
9436fi
9437test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9438echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9439 { (exit 1); exit 1; }; }
9440echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9441echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9442if test "${acl_cv_prog_gnu_ld+set}" = set; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9444else
9445 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9446case `$LD -v 2>&1 </dev/null` in
9447*GNU* | *'with BFD'*)
9448 acl_cv_prog_gnu_ld=yes ;;
9449*)
9450 acl_cv_prog_gnu_ld=no ;;
9451esac
9452fi
9453echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9454echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9455with_gnu_ld=$acl_cv_prog_gnu_ld
9456
9457
9458
9459 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9460echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9461if test "${acl_cv_rpath+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9463else
9464
9465 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9466 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9467 . ./conftest.sh
9468 rm -f ./conftest.sh
9469 acl_cv_rpath=done
9470
9471fi
9472echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9473echo "${ECHO_T}$acl_cv_rpath" >&6
9474 wl="$acl_cv_wl"
9475 libext="$acl_cv_libext"
9476 shlibext="$acl_cv_shlibext"
9477 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9478 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9479 hardcode_direct="$acl_cv_hardcode_direct"
9480 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9481 # Check whether --enable-rpath or --disable-rpath was given.
9482if test "${enable_rpath+set}" = set; then
9483 enableval="$enable_rpath"
9484 :
9485else
9486 enable_rpath=yes
9487fi;
9488
9489
9490
9491
9492
9493
9494
9495 use_additional=yes
9496
9497 acl_save_prefix="$prefix"
9498 prefix="$acl_final_prefix"
9499 acl_save_exec_prefix="$exec_prefix"
9500 exec_prefix="$acl_final_exec_prefix"
9501
9502 eval additional_includedir=\"$includedir\"
9503 eval additional_libdir=\"$libdir\"
9504
9505 exec_prefix="$acl_save_exec_prefix"
9506 prefix="$acl_save_prefix"
9507
9508
9509# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9510if test "${with_libiconv_prefix+set}" = set; then
9511 withval="$with_libiconv_prefix"
9512
9513 if test "X$withval" = "Xno"; then
9514 use_additional=no
9515 else
9516 if test "X$withval" = "X"; then
9517
9518 acl_save_prefix="$prefix"
9519 prefix="$acl_final_prefix"
9520 acl_save_exec_prefix="$exec_prefix"
9521 exec_prefix="$acl_final_exec_prefix"
9522
9523 eval additional_includedir=\"$includedir\"
9524 eval additional_libdir=\"$libdir\"
9525
9526 exec_prefix="$acl_save_exec_prefix"
9527 prefix="$acl_save_prefix"
9528
9529 else
9530 additional_includedir="$withval/include"
9531 additional_libdir="$withval/lib"
9532 fi
9533 fi
9534
9535fi;
9536 LIBICONV=
9537 LTLIBICONV=
9538 INCICONV=
9539 rpathdirs=
9540 ltrpathdirs=
9541 names_already_handled=
9542 names_next_round='iconv '
9543 while test -n "$names_next_round"; do
9544 names_this_round="$names_next_round"
9545 names_next_round=
9546 for name in $names_this_round; do
9547 already_handled=
9548 for n in $names_already_handled; do
9549 if test "$n" = "$name"; then
9550 already_handled=yes
9551 break
9552 fi
9553 done
9554 if test -z "$already_handled"; then
9555 names_already_handled="$names_already_handled $name"
9556 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9557 eval value=\"\$HAVE_LIB$uppername\"
9558 if test -n "$value"; then
9559 if test "$value" = yes; then
9560 eval value=\"\$LIB$uppername\"
9561 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9562 eval value=\"\$LTLIB$uppername\"
9563 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9564 else
9565 :
9566 fi
9567 else
9568 found_dir=
9569 found_la=
9570 found_so=
9571 found_a=
9572 if test $use_additional = yes; then
9573 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9574 found_dir="$additional_libdir"
9575 found_so="$additional_libdir/lib$name.$shlibext"
9576 if test -f "$additional_libdir/lib$name.la"; then
9577 found_la="$additional_libdir/lib$name.la"
9578 fi
9579 else
9580 if test -f "$additional_libdir/lib$name.$libext"; then
9581 found_dir="$additional_libdir"
9582 found_a="$additional_libdir/lib$name.$libext"
9583 if test -f "$additional_libdir/lib$name.la"; then
9584 found_la="$additional_libdir/lib$name.la"
9585 fi
9586 fi
9587 fi
9588 fi
9589 if test "X$found_dir" = "X"; then
9590 for x in $LDFLAGS $LTLIBICONV; do
9591
9592 acl_save_prefix="$prefix"
9593 prefix="$acl_final_prefix"
9594 acl_save_exec_prefix="$exec_prefix"
9595 exec_prefix="$acl_final_exec_prefix"
9596 eval x=\"$x\"
9597 exec_prefix="$acl_save_exec_prefix"
9598 prefix="$acl_save_prefix"
9599
9600 case "$x" in
9601 -L*)
9602 dir=`echo "X$x" | sed -e 's/^X-L//'`
9603 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9604 found_dir="$dir"
9605 found_so="$dir/lib$name.$shlibext"
9606 if test -f "$dir/lib$name.la"; then
9607 found_la="$dir/lib$name.la"
9608 fi
9609 else
9610 if test -f "$dir/lib$name.$libext"; then
9611 found_dir="$dir"
9612 found_a="$dir/lib$name.$libext"
9613 if test -f "$dir/lib$name.la"; then
9614 found_la="$dir/lib$name.la"
9615 fi
9616 fi
9617 fi
9618 ;;
9619 esac
9620 if test "X$found_dir" != "X"; then
9621 break
9622 fi
9623 done
9624 fi
9625 if test "X$found_dir" != "X"; then
9626 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9627 if test "X$found_so" != "X"; then
9628 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9629 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9630 else
9631 haveit=
9632 for x in $ltrpathdirs; do
9633 if test "X$x" = "X$found_dir"; then
9634 haveit=yes
9635 break
9636 fi
9637 done
9638 if test -z "$haveit"; then
9639 ltrpathdirs="$ltrpathdirs $found_dir"
9640 fi
9641 if test "$hardcode_direct" = yes; then
9642 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9643 else
9644 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9645 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9646 haveit=
9647 for x in $rpathdirs; do
9648 if test "X$x" = "X$found_dir"; then
9649 haveit=yes
9650 break
9651 fi
9652 done
9653 if test -z "$haveit"; then
9654 rpathdirs="$rpathdirs $found_dir"
9655 fi
9656 else
9657 haveit=
9658 for x in $LDFLAGS $LIBICONV; do
9659
9660 acl_save_prefix="$prefix"
9661 prefix="$acl_final_prefix"
9662 acl_save_exec_prefix="$exec_prefix"
9663 exec_prefix="$acl_final_exec_prefix"
9664 eval x=\"$x\"
9665 exec_prefix="$acl_save_exec_prefix"
9666 prefix="$acl_save_prefix"
9667
9668 if test "X$x" = "X-L$found_dir"; then
9669 haveit=yes
9670 break
9671 fi
9672 done
9673 if test -z "$haveit"; then
9674 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9675 fi
9676 if test "$hardcode_minus_L" != no; then
9677 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9678 else
9679 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9680 fi
9681 fi
9682 fi
9683 fi
9684 else
9685 if test "X$found_a" != "X"; then
9686 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9687 else
9688 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9689 fi
9690 fi
9691 additional_includedir=
9692 case "$found_dir" in
9693 */lib | */lib/)
9694 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9695 additional_includedir="$basedir/include"
9696 ;;
9697 esac
9698 if test "X$additional_includedir" != "X"; then
9699 if test "X$additional_includedir" != "X/usr/include"; then
9700 haveit=
9701 if test "X$additional_includedir" = "X/usr/local/include"; then
9702 if test -n "$GCC"; then
9703 case $host_os in
9704 linux*) haveit=yes;;
9705 esac
9706 fi
9707 fi
9708 if test -z "$haveit"; then
9709 for x in $CPPFLAGS $INCICONV; do
9710
9711 acl_save_prefix="$prefix"
9712 prefix="$acl_final_prefix"
9713 acl_save_exec_prefix="$exec_prefix"
9714 exec_prefix="$acl_final_exec_prefix"
9715 eval x=\"$x\"
9716 exec_prefix="$acl_save_exec_prefix"
9717 prefix="$acl_save_prefix"
9718
9719 if test "X$x" = "X-I$additional_includedir"; then
9720 haveit=yes
9721 break
9722 fi
9723 done
9724 if test -z "$haveit"; then
9725 if test -d "$additional_includedir"; then
9726 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9727 fi
9728 fi
9729 fi
9730 fi
9731 fi
9732 if test -n "$found_la"; then
9733 save_libdir="$libdir"
9734 case "$found_la" in
9735 */* | *\\*) . "$found_la" ;;
9736 *) . "./$found_la" ;;
9737 esac
9738 libdir="$save_libdir"
9739 for dep in $dependency_libs; do
9740 case "$dep" in
9741 -L*)
9742 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9743 if test "X$additional_libdir" != "X/usr/lib"; then
9744 haveit=
9745 if test "X$additional_libdir" = "X/usr/local/lib"; then
9746 if test -n "$GCC"; then
9747 case $host_os in
9748 linux*) haveit=yes;;
9749 esac
9750 fi
9751 fi
9752 if test -z "$haveit"; then
9753 haveit=
9754 for x in $LDFLAGS $LIBICONV; do
9755
9756 acl_save_prefix="$prefix"
9757 prefix="$acl_final_prefix"
9758 acl_save_exec_prefix="$exec_prefix"
9759 exec_prefix="$acl_final_exec_prefix"
9760 eval x=\"$x\"
9761 exec_prefix="$acl_save_exec_prefix"
9762 prefix="$acl_save_prefix"
9763
9764 if test "X$x" = "X-L$additional_libdir"; then
9765 haveit=yes
9766 break
9767 fi
9768 done
9769 if test -z "$haveit"; then
9770 if test -d "$additional_libdir"; then
9771 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9772 fi
9773 fi
9774 haveit=
9775 for x in $LDFLAGS $LTLIBICONV; do
9776
9777 acl_save_prefix="$prefix"
9778 prefix="$acl_final_prefix"
9779 acl_save_exec_prefix="$exec_prefix"
9780 exec_prefix="$acl_final_exec_prefix"
9781 eval x=\"$x\"
9782 exec_prefix="$acl_save_exec_prefix"
9783 prefix="$acl_save_prefix"
9784
9785 if test "X$x" = "X-L$additional_libdir"; then
9786 haveit=yes
9787 break
9788 fi
9789 done
9790 if test -z "$haveit"; then
9791 if test -d "$additional_libdir"; then
9792 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9793 fi
9794 fi
9795 fi
9796 fi
9797 ;;
9798 -R*)
9799 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9800 if test "$enable_rpath" != no; then
9801 haveit=
9802 for x in $rpathdirs; do
9803 if test "X$x" = "X$dir"; then
9804 haveit=yes
9805 break
9806 fi
9807 done
9808 if test -z "$haveit"; then
9809 rpathdirs="$rpathdirs $dir"
9810 fi
9811 haveit=
9812 for x in $ltrpathdirs; do
9813 if test "X$x" = "X$dir"; then
9814 haveit=yes
9815 break
9816 fi
9817 done
9818 if test -z "$haveit"; then
9819 ltrpathdirs="$ltrpathdirs $dir"
9820 fi
9821 fi
9822 ;;
9823 -l*)
9824 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9825 ;;
9826 *.la)
9827 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9828 ;;
9829 *)
9830 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9831 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9832 ;;
9833 esac
9834 done
9835 fi
9836 else
9837 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9838 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9839 fi
9840 fi
9841 fi
9842 done
9843 done
9844 if test "X$rpathdirs" != "X"; then
9845 if test -n "$hardcode_libdir_separator"; then
9846 alldirs=
9847 for found_dir in $rpathdirs; do
9848 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9849 done
9850 acl_save_libdir="$libdir"
9851 libdir="$alldirs"
9852 eval flag=\"$hardcode_libdir_flag_spec\"
9853 libdir="$acl_save_libdir"
9854 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9855 else
9856 for found_dir in $rpathdirs; do
9857 acl_save_libdir="$libdir"
9858 libdir="$found_dir"
9859 eval flag=\"$hardcode_libdir_flag_spec\"
9860 libdir="$acl_save_libdir"
9861 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9862 done
9863 fi
9864 fi
9865 if test "X$ltrpathdirs" != "X"; then
9866 for found_dir in $ltrpathdirs; do
9867 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9868 done
9869 fi
9870
9871
9872
9873
9874
9875
9876
9877
9878 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9879echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
9880if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9882else
9883 cat >conftest.$ac_ext <<_ACEOF
9884/* confdefs.h. */
9885_ACEOF
9886cat confdefs.h >>conftest.$ac_ext
9887cat >>conftest.$ac_ext <<_ACEOF
9888/* end confdefs.h. */
9889$ac_includes_default
9890int
9891main ()
9892{
9893if ((ptrdiff_t *) 0)
9894 return 0;
9895if (sizeof (ptrdiff_t))
9896 return 0;
9897 ;
9898 return 0;
9899}
9900_ACEOF
9901rm -f conftest.$ac_objext
9902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9903 (eval $ac_compile) 2>conftest.er1
9904 ac_status=$?
9905 grep -v '^ *+' conftest.er1 >conftest.err
9906 rm -f conftest.er1
9907 cat conftest.err >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } &&
9910 { ac_try='test -z "$ac_cxx_werror_flag"
9911 || test ! -s conftest.err'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 (eval $ac_try) 2>&5
9914 ac_status=$?
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; } &&
9917 { ac_try='test -s conftest.$ac_objext'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 (eval $ac_try) 2>&5
9920 ac_status=$?
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 ac_cv_type_ptrdiff_t=yes
9924else
9925 echo "$as_me: failed program was:" >&5
9926sed 's/^/| /' conftest.$ac_ext >&5
9927
9928ac_cv_type_ptrdiff_t=no
9929fi
9930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9931fi
9932echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9933echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
9934if test $ac_cv_type_ptrdiff_t = yes; then
9935 :
9936else
9937
9938cat >>confdefs.h <<\_ACEOF
9939#define ptrdiff_t long
9940_ACEOF
9941
9942
9943fi
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9956stdlib.h string.h unistd.h sys/param.h
9957do
9958as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9959if eval "test \"\${$as_ac_Header+set}\" = set"; then
9960 echo "$as_me:$LINENO: checking for $ac_header" >&5
9961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9962if eval "test \"\${$as_ac_Header+set}\" = set"; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9964fi
9965echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9966echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9967else
9968 # Is the header compilable?
9969echo "$as_me:$LINENO: checking $ac_header usability" >&5
9970echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9971cat >conftest.$ac_ext <<_ACEOF
9972/* confdefs.h. */
9973_ACEOF
9974cat confdefs.h >>conftest.$ac_ext
9975cat >>conftest.$ac_ext <<_ACEOF
9976/* end confdefs.h. */
9977$ac_includes_default
9978#include <$ac_header>
9979_ACEOF
9980rm -f conftest.$ac_objext
9981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9982 (eval $ac_compile) 2>conftest.er1
9983 ac_status=$?
9984 grep -v '^ *+' conftest.er1 >conftest.err
9985 rm -f conftest.er1
9986 cat conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } &&
9989 { ac_try='test -z "$ac_cxx_werror_flag"
9990 || test ! -s conftest.err'
9991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992 (eval $ac_try) 2>&5
9993 ac_status=$?
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; } &&
9996 { ac_try='test -s conftest.$ac_objext'
9997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998 (eval $ac_try) 2>&5
9999 ac_status=$?
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; }; then
10002 ac_header_compiler=yes
10003else
10004 echo "$as_me: failed program was:" >&5
10005sed 's/^/| /' conftest.$ac_ext >&5
10006
10007ac_header_compiler=no
10008fi
10009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10010echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10011echo "${ECHO_T}$ac_header_compiler" >&6
10012
10013# Is the header present?
10014echo "$as_me:$LINENO: checking $ac_header presence" >&5
10015echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10016cat >conftest.$ac_ext <<_ACEOF
10017/* confdefs.h. */
10018_ACEOF
10019cat confdefs.h >>conftest.$ac_ext
10020cat >>conftest.$ac_ext <<_ACEOF
10021/* end confdefs.h. */
10022#include <$ac_header>
10023_ACEOF
10024if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10026 ac_status=$?
10027 grep -v '^ *+' conftest.er1 >conftest.err
10028 rm -f conftest.er1
10029 cat conftest.err >&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } >/dev/null; then
10032 if test -s conftest.err; then
10033 ac_cpp_err=$ac_cxx_preproc_warn_flag
10034 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10035 else
10036 ac_cpp_err=
10037 fi
10038else
10039 ac_cpp_err=yes
10040fi
10041if test -z "$ac_cpp_err"; then
10042 ac_header_preproc=yes
10043else
10044 echo "$as_me: failed program was:" >&5
10045sed 's/^/| /' conftest.$ac_ext >&5
10046
10047 ac_header_preproc=no
10048fi
10049rm -f conftest.err conftest.$ac_ext
10050echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10051echo "${ECHO_T}$ac_header_preproc" >&6
10052
10053# So? What about this header?
10054case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10055 yes:no: )
10056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10057echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10059echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10060 ac_header_preproc=yes
10061 ;;
10062 no:yes:* )
10063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10064echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10066echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10068echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10070echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10072echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10074echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10075 (
10076 cat <<\_ASBOX
10077## ------------------------------------------ ##
10078## Report this to the AC_PACKAGE_NAME lists. ##
10079## ------------------------------------------ ##
10080_ASBOX
10081 ) |
10082 sed "s/^/$as_me: WARNING: /" >&2
10083 ;;
10084esac
10085echo "$as_me:$LINENO: checking for $ac_header" >&5
10086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10087if eval "test \"\${$as_ac_Header+set}\" = set"; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10089else
10090 eval "$as_ac_Header=\$ac_header_preproc"
10091fi
10092echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10093echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10094
10095fi
10096if test `eval echo '${'$as_ac_Header'}'` = yes; then
10097 cat >>confdefs.h <<_ACEOF
10098#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10099_ACEOF
10100
10101fi
10102
10103done
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10129mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10130strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10131__fsetlocking
10132do
10133as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10134echo "$as_me:$LINENO: checking for $ac_func" >&5
10135echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10136if eval "test \"\${$as_ac_var+set}\" = set"; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10138else
10139 cat >conftest.$ac_ext <<_ACEOF
10140/* confdefs.h. */
10141_ACEOF
10142cat confdefs.h >>conftest.$ac_ext
10143cat >>conftest.$ac_ext <<_ACEOF
10144/* end confdefs.h. */
10145/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10147#define $ac_func innocuous_$ac_func
10148
10149/* System header to define __stub macros and hopefully few prototypes,
10150 which can conflict with char $ac_func (); below.
10151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10152 <limits.h> exists even on freestanding compilers. */
10153
10154#ifdef __STDC__
10155# include <limits.h>
10156#else
10157# include <assert.h>
10158#endif
10159
10160#undef $ac_func
10161
10162/* Override any gcc2 internal prototype to avoid an error. */
10163#ifdef __cplusplus
10164extern "C"
10165{
10166#endif
10167/* We use char because int might match the return type of a gcc2
10168 builtin and then its argument prototype would still apply. */
10169char $ac_func ();
10170/* The GNU C library defines this for functions which it implements
10171 to always fail with ENOSYS. Some functions are actually named
10172 something starting with __ and the normal name is an alias. */
10173#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10174choke me
10175#else
10176char (*f) () = $ac_func;
10177#endif
10178#ifdef __cplusplus
10179}
10180#endif
10181
10182int
10183main ()
10184{
10185return f != $ac_func;
10186 ;
10187 return 0;
10188}
10189_ACEOF
10190rm -f conftest.$ac_objext conftest$ac_exeext
10191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10192 (eval $ac_link) 2>conftest.er1
10193 ac_status=$?
10194 grep -v '^ *+' conftest.er1 >conftest.err
10195 rm -f conftest.er1
10196 cat conftest.err >&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } &&
10199 { ac_try='test -z "$ac_cxx_werror_flag"
10200 || test ! -s conftest.err'
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10203 ac_status=$?
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; } &&
10206 { ac_try='test -s conftest$ac_exeext'
10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208 (eval $ac_try) 2>&5
10209 ac_status=$?
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; }; then
10212 eval "$as_ac_var=yes"
10213else
10214 echo "$as_me: failed program was:" >&5
10215sed 's/^/| /' conftest.$ac_ext >&5
10216
10217eval "$as_ac_var=no"
10218fi
10219rm -f conftest.err conftest.$ac_objext \
10220 conftest$ac_exeext conftest.$ac_ext
10221fi
10222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10223echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10224if test `eval echo '${'$as_ac_var'}'` = yes; then
10225 cat >>confdefs.h <<_ACEOF
10226#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10227_ACEOF
10228
10229fi
10230done
10231
10232
10233
10234 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10235echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
10236if test "${ac_cv_have_decl__snprintf+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10238else
10239 cat >conftest.$ac_ext <<_ACEOF
10240/* confdefs.h. */
10241_ACEOF
10242cat confdefs.h >>conftest.$ac_ext
10243cat >>conftest.$ac_ext <<_ACEOF
10244/* end confdefs.h. */
10245#include <stdio.h>
10246int
10247main ()
10248{
10249
10250#ifndef _snprintf
10251 char *p = (char *) _snprintf;
10252#endif
10253
10254 ;
10255 return 0;
10256}
10257_ACEOF
10258rm -f conftest.$ac_objext
10259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10260 (eval $ac_compile) 2>conftest.er1
10261 ac_status=$?
10262 grep -v '^ *+' conftest.er1 >conftest.err
10263 rm -f conftest.er1
10264 cat conftest.err >&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } &&
10267 { ac_try='test -z "$ac_cxx_werror_flag"
10268 || test ! -s conftest.err'
10269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10270 (eval $ac_try) 2>&5
10271 ac_status=$?
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; } &&
10274 { ac_try='test -s conftest.$ac_objext'
10275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10276 (eval $ac_try) 2>&5
10277 ac_status=$?
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); }; }; then
10280 ac_cv_have_decl__snprintf=yes
10281else
10282 echo "$as_me: failed program was:" >&5
10283sed 's/^/| /' conftest.$ac_ext >&5
10284
10285ac_cv_have_decl__snprintf=no
10286fi
10287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10288fi
10289echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
10290echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
10291 if test $ac_cv_have_decl__snprintf = yes; then
10292 gt_value=1
10293 else
10294 gt_value=0
10295 fi
10296
10297cat >>confdefs.h <<_ACEOF
10298#define HAVE_DECL__SNPRINTF $gt_value
10299_ACEOF
10300
10301
10302
10303 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
10304echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
10305if test "${ac_cv_have_decl__snwprintf+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10307else
10308 cat >conftest.$ac_ext <<_ACEOF
10309/* confdefs.h. */
10310_ACEOF
10311cat confdefs.h >>conftest.$ac_ext
10312cat >>conftest.$ac_ext <<_ACEOF
10313/* end confdefs.h. */
10314#include <stdio.h>
10315int
10316main ()
10317{
10318
10319#ifndef _snwprintf
10320 char *p = (char *) _snwprintf;
10321#endif
10322
10323 ;
10324 return 0;
10325}
10326_ACEOF
10327rm -f conftest.$ac_objext
10328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10329 (eval $ac_compile) 2>conftest.er1
10330 ac_status=$?
10331 grep -v '^ *+' conftest.er1 >conftest.err
10332 rm -f conftest.er1
10333 cat conftest.err >&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } &&
10336 { ac_try='test -z "$ac_cxx_werror_flag"
10337 || test ! -s conftest.err'
10338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10339 (eval $ac_try) 2>&5
10340 ac_status=$?
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); }; } &&
10343 { ac_try='test -s conftest.$ac_objext'
10344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345 (eval $ac_try) 2>&5
10346 ac_status=$?
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; }; then
10349 ac_cv_have_decl__snwprintf=yes
10350else
10351 echo "$as_me: failed program was:" >&5
10352sed 's/^/| /' conftest.$ac_ext >&5
10353
10354ac_cv_have_decl__snwprintf=no
10355fi
10356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10357fi
10358echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
10359echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
10360 if test $ac_cv_have_decl__snwprintf = yes; then
10361 gt_value=1
10362 else
10363 gt_value=0
10364 fi
10365
10366cat >>confdefs.h <<_ACEOF
10367#define HAVE_DECL__SNWPRINTF $gt_value
10368_ACEOF
10369
10370
10371
10372
10373 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
10374echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
10375if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
10376 echo $ECHO_N "(cached) $ECHO_C" >&6
10377else
10378 cat >conftest.$ac_ext <<_ACEOF
10379/* confdefs.h. */
10380_ACEOF
10381cat confdefs.h >>conftest.$ac_ext
10382cat >>conftest.$ac_ext <<_ACEOF
10383/* end confdefs.h. */
10384#include <stdio.h>
10385int
10386main ()
10387{
10388
10389#ifndef feof_unlocked
10390 char *p = (char *) feof_unlocked;
10391#endif
10392
10393 ;
10394 return 0;
10395}
10396_ACEOF
10397rm -f conftest.$ac_objext
10398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10399 (eval $ac_compile) 2>conftest.er1
10400 ac_status=$?
10401 grep -v '^ *+' conftest.er1 >conftest.err
10402 rm -f conftest.er1
10403 cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } &&
10406 { ac_try='test -z "$ac_cxx_werror_flag"
10407 || test ! -s conftest.err'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; } &&
10413 { ac_try='test -s conftest.$ac_objext'
10414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415 (eval $ac_try) 2>&5
10416 ac_status=$?
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; }; then
10419 ac_cv_have_decl_feof_unlocked=yes
10420else
10421 echo "$as_me: failed program was:" >&5
10422sed 's/^/| /' conftest.$ac_ext >&5
10423
10424ac_cv_have_decl_feof_unlocked=no
10425fi
10426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10427fi
10428echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
10429echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
10430 if test $ac_cv_have_decl_feof_unlocked = yes; then
10431 gt_value=1
10432 else
10433 gt_value=0
10434 fi
10435
10436cat >>confdefs.h <<_ACEOF
10437#define HAVE_DECL_FEOF_UNLOCKED $gt_value
10438_ACEOF
10439
10440
10441
10442 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
10443echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
10444if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
10445 echo $ECHO_N "(cached) $ECHO_C" >&6
10446else
10447 cat >conftest.$ac_ext <<_ACEOF
10448/* confdefs.h. */
10449_ACEOF
10450cat confdefs.h >>conftest.$ac_ext
10451cat >>conftest.$ac_ext <<_ACEOF
10452/* end confdefs.h. */
10453#include <stdio.h>
10454int
10455main ()
10456{
10457
10458#ifndef fgets_unlocked
10459 char *p = (char *) fgets_unlocked;
10460#endif
10461
10462 ;
10463 return 0;
10464}
10465_ACEOF
10466rm -f conftest.$ac_objext
10467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10468 (eval $ac_compile) 2>conftest.er1
10469 ac_status=$?
10470 grep -v '^ *+' conftest.er1 >conftest.err
10471 rm -f conftest.er1
10472 cat conftest.err >&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); } &&
10475 { ac_try='test -z "$ac_cxx_werror_flag"
10476 || test ! -s conftest.err'
10477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478 (eval $ac_try) 2>&5
10479 ac_status=$?
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; } &&
10482 { ac_try='test -s conftest.$ac_objext'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10485 ac_status=$?
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
10488 ac_cv_have_decl_fgets_unlocked=yes
10489else
10490 echo "$as_me: failed program was:" >&5
10491sed 's/^/| /' conftest.$ac_ext >&5
10492
10493ac_cv_have_decl_fgets_unlocked=no
10494fi
10495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10496fi
10497echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10498echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
10499 if test $ac_cv_have_decl_fgets_unlocked = yes; then
10500 gt_value=1
10501 else
10502 gt_value=0
10503 fi
10504
10505cat >>confdefs.h <<_ACEOF
10506#define HAVE_DECL_FGETS_UNLOCKED $gt_value
10507_ACEOF
10508
10509
10510
10511 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10512echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
10513if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
10515else
10516 cat >conftest.$ac_ext <<_ACEOF
10517/* confdefs.h. */
10518_ACEOF
10519cat confdefs.h >>conftest.$ac_ext
10520cat >>conftest.$ac_ext <<_ACEOF
10521/* end confdefs.h. */
10522#include <stdio.h>
10523int
10524main ()
10525{
10526
10527#ifndef getc_unlocked
10528 char *p = (char *) getc_unlocked;
10529#endif
10530
10531 ;
10532 return 0;
10533}
10534_ACEOF
10535rm -f conftest.$ac_objext
10536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10537 (eval $ac_compile) 2>conftest.er1
10538 ac_status=$?
10539 grep -v '^ *+' conftest.er1 >conftest.err
10540 rm -f conftest.er1
10541 cat conftest.err >&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } &&
10544 { ac_try='test -z "$ac_cxx_werror_flag"
10545 || test ! -s conftest.err'
10546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10548 ac_status=$?
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; } &&
10551 { ac_try='test -s conftest.$ac_objext'
10552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10554 ac_status=$?
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; }; then
10557 ac_cv_have_decl_getc_unlocked=yes
10558else
10559 echo "$as_me: failed program was:" >&5
10560sed 's/^/| /' conftest.$ac_ext >&5
10561
10562ac_cv_have_decl_getc_unlocked=no
10563fi
10564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10565fi
10566echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10567echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
10568 if test $ac_cv_have_decl_getc_unlocked = yes; then
10569 gt_value=1
10570 else
10571 gt_value=0
10572 fi
10573
10574cat >>confdefs.h <<_ACEOF
10575#define HAVE_DECL_GETC_UNLOCKED $gt_value
10576_ACEOF
10577
10578
10579
10580 case $gt_cv_func_printf_posix in
10581 *yes) HAVE_POSIX_PRINTF=1 ;;
10582 *) HAVE_POSIX_PRINTF=0 ;;
10583 esac
10584
10585 if test "$ac_cv_func_asprintf" = yes; then
10586 HAVE_ASPRINTF=1
10587 else
10588 HAVE_ASPRINTF=0
10589 fi
10590
10591 if test "$ac_cv_func_snprintf" = yes; then
10592 HAVE_SNPRINTF=1
10593 else
10594 HAVE_SNPRINTF=0
10595 fi
10596
10597 if test "$ac_cv_func_wprintf" = yes; then
10598 HAVE_WPRINTF=1
10599 else
10600 HAVE_WPRINTF=0
10601 fi
10602
10603
10604
10605
10606
10607
10608
10609 am_save_CPPFLAGS="$CPPFLAGS"
10610
10611 for element in $INCICONV; do
10612 haveit=
10613 for x in $CPPFLAGS; do
10614
10615 acl_save_prefix="$prefix"
10616 prefix="$acl_final_prefix"
10617 acl_save_exec_prefix="$exec_prefix"
10618 exec_prefix="$acl_final_exec_prefix"
10619 eval x=\"$x\"
10620 exec_prefix="$acl_save_exec_prefix"
10621 prefix="$acl_save_prefix"
10622
10623 if test "X$x" = "X$element"; then
10624 haveit=yes
10625 break
10626 fi
10627 done
10628 if test -z "$haveit"; then
10629 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10630 fi
10631 done
10632
10633
10634 echo "$as_me:$LINENO: checking for iconv" >&5
10635echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10636if test "${am_cv_func_iconv+set}" = set; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10638else
10639
10640 am_cv_func_iconv="no, consider installing GNU libiconv"
10641 am_cv_lib_iconv=no
10642 cat >conftest.$ac_ext <<_ACEOF
10643/* confdefs.h. */
10644_ACEOF
10645cat confdefs.h >>conftest.$ac_ext
10646cat >>conftest.$ac_ext <<_ACEOF
10647/* end confdefs.h. */
10648#include <stdlib.h>
10649#include <iconv.h>
10650int
10651main ()
10652{
10653iconv_t cd = iconv_open("","");
10654 iconv(cd,NULL,NULL,NULL,NULL);
10655 iconv_close(cd);
10656 ;
10657 return 0;
10658}
10659_ACEOF
10660rm -f conftest.$ac_objext conftest$ac_exeext
10661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10662 (eval $ac_link) 2>conftest.er1
10663 ac_status=$?
10664 grep -v '^ *+' conftest.er1 >conftest.err
10665 rm -f conftest.er1
10666 cat conftest.err >&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
10669 { ac_try='test -z "$ac_cxx_werror_flag"
10670 || test ! -s conftest.err'
10671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10673 ac_status=$?
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; } &&
10676 { ac_try='test -s conftest$ac_exeext'
10677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678 (eval $ac_try) 2>&5
10679 ac_status=$?
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; }; then
10682 am_cv_func_iconv=yes
10683else
10684 echo "$as_me: failed program was:" >&5
10685sed 's/^/| /' conftest.$ac_ext >&5
10686
10687fi
10688rm -f conftest.err conftest.$ac_objext \
10689 conftest$ac_exeext conftest.$ac_ext
10690 if test "$am_cv_func_iconv" != yes; then
10691 am_save_LIBS="$LIBS"
10692 LIBS="$LIBS $LIBICONV"
10693 cat >conftest.$ac_ext <<_ACEOF
10694/* confdefs.h. */
10695_ACEOF
10696cat confdefs.h >>conftest.$ac_ext
10697cat >>conftest.$ac_ext <<_ACEOF
10698/* end confdefs.h. */
10699#include <stdlib.h>
10700#include <iconv.h>
10701int
10702main ()
10703{
10704iconv_t cd = iconv_open("","");
10705 iconv(cd,NULL,NULL,NULL,NULL);
10706 iconv_close(cd);
10707 ;
10708 return 0;
10709}
10710_ACEOF
10711rm -f conftest.$ac_objext conftest$ac_exeext
10712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10713 (eval $ac_link) 2>conftest.er1
10714 ac_status=$?
10715 grep -v '^ *+' conftest.er1 >conftest.err
10716 rm -f conftest.er1
10717 cat conftest.err >&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } &&
10720 { ac_try='test -z "$ac_cxx_werror_flag"
10721 || test ! -s conftest.err'
10722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10723 (eval $ac_try) 2>&5
10724 ac_status=$?
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); }; } &&
10727 { ac_try='test -s conftest$ac_exeext'
10728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10729 (eval $ac_try) 2>&5
10730 ac_status=$?
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); }; }; then
10733 am_cv_lib_iconv=yes
10734 am_cv_func_iconv=yes
10735else
10736 echo "$as_me: failed program was:" >&5
10737sed 's/^/| /' conftest.$ac_ext >&5
10738
10739fi
10740rm -f conftest.err conftest.$ac_objext \
10741 conftest$ac_exeext conftest.$ac_ext
10742 LIBS="$am_save_LIBS"
10743 fi
10744
10745fi
10746echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10747echo "${ECHO_T}$am_cv_func_iconv" >&6
10748 if test "$am_cv_func_iconv" = yes; then
10749
10750cat >>confdefs.h <<\_ACEOF
10751#define HAVE_ICONV 1
10752_ACEOF
10753
10754 fi
10755 if test "$am_cv_lib_iconv" = yes; then
10756 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10757echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10758 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10759echo "${ECHO_T}$LIBICONV" >&6
10760 else
10761 CPPFLAGS="$am_save_CPPFLAGS"
10762 LIBICONV=
10763 LTLIBICONV=
10764 fi
10765
10766
10767
10768 if test "$am_cv_func_iconv" = yes; then
10769 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10770echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10771 if test "${am_cv_proto_iconv+set}" = set; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
10773else
10774
10775 cat >conftest.$ac_ext <<_ACEOF
10776/* confdefs.h. */
10777_ACEOF
10778cat confdefs.h >>conftest.$ac_ext
10779cat >>conftest.$ac_ext <<_ACEOF
10780/* end confdefs.h. */
10781
10782#include <stdlib.h>
10783#include <iconv.h>
10784extern
10785#ifdef __cplusplus
10786"C"
10787#endif
10788#if defined(__STDC__) || defined(__cplusplus)
10789size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10790#else
10791size_t iconv();
10792#endif
10793
10794int
10795main ()
10796{
10797
10798 ;
10799 return 0;
10800}
10801_ACEOF
10802rm -f conftest.$ac_objext
10803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10804 (eval $ac_compile) 2>conftest.er1
10805 ac_status=$?
10806 grep -v '^ *+' conftest.er1 >conftest.err
10807 rm -f conftest.er1
10808 cat conftest.err >&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } &&
10811 { ac_try='test -z "$ac_cxx_werror_flag"
10812 || test ! -s conftest.err'
10813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814 (eval $ac_try) 2>&5
10815 ac_status=$?
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); }; } &&
10818 { ac_try='test -s conftest.$ac_objext'
10819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820 (eval $ac_try) 2>&5
10821 ac_status=$?
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; }; then
10824 am_cv_proto_iconv_arg1=""
10825else
10826 echo "$as_me: failed program was:" >&5
10827sed 's/^/| /' conftest.$ac_ext >&5
10828
10829am_cv_proto_iconv_arg1="const"
10830fi
10831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10832 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10833fi
10834
10835 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10836 echo "$as_me:$LINENO: result: ${ac_t:-
10837 }$am_cv_proto_iconv" >&5
10838echo "${ECHO_T}${ac_t:-
10839 }$am_cv_proto_iconv" >&6
10840
10841cat >>confdefs.h <<_ACEOF
10842#define ICONV_CONST $am_cv_proto_iconv_arg1
10843_ACEOF
10844
10845 fi
10846
10847
10848 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10849echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
10850if test "${am_cv_langinfo_codeset+set}" = set; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10852else
10853 cat >conftest.$ac_ext <<_ACEOF
10854/* confdefs.h. */
10855_ACEOF
10856cat confdefs.h >>conftest.$ac_ext
10857cat >>conftest.$ac_ext <<_ACEOF
10858/* end confdefs.h. */
10859#include <langinfo.h>
10860int
10861main ()
10862{
10863char* cs = nl_langinfo(CODESET);
10864 ;
10865 return 0;
10866}
10867_ACEOF
10868rm -f conftest.$ac_objext conftest$ac_exeext
10869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10870 (eval $ac_link) 2>conftest.er1
10871 ac_status=$?
10872 grep -v '^ *+' conftest.er1 >conftest.err
10873 rm -f conftest.er1
10874 cat conftest.err >&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); } &&
10877 { ac_try='test -z "$ac_cxx_werror_flag"
10878 || test ! -s conftest.err'
10879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10880 (eval $ac_try) 2>&5
10881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; } &&
10884 { ac_try='test -s conftest$ac_exeext'
10885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886 (eval $ac_try) 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; }; then
10890 am_cv_langinfo_codeset=yes
10891else
10892 echo "$as_me: failed program was:" >&5
10893sed 's/^/| /' conftest.$ac_ext >&5
10894
10895am_cv_langinfo_codeset=no
10896fi
10897rm -f conftest.err conftest.$ac_objext \
10898 conftest$ac_exeext conftest.$ac_ext
10899
10900fi
10901echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10902echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
10903 if test $am_cv_langinfo_codeset = yes; then
10904
10905cat >>confdefs.h <<\_ACEOF
10906#define HAVE_LANGINFO_CODESET 1
10907_ACEOF
10908
10909 fi
10910
10911 if test $ac_cv_header_locale_h = yes; then
10912
10913 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10914echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10915if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10916 echo $ECHO_N "(cached) $ECHO_C" >&6
10917else
10918 cat >conftest.$ac_ext <<_ACEOF
10919/* confdefs.h. */
10920_ACEOF
10921cat confdefs.h >>conftest.$ac_ext
10922cat >>conftest.$ac_ext <<_ACEOF
10923/* end confdefs.h. */
10924#include <locale.h>
10925int
10926main ()
10927{
10928return LC_MESSAGES
10929 ;
10930 return 0;
10931}
10932_ACEOF
10933rm -f conftest.$ac_objext conftest$ac_exeext
10934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10935 (eval $ac_link) 2>conftest.er1
10936 ac_status=$?
10937 grep -v '^ *+' conftest.er1 >conftest.err
10938 rm -f conftest.er1
10939 cat conftest.err >&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } &&
10942 { ac_try='test -z "$ac_cxx_werror_flag"
10943 || test ! -s conftest.err'
10944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945 (eval $ac_try) 2>&5
10946 ac_status=$?
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; } &&
10949 { ac_try='test -s conftest$ac_exeext'
10950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951 (eval $ac_try) 2>&5
10952 ac_status=$?
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; }; then
10955 am_cv_val_LC_MESSAGES=yes
10956else
10957 echo "$as_me: failed program was:" >&5
10958sed 's/^/| /' conftest.$ac_ext >&5
10959
10960am_cv_val_LC_MESSAGES=no
10961fi
10962rm -f conftest.err conftest.$ac_objext \
10963 conftest$ac_exeext conftest.$ac_ext
10964fi
10965echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10966echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10967 if test $am_cv_val_LC_MESSAGES = yes; then
10968
10969cat >>confdefs.h <<\_ACEOF
10970#define HAVE_LC_MESSAGES 1
10971_ACEOF
10972
10973 fi
10974
10975 fi
10976
10977 for ac_prog in bison
10978do
10979 # Extract the first word of "$ac_prog", so it can be a program name with args.
10980set dummy $ac_prog; ac_word=$2
10981echo "$as_me:$LINENO: checking for $ac_word" >&5
10982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10983if test "${ac_cv_prog_INTLBISON+set}" = set; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10985else
10986 if test -n "$INTLBISON"; then
10987 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10988else
10989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10990for as_dir in $PATH
10991do
10992 IFS=$as_save_IFS
10993 test -z "$as_dir" && as_dir=.
10994 for ac_exec_ext in '' $ac_executable_extensions; do
10995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10996 ac_cv_prog_INTLBISON="$ac_prog"
10997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10998 break 2
10999 fi
11000done
11001done
11002
11003fi
11004fi
11005INTLBISON=$ac_cv_prog_INTLBISON
11006if test -n "$INTLBISON"; then
11007 echo "$as_me:$LINENO: result: $INTLBISON" >&5
11008echo "${ECHO_T}$INTLBISON" >&6
11009else
11010 echo "$as_me:$LINENO: result: no" >&5
11011echo "${ECHO_T}no" >&6
11012fi
11013
11014 test -n "$INTLBISON" && break
11015done
11016
11017 if test -z "$INTLBISON"; then
11018 ac_verc_fail=yes
11019 else
11020 echo "$as_me:$LINENO: checking version of bison" >&5
11021echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11022 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11023 case $ac_prog_version in
11024 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11025 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11026 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11027 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11028 esac
11029 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11030echo "${ECHO_T}$ac_prog_version" >&6
11031 fi
11032 if test $ac_verc_fail = yes; then
11033 INTLBISON=:
11034 fi
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11052echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11053 # Check whether --enable-nls or --disable-nls was given.
11054if test "${enable_nls+set}" = set; then
11055 enableval="$enable_nls"
11056 USE_NLS=$enableval
11057else
11058 USE_NLS=yes
11059fi;
11060 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11061echo "${ECHO_T}$USE_NLS" >&6
11062
11063
11064
11065
11066 BUILD_INCLUDED_LIBINTL=no
11067 USE_INCLUDED_LIBINTL=no
11068
11069 LIBINTL=
11070 LTLIBINTL=
11071 POSUB=
11072
11073 if test "$USE_NLS" = "yes"; then
11074 gt_use_preinstalled_gnugettext=no
11075
11076 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11077echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
11078
11079# Check whether --with-included-gettext or --without-included-gettext was given.
11080if test "${with_included_gettext+set}" = set; then
11081 withval="$with_included_gettext"
11082 nls_cv_force_use_gnu_gettext=$withval
11083else
11084 nls_cv_force_use_gnu_gettext=no
11085fi;
11086 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11087echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
11088
11089 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11090 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11091
11092
11093
11094
11095
11096
11097 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11098echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
11099if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11101else
11102 cat >conftest.$ac_ext <<_ACEOF
11103/* confdefs.h. */
11104_ACEOF
11105cat confdefs.h >>conftest.$ac_ext
11106cat >>conftest.$ac_ext <<_ACEOF
11107/* end confdefs.h. */
11108#include <libintl.h>
11109extern int _nl_msg_cat_cntr;
11110extern int *_nl_domain_bindings;
11111int
11112main ()
11113{
11114bindtextdomain ("", "");
11115return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
11116 ;
11117 return 0;
11118}
11119_ACEOF
11120rm -f conftest.$ac_objext conftest$ac_exeext
11121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11122 (eval $ac_link) 2>conftest.er1
11123 ac_status=$?
11124 grep -v '^ *+' conftest.er1 >conftest.err
11125 rm -f conftest.er1
11126 cat conftest.err >&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } &&
11129 { ac_try='test -z "$ac_cxx_werror_flag"
11130 || test ! -s conftest.err'
11131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132 (eval $ac_try) 2>&5
11133 ac_status=$?
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); }; } &&
11136 { ac_try='test -s conftest$ac_exeext'
11137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138 (eval $ac_try) 2>&5
11139 ac_status=$?
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; }; then
11142 gt_cv_func_gnugettext1_libc=yes
11143else
11144 echo "$as_me: failed program was:" >&5
11145sed 's/^/| /' conftest.$ac_ext >&5
11146
11147gt_cv_func_gnugettext1_libc=no
11148fi
11149rm -f conftest.err conftest.$ac_objext \
11150 conftest$ac_exeext conftest.$ac_ext
11151fi
11152echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
11153echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
11154
11155 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
11156
11157
11158
11159 use_additional=yes
11160
11161 acl_save_prefix="$prefix"
11162 prefix="$acl_final_prefix"
11163 acl_save_exec_prefix="$exec_prefix"
11164 exec_prefix="$acl_final_exec_prefix"
11165
11166 eval additional_includedir=\"$includedir\"
11167 eval additional_libdir=\"$libdir\"
11168
11169 exec_prefix="$acl_save_exec_prefix"
11170 prefix="$acl_save_prefix"
11171
11172
11173# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
11174if test "${with_libintl_prefix+set}" = set; then
11175 withval="$with_libintl_prefix"
11176
11177 if test "X$withval" = "Xno"; then
11178 use_additional=no
11179 else
11180 if test "X$withval" = "X"; then
11181
11182 acl_save_prefix="$prefix"
11183 prefix="$acl_final_prefix"
11184 acl_save_exec_prefix="$exec_prefix"
11185 exec_prefix="$acl_final_exec_prefix"
11186
11187 eval additional_includedir=\"$includedir\"
11188 eval additional_libdir=\"$libdir\"
11189
11190 exec_prefix="$acl_save_exec_prefix"
11191 prefix="$acl_save_prefix"
11192
11193 else
11194 additional_includedir="$withval/include"
11195 additional_libdir="$withval/lib"
11196 fi
11197 fi
11198
11199fi;
11200 LIBINTL=
11201 LTLIBINTL=
11202 INCINTL=
11203 rpathdirs=
11204 ltrpathdirs=
11205 names_already_handled=
11206 names_next_round='intl '
11207 while test -n "$names_next_round"; do
11208 names_this_round="$names_next_round"
11209 names_next_round=
11210 for name in $names_this_round; do
11211 already_handled=
11212 for n in $names_already_handled; do
11213 if test "$n" = "$name"; then
11214 already_handled=yes
11215 break
11216 fi
11217 done
11218 if test -z "$already_handled"; then
11219 names_already_handled="$names_already_handled $name"
11220 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11221 eval value=\"\$HAVE_LIB$uppername\"
11222 if test -n "$value"; then
11223 if test "$value" = yes; then
11224 eval value=\"\$LIB$uppername\"
11225 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11226 eval value=\"\$LTLIB$uppername\"
11227 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11228 else
11229 :
11230 fi
11231 else
11232 found_dir=
11233 found_la=
11234 found_so=
11235 found_a=
11236 if test $use_additional = yes; then
11237 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11238 found_dir="$additional_libdir"
11239 found_so="$additional_libdir/lib$name.$shlibext"
11240 if test -f "$additional_libdir/lib$name.la"; then
11241 found_la="$additional_libdir/lib$name.la"
11242 fi
11243 else
11244 if test -f "$additional_libdir/lib$name.$libext"; then
11245 found_dir="$additional_libdir"
11246 found_a="$additional_libdir/lib$name.$libext"
11247 if test -f "$additional_libdir/lib$name.la"; then
11248 found_la="$additional_libdir/lib$name.la"
11249 fi
11250 fi
11251 fi
11252 fi
11253 if test "X$found_dir" = "X"; then
11254 for x in $LDFLAGS $LTLIBINTL; do
11255
11256 acl_save_prefix="$prefix"
11257 prefix="$acl_final_prefix"
11258 acl_save_exec_prefix="$exec_prefix"
11259 exec_prefix="$acl_final_exec_prefix"
11260 eval x=\"$x\"
11261 exec_prefix="$acl_save_exec_prefix"
11262 prefix="$acl_save_prefix"
11263
11264 case "$x" in
11265 -L*)
11266 dir=`echo "X$x" | sed -e 's/^X-L//'`
11267 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11268 found_dir="$dir"
11269 found_so="$dir/lib$name.$shlibext"
11270 if test -f "$dir/lib$name.la"; then
11271 found_la="$dir/lib$name.la"
11272 fi
11273 else
11274 if test -f "$dir/lib$name.$libext"; then
11275 found_dir="$dir"
11276 found_a="$dir/lib$name.$libext"
11277 if test -f "$dir/lib$name.la"; then
11278 found_la="$dir/lib$name.la"
11279 fi
11280 fi
11281 fi
11282 ;;
11283 esac
11284 if test "X$found_dir" != "X"; then
11285 break
11286 fi
11287 done
11288 fi
11289 if test "X$found_dir" != "X"; then
11290 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11291 if test "X$found_so" != "X"; then
11292 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11293 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11294 else
11295 haveit=
11296 for x in $ltrpathdirs; do
11297 if test "X$x" = "X$found_dir"; then
11298 haveit=yes
11299 break
11300 fi
11301 done
11302 if test -z "$haveit"; then
11303 ltrpathdirs="$ltrpathdirs $found_dir"
11304 fi
11305 if test "$hardcode_direct" = yes; then
11306 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11307 else
11308 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11309 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11310 haveit=
11311 for x in $rpathdirs; do
11312 if test "X$x" = "X$found_dir"; then
11313 haveit=yes
11314 break
11315 fi
11316 done
11317 if test -z "$haveit"; then
11318 rpathdirs="$rpathdirs $found_dir"
11319 fi
11320 else
11321 haveit=
11322 for x in $LDFLAGS $LIBINTL; do
11323
11324 acl_save_prefix="$prefix"
11325 prefix="$acl_final_prefix"
11326 acl_save_exec_prefix="$exec_prefix"
11327 exec_prefix="$acl_final_exec_prefix"
11328 eval x=\"$x\"
11329 exec_prefix="$acl_save_exec_prefix"
11330 prefix="$acl_save_prefix"
11331
11332 if test "X$x" = "X-L$found_dir"; then
11333 haveit=yes
11334 break
11335 fi
11336 done
11337 if test -z "$haveit"; then
11338 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11339 fi
11340 if test "$hardcode_minus_L" != no; then
11341 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11342 else
11343 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11344 fi
11345 fi
11346 fi
11347 fi
11348 else
11349 if test "X$found_a" != "X"; then
11350 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11351 else
11352 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11353 fi
11354 fi
11355 additional_includedir=
11356 case "$found_dir" in
11357 */lib | */lib/)
11358 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11359 additional_includedir="$basedir/include"
11360 ;;
11361 esac
11362 if test "X$additional_includedir" != "X"; then
11363 if test "X$additional_includedir" != "X/usr/include"; then
11364 haveit=
11365 if test "X$additional_includedir" = "X/usr/local/include"; then
11366 if test -n "$GCC"; then
11367 case $host_os in
11368 linux*) haveit=yes;;
11369 esac
11370 fi
11371 fi
11372 if test -z "$haveit"; then
11373 for x in $CPPFLAGS $INCINTL; do
11374
11375 acl_save_prefix="$prefix"
11376 prefix="$acl_final_prefix"
11377 acl_save_exec_prefix="$exec_prefix"
11378 exec_prefix="$acl_final_exec_prefix"
11379 eval x=\"$x\"
11380 exec_prefix="$acl_save_exec_prefix"
11381 prefix="$acl_save_prefix"
11382
11383 if test "X$x" = "X-I$additional_includedir"; then
11384 haveit=yes
11385 break
11386 fi
11387 done
11388 if test -z "$haveit"; then
11389 if test -d "$additional_includedir"; then
11390 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11391 fi
11392 fi
11393 fi
11394 fi
11395 fi
11396 if test -n "$found_la"; then
11397 save_libdir="$libdir"
11398 case "$found_la" in
11399 */* | *\\*) . "$found_la" ;;
11400 *) . "./$found_la" ;;
11401 esac
11402 libdir="$save_libdir"
11403 for dep in $dependency_libs; do
11404 case "$dep" in
11405 -L*)
11406 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11407 if test "X$additional_libdir" != "X/usr/lib"; then
11408 haveit=
11409 if test "X$additional_libdir" = "X/usr/local/lib"; then
11410 if test -n "$GCC"; then
11411 case $host_os in
11412 linux*) haveit=yes;;
11413 esac
11414 fi
11415 fi
11416 if test -z "$haveit"; then
11417 haveit=
11418 for x in $LDFLAGS $LIBINTL; do
11419
11420 acl_save_prefix="$prefix"
11421 prefix="$acl_final_prefix"
11422 acl_save_exec_prefix="$exec_prefix"
11423 exec_prefix="$acl_final_exec_prefix"
11424 eval x=\"$x\"
11425 exec_prefix="$acl_save_exec_prefix"
11426 prefix="$acl_save_prefix"
11427
11428 if test "X$x" = "X-L$additional_libdir"; then
11429 haveit=yes
11430 break
11431 fi
11432 done
11433 if test -z "$haveit"; then
11434 if test -d "$additional_libdir"; then
11435 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11436 fi
11437 fi
11438 haveit=
11439 for x in $LDFLAGS $LTLIBINTL; do
11440
11441 acl_save_prefix="$prefix"
11442 prefix="$acl_final_prefix"
11443 acl_save_exec_prefix="$exec_prefix"
11444 exec_prefix="$acl_final_exec_prefix"
11445 eval x=\"$x\"
11446 exec_prefix="$acl_save_exec_prefix"
11447 prefix="$acl_save_prefix"
11448
11449 if test "X$x" = "X-L$additional_libdir"; then
11450 haveit=yes
11451 break
11452 fi
11453 done
11454 if test -z "$haveit"; then
11455 if test -d "$additional_libdir"; then
11456 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11457 fi
11458 fi
11459 fi
11460 fi
11461 ;;
11462 -R*)
11463 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11464 if test "$enable_rpath" != no; then
11465 haveit=
11466 for x in $rpathdirs; do
11467 if test "X$x" = "X$dir"; then
11468 haveit=yes
11469 break
11470 fi
11471 done
11472 if test -z "$haveit"; then
11473 rpathdirs="$rpathdirs $dir"
11474 fi
11475 haveit=
11476 for x in $ltrpathdirs; do
11477 if test "X$x" = "X$dir"; then
11478 haveit=yes
11479 break
11480 fi
11481 done
11482 if test -z "$haveit"; then
11483 ltrpathdirs="$ltrpathdirs $dir"
11484 fi
11485 fi
11486 ;;
11487 -l*)
11488 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11489 ;;
11490 *.la)
11491 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11492 ;;
11493 *)
11494 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11495 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11496 ;;
11497 esac
11498 done
11499 fi
11500 else
11501 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11502 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11503 fi
11504 fi
11505 fi
11506 done
11507 done
11508 if test "X$rpathdirs" != "X"; then
11509 if test -n "$hardcode_libdir_separator"; then
11510 alldirs=
11511 for found_dir in $rpathdirs; do
11512 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11513 done
11514 acl_save_libdir="$libdir"
11515 libdir="$alldirs"
11516 eval flag=\"$hardcode_libdir_flag_spec\"
11517 libdir="$acl_save_libdir"
11518 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11519 else
11520 for found_dir in $rpathdirs; do
11521 acl_save_libdir="$libdir"
11522 libdir="$found_dir"
11523 eval flag=\"$hardcode_libdir_flag_spec\"
11524 libdir="$acl_save_libdir"
11525 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11526 done
11527 fi
11528 fi
11529 if test "X$ltrpathdirs" != "X"; then
11530 for found_dir in $ltrpathdirs; do
11531 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11532 done
11533 fi
11534
11535 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11536echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
11537if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11539else
11540 gt_save_CPPFLAGS="$CPPFLAGS"
11541 CPPFLAGS="$CPPFLAGS $INCINTL"
11542 gt_save_LIBS="$LIBS"
11543 LIBS="$LIBS $LIBINTL"
11544 cat >conftest.$ac_ext <<_ACEOF
11545/* confdefs.h. */
11546_ACEOF
11547cat confdefs.h >>conftest.$ac_ext
11548cat >>conftest.$ac_ext <<_ACEOF
11549/* end confdefs.h. */
11550#include <libintl.h>
11551extern int _nl_msg_cat_cntr;
11552extern
11553#ifdef __cplusplus
11554"C"
11555#endif
11556const char *_nl_expand_alias ();
11557int
11558main ()
11559{
11560bindtextdomain ("", "");
11561return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11562 ;
11563 return 0;
11564}
11565_ACEOF
11566rm -f conftest.$ac_objext conftest$ac_exeext
11567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11568 (eval $ac_link) 2>conftest.er1
11569 ac_status=$?
11570 grep -v '^ *+' conftest.er1 >conftest.err
11571 rm -f conftest.er1
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } &&
11575 { ac_try='test -z "$ac_cxx_werror_flag"
11576 || test ! -s conftest.err'
11577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11578 (eval $ac_try) 2>&5
11579 ac_status=$?
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; } &&
11582 { ac_try='test -s conftest$ac_exeext'
11583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584 (eval $ac_try) 2>&5
11585 ac_status=$?
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; }; then
11588 gt_cv_func_gnugettext1_libintl=yes
11589else
11590 echo "$as_me: failed program was:" >&5
11591sed 's/^/| /' conftest.$ac_ext >&5
11592
11593gt_cv_func_gnugettext1_libintl=no
11594fi
11595rm -f conftest.err conftest.$ac_objext \
11596 conftest$ac_exeext conftest.$ac_ext
11597 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11598 LIBS="$LIBS $LIBICONV"
11599 cat >conftest.$ac_ext <<_ACEOF
11600/* confdefs.h. */
11601_ACEOF
11602cat confdefs.h >>conftest.$ac_ext
11603cat >>conftest.$ac_ext <<_ACEOF
11604/* end confdefs.h. */
11605#include <libintl.h>
11606extern int _nl_msg_cat_cntr;
11607extern
11608#ifdef __cplusplus
11609"C"
11610#endif
11611const char *_nl_expand_alias ();
11612int
11613main ()
11614{
11615bindtextdomain ("", "");
11616return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11617 ;
11618 return 0;
11619}
11620_ACEOF
11621rm -f conftest.$ac_objext conftest$ac_exeext
11622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11623 (eval $ac_link) 2>conftest.er1
11624 ac_status=$?
11625 grep -v '^ *+' conftest.er1 >conftest.err
11626 rm -f conftest.er1
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try='test -z "$ac_cxx_werror_flag"
11631 || test ! -s conftest.err'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest$ac_exeext'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11640 ac_status=$?
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; }; then
11643 LIBINTL="$LIBINTL $LIBICONV"
11644 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11645 gt_cv_func_gnugettext1_libintl=yes
11646
11647else
11648 echo "$as_me: failed program was:" >&5
11649sed 's/^/| /' conftest.$ac_ext >&5
11650
11651fi
11652rm -f conftest.err conftest.$ac_objext \
11653 conftest$ac_exeext conftest.$ac_ext
11654 fi
11655 CPPFLAGS="$gt_save_CPPFLAGS"
11656 LIBS="$gt_save_LIBS"
11657fi
11658echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11659echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
11660 fi
11661
11662 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11663 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11664 && test "$PACKAGE" != gettext-runtime \
11665 && test "$PACKAGE" != gettext-tools; }; then
11666 gt_use_preinstalled_gnugettext=yes
11667 else
11668 LIBINTL=
11669 LTLIBINTL=
11670 INCINTL=
11671 fi
11672
11673
11674 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11675 nls_cv_use_gnu_gettext=yes
11676 fi
11677 fi
11678
11679 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11680 BUILD_INCLUDED_LIBINTL=yes
11681 USE_INCLUDED_LIBINTL=yes
11682 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11683 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11684 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11685 fi
11686
11687 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11688 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11689 CATOBJEXT=.gmo
11690 fi
11691
11692
11693 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11694 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11695
11696cat >>confdefs.h <<\_ACEOF
11697#define ENABLE_NLS 1
11698_ACEOF
11699
11700 else
11701 USE_NLS=no
11702 fi
11703 fi
11704
11705 echo "$as_me:$LINENO: checking whether to use NLS" >&5
11706echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
11707 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11708echo "${ECHO_T}$USE_NLS" >&6
11709 if test "$USE_NLS" = "yes"; then
11710 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11711echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
11712 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11713 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11714 gt_source="external libintl"
11715 else
11716 gt_source="libc"
11717 fi
11718 else
11719 gt_source="included intl directory"
11720 fi
11721 echo "$as_me:$LINENO: result: $gt_source" >&5
11722echo "${ECHO_T}$gt_source" >&6
11723 fi
11724
11725 if test "$USE_NLS" = "yes"; then
11726
11727 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11728 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11729 echo "$as_me:$LINENO: checking how to link with libintl" >&5
11730echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
11731 echo "$as_me:$LINENO: result: $LIBINTL" >&5
11732echo "${ECHO_T}$LIBINTL" >&6
11733
11734 for element in $INCINTL; do
11735 haveit=
11736 for x in $CPPFLAGS; do
11737
11738 acl_save_prefix="$prefix"
11739 prefix="$acl_final_prefix"
11740 acl_save_exec_prefix="$exec_prefix"
11741 exec_prefix="$acl_final_exec_prefix"
11742 eval x=\"$x\"
11743 exec_prefix="$acl_save_exec_prefix"
11744 prefix="$acl_save_prefix"
11745
11746 if test "X$x" = "X$element"; then
11747 haveit=yes
11748 break
11749 fi
11750 done
11751 if test -z "$haveit"; then
11752 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11753 fi
11754 done
11755
11756 fi
11757
11758
11759cat >>confdefs.h <<\_ACEOF
11760#define HAVE_GETTEXT 1
11761_ACEOF
11762
11763
11764cat >>confdefs.h <<\_ACEOF
11765#define HAVE_DCGETTEXT 1
11766_ACEOF
11767
11768 fi
11769
11770 POSUB=po
11771 fi
11772
11773
11774 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11775 BUILD_INCLUDED_LIBINTL=yes
11776 fi
11777
11778
11779
11780
11781
11782 nls_cv_header_intl=
11783 nls_cv_header_libgt=
11784
11785 DATADIRNAME=share
11786
11787
11788 INSTOBJEXT=.mo
11789
11790
11791 GENCAT=gencat
11792
11793
11794 if test "$USE_INCLUDED_LIBINTL" = yes; then
11795 INTLOBJS="\$(GETTOBJS)"
11796 fi
11797
11798
11799 INTL_LIBTOOL_SUFFIX_PREFIX=
11800
11801
11802
11803 INTLLIBS="$LIBINTL"
11804
11805
11806
11807
11808
11809
11810
11811BOILERPLATE=boilerplate.mk
11812
11813if (sh -c "make --version" 2>/dev/null | grep GNU 2>&1 >/dev/null); then
11814 if sh -c "vncmkdepend" >/dev/null 2>&1; then
11815 BOILERPLATE="$BOILERPLATE:depend.mk"
11816 fi
11817fi
11818
11819 ac_config_files="$ac_config_files Makefile:Makefile.in:$BOILERPLATE intl/Makefile po/Makefile.in rdr/Makefile:rdr/Makefile.in:$BOILERPLATE network/Makefile:network/Makefile.in:$BOILERPLATE Xregion/Makefile:Xregion/Makefile.in:$BOILERPLATE rfb/Makefile:rfb/Makefile.in:$BOILERPLATE tx/Makefile:tx/Makefile.in:$BOILERPLATE x0vncserver/Makefile:x0vncserver/Makefile.in:$BOILERPLATE vncviewer_unix/Makefile:vncviewer_unix/Makefile.in:$BOILERPLATE vncconfig_unix/Makefile:vncconfig_unix/Makefile.in:$BOILERPLATE vncpasswd/Makefile:vncpasswd/Makefile.in:$BOILERPLATE"
11820cat >confcache <<\_ACEOF
11821# This file is a shell script that caches the results of configure
11822# tests run on this system so they can be shared between configure
11823# scripts and configure runs, see configure's option --config-cache.
11824# It is not useful on other systems. If it contains results you don't
11825# want to keep, you may remove or edit it.
11826#
11827# config.status only pays attention to the cache file if you give it
11828# the --recheck option to rerun configure.
11829#
11830# `ac_cv_env_foo' variables (set or unset) will be overridden when
11831# loading this file, other *unset* `ac_cv_foo' will be assigned the
11832# following values.
11833
11834_ACEOF
11835
11836# The following way of writing the cache mishandles newlines in values,
11837# but we know of no workaround that is simple, portable, and efficient.
11838# So, don't put newlines in cache variables' values.
11839# Ultrix sh set writes to stderr and can't be redirected directly,
11840# and sets the high bit in the cache file unless we assign to the vars.
11841{
11842 (set) 2>&1 |
11843 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11844 *ac_space=\ *)
11845 # `set' does not quote correctly, so add quotes (double-quote
11846 # substitution turns \\\\ into \\, and sed turns \\ into \).
11847 sed -n \
11848 "s/'/'\\\\''/g;
11849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11850 ;;
11851 *)
11852 # `set' quotes correctly as required by POSIX, so do not add quotes.
11853 sed -n \
11854 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11855 ;;
11856 esac;
11857} |
11858 sed '
11859 t clear
11860 : clear
11861 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11862 t end
11863 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11864 : end' >>confcache
11865if diff $cache_file confcache >/dev/null 2>&1; then :; else
11866 if test -w $cache_file; then
11867 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11868 cat confcache >$cache_file
11869 else
11870 echo "not updating unwritable cache $cache_file"
11871 fi
11872fi
11873rm -f confcache
11874
11875test "x$prefix" = xNONE && prefix=$ac_default_prefix
11876# Let make expand exec_prefix.
11877test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11878
11879# VPATH may cause trouble with some makes, so we remove $(srcdir),
11880# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11881# trailing colons and then remove the whole line if VPATH becomes empty
11882# (actually we leave an empty line to preserve line numbers).
11883if test "x$srcdir" = x.; then
11884 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11885s/:*\$(srcdir):*/:/;
11886s/:*\${srcdir}:*/:/;
11887s/:*@srcdir@:*/:/;
11888s/^\([^=]*=[ ]*\):*/\1/;
11889s/:*$//;
11890s/^[^=]*=[ ]*$//;
11891}'
11892fi
11893
11894# Transform confdefs.h into DEFS.
11895# Protect against shell expansion while executing Makefile rules.
11896# Protect against Makefile macro expansion.
11897#
11898# If the first sed substitution is executed (which looks for macros that
11899# take arguments), then we branch to the quote section. Otherwise,
11900# look for a macro that doesn't take arguments.
11901cat >confdef2opt.sed <<\_ACEOF
11902t clear
11903: clear
11904s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
11905t quote
11906s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
11907t quote
11908d
11909: quote
11910s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
11911s,\[,\\&,g
11912s,\],\\&,g
11913s,\$,$$,g
11914p
11915_ACEOF
11916# We use echo to avoid assuming a particular line-breaking character.
11917# The extra dot is to prevent the shell from consuming trailing
11918# line-breaks from the sub-command output. A line-break within
11919# single-quotes doesn't work because, if this script is created in a
11920# platform that uses two characters for line-breaks (e.g., DOS), tr
11921# would break.
11922ac_LF_and_DOT=`echo; echo .`
11923DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11924rm -f confdef2opt.sed
11925
11926
11927ac_libobjs=
11928ac_ltlibobjs=
11929for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11930 # 1. Remove the extension, and $U if already installed.
11931 ac_i=`echo "$ac_i" |
11932 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11933 # 2. Add them.
11934 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11935 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11936done
11937LIBOBJS=$ac_libobjs
11938
11939LTLIBOBJS=$ac_ltlibobjs
11940
11941
11942
11943: ${CONFIG_STATUS=./config.status}
11944ac_clean_files_save=$ac_clean_files
11945ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11946{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11947echo "$as_me: creating $CONFIG_STATUS" >&6;}
11948cat >$CONFIG_STATUS <<_ACEOF
11949#! $SHELL
11950# Generated by $as_me.
11951# Run this file to recreate the current configuration.
11952# Compiler output produced by configure, useful for debugging
11953# configure, is in config.log if it exists.
11954
11955debug=false
11956ac_cs_recheck=false
11957ac_cs_silent=false
11958SHELL=\${CONFIG_SHELL-$SHELL}
11959_ACEOF
11960
11961cat >>$CONFIG_STATUS <<\_ACEOF
11962## --------------------- ##
11963## M4sh Initialization. ##
11964## --------------------- ##
11965
11966# Be Bourne compatible
11967if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11968 emulate sh
11969 NULLCMD=:
11970 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11971 # is contrary to our usage. Disable this feature.
11972 alias -g '${1+"$@"}'='"$@"'
11973elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11974 set -o posix
11975fi
11976DUALCASE=1; export DUALCASE # for MKS sh
11977
11978# Support unset when possible.
11979if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11980 as_unset=unset
11981else
11982 as_unset=false
11983fi
11984
11985
11986# Work around bugs in pre-3.0 UWIN ksh.
11987$as_unset ENV MAIL MAILPATH
11988PS1='$ '
11989PS2='> '
11990PS4='+ '
11991
11992# NLS nuisances.
11993for as_var in \
11994 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11995 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11996 LC_TELEPHONE LC_TIME
11997do
11998 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11999 eval $as_var=C; export $as_var
12000 else
12001 $as_unset $as_var
12002 fi
12003done
12004
12005# Required to use basename.
12006if expr a : '\(a\)' >/dev/null 2>&1; then
12007 as_expr=expr
12008else
12009 as_expr=false
12010fi
12011
12012if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12013 as_basename=basename
12014else
12015 as_basename=false
12016fi
12017
12018
12019# Name of the executable.
12020as_me=`$as_basename "$0" ||
12021$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12022 X"$0" : 'X\(//\)$' \| \
12023 X"$0" : 'X\(/\)$' \| \
12024 . : '\(.\)' 2>/dev/null ||
12025echo X/"$0" |
12026 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12027 /^X\/\(\/\/\)$/{ s//\1/; q; }
12028 /^X\/\(\/\).*/{ s//\1/; q; }
12029 s/.*/./; q'`
12030
12031
12032# PATH needs CR, and LINENO needs CR and PATH.
12033# Avoid depending upon Character Ranges.
12034as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12035as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12036as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12037as_cr_digits='0123456789'
12038as_cr_alnum=$as_cr_Letters$as_cr_digits
12039
12040# The user is always right.
12041if test "${PATH_SEPARATOR+set}" != set; then
12042 echo "#! /bin/sh" >conf$$.sh
12043 echo "exit 0" >>conf$$.sh
12044 chmod +x conf$$.sh
12045 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12046 PATH_SEPARATOR=';'
12047 else
12048 PATH_SEPARATOR=:
12049 fi
12050 rm -f conf$$.sh
12051fi
12052
12053
12054 as_lineno_1=$LINENO
12055 as_lineno_2=$LINENO
12056 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12057 test "x$as_lineno_1" != "x$as_lineno_2" &&
12058 test "x$as_lineno_3" = "x$as_lineno_2" || {
12059 # Find who we are. Look in the path if we contain no path at all
12060 # relative or not.
12061 case $0 in
12062 *[\\/]* ) as_myself=$0 ;;
12063 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064for as_dir in $PATH
12065do
12066 IFS=$as_save_IFS
12067 test -z "$as_dir" && as_dir=.
12068 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12069done
12070
12071 ;;
12072 esac
12073 # We did not find ourselves, most probably we were run as `sh COMMAND'
12074 # in which case we are not to be found in the path.
12075 if test "x$as_myself" = x; then
12076 as_myself=$0
12077 fi
12078 if test ! -f "$as_myself"; then
12079 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12080echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12081 { (exit 1); exit 1; }; }
12082 fi
12083 case $CONFIG_SHELL in
12084 '')
12085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12086for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12087do
12088 IFS=$as_save_IFS
12089 test -z "$as_dir" && as_dir=.
12090 for as_base in sh bash ksh sh5; do
12091 case $as_dir in
12092 /*)
12093 if ("$as_dir/$as_base" -c '
12094 as_lineno_1=$LINENO
12095 as_lineno_2=$LINENO
12096 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12097 test "x$as_lineno_1" != "x$as_lineno_2" &&
12098 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12099 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12100 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12101 CONFIG_SHELL=$as_dir/$as_base
12102 export CONFIG_SHELL
12103 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12104 fi;;
12105 esac
12106 done
12107done
12108;;
12109 esac
12110
12111 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12112 # uniformly replaced by the line number. The first 'sed' inserts a
12113 # line-number line before each line; the second 'sed' does the real
12114 # work. The second script uses 'N' to pair each line-number line
12115 # with the numbered line, and appends trailing '-' during
12116 # substitution so that $LINENO is not a special case at line end.
12117 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12118 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12119 sed '=' <$as_myself |
12120 sed '
12121 N
12122 s,$,-,
12123 : loop
12124 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12125 t loop
12126 s,-$,,
12127 s,^['$as_cr_digits']*\n,,
12128 ' >$as_me.lineno &&
12129 chmod +x $as_me.lineno ||
12130 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12131echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12132 { (exit 1); exit 1; }; }
12133
12134 # Don't try to exec as it changes $[0], causing all sort of problems
12135 # (the dirname of $[0] is not the place where we might find the
12136 # original and so on. Autoconf is especially sensible to this).
12137 . ./$as_me.lineno
12138 # Exit status is that of the last command.
12139 exit
12140}
12141
12142
12143case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12144 *c*,-n*) ECHO_N= ECHO_C='
12145' ECHO_T=' ' ;;
12146 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12147 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12148esac
12149
12150if expr a : '\(a\)' >/dev/null 2>&1; then
12151 as_expr=expr
12152else
12153 as_expr=false
12154fi
12155
12156rm -f conf$$ conf$$.exe conf$$.file
12157echo >conf$$.file
12158if ln -s conf$$.file conf$$ 2>/dev/null; then
12159 # We could just check for DJGPP; but this test a) works b) is more generic
12160 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12161 if test -f conf$$.exe; then
12162 # Don't use ln at all; we don't have any links
12163 as_ln_s='cp -p'
12164 else
12165 as_ln_s='ln -s'
12166 fi
12167elif ln conf$$.file conf$$ 2>/dev/null; then
12168 as_ln_s=ln
12169else
12170 as_ln_s='cp -p'
12171fi
12172rm -f conf$$ conf$$.exe conf$$.file
12173
12174if mkdir -p . 2>/dev/null; then
12175 as_mkdir_p=:
12176else
12177 test -d ./-p && rmdir ./-p
12178 as_mkdir_p=false
12179fi
12180
12181as_executable_p="test -f"
12182
12183# Sed expression to map a string onto a valid CPP name.
12184as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12185
12186# Sed expression to map a string onto a valid variable name.
12187as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12188
12189
12190# IFS
12191# We need space, tab and new line, in precisely that order.
12192as_nl='
12193'
12194IFS=" $as_nl"
12195
12196# CDPATH.
12197$as_unset CDPATH
12198
12199exec 6>&1
12200
12201# Open the log real soon, to keep \$[0] and so on meaningful, and to
12202# report actual input values of CONFIG_FILES etc. instead of their
12203# values after options handling. Logging --version etc. is OK.
12204exec 5>>config.log
12205{
12206 echo
12207 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12208## Running $as_me. ##
12209_ASBOX
12210} >&5
12211cat >&5 <<_CSEOF
12212
12213This file was extended by $as_me, which was
12214generated by GNU Autoconf 2.59. Invocation command line was
12215
12216 CONFIG_FILES = $CONFIG_FILES
12217 CONFIG_HEADERS = $CONFIG_HEADERS
12218 CONFIG_LINKS = $CONFIG_LINKS
12219 CONFIG_COMMANDS = $CONFIG_COMMANDS
12220 $ $0 $@
12221
12222_CSEOF
12223echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12224echo >&5
12225_ACEOF
12226
12227# Files that config.status was made for.
12228if test -n "$ac_config_files"; then
12229 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12230fi
12231
12232if test -n "$ac_config_headers"; then
12233 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12234fi
12235
12236if test -n "$ac_config_links"; then
12237 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12238fi
12239
12240if test -n "$ac_config_commands"; then
12241 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12242fi
12243
12244cat >>$CONFIG_STATUS <<\_ACEOF
12245
12246ac_cs_usage="\
12247\`$as_me' instantiates files from templates according to the
12248current configuration.
12249
12250Usage: $0 [OPTIONS] [FILE]...
12251
12252 -h, --help print this help, then exit
12253 -V, --version print version number, then exit
12254 -q, --quiet do not print progress messages
12255 -d, --debug don't remove temporary files
12256 --recheck update $as_me by reconfiguring in the same conditions
12257 --file=FILE[:TEMPLATE]
12258 instantiate the configuration file FILE
12259
12260Configuration files:
12261$config_files
12262
12263Configuration commands:
12264$config_commands
12265
12266Report bugs to <bug-autoconf@gnu.org>."
12267_ACEOF
12268
12269cat >>$CONFIG_STATUS <<_ACEOF
12270ac_cs_version="\\
12271config.status
12272configured by $0, generated by GNU Autoconf 2.59,
12273 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12274
12275Copyright (C) 2003 Free Software Foundation, Inc.
12276This config.status script is free software; the Free Software Foundation
12277gives unlimited permission to copy, distribute and modify it."
12278srcdir=$srcdir
12279INSTALL="$INSTALL"
12280_ACEOF
12281
12282cat >>$CONFIG_STATUS <<\_ACEOF
12283# If no file are specified by the user, then we need to provide default
12284# value. By we need to know if files were specified by the user.
12285ac_need_defaults=:
12286while test $# != 0
12287do
12288 case $1 in
12289 --*=*)
12290 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12291 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12292 ac_shift=:
12293 ;;
12294 -*)
12295 ac_option=$1
12296 ac_optarg=$2
12297 ac_shift=shift
12298 ;;
12299 *) # This is not an option, so the user has probably given explicit
12300 # arguments.
12301 ac_option=$1
12302 ac_need_defaults=false;;
12303 esac
12304
12305 case $ac_option in
12306 # Handling of the options.
12307_ACEOF
12308cat >>$CONFIG_STATUS <<\_ACEOF
12309 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12310 ac_cs_recheck=: ;;
12311 --version | --vers* | -V )
12312 echo "$ac_cs_version"; exit 0 ;;
12313 --he | --h)
12314 # Conflict between --help and --header
12315 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12316Try \`$0 --help' for more information." >&5
12317echo "$as_me: error: ambiguous option: $1
12318Try \`$0 --help' for more information." >&2;}
12319 { (exit 1); exit 1; }; };;
12320 --help | --hel | -h )
12321 echo "$ac_cs_usage"; exit 0 ;;
12322 --debug | --d* | -d )
12323 debug=: ;;
12324 --file | --fil | --fi | --f )
12325 $ac_shift
12326 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12327 ac_need_defaults=false;;
12328 --header | --heade | --head | --hea )
12329 $ac_shift
12330 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12331 ac_need_defaults=false;;
12332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12333 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12334 ac_cs_silent=: ;;
12335
12336 # This is an error.
12337 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12338Try \`$0 --help' for more information." >&5
12339echo "$as_me: error: unrecognized option: $1
12340Try \`$0 --help' for more information." >&2;}
12341 { (exit 1); exit 1; }; } ;;
12342
12343 *) ac_config_targets="$ac_config_targets $1" ;;
12344
12345 esac
12346 shift
12347done
12348
12349ac_configure_extra_args=
12350
12351if $ac_cs_silent; then
12352 exec 6>/dev/null
12353 ac_configure_extra_args="$ac_configure_extra_args --silent"
12354fi
12355
12356_ACEOF
12357cat >>$CONFIG_STATUS <<_ACEOF
12358if \$ac_cs_recheck; then
12359 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12360 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12361fi
12362
12363_ACEOF
12364
12365cat >>$CONFIG_STATUS <<_ACEOF
12366#
12367# INIT-COMMANDS section.
12368#
12369
12370# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12371 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12372 # from automake.
12373 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12374 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12375 LINGUAS="${LINGUAS-%UNSET%}"
12376
12377
12378_ACEOF
12379
12380
12381
12382cat >>$CONFIG_STATUS <<\_ACEOF
12383for ac_config_target in $ac_config_targets
12384do
12385 case "$ac_config_target" in
12386 # Handling of arguments.
12387 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:$BOILERPLATE" ;;
12388 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12389 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12390 "rdr/Makefile" ) CONFIG_FILES="$CONFIG_FILES rdr/Makefile:rdr/Makefile.in:$BOILERPLATE" ;;
12391 "network/Makefile" ) CONFIG_FILES="$CONFIG_FILES network/Makefile:network/Makefile.in:$BOILERPLATE" ;;
12392 "Xregion/Makefile" ) CONFIG_FILES="$CONFIG_FILES Xregion/Makefile:Xregion/Makefile.in:$BOILERPLATE" ;;
12393 "rfb/Makefile" ) CONFIG_FILES="$CONFIG_FILES rfb/Makefile:rfb/Makefile.in:$BOILERPLATE" ;;
12394 "tx/Makefile" ) CONFIG_FILES="$CONFIG_FILES tx/Makefile:tx/Makefile.in:$BOILERPLATE" ;;
12395 "x0vncserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES x0vncserver/Makefile:x0vncserver/Makefile.in:$BOILERPLATE" ;;
12396 "vncviewer_unix/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncviewer_unix/Makefile:vncviewer_unix/Makefile.in:$BOILERPLATE" ;;
12397 "vncconfig_unix/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncconfig_unix/Makefile:vncconfig_unix/Makefile.in:$BOILERPLATE" ;;
12398 "vncpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncpasswd/Makefile:vncpasswd/Makefile.in:$BOILERPLATE" ;;
12399 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12400 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12401echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12402 { (exit 1); exit 1; }; };;
12403 esac
12404done
12405
12406# If the user did not use the arguments to specify the items to instantiate,
12407# then the envvar interface is used. Set only those that are not.
12408# We use the long form for the default assignment because of an extremely
12409# bizarre bug on SunOS 4.1.3.
12410if $ac_need_defaults; then
12411 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12412 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12413fi
12414
12415# Have a temporary directory for convenience. Make it in the build tree
12416# simply because there is no reason to put it here, and in addition,
12417# creating and moving files from /tmp can sometimes cause problems.
12418# Create a temporary directory, and hook for its removal unless debugging.
12419$debug ||
12420{
12421 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12422 trap '{ (exit 1); exit 1; }' 1 2 13 15
12423}
12424
12425# Create a (secure) tmp directory for tmp files.
12426
12427{
12428 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12429 test -n "$tmp" && test -d "$tmp"
12430} ||
12431{
12432 tmp=./confstat$$-$RANDOM
12433 (umask 077 && mkdir $tmp)
12434} ||
12435{
12436 echo "$me: cannot create a temporary directory in ." >&2
12437 { (exit 1); exit 1; }
12438}
12439
12440_ACEOF
12441
12442cat >>$CONFIG_STATUS <<_ACEOF
12443
12444#
12445# CONFIG_FILES section.
12446#
12447
12448# No need to generate the scripts if there are no CONFIG_FILES.
12449# This happens for instance when ./config.status config.h
12450if test -n "\$CONFIG_FILES"; then
12451 # Protect against being on the right side of a sed subst in config.status.
12452 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12453 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12454s,@SHELL@,$SHELL,;t t
12455s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12456s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12457s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12458s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12459s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12460s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12461s,@exec_prefix@,$exec_prefix,;t t
12462s,@prefix@,$prefix,;t t
12463s,@program_transform_name@,$program_transform_name,;t t
12464s,@bindir@,$bindir,;t t
12465s,@sbindir@,$sbindir,;t t
12466s,@libexecdir@,$libexecdir,;t t
12467s,@datadir@,$datadir,;t t
12468s,@sysconfdir@,$sysconfdir,;t t
12469s,@sharedstatedir@,$sharedstatedir,;t t
12470s,@localstatedir@,$localstatedir,;t t
12471s,@libdir@,$libdir,;t t
12472s,@includedir@,$includedir,;t t
12473s,@oldincludedir@,$oldincludedir,;t t
12474s,@infodir@,$infodir,;t t
12475s,@mandir@,$mandir,;t t
12476s,@build_alias@,$build_alias,;t t
12477s,@host_alias@,$host_alias,;t t
12478s,@target_alias@,$target_alias,;t t
12479s,@DEFS@,$DEFS,;t t
12480s,@ECHO_C@,$ECHO_C,;t t
12481s,@ECHO_N@,$ECHO_N,;t t
12482s,@ECHO_T@,$ECHO_T,;t t
12483s,@LIBS@,$LIBS,;t t
12484s,@PACKAGE@,$PACKAGE,;t t
12485s,@VERSION@,$VERSION,;t t
12486s,@CC@,$CC,;t t
12487s,@CFLAGS@,$CFLAGS,;t t
12488s,@LDFLAGS@,$LDFLAGS,;t t
12489s,@CPPFLAGS@,$CPPFLAGS,;t t
12490s,@ac_ct_CC@,$ac_ct_CC,;t t
12491s,@EXEEXT@,$EXEEXT,;t t
12492s,@OBJEXT@,$OBJEXT,;t t
12493s,@CXX@,$CXX,;t t
12494s,@CXXFLAGS@,$CXXFLAGS,;t t
12495s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12496s,@RANLIB@,$RANLIB,;t t
12497s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12498s,@SET_MAKE@,$SET_MAKE,;t t
12499s,@MITSHM_DEFINE@,$MITSHM_DEFINE,;t t
12500s,@CXXCPP@,$CXXCPP,;t t
12501s,@X_CFLAGS@,$X_CFLAGS,;t t
12502s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
12503s,@X_LIBS@,$X_LIBS,;t t
12504s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
12505s,@ZLIB_DIR@,$ZLIB_DIR,;t t
12506s,@ZLIB_INCLUDE@,$ZLIB_INCLUDE,;t t
12507s,@ZLIB_LIB@,$ZLIB_LIB,;t t
12508s,@JPEG_DIR@,$JPEG_DIR,;t t
12509s,@JPEG_INCLUDE@,$JPEG_INCLUDE,;t t
12510s,@JPEG_LIB@,$JPEG_LIB,;t t
12511s,@VNCCONFIG_DIR@,$VNCCONFIG_DIR,;t t
12512s,@XTEST_DEFINE@,$XTEST_DEFINE,;t t
12513s,@XTEST_LIB@,$XTEST_LIB,;t t
12514s,@READDISPLAY_DEFINE@,$READDISPLAY_DEFINE,;t t
12515s,@VSNPRINTF_DEFINE@,$VSNPRINTF_DEFINE,;t t
12516s,@STRCASECMP_DEFINE@,$STRCASECMP_DEFINE,;t t
12517s,@STRNCASECMP_DEFINE@,$STRNCASECMP_DEFINE,;t t
12518s,@INET_LIB@,$INET_LIB,;t t
12519s,@SOCKLEN_T_DEFINE@,$SOCKLEN_T_DEFINE,;t t
12520s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12521s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12522s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12523s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12524s,@USE_NLS@,$USE_NLS,;t t
12525s,@MSGFMT@,$MSGFMT,;t t
12526s,@GMSGFMT@,$GMSGFMT,;t t
12527s,@XGETTEXT@,$XGETTEXT,;t t
12528s,@MSGMERGE@,$MSGMERGE,;t t
12529s,@build@,$build,;t t
12530s,@build_cpu@,$build_cpu,;t t
12531s,@build_vendor@,$build_vendor,;t t
12532s,@build_os@,$build_os,;t t
12533s,@host@,$host,;t t
12534s,@host_cpu@,$host_cpu,;t t
12535s,@host_vendor@,$host_vendor,;t t
12536s,@host_os@,$host_os,;t t
12537s,@EGREP@,$EGREP,;t t
12538s,@ALLOCA@,$ALLOCA,;t t
12539s,@GLIBC21@,$GLIBC21,;t t
12540s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
12541s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
12542s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
12543s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
12544s,@LIBICONV@,$LIBICONV,;t t
12545s,@LTLIBICONV@,$LTLIBICONV,;t t
12546s,@INTLBISON@,$INTLBISON,;t t
12547s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
12548s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
12549s,@CATOBJEXT@,$CATOBJEXT,;t t
12550s,@DATADIRNAME@,$DATADIRNAME,;t t
12551s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12552s,@GENCAT@,$GENCAT,;t t
12553s,@INTLOBJS@,$INTLOBJS,;t t
12554s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
12555s,@INTLLIBS@,$INTLLIBS,;t t
12556s,@LIBINTL@,$LIBINTL,;t t
12557s,@LTLIBINTL@,$LTLIBINTL,;t t
12558s,@POSUB@,$POSUB,;t t
12559s,@LIBOBJS@,$LIBOBJS,;t t
12560s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12561CEOF
12562
12563_ACEOF
12564
12565 cat >>$CONFIG_STATUS <<\_ACEOF
12566 # Split the substitutions into bite-sized pieces for seds with
12567 # small command number limits, like on Digital OSF/1 and HP-UX.
12568 ac_max_sed_lines=48
12569 ac_sed_frag=1 # Number of current file.
12570 ac_beg=1 # First line for current file.
12571 ac_end=$ac_max_sed_lines # Line after last line for current file.
12572 ac_more_lines=:
12573 ac_sed_cmds=
12574 while $ac_more_lines; do
12575 if test $ac_beg -gt 1; then
12576 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12577 else
12578 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12579 fi
12580 if test ! -s $tmp/subs.frag; then
12581 ac_more_lines=false
12582 else
12583 # The purpose of the label and of the branching condition is to
12584 # speed up the sed processing (if there are no `@' at all, there
12585 # is no need to browse any of the substitutions).
12586 # These are the two extra sed commands mentioned above.
12587 (echo ':t
12588 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12589 if test -z "$ac_sed_cmds"; then
12590 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12591 else
12592 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12593 fi
12594 ac_sed_frag=`expr $ac_sed_frag + 1`
12595 ac_beg=$ac_end
12596 ac_end=`expr $ac_end + $ac_max_sed_lines`
12597 fi
12598 done
12599 if test -z "$ac_sed_cmds"; then
12600 ac_sed_cmds=cat
12601 fi
12602fi # test -n "$CONFIG_FILES"
12603
12604_ACEOF
12605cat >>$CONFIG_STATUS <<\_ACEOF
12606for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12607 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12608 case $ac_file in
12609 - | *:- | *:-:* ) # input from stdin
12610 cat >$tmp/stdin
12611 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12612 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12613 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12614 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12615 * ) ac_file_in=$ac_file.in ;;
12616 esac
12617
12618 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12619 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12620$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12621 X"$ac_file" : 'X\(//\)[^/]' \| \
12622 X"$ac_file" : 'X\(//\)$' \| \
12623 X"$ac_file" : 'X\(/\)' \| \
12624 . : '\(.\)' 2>/dev/null ||
12625echo X"$ac_file" |
12626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12628 /^X\(\/\/\)$/{ s//\1/; q; }
12629 /^X\(\/\).*/{ s//\1/; q; }
12630 s/.*/./; q'`
12631 { if $as_mkdir_p; then
12632 mkdir -p "$ac_dir"
12633 else
12634 as_dir="$ac_dir"
12635 as_dirs=
12636 while test ! -d "$as_dir"; do
12637 as_dirs="$as_dir $as_dirs"
12638 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12639$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12640 X"$as_dir" : 'X\(//\)[^/]' \| \
12641 X"$as_dir" : 'X\(//\)$' \| \
12642 X"$as_dir" : 'X\(/\)' \| \
12643 . : '\(.\)' 2>/dev/null ||
12644echo X"$as_dir" |
12645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12646 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12647 /^X\(\/\/\)$/{ s//\1/; q; }
12648 /^X\(\/\).*/{ s//\1/; q; }
12649 s/.*/./; q'`
12650 done
12651 test ! -n "$as_dirs" || mkdir $as_dirs
12652 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12653echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12654 { (exit 1); exit 1; }; }; }
12655
12656 ac_builddir=.
12657
12658if test "$ac_dir" != .; then
12659 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12660 # A "../" for each directory in $ac_dir_suffix.
12661 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12662else
12663 ac_dir_suffix= ac_top_builddir=
12664fi
12665
12666case $srcdir in
12667 .) # No --srcdir option. We are building in place.
12668 ac_srcdir=.
12669 if test -z "$ac_top_builddir"; then
12670 ac_top_srcdir=.
12671 else
12672 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12673 fi ;;
12674 [\\/]* | ?:[\\/]* ) # Absolute path.
12675 ac_srcdir=$srcdir$ac_dir_suffix;
12676 ac_top_srcdir=$srcdir ;;
12677 *) # Relative path.
12678 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12679 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12680esac
12681
12682# Do not use `cd foo && pwd` to compute absolute paths, because
12683# the directories may not exist.
12684case `pwd` in
12685.) ac_abs_builddir="$ac_dir";;
12686*)
12687 case "$ac_dir" in
12688 .) ac_abs_builddir=`pwd`;;
12689 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12690 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12691 esac;;
12692esac
12693case $ac_abs_builddir in
12694.) ac_abs_top_builddir=${ac_top_builddir}.;;
12695*)
12696 case ${ac_top_builddir}. in
12697 .) ac_abs_top_builddir=$ac_abs_builddir;;
12698 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12699 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12700 esac;;
12701esac
12702case $ac_abs_builddir in
12703.) ac_abs_srcdir=$ac_srcdir;;
12704*)
12705 case $ac_srcdir in
12706 .) ac_abs_srcdir=$ac_abs_builddir;;
12707 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12708 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12709 esac;;
12710esac
12711case $ac_abs_builddir in
12712.) ac_abs_top_srcdir=$ac_top_srcdir;;
12713*)
12714 case $ac_top_srcdir in
12715 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12716 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12717 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12718 esac;;
12719esac
12720
12721
12722 case $INSTALL in
12723 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12724 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12725 esac
12726
12727 if test x"$ac_file" != x-; then
12728 { echo "$as_me:$LINENO: creating $ac_file" >&5
12729echo "$as_me: creating $ac_file" >&6;}
12730 rm -f "$ac_file"
12731 fi
12732 # Let's still pretend it is `configure' which instantiates (i.e., don't
12733 # use $as_me), people would be surprised to read:
12734 # /* config.h. Generated by config.status. */
12735 if test x"$ac_file" = x-; then
12736 configure_input=
12737 else
12738 configure_input="$ac_file. "
12739 fi
12740 configure_input=$configure_input"Generated from `echo $ac_file_in |
12741 sed 's,.*/,,'` by configure."
12742
12743 # First look for the input files in the build tree, otherwise in the
12744 # src tree.
12745 ac_file_inputs=`IFS=:
12746 for f in $ac_file_in; do
12747 case $f in
12748 -) echo $tmp/stdin ;;
12749 [\\/$]*)
12750 # Absolute (can't be DOS-style, as IFS=:)
12751 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12752echo "$as_me: error: cannot find input file: $f" >&2;}
12753 { (exit 1); exit 1; }; }
12754 echo "$f";;
12755 *) # Relative
12756 if test -f "$f"; then
12757 # Build tree
12758 echo "$f"
12759 elif test -f "$srcdir/$f"; then
12760 # Source tree
12761 echo "$srcdir/$f"
12762 else
12763 # /dev/null tree
12764 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12765echo "$as_me: error: cannot find input file: $f" >&2;}
12766 { (exit 1); exit 1; }; }
12767 fi;;
12768 esac
12769 done` || { (exit 1); exit 1; }
12770_ACEOF
12771cat >>$CONFIG_STATUS <<_ACEOF
12772 sed "$ac_vpsub
12773$extrasub
12774_ACEOF
12775cat >>$CONFIG_STATUS <<\_ACEOF
12776:t
12777/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12778s,@configure_input@,$configure_input,;t t
12779s,@srcdir@,$ac_srcdir,;t t
12780s,@abs_srcdir@,$ac_abs_srcdir,;t t
12781s,@top_srcdir@,$ac_top_srcdir,;t t
12782s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12783s,@builddir@,$ac_builddir,;t t
12784s,@abs_builddir@,$ac_abs_builddir,;t t
12785s,@top_builddir@,$ac_top_builddir,;t t
12786s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12787s,@INSTALL@,$ac_INSTALL,;t t
12788" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12789 rm -f $tmp/stdin
12790 if test x"$ac_file" != x-; then
12791 mv $tmp/out $ac_file
12792 else
12793 cat $tmp/out
12794 rm -f $tmp/out
12795 fi
12796
12797done
12798_ACEOF
12799cat >>$CONFIG_STATUS <<\_ACEOF
12800
12801#
12802# CONFIG_COMMANDS section.
12803#
12804for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12805 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12806 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12807 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12808$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12809 X"$ac_dest" : 'X\(//\)[^/]' \| \
12810 X"$ac_dest" : 'X\(//\)$' \| \
12811 X"$ac_dest" : 'X\(/\)' \| \
12812 . : '\(.\)' 2>/dev/null ||
12813echo X"$ac_dest" |
12814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12815 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12816 /^X\(\/\/\)$/{ s//\1/; q; }
12817 /^X\(\/\).*/{ s//\1/; q; }
12818 s/.*/./; q'`
12819 { if $as_mkdir_p; then
12820 mkdir -p "$ac_dir"
12821 else
12822 as_dir="$ac_dir"
12823 as_dirs=
12824 while test ! -d "$as_dir"; do
12825 as_dirs="$as_dir $as_dirs"
12826 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12827$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12828 X"$as_dir" : 'X\(//\)[^/]' \| \
12829 X"$as_dir" : 'X\(//\)$' \| \
12830 X"$as_dir" : 'X\(/\)' \| \
12831 . : '\(.\)' 2>/dev/null ||
12832echo X"$as_dir" |
12833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12834 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12835 /^X\(\/\/\)$/{ s//\1/; q; }
12836 /^X\(\/\).*/{ s//\1/; q; }
12837 s/.*/./; q'`
12838 done
12839 test ! -n "$as_dirs" || mkdir $as_dirs
12840 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12841echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12842 { (exit 1); exit 1; }; }; }
12843
12844 ac_builddir=.
12845
12846if test "$ac_dir" != .; then
12847 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12848 # A "../" for each directory in $ac_dir_suffix.
12849 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12850else
12851 ac_dir_suffix= ac_top_builddir=
12852fi
12853
12854case $srcdir in
12855 .) # No --srcdir option. We are building in place.
12856 ac_srcdir=.
12857 if test -z "$ac_top_builddir"; then
12858 ac_top_srcdir=.
12859 else
12860 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12861 fi ;;
12862 [\\/]* | ?:[\\/]* ) # Absolute path.
12863 ac_srcdir=$srcdir$ac_dir_suffix;
12864 ac_top_srcdir=$srcdir ;;
12865 *) # Relative path.
12866 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12867 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12868esac
12869
12870# Do not use `cd foo && pwd` to compute absolute paths, because
12871# the directories may not exist.
12872case `pwd` in
12873.) ac_abs_builddir="$ac_dir";;
12874*)
12875 case "$ac_dir" in
12876 .) ac_abs_builddir=`pwd`;;
12877 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12878 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12879 esac;;
12880esac
12881case $ac_abs_builddir in
12882.) ac_abs_top_builddir=${ac_top_builddir}.;;
12883*)
12884 case ${ac_top_builddir}. in
12885 .) ac_abs_top_builddir=$ac_abs_builddir;;
12886 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12887 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12888 esac;;
12889esac
12890case $ac_abs_builddir in
12891.) ac_abs_srcdir=$ac_srcdir;;
12892*)
12893 case $ac_srcdir in
12894 .) ac_abs_srcdir=$ac_abs_builddir;;
12895 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12896 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12897 esac;;
12898esac
12899case $ac_abs_builddir in
12900.) ac_abs_top_srcdir=$ac_top_srcdir;;
12901*)
12902 case $ac_top_srcdir in
12903 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12904 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12905 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12906 esac;;
12907esac
12908
12909
12910 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12911echo "$as_me: executing $ac_dest commands" >&6;}
12912 case $ac_dest in
12913 default-1 )
12914 for ac_file in $CONFIG_FILES; do
12915 # Support "outfile[:infile[:infile...]]"
12916 case "$ac_file" in
12917 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12918 esac
12919 # PO directories have a Makefile.in generated from Makefile.in.in.
12920 case "$ac_file" in */Makefile.in)
12921 # Adjust a relative srcdir.
12922 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12923 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12924 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12925 # In autoconf-2.13 it is called $ac_given_srcdir.
12926 # In autoconf-2.50 it is called $srcdir.
12927 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12928 case "$ac_given_srcdir" in
12929 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12930 /*) top_srcdir="$ac_given_srcdir" ;;
12931 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12932 esac
12933 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12934 rm -f "$ac_dir/POTFILES"
12935 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12936 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12937 POMAKEFILEDEPS="POTFILES.in"
12938 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12939 # on $ac_dir but don't depend on user-specified configuration
12940 # parameters.
12941 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12942 # The LINGUAS file contains the set of available languages.
12943 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12944 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12945 fi
12946 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12947 # Hide the ALL_LINGUAS assigment from automake.
12948 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12949 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12950 else
12951 # The set of available languages was given in configure.in.
12952 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12953 fi
12954 # Compute POFILES
12955 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12956 # Compute UPDATEPOFILES
12957 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12958 # Compute DUMMYPOFILES
12959 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12960 # Compute GMOFILES
12961 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12962 case "$ac_given_srcdir" in
12963 .) srcdirpre= ;;
12964 *) srcdirpre='$(srcdir)/' ;;
12965 esac
12966 POFILES=
12967 UPDATEPOFILES=
12968 DUMMYPOFILES=
12969 GMOFILES=
12970 for lang in $ALL_LINGUAS; do
12971 POFILES="$POFILES $srcdirpre$lang.po"
12972 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12973 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12974 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12975 done
12976 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12977 # environment variable.
12978 INST_LINGUAS=
12979 if test -n "$ALL_LINGUAS"; then
12980 for presentlang in $ALL_LINGUAS; do
12981 useit=no
12982 if test "%UNSET%" != "$LINGUAS"; then
12983 desiredlanguages="$LINGUAS"
12984 else
12985 desiredlanguages="$ALL_LINGUAS"
12986 fi
12987 for desiredlang in $desiredlanguages; do
12988 # Use the presentlang catalog if desiredlang is
12989 # a. equal to presentlang, or
12990 # b. a variant of presentlang (because in this case,
12991 # presentlang can be used as a fallback for messages
12992 # which are not translated in the desiredlang catalog).
12993 case "$desiredlang" in
12994 "$presentlang"*) useit=yes;;
12995 esac
12996 done
12997 if test $useit = yes; then
12998 INST_LINGUAS="$INST_LINGUAS $presentlang"
12999 fi
13000 done
13001 fi
13002 CATALOGS=
13003 if test -n "$INST_LINGUAS"; then
13004 for lang in $INST_LINGUAS; do
13005 CATALOGS="$CATALOGS $lang.gmo"
13006 done
13007 fi
13008 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13009 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
13010 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13011 if test -f "$f"; then
13012 case "$f" in
13013 *.orig | *.bak | *~) ;;
13014 *) cat "$f" >> "$ac_dir/Makefile" ;;
13015 esac
13016 fi
13017 done
13018 fi
13019 ;;
13020 esac
13021 done ;;
13022 esac
13023done
13024_ACEOF
13025
13026cat >>$CONFIG_STATUS <<\_ACEOF
13027
13028{ (exit 0); exit 0; }
13029_ACEOF
13030chmod +x $CONFIG_STATUS
13031ac_clean_files=$ac_clean_files_save
13032
13033
13034# configure is writing to config.log, and then calls config.status.
13035# config.status does its own redirection, appending to config.log.
13036# Unfortunately, on DOS this fails, as config.log is still kept open
13037# by configure, so config.status won't be able to write to it; its
13038# output is simply discarded. So we exec the FD to /dev/null,
13039# effectively closing config.log, so it can be properly (re)opened and
13040# appended to by config.status. When coming back to configure, we
13041# need to make the FD available again.
13042if test "$no_create" != yes; then
13043 ac_cs_success=:
13044 ac_config_status_args=
13045 test "$silent" = yes &&
13046 ac_config_status_args="$ac_config_status_args --quiet"
13047 exec 5>/dev/null
13048 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13049 exec 5>>config.log
13050 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13051 # would make configure fail if this is the last instruction.
13052 $ac_cs_success || { (exit 1); exit 1; }
13053fi
13054