blob: a9796d20031887371bb8f817f883f05899aa2b21 [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
Constantin Kaplinsky97ac5552006-06-02 04:13:14 +0000274ac_unique_file="vncviewer/vncviewer.cxx"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000275# 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
Constantin Kaplinsky97ac5552006-06-02 04:13:14 +0000312ac_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 INET_LIB 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'
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000313ac_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
Constantin Kaplinsky97ac5552006-06-02 04:13:14 +00001342echo "configuring common..."
1343(cd ../common; ./configure $*)
1344echo "...done configuring common"
1345
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001346ac_cv_prog_cc_g=no
1347ac_cv_prog_cxx_g=no
1348
1349ac_ext=c
1350ac_cpp='$CPP $CPPFLAGS'
1351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1353ac_compiler_gnu=$ac_cv_c_compiler_gnu
1354if test -n "$ac_tool_prefix"; then
1355 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1356set dummy ${ac_tool_prefix}gcc; ac_word=$2
1357echo "$as_me:$LINENO: checking for $ac_word" >&5
1358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1359if test "${ac_cv_prog_CC+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1361else
1362 if test -n "$CC"; then
1363 ac_cv_prog_CC="$CC" # Let the user override the test.
1364else
1365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1366for as_dir in $PATH
1367do
1368 IFS=$as_save_IFS
1369 test -z "$as_dir" && as_dir=.
1370 for ac_exec_ext in '' $ac_executable_extensions; do
1371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1372 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1374 break 2
1375 fi
1376done
1377done
1378
1379fi
1380fi
1381CC=$ac_cv_prog_CC
1382if test -n "$CC"; then
1383 echo "$as_me:$LINENO: result: $CC" >&5
1384echo "${ECHO_T}$CC" >&6
1385else
1386 echo "$as_me:$LINENO: result: no" >&5
1387echo "${ECHO_T}no" >&6
1388fi
1389
1390fi
1391if test -z "$ac_cv_prog_CC"; then
1392 ac_ct_CC=$CC
1393 # Extract the first word of "gcc", so it can be a program name with args.
1394set dummy gcc; ac_word=$2
1395echo "$as_me:$LINENO: checking for $ac_word" >&5
1396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1397if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1398 echo $ECHO_N "(cached) $ECHO_C" >&6
1399else
1400 if test -n "$ac_ct_CC"; then
1401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1402else
1403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1404for as_dir in $PATH
1405do
1406 IFS=$as_save_IFS
1407 test -z "$as_dir" && as_dir=.
1408 for ac_exec_ext in '' $ac_executable_extensions; do
1409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1410 ac_cv_prog_ac_ct_CC="gcc"
1411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1412 break 2
1413 fi
1414done
1415done
1416
1417fi
1418fi
1419ac_ct_CC=$ac_cv_prog_ac_ct_CC
1420if test -n "$ac_ct_CC"; then
1421 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1422echo "${ECHO_T}$ac_ct_CC" >&6
1423else
1424 echo "$as_me:$LINENO: result: no" >&5
1425echo "${ECHO_T}no" >&6
1426fi
1427
1428 CC=$ac_ct_CC
1429else
1430 CC="$ac_cv_prog_CC"
1431fi
1432
1433if test -z "$CC"; then
1434 if test -n "$ac_tool_prefix"; then
1435 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1436set dummy ${ac_tool_prefix}cc; ac_word=$2
1437echo "$as_me:$LINENO: checking for $ac_word" >&5
1438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439if test "${ac_cv_prog_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1441else
1442 if test -n "$CC"; then
1443 ac_cv_prog_CC="$CC" # Let the user override the test.
1444else
1445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446for as_dir in $PATH
1447do
1448 IFS=$as_save_IFS
1449 test -z "$as_dir" && as_dir=.
1450 for ac_exec_ext in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452 ac_cv_prog_CC="${ac_tool_prefix}cc"
1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 break 2
1455 fi
1456done
1457done
1458
1459fi
1460fi
1461CC=$ac_cv_prog_CC
1462if test -n "$CC"; then
1463 echo "$as_me:$LINENO: result: $CC" >&5
1464echo "${ECHO_T}$CC" >&6
1465else
1466 echo "$as_me:$LINENO: result: no" >&5
1467echo "${ECHO_T}no" >&6
1468fi
1469
1470fi
1471if test -z "$ac_cv_prog_CC"; then
1472 ac_ct_CC=$CC
1473 # Extract the first word of "cc", so it can be a program name with args.
1474set dummy cc; ac_word=$2
1475echo "$as_me:$LINENO: checking for $ac_word" >&5
1476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1479else
1480 if test -n "$ac_ct_CC"; then
1481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1482else
1483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484for as_dir in $PATH
1485do
1486 IFS=$as_save_IFS
1487 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_ac_ct_CC="cc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492 break 2
1493 fi
1494done
1495done
1496
1497fi
1498fi
1499ac_ct_CC=$ac_cv_prog_ac_ct_CC
1500if test -n "$ac_ct_CC"; then
1501 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1502echo "${ECHO_T}$ac_ct_CC" >&6
1503else
1504 echo "$as_me:$LINENO: result: no" >&5
1505echo "${ECHO_T}no" >&6
1506fi
1507
1508 CC=$ac_ct_CC
1509else
1510 CC="$ac_cv_prog_CC"
1511fi
1512
1513fi
1514if test -z "$CC"; then
1515 # Extract the first word of "cc", so it can be a program name with args.
1516set dummy cc; ac_word=$2
1517echo "$as_me:$LINENO: checking for $ac_word" >&5
1518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519if test "${ac_cv_prog_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1521else
1522 if test -n "$CC"; then
1523 ac_cv_prog_CC="$CC" # Let the user override the test.
1524else
1525 ac_prog_rejected=no
1526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527for as_dir in $PATH
1528do
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1534 ac_prog_rejected=yes
1535 continue
1536 fi
1537 ac_cv_prog_CC="cc"
1538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539 break 2
1540 fi
1541done
1542done
1543
1544if test $ac_prog_rejected = yes; then
1545 # We found a bogon in the path, so make sure we never use it.
1546 set dummy $ac_cv_prog_CC
1547 shift
1548 if test $# != 0; then
1549 # We chose a different compiler from the bogus one.
1550 # However, it has the same basename, so the bogon will be chosen
1551 # first if we set CC to just the basename; use the full file name.
1552 shift
1553 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1554 fi
1555fi
1556fi
1557fi
1558CC=$ac_cv_prog_CC
1559if test -n "$CC"; then
1560 echo "$as_me:$LINENO: result: $CC" >&5
1561echo "${ECHO_T}$CC" >&6
1562else
1563 echo "$as_me:$LINENO: result: no" >&5
1564echo "${ECHO_T}no" >&6
1565fi
1566
1567fi
1568if test -z "$CC"; then
1569 if test -n "$ac_tool_prefix"; then
1570 for ac_prog in cl
1571 do
1572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1573set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1574echo "$as_me:$LINENO: checking for $ac_word" >&5
1575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1576if test "${ac_cv_prog_CC+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578else
1579 if test -n "$CC"; then
1580 ac_cv_prog_CC="$CC" # Let the user override the test.
1581else
1582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583for as_dir in $PATH
1584do
1585 IFS=$as_save_IFS
1586 test -z "$as_dir" && as_dir=.
1587 for ac_exec_ext in '' $ac_executable_extensions; do
1588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1589 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1591 break 2
1592 fi
1593done
1594done
1595
1596fi
1597fi
1598CC=$ac_cv_prog_CC
1599if test -n "$CC"; then
1600 echo "$as_me:$LINENO: result: $CC" >&5
1601echo "${ECHO_T}$CC" >&6
1602else
1603 echo "$as_me:$LINENO: result: no" >&5
1604echo "${ECHO_T}no" >&6
1605fi
1606
1607 test -n "$CC" && break
1608 done
1609fi
1610if test -z "$CC"; then
1611 ac_ct_CC=$CC
1612 for ac_prog in cl
1613do
1614 # Extract the first word of "$ac_prog", so it can be a program name with args.
1615set dummy $ac_prog; ac_word=$2
1616echo "$as_me:$LINENO: checking for $ac_word" >&5
1617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620else
1621 if test -n "$ac_ct_CC"; then
1622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1623else
1624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625for as_dir in $PATH
1626do
1627 IFS=$as_save_IFS
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 ac_cv_prog_ac_ct_CC="$ac_prog"
1632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633 break 2
1634 fi
1635done
1636done
1637
1638fi
1639fi
1640ac_ct_CC=$ac_cv_prog_ac_ct_CC
1641if test -n "$ac_ct_CC"; then
1642 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1643echo "${ECHO_T}$ac_ct_CC" >&6
1644else
1645 echo "$as_me:$LINENO: result: no" >&5
1646echo "${ECHO_T}no" >&6
1647fi
1648
1649 test -n "$ac_ct_CC" && break
1650done
1651
1652 CC=$ac_ct_CC
1653fi
1654
1655fi
1656
1657
1658test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1659See \`config.log' for more details." >&5
1660echo "$as_me: error: no acceptable C compiler found in \$PATH
1661See \`config.log' for more details." >&2;}
1662 { (exit 1); exit 1; }; }
1663
1664# Provide some information about the compiler.
1665echo "$as_me:$LINENO:" \
1666 "checking for C compiler version" >&5
1667ac_compiler=`set X $ac_compile; echo $2`
1668{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1669 (eval $ac_compiler --version </dev/null >&5) 2>&5
1670 ac_status=$?
1671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1672 (exit $ac_status); }
1673{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1674 (eval $ac_compiler -v </dev/null >&5) 2>&5
1675 ac_status=$?
1676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1677 (exit $ac_status); }
1678{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1679 (eval $ac_compiler -V </dev/null >&5) 2>&5
1680 ac_status=$?
1681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1682 (exit $ac_status); }
1683
1684cat >conftest.$ac_ext <<_ACEOF
1685/* confdefs.h. */
1686_ACEOF
1687cat confdefs.h >>conftest.$ac_ext
1688cat >>conftest.$ac_ext <<_ACEOF
1689/* end confdefs.h. */
1690
1691int
1692main ()
1693{
1694
1695 ;
1696 return 0;
1697}
1698_ACEOF
1699ac_clean_files_save=$ac_clean_files
1700ac_clean_files="$ac_clean_files a.out a.exe b.out"
1701# Try to create an executable without -o first, disregard a.out.
1702# It will help us diagnose broken compilers, and finding out an intuition
1703# of exeext.
1704echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1705echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1706ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1707if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1708 (eval $ac_link_default) 2>&5
1709 ac_status=$?
1710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1711 (exit $ac_status); }; then
1712 # Find the output, starting from the most likely. This scheme is
1713# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1714# resort.
1715
1716# Be careful to initialize this variable, since it used to be cached.
1717# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1718ac_cv_exeext=
1719# b.out is created by i960 compilers.
1720for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1721do
1722 test -f "$ac_file" || continue
1723 case $ac_file in
1724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1725 ;;
1726 conftest.$ac_ext )
1727 # This is the source file.
1728 ;;
1729 [ab].out )
1730 # We found the default executable, but exeext='' is most
1731 # certainly right.
1732 break;;
1733 *.* )
1734 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1735 # FIXME: I believe we export ac_cv_exeext for Libtool,
1736 # but it would be cool to find out if it's true. Does anybody
1737 # maintain Libtool? --akim.
1738 export ac_cv_exeext
1739 break;;
1740 * )
1741 break;;
1742 esac
1743done
1744else
1745 echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1749See \`config.log' for more details." >&5
1750echo "$as_me: error: C compiler cannot create executables
1751See \`config.log' for more details." >&2;}
1752 { (exit 77); exit 77; }; }
1753fi
1754
1755ac_exeext=$ac_cv_exeext
1756echo "$as_me:$LINENO: result: $ac_file" >&5
1757echo "${ECHO_T}$ac_file" >&6
1758
1759# Check the compiler produces executables we can run. If not, either
1760# the compiler is broken, or we cross compile.
1761echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1762echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1763# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1764# If not cross compiling, check that we can run a simple program.
1765if test "$cross_compiling" != yes; then
1766 if { ac_try='./$ac_file'
1767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1768 (eval $ac_try) 2>&5
1769 ac_status=$?
1770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1771 (exit $ac_status); }; }; then
1772 cross_compiling=no
1773 else
1774 if test "$cross_compiling" = maybe; then
1775 cross_compiling=yes
1776 else
1777 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1778If you meant to cross compile, use \`--host'.
1779See \`config.log' for more details." >&5
1780echo "$as_me: error: cannot run C compiled programs.
1781If you meant to cross compile, use \`--host'.
1782See \`config.log' for more details." >&2;}
1783 { (exit 1); exit 1; }; }
1784 fi
1785 fi
1786fi
1787echo "$as_me:$LINENO: result: yes" >&5
1788echo "${ECHO_T}yes" >&6
1789
1790rm -f a.out a.exe conftest$ac_cv_exeext b.out
1791ac_clean_files=$ac_clean_files_save
1792# Check the compiler produces executables we can run. If not, either
1793# the compiler is broken, or we cross compile.
1794echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1795echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1796echo "$as_me:$LINENO: result: $cross_compiling" >&5
1797echo "${ECHO_T}$cross_compiling" >&6
1798
1799echo "$as_me:$LINENO: checking for suffix of executables" >&5
1800echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1802 (eval $ac_link) 2>&5
1803 ac_status=$?
1804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805 (exit $ac_status); }; then
1806 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1807# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1808# work properly (i.e., refer to `conftest.exe'), while it won't with
1809# `rm'.
1810for ac_file in conftest.exe conftest conftest.*; do
1811 test -f "$ac_file" || continue
1812 case $ac_file in
1813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1814 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1815 export ac_cv_exeext
1816 break;;
1817 * ) break;;
1818 esac
1819done
1820else
1821 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1822See \`config.log' for more details." >&5
1823echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1824See \`config.log' for more details." >&2;}
1825 { (exit 1); exit 1; }; }
1826fi
1827
1828rm -f conftest$ac_cv_exeext
1829echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1830echo "${ECHO_T}$ac_cv_exeext" >&6
1831
1832rm -f conftest.$ac_ext
1833EXEEXT=$ac_cv_exeext
1834ac_exeext=$EXEEXT
1835echo "$as_me:$LINENO: checking for suffix of object files" >&5
1836echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1837if test "${ac_cv_objext+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1839else
1840 cat >conftest.$ac_ext <<_ACEOF
1841/* confdefs.h. */
1842_ACEOF
1843cat confdefs.h >>conftest.$ac_ext
1844cat >>conftest.$ac_ext <<_ACEOF
1845/* end confdefs.h. */
1846
1847int
1848main ()
1849{
1850
1851 ;
1852 return 0;
1853}
1854_ACEOF
1855rm -f conftest.o conftest.obj
1856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1857 (eval $ac_compile) 2>&5
1858 ac_status=$?
1859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860 (exit $ac_status); }; then
1861 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1862 case $ac_file in
1863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1864 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1865 break;;
1866 esac
1867done
1868else
1869 echo "$as_me: failed program was:" >&5
1870sed 's/^/| /' conftest.$ac_ext >&5
1871
1872{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1873See \`config.log' for more details." >&5
1874echo "$as_me: error: cannot compute suffix of object files: cannot compile
1875See \`config.log' for more details." >&2;}
1876 { (exit 1); exit 1; }; }
1877fi
1878
1879rm -f conftest.$ac_cv_objext conftest.$ac_ext
1880fi
1881echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1882echo "${ECHO_T}$ac_cv_objext" >&6
1883OBJEXT=$ac_cv_objext
1884ac_objext=$OBJEXT
1885echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1886echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1887if test "${ac_cv_c_compiler_gnu+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1889else
1890 cat >conftest.$ac_ext <<_ACEOF
1891/* confdefs.h. */
1892_ACEOF
1893cat confdefs.h >>conftest.$ac_ext
1894cat >>conftest.$ac_ext <<_ACEOF
1895/* end confdefs.h. */
1896
1897int
1898main ()
1899{
1900#ifndef __GNUC__
1901 choke me
1902#endif
1903
1904 ;
1905 return 0;
1906}
1907_ACEOF
1908rm -f conftest.$ac_objext
1909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1910 (eval $ac_compile) 2>conftest.er1
1911 ac_status=$?
1912 grep -v '^ *+' conftest.er1 >conftest.err
1913 rm -f conftest.er1
1914 cat conftest.err >&5
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); } &&
1917 { ac_try='test -z "$ac_c_werror_flag"
1918 || test ! -s conftest.err'
1919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1920 (eval $ac_try) 2>&5
1921 ac_status=$?
1922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923 (exit $ac_status); }; } &&
1924 { ac_try='test -s conftest.$ac_objext'
1925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1926 (eval $ac_try) 2>&5
1927 ac_status=$?
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); }; }; then
1930 ac_compiler_gnu=yes
1931else
1932 echo "$as_me: failed program was:" >&5
1933sed 's/^/| /' conftest.$ac_ext >&5
1934
1935ac_compiler_gnu=no
1936fi
1937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1938ac_cv_c_compiler_gnu=$ac_compiler_gnu
1939
1940fi
1941echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1942echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1943GCC=`test $ac_compiler_gnu = yes && echo yes`
1944ac_test_CFLAGS=${CFLAGS+set}
1945ac_save_CFLAGS=$CFLAGS
1946CFLAGS="-g"
1947echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1948echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1949if test "${ac_cv_prog_cc_g+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1951else
1952 cat >conftest.$ac_ext <<_ACEOF
1953/* confdefs.h. */
1954_ACEOF
1955cat confdefs.h >>conftest.$ac_ext
1956cat >>conftest.$ac_ext <<_ACEOF
1957/* end confdefs.h. */
1958
1959int
1960main ()
1961{
1962
1963 ;
1964 return 0;
1965}
1966_ACEOF
1967rm -f conftest.$ac_objext
1968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1969 (eval $ac_compile) 2>conftest.er1
1970 ac_status=$?
1971 grep -v '^ *+' conftest.er1 >conftest.err
1972 rm -f conftest.er1
1973 cat conftest.err >&5
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975 (exit $ac_status); } &&
1976 { ac_try='test -z "$ac_c_werror_flag"
1977 || test ! -s conftest.err'
1978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1979 (eval $ac_try) 2>&5
1980 ac_status=$?
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }; } &&
1983 { ac_try='test -s conftest.$ac_objext'
1984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1985 (eval $ac_try) 2>&5
1986 ac_status=$?
1987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988 (exit $ac_status); }; }; then
1989 ac_cv_prog_cc_g=yes
1990else
1991 echo "$as_me: failed program was:" >&5
1992sed 's/^/| /' conftest.$ac_ext >&5
1993
1994ac_cv_prog_cc_g=no
1995fi
1996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1997fi
1998echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1999echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2000if test "$ac_test_CFLAGS" = set; then
2001 CFLAGS=$ac_save_CFLAGS
2002elif test $ac_cv_prog_cc_g = yes; then
2003 if test "$GCC" = yes; then
2004 CFLAGS="-g -O2"
2005 else
2006 CFLAGS="-g"
2007 fi
2008else
2009 if test "$GCC" = yes; then
2010 CFLAGS="-O2"
2011 else
2012 CFLAGS=
2013 fi
2014fi
2015echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2016echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2017if test "${ac_cv_prog_cc_stdc+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2019else
2020 ac_cv_prog_cc_stdc=no
2021ac_save_CC=$CC
2022cat >conftest.$ac_ext <<_ACEOF
2023/* confdefs.h. */
2024_ACEOF
2025cat confdefs.h >>conftest.$ac_ext
2026cat >>conftest.$ac_ext <<_ACEOF
2027/* end confdefs.h. */
2028#include <stdarg.h>
2029#include <stdio.h>
2030#include <sys/types.h>
2031#include <sys/stat.h>
2032/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2033struct buf { int x; };
2034FILE * (*rcsopen) (struct buf *, struct stat *, int);
2035static char *e (p, i)
2036 char **p;
2037 int i;
2038{
2039 return p[i];
2040}
2041static char *f (char * (*g) (char **, int), char **p, ...)
2042{
2043 char *s;
2044 va_list v;
2045 va_start (v,p);
2046 s = g (p, va_arg (v,int));
2047 va_end (v);
2048 return s;
2049}
2050
2051/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2052 function prototypes and stuff, but not '\xHH' hex character constants.
2053 These don't provoke an error unfortunately, instead are silently treated
2054 as 'x'. The following induces an error, until -std1 is added to get
2055 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2056 array size at least. It's necessary to write '\x00'==0 to get something
2057 that's true only with -std1. */
2058int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2059
2060int test (int i, double x);
2061struct s1 {int (*f) (int a);};
2062struct s2 {int (*f) (double a);};
2063int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2064int argc;
2065char **argv;
2066int
2067main ()
2068{
2069return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2070 ;
2071 return 0;
2072}
2073_ACEOF
2074# Don't try gcc -ansi; that turns off useful extensions and
2075# breaks some systems' header files.
2076# AIX -qlanglvl=ansi
2077# Ultrix and OSF/1 -std1
2078# HP-UX 10.20 and later -Ae
2079# HP-UX older versions -Aa -D_HPUX_SOURCE
2080# SVR4 -Xc -D__EXTENSIONS__
2081for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2082do
2083 CC="$ac_save_CC $ac_arg"
2084 rm -f conftest.$ac_objext
2085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086 (eval $ac_compile) 2>conftest.er1
2087 ac_status=$?
2088 grep -v '^ *+' conftest.er1 >conftest.err
2089 rm -f conftest.er1
2090 cat conftest.err >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); } &&
2093 { ac_try='test -z "$ac_c_werror_flag"
2094 || test ! -s conftest.err'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 (eval $ac_try) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; } &&
2100 { ac_try='test -s conftest.$ac_objext'
2101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102 (eval $ac_try) 2>&5
2103 ac_status=$?
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; }; then
2106 ac_cv_prog_cc_stdc=$ac_arg
2107break
2108else
2109 echo "$as_me: failed program was:" >&5
2110sed 's/^/| /' conftest.$ac_ext >&5
2111
2112fi
2113rm -f conftest.err conftest.$ac_objext
2114done
2115rm -f conftest.$ac_ext conftest.$ac_objext
2116CC=$ac_save_CC
2117
2118fi
2119
2120case "x$ac_cv_prog_cc_stdc" in
2121 x|xno)
2122 echo "$as_me:$LINENO: result: none needed" >&5
2123echo "${ECHO_T}none needed" >&6 ;;
2124 *)
2125 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2126echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2127 CC="$CC $ac_cv_prog_cc_stdc" ;;
2128esac
2129
2130# Some people use a C++ compiler to compile C. Since we use `exit',
2131# in C++ we need to declare it. In case someone uses the same compiler
2132# for both compiling C and C++ we need to have the C++ compiler decide
2133# the declaration of exit, since it's the most demanding environment.
2134cat >conftest.$ac_ext <<_ACEOF
2135#ifndef __cplusplus
2136 choke me
2137#endif
2138_ACEOF
2139rm -f conftest.$ac_objext
2140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 (eval $ac_compile) 2>conftest.er1
2142 ac_status=$?
2143 grep -v '^ *+' conftest.er1 >conftest.err
2144 rm -f conftest.er1
2145 cat conftest.err >&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); } &&
2148 { ac_try='test -z "$ac_c_werror_flag"
2149 || test ! -s conftest.err'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 (eval $ac_try) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2161 for ac_declaration in \
2162 '' \
2163 'extern "C" void std::exit (int) throw (); using std::exit;' \
2164 'extern "C" void std::exit (int); using std::exit;' \
2165 'extern "C" void exit (int) throw ();' \
2166 'extern "C" void exit (int);' \
2167 'void exit (int);'
2168do
2169 cat >conftest.$ac_ext <<_ACEOF
2170/* confdefs.h. */
2171_ACEOF
2172cat confdefs.h >>conftest.$ac_ext
2173cat >>conftest.$ac_ext <<_ACEOF
2174/* end confdefs.h. */
2175$ac_declaration
2176#include <stdlib.h>
2177int
2178main ()
2179{
2180exit (42);
2181 ;
2182 return 0;
2183}
2184_ACEOF
2185rm -f conftest.$ac_objext
2186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187 (eval $ac_compile) 2>conftest.er1
2188 ac_status=$?
2189 grep -v '^ *+' conftest.er1 >conftest.err
2190 rm -f conftest.er1
2191 cat conftest.err >&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); } &&
2194 { ac_try='test -z "$ac_c_werror_flag"
2195 || test ! -s conftest.err'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197 (eval $ac_try) 2>&5
2198 ac_status=$?
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; } &&
2201 { ac_try='test -s conftest.$ac_objext'
2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203 (eval $ac_try) 2>&5
2204 ac_status=$?
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; }; then
2207 :
2208else
2209 echo "$as_me: failed program was:" >&5
2210sed 's/^/| /' conftest.$ac_ext >&5
2211
2212continue
2213fi
2214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2215 cat >conftest.$ac_ext <<_ACEOF
2216/* confdefs.h. */
2217_ACEOF
2218cat confdefs.h >>conftest.$ac_ext
2219cat >>conftest.$ac_ext <<_ACEOF
2220/* end confdefs.h. */
2221$ac_declaration
2222int
2223main ()
2224{
2225exit (42);
2226 ;
2227 return 0;
2228}
2229_ACEOF
2230rm -f conftest.$ac_objext
2231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232 (eval $ac_compile) 2>conftest.er1
2233 ac_status=$?
2234 grep -v '^ *+' conftest.er1 >conftest.err
2235 rm -f conftest.er1
2236 cat conftest.err >&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); } &&
2239 { ac_try='test -z "$ac_c_werror_flag"
2240 || test ! -s conftest.err'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 (eval $ac_try) 2>&5
2243 ac_status=$?
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; } &&
2246 { ac_try='test -s conftest.$ac_objext'
2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 (eval $ac_try) 2>&5
2249 ac_status=$?
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; }; then
2252 break
2253else
2254 echo "$as_me: failed program was:" >&5
2255sed 's/^/| /' conftest.$ac_ext >&5
2256
2257fi
2258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2259done
2260rm -f conftest*
2261if test -n "$ac_declaration"; then
2262 echo '#ifdef __cplusplus' >>confdefs.h
2263 echo $ac_declaration >>confdefs.h
2264 echo '#endif' >>confdefs.h
2265fi
2266
2267else
2268 echo "$as_me: failed program was:" >&5
2269sed 's/^/| /' conftest.$ac_ext >&5
2270
2271fi
2272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2273ac_ext=c
2274ac_cpp='$CPP $CPPFLAGS'
2275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2277ac_compiler_gnu=$ac_cv_c_compiler_gnu
2278
2279ac_ext=cc
2280ac_cpp='$CXXCPP $CPPFLAGS'
2281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2284if test -n "$ac_tool_prefix"; then
2285 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2286 do
2287 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2288set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2289echo "$as_me:$LINENO: checking for $ac_word" >&5
2290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2291if test "${ac_cv_prog_CXX+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2293else
2294 if test -n "$CXX"; then
2295 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2296else
2297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298for as_dir in $PATH
2299do
2300 IFS=$as_save_IFS
2301 test -z "$as_dir" && as_dir=.
2302 for ac_exec_ext in '' $ac_executable_extensions; do
2303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2304 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306 break 2
2307 fi
2308done
2309done
2310
2311fi
2312fi
2313CXX=$ac_cv_prog_CXX
2314if test -n "$CXX"; then
2315 echo "$as_me:$LINENO: result: $CXX" >&5
2316echo "${ECHO_T}$CXX" >&6
2317else
2318 echo "$as_me:$LINENO: result: no" >&5
2319echo "${ECHO_T}no" >&6
2320fi
2321
2322 test -n "$CXX" && break
2323 done
2324fi
2325if test -z "$CXX"; then
2326 ac_ct_CXX=$CXX
2327 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2328do
2329 # Extract the first word of "$ac_prog", so it can be a program name with args.
2330set dummy $ac_prog; ac_word=$2
2331echo "$as_me:$LINENO: checking for $ac_word" >&5
2332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2333if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2335else
2336 if test -n "$ac_ct_CXX"; then
2337 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2338else
2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340for as_dir in $PATH
2341do
2342 IFS=$as_save_IFS
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2346 ac_cv_prog_ac_ct_CXX="$ac_prog"
2347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 break 2
2349 fi
2350done
2351done
2352
2353fi
2354fi
2355ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2356if test -n "$ac_ct_CXX"; then
2357 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2358echo "${ECHO_T}$ac_ct_CXX" >&6
2359else
2360 echo "$as_me:$LINENO: result: no" >&5
2361echo "${ECHO_T}no" >&6
2362fi
2363
2364 test -n "$ac_ct_CXX" && break
2365done
2366test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2367
2368 CXX=$ac_ct_CXX
2369fi
2370
2371
2372# Provide some information about the compiler.
2373echo "$as_me:$LINENO:" \
2374 "checking for C++ compiler version" >&5
2375ac_compiler=`set X $ac_compile; echo $2`
2376{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2377 (eval $ac_compiler --version </dev/null >&5) 2>&5
2378 ac_status=$?
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }
2381{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2382 (eval $ac_compiler -v </dev/null >&5) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }
2386{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2387 (eval $ac_compiler -V </dev/null >&5) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }
2391
2392echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2393echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2394if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396else
2397 cat >conftest.$ac_ext <<_ACEOF
2398/* confdefs.h. */
2399_ACEOF
2400cat confdefs.h >>conftest.$ac_ext
2401cat >>conftest.$ac_ext <<_ACEOF
2402/* end confdefs.h. */
2403
2404int
2405main ()
2406{
2407#ifndef __GNUC__
2408 choke me
2409#endif
2410
2411 ;
2412 return 0;
2413}
2414_ACEOF
2415rm -f conftest.$ac_objext
2416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417 (eval $ac_compile) 2>conftest.er1
2418 ac_status=$?
2419 grep -v '^ *+' conftest.er1 >conftest.err
2420 rm -f conftest.er1
2421 cat conftest.err >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } &&
2424 { ac_try='test -z "$ac_cxx_werror_flag"
2425 || test ! -s conftest.err'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 (eval $ac_try) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; } &&
2431 { ac_try='test -s conftest.$ac_objext'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 (eval $ac_try) 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; }; then
2437 ac_compiler_gnu=yes
2438else
2439 echo "$as_me: failed program was:" >&5
2440sed 's/^/| /' conftest.$ac_ext >&5
2441
2442ac_compiler_gnu=no
2443fi
2444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2446
2447fi
2448echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2449echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2450GXX=`test $ac_compiler_gnu = yes && echo yes`
2451ac_test_CXXFLAGS=${CXXFLAGS+set}
2452ac_save_CXXFLAGS=$CXXFLAGS
2453CXXFLAGS="-g"
2454echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2455echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2456if test "${ac_cv_prog_cxx_g+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2458else
2459 cat >conftest.$ac_ext <<_ACEOF
2460/* confdefs.h. */
2461_ACEOF
2462cat confdefs.h >>conftest.$ac_ext
2463cat >>conftest.$ac_ext <<_ACEOF
2464/* end confdefs.h. */
2465
2466int
2467main ()
2468{
2469
2470 ;
2471 return 0;
2472}
2473_ACEOF
2474rm -f conftest.$ac_objext
2475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476 (eval $ac_compile) 2>conftest.er1
2477 ac_status=$?
2478 grep -v '^ *+' conftest.er1 >conftest.err
2479 rm -f conftest.er1
2480 cat conftest.err >&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); } &&
2483 { ac_try='test -z "$ac_cxx_werror_flag"
2484 || test ! -s conftest.err'
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 (eval $ac_try) 2>&5
2487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; } &&
2490 { ac_try='test -s conftest.$ac_objext'
2491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 (eval $ac_try) 2>&5
2493 ac_status=$?
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; }; then
2496 ac_cv_prog_cxx_g=yes
2497else
2498 echo "$as_me: failed program was:" >&5
2499sed 's/^/| /' conftest.$ac_ext >&5
2500
2501ac_cv_prog_cxx_g=no
2502fi
2503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2504fi
2505echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2506echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2507if test "$ac_test_CXXFLAGS" = set; then
2508 CXXFLAGS=$ac_save_CXXFLAGS
2509elif test $ac_cv_prog_cxx_g = yes; then
2510 if test "$GXX" = yes; then
2511 CXXFLAGS="-g -O2"
2512 else
2513 CXXFLAGS="-g"
2514 fi
2515else
2516 if test "$GXX" = yes; then
2517 CXXFLAGS="-O2"
2518 else
2519 CXXFLAGS=
2520 fi
2521fi
2522for ac_declaration in \
2523 '' \
2524 'extern "C" void std::exit (int) throw (); using std::exit;' \
2525 'extern "C" void std::exit (int); using std::exit;' \
2526 'extern "C" void exit (int) throw ();' \
2527 'extern "C" void exit (int);' \
2528 'void exit (int);'
2529do
2530 cat >conftest.$ac_ext <<_ACEOF
2531/* confdefs.h. */
2532_ACEOF
2533cat confdefs.h >>conftest.$ac_ext
2534cat >>conftest.$ac_ext <<_ACEOF
2535/* end confdefs.h. */
2536$ac_declaration
2537#include <stdlib.h>
2538int
2539main ()
2540{
2541exit (42);
2542 ;
2543 return 0;
2544}
2545_ACEOF
2546rm -f conftest.$ac_objext
2547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548 (eval $ac_compile) 2>conftest.er1
2549 ac_status=$?
2550 grep -v '^ *+' conftest.er1 >conftest.err
2551 rm -f conftest.er1
2552 cat conftest.err >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); } &&
2555 { ac_try='test -z "$ac_cxx_werror_flag"
2556 || test ! -s conftest.err'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 (eval $ac_try) 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; } &&
2562 { ac_try='test -s conftest.$ac_objext'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 (eval $ac_try) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; }; then
2568 :
2569else
2570 echo "$as_me: failed program was:" >&5
2571sed 's/^/| /' conftest.$ac_ext >&5
2572
2573continue
2574fi
2575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2576 cat >conftest.$ac_ext <<_ACEOF
2577/* confdefs.h. */
2578_ACEOF
2579cat confdefs.h >>conftest.$ac_ext
2580cat >>conftest.$ac_ext <<_ACEOF
2581/* end confdefs.h. */
2582$ac_declaration
2583int
2584main ()
2585{
2586exit (42);
2587 ;
2588 return 0;
2589}
2590_ACEOF
2591rm -f conftest.$ac_objext
2592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593 (eval $ac_compile) 2>conftest.er1
2594 ac_status=$?
2595 grep -v '^ *+' conftest.er1 >conftest.err
2596 rm -f conftest.er1
2597 cat conftest.err >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); } &&
2600 { ac_try='test -z "$ac_cxx_werror_flag"
2601 || test ! -s conftest.err'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 (eval $ac_try) 2>&5
2604 ac_status=$?
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; } &&
2607 { ac_try='test -s conftest.$ac_objext'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 (eval $ac_try) 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2613 break
2614else
2615 echo "$as_me: failed program was:" >&5
2616sed 's/^/| /' conftest.$ac_ext >&5
2617
2618fi
2619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2620done
2621rm -f conftest*
2622if test -n "$ac_declaration"; then
2623 echo '#ifdef __cplusplus' >>confdefs.h
2624 echo $ac_declaration >>confdefs.h
2625 echo '#endif' >>confdefs.h
2626fi
2627
2628ac_ext=c
2629ac_cpp='$CPP $CPPFLAGS'
2630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2632ac_compiler_gnu=$ac_cv_c_compiler_gnu
2633
2634if test -n "$ac_tool_prefix"; then
2635 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2636set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2637echo "$as_me:$LINENO: checking for $ac_word" >&5
2638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2639if test "${ac_cv_prog_RANLIB+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2641else
2642 if test -n "$RANLIB"; then
2643 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2644else
2645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646for as_dir in $PATH
2647do
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 break 2
2655 fi
2656done
2657done
2658
2659fi
2660fi
2661RANLIB=$ac_cv_prog_RANLIB
2662if test -n "$RANLIB"; then
2663 echo "$as_me:$LINENO: result: $RANLIB" >&5
2664echo "${ECHO_T}$RANLIB" >&6
2665else
2666 echo "$as_me:$LINENO: result: no" >&5
2667echo "${ECHO_T}no" >&6
2668fi
2669
2670fi
2671if test -z "$ac_cv_prog_RANLIB"; then
2672 ac_ct_RANLIB=$RANLIB
2673 # Extract the first word of "ranlib", so it can be a program name with args.
2674set dummy ranlib; ac_word=$2
2675echo "$as_me:$LINENO: checking for $ac_word" >&5
2676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2677if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679else
2680 if test -n "$ac_ct_RANLIB"; then
2681 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2682else
2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690 ac_cv_prog_ac_ct_RANLIB="ranlib"
2691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2693 fi
2694done
2695done
2696
2697 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2698fi
2699fi
2700ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2701if test -n "$ac_ct_RANLIB"; then
2702 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2703echo "${ECHO_T}$ac_ct_RANLIB" >&6
2704else
2705 echo "$as_me:$LINENO: result: no" >&5
2706echo "${ECHO_T}no" >&6
2707fi
2708
2709 RANLIB=$ac_ct_RANLIB
2710else
2711 RANLIB="$ac_cv_prog_RANLIB"
2712fi
2713
2714echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2715echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2716set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2717if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2719else
2720 cat >conftest.make <<\_ACEOF
2721all:
2722 @echo 'ac_maketemp="$(MAKE)"'
2723_ACEOF
2724# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2725eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2726if test -n "$ac_maketemp"; then
2727 eval ac_cv_prog_make_${ac_make}_set=yes
2728else
2729 eval ac_cv_prog_make_${ac_make}_set=no
2730fi
2731rm -f conftest.make
2732fi
2733if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2734 echo "$as_me:$LINENO: result: yes" >&5
2735echo "${ECHO_T}yes" >&6
2736 SET_MAKE=
2737else
2738 echo "$as_me:$LINENO: result: no" >&5
2739echo "${ECHO_T}no" >&6
2740 SET_MAKE="MAKE=${MAKE-make}"
2741fi
2742
2743ac_ext=cc
2744ac_cpp='$CXXCPP $CPPFLAGS'
2745ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2748
2749
2750case "`(uname -sr) 2>/dev/null`" in
2751"SunOS 5"*)
2752 SOLARIS=yes
2753 USE_MITSHM=yes
2754 USE_SUN_OVL=yes
2755 ;;
2756"Linux"*)
2757 LINUX=yes
2758 USE_MITSHM=yes
2759 ;;
2760"IRIX 6"*)
2761 X_LIBS="-L/usr/lib32"
2762 USE_MITSHM=yes
2763 USE_READDISPLAY=yes
2764 ;;
2765"LynxOS 2"*)
2766 SJLJ_EXCEPTIONS=yes
2767 ;;
2768esac
2769
2770if test "$USE_MITSHM" = yes; then
2771 MITSHM_DEFINE="-DHAVE_MITSHM"
2772fi
2773
2774
2775if test "$GCC" = yes; then
2776 CFLAGS="$CFLAGS -Wall"
2777 if test "$SOLARIS" = yes; then
2778 CFLAGS="$CFLAGS -Wno-unknown-pragmas -Wno-implicit-int"
2779 fi
2780fi
2781if test "$GXX" = yes; then
2782 CXXFLAGS="$CXXFLAGS -Wall"
2783 if test "$SOLARIS" = yes; then
2784 CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas -fpermissive"
2785 fi
2786 if test "$SJLJ_EXCEPTIONS" = yes; then
2787 CXXFLAGS="$CXXFLAGS -fsjlj-exceptions"
2788 fi
2789fi
2790
2791
2792ac_ext=cc
2793ac_cpp='$CXXCPP $CPPFLAGS'
2794ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2797echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2798echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2799if test -z "$CXXCPP"; then
2800 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2801 echo $ECHO_N "(cached) $ECHO_C" >&6
2802else
2803 # Double quotes because CXXCPP needs to be expanded
2804 for CXXCPP in "$CXX -E" "/lib/cpp"
2805 do
2806 ac_preproc_ok=false
2807for ac_cxx_preproc_warn_flag in '' yes
2808do
2809 # Use a header file that comes with gcc, so configuring glibc
2810 # with a fresh cross-compiler works.
2811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2812 # <limits.h> exists even on freestanding compilers.
2813 # On the NeXT, cc -E runs the code through the compiler's parser,
2814 # not just through cpp. "Syntax error" is here to catch this case.
2815 cat >conftest.$ac_ext <<_ACEOF
2816/* confdefs.h. */
2817_ACEOF
2818cat confdefs.h >>conftest.$ac_ext
2819cat >>conftest.$ac_ext <<_ACEOF
2820/* end confdefs.h. */
2821#ifdef __STDC__
2822# include <limits.h>
2823#else
2824# include <assert.h>
2825#endif
2826 Syntax error
2827_ACEOF
2828if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2830 ac_status=$?
2831 grep -v '^ *+' conftest.er1 >conftest.err
2832 rm -f conftest.er1
2833 cat conftest.err >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } >/dev/null; then
2836 if test -s conftest.err; then
2837 ac_cpp_err=$ac_cxx_preproc_warn_flag
2838 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2839 else
2840 ac_cpp_err=
2841 fi
2842else
2843 ac_cpp_err=yes
2844fi
2845if test -z "$ac_cpp_err"; then
2846 :
2847else
2848 echo "$as_me: failed program was:" >&5
2849sed 's/^/| /' conftest.$ac_ext >&5
2850
2851 # Broken: fails on valid input.
2852continue
2853fi
2854rm -f conftest.err conftest.$ac_ext
2855
2856 # OK, works on sane cases. Now check whether non-existent headers
2857 # can be detected and how.
2858 cat >conftest.$ac_ext <<_ACEOF
2859/* confdefs.h. */
2860_ACEOF
2861cat confdefs.h >>conftest.$ac_ext
2862cat >>conftest.$ac_ext <<_ACEOF
2863/* end confdefs.h. */
2864#include <ac_nonexistent.h>
2865_ACEOF
2866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2868 ac_status=$?
2869 grep -v '^ *+' conftest.er1 >conftest.err
2870 rm -f conftest.er1
2871 cat conftest.err >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); } >/dev/null; then
2874 if test -s conftest.err; then
2875 ac_cpp_err=$ac_cxx_preproc_warn_flag
2876 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2877 else
2878 ac_cpp_err=
2879 fi
2880else
2881 ac_cpp_err=yes
2882fi
2883if test -z "$ac_cpp_err"; then
2884 # Broken: success on invalid input.
2885continue
2886else
2887 echo "$as_me: failed program was:" >&5
2888sed 's/^/| /' conftest.$ac_ext >&5
2889
2890 # Passes both tests.
2891ac_preproc_ok=:
2892break
2893fi
2894rm -f conftest.err conftest.$ac_ext
2895
2896done
2897# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2898rm -f conftest.err conftest.$ac_ext
2899if $ac_preproc_ok; then
2900 break
2901fi
2902
2903 done
2904 ac_cv_prog_CXXCPP=$CXXCPP
2905
2906fi
2907 CXXCPP=$ac_cv_prog_CXXCPP
2908else
2909 ac_cv_prog_CXXCPP=$CXXCPP
2910fi
2911echo "$as_me:$LINENO: result: $CXXCPP" >&5
2912echo "${ECHO_T}$CXXCPP" >&6
2913ac_preproc_ok=false
2914for ac_cxx_preproc_warn_flag in '' yes
2915do
2916 # Use a header file that comes with gcc, so configuring glibc
2917 # with a fresh cross-compiler works.
2918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2919 # <limits.h> exists even on freestanding compilers.
2920 # On the NeXT, cc -E runs the code through the compiler's parser,
2921 # not just through cpp. "Syntax error" is here to catch this case.
2922 cat >conftest.$ac_ext <<_ACEOF
2923/* confdefs.h. */
2924_ACEOF
2925cat confdefs.h >>conftest.$ac_ext
2926cat >>conftest.$ac_ext <<_ACEOF
2927/* end confdefs.h. */
2928#ifdef __STDC__
2929# include <limits.h>
2930#else
2931# include <assert.h>
2932#endif
2933 Syntax error
2934_ACEOF
2935if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2937 ac_status=$?
2938 grep -v '^ *+' conftest.er1 >conftest.err
2939 rm -f conftest.er1
2940 cat conftest.err >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } >/dev/null; then
2943 if test -s conftest.err; then
2944 ac_cpp_err=$ac_cxx_preproc_warn_flag
2945 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2946 else
2947 ac_cpp_err=
2948 fi
2949else
2950 ac_cpp_err=yes
2951fi
2952if test -z "$ac_cpp_err"; then
2953 :
2954else
2955 echo "$as_me: failed program was:" >&5
2956sed 's/^/| /' conftest.$ac_ext >&5
2957
2958 # Broken: fails on valid input.
2959continue
2960fi
2961rm -f conftest.err conftest.$ac_ext
2962
2963 # OK, works on sane cases. Now check whether non-existent headers
2964 # can be detected and how.
2965 cat >conftest.$ac_ext <<_ACEOF
2966/* confdefs.h. */
2967_ACEOF
2968cat confdefs.h >>conftest.$ac_ext
2969cat >>conftest.$ac_ext <<_ACEOF
2970/* end confdefs.h. */
2971#include <ac_nonexistent.h>
2972_ACEOF
2973if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2975 ac_status=$?
2976 grep -v '^ *+' conftest.er1 >conftest.err
2977 rm -f conftest.er1
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } >/dev/null; then
2981 if test -s conftest.err; then
2982 ac_cpp_err=$ac_cxx_preproc_warn_flag
2983 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2984 else
2985 ac_cpp_err=
2986 fi
2987else
2988 ac_cpp_err=yes
2989fi
2990if test -z "$ac_cpp_err"; then
2991 # Broken: success on invalid input.
2992continue
2993else
2994 echo "$as_me: failed program was:" >&5
2995sed 's/^/| /' conftest.$ac_ext >&5
2996
2997 # Passes both tests.
2998ac_preproc_ok=:
2999break
3000fi
3001rm -f conftest.err conftest.$ac_ext
3002
3003done
3004# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3005rm -f conftest.err conftest.$ac_ext
3006if $ac_preproc_ok; then
3007 :
3008else
3009 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3010See \`config.log' for more details." >&5
3011echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3012See \`config.log' for more details." >&2;}
3013 { (exit 1); exit 1; }; }
3014fi
3015
3016ac_ext=cc
3017ac_cpp='$CXXCPP $CPPFLAGS'
3018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3021
3022
3023echo "$as_me:$LINENO: checking for X" >&5
3024echo $ECHO_N "checking for X... $ECHO_C" >&6
3025
3026
3027# Check whether --with-x or --without-x was given.
3028if test "${with_x+set}" = set; then
3029 withval="$with_x"
3030
3031fi;
3032# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3033if test "x$with_x" = xno; then
3034 # The user explicitly disabled X.
3035 have_x=disabled
3036else
3037 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3038 # Both variables are already set.
3039 have_x=yes
3040 else
3041 if test "${ac_cv_have_x+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3043else
3044 # One or both of the vars are not set, and there is no cached value.
3045ac_x_includes=no ac_x_libraries=no
3046rm -fr conftest.dir
3047if mkdir conftest.dir; then
3048 cd conftest.dir
3049 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3050 cat >Imakefile <<'_ACEOF'
3051acfindx:
3052 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3053_ACEOF
3054 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3055 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3056 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3057 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3058 for ac_extension in a so sl; do
3059 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3060 test -f $ac_im_libdir/libX11.$ac_extension; then
3061 ac_im_usrlibdir=$ac_im_libdir; break
3062 fi
3063 done
3064 # Screen out bogus values from the imake configuration. They are
3065 # bogus both because they are the default anyway, and because
3066 # using them would break gcc on systems where it needs fixed includes.
3067 case $ac_im_incroot in
3068 /usr/include) ;;
3069 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3070 esac
3071 case $ac_im_usrlibdir in
3072 /usr/lib | /lib) ;;
3073 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3074 esac
3075 fi
3076 cd ..
3077 rm -fr conftest.dir
3078fi
3079
3080# Standard set of common directories for X headers.
3081# Check X11 before X11Rn because it is often a symlink to the current release.
3082ac_x_header_dirs='
3083/usr/X11/include
3084/usr/X11R6/include
3085/usr/X11R5/include
3086/usr/X11R4/include
3087
3088/usr/include/X11
3089/usr/include/X11R6
3090/usr/include/X11R5
3091/usr/include/X11R4
3092
3093/usr/local/X11/include
3094/usr/local/X11R6/include
3095/usr/local/X11R5/include
3096/usr/local/X11R4/include
3097
3098/usr/local/include/X11
3099/usr/local/include/X11R6
3100/usr/local/include/X11R5
3101/usr/local/include/X11R4
3102
3103/usr/X386/include
3104/usr/x386/include
3105/usr/XFree86/include/X11
3106
3107/usr/include
3108/usr/local/include
3109/usr/unsupported/include
3110/usr/athena/include
3111/usr/local/x11r5/include
3112/usr/lpp/Xamples/include
3113
3114/usr/openwin/include
3115/usr/openwin/share/include'
3116
3117if test "$ac_x_includes" = no; then
3118 # Guess where to find include files, by looking for Intrinsic.h.
3119 # First, try using that file with no special directory specified.
3120 cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h. */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h. */
3126#include <X11/Intrinsic.h>
3127_ACEOF
3128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3130 ac_status=$?
3131 grep -v '^ *+' conftest.er1 >conftest.err
3132 rm -f conftest.er1
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } >/dev/null; then
3136 if test -s conftest.err; then
3137 ac_cpp_err=$ac_cxx_preproc_warn_flag
3138 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3139 else
3140 ac_cpp_err=
3141 fi
3142else
3143 ac_cpp_err=yes
3144fi
3145if test -z "$ac_cpp_err"; then
3146 # We can compile using X headers with no special include directory.
3147ac_x_includes=
3148else
3149 echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
3152 for ac_dir in $ac_x_header_dirs; do
3153 if test -r "$ac_dir/X11/Intrinsic.h"; then
3154 ac_x_includes=$ac_dir
3155 break
3156 fi
3157done
3158fi
3159rm -f conftest.err conftest.$ac_ext
3160fi # $ac_x_includes = no
3161
3162if test "$ac_x_libraries" = no; then
3163 # Check for the libraries.
3164 # See if we find them without any special options.
3165 # Don't add to $LIBS permanently.
3166 ac_save_LIBS=$LIBS
3167 LIBS="-lXt $LIBS"
3168 cat >conftest.$ac_ext <<_ACEOF
3169/* confdefs.h. */
3170_ACEOF
3171cat confdefs.h >>conftest.$ac_ext
3172cat >>conftest.$ac_ext <<_ACEOF
3173/* end confdefs.h. */
3174#include <X11/Intrinsic.h>
3175int
3176main ()
3177{
3178XtMalloc (0)
3179 ;
3180 return 0;
3181}
3182_ACEOF
3183rm -f conftest.$ac_objext conftest$ac_exeext
3184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3185 (eval $ac_link) 2>conftest.er1
3186 ac_status=$?
3187 grep -v '^ *+' conftest.er1 >conftest.err
3188 rm -f conftest.er1
3189 cat conftest.err >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } &&
3192 { ac_try='test -z "$ac_cxx_werror_flag"
3193 || test ! -s conftest.err'
3194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195 (eval $ac_try) 2>&5
3196 ac_status=$?
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; } &&
3199 { ac_try='test -s conftest$ac_exeext'
3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201 (eval $ac_try) 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; }; then
3205 LIBS=$ac_save_LIBS
3206# We can link X programs with no special library path.
3207ac_x_libraries=
3208else
3209 echo "$as_me: failed program was:" >&5
3210sed 's/^/| /' conftest.$ac_ext >&5
3211
3212LIBS=$ac_save_LIBS
3213for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3214do
3215 # Don't even attempt the hair of trying to link an X program!
3216 for ac_extension in a so sl; do
3217 if test -r $ac_dir/libXt.$ac_extension; then
3218 ac_x_libraries=$ac_dir
3219 break 2
3220 fi
3221 done
3222done
3223fi
3224rm -f conftest.err conftest.$ac_objext \
3225 conftest$ac_exeext conftest.$ac_ext
3226fi # $ac_x_libraries = no
3227
3228if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3229 # Didn't find X anywhere. Cache the known absence of X.
3230 ac_cv_have_x="have_x=no"
3231else
3232 # Record where we found X for the cache.
3233 ac_cv_have_x="have_x=yes \
3234 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3235fi
3236fi
3237
3238 fi
3239 eval "$ac_cv_have_x"
3240fi # $with_x != no
3241
3242if test "$have_x" != yes; then
3243 echo "$as_me:$LINENO: result: $have_x" >&5
3244echo "${ECHO_T}$have_x" >&6
3245 no_x=yes
3246else
3247 # If each of the values was on the command line, it overrides each guess.
3248 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3249 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3250 # Update the cache value to reflect the command line values.
3251 ac_cv_have_x="have_x=yes \
3252 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3253 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3254echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3255fi
3256
3257if test "$no_x" = yes; then
3258 # Not all programs may use this symbol, but it does not hurt to define it.
3259
3260cat >>confdefs.h <<\_ACEOF
3261#define X_DISPLAY_MISSING 1
3262_ACEOF
3263
3264 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3265else
3266 if test -n "$x_includes"; then
3267 X_CFLAGS="$X_CFLAGS -I$x_includes"
3268 fi
3269
3270 # It would also be nice to do this for all -L options, not just this one.
3271 if test -n "$x_libraries"; then
3272 X_LIBS="$X_LIBS -L$x_libraries"
3273 # For Solaris; some versions of Sun CC require a space after -R and
3274 # others require no space. Words are not sufficient . . . .
3275 case `(uname -sr) 2>/dev/null` in
3276 "SunOS 5"*)
3277 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3278echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3279 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3280 cat >conftest.$ac_ext <<_ACEOF
3281/* confdefs.h. */
3282_ACEOF
3283cat confdefs.h >>conftest.$ac_ext
3284cat >>conftest.$ac_ext <<_ACEOF
3285/* end confdefs.h. */
3286
3287int
3288main ()
3289{
3290
3291 ;
3292 return 0;
3293}
3294_ACEOF
3295rm -f conftest.$ac_objext conftest$ac_exeext
3296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3297 (eval $ac_link) 2>conftest.er1
3298 ac_status=$?
3299 grep -v '^ *+' conftest.er1 >conftest.err
3300 rm -f conftest.er1
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } &&
3304 { ac_try='test -z "$ac_cxx_werror_flag"
3305 || test ! -s conftest.err'
3306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307 (eval $ac_try) 2>&5
3308 ac_status=$?
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; } &&
3311 { ac_try='test -s conftest$ac_exeext'
3312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 (eval $ac_try) 2>&5
3314 ac_status=$?
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; }; then
3317 ac_R_nospace=yes
3318else
3319 echo "$as_me: failed program was:" >&5
3320sed 's/^/| /' conftest.$ac_ext >&5
3321
3322ac_R_nospace=no
3323fi
3324rm -f conftest.err conftest.$ac_objext \
3325 conftest$ac_exeext conftest.$ac_ext
3326 if test $ac_R_nospace = yes; then
3327 echo "$as_me:$LINENO: result: no" >&5
3328echo "${ECHO_T}no" >&6
3329 X_LIBS="$X_LIBS -R$x_libraries"
3330 else
3331 LIBS="$ac_xsave_LIBS -R $x_libraries"
3332 cat >conftest.$ac_ext <<_ACEOF
3333/* confdefs.h. */
3334_ACEOF
3335cat confdefs.h >>conftest.$ac_ext
3336cat >>conftest.$ac_ext <<_ACEOF
3337/* end confdefs.h. */
3338
3339int
3340main ()
3341{
3342
3343 ;
3344 return 0;
3345}
3346_ACEOF
3347rm -f conftest.$ac_objext conftest$ac_exeext
3348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3349 (eval $ac_link) 2>conftest.er1
3350 ac_status=$?
3351 grep -v '^ *+' conftest.er1 >conftest.err
3352 rm -f conftest.er1
3353 cat conftest.err >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); } &&
3356 { ac_try='test -z "$ac_cxx_werror_flag"
3357 || test ! -s conftest.err'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 (eval $ac_try) 2>&5
3360 ac_status=$?
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; } &&
3363 { ac_try='test -s conftest$ac_exeext'
3364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365 (eval $ac_try) 2>&5
3366 ac_status=$?
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); }; }; then
3369 ac_R_space=yes
3370else
3371 echo "$as_me: failed program was:" >&5
3372sed 's/^/| /' conftest.$ac_ext >&5
3373
3374ac_R_space=no
3375fi
3376rm -f conftest.err conftest.$ac_objext \
3377 conftest$ac_exeext conftest.$ac_ext
3378 if test $ac_R_space = yes; then
3379 echo "$as_me:$LINENO: result: yes" >&5
3380echo "${ECHO_T}yes" >&6
3381 X_LIBS="$X_LIBS -R $x_libraries"
3382 else
3383 echo "$as_me:$LINENO: result: neither works" >&5
3384echo "${ECHO_T}neither works" >&6
3385 fi
3386 fi
3387 LIBS=$ac_xsave_LIBS
3388 esac
3389 fi
3390
3391 # Check for system-dependent libraries X programs must link with.
3392 # Do this before checking for the system-independent R6 libraries
3393 # (-lICE), since we may need -lsocket or whatever for X linking.
3394
3395 if test "$ISC" = yes; then
3396 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3397 else
3398 # Martyn Johnson says this is needed for Ultrix, if the X
3399 # libraries were built with DECnet support. And Karl Berry says
3400 # the Alpha needs dnet_stub (dnet does not exist).
3401 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3402 cat >conftest.$ac_ext <<_ACEOF
3403/* confdefs.h. */
3404_ACEOF
3405cat confdefs.h >>conftest.$ac_ext
3406cat >>conftest.$ac_ext <<_ACEOF
3407/* end confdefs.h. */
3408
3409/* Override any gcc2 internal prototype to avoid an error. */
3410#ifdef __cplusplus
3411extern "C"
3412#endif
3413/* We use char because int might match the return type of a gcc2
3414 builtin and then its argument prototype would still apply. */
3415char XOpenDisplay ();
3416int
3417main ()
3418{
3419XOpenDisplay ();
3420 ;
3421 return 0;
3422}
3423_ACEOF
3424rm -f conftest.$ac_objext conftest$ac_exeext
3425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3426 (eval $ac_link) 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -z "$ac_cxx_werror_flag"
3434 || test ! -s conftest.err'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; } &&
3440 { ac_try='test -s conftest$ac_exeext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 :
3447else
3448 echo "$as_me: failed program was:" >&5
3449sed 's/^/| /' conftest.$ac_ext >&5
3450
3451echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3452echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3453if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3455else
3456 ac_check_lib_save_LIBS=$LIBS
3457LIBS="-ldnet $LIBS"
3458cat >conftest.$ac_ext <<_ACEOF
3459/* confdefs.h. */
3460_ACEOF
3461cat confdefs.h >>conftest.$ac_ext
3462cat >>conftest.$ac_ext <<_ACEOF
3463/* end confdefs.h. */
3464
3465/* Override any gcc2 internal prototype to avoid an error. */
3466#ifdef __cplusplus
3467extern "C"
3468#endif
3469/* We use char because int might match the return type of a gcc2
3470 builtin and then its argument prototype would still apply. */
3471char dnet_ntoa ();
3472int
3473main ()
3474{
3475dnet_ntoa ();
3476 ;
3477 return 0;
3478}
3479_ACEOF
3480rm -f conftest.$ac_objext conftest$ac_exeext
3481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3482 (eval $ac_link) 2>conftest.er1
3483 ac_status=$?
3484 grep -v '^ *+' conftest.er1 >conftest.err
3485 rm -f conftest.er1
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
3489 { ac_try='test -z "$ac_cxx_werror_flag"
3490 || test ! -s conftest.err'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 (eval $ac_try) 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; } &&
3496 { ac_try='test -s conftest$ac_exeext'
3497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 (eval $ac_try) 2>&5
3499 ac_status=$?
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; }; then
3502 ac_cv_lib_dnet_dnet_ntoa=yes
3503else
3504 echo "$as_me: failed program was:" >&5
3505sed 's/^/| /' conftest.$ac_ext >&5
3506
3507ac_cv_lib_dnet_dnet_ntoa=no
3508fi
3509rm -f conftest.err conftest.$ac_objext \
3510 conftest$ac_exeext conftest.$ac_ext
3511LIBS=$ac_check_lib_save_LIBS
3512fi
3513echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3514echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3515if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3516 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3517fi
3518
3519 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3520 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3521echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3522if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3524else
3525 ac_check_lib_save_LIBS=$LIBS
3526LIBS="-ldnet_stub $LIBS"
3527cat >conftest.$ac_ext <<_ACEOF
3528/* confdefs.h. */
3529_ACEOF
3530cat confdefs.h >>conftest.$ac_ext
3531cat >>conftest.$ac_ext <<_ACEOF
3532/* end confdefs.h. */
3533
3534/* Override any gcc2 internal prototype to avoid an error. */
3535#ifdef __cplusplus
3536extern "C"
3537#endif
3538/* We use char because int might match the return type of a gcc2
3539 builtin and then its argument prototype would still apply. */
3540char dnet_ntoa ();
3541int
3542main ()
3543{
3544dnet_ntoa ();
3545 ;
3546 return 0;
3547}
3548_ACEOF
3549rm -f conftest.$ac_objext conftest$ac_exeext
3550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3551 (eval $ac_link) 2>conftest.er1
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } &&
3558 { ac_try='test -z "$ac_cxx_werror_flag"
3559 || test ! -s conftest.err'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 (eval $ac_try) 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; } &&
3565 { ac_try='test -s conftest$ac_exeext'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 (eval $ac_try) 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3571 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3572else
3573 echo "$as_me: failed program was:" >&5
3574sed 's/^/| /' conftest.$ac_ext >&5
3575
3576ac_cv_lib_dnet_stub_dnet_ntoa=no
3577fi
3578rm -f conftest.err conftest.$ac_objext \
3579 conftest$ac_exeext conftest.$ac_ext
3580LIBS=$ac_check_lib_save_LIBS
3581fi
3582echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3583echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3584if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3585 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3586fi
3587
3588 fi
3589fi
3590rm -f conftest.err conftest.$ac_objext \
3591 conftest$ac_exeext conftest.$ac_ext
3592 LIBS="$ac_xsave_LIBS"
3593
3594 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3595 # to get the SysV transport functions.
3596 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3597 # needs -lnsl.
3598 # The nsl library prevents programs from opening the X display
3599 # on Irix 5.2, according to T.E. Dickey.
3600 # The functions gethostbyname, getservbyname, and inet_addr are
3601 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3602 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3603echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3604if test "${ac_cv_func_gethostbyname+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3606else
3607 cat >conftest.$ac_ext <<_ACEOF
3608/* confdefs.h. */
3609_ACEOF
3610cat confdefs.h >>conftest.$ac_ext
3611cat >>conftest.$ac_ext <<_ACEOF
3612/* end confdefs.h. */
3613/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3615#define gethostbyname innocuous_gethostbyname
3616
3617/* System header to define __stub macros and hopefully few prototypes,
3618 which can conflict with char gethostbyname (); below.
3619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3620 <limits.h> exists even on freestanding compilers. */
3621
3622#ifdef __STDC__
3623# include <limits.h>
3624#else
3625# include <assert.h>
3626#endif
3627
3628#undef gethostbyname
3629
3630/* Override any gcc2 internal prototype to avoid an error. */
3631#ifdef __cplusplus
3632extern "C"
3633{
3634#endif
3635/* We use char because int might match the return type of a gcc2
3636 builtin and then its argument prototype would still apply. */
3637char gethostbyname ();
3638/* The GNU C library defines this for functions which it implements
3639 to always fail with ENOSYS. Some functions are actually named
3640 something starting with __ and the normal name is an alias. */
3641#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3642choke me
3643#else
3644char (*f) () = gethostbyname;
3645#endif
3646#ifdef __cplusplus
3647}
3648#endif
3649
3650int
3651main ()
3652{
3653return f != gethostbyname;
3654 ;
3655 return 0;
3656}
3657_ACEOF
3658rm -f conftest.$ac_objext conftest$ac_exeext
3659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3660 (eval $ac_link) 2>conftest.er1
3661 ac_status=$?
3662 grep -v '^ *+' conftest.er1 >conftest.err
3663 rm -f conftest.er1
3664 cat conftest.err >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } &&
3667 { ac_try='test -z "$ac_cxx_werror_flag"
3668 || test ! -s conftest.err'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 (eval $ac_try) 2>&5
3671 ac_status=$?
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; } &&
3674 { ac_try='test -s conftest$ac_exeext'
3675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676 (eval $ac_try) 2>&5
3677 ac_status=$?
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; }; then
3680 ac_cv_func_gethostbyname=yes
3681else
3682 echo "$as_me: failed program was:" >&5
3683sed 's/^/| /' conftest.$ac_ext >&5
3684
3685ac_cv_func_gethostbyname=no
3686fi
3687rm -f conftest.err conftest.$ac_objext \
3688 conftest$ac_exeext conftest.$ac_ext
3689fi
3690echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3691echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3692
3693 if test $ac_cv_func_gethostbyname = no; then
3694 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3695echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3696if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698else
3699 ac_check_lib_save_LIBS=$LIBS
3700LIBS="-lnsl $LIBS"
3701cat >conftest.$ac_ext <<_ACEOF
3702/* confdefs.h. */
3703_ACEOF
3704cat confdefs.h >>conftest.$ac_ext
3705cat >>conftest.$ac_ext <<_ACEOF
3706/* end confdefs.h. */
3707
3708/* Override any gcc2 internal prototype to avoid an error. */
3709#ifdef __cplusplus
3710extern "C"
3711#endif
3712/* We use char because int might match the return type of a gcc2
3713 builtin and then its argument prototype would still apply. */
3714char gethostbyname ();
3715int
3716main ()
3717{
3718gethostbyname ();
3719 ;
3720 return 0;
3721}
3722_ACEOF
3723rm -f conftest.$ac_objext conftest$ac_exeext
3724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3725 (eval $ac_link) 2>conftest.er1
3726 ac_status=$?
3727 grep -v '^ *+' conftest.er1 >conftest.err
3728 rm -f conftest.er1
3729 cat conftest.err >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } &&
3732 { ac_try='test -z "$ac_cxx_werror_flag"
3733 || test ! -s conftest.err'
3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 (eval $ac_try) 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; } &&
3739 { ac_try='test -s conftest$ac_exeext'
3740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741 (eval $ac_try) 2>&5
3742 ac_status=$?
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }; }; then
3745 ac_cv_lib_nsl_gethostbyname=yes
3746else
3747 echo "$as_me: failed program was:" >&5
3748sed 's/^/| /' conftest.$ac_ext >&5
3749
3750ac_cv_lib_nsl_gethostbyname=no
3751fi
3752rm -f conftest.err conftest.$ac_objext \
3753 conftest$ac_exeext conftest.$ac_ext
3754LIBS=$ac_check_lib_save_LIBS
3755fi
3756echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3757echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3758if test $ac_cv_lib_nsl_gethostbyname = yes; then
3759 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3760fi
3761
3762 if test $ac_cv_lib_nsl_gethostbyname = no; then
3763 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3764echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3765if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767else
3768 ac_check_lib_save_LIBS=$LIBS
3769LIBS="-lbsd $LIBS"
3770cat >conftest.$ac_ext <<_ACEOF
3771/* confdefs.h. */
3772_ACEOF
3773cat confdefs.h >>conftest.$ac_ext
3774cat >>conftest.$ac_ext <<_ACEOF
3775/* end confdefs.h. */
3776
3777/* Override any gcc2 internal prototype to avoid an error. */
3778#ifdef __cplusplus
3779extern "C"
3780#endif
3781/* We use char because int might match the return type of a gcc2
3782 builtin and then its argument prototype would still apply. */
3783char gethostbyname ();
3784int
3785main ()
3786{
3787gethostbyname ();
3788 ;
3789 return 0;
3790}
3791_ACEOF
3792rm -f conftest.$ac_objext conftest$ac_exeext
3793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3794 (eval $ac_link) 2>conftest.er1
3795 ac_status=$?
3796 grep -v '^ *+' conftest.er1 >conftest.err
3797 rm -f conftest.er1
3798 cat conftest.err >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } &&
3801 { ac_try='test -z "$ac_cxx_werror_flag"
3802 || test ! -s conftest.err'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 (eval $ac_try) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; } &&
3808 { ac_try='test -s conftest$ac_exeext'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 (eval $ac_try) 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; }; then
3814 ac_cv_lib_bsd_gethostbyname=yes
3815else
3816 echo "$as_me: failed program was:" >&5
3817sed 's/^/| /' conftest.$ac_ext >&5
3818
3819ac_cv_lib_bsd_gethostbyname=no
3820fi
3821rm -f conftest.err conftest.$ac_objext \
3822 conftest$ac_exeext conftest.$ac_ext
3823LIBS=$ac_check_lib_save_LIBS
3824fi
3825echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3826echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3827if test $ac_cv_lib_bsd_gethostbyname = yes; then
3828 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3829fi
3830
3831 fi
3832 fi
3833
3834 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3835 # socket/setsockopt and other routines are undefined under SCO ODT
3836 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3837 # on later versions), says Simon Leinen: it contains gethostby*
3838 # variants that don't use the name server (or something). -lsocket
3839 # must be given before -lnsl if both are needed. We assume that
3840 # if connect needs -lnsl, so does gethostbyname.
3841 echo "$as_me:$LINENO: checking for connect" >&5
3842echo $ECHO_N "checking for connect... $ECHO_C" >&6
3843if test "${ac_cv_func_connect+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3845else
3846 cat >conftest.$ac_ext <<_ACEOF
3847/* confdefs.h. */
3848_ACEOF
3849cat confdefs.h >>conftest.$ac_ext
3850cat >>conftest.$ac_ext <<_ACEOF
3851/* end confdefs.h. */
3852/* Define connect to an innocuous variant, in case <limits.h> declares connect.
3853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3854#define connect innocuous_connect
3855
3856/* System header to define __stub macros and hopefully few prototypes,
3857 which can conflict with char connect (); below.
3858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3859 <limits.h> exists even on freestanding compilers. */
3860
3861#ifdef __STDC__
3862# include <limits.h>
3863#else
3864# include <assert.h>
3865#endif
3866
3867#undef connect
3868
3869/* Override any gcc2 internal prototype to avoid an error. */
3870#ifdef __cplusplus
3871extern "C"
3872{
3873#endif
3874/* We use char because int might match the return type of a gcc2
3875 builtin and then its argument prototype would still apply. */
3876char connect ();
3877/* The GNU C library defines this for functions which it implements
3878 to always fail with ENOSYS. Some functions are actually named
3879 something starting with __ and the normal name is an alias. */
3880#if defined (__stub_connect) || defined (__stub___connect)
3881choke me
3882#else
3883char (*f) () = connect;
3884#endif
3885#ifdef __cplusplus
3886}
3887#endif
3888
3889int
3890main ()
3891{
3892return f != connect;
3893 ;
3894 return 0;
3895}
3896_ACEOF
3897rm -f conftest.$ac_objext conftest$ac_exeext
3898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3899 (eval $ac_link) 2>conftest.er1
3900 ac_status=$?
3901 grep -v '^ *+' conftest.er1 >conftest.err
3902 rm -f conftest.er1
3903 cat conftest.err >&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); } &&
3906 { ac_try='test -z "$ac_cxx_werror_flag"
3907 || test ! -s conftest.err'
3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909 (eval $ac_try) 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; } &&
3913 { ac_try='test -s conftest$ac_exeext'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 (eval $ac_try) 2>&5
3916 ac_status=$?
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; }; then
3919 ac_cv_func_connect=yes
3920else
3921 echo "$as_me: failed program was:" >&5
3922sed 's/^/| /' conftest.$ac_ext >&5
3923
3924ac_cv_func_connect=no
3925fi
3926rm -f conftest.err conftest.$ac_objext \
3927 conftest$ac_exeext conftest.$ac_ext
3928fi
3929echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3930echo "${ECHO_T}$ac_cv_func_connect" >&6
3931
3932 if test $ac_cv_func_connect = no; then
3933 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3934echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3935if test "${ac_cv_lib_socket_connect+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3937else
3938 ac_check_lib_save_LIBS=$LIBS
3939LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3940cat >conftest.$ac_ext <<_ACEOF
3941/* confdefs.h. */
3942_ACEOF
3943cat confdefs.h >>conftest.$ac_ext
3944cat >>conftest.$ac_ext <<_ACEOF
3945/* end confdefs.h. */
3946
3947/* Override any gcc2 internal prototype to avoid an error. */
3948#ifdef __cplusplus
3949extern "C"
3950#endif
3951/* We use char because int might match the return type of a gcc2
3952 builtin and then its argument prototype would still apply. */
3953char connect ();
3954int
3955main ()
3956{
3957connect ();
3958 ;
3959 return 0;
3960}
3961_ACEOF
3962rm -f conftest.$ac_objext conftest$ac_exeext
3963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3964 (eval $ac_link) 2>conftest.er1
3965 ac_status=$?
3966 grep -v '^ *+' conftest.er1 >conftest.err
3967 rm -f conftest.er1
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } &&
3971 { ac_try='test -z "$ac_cxx_werror_flag"
3972 || test ! -s conftest.err'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 (eval $ac_try) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; } &&
3978 { ac_try='test -s conftest$ac_exeext'
3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 (eval $ac_try) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; }; then
3984 ac_cv_lib_socket_connect=yes
3985else
3986 echo "$as_me: failed program was:" >&5
3987sed 's/^/| /' conftest.$ac_ext >&5
3988
3989ac_cv_lib_socket_connect=no
3990fi
3991rm -f conftest.err conftest.$ac_objext \
3992 conftest$ac_exeext conftest.$ac_ext
3993LIBS=$ac_check_lib_save_LIBS
3994fi
3995echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3996echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3997if test $ac_cv_lib_socket_connect = yes; then
3998 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3999fi
4000
4001 fi
4002
4003 # Guillermo Gomez says -lposix is necessary on A/UX.
4004 echo "$as_me:$LINENO: checking for remove" >&5
4005echo $ECHO_N "checking for remove... $ECHO_C" >&6
4006if test "${ac_cv_func_remove+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008else
4009 cat >conftest.$ac_ext <<_ACEOF
4010/* confdefs.h. */
4011_ACEOF
4012cat confdefs.h >>conftest.$ac_ext
4013cat >>conftest.$ac_ext <<_ACEOF
4014/* end confdefs.h. */
4015/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4017#define remove innocuous_remove
4018
4019/* System header to define __stub macros and hopefully few prototypes,
4020 which can conflict with char remove (); below.
4021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4022 <limits.h> exists even on freestanding compilers. */
4023
4024#ifdef __STDC__
4025# include <limits.h>
4026#else
4027# include <assert.h>
4028#endif
4029
4030#undef remove
4031
4032/* Override any gcc2 internal prototype to avoid an error. */
4033#ifdef __cplusplus
4034extern "C"
4035{
4036#endif
4037/* We use char because int might match the return type of a gcc2
4038 builtin and then its argument prototype would still apply. */
4039char remove ();
4040/* The GNU C library defines this for functions which it implements
4041 to always fail with ENOSYS. Some functions are actually named
4042 something starting with __ and the normal name is an alias. */
4043#if defined (__stub_remove) || defined (__stub___remove)
4044choke me
4045#else
4046char (*f) () = remove;
4047#endif
4048#ifdef __cplusplus
4049}
4050#endif
4051
4052int
4053main ()
4054{
4055return f != remove;
4056 ;
4057 return 0;
4058}
4059_ACEOF
4060rm -f conftest.$ac_objext conftest$ac_exeext
4061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4062 (eval $ac_link) 2>conftest.er1
4063 ac_status=$?
4064 grep -v '^ *+' conftest.er1 >conftest.err
4065 rm -f conftest.er1
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } &&
4069 { ac_try='test -z "$ac_cxx_werror_flag"
4070 || test ! -s conftest.err'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 (eval $ac_try) 2>&5
4073 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; } &&
4076 { ac_try='test -s conftest$ac_exeext'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 (eval $ac_try) 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; }; then
4082 ac_cv_func_remove=yes
4083else
4084 echo "$as_me: failed program was:" >&5
4085sed 's/^/| /' conftest.$ac_ext >&5
4086
4087ac_cv_func_remove=no
4088fi
4089rm -f conftest.err conftest.$ac_objext \
4090 conftest$ac_exeext conftest.$ac_ext
4091fi
4092echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4093echo "${ECHO_T}$ac_cv_func_remove" >&6
4094
4095 if test $ac_cv_func_remove = no; then
4096 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4097echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4098if test "${ac_cv_lib_posix_remove+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4100else
4101 ac_check_lib_save_LIBS=$LIBS
4102LIBS="-lposix $LIBS"
4103cat >conftest.$ac_ext <<_ACEOF
4104/* confdefs.h. */
4105_ACEOF
4106cat confdefs.h >>conftest.$ac_ext
4107cat >>conftest.$ac_ext <<_ACEOF
4108/* end confdefs.h. */
4109
4110/* Override any gcc2 internal prototype to avoid an error. */
4111#ifdef __cplusplus
4112extern "C"
4113#endif
4114/* We use char because int might match the return type of a gcc2
4115 builtin and then its argument prototype would still apply. */
4116char remove ();
4117int
4118main ()
4119{
4120remove ();
4121 ;
4122 return 0;
4123}
4124_ACEOF
4125rm -f conftest.$ac_objext conftest$ac_exeext
4126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4127 (eval $ac_link) 2>conftest.er1
4128 ac_status=$?
4129 grep -v '^ *+' conftest.er1 >conftest.err
4130 rm -f conftest.er1
4131 cat conftest.err >&5
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); } &&
4134 { ac_try='test -z "$ac_cxx_werror_flag"
4135 || test ! -s conftest.err'
4136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137 (eval $ac_try) 2>&5
4138 ac_status=$?
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; } &&
4141 { ac_try='test -s conftest$ac_exeext'
4142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143 (eval $ac_try) 2>&5
4144 ac_status=$?
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; }; then
4147 ac_cv_lib_posix_remove=yes
4148else
4149 echo "$as_me: failed program was:" >&5
4150sed 's/^/| /' conftest.$ac_ext >&5
4151
4152ac_cv_lib_posix_remove=no
4153fi
4154rm -f conftest.err conftest.$ac_objext \
4155 conftest$ac_exeext conftest.$ac_ext
4156LIBS=$ac_check_lib_save_LIBS
4157fi
4158echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4159echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4160if test $ac_cv_lib_posix_remove = yes; then
4161 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4162fi
4163
4164 fi
4165
4166 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4167 echo "$as_me:$LINENO: checking for shmat" >&5
4168echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4169if test "${ac_cv_func_shmat+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171else
4172 cat >conftest.$ac_ext <<_ACEOF
4173/* confdefs.h. */
4174_ACEOF
4175cat confdefs.h >>conftest.$ac_ext
4176cat >>conftest.$ac_ext <<_ACEOF
4177/* end confdefs.h. */
4178/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4180#define shmat innocuous_shmat
4181
4182/* System header to define __stub macros and hopefully few prototypes,
4183 which can conflict with char shmat (); below.
4184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4185 <limits.h> exists even on freestanding compilers. */
4186
4187#ifdef __STDC__
4188# include <limits.h>
4189#else
4190# include <assert.h>
4191#endif
4192
4193#undef shmat
4194
4195/* Override any gcc2 internal prototype to avoid an error. */
4196#ifdef __cplusplus
4197extern "C"
4198{
4199#endif
4200/* We use char because int might match the return type of a gcc2
4201 builtin and then its argument prototype would still apply. */
4202char shmat ();
4203/* The GNU C library defines this for functions which it implements
4204 to always fail with ENOSYS. Some functions are actually named
4205 something starting with __ and the normal name is an alias. */
4206#if defined (__stub_shmat) || defined (__stub___shmat)
4207choke me
4208#else
4209char (*f) () = shmat;
4210#endif
4211#ifdef __cplusplus
4212}
4213#endif
4214
4215int
4216main ()
4217{
4218return f != shmat;
4219 ;
4220 return 0;
4221}
4222_ACEOF
4223rm -f conftest.$ac_objext conftest$ac_exeext
4224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4225 (eval $ac_link) 2>conftest.er1
4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } &&
4232 { ac_try='test -z "$ac_cxx_werror_flag"
4233 || test ! -s conftest.err'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 (eval $ac_try) 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; } &&
4239 { ac_try='test -s conftest$ac_exeext'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 (eval $ac_try) 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 ac_cv_func_shmat=yes
4246else
4247 echo "$as_me: failed program was:" >&5
4248sed 's/^/| /' conftest.$ac_ext >&5
4249
4250ac_cv_func_shmat=no
4251fi
4252rm -f conftest.err conftest.$ac_objext \
4253 conftest$ac_exeext conftest.$ac_ext
4254fi
4255echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4256echo "${ECHO_T}$ac_cv_func_shmat" >&6
4257
4258 if test $ac_cv_func_shmat = no; then
4259 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4260echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4261if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263else
4264 ac_check_lib_save_LIBS=$LIBS
4265LIBS="-lipc $LIBS"
4266cat >conftest.$ac_ext <<_ACEOF
4267/* confdefs.h. */
4268_ACEOF
4269cat confdefs.h >>conftest.$ac_ext
4270cat >>conftest.$ac_ext <<_ACEOF
4271/* end confdefs.h. */
4272
4273/* Override any gcc2 internal prototype to avoid an error. */
4274#ifdef __cplusplus
4275extern "C"
4276#endif
4277/* We use char because int might match the return type of a gcc2
4278 builtin and then its argument prototype would still apply. */
4279char shmat ();
4280int
4281main ()
4282{
4283shmat ();
4284 ;
4285 return 0;
4286}
4287_ACEOF
4288rm -f conftest.$ac_objext conftest$ac_exeext
4289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4290 (eval $ac_link) 2>conftest.er1
4291 ac_status=$?
4292 grep -v '^ *+' conftest.er1 >conftest.err
4293 rm -f conftest.er1
4294 cat conftest.err >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } &&
4297 { ac_try='test -z "$ac_cxx_werror_flag"
4298 || test ! -s conftest.err'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 (eval $ac_try) 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; } &&
4304 { ac_try='test -s conftest$ac_exeext'
4305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306 (eval $ac_try) 2>&5
4307 ac_status=$?
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; }; then
4310 ac_cv_lib_ipc_shmat=yes
4311else
4312 echo "$as_me: failed program was:" >&5
4313sed 's/^/| /' conftest.$ac_ext >&5
4314
4315ac_cv_lib_ipc_shmat=no
4316fi
4317rm -f conftest.err conftest.$ac_objext \
4318 conftest$ac_exeext conftest.$ac_ext
4319LIBS=$ac_check_lib_save_LIBS
4320fi
4321echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4322echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4323if test $ac_cv_lib_ipc_shmat = yes; then
4324 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4325fi
4326
4327 fi
4328 fi
4329
4330 # Check for libraries that X11R6 Xt/Xaw programs need.
4331 ac_save_LDFLAGS=$LDFLAGS
4332 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4333 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4334 # check for ICE first), but we must link in the order -lSM -lICE or
4335 # we get undefined symbols. So assume we have SM if we have ICE.
4336 # These have to be linked with before -lX11, unlike the other
4337 # libraries we check for below, so use a different variable.
4338 # John Interrante, Karl Berry
4339 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4340echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4341if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4343else
4344 ac_check_lib_save_LIBS=$LIBS
4345LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4346cat >conftest.$ac_ext <<_ACEOF
4347/* confdefs.h. */
4348_ACEOF
4349cat confdefs.h >>conftest.$ac_ext
4350cat >>conftest.$ac_ext <<_ACEOF
4351/* end confdefs.h. */
4352
4353/* Override any gcc2 internal prototype to avoid an error. */
4354#ifdef __cplusplus
4355extern "C"
4356#endif
4357/* We use char because int might match the return type of a gcc2
4358 builtin and then its argument prototype would still apply. */
4359char IceConnectionNumber ();
4360int
4361main ()
4362{
4363IceConnectionNumber ();
4364 ;
4365 return 0;
4366}
4367_ACEOF
4368rm -f conftest.$ac_objext conftest$ac_exeext
4369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4370 (eval $ac_link) 2>conftest.er1
4371 ac_status=$?
4372 grep -v '^ *+' conftest.er1 >conftest.err
4373 rm -f conftest.er1
4374 cat conftest.err >&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } &&
4377 { ac_try='test -z "$ac_cxx_werror_flag"
4378 || test ! -s conftest.err'
4379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 (eval $ac_try) 2>&5
4381 ac_status=$?
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }; } &&
4384 { ac_try='test -s conftest$ac_exeext'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 (eval $ac_try) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; }; then
4390 ac_cv_lib_ICE_IceConnectionNumber=yes
4391else
4392 echo "$as_me: failed program was:" >&5
4393sed 's/^/| /' conftest.$ac_ext >&5
4394
4395ac_cv_lib_ICE_IceConnectionNumber=no
4396fi
4397rm -f conftest.err conftest.$ac_objext \
4398 conftest$ac_exeext conftest.$ac_ext
4399LIBS=$ac_check_lib_save_LIBS
4400fi
4401echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4402echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4403if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4404 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4405fi
4406
4407 LDFLAGS=$ac_save_LDFLAGS
4408
4409fi
4410
4411
4412
4413# Check whether --with-installed-zlib or --without-installed-zlib was given.
4414if test "${with_installed_zlib+set}" = set; then
4415 withval="$with_installed_zlib"
4416
4417fi;
4418
4419if test "$with_installed_zlib" = yes; then
4420 echo "using installed zlib"
4421 ZLIB_LIB=-lz
4422else
Constantin Kaplinsky97ac5552006-06-02 04:13:14 +00004423 ZLIB_DIR='$(COMMON)/zlib'
4424 ZLIB_INCLUDE='-I$(COMMON)/zlib'
4425 ZLIB_LIB='$(COMMON)/zlib/libz.a'
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004426fi
4427
4428
4429
4430
4431
4432
4433# Check whether --with-installed-jpeg or --without-installed-jpeg was given.
4434if test "${with_installed_jpeg+set}" = set; then
4435 withval="$with_installed_jpeg"
4436
4437fi;
4438
4439if test "$with_installed_jpeg" = yes; then
4440 echo "using installed jpeg"
4441 JPEG_LIB=-ljpeg
4442else
Constantin Kaplinsky97ac5552006-06-02 04:13:14 +00004443 JPEG_DIR='$(COMMON)/jpeg/build'
4444 JPEG_INCLUDE='-I$(COMMON)/jpeg'
4445 JPEG_LIB='$(COMMON)/jpeg/build/libjpeg.a'
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004446fi
4447
4448
4449
4450
4451
4452# Check whether --enable-vncconfig or --disable-vncconfig was given.
4453if test "${enable_vncconfig+set}" = set; then
4454 enableval="$enable_vncconfig"
4455
4456fi;
4457if test "$enable_vncconfig" = no; then
4458 echo "vncconfig utility will not be built"
4459 VNCCONFIG_DIR=
4460else
Constantin Kaplinsky97ac5552006-06-02 04:13:14 +00004461 VNCCONFIG_DIR='vncconfig'
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004462fi
4463
4464
4465echo "$as_me:$LINENO: checking for XTestGrabControl in -lXtst" >&5
4466echo $ECHO_N "checking for XTestGrabControl in -lXtst... $ECHO_C" >&6
4467if test "${ac_cv_lib_Xtst_XTestGrabControl+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4469else
4470 ac_check_lib_save_LIBS=$LIBS
4471LIBS="-lXtst "$X_LIBS" -lXext -lX11 $LIBS"
4472cat >conftest.$ac_ext <<_ACEOF
4473/* confdefs.h. */
4474_ACEOF
4475cat confdefs.h >>conftest.$ac_ext
4476cat >>conftest.$ac_ext <<_ACEOF
4477/* end confdefs.h. */
4478
4479/* Override any gcc2 internal prototype to avoid an error. */
4480#ifdef __cplusplus
4481extern "C"
4482#endif
4483/* We use char because int might match the return type of a gcc2
4484 builtin and then its argument prototype would still apply. */
4485char XTestGrabControl ();
4486int
4487main ()
4488{
4489XTestGrabControl ();
4490 ;
4491 return 0;
4492}
4493_ACEOF
4494rm -f conftest.$ac_objext conftest$ac_exeext
4495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4496 (eval $ac_link) 2>conftest.er1
4497 ac_status=$?
4498 grep -v '^ *+' conftest.er1 >conftest.err
4499 rm -f conftest.er1
4500 cat conftest.err >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); } &&
4503 { ac_try='test -z "$ac_cxx_werror_flag"
4504 || test ! -s conftest.err'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 (eval $ac_try) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; } &&
4510 { ac_try='test -s conftest$ac_exeext'
4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512 (eval $ac_try) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
4516 ac_cv_lib_Xtst_XTestGrabControl=yes
4517else
4518 echo "$as_me: failed program was:" >&5
4519sed 's/^/| /' conftest.$ac_ext >&5
4520
4521ac_cv_lib_Xtst_XTestGrabControl=no
4522fi
4523rm -f conftest.err conftest.$ac_objext \
4524 conftest$ac_exeext conftest.$ac_ext
4525LIBS=$ac_check_lib_save_LIBS
4526fi
4527echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestGrabControl" >&5
4528echo "${ECHO_T}$ac_cv_lib_Xtst_XTestGrabControl" >&6
4529if test $ac_cv_lib_Xtst_XTestGrabControl = yes; then
4530 USE_XTEST=yes
4531else
4532 USE_XTEST=
4533fi
4534
4535if test "$USE_XTEST" = yes; then
4536 XTEST_DEFINE='-DHAVE_XTEST'
4537 XTEST_LIB=-lXtst
4538else
4539 echo Warning: No XTest extension, building x0vncserver view-only
4540 XTEST_DEFINE=
4541 XTEST_LIB=
4542fi
4543
4544
4545
4546if test "$USE_READDISPLAY" = yes; then
4547 READDISPLAY_DEFINE='-DHAVE_READDISPLAY'
4548elif test "$USE_SUN_OVL" = yes; then
4549 READDISPLAY_DEFINE='-DHAVE_SUN_OVL'
4550else
4551 READDISPLAY_DEFINE=
4552fi
4553
4554
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004555
4556
4557ac_ext=c
4558ac_cpp='$CPP $CPPFLAGS'
4559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561ac_compiler_gnu=$ac_cv_c_compiler_gnu
4562
4563
4564echo "$as_me:$LINENO: checking for gethostbyname" >&5
4565echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4566if test "${ac_cv_func_gethostbyname+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568else
4569 cat >conftest.$ac_ext <<_ACEOF
4570/* confdefs.h. */
4571_ACEOF
4572cat confdefs.h >>conftest.$ac_ext
4573cat >>conftest.$ac_ext <<_ACEOF
4574/* end confdefs.h. */
4575/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4577#define gethostbyname innocuous_gethostbyname
4578
4579/* System header to define __stub macros and hopefully few prototypes,
4580 which can conflict with char gethostbyname (); below.
4581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4582 <limits.h> exists even on freestanding compilers. */
4583
4584#ifdef __STDC__
4585# include <limits.h>
4586#else
4587# include <assert.h>
4588#endif
4589
4590#undef gethostbyname
4591
4592/* Override any gcc2 internal prototype to avoid an error. */
4593#ifdef __cplusplus
4594extern "C"
4595{
4596#endif
4597/* We use char because int might match the return type of a gcc2
4598 builtin and then its argument prototype would still apply. */
4599char gethostbyname ();
4600/* The GNU C library defines this for functions which it implements
4601 to always fail with ENOSYS. Some functions are actually named
4602 something starting with __ and the normal name is an alias. */
4603#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4604choke me
4605#else
4606char (*f) () = gethostbyname;
4607#endif
4608#ifdef __cplusplus
4609}
4610#endif
4611
4612int
4613main ()
4614{
4615return f != gethostbyname;
4616 ;
4617 return 0;
4618}
4619_ACEOF
4620rm -f conftest.$ac_objext conftest$ac_exeext
4621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4622 (eval $ac_link) 2>conftest.er1
4623 ac_status=$?
4624 grep -v '^ *+' conftest.er1 >conftest.err
4625 rm -f conftest.er1
4626 cat conftest.err >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); } &&
4629 { ac_try='test -z "$ac_c_werror_flag"
4630 || test ! -s conftest.err'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 (eval $ac_try) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; } &&
4636 { ac_try='test -s conftest$ac_exeext'
4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 (eval $ac_try) 2>&5
4639 ac_status=$?
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; }; then
4642 ac_cv_func_gethostbyname=yes
4643else
4644 echo "$as_me: failed program was:" >&5
4645sed 's/^/| /' conftest.$ac_ext >&5
4646
4647ac_cv_func_gethostbyname=no
4648fi
4649rm -f conftest.err conftest.$ac_objext \
4650 conftest$ac_exeext conftest.$ac_ext
4651fi
4652echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4653echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4654if test $ac_cv_func_gethostbyname = yes; then
4655 INET_LIB_REQ=
4656else
4657 INET_LIB_REQ=yes
4658fi
4659
4660if test "$INET_LIB_REQ" = yes; then
4661 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4662echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4663if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665else
4666 ac_check_lib_save_LIBS=$LIBS
4667LIBS="-lbsd $LIBS"
4668cat >conftest.$ac_ext <<_ACEOF
4669/* confdefs.h. */
4670_ACEOF
4671cat confdefs.h >>conftest.$ac_ext
4672cat >>conftest.$ac_ext <<_ACEOF
4673/* end confdefs.h. */
4674
4675/* Override any gcc2 internal prototype to avoid an error. */
4676#ifdef __cplusplus
4677extern "C"
4678#endif
4679/* We use char because int might match the return type of a gcc2
4680 builtin and then its argument prototype would still apply. */
4681char gethostbyname ();
4682int
4683main ()
4684{
4685gethostbyname ();
4686 ;
4687 return 0;
4688}
4689_ACEOF
4690rm -f conftest.$ac_objext conftest$ac_exeext
4691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4692 (eval $ac_link) 2>conftest.er1
4693 ac_status=$?
4694 grep -v '^ *+' conftest.er1 >conftest.err
4695 rm -f conftest.er1
4696 cat conftest.err >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } &&
4699 { ac_try='test -z "$ac_c_werror_flag"
4700 || test ! -s conftest.err'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 (eval $ac_try) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; } &&
4706 { ac_try='test -s conftest$ac_exeext'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708 (eval $ac_try) 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4712 ac_cv_lib_bsd_gethostbyname=yes
4713else
4714 echo "$as_me: failed program was:" >&5
4715sed 's/^/| /' conftest.$ac_ext >&5
4716
4717ac_cv_lib_bsd_gethostbyname=no
4718fi
4719rm -f conftest.err conftest.$ac_objext \
4720 conftest$ac_exeext conftest.$ac_ext
4721LIBS=$ac_check_lib_save_LIBS
4722fi
4723echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4724echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4725if test $ac_cv_lib_bsd_gethostbyname = yes; then
4726 INET_LIB=-lbsd
4727else
4728 INET_LIB=
4729fi
4730
4731fi
4732ac_ext=cc
4733ac_cpp='$CXXCPP $CPPFLAGS'
4734ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4737
4738
4739
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004740ac_aux_dir=
4741for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
4742 if test -f $ac_dir/install-sh; then
4743 ac_aux_dir=$ac_dir
4744 ac_install_sh="$ac_aux_dir/install-sh -c"
4745 break
4746 elif test -f $ac_dir/install.sh; then
4747 ac_aux_dir=$ac_dir
4748 ac_install_sh="$ac_aux_dir/install.sh -c"
4749 break
4750 elif test -f $ac_dir/shtool; then
4751 ac_aux_dir=$ac_dir
4752 ac_install_sh="$ac_aux_dir/shtool install -c"
4753 break
4754 fi
4755done
4756if test -z "$ac_aux_dir"; then
4757 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
4758echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
4759 { (exit 1); exit 1; }; }
4760fi
4761ac_config_guess="$SHELL $ac_aux_dir/config.guess"
4762ac_config_sub="$SHELL $ac_aux_dir/config.sub"
4763ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
4764
4765# Find a good install program. We prefer a C program (faster),
4766# so one script is as good as another. But avoid the broken or
4767# incompatible versions:
4768# SysV /etc/install, /usr/sbin/install
4769# SunOS /usr/etc/install
4770# IRIX /sbin/install
4771# AIX /bin/install
4772# AmigaOS /C/install, which installs bootblocks on floppy discs
4773# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4774# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4775# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4776# OS/2's system install, which has a completely different semantic
4777# ./install, which can be erroneously created by make from ./install.sh.
4778echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4779echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4780if test -z "$INSTALL"; then
4781if test "${ac_cv_path_install+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785for as_dir in $PATH
4786do
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 # Account for people who put trailing slashes in PATH elements.
4790case $as_dir/ in
4791 ./ | .// | /cC/* | \
4792 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4793 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4794 /usr/ucb/* ) ;;
4795 *)
4796 # OSF1 and SCO ODT 3.0 have their own names for install.
4797 # Don't use installbsd from OSF since it installs stuff as root
4798 # by default.
4799 for ac_prog in ginstall scoinst install; do
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4802 if test $ac_prog = install &&
4803 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4804 # AIX install. It has an incompatible calling convention.
4805 :
4806 elif test $ac_prog = install &&
4807 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4808 # program-specific install script used by HP pwplus--don't use.
4809 :
4810 else
4811 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4812 break 3
4813 fi
4814 fi
4815 done
4816 done
4817 ;;
4818esac
4819done
4820
4821
4822fi
4823 if test "${ac_cv_path_install+set}" = set; then
4824 INSTALL=$ac_cv_path_install
4825 else
4826 # As a last resort, use the slow shell script. We don't cache a
4827 # path for INSTALL within a source directory, because that will
4828 # break other packages using the cache if that directory is
4829 # removed, or if the path is relative.
4830 INSTALL=$ac_install_sh
4831 fi
4832fi
4833echo "$as_me:$LINENO: result: $INSTALL" >&5
4834echo "${ECHO_T}$INSTALL" >&6
4835
4836# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4837# It thinks the first close brace ends the variable substitution.
4838test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4839
4840test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4841
4842test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4843
4844
4845 MKINSTALLDIRS=
4846 if test -n "$ac_aux_dir"; then
4847 case "$ac_aux_dir" in
4848 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4849 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4850 esac
4851 fi
4852 if test -z "$MKINSTALLDIRS"; then
4853 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4854 fi
4855
4856
4857
4858 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4859echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4860 # Check whether --enable-nls or --disable-nls was given.
4861if test "${enable_nls+set}" = set; then
4862 enableval="$enable_nls"
4863 USE_NLS=$enableval
4864else
4865 USE_NLS=yes
4866fi;
4867 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4868echo "${ECHO_T}$USE_NLS" >&6
4869
4870
4871
4872
4873
4874
4875# Prepare PATH_SEPARATOR.
4876# The user is always right.
4877if test "${PATH_SEPARATOR+set}" != set; then
4878 echo "#! /bin/sh" >conf$$.sh
4879 echo "exit 0" >>conf$$.sh
4880 chmod +x conf$$.sh
4881 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4882 PATH_SEPARATOR=';'
4883 else
4884 PATH_SEPARATOR=:
4885 fi
4886 rm -f conf$$.sh
4887fi
4888
4889# Find out how to test for executable files. Don't use a zero-byte file,
4890# as systems may use methods other than mode bits to determine executability.
4891cat >conf$$.file <<_ASEOF
4892#! /bin/sh
4893exit 0
4894_ASEOF
4895chmod +x conf$$.file
4896if test -x conf$$.file >/dev/null 2>&1; then
4897 ac_executable_p="test -x"
4898else
4899 ac_executable_p="test -f"
4900fi
4901rm -f conf$$.file
4902
4903# Extract the first word of "msgfmt", so it can be a program name with args.
4904set dummy msgfmt; ac_word=$2
4905echo "$as_me:$LINENO: checking for $ac_word" >&5
4906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4907if test "${ac_cv_path_MSGFMT+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4909else
4910 case "$MSGFMT" in
4911 [\\/]* | ?:[\\/]*)
4912 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4913 ;;
4914 *)
4915 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4916 for ac_dir in $PATH; do
4917 IFS="$ac_save_IFS"
4918 test -z "$ac_dir" && ac_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4921 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4922 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4923 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4924 break 2
4925 fi
4926 fi
4927 done
4928 done
4929 IFS="$ac_save_IFS"
4930 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4931 ;;
4932esac
4933fi
4934MSGFMT="$ac_cv_path_MSGFMT"
4935if test "$MSGFMT" != ":"; then
4936 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4937echo "${ECHO_T}$MSGFMT" >&6
4938else
4939 echo "$as_me:$LINENO: result: no" >&5
4940echo "${ECHO_T}no" >&6
4941fi
4942
4943 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4944set dummy gmsgfmt; ac_word=$2
4945echo "$as_me:$LINENO: checking for $ac_word" >&5
4946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4947if test "${ac_cv_path_GMSGFMT+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4949else
4950 case $GMSGFMT in
4951 [\\/]* | ?:[\\/]*)
4952 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4953 ;;
4954 *)
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956for as_dir in $PATH
4957do
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4965 fi
4966done
4967done
4968
4969 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4970 ;;
4971esac
4972fi
4973GMSGFMT=$ac_cv_path_GMSGFMT
4974
4975if test -n "$GMSGFMT"; then
4976 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4977echo "${ECHO_T}$GMSGFMT" >&6
4978else
4979 echo "$as_me:$LINENO: result: no" >&5
4980echo "${ECHO_T}no" >&6
4981fi
4982
4983
4984
4985# Prepare PATH_SEPARATOR.
4986# The user is always right.
4987if test "${PATH_SEPARATOR+set}" != set; then
4988 echo "#! /bin/sh" >conf$$.sh
4989 echo "exit 0" >>conf$$.sh
4990 chmod +x conf$$.sh
4991 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4992 PATH_SEPARATOR=';'
4993 else
4994 PATH_SEPARATOR=:
4995 fi
4996 rm -f conf$$.sh
4997fi
4998
4999# Find out how to test for executable files. Don't use a zero-byte file,
5000# as systems may use methods other than mode bits to determine executability.
5001cat >conf$$.file <<_ASEOF
5002#! /bin/sh
5003exit 0
5004_ASEOF
5005chmod +x conf$$.file
5006if test -x conf$$.file >/dev/null 2>&1; then
5007 ac_executable_p="test -x"
5008else
5009 ac_executable_p="test -f"
5010fi
5011rm -f conf$$.file
5012
5013# Extract the first word of "xgettext", so it can be a program name with args.
5014set dummy xgettext; ac_word=$2
5015echo "$as_me:$LINENO: checking for $ac_word" >&5
5016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5017if test "${ac_cv_path_XGETTEXT+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5019else
5020 case "$XGETTEXT" in
5021 [\\/]* | ?:[\\/]*)
5022 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5023 ;;
5024 *)
5025 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5026 for ac_dir in $PATH; do
5027 IFS="$ac_save_IFS"
5028 test -z "$ac_dir" && ac_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5031 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5032 (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
5033 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5034 break 2
5035 fi
5036 fi
5037 done
5038 done
5039 IFS="$ac_save_IFS"
5040 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5041 ;;
5042esac
5043fi
5044XGETTEXT="$ac_cv_path_XGETTEXT"
5045if test "$XGETTEXT" != ":"; then
5046 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5047echo "${ECHO_T}$XGETTEXT" >&6
5048else
5049 echo "$as_me:$LINENO: result: no" >&5
5050echo "${ECHO_T}no" >&6
5051fi
5052
5053 rm -f messages.po
5054
5055
5056# Prepare PATH_SEPARATOR.
5057# The user is always right.
5058if test "${PATH_SEPARATOR+set}" != set; then
5059 echo "#! /bin/sh" >conf$$.sh
5060 echo "exit 0" >>conf$$.sh
5061 chmod +x conf$$.sh
5062 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5063 PATH_SEPARATOR=';'
5064 else
5065 PATH_SEPARATOR=:
5066 fi
5067 rm -f conf$$.sh
5068fi
5069
5070# Find out how to test for executable files. Don't use a zero-byte file,
5071# as systems may use methods other than mode bits to determine executability.
5072cat >conf$$.file <<_ASEOF
5073#! /bin/sh
5074exit 0
5075_ASEOF
5076chmod +x conf$$.file
5077if test -x conf$$.file >/dev/null 2>&1; then
5078 ac_executable_p="test -x"
5079else
5080 ac_executable_p="test -f"
5081fi
5082rm -f conf$$.file
5083
5084# Extract the first word of "msgmerge", so it can be a program name with args.
5085set dummy msgmerge; ac_word=$2
5086echo "$as_me:$LINENO: checking for $ac_word" >&5
5087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5088if test "${ac_cv_path_MSGMERGE+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5090else
5091 case "$MSGMERGE" in
5092 [\\/]* | ?:[\\/]*)
5093 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5094 ;;
5095 *)
5096 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5097 for ac_dir in $PATH; do
5098 IFS="$ac_save_IFS"
5099 test -z "$ac_dir" && ac_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5102 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5103 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5104 break 2
5105 fi
5106 fi
5107 done
5108 done
5109 IFS="$ac_save_IFS"
5110 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5111 ;;
5112esac
5113fi
5114MSGMERGE="$ac_cv_path_MSGMERGE"
5115if test "$MSGMERGE" != ":"; then
5116 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5117echo "${ECHO_T}$MSGMERGE" >&6
5118else
5119 echo "$as_me:$LINENO: result: no" >&5
5120echo "${ECHO_T}no" >&6
5121fi
5122
5123
5124 if test "$GMSGFMT" != ":"; then
5125 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5126 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5127 : ;
5128 else
5129 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5130 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5131echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5132 GMSGFMT=":"
5133 fi
5134 fi
5135
5136 if test "$XGETTEXT" != ":"; then
5137 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5138 (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
5139 : ;
5140 else
5141 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5142echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5143 XGETTEXT=":"
5144 fi
5145 rm -f messages.po
5146 fi
5147
5148 ac_config_commands="$ac_config_commands default-1"
5149
5150
5151# Make sure we can run config.sub.
5152$ac_config_sub sun4 >/dev/null 2>&1 ||
5153 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5154echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5155 { (exit 1); exit 1; }; }
5156
5157echo "$as_me:$LINENO: checking build system type" >&5
5158echo $ECHO_N "checking build system type... $ECHO_C" >&6
5159if test "${ac_cv_build+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5161else
5162 ac_cv_build_alias=$build_alias
5163test -z "$ac_cv_build_alias" &&
5164 ac_cv_build_alias=`$ac_config_guess`
5165test -z "$ac_cv_build_alias" &&
5166 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5167echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5168 { (exit 1); exit 1; }; }
5169ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5170 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5171echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5172 { (exit 1); exit 1; }; }
5173
5174fi
5175echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5176echo "${ECHO_T}$ac_cv_build" >&6
5177build=$ac_cv_build
5178build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5179build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5180build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5181
5182
5183echo "$as_me:$LINENO: checking host system type" >&5
5184echo $ECHO_N "checking host system type... $ECHO_C" >&6
5185if test "${ac_cv_host+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5187else
5188 ac_cv_host_alias=$host_alias
5189test -z "$ac_cv_host_alias" &&
5190 ac_cv_host_alias=$ac_cv_build_alias
5191ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5192 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5193echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5194 { (exit 1); exit 1; }; }
5195
5196fi
5197echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5198echo "${ECHO_T}$ac_cv_host" >&6
5199host=$ac_cv_host
5200host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5201host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5202host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5203
5204
5205
5206 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5207echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
5208if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210else
5211 ac_check_lib_save_LIBS=$LIBS
5212LIBS="-lcposix $LIBS"
5213cat >conftest.$ac_ext <<_ACEOF
5214/* confdefs.h. */
5215_ACEOF
5216cat confdefs.h >>conftest.$ac_ext
5217cat >>conftest.$ac_ext <<_ACEOF
5218/* end confdefs.h. */
5219
5220/* Override any gcc2 internal prototype to avoid an error. */
5221#ifdef __cplusplus
5222extern "C"
5223#endif
5224/* We use char because int might match the return type of a gcc2
5225 builtin and then its argument prototype would still apply. */
5226char strerror ();
5227int
5228main ()
5229{
5230strerror ();
5231 ;
5232 return 0;
5233}
5234_ACEOF
5235rm -f conftest.$ac_objext conftest$ac_exeext
5236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5237 (eval $ac_link) 2>conftest.er1
5238 ac_status=$?
5239 grep -v '^ *+' conftest.er1 >conftest.err
5240 rm -f conftest.er1
5241 cat conftest.err >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } &&
5244 { ac_try='test -z "$ac_cxx_werror_flag"
5245 || test ! -s conftest.err'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247 (eval $ac_try) 2>&5
5248 ac_status=$?
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; } &&
5251 { ac_try='test -s conftest$ac_exeext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253 (eval $ac_try) 2>&5
5254 ac_status=$?
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 ac_cv_lib_cposix_strerror=yes
5258else
5259 echo "$as_me: failed program was:" >&5
5260sed 's/^/| /' conftest.$ac_ext >&5
5261
5262ac_cv_lib_cposix_strerror=no
5263fi
5264rm -f conftest.err conftest.$ac_objext \
5265 conftest$ac_exeext conftest.$ac_ext
5266LIBS=$ac_check_lib_save_LIBS
5267fi
5268echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5269echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
5270if test $ac_cv_lib_cposix_strerror = yes; then
5271 LIBS="$LIBS -lcposix"
5272fi
5273
5274
5275
5276echo "$as_me:$LINENO: checking for egrep" >&5
5277echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5278if test "${ac_cv_prog_egrep+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280else
5281 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5282 then ac_cv_prog_egrep='grep -E'
5283 else ac_cv_prog_egrep='egrep'
5284 fi
5285fi
5286echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5287echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5288 EGREP=$ac_cv_prog_egrep
5289
5290
5291echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5292echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5293if test "${ac_cv_header_stdc+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5295else
5296 cat >conftest.$ac_ext <<_ACEOF
5297/* confdefs.h. */
5298_ACEOF
5299cat confdefs.h >>conftest.$ac_ext
5300cat >>conftest.$ac_ext <<_ACEOF
5301/* end confdefs.h. */
5302#include <stdlib.h>
5303#include <stdarg.h>
5304#include <string.h>
5305#include <float.h>
5306
5307int
5308main ()
5309{
5310
5311 ;
5312 return 0;
5313}
5314_ACEOF
5315rm -f conftest.$ac_objext
5316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5317 (eval $ac_compile) 2>conftest.er1
5318 ac_status=$?
5319 grep -v '^ *+' conftest.er1 >conftest.err
5320 rm -f conftest.er1
5321 cat conftest.err >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } &&
5324 { ac_try='test -z "$ac_cxx_werror_flag"
5325 || test ! -s conftest.err'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 (eval $ac_try) 2>&5
5328 ac_status=$?
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; } &&
5331 { ac_try='test -s conftest.$ac_objext'
5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 (eval $ac_try) 2>&5
5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; }; then
5337 ac_cv_header_stdc=yes
5338else
5339 echo "$as_me: failed program was:" >&5
5340sed 's/^/| /' conftest.$ac_ext >&5
5341
5342ac_cv_header_stdc=no
5343fi
5344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5345
5346if test $ac_cv_header_stdc = yes; then
5347 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5348 cat >conftest.$ac_ext <<_ACEOF
5349/* confdefs.h. */
5350_ACEOF
5351cat confdefs.h >>conftest.$ac_ext
5352cat >>conftest.$ac_ext <<_ACEOF
5353/* end confdefs.h. */
5354#include <string.h>
5355
5356_ACEOF
5357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5358 $EGREP "memchr" >/dev/null 2>&1; then
5359 :
5360else
5361 ac_cv_header_stdc=no
5362fi
5363rm -f conftest*
5364
5365fi
5366
5367if test $ac_cv_header_stdc = yes; then
5368 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5369 cat >conftest.$ac_ext <<_ACEOF
5370/* confdefs.h. */
5371_ACEOF
5372cat confdefs.h >>conftest.$ac_ext
5373cat >>conftest.$ac_ext <<_ACEOF
5374/* end confdefs.h. */
5375#include <stdlib.h>
5376
5377_ACEOF
5378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5379 $EGREP "free" >/dev/null 2>&1; then
5380 :
5381else
5382 ac_cv_header_stdc=no
5383fi
5384rm -f conftest*
5385
5386fi
5387
5388if test $ac_cv_header_stdc = yes; then
5389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5390 if test "$cross_compiling" = yes; then
5391 :
5392else
5393 cat >conftest.$ac_ext <<_ACEOF
5394/* confdefs.h. */
5395_ACEOF
5396cat confdefs.h >>conftest.$ac_ext
5397cat >>conftest.$ac_ext <<_ACEOF
5398/* end confdefs.h. */
5399#include <ctype.h>
5400#if ((' ' & 0x0FF) == 0x020)
5401# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5402# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5403#else
5404# define ISLOWER(c) \
5405 (('a' <= (c) && (c) <= 'i') \
5406 || ('j' <= (c) && (c) <= 'r') \
5407 || ('s' <= (c) && (c) <= 'z'))
5408# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5409#endif
5410
5411#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5412int
5413main ()
5414{
5415 int i;
5416 for (i = 0; i < 256; i++)
5417 if (XOR (islower (i), ISLOWER (i))
5418 || toupper (i) != TOUPPER (i))
5419 exit(2);
5420 exit (0);
5421}
5422_ACEOF
5423rm -f conftest$ac_exeext
5424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5425 (eval $ac_link) 2>&5
5426 ac_status=$?
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430 (eval $ac_try) 2>&5
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; }; then
5434 :
5435else
5436 echo "$as_me: program exited with status $ac_status" >&5
5437echo "$as_me: failed program was:" >&5
5438sed 's/^/| /' conftest.$ac_ext >&5
5439
5440( exit $ac_status )
5441ac_cv_header_stdc=no
5442fi
5443rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5444fi
5445fi
5446fi
5447echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5448echo "${ECHO_T}$ac_cv_header_stdc" >&6
5449if test $ac_cv_header_stdc = yes; then
5450
5451cat >>confdefs.h <<\_ACEOF
5452#define STDC_HEADERS 1
5453_ACEOF
5454
5455fi
5456
5457echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5458echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5459if test "${ac_cv_c_const+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5461else
5462 cat >conftest.$ac_ext <<_ACEOF
5463/* confdefs.h. */
5464_ACEOF
5465cat confdefs.h >>conftest.$ac_ext
5466cat >>conftest.$ac_ext <<_ACEOF
5467/* end confdefs.h. */
5468
5469int
5470main ()
5471{
5472/* FIXME: Include the comments suggested by Paul. */
5473#ifndef __cplusplus
5474 /* Ultrix mips cc rejects this. */
5475 typedef int charset[2];
5476 const charset x;
5477 /* SunOS 4.1.1 cc rejects this. */
5478 char const *const *ccp;
5479 char **p;
5480 /* NEC SVR4.0.2 mips cc rejects this. */
5481 struct point {int x, y;};
5482 static struct point const zero = {0,0};
5483 /* AIX XL C 1.02.0.0 rejects this.
5484 It does not let you subtract one const X* pointer from another in
5485 an arm of an if-expression whose if-part is not a constant
5486 expression */
5487 const char *g = "string";
5488 ccp = &g + (g ? g-g : 0);
5489 /* HPUX 7.0 cc rejects these. */
5490 ++ccp;
5491 p = (char**) ccp;
5492 ccp = (char const *const *) p;
5493 { /* SCO 3.2v4 cc rejects this. */
5494 char *t;
5495 char const *s = 0 ? (char *) 0 : (char const *) 0;
5496
5497 *t++ = 0;
5498 }
5499 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5500 int x[] = {25, 17};
5501 const int *foo = &x[0];
5502 ++foo;
5503 }
5504 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5505 typedef const int *iptr;
5506 iptr p = 0;
5507 ++p;
5508 }
5509 { /* AIX XL C 1.02.0.0 rejects this saying
5510 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5511 struct s { int j; const int *ap[3]; };
5512 struct s *b; b->j = 5;
5513 }
5514 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5515 const int foo = 10;
5516 }
5517#endif
5518
5519 ;
5520 return 0;
5521}
5522_ACEOF
5523rm -f conftest.$ac_objext
5524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5525 (eval $ac_compile) 2>conftest.er1
5526 ac_status=$?
5527 grep -v '^ *+' conftest.er1 >conftest.err
5528 rm -f conftest.er1
5529 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } &&
5532 { ac_try='test -z "$ac_cxx_werror_flag"
5533 || test ! -s conftest.err'
5534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535 (eval $ac_try) 2>&5
5536 ac_status=$?
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; } &&
5539 { ac_try='test -s conftest.$ac_objext'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 (eval $ac_try) 2>&5
5542 ac_status=$?
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; }; then
5545 ac_cv_c_const=yes
5546else
5547 echo "$as_me: failed program was:" >&5
5548sed 's/^/| /' conftest.$ac_ext >&5
5549
5550ac_cv_c_const=no
5551fi
5552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5553fi
5554echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5555echo "${ECHO_T}$ac_cv_c_const" >&6
5556if test $ac_cv_c_const = no; then
5557
5558cat >>confdefs.h <<\_ACEOF
5559#define const
5560_ACEOF
5561
5562fi
5563
5564
5565 echo "$as_me:$LINENO: checking for signed" >&5
5566echo $ECHO_N "checking for signed... $ECHO_C" >&6
5567if test "${bh_cv_c_signed+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5569else
5570 cat >conftest.$ac_ext <<_ACEOF
5571/* confdefs.h. */
5572_ACEOF
5573cat confdefs.h >>conftest.$ac_ext
5574cat >>conftest.$ac_ext <<_ACEOF
5575/* end confdefs.h. */
5576
5577int
5578main ()
5579{
5580signed char x;
5581 ;
5582 return 0;
5583}
5584_ACEOF
5585rm -f conftest.$ac_objext
5586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5587 (eval $ac_compile) 2>conftest.er1
5588 ac_status=$?
5589 grep -v '^ *+' conftest.er1 >conftest.err
5590 rm -f conftest.er1
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } &&
5594 { ac_try='test -z "$ac_cxx_werror_flag"
5595 || test ! -s conftest.err'
5596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597 (eval $ac_try) 2>&5
5598 ac_status=$?
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; } &&
5601 { ac_try='test -s conftest.$ac_objext'
5602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 (eval $ac_try) 2>&5
5604 ac_status=$?
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; }; then
5607 bh_cv_c_signed=yes
5608else
5609 echo "$as_me: failed program was:" >&5
5610sed 's/^/| /' conftest.$ac_ext >&5
5611
5612bh_cv_c_signed=no
5613fi
5614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5615fi
5616echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5617echo "${ECHO_T}$bh_cv_c_signed" >&6
5618 if test $bh_cv_c_signed = no; then
5619
5620cat >>confdefs.h <<\_ACEOF
5621#define signed
5622_ACEOF
5623
5624 fi
5625
5626echo "$as_me:$LINENO: checking for inline" >&5
5627echo $ECHO_N "checking for inline... $ECHO_C" >&6
5628if test "${ac_cv_c_inline+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5630else
5631 ac_cv_c_inline=no
5632for ac_kw in inline __inline__ __inline; do
5633 cat >conftest.$ac_ext <<_ACEOF
5634/* confdefs.h. */
5635_ACEOF
5636cat confdefs.h >>conftest.$ac_ext
5637cat >>conftest.$ac_ext <<_ACEOF
5638/* end confdefs.h. */
5639#ifndef __cplusplus
5640typedef int foo_t;
5641static $ac_kw foo_t static_foo () {return 0; }
5642$ac_kw foo_t foo () {return 0; }
5643#endif
5644
5645_ACEOF
5646rm -f conftest.$ac_objext
5647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5648 (eval $ac_compile) 2>conftest.er1
5649 ac_status=$?
5650 grep -v '^ *+' conftest.er1 >conftest.err
5651 rm -f conftest.er1
5652 cat conftest.err >&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); } &&
5655 { ac_try='test -z "$ac_cxx_werror_flag"
5656 || test ! -s conftest.err'
5657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 (eval $ac_try) 2>&5
5659 ac_status=$?
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; } &&
5662 { ac_try='test -s conftest.$ac_objext'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 (eval $ac_try) 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; }; then
5668 ac_cv_c_inline=$ac_kw; break
5669else
5670 echo "$as_me: failed program was:" >&5
5671sed 's/^/| /' conftest.$ac_ext >&5
5672
5673fi
5674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5675done
5676
5677fi
5678echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5679echo "${ECHO_T}$ac_cv_c_inline" >&6
5680
5681
5682case $ac_cv_c_inline in
5683 inline | yes) ;;
5684 *)
5685 case $ac_cv_c_inline in
5686 no) ac_val=;;
5687 *) ac_val=$ac_cv_c_inline;;
5688 esac
5689 cat >>confdefs.h <<_ACEOF
5690#ifndef __cplusplus
5691#define inline $ac_val
5692#endif
5693_ACEOF
5694 ;;
5695esac
5696
5697# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5708 inttypes.h stdint.h unistd.h
5709do
5710as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5711echo "$as_me:$LINENO: checking for $ac_header" >&5
5712echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5713if eval "test \"\${$as_ac_Header+set}\" = set"; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5715else
5716 cat >conftest.$ac_ext <<_ACEOF
5717/* confdefs.h. */
5718_ACEOF
5719cat confdefs.h >>conftest.$ac_ext
5720cat >>conftest.$ac_ext <<_ACEOF
5721/* end confdefs.h. */
5722$ac_includes_default
5723
5724#include <$ac_header>
5725_ACEOF
5726rm -f conftest.$ac_objext
5727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728 (eval $ac_compile) 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } &&
5735 { ac_try='test -z "$ac_cxx_werror_flag"
5736 || test ! -s conftest.err'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 (eval $ac_try) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; } &&
5742 { ac_try='test -s conftest.$ac_objext'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 (eval $ac_try) 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 eval "$as_ac_Header=yes"
5749else
5750 echo "$as_me: failed program was:" >&5
5751sed 's/^/| /' conftest.$ac_ext >&5
5752
5753eval "$as_ac_Header=no"
5754fi
5755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5756fi
5757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5758echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5759if test `eval echo '${'$as_ac_Header'}'` = yes; then
5760 cat >>confdefs.h <<_ACEOF
5761#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5762_ACEOF
5763
5764fi
5765
5766done
5767
5768
5769echo "$as_me:$LINENO: checking for off_t" >&5
5770echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5771if test "${ac_cv_type_off_t+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5773else
5774 cat >conftest.$ac_ext <<_ACEOF
5775/* confdefs.h. */
5776_ACEOF
5777cat confdefs.h >>conftest.$ac_ext
5778cat >>conftest.$ac_ext <<_ACEOF
5779/* end confdefs.h. */
5780$ac_includes_default
5781int
5782main ()
5783{
5784if ((off_t *) 0)
5785 return 0;
5786if (sizeof (off_t))
5787 return 0;
5788 ;
5789 return 0;
5790}
5791_ACEOF
5792rm -f conftest.$ac_objext
5793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5794 (eval $ac_compile) 2>conftest.er1
5795 ac_status=$?
5796 grep -v '^ *+' conftest.er1 >conftest.err
5797 rm -f conftest.er1
5798 cat conftest.err >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } &&
5801 { ac_try='test -z "$ac_cxx_werror_flag"
5802 || test ! -s conftest.err'
5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 (eval $ac_try) 2>&5
5805 ac_status=$?
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; } &&
5808 { ac_try='test -s conftest.$ac_objext'
5809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810 (eval $ac_try) 2>&5
5811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; }; then
5814 ac_cv_type_off_t=yes
5815else
5816 echo "$as_me: failed program was:" >&5
5817sed 's/^/| /' conftest.$ac_ext >&5
5818
5819ac_cv_type_off_t=no
5820fi
5821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5822fi
5823echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5824echo "${ECHO_T}$ac_cv_type_off_t" >&6
5825if test $ac_cv_type_off_t = yes; then
5826 :
5827else
5828
5829cat >>confdefs.h <<_ACEOF
5830#define off_t long
5831_ACEOF
5832
5833fi
5834
5835echo "$as_me:$LINENO: checking for size_t" >&5
5836echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5837if test "${ac_cv_type_size_t+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5839else
5840 cat >conftest.$ac_ext <<_ACEOF
5841/* confdefs.h. */
5842_ACEOF
5843cat confdefs.h >>conftest.$ac_ext
5844cat >>conftest.$ac_ext <<_ACEOF
5845/* end confdefs.h. */
5846$ac_includes_default
5847int
5848main ()
5849{
5850if ((size_t *) 0)
5851 return 0;
5852if (sizeof (size_t))
5853 return 0;
5854 ;
5855 return 0;
5856}
5857_ACEOF
5858rm -f conftest.$ac_objext
5859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5860 (eval $ac_compile) 2>conftest.er1
5861 ac_status=$?
5862 grep -v '^ *+' conftest.er1 >conftest.err
5863 rm -f conftest.er1
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -z "$ac_cxx_werror_flag"
5868 || test ! -s conftest.err'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try='test -s conftest.$ac_objext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5880 ac_cv_type_size_t=yes
5881else
5882 echo "$as_me: failed program was:" >&5
5883sed 's/^/| /' conftest.$ac_ext >&5
5884
5885ac_cv_type_size_t=no
5886fi
5887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5888fi
5889echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5890echo "${ECHO_T}$ac_cv_type_size_t" >&6
5891if test $ac_cv_type_size_t = yes; then
5892 :
5893else
5894
5895cat >>confdefs.h <<_ACEOF
5896#define size_t unsigned
5897_ACEOF
5898
5899fi
5900
5901
5902 echo "$as_me:$LINENO: checking for long long" >&5
5903echo $ECHO_N "checking for long long... $ECHO_C" >&6
5904if test "${ac_cv_type_long_long+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5906else
5907 cat >conftest.$ac_ext <<_ACEOF
5908/* confdefs.h. */
5909_ACEOF
5910cat confdefs.h >>conftest.$ac_ext
5911cat >>conftest.$ac_ext <<_ACEOF
5912/* end confdefs.h. */
5913long long ll = 1LL; int i = 63;
5914int
5915main ()
5916{
5917long long llmax = (long long) -1;
5918 return ll << i | ll >> i | llmax / ll | llmax % ll;
5919 ;
5920 return 0;
5921}
5922_ACEOF
5923rm -f conftest.$ac_objext conftest$ac_exeext
5924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5925 (eval $ac_link) 2>conftest.er1
5926 ac_status=$?
5927 grep -v '^ *+' conftest.er1 >conftest.err
5928 rm -f conftest.er1
5929 cat conftest.err >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } &&
5932 { ac_try='test -z "$ac_cxx_werror_flag"
5933 || test ! -s conftest.err'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 (eval $ac_try) 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; } &&
5939 { ac_try='test -s conftest$ac_exeext'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 (eval $ac_try) 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5945 ac_cv_type_long_long=yes
5946else
5947 echo "$as_me: failed program was:" >&5
5948sed 's/^/| /' conftest.$ac_ext >&5
5949
5950ac_cv_type_long_long=no
5951fi
5952rm -f conftest.err conftest.$ac_objext \
5953 conftest$ac_exeext conftest.$ac_ext
5954fi
5955echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5956echo "${ECHO_T}$ac_cv_type_long_long" >&6
5957 if test $ac_cv_type_long_long = yes; then
5958
5959cat >>confdefs.h <<\_ACEOF
5960#define HAVE_LONG_LONG 1
5961_ACEOF
5962
5963 fi
5964
5965
5966 echo "$as_me:$LINENO: checking for long double" >&5
5967echo $ECHO_N "checking for long double... $ECHO_C" >&6
5968if test "${gt_cv_c_long_double+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5970else
5971 if test "$GCC" = yes; then
5972 gt_cv_c_long_double=yes
5973 else
5974 cat >conftest.$ac_ext <<_ACEOF
5975/* confdefs.h. */
5976_ACEOF
5977cat confdefs.h >>conftest.$ac_ext
5978cat >>conftest.$ac_ext <<_ACEOF
5979/* end confdefs.h. */
5980
5981 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5982 long double foo = 0.0;
5983 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5984 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5985
5986int
5987main ()
5988{
5989
5990 ;
5991 return 0;
5992}
5993_ACEOF
5994rm -f conftest.$ac_objext
5995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5996 (eval $ac_compile) 2>conftest.er1
5997 ac_status=$?
5998 grep -v '^ *+' conftest.er1 >conftest.err
5999 rm -f conftest.er1
6000 cat conftest.err >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } &&
6003 { ac_try='test -z "$ac_cxx_werror_flag"
6004 || test ! -s conftest.err'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 (eval $ac_try) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; } &&
6010 { ac_try='test -s conftest.$ac_objext'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 gt_cv_c_long_double=yes
6017else
6018 echo "$as_me: failed program was:" >&5
6019sed 's/^/| /' conftest.$ac_ext >&5
6020
6021gt_cv_c_long_double=no
6022fi
6023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6024 fi
6025fi
6026echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
6027echo "${ECHO_T}$gt_cv_c_long_double" >&6
6028 if test $gt_cv_c_long_double = yes; then
6029
6030cat >>confdefs.h <<\_ACEOF
6031#define HAVE_LONG_DOUBLE 1
6032_ACEOF
6033
6034 fi
6035
6036
6037 echo "$as_me:$LINENO: checking for wchar_t" >&5
6038echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
6039if test "${gt_cv_c_wchar_t+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6041else
6042 cat >conftest.$ac_ext <<_ACEOF
6043/* confdefs.h. */
6044_ACEOF
6045cat confdefs.h >>conftest.$ac_ext
6046cat >>conftest.$ac_ext <<_ACEOF
6047/* end confdefs.h. */
6048#include <stddef.h>
6049 wchar_t foo = (wchar_t)'\0';
6050int
6051main ()
6052{
6053
6054 ;
6055 return 0;
6056}
6057_ACEOF
6058rm -f conftest.$ac_objext
6059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6060 (eval $ac_compile) 2>conftest.er1
6061 ac_status=$?
6062 grep -v '^ *+' conftest.er1 >conftest.err
6063 rm -f conftest.er1
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } &&
6067 { ac_try='test -z "$ac_cxx_werror_flag"
6068 || test ! -s conftest.err'
6069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070 (eval $ac_try) 2>&5
6071 ac_status=$?
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; } &&
6074 { ac_try='test -s conftest.$ac_objext'
6075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076 (eval $ac_try) 2>&5
6077 ac_status=$?
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); }; }; then
6080 gt_cv_c_wchar_t=yes
6081else
6082 echo "$as_me: failed program was:" >&5
6083sed 's/^/| /' conftest.$ac_ext >&5
6084
6085gt_cv_c_wchar_t=no
6086fi
6087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6088fi
6089echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
6090echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
6091 if test $gt_cv_c_wchar_t = yes; then
6092
6093cat >>confdefs.h <<\_ACEOF
6094#define HAVE_WCHAR_T 1
6095_ACEOF
6096
6097 fi
6098
6099
6100 echo "$as_me:$LINENO: checking for wint_t" >&5
6101echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
6102if test "${gt_cv_c_wint_t+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6104else
6105 cat >conftest.$ac_ext <<_ACEOF
6106/* confdefs.h. */
6107_ACEOF
6108cat confdefs.h >>conftest.$ac_ext
6109cat >>conftest.$ac_ext <<_ACEOF
6110/* end confdefs.h. */
6111#include <wchar.h>
6112 wint_t foo = (wchar_t)'\0';
6113int
6114main ()
6115{
6116
6117 ;
6118 return 0;
6119}
6120_ACEOF
6121rm -f conftest.$ac_objext
6122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6123 (eval $ac_compile) 2>conftest.er1
6124 ac_status=$?
6125 grep -v '^ *+' conftest.er1 >conftest.err
6126 rm -f conftest.er1
6127 cat conftest.err >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } &&
6130 { ac_try='test -z "$ac_cxx_werror_flag"
6131 || test ! -s conftest.err'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 (eval $ac_try) 2>&5
6134 ac_status=$?
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; } &&
6137 { ac_try='test -s conftest.$ac_objext'
6138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139 (eval $ac_try) 2>&5
6140 ac_status=$?
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; }; then
6143 gt_cv_c_wint_t=yes
6144else
6145 echo "$as_me: failed program was:" >&5
6146sed 's/^/| /' conftest.$ac_ext >&5
6147
6148gt_cv_c_wint_t=no
6149fi
6150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6151fi
6152echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
6153echo "${ECHO_T}$gt_cv_c_wint_t" >&6
6154 if test $gt_cv_c_wint_t = yes; then
6155
6156cat >>confdefs.h <<\_ACEOF
6157#define HAVE_WINT_T 1
6158_ACEOF
6159
6160 fi
6161
6162
6163 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6164echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6165if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6167else
6168 cat >conftest.$ac_ext <<_ACEOF
6169/* confdefs.h. */
6170_ACEOF
6171cat confdefs.h >>conftest.$ac_ext
6172cat >>conftest.$ac_ext <<_ACEOF
6173/* end confdefs.h. */
6174#include <sys/types.h>
6175#include <inttypes.h>
6176int
6177main ()
6178{
6179uintmax_t i = (uintmax_t) -1;
6180 ;
6181 return 0;
6182}
6183_ACEOF
6184rm -f conftest.$ac_objext
6185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6186 (eval $ac_compile) 2>conftest.er1
6187 ac_status=$?
6188 grep -v '^ *+' conftest.er1 >conftest.err
6189 rm -f conftest.er1
6190 cat conftest.err >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } &&
6193 { ac_try='test -z "$ac_cxx_werror_flag"
6194 || test ! -s conftest.err'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 (eval $ac_try) 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; } &&
6200 { ac_try='test -s conftest.$ac_objext'
6201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202 (eval $ac_try) 2>&5
6203 ac_status=$?
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
6206 jm_ac_cv_header_inttypes_h=yes
6207else
6208 echo "$as_me: failed program was:" >&5
6209sed 's/^/| /' conftest.$ac_ext >&5
6210
6211jm_ac_cv_header_inttypes_h=no
6212fi
6213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6214fi
6215echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6216echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
6217 if test $jm_ac_cv_header_inttypes_h = yes; then
6218
6219cat >>confdefs.h <<_ACEOF
6220#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6221_ACEOF
6222
6223 fi
6224
6225
6226 echo "$as_me:$LINENO: checking for stdint.h" >&5
6227echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
6228if test "${jm_ac_cv_header_stdint_h+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6230else
6231 cat >conftest.$ac_ext <<_ACEOF
6232/* confdefs.h. */
6233_ACEOF
6234cat confdefs.h >>conftest.$ac_ext
6235cat >>conftest.$ac_ext <<_ACEOF
6236/* end confdefs.h. */
6237#include <sys/types.h>
6238#include <stdint.h>
6239int
6240main ()
6241{
6242uintmax_t i = (uintmax_t) -1;
6243 ;
6244 return 0;
6245}
6246_ACEOF
6247rm -f conftest.$ac_objext
6248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6249 (eval $ac_compile) 2>conftest.er1
6250 ac_status=$?
6251 grep -v '^ *+' conftest.er1 >conftest.err
6252 rm -f conftest.er1
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } &&
6256 { ac_try='test -z "$ac_cxx_werror_flag"
6257 || test ! -s conftest.err'
6258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 (eval $ac_try) 2>&5
6260 ac_status=$?
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; } &&
6263 { ac_try='test -s conftest.$ac_objext'
6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 (eval $ac_try) 2>&5
6266 ac_status=$?
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; }; then
6269 jm_ac_cv_header_stdint_h=yes
6270else
6271 echo "$as_me: failed program was:" >&5
6272sed 's/^/| /' conftest.$ac_ext >&5
6273
6274jm_ac_cv_header_stdint_h=no
6275fi
6276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6277fi
6278echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6279echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
6280 if test $jm_ac_cv_header_stdint_h = yes; then
6281
6282cat >>confdefs.h <<_ACEOF
6283#define HAVE_STDINT_H_WITH_UINTMAX 1
6284_ACEOF
6285
6286 fi
6287
6288
6289
6290
6291 echo "$as_me:$LINENO: checking for intmax_t" >&5
6292echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
6293if test "${gt_cv_c_intmax_t+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6295else
6296 cat >conftest.$ac_ext <<_ACEOF
6297/* confdefs.h. */
6298_ACEOF
6299cat confdefs.h >>conftest.$ac_ext
6300cat >>conftest.$ac_ext <<_ACEOF
6301/* end confdefs.h. */
6302
6303#include <stddef.h>
6304#include <stdlib.h>
6305#if HAVE_STDINT_H_WITH_UINTMAX
6306#include <stdint.h>
6307#endif
6308#if HAVE_INTTYPES_H_WITH_UINTMAX
6309#include <inttypes.h>
6310#endif
6311
6312int
6313main ()
6314{
6315intmax_t x = -1;
6316 ;
6317 return 0;
6318}
6319_ACEOF
6320rm -f conftest.$ac_objext
6321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6322 (eval $ac_compile) 2>conftest.er1
6323 ac_status=$?
6324 grep -v '^ *+' conftest.er1 >conftest.err
6325 rm -f conftest.er1
6326 cat conftest.err >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } &&
6329 { ac_try='test -z "$ac_cxx_werror_flag"
6330 || test ! -s conftest.err'
6331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332 (eval $ac_try) 2>&5
6333 ac_status=$?
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; } &&
6336 { ac_try='test -s conftest.$ac_objext'
6337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338 (eval $ac_try) 2>&5
6339 ac_status=$?
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; }; then
6342 gt_cv_c_intmax_t=yes
6343else
6344 echo "$as_me: failed program was:" >&5
6345sed 's/^/| /' conftest.$ac_ext >&5
6346
6347gt_cv_c_intmax_t=no
6348fi
6349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6350fi
6351echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
6352echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
6353 if test $gt_cv_c_intmax_t = yes; then
6354
6355cat >>confdefs.h <<\_ACEOF
6356#define HAVE_INTMAX_T 1
6357_ACEOF
6358
6359 fi
6360
6361
6362
6363 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
6364echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
6365if test "${gt_cv_func_printf_posix+set}" = set; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6367else
6368
6369 if test "$cross_compiling" = yes; then
6370
6371 cat >conftest.$ac_ext <<_ACEOF
6372/* confdefs.h. */
6373_ACEOF
6374cat confdefs.h >>conftest.$ac_ext
6375cat >>conftest.$ac_ext <<_ACEOF
6376/* end confdefs.h. */
6377
6378#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6379 notposix
6380#endif
6381
6382_ACEOF
6383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6384 $EGREP "notposix" >/dev/null 2>&1; then
6385 gt_cv_func_printf_posix="guessing no"
6386else
6387 gt_cv_func_printf_posix="guessing yes"
6388fi
6389rm -f conftest*
6390
6391
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
6400#include <stdio.h>
6401#include <string.h>
6402/* The string "%2$d %1$d", with dollar characters protected from the shell's
6403 dollar expansion (possibly an autoconf bug). */
6404static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6405static char buf[100];
6406int main ()
6407{
6408 sprintf (buf, format, 33, 55);
6409 return (strcmp (buf, "55 33") != 0);
6410}
6411_ACEOF
6412rm -f conftest$ac_exeext
6413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6414 (eval $ac_link) 2>&5
6415 ac_status=$?
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 (eval $ac_try) 2>&5
6420 ac_status=$?
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; }; then
6423 gt_cv_func_printf_posix=yes
6424else
6425 echo "$as_me: program exited with status $ac_status" >&5
6426echo "$as_me: failed program was:" >&5
6427sed 's/^/| /' conftest.$ac_ext >&5
6428
6429( exit $ac_status )
6430gt_cv_func_printf_posix=no
6431fi
6432rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6433fi
6434
6435fi
6436echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6437echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
6438 case $gt_cv_func_printf_posix in
6439 *yes)
6440
6441cat >>confdefs.h <<\_ACEOF
6442#define HAVE_POSIX_PRINTF 1
6443_ACEOF
6444
6445 ;;
6446 esac
6447
6448# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6449# for constant arguments. Useless!
6450echo "$as_me:$LINENO: checking for working alloca.h" >&5
6451echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6452if test "${ac_cv_working_alloca_h+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6454else
6455 cat >conftest.$ac_ext <<_ACEOF
6456/* confdefs.h. */
6457_ACEOF
6458cat confdefs.h >>conftest.$ac_ext
6459cat >>conftest.$ac_ext <<_ACEOF
6460/* end confdefs.h. */
6461#include <alloca.h>
6462int
6463main ()
6464{
6465char *p = (char *) alloca (2 * sizeof (int));
6466 ;
6467 return 0;
6468}
6469_ACEOF
6470rm -f conftest.$ac_objext conftest$ac_exeext
6471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6472 (eval $ac_link) 2>conftest.er1
6473 ac_status=$?
6474 grep -v '^ *+' conftest.er1 >conftest.err
6475 rm -f conftest.er1
6476 cat conftest.err >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } &&
6479 { ac_try='test -z "$ac_cxx_werror_flag"
6480 || test ! -s conftest.err'
6481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482 (eval $ac_try) 2>&5
6483 ac_status=$?
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; } &&
6486 { ac_try='test -s conftest$ac_exeext'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 (eval $ac_try) 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }; then
6492 ac_cv_working_alloca_h=yes
6493else
6494 echo "$as_me: failed program was:" >&5
6495sed 's/^/| /' conftest.$ac_ext >&5
6496
6497ac_cv_working_alloca_h=no
6498fi
6499rm -f conftest.err conftest.$ac_objext \
6500 conftest$ac_exeext conftest.$ac_ext
6501fi
6502echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6503echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6504if test $ac_cv_working_alloca_h = yes; then
6505
6506cat >>confdefs.h <<\_ACEOF
6507#define HAVE_ALLOCA_H 1
6508_ACEOF
6509
6510fi
6511
6512echo "$as_me:$LINENO: checking for alloca" >&5
6513echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6514if test "${ac_cv_func_alloca_works+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6516else
6517 cat >conftest.$ac_ext <<_ACEOF
6518/* confdefs.h. */
6519_ACEOF
6520cat confdefs.h >>conftest.$ac_ext
6521cat >>conftest.$ac_ext <<_ACEOF
6522/* end confdefs.h. */
6523#ifdef __GNUC__
6524# define alloca __builtin_alloca
6525#else
6526# ifdef _MSC_VER
6527# include <malloc.h>
6528# define alloca _alloca
6529# else
6530# if HAVE_ALLOCA_H
6531# include <alloca.h>
6532# else
6533# ifdef _AIX
6534 #pragma alloca
6535# else
6536# ifndef alloca /* predefined by HP cc +Olibcalls */
6537char *alloca ();
6538# endif
6539# endif
6540# endif
6541# endif
6542#endif
6543
6544int
6545main ()
6546{
6547char *p = (char *) alloca (1);
6548 ;
6549 return 0;
6550}
6551_ACEOF
6552rm -f conftest.$ac_objext conftest$ac_exeext
6553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6554 (eval $ac_link) 2>conftest.er1
6555 ac_status=$?
6556 grep -v '^ *+' conftest.er1 >conftest.err
6557 rm -f conftest.er1
6558 cat conftest.err >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } &&
6561 { ac_try='test -z "$ac_cxx_werror_flag"
6562 || test ! -s conftest.err'
6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564 (eval $ac_try) 2>&5
6565 ac_status=$?
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; } &&
6568 { ac_try='test -s conftest$ac_exeext'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 (eval $ac_try) 2>&5
6571 ac_status=$?
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; }; then
6574 ac_cv_func_alloca_works=yes
6575else
6576 echo "$as_me: failed program was:" >&5
6577sed 's/^/| /' conftest.$ac_ext >&5
6578
6579ac_cv_func_alloca_works=no
6580fi
6581rm -f conftest.err conftest.$ac_objext \
6582 conftest$ac_exeext conftest.$ac_ext
6583fi
6584echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6585echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6586
6587if test $ac_cv_func_alloca_works = yes; then
6588
6589cat >>confdefs.h <<\_ACEOF
6590#define HAVE_ALLOCA 1
6591_ACEOF
6592
6593else
6594 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6595# that cause trouble. Some versions do not even contain alloca or
6596# contain a buggy version. If you still want to use their alloca,
6597# use ar to extract alloca.o from them instead of compiling alloca.c.
6598
6599ALLOCA=alloca.$ac_objext
6600
6601cat >>confdefs.h <<\_ACEOF
6602#define C_ALLOCA 1
6603_ACEOF
6604
6605
6606echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6607echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6608if test "${ac_cv_os_cray+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610else
6611 cat >conftest.$ac_ext <<_ACEOF
6612/* confdefs.h. */
6613_ACEOF
6614cat confdefs.h >>conftest.$ac_ext
6615cat >>conftest.$ac_ext <<_ACEOF
6616/* end confdefs.h. */
6617#if defined(CRAY) && ! defined(CRAY2)
6618webecray
6619#else
6620wenotbecray
6621#endif
6622
6623_ACEOF
6624if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6625 $EGREP "webecray" >/dev/null 2>&1; then
6626 ac_cv_os_cray=yes
6627else
6628 ac_cv_os_cray=no
6629fi
6630rm -f conftest*
6631
6632fi
6633echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6634echo "${ECHO_T}$ac_cv_os_cray" >&6
6635if test $ac_cv_os_cray = yes; then
6636 for ac_func in _getb67 GETB67 getb67; do
6637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6638echo "$as_me:$LINENO: checking for $ac_func" >&5
6639echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6640if eval "test \"\${$as_ac_var+set}\" = set"; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642else
6643 cat >conftest.$ac_ext <<_ACEOF
6644/* confdefs.h. */
6645_ACEOF
6646cat confdefs.h >>conftest.$ac_ext
6647cat >>conftest.$ac_ext <<_ACEOF
6648/* end confdefs.h. */
6649/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6651#define $ac_func innocuous_$ac_func
6652
6653/* System header to define __stub macros and hopefully few prototypes,
6654 which can conflict with char $ac_func (); below.
6655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6656 <limits.h> exists even on freestanding compilers. */
6657
6658#ifdef __STDC__
6659# include <limits.h>
6660#else
6661# include <assert.h>
6662#endif
6663
6664#undef $ac_func
6665
6666/* Override any gcc2 internal prototype to avoid an error. */
6667#ifdef __cplusplus
6668extern "C"
6669{
6670#endif
6671/* We use char because int might match the return type of a gcc2
6672 builtin and then its argument prototype would still apply. */
6673char $ac_func ();
6674/* The GNU C library defines this for functions which it implements
6675 to always fail with ENOSYS. Some functions are actually named
6676 something starting with __ and the normal name is an alias. */
6677#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6678choke me
6679#else
6680char (*f) () = $ac_func;
6681#endif
6682#ifdef __cplusplus
6683}
6684#endif
6685
6686int
6687main ()
6688{
6689return f != $ac_func;
6690 ;
6691 return 0;
6692}
6693_ACEOF
6694rm -f conftest.$ac_objext conftest$ac_exeext
6695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6696 (eval $ac_link) 2>conftest.er1
6697 ac_status=$?
6698 grep -v '^ *+' conftest.er1 >conftest.err
6699 rm -f conftest.er1
6700 cat conftest.err >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); } &&
6703 { ac_try='test -z "$ac_cxx_werror_flag"
6704 || test ! -s conftest.err'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706 (eval $ac_try) 2>&5
6707 ac_status=$?
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; } &&
6710 { ac_try='test -s conftest$ac_exeext'
6711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712 (eval $ac_try) 2>&5
6713 ac_status=$?
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); }; }; then
6716 eval "$as_ac_var=yes"
6717else
6718 echo "$as_me: failed program was:" >&5
6719sed 's/^/| /' conftest.$ac_ext >&5
6720
6721eval "$as_ac_var=no"
6722fi
6723rm -f conftest.err conftest.$ac_objext \
6724 conftest$ac_exeext conftest.$ac_ext
6725fi
6726echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6727echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6728if test `eval echo '${'$as_ac_var'}'` = yes; then
6729
6730cat >>confdefs.h <<_ACEOF
6731#define CRAY_STACKSEG_END $ac_func
6732_ACEOF
6733
6734 break
6735fi
6736
6737 done
6738fi
6739
6740echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6741echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6742if test "${ac_cv_c_stack_direction+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6744else
6745 if test "$cross_compiling" = yes; then
6746 ac_cv_c_stack_direction=0
6747else
6748 cat >conftest.$ac_ext <<_ACEOF
6749/* confdefs.h. */
6750_ACEOF
6751cat confdefs.h >>conftest.$ac_ext
6752cat >>conftest.$ac_ext <<_ACEOF
6753/* end confdefs.h. */
6754int
6755find_stack_direction ()
6756{
6757 static char *addr = 0;
6758 auto char dummy;
6759 if (addr == 0)
6760 {
6761 addr = &dummy;
6762 return find_stack_direction ();
6763 }
6764 else
6765 return (&dummy > addr) ? 1 : -1;
6766}
6767
6768int
6769main ()
6770{
6771 exit (find_stack_direction () < 0);
6772}
6773_ACEOF
6774rm -f conftest$ac_exeext
6775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6776 (eval $ac_link) 2>&5
6777 ac_status=$?
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781 (eval $ac_try) 2>&5
6782 ac_status=$?
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 ac_cv_c_stack_direction=1
6786else
6787 echo "$as_me: program exited with status $ac_status" >&5
6788echo "$as_me: failed program was:" >&5
6789sed 's/^/| /' conftest.$ac_ext >&5
6790
6791( exit $ac_status )
6792ac_cv_c_stack_direction=-1
6793fi
6794rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6795fi
6796fi
6797echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6798echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6799
6800cat >>confdefs.h <<_ACEOF
6801#define STACK_DIRECTION $ac_cv_c_stack_direction
6802_ACEOF
6803
6804
6805fi
6806
6807
6808
6809for ac_header in stdlib.h unistd.h
6810do
6811as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6812if eval "test \"\${$as_ac_Header+set}\" = set"; then
6813 echo "$as_me:$LINENO: checking for $ac_header" >&5
6814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6815if eval "test \"\${$as_ac_Header+set}\" = set"; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6817fi
6818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6819echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6820else
6821 # Is the header compilable?
6822echo "$as_me:$LINENO: checking $ac_header usability" >&5
6823echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6824cat >conftest.$ac_ext <<_ACEOF
6825/* confdefs.h. */
6826_ACEOF
6827cat confdefs.h >>conftest.$ac_ext
6828cat >>conftest.$ac_ext <<_ACEOF
6829/* end confdefs.h. */
6830$ac_includes_default
6831#include <$ac_header>
6832_ACEOF
6833rm -f conftest.$ac_objext
6834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6835 (eval $ac_compile) 2>conftest.er1
6836 ac_status=$?
6837 grep -v '^ *+' conftest.er1 >conftest.err
6838 rm -f conftest.er1
6839 cat conftest.err >&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } &&
6842 { ac_try='test -z "$ac_cxx_werror_flag"
6843 || test ! -s conftest.err'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 (eval $ac_try) 2>&5
6846 ac_status=$?
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; } &&
6849 { ac_try='test -s conftest.$ac_objext'
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851 (eval $ac_try) 2>&5
6852 ac_status=$?
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
6855 ac_header_compiler=yes
6856else
6857 echo "$as_me: failed program was:" >&5
6858sed 's/^/| /' conftest.$ac_ext >&5
6859
6860ac_header_compiler=no
6861fi
6862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6863echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6864echo "${ECHO_T}$ac_header_compiler" >&6
6865
6866# Is the header present?
6867echo "$as_me:$LINENO: checking $ac_header presence" >&5
6868echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6869cat >conftest.$ac_ext <<_ACEOF
6870/* confdefs.h. */
6871_ACEOF
6872cat confdefs.h >>conftest.$ac_ext
6873cat >>conftest.$ac_ext <<_ACEOF
6874/* end confdefs.h. */
6875#include <$ac_header>
6876_ACEOF
6877if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6879 ac_status=$?
6880 grep -v '^ *+' conftest.er1 >conftest.err
6881 rm -f conftest.er1
6882 cat conftest.err >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } >/dev/null; then
6885 if test -s conftest.err; then
6886 ac_cpp_err=$ac_cxx_preproc_warn_flag
6887 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6888 else
6889 ac_cpp_err=
6890 fi
6891else
6892 ac_cpp_err=yes
6893fi
6894if test -z "$ac_cpp_err"; then
6895 ac_header_preproc=yes
6896else
6897 echo "$as_me: failed program was:" >&5
6898sed 's/^/| /' conftest.$ac_ext >&5
6899
6900 ac_header_preproc=no
6901fi
6902rm -f conftest.err conftest.$ac_ext
6903echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6904echo "${ECHO_T}$ac_header_preproc" >&6
6905
6906# So? What about this header?
6907case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6908 yes:no: )
6909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6910echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6912echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6913 ac_header_preproc=yes
6914 ;;
6915 no:yes:* )
6916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6917echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6919echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6921echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6923echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6925echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6927echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6928 (
6929 cat <<\_ASBOX
6930## ------------------------------------------ ##
6931## Report this to the AC_PACKAGE_NAME lists. ##
6932## ------------------------------------------ ##
6933_ASBOX
6934 ) |
6935 sed "s/^/$as_me: WARNING: /" >&2
6936 ;;
6937esac
6938echo "$as_me:$LINENO: checking for $ac_header" >&5
6939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6940if eval "test \"\${$as_ac_Header+set}\" = set"; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942else
6943 eval "$as_ac_Header=\$ac_header_preproc"
6944fi
6945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6946echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6947
6948fi
6949if test `eval echo '${'$as_ac_Header'}'` = yes; then
6950 cat >>confdefs.h <<_ACEOF
6951#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6952_ACEOF
6953
6954fi
6955
6956done
6957
6958
6959for ac_func in getpagesize
6960do
6961as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6962echo "$as_me:$LINENO: checking for $ac_func" >&5
6963echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6964if eval "test \"\${$as_ac_var+set}\" = set"; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6966else
6967 cat >conftest.$ac_ext <<_ACEOF
6968/* confdefs.h. */
6969_ACEOF
6970cat confdefs.h >>conftest.$ac_ext
6971cat >>conftest.$ac_ext <<_ACEOF
6972/* end confdefs.h. */
6973/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6975#define $ac_func innocuous_$ac_func
6976
6977/* System header to define __stub macros and hopefully few prototypes,
6978 which can conflict with char $ac_func (); below.
6979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6980 <limits.h> exists even on freestanding compilers. */
6981
6982#ifdef __STDC__
6983# include <limits.h>
6984#else
6985# include <assert.h>
6986#endif
6987
6988#undef $ac_func
6989
6990/* Override any gcc2 internal prototype to avoid an error. */
6991#ifdef __cplusplus
6992extern "C"
6993{
6994#endif
6995/* We use char because int might match the return type of a gcc2
6996 builtin and then its argument prototype would still apply. */
6997char $ac_func ();
6998/* The GNU C library defines this for functions which it implements
6999 to always fail with ENOSYS. Some functions are actually named
7000 something starting with __ and the normal name is an alias. */
7001#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7002choke me
7003#else
7004char (*f) () = $ac_func;
7005#endif
7006#ifdef __cplusplus
7007}
7008#endif
7009
7010int
7011main ()
7012{
7013return f != $ac_func;
7014 ;
7015 return 0;
7016}
7017_ACEOF
7018rm -f conftest.$ac_objext conftest$ac_exeext
7019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7020 (eval $ac_link) 2>conftest.er1
7021 ac_status=$?
7022 grep -v '^ *+' conftest.er1 >conftest.err
7023 rm -f conftest.er1
7024 cat conftest.err >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); } &&
7027 { ac_try='test -z "$ac_cxx_werror_flag"
7028 || test ! -s conftest.err'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 (eval $ac_try) 2>&5
7031 ac_status=$?
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; } &&
7034 { ac_try='test -s conftest$ac_exeext'
7035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 (eval $ac_try) 2>&5
7037 ac_status=$?
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; }; then
7040 eval "$as_ac_var=yes"
7041else
7042 echo "$as_me: failed program was:" >&5
7043sed 's/^/| /' conftest.$ac_ext >&5
7044
7045eval "$as_ac_var=no"
7046fi
7047rm -f conftest.err conftest.$ac_objext \
7048 conftest$ac_exeext conftest.$ac_ext
7049fi
7050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7051echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7052if test `eval echo '${'$as_ac_var'}'` = yes; then
7053 cat >>confdefs.h <<_ACEOF
7054#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7055_ACEOF
7056
7057fi
7058done
7059
7060echo "$as_me:$LINENO: checking for working mmap" >&5
7061echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7062if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7064else
7065 if test "$cross_compiling" = yes; then
7066 ac_cv_func_mmap_fixed_mapped=no
7067else
7068 cat >conftest.$ac_ext <<_ACEOF
7069/* confdefs.h. */
7070_ACEOF
7071cat confdefs.h >>conftest.$ac_ext
7072cat >>conftest.$ac_ext <<_ACEOF
7073/* end confdefs.h. */
7074$ac_includes_default
7075/* malloc might have been renamed as rpl_malloc. */
7076#undef malloc
7077
7078/* Thanks to Mike Haertel and Jim Avera for this test.
7079 Here is a matrix of mmap possibilities:
7080 mmap private not fixed
7081 mmap private fixed at somewhere currently unmapped
7082 mmap private fixed at somewhere already mapped
7083 mmap shared not fixed
7084 mmap shared fixed at somewhere currently unmapped
7085 mmap shared fixed at somewhere already mapped
7086 For private mappings, we should verify that changes cannot be read()
7087 back from the file, nor mmap's back from the file at a different
7088 address. (There have been systems where private was not correctly
7089 implemented like the infamous i386 svr4.0, and systems where the
7090 VM page cache was not coherent with the file system buffer cache
7091 like early versions of FreeBSD and possibly contemporary NetBSD.)
7092 For shared mappings, we should conversely verify that changes get
7093 propagated back to all the places they're supposed to be.
7094
7095 Grep wants private fixed already mapped.
7096 The main things grep needs to know about mmap are:
7097 * does it exist and is it safe to write into the mmap'd area
7098 * how to use it (BSD variants) */
7099
7100#include <fcntl.h>
7101#include <sys/mman.h>
7102
7103#if !STDC_HEADERS && !HAVE_STDLIB_H
7104char *malloc ();
7105#endif
7106
7107/* This mess was copied from the GNU getpagesize.h. */
7108#if !HAVE_GETPAGESIZE
7109/* Assume that all systems that can run configure have sys/param.h. */
7110# if !HAVE_SYS_PARAM_H
7111# define HAVE_SYS_PARAM_H 1
7112# endif
7113
7114# ifdef _SC_PAGESIZE
7115# define getpagesize() sysconf(_SC_PAGESIZE)
7116# else /* no _SC_PAGESIZE */
7117# if HAVE_SYS_PARAM_H
7118# include <sys/param.h>
7119# ifdef EXEC_PAGESIZE
7120# define getpagesize() EXEC_PAGESIZE
7121# else /* no EXEC_PAGESIZE */
7122# ifdef NBPG
7123# define getpagesize() NBPG * CLSIZE
7124# ifndef CLSIZE
7125# define CLSIZE 1
7126# endif /* no CLSIZE */
7127# else /* no NBPG */
7128# ifdef NBPC
7129# define getpagesize() NBPC
7130# else /* no NBPC */
7131# ifdef PAGESIZE
7132# define getpagesize() PAGESIZE
7133# endif /* PAGESIZE */
7134# endif /* no NBPC */
7135# endif /* no NBPG */
7136# endif /* no EXEC_PAGESIZE */
7137# else /* no HAVE_SYS_PARAM_H */
7138# define getpagesize() 8192 /* punt totally */
7139# endif /* no HAVE_SYS_PARAM_H */
7140# endif /* no _SC_PAGESIZE */
7141
7142#endif /* no HAVE_GETPAGESIZE */
7143
7144int
7145main ()
7146{
7147 char *data, *data2, *data3;
7148 int i, pagesize;
7149 int fd;
7150
7151 pagesize = getpagesize ();
7152
7153 /* First, make a file with some known garbage in it. */
7154 data = (char *) malloc (pagesize);
7155 if (!data)
7156 exit (1);
7157 for (i = 0; i < pagesize; ++i)
7158 *(data + i) = rand ();
7159 umask (0);
7160 fd = creat ("conftest.mmap", 0600);
7161 if (fd < 0)
7162 exit (1);
7163 if (write (fd, data, pagesize) != pagesize)
7164 exit (1);
7165 close (fd);
7166
7167 /* Next, try to mmap the file at a fixed address which already has
7168 something else allocated at it. If we can, also make sure that
7169 we see the same garbage. */
7170 fd = open ("conftest.mmap", O_RDWR);
7171 if (fd < 0)
7172 exit (1);
7173 data2 = (char *) malloc (2 * pagesize);
7174 if (!data2)
7175 exit (1);
7176 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
7177 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7178 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7179 exit (1);
7180 for (i = 0; i < pagesize; ++i)
7181 if (*(data + i) != *(data2 + i))
7182 exit (1);
7183
7184 /* Finally, make sure that changes to the mapped area do not
7185 percolate back to the file as seen by read(). (This is a bug on
7186 some variants of i386 svr4.0.) */
7187 for (i = 0; i < pagesize; ++i)
7188 *(data2 + i) = *(data2 + i) + 1;
7189 data3 = (char *) malloc (pagesize);
7190 if (!data3)
7191 exit (1);
7192 if (read (fd, data3, pagesize) != pagesize)
7193 exit (1);
7194 for (i = 0; i < pagesize; ++i)
7195 if (*(data + i) != *(data3 + i))
7196 exit (1);
7197 close (fd);
7198 exit (0);
7199}
7200_ACEOF
7201rm -f conftest$ac_exeext
7202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7203 (eval $ac_link) 2>&5
7204 ac_status=$?
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 (eval $ac_try) 2>&5
7209 ac_status=$?
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; }; then
7212 ac_cv_func_mmap_fixed_mapped=yes
7213else
7214 echo "$as_me: program exited with status $ac_status" >&5
7215echo "$as_me: failed program was:" >&5
7216sed 's/^/| /' conftest.$ac_ext >&5
7217
7218( exit $ac_status )
7219ac_cv_func_mmap_fixed_mapped=no
7220fi
7221rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7222fi
7223fi
7224echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7225echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7226if test $ac_cv_func_mmap_fixed_mapped = yes; then
7227
7228cat >>confdefs.h <<\_ACEOF
7229#define HAVE_MMAP 1
7230_ACEOF
7231
7232fi
7233rm -f conftest.mmap
7234
7235
7236 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7237echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7238if test "${ac_cv_gnu_library_2_1+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7240else
7241 cat >conftest.$ac_ext <<_ACEOF
7242/* confdefs.h. */
7243_ACEOF
7244cat confdefs.h >>conftest.$ac_ext
7245cat >>conftest.$ac_ext <<_ACEOF
7246/* end confdefs.h. */
7247
7248#include <features.h>
7249#ifdef __GNU_LIBRARY__
7250 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7251 Lucky GNU user
7252 #endif
7253#endif
7254
7255_ACEOF
7256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7257 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7258 ac_cv_gnu_library_2_1=yes
7259else
7260 ac_cv_gnu_library_2_1=no
7261fi
7262rm -f conftest*
7263
7264
7265
7266fi
7267echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7268echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7269
7270 GLIBC21="$ac_cv_gnu_library_2_1"
7271
7272
7273
7274
7275 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
7276echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
7277if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7279else
7280
7281 if test "$cross_compiling" = yes; then
7282
7283 # Guess based on the CPU.
7284 case "$host_cpu" in
7285 alpha* | i3456786 | m68k | s390*)
7286 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7287 *)
7288 gt_cv_int_divbyzero_sigfpe="guessing no";;
7289 esac
7290
7291else
7292 cat >conftest.$ac_ext <<_ACEOF
7293/* confdefs.h. */
7294_ACEOF
7295cat confdefs.h >>conftest.$ac_ext
7296cat >>conftest.$ac_ext <<_ACEOF
7297/* end confdefs.h. */
7298
7299#include <stdlib.h>
7300#include <signal.h>
7301
7302static void
7303#ifdef __cplusplus
7304sigfpe_handler (int sig)
7305#else
7306sigfpe_handler (sig) int sig;
7307#endif
7308{
7309 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7310 exit (sig != SIGFPE);
7311}
7312
7313int x = 1;
7314int y = 0;
7315int z;
7316int nan;
7317
7318int main ()
7319{
7320 signal (SIGFPE, sigfpe_handler);
7321/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7322#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7323 signal (SIGTRAP, sigfpe_handler);
7324#endif
7325/* Linux/SPARC yields signal SIGILL. */
7326#if defined (__sparc__) && defined (__linux__)
7327 signal (SIGILL, sigfpe_handler);
7328#endif
7329
7330 z = x / y;
7331 nan = y / y;
7332 exit (1);
7333}
7334
7335_ACEOF
7336rm -f conftest$ac_exeext
7337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7338 (eval $ac_link) 2>&5
7339 ac_status=$?
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7343 (eval $ac_try) 2>&5
7344 ac_status=$?
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); }; }; then
7347 gt_cv_int_divbyzero_sigfpe=yes
7348else
7349 echo "$as_me: program exited with status $ac_status" >&5
7350echo "$as_me: failed program was:" >&5
7351sed 's/^/| /' conftest.$ac_ext >&5
7352
7353( exit $ac_status )
7354gt_cv_int_divbyzero_sigfpe=no
7355fi
7356rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7357fi
7358
7359fi
7360echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7361echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
7362 case "$gt_cv_int_divbyzero_sigfpe" in
7363 *yes) value=1;;
7364 *) value=0;;
7365 esac
7366
7367cat >>confdefs.h <<_ACEOF
7368#define INTDIV0_RAISES_SIGFPE $value
7369_ACEOF
7370
7371
7372
7373 echo "$as_me:$LINENO: checking for unsigned long long" >&5
7374echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7375if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7377else
7378 cat >conftest.$ac_ext <<_ACEOF
7379/* confdefs.h. */
7380_ACEOF
7381cat confdefs.h >>conftest.$ac_ext
7382cat >>conftest.$ac_ext <<_ACEOF
7383/* end confdefs.h. */
7384unsigned long long ull = 1ULL; int i = 63;
7385int
7386main ()
7387{
7388unsigned long long ullmax = (unsigned long long) -1;
7389 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7390 ;
7391 return 0;
7392}
7393_ACEOF
7394rm -f conftest.$ac_objext conftest$ac_exeext
7395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7396 (eval $ac_link) 2>conftest.er1
7397 ac_status=$?
7398 grep -v '^ *+' conftest.er1 >conftest.err
7399 rm -f conftest.er1
7400 cat conftest.err >&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } &&
7403 { ac_try='test -z "$ac_cxx_werror_flag"
7404 || test ! -s conftest.err'
7405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 (eval $ac_try) 2>&5
7407 ac_status=$?
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); }; } &&
7410 { ac_try='test -s conftest$ac_exeext'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 (eval $ac_try) 2>&5
7413 ac_status=$?
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; }; then
7416 ac_cv_type_unsigned_long_long=yes
7417else
7418 echo "$as_me: failed program was:" >&5
7419sed 's/^/| /' conftest.$ac_ext >&5
7420
7421ac_cv_type_unsigned_long_long=no
7422fi
7423rm -f conftest.err conftest.$ac_objext \
7424 conftest$ac_exeext conftest.$ac_ext
7425fi
7426echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7427echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
7428 if test $ac_cv_type_unsigned_long_long = yes; then
7429
7430cat >>confdefs.h <<\_ACEOF
7431#define HAVE_UNSIGNED_LONG_LONG 1
7432_ACEOF
7433
7434 fi
7435
7436
7437
7438
7439 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7440
7441 test $ac_cv_type_unsigned_long_long = yes \
7442 && ac_type='unsigned long long' \
7443 || ac_type='unsigned long'
7444
7445cat >>confdefs.h <<_ACEOF
7446#define uintmax_t $ac_type
7447_ACEOF
7448
7449 else
7450
7451cat >>confdefs.h <<\_ACEOF
7452#define HAVE_UINTMAX_T 1
7453_ACEOF
7454
7455 fi
7456
7457
7458 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7459echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7460if test "${gt_cv_header_inttypes_h+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7462else
7463
7464 cat >conftest.$ac_ext <<_ACEOF
7465/* confdefs.h. */
7466_ACEOF
7467cat confdefs.h >>conftest.$ac_ext
7468cat >>conftest.$ac_ext <<_ACEOF
7469/* end confdefs.h. */
7470#include <sys/types.h>
7471#include <inttypes.h>
7472int
7473main ()
7474{
7475
7476 ;
7477 return 0;
7478}
7479_ACEOF
7480rm -f conftest.$ac_objext
7481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7482 (eval $ac_compile) 2>conftest.er1
7483 ac_status=$?
7484 grep -v '^ *+' conftest.er1 >conftest.err
7485 rm -f conftest.er1
7486 cat conftest.err >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } &&
7489 { ac_try='test -z "$ac_cxx_werror_flag"
7490 || test ! -s conftest.err'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492 (eval $ac_try) 2>&5
7493 ac_status=$?
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; } &&
7496 { ac_try='test -s conftest.$ac_objext'
7497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498 (eval $ac_try) 2>&5
7499 ac_status=$?
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); }; }; then
7502 gt_cv_header_inttypes_h=yes
7503else
7504 echo "$as_me: failed program was:" >&5
7505sed 's/^/| /' conftest.$ac_ext >&5
7506
7507gt_cv_header_inttypes_h=no
7508fi
7509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7510
7511fi
7512echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7513echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
7514 if test $gt_cv_header_inttypes_h = yes; then
7515
7516cat >>confdefs.h <<_ACEOF
7517#define HAVE_INTTYPES_H 1
7518_ACEOF
7519
7520 fi
7521
7522
7523
7524 if test $gt_cv_header_inttypes_h = yes; then
7525 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7526echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
7527if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7529else
7530
7531 cat >conftest.$ac_ext <<_ACEOF
7532/* confdefs.h. */
7533_ACEOF
7534cat confdefs.h >>conftest.$ac_ext
7535cat >>conftest.$ac_ext <<_ACEOF
7536/* end confdefs.h. */
7537#include <inttypes.h>
7538#ifdef PRId32
7539char *p = PRId32;
7540#endif
7541
7542int
7543main ()
7544{
7545
7546 ;
7547 return 0;
7548}
7549_ACEOF
7550rm -f conftest.$ac_objext
7551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7552 (eval $ac_compile) 2>conftest.er1
7553 ac_status=$?
7554 grep -v '^ *+' conftest.er1 >conftest.err
7555 rm -f conftest.er1
7556 cat conftest.err >&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } &&
7559 { ac_try='test -z "$ac_cxx_werror_flag"
7560 || test ! -s conftest.err'
7561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562 (eval $ac_try) 2>&5
7563 ac_status=$?
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); }; } &&
7566 { ac_try='test -s conftest.$ac_objext'
7567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7568 (eval $ac_try) 2>&5
7569 ac_status=$?
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); }; }; then
7572 gt_cv_inttypes_pri_broken=no
7573else
7574 echo "$as_me: failed program was:" >&5
7575sed 's/^/| /' conftest.$ac_ext >&5
7576
7577gt_cv_inttypes_pri_broken=yes
7578fi
7579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7580
7581fi
7582echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7583echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
7584 fi
7585 if test "$gt_cv_inttypes_pri_broken" = yes; then
7586
7587cat >>confdefs.h <<_ACEOF
7588#define PRI_MACROS_BROKEN 1
7589_ACEOF
7590
7591 fi
7592
7593
7594
7595for ac_header in stdint.h
7596do
7597as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7598if eval "test \"\${$as_ac_Header+set}\" = set"; then
7599 echo "$as_me:$LINENO: checking for $ac_header" >&5
7600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7601if eval "test \"\${$as_ac_Header+set}\" = set"; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7603fi
7604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7606else
7607 # Is the header compilable?
7608echo "$as_me:$LINENO: checking $ac_header usability" >&5
7609echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7610cat >conftest.$ac_ext <<_ACEOF
7611/* confdefs.h. */
7612_ACEOF
7613cat confdefs.h >>conftest.$ac_ext
7614cat >>conftest.$ac_ext <<_ACEOF
7615/* end confdefs.h. */
7616$ac_includes_default
7617#include <$ac_header>
7618_ACEOF
7619rm -f conftest.$ac_objext
7620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7621 (eval $ac_compile) 2>conftest.er1
7622 ac_status=$?
7623 grep -v '^ *+' conftest.er1 >conftest.err
7624 rm -f conftest.er1
7625 cat conftest.err >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } &&
7628 { ac_try='test -z "$ac_cxx_werror_flag"
7629 || test ! -s conftest.err'
7630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631 (eval $ac_try) 2>&5
7632 ac_status=$?
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); }; } &&
7635 { ac_try='test -s conftest.$ac_objext'
7636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 (eval $ac_try) 2>&5
7638 ac_status=$?
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; }; then
7641 ac_header_compiler=yes
7642else
7643 echo "$as_me: failed program was:" >&5
7644sed 's/^/| /' conftest.$ac_ext >&5
7645
7646ac_header_compiler=no
7647fi
7648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7649echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7650echo "${ECHO_T}$ac_header_compiler" >&6
7651
7652# Is the header present?
7653echo "$as_me:$LINENO: checking $ac_header presence" >&5
7654echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7655cat >conftest.$ac_ext <<_ACEOF
7656/* confdefs.h. */
7657_ACEOF
7658cat confdefs.h >>conftest.$ac_ext
7659cat >>conftest.$ac_ext <<_ACEOF
7660/* end confdefs.h. */
7661#include <$ac_header>
7662_ACEOF
7663if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7665 ac_status=$?
7666 grep -v '^ *+' conftest.er1 >conftest.err
7667 rm -f conftest.er1
7668 cat conftest.err >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } >/dev/null; then
7671 if test -s conftest.err; then
7672 ac_cpp_err=$ac_cxx_preproc_warn_flag
7673 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7674 else
7675 ac_cpp_err=
7676 fi
7677else
7678 ac_cpp_err=yes
7679fi
7680if test -z "$ac_cpp_err"; then
7681 ac_header_preproc=yes
7682else
7683 echo "$as_me: failed program was:" >&5
7684sed 's/^/| /' conftest.$ac_ext >&5
7685
7686 ac_header_preproc=no
7687fi
7688rm -f conftest.err conftest.$ac_ext
7689echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7690echo "${ECHO_T}$ac_header_preproc" >&6
7691
7692# So? What about this header?
7693case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7694 yes:no: )
7695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7696echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7698echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7699 ac_header_preproc=yes
7700 ;;
7701 no:yes:* )
7702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7703echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7705echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7706 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7707echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7708 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7709echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7711echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7712 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7713echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7714 (
7715 cat <<\_ASBOX
7716## ------------------------------------------ ##
7717## Report this to the AC_PACKAGE_NAME lists. ##
7718## ------------------------------------------ ##
7719_ASBOX
7720 ) |
7721 sed "s/^/$as_me: WARNING: /" >&2
7722 ;;
7723esac
7724echo "$as_me:$LINENO: checking for $ac_header" >&5
7725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7726if eval "test \"\${$as_ac_Header+set}\" = set"; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7728else
7729 eval "$as_ac_Header=\$ac_header_preproc"
7730fi
7731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7732echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7733
7734fi
7735if test `eval echo '${'$as_ac_Header'}'` = yes; then
7736 cat >>confdefs.h <<_ACEOF
7737#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7738_ACEOF
7739
7740fi
7741
7742done
7743
7744 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7745echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
7746 result=
7747 cat >conftest.$ac_ext <<_ACEOF
7748/* confdefs.h. */
7749_ACEOF
7750cat confdefs.h >>conftest.$ac_ext
7751cat >>conftest.$ac_ext <<_ACEOF
7752/* end confdefs.h. */
7753
7754#include <limits.h>
7755#if HAVE_STDINT_H
7756#include <stdint.h>
7757#endif
7758#ifdef SIZE_MAX
7759Found it
7760#endif
7761
7762_ACEOF
7763if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7764 $EGREP "Found it" >/dev/null 2>&1; then
7765 result=yes
7766fi
7767rm -f conftest*
7768
7769 if test -z "$result"; then
7770 if test "$cross_compiling" = yes; then
7771 # Depending upon the size, compute the lo and hi bounds.
7772cat >conftest.$ac_ext <<_ACEOF
7773/* confdefs.h. */
7774_ACEOF
7775cat confdefs.h >>conftest.$ac_ext
7776cat >>conftest.$ac_ext <<_ACEOF
7777/* end confdefs.h. */
7778#include <stddef.h>
7779int
7780main ()
7781{
7782static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7783test_array [0] = 0
7784
7785 ;
7786 return 0;
7787}
7788_ACEOF
7789rm -f conftest.$ac_objext
7790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7791 (eval $ac_compile) 2>conftest.er1
7792 ac_status=$?
7793 grep -v '^ *+' conftest.er1 >conftest.err
7794 rm -f conftest.er1
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } &&
7798 { ac_try='test -z "$ac_cxx_werror_flag"
7799 || test ! -s conftest.err'
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 (eval $ac_try) 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; } &&
7805 { ac_try='test -s conftest.$ac_objext'
7806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 (eval $ac_try) 2>&5
7808 ac_status=$?
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }; }; then
7811 ac_lo=0 ac_mid=0
7812 while :; do
7813 cat >conftest.$ac_ext <<_ACEOF
7814/* confdefs.h. */
7815_ACEOF
7816cat confdefs.h >>conftest.$ac_ext
7817cat >>conftest.$ac_ext <<_ACEOF
7818/* end confdefs.h. */
7819#include <stddef.h>
7820int
7821main ()
7822{
7823static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7824test_array [0] = 0
7825
7826 ;
7827 return 0;
7828}
7829_ACEOF
7830rm -f conftest.$ac_objext
7831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7832 (eval $ac_compile) 2>conftest.er1
7833 ac_status=$?
7834 grep -v '^ *+' conftest.er1 >conftest.err
7835 rm -f conftest.er1
7836 cat conftest.err >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } &&
7839 { ac_try='test -z "$ac_cxx_werror_flag"
7840 || test ! -s conftest.err'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 (eval $ac_try) 2>&5
7843 ac_status=$?
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; } &&
7846 { ac_try='test -s conftest.$ac_objext'
7847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848 (eval $ac_try) 2>&5
7849 ac_status=$?
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; }; then
7852 ac_hi=$ac_mid; break
7853else
7854 echo "$as_me: failed program was:" >&5
7855sed 's/^/| /' conftest.$ac_ext >&5
7856
7857ac_lo=`expr $ac_mid + 1`
7858 if test $ac_lo -le $ac_mid; then
7859 ac_lo= ac_hi=
7860 break
7861 fi
7862 ac_mid=`expr 2 '*' $ac_mid + 1`
7863fi
7864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7865 done
7866else
7867 echo "$as_me: failed program was:" >&5
7868sed 's/^/| /' conftest.$ac_ext >&5
7869
7870cat >conftest.$ac_ext <<_ACEOF
7871/* confdefs.h. */
7872_ACEOF
7873cat confdefs.h >>conftest.$ac_ext
7874cat >>conftest.$ac_ext <<_ACEOF
7875/* end confdefs.h. */
7876#include <stddef.h>
7877int
7878main ()
7879{
7880static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7881test_array [0] = 0
7882
7883 ;
7884 return 0;
7885}
7886_ACEOF
7887rm -f conftest.$ac_objext
7888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7889 (eval $ac_compile) 2>conftest.er1
7890 ac_status=$?
7891 grep -v '^ *+' conftest.er1 >conftest.err
7892 rm -f conftest.er1
7893 cat conftest.err >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } &&
7896 { ac_try='test -z "$ac_cxx_werror_flag"
7897 || test ! -s conftest.err'
7898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899 (eval $ac_try) 2>&5
7900 ac_status=$?
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; } &&
7903 { ac_try='test -s conftest.$ac_objext'
7904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905 (eval $ac_try) 2>&5
7906 ac_status=$?
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); }; }; then
7909 ac_hi=-1 ac_mid=-1
7910 while :; do
7911 cat >conftest.$ac_ext <<_ACEOF
7912/* confdefs.h. */
7913_ACEOF
7914cat confdefs.h >>conftest.$ac_ext
7915cat >>conftest.$ac_ext <<_ACEOF
7916/* end confdefs.h. */
7917#include <stddef.h>
7918int
7919main ()
7920{
7921static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7922test_array [0] = 0
7923
7924 ;
7925 return 0;
7926}
7927_ACEOF
7928rm -f conftest.$ac_objext
7929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7930 (eval $ac_compile) 2>conftest.er1
7931 ac_status=$?
7932 grep -v '^ *+' conftest.er1 >conftest.err
7933 rm -f conftest.er1
7934 cat conftest.err >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } &&
7937 { ac_try='test -z "$ac_cxx_werror_flag"
7938 || test ! -s conftest.err'
7939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940 (eval $ac_try) 2>&5
7941 ac_status=$?
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; } &&
7944 { ac_try='test -s conftest.$ac_objext'
7945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946 (eval $ac_try) 2>&5
7947 ac_status=$?
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); }; }; then
7950 ac_lo=$ac_mid; break
7951else
7952 echo "$as_me: failed program was:" >&5
7953sed 's/^/| /' conftest.$ac_ext >&5
7954
7955ac_hi=`expr '(' $ac_mid ')' - 1`
7956 if test $ac_mid -le $ac_hi; then
7957 ac_lo= ac_hi=
7958 break
7959 fi
7960 ac_mid=`expr 2 '*' $ac_mid`
7961fi
7962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7963 done
7964else
7965 echo "$as_me: failed program was:" >&5
7966sed 's/^/| /' conftest.$ac_ext >&5
7967
7968ac_lo= ac_hi=
7969fi
7970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7971fi
7972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7973# Binary search between lo and hi bounds.
7974while test "x$ac_lo" != "x$ac_hi"; do
7975 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7976 cat >conftest.$ac_ext <<_ACEOF
7977/* confdefs.h. */
7978_ACEOF
7979cat confdefs.h >>conftest.$ac_ext
7980cat >>conftest.$ac_ext <<_ACEOF
7981/* end confdefs.h. */
7982#include <stddef.h>
7983int
7984main ()
7985{
7986static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7987test_array [0] = 0
7988
7989 ;
7990 return 0;
7991}
7992_ACEOF
7993rm -f conftest.$ac_objext
7994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7995 (eval $ac_compile) 2>conftest.er1
7996 ac_status=$?
7997 grep -v '^ *+' conftest.er1 >conftest.err
7998 rm -f conftest.er1
7999 cat conftest.err >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } &&
8002 { ac_try='test -z "$ac_cxx_werror_flag"
8003 || test ! -s conftest.err'
8004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005 (eval $ac_try) 2>&5
8006 ac_status=$?
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); }; } &&
8009 { ac_try='test -s conftest.$ac_objext'
8010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011 (eval $ac_try) 2>&5
8012 ac_status=$?
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); }; }; then
8015 ac_hi=$ac_mid
8016else
8017 echo "$as_me: failed program was:" >&5
8018sed 's/^/| /' conftest.$ac_ext >&5
8019
8020ac_lo=`expr '(' $ac_mid ')' + 1`
8021fi
8022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8023done
8024case $ac_lo in
8025?*) res_hi=$ac_lo;;
8026'') result=? ;;
8027esac
8028else
8029 if test "$cross_compiling" = yes; then
8030 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8031See \`config.log' for more details." >&5
8032echo "$as_me: error: cannot run test program while cross compiling
8033See \`config.log' for more details." >&2;}
8034 { (exit 1); exit 1; }; }
8035else
8036 cat >conftest.$ac_ext <<_ACEOF
8037/* confdefs.h. */
8038_ACEOF
8039cat confdefs.h >>conftest.$ac_ext
8040cat >>conftest.$ac_ext <<_ACEOF
8041/* end confdefs.h. */
8042#include <stddef.h>
8043long longval () { return ~(size_t)0 / 10; }
8044unsigned long ulongval () { return ~(size_t)0 / 10; }
8045#include <stdio.h>
8046#include <stdlib.h>
8047int
8048main ()
8049{
8050
8051 FILE *f = fopen ("conftest.val", "w");
8052 if (! f)
8053 exit (1);
8054 if ((~(size_t)0 / 10) < 0)
8055 {
8056 long i = longval ();
8057 if (i != (~(size_t)0 / 10))
8058 exit (1);
8059 fprintf (f, "%ld\n", i);
8060 }
8061 else
8062 {
8063 unsigned long i = ulongval ();
8064 if (i != (~(size_t)0 / 10))
8065 exit (1);
8066 fprintf (f, "%lu\n", i);
8067 }
8068 exit (ferror (f) || fclose (f) != 0);
8069
8070 ;
8071 return 0;
8072}
8073_ACEOF
8074rm -f conftest$ac_exeext
8075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8076 (eval $ac_link) 2>&5
8077 ac_status=$?
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081 (eval $ac_try) 2>&5
8082 ac_status=$?
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); }; }; then
8085 res_hi=`cat conftest.val`
8086else
8087 echo "$as_me: program exited with status $ac_status" >&5
8088echo "$as_me: failed program was:" >&5
8089sed 's/^/| /' conftest.$ac_ext >&5
8090
8091( exit $ac_status )
8092result=?
8093fi
8094rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8095fi
8096fi
8097rm -f conftest.val
8098 if test "$cross_compiling" = yes; then
8099 # Depending upon the size, compute the lo and hi bounds.
8100cat >conftest.$ac_ext <<_ACEOF
8101/* confdefs.h. */
8102_ACEOF
8103cat confdefs.h >>conftest.$ac_ext
8104cat >>conftest.$ac_ext <<_ACEOF
8105/* end confdefs.h. */
8106#include <stddef.h>
8107int
8108main ()
8109{
8110static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
8111test_array [0] = 0
8112
8113 ;
8114 return 0;
8115}
8116_ACEOF
8117rm -f conftest.$ac_objext
8118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8119 (eval $ac_compile) 2>conftest.er1
8120 ac_status=$?
8121 grep -v '^ *+' conftest.er1 >conftest.err
8122 rm -f conftest.er1
8123 cat conftest.err >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } &&
8126 { ac_try='test -z "$ac_cxx_werror_flag"
8127 || test ! -s conftest.err'
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 (eval $ac_try) 2>&5
8130 ac_status=$?
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; } &&
8133 { ac_try='test -s conftest.$ac_objext'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135 (eval $ac_try) 2>&5
8136 ac_status=$?
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; }; then
8139 ac_lo=0 ac_mid=0
8140 while :; do
8141 cat >conftest.$ac_ext <<_ACEOF
8142/* confdefs.h. */
8143_ACEOF
8144cat confdefs.h >>conftest.$ac_ext
8145cat >>conftest.$ac_ext <<_ACEOF
8146/* end confdefs.h. */
8147#include <stddef.h>
8148int
8149main ()
8150{
8151static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8152test_array [0] = 0
8153
8154 ;
8155 return 0;
8156}
8157_ACEOF
8158rm -f conftest.$ac_objext
8159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8160 (eval $ac_compile) 2>conftest.er1
8161 ac_status=$?
8162 grep -v '^ *+' conftest.er1 >conftest.err
8163 rm -f conftest.er1
8164 cat conftest.err >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } &&
8167 { ac_try='test -z "$ac_cxx_werror_flag"
8168 || test ! -s conftest.err'
8169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170 (eval $ac_try) 2>&5
8171 ac_status=$?
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; } &&
8174 { ac_try='test -s conftest.$ac_objext'
8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176 (eval $ac_try) 2>&5
8177 ac_status=$?
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; }; then
8180 ac_hi=$ac_mid; break
8181else
8182 echo "$as_me: failed program was:" >&5
8183sed 's/^/| /' conftest.$ac_ext >&5
8184
8185ac_lo=`expr $ac_mid + 1`
8186 if test $ac_lo -le $ac_mid; then
8187 ac_lo= ac_hi=
8188 break
8189 fi
8190 ac_mid=`expr 2 '*' $ac_mid + 1`
8191fi
8192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8193 done
8194else
8195 echo "$as_me: failed program was:" >&5
8196sed 's/^/| /' conftest.$ac_ext >&5
8197
8198cat >conftest.$ac_ext <<_ACEOF
8199/* confdefs.h. */
8200_ACEOF
8201cat confdefs.h >>conftest.$ac_ext
8202cat >>conftest.$ac_ext <<_ACEOF
8203/* end confdefs.h. */
8204#include <stddef.h>
8205int
8206main ()
8207{
8208static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
8209test_array [0] = 0
8210
8211 ;
8212 return 0;
8213}
8214_ACEOF
8215rm -f conftest.$ac_objext
8216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8217 (eval $ac_compile) 2>conftest.er1
8218 ac_status=$?
8219 grep -v '^ *+' conftest.er1 >conftest.err
8220 rm -f conftest.er1
8221 cat conftest.err >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } &&
8224 { ac_try='test -z "$ac_cxx_werror_flag"
8225 || test ! -s conftest.err'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 (eval $ac_try) 2>&5
8228 ac_status=$?
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; } &&
8231 { ac_try='test -s conftest.$ac_objext'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 (eval $ac_try) 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; }; then
8237 ac_hi=-1 ac_mid=-1
8238 while :; do
8239 cat >conftest.$ac_ext <<_ACEOF
8240/* confdefs.h. */
8241_ACEOF
8242cat confdefs.h >>conftest.$ac_ext
8243cat >>conftest.$ac_ext <<_ACEOF
8244/* end confdefs.h. */
8245#include <stddef.h>
8246int
8247main ()
8248{
8249static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
8250test_array [0] = 0
8251
8252 ;
8253 return 0;
8254}
8255_ACEOF
8256rm -f conftest.$ac_objext
8257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8258 (eval $ac_compile) 2>conftest.er1
8259 ac_status=$?
8260 grep -v '^ *+' conftest.er1 >conftest.err
8261 rm -f conftest.er1
8262 cat conftest.err >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } &&
8265 { ac_try='test -z "$ac_cxx_werror_flag"
8266 || test ! -s conftest.err'
8267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8268 (eval $ac_try) 2>&5
8269 ac_status=$?
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; } &&
8272 { ac_try='test -s conftest.$ac_objext'
8273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274 (eval $ac_try) 2>&5
8275 ac_status=$?
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; }; then
8278 ac_lo=$ac_mid; break
8279else
8280 echo "$as_me: failed program was:" >&5
8281sed 's/^/| /' conftest.$ac_ext >&5
8282
8283ac_hi=`expr '(' $ac_mid ')' - 1`
8284 if test $ac_mid -le $ac_hi; then
8285 ac_lo= ac_hi=
8286 break
8287 fi
8288 ac_mid=`expr 2 '*' $ac_mid`
8289fi
8290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8291 done
8292else
8293 echo "$as_me: failed program was:" >&5
8294sed 's/^/| /' conftest.$ac_ext >&5
8295
8296ac_lo= ac_hi=
8297fi
8298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8299fi
8300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8301# Binary search between lo and hi bounds.
8302while test "x$ac_lo" != "x$ac_hi"; do
8303 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8304 cat >conftest.$ac_ext <<_ACEOF
8305/* confdefs.h. */
8306_ACEOF
8307cat confdefs.h >>conftest.$ac_ext
8308cat >>conftest.$ac_ext <<_ACEOF
8309/* end confdefs.h. */
8310#include <stddef.h>
8311int
8312main ()
8313{
8314static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8315test_array [0] = 0
8316
8317 ;
8318 return 0;
8319}
8320_ACEOF
8321rm -f conftest.$ac_objext
8322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8323 (eval $ac_compile) 2>conftest.er1
8324 ac_status=$?
8325 grep -v '^ *+' conftest.er1 >conftest.err
8326 rm -f conftest.er1
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } &&
8330 { ac_try='test -z "$ac_cxx_werror_flag"
8331 || test ! -s conftest.err'
8332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333 (eval $ac_try) 2>&5
8334 ac_status=$?
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); }; } &&
8337 { ac_try='test -s conftest.$ac_objext'
8338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339 (eval $ac_try) 2>&5
8340 ac_status=$?
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; }; then
8343 ac_hi=$ac_mid
8344else
8345 echo "$as_me: failed program was:" >&5
8346sed 's/^/| /' conftest.$ac_ext >&5
8347
8348ac_lo=`expr '(' $ac_mid ')' + 1`
8349fi
8350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8351done
8352case $ac_lo in
8353?*) res_lo=$ac_lo;;
8354'') result=? ;;
8355esac
8356else
8357 if test "$cross_compiling" = yes; then
8358 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8359See \`config.log' for more details." >&5
8360echo "$as_me: error: cannot run test program while cross compiling
8361See \`config.log' for more details." >&2;}
8362 { (exit 1); exit 1; }; }
8363else
8364 cat >conftest.$ac_ext <<_ACEOF
8365/* confdefs.h. */
8366_ACEOF
8367cat confdefs.h >>conftest.$ac_ext
8368cat >>conftest.$ac_ext <<_ACEOF
8369/* end confdefs.h. */
8370#include <stddef.h>
8371long longval () { return ~(size_t)0 % 10; }
8372unsigned long ulongval () { return ~(size_t)0 % 10; }
8373#include <stdio.h>
8374#include <stdlib.h>
8375int
8376main ()
8377{
8378
8379 FILE *f = fopen ("conftest.val", "w");
8380 if (! f)
8381 exit (1);
8382 if ((~(size_t)0 % 10) < 0)
8383 {
8384 long i = longval ();
8385 if (i != (~(size_t)0 % 10))
8386 exit (1);
8387 fprintf (f, "%ld\n", i);
8388 }
8389 else
8390 {
8391 unsigned long i = ulongval ();
8392 if (i != (~(size_t)0 % 10))
8393 exit (1);
8394 fprintf (f, "%lu\n", i);
8395 }
8396 exit (ferror (f) || fclose (f) != 0);
8397
8398 ;
8399 return 0;
8400}
8401_ACEOF
8402rm -f conftest$ac_exeext
8403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8404 (eval $ac_link) 2>&5
8405 ac_status=$?
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 (eval $ac_try) 2>&5
8410 ac_status=$?
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; }; then
8413 res_lo=`cat conftest.val`
8414else
8415 echo "$as_me: program exited with status $ac_status" >&5
8416echo "$as_me: failed program was:" >&5
8417sed 's/^/| /' conftest.$ac_ext >&5
8418
8419( exit $ac_status )
8420result=?
8421fi
8422rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8423fi
8424fi
8425rm -f conftest.val
8426 if test "$cross_compiling" = yes; then
8427 # Depending upon the size, compute the lo and hi bounds.
8428cat >conftest.$ac_ext <<_ACEOF
8429/* confdefs.h. */
8430_ACEOF
8431cat confdefs.h >>conftest.$ac_ext
8432cat >>conftest.$ac_ext <<_ACEOF
8433/* end confdefs.h. */
8434#include <stddef.h>
8435int
8436main ()
8437{
8438static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
8439test_array [0] = 0
8440
8441 ;
8442 return 0;
8443}
8444_ACEOF
8445rm -f conftest.$ac_objext
8446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8447 (eval $ac_compile) 2>conftest.er1
8448 ac_status=$?
8449 grep -v '^ *+' conftest.er1 >conftest.err
8450 rm -f conftest.er1
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } &&
8454 { ac_try='test -z "$ac_cxx_werror_flag"
8455 || test ! -s conftest.err'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 (eval $ac_try) 2>&5
8458 ac_status=$?
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; } &&
8461 { ac_try='test -s conftest.$ac_objext'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 (eval $ac_try) 2>&5
8464 ac_status=$?
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8467 ac_lo=0 ac_mid=0
8468 while :; do
8469 cat >conftest.$ac_ext <<_ACEOF
8470/* confdefs.h. */
8471_ACEOF
8472cat confdefs.h >>conftest.$ac_ext
8473cat >>conftest.$ac_ext <<_ACEOF
8474/* end confdefs.h. */
8475#include <stddef.h>
8476int
8477main ()
8478{
8479static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8480test_array [0] = 0
8481
8482 ;
8483 return 0;
8484}
8485_ACEOF
8486rm -f conftest.$ac_objext
8487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8488 (eval $ac_compile) 2>conftest.er1
8489 ac_status=$?
8490 grep -v '^ *+' conftest.er1 >conftest.err
8491 rm -f conftest.er1
8492 cat conftest.err >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } &&
8495 { ac_try='test -z "$ac_cxx_werror_flag"
8496 || test ! -s conftest.err'
8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 (eval $ac_try) 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; } &&
8502 { ac_try='test -s conftest.$ac_objext'
8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 (eval $ac_try) 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; }; then
8508 ac_hi=$ac_mid; break
8509else
8510 echo "$as_me: failed program was:" >&5
8511sed 's/^/| /' conftest.$ac_ext >&5
8512
8513ac_lo=`expr $ac_mid + 1`
8514 if test $ac_lo -le $ac_mid; then
8515 ac_lo= ac_hi=
8516 break
8517 fi
8518 ac_mid=`expr 2 '*' $ac_mid + 1`
8519fi
8520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8521 done
8522else
8523 echo "$as_me: failed program was:" >&5
8524sed 's/^/| /' conftest.$ac_ext >&5
8525
8526cat >conftest.$ac_ext <<_ACEOF
8527/* confdefs.h. */
8528_ACEOF
8529cat confdefs.h >>conftest.$ac_ext
8530cat >>conftest.$ac_ext <<_ACEOF
8531/* end confdefs.h. */
8532#include <stddef.h>
8533int
8534main ()
8535{
8536static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8537test_array [0] = 0
8538
8539 ;
8540 return 0;
8541}
8542_ACEOF
8543rm -f conftest.$ac_objext
8544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8545 (eval $ac_compile) 2>conftest.er1
8546 ac_status=$?
8547 grep -v '^ *+' conftest.er1 >conftest.err
8548 rm -f conftest.er1
8549 cat conftest.err >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } &&
8552 { ac_try='test -z "$ac_cxx_werror_flag"
8553 || test ! -s conftest.err'
8554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 (eval $ac_try) 2>&5
8556 ac_status=$?
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; } &&
8559 { ac_try='test -s conftest.$ac_objext'
8560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 (eval $ac_try) 2>&5
8562 ac_status=$?
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; }; then
8565 ac_hi=-1 ac_mid=-1
8566 while :; do
8567 cat >conftest.$ac_ext <<_ACEOF
8568/* confdefs.h. */
8569_ACEOF
8570cat confdefs.h >>conftest.$ac_ext
8571cat >>conftest.$ac_ext <<_ACEOF
8572/* end confdefs.h. */
8573#include <stddef.h>
8574int
8575main ()
8576{
8577static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8578test_array [0] = 0
8579
8580 ;
8581 return 0;
8582}
8583_ACEOF
8584rm -f conftest.$ac_objext
8585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8586 (eval $ac_compile) 2>conftest.er1
8587 ac_status=$?
8588 grep -v '^ *+' conftest.er1 >conftest.err
8589 rm -f conftest.er1
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } &&
8593 { ac_try='test -z "$ac_cxx_werror_flag"
8594 || test ! -s conftest.err'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596 (eval $ac_try) 2>&5
8597 ac_status=$?
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; } &&
8600 { ac_try='test -s conftest.$ac_objext'
8601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602 (eval $ac_try) 2>&5
8603 ac_status=$?
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; }; then
8606 ac_lo=$ac_mid; break
8607else
8608 echo "$as_me: failed program was:" >&5
8609sed 's/^/| /' conftest.$ac_ext >&5
8610
8611ac_hi=`expr '(' $ac_mid ')' - 1`
8612 if test $ac_mid -le $ac_hi; then
8613 ac_lo= ac_hi=
8614 break
8615 fi
8616 ac_mid=`expr 2 '*' $ac_mid`
8617fi
8618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8619 done
8620else
8621 echo "$as_me: failed program was:" >&5
8622sed 's/^/| /' conftest.$ac_ext >&5
8623
8624ac_lo= ac_hi=
8625fi
8626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8627fi
8628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8629# Binary search between lo and hi bounds.
8630while test "x$ac_lo" != "x$ac_hi"; do
8631 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8632 cat >conftest.$ac_ext <<_ACEOF
8633/* confdefs.h. */
8634_ACEOF
8635cat confdefs.h >>conftest.$ac_ext
8636cat >>conftest.$ac_ext <<_ACEOF
8637/* end confdefs.h. */
8638#include <stddef.h>
8639int
8640main ()
8641{
8642static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8643test_array [0] = 0
8644
8645 ;
8646 return 0;
8647}
8648_ACEOF
8649rm -f conftest.$ac_objext
8650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8651 (eval $ac_compile) 2>conftest.er1
8652 ac_status=$?
8653 grep -v '^ *+' conftest.er1 >conftest.err
8654 rm -f conftest.er1
8655 cat conftest.err >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } &&
8658 { ac_try='test -z "$ac_cxx_werror_flag"
8659 || test ! -s conftest.err'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 (eval $ac_try) 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; } &&
8665 { ac_try='test -s conftest.$ac_objext'
8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667 (eval $ac_try) 2>&5
8668 ac_status=$?
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }; }; then
8671 ac_hi=$ac_mid
8672else
8673 echo "$as_me: failed program was:" >&5
8674sed 's/^/| /' conftest.$ac_ext >&5
8675
8676ac_lo=`expr '(' $ac_mid ')' + 1`
8677fi
8678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8679done
8680case $ac_lo in
8681?*) fits_in_uint=$ac_lo;;
8682'') result=? ;;
8683esac
8684else
8685 if test "$cross_compiling" = yes; then
8686 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8687See \`config.log' for more details." >&5
8688echo "$as_me: error: cannot run test program while cross compiling
8689See \`config.log' for more details." >&2;}
8690 { (exit 1); exit 1; }; }
8691else
8692 cat >conftest.$ac_ext <<_ACEOF
8693/* confdefs.h. */
8694_ACEOF
8695cat confdefs.h >>conftest.$ac_ext
8696cat >>conftest.$ac_ext <<_ACEOF
8697/* end confdefs.h. */
8698#include <stddef.h>
8699long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8700unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8701#include <stdio.h>
8702#include <stdlib.h>
8703int
8704main ()
8705{
8706
8707 FILE *f = fopen ("conftest.val", "w");
8708 if (! f)
8709 exit (1);
8710 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8711 {
8712 long i = longval ();
8713 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8714 exit (1);
8715 fprintf (f, "%ld\n", i);
8716 }
8717 else
8718 {
8719 unsigned long i = ulongval ();
8720 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8721 exit (1);
8722 fprintf (f, "%lu\n", i);
8723 }
8724 exit (ferror (f) || fclose (f) != 0);
8725
8726 ;
8727 return 0;
8728}
8729_ACEOF
8730rm -f conftest$ac_exeext
8731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8732 (eval $ac_link) 2>&5
8733 ac_status=$?
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8737 (eval $ac_try) 2>&5
8738 ac_status=$?
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); }; }; then
8741 fits_in_uint=`cat conftest.val`
8742else
8743 echo "$as_me: program exited with status $ac_status" >&5
8744echo "$as_me: failed program was:" >&5
8745sed 's/^/| /' conftest.$ac_ext >&5
8746
8747( exit $ac_status )
8748result=?
8749fi
8750rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8751fi
8752fi
8753rm -f conftest.val
8754 if test "$fits_in_uint" = 1; then
8755 cat >conftest.$ac_ext <<_ACEOF
8756/* confdefs.h. */
8757_ACEOF
8758cat confdefs.h >>conftest.$ac_ext
8759cat >>conftest.$ac_ext <<_ACEOF
8760/* end confdefs.h. */
8761#include <stddef.h>
8762 extern size_t foo;
8763 extern unsigned long foo;
8764
8765int
8766main ()
8767{
8768
8769 ;
8770 return 0;
8771}
8772_ACEOF
8773rm -f conftest.$ac_objext
8774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8775 (eval $ac_compile) 2>conftest.er1
8776 ac_status=$?
8777 grep -v '^ *+' conftest.er1 >conftest.err
8778 rm -f conftest.er1
8779 cat conftest.err >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } &&
8782 { ac_try='test -z "$ac_cxx_werror_flag"
8783 || test ! -s conftest.err'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785 (eval $ac_try) 2>&5
8786 ac_status=$?
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; } &&
8789 { ac_try='test -s conftest.$ac_objext'
8790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791 (eval $ac_try) 2>&5
8792 ac_status=$?
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; }; then
8795 fits_in_uint=0
8796else
8797 echo "$as_me: failed program was:" >&5
8798sed 's/^/| /' conftest.$ac_ext >&5
8799
8800fi
8801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8802 fi
8803 if test -z "$result"; then
8804 if test "$fits_in_uint" = 1; then
8805 result="$res_hi$res_lo"U
8806 else
8807 result="$res_hi$res_lo"UL
8808 fi
8809 else
8810 result='~(size_t)0'
8811 fi
8812 fi
8813 echo "$as_me:$LINENO: result: $result" >&5
8814echo "${ECHO_T}$result" >&6
8815 if test "$result" != yes; then
8816
8817cat >>confdefs.h <<_ACEOF
8818#define SIZE_MAX $result
8819_ACEOF
8820
8821 fi
8822
8823
8824
8825
8826for ac_header in stdint.h
8827do
8828as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8829if eval "test \"\${$as_ac_Header+set}\" = set"; then
8830 echo "$as_me:$LINENO: checking for $ac_header" >&5
8831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8832if eval "test \"\${$as_ac_Header+set}\" = set"; then
8833 echo $ECHO_N "(cached) $ECHO_C" >&6
8834fi
8835echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8836echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8837else
8838 # Is the header compilable?
8839echo "$as_me:$LINENO: checking $ac_header usability" >&5
8840echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8841cat >conftest.$ac_ext <<_ACEOF
8842/* confdefs.h. */
8843_ACEOF
8844cat confdefs.h >>conftest.$ac_ext
8845cat >>conftest.$ac_ext <<_ACEOF
8846/* end confdefs.h. */
8847$ac_includes_default
8848#include <$ac_header>
8849_ACEOF
8850rm -f conftest.$ac_objext
8851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8852 (eval $ac_compile) 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_cxx_werror_flag"
8860 || test ! -s conftest.err'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 (eval $ac_try) 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest.$ac_objext'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 (eval $ac_try) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8872 ac_header_compiler=yes
8873else
8874 echo "$as_me: failed program was:" >&5
8875sed 's/^/| /' conftest.$ac_ext >&5
8876
8877ac_header_compiler=no
8878fi
8879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8880echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8881echo "${ECHO_T}$ac_header_compiler" >&6
8882
8883# Is the header present?
8884echo "$as_me:$LINENO: checking $ac_header presence" >&5
8885echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8886cat >conftest.$ac_ext <<_ACEOF
8887/* confdefs.h. */
8888_ACEOF
8889cat confdefs.h >>conftest.$ac_ext
8890cat >>conftest.$ac_ext <<_ACEOF
8891/* end confdefs.h. */
8892#include <$ac_header>
8893_ACEOF
8894if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8896 ac_status=$?
8897 grep -v '^ *+' conftest.er1 >conftest.err
8898 rm -f conftest.er1
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } >/dev/null; then
8902 if test -s conftest.err; then
8903 ac_cpp_err=$ac_cxx_preproc_warn_flag
8904 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8905 else
8906 ac_cpp_err=
8907 fi
8908else
8909 ac_cpp_err=yes
8910fi
8911if test -z "$ac_cpp_err"; then
8912 ac_header_preproc=yes
8913else
8914 echo "$as_me: failed program was:" >&5
8915sed 's/^/| /' conftest.$ac_ext >&5
8916
8917 ac_header_preproc=no
8918fi
8919rm -f conftest.err conftest.$ac_ext
8920echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8921echo "${ECHO_T}$ac_header_preproc" >&6
8922
8923# So? What about this header?
8924case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8925 yes:no: )
8926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8927echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8929echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8930 ac_header_preproc=yes
8931 ;;
8932 no:yes:* )
8933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8934echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8936echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8938echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8940echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8942echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8944echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8945 (
8946 cat <<\_ASBOX
8947## ------------------------------------------ ##
8948## Report this to the AC_PACKAGE_NAME lists. ##
8949## ------------------------------------------ ##
8950_ASBOX
8951 ) |
8952 sed "s/^/$as_me: WARNING: /" >&2
8953 ;;
8954esac
8955echo "$as_me:$LINENO: checking for $ac_header" >&5
8956echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8957if eval "test \"\${$as_ac_Header+set}\" = set"; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8959else
8960 eval "$as_ac_Header=\$ac_header_preproc"
8961fi
8962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8963echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8964
8965fi
8966if test `eval echo '${'$as_ac_Header'}'` = yes; then
8967 cat >>confdefs.h <<_ACEOF
8968#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8969_ACEOF
8970
8971fi
8972
8973done
8974
8975
8976
8977 if test "X$prefix" = "XNONE"; then
8978 acl_final_prefix="$ac_default_prefix"
8979 else
8980 acl_final_prefix="$prefix"
8981 fi
8982 if test "X$exec_prefix" = "XNONE"; then
8983 acl_final_exec_prefix='${prefix}'
8984 else
8985 acl_final_exec_prefix="$exec_prefix"
8986 fi
8987 acl_save_prefix="$prefix"
8988 prefix="$acl_final_prefix"
8989 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8990 prefix="$acl_save_prefix"
8991
8992
8993# Check whether --with-gnu-ld or --without-gnu-ld was given.
8994if test "${with_gnu_ld+set}" = set; then
8995 withval="$with_gnu_ld"
8996 test "$withval" = no || with_gnu_ld=yes
8997else
8998 with_gnu_ld=no
8999fi;
9000# Prepare PATH_SEPARATOR.
9001# The user is always right.
9002if test "${PATH_SEPARATOR+set}" != set; then
9003 echo "#! /bin/sh" >conf$$.sh
9004 echo "exit 0" >>conf$$.sh
9005 chmod +x conf$$.sh
9006 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9007 PATH_SEPARATOR=';'
9008 else
9009 PATH_SEPARATOR=:
9010 fi
9011 rm -f conf$$.sh
9012fi
9013ac_prog=ld
9014if test "$GCC" = yes; then
9015 # Check if gcc -print-prog-name=ld gives a path.
9016 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9017echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9018 case $host in
9019 *-*-mingw*)
9020 # gcc leaves a trailing carriage return which upsets mingw
9021 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9022 *)
9023 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9024 esac
9025 case $ac_prog in
9026 # Accept absolute paths.
9027 [\\/]* | [A-Za-z]:[\\/]*)
9028 re_direlt='/[^/][^/]*/\.\./'
9029 # Canonicalize the path of ld
9030 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9031 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9032 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9033 done
9034 test -z "$LD" && LD="$ac_prog"
9035 ;;
9036 "")
9037 # If it fails, then pretend we aren't using GCC.
9038 ac_prog=ld
9039 ;;
9040 *)
9041 # If it is relative, then search for the first ld in PATH.
9042 with_gnu_ld=unknown
9043 ;;
9044 esac
9045elif test "$with_gnu_ld" = yes; then
9046 echo "$as_me:$LINENO: checking for GNU ld" >&5
9047echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9048else
9049 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9050echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9051fi
9052if test "${acl_cv_path_LD+set}" = set; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9054else
9055 if test -z "$LD"; then
9056 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9057 for ac_dir in $PATH; do
9058 test -z "$ac_dir" && ac_dir=.
9059 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9060 acl_cv_path_LD="$ac_dir/$ac_prog"
9061 # Check to see if the program is GNU ld. I'd rather use --version,
9062 # but apparently some GNU ld's only accept -v.
9063 # Break only if it was the GNU/non-GNU ld that we prefer.
9064 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9065 *GNU* | *'with BFD'*)
9066 test "$with_gnu_ld" != no && break ;;
9067 *)
9068 test "$with_gnu_ld" != yes && break ;;
9069 esac
9070 fi
9071 done
9072 IFS="$ac_save_ifs"
9073else
9074 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9075fi
9076fi
9077
9078LD="$acl_cv_path_LD"
9079if test -n "$LD"; then
9080 echo "$as_me:$LINENO: result: $LD" >&5
9081echo "${ECHO_T}$LD" >&6
9082else
9083 echo "$as_me:$LINENO: result: no" >&5
9084echo "${ECHO_T}no" >&6
9085fi
9086test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9087echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9088 { (exit 1); exit 1; }; }
9089echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9090echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9091if test "${acl_cv_prog_gnu_ld+set}" = set; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9093else
9094 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9095case `$LD -v 2>&1 </dev/null` in
9096*GNU* | *'with BFD'*)
9097 acl_cv_prog_gnu_ld=yes ;;
9098*)
9099 acl_cv_prog_gnu_ld=no ;;
9100esac
9101fi
9102echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9103echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9104with_gnu_ld=$acl_cv_prog_gnu_ld
9105
9106
9107
9108 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9109echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9110if test "${acl_cv_rpath+set}" = set; then
9111 echo $ECHO_N "(cached) $ECHO_C" >&6
9112else
9113
9114 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9115 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9116 . ./conftest.sh
9117 rm -f ./conftest.sh
9118 acl_cv_rpath=done
9119
9120fi
9121echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9122echo "${ECHO_T}$acl_cv_rpath" >&6
9123 wl="$acl_cv_wl"
9124 libext="$acl_cv_libext"
9125 shlibext="$acl_cv_shlibext"
9126 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9127 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9128 hardcode_direct="$acl_cv_hardcode_direct"
9129 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9130 # Check whether --enable-rpath or --disable-rpath was given.
9131if test "${enable_rpath+set}" = set; then
9132 enableval="$enable_rpath"
9133 :
9134else
9135 enable_rpath=yes
9136fi;
9137
9138
9139
9140
9141
9142
9143
9144 use_additional=yes
9145
9146 acl_save_prefix="$prefix"
9147 prefix="$acl_final_prefix"
9148 acl_save_exec_prefix="$exec_prefix"
9149 exec_prefix="$acl_final_exec_prefix"
9150
9151 eval additional_includedir=\"$includedir\"
9152 eval additional_libdir=\"$libdir\"
9153
9154 exec_prefix="$acl_save_exec_prefix"
9155 prefix="$acl_save_prefix"
9156
9157
9158# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9159if test "${with_libiconv_prefix+set}" = set; then
9160 withval="$with_libiconv_prefix"
9161
9162 if test "X$withval" = "Xno"; then
9163 use_additional=no
9164 else
9165 if test "X$withval" = "X"; then
9166
9167 acl_save_prefix="$prefix"
9168 prefix="$acl_final_prefix"
9169 acl_save_exec_prefix="$exec_prefix"
9170 exec_prefix="$acl_final_exec_prefix"
9171
9172 eval additional_includedir=\"$includedir\"
9173 eval additional_libdir=\"$libdir\"
9174
9175 exec_prefix="$acl_save_exec_prefix"
9176 prefix="$acl_save_prefix"
9177
9178 else
9179 additional_includedir="$withval/include"
9180 additional_libdir="$withval/lib"
9181 fi
9182 fi
9183
9184fi;
9185 LIBICONV=
9186 LTLIBICONV=
9187 INCICONV=
9188 rpathdirs=
9189 ltrpathdirs=
9190 names_already_handled=
9191 names_next_round='iconv '
9192 while test -n "$names_next_round"; do
9193 names_this_round="$names_next_round"
9194 names_next_round=
9195 for name in $names_this_round; do
9196 already_handled=
9197 for n in $names_already_handled; do
9198 if test "$n" = "$name"; then
9199 already_handled=yes
9200 break
9201 fi
9202 done
9203 if test -z "$already_handled"; then
9204 names_already_handled="$names_already_handled $name"
9205 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9206 eval value=\"\$HAVE_LIB$uppername\"
9207 if test -n "$value"; then
9208 if test "$value" = yes; then
9209 eval value=\"\$LIB$uppername\"
9210 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9211 eval value=\"\$LTLIB$uppername\"
9212 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9213 else
9214 :
9215 fi
9216 else
9217 found_dir=
9218 found_la=
9219 found_so=
9220 found_a=
9221 if test $use_additional = yes; then
9222 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9223 found_dir="$additional_libdir"
9224 found_so="$additional_libdir/lib$name.$shlibext"
9225 if test -f "$additional_libdir/lib$name.la"; then
9226 found_la="$additional_libdir/lib$name.la"
9227 fi
9228 else
9229 if test -f "$additional_libdir/lib$name.$libext"; then
9230 found_dir="$additional_libdir"
9231 found_a="$additional_libdir/lib$name.$libext"
9232 if test -f "$additional_libdir/lib$name.la"; then
9233 found_la="$additional_libdir/lib$name.la"
9234 fi
9235 fi
9236 fi
9237 fi
9238 if test "X$found_dir" = "X"; then
9239 for x in $LDFLAGS $LTLIBICONV; do
9240
9241 acl_save_prefix="$prefix"
9242 prefix="$acl_final_prefix"
9243 acl_save_exec_prefix="$exec_prefix"
9244 exec_prefix="$acl_final_exec_prefix"
9245 eval x=\"$x\"
9246 exec_prefix="$acl_save_exec_prefix"
9247 prefix="$acl_save_prefix"
9248
9249 case "$x" in
9250 -L*)
9251 dir=`echo "X$x" | sed -e 's/^X-L//'`
9252 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9253 found_dir="$dir"
9254 found_so="$dir/lib$name.$shlibext"
9255 if test -f "$dir/lib$name.la"; then
9256 found_la="$dir/lib$name.la"
9257 fi
9258 else
9259 if test -f "$dir/lib$name.$libext"; then
9260 found_dir="$dir"
9261 found_a="$dir/lib$name.$libext"
9262 if test -f "$dir/lib$name.la"; then
9263 found_la="$dir/lib$name.la"
9264 fi
9265 fi
9266 fi
9267 ;;
9268 esac
9269 if test "X$found_dir" != "X"; then
9270 break
9271 fi
9272 done
9273 fi
9274 if test "X$found_dir" != "X"; then
9275 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9276 if test "X$found_so" != "X"; then
9277 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9278 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9279 else
9280 haveit=
9281 for x in $ltrpathdirs; do
9282 if test "X$x" = "X$found_dir"; then
9283 haveit=yes
9284 break
9285 fi
9286 done
9287 if test -z "$haveit"; then
9288 ltrpathdirs="$ltrpathdirs $found_dir"
9289 fi
9290 if test "$hardcode_direct" = yes; then
9291 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9292 else
9293 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9294 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9295 haveit=
9296 for x in $rpathdirs; do
9297 if test "X$x" = "X$found_dir"; then
9298 haveit=yes
9299 break
9300 fi
9301 done
9302 if test -z "$haveit"; then
9303 rpathdirs="$rpathdirs $found_dir"
9304 fi
9305 else
9306 haveit=
9307 for x in $LDFLAGS $LIBICONV; do
9308
9309 acl_save_prefix="$prefix"
9310 prefix="$acl_final_prefix"
9311 acl_save_exec_prefix="$exec_prefix"
9312 exec_prefix="$acl_final_exec_prefix"
9313 eval x=\"$x\"
9314 exec_prefix="$acl_save_exec_prefix"
9315 prefix="$acl_save_prefix"
9316
9317 if test "X$x" = "X-L$found_dir"; then
9318 haveit=yes
9319 break
9320 fi
9321 done
9322 if test -z "$haveit"; then
9323 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9324 fi
9325 if test "$hardcode_minus_L" != no; then
9326 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9327 else
9328 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9329 fi
9330 fi
9331 fi
9332 fi
9333 else
9334 if test "X$found_a" != "X"; then
9335 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9336 else
9337 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9338 fi
9339 fi
9340 additional_includedir=
9341 case "$found_dir" in
9342 */lib | */lib/)
9343 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9344 additional_includedir="$basedir/include"
9345 ;;
9346 esac
9347 if test "X$additional_includedir" != "X"; then
9348 if test "X$additional_includedir" != "X/usr/include"; then
9349 haveit=
9350 if test "X$additional_includedir" = "X/usr/local/include"; then
9351 if test -n "$GCC"; then
9352 case $host_os in
9353 linux*) haveit=yes;;
9354 esac
9355 fi
9356 fi
9357 if test -z "$haveit"; then
9358 for x in $CPPFLAGS $INCICONV; do
9359
9360 acl_save_prefix="$prefix"
9361 prefix="$acl_final_prefix"
9362 acl_save_exec_prefix="$exec_prefix"
9363 exec_prefix="$acl_final_exec_prefix"
9364 eval x=\"$x\"
9365 exec_prefix="$acl_save_exec_prefix"
9366 prefix="$acl_save_prefix"
9367
9368 if test "X$x" = "X-I$additional_includedir"; then
9369 haveit=yes
9370 break
9371 fi
9372 done
9373 if test -z "$haveit"; then
9374 if test -d "$additional_includedir"; then
9375 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9376 fi
9377 fi
9378 fi
9379 fi
9380 fi
9381 if test -n "$found_la"; then
9382 save_libdir="$libdir"
9383 case "$found_la" in
9384 */* | *\\*) . "$found_la" ;;
9385 *) . "./$found_la" ;;
9386 esac
9387 libdir="$save_libdir"
9388 for dep in $dependency_libs; do
9389 case "$dep" in
9390 -L*)
9391 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9392 if test "X$additional_libdir" != "X/usr/lib"; then
9393 haveit=
9394 if test "X$additional_libdir" = "X/usr/local/lib"; then
9395 if test -n "$GCC"; then
9396 case $host_os in
9397 linux*) haveit=yes;;
9398 esac
9399 fi
9400 fi
9401 if test -z "$haveit"; then
9402 haveit=
9403 for x in $LDFLAGS $LIBICONV; do
9404
9405 acl_save_prefix="$prefix"
9406 prefix="$acl_final_prefix"
9407 acl_save_exec_prefix="$exec_prefix"
9408 exec_prefix="$acl_final_exec_prefix"
9409 eval x=\"$x\"
9410 exec_prefix="$acl_save_exec_prefix"
9411 prefix="$acl_save_prefix"
9412
9413 if test "X$x" = "X-L$additional_libdir"; then
9414 haveit=yes
9415 break
9416 fi
9417 done
9418 if test -z "$haveit"; then
9419 if test -d "$additional_libdir"; then
9420 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9421 fi
9422 fi
9423 haveit=
9424 for x in $LDFLAGS $LTLIBICONV; do
9425
9426 acl_save_prefix="$prefix"
9427 prefix="$acl_final_prefix"
9428 acl_save_exec_prefix="$exec_prefix"
9429 exec_prefix="$acl_final_exec_prefix"
9430 eval x=\"$x\"
9431 exec_prefix="$acl_save_exec_prefix"
9432 prefix="$acl_save_prefix"
9433
9434 if test "X$x" = "X-L$additional_libdir"; then
9435 haveit=yes
9436 break
9437 fi
9438 done
9439 if test -z "$haveit"; then
9440 if test -d "$additional_libdir"; then
9441 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9442 fi
9443 fi
9444 fi
9445 fi
9446 ;;
9447 -R*)
9448 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9449 if test "$enable_rpath" != no; then
9450 haveit=
9451 for x in $rpathdirs; do
9452 if test "X$x" = "X$dir"; then
9453 haveit=yes
9454 break
9455 fi
9456 done
9457 if test -z "$haveit"; then
9458 rpathdirs="$rpathdirs $dir"
9459 fi
9460 haveit=
9461 for x in $ltrpathdirs; do
9462 if test "X$x" = "X$dir"; then
9463 haveit=yes
9464 break
9465 fi
9466 done
9467 if test -z "$haveit"; then
9468 ltrpathdirs="$ltrpathdirs $dir"
9469 fi
9470 fi
9471 ;;
9472 -l*)
9473 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9474 ;;
9475 *.la)
9476 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9477 ;;
9478 *)
9479 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9480 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9481 ;;
9482 esac
9483 done
9484 fi
9485 else
9486 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9487 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9488 fi
9489 fi
9490 fi
9491 done
9492 done
9493 if test "X$rpathdirs" != "X"; then
9494 if test -n "$hardcode_libdir_separator"; then
9495 alldirs=
9496 for found_dir in $rpathdirs; do
9497 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9498 done
9499 acl_save_libdir="$libdir"
9500 libdir="$alldirs"
9501 eval flag=\"$hardcode_libdir_flag_spec\"
9502 libdir="$acl_save_libdir"
9503 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9504 else
9505 for found_dir in $rpathdirs; do
9506 acl_save_libdir="$libdir"
9507 libdir="$found_dir"
9508 eval flag=\"$hardcode_libdir_flag_spec\"
9509 libdir="$acl_save_libdir"
9510 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9511 done
9512 fi
9513 fi
9514 if test "X$ltrpathdirs" != "X"; then
9515 for found_dir in $ltrpathdirs; do
9516 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9517 done
9518 fi
9519
9520
9521
9522
9523
9524
9525
9526
9527 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9528echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
9529if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9530 echo $ECHO_N "(cached) $ECHO_C" >&6
9531else
9532 cat >conftest.$ac_ext <<_ACEOF
9533/* confdefs.h. */
9534_ACEOF
9535cat confdefs.h >>conftest.$ac_ext
9536cat >>conftest.$ac_ext <<_ACEOF
9537/* end confdefs.h. */
9538$ac_includes_default
9539int
9540main ()
9541{
9542if ((ptrdiff_t *) 0)
9543 return 0;
9544if (sizeof (ptrdiff_t))
9545 return 0;
9546 ;
9547 return 0;
9548}
9549_ACEOF
9550rm -f conftest.$ac_objext
9551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9552 (eval $ac_compile) 2>conftest.er1
9553 ac_status=$?
9554 grep -v '^ *+' conftest.er1 >conftest.err
9555 rm -f conftest.er1
9556 cat conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } &&
9559 { ac_try='test -z "$ac_cxx_werror_flag"
9560 || test ! -s conftest.err'
9561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562 (eval $ac_try) 2>&5
9563 ac_status=$?
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); }; } &&
9566 { ac_try='test -s conftest.$ac_objext'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568 (eval $ac_try) 2>&5
9569 ac_status=$?
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; }; then
9572 ac_cv_type_ptrdiff_t=yes
9573else
9574 echo "$as_me: failed program was:" >&5
9575sed 's/^/| /' conftest.$ac_ext >&5
9576
9577ac_cv_type_ptrdiff_t=no
9578fi
9579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9580fi
9581echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9582echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
9583if test $ac_cv_type_ptrdiff_t = yes; then
9584 :
9585else
9586
9587cat >>confdefs.h <<\_ACEOF
9588#define ptrdiff_t long
9589_ACEOF
9590
9591
9592fi
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9605stdlib.h string.h unistd.h sys/param.h
9606do
9607as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9608if eval "test \"\${$as_ac_Header+set}\" = set"; then
9609 echo "$as_me:$LINENO: checking for $ac_header" >&5
9610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9611if eval "test \"\${$as_ac_Header+set}\" = set"; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9613fi
9614echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9615echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9616else
9617 # Is the header compilable?
9618echo "$as_me:$LINENO: checking $ac_header usability" >&5
9619echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9620cat >conftest.$ac_ext <<_ACEOF
9621/* confdefs.h. */
9622_ACEOF
9623cat confdefs.h >>conftest.$ac_ext
9624cat >>conftest.$ac_ext <<_ACEOF
9625/* end confdefs.h. */
9626$ac_includes_default
9627#include <$ac_header>
9628_ACEOF
9629rm -f conftest.$ac_objext
9630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9631 (eval $ac_compile) 2>conftest.er1
9632 ac_status=$?
9633 grep -v '^ *+' conftest.er1 >conftest.err
9634 rm -f conftest.er1
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } &&
9638 { ac_try='test -z "$ac_cxx_werror_flag"
9639 || test ! -s conftest.err'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 (eval $ac_try) 2>&5
9642 ac_status=$?
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; } &&
9645 { ac_try='test -s conftest.$ac_objext'
9646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 (eval $ac_try) 2>&5
9648 ac_status=$?
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; }; then
9651 ac_header_compiler=yes
9652else
9653 echo "$as_me: failed program was:" >&5
9654sed 's/^/| /' conftest.$ac_ext >&5
9655
9656ac_header_compiler=no
9657fi
9658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9659echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9660echo "${ECHO_T}$ac_header_compiler" >&6
9661
9662# Is the header present?
9663echo "$as_me:$LINENO: checking $ac_header presence" >&5
9664echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9665cat >conftest.$ac_ext <<_ACEOF
9666/* confdefs.h. */
9667_ACEOF
9668cat confdefs.h >>conftest.$ac_ext
9669cat >>conftest.$ac_ext <<_ACEOF
9670/* end confdefs.h. */
9671#include <$ac_header>
9672_ACEOF
9673if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9675 ac_status=$?
9676 grep -v '^ *+' conftest.er1 >conftest.err
9677 rm -f conftest.er1
9678 cat conftest.err >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } >/dev/null; then
9681 if test -s conftest.err; then
9682 ac_cpp_err=$ac_cxx_preproc_warn_flag
9683 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9684 else
9685 ac_cpp_err=
9686 fi
9687else
9688 ac_cpp_err=yes
9689fi
9690if test -z "$ac_cpp_err"; then
9691 ac_header_preproc=yes
9692else
9693 echo "$as_me: failed program was:" >&5
9694sed 's/^/| /' conftest.$ac_ext >&5
9695
9696 ac_header_preproc=no
9697fi
9698rm -f conftest.err conftest.$ac_ext
9699echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9700echo "${ECHO_T}$ac_header_preproc" >&6
9701
9702# So? What about this header?
9703case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9704 yes:no: )
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9706echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9708echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9709 ac_header_preproc=yes
9710 ;;
9711 no:yes:* )
9712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9713echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9715echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9717echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9719echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9721echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9723echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9724 (
9725 cat <<\_ASBOX
9726## ------------------------------------------ ##
9727## Report this to the AC_PACKAGE_NAME lists. ##
9728## ------------------------------------------ ##
9729_ASBOX
9730 ) |
9731 sed "s/^/$as_me: WARNING: /" >&2
9732 ;;
9733esac
9734echo "$as_me:$LINENO: checking for $ac_header" >&5
9735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9736if eval "test \"\${$as_ac_Header+set}\" = set"; then
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
9738else
9739 eval "$as_ac_Header=\$ac_header_preproc"
9740fi
9741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9742echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9743
9744fi
9745if test `eval echo '${'$as_ac_Header'}'` = yes; then
9746 cat >>confdefs.h <<_ACEOF
9747#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9748_ACEOF
9749
9750fi
9751
9752done
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9778mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9779strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9780__fsetlocking
9781do
9782as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9783echo "$as_me:$LINENO: checking for $ac_func" >&5
9784echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9785if eval "test \"\${$as_ac_var+set}\" = set"; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9787else
9788 cat >conftest.$ac_ext <<_ACEOF
9789/* confdefs.h. */
9790_ACEOF
9791cat confdefs.h >>conftest.$ac_ext
9792cat >>conftest.$ac_ext <<_ACEOF
9793/* end confdefs.h. */
9794/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9796#define $ac_func innocuous_$ac_func
9797
9798/* System header to define __stub macros and hopefully few prototypes,
9799 which can conflict with char $ac_func (); below.
9800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9801 <limits.h> exists even on freestanding compilers. */
9802
9803#ifdef __STDC__
9804# include <limits.h>
9805#else
9806# include <assert.h>
9807#endif
9808
9809#undef $ac_func
9810
9811/* Override any gcc2 internal prototype to avoid an error. */
9812#ifdef __cplusplus
9813extern "C"
9814{
9815#endif
9816/* We use char because int might match the return type of a gcc2
9817 builtin and then its argument prototype would still apply. */
9818char $ac_func ();
9819/* The GNU C library defines this for functions which it implements
9820 to always fail with ENOSYS. Some functions are actually named
9821 something starting with __ and the normal name is an alias. */
9822#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9823choke me
9824#else
9825char (*f) () = $ac_func;
9826#endif
9827#ifdef __cplusplus
9828}
9829#endif
9830
9831int
9832main ()
9833{
9834return f != $ac_func;
9835 ;
9836 return 0;
9837}
9838_ACEOF
9839rm -f conftest.$ac_objext conftest$ac_exeext
9840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9841 (eval $ac_link) 2>conftest.er1
9842 ac_status=$?
9843 grep -v '^ *+' conftest.er1 >conftest.err
9844 rm -f conftest.er1
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } &&
9848 { ac_try='test -z "$ac_cxx_werror_flag"
9849 || test ! -s conftest.err'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 (eval $ac_try) 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; } &&
9855 { ac_try='test -s conftest$ac_exeext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 (eval $ac_try) 2>&5
9858 ac_status=$?
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 eval "$as_ac_var=yes"
9862else
9863 echo "$as_me: failed program was:" >&5
9864sed 's/^/| /' conftest.$ac_ext >&5
9865
9866eval "$as_ac_var=no"
9867fi
9868rm -f conftest.err conftest.$ac_objext \
9869 conftest$ac_exeext conftest.$ac_ext
9870fi
9871echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9872echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9873if test `eval echo '${'$as_ac_var'}'` = yes; then
9874 cat >>confdefs.h <<_ACEOF
9875#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9876_ACEOF
9877
9878fi
9879done
9880
9881
9882
9883 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9884echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
9885if test "${ac_cv_have_decl__snprintf+set}" = set; then
9886 echo $ECHO_N "(cached) $ECHO_C" >&6
9887else
9888 cat >conftest.$ac_ext <<_ACEOF
9889/* confdefs.h. */
9890_ACEOF
9891cat confdefs.h >>conftest.$ac_ext
9892cat >>conftest.$ac_ext <<_ACEOF
9893/* end confdefs.h. */
9894#include <stdio.h>
9895int
9896main ()
9897{
9898
9899#ifndef _snprintf
9900 char *p = (char *) _snprintf;
9901#endif
9902
9903 ;
9904 return 0;
9905}
9906_ACEOF
9907rm -f conftest.$ac_objext
9908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9909 (eval $ac_compile) 2>conftest.er1
9910 ac_status=$?
9911 grep -v '^ *+' conftest.er1 >conftest.err
9912 rm -f conftest.er1
9913 cat conftest.err >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } &&
9916 { ac_try='test -z "$ac_cxx_werror_flag"
9917 || test ! -s conftest.err'
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); }; } &&
9923 { ac_try='test -s conftest.$ac_objext'
9924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 (eval $ac_try) 2>&5
9926 ac_status=$?
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; }; then
9929 ac_cv_have_decl__snprintf=yes
9930else
9931 echo "$as_me: failed program was:" >&5
9932sed 's/^/| /' conftest.$ac_ext >&5
9933
9934ac_cv_have_decl__snprintf=no
9935fi
9936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9937fi
9938echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9939echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
9940 if test $ac_cv_have_decl__snprintf = yes; then
9941 gt_value=1
9942 else
9943 gt_value=0
9944 fi
9945
9946cat >>confdefs.h <<_ACEOF
9947#define HAVE_DECL__SNPRINTF $gt_value
9948_ACEOF
9949
9950
9951
9952 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9953echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
9954if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9956else
9957 cat >conftest.$ac_ext <<_ACEOF
9958/* confdefs.h. */
9959_ACEOF
9960cat confdefs.h >>conftest.$ac_ext
9961cat >>conftest.$ac_ext <<_ACEOF
9962/* end confdefs.h. */
9963#include <stdio.h>
9964int
9965main ()
9966{
9967
9968#ifndef _snwprintf
9969 char *p = (char *) _snwprintf;
9970#endif
9971
9972 ;
9973 return 0;
9974}
9975_ACEOF
9976rm -f conftest.$ac_objext
9977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9978 (eval $ac_compile) 2>conftest.er1
9979 ac_status=$?
9980 grep -v '^ *+' conftest.er1 >conftest.err
9981 rm -f conftest.er1
9982 cat conftest.err >&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); } &&
9985 { ac_try='test -z "$ac_cxx_werror_flag"
9986 || test ! -s conftest.err'
9987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988 (eval $ac_try) 2>&5
9989 ac_status=$?
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; } &&
9992 { ac_try='test -s conftest.$ac_objext'
9993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994 (eval $ac_try) 2>&5
9995 ac_status=$?
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; }; then
9998 ac_cv_have_decl__snwprintf=yes
9999else
10000 echo "$as_me: failed program was:" >&5
10001sed 's/^/| /' conftest.$ac_ext >&5
10002
10003ac_cv_have_decl__snwprintf=no
10004fi
10005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10006fi
10007echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
10008echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
10009 if test $ac_cv_have_decl__snwprintf = yes; then
10010 gt_value=1
10011 else
10012 gt_value=0
10013 fi
10014
10015cat >>confdefs.h <<_ACEOF
10016#define HAVE_DECL__SNWPRINTF $gt_value
10017_ACEOF
10018
10019
10020
10021
10022 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
10023echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
10024if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
10026else
10027 cat >conftest.$ac_ext <<_ACEOF
10028/* confdefs.h. */
10029_ACEOF
10030cat confdefs.h >>conftest.$ac_ext
10031cat >>conftest.$ac_ext <<_ACEOF
10032/* end confdefs.h. */
10033#include <stdio.h>
10034int
10035main ()
10036{
10037
10038#ifndef feof_unlocked
10039 char *p = (char *) feof_unlocked;
10040#endif
10041
10042 ;
10043 return 0;
10044}
10045_ACEOF
10046rm -f conftest.$ac_objext
10047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10048 (eval $ac_compile) 2>conftest.er1
10049 ac_status=$?
10050 grep -v '^ *+' conftest.er1 >conftest.err
10051 rm -f conftest.er1
10052 cat conftest.err >&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); } &&
10055 { ac_try='test -z "$ac_cxx_werror_flag"
10056 || test ! -s conftest.err'
10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5
10059 ac_status=$?
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; } &&
10062 { ac_try='test -s conftest.$ac_objext'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; }; then
10068 ac_cv_have_decl_feof_unlocked=yes
10069else
10070 echo "$as_me: failed program was:" >&5
10071sed 's/^/| /' conftest.$ac_ext >&5
10072
10073ac_cv_have_decl_feof_unlocked=no
10074fi
10075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10076fi
10077echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
10078echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
10079 if test $ac_cv_have_decl_feof_unlocked = yes; then
10080 gt_value=1
10081 else
10082 gt_value=0
10083 fi
10084
10085cat >>confdefs.h <<_ACEOF
10086#define HAVE_DECL_FEOF_UNLOCKED $gt_value
10087_ACEOF
10088
10089
10090
10091 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
10092echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
10093if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10095else
10096 cat >conftest.$ac_ext <<_ACEOF
10097/* confdefs.h. */
10098_ACEOF
10099cat confdefs.h >>conftest.$ac_ext
10100cat >>conftest.$ac_ext <<_ACEOF
10101/* end confdefs.h. */
10102#include <stdio.h>
10103int
10104main ()
10105{
10106
10107#ifndef fgets_unlocked
10108 char *p = (char *) fgets_unlocked;
10109#endif
10110
10111 ;
10112 return 0;
10113}
10114_ACEOF
10115rm -f conftest.$ac_objext
10116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10117 (eval $ac_compile) 2>conftest.er1
10118 ac_status=$?
10119 grep -v '^ *+' conftest.er1 >conftest.err
10120 rm -f conftest.er1
10121 cat conftest.err >&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } &&
10124 { ac_try='test -z "$ac_cxx_werror_flag"
10125 || test ! -s conftest.err'
10126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127 (eval $ac_try) 2>&5
10128 ac_status=$?
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; } &&
10131 { ac_try='test -s conftest.$ac_objext'
10132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133 (eval $ac_try) 2>&5
10134 ac_status=$?
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; }; then
10137 ac_cv_have_decl_fgets_unlocked=yes
10138else
10139 echo "$as_me: failed program was:" >&5
10140sed 's/^/| /' conftest.$ac_ext >&5
10141
10142ac_cv_have_decl_fgets_unlocked=no
10143fi
10144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10145fi
10146echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10147echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
10148 if test $ac_cv_have_decl_fgets_unlocked = yes; then
10149 gt_value=1
10150 else
10151 gt_value=0
10152 fi
10153
10154cat >>confdefs.h <<_ACEOF
10155#define HAVE_DECL_FGETS_UNLOCKED $gt_value
10156_ACEOF
10157
10158
10159
10160 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10161echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
10162if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10163 echo $ECHO_N "(cached) $ECHO_C" >&6
10164else
10165 cat >conftest.$ac_ext <<_ACEOF
10166/* confdefs.h. */
10167_ACEOF
10168cat confdefs.h >>conftest.$ac_ext
10169cat >>conftest.$ac_ext <<_ACEOF
10170/* end confdefs.h. */
10171#include <stdio.h>
10172int
10173main ()
10174{
10175
10176#ifndef getc_unlocked
10177 char *p = (char *) getc_unlocked;
10178#endif
10179
10180 ;
10181 return 0;
10182}
10183_ACEOF
10184rm -f conftest.$ac_objext
10185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10186 (eval $ac_compile) 2>conftest.er1
10187 ac_status=$?
10188 grep -v '^ *+' conftest.er1 >conftest.err
10189 rm -f conftest.er1
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } &&
10193 { ac_try='test -z "$ac_cxx_werror_flag"
10194 || test ! -s conftest.err'
10195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196 (eval $ac_try) 2>&5
10197 ac_status=$?
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); }; } &&
10200 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10206 ac_cv_have_decl_getc_unlocked=yes
10207else
10208 echo "$as_me: failed program was:" >&5
10209sed 's/^/| /' conftest.$ac_ext >&5
10210
10211ac_cv_have_decl_getc_unlocked=no
10212fi
10213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10214fi
10215echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10216echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
10217 if test $ac_cv_have_decl_getc_unlocked = yes; then
10218 gt_value=1
10219 else
10220 gt_value=0
10221 fi
10222
10223cat >>confdefs.h <<_ACEOF
10224#define HAVE_DECL_GETC_UNLOCKED $gt_value
10225_ACEOF
10226
10227
10228
10229 case $gt_cv_func_printf_posix in
10230 *yes) HAVE_POSIX_PRINTF=1 ;;
10231 *) HAVE_POSIX_PRINTF=0 ;;
10232 esac
10233
10234 if test "$ac_cv_func_asprintf" = yes; then
10235 HAVE_ASPRINTF=1
10236 else
10237 HAVE_ASPRINTF=0
10238 fi
10239
10240 if test "$ac_cv_func_snprintf" = yes; then
10241 HAVE_SNPRINTF=1
10242 else
10243 HAVE_SNPRINTF=0
10244 fi
10245
10246 if test "$ac_cv_func_wprintf" = yes; then
10247 HAVE_WPRINTF=1
10248 else
10249 HAVE_WPRINTF=0
10250 fi
10251
10252
10253
10254
10255
10256
10257
10258 am_save_CPPFLAGS="$CPPFLAGS"
10259
10260 for element in $INCICONV; do
10261 haveit=
10262 for x in $CPPFLAGS; do
10263
10264 acl_save_prefix="$prefix"
10265 prefix="$acl_final_prefix"
10266 acl_save_exec_prefix="$exec_prefix"
10267 exec_prefix="$acl_final_exec_prefix"
10268 eval x=\"$x\"
10269 exec_prefix="$acl_save_exec_prefix"
10270 prefix="$acl_save_prefix"
10271
10272 if test "X$x" = "X$element"; then
10273 haveit=yes
10274 break
10275 fi
10276 done
10277 if test -z "$haveit"; then
10278 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10279 fi
10280 done
10281
10282
10283 echo "$as_me:$LINENO: checking for iconv" >&5
10284echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10285if test "${am_cv_func_iconv+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10287else
10288
10289 am_cv_func_iconv="no, consider installing GNU libiconv"
10290 am_cv_lib_iconv=no
10291 cat >conftest.$ac_ext <<_ACEOF
10292/* confdefs.h. */
10293_ACEOF
10294cat confdefs.h >>conftest.$ac_ext
10295cat >>conftest.$ac_ext <<_ACEOF
10296/* end confdefs.h. */
10297#include <stdlib.h>
10298#include <iconv.h>
10299int
10300main ()
10301{
10302iconv_t cd = iconv_open("","");
10303 iconv(cd,NULL,NULL,NULL,NULL);
10304 iconv_close(cd);
10305 ;
10306 return 0;
10307}
10308_ACEOF
10309rm -f conftest.$ac_objext conftest$ac_exeext
10310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10311 (eval $ac_link) 2>conftest.er1
10312 ac_status=$?
10313 grep -v '^ *+' conftest.er1 >conftest.err
10314 rm -f conftest.er1
10315 cat conftest.err >&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } &&
10318 { ac_try='test -z "$ac_cxx_werror_flag"
10319 || test ! -s conftest.err'
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10322 ac_status=$?
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; } &&
10325 { ac_try='test -s conftest$ac_exeext'
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10328 ac_status=$?
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; }; then
10331 am_cv_func_iconv=yes
10332else
10333 echo "$as_me: failed program was:" >&5
10334sed 's/^/| /' conftest.$ac_ext >&5
10335
10336fi
10337rm -f conftest.err conftest.$ac_objext \
10338 conftest$ac_exeext conftest.$ac_ext
10339 if test "$am_cv_func_iconv" != yes; then
10340 am_save_LIBS="$LIBS"
10341 LIBS="$LIBS $LIBICONV"
10342 cat >conftest.$ac_ext <<_ACEOF
10343/* confdefs.h. */
10344_ACEOF
10345cat confdefs.h >>conftest.$ac_ext
10346cat >>conftest.$ac_ext <<_ACEOF
10347/* end confdefs.h. */
10348#include <stdlib.h>
10349#include <iconv.h>
10350int
10351main ()
10352{
10353iconv_t cd = iconv_open("","");
10354 iconv(cd,NULL,NULL,NULL,NULL);
10355 iconv_close(cd);
10356 ;
10357 return 0;
10358}
10359_ACEOF
10360rm -f conftest.$ac_objext conftest$ac_exeext
10361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10362 (eval $ac_link) 2>conftest.er1
10363 ac_status=$?
10364 grep -v '^ *+' conftest.er1 >conftest.err
10365 rm -f conftest.er1
10366 cat conftest.err >&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } &&
10369 { ac_try='test -z "$ac_cxx_werror_flag"
10370 || test ! -s conftest.err'
10371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10372 (eval $ac_try) 2>&5
10373 ac_status=$?
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); }; } &&
10376 { ac_try='test -s conftest$ac_exeext'
10377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10378 (eval $ac_try) 2>&5
10379 ac_status=$?
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); }; }; then
10382 am_cv_lib_iconv=yes
10383 am_cv_func_iconv=yes
10384else
10385 echo "$as_me: failed program was:" >&5
10386sed 's/^/| /' conftest.$ac_ext >&5
10387
10388fi
10389rm -f conftest.err conftest.$ac_objext \
10390 conftest$ac_exeext conftest.$ac_ext
10391 LIBS="$am_save_LIBS"
10392 fi
10393
10394fi
10395echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10396echo "${ECHO_T}$am_cv_func_iconv" >&6
10397 if test "$am_cv_func_iconv" = yes; then
10398
10399cat >>confdefs.h <<\_ACEOF
10400#define HAVE_ICONV 1
10401_ACEOF
10402
10403 fi
10404 if test "$am_cv_lib_iconv" = yes; then
10405 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10406echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10407 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10408echo "${ECHO_T}$LIBICONV" >&6
10409 else
10410 CPPFLAGS="$am_save_CPPFLAGS"
10411 LIBICONV=
10412 LTLIBICONV=
10413 fi
10414
10415
10416
10417 if test "$am_cv_func_iconv" = yes; then
10418 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10419echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10420 if test "${am_cv_proto_iconv+set}" = set; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10422else
10423
10424 cat >conftest.$ac_ext <<_ACEOF
10425/* confdefs.h. */
10426_ACEOF
10427cat confdefs.h >>conftest.$ac_ext
10428cat >>conftest.$ac_ext <<_ACEOF
10429/* end confdefs.h. */
10430
10431#include <stdlib.h>
10432#include <iconv.h>
10433extern
10434#ifdef __cplusplus
10435"C"
10436#endif
10437#if defined(__STDC__) || defined(__cplusplus)
10438size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10439#else
10440size_t iconv();
10441#endif
10442
10443int
10444main ()
10445{
10446
10447 ;
10448 return 0;
10449}
10450_ACEOF
10451rm -f conftest.$ac_objext
10452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10453 (eval $ac_compile) 2>conftest.er1
10454 ac_status=$?
10455 grep -v '^ *+' conftest.er1 >conftest.err
10456 rm -f conftest.er1
10457 cat conftest.err >&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } &&
10460 { ac_try='test -z "$ac_cxx_werror_flag"
10461 || test ! -s conftest.err'
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5
10464 ac_status=$?
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; } &&
10467 { ac_try='test -s conftest.$ac_objext'
10468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10469 (eval $ac_try) 2>&5
10470 ac_status=$?
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; }; then
10473 am_cv_proto_iconv_arg1=""
10474else
10475 echo "$as_me: failed program was:" >&5
10476sed 's/^/| /' conftest.$ac_ext >&5
10477
10478am_cv_proto_iconv_arg1="const"
10479fi
10480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10481 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);"
10482fi
10483
10484 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10485 echo "$as_me:$LINENO: result: ${ac_t:-
10486 }$am_cv_proto_iconv" >&5
10487echo "${ECHO_T}${ac_t:-
10488 }$am_cv_proto_iconv" >&6
10489
10490cat >>confdefs.h <<_ACEOF
10491#define ICONV_CONST $am_cv_proto_iconv_arg1
10492_ACEOF
10493
10494 fi
10495
10496
10497 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10498echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
10499if test "${am_cv_langinfo_codeset+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10501else
10502 cat >conftest.$ac_ext <<_ACEOF
10503/* confdefs.h. */
10504_ACEOF
10505cat confdefs.h >>conftest.$ac_ext
10506cat >>conftest.$ac_ext <<_ACEOF
10507/* end confdefs.h. */
10508#include <langinfo.h>
10509int
10510main ()
10511{
10512char* cs = nl_langinfo(CODESET);
10513 ;
10514 return 0;
10515}
10516_ACEOF
10517rm -f conftest.$ac_objext conftest$ac_exeext
10518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10519 (eval $ac_link) 2>conftest.er1
10520 ac_status=$?
10521 grep -v '^ *+' conftest.er1 >conftest.err
10522 rm -f conftest.er1
10523 cat conftest.err >&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); } &&
10526 { ac_try='test -z "$ac_cxx_werror_flag"
10527 || test ! -s conftest.err'
10528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529 (eval $ac_try) 2>&5
10530 ac_status=$?
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; } &&
10533 { ac_try='test -s conftest$ac_exeext'
10534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535 (eval $ac_try) 2>&5
10536 ac_status=$?
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; }; then
10539 am_cv_langinfo_codeset=yes
10540else
10541 echo "$as_me: failed program was:" >&5
10542sed 's/^/| /' conftest.$ac_ext >&5
10543
10544am_cv_langinfo_codeset=no
10545fi
10546rm -f conftest.err conftest.$ac_objext \
10547 conftest$ac_exeext conftest.$ac_ext
10548
10549fi
10550echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10551echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
10552 if test $am_cv_langinfo_codeset = yes; then
10553
10554cat >>confdefs.h <<\_ACEOF
10555#define HAVE_LANGINFO_CODESET 1
10556_ACEOF
10557
10558 fi
10559
10560 if test $ac_cv_header_locale_h = yes; then
10561
10562 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10563echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10564if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10565 echo $ECHO_N "(cached) $ECHO_C" >&6
10566else
10567 cat >conftest.$ac_ext <<_ACEOF
10568/* confdefs.h. */
10569_ACEOF
10570cat confdefs.h >>conftest.$ac_ext
10571cat >>conftest.$ac_ext <<_ACEOF
10572/* end confdefs.h. */
10573#include <locale.h>
10574int
10575main ()
10576{
10577return LC_MESSAGES
10578 ;
10579 return 0;
10580}
10581_ACEOF
10582rm -f conftest.$ac_objext conftest$ac_exeext
10583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10584 (eval $ac_link) 2>conftest.er1
10585 ac_status=$?
10586 grep -v '^ *+' conftest.er1 >conftest.err
10587 rm -f conftest.er1
10588 cat conftest.err >&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } &&
10591 { ac_try='test -z "$ac_cxx_werror_flag"
10592 || test ! -s conftest.err'
10593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594 (eval $ac_try) 2>&5
10595 ac_status=$?
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; } &&
10598 { ac_try='test -s conftest$ac_exeext'
10599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10600 (eval $ac_try) 2>&5
10601 ac_status=$?
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); }; }; then
10604 am_cv_val_LC_MESSAGES=yes
10605else
10606 echo "$as_me: failed program was:" >&5
10607sed 's/^/| /' conftest.$ac_ext >&5
10608
10609am_cv_val_LC_MESSAGES=no
10610fi
10611rm -f conftest.err conftest.$ac_objext \
10612 conftest$ac_exeext conftest.$ac_ext
10613fi
10614echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10615echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10616 if test $am_cv_val_LC_MESSAGES = yes; then
10617
10618cat >>confdefs.h <<\_ACEOF
10619#define HAVE_LC_MESSAGES 1
10620_ACEOF
10621
10622 fi
10623
10624 fi
10625
10626 for ac_prog in bison
10627do
10628 # Extract the first word of "$ac_prog", so it can be a program name with args.
10629set dummy $ac_prog; ac_word=$2
10630echo "$as_me:$LINENO: checking for $ac_word" >&5
10631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10632if test "${ac_cv_prog_INTLBISON+set}" = set; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10634else
10635 if test -n "$INTLBISON"; then
10636 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10637else
10638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639for as_dir in $PATH
10640do
10641 IFS=$as_save_IFS
10642 test -z "$as_dir" && as_dir=.
10643 for ac_exec_ext in '' $ac_executable_extensions; do
10644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10645 ac_cv_prog_INTLBISON="$ac_prog"
10646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10647 break 2
10648 fi
10649done
10650done
10651
10652fi
10653fi
10654INTLBISON=$ac_cv_prog_INTLBISON
10655if test -n "$INTLBISON"; then
10656 echo "$as_me:$LINENO: result: $INTLBISON" >&5
10657echo "${ECHO_T}$INTLBISON" >&6
10658else
10659 echo "$as_me:$LINENO: result: no" >&5
10660echo "${ECHO_T}no" >&6
10661fi
10662
10663 test -n "$INTLBISON" && break
10664done
10665
10666 if test -z "$INTLBISON"; then
10667 ac_verc_fail=yes
10668 else
10669 echo "$as_me:$LINENO: checking version of bison" >&5
10670echo $ECHO_N "checking version of bison... $ECHO_C" >&6
10671 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10672 case $ac_prog_version in
10673 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10674 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10675 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10676 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10677 esac
10678 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10679echo "${ECHO_T}$ac_prog_version" >&6
10680 fi
10681 if test $ac_verc_fail = yes; then
10682 INTLBISON=:
10683 fi
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10701echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10702 # Check whether --enable-nls or --disable-nls was given.
10703if test "${enable_nls+set}" = set; then
10704 enableval="$enable_nls"
10705 USE_NLS=$enableval
10706else
10707 USE_NLS=yes
10708fi;
10709 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10710echo "${ECHO_T}$USE_NLS" >&6
10711
10712
10713
10714
10715 BUILD_INCLUDED_LIBINTL=no
10716 USE_INCLUDED_LIBINTL=no
10717
10718 LIBINTL=
10719 LTLIBINTL=
10720 POSUB=
10721
10722 if test "$USE_NLS" = "yes"; then
10723 gt_use_preinstalled_gnugettext=no
10724
10725 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10726echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
10727
10728# Check whether --with-included-gettext or --without-included-gettext was given.
10729if test "${with_included_gettext+set}" = set; then
10730 withval="$with_included_gettext"
10731 nls_cv_force_use_gnu_gettext=$withval
10732else
10733 nls_cv_force_use_gnu_gettext=no
10734fi;
10735 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10736echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
10737
10738 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10739 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10740
10741
10742
10743
10744
10745
10746 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10747echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
10748if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10750else
10751 cat >conftest.$ac_ext <<_ACEOF
10752/* confdefs.h. */
10753_ACEOF
10754cat confdefs.h >>conftest.$ac_ext
10755cat >>conftest.$ac_ext <<_ACEOF
10756/* end confdefs.h. */
10757#include <libintl.h>
10758extern int _nl_msg_cat_cntr;
10759extern int *_nl_domain_bindings;
10760int
10761main ()
10762{
10763bindtextdomain ("", "");
10764return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10765 ;
10766 return 0;
10767}
10768_ACEOF
10769rm -f conftest.$ac_objext conftest$ac_exeext
10770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10771 (eval $ac_link) 2>conftest.er1
10772 ac_status=$?
10773 grep -v '^ *+' conftest.er1 >conftest.err
10774 rm -f conftest.er1
10775 cat conftest.err >&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } &&
10778 { ac_try='test -z "$ac_cxx_werror_flag"
10779 || test ! -s conftest.err'
10780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781 (eval $ac_try) 2>&5
10782 ac_status=$?
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; } &&
10785 { ac_try='test -s conftest$ac_exeext'
10786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
10788 ac_status=$?
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; }; then
10791 gt_cv_func_gnugettext1_libc=yes
10792else
10793 echo "$as_me: failed program was:" >&5
10794sed 's/^/| /' conftest.$ac_ext >&5
10795
10796gt_cv_func_gnugettext1_libc=no
10797fi
10798rm -f conftest.err conftest.$ac_objext \
10799 conftest$ac_exeext conftest.$ac_ext
10800fi
10801echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10802echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
10803
10804 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10805
10806
10807
10808 use_additional=yes
10809
10810 acl_save_prefix="$prefix"
10811 prefix="$acl_final_prefix"
10812 acl_save_exec_prefix="$exec_prefix"
10813 exec_prefix="$acl_final_exec_prefix"
10814
10815 eval additional_includedir=\"$includedir\"
10816 eval additional_libdir=\"$libdir\"
10817
10818 exec_prefix="$acl_save_exec_prefix"
10819 prefix="$acl_save_prefix"
10820
10821
10822# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
10823if test "${with_libintl_prefix+set}" = set; then
10824 withval="$with_libintl_prefix"
10825
10826 if test "X$withval" = "Xno"; then
10827 use_additional=no
10828 else
10829 if test "X$withval" = "X"; then
10830
10831 acl_save_prefix="$prefix"
10832 prefix="$acl_final_prefix"
10833 acl_save_exec_prefix="$exec_prefix"
10834 exec_prefix="$acl_final_exec_prefix"
10835
10836 eval additional_includedir=\"$includedir\"
10837 eval additional_libdir=\"$libdir\"
10838
10839 exec_prefix="$acl_save_exec_prefix"
10840 prefix="$acl_save_prefix"
10841
10842 else
10843 additional_includedir="$withval/include"
10844 additional_libdir="$withval/lib"
10845 fi
10846 fi
10847
10848fi;
10849 LIBINTL=
10850 LTLIBINTL=
10851 INCINTL=
10852 rpathdirs=
10853 ltrpathdirs=
10854 names_already_handled=
10855 names_next_round='intl '
10856 while test -n "$names_next_round"; do
10857 names_this_round="$names_next_round"
10858 names_next_round=
10859 for name in $names_this_round; do
10860 already_handled=
10861 for n in $names_already_handled; do
10862 if test "$n" = "$name"; then
10863 already_handled=yes
10864 break
10865 fi
10866 done
10867 if test -z "$already_handled"; then
10868 names_already_handled="$names_already_handled $name"
10869 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10870 eval value=\"\$HAVE_LIB$uppername\"
10871 if test -n "$value"; then
10872 if test "$value" = yes; then
10873 eval value=\"\$LIB$uppername\"
10874 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10875 eval value=\"\$LTLIB$uppername\"
10876 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10877 else
10878 :
10879 fi
10880 else
10881 found_dir=
10882 found_la=
10883 found_so=
10884 found_a=
10885 if test $use_additional = yes; then
10886 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10887 found_dir="$additional_libdir"
10888 found_so="$additional_libdir/lib$name.$shlibext"
10889 if test -f "$additional_libdir/lib$name.la"; then
10890 found_la="$additional_libdir/lib$name.la"
10891 fi
10892 else
10893 if test -f "$additional_libdir/lib$name.$libext"; then
10894 found_dir="$additional_libdir"
10895 found_a="$additional_libdir/lib$name.$libext"
10896 if test -f "$additional_libdir/lib$name.la"; then
10897 found_la="$additional_libdir/lib$name.la"
10898 fi
10899 fi
10900 fi
10901 fi
10902 if test "X$found_dir" = "X"; then
10903 for x in $LDFLAGS $LTLIBINTL; do
10904
10905 acl_save_prefix="$prefix"
10906 prefix="$acl_final_prefix"
10907 acl_save_exec_prefix="$exec_prefix"
10908 exec_prefix="$acl_final_exec_prefix"
10909 eval x=\"$x\"
10910 exec_prefix="$acl_save_exec_prefix"
10911 prefix="$acl_save_prefix"
10912
10913 case "$x" in
10914 -L*)
10915 dir=`echo "X$x" | sed -e 's/^X-L//'`
10916 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10917 found_dir="$dir"
10918 found_so="$dir/lib$name.$shlibext"
10919 if test -f "$dir/lib$name.la"; then
10920 found_la="$dir/lib$name.la"
10921 fi
10922 else
10923 if test -f "$dir/lib$name.$libext"; then
10924 found_dir="$dir"
10925 found_a="$dir/lib$name.$libext"
10926 if test -f "$dir/lib$name.la"; then
10927 found_la="$dir/lib$name.la"
10928 fi
10929 fi
10930 fi
10931 ;;
10932 esac
10933 if test "X$found_dir" != "X"; then
10934 break
10935 fi
10936 done
10937 fi
10938 if test "X$found_dir" != "X"; then
10939 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10940 if test "X$found_so" != "X"; then
10941 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10942 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10943 else
10944 haveit=
10945 for x in $ltrpathdirs; do
10946 if test "X$x" = "X$found_dir"; then
10947 haveit=yes
10948 break
10949 fi
10950 done
10951 if test -z "$haveit"; then
10952 ltrpathdirs="$ltrpathdirs $found_dir"
10953 fi
10954 if test "$hardcode_direct" = yes; then
10955 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10956 else
10957 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10958 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10959 haveit=
10960 for x in $rpathdirs; do
10961 if test "X$x" = "X$found_dir"; then
10962 haveit=yes
10963 break
10964 fi
10965 done
10966 if test -z "$haveit"; then
10967 rpathdirs="$rpathdirs $found_dir"
10968 fi
10969 else
10970 haveit=
10971 for x in $LDFLAGS $LIBINTL; do
10972
10973 acl_save_prefix="$prefix"
10974 prefix="$acl_final_prefix"
10975 acl_save_exec_prefix="$exec_prefix"
10976 exec_prefix="$acl_final_exec_prefix"
10977 eval x=\"$x\"
10978 exec_prefix="$acl_save_exec_prefix"
10979 prefix="$acl_save_prefix"
10980
10981 if test "X$x" = "X-L$found_dir"; then
10982 haveit=yes
10983 break
10984 fi
10985 done
10986 if test -z "$haveit"; then
10987 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10988 fi
10989 if test "$hardcode_minus_L" != no; then
10990 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10991 else
10992 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10993 fi
10994 fi
10995 fi
10996 fi
10997 else
10998 if test "X$found_a" != "X"; then
10999 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11000 else
11001 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11002 fi
11003 fi
11004 additional_includedir=
11005 case "$found_dir" in
11006 */lib | */lib/)
11007 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11008 additional_includedir="$basedir/include"
11009 ;;
11010 esac
11011 if test "X$additional_includedir" != "X"; then
11012 if test "X$additional_includedir" != "X/usr/include"; then
11013 haveit=
11014 if test "X$additional_includedir" = "X/usr/local/include"; then
11015 if test -n "$GCC"; then
11016 case $host_os in
11017 linux*) haveit=yes;;
11018 esac
11019 fi
11020 fi
11021 if test -z "$haveit"; then
11022 for x in $CPPFLAGS $INCINTL; do
11023
11024 acl_save_prefix="$prefix"
11025 prefix="$acl_final_prefix"
11026 acl_save_exec_prefix="$exec_prefix"
11027 exec_prefix="$acl_final_exec_prefix"
11028 eval x=\"$x\"
11029 exec_prefix="$acl_save_exec_prefix"
11030 prefix="$acl_save_prefix"
11031
11032 if test "X$x" = "X-I$additional_includedir"; then
11033 haveit=yes
11034 break
11035 fi
11036 done
11037 if test -z "$haveit"; then
11038 if test -d "$additional_includedir"; then
11039 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11040 fi
11041 fi
11042 fi
11043 fi
11044 fi
11045 if test -n "$found_la"; then
11046 save_libdir="$libdir"
11047 case "$found_la" in
11048 */* | *\\*) . "$found_la" ;;
11049 *) . "./$found_la" ;;
11050 esac
11051 libdir="$save_libdir"
11052 for dep in $dependency_libs; do
11053 case "$dep" in
11054 -L*)
11055 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11056 if test "X$additional_libdir" != "X/usr/lib"; then
11057 haveit=
11058 if test "X$additional_libdir" = "X/usr/local/lib"; then
11059 if test -n "$GCC"; then
11060 case $host_os in
11061 linux*) haveit=yes;;
11062 esac
11063 fi
11064 fi
11065 if test -z "$haveit"; then
11066 haveit=
11067 for x in $LDFLAGS $LIBINTL; do
11068
11069 acl_save_prefix="$prefix"
11070 prefix="$acl_final_prefix"
11071 acl_save_exec_prefix="$exec_prefix"
11072 exec_prefix="$acl_final_exec_prefix"
11073 eval x=\"$x\"
11074 exec_prefix="$acl_save_exec_prefix"
11075 prefix="$acl_save_prefix"
11076
11077 if test "X$x" = "X-L$additional_libdir"; then
11078 haveit=yes
11079 break
11080 fi
11081 done
11082 if test -z "$haveit"; then
11083 if test -d "$additional_libdir"; then
11084 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11085 fi
11086 fi
11087 haveit=
11088 for x in $LDFLAGS $LTLIBINTL; do
11089
11090 acl_save_prefix="$prefix"
11091 prefix="$acl_final_prefix"
11092 acl_save_exec_prefix="$exec_prefix"
11093 exec_prefix="$acl_final_exec_prefix"
11094 eval x=\"$x\"
11095 exec_prefix="$acl_save_exec_prefix"
11096 prefix="$acl_save_prefix"
11097
11098 if test "X$x" = "X-L$additional_libdir"; then
11099 haveit=yes
11100 break
11101 fi
11102 done
11103 if test -z "$haveit"; then
11104 if test -d "$additional_libdir"; then
11105 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11106 fi
11107 fi
11108 fi
11109 fi
11110 ;;
11111 -R*)
11112 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11113 if test "$enable_rpath" != no; then
11114 haveit=
11115 for x in $rpathdirs; do
11116 if test "X$x" = "X$dir"; then
11117 haveit=yes
11118 break
11119 fi
11120 done
11121 if test -z "$haveit"; then
11122 rpathdirs="$rpathdirs $dir"
11123 fi
11124 haveit=
11125 for x in $ltrpathdirs; do
11126 if test "X$x" = "X$dir"; then
11127 haveit=yes
11128 break
11129 fi
11130 done
11131 if test -z "$haveit"; then
11132 ltrpathdirs="$ltrpathdirs $dir"
11133 fi
11134 fi
11135 ;;
11136 -l*)
11137 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11138 ;;
11139 *.la)
11140 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11141 ;;
11142 *)
11143 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11144 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11145 ;;
11146 esac
11147 done
11148 fi
11149 else
11150 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11151 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11152 fi
11153 fi
11154 fi
11155 done
11156 done
11157 if test "X$rpathdirs" != "X"; then
11158 if test -n "$hardcode_libdir_separator"; then
11159 alldirs=
11160 for found_dir in $rpathdirs; do
11161 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11162 done
11163 acl_save_libdir="$libdir"
11164 libdir="$alldirs"
11165 eval flag=\"$hardcode_libdir_flag_spec\"
11166 libdir="$acl_save_libdir"
11167 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11168 else
11169 for found_dir in $rpathdirs; do
11170 acl_save_libdir="$libdir"
11171 libdir="$found_dir"
11172 eval flag=\"$hardcode_libdir_flag_spec\"
11173 libdir="$acl_save_libdir"
11174 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11175 done
11176 fi
11177 fi
11178 if test "X$ltrpathdirs" != "X"; then
11179 for found_dir in $ltrpathdirs; do
11180 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11181 done
11182 fi
11183
11184 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11185echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
11186if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11187 echo $ECHO_N "(cached) $ECHO_C" >&6
11188else
11189 gt_save_CPPFLAGS="$CPPFLAGS"
11190 CPPFLAGS="$CPPFLAGS $INCINTL"
11191 gt_save_LIBS="$LIBS"
11192 LIBS="$LIBS $LIBINTL"
11193 cat >conftest.$ac_ext <<_ACEOF
11194/* confdefs.h. */
11195_ACEOF
11196cat confdefs.h >>conftest.$ac_ext
11197cat >>conftest.$ac_ext <<_ACEOF
11198/* end confdefs.h. */
11199#include <libintl.h>
11200extern int _nl_msg_cat_cntr;
11201extern
11202#ifdef __cplusplus
11203"C"
11204#endif
11205const char *_nl_expand_alias ();
11206int
11207main ()
11208{
11209bindtextdomain ("", "");
11210return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11211 ;
11212 return 0;
11213}
11214_ACEOF
11215rm -f conftest.$ac_objext conftest$ac_exeext
11216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11217 (eval $ac_link) 2>conftest.er1
11218 ac_status=$?
11219 grep -v '^ *+' conftest.er1 >conftest.err
11220 rm -f conftest.er1
11221 cat conftest.err >&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } &&
11224 { ac_try='test -z "$ac_cxx_werror_flag"
11225 || test ! -s conftest.err'
11226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227 (eval $ac_try) 2>&5
11228 ac_status=$?
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; } &&
11231 { ac_try='test -s conftest$ac_exeext'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11234 ac_status=$?
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; }; then
11237 gt_cv_func_gnugettext1_libintl=yes
11238else
11239 echo "$as_me: failed program was:" >&5
11240sed 's/^/| /' conftest.$ac_ext >&5
11241
11242gt_cv_func_gnugettext1_libintl=no
11243fi
11244rm -f conftest.err conftest.$ac_objext \
11245 conftest$ac_exeext conftest.$ac_ext
11246 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11247 LIBS="$LIBS $LIBICONV"
11248 cat >conftest.$ac_ext <<_ACEOF
11249/* confdefs.h. */
11250_ACEOF
11251cat confdefs.h >>conftest.$ac_ext
11252cat >>conftest.$ac_ext <<_ACEOF
11253/* end confdefs.h. */
11254#include <libintl.h>
11255extern int _nl_msg_cat_cntr;
11256extern
11257#ifdef __cplusplus
11258"C"
11259#endif
11260const char *_nl_expand_alias ();
11261int
11262main ()
11263{
11264bindtextdomain ("", "");
11265return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11266 ;
11267 return 0;
11268}
11269_ACEOF
11270rm -f conftest.$ac_objext conftest$ac_exeext
11271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11272 (eval $ac_link) 2>conftest.er1
11273 ac_status=$?
11274 grep -v '^ *+' conftest.er1 >conftest.err
11275 rm -f conftest.er1
11276 cat conftest.err >&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); } &&
11279 { ac_try='test -z "$ac_cxx_werror_flag"
11280 || test ! -s conftest.err'
11281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282 (eval $ac_try) 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; } &&
11286 { ac_try='test -s conftest$ac_exeext'
11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288 (eval $ac_try) 2>&5
11289 ac_status=$?
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; }; then
11292 LIBINTL="$LIBINTL $LIBICONV"
11293 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11294 gt_cv_func_gnugettext1_libintl=yes
11295
11296else
11297 echo "$as_me: failed program was:" >&5
11298sed 's/^/| /' conftest.$ac_ext >&5
11299
11300fi
11301rm -f conftest.err conftest.$ac_objext \
11302 conftest$ac_exeext conftest.$ac_ext
11303 fi
11304 CPPFLAGS="$gt_save_CPPFLAGS"
11305 LIBS="$gt_save_LIBS"
11306fi
11307echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11308echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
11309 fi
11310
11311 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11312 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11313 && test "$PACKAGE" != gettext-runtime \
11314 && test "$PACKAGE" != gettext-tools; }; then
11315 gt_use_preinstalled_gnugettext=yes
11316 else
11317 LIBINTL=
11318 LTLIBINTL=
11319 INCINTL=
11320 fi
11321
11322
11323 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11324 nls_cv_use_gnu_gettext=yes
11325 fi
11326 fi
11327
11328 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11329 BUILD_INCLUDED_LIBINTL=yes
11330 USE_INCLUDED_LIBINTL=yes
11331 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11332 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11333 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11334 fi
11335
11336 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11337 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11338 CATOBJEXT=.gmo
11339 fi
11340
11341
11342 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11343 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11344
11345cat >>confdefs.h <<\_ACEOF
11346#define ENABLE_NLS 1
11347_ACEOF
11348
11349 else
11350 USE_NLS=no
11351 fi
11352 fi
11353
11354 echo "$as_me:$LINENO: checking whether to use NLS" >&5
11355echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
11356 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11357echo "${ECHO_T}$USE_NLS" >&6
11358 if test "$USE_NLS" = "yes"; then
11359 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11360echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
11361 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11362 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11363 gt_source="external libintl"
11364 else
11365 gt_source="libc"
11366 fi
11367 else
11368 gt_source="included intl directory"
11369 fi
11370 echo "$as_me:$LINENO: result: $gt_source" >&5
11371echo "${ECHO_T}$gt_source" >&6
11372 fi
11373
11374 if test "$USE_NLS" = "yes"; then
11375
11376 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11377 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11378 echo "$as_me:$LINENO: checking how to link with libintl" >&5
11379echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
11380 echo "$as_me:$LINENO: result: $LIBINTL" >&5
11381echo "${ECHO_T}$LIBINTL" >&6
11382
11383 for element in $INCINTL; do
11384 haveit=
11385 for x in $CPPFLAGS; do
11386
11387 acl_save_prefix="$prefix"
11388 prefix="$acl_final_prefix"
11389 acl_save_exec_prefix="$exec_prefix"
11390 exec_prefix="$acl_final_exec_prefix"
11391 eval x=\"$x\"
11392 exec_prefix="$acl_save_exec_prefix"
11393 prefix="$acl_save_prefix"
11394
11395 if test "X$x" = "X$element"; then
11396 haveit=yes
11397 break
11398 fi
11399 done
11400 if test -z "$haveit"; then
11401 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11402 fi
11403 done
11404
11405 fi
11406
11407
11408cat >>confdefs.h <<\_ACEOF
11409#define HAVE_GETTEXT 1
11410_ACEOF
11411
11412
11413cat >>confdefs.h <<\_ACEOF
11414#define HAVE_DCGETTEXT 1
11415_ACEOF
11416
11417 fi
11418
11419 POSUB=po
11420 fi
11421
11422
11423 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11424 BUILD_INCLUDED_LIBINTL=yes
11425 fi
11426
11427
11428
11429
11430
11431 nls_cv_header_intl=
11432 nls_cv_header_libgt=
11433
11434 DATADIRNAME=share
11435
11436
11437 INSTOBJEXT=.mo
11438
11439
11440 GENCAT=gencat
11441
11442
11443 if test "$USE_INCLUDED_LIBINTL" = yes; then
11444 INTLOBJS="\$(GETTOBJS)"
11445 fi
11446
11447
11448 INTL_LIBTOOL_SUFFIX_PREFIX=
11449
11450
11451
11452 INTLLIBS="$LIBINTL"
11453
11454
11455
11456
11457
11458
11459
11460BOILERPLATE=boilerplate.mk
11461
11462if (sh -c "make --version" 2>/dev/null | grep GNU 2>&1 >/dev/null); then
11463 if sh -c "vncmkdepend" >/dev/null 2>&1; then
11464 BOILERPLATE="$BOILERPLATE:depend.mk"
11465 fi
11466fi
11467
Constantin Kaplinsky97ac5552006-06-02 04:13:14 +000011468 ac_config_files="$ac_config_files Makefile:common.mk:Makefile.in:$BOILERPLATE tx/Makefile:common.mk:tx/Makefile.in:$BOILERPLATE x0vncserver/Makefile:common.mk:x0vncserver/Makefile.in:$BOILERPLATE vncviewer/Makefile:common.mk:vncviewer/Makefile.in:$BOILERPLATE vncconfig/Makefile:common.mk:vncconfig/Makefile.in:$BOILERPLATE vncpasswd/Makefile:common.mk:vncpasswd/Makefile.in:$BOILERPLATE intl/Makefile po/Makefile.in"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011469cat >confcache <<\_ACEOF
11470# This file is a shell script that caches the results of configure
11471# tests run on this system so they can be shared between configure
11472# scripts and configure runs, see configure's option --config-cache.
11473# It is not useful on other systems. If it contains results you don't
11474# want to keep, you may remove or edit it.
11475#
11476# config.status only pays attention to the cache file if you give it
11477# the --recheck option to rerun configure.
11478#
11479# `ac_cv_env_foo' variables (set or unset) will be overridden when
11480# loading this file, other *unset* `ac_cv_foo' will be assigned the
11481# following values.
11482
11483_ACEOF
11484
11485# The following way of writing the cache mishandles newlines in values,
11486# but we know of no workaround that is simple, portable, and efficient.
11487# So, don't put newlines in cache variables' values.
11488# Ultrix sh set writes to stderr and can't be redirected directly,
11489# and sets the high bit in the cache file unless we assign to the vars.
11490{
11491 (set) 2>&1 |
11492 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11493 *ac_space=\ *)
11494 # `set' does not quote correctly, so add quotes (double-quote
11495 # substitution turns \\\\ into \\, and sed turns \\ into \).
11496 sed -n \
11497 "s/'/'\\\\''/g;
11498 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11499 ;;
11500 *)
11501 # `set' quotes correctly as required by POSIX, so do not add quotes.
11502 sed -n \
11503 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11504 ;;
11505 esac;
11506} |
11507 sed '
11508 t clear
11509 : clear
11510 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11511 t end
11512 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11513 : end' >>confcache
11514if diff $cache_file confcache >/dev/null 2>&1; then :; else
11515 if test -w $cache_file; then
11516 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11517 cat confcache >$cache_file
11518 else
11519 echo "not updating unwritable cache $cache_file"
11520 fi
11521fi
11522rm -f confcache
11523
11524test "x$prefix" = xNONE && prefix=$ac_default_prefix
11525# Let make expand exec_prefix.
11526test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11527
11528# VPATH may cause trouble with some makes, so we remove $(srcdir),
11529# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11530# trailing colons and then remove the whole line if VPATH becomes empty
11531# (actually we leave an empty line to preserve line numbers).
11532if test "x$srcdir" = x.; then
11533 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11534s/:*\$(srcdir):*/:/;
11535s/:*\${srcdir}:*/:/;
11536s/:*@srcdir@:*/:/;
11537s/^\([^=]*=[ ]*\):*/\1/;
11538s/:*$//;
11539s/^[^=]*=[ ]*$//;
11540}'
11541fi
11542
11543# Transform confdefs.h into DEFS.
11544# Protect against shell expansion while executing Makefile rules.
11545# Protect against Makefile macro expansion.
11546#
11547# If the first sed substitution is executed (which looks for macros that
11548# take arguments), then we branch to the quote section. Otherwise,
11549# look for a macro that doesn't take arguments.
11550cat >confdef2opt.sed <<\_ACEOF
11551t clear
11552: clear
11553s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
11554t quote
11555s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
11556t quote
11557d
11558: quote
11559s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
11560s,\[,\\&,g
11561s,\],\\&,g
11562s,\$,$$,g
11563p
11564_ACEOF
11565# We use echo to avoid assuming a particular line-breaking character.
11566# The extra dot is to prevent the shell from consuming trailing
11567# line-breaks from the sub-command output. A line-break within
11568# single-quotes doesn't work because, if this script is created in a
11569# platform that uses two characters for line-breaks (e.g., DOS), tr
11570# would break.
11571ac_LF_and_DOT=`echo; echo .`
11572DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11573rm -f confdef2opt.sed
11574
11575
11576ac_libobjs=
11577ac_ltlibobjs=
11578for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11579 # 1. Remove the extension, and $U if already installed.
11580 ac_i=`echo "$ac_i" |
11581 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11582 # 2. Add them.
11583 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11584 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11585done
11586LIBOBJS=$ac_libobjs
11587
11588LTLIBOBJS=$ac_ltlibobjs
11589
11590
11591
11592: ${CONFIG_STATUS=./config.status}
11593ac_clean_files_save=$ac_clean_files
11594ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11595{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11596echo "$as_me: creating $CONFIG_STATUS" >&6;}
11597cat >$CONFIG_STATUS <<_ACEOF
11598#! $SHELL
11599# Generated by $as_me.
11600# Run this file to recreate the current configuration.
11601# Compiler output produced by configure, useful for debugging
11602# configure, is in config.log if it exists.
11603
11604debug=false
11605ac_cs_recheck=false
11606ac_cs_silent=false
11607SHELL=\${CONFIG_SHELL-$SHELL}
11608_ACEOF
11609
11610cat >>$CONFIG_STATUS <<\_ACEOF
11611## --------------------- ##
11612## M4sh Initialization. ##
11613## --------------------- ##
11614
11615# Be Bourne compatible
11616if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11617 emulate sh
11618 NULLCMD=:
11619 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11620 # is contrary to our usage. Disable this feature.
11621 alias -g '${1+"$@"}'='"$@"'
11622elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11623 set -o posix
11624fi
11625DUALCASE=1; export DUALCASE # for MKS sh
11626
11627# Support unset when possible.
11628if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11629 as_unset=unset
11630else
11631 as_unset=false
11632fi
11633
11634
11635# Work around bugs in pre-3.0 UWIN ksh.
11636$as_unset ENV MAIL MAILPATH
11637PS1='$ '
11638PS2='> '
11639PS4='+ '
11640
11641# NLS nuisances.
11642for as_var in \
11643 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11644 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11645 LC_TELEPHONE LC_TIME
11646do
11647 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11648 eval $as_var=C; export $as_var
11649 else
11650 $as_unset $as_var
11651 fi
11652done
11653
11654# Required to use basename.
11655if expr a : '\(a\)' >/dev/null 2>&1; then
11656 as_expr=expr
11657else
11658 as_expr=false
11659fi
11660
11661if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11662 as_basename=basename
11663else
11664 as_basename=false
11665fi
11666
11667
11668# Name of the executable.
11669as_me=`$as_basename "$0" ||
11670$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11671 X"$0" : 'X\(//\)$' \| \
11672 X"$0" : 'X\(/\)$' \| \
11673 . : '\(.\)' 2>/dev/null ||
11674echo X/"$0" |
11675 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11676 /^X\/\(\/\/\)$/{ s//\1/; q; }
11677 /^X\/\(\/\).*/{ s//\1/; q; }
11678 s/.*/./; q'`
11679
11680
11681# PATH needs CR, and LINENO needs CR and PATH.
11682# Avoid depending upon Character Ranges.
11683as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11684as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11685as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11686as_cr_digits='0123456789'
11687as_cr_alnum=$as_cr_Letters$as_cr_digits
11688
11689# The user is always right.
11690if test "${PATH_SEPARATOR+set}" != set; then
11691 echo "#! /bin/sh" >conf$$.sh
11692 echo "exit 0" >>conf$$.sh
11693 chmod +x conf$$.sh
11694 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11695 PATH_SEPARATOR=';'
11696 else
11697 PATH_SEPARATOR=:
11698 fi
11699 rm -f conf$$.sh
11700fi
11701
11702
11703 as_lineno_1=$LINENO
11704 as_lineno_2=$LINENO
11705 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11706 test "x$as_lineno_1" != "x$as_lineno_2" &&
11707 test "x$as_lineno_3" = "x$as_lineno_2" || {
11708 # Find who we are. Look in the path if we contain no path at all
11709 # relative or not.
11710 case $0 in
11711 *[\\/]* ) as_myself=$0 ;;
11712 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11713for as_dir in $PATH
11714do
11715 IFS=$as_save_IFS
11716 test -z "$as_dir" && as_dir=.
11717 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11718done
11719
11720 ;;
11721 esac
11722 # We did not find ourselves, most probably we were run as `sh COMMAND'
11723 # in which case we are not to be found in the path.
11724 if test "x$as_myself" = x; then
11725 as_myself=$0
11726 fi
11727 if test ! -f "$as_myself"; then
11728 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11729echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11730 { (exit 1); exit 1; }; }
11731 fi
11732 case $CONFIG_SHELL in
11733 '')
11734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11735for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11736do
11737 IFS=$as_save_IFS
11738 test -z "$as_dir" && as_dir=.
11739 for as_base in sh bash ksh sh5; do
11740 case $as_dir in
11741 /*)
11742 if ("$as_dir/$as_base" -c '
11743 as_lineno_1=$LINENO
11744 as_lineno_2=$LINENO
11745 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11746 test "x$as_lineno_1" != "x$as_lineno_2" &&
11747 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11748 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11749 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11750 CONFIG_SHELL=$as_dir/$as_base
11751 export CONFIG_SHELL
11752 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11753 fi;;
11754 esac
11755 done
11756done
11757;;
11758 esac
11759
11760 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11761 # uniformly replaced by the line number. The first 'sed' inserts a
11762 # line-number line before each line; the second 'sed' does the real
11763 # work. The second script uses 'N' to pair each line-number line
11764 # with the numbered line, and appends trailing '-' during
11765 # substitution so that $LINENO is not a special case at line end.
11766 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11767 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11768 sed '=' <$as_myself |
11769 sed '
11770 N
11771 s,$,-,
11772 : loop
11773 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11774 t loop
11775 s,-$,,
11776 s,^['$as_cr_digits']*\n,,
11777 ' >$as_me.lineno &&
11778 chmod +x $as_me.lineno ||
11779 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11780echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11781 { (exit 1); exit 1; }; }
11782
11783 # Don't try to exec as it changes $[0], causing all sort of problems
11784 # (the dirname of $[0] is not the place where we might find the
11785 # original and so on. Autoconf is especially sensible to this).
11786 . ./$as_me.lineno
11787 # Exit status is that of the last command.
11788 exit
11789}
11790
11791
11792case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11793 *c*,-n*) ECHO_N= ECHO_C='
11794' ECHO_T=' ' ;;
11795 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11796 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11797esac
11798
11799if expr a : '\(a\)' >/dev/null 2>&1; then
11800 as_expr=expr
11801else
11802 as_expr=false
11803fi
11804
11805rm -f conf$$ conf$$.exe conf$$.file
11806echo >conf$$.file
11807if ln -s conf$$.file conf$$ 2>/dev/null; then
11808 # We could just check for DJGPP; but this test a) works b) is more generic
11809 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11810 if test -f conf$$.exe; then
11811 # Don't use ln at all; we don't have any links
11812 as_ln_s='cp -p'
11813 else
11814 as_ln_s='ln -s'
11815 fi
11816elif ln conf$$.file conf$$ 2>/dev/null; then
11817 as_ln_s=ln
11818else
11819 as_ln_s='cp -p'
11820fi
11821rm -f conf$$ conf$$.exe conf$$.file
11822
11823if mkdir -p . 2>/dev/null; then
11824 as_mkdir_p=:
11825else
11826 test -d ./-p && rmdir ./-p
11827 as_mkdir_p=false
11828fi
11829
11830as_executable_p="test -f"
11831
11832# Sed expression to map a string onto a valid CPP name.
11833as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11834
11835# Sed expression to map a string onto a valid variable name.
11836as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11837
11838
11839# IFS
11840# We need space, tab and new line, in precisely that order.
11841as_nl='
11842'
11843IFS=" $as_nl"
11844
11845# CDPATH.
11846$as_unset CDPATH
11847
11848exec 6>&1
11849
11850# Open the log real soon, to keep \$[0] and so on meaningful, and to
11851# report actual input values of CONFIG_FILES etc. instead of their
11852# values after options handling. Logging --version etc. is OK.
11853exec 5>>config.log
11854{
11855 echo
11856 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11857## Running $as_me. ##
11858_ASBOX
11859} >&5
11860cat >&5 <<_CSEOF
11861
11862This file was extended by $as_me, which was
11863generated by GNU Autoconf 2.59. Invocation command line was
11864
11865 CONFIG_FILES = $CONFIG_FILES
11866 CONFIG_HEADERS = $CONFIG_HEADERS
11867 CONFIG_LINKS = $CONFIG_LINKS
11868 CONFIG_COMMANDS = $CONFIG_COMMANDS
11869 $ $0 $@
11870
11871_CSEOF
11872echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11873echo >&5
11874_ACEOF
11875
11876# Files that config.status was made for.
11877if test -n "$ac_config_files"; then
11878 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11879fi
11880
11881if test -n "$ac_config_headers"; then
11882 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11883fi
11884
11885if test -n "$ac_config_links"; then
11886 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11887fi
11888
11889if test -n "$ac_config_commands"; then
11890 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11891fi
11892
11893cat >>$CONFIG_STATUS <<\_ACEOF
11894
11895ac_cs_usage="\
11896\`$as_me' instantiates files from templates according to the
11897current configuration.
11898
11899Usage: $0 [OPTIONS] [FILE]...
11900
11901 -h, --help print this help, then exit
11902 -V, --version print version number, then exit
11903 -q, --quiet do not print progress messages
11904 -d, --debug don't remove temporary files
11905 --recheck update $as_me by reconfiguring in the same conditions
11906 --file=FILE[:TEMPLATE]
11907 instantiate the configuration file FILE
11908
11909Configuration files:
11910$config_files
11911
11912Configuration commands:
11913$config_commands
11914
11915Report bugs to <bug-autoconf@gnu.org>."
11916_ACEOF
11917
11918cat >>$CONFIG_STATUS <<_ACEOF
11919ac_cs_version="\\
11920config.status
11921configured by $0, generated by GNU Autoconf 2.59,
11922 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11923
11924Copyright (C) 2003 Free Software Foundation, Inc.
11925This config.status script is free software; the Free Software Foundation
11926gives unlimited permission to copy, distribute and modify it."
11927srcdir=$srcdir
11928INSTALL="$INSTALL"
11929_ACEOF
11930
11931cat >>$CONFIG_STATUS <<\_ACEOF
11932# If no file are specified by the user, then we need to provide default
11933# value. By we need to know if files were specified by the user.
11934ac_need_defaults=:
11935while test $# != 0
11936do
11937 case $1 in
11938 --*=*)
11939 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11940 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11941 ac_shift=:
11942 ;;
11943 -*)
11944 ac_option=$1
11945 ac_optarg=$2
11946 ac_shift=shift
11947 ;;
11948 *) # This is not an option, so the user has probably given explicit
11949 # arguments.
11950 ac_option=$1
11951 ac_need_defaults=false;;
11952 esac
11953
11954 case $ac_option in
11955 # Handling of the options.
11956_ACEOF
11957cat >>$CONFIG_STATUS <<\_ACEOF
11958 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11959 ac_cs_recheck=: ;;
11960 --version | --vers* | -V )
11961 echo "$ac_cs_version"; exit 0 ;;
11962 --he | --h)
11963 # Conflict between --help and --header
11964 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11965Try \`$0 --help' for more information." >&5
11966echo "$as_me: error: ambiguous option: $1
11967Try \`$0 --help' for more information." >&2;}
11968 { (exit 1); exit 1; }; };;
11969 --help | --hel | -h )
11970 echo "$ac_cs_usage"; exit 0 ;;
11971 --debug | --d* | -d )
11972 debug=: ;;
11973 --file | --fil | --fi | --f )
11974 $ac_shift
11975 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11976 ac_need_defaults=false;;
11977 --header | --heade | --head | --hea )
11978 $ac_shift
11979 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11980 ac_need_defaults=false;;
11981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11982 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11983 ac_cs_silent=: ;;
11984
11985 # This is an error.
11986 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11987Try \`$0 --help' for more information." >&5
11988echo "$as_me: error: unrecognized option: $1
11989Try \`$0 --help' for more information." >&2;}
11990 { (exit 1); exit 1; }; } ;;
11991
11992 *) ac_config_targets="$ac_config_targets $1" ;;
11993
11994 esac
11995 shift
11996done
11997
11998ac_configure_extra_args=
11999
12000if $ac_cs_silent; then
12001 exec 6>/dev/null
12002 ac_configure_extra_args="$ac_configure_extra_args --silent"
12003fi
12004
12005_ACEOF
12006cat >>$CONFIG_STATUS <<_ACEOF
12007if \$ac_cs_recheck; then
12008 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12009 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12010fi
12011
12012_ACEOF
12013
12014cat >>$CONFIG_STATUS <<_ACEOF
12015#
12016# INIT-COMMANDS section.
12017#
12018
12019# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12020 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12021 # from automake.
12022 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12023 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12024 LINGUAS="${LINGUAS-%UNSET%}"
12025
12026
12027_ACEOF
12028
12029
12030
12031cat >>$CONFIG_STATUS <<\_ACEOF
12032for ac_config_target in $ac_config_targets
12033do
12034 case "$ac_config_target" in
12035 # Handling of arguments.
Constantin Kaplinsky97ac5552006-06-02 04:13:14 +000012036 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:common.mk:Makefile.in:$BOILERPLATE" ;;
12037 "tx/Makefile" ) CONFIG_FILES="$CONFIG_FILES tx/Makefile:common.mk:tx/Makefile.in:$BOILERPLATE" ;;
12038 "x0vncserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES x0vncserver/Makefile:common.mk:x0vncserver/Makefile.in:$BOILERPLATE" ;;
12039 "vncviewer/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncviewer/Makefile:common.mk:vncviewer/Makefile.in:$BOILERPLATE" ;;
12040 "vncconfig/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncconfig/Makefile:common.mk:vncconfig/Makefile.in:$BOILERPLATE" ;;
12041 "vncpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncpasswd/Makefile:common.mk:vncpasswd/Makefile.in:$BOILERPLATE" ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012042 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12043 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012044 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12045 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12046echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12047 { (exit 1); exit 1; }; };;
12048 esac
12049done
12050
12051# If the user did not use the arguments to specify the items to instantiate,
12052# then the envvar interface is used. Set only those that are not.
12053# We use the long form for the default assignment because of an extremely
12054# bizarre bug on SunOS 4.1.3.
12055if $ac_need_defaults; then
12056 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12057 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12058fi
12059
12060# Have a temporary directory for convenience. Make it in the build tree
12061# simply because there is no reason to put it here, and in addition,
12062# creating and moving files from /tmp can sometimes cause problems.
12063# Create a temporary directory, and hook for its removal unless debugging.
12064$debug ||
12065{
12066 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12067 trap '{ (exit 1); exit 1; }' 1 2 13 15
12068}
12069
12070# Create a (secure) tmp directory for tmp files.
12071
12072{
12073 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12074 test -n "$tmp" && test -d "$tmp"
12075} ||
12076{
12077 tmp=./confstat$$-$RANDOM
12078 (umask 077 && mkdir $tmp)
12079} ||
12080{
12081 echo "$me: cannot create a temporary directory in ." >&2
12082 { (exit 1); exit 1; }
12083}
12084
12085_ACEOF
12086
12087cat >>$CONFIG_STATUS <<_ACEOF
12088
12089#
12090# CONFIG_FILES section.
12091#
12092
12093# No need to generate the scripts if there are no CONFIG_FILES.
12094# This happens for instance when ./config.status config.h
12095if test -n "\$CONFIG_FILES"; then
12096 # Protect against being on the right side of a sed subst in config.status.
12097 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12098 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12099s,@SHELL@,$SHELL,;t t
12100s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12101s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12102s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12103s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12104s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12105s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12106s,@exec_prefix@,$exec_prefix,;t t
12107s,@prefix@,$prefix,;t t
12108s,@program_transform_name@,$program_transform_name,;t t
12109s,@bindir@,$bindir,;t t
12110s,@sbindir@,$sbindir,;t t
12111s,@libexecdir@,$libexecdir,;t t
12112s,@datadir@,$datadir,;t t
12113s,@sysconfdir@,$sysconfdir,;t t
12114s,@sharedstatedir@,$sharedstatedir,;t t
12115s,@localstatedir@,$localstatedir,;t t
12116s,@libdir@,$libdir,;t t
12117s,@includedir@,$includedir,;t t
12118s,@oldincludedir@,$oldincludedir,;t t
12119s,@infodir@,$infodir,;t t
12120s,@mandir@,$mandir,;t t
12121s,@build_alias@,$build_alias,;t t
12122s,@host_alias@,$host_alias,;t t
12123s,@target_alias@,$target_alias,;t t
12124s,@DEFS@,$DEFS,;t t
12125s,@ECHO_C@,$ECHO_C,;t t
12126s,@ECHO_N@,$ECHO_N,;t t
12127s,@ECHO_T@,$ECHO_T,;t t
12128s,@LIBS@,$LIBS,;t t
12129s,@PACKAGE@,$PACKAGE,;t t
12130s,@VERSION@,$VERSION,;t t
12131s,@CC@,$CC,;t t
12132s,@CFLAGS@,$CFLAGS,;t t
12133s,@LDFLAGS@,$LDFLAGS,;t t
12134s,@CPPFLAGS@,$CPPFLAGS,;t t
12135s,@ac_ct_CC@,$ac_ct_CC,;t t
12136s,@EXEEXT@,$EXEEXT,;t t
12137s,@OBJEXT@,$OBJEXT,;t t
12138s,@CXX@,$CXX,;t t
12139s,@CXXFLAGS@,$CXXFLAGS,;t t
12140s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12141s,@RANLIB@,$RANLIB,;t t
12142s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12143s,@SET_MAKE@,$SET_MAKE,;t t
12144s,@MITSHM_DEFINE@,$MITSHM_DEFINE,;t t
12145s,@CXXCPP@,$CXXCPP,;t t
12146s,@X_CFLAGS@,$X_CFLAGS,;t t
12147s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
12148s,@X_LIBS@,$X_LIBS,;t t
12149s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
12150s,@ZLIB_DIR@,$ZLIB_DIR,;t t
12151s,@ZLIB_INCLUDE@,$ZLIB_INCLUDE,;t t
12152s,@ZLIB_LIB@,$ZLIB_LIB,;t t
12153s,@JPEG_DIR@,$JPEG_DIR,;t t
12154s,@JPEG_INCLUDE@,$JPEG_INCLUDE,;t t
12155s,@JPEG_LIB@,$JPEG_LIB,;t t
12156s,@VNCCONFIG_DIR@,$VNCCONFIG_DIR,;t t
12157s,@XTEST_DEFINE@,$XTEST_DEFINE,;t t
12158s,@XTEST_LIB@,$XTEST_LIB,;t t
12159s,@READDISPLAY_DEFINE@,$READDISPLAY_DEFINE,;t t
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012160s,@INET_LIB@,$INET_LIB,;t t
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012161s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12162s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12163s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12164s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12165s,@USE_NLS@,$USE_NLS,;t t
12166s,@MSGFMT@,$MSGFMT,;t t
12167s,@GMSGFMT@,$GMSGFMT,;t t
12168s,@XGETTEXT@,$XGETTEXT,;t t
12169s,@MSGMERGE@,$MSGMERGE,;t t
12170s,@build@,$build,;t t
12171s,@build_cpu@,$build_cpu,;t t
12172s,@build_vendor@,$build_vendor,;t t
12173s,@build_os@,$build_os,;t t
12174s,@host@,$host,;t t
12175s,@host_cpu@,$host_cpu,;t t
12176s,@host_vendor@,$host_vendor,;t t
12177s,@host_os@,$host_os,;t t
12178s,@EGREP@,$EGREP,;t t
12179s,@ALLOCA@,$ALLOCA,;t t
12180s,@GLIBC21@,$GLIBC21,;t t
12181s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
12182s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
12183s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
12184s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
12185s,@LIBICONV@,$LIBICONV,;t t
12186s,@LTLIBICONV@,$LTLIBICONV,;t t
12187s,@INTLBISON@,$INTLBISON,;t t
12188s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
12189s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
12190s,@CATOBJEXT@,$CATOBJEXT,;t t
12191s,@DATADIRNAME@,$DATADIRNAME,;t t
12192s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12193s,@GENCAT@,$GENCAT,;t t
12194s,@INTLOBJS@,$INTLOBJS,;t t
12195s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
12196s,@INTLLIBS@,$INTLLIBS,;t t
12197s,@LIBINTL@,$LIBINTL,;t t
12198s,@LTLIBINTL@,$LTLIBINTL,;t t
12199s,@POSUB@,$POSUB,;t t
12200s,@LIBOBJS@,$LIBOBJS,;t t
12201s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12202CEOF
12203
12204_ACEOF
12205
12206 cat >>$CONFIG_STATUS <<\_ACEOF
12207 # Split the substitutions into bite-sized pieces for seds with
12208 # small command number limits, like on Digital OSF/1 and HP-UX.
12209 ac_max_sed_lines=48
12210 ac_sed_frag=1 # Number of current file.
12211 ac_beg=1 # First line for current file.
12212 ac_end=$ac_max_sed_lines # Line after last line for current file.
12213 ac_more_lines=:
12214 ac_sed_cmds=
12215 while $ac_more_lines; do
12216 if test $ac_beg -gt 1; then
12217 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12218 else
12219 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12220 fi
12221 if test ! -s $tmp/subs.frag; then
12222 ac_more_lines=false
12223 else
12224 # The purpose of the label and of the branching condition is to
12225 # speed up the sed processing (if there are no `@' at all, there
12226 # is no need to browse any of the substitutions).
12227 # These are the two extra sed commands mentioned above.
12228 (echo ':t
12229 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12230 if test -z "$ac_sed_cmds"; then
12231 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12232 else
12233 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12234 fi
12235 ac_sed_frag=`expr $ac_sed_frag + 1`
12236 ac_beg=$ac_end
12237 ac_end=`expr $ac_end + $ac_max_sed_lines`
12238 fi
12239 done
12240 if test -z "$ac_sed_cmds"; then
12241 ac_sed_cmds=cat
12242 fi
12243fi # test -n "$CONFIG_FILES"
12244
12245_ACEOF
12246cat >>$CONFIG_STATUS <<\_ACEOF
12247for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12248 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12249 case $ac_file in
12250 - | *:- | *:-:* ) # input from stdin
12251 cat >$tmp/stdin
12252 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12253 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12254 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12255 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12256 * ) ac_file_in=$ac_file.in ;;
12257 esac
12258
12259 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12260 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12261$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12262 X"$ac_file" : 'X\(//\)[^/]' \| \
12263 X"$ac_file" : 'X\(//\)$' \| \
12264 X"$ac_file" : 'X\(/\)' \| \
12265 . : '\(.\)' 2>/dev/null ||
12266echo X"$ac_file" |
12267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12269 /^X\(\/\/\)$/{ s//\1/; q; }
12270 /^X\(\/\).*/{ s//\1/; q; }
12271 s/.*/./; q'`
12272 { if $as_mkdir_p; then
12273 mkdir -p "$ac_dir"
12274 else
12275 as_dir="$ac_dir"
12276 as_dirs=
12277 while test ! -d "$as_dir"; do
12278 as_dirs="$as_dir $as_dirs"
12279 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12280$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12281 X"$as_dir" : 'X\(//\)[^/]' \| \
12282 X"$as_dir" : 'X\(//\)$' \| \
12283 X"$as_dir" : 'X\(/\)' \| \
12284 . : '\(.\)' 2>/dev/null ||
12285echo X"$as_dir" |
12286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12287 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12288 /^X\(\/\/\)$/{ s//\1/; q; }
12289 /^X\(\/\).*/{ s//\1/; q; }
12290 s/.*/./; q'`
12291 done
12292 test ! -n "$as_dirs" || mkdir $as_dirs
12293 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12294echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12295 { (exit 1); exit 1; }; }; }
12296
12297 ac_builddir=.
12298
12299if test "$ac_dir" != .; then
12300 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12301 # A "../" for each directory in $ac_dir_suffix.
12302 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12303else
12304 ac_dir_suffix= ac_top_builddir=
12305fi
12306
12307case $srcdir in
12308 .) # No --srcdir option. We are building in place.
12309 ac_srcdir=.
12310 if test -z "$ac_top_builddir"; then
12311 ac_top_srcdir=.
12312 else
12313 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12314 fi ;;
12315 [\\/]* | ?:[\\/]* ) # Absolute path.
12316 ac_srcdir=$srcdir$ac_dir_suffix;
12317 ac_top_srcdir=$srcdir ;;
12318 *) # Relative path.
12319 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12320 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12321esac
12322
12323# Do not use `cd foo && pwd` to compute absolute paths, because
12324# the directories may not exist.
12325case `pwd` in
12326.) ac_abs_builddir="$ac_dir";;
12327*)
12328 case "$ac_dir" in
12329 .) ac_abs_builddir=`pwd`;;
12330 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12331 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12332 esac;;
12333esac
12334case $ac_abs_builddir in
12335.) ac_abs_top_builddir=${ac_top_builddir}.;;
12336*)
12337 case ${ac_top_builddir}. in
12338 .) ac_abs_top_builddir=$ac_abs_builddir;;
12339 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12340 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12341 esac;;
12342esac
12343case $ac_abs_builddir in
12344.) ac_abs_srcdir=$ac_srcdir;;
12345*)
12346 case $ac_srcdir in
12347 .) ac_abs_srcdir=$ac_abs_builddir;;
12348 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12349 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12350 esac;;
12351esac
12352case $ac_abs_builddir in
12353.) ac_abs_top_srcdir=$ac_top_srcdir;;
12354*)
12355 case $ac_top_srcdir in
12356 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12357 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12358 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12359 esac;;
12360esac
12361
12362
12363 case $INSTALL in
12364 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12365 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12366 esac
12367
12368 if test x"$ac_file" != x-; then
12369 { echo "$as_me:$LINENO: creating $ac_file" >&5
12370echo "$as_me: creating $ac_file" >&6;}
12371 rm -f "$ac_file"
12372 fi
12373 # Let's still pretend it is `configure' which instantiates (i.e., don't
12374 # use $as_me), people would be surprised to read:
12375 # /* config.h. Generated by config.status. */
12376 if test x"$ac_file" = x-; then
12377 configure_input=
12378 else
12379 configure_input="$ac_file. "
12380 fi
12381 configure_input=$configure_input"Generated from `echo $ac_file_in |
12382 sed 's,.*/,,'` by configure."
12383
12384 # First look for the input files in the build tree, otherwise in the
12385 # src tree.
12386 ac_file_inputs=`IFS=:
12387 for f in $ac_file_in; do
12388 case $f in
12389 -) echo $tmp/stdin ;;
12390 [\\/$]*)
12391 # Absolute (can't be DOS-style, as IFS=:)
12392 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12393echo "$as_me: error: cannot find input file: $f" >&2;}
12394 { (exit 1); exit 1; }; }
12395 echo "$f";;
12396 *) # Relative
12397 if test -f "$f"; then
12398 # Build tree
12399 echo "$f"
12400 elif test -f "$srcdir/$f"; then
12401 # Source tree
12402 echo "$srcdir/$f"
12403 else
12404 # /dev/null tree
12405 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12406echo "$as_me: error: cannot find input file: $f" >&2;}
12407 { (exit 1); exit 1; }; }
12408 fi;;
12409 esac
12410 done` || { (exit 1); exit 1; }
12411_ACEOF
12412cat >>$CONFIG_STATUS <<_ACEOF
12413 sed "$ac_vpsub
12414$extrasub
12415_ACEOF
12416cat >>$CONFIG_STATUS <<\_ACEOF
12417:t
12418/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12419s,@configure_input@,$configure_input,;t t
12420s,@srcdir@,$ac_srcdir,;t t
12421s,@abs_srcdir@,$ac_abs_srcdir,;t t
12422s,@top_srcdir@,$ac_top_srcdir,;t t
12423s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12424s,@builddir@,$ac_builddir,;t t
12425s,@abs_builddir@,$ac_abs_builddir,;t t
12426s,@top_builddir@,$ac_top_builddir,;t t
12427s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12428s,@INSTALL@,$ac_INSTALL,;t t
12429" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12430 rm -f $tmp/stdin
12431 if test x"$ac_file" != x-; then
12432 mv $tmp/out $ac_file
12433 else
12434 cat $tmp/out
12435 rm -f $tmp/out
12436 fi
12437
12438done
12439_ACEOF
12440cat >>$CONFIG_STATUS <<\_ACEOF
12441
12442#
12443# CONFIG_COMMANDS section.
12444#
12445for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12446 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12447 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12448 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12449$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12450 X"$ac_dest" : 'X\(//\)[^/]' \| \
12451 X"$ac_dest" : 'X\(//\)$' \| \
12452 X"$ac_dest" : 'X\(/\)' \| \
12453 . : '\(.\)' 2>/dev/null ||
12454echo X"$ac_dest" |
12455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12456 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12457 /^X\(\/\/\)$/{ s//\1/; q; }
12458 /^X\(\/\).*/{ s//\1/; q; }
12459 s/.*/./; q'`
12460 { if $as_mkdir_p; then
12461 mkdir -p "$ac_dir"
12462 else
12463 as_dir="$ac_dir"
12464 as_dirs=
12465 while test ! -d "$as_dir"; do
12466 as_dirs="$as_dir $as_dirs"
12467 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12468$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12469 X"$as_dir" : 'X\(//\)[^/]' \| \
12470 X"$as_dir" : 'X\(//\)$' \| \
12471 X"$as_dir" : 'X\(/\)' \| \
12472 . : '\(.\)' 2>/dev/null ||
12473echo X"$as_dir" |
12474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12475 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12476 /^X\(\/\/\)$/{ s//\1/; q; }
12477 /^X\(\/\).*/{ s//\1/; q; }
12478 s/.*/./; q'`
12479 done
12480 test ! -n "$as_dirs" || mkdir $as_dirs
12481 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12482echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12483 { (exit 1); exit 1; }; }; }
12484
12485 ac_builddir=.
12486
12487if test "$ac_dir" != .; then
12488 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12489 # A "../" for each directory in $ac_dir_suffix.
12490 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12491else
12492 ac_dir_suffix= ac_top_builddir=
12493fi
12494
12495case $srcdir in
12496 .) # No --srcdir option. We are building in place.
12497 ac_srcdir=.
12498 if test -z "$ac_top_builddir"; then
12499 ac_top_srcdir=.
12500 else
12501 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12502 fi ;;
12503 [\\/]* | ?:[\\/]* ) # Absolute path.
12504 ac_srcdir=$srcdir$ac_dir_suffix;
12505 ac_top_srcdir=$srcdir ;;
12506 *) # Relative path.
12507 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12508 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12509esac
12510
12511# Do not use `cd foo && pwd` to compute absolute paths, because
12512# the directories may not exist.
12513case `pwd` in
12514.) ac_abs_builddir="$ac_dir";;
12515*)
12516 case "$ac_dir" in
12517 .) ac_abs_builddir=`pwd`;;
12518 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12519 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12520 esac;;
12521esac
12522case $ac_abs_builddir in
12523.) ac_abs_top_builddir=${ac_top_builddir}.;;
12524*)
12525 case ${ac_top_builddir}. in
12526 .) ac_abs_top_builddir=$ac_abs_builddir;;
12527 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12528 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12529 esac;;
12530esac
12531case $ac_abs_builddir in
12532.) ac_abs_srcdir=$ac_srcdir;;
12533*)
12534 case $ac_srcdir in
12535 .) ac_abs_srcdir=$ac_abs_builddir;;
12536 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12537 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12538 esac;;
12539esac
12540case $ac_abs_builddir in
12541.) ac_abs_top_srcdir=$ac_top_srcdir;;
12542*)
12543 case $ac_top_srcdir in
12544 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12545 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12546 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12547 esac;;
12548esac
12549
12550
12551 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12552echo "$as_me: executing $ac_dest commands" >&6;}
12553 case $ac_dest in
12554 default-1 )
12555 for ac_file in $CONFIG_FILES; do
12556 # Support "outfile[:infile[:infile...]]"
12557 case "$ac_file" in
12558 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12559 esac
12560 # PO directories have a Makefile.in generated from Makefile.in.in.
12561 case "$ac_file" in */Makefile.in)
12562 # Adjust a relative srcdir.
12563 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12564 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12565 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12566 # In autoconf-2.13 it is called $ac_given_srcdir.
12567 # In autoconf-2.50 it is called $srcdir.
12568 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12569 case "$ac_given_srcdir" in
12570 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12571 /*) top_srcdir="$ac_given_srcdir" ;;
12572 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12573 esac
12574 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12575 rm -f "$ac_dir/POTFILES"
12576 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12577 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12578 POMAKEFILEDEPS="POTFILES.in"
12579 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12580 # on $ac_dir but don't depend on user-specified configuration
12581 # parameters.
12582 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12583 # The LINGUAS file contains the set of available languages.
12584 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12585 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12586 fi
12587 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12588 # Hide the ALL_LINGUAS assigment from automake.
12589 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12590 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12591 else
12592 # The set of available languages was given in configure.in.
12593 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12594 fi
12595 # Compute POFILES
12596 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12597 # Compute UPDATEPOFILES
12598 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12599 # Compute DUMMYPOFILES
12600 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12601 # Compute GMOFILES
12602 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12603 case "$ac_given_srcdir" in
12604 .) srcdirpre= ;;
12605 *) srcdirpre='$(srcdir)/' ;;
12606 esac
12607 POFILES=
12608 UPDATEPOFILES=
12609 DUMMYPOFILES=
12610 GMOFILES=
12611 for lang in $ALL_LINGUAS; do
12612 POFILES="$POFILES $srcdirpre$lang.po"
12613 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12614 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12615 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12616 done
12617 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12618 # environment variable.
12619 INST_LINGUAS=
12620 if test -n "$ALL_LINGUAS"; then
12621 for presentlang in $ALL_LINGUAS; do
12622 useit=no
12623 if test "%UNSET%" != "$LINGUAS"; then
12624 desiredlanguages="$LINGUAS"
12625 else
12626 desiredlanguages="$ALL_LINGUAS"
12627 fi
12628 for desiredlang in $desiredlanguages; do
12629 # Use the presentlang catalog if desiredlang is
12630 # a. equal to presentlang, or
12631 # b. a variant of presentlang (because in this case,
12632 # presentlang can be used as a fallback for messages
12633 # which are not translated in the desiredlang catalog).
12634 case "$desiredlang" in
12635 "$presentlang"*) useit=yes;;
12636 esac
12637 done
12638 if test $useit = yes; then
12639 INST_LINGUAS="$INST_LINGUAS $presentlang"
12640 fi
12641 done
12642 fi
12643 CATALOGS=
12644 if test -n "$INST_LINGUAS"; then
12645 for lang in $INST_LINGUAS; do
12646 CATALOGS="$CATALOGS $lang.gmo"
12647 done
12648 fi
12649 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12650 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"
12651 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12652 if test -f "$f"; then
12653 case "$f" in
12654 *.orig | *.bak | *~) ;;
12655 *) cat "$f" >> "$ac_dir/Makefile" ;;
12656 esac
12657 fi
12658 done
12659 fi
12660 ;;
12661 esac
12662 done ;;
12663 esac
12664done
12665_ACEOF
12666
12667cat >>$CONFIG_STATUS <<\_ACEOF
12668
12669{ (exit 0); exit 0; }
12670_ACEOF
12671chmod +x $CONFIG_STATUS
12672ac_clean_files=$ac_clean_files_save
12673
12674
12675# configure is writing to config.log, and then calls config.status.
12676# config.status does its own redirection, appending to config.log.
12677# Unfortunately, on DOS this fails, as config.log is still kept open
12678# by configure, so config.status won't be able to write to it; its
12679# output is simply discarded. So we exec the FD to /dev/null,
12680# effectively closing config.log, so it can be properly (re)opened and
12681# appended to by config.status. When coming back to configure, we
12682# need to make the FD available again.
12683if test "$no_create" != yes; then
12684 ac_cs_success=:
12685 ac_config_status_args=
12686 test "$silent" = yes &&
12687 ac_config_status_args="$ac_config_status_args --quiet"
12688 exec 5>/dev/null
12689 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12690 exec 5>>config.log
12691 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12692 # would make configure fail if this is the last instruction.
12693 $ac_cs_success || { (exit 1); exit 1; }
12694fi
12695