blob: 9d2063596b9044ba78fbec06bc5ef30748c13cc2 [file] [log] [blame]
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001#! /bin/sh
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002# Guess values for system-dependent variables and create Makefiles.
Peter Åstrande713b142004-11-16 13:29:40 +00003# Generated by GNU Autoconf 2.59.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004#
Peter Åstrande713b142004-11-16 13:29:40 +00005# Copyright (C) 2003 Free Software Foundation, Inc.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00006# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
Peter Åstrande713b142004-11-16 13:29:40 +00008## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011
Peter Åstrande713b142004-11-16 13:29:40 +000012# 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#
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000254ac_default_prefix=/usr/local
Peter Åstrande713b142004-11-16 13:29:40 +0000255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="rdr/InStream.h"
Peter Åstrand5a15f8c2005-01-23 20:44:20 +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
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB SET_MAKE MITSHM_CPPFLAGS CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS ZLIB_DIR ZLIB_INCLUDE ZLIB_LIB JPEG_DIR JPEG_INCLUDE JPEG_LIB VSNPRINTF_DEFINE SOCKLEN_T_DEFINE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS LTLIBOBJS'
Peter Åstrande713b142004-11-16 13:29:40 +0000313ac_subst_files=''
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000314
315# Initialize some variables set by options.
Peter Åstrande713b142004-11-16 13:29:40 +0000316ac_init_help=
317ac_init_version=false
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000318# The variables have the same names as the options, with
319# dashes changed to underlines.
Peter Åstrande713b142004-11-16 13:29:40 +0000320cache_file=/dev/null
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000321exec_prefix=NONE
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000322no_create=
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000331verbose=
332x_includes=NONE
333x_libraries=NONE
Peter Åstrande713b142004-11-16 13:29:40 +0000334
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.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000340bindir='${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
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000353ac_prev=
354for ac_option
355do
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000356 # 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
Peter Åstrande713b142004-11-16 13:29:40 +0000363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
Peter Åstrande713b142004-11-16 13:29:40 +0000367 case $ac_option in
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000372 bindir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000373
374 -build | --build | --buil | --bui | --bu)
Peter Åstrande713b142004-11-16 13:29:40 +0000375 ac_prev=build_alias ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000377 build_alias=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000378
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=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000393 datadir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000394
395 -disable-* | --disable-*)
Peter Åstrande713b142004-11-16 13:29:40 +0000396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000397 # Reject names that are not valid shell variable names.
Peter Åstrande713b142004-11-16 13:29:40 +0000398 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" ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000403
404 -enable-* | --enable-*)
Peter Åstrande713b142004-11-16 13:29:40 +0000405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000406 # Reject names that are not valid shell variable names.
Peter Åstrande713b142004-11-16 13:29:40 +0000407 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"`;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000413 *) ac_optarg=yes ;;
414 esac
Peter Åstrande713b142004-11-16 13:29:40 +0000415 eval "enable_$ac_feature='$ac_optarg'" ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000416
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=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000424 exec_prefix=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
Peter Åstrande713b142004-11-16 13:29:40 +0000430 -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 ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000436
437 -host | --host | --hos | --ho)
Peter Åstrande713b142004-11-16 13:29:40 +0000438 ac_prev=host_alias ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000439 -host=* | --host=* | --hos=* | --ho=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000440 host_alias=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000441
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=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000447 includedir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000452 infodir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000457 libdir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000464 libexecdir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000465
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=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000473 localstatedir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000478 mandir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000479
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 \
Peter Åstrande713b142004-11-16 13:29:40 +0000485 | --no-cr | --no-c | -n)
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000486 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=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000499 oldincludedir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000504 prefix=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000505
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=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000511 program_prefix=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000512
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=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000518 program_suffix=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000519
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=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000535 program_transform_name=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000536
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=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000545 sbindir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000546
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=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000556 sharedstatedir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000561 site=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000566 srcdir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000567
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=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000573 sysconfdir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
Peter Åstrande713b142004-11-16 13:29:40 +0000576 ac_prev=target_alias ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000578 target_alias=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
Peter Åstrande713b142004-11-16 13:29:40 +0000583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000585
586 -with-* | --with-*)
Peter Åstrande713b142004-11-16 13:29:40 +0000587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000588 # Reject names that are not valid shell variable names.
Peter Åstrande713b142004-11-16 13:29:40 +0000589 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; }; }
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000592 ac_package=`echo $ac_package| sed 's/-/_/g'`
Peter Åstrande713b142004-11-16 13:29:40 +0000593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000595 *) ac_optarg=yes ;;
596 esac
Peter Åstrande713b142004-11-16 13:29:40 +0000597 eval "with_$ac_package='$ac_optarg'" ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000598
599 -without-* | --without-*)
Peter Åstrande713b142004-11-16 13:29:40 +0000600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000601 # Reject names that are not valid shell variable names.
Peter Åstrande713b142004-11-16 13:29:40 +0000602 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" ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000607
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=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000617 x_includes=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000618
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=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000624 x_libraries=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000625
Peter Åstrande713b142004-11-16 13:29:40 +0000626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000629 ;;
630
Peter Åstrande713b142004-11-16 13:29:40 +0000631 *=*)
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
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000641 *)
Peter Åstrande713b142004-11-16 13:29:40 +0000642 # 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}
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
Peter Åstrande713b142004-11-16 13:29:40 +0000653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000656fi
657
Peter Åstrande713b142004-11-16 13:29:40 +0000658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000660do
Peter Åstrande713b142004-11-16 13:29:40 +0000661 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; }; };;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000666 esac
667done
668
Peter Åstrande713b142004-11-16 13:29:40 +0000669# 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
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000680
Peter Åstrande713b142004-11-16 13:29:40 +0000681# 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
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000687
Peter Åstrande713b142004-11-16 13:29:40 +0000688# 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
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000704
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.
Peter Åstrande713b142004-11-16 13:29:40 +0000709 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'`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000721 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
Peter Åstrande713b142004-11-16 13:29:40 +0000730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000732 else
Peter Åstrande713b142004-11-16 13:29:40 +0000733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000735 fi
736fi
Peter Åstrande713b142004-11-16 13:29:40 +0000737(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
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000781
Peter Åstrande713b142004-11-16 13:29:40 +0000782#
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
Peter Åstrand5a15f8c2005-01-23 20:44:20 +0000845
846System types:
847 --build=BUILD configure for building on BUILD [guessed]
848 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Peter Åstrande713b142004-11-16 13:29:40 +0000849_ACEOF
850fi
851
852if test -n "$ac_init_help"; then
853
854 cat <<\_ACEOF
855
Peter Åstrand5a15f8c2005-01-23 20:44:20 +0000856Optional Features:
857 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
858 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
859 --disable-nls do not use Native Language Support
860 --disable-rpath do not hardcode runtime library paths
861
Peter Åstrande713b142004-11-16 13:29:40 +0000862Optional Packages:
863 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
865 --with-x use the X Window System
866 --with-installed-zlib use the version of zlib which is installed on the
867 system instead of the one distributed with VNC
Peter Åstrandafa924f2004-11-19 13:30:00 +0000868 --with-installed-jpeg use the version of jpeg which is installed on the
869 system instead of the one distributed with VNC
Peter Åstrand5a15f8c2005-01-23 20:44:20 +0000870 --with-gnu-ld assume the C compiler uses GNU ld default=no
871 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
872 --without-libiconv-prefix don't search for libiconv in includedir and libdir
873 --with-included-gettext use the GNU gettext library included here
874 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
875 --without-libintl-prefix don't search for libintl in includedir and libdir
Peter Åstrande713b142004-11-16 13:29:40 +0000876
877Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
884 CXX C++ compiler command
885 CXXFLAGS C++ compiler flags
886 CXXCPP C++ preprocessor
887
888Use these variables to override the choices made by `configure' or to help
889it to find libraries and programs with nonstandard names/locations.
890
891_ACEOF
892fi
893
894if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
896 ac_popdir=`pwd`
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
899 ac_builddir=.
900
901if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905else
906 ac_dir_suffix= ac_top_builddir=
907fi
908
909case $srcdir in
910 .) # No --srcdir option. We are building in place.
911 ac_srcdir=.
912 if test -z "$ac_top_builddir"; then
913 ac_top_srcdir=.
914 else
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916 fi ;;
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
920 *) # Relative path.
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
923esac
924
925# Do not use `cd foo && pwd` to compute absolute paths, because
926# the directories may not exist.
927case `pwd` in
928.) ac_abs_builddir="$ac_dir";;
929*)
930 case "$ac_dir" in
931 .) ac_abs_builddir=`pwd`;;
932 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
933 *) ac_abs_builddir=`pwd`/"$ac_dir";;
934 esac;;
935esac
936case $ac_abs_builddir in
937.) ac_abs_top_builddir=${ac_top_builddir}.;;
938*)
939 case ${ac_top_builddir}. in
940 .) ac_abs_top_builddir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
942 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
943 esac;;
944esac
945case $ac_abs_builddir in
946.) ac_abs_srcdir=$ac_srcdir;;
947*)
948 case $ac_srcdir in
949 .) ac_abs_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
951 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
952 esac;;
953esac
954case $ac_abs_builddir in
955.) ac_abs_top_srcdir=$ac_top_srcdir;;
956*)
957 case $ac_top_srcdir in
958 .) ac_abs_top_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
960 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961 esac;;
962esac
963
964 cd $ac_dir
965 # Check for guested configure; otherwise get Cygnus style configure.
966 if test -f $ac_srcdir/configure.gnu; then
967 echo
968 $SHELL $ac_srcdir/configure.gnu --help=recursive
969 elif test -f $ac_srcdir/configure; then
970 echo
971 $SHELL $ac_srcdir/configure --help=recursive
972 elif test -f $ac_srcdir/configure.ac ||
973 test -f $ac_srcdir/configure.in; then
974 echo
975 $ac_configure --help
976 else
977 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
978 fi
979 cd $ac_popdir
980 done
981fi
982
983test -n "$ac_init_help" && exit 0
984if $ac_init_version; then
985 cat <<\_ACEOF
986
987Copyright (C) 2003 Free Software Foundation, Inc.
988This configure script is free software; the Free Software Foundation
989gives unlimited permission to copy, distribute and modify it.
990_ACEOF
991 exit 0
992fi
993exec 5>config.log
994cat >&5 <<_ACEOF
995This file contains any messages produced by compilers while
996running configure, to aid debugging if configure makes a mistake.
997
998It was created by $as_me, which was
999generated by GNU Autoconf 2.59. Invocation command line was
1000
1001 $ $0 $@
1002
1003_ACEOF
1004{
1005cat <<_ASUNAME
1006## --------- ##
1007## Platform. ##
1008## --------- ##
1009
1010hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1011uname -m = `(uname -m) 2>/dev/null || echo unknown`
1012uname -r = `(uname -r) 2>/dev/null || echo unknown`
1013uname -s = `(uname -s) 2>/dev/null || echo unknown`
1014uname -v = `(uname -v) 2>/dev/null || echo unknown`
1015
1016/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1017/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1018
1019/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1020/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1021/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1022hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1023/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1024/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1025/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1026
1027_ASUNAME
1028
1029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1030for as_dir in $PATH
1031do
1032 IFS=$as_save_IFS
1033 test -z "$as_dir" && as_dir=.
1034 echo "PATH: $as_dir"
1035done
1036
1037} >&5
1038
1039cat >&5 <<_ACEOF
1040
1041
1042## ----------- ##
1043## Core tests. ##
1044## ----------- ##
1045
1046_ACEOF
1047
1048
1049# Keep a trace of the command line.
1050# Strip out --no-create and --no-recursion so they do not pile up.
1051# Strip out --silent because we don't want to record it for future runs.
1052# Also quote any args containing shell meta-characters.
1053# Make two passes to allow for proper duplicate-argument suppression.
1054ac_configure_args=
1055ac_configure_args0=
1056ac_configure_args1=
1057ac_sep=
1058ac_must_keep_next=false
1059for ac_pass in 1 2
1060do
1061 for ac_arg
1062 do
1063 case $ac_arg in
1064 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 continue ;;
1068 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1069 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1070 esac
1071 case $ac_pass in
1072 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1073 2)
1074 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1075 if test $ac_must_keep_next = true; then
1076 ac_must_keep_next=false # Got value, back to normal.
1077 else
1078 case $ac_arg in
1079 *=* | --config-cache | -C | -disable-* | --disable-* \
1080 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1081 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1082 | -with-* | --with-* | -without-* | --without-* | --x)
1083 case "$ac_configure_args0 " in
1084 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1085 esac
1086 ;;
1087 -* ) ac_must_keep_next=true ;;
1088 esac
1089 fi
1090 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1091 # Get rid of the leading space.
1092 ac_sep=" "
1093 ;;
1094 esac
1095 done
1096done
1097$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1098$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1099
1100# When interrupted or exit'd, cleanup temporary files, and complete
1101# config.log. We remove comments because anyway the quotes in there
1102# would cause problems or look ugly.
1103# WARNING: Be sure not to use single quotes in there, as some shells,
1104# such as our DU 5.0 friend, will then `close' the trap.
1105trap 'exit_status=$?
1106 # Save into config.log some information that might help in debugging.
1107 {
1108 echo
1109
1110 cat <<\_ASBOX
1111## ---------------- ##
1112## Cache variables. ##
1113## ---------------- ##
1114_ASBOX
1115 echo
1116 # The following way of writing the cache mishandles newlines in values,
1117{
1118 (set) 2>&1 |
1119 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1120 *ac_space=\ *)
1121 sed -n \
1122 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1124 ;;
1125 *)
1126 sed -n \
1127 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1128 ;;
1129 esac;
1130}
1131 echo
1132
1133 cat <<\_ASBOX
1134## ----------------- ##
1135## Output variables. ##
1136## ----------------- ##
1137_ASBOX
1138 echo
1139 for ac_var in $ac_subst_vars
1140 do
1141 eval ac_val=$`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1143 done | sort
1144 echo
1145
1146 if test -n "$ac_subst_files"; then
1147 cat <<\_ASBOX
1148## ------------- ##
1149## Output files. ##
1150## ------------- ##
1151_ASBOX
1152 echo
1153 for ac_var in $ac_subst_files
1154 do
1155 eval ac_val=$`echo $ac_var`
1156 echo "$ac_var='"'"'$ac_val'"'"'"
1157 done | sort
1158 echo
1159 fi
1160
1161 if test -s confdefs.h; then
1162 cat <<\_ASBOX
1163## ----------- ##
1164## confdefs.h. ##
1165## ----------- ##
1166_ASBOX
1167 echo
1168 sed "/^$/d" confdefs.h | sort
1169 echo
1170 fi
1171 test "$ac_signal" != 0 &&
1172 echo "$as_me: caught signal $ac_signal"
1173 echo "$as_me: exit $exit_status"
1174 } >&5
1175 rm -f core *.core &&
1176 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1177 exit $exit_status
1178 ' 0
1179for ac_signal in 1 2 13 15; do
1180 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1181done
1182ac_signal=0
1183
1184# confdefs.h avoids OS command line length limits that DEFS can exceed.
1185rm -rf conftest* confdefs.h
1186# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1187echo >confdefs.h
1188
1189# Predefined preprocessor variables.
1190
1191cat >>confdefs.h <<_ACEOF
1192#define PACKAGE_NAME "$PACKAGE_NAME"
1193_ACEOF
1194
1195
1196cat >>confdefs.h <<_ACEOF
1197#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1198_ACEOF
1199
1200
1201cat >>confdefs.h <<_ACEOF
1202#define PACKAGE_VERSION "$PACKAGE_VERSION"
1203_ACEOF
1204
1205
1206cat >>confdefs.h <<_ACEOF
1207#define PACKAGE_STRING "$PACKAGE_STRING"
1208_ACEOF
1209
1210
1211cat >>confdefs.h <<_ACEOF
1212#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1213_ACEOF
1214
1215
1216# Let the site file select an alternate cache file if it wants to.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001217# Prefer explicitly selected file to automatically selected ones.
1218if test -z "$CONFIG_SITE"; then
1219 if test "x$prefix" != xNONE; then
1220 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1221 else
1222 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223 fi
1224fi
1225for ac_site_file in $CONFIG_SITE; do
1226 if test -r "$ac_site_file"; then
Peter Åstrande713b142004-11-16 13:29:40 +00001227 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1228echo "$as_me: loading site script $ac_site_file" >&6;}
1229 sed 's/^/| /' "$ac_site_file" >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001230 . "$ac_site_file"
1231 fi
1232done
1233
1234if test -r "$cache_file"; then
Peter Åstrande713b142004-11-16 13:29:40 +00001235 # Some versions of bash will fail to source /dev/null (special
1236 # files actually), so we avoid doing that.
1237 if test -f "$cache_file"; then
1238 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1239echo "$as_me: loading cache $cache_file" >&6;}
1240 case $cache_file in
1241 [\\/]* | ?:[\\/]* ) . $cache_file;;
1242 *) . ./$cache_file;;
1243 esac
1244 fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001245else
Peter Åstrande713b142004-11-16 13:29:40 +00001246 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1247echo "$as_me: creating cache $cache_file" >&6;}
1248 >$cache_file
1249fi
1250
1251# Check that the precious variables saved in the cache have kept the same
1252# value.
1253ac_cache_corrupted=false
1254for ac_var in `(set) 2>&1 |
1255 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1256 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1257 eval ac_new_set=\$ac_env_${ac_var}_set
1258 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1259 eval ac_new_val="\$ac_env_${ac_var}_value"
1260 case $ac_old_set,$ac_new_set in
1261 set,)
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1263echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,set)
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1267echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1269 ,);;
1270 *)
1271 if test "x$ac_old_val" != "x$ac_new_val"; then
1272 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1273echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1274 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1275echo "$as_me: former value: $ac_old_val" >&2;}
1276 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1277echo "$as_me: current value: $ac_new_val" >&2;}
1278 ac_cache_corrupted=:
1279 fi;;
1280 esac
1281 # Pass precious variables to config.status.
1282 if test "$ac_new_set" = set; then
1283 case $ac_new_val in
1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1286 *) ac_arg=$ac_var=$ac_new_val ;;
1287 esac
1288 case " $ac_configure_args " in
1289 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1290 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1291 esac
1292 fi
1293done
1294if $ac_cache_corrupted; then
1295 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1296echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1297 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1298echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1299 { (exit 1); exit 1; }; }
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001300fi
1301
1302ac_ext=c
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001303ac_cpp='$CPP $CPPFLAGS'
Peter Åstrande713b142004-11-16 13:29:40 +00001304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1306ac_compiler_gnu=$ac_cv_c_compiler_gnu
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001307
Peter Åstrande713b142004-11-16 13:29:40 +00001308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001324
1325
1326
Peter Åstrand5a15f8c2005-01-23 20:44:20 +00001327PACKAGE=tightvnc
1328VERSION=1.5.0
1329cat >>confdefs.h <<_ACEOF
1330#define PACKAGE "$PACKAGE"
1331_ACEOF
1332
1333cat >>confdefs.h <<_ACEOF
1334#define VERSION "$VERSION"
1335_ACEOF
1336
1337
1338
1339
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001340ac_cv_prog_cc_g=no
1341ac_cv_prog_cxx_g=no
1342
Peter Åstrande713b142004-11-16 13:29:40 +00001343ac_ext=c
1344ac_cpp='$CPP $CPPFLAGS'
1345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1347ac_compiler_gnu=$ac_cv_c_compiler_gnu
1348if test -n "$ac_tool_prefix"; then
1349 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1350set dummy ${ac_tool_prefix}gcc; ac_word=$2
1351echo "$as_me:$LINENO: checking for $ac_word" >&5
1352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1353if test "${ac_cv_prog_CC+set}" = set; then
1354 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001355else
1356 if test -n "$CC"; then
1357 ac_cv_prog_CC="$CC" # Let the user override the test.
1358else
Peter Åstrande713b142004-11-16 13:29:40 +00001359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1360for as_dir in $PATH
1361do
1362 IFS=$as_save_IFS
1363 test -z "$as_dir" && as_dir=.
1364 for ac_exec_ext in '' $ac_executable_extensions; do
1365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1366 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1368 break 2
1369 fi
1370done
1371done
1372
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001373fi
1374fi
Peter Åstrande713b142004-11-16 13:29:40 +00001375CC=$ac_cv_prog_CC
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001376if test -n "$CC"; then
Peter Åstrande713b142004-11-16 13:29:40 +00001377 echo "$as_me:$LINENO: result: $CC" >&5
1378echo "${ECHO_T}$CC" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001379else
Peter Åstrande713b142004-11-16 13:29:40 +00001380 echo "$as_me:$LINENO: result: no" >&5
1381echo "${ECHO_T}no" >&6
1382fi
1383
1384fi
1385if test -z "$ac_cv_prog_CC"; then
1386 ac_ct_CC=$CC
1387 # Extract the first word of "gcc", so it can be a program name with args.
1388set dummy gcc; ac_word=$2
1389echo "$as_me:$LINENO: checking for $ac_word" >&5
1390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1391if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1392 echo $ECHO_N "(cached) $ECHO_C" >&6
1393else
1394 if test -n "$ac_ct_CC"; then
1395 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1396else
1397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1398for as_dir in $PATH
1399do
1400 IFS=$as_save_IFS
1401 test -z "$as_dir" && as_dir=.
1402 for ac_exec_ext in '' $ac_executable_extensions; do
1403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1404 ac_cv_prog_ac_ct_CC="gcc"
1405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1406 break 2
1407 fi
1408done
1409done
1410
1411fi
1412fi
1413ac_ct_CC=$ac_cv_prog_ac_ct_CC
1414if test -n "$ac_ct_CC"; then
1415 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1416echo "${ECHO_T}$ac_ct_CC" >&6
1417else
1418 echo "$as_me:$LINENO: result: no" >&5
1419echo "${ECHO_T}no" >&6
1420fi
1421
1422 CC=$ac_ct_CC
1423else
1424 CC="$ac_cv_prog_CC"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001425fi
1426
1427if test -z "$CC"; then
Peter Åstrande713b142004-11-16 13:29:40 +00001428 if test -n "$ac_tool_prefix"; then
1429 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1430set dummy ${ac_tool_prefix}cc; ac_word=$2
1431echo "$as_me:$LINENO: checking for $ac_word" >&5
1432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433if test "${ac_cv_prog_CC+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001435else
1436 if test -n "$CC"; then
1437 ac_cv_prog_CC="$CC" # Let the user override the test.
1438else
Peter Åstrande713b142004-11-16 13:29:40 +00001439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1440for as_dir in $PATH
1441do
1442 IFS=$as_save_IFS
1443 test -z "$as_dir" && as_dir=.
1444 for ac_exec_ext in '' $ac_executable_extensions; do
1445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1446 ac_cv_prog_CC="${ac_tool_prefix}cc"
1447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1448 break 2
1449 fi
1450done
1451done
1452
1453fi
1454fi
1455CC=$ac_cv_prog_CC
1456if test -n "$CC"; then
1457 echo "$as_me:$LINENO: result: $CC" >&5
1458echo "${ECHO_T}$CC" >&6
1459else
1460 echo "$as_me:$LINENO: result: no" >&5
1461echo "${ECHO_T}no" >&6
1462fi
1463
1464fi
1465if test -z "$ac_cv_prog_CC"; then
1466 ac_ct_CC=$CC
1467 # Extract the first word of "cc", so it can be a program name with args.
1468set dummy cc; ac_word=$2
1469echo "$as_me:$LINENO: checking for $ac_word" >&5
1470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1471if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1473else
1474 if test -n "$ac_ct_CC"; then
1475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1476else
1477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1478for as_dir in $PATH
1479do
1480 IFS=$as_save_IFS
1481 test -z "$as_dir" && as_dir=.
1482 for ac_exec_ext in '' $ac_executable_extensions; do
1483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1484 ac_cv_prog_ac_ct_CC="cc"
1485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1486 break 2
1487 fi
1488done
1489done
1490
1491fi
1492fi
1493ac_ct_CC=$ac_cv_prog_ac_ct_CC
1494if test -n "$ac_ct_CC"; then
1495 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1496echo "${ECHO_T}$ac_ct_CC" >&6
1497else
1498 echo "$as_me:$LINENO: result: no" >&5
1499echo "${ECHO_T}no" >&6
1500fi
1501
1502 CC=$ac_ct_CC
1503else
1504 CC="$ac_cv_prog_CC"
1505fi
1506
1507fi
1508if test -z "$CC"; then
1509 # Extract the first word of "cc", so it can be a program name with args.
1510set dummy cc; ac_word=$2
1511echo "$as_me:$LINENO: checking for $ac_word" >&5
1512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1513if test "${ac_cv_prog_CC+set}" = set; then
1514 echo $ECHO_N "(cached) $ECHO_C" >&6
1515else
1516 if test -n "$CC"; then
1517 ac_cv_prog_CC="$CC" # Let the user override the test.
1518else
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001519 ac_prog_rejected=no
Peter Åstrande713b142004-11-16 13:29:40 +00001520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521for as_dir in $PATH
1522do
1523 IFS=$as_save_IFS
1524 test -z "$as_dir" && as_dir=.
1525 for ac_exec_ext in '' $ac_executable_extensions; do
1526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1527 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1528 ac_prog_rejected=yes
1529 continue
1530 fi
1531 ac_cv_prog_CC="cc"
1532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1533 break 2
1534 fi
1535done
1536done
1537
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001538if test $ac_prog_rejected = yes; then
1539 # We found a bogon in the path, so make sure we never use it.
1540 set dummy $ac_cv_prog_CC
1541 shift
Peter Åstrande713b142004-11-16 13:29:40 +00001542 if test $# != 0; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001543 # We chose a different compiler from the bogus one.
1544 # However, it has the same basename, so the bogon will be chosen
1545 # first if we set CC to just the basename; use the full file name.
1546 shift
Peter Åstrande713b142004-11-16 13:29:40 +00001547 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001548 fi
1549fi
1550fi
1551fi
Peter Åstrande713b142004-11-16 13:29:40 +00001552CC=$ac_cv_prog_CC
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001553if test -n "$CC"; then
Peter Åstrande713b142004-11-16 13:29:40 +00001554 echo "$as_me:$LINENO: result: $CC" >&5
1555echo "${ECHO_T}$CC" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001556else
Peter Åstrande713b142004-11-16 13:29:40 +00001557 echo "$as_me:$LINENO: result: no" >&5
1558echo "${ECHO_T}no" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001559fi
1560
Peter Åstrande713b142004-11-16 13:29:40 +00001561fi
1562if test -z "$CC"; then
1563 if test -n "$ac_tool_prefix"; then
1564 for ac_prog in cl
1565 do
1566 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1567set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1568echo "$as_me:$LINENO: checking for $ac_word" >&5
1569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1570if test "${ac_cv_prog_CC+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001572else
1573 if test -n "$CC"; then
1574 ac_cv_prog_CC="$CC" # Let the user override the test.
1575else
Peter Åstrande713b142004-11-16 13:29:40 +00001576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1577for as_dir in $PATH
1578do
1579 IFS=$as_save_IFS
1580 test -z "$as_dir" && as_dir=.
1581 for ac_exec_ext in '' $ac_executable_extensions; do
1582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1583 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1585 break 2
1586 fi
1587done
1588done
1589
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001590fi
1591fi
Peter Åstrande713b142004-11-16 13:29:40 +00001592CC=$ac_cv_prog_CC
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001593if test -n "$CC"; then
Peter Åstrande713b142004-11-16 13:29:40 +00001594 echo "$as_me:$LINENO: result: $CC" >&5
1595echo "${ECHO_T}$CC" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001596else
Peter Åstrande713b142004-11-16 13:29:40 +00001597 echo "$as_me:$LINENO: result: no" >&5
1598echo "${ECHO_T}no" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001599fi
Peter Åstrande713b142004-11-16 13:29:40 +00001600
1601 test -n "$CC" && break
1602 done
1603fi
1604if test -z "$CC"; then
1605 ac_ct_CC=$CC
1606 for ac_prog in cl
1607do
1608 # Extract the first word of "$ac_prog", so it can be a program name with args.
1609set dummy $ac_prog; ac_word=$2
1610echo "$as_me:$LINENO: checking for $ac_word" >&5
1611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1614else
1615 if test -n "$ac_ct_CC"; then
1616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1617else
1618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619for as_dir in $PATH
1620do
1621 IFS=$as_save_IFS
1622 test -z "$as_dir" && as_dir=.
1623 for ac_exec_ext in '' $ac_executable_extensions; do
1624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625 ac_cv_prog_ac_ct_CC="$ac_prog"
1626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1627 break 2
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001628 fi
Peter Åstrande713b142004-11-16 13:29:40 +00001629done
1630done
1631
1632fi
1633fi
1634ac_ct_CC=$ac_cv_prog_ac_ct_CC
1635if test -n "$ac_ct_CC"; then
1636 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1637echo "${ECHO_T}$ac_ct_CC" >&6
1638else
1639 echo "$as_me:$LINENO: result: no" >&5
1640echo "${ECHO_T}no" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001641fi
1642
Peter Åstrande713b142004-11-16 13:29:40 +00001643 test -n "$ac_ct_CC" && break
1644done
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001645
Peter Åstrande713b142004-11-16 13:29:40 +00001646 CC=$ac_ct_CC
1647fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001648
Peter Åstrande713b142004-11-16 13:29:40 +00001649fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001650
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001651
Peter Åstrande713b142004-11-16 13:29:40 +00001652test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1653See \`config.log' for more details." >&5
1654echo "$as_me: error: no acceptable C compiler found in \$PATH
1655See \`config.log' for more details." >&2;}
1656 { (exit 1); exit 1; }; }
1657
1658# Provide some information about the compiler.
1659echo "$as_me:$LINENO:" \
1660 "checking for C compiler version" >&5
1661ac_compiler=`set X $ac_compile; echo $2`
1662{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1663 (eval $ac_compiler --version </dev/null >&5) 2>&5
1664 ac_status=$?
1665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1666 (exit $ac_status); }
1667{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1668 (eval $ac_compiler -v </dev/null >&5) 2>&5
1669 ac_status=$?
1670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1671 (exit $ac_status); }
1672{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1673 (eval $ac_compiler -V </dev/null >&5) 2>&5
1674 ac_status=$?
1675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1676 (exit $ac_status); }
1677
1678cat >conftest.$ac_ext <<_ACEOF
1679/* confdefs.h. */
1680_ACEOF
1681cat confdefs.h >>conftest.$ac_ext
1682cat >>conftest.$ac_ext <<_ACEOF
1683/* end confdefs.h. */
1684
1685int
1686main ()
1687{
1688
1689 ;
1690 return 0;
1691}
1692_ACEOF
1693ac_clean_files_save=$ac_clean_files
1694ac_clean_files="$ac_clean_files a.out a.exe b.out"
1695# Try to create an executable without -o first, disregard a.out.
1696# It will help us diagnose broken compilers, and finding out an intuition
1697# of exeext.
1698echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1699echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1700ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1701if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1702 (eval $ac_link_default) 2>&5
1703 ac_status=$?
1704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1705 (exit $ac_status); }; then
1706 # Find the output, starting from the most likely. This scheme is
1707# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1708# resort.
1709
1710# Be careful to initialize this variable, since it used to be cached.
1711# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1712ac_cv_exeext=
1713# b.out is created by i960 compilers.
1714for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1715do
1716 test -f "$ac_file" || continue
1717 case $ac_file in
1718 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1719 ;;
1720 conftest.$ac_ext )
1721 # This is the source file.
1722 ;;
1723 [ab].out )
1724 # We found the default executable, but exeext='' is most
1725 # certainly right.
1726 break;;
1727 *.* )
1728 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1729 # FIXME: I believe we export ac_cv_exeext for Libtool,
1730 # but it would be cool to find out if it's true. Does anybody
1731 # maintain Libtool? --akim.
1732 export ac_cv_exeext
1733 break;;
1734 * )
1735 break;;
1736 esac
1737done
1738else
1739 echo "$as_me: failed program was:" >&5
1740sed 's/^/| /' conftest.$ac_ext >&5
1741
1742{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1743See \`config.log' for more details." >&5
1744echo "$as_me: error: C compiler cannot create executables
1745See \`config.log' for more details." >&2;}
1746 { (exit 77); exit 77; }; }
1747fi
1748
1749ac_exeext=$ac_cv_exeext
1750echo "$as_me:$LINENO: result: $ac_file" >&5
1751echo "${ECHO_T}$ac_file" >&6
1752
1753# Check the compiler produces executables we can run. If not, either
1754# the compiler is broken, or we cross compile.
1755echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1756echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1757# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1758# If not cross compiling, check that we can run a simple program.
1759if test "$cross_compiling" != yes; then
1760 if { ac_try='./$ac_file'
1761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1762 (eval $ac_try) 2>&5
1763 ac_status=$?
1764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1765 (exit $ac_status); }; }; then
1766 cross_compiling=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001767 else
Peter Åstrande713b142004-11-16 13:29:40 +00001768 if test "$cross_compiling" = maybe; then
1769 cross_compiling=yes
1770 else
1771 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1772If you meant to cross compile, use \`--host'.
1773See \`config.log' for more details." >&5
1774echo "$as_me: error: cannot run C compiled programs.
1775If you meant to cross compile, use \`--host'.
1776See \`config.log' for more details." >&2;}
1777 { (exit 1); exit 1; }; }
1778 fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001779 fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001780fi
Peter Åstrande713b142004-11-16 13:29:40 +00001781echo "$as_me:$LINENO: result: yes" >&5
1782echo "${ECHO_T}yes" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001783
Peter Åstrande713b142004-11-16 13:29:40 +00001784rm -f a.out a.exe conftest$ac_cv_exeext b.out
1785ac_clean_files=$ac_clean_files_save
1786# Check the compiler produces executables we can run. If not, either
1787# the compiler is broken, or we cross compile.
1788echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1789echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1790echo "$as_me:$LINENO: result: $cross_compiling" >&5
1791echo "${ECHO_T}$cross_compiling" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001792
Peter Åstrande713b142004-11-16 13:29:40 +00001793echo "$as_me:$LINENO: checking for suffix of executables" >&5
1794echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1796 (eval $ac_link) 2>&5
1797 ac_status=$?
1798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1799 (exit $ac_status); }; then
1800 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1801# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1802# work properly (i.e., refer to `conftest.exe'), while it won't with
1803# `rm'.
1804for ac_file in conftest.exe conftest conftest.*; do
1805 test -f "$ac_file" || continue
1806 case $ac_file in
1807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1808 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1809 export ac_cv_exeext
1810 break;;
1811 * ) break;;
1812 esac
1813done
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001814else
Peter Åstrande713b142004-11-16 13:29:40 +00001815 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1816See \`config.log' for more details." >&5
1817echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1818See \`config.log' for more details." >&2;}
1819 { (exit 1); exit 1; }; }
1820fi
1821
1822rm -f conftest$ac_cv_exeext
1823echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1824echo "${ECHO_T}$ac_cv_exeext" >&6
1825
1826rm -f conftest.$ac_ext
1827EXEEXT=$ac_cv_exeext
1828ac_exeext=$EXEEXT
1829echo "$as_me:$LINENO: checking for suffix of object files" >&5
1830echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1831if test "${ac_cv_objext+set}" = set; then
1832 echo $ECHO_N "(cached) $ECHO_C" >&6
1833else
1834 cat >conftest.$ac_ext <<_ACEOF
1835/* confdefs.h. */
1836_ACEOF
1837cat confdefs.h >>conftest.$ac_ext
1838cat >>conftest.$ac_ext <<_ACEOF
1839/* end confdefs.h. */
1840
1841int
1842main ()
1843{
1844
1845 ;
1846 return 0;
1847}
1848_ACEOF
1849rm -f conftest.o conftest.obj
1850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1851 (eval $ac_compile) 2>&5
1852 ac_status=$?
1853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854 (exit $ac_status); }; then
1855 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1856 case $ac_file in
1857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1858 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1859 break;;
1860 esac
1861done
1862else
1863 echo "$as_me: failed program was:" >&5
1864sed 's/^/| /' conftest.$ac_ext >&5
1865
1866{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1867See \`config.log' for more details." >&5
1868echo "$as_me: error: cannot compute suffix of object files: cannot compile
1869See \`config.log' for more details." >&2;}
1870 { (exit 1); exit 1; }; }
1871fi
1872
1873rm -f conftest.$ac_cv_objext conftest.$ac_ext
1874fi
1875echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1876echo "${ECHO_T}$ac_cv_objext" >&6
1877OBJEXT=$ac_cv_objext
1878ac_objext=$OBJEXT
1879echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1880echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1881if test "${ac_cv_c_compiler_gnu+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1883else
1884 cat >conftest.$ac_ext <<_ACEOF
1885/* confdefs.h. */
1886_ACEOF
1887cat confdefs.h >>conftest.$ac_ext
1888cat >>conftest.$ac_ext <<_ACEOF
1889/* end confdefs.h. */
1890
1891int
1892main ()
1893{
1894#ifndef __GNUC__
1895 choke me
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001896#endif
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001897
Peter Åstrande713b142004-11-16 13:29:40 +00001898 ;
1899 return 0;
1900}
1901_ACEOF
1902rm -f conftest.$ac_objext
1903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1904 (eval $ac_compile) 2>conftest.er1
1905 ac_status=$?
1906 grep -v '^ *+' conftest.er1 >conftest.err
1907 rm -f conftest.er1
1908 cat conftest.err >&5
1909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1910 (exit $ac_status); } &&
1911 { ac_try='test -z "$ac_c_werror_flag"
1912 || test ! -s conftest.err'
1913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1914 (eval $ac_try) 2>&5
1915 ac_status=$?
1916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917 (exit $ac_status); }; } &&
1918 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
1924 ac_compiler_gnu=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001925else
Peter Åstrande713b142004-11-16 13:29:40 +00001926 echo "$as_me: failed program was:" >&5
1927sed 's/^/| /' conftest.$ac_ext >&5
1928
1929ac_compiler_gnu=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001930fi
Peter Åstrande713b142004-11-16 13:29:40 +00001931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1932ac_cv_c_compiler_gnu=$ac_compiler_gnu
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001933
Peter Åstrande713b142004-11-16 13:29:40 +00001934fi
1935echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1936echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1937GCC=`test $ac_compiler_gnu = yes && echo yes`
1938ac_test_CFLAGS=${CFLAGS+set}
1939ac_save_CFLAGS=$CFLAGS
1940CFLAGS="-g"
1941echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1942echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1943if test "${ac_cv_prog_cc_g+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001945else
Peter Åstrande713b142004-11-16 13:29:40 +00001946 cat >conftest.$ac_ext <<_ACEOF
1947/* confdefs.h. */
1948_ACEOF
1949cat confdefs.h >>conftest.$ac_ext
1950cat >>conftest.$ac_ext <<_ACEOF
1951/* end confdefs.h. */
1952
1953int
1954main ()
1955{
1956
1957 ;
1958 return 0;
1959}
1960_ACEOF
1961rm -f conftest.$ac_objext
1962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1963 (eval $ac_compile) 2>conftest.er1
1964 ac_status=$?
1965 grep -v '^ *+' conftest.er1 >conftest.err
1966 rm -f conftest.er1
1967 cat conftest.err >&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); } &&
1970 { ac_try='test -z "$ac_c_werror_flag"
1971 || test ! -s conftest.err'
1972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1973 (eval $ac_try) 2>&5
1974 ac_status=$?
1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976 (exit $ac_status); }; } &&
1977 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001983 ac_cv_prog_cc_g=yes
1984else
Peter Åstrande713b142004-11-16 13:29:40 +00001985 echo "$as_me: failed program was:" >&5
1986sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001987
Peter Åstrande713b142004-11-16 13:29:40 +00001988ac_cv_prog_cc_g=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001989fi
Peter Åstrande713b142004-11-16 13:29:40 +00001990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1991fi
1992echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1993echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001994if test "$ac_test_CFLAGS" = set; then
Peter Åstrande713b142004-11-16 13:29:40 +00001995 CFLAGS=$ac_save_CFLAGS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001996elif test $ac_cv_prog_cc_g = yes; then
1997 if test "$GCC" = yes; then
1998 CFLAGS="-g -O2"
1999 else
2000 CFLAGS="-g"
2001 fi
2002else
2003 if test "$GCC" = yes; then
2004 CFLAGS="-O2"
2005 else
2006 CFLAGS=
2007 fi
2008fi
Peter Åstrande713b142004-11-16 13:29:40 +00002009echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2010echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2011if test "${ac_cv_prog_cc_stdc+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2013else
2014 ac_cv_prog_cc_stdc=no
2015ac_save_CC=$CC
2016cat >conftest.$ac_ext <<_ACEOF
2017/* confdefs.h. */
2018_ACEOF
2019cat confdefs.h >>conftest.$ac_ext
2020cat >>conftest.$ac_ext <<_ACEOF
2021/* end confdefs.h. */
2022#include <stdarg.h>
2023#include <stdio.h>
2024#include <sys/types.h>
2025#include <sys/stat.h>
2026/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2027struct buf { int x; };
2028FILE * (*rcsopen) (struct buf *, struct stat *, int);
2029static char *e (p, i)
2030 char **p;
2031 int i;
2032{
2033 return p[i];
2034}
2035static char *f (char * (*g) (char **, int), char **p, ...)
2036{
2037 char *s;
2038 va_list v;
2039 va_start (v,p);
2040 s = g (p, va_arg (v,int));
2041 va_end (v);
2042 return s;
2043}
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002044
Peter Åstrande713b142004-11-16 13:29:40 +00002045/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2046 function prototypes and stuff, but not '\xHH' hex character constants.
2047 These don't provoke an error unfortunately, instead are silently treated
2048 as 'x'. The following induces an error, until -std1 is added to get
2049 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2050 array size at least. It's necessary to write '\x00'==0 to get something
2051 that's true only with -std1. */
2052int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2053
2054int test (int i, double x);
2055struct s1 {int (*f) (int a);};
2056struct s2 {int (*f) (double a);};
2057int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2058int argc;
2059char **argv;
2060int
2061main ()
2062{
2063return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2064 ;
2065 return 0;
2066}
2067_ACEOF
2068# Don't try gcc -ansi; that turns off useful extensions and
2069# breaks some systems' header files.
2070# AIX -qlanglvl=ansi
2071# Ultrix and OSF/1 -std1
2072# HP-UX 10.20 and later -Ae
2073# HP-UX older versions -Aa -D_HPUX_SOURCE
2074# SVR4 -Xc -D__EXTENSIONS__
2075for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002076do
Peter Åstrande713b142004-11-16 13:29:40 +00002077 CC="$ac_save_CC $ac_arg"
2078 rm -f conftest.$ac_objext
2079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080 (eval $ac_compile) 2>conftest.er1
2081 ac_status=$?
2082 grep -v '^ *+' conftest.er1 >conftest.err
2083 rm -f conftest.er1
2084 cat conftest.err >&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); } &&
2087 { ac_try='test -z "$ac_c_werror_flag"
2088 || test ! -s conftest.err'
2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 (eval $ac_try) 2>&5
2091 ac_status=$?
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; } &&
2094 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2100 ac_cv_prog_cc_stdc=$ac_arg
2101break
2102else
2103 echo "$as_me: failed program was:" >&5
2104sed 's/^/| /' conftest.$ac_ext >&5
2105
2106fi
2107rm -f conftest.err conftest.$ac_objext
2108done
2109rm -f conftest.$ac_ext conftest.$ac_objext
2110CC=$ac_save_CC
2111
2112fi
2113
2114case "x$ac_cv_prog_cc_stdc" in
2115 x|xno)
2116 echo "$as_me:$LINENO: result: none needed" >&5
2117echo "${ECHO_T}none needed" >&6 ;;
2118 *)
2119 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2120echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2121 CC="$CC $ac_cv_prog_cc_stdc" ;;
2122esac
2123
2124# Some people use a C++ compiler to compile C. Since we use `exit',
2125# in C++ we need to declare it. In case someone uses the same compiler
2126# for both compiling C and C++ we need to have the C++ compiler decide
2127# the declaration of exit, since it's the most demanding environment.
2128cat >conftest.$ac_ext <<_ACEOF
2129#ifndef __cplusplus
2130 choke me
2131#endif
2132_ACEOF
2133rm -f conftest.$ac_objext
2134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2135 (eval $ac_compile) 2>conftest.er1
2136 ac_status=$?
2137 grep -v '^ *+' conftest.er1 >conftest.err
2138 rm -f conftest.er1
2139 cat conftest.err >&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); } &&
2142 { ac_try='test -z "$ac_c_werror_flag"
2143 || test ! -s conftest.err'
2144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2145 (eval $ac_try) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; } &&
2149 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2155 for ac_declaration in \
2156 '' \
2157 'extern "C" void std::exit (int) throw (); using std::exit;' \
2158 'extern "C" void std::exit (int); using std::exit;' \
2159 'extern "C" void exit (int) throw ();' \
2160 'extern "C" void exit (int);' \
2161 'void exit (int);'
2162do
2163 cat >conftest.$ac_ext <<_ACEOF
2164/* confdefs.h. */
2165_ACEOF
2166cat confdefs.h >>conftest.$ac_ext
2167cat >>conftest.$ac_ext <<_ACEOF
2168/* end confdefs.h. */
2169$ac_declaration
2170#include <stdlib.h>
2171int
2172main ()
2173{
2174exit (42);
2175 ;
2176 return 0;
2177}
2178_ACEOF
2179rm -f conftest.$ac_objext
2180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181 (eval $ac_compile) 2>conftest.er1
2182 ac_status=$?
2183 grep -v '^ *+' conftest.er1 >conftest.err
2184 rm -f conftest.er1
2185 cat conftest.err >&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); } &&
2188 { ac_try='test -z "$ac_c_werror_flag"
2189 || test ! -s conftest.err'
2190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2191 (eval $ac_try) 2>&5
2192 ac_status=$?
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; } &&
2195 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2201 :
2202else
2203 echo "$as_me: failed program was:" >&5
2204sed 's/^/| /' conftest.$ac_ext >&5
2205
2206continue
2207fi
2208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2209 cat >conftest.$ac_ext <<_ACEOF
2210/* confdefs.h. */
2211_ACEOF
2212cat confdefs.h >>conftest.$ac_ext
2213cat >>conftest.$ac_ext <<_ACEOF
2214/* end confdefs.h. */
2215$ac_declaration
2216int
2217main ()
2218{
2219exit (42);
2220 ;
2221 return 0;
2222}
2223_ACEOF
2224rm -f conftest.$ac_objext
2225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226 (eval $ac_compile) 2>conftest.er1
2227 ac_status=$?
2228 grep -v '^ *+' conftest.er1 >conftest.err
2229 rm -f conftest.er1
2230 cat conftest.err >&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); } &&
2233 { ac_try='test -z "$ac_c_werror_flag"
2234 || test ! -s conftest.err'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 (eval $ac_try) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; } &&
2240 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2246 break
2247else
2248 echo "$as_me: failed program was:" >&5
2249sed 's/^/| /' conftest.$ac_ext >&5
2250
2251fi
2252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2253done
2254rm -f conftest*
2255if test -n "$ac_declaration"; then
2256 echo '#ifdef __cplusplus' >>confdefs.h
2257 echo $ac_declaration >>confdefs.h
2258 echo '#endif' >>confdefs.h
2259fi
2260
2261else
2262 echo "$as_me: failed program was:" >&5
2263sed 's/^/| /' conftest.$ac_ext >&5
2264
2265fi
2266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2267ac_ext=c
2268ac_cpp='$CPP $CPPFLAGS'
2269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2271ac_compiler_gnu=$ac_cv_c_compiler_gnu
2272
2273ac_ext=cc
2274ac_cpp='$CXXCPP $CPPFLAGS'
2275ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2276ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2277ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2278if test -n "$ac_tool_prefix"; then
2279 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2280 do
2281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2282set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2283echo "$as_me:$LINENO: checking for $ac_word" >&5
2284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2285if test "${ac_cv_prog_CXX+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002287else
2288 if test -n "$CXX"; then
2289 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2290else
Peter Åstrande713b142004-11-16 13:29:40 +00002291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292for as_dir in $PATH
2293do
2294 IFS=$as_save_IFS
2295 test -z "$as_dir" && as_dir=.
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2298 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300 break 2
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002301 fi
Peter Åstrande713b142004-11-16 13:29:40 +00002302done
2303done
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002304
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002305fi
Peter Åstrande713b142004-11-16 13:29:40 +00002306fi
2307CXX=$ac_cv_prog_CXX
2308if test -n "$CXX"; then
2309 echo "$as_me:$LINENO: result: $CXX" >&5
2310echo "${ECHO_T}$CXX" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002311else
Peter Åstrande713b142004-11-16 13:29:40 +00002312 echo "$as_me:$LINENO: result: no" >&5
2313echo "${ECHO_T}no" >&6
2314fi
2315
2316 test -n "$CXX" && break
2317 done
2318fi
2319if test -z "$CXX"; then
2320 ac_ct_CXX=$CXX
2321 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2322do
2323 # Extract the first word of "$ac_prog", so it can be a program name with args.
2324set dummy $ac_prog; ac_word=$2
2325echo "$as_me:$LINENO: checking for $ac_word" >&5
2326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2327if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2329else
2330 if test -n "$ac_ct_CXX"; then
2331 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2332else
2333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334for as_dir in $PATH
2335do
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2340 ac_cv_prog_ac_ct_CXX="$ac_prog"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 break 2
2343 fi
2344done
2345done
2346
2347fi
2348fi
2349ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2350if test -n "$ac_ct_CXX"; then
2351 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2352echo "${ECHO_T}$ac_ct_CXX" >&6
2353else
2354 echo "$as_me:$LINENO: result: no" >&5
2355echo "${ECHO_T}no" >&6
2356fi
2357
2358 test -n "$ac_ct_CXX" && break
2359done
2360test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2361
2362 CXX=$ac_ct_CXX
2363fi
2364
2365
2366# Provide some information about the compiler.
2367echo "$as_me:$LINENO:" \
2368 "checking for C++ compiler version" >&5
2369ac_compiler=`set X $ac_compile; echo $2`
2370{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2371 (eval $ac_compiler --version </dev/null >&5) 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }
2375{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2376 (eval $ac_compiler -v </dev/null >&5) 2>&5
2377 ac_status=$?
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }
2380{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2381 (eval $ac_compiler -V </dev/null >&5) 2>&5
2382 ac_status=$?
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }
2385
2386echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2387echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2388if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2390else
2391 cat >conftest.$ac_ext <<_ACEOF
2392/* confdefs.h. */
2393_ACEOF
2394cat confdefs.h >>conftest.$ac_ext
2395cat >>conftest.$ac_ext <<_ACEOF
2396/* end confdefs.h. */
2397
2398int
2399main ()
2400{
2401#ifndef __GNUC__
2402 choke me
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002403#endif
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002404
Peter Åstrande713b142004-11-16 13:29:40 +00002405 ;
2406 return 0;
2407}
2408_ACEOF
2409rm -f conftest.$ac_objext
2410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>conftest.er1
2412 ac_status=$?
2413 grep -v '^ *+' conftest.er1 >conftest.err
2414 rm -f conftest.er1
2415 cat conftest.err >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
2418 { ac_try='test -z "$ac_cxx_werror_flag"
2419 || test ! -s conftest.err'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 (eval $ac_try) 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; } &&
2425 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2431 ac_compiler_gnu=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002432else
Peter Åstrande713b142004-11-16 13:29:40 +00002433 echo "$as_me: failed program was:" >&5
2434sed 's/^/| /' conftest.$ac_ext >&5
2435
2436ac_compiler_gnu=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002437fi
Peter Åstrande713b142004-11-16 13:29:40 +00002438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2439ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002440
Peter Åstrande713b142004-11-16 13:29:40 +00002441fi
2442echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2443echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2444GXX=`test $ac_compiler_gnu = yes && echo yes`
2445ac_test_CXXFLAGS=${CXXFLAGS+set}
2446ac_save_CXXFLAGS=$CXXFLAGS
2447CXXFLAGS="-g"
2448echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2449echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2450if test "${ac_cv_prog_cxx_g+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002452else
Peter Åstrande713b142004-11-16 13:29:40 +00002453 cat >conftest.$ac_ext <<_ACEOF
2454/* confdefs.h. */
2455_ACEOF
2456cat confdefs.h >>conftest.$ac_ext
2457cat >>conftest.$ac_ext <<_ACEOF
2458/* end confdefs.h. */
2459
2460int
2461main ()
2462{
2463
2464 ;
2465 return 0;
2466}
2467_ACEOF
2468rm -f conftest.$ac_objext
2469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470 (eval $ac_compile) 2>conftest.er1
2471 ac_status=$?
2472 grep -v '^ *+' conftest.er1 >conftest.err
2473 rm -f conftest.er1
2474 cat conftest.err >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); } &&
2477 { ac_try='test -z "$ac_cxx_werror_flag"
2478 || test ! -s conftest.err'
2479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480 (eval $ac_try) 2>&5
2481 ac_status=$?
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; } &&
2484 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002490 ac_cv_prog_cxx_g=yes
2491else
Peter Åstrande713b142004-11-16 13:29:40 +00002492 echo "$as_me: failed program was:" >&5
2493sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002494
Peter Åstrande713b142004-11-16 13:29:40 +00002495ac_cv_prog_cxx_g=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002496fi
Peter Åstrande713b142004-11-16 13:29:40 +00002497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2498fi
2499echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2500echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002501if test "$ac_test_CXXFLAGS" = set; then
Peter Åstrande713b142004-11-16 13:29:40 +00002502 CXXFLAGS=$ac_save_CXXFLAGS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002503elif test $ac_cv_prog_cxx_g = yes; then
2504 if test "$GXX" = yes; then
2505 CXXFLAGS="-g -O2"
2506 else
2507 CXXFLAGS="-g"
2508 fi
2509else
2510 if test "$GXX" = yes; then
2511 CXXFLAGS="-O2"
2512 else
2513 CXXFLAGS=
2514 fi
2515fi
Peter Åstrande713b142004-11-16 13:29:40 +00002516for ac_declaration in \
2517 '' \
2518 'extern "C" void std::exit (int) throw (); using std::exit;' \
2519 'extern "C" void std::exit (int); using std::exit;' \
2520 'extern "C" void exit (int) throw ();' \
2521 'extern "C" void exit (int);' \
2522 'void exit (int);'
2523do
2524 cat >conftest.$ac_ext <<_ACEOF
2525/* confdefs.h. */
2526_ACEOF
2527cat confdefs.h >>conftest.$ac_ext
2528cat >>conftest.$ac_ext <<_ACEOF
2529/* end confdefs.h. */
2530$ac_declaration
2531#include <stdlib.h>
2532int
2533main ()
2534{
2535exit (42);
2536 ;
2537 return 0;
2538}
2539_ACEOF
2540rm -f conftest.$ac_objext
2541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542 (eval $ac_compile) 2>conftest.er1
2543 ac_status=$?
2544 grep -v '^ *+' conftest.er1 >conftest.err
2545 rm -f conftest.er1
2546 cat conftest.err >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } &&
2549 { ac_try='test -z "$ac_cxx_werror_flag"
2550 || test ! -s conftest.err'
2551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552 (eval $ac_try) 2>&5
2553 ac_status=$?
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; } &&
2556 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2562 :
2563else
2564 echo "$as_me: failed program was:" >&5
2565sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002566
Peter Åstrande713b142004-11-16 13:29:40 +00002567continue
2568fi
2569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2570 cat >conftest.$ac_ext <<_ACEOF
2571/* confdefs.h. */
2572_ACEOF
2573cat confdefs.h >>conftest.$ac_ext
2574cat >>conftest.$ac_ext <<_ACEOF
2575/* end confdefs.h. */
2576$ac_declaration
2577int
2578main ()
2579{
2580exit (42);
2581 ;
2582 return 0;
2583}
2584_ACEOF
2585rm -f conftest.$ac_objext
2586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587 (eval $ac_compile) 2>conftest.er1
2588 ac_status=$?
2589 grep -v '^ *+' conftest.er1 >conftest.err
2590 rm -f conftest.er1
2591 cat conftest.err >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); } &&
2594 { ac_try='test -z "$ac_cxx_werror_flag"
2595 || test ! -s conftest.err'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 (eval $ac_try) 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; } &&
2601 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2607 break
2608else
2609 echo "$as_me: failed program was:" >&5
2610sed 's/^/| /' conftest.$ac_ext >&5
2611
2612fi
2613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2614done
2615rm -f conftest*
2616if test -n "$ac_declaration"; then
2617 echo '#ifdef __cplusplus' >>confdefs.h
2618 echo $ac_declaration >>confdefs.h
2619 echo '#endif' >>confdefs.h
2620fi
2621
2622ac_ext=c
2623ac_cpp='$CPP $CPPFLAGS'
2624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2626ac_compiler_gnu=$ac_cv_c_compiler_gnu
2627
2628if test -n "$ac_tool_prefix"; then
2629 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2630set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2631echo "$as_me:$LINENO: checking for $ac_word" >&5
2632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2633if test "${ac_cv_prog_RANLIB+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002635else
2636 if test -n "$RANLIB"; then
2637 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2638else
Peter Åstrande713b142004-11-16 13:29:40 +00002639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640for as_dir in $PATH
2641do
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 break 2
2649 fi
2650done
2651done
2652
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002653fi
2654fi
Peter Åstrande713b142004-11-16 13:29:40 +00002655RANLIB=$ac_cv_prog_RANLIB
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002656if test -n "$RANLIB"; then
Peter Åstrande713b142004-11-16 13:29:40 +00002657 echo "$as_me:$LINENO: result: $RANLIB" >&5
2658echo "${ECHO_T}$RANLIB" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002659else
Peter Åstrande713b142004-11-16 13:29:40 +00002660 echo "$as_me:$LINENO: result: no" >&5
2661echo "${ECHO_T}no" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002662fi
2663
Peter Åstrande713b142004-11-16 13:29:40 +00002664fi
2665if test -z "$ac_cv_prog_RANLIB"; then
2666 ac_ct_RANLIB=$RANLIB
2667 # Extract the first word of "ranlib", so it can be a program name with args.
2668set dummy ranlib; ac_word=$2
2669echo "$as_me:$LINENO: checking for $ac_word" >&5
2670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2671if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002673else
Peter Åstrande713b142004-11-16 13:29:40 +00002674 if test -n "$ac_ct_RANLIB"; then
2675 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2676else
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684 ac_cv_prog_ac_ct_RANLIB="ranlib"
2685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2687 fi
2688done
2689done
2690
2691 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2692fi
2693fi
2694ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2695if test -n "$ac_ct_RANLIB"; then
2696 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2697echo "${ECHO_T}$ac_ct_RANLIB" >&6
2698else
2699 echo "$as_me:$LINENO: result: no" >&5
2700echo "${ECHO_T}no" >&6
2701fi
2702
2703 RANLIB=$ac_ct_RANLIB
2704else
2705 RANLIB="$ac_cv_prog_RANLIB"
2706fi
2707
2708echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2709echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2710set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2711if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2713else
2714 cat >conftest.make <<\_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002715all:
Peter Åstrande713b142004-11-16 13:29:40 +00002716 @echo 'ac_maketemp="$(MAKE)"'
2717_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002718# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Peter Åstrande713b142004-11-16 13:29:40 +00002719eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002720if test -n "$ac_maketemp"; then
2721 eval ac_cv_prog_make_${ac_make}_set=yes
2722else
2723 eval ac_cv_prog_make_${ac_make}_set=no
2724fi
Peter Åstrande713b142004-11-16 13:29:40 +00002725rm -f conftest.make
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002726fi
2727if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Peter Åstrande713b142004-11-16 13:29:40 +00002728 echo "$as_me:$LINENO: result: yes" >&5
2729echo "${ECHO_T}yes" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002730 SET_MAKE=
2731else
Peter Åstrande713b142004-11-16 13:29:40 +00002732 echo "$as_me:$LINENO: result: no" >&5
2733echo "${ECHO_T}no" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002734 SET_MAKE="MAKE=${MAKE-make}"
2735fi
2736
Peter Åstrande713b142004-11-16 13:29:40 +00002737ac_ext=cc
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002738ac_cpp='$CXXCPP $CPPFLAGS'
Peter Åstrande713b142004-11-16 13:29:40 +00002739ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2740ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2741ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002742
2743
2744case "`(uname -sr) 2>/dev/null`" in
2745"SunOS 5"*)
2746 SOLARIS=yes
2747 USE_MITSHM=yes
2748 ;;
2749"Linux"*)
2750 LINUX=yes
2751 USE_MITSHM=yes
2752 ;;
2753esac
2754
2755if test "$USE_MITSHM" = yes; then
2756 MITSHM_CPPFLAGS="-DMITSHM"
2757fi
2758
2759
2760if test "$GCC" = yes; then
2761 CFLAGS="$CFLAGS -Wall"
2762 if test "$SOLARIS" = yes; then
2763 CFLAGS="$CFLAGS -Wno-unknown-pragmas -Wno-implicit-int"
2764 fi
2765fi
2766if test "$GXX" = yes; then
2767 CXXFLAGS="$CXXFLAGS -Wall"
2768 if test "$SOLARIS" = yes; then
2769 CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas -Wno-implicit-int -fpermissive"
2770 fi
2771fi
2772
Peter Åstrande713b142004-11-16 13:29:40 +00002773
2774ac_ext=cc
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002775ac_cpp='$CXXCPP $CPPFLAGS'
Peter Åstrande713b142004-11-16 13:29:40 +00002776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2779echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2780echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2781if test -z "$CXXCPP"; then
2782 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2784else
2785 # Double quotes because CXXCPP needs to be expanded
2786 for CXXCPP in "$CXX -E" "/lib/cpp"
2787 do
2788 ac_preproc_ok=false
2789for ac_cxx_preproc_warn_flag in '' yes
2790do
2791 # Use a header file that comes with gcc, so configuring glibc
2792 # with a fresh cross-compiler works.
2793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2794 # <limits.h> exists even on freestanding compilers.
2795 # On the NeXT, cc -E runs the code through the compiler's parser,
2796 # not just through cpp. "Syntax error" is here to catch this case.
2797 cat >conftest.$ac_ext <<_ACEOF
2798/* confdefs.h. */
2799_ACEOF
2800cat confdefs.h >>conftest.$ac_ext
2801cat >>conftest.$ac_ext <<_ACEOF
2802/* end confdefs.h. */
2803#ifdef __STDC__
2804# include <limits.h>
2805#else
2806# include <assert.h>
2807#endif
2808 Syntax error
2809_ACEOF
2810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2812 ac_status=$?
2813 grep -v '^ *+' conftest.er1 >conftest.err
2814 rm -f conftest.er1
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } >/dev/null; then
2818 if test -s conftest.err; then
2819 ac_cpp_err=$ac_cxx_preproc_warn_flag
2820 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2821 else
2822 ac_cpp_err=
2823 fi
2824else
2825 ac_cpp_err=yes
2826fi
2827if test -z "$ac_cpp_err"; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002828 :
2829else
Peter Åstrande713b142004-11-16 13:29:40 +00002830 echo "$as_me: failed program was:" >&5
2831sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002832
Peter Åstrande713b142004-11-16 13:29:40 +00002833 # Broken: fails on valid input.
2834continue
2835fi
2836rm -f conftest.err conftest.$ac_ext
2837
2838 # OK, works on sane cases. Now check whether non-existent headers
2839 # can be detected and how.
2840 cat >conftest.$ac_ext <<_ACEOF
2841/* confdefs.h. */
2842_ACEOF
2843cat confdefs.h >>conftest.$ac_ext
2844cat >>conftest.$ac_ext <<_ACEOF
2845/* end confdefs.h. */
2846#include <ac_nonexistent.h>
2847_ACEOF
2848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2850 ac_status=$?
2851 grep -v '^ *+' conftest.er1 >conftest.err
2852 rm -f conftest.er1
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } >/dev/null; then
2856 if test -s conftest.err; then
2857 ac_cpp_err=$ac_cxx_preproc_warn_flag
2858 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2859 else
2860 ac_cpp_err=
2861 fi
2862else
2863 ac_cpp_err=yes
2864fi
2865if test -z "$ac_cpp_err"; then
2866 # Broken: success on invalid input.
2867continue
2868else
2869 echo "$as_me: failed program was:" >&5
2870sed 's/^/| /' conftest.$ac_ext >&5
2871
2872 # Passes both tests.
2873ac_preproc_ok=:
2874break
2875fi
2876rm -f conftest.err conftest.$ac_ext
2877
2878done
2879# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2880rm -f conftest.err conftest.$ac_ext
2881if $ac_preproc_ok; then
2882 break
2883fi
2884
2885 done
2886 ac_cv_prog_CXXCPP=$CXXCPP
2887
2888fi
2889 CXXCPP=$ac_cv_prog_CXXCPP
2890else
2891 ac_cv_prog_CXXCPP=$CXXCPP
2892fi
2893echo "$as_me:$LINENO: result: $CXXCPP" >&5
2894echo "${ECHO_T}$CXXCPP" >&6
2895ac_preproc_ok=false
2896for ac_cxx_preproc_warn_flag in '' yes
2897do
2898 # Use a header file that comes with gcc, so configuring glibc
2899 # with a fresh cross-compiler works.
2900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2901 # <limits.h> exists even on freestanding compilers.
2902 # On the NeXT, cc -E runs the code through the compiler's parser,
2903 # not just through cpp. "Syntax error" is here to catch this case.
2904 cat >conftest.$ac_ext <<_ACEOF
2905/* confdefs.h. */
2906_ACEOF
2907cat confdefs.h >>conftest.$ac_ext
2908cat >>conftest.$ac_ext <<_ACEOF
2909/* end confdefs.h. */
2910#ifdef __STDC__
2911# include <limits.h>
2912#else
2913# include <assert.h>
2914#endif
2915 Syntax error
2916_ACEOF
2917if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2919 ac_status=$?
2920 grep -v '^ *+' conftest.er1 >conftest.err
2921 rm -f conftest.er1
2922 cat conftest.err >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } >/dev/null; then
2925 if test -s conftest.err; then
2926 ac_cpp_err=$ac_cxx_preproc_warn_flag
2927 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2928 else
2929 ac_cpp_err=
2930 fi
2931else
2932 ac_cpp_err=yes
2933fi
2934if test -z "$ac_cpp_err"; then
2935 :
2936else
2937 echo "$as_me: failed program was:" >&5
2938sed 's/^/| /' conftest.$ac_ext >&5
2939
2940 # Broken: fails on valid input.
2941continue
2942fi
2943rm -f conftest.err conftest.$ac_ext
2944
2945 # OK, works on sane cases. Now check whether non-existent headers
2946 # can be detected and how.
2947 cat >conftest.$ac_ext <<_ACEOF
2948/* confdefs.h. */
2949_ACEOF
2950cat confdefs.h >>conftest.$ac_ext
2951cat >>conftest.$ac_ext <<_ACEOF
2952/* end confdefs.h. */
2953#include <ac_nonexistent.h>
2954_ACEOF
2955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2957 ac_status=$?
2958 grep -v '^ *+' conftest.er1 >conftest.err
2959 rm -f conftest.er1
2960 cat conftest.err >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } >/dev/null; then
2963 if test -s conftest.err; then
2964 ac_cpp_err=$ac_cxx_preproc_warn_flag
2965 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2966 else
2967 ac_cpp_err=
2968 fi
2969else
2970 ac_cpp_err=yes
2971fi
2972if test -z "$ac_cpp_err"; then
2973 # Broken: success on invalid input.
2974continue
2975else
2976 echo "$as_me: failed program was:" >&5
2977sed 's/^/| /' conftest.$ac_ext >&5
2978
2979 # Passes both tests.
2980ac_preproc_ok=:
2981break
2982fi
2983rm -f conftest.err conftest.$ac_ext
2984
2985done
2986# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2987rm -f conftest.err conftest.$ac_ext
2988if $ac_preproc_ok; then
2989 :
2990else
2991 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2992See \`config.log' for more details." >&5
2993echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2994See \`config.log' for more details." >&2;}
2995 { (exit 1); exit 1; }; }
2996fi
2997
2998ac_ext=cc
2999ac_cpp='$CXXCPP $CPPFLAGS'
3000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3003
3004
3005echo "$as_me:$LINENO: checking for X" >&5
3006echo $ECHO_N "checking for X... $ECHO_C" >&6
3007
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003008
3009# Check whether --with-x or --without-x was given.
3010if test "${with_x+set}" = set; then
3011 withval="$with_x"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003012
Peter Åstrande713b142004-11-16 13:29:40 +00003013fi;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003014# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3015if test "x$with_x" = xno; then
3016 # The user explicitly disabled X.
3017 have_x=disabled
3018else
3019 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3020 # Both variables are already set.
3021 have_x=yes
3022 else
Peter Åstrande713b142004-11-16 13:29:40 +00003023 if test "${ac_cv_have_x+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003025else
3026 # One or both of the vars are not set, and there is no cached value.
Peter Åstrande713b142004-11-16 13:29:40 +00003027ac_x_includes=no ac_x_libraries=no
3028rm -fr conftest.dir
3029if mkdir conftest.dir; then
3030 cd conftest.dir
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003031 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Peter Åstrande713b142004-11-16 13:29:40 +00003032 cat >Imakefile <<'_ACEOF'
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003033acfindx:
3034 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Peter Åstrande713b142004-11-16 13:29:40 +00003035_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003036 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3037 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3038 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3039 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3040 for ac_extension in a so sl; do
3041 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Peter Åstrande713b142004-11-16 13:29:40 +00003042 test -f $ac_im_libdir/libX11.$ac_extension; then
3043 ac_im_usrlibdir=$ac_im_libdir; break
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003044 fi
3045 done
3046 # Screen out bogus values from the imake configuration. They are
3047 # bogus both because they are the default anyway, and because
3048 # using them would break gcc on systems where it needs fixed includes.
Peter Åstrande713b142004-11-16 13:29:40 +00003049 case $ac_im_incroot in
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003050 /usr/include) ;;
Peter Åstrande713b142004-11-16 13:29:40 +00003051 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003052 esac
Peter Åstrande713b142004-11-16 13:29:40 +00003053 case $ac_im_usrlibdir in
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003054 /usr/lib | /lib) ;;
Peter Åstrande713b142004-11-16 13:29:40 +00003055 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003056 esac
3057 fi
3058 cd ..
Peter Åstrande713b142004-11-16 13:29:40 +00003059 rm -fr conftest.dir
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003060fi
3061
Peter Åstrande713b142004-11-16 13:29:40 +00003062# Standard set of common directories for X headers.
3063# Check X11 before X11Rn because it is often a symlink to the current release.
3064ac_x_header_dirs='
3065/usr/X11/include
3066/usr/X11R6/include
3067/usr/X11R5/include
3068/usr/X11R4/include
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003069
Peter Åstrande713b142004-11-16 13:29:40 +00003070/usr/include/X11
3071/usr/include/X11R6
3072/usr/include/X11R5
3073/usr/include/X11R4
3074
3075/usr/local/X11/include
3076/usr/local/X11R6/include
3077/usr/local/X11R5/include
3078/usr/local/X11R4/include
3079
3080/usr/local/include/X11
3081/usr/local/include/X11R6
3082/usr/local/include/X11R5
3083/usr/local/include/X11R4
3084
3085/usr/X386/include
3086/usr/x386/include
3087/usr/XFree86/include/X11
3088
3089/usr/include
3090/usr/local/include
3091/usr/unsupported/include
3092/usr/athena/include
3093/usr/local/x11r5/include
3094/usr/lpp/Xamples/include
3095
3096/usr/openwin/include
3097/usr/openwin/share/include'
3098
3099if test "$ac_x_includes" = no; then
3100 # Guess where to find include files, by looking for Intrinsic.h.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003101 # First, try using that file with no special directory specified.
Peter Åstrande713b142004-11-16 13:29:40 +00003102 cat >conftest.$ac_ext <<_ACEOF
3103/* confdefs.h. */
3104_ACEOF
3105cat confdefs.h >>conftest.$ac_ext
3106cat >>conftest.$ac_ext <<_ACEOF
3107/* end confdefs.h. */
3108#include <X11/Intrinsic.h>
3109_ACEOF
3110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3112 ac_status=$?
3113 grep -v '^ *+' conftest.er1 >conftest.err
3114 rm -f conftest.er1
3115 cat conftest.err >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } >/dev/null; then
3118 if test -s conftest.err; then
3119 ac_cpp_err=$ac_cxx_preproc_warn_flag
3120 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3121 else
3122 ac_cpp_err=
3123 fi
3124else
3125 ac_cpp_err=yes
3126fi
3127if test -z "$ac_cpp_err"; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003128 # We can compile using X headers with no special include directory.
3129ac_x_includes=
3130else
Peter Åstrande713b142004-11-16 13:29:40 +00003131 echo "$as_me: failed program was:" >&5
3132sed 's/^/| /' conftest.$ac_ext >&5
3133
3134 for ac_dir in $ac_x_header_dirs; do
3135 if test -r "$ac_dir/X11/Intrinsic.h"; then
3136 ac_x_includes=$ac_dir
3137 break
3138 fi
3139done
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003140fi
Peter Åstrande713b142004-11-16 13:29:40 +00003141rm -f conftest.err conftest.$ac_ext
3142fi # $ac_x_includes = no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003143
Peter Åstrande713b142004-11-16 13:29:40 +00003144if test "$ac_x_libraries" = no; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003145 # Check for the libraries.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003146 # See if we find them without any special options.
3147 # Don't add to $LIBS permanently.
Peter Åstrande713b142004-11-16 13:29:40 +00003148 ac_save_LIBS=$LIBS
3149 LIBS="-lXt $LIBS"
3150 cat >conftest.$ac_ext <<_ACEOF
3151/* confdefs.h. */
3152_ACEOF
3153cat confdefs.h >>conftest.$ac_ext
3154cat >>conftest.$ac_ext <<_ACEOF
3155/* end confdefs.h. */
3156#include <X11/Intrinsic.h>
3157int
3158main ()
3159{
3160XtMalloc (0)
3161 ;
3162 return 0;
3163}
3164_ACEOF
3165rm -f conftest.$ac_objext conftest$ac_exeext
3166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3167 (eval $ac_link) 2>conftest.er1
3168 ac_status=$?
3169 grep -v '^ *+' conftest.er1 >conftest.err
3170 rm -f conftest.er1
3171 cat conftest.err >&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } &&
3174 { ac_try='test -z "$ac_cxx_werror_flag"
3175 || test ! -s conftest.err'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 (eval $ac_try) 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; } &&
3181 { ac_try='test -s conftest$ac_exeext'
3182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183 (eval $ac_try) 2>&5
3184 ac_status=$?
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; }; then
3187 LIBS=$ac_save_LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003188# We can link X programs with no special library path.
3189ac_x_libraries=
3190else
Peter Åstrande713b142004-11-16 13:29:40 +00003191 echo "$as_me: failed program was:" >&5
3192sed 's/^/| /' conftest.$ac_ext >&5
3193
3194LIBS=$ac_save_LIBS
3195for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003196do
Peter Åstrande713b142004-11-16 13:29:40 +00003197 # Don't even attempt the hair of trying to link an X program!
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003198 for ac_extension in a so sl; do
Peter Åstrande713b142004-11-16 13:29:40 +00003199 if test -r $ac_dir/libXt.$ac_extension; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003200 ac_x_libraries=$ac_dir
3201 break 2
3202 fi
3203 done
3204done
3205fi
Peter Åstrande713b142004-11-16 13:29:40 +00003206rm -f conftest.err conftest.$ac_objext \
3207 conftest$ac_exeext conftest.$ac_ext
3208fi # $ac_x_libraries = no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003209
Peter Åstrande713b142004-11-16 13:29:40 +00003210if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003211 # Didn't find X anywhere. Cache the known absence of X.
3212 ac_cv_have_x="have_x=no"
3213else
3214 # Record where we found X for the cache.
3215 ac_cv_have_x="have_x=yes \
Peter Åstrande713b142004-11-16 13:29:40 +00003216 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003217fi
3218fi
Peter Åstrande713b142004-11-16 13:29:40 +00003219
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003220 fi
3221 eval "$ac_cv_have_x"
3222fi # $with_x != no
3223
3224if test "$have_x" != yes; then
Peter Åstrande713b142004-11-16 13:29:40 +00003225 echo "$as_me:$LINENO: result: $have_x" >&5
3226echo "${ECHO_T}$have_x" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003227 no_x=yes
3228else
3229 # If each of the values was on the command line, it overrides each guess.
3230 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3231 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3232 # Update the cache value to reflect the command line values.
3233 ac_cv_have_x="have_x=yes \
3234 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Peter Åstrande713b142004-11-16 13:29:40 +00003235 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3236echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003237fi
3238
3239if test "$no_x" = yes; then
3240 # Not all programs may use this symbol, but it does not hurt to define it.
Peter Åstrande713b142004-11-16 13:29:40 +00003241
3242cat >>confdefs.h <<\_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003243#define X_DISPLAY_MISSING 1
Peter Åstrande713b142004-11-16 13:29:40 +00003244_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003245
3246 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3247else
3248 if test -n "$x_includes"; then
3249 X_CFLAGS="$X_CFLAGS -I$x_includes"
3250 fi
3251
3252 # It would also be nice to do this for all -L options, not just this one.
3253 if test -n "$x_libraries"; then
3254 X_LIBS="$X_LIBS -L$x_libraries"
3255 # For Solaris; some versions of Sun CC require a space after -R and
3256 # others require no space. Words are not sufficient . . . .
Peter Åstrande713b142004-11-16 13:29:40 +00003257 case `(uname -sr) 2>/dev/null` in
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003258 "SunOS 5"*)
Peter Åstrande713b142004-11-16 13:29:40 +00003259 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3260echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3261 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3262 cat >conftest.$ac_ext <<_ACEOF
3263/* confdefs.h. */
3264_ACEOF
3265cat confdefs.h >>conftest.$ac_ext
3266cat >>conftest.$ac_ext <<_ACEOF
3267/* end confdefs.h. */
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003268
Peter Åstrande713b142004-11-16 13:29:40 +00003269int
3270main ()
3271{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003272
Peter Åstrande713b142004-11-16 13:29:40 +00003273 ;
3274 return 0;
3275}
3276_ACEOF
3277rm -f conftest.$ac_objext conftest$ac_exeext
3278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3279 (eval $ac_link) 2>conftest.er1
3280 ac_status=$?
3281 grep -v '^ *+' conftest.er1 >conftest.err
3282 rm -f conftest.er1
3283 cat conftest.err >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try='test -z "$ac_cxx_werror_flag"
3287 || test ! -s conftest.err'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 (eval $ac_try) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; } &&
3293 { ac_try='test -s conftest$ac_exeext'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 (eval $ac_try) 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; }; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003299 ac_R_nospace=yes
3300else
Peter Åstrande713b142004-11-16 13:29:40 +00003301 echo "$as_me: failed program was:" >&5
3302sed 's/^/| /' conftest.$ac_ext >&5
3303
3304ac_R_nospace=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003305fi
Peter Åstrande713b142004-11-16 13:29:40 +00003306rm -f conftest.err conftest.$ac_objext \
3307 conftest$ac_exeext conftest.$ac_ext
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003308 if test $ac_R_nospace = yes; then
Peter Åstrande713b142004-11-16 13:29:40 +00003309 echo "$as_me:$LINENO: result: no" >&5
3310echo "${ECHO_T}no" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003311 X_LIBS="$X_LIBS -R$x_libraries"
3312 else
3313 LIBS="$ac_xsave_LIBS -R $x_libraries"
Peter Åstrande713b142004-11-16 13:29:40 +00003314 cat >conftest.$ac_ext <<_ACEOF
3315/* confdefs.h. */
3316_ACEOF
3317cat confdefs.h >>conftest.$ac_ext
3318cat >>conftest.$ac_ext <<_ACEOF
3319/* end confdefs.h. */
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003320
Peter Åstrande713b142004-11-16 13:29:40 +00003321int
3322main ()
3323{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003324
Peter Åstrande713b142004-11-16 13:29:40 +00003325 ;
3326 return 0;
3327}
3328_ACEOF
3329rm -f conftest.$ac_objext conftest$ac_exeext
3330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3331 (eval $ac_link) 2>conftest.er1
3332 ac_status=$?
3333 grep -v '^ *+' conftest.er1 >conftest.err
3334 rm -f conftest.er1
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } &&
3338 { ac_try='test -z "$ac_cxx_werror_flag"
3339 || test ! -s conftest.err'
3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341 (eval $ac_try) 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; } &&
3345 { ac_try='test -s conftest$ac_exeext'
3346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347 (eval $ac_try) 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003351 ac_R_space=yes
3352else
Peter Åstrande713b142004-11-16 13:29:40 +00003353 echo "$as_me: failed program was:" >&5
3354sed 's/^/| /' conftest.$ac_ext >&5
3355
3356ac_R_space=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003357fi
Peter Åstrande713b142004-11-16 13:29:40 +00003358rm -f conftest.err conftest.$ac_objext \
3359 conftest$ac_exeext conftest.$ac_ext
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003360 if test $ac_R_space = yes; then
Peter Åstrande713b142004-11-16 13:29:40 +00003361 echo "$as_me:$LINENO: result: yes" >&5
3362echo "${ECHO_T}yes" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003363 X_LIBS="$X_LIBS -R $x_libraries"
3364 else
Peter Åstrande713b142004-11-16 13:29:40 +00003365 echo "$as_me:$LINENO: result: neither works" >&5
3366echo "${ECHO_T}neither works" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003367 fi
3368 fi
Peter Åstrande713b142004-11-16 13:29:40 +00003369 LIBS=$ac_xsave_LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003370 esac
3371 fi
3372
3373 # Check for system-dependent libraries X programs must link with.
3374 # Do this before checking for the system-independent R6 libraries
3375 # (-lICE), since we may need -lsocket or whatever for X linking.
3376
3377 if test "$ISC" = yes; then
3378 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3379 else
Peter Åstrande713b142004-11-16 13:29:40 +00003380 # Martyn Johnson says this is needed for Ultrix, if the X
3381 # libraries were built with DECnet support. And Karl Berry says
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003382 # the Alpha needs dnet_stub (dnet does not exist).
Peter Åstrande713b142004-11-16 13:29:40 +00003383 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3384 cat >conftest.$ac_ext <<_ACEOF
3385/* confdefs.h. */
3386_ACEOF
3387cat confdefs.h >>conftest.$ac_ext
3388cat >>conftest.$ac_ext <<_ACEOF
3389/* end confdefs.h. */
3390
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003391/* Override any gcc2 internal prototype to avoid an error. */
3392#ifdef __cplusplus
3393extern "C"
3394#endif
3395/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00003396 builtin and then its argument prototype would still apply. */
3397char XOpenDisplay ();
3398int
3399main ()
3400{
3401XOpenDisplay ();
3402 ;
3403 return 0;
3404}
3405_ACEOF
3406rm -f conftest.$ac_objext conftest$ac_exeext
3407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3408 (eval $ac_link) 2>conftest.er1
3409 ac_status=$?
3410 grep -v '^ *+' conftest.er1 >conftest.err
3411 rm -f conftest.er1
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } &&
3415 { ac_try='test -z "$ac_cxx_werror_flag"
3416 || test ! -s conftest.err'
3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418 (eval $ac_try) 2>&5
3419 ac_status=$?
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; } &&
3422 { ac_try='test -s conftest$ac_exeext'
3423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424 (eval $ac_try) 2>&5
3425 ac_status=$?
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; }; then
3428 :
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003429else
Peter Åstrande713b142004-11-16 13:29:40 +00003430 echo "$as_me: failed program was:" >&5
3431sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003432
Peter Åstrande713b142004-11-16 13:29:40 +00003433echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3434echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3435if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437else
3438 ac_check_lib_save_LIBS=$LIBS
3439LIBS="-ldnet $LIBS"
3440cat >conftest.$ac_ext <<_ACEOF
3441/* confdefs.h. */
3442_ACEOF
3443cat confdefs.h >>conftest.$ac_ext
3444cat >>conftest.$ac_ext <<_ACEOF
3445/* end confdefs.h. */
3446
3447/* Override any gcc2 internal prototype to avoid an error. */
3448#ifdef __cplusplus
3449extern "C"
3450#endif
3451/* We use char because int might match the return type of a gcc2
3452 builtin and then its argument prototype would still apply. */
3453char dnet_ntoa ();
3454int
3455main ()
3456{
3457dnet_ntoa ();
3458 ;
3459 return 0;
3460}
3461_ACEOF
3462rm -f conftest.$ac_objext conftest$ac_exeext
3463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3464 (eval $ac_link) 2>conftest.er1
3465 ac_status=$?
3466 grep -v '^ *+' conftest.er1 >conftest.err
3467 rm -f conftest.er1
3468 cat conftest.err >&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); } &&
3471 { ac_try='test -z "$ac_cxx_werror_flag"
3472 || test ! -s conftest.err'
3473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474 (eval $ac_try) 2>&5
3475 ac_status=$?
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }; } &&
3478 { ac_try='test -s conftest$ac_exeext'
3479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480 (eval $ac_try) 2>&5
3481 ac_status=$?
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }; }; then
3484 ac_cv_lib_dnet_dnet_ntoa=yes
3485else
3486 echo "$as_me: failed program was:" >&5
3487sed 's/^/| /' conftest.$ac_ext >&5
3488
3489ac_cv_lib_dnet_dnet_ntoa=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003490fi
Peter Åstrande713b142004-11-16 13:29:40 +00003491rm -f conftest.err conftest.$ac_objext \
3492 conftest$ac_exeext conftest.$ac_ext
3493LIBS=$ac_check_lib_save_LIBS
3494fi
3495echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3496echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3497if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003498 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003499fi
3500
3501 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Peter Åstrande713b142004-11-16 13:29:40 +00003502 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3503echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3504if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003506else
Peter Åstrande713b142004-11-16 13:29:40 +00003507 ac_check_lib_save_LIBS=$LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003508LIBS="-ldnet_stub $LIBS"
Peter Åstrande713b142004-11-16 13:29:40 +00003509cat >conftest.$ac_ext <<_ACEOF
3510/* confdefs.h. */
3511_ACEOF
3512cat confdefs.h >>conftest.$ac_ext
3513cat >>conftest.$ac_ext <<_ACEOF
3514/* end confdefs.h. */
3515
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003516/* Override any gcc2 internal prototype to avoid an error. */
3517#ifdef __cplusplus
3518extern "C"
3519#endif
3520/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00003521 builtin and then its argument prototype would still apply. */
3522char dnet_ntoa ();
3523int
3524main ()
3525{
3526dnet_ntoa ();
3527 ;
3528 return 0;
3529}
3530_ACEOF
3531rm -f conftest.$ac_objext conftest$ac_exeext
3532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3533 (eval $ac_link) 2>conftest.er1
3534 ac_status=$?
3535 grep -v '^ *+' conftest.er1 >conftest.err
3536 rm -f conftest.er1
3537 cat conftest.err >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } &&
3540 { ac_try='test -z "$ac_cxx_werror_flag"
3541 || test ! -s conftest.err'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 (eval $ac_try) 2>&5
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; } &&
3547 { ac_try='test -s conftest$ac_exeext'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 (eval $ac_try) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3553 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003554else
Peter Åstrande713b142004-11-16 13:29:40 +00003555 echo "$as_me: failed program was:" >&5
3556sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003557
Peter Åstrande713b142004-11-16 13:29:40 +00003558ac_cv_lib_dnet_stub_dnet_ntoa=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003559fi
Peter Åstrande713b142004-11-16 13:29:40 +00003560rm -f conftest.err conftest.$ac_objext \
3561 conftest$ac_exeext conftest.$ac_ext
3562LIBS=$ac_check_lib_save_LIBS
3563fi
3564echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3565echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3566if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003567 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003568fi
3569
3570 fi
Peter Åstrande713b142004-11-16 13:29:40 +00003571fi
3572rm -f conftest.err conftest.$ac_objext \
3573 conftest$ac_exeext conftest.$ac_ext
3574 LIBS="$ac_xsave_LIBS"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003575
3576 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3577 # to get the SysV transport functions.
Peter Åstrande713b142004-11-16 13:29:40 +00003578 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003579 # needs -lnsl.
3580 # The nsl library prevents programs from opening the X display
Peter Åstrande713b142004-11-16 13:29:40 +00003581 # on Irix 5.2, according to T.E. Dickey.
3582 # The functions gethostbyname, getservbyname, and inet_addr are
3583 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3584 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3585echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3586if test "${ac_cv_func_gethostbyname+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003588else
Peter Åstrande713b142004-11-16 13:29:40 +00003589 cat >conftest.$ac_ext <<_ACEOF
3590/* confdefs.h. */
3591_ACEOF
3592cat confdefs.h >>conftest.$ac_ext
3593cat >>conftest.$ac_ext <<_ACEOF
3594/* end confdefs.h. */
3595/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3597#define gethostbyname innocuous_gethostbyname
3598
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003599/* System header to define __stub macros and hopefully few prototypes,
Peter Åstrande713b142004-11-16 13:29:40 +00003600 which can conflict with char gethostbyname (); below.
3601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3602 <limits.h> exists even on freestanding compilers. */
3603
3604#ifdef __STDC__
3605# include <limits.h>
3606#else
3607# include <assert.h>
3608#endif
3609
3610#undef gethostbyname
3611
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003612/* Override any gcc2 internal prototype to avoid an error. */
3613#ifdef __cplusplus
3614extern "C"
Peter Åstrande713b142004-11-16 13:29:40 +00003615{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003616#endif
3617/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00003618 builtin and then its argument prototype would still apply. */
3619char gethostbyname ();
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003620/* The GNU C library defines this for functions which it implements
3621 to always fail with ENOSYS. Some functions are actually named
3622 something starting with __ and the normal name is an alias. */
3623#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3624choke me
3625#else
Peter Åstrande713b142004-11-16 13:29:40 +00003626char (*f) () = gethostbyname;
3627#endif
3628#ifdef __cplusplus
3629}
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003630#endif
3631
Peter Åstrande713b142004-11-16 13:29:40 +00003632int
3633main ()
3634{
3635return f != gethostbyname;
3636 ;
3637 return 0;
3638}
3639_ACEOF
3640rm -f conftest.$ac_objext conftest$ac_exeext
3641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3642 (eval $ac_link) 2>conftest.er1
3643 ac_status=$?
3644 grep -v '^ *+' conftest.er1 >conftest.err
3645 rm -f conftest.er1
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } &&
3649 { ac_try='test -z "$ac_cxx_werror_flag"
3650 || test ! -s conftest.err'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 (eval $ac_try) 2>&5
3653 ac_status=$?
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; } &&
3656 { ac_try='test -s conftest$ac_exeext'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 (eval $ac_try) 2>&5
3659 ac_status=$?
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; }; then
3662 ac_cv_func_gethostbyname=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003663else
Peter Åstrande713b142004-11-16 13:29:40 +00003664 echo "$as_me: failed program was:" >&5
3665sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003666
Peter Åstrande713b142004-11-16 13:29:40 +00003667ac_cv_func_gethostbyname=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003668fi
Peter Åstrande713b142004-11-16 13:29:40 +00003669rm -f conftest.err conftest.$ac_objext \
3670 conftest$ac_exeext conftest.$ac_ext
3671fi
3672echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3673echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003674
3675 if test $ac_cv_func_gethostbyname = no; then
Peter Åstrande713b142004-11-16 13:29:40 +00003676 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3677echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3678if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003680else
Peter Åstrande713b142004-11-16 13:29:40 +00003681 ac_check_lib_save_LIBS=$LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003682LIBS="-lnsl $LIBS"
Peter Åstrande713b142004-11-16 13:29:40 +00003683cat >conftest.$ac_ext <<_ACEOF
3684/* confdefs.h. */
3685_ACEOF
3686cat confdefs.h >>conftest.$ac_ext
3687cat >>conftest.$ac_ext <<_ACEOF
3688/* end confdefs.h. */
3689
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003690/* Override any gcc2 internal prototype to avoid an error. */
3691#ifdef __cplusplus
3692extern "C"
3693#endif
3694/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00003695 builtin and then its argument prototype would still apply. */
3696char gethostbyname ();
3697int
3698main ()
3699{
3700gethostbyname ();
3701 ;
3702 return 0;
3703}
3704_ACEOF
3705rm -f conftest.$ac_objext conftest$ac_exeext
3706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3707 (eval $ac_link) 2>conftest.er1
3708 ac_status=$?
3709 grep -v '^ *+' conftest.er1 >conftest.err
3710 rm -f conftest.er1
3711 cat conftest.err >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
3714 { ac_try='test -z "$ac_cxx_werror_flag"
3715 || test ! -s conftest.err'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 (eval $ac_try) 2>&5
3718 ac_status=$?
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; } &&
3721 { ac_try='test -s conftest$ac_exeext'
3722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 (eval $ac_try) 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; }; then
3727 ac_cv_lib_nsl_gethostbyname=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003728else
Peter Åstrande713b142004-11-16 13:29:40 +00003729 echo "$as_me: failed program was:" >&5
3730sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003731
Peter Åstrande713b142004-11-16 13:29:40 +00003732ac_cv_lib_nsl_gethostbyname=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003733fi
Peter Åstrande713b142004-11-16 13:29:40 +00003734rm -f conftest.err conftest.$ac_objext \
3735 conftest$ac_exeext conftest.$ac_ext
3736LIBS=$ac_check_lib_save_LIBS
3737fi
3738echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3739echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3740if test $ac_cv_lib_nsl_gethostbyname = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003741 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003742fi
3743
Peter Åstrande713b142004-11-16 13:29:40 +00003744 if test $ac_cv_lib_nsl_gethostbyname = no; then
3745 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3746echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3747if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749else
3750 ac_check_lib_save_LIBS=$LIBS
3751LIBS="-lbsd $LIBS"
3752cat >conftest.$ac_ext <<_ACEOF
3753/* confdefs.h. */
3754_ACEOF
3755cat confdefs.h >>conftest.$ac_ext
3756cat >>conftest.$ac_ext <<_ACEOF
3757/* end confdefs.h. */
3758
3759/* Override any gcc2 internal prototype to avoid an error. */
3760#ifdef __cplusplus
3761extern "C"
3762#endif
3763/* We use char because int might match the return type of a gcc2
3764 builtin and then its argument prototype would still apply. */
3765char gethostbyname ();
3766int
3767main ()
3768{
3769gethostbyname ();
3770 ;
3771 return 0;
3772}
3773_ACEOF
3774rm -f conftest.$ac_objext conftest$ac_exeext
3775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3776 (eval $ac_link) 2>conftest.er1
3777 ac_status=$?
3778 grep -v '^ *+' conftest.er1 >conftest.err
3779 rm -f conftest.er1
3780 cat conftest.err >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } &&
3783 { ac_try='test -z "$ac_cxx_werror_flag"
3784 || test ! -s conftest.err'
3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 (eval $ac_try) 2>&5
3787 ac_status=$?
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; } &&
3790 { ac_try='test -s conftest$ac_exeext'
3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792 (eval $ac_try) 2>&5
3793 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; }; then
3796 ac_cv_lib_bsd_gethostbyname=yes
3797else
3798 echo "$as_me: failed program was:" >&5
3799sed 's/^/| /' conftest.$ac_ext >&5
3800
3801ac_cv_lib_bsd_gethostbyname=no
3802fi
3803rm -f conftest.err conftest.$ac_objext \
3804 conftest$ac_exeext conftest.$ac_ext
3805LIBS=$ac_check_lib_save_LIBS
3806fi
3807echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3808echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3809if test $ac_cv_lib_bsd_gethostbyname = yes; then
3810 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3811fi
3812
3813 fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003814 fi
3815
3816 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3817 # socket/setsockopt and other routines are undefined under SCO ODT
3818 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Peter Åstrande713b142004-11-16 13:29:40 +00003819 # on later versions), says Simon Leinen: it contains gethostby*
3820 # variants that don't use the name server (or something). -lsocket
3821 # must be given before -lnsl if both are needed. We assume that
3822 # if connect needs -lnsl, so does gethostbyname.
3823 echo "$as_me:$LINENO: checking for connect" >&5
3824echo $ECHO_N "checking for connect... $ECHO_C" >&6
3825if test "${ac_cv_func_connect+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003827else
Peter Åstrande713b142004-11-16 13:29:40 +00003828 cat >conftest.$ac_ext <<_ACEOF
3829/* confdefs.h. */
3830_ACEOF
3831cat confdefs.h >>conftest.$ac_ext
3832cat >>conftest.$ac_ext <<_ACEOF
3833/* end confdefs.h. */
3834/* Define connect to an innocuous variant, in case <limits.h> declares connect.
3835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3836#define connect innocuous_connect
3837
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003838/* System header to define __stub macros and hopefully few prototypes,
Peter Åstrande713b142004-11-16 13:29:40 +00003839 which can conflict with char connect (); below.
3840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3841 <limits.h> exists even on freestanding compilers. */
3842
3843#ifdef __STDC__
3844# include <limits.h>
3845#else
3846# include <assert.h>
3847#endif
3848
3849#undef connect
3850
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003851/* Override any gcc2 internal prototype to avoid an error. */
3852#ifdef __cplusplus
3853extern "C"
Peter Åstrande713b142004-11-16 13:29:40 +00003854{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003855#endif
3856/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00003857 builtin and then its argument prototype would still apply. */
3858char connect ();
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003859/* The GNU C library defines this for functions which it implements
3860 to always fail with ENOSYS. Some functions are actually named
3861 something starting with __ and the normal name is an alias. */
3862#if defined (__stub_connect) || defined (__stub___connect)
3863choke me
3864#else
Peter Åstrande713b142004-11-16 13:29:40 +00003865char (*f) () = connect;
3866#endif
3867#ifdef __cplusplus
3868}
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003869#endif
3870
Peter Åstrande713b142004-11-16 13:29:40 +00003871int
3872main ()
3873{
3874return f != connect;
3875 ;
3876 return 0;
3877}
3878_ACEOF
3879rm -f conftest.$ac_objext conftest$ac_exeext
3880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3881 (eval $ac_link) 2>conftest.er1
3882 ac_status=$?
3883 grep -v '^ *+' conftest.er1 >conftest.err
3884 rm -f conftest.er1
3885 cat conftest.err >&5
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); } &&
3888 { ac_try='test -z "$ac_cxx_werror_flag"
3889 || test ! -s conftest.err'
3890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3891 (eval $ac_try) 2>&5
3892 ac_status=$?
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); }; } &&
3895 { ac_try='test -s conftest$ac_exeext'
3896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3897 (eval $ac_try) 2>&5
3898 ac_status=$?
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); }; }; then
3901 ac_cv_func_connect=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003902else
Peter Åstrande713b142004-11-16 13:29:40 +00003903 echo "$as_me: failed program was:" >&5
3904sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003905
Peter Åstrande713b142004-11-16 13:29:40 +00003906ac_cv_func_connect=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003907fi
Peter Åstrande713b142004-11-16 13:29:40 +00003908rm -f conftest.err conftest.$ac_objext \
3909 conftest$ac_exeext conftest.$ac_ext
3910fi
3911echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3912echo "${ECHO_T}$ac_cv_func_connect" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003913
3914 if test $ac_cv_func_connect = no; then
Peter Åstrande713b142004-11-16 13:29:40 +00003915 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3916echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3917if test "${ac_cv_lib_socket_connect+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003919else
Peter Åstrande713b142004-11-16 13:29:40 +00003920 ac_check_lib_save_LIBS=$LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003921LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Peter Åstrande713b142004-11-16 13:29:40 +00003922cat >conftest.$ac_ext <<_ACEOF
3923/* confdefs.h. */
3924_ACEOF
3925cat confdefs.h >>conftest.$ac_ext
3926cat >>conftest.$ac_ext <<_ACEOF
3927/* end confdefs.h. */
3928
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003929/* Override any gcc2 internal prototype to avoid an error. */
3930#ifdef __cplusplus
3931extern "C"
3932#endif
3933/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00003934 builtin and then its argument prototype would still apply. */
3935char connect ();
3936int
3937main ()
3938{
3939connect ();
3940 ;
3941 return 0;
3942}
3943_ACEOF
3944rm -f conftest.$ac_objext conftest$ac_exeext
3945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3946 (eval $ac_link) 2>conftest.er1
3947 ac_status=$?
3948 grep -v '^ *+' conftest.er1 >conftest.err
3949 rm -f conftest.er1
3950 cat conftest.err >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); } &&
3953 { ac_try='test -z "$ac_cxx_werror_flag"
3954 || test ! -s conftest.err'
3955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956 (eval $ac_try) 2>&5
3957 ac_status=$?
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); }; } &&
3960 { ac_try='test -s conftest$ac_exeext'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 (eval $ac_try) 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; }; then
3966 ac_cv_lib_socket_connect=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003967else
Peter Åstrande713b142004-11-16 13:29:40 +00003968 echo "$as_me: failed program was:" >&5
3969sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003970
Peter Åstrande713b142004-11-16 13:29:40 +00003971ac_cv_lib_socket_connect=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003972fi
Peter Åstrande713b142004-11-16 13:29:40 +00003973rm -f conftest.err conftest.$ac_objext \
3974 conftest$ac_exeext conftest.$ac_ext
3975LIBS=$ac_check_lib_save_LIBS
3976fi
3977echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3978echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3979if test $ac_cv_lib_socket_connect = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003980 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003981fi
3982
3983 fi
3984
Peter Åstrande713b142004-11-16 13:29:40 +00003985 # Guillermo Gomez says -lposix is necessary on A/UX.
3986 echo "$as_me:$LINENO: checking for remove" >&5
3987echo $ECHO_N "checking for remove... $ECHO_C" >&6
3988if test "${ac_cv_func_remove+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003990else
Peter Åstrande713b142004-11-16 13:29:40 +00003991 cat >conftest.$ac_ext <<_ACEOF
3992/* confdefs.h. */
3993_ACEOF
3994cat confdefs.h >>conftest.$ac_ext
3995cat >>conftest.$ac_ext <<_ACEOF
3996/* end confdefs.h. */
3997/* Define remove to an innocuous variant, in case <limits.h> declares remove.
3998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3999#define remove innocuous_remove
4000
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004001/* System header to define __stub macros and hopefully few prototypes,
Peter Åstrande713b142004-11-16 13:29:40 +00004002 which can conflict with char remove (); below.
4003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4004 <limits.h> exists even on freestanding compilers. */
4005
4006#ifdef __STDC__
4007# include <limits.h>
4008#else
4009# include <assert.h>
4010#endif
4011
4012#undef remove
4013
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004014/* Override any gcc2 internal prototype to avoid an error. */
4015#ifdef __cplusplus
4016extern "C"
Peter Åstrande713b142004-11-16 13:29:40 +00004017{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004018#endif
4019/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00004020 builtin and then its argument prototype would still apply. */
4021char remove ();
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004022/* The GNU C library defines this for functions which it implements
4023 to always fail with ENOSYS. Some functions are actually named
4024 something starting with __ and the normal name is an alias. */
4025#if defined (__stub_remove) || defined (__stub___remove)
4026choke me
4027#else
Peter Åstrande713b142004-11-16 13:29:40 +00004028char (*f) () = remove;
4029#endif
4030#ifdef __cplusplus
4031}
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004032#endif
4033
Peter Åstrande713b142004-11-16 13:29:40 +00004034int
4035main ()
4036{
4037return f != remove;
4038 ;
4039 return 0;
4040}
4041_ACEOF
4042rm -f conftest.$ac_objext conftest$ac_exeext
4043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4044 (eval $ac_link) 2>conftest.er1
4045 ac_status=$?
4046 grep -v '^ *+' conftest.er1 >conftest.err
4047 rm -f conftest.er1
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } &&
4051 { ac_try='test -z "$ac_cxx_werror_flag"
4052 || test ! -s conftest.err'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 (eval $ac_try) 2>&5
4055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; } &&
4058 { ac_try='test -s conftest$ac_exeext'
4059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4060 (eval $ac_try) 2>&5
4061 ac_status=$?
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; }; then
4064 ac_cv_func_remove=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004065else
Peter Åstrande713b142004-11-16 13:29:40 +00004066 echo "$as_me: failed program was:" >&5
4067sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004068
Peter Åstrande713b142004-11-16 13:29:40 +00004069ac_cv_func_remove=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004070fi
Peter Åstrande713b142004-11-16 13:29:40 +00004071rm -f conftest.err conftest.$ac_objext \
4072 conftest$ac_exeext conftest.$ac_ext
4073fi
4074echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4075echo "${ECHO_T}$ac_cv_func_remove" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004076
4077 if test $ac_cv_func_remove = no; then
Peter Åstrande713b142004-11-16 13:29:40 +00004078 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4079echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4080if test "${ac_cv_lib_posix_remove+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004082else
Peter Åstrande713b142004-11-16 13:29:40 +00004083 ac_check_lib_save_LIBS=$LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004084LIBS="-lposix $LIBS"
Peter Åstrande713b142004-11-16 13:29:40 +00004085cat >conftest.$ac_ext <<_ACEOF
4086/* confdefs.h. */
4087_ACEOF
4088cat confdefs.h >>conftest.$ac_ext
4089cat >>conftest.$ac_ext <<_ACEOF
4090/* end confdefs.h. */
4091
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004092/* Override any gcc2 internal prototype to avoid an error. */
4093#ifdef __cplusplus
4094extern "C"
4095#endif
4096/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00004097 builtin and then its argument prototype would still apply. */
4098char remove ();
4099int
4100main ()
4101{
4102remove ();
4103 ;
4104 return 0;
4105}
4106_ACEOF
4107rm -f conftest.$ac_objext conftest$ac_exeext
4108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4109 (eval $ac_link) 2>conftest.er1
4110 ac_status=$?
4111 grep -v '^ *+' conftest.er1 >conftest.err
4112 rm -f conftest.er1
4113 cat conftest.err >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } &&
4116 { ac_try='test -z "$ac_cxx_werror_flag"
4117 || test ! -s conftest.err'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 (eval $ac_try) 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; } &&
4123 { ac_try='test -s conftest$ac_exeext'
4124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125 (eval $ac_try) 2>&5
4126 ac_status=$?
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4129 ac_cv_lib_posix_remove=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004130else
Peter Åstrande713b142004-11-16 13:29:40 +00004131 echo "$as_me: failed program was:" >&5
4132sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004133
Peter Åstrande713b142004-11-16 13:29:40 +00004134ac_cv_lib_posix_remove=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004135fi
Peter Åstrande713b142004-11-16 13:29:40 +00004136rm -f conftest.err conftest.$ac_objext \
4137 conftest$ac_exeext conftest.$ac_ext
4138LIBS=$ac_check_lib_save_LIBS
4139fi
4140echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4141echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4142if test $ac_cv_lib_posix_remove = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004143 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004144fi
4145
4146 fi
4147
4148 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Peter Åstrande713b142004-11-16 13:29:40 +00004149 echo "$as_me:$LINENO: checking for shmat" >&5
4150echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4151if test "${ac_cv_func_shmat+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004153else
Peter Åstrande713b142004-11-16 13:29:40 +00004154 cat >conftest.$ac_ext <<_ACEOF
4155/* confdefs.h. */
4156_ACEOF
4157cat confdefs.h >>conftest.$ac_ext
4158cat >>conftest.$ac_ext <<_ACEOF
4159/* end confdefs.h. */
4160/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4162#define shmat innocuous_shmat
4163
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004164/* System header to define __stub macros and hopefully few prototypes,
Peter Åstrande713b142004-11-16 13:29:40 +00004165 which can conflict with char shmat (); below.
4166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4167 <limits.h> exists even on freestanding compilers. */
4168
4169#ifdef __STDC__
4170# include <limits.h>
4171#else
4172# include <assert.h>
4173#endif
4174
4175#undef shmat
4176
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004177/* Override any gcc2 internal prototype to avoid an error. */
4178#ifdef __cplusplus
4179extern "C"
Peter Åstrande713b142004-11-16 13:29:40 +00004180{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004181#endif
4182/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00004183 builtin and then its argument prototype would still apply. */
4184char shmat ();
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004185/* The GNU C library defines this for functions which it implements
4186 to always fail with ENOSYS. Some functions are actually named
4187 something starting with __ and the normal name is an alias. */
4188#if defined (__stub_shmat) || defined (__stub___shmat)
4189choke me
4190#else
Peter Åstrande713b142004-11-16 13:29:40 +00004191char (*f) () = shmat;
4192#endif
4193#ifdef __cplusplus
4194}
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004195#endif
4196
Peter Åstrande713b142004-11-16 13:29:40 +00004197int
4198main ()
4199{
4200return f != shmat;
4201 ;
4202 return 0;
4203}
4204_ACEOF
4205rm -f conftest.$ac_objext conftest$ac_exeext
4206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4207 (eval $ac_link) 2>conftest.er1
4208 ac_status=$?
4209 grep -v '^ *+' conftest.er1 >conftest.err
4210 rm -f conftest.er1
4211 cat conftest.err >&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } &&
4214 { ac_try='test -z "$ac_cxx_werror_flag"
4215 || test ! -s conftest.err'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 (eval $ac_try) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; } &&
4221 { ac_try='test -s conftest$ac_exeext'
4222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4223 (eval $ac_try) 2>&5
4224 ac_status=$?
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }; }; then
4227 ac_cv_func_shmat=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004228else
Peter Åstrande713b142004-11-16 13:29:40 +00004229 echo "$as_me: failed program was:" >&5
4230sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004231
Peter Åstrande713b142004-11-16 13:29:40 +00004232ac_cv_func_shmat=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004233fi
Peter Åstrande713b142004-11-16 13:29:40 +00004234rm -f conftest.err conftest.$ac_objext \
4235 conftest$ac_exeext conftest.$ac_ext
4236fi
4237echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4238echo "${ECHO_T}$ac_cv_func_shmat" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004239
4240 if test $ac_cv_func_shmat = no; then
Peter Åstrande713b142004-11-16 13:29:40 +00004241 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4242echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4243if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004245else
Peter Åstrande713b142004-11-16 13:29:40 +00004246 ac_check_lib_save_LIBS=$LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004247LIBS="-lipc $LIBS"
Peter Åstrande713b142004-11-16 13:29:40 +00004248cat >conftest.$ac_ext <<_ACEOF
4249/* confdefs.h. */
4250_ACEOF
4251cat confdefs.h >>conftest.$ac_ext
4252cat >>conftest.$ac_ext <<_ACEOF
4253/* end confdefs.h. */
4254
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004255/* Override any gcc2 internal prototype to avoid an error. */
4256#ifdef __cplusplus
4257extern "C"
4258#endif
4259/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00004260 builtin and then its argument prototype would still apply. */
4261char shmat ();
4262int
4263main ()
4264{
4265shmat ();
4266 ;
4267 return 0;
4268}
4269_ACEOF
4270rm -f conftest.$ac_objext conftest$ac_exeext
4271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4272 (eval $ac_link) 2>conftest.er1
4273 ac_status=$?
4274 grep -v '^ *+' conftest.er1 >conftest.err
4275 rm -f conftest.er1
4276 cat conftest.err >&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } &&
4279 { ac_try='test -z "$ac_cxx_werror_flag"
4280 || test ! -s conftest.err'
4281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 (eval $ac_try) 2>&5
4283 ac_status=$?
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; } &&
4286 { ac_try='test -s conftest$ac_exeext'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 (eval $ac_try) 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4292 ac_cv_lib_ipc_shmat=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004293else
Peter Åstrande713b142004-11-16 13:29:40 +00004294 echo "$as_me: failed program was:" >&5
4295sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004296
Peter Åstrande713b142004-11-16 13:29:40 +00004297ac_cv_lib_ipc_shmat=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004298fi
Peter Åstrande713b142004-11-16 13:29:40 +00004299rm -f conftest.err conftest.$ac_objext \
4300 conftest$ac_exeext conftest.$ac_ext
4301LIBS=$ac_check_lib_save_LIBS
4302fi
4303echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4304echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4305if test $ac_cv_lib_ipc_shmat = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004306 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004307fi
4308
4309 fi
4310 fi
4311
4312 # Check for libraries that X11R6 Xt/Xaw programs need.
Peter Åstrande713b142004-11-16 13:29:40 +00004313 ac_save_LDFLAGS=$LDFLAGS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004314 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4315 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4316 # check for ICE first), but we must link in the order -lSM -lICE or
4317 # we get undefined symbols. So assume we have SM if we have ICE.
4318 # These have to be linked with before -lX11, unlike the other
4319 # libraries we check for below, so use a different variable.
Peter Åstrande713b142004-11-16 13:29:40 +00004320 # John Interrante, Karl Berry
4321 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4322echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4323if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004325else
Peter Åstrande713b142004-11-16 13:29:40 +00004326 ac_check_lib_save_LIBS=$LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004327LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Peter Åstrande713b142004-11-16 13:29:40 +00004328cat >conftest.$ac_ext <<_ACEOF
4329/* confdefs.h. */
4330_ACEOF
4331cat confdefs.h >>conftest.$ac_ext
4332cat >>conftest.$ac_ext <<_ACEOF
4333/* end confdefs.h. */
4334
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004335/* Override any gcc2 internal prototype to avoid an error. */
4336#ifdef __cplusplus
4337extern "C"
4338#endif
4339/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00004340 builtin and then its argument prototype would still apply. */
4341char IceConnectionNumber ();
4342int
4343main ()
4344{
4345IceConnectionNumber ();
4346 ;
4347 return 0;
4348}
4349_ACEOF
4350rm -f conftest.$ac_objext conftest$ac_exeext
4351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4352 (eval $ac_link) 2>conftest.er1
4353 ac_status=$?
4354 grep -v '^ *+' conftest.er1 >conftest.err
4355 rm -f conftest.er1
4356 cat conftest.err >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } &&
4359 { ac_try='test -z "$ac_cxx_werror_flag"
4360 || test ! -s conftest.err'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 (eval $ac_try) 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; } &&
4366 { ac_try='test -s conftest$ac_exeext'
4367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368 (eval $ac_try) 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; }; then
4372 ac_cv_lib_ICE_IceConnectionNumber=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004373else
Peter Åstrande713b142004-11-16 13:29:40 +00004374 echo "$as_me: failed program was:" >&5
4375sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004376
Peter Åstrande713b142004-11-16 13:29:40 +00004377ac_cv_lib_ICE_IceConnectionNumber=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004378fi
Peter Åstrande713b142004-11-16 13:29:40 +00004379rm -f conftest.err conftest.$ac_objext \
4380 conftest$ac_exeext conftest.$ac_ext
4381LIBS=$ac_check_lib_save_LIBS
4382fi
4383echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4384echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4385if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004386 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004387fi
4388
Peter Åstrande713b142004-11-16 13:29:40 +00004389 LDFLAGS=$ac_save_LDFLAGS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004390
4391fi
4392
4393
Peter Åstrande713b142004-11-16 13:29:40 +00004394
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004395# Check whether --with-installed-zlib or --without-installed-zlib was given.
4396if test "${with_installed_zlib+set}" = set; then
4397 withval="$with_installed_zlib"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004398
Peter Åstrande713b142004-11-16 13:29:40 +00004399fi;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004400
4401if test "$with_installed_zlib" = yes; then
4402 echo "using installed zlib"
4403 ZLIB_LIB=-lz
4404else
4405 ZLIB_DIR=zlib
4406 ZLIB_INCLUDE='-I$(top_srcdir)/zlib'
4407 ZLIB_LIB='$(top_srcdir)/zlib/libz.a'
4408 echo "configuring zlib..."
4409 (cd zlib; ./configure)
4410 echo "...done configuring zlib"
4411fi
4412
4413
4414
4415
4416
Peter Åstrandafa924f2004-11-19 13:30:00 +00004417
4418# Check whether --with-installed-jpeg or --without-installed-jpeg was given.
4419if test "${with_installed_jpeg+set}" = set; then
4420 withval="$with_installed_jpeg"
4421
4422fi;
4423
4424if test "$with_installed_jpeg" = yes; then
4425 echo "using installed jpeg"
4426 JPEG_LIB=-ljpeg
4427else
Peter Åstrand5135eea2005-01-24 13:47:38 +00004428 JPEG_DIR=jpeg/build
Peter Åstrandafa924f2004-11-19 13:30:00 +00004429 JPEG_INCLUDE='-I$(top_srcdir)/jpeg'
4430 JPEG_LIB='$(top_srcdir)/jpeg/libjpeg.a'
4431 echo "configuring jpeg..."
Peter Åstrand5135eea2005-01-24 13:47:38 +00004432 (mkdir jpeg/build; cd jpeg/build; ../configure)
Peter Åstrandafa924f2004-11-19 13:30:00 +00004433 echo "...done configuring jpeg"
4434fi
4435
4436
4437
4438
4439
Peter Åstrande713b142004-11-16 13:29:40 +00004440echo "$as_me:$LINENO: checking for vsnprintf" >&5
4441echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
4442if test "${ac_cv_func_vsnprintf+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004444else
Peter Åstrande713b142004-11-16 13:29:40 +00004445 cat >conftest.$ac_ext <<_ACEOF
4446/* confdefs.h. */
4447_ACEOF
4448cat confdefs.h >>conftest.$ac_ext
4449cat >>conftest.$ac_ext <<_ACEOF
4450/* end confdefs.h. */
4451/* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
4452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4453#define vsnprintf innocuous_vsnprintf
4454
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004455/* System header to define __stub macros and hopefully few prototypes,
Peter Åstrande713b142004-11-16 13:29:40 +00004456 which can conflict with char vsnprintf (); below.
4457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4458 <limits.h> exists even on freestanding compilers. */
4459
4460#ifdef __STDC__
4461# include <limits.h>
4462#else
4463# include <assert.h>
4464#endif
4465
4466#undef vsnprintf
4467
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004468/* Override any gcc2 internal prototype to avoid an error. */
4469#ifdef __cplusplus
4470extern "C"
Peter Åstrande713b142004-11-16 13:29:40 +00004471{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004472#endif
4473/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00004474 builtin and then its argument prototype would still apply. */
4475char vsnprintf ();
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004476/* The GNU C library defines this for functions which it implements
4477 to always fail with ENOSYS. Some functions are actually named
4478 something starting with __ and the normal name is an alias. */
4479#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
4480choke me
4481#else
Peter Åstrande713b142004-11-16 13:29:40 +00004482char (*f) () = vsnprintf;
4483#endif
4484#ifdef __cplusplus
4485}
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004486#endif
4487
Peter Åstrande713b142004-11-16 13:29:40 +00004488int
4489main ()
4490{
4491return f != vsnprintf;
4492 ;
4493 return 0;
4494}
4495_ACEOF
4496rm -f conftest.$ac_objext conftest$ac_exeext
4497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4498 (eval $ac_link) 2>conftest.er1
4499 ac_status=$?
4500 grep -v '^ *+' conftest.er1 >conftest.err
4501 rm -f conftest.er1
4502 cat conftest.err >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } &&
4505 { ac_try='test -z "$ac_cxx_werror_flag"
4506 || test ! -s conftest.err'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 (eval $ac_try) 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; } &&
4512 { ac_try='test -s conftest$ac_exeext'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 (eval $ac_try) 2>&5
4515 ac_status=$?
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4518 ac_cv_func_vsnprintf=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004519else
Peter Åstrande713b142004-11-16 13:29:40 +00004520 echo "$as_me: failed program was:" >&5
4521sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004522
Peter Åstrande713b142004-11-16 13:29:40 +00004523ac_cv_func_vsnprintf=no
4524fi
4525rm -f conftest.err conftest.$ac_objext \
4526 conftest$ac_exeext conftest.$ac_ext
4527fi
4528echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
4529echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
4530if test $ac_cv_func_vsnprintf = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004531 VSNPRINTF_DEFINE='-DHAVE_VSNPRINTF'
4532else
Peter Åstrande713b142004-11-16 13:29:40 +00004533 VSNPRINTF_DEFINE=
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004534fi
4535
4536
4537
Peter Åstrande713b142004-11-16 13:29:40 +00004538echo "$as_me:$LINENO: checking for socklen_t" >&5
4539echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4540cat >conftest.$ac_ext <<_ACEOF
4541/* confdefs.h. */
4542_ACEOF
4543cat confdefs.h >>conftest.$ac_ext
4544cat >>conftest.$ac_ext <<_ACEOF
4545/* end confdefs.h. */
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004546#include <sys/types.h>
4547 #include <sys/socket.h>
Peter Åstrande713b142004-11-16 13:29:40 +00004548int
4549main ()
4550{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004551socklen_t x;
4552accept(0, 0, &x);
Peter Åstrande713b142004-11-16 13:29:40 +00004553 ;
4554 return 0;
4555}
4556_ACEOF
4557rm -f conftest.$ac_objext
4558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559 (eval $ac_compile) 2>conftest.er1
4560 ac_status=$?
4561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } &&
4566 { ac_try='test -z "$ac_cxx_werror_flag"
4567 || test ! -s conftest.err'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 (eval $ac_try) 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; } &&
4573 { ac_try='test -s conftest.$ac_objext'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4579 echo "$as_me:$LINENO: result: yes" >&5
4580echo "${ECHO_T}yes" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004581SOCKLEN_T_DEFINE='-DVNC_SOCKLEN_T=socklen_t'
4582else
Peter Åstrande713b142004-11-16 13:29:40 +00004583 echo "$as_me: failed program was:" >&5
4584sed 's/^/| /' conftest.$ac_ext >&5
4585
4586echo "$as_me:$LINENO: result: using int" >&5
4587echo "${ECHO_T}using int" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004588SOCKLEN_T_DEFINE='-DVNC_SOCKLEN_T=int'
4589fi
Peter Åstrande713b142004-11-16 13:29:40 +00004590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004591
4592
Peter Åstrand5a15f8c2005-01-23 20:44:20 +00004593ac_aux_dir=
4594for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
4595 if test -f $ac_dir/install-sh; then
4596 ac_aux_dir=$ac_dir
4597 ac_install_sh="$ac_aux_dir/install-sh -c"
4598 break
4599 elif test -f $ac_dir/install.sh; then
4600 ac_aux_dir=$ac_dir
4601 ac_install_sh="$ac_aux_dir/install.sh -c"
4602 break
4603 elif test -f $ac_dir/shtool; then
4604 ac_aux_dir=$ac_dir
4605 ac_install_sh="$ac_aux_dir/shtool install -c"
4606 break
4607 fi
4608done
4609if test -z "$ac_aux_dir"; then
4610 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
4611echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
4612 { (exit 1); exit 1; }; }
4613fi
4614ac_config_guess="$SHELL $ac_aux_dir/config.guess"
4615ac_config_sub="$SHELL $ac_aux_dir/config.sub"
4616ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
4617
4618# Find a good install program. We prefer a C program (faster),
4619# so one script is as good as another. But avoid the broken or
4620# incompatible versions:
4621# SysV /etc/install, /usr/sbin/install
4622# SunOS /usr/etc/install
4623# IRIX /sbin/install
4624# AIX /bin/install
4625# AmigaOS /C/install, which installs bootblocks on floppy discs
4626# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4627# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4628# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4629# OS/2's system install, which has a completely different semantic
4630# ./install, which can be erroneously created by make from ./install.sh.
4631echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4632echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4633if test -z "$INSTALL"; then
4634if test "${ac_cv_path_install+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4636else
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638for as_dir in $PATH
4639do
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 # Account for people who put trailing slashes in PATH elements.
4643case $as_dir/ in
4644 ./ | .// | /cC/* | \
4645 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4646 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4647 /usr/ucb/* ) ;;
4648 *)
4649 # OSF1 and SCO ODT 3.0 have their own names for install.
4650 # Don't use installbsd from OSF since it installs stuff as root
4651 # by default.
4652 for ac_prog in ginstall scoinst install; do
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4655 if test $ac_prog = install &&
4656 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4657 # AIX install. It has an incompatible calling convention.
4658 :
4659 elif test $ac_prog = install &&
4660 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4661 # program-specific install script used by HP pwplus--don't use.
4662 :
4663 else
4664 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4665 break 3
4666 fi
4667 fi
4668 done
4669 done
4670 ;;
4671esac
4672done
4673
4674
4675fi
4676 if test "${ac_cv_path_install+set}" = set; then
4677 INSTALL=$ac_cv_path_install
4678 else
4679 # As a last resort, use the slow shell script. We don't cache a
4680 # path for INSTALL within a source directory, because that will
4681 # break other packages using the cache if that directory is
4682 # removed, or if the path is relative.
4683 INSTALL=$ac_install_sh
4684 fi
4685fi
4686echo "$as_me:$LINENO: result: $INSTALL" >&5
4687echo "${ECHO_T}$INSTALL" >&6
4688
4689# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4690# It thinks the first close brace ends the variable substitution.
4691test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4692
4693test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4694
4695test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4696
4697
4698 MKINSTALLDIRS=
4699 if test -n "$ac_aux_dir"; then
4700 case "$ac_aux_dir" in
4701 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4702 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4703 esac
4704 fi
4705 if test -z "$MKINSTALLDIRS"; then
4706 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4707 fi
4708
4709
4710
4711 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4712echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4713 # Check whether --enable-nls or --disable-nls was given.
4714if test "${enable_nls+set}" = set; then
4715 enableval="$enable_nls"
4716 USE_NLS=$enableval
4717else
4718 USE_NLS=yes
4719fi;
4720 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4721echo "${ECHO_T}$USE_NLS" >&6
4722
4723
4724
4725
4726
4727
4728# Prepare PATH_SEPARATOR.
4729# The user is always right.
4730if test "${PATH_SEPARATOR+set}" != set; then
4731 echo "#! /bin/sh" >conf$$.sh
4732 echo "exit 0" >>conf$$.sh
4733 chmod +x conf$$.sh
4734 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4735 PATH_SEPARATOR=';'
4736 else
4737 PATH_SEPARATOR=:
4738 fi
4739 rm -f conf$$.sh
4740fi
4741
4742# Find out how to test for executable files. Don't use a zero-byte file,
4743# as systems may use methods other than mode bits to determine executability.
4744cat >conf$$.file <<_ASEOF
4745#! /bin/sh
4746exit 0
4747_ASEOF
4748chmod +x conf$$.file
4749if test -x conf$$.file >/dev/null 2>&1; then
4750 ac_executable_p="test -x"
4751else
4752 ac_executable_p="test -f"
4753fi
4754rm -f conf$$.file
4755
4756# Extract the first word of "msgfmt", so it can be a program name with args.
4757set dummy msgfmt; ac_word=$2
4758echo "$as_me:$LINENO: checking for $ac_word" >&5
4759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4760if test "${ac_cv_path_MSGFMT+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4762else
4763 case "$MSGFMT" in
4764 [\\/]* | ?:[\\/]*)
4765 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4766 ;;
4767 *)
4768 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4769 for ac_dir in $PATH; do
4770 IFS="$ac_save_IFS"
4771 test -z "$ac_dir" && ac_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4774 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4775 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4776 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4777 break 2
4778 fi
4779 fi
4780 done
4781 done
4782 IFS="$ac_save_IFS"
4783 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4784 ;;
4785esac
4786fi
4787MSGFMT="$ac_cv_path_MSGFMT"
4788if test "$MSGFMT" != ":"; then
4789 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4790echo "${ECHO_T}$MSGFMT" >&6
4791else
4792 echo "$as_me:$LINENO: result: no" >&5
4793echo "${ECHO_T}no" >&6
4794fi
4795
4796 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4797set dummy gmsgfmt; ac_word=$2
4798echo "$as_me:$LINENO: checking for $ac_word" >&5
4799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4800if test "${ac_cv_path_GMSGFMT+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4802else
4803 case $GMSGFMT in
4804 [\\/]* | ?:[\\/]*)
4805 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4806 ;;
4807 *)
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809for as_dir in $PATH
4810do
4811 IFS=$as_save_IFS
4812 test -z "$as_dir" && as_dir=.
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4815 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 break 2
4818 fi
4819done
4820done
4821
4822 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4823 ;;
4824esac
4825fi
4826GMSGFMT=$ac_cv_path_GMSGFMT
4827
4828if test -n "$GMSGFMT"; then
4829 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4830echo "${ECHO_T}$GMSGFMT" >&6
4831else
4832 echo "$as_me:$LINENO: result: no" >&5
4833echo "${ECHO_T}no" >&6
4834fi
4835
4836
4837
4838# Prepare PATH_SEPARATOR.
4839# The user is always right.
4840if test "${PATH_SEPARATOR+set}" != set; then
4841 echo "#! /bin/sh" >conf$$.sh
4842 echo "exit 0" >>conf$$.sh
4843 chmod +x conf$$.sh
4844 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4845 PATH_SEPARATOR=';'
4846 else
4847 PATH_SEPARATOR=:
4848 fi
4849 rm -f conf$$.sh
4850fi
4851
4852# Find out how to test for executable files. Don't use a zero-byte file,
4853# as systems may use methods other than mode bits to determine executability.
4854cat >conf$$.file <<_ASEOF
4855#! /bin/sh
4856exit 0
4857_ASEOF
4858chmod +x conf$$.file
4859if test -x conf$$.file >/dev/null 2>&1; then
4860 ac_executable_p="test -x"
4861else
4862 ac_executable_p="test -f"
4863fi
4864rm -f conf$$.file
4865
4866# Extract the first word of "xgettext", so it can be a program name with args.
4867set dummy xgettext; ac_word=$2
4868echo "$as_me:$LINENO: checking for $ac_word" >&5
4869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4870if test "${ac_cv_path_XGETTEXT+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4872else
4873 case "$XGETTEXT" in
4874 [\\/]* | ?:[\\/]*)
4875 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4876 ;;
4877 *)
4878 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4879 for ac_dir in $PATH; do
4880 IFS="$ac_save_IFS"
4881 test -z "$ac_dir" && ac_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4884 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4885 (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
4886 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4887 break 2
4888 fi
4889 fi
4890 done
4891 done
4892 IFS="$ac_save_IFS"
4893 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4894 ;;
4895esac
4896fi
4897XGETTEXT="$ac_cv_path_XGETTEXT"
4898if test "$XGETTEXT" != ":"; then
4899 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4900echo "${ECHO_T}$XGETTEXT" >&6
4901else
4902 echo "$as_me:$LINENO: result: no" >&5
4903echo "${ECHO_T}no" >&6
4904fi
4905
4906 rm -f messages.po
4907
4908
4909# Prepare PATH_SEPARATOR.
4910# The user is always right.
4911if test "${PATH_SEPARATOR+set}" != set; then
4912 echo "#! /bin/sh" >conf$$.sh
4913 echo "exit 0" >>conf$$.sh
4914 chmod +x conf$$.sh
4915 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4916 PATH_SEPARATOR=';'
4917 else
4918 PATH_SEPARATOR=:
4919 fi
4920 rm -f conf$$.sh
4921fi
4922
4923# Find out how to test for executable files. Don't use a zero-byte file,
4924# as systems may use methods other than mode bits to determine executability.
4925cat >conf$$.file <<_ASEOF
4926#! /bin/sh
4927exit 0
4928_ASEOF
4929chmod +x conf$$.file
4930if test -x conf$$.file >/dev/null 2>&1; then
4931 ac_executable_p="test -x"
4932else
4933 ac_executable_p="test -f"
4934fi
4935rm -f conf$$.file
4936
4937# Extract the first word of "msgmerge", so it can be a program name with args.
4938set dummy msgmerge; ac_word=$2
4939echo "$as_me:$LINENO: checking for $ac_word" >&5
4940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4941if test "${ac_cv_path_MSGMERGE+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4943else
4944 case "$MSGMERGE" in
4945 [\\/]* | ?:[\\/]*)
4946 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4947 ;;
4948 *)
4949 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4950 for ac_dir in $PATH; do
4951 IFS="$ac_save_IFS"
4952 test -z "$ac_dir" && ac_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4955 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4956 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4957 break 2
4958 fi
4959 fi
4960 done
4961 done
4962 IFS="$ac_save_IFS"
4963 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4964 ;;
4965esac
4966fi
4967MSGMERGE="$ac_cv_path_MSGMERGE"
4968if test "$MSGMERGE" != ":"; then
4969 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4970echo "${ECHO_T}$MSGMERGE" >&6
4971else
4972 echo "$as_me:$LINENO: result: no" >&5
4973echo "${ECHO_T}no" >&6
4974fi
4975
4976
4977 if test "$GMSGFMT" != ":"; then
4978 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4979 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4980 : ;
4981 else
4982 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4983 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4984echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
4985 GMSGFMT=":"
4986 fi
4987 fi
4988
4989 if test "$XGETTEXT" != ":"; then
4990 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4991 (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
4992 : ;
4993 else
4994 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4995echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
4996 XGETTEXT=":"
4997 fi
4998 rm -f messages.po
4999 fi
5000
5001 ac_config_commands="$ac_config_commands default-1"
5002
5003
5004# Make sure we can run config.sub.
5005$ac_config_sub sun4 >/dev/null 2>&1 ||
5006 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5007echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5008 { (exit 1); exit 1; }; }
5009
5010echo "$as_me:$LINENO: checking build system type" >&5
5011echo $ECHO_N "checking build system type... $ECHO_C" >&6
5012if test "${ac_cv_build+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5014else
5015 ac_cv_build_alias=$build_alias
5016test -z "$ac_cv_build_alias" &&
5017 ac_cv_build_alias=`$ac_config_guess`
5018test -z "$ac_cv_build_alias" &&
5019 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5020echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5021 { (exit 1); exit 1; }; }
5022ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5023 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5024echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5025 { (exit 1); exit 1; }; }
5026
5027fi
5028echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5029echo "${ECHO_T}$ac_cv_build" >&6
5030build=$ac_cv_build
5031build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5032build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5033build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5034
5035
5036echo "$as_me:$LINENO: checking host system type" >&5
5037echo $ECHO_N "checking host system type... $ECHO_C" >&6
5038if test "${ac_cv_host+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5040else
5041 ac_cv_host_alias=$host_alias
5042test -z "$ac_cv_host_alias" &&
5043 ac_cv_host_alias=$ac_cv_build_alias
5044ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5045 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5046echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5047 { (exit 1); exit 1; }; }
5048
5049fi
5050echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5051echo "${ECHO_T}$ac_cv_host" >&6
5052host=$ac_cv_host
5053host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5054host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5055host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5056
5057
5058
5059 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5060echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
5061if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5063else
5064 ac_check_lib_save_LIBS=$LIBS
5065LIBS="-lcposix $LIBS"
5066cat >conftest.$ac_ext <<_ACEOF
5067/* confdefs.h. */
5068_ACEOF
5069cat confdefs.h >>conftest.$ac_ext
5070cat >>conftest.$ac_ext <<_ACEOF
5071/* end confdefs.h. */
5072
5073/* Override any gcc2 internal prototype to avoid an error. */
5074#ifdef __cplusplus
5075extern "C"
5076#endif
5077/* We use char because int might match the return type of a gcc2
5078 builtin and then its argument prototype would still apply. */
5079char strerror ();
5080int
5081main ()
5082{
5083strerror ();
5084 ;
5085 return 0;
5086}
5087_ACEOF
5088rm -f conftest.$ac_objext conftest$ac_exeext
5089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5090 (eval $ac_link) 2>conftest.er1
5091 ac_status=$?
5092 grep -v '^ *+' conftest.er1 >conftest.err
5093 rm -f conftest.er1
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } &&
5097 { ac_try='test -z "$ac_cxx_werror_flag"
5098 || test ! -s conftest.err'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 (eval $ac_try) 2>&5
5101 ac_status=$?
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; } &&
5104 { ac_try='test -s conftest$ac_exeext'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 (eval $ac_try) 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then
5110 ac_cv_lib_cposix_strerror=yes
5111else
5112 echo "$as_me: failed program was:" >&5
5113sed 's/^/| /' conftest.$ac_ext >&5
5114
5115ac_cv_lib_cposix_strerror=no
5116fi
5117rm -f conftest.err conftest.$ac_objext \
5118 conftest$ac_exeext conftest.$ac_ext
5119LIBS=$ac_check_lib_save_LIBS
5120fi
5121echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5122echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
5123if test $ac_cv_lib_cposix_strerror = yes; then
5124 LIBS="$LIBS -lcposix"
5125fi
5126
5127
5128
5129echo "$as_me:$LINENO: checking for egrep" >&5
5130echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5131if test "${ac_cv_prog_egrep+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5133else
5134 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5135 then ac_cv_prog_egrep='grep -E'
5136 else ac_cv_prog_egrep='egrep'
5137 fi
5138fi
5139echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5140echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5141 EGREP=$ac_cv_prog_egrep
5142
5143
5144echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5145echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5146if test "${ac_cv_header_stdc+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5148else
5149 cat >conftest.$ac_ext <<_ACEOF
5150/* confdefs.h. */
5151_ACEOF
5152cat confdefs.h >>conftest.$ac_ext
5153cat >>conftest.$ac_ext <<_ACEOF
5154/* end confdefs.h. */
5155#include <stdlib.h>
5156#include <stdarg.h>
5157#include <string.h>
5158#include <float.h>
5159
5160int
5161main ()
5162{
5163
5164 ;
5165 return 0;
5166}
5167_ACEOF
5168rm -f conftest.$ac_objext
5169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5170 (eval $ac_compile) 2>conftest.er1
5171 ac_status=$?
5172 grep -v '^ *+' conftest.er1 >conftest.err
5173 rm -f conftest.er1
5174 cat conftest.err >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } &&
5177 { ac_try='test -z "$ac_cxx_werror_flag"
5178 || test ! -s conftest.err'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 (eval $ac_try) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; } &&
5184 { ac_try='test -s conftest.$ac_objext'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 (eval $ac_try) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; }; then
5190 ac_cv_header_stdc=yes
5191else
5192 echo "$as_me: failed program was:" >&5
5193sed 's/^/| /' conftest.$ac_ext >&5
5194
5195ac_cv_header_stdc=no
5196fi
5197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5198
5199if test $ac_cv_header_stdc = yes; then
5200 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5201 cat >conftest.$ac_ext <<_ACEOF
5202/* confdefs.h. */
5203_ACEOF
5204cat confdefs.h >>conftest.$ac_ext
5205cat >>conftest.$ac_ext <<_ACEOF
5206/* end confdefs.h. */
5207#include <string.h>
5208
5209_ACEOF
5210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5211 $EGREP "memchr" >/dev/null 2>&1; then
5212 :
5213else
5214 ac_cv_header_stdc=no
5215fi
5216rm -f conftest*
5217
5218fi
5219
5220if test $ac_cv_header_stdc = yes; then
5221 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5222 cat >conftest.$ac_ext <<_ACEOF
5223/* confdefs.h. */
5224_ACEOF
5225cat confdefs.h >>conftest.$ac_ext
5226cat >>conftest.$ac_ext <<_ACEOF
5227/* end confdefs.h. */
5228#include <stdlib.h>
5229
5230_ACEOF
5231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5232 $EGREP "free" >/dev/null 2>&1; then
5233 :
5234else
5235 ac_cv_header_stdc=no
5236fi
5237rm -f conftest*
5238
5239fi
5240
5241if test $ac_cv_header_stdc = yes; then
5242 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5243 if test "$cross_compiling" = yes; then
5244 :
5245else
5246 cat >conftest.$ac_ext <<_ACEOF
5247/* confdefs.h. */
5248_ACEOF
5249cat confdefs.h >>conftest.$ac_ext
5250cat >>conftest.$ac_ext <<_ACEOF
5251/* end confdefs.h. */
5252#include <ctype.h>
5253#if ((' ' & 0x0FF) == 0x020)
5254# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5255# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5256#else
5257# define ISLOWER(c) \
5258 (('a' <= (c) && (c) <= 'i') \
5259 || ('j' <= (c) && (c) <= 'r') \
5260 || ('s' <= (c) && (c) <= 'z'))
5261# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5262#endif
5263
5264#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5265int
5266main ()
5267{
5268 int i;
5269 for (i = 0; i < 256; i++)
5270 if (XOR (islower (i), ISLOWER (i))
5271 || toupper (i) != TOUPPER (i))
5272 exit(2);
5273 exit (0);
5274}
5275_ACEOF
5276rm -f conftest$ac_exeext
5277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5278 (eval $ac_link) 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 (eval $ac_try) 2>&5
5284 ac_status=$?
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; }; then
5287 :
5288else
5289 echo "$as_me: program exited with status $ac_status" >&5
5290echo "$as_me: failed program was:" >&5
5291sed 's/^/| /' conftest.$ac_ext >&5
5292
5293( exit $ac_status )
5294ac_cv_header_stdc=no
5295fi
5296rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5297fi
5298fi
5299fi
5300echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5301echo "${ECHO_T}$ac_cv_header_stdc" >&6
5302if test $ac_cv_header_stdc = yes; then
5303
5304cat >>confdefs.h <<\_ACEOF
5305#define STDC_HEADERS 1
5306_ACEOF
5307
5308fi
5309
5310echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5311echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5312if test "${ac_cv_c_const+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5314else
5315 cat >conftest.$ac_ext <<_ACEOF
5316/* confdefs.h. */
5317_ACEOF
5318cat confdefs.h >>conftest.$ac_ext
5319cat >>conftest.$ac_ext <<_ACEOF
5320/* end confdefs.h. */
5321
5322int
5323main ()
5324{
5325/* FIXME: Include the comments suggested by Paul. */
5326#ifndef __cplusplus
5327 /* Ultrix mips cc rejects this. */
5328 typedef int charset[2];
5329 const charset x;
5330 /* SunOS 4.1.1 cc rejects this. */
5331 char const *const *ccp;
5332 char **p;
5333 /* NEC SVR4.0.2 mips cc rejects this. */
5334 struct point {int x, y;};
5335 static struct point const zero = {0,0};
5336 /* AIX XL C 1.02.0.0 rejects this.
5337 It does not let you subtract one const X* pointer from another in
5338 an arm of an if-expression whose if-part is not a constant
5339 expression */
5340 const char *g = "string";
5341 ccp = &g + (g ? g-g : 0);
5342 /* HPUX 7.0 cc rejects these. */
5343 ++ccp;
5344 p = (char**) ccp;
5345 ccp = (char const *const *) p;
5346 { /* SCO 3.2v4 cc rejects this. */
5347 char *t;
5348 char const *s = 0 ? (char *) 0 : (char const *) 0;
5349
5350 *t++ = 0;
5351 }
5352 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5353 int x[] = {25, 17};
5354 const int *foo = &x[0];
5355 ++foo;
5356 }
5357 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5358 typedef const int *iptr;
5359 iptr p = 0;
5360 ++p;
5361 }
5362 { /* AIX XL C 1.02.0.0 rejects this saying
5363 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5364 struct s { int j; const int *ap[3]; };
5365 struct s *b; b->j = 5;
5366 }
5367 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5368 const int foo = 10;
5369 }
5370#endif
5371
5372 ;
5373 return 0;
5374}
5375_ACEOF
5376rm -f conftest.$ac_objext
5377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5378 (eval $ac_compile) 2>conftest.er1
5379 ac_status=$?
5380 grep -v '^ *+' conftest.er1 >conftest.err
5381 rm -f conftest.er1
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } &&
5385 { ac_try='test -z "$ac_cxx_werror_flag"
5386 || test ! -s conftest.err'
5387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388 (eval $ac_try) 2>&5
5389 ac_status=$?
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; } &&
5392 { ac_try='test -s conftest.$ac_objext'
5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394 (eval $ac_try) 2>&5
5395 ac_status=$?
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }; }; then
5398 ac_cv_c_const=yes
5399else
5400 echo "$as_me: failed program was:" >&5
5401sed 's/^/| /' conftest.$ac_ext >&5
5402
5403ac_cv_c_const=no
5404fi
5405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5406fi
5407echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5408echo "${ECHO_T}$ac_cv_c_const" >&6
5409if test $ac_cv_c_const = no; then
5410
5411cat >>confdefs.h <<\_ACEOF
5412#define const
5413_ACEOF
5414
5415fi
5416
5417
5418 echo "$as_me:$LINENO: checking for signed" >&5
5419echo $ECHO_N "checking for signed... $ECHO_C" >&6
5420if test "${bh_cv_c_signed+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5422else
5423 cat >conftest.$ac_ext <<_ACEOF
5424/* confdefs.h. */
5425_ACEOF
5426cat confdefs.h >>conftest.$ac_ext
5427cat >>conftest.$ac_ext <<_ACEOF
5428/* end confdefs.h. */
5429
5430int
5431main ()
5432{
5433signed char x;
5434 ;
5435 return 0;
5436}
5437_ACEOF
5438rm -f conftest.$ac_objext
5439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440 (eval $ac_compile) 2>conftest.er1
5441 ac_status=$?
5442 grep -v '^ *+' conftest.er1 >conftest.err
5443 rm -f conftest.er1
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } &&
5447 { ac_try='test -z "$ac_cxx_werror_flag"
5448 || test ! -s conftest.err'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 (eval $ac_try) 2>&5
5451 ac_status=$?
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; } &&
5454 { ac_try='test -s conftest.$ac_objext'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456 (eval $ac_try) 2>&5
5457 ac_status=$?
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; }; then
5460 bh_cv_c_signed=yes
5461else
5462 echo "$as_me: failed program was:" >&5
5463sed 's/^/| /' conftest.$ac_ext >&5
5464
5465bh_cv_c_signed=no
5466fi
5467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5468fi
5469echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5470echo "${ECHO_T}$bh_cv_c_signed" >&6
5471 if test $bh_cv_c_signed = no; then
5472
5473cat >>confdefs.h <<\_ACEOF
5474#define signed
5475_ACEOF
5476
5477 fi
5478
5479echo "$as_me:$LINENO: checking for inline" >&5
5480echo $ECHO_N "checking for inline... $ECHO_C" >&6
5481if test "${ac_cv_c_inline+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5483else
5484 ac_cv_c_inline=no
5485for ac_kw in inline __inline__ __inline; do
5486 cat >conftest.$ac_ext <<_ACEOF
5487/* confdefs.h. */
5488_ACEOF
5489cat confdefs.h >>conftest.$ac_ext
5490cat >>conftest.$ac_ext <<_ACEOF
5491/* end confdefs.h. */
5492#ifndef __cplusplus
5493typedef int foo_t;
5494static $ac_kw foo_t static_foo () {return 0; }
5495$ac_kw foo_t foo () {return 0; }
5496#endif
5497
5498_ACEOF
5499rm -f conftest.$ac_objext
5500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5501 (eval $ac_compile) 2>conftest.er1
5502 ac_status=$?
5503 grep -v '^ *+' conftest.er1 >conftest.err
5504 rm -f conftest.er1
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } &&
5508 { ac_try='test -z "$ac_cxx_werror_flag"
5509 || test ! -s conftest.err'
5510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511 (eval $ac_try) 2>&5
5512 ac_status=$?
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; } &&
5515 { ac_try='test -s conftest.$ac_objext'
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517 (eval $ac_try) 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; }; then
5521 ac_cv_c_inline=$ac_kw; break
5522else
5523 echo "$as_me: failed program was:" >&5
5524sed 's/^/| /' conftest.$ac_ext >&5
5525
5526fi
5527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5528done
5529
5530fi
5531echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5532echo "${ECHO_T}$ac_cv_c_inline" >&6
5533
5534
5535case $ac_cv_c_inline in
5536 inline | yes) ;;
5537 *)
5538 case $ac_cv_c_inline in
5539 no) ac_val=;;
5540 *) ac_val=$ac_cv_c_inline;;
5541 esac
5542 cat >>confdefs.h <<_ACEOF
5543#ifndef __cplusplus
5544#define inline $ac_val
5545#endif
5546_ACEOF
5547 ;;
5548esac
5549
5550# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5561 inttypes.h stdint.h unistd.h
5562do
5563as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5564echo "$as_me:$LINENO: checking for $ac_header" >&5
5565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5566if eval "test \"\${$as_ac_Header+set}\" = set"; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5568else
5569 cat >conftest.$ac_ext <<_ACEOF
5570/* confdefs.h. */
5571_ACEOF
5572cat confdefs.h >>conftest.$ac_ext
5573cat >>conftest.$ac_ext <<_ACEOF
5574/* end confdefs.h. */
5575$ac_includes_default
5576
5577#include <$ac_header>
5578_ACEOF
5579rm -f conftest.$ac_objext
5580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5581 (eval $ac_compile) 2>conftest.er1
5582 ac_status=$?
5583 grep -v '^ *+' conftest.er1 >conftest.err
5584 rm -f conftest.er1
5585 cat conftest.err >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } &&
5588 { ac_try='test -z "$ac_cxx_werror_flag"
5589 || test ! -s conftest.err'
5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 (eval $ac_try) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; } &&
5595 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5601 eval "$as_ac_Header=yes"
5602else
5603 echo "$as_me: failed program was:" >&5
5604sed 's/^/| /' conftest.$ac_ext >&5
5605
5606eval "$as_ac_Header=no"
5607fi
5608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5609fi
5610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5611echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5612if test `eval echo '${'$as_ac_Header'}'` = yes; then
5613 cat >>confdefs.h <<_ACEOF
5614#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5615_ACEOF
5616
5617fi
5618
5619done
5620
5621
5622echo "$as_me:$LINENO: checking for off_t" >&5
5623echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5624if test "${ac_cv_type_off_t+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5626else
5627 cat >conftest.$ac_ext <<_ACEOF
5628/* confdefs.h. */
5629_ACEOF
5630cat confdefs.h >>conftest.$ac_ext
5631cat >>conftest.$ac_ext <<_ACEOF
5632/* end confdefs.h. */
5633$ac_includes_default
5634int
5635main ()
5636{
5637if ((off_t *) 0)
5638 return 0;
5639if (sizeof (off_t))
5640 return 0;
5641 ;
5642 return 0;
5643}
5644_ACEOF
5645rm -f conftest.$ac_objext
5646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5647 (eval $ac_compile) 2>conftest.er1
5648 ac_status=$?
5649 grep -v '^ *+' conftest.er1 >conftest.err
5650 rm -f conftest.er1
5651 cat conftest.err >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); } &&
5654 { ac_try='test -z "$ac_cxx_werror_flag"
5655 || test ! -s conftest.err'
5656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657 (eval $ac_try) 2>&5
5658 ac_status=$?
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; } &&
5661 { ac_try='test -s conftest.$ac_objext'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 (eval $ac_try) 2>&5
5664 ac_status=$?
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; }; then
5667 ac_cv_type_off_t=yes
5668else
5669 echo "$as_me: failed program was:" >&5
5670sed 's/^/| /' conftest.$ac_ext >&5
5671
5672ac_cv_type_off_t=no
5673fi
5674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5675fi
5676echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5677echo "${ECHO_T}$ac_cv_type_off_t" >&6
5678if test $ac_cv_type_off_t = yes; then
5679 :
5680else
5681
5682cat >>confdefs.h <<_ACEOF
5683#define off_t long
5684_ACEOF
5685
5686fi
5687
5688echo "$as_me:$LINENO: checking for size_t" >&5
5689echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5690if test "${ac_cv_type_size_t+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5692else
5693 cat >conftest.$ac_ext <<_ACEOF
5694/* confdefs.h. */
5695_ACEOF
5696cat confdefs.h >>conftest.$ac_ext
5697cat >>conftest.$ac_ext <<_ACEOF
5698/* end confdefs.h. */
5699$ac_includes_default
5700int
5701main ()
5702{
5703if ((size_t *) 0)
5704 return 0;
5705if (sizeof (size_t))
5706 return 0;
5707 ;
5708 return 0;
5709}
5710_ACEOF
5711rm -f conftest.$ac_objext
5712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>conftest.er1
5714 ac_status=$?
5715 grep -v '^ *+' conftest.er1 >conftest.err
5716 rm -f conftest.er1
5717 cat conftest.err >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } &&
5720 { ac_try='test -z "$ac_cxx_werror_flag"
5721 || test ! -s conftest.err'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 (eval $ac_try) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; } &&
5727 { ac_try='test -s conftest.$ac_objext'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 (eval $ac_try) 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5733 ac_cv_type_size_t=yes
5734else
5735 echo "$as_me: failed program was:" >&5
5736sed 's/^/| /' conftest.$ac_ext >&5
5737
5738ac_cv_type_size_t=no
5739fi
5740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5741fi
5742echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5743echo "${ECHO_T}$ac_cv_type_size_t" >&6
5744if test $ac_cv_type_size_t = yes; then
5745 :
5746else
5747
5748cat >>confdefs.h <<_ACEOF
5749#define size_t unsigned
5750_ACEOF
5751
5752fi
5753
5754
5755 echo "$as_me:$LINENO: checking for long long" >&5
5756echo $ECHO_N "checking for long long... $ECHO_C" >&6
5757if test "${ac_cv_type_long_long+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5759else
5760 cat >conftest.$ac_ext <<_ACEOF
5761/* confdefs.h. */
5762_ACEOF
5763cat confdefs.h >>conftest.$ac_ext
5764cat >>conftest.$ac_ext <<_ACEOF
5765/* end confdefs.h. */
5766long long ll = 1LL; int i = 63;
5767int
5768main ()
5769{
5770long long llmax = (long long) -1;
5771 return ll << i | ll >> i | llmax / ll | llmax % ll;
5772 ;
5773 return 0;
5774}
5775_ACEOF
5776rm -f conftest.$ac_objext conftest$ac_exeext
5777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5778 (eval $ac_link) 2>conftest.er1
5779 ac_status=$?
5780 grep -v '^ *+' conftest.er1 >conftest.err
5781 rm -f conftest.er1
5782 cat conftest.err >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try='test -z "$ac_cxx_werror_flag"
5786 || test ! -s conftest.err'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 (eval $ac_try) 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; } &&
5792 { ac_try='test -s conftest$ac_exeext'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
5798 ac_cv_type_long_long=yes
5799else
5800 echo "$as_me: failed program was:" >&5
5801sed 's/^/| /' conftest.$ac_ext >&5
5802
5803ac_cv_type_long_long=no
5804fi
5805rm -f conftest.err conftest.$ac_objext \
5806 conftest$ac_exeext conftest.$ac_ext
5807fi
5808echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5809echo "${ECHO_T}$ac_cv_type_long_long" >&6
5810 if test $ac_cv_type_long_long = yes; then
5811
5812cat >>confdefs.h <<\_ACEOF
5813#define HAVE_LONG_LONG 1
5814_ACEOF
5815
5816 fi
5817
5818
5819 echo "$as_me:$LINENO: checking for long double" >&5
5820echo $ECHO_N "checking for long double... $ECHO_C" >&6
5821if test "${gt_cv_c_long_double+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823else
5824 if test "$GCC" = yes; then
5825 gt_cv_c_long_double=yes
5826 else
5827 cat >conftest.$ac_ext <<_ACEOF
5828/* confdefs.h. */
5829_ACEOF
5830cat confdefs.h >>conftest.$ac_ext
5831cat >>conftest.$ac_ext <<_ACEOF
5832/* end confdefs.h. */
5833
5834 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5835 long double foo = 0.0;
5836 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5837 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5838
5839int
5840main ()
5841{
5842
5843 ;
5844 return 0;
5845}
5846_ACEOF
5847rm -f conftest.$ac_objext
5848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5849 (eval $ac_compile) 2>conftest.er1
5850 ac_status=$?
5851 grep -v '^ *+' conftest.er1 >conftest.err
5852 rm -f conftest.er1
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } &&
5856 { ac_try='test -z "$ac_cxx_werror_flag"
5857 || test ! -s conftest.err'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859 (eval $ac_try) 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; } &&
5863 { ac_try='test -s conftest.$ac_objext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 (eval $ac_try) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 gt_cv_c_long_double=yes
5870else
5871 echo "$as_me: failed program was:" >&5
5872sed 's/^/| /' conftest.$ac_ext >&5
5873
5874gt_cv_c_long_double=no
5875fi
5876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5877 fi
5878fi
5879echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5880echo "${ECHO_T}$gt_cv_c_long_double" >&6
5881 if test $gt_cv_c_long_double = yes; then
5882
5883cat >>confdefs.h <<\_ACEOF
5884#define HAVE_LONG_DOUBLE 1
5885_ACEOF
5886
5887 fi
5888
5889
5890 echo "$as_me:$LINENO: checking for wchar_t" >&5
5891echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
5892if test "${gt_cv_c_wchar_t+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5894else
5895 cat >conftest.$ac_ext <<_ACEOF
5896/* confdefs.h. */
5897_ACEOF
5898cat confdefs.h >>conftest.$ac_ext
5899cat >>conftest.$ac_ext <<_ACEOF
5900/* end confdefs.h. */
5901#include <stddef.h>
5902 wchar_t foo = (wchar_t)'\0';
5903int
5904main ()
5905{
5906
5907 ;
5908 return 0;
5909}
5910_ACEOF
5911rm -f conftest.$ac_objext
5912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5913 (eval $ac_compile) 2>conftest.er1
5914 ac_status=$?
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } &&
5920 { ac_try='test -z "$ac_cxx_werror_flag"
5921 || test ! -s conftest.err'
5922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 (eval $ac_try) 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; } &&
5927 { ac_try='test -s conftest.$ac_objext'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 (eval $ac_try) 2>&5
5930 ac_status=$?
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
5933 gt_cv_c_wchar_t=yes
5934else
5935 echo "$as_me: failed program was:" >&5
5936sed 's/^/| /' conftest.$ac_ext >&5
5937
5938gt_cv_c_wchar_t=no
5939fi
5940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5941fi
5942echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5943echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
5944 if test $gt_cv_c_wchar_t = yes; then
5945
5946cat >>confdefs.h <<\_ACEOF
5947#define HAVE_WCHAR_T 1
5948_ACEOF
5949
5950 fi
5951
5952
5953 echo "$as_me:$LINENO: checking for wint_t" >&5
5954echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
5955if test "${gt_cv_c_wint_t+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957else
5958 cat >conftest.$ac_ext <<_ACEOF
5959/* confdefs.h. */
5960_ACEOF
5961cat confdefs.h >>conftest.$ac_ext
5962cat >>conftest.$ac_ext <<_ACEOF
5963/* end confdefs.h. */
5964#include <wchar.h>
5965 wint_t foo = (wchar_t)'\0';
5966int
5967main ()
5968{
5969
5970 ;
5971 return 0;
5972}
5973_ACEOF
5974rm -f conftest.$ac_objext
5975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976 (eval $ac_compile) 2>conftest.er1
5977 ac_status=$?
5978 grep -v '^ *+' conftest.er1 >conftest.err
5979 rm -f conftest.er1
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -z "$ac_cxx_werror_flag"
5984 || test ! -s conftest.err'
5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986 (eval $ac_try) 2>&5
5987 ac_status=$?
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; } &&
5990 { ac_try='test -s conftest.$ac_objext'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 (eval $ac_try) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; }; then
5996 gt_cv_c_wint_t=yes
5997else
5998 echo "$as_me: failed program was:" >&5
5999sed 's/^/| /' conftest.$ac_ext >&5
6000
6001gt_cv_c_wint_t=no
6002fi
6003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6004fi
6005echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
6006echo "${ECHO_T}$gt_cv_c_wint_t" >&6
6007 if test $gt_cv_c_wint_t = yes; then
6008
6009cat >>confdefs.h <<\_ACEOF
6010#define HAVE_WINT_T 1
6011_ACEOF
6012
6013 fi
6014
6015
6016 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6017echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6018if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020else
6021 cat >conftest.$ac_ext <<_ACEOF
6022/* confdefs.h. */
6023_ACEOF
6024cat confdefs.h >>conftest.$ac_ext
6025cat >>conftest.$ac_ext <<_ACEOF
6026/* end confdefs.h. */
6027#include <sys/types.h>
6028#include <inttypes.h>
6029int
6030main ()
6031{
6032uintmax_t i = (uintmax_t) -1;
6033 ;
6034 return 0;
6035}
6036_ACEOF
6037rm -f conftest.$ac_objext
6038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6039 (eval $ac_compile) 2>conftest.er1
6040 ac_status=$?
6041 grep -v '^ *+' conftest.er1 >conftest.err
6042 rm -f conftest.er1
6043 cat conftest.err >&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); } &&
6046 { ac_try='test -z "$ac_cxx_werror_flag"
6047 || test ! -s conftest.err'
6048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049 (eval $ac_try) 2>&5
6050 ac_status=$?
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); }; } &&
6053 { ac_try='test -s conftest.$ac_objext'
6054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 (eval $ac_try) 2>&5
6056 ac_status=$?
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; }; then
6059 jm_ac_cv_header_inttypes_h=yes
6060else
6061 echo "$as_me: failed program was:" >&5
6062sed 's/^/| /' conftest.$ac_ext >&5
6063
6064jm_ac_cv_header_inttypes_h=no
6065fi
6066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6067fi
6068echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6069echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
6070 if test $jm_ac_cv_header_inttypes_h = yes; then
6071
6072cat >>confdefs.h <<_ACEOF
6073#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6074_ACEOF
6075
6076 fi
6077
6078
6079 echo "$as_me:$LINENO: checking for stdint.h" >&5
6080echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
6081if test "${jm_ac_cv_header_stdint_h+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6083else
6084 cat >conftest.$ac_ext <<_ACEOF
6085/* confdefs.h. */
6086_ACEOF
6087cat confdefs.h >>conftest.$ac_ext
6088cat >>conftest.$ac_ext <<_ACEOF
6089/* end confdefs.h. */
6090#include <sys/types.h>
6091#include <stdint.h>
6092int
6093main ()
6094{
6095uintmax_t i = (uintmax_t) -1;
6096 ;
6097 return 0;
6098}
6099_ACEOF
6100rm -f conftest.$ac_objext
6101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6102 (eval $ac_compile) 2>conftest.er1
6103 ac_status=$?
6104 grep -v '^ *+' conftest.er1 >conftest.err
6105 rm -f conftest.er1
6106 cat conftest.err >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } &&
6109 { ac_try='test -z "$ac_cxx_werror_flag"
6110 || test ! -s conftest.err'
6111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 (eval $ac_try) 2>&5
6113 ac_status=$?
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; } &&
6116 { ac_try='test -s conftest.$ac_objext'
6117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118 (eval $ac_try) 2>&5
6119 ac_status=$?
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); }; }; then
6122 jm_ac_cv_header_stdint_h=yes
6123else
6124 echo "$as_me: failed program was:" >&5
6125sed 's/^/| /' conftest.$ac_ext >&5
6126
6127jm_ac_cv_header_stdint_h=no
6128fi
6129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6130fi
6131echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6132echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
6133 if test $jm_ac_cv_header_stdint_h = yes; then
6134
6135cat >>confdefs.h <<_ACEOF
6136#define HAVE_STDINT_H_WITH_UINTMAX 1
6137_ACEOF
6138
6139 fi
6140
6141
6142
6143
6144 echo "$as_me:$LINENO: checking for intmax_t" >&5
6145echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
6146if test "${gt_cv_c_intmax_t+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6148else
6149 cat >conftest.$ac_ext <<_ACEOF
6150/* confdefs.h. */
6151_ACEOF
6152cat confdefs.h >>conftest.$ac_ext
6153cat >>conftest.$ac_ext <<_ACEOF
6154/* end confdefs.h. */
6155
6156#include <stddef.h>
6157#include <stdlib.h>
6158#if HAVE_STDINT_H_WITH_UINTMAX
6159#include <stdint.h>
6160#endif
6161#if HAVE_INTTYPES_H_WITH_UINTMAX
6162#include <inttypes.h>
6163#endif
6164
6165int
6166main ()
6167{
6168intmax_t x = -1;
6169 ;
6170 return 0;
6171}
6172_ACEOF
6173rm -f conftest.$ac_objext
6174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6175 (eval $ac_compile) 2>conftest.er1
6176 ac_status=$?
6177 grep -v '^ *+' conftest.er1 >conftest.err
6178 rm -f conftest.er1
6179 cat conftest.err >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } &&
6182 { ac_try='test -z "$ac_cxx_werror_flag"
6183 || test ! -s conftest.err'
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 (eval $ac_try) 2>&5
6186 ac_status=$?
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; } &&
6189 { ac_try='test -s conftest.$ac_objext'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 (eval $ac_try) 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; }; then
6195 gt_cv_c_intmax_t=yes
6196else
6197 echo "$as_me: failed program was:" >&5
6198sed 's/^/| /' conftest.$ac_ext >&5
6199
6200gt_cv_c_intmax_t=no
6201fi
6202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6203fi
6204echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
6205echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
6206 if test $gt_cv_c_intmax_t = yes; then
6207
6208cat >>confdefs.h <<\_ACEOF
6209#define HAVE_INTMAX_T 1
6210_ACEOF
6211
6212 fi
6213
6214
6215
6216 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
6217echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
6218if test "${gt_cv_func_printf_posix+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6220else
6221
6222 if test "$cross_compiling" = yes; then
6223
6224 cat >conftest.$ac_ext <<_ACEOF
6225/* confdefs.h. */
6226_ACEOF
6227cat confdefs.h >>conftest.$ac_ext
6228cat >>conftest.$ac_ext <<_ACEOF
6229/* end confdefs.h. */
6230
6231#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6232 notposix
6233#endif
6234
6235_ACEOF
6236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6237 $EGREP "notposix" >/dev/null 2>&1; then
6238 gt_cv_func_printf_posix="guessing no"
6239else
6240 gt_cv_func_printf_posix="guessing yes"
6241fi
6242rm -f conftest*
6243
6244
6245else
6246 cat >conftest.$ac_ext <<_ACEOF
6247/* confdefs.h. */
6248_ACEOF
6249cat confdefs.h >>conftest.$ac_ext
6250cat >>conftest.$ac_ext <<_ACEOF
6251/* end confdefs.h. */
6252
6253#include <stdio.h>
6254#include <string.h>
6255/* The string "%2$d %1$d", with dollar characters protected from the shell's
6256 dollar expansion (possibly an autoconf bug). */
6257static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6258static char buf[100];
6259int main ()
6260{
6261 sprintf (buf, format, 33, 55);
6262 return (strcmp (buf, "55 33") != 0);
6263}
6264_ACEOF
6265rm -f conftest$ac_exeext
6266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6267 (eval $ac_link) 2>&5
6268 ac_status=$?
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 (eval $ac_try) 2>&5
6273 ac_status=$?
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
6276 gt_cv_func_printf_posix=yes
6277else
6278 echo "$as_me: program exited with status $ac_status" >&5
6279echo "$as_me: failed program was:" >&5
6280sed 's/^/| /' conftest.$ac_ext >&5
6281
6282( exit $ac_status )
6283gt_cv_func_printf_posix=no
6284fi
6285rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6286fi
6287
6288fi
6289echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6290echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
6291 case $gt_cv_func_printf_posix in
6292 *yes)
6293
6294cat >>confdefs.h <<\_ACEOF
6295#define HAVE_POSIX_PRINTF 1
6296_ACEOF
6297
6298 ;;
6299 esac
6300
6301# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6302# for constant arguments. Useless!
6303echo "$as_me:$LINENO: checking for working alloca.h" >&5
6304echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6305if test "${ac_cv_working_alloca_h+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6307else
6308 cat >conftest.$ac_ext <<_ACEOF
6309/* confdefs.h. */
6310_ACEOF
6311cat confdefs.h >>conftest.$ac_ext
6312cat >>conftest.$ac_ext <<_ACEOF
6313/* end confdefs.h. */
6314#include <alloca.h>
6315int
6316main ()
6317{
6318char *p = (char *) alloca (2 * sizeof (int));
6319 ;
6320 return 0;
6321}
6322_ACEOF
6323rm -f conftest.$ac_objext conftest$ac_exeext
6324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6325 (eval $ac_link) 2>conftest.er1
6326 ac_status=$?
6327 grep -v '^ *+' conftest.er1 >conftest.err
6328 rm -f conftest.er1
6329 cat conftest.err >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); } &&
6332 { ac_try='test -z "$ac_cxx_werror_flag"
6333 || test ! -s conftest.err'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 (eval $ac_try) 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; } &&
6339 { ac_try='test -s conftest$ac_exeext'
6340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341 (eval $ac_try) 2>&5
6342 ac_status=$?
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }; }; then
6345 ac_cv_working_alloca_h=yes
6346else
6347 echo "$as_me: failed program was:" >&5
6348sed 's/^/| /' conftest.$ac_ext >&5
6349
6350ac_cv_working_alloca_h=no
6351fi
6352rm -f conftest.err conftest.$ac_objext \
6353 conftest$ac_exeext conftest.$ac_ext
6354fi
6355echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6356echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6357if test $ac_cv_working_alloca_h = yes; then
6358
6359cat >>confdefs.h <<\_ACEOF
6360#define HAVE_ALLOCA_H 1
6361_ACEOF
6362
6363fi
6364
6365echo "$as_me:$LINENO: checking for alloca" >&5
6366echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6367if test "${ac_cv_func_alloca_works+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6369else
6370 cat >conftest.$ac_ext <<_ACEOF
6371/* confdefs.h. */
6372_ACEOF
6373cat confdefs.h >>conftest.$ac_ext
6374cat >>conftest.$ac_ext <<_ACEOF
6375/* end confdefs.h. */
6376#ifdef __GNUC__
6377# define alloca __builtin_alloca
6378#else
6379# ifdef _MSC_VER
6380# include <malloc.h>
6381# define alloca _alloca
6382# else
6383# if HAVE_ALLOCA_H
6384# include <alloca.h>
6385# else
6386# ifdef _AIX
6387 #pragma alloca
6388# else
6389# ifndef alloca /* predefined by HP cc +Olibcalls */
6390char *alloca ();
6391# endif
6392# endif
6393# endif
6394# endif
6395#endif
6396
6397int
6398main ()
6399{
6400char *p = (char *) alloca (1);
6401 ;
6402 return 0;
6403}
6404_ACEOF
6405rm -f conftest.$ac_objext conftest$ac_exeext
6406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6407 (eval $ac_link) 2>conftest.er1
6408 ac_status=$?
6409 grep -v '^ *+' conftest.er1 >conftest.err
6410 rm -f conftest.er1
6411 cat conftest.err >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } &&
6414 { ac_try='test -z "$ac_cxx_werror_flag"
6415 || test ! -s conftest.err'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 (eval $ac_try) 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; } &&
6421 { ac_try='test -s conftest$ac_exeext'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 (eval $ac_try) 2>&5
6424 ac_status=$?
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; }; then
6427 ac_cv_func_alloca_works=yes
6428else
6429 echo "$as_me: failed program was:" >&5
6430sed 's/^/| /' conftest.$ac_ext >&5
6431
6432ac_cv_func_alloca_works=no
6433fi
6434rm -f conftest.err conftest.$ac_objext \
6435 conftest$ac_exeext conftest.$ac_ext
6436fi
6437echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6438echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6439
6440if test $ac_cv_func_alloca_works = yes; then
6441
6442cat >>confdefs.h <<\_ACEOF
6443#define HAVE_ALLOCA 1
6444_ACEOF
6445
6446else
6447 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6448# that cause trouble. Some versions do not even contain alloca or
6449# contain a buggy version. If you still want to use their alloca,
6450# use ar to extract alloca.o from them instead of compiling alloca.c.
6451
6452ALLOCA=alloca.$ac_objext
6453
6454cat >>confdefs.h <<\_ACEOF
6455#define C_ALLOCA 1
6456_ACEOF
6457
6458
6459echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6460echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6461if test "${ac_cv_os_cray+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6463else
6464 cat >conftest.$ac_ext <<_ACEOF
6465/* confdefs.h. */
6466_ACEOF
6467cat confdefs.h >>conftest.$ac_ext
6468cat >>conftest.$ac_ext <<_ACEOF
6469/* end confdefs.h. */
6470#if defined(CRAY) && ! defined(CRAY2)
6471webecray
6472#else
6473wenotbecray
6474#endif
6475
6476_ACEOF
6477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6478 $EGREP "webecray" >/dev/null 2>&1; then
6479 ac_cv_os_cray=yes
6480else
6481 ac_cv_os_cray=no
6482fi
6483rm -f conftest*
6484
6485fi
6486echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6487echo "${ECHO_T}$ac_cv_os_cray" >&6
6488if test $ac_cv_os_cray = yes; then
6489 for ac_func in _getb67 GETB67 getb67; do
6490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6491echo "$as_me:$LINENO: checking for $ac_func" >&5
6492echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6493if eval "test \"\${$as_ac_var+set}\" = set"; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495else
6496 cat >conftest.$ac_ext <<_ACEOF
6497/* confdefs.h. */
6498_ACEOF
6499cat confdefs.h >>conftest.$ac_ext
6500cat >>conftest.$ac_ext <<_ACEOF
6501/* end confdefs.h. */
6502/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6504#define $ac_func innocuous_$ac_func
6505
6506/* System header to define __stub macros and hopefully few prototypes,
6507 which can conflict with char $ac_func (); below.
6508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6509 <limits.h> exists even on freestanding compilers. */
6510
6511#ifdef __STDC__
6512# include <limits.h>
6513#else
6514# include <assert.h>
6515#endif
6516
6517#undef $ac_func
6518
6519/* Override any gcc2 internal prototype to avoid an error. */
6520#ifdef __cplusplus
6521extern "C"
6522{
6523#endif
6524/* We use char because int might match the return type of a gcc2
6525 builtin and then its argument prototype would still apply. */
6526char $ac_func ();
6527/* The GNU C library defines this for functions which it implements
6528 to always fail with ENOSYS. Some functions are actually named
6529 something starting with __ and the normal name is an alias. */
6530#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6531choke me
6532#else
6533char (*f) () = $ac_func;
6534#endif
6535#ifdef __cplusplus
6536}
6537#endif
6538
6539int
6540main ()
6541{
6542return f != $ac_func;
6543 ;
6544 return 0;
6545}
6546_ACEOF
6547rm -f conftest.$ac_objext conftest$ac_exeext
6548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6549 (eval $ac_link) 2>conftest.er1
6550 ac_status=$?
6551 grep -v '^ *+' conftest.er1 >conftest.err
6552 rm -f conftest.er1
6553 cat conftest.err >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } &&
6556 { ac_try='test -z "$ac_cxx_werror_flag"
6557 || test ! -s conftest.err'
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 (eval $ac_try) 2>&5
6560 ac_status=$?
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; } &&
6563 { ac_try='test -s conftest$ac_exeext'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 (eval $ac_try) 2>&5
6566 ac_status=$?
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; }; then
6569 eval "$as_ac_var=yes"
6570else
6571 echo "$as_me: failed program was:" >&5
6572sed 's/^/| /' conftest.$ac_ext >&5
6573
6574eval "$as_ac_var=no"
6575fi
6576rm -f conftest.err conftest.$ac_objext \
6577 conftest$ac_exeext conftest.$ac_ext
6578fi
6579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6580echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6581if test `eval echo '${'$as_ac_var'}'` = yes; then
6582
6583cat >>confdefs.h <<_ACEOF
6584#define CRAY_STACKSEG_END $ac_func
6585_ACEOF
6586
6587 break
6588fi
6589
6590 done
6591fi
6592
6593echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6594echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6595if test "${ac_cv_c_stack_direction+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6597else
6598 if test "$cross_compiling" = yes; then
6599 ac_cv_c_stack_direction=0
6600else
6601 cat >conftest.$ac_ext <<_ACEOF
6602/* confdefs.h. */
6603_ACEOF
6604cat confdefs.h >>conftest.$ac_ext
6605cat >>conftest.$ac_ext <<_ACEOF
6606/* end confdefs.h. */
6607int
6608find_stack_direction ()
6609{
6610 static char *addr = 0;
6611 auto char dummy;
6612 if (addr == 0)
6613 {
6614 addr = &dummy;
6615 return find_stack_direction ();
6616 }
6617 else
6618 return (&dummy > addr) ? 1 : -1;
6619}
6620
6621int
6622main ()
6623{
6624 exit (find_stack_direction () < 0);
6625}
6626_ACEOF
6627rm -f conftest$ac_exeext
6628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6629 (eval $ac_link) 2>&5
6630 ac_status=$?
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634 (eval $ac_try) 2>&5
6635 ac_status=$?
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; }; then
6638 ac_cv_c_stack_direction=1
6639else
6640 echo "$as_me: program exited with status $ac_status" >&5
6641echo "$as_me: failed program was:" >&5
6642sed 's/^/| /' conftest.$ac_ext >&5
6643
6644( exit $ac_status )
6645ac_cv_c_stack_direction=-1
6646fi
6647rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6648fi
6649fi
6650echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6651echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6652
6653cat >>confdefs.h <<_ACEOF
6654#define STACK_DIRECTION $ac_cv_c_stack_direction
6655_ACEOF
6656
6657
6658fi
6659
6660
6661
6662for ac_header in stdlib.h unistd.h
6663do
6664as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6665if eval "test \"\${$as_ac_Header+set}\" = set"; then
6666 echo "$as_me:$LINENO: checking for $ac_header" >&5
6667echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6668if eval "test \"\${$as_ac_Header+set}\" = set"; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6670fi
6671echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6672echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6673else
6674 # Is the header compilable?
6675echo "$as_me:$LINENO: checking $ac_header usability" >&5
6676echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6677cat >conftest.$ac_ext <<_ACEOF
6678/* confdefs.h. */
6679_ACEOF
6680cat confdefs.h >>conftest.$ac_ext
6681cat >>conftest.$ac_ext <<_ACEOF
6682/* end confdefs.h. */
6683$ac_includes_default
6684#include <$ac_header>
6685_ACEOF
6686rm -f conftest.$ac_objext
6687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6688 (eval $ac_compile) 2>conftest.er1
6689 ac_status=$?
6690 grep -v '^ *+' conftest.er1 >conftest.err
6691 rm -f conftest.er1
6692 cat conftest.err >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } &&
6695 { ac_try='test -z "$ac_cxx_werror_flag"
6696 || test ! -s conftest.err'
6697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698 (eval $ac_try) 2>&5
6699 ac_status=$?
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); }; } &&
6702 { ac_try='test -s conftest.$ac_objext'
6703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6704 (eval $ac_try) 2>&5
6705 ac_status=$?
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); }; }; then
6708 ac_header_compiler=yes
6709else
6710 echo "$as_me: failed program was:" >&5
6711sed 's/^/| /' conftest.$ac_ext >&5
6712
6713ac_header_compiler=no
6714fi
6715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6716echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6717echo "${ECHO_T}$ac_header_compiler" >&6
6718
6719# Is the header present?
6720echo "$as_me:$LINENO: checking $ac_header presence" >&5
6721echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6722cat >conftest.$ac_ext <<_ACEOF
6723/* confdefs.h. */
6724_ACEOF
6725cat confdefs.h >>conftest.$ac_ext
6726cat >>conftest.$ac_ext <<_ACEOF
6727/* end confdefs.h. */
6728#include <$ac_header>
6729_ACEOF
6730if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6732 ac_status=$?
6733 grep -v '^ *+' conftest.er1 >conftest.err
6734 rm -f conftest.er1
6735 cat conftest.err >&5
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); } >/dev/null; then
6738 if test -s conftest.err; then
6739 ac_cpp_err=$ac_cxx_preproc_warn_flag
6740 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6741 else
6742 ac_cpp_err=
6743 fi
6744else
6745 ac_cpp_err=yes
6746fi
6747if test -z "$ac_cpp_err"; then
6748 ac_header_preproc=yes
6749else
6750 echo "$as_me: failed program was:" >&5
6751sed 's/^/| /' conftest.$ac_ext >&5
6752
6753 ac_header_preproc=no
6754fi
6755rm -f conftest.err conftest.$ac_ext
6756echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6757echo "${ECHO_T}$ac_header_preproc" >&6
6758
6759# So? What about this header?
6760case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6761 yes:no: )
6762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6763echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6765echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6766 ac_header_preproc=yes
6767 ;;
6768 no:yes:* )
6769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6770echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6772echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6774echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6776echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6778echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6780echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6781 (
6782 cat <<\_ASBOX
6783## ------------------------------------------ ##
6784## Report this to the AC_PACKAGE_NAME lists. ##
6785## ------------------------------------------ ##
6786_ASBOX
6787 ) |
6788 sed "s/^/$as_me: WARNING: /" >&2
6789 ;;
6790esac
6791echo "$as_me:$LINENO: checking for $ac_header" >&5
6792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6793if eval "test \"\${$as_ac_Header+set}\" = set"; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6795else
6796 eval "$as_ac_Header=\$ac_header_preproc"
6797fi
6798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6799echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6800
6801fi
6802if test `eval echo '${'$as_ac_Header'}'` = yes; then
6803 cat >>confdefs.h <<_ACEOF
6804#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6805_ACEOF
6806
6807fi
6808
6809done
6810
6811
6812for ac_func in getpagesize
6813do
6814as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6815echo "$as_me:$LINENO: checking for $ac_func" >&5
6816echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6817if eval "test \"\${$as_ac_var+set}\" = set"; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819else
6820 cat >conftest.$ac_ext <<_ACEOF
6821/* confdefs.h. */
6822_ACEOF
6823cat confdefs.h >>conftest.$ac_ext
6824cat >>conftest.$ac_ext <<_ACEOF
6825/* end confdefs.h. */
6826/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6828#define $ac_func innocuous_$ac_func
6829
6830/* System header to define __stub macros and hopefully few prototypes,
6831 which can conflict with char $ac_func (); below.
6832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6833 <limits.h> exists even on freestanding compilers. */
6834
6835#ifdef __STDC__
6836# include <limits.h>
6837#else
6838# include <assert.h>
6839#endif
6840
6841#undef $ac_func
6842
6843/* Override any gcc2 internal prototype to avoid an error. */
6844#ifdef __cplusplus
6845extern "C"
6846{
6847#endif
6848/* We use char because int might match the return type of a gcc2
6849 builtin and then its argument prototype would still apply. */
6850char $ac_func ();
6851/* The GNU C library defines this for functions which it implements
6852 to always fail with ENOSYS. Some functions are actually named
6853 something starting with __ and the normal name is an alias. */
6854#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6855choke me
6856#else
6857char (*f) () = $ac_func;
6858#endif
6859#ifdef __cplusplus
6860}
6861#endif
6862
6863int
6864main ()
6865{
6866return f != $ac_func;
6867 ;
6868 return 0;
6869}
6870_ACEOF
6871rm -f conftest.$ac_objext conftest$ac_exeext
6872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6873 (eval $ac_link) 2>conftest.er1
6874 ac_status=$?
6875 grep -v '^ *+' conftest.er1 >conftest.err
6876 rm -f conftest.er1
6877 cat conftest.err >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } &&
6880 { ac_try='test -z "$ac_cxx_werror_flag"
6881 || test ! -s conftest.err'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 (eval $ac_try) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; } &&
6887 { ac_try='test -s conftest$ac_exeext'
6888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 (eval $ac_try) 2>&5
6890 ac_status=$?
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; }; then
6893 eval "$as_ac_var=yes"
6894else
6895 echo "$as_me: failed program was:" >&5
6896sed 's/^/| /' conftest.$ac_ext >&5
6897
6898eval "$as_ac_var=no"
6899fi
6900rm -f conftest.err conftest.$ac_objext \
6901 conftest$ac_exeext conftest.$ac_ext
6902fi
6903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6904echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6905if test `eval echo '${'$as_ac_var'}'` = yes; then
6906 cat >>confdefs.h <<_ACEOF
6907#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6908_ACEOF
6909
6910fi
6911done
6912
6913echo "$as_me:$LINENO: checking for working mmap" >&5
6914echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6915if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6917else
6918 if test "$cross_compiling" = yes; then
6919 ac_cv_func_mmap_fixed_mapped=no
6920else
6921 cat >conftest.$ac_ext <<_ACEOF
6922/* confdefs.h. */
6923_ACEOF
6924cat confdefs.h >>conftest.$ac_ext
6925cat >>conftest.$ac_ext <<_ACEOF
6926/* end confdefs.h. */
6927$ac_includes_default
6928/* malloc might have been renamed as rpl_malloc. */
6929#undef malloc
6930
6931/* Thanks to Mike Haertel and Jim Avera for this test.
6932 Here is a matrix of mmap possibilities:
6933 mmap private not fixed
6934 mmap private fixed at somewhere currently unmapped
6935 mmap private fixed at somewhere already mapped
6936 mmap shared not fixed
6937 mmap shared fixed at somewhere currently unmapped
6938 mmap shared fixed at somewhere already mapped
6939 For private mappings, we should verify that changes cannot be read()
6940 back from the file, nor mmap's back from the file at a different
6941 address. (There have been systems where private was not correctly
6942 implemented like the infamous i386 svr4.0, and systems where the
6943 VM page cache was not coherent with the file system buffer cache
6944 like early versions of FreeBSD and possibly contemporary NetBSD.)
6945 For shared mappings, we should conversely verify that changes get
6946 propagated back to all the places they're supposed to be.
6947
6948 Grep wants private fixed already mapped.
6949 The main things grep needs to know about mmap are:
6950 * does it exist and is it safe to write into the mmap'd area
6951 * how to use it (BSD variants) */
6952
6953#include <fcntl.h>
6954#include <sys/mman.h>
6955
6956#if !STDC_HEADERS && !HAVE_STDLIB_H
6957char *malloc ();
6958#endif
6959
6960/* This mess was copied from the GNU getpagesize.h. */
6961#if !HAVE_GETPAGESIZE
6962/* Assume that all systems that can run configure have sys/param.h. */
6963# if !HAVE_SYS_PARAM_H
6964# define HAVE_SYS_PARAM_H 1
6965# endif
6966
6967# ifdef _SC_PAGESIZE
6968# define getpagesize() sysconf(_SC_PAGESIZE)
6969# else /* no _SC_PAGESIZE */
6970# if HAVE_SYS_PARAM_H
6971# include <sys/param.h>
6972# ifdef EXEC_PAGESIZE
6973# define getpagesize() EXEC_PAGESIZE
6974# else /* no EXEC_PAGESIZE */
6975# ifdef NBPG
6976# define getpagesize() NBPG * CLSIZE
6977# ifndef CLSIZE
6978# define CLSIZE 1
6979# endif /* no CLSIZE */
6980# else /* no NBPG */
6981# ifdef NBPC
6982# define getpagesize() NBPC
6983# else /* no NBPC */
6984# ifdef PAGESIZE
6985# define getpagesize() PAGESIZE
6986# endif /* PAGESIZE */
6987# endif /* no NBPC */
6988# endif /* no NBPG */
6989# endif /* no EXEC_PAGESIZE */
6990# else /* no HAVE_SYS_PARAM_H */
6991# define getpagesize() 8192 /* punt totally */
6992# endif /* no HAVE_SYS_PARAM_H */
6993# endif /* no _SC_PAGESIZE */
6994
6995#endif /* no HAVE_GETPAGESIZE */
6996
6997int
6998main ()
6999{
7000 char *data, *data2, *data3;
7001 int i, pagesize;
7002 int fd;
7003
7004 pagesize = getpagesize ();
7005
7006 /* First, make a file with some known garbage in it. */
7007 data = (char *) malloc (pagesize);
7008 if (!data)
7009 exit (1);
7010 for (i = 0; i < pagesize; ++i)
7011 *(data + i) = rand ();
7012 umask (0);
7013 fd = creat ("conftest.mmap", 0600);
7014 if (fd < 0)
7015 exit (1);
7016 if (write (fd, data, pagesize) != pagesize)
7017 exit (1);
7018 close (fd);
7019
7020 /* Next, try to mmap the file at a fixed address which already has
7021 something else allocated at it. If we can, also make sure that
7022 we see the same garbage. */
7023 fd = open ("conftest.mmap", O_RDWR);
7024 if (fd < 0)
7025 exit (1);
7026 data2 = (char *) malloc (2 * pagesize);
7027 if (!data2)
7028 exit (1);
7029 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
7030 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7031 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7032 exit (1);
7033 for (i = 0; i < pagesize; ++i)
7034 if (*(data + i) != *(data2 + i))
7035 exit (1);
7036
7037 /* Finally, make sure that changes to the mapped area do not
7038 percolate back to the file as seen by read(). (This is a bug on
7039 some variants of i386 svr4.0.) */
7040 for (i = 0; i < pagesize; ++i)
7041 *(data2 + i) = *(data2 + i) + 1;
7042 data3 = (char *) malloc (pagesize);
7043 if (!data3)
7044 exit (1);
7045 if (read (fd, data3, pagesize) != pagesize)
7046 exit (1);
7047 for (i = 0; i < pagesize; ++i)
7048 if (*(data + i) != *(data3 + i))
7049 exit (1);
7050 close (fd);
7051 exit (0);
7052}
7053_ACEOF
7054rm -f conftest$ac_exeext
7055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7056 (eval $ac_link) 2>&5
7057 ac_status=$?
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061 (eval $ac_try) 2>&5
7062 ac_status=$?
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; }; then
7065 ac_cv_func_mmap_fixed_mapped=yes
7066else
7067 echo "$as_me: program exited with status $ac_status" >&5
7068echo "$as_me: failed program was:" >&5
7069sed 's/^/| /' conftest.$ac_ext >&5
7070
7071( exit $ac_status )
7072ac_cv_func_mmap_fixed_mapped=no
7073fi
7074rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7075fi
7076fi
7077echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7078echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7079if test $ac_cv_func_mmap_fixed_mapped = yes; then
7080
7081cat >>confdefs.h <<\_ACEOF
7082#define HAVE_MMAP 1
7083_ACEOF
7084
7085fi
7086rm -f conftest.mmap
7087
7088
7089 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7090echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7091if test "${ac_cv_gnu_library_2_1+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7093else
7094 cat >conftest.$ac_ext <<_ACEOF
7095/* confdefs.h. */
7096_ACEOF
7097cat confdefs.h >>conftest.$ac_ext
7098cat >>conftest.$ac_ext <<_ACEOF
7099/* end confdefs.h. */
7100
7101#include <features.h>
7102#ifdef __GNU_LIBRARY__
7103 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7104 Lucky GNU user
7105 #endif
7106#endif
7107
7108_ACEOF
7109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7110 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7111 ac_cv_gnu_library_2_1=yes
7112else
7113 ac_cv_gnu_library_2_1=no
7114fi
7115rm -f conftest*
7116
7117
7118
7119fi
7120echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7121echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7122
7123 GLIBC21="$ac_cv_gnu_library_2_1"
7124
7125
7126
7127
7128 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
7129echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
7130if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7132else
7133
7134 if test "$cross_compiling" = yes; then
7135
7136 # Guess based on the CPU.
7137 case "$host_cpu" in
7138 alpha* | i3456786 | m68k | s390*)
7139 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7140 *)
7141 gt_cv_int_divbyzero_sigfpe="guessing no";;
7142 esac
7143
7144else
7145 cat >conftest.$ac_ext <<_ACEOF
7146/* confdefs.h. */
7147_ACEOF
7148cat confdefs.h >>conftest.$ac_ext
7149cat >>conftest.$ac_ext <<_ACEOF
7150/* end confdefs.h. */
7151
7152#include <stdlib.h>
7153#include <signal.h>
7154
7155static void
7156#ifdef __cplusplus
7157sigfpe_handler (int sig)
7158#else
7159sigfpe_handler (sig) int sig;
7160#endif
7161{
7162 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7163 exit (sig != SIGFPE);
7164}
7165
7166int x = 1;
7167int y = 0;
7168int z;
7169int nan;
7170
7171int main ()
7172{
7173 signal (SIGFPE, sigfpe_handler);
7174/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7175#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7176 signal (SIGTRAP, sigfpe_handler);
7177#endif
7178/* Linux/SPARC yields signal SIGILL. */
7179#if defined (__sparc__) && defined (__linux__)
7180 signal (SIGILL, sigfpe_handler);
7181#endif
7182
7183 z = x / y;
7184 nan = y / y;
7185 exit (1);
7186}
7187
7188_ACEOF
7189rm -f conftest$ac_exeext
7190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7191 (eval $ac_link) 2>&5
7192 ac_status=$?
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 (eval $ac_try) 2>&5
7197 ac_status=$?
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; }; then
7200 gt_cv_int_divbyzero_sigfpe=yes
7201else
7202 echo "$as_me: program exited with status $ac_status" >&5
7203echo "$as_me: failed program was:" >&5
7204sed 's/^/| /' conftest.$ac_ext >&5
7205
7206( exit $ac_status )
7207gt_cv_int_divbyzero_sigfpe=no
7208fi
7209rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7210fi
7211
7212fi
7213echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7214echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
7215 case "$gt_cv_int_divbyzero_sigfpe" in
7216 *yes) value=1;;
7217 *) value=0;;
7218 esac
7219
7220cat >>confdefs.h <<_ACEOF
7221#define INTDIV0_RAISES_SIGFPE $value
7222_ACEOF
7223
7224
7225
7226 echo "$as_me:$LINENO: checking for unsigned long long" >&5
7227echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7228if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7230else
7231 cat >conftest.$ac_ext <<_ACEOF
7232/* confdefs.h. */
7233_ACEOF
7234cat confdefs.h >>conftest.$ac_ext
7235cat >>conftest.$ac_ext <<_ACEOF
7236/* end confdefs.h. */
7237unsigned long long ull = 1ULL; int i = 63;
7238int
7239main ()
7240{
7241unsigned long long ullmax = (unsigned long long) -1;
7242 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7243 ;
7244 return 0;
7245}
7246_ACEOF
7247rm -f conftest.$ac_objext conftest$ac_exeext
7248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7249 (eval $ac_link) 2>conftest.er1
7250 ac_status=$?
7251 grep -v '^ *+' conftest.er1 >conftest.err
7252 rm -f conftest.er1
7253 cat conftest.err >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } &&
7256 { ac_try='test -z "$ac_cxx_werror_flag"
7257 || test ! -s conftest.err'
7258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259 (eval $ac_try) 2>&5
7260 ac_status=$?
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); }; } &&
7263 { ac_try='test -s conftest$ac_exeext'
7264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265 (eval $ac_try) 2>&5
7266 ac_status=$?
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); }; }; then
7269 ac_cv_type_unsigned_long_long=yes
7270else
7271 echo "$as_me: failed program was:" >&5
7272sed 's/^/| /' conftest.$ac_ext >&5
7273
7274ac_cv_type_unsigned_long_long=no
7275fi
7276rm -f conftest.err conftest.$ac_objext \
7277 conftest$ac_exeext conftest.$ac_ext
7278fi
7279echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7280echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
7281 if test $ac_cv_type_unsigned_long_long = yes; then
7282
7283cat >>confdefs.h <<\_ACEOF
7284#define HAVE_UNSIGNED_LONG_LONG 1
7285_ACEOF
7286
7287 fi
7288
7289
7290
7291
7292 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7293
7294 test $ac_cv_type_unsigned_long_long = yes \
7295 && ac_type='unsigned long long' \
7296 || ac_type='unsigned long'
7297
7298cat >>confdefs.h <<_ACEOF
7299#define uintmax_t $ac_type
7300_ACEOF
7301
7302 else
7303
7304cat >>confdefs.h <<\_ACEOF
7305#define HAVE_UINTMAX_T 1
7306_ACEOF
7307
7308 fi
7309
7310
7311 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7312echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7313if test "${gt_cv_header_inttypes_h+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7315else
7316
7317 cat >conftest.$ac_ext <<_ACEOF
7318/* confdefs.h. */
7319_ACEOF
7320cat confdefs.h >>conftest.$ac_ext
7321cat >>conftest.$ac_ext <<_ACEOF
7322/* end confdefs.h. */
7323#include <sys/types.h>
7324#include <inttypes.h>
7325int
7326main ()
7327{
7328
7329 ;
7330 return 0;
7331}
7332_ACEOF
7333rm -f conftest.$ac_objext
7334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7335 (eval $ac_compile) 2>conftest.er1
7336 ac_status=$?
7337 grep -v '^ *+' conftest.er1 >conftest.err
7338 rm -f conftest.er1
7339 cat conftest.err >&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); } &&
7342 { ac_try='test -z "$ac_cxx_werror_flag"
7343 || test ! -s conftest.err'
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345 (eval $ac_try) 2>&5
7346 ac_status=$?
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; } &&
7349 { ac_try='test -s conftest.$ac_objext'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351 (eval $ac_try) 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7355 gt_cv_header_inttypes_h=yes
7356else
7357 echo "$as_me: failed program was:" >&5
7358sed 's/^/| /' conftest.$ac_ext >&5
7359
7360gt_cv_header_inttypes_h=no
7361fi
7362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7363
7364fi
7365echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7366echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
7367 if test $gt_cv_header_inttypes_h = yes; then
7368
7369cat >>confdefs.h <<_ACEOF
7370#define HAVE_INTTYPES_H 1
7371_ACEOF
7372
7373 fi
7374
7375
7376
7377 if test $gt_cv_header_inttypes_h = yes; then
7378 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7379echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
7380if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7382else
7383
7384 cat >conftest.$ac_ext <<_ACEOF
7385/* confdefs.h. */
7386_ACEOF
7387cat confdefs.h >>conftest.$ac_ext
7388cat >>conftest.$ac_ext <<_ACEOF
7389/* end confdefs.h. */
7390#include <inttypes.h>
7391#ifdef PRId32
7392char *p = PRId32;
7393#endif
7394
7395int
7396main ()
7397{
7398
7399 ;
7400 return 0;
7401}
7402_ACEOF
7403rm -f conftest.$ac_objext
7404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7405 (eval $ac_compile) 2>conftest.er1
7406 ac_status=$?
7407 grep -v '^ *+' conftest.er1 >conftest.err
7408 rm -f conftest.er1
7409 cat conftest.err >&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } &&
7412 { ac_try='test -z "$ac_cxx_werror_flag"
7413 || test ! -s conftest.err'
7414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7415 (eval $ac_try) 2>&5
7416 ac_status=$?
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); }; } &&
7419 { ac_try='test -s conftest.$ac_objext'
7420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7421 (eval $ac_try) 2>&5
7422 ac_status=$?
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); }; }; then
7425 gt_cv_inttypes_pri_broken=no
7426else
7427 echo "$as_me: failed program was:" >&5
7428sed 's/^/| /' conftest.$ac_ext >&5
7429
7430gt_cv_inttypes_pri_broken=yes
7431fi
7432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7433
7434fi
7435echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7436echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
7437 fi
7438 if test "$gt_cv_inttypes_pri_broken" = yes; then
7439
7440cat >>confdefs.h <<_ACEOF
7441#define PRI_MACROS_BROKEN 1
7442_ACEOF
7443
7444 fi
7445
7446
7447
7448for ac_header in stdint.h
7449do
7450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7451if eval "test \"\${$as_ac_Header+set}\" = set"; then
7452 echo "$as_me:$LINENO: checking for $ac_header" >&5
7453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7454if eval "test \"\${$as_ac_Header+set}\" = set"; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7456fi
7457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7459else
7460 # Is the header compilable?
7461echo "$as_me:$LINENO: checking $ac_header usability" >&5
7462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7463cat >conftest.$ac_ext <<_ACEOF
7464/* confdefs.h. */
7465_ACEOF
7466cat confdefs.h >>conftest.$ac_ext
7467cat >>conftest.$ac_ext <<_ACEOF
7468/* end confdefs.h. */
7469$ac_includes_default
7470#include <$ac_header>
7471_ACEOF
7472rm -f conftest.$ac_objext
7473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7474 (eval $ac_compile) 2>conftest.er1
7475 ac_status=$?
7476 grep -v '^ *+' conftest.er1 >conftest.err
7477 rm -f conftest.er1
7478 cat conftest.err >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } &&
7481 { ac_try='test -z "$ac_cxx_werror_flag"
7482 || test ! -s conftest.err'
7483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484 (eval $ac_try) 2>&5
7485 ac_status=$?
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); }; } &&
7488 { ac_try='test -s conftest.$ac_objext'
7489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490 (eval $ac_try) 2>&5
7491 ac_status=$?
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); }; }; then
7494 ac_header_compiler=yes
7495else
7496 echo "$as_me: failed program was:" >&5
7497sed 's/^/| /' conftest.$ac_ext >&5
7498
7499ac_header_compiler=no
7500fi
7501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7503echo "${ECHO_T}$ac_header_compiler" >&6
7504
7505# Is the header present?
7506echo "$as_me:$LINENO: checking $ac_header presence" >&5
7507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7508cat >conftest.$ac_ext <<_ACEOF
7509/* confdefs.h. */
7510_ACEOF
7511cat confdefs.h >>conftest.$ac_ext
7512cat >>conftest.$ac_ext <<_ACEOF
7513/* end confdefs.h. */
7514#include <$ac_header>
7515_ACEOF
7516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7518 ac_status=$?
7519 grep -v '^ *+' conftest.er1 >conftest.err
7520 rm -f conftest.er1
7521 cat conftest.err >&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); } >/dev/null; then
7524 if test -s conftest.err; then
7525 ac_cpp_err=$ac_cxx_preproc_warn_flag
7526 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7527 else
7528 ac_cpp_err=
7529 fi
7530else
7531 ac_cpp_err=yes
7532fi
7533if test -z "$ac_cpp_err"; then
7534 ac_header_preproc=yes
7535else
7536 echo "$as_me: failed program was:" >&5
7537sed 's/^/| /' conftest.$ac_ext >&5
7538
7539 ac_header_preproc=no
7540fi
7541rm -f conftest.err conftest.$ac_ext
7542echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7543echo "${ECHO_T}$ac_header_preproc" >&6
7544
7545# So? What about this header?
7546case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7547 yes:no: )
7548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7552 ac_header_preproc=yes
7553 ;;
7554 no:yes:* )
7555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7558echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7562echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7567 (
7568 cat <<\_ASBOX
7569## ------------------------------------------ ##
7570## Report this to the AC_PACKAGE_NAME lists. ##
7571## ------------------------------------------ ##
7572_ASBOX
7573 ) |
7574 sed "s/^/$as_me: WARNING: /" >&2
7575 ;;
7576esac
7577echo "$as_me:$LINENO: checking for $ac_header" >&5
7578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7579if eval "test \"\${$as_ac_Header+set}\" = set"; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7581else
7582 eval "$as_ac_Header=\$ac_header_preproc"
7583fi
7584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7586
7587fi
7588if test `eval echo '${'$as_ac_Header'}'` = yes; then
7589 cat >>confdefs.h <<_ACEOF
7590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7591_ACEOF
7592
7593fi
7594
7595done
7596
7597 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7598echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
7599 result=
7600 cat >conftest.$ac_ext <<_ACEOF
7601/* confdefs.h. */
7602_ACEOF
7603cat confdefs.h >>conftest.$ac_ext
7604cat >>conftest.$ac_ext <<_ACEOF
7605/* end confdefs.h. */
7606
7607#include <limits.h>
7608#if HAVE_STDINT_H
7609#include <stdint.h>
7610#endif
7611#ifdef SIZE_MAX
7612Found it
7613#endif
7614
7615_ACEOF
7616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7617 $EGREP "Found it" >/dev/null 2>&1; then
7618 result=yes
7619fi
7620rm -f conftest*
7621
7622 if test -z "$result"; then
7623 if test "$cross_compiling" = yes; then
7624 # Depending upon the size, compute the lo and hi bounds.
7625cat >conftest.$ac_ext <<_ACEOF
7626/* confdefs.h. */
7627_ACEOF
7628cat confdefs.h >>conftest.$ac_ext
7629cat >>conftest.$ac_ext <<_ACEOF
7630/* end confdefs.h. */
7631#include <stddef.h>
7632int
7633main ()
7634{
7635static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7636test_array [0] = 0
7637
7638 ;
7639 return 0;
7640}
7641_ACEOF
7642rm -f conftest.$ac_objext
7643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7644 (eval $ac_compile) 2>conftest.er1
7645 ac_status=$?
7646 grep -v '^ *+' conftest.er1 >conftest.err
7647 rm -f conftest.er1
7648 cat conftest.err >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } &&
7651 { ac_try='test -z "$ac_cxx_werror_flag"
7652 || test ! -s conftest.err'
7653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654 (eval $ac_try) 2>&5
7655 ac_status=$?
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }; } &&
7658 { ac_try='test -s conftest.$ac_objext'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 (eval $ac_try) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; }; then
7664 ac_lo=0 ac_mid=0
7665 while :; do
7666 cat >conftest.$ac_ext <<_ACEOF
7667/* confdefs.h. */
7668_ACEOF
7669cat confdefs.h >>conftest.$ac_ext
7670cat >>conftest.$ac_ext <<_ACEOF
7671/* end confdefs.h. */
7672#include <stddef.h>
7673int
7674main ()
7675{
7676static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7677test_array [0] = 0
7678
7679 ;
7680 return 0;
7681}
7682_ACEOF
7683rm -f conftest.$ac_objext
7684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7685 (eval $ac_compile) 2>conftest.er1
7686 ac_status=$?
7687 grep -v '^ *+' conftest.er1 >conftest.err
7688 rm -f conftest.er1
7689 cat conftest.err >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); } &&
7692 { ac_try='test -z "$ac_cxx_werror_flag"
7693 || test ! -s conftest.err'
7694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695 (eval $ac_try) 2>&5
7696 ac_status=$?
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); }; } &&
7699 { ac_try='test -s conftest.$ac_objext'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 (eval $ac_try) 2>&5
7702 ac_status=$?
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; }; then
7705 ac_hi=$ac_mid; break
7706else
7707 echo "$as_me: failed program was:" >&5
7708sed 's/^/| /' conftest.$ac_ext >&5
7709
7710ac_lo=`expr $ac_mid + 1`
7711 if test $ac_lo -le $ac_mid; then
7712 ac_lo= ac_hi=
7713 break
7714 fi
7715 ac_mid=`expr 2 '*' $ac_mid + 1`
7716fi
7717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7718 done
7719else
7720 echo "$as_me: failed program was:" >&5
7721sed 's/^/| /' conftest.$ac_ext >&5
7722
7723cat >conftest.$ac_ext <<_ACEOF
7724/* confdefs.h. */
7725_ACEOF
7726cat confdefs.h >>conftest.$ac_ext
7727cat >>conftest.$ac_ext <<_ACEOF
7728/* end confdefs.h. */
7729#include <stddef.h>
7730int
7731main ()
7732{
7733static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7734test_array [0] = 0
7735
7736 ;
7737 return 0;
7738}
7739_ACEOF
7740rm -f conftest.$ac_objext
7741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7742 (eval $ac_compile) 2>conftest.er1
7743 ac_status=$?
7744 grep -v '^ *+' conftest.er1 >conftest.err
7745 rm -f conftest.er1
7746 cat conftest.err >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
7749 { ac_try='test -z "$ac_cxx_werror_flag"
7750 || test ! -s conftest.err'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752 (eval $ac_try) 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; } &&
7756 { ac_try='test -s conftest.$ac_objext'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 (eval $ac_try) 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; }; then
7762 ac_hi=-1 ac_mid=-1
7763 while :; do
7764 cat >conftest.$ac_ext <<_ACEOF
7765/* confdefs.h. */
7766_ACEOF
7767cat confdefs.h >>conftest.$ac_ext
7768cat >>conftest.$ac_ext <<_ACEOF
7769/* end confdefs.h. */
7770#include <stddef.h>
7771int
7772main ()
7773{
7774static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7775test_array [0] = 0
7776
7777 ;
7778 return 0;
7779}
7780_ACEOF
7781rm -f conftest.$ac_objext
7782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7783 (eval $ac_compile) 2>conftest.er1
7784 ac_status=$?
7785 grep -v '^ *+' conftest.er1 >conftest.err
7786 rm -f conftest.er1
7787 cat conftest.err >&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); } &&
7790 { ac_try='test -z "$ac_cxx_werror_flag"
7791 || test ! -s conftest.err'
7792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7793 (eval $ac_try) 2>&5
7794 ac_status=$?
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); }; } &&
7797 { ac_try='test -s conftest.$ac_objext'
7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799 (eval $ac_try) 2>&5
7800 ac_status=$?
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; }; then
7803 ac_lo=$ac_mid; break
7804else
7805 echo "$as_me: failed program was:" >&5
7806sed 's/^/| /' conftest.$ac_ext >&5
7807
7808ac_hi=`expr '(' $ac_mid ')' - 1`
7809 if test $ac_mid -le $ac_hi; then
7810 ac_lo= ac_hi=
7811 break
7812 fi
7813 ac_mid=`expr 2 '*' $ac_mid`
7814fi
7815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7816 done
7817else
7818 echo "$as_me: failed program was:" >&5
7819sed 's/^/| /' conftest.$ac_ext >&5
7820
7821ac_lo= ac_hi=
7822fi
7823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7824fi
7825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7826# Binary search between lo and hi bounds.
7827while test "x$ac_lo" != "x$ac_hi"; do
7828 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7829 cat >conftest.$ac_ext <<_ACEOF
7830/* confdefs.h. */
7831_ACEOF
7832cat confdefs.h >>conftest.$ac_ext
7833cat >>conftest.$ac_ext <<_ACEOF
7834/* end confdefs.h. */
7835#include <stddef.h>
7836int
7837main ()
7838{
7839static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7840test_array [0] = 0
7841
7842 ;
7843 return 0;
7844}
7845_ACEOF
7846rm -f conftest.$ac_objext
7847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7848 (eval $ac_compile) 2>conftest.er1
7849 ac_status=$?
7850 grep -v '^ *+' conftest.er1 >conftest.err
7851 rm -f conftest.er1
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } &&
7855 { ac_try='test -z "$ac_cxx_werror_flag"
7856 || test ! -s conftest.err'
7857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858 (eval $ac_try) 2>&5
7859 ac_status=$?
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; } &&
7862 { ac_try='test -s conftest.$ac_objext'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864 (eval $ac_try) 2>&5
7865 ac_status=$?
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; }; then
7868 ac_hi=$ac_mid
7869else
7870 echo "$as_me: failed program was:" >&5
7871sed 's/^/| /' conftest.$ac_ext >&5
7872
7873ac_lo=`expr '(' $ac_mid ')' + 1`
7874fi
7875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7876done
7877case $ac_lo in
7878?*) res_hi=$ac_lo;;
7879'') result=? ;;
7880esac
7881else
7882 if test "$cross_compiling" = yes; then
7883 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7884See \`config.log' for more details." >&5
7885echo "$as_me: error: cannot run test program while cross compiling
7886See \`config.log' for more details." >&2;}
7887 { (exit 1); exit 1; }; }
7888else
7889 cat >conftest.$ac_ext <<_ACEOF
7890/* confdefs.h. */
7891_ACEOF
7892cat confdefs.h >>conftest.$ac_ext
7893cat >>conftest.$ac_ext <<_ACEOF
7894/* end confdefs.h. */
7895#include <stddef.h>
7896long longval () { return ~(size_t)0 / 10; }
7897unsigned long ulongval () { return ~(size_t)0 / 10; }
7898#include <stdio.h>
7899#include <stdlib.h>
7900int
7901main ()
7902{
7903
7904 FILE *f = fopen ("conftest.val", "w");
7905 if (! f)
7906 exit (1);
7907 if ((~(size_t)0 / 10) < 0)
7908 {
7909 long i = longval ();
7910 if (i != (~(size_t)0 / 10))
7911 exit (1);
7912 fprintf (f, "%ld\n", i);
7913 }
7914 else
7915 {
7916 unsigned long i = ulongval ();
7917 if (i != (~(size_t)0 / 10))
7918 exit (1);
7919 fprintf (f, "%lu\n", i);
7920 }
7921 exit (ferror (f) || fclose (f) != 0);
7922
7923 ;
7924 return 0;
7925}
7926_ACEOF
7927rm -f conftest$ac_exeext
7928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7929 (eval $ac_link) 2>&5
7930 ac_status=$?
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7934 (eval $ac_try) 2>&5
7935 ac_status=$?
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); }; }; then
7938 res_hi=`cat conftest.val`
7939else
7940 echo "$as_me: program exited with status $ac_status" >&5
7941echo "$as_me: failed program was:" >&5
7942sed 's/^/| /' conftest.$ac_ext >&5
7943
7944( exit $ac_status )
7945result=?
7946fi
7947rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7948fi
7949fi
7950rm -f conftest.val
7951 if test "$cross_compiling" = yes; then
7952 # Depending upon the size, compute the lo and hi bounds.
7953cat >conftest.$ac_ext <<_ACEOF
7954/* confdefs.h. */
7955_ACEOF
7956cat confdefs.h >>conftest.$ac_ext
7957cat >>conftest.$ac_ext <<_ACEOF
7958/* end confdefs.h. */
7959#include <stddef.h>
7960int
7961main ()
7962{
7963static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7964test_array [0] = 0
7965
7966 ;
7967 return 0;
7968}
7969_ACEOF
7970rm -f conftest.$ac_objext
7971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7972 (eval $ac_compile) 2>conftest.er1
7973 ac_status=$?
7974 grep -v '^ *+' conftest.er1 >conftest.err
7975 rm -f conftest.er1
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } &&
7979 { ac_try='test -z "$ac_cxx_werror_flag"
7980 || test ! -s conftest.err'
7981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982 (eval $ac_try) 2>&5
7983 ac_status=$?
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; } &&
7986 { ac_try='test -s conftest.$ac_objext'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988 (eval $ac_try) 2>&5
7989 ac_status=$?
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; }; then
7992 ac_lo=0 ac_mid=0
7993 while :; do
7994 cat >conftest.$ac_ext <<_ACEOF
7995/* confdefs.h. */
7996_ACEOF
7997cat confdefs.h >>conftest.$ac_ext
7998cat >>conftest.$ac_ext <<_ACEOF
7999/* end confdefs.h. */
8000#include <stddef.h>
8001int
8002main ()
8003{
8004static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8005test_array [0] = 0
8006
8007 ;
8008 return 0;
8009}
8010_ACEOF
8011rm -f conftest.$ac_objext
8012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8013 (eval $ac_compile) 2>conftest.er1
8014 ac_status=$?
8015 grep -v '^ *+' conftest.er1 >conftest.err
8016 rm -f conftest.er1
8017 cat conftest.err >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } &&
8020 { ac_try='test -z "$ac_cxx_werror_flag"
8021 || test ! -s conftest.err'
8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023 (eval $ac_try) 2>&5
8024 ac_status=$?
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; } &&
8027 { ac_try='test -s conftest.$ac_objext'
8028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029 (eval $ac_try) 2>&5
8030 ac_status=$?
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); }; }; then
8033 ac_hi=$ac_mid; break
8034else
8035 echo "$as_me: failed program was:" >&5
8036sed 's/^/| /' conftest.$ac_ext >&5
8037
8038ac_lo=`expr $ac_mid + 1`
8039 if test $ac_lo -le $ac_mid; then
8040 ac_lo= ac_hi=
8041 break
8042 fi
8043 ac_mid=`expr 2 '*' $ac_mid + 1`
8044fi
8045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8046 done
8047else
8048 echo "$as_me: failed program was:" >&5
8049sed 's/^/| /' conftest.$ac_ext >&5
8050
8051cat >conftest.$ac_ext <<_ACEOF
8052/* confdefs.h. */
8053_ACEOF
8054cat confdefs.h >>conftest.$ac_ext
8055cat >>conftest.$ac_ext <<_ACEOF
8056/* end confdefs.h. */
8057#include <stddef.h>
8058int
8059main ()
8060{
8061static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
8062test_array [0] = 0
8063
8064 ;
8065 return 0;
8066}
8067_ACEOF
8068rm -f conftest.$ac_objext
8069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8070 (eval $ac_compile) 2>conftest.er1
8071 ac_status=$?
8072 grep -v '^ *+' conftest.er1 >conftest.err
8073 rm -f conftest.er1
8074 cat conftest.err >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } &&
8077 { ac_try='test -z "$ac_cxx_werror_flag"
8078 || test ! -s conftest.err'
8079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080 (eval $ac_try) 2>&5
8081 ac_status=$?
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }; } &&
8084 { ac_try='test -s conftest.$ac_objext'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 (eval $ac_try) 2>&5
8087 ac_status=$?
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; }; then
8090 ac_hi=-1 ac_mid=-1
8091 while :; do
8092 cat >conftest.$ac_ext <<_ACEOF
8093/* confdefs.h. */
8094_ACEOF
8095cat confdefs.h >>conftest.$ac_ext
8096cat >>conftest.$ac_ext <<_ACEOF
8097/* end confdefs.h. */
8098#include <stddef.h>
8099int
8100main ()
8101{
8102static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
8103test_array [0] = 0
8104
8105 ;
8106 return 0;
8107}
8108_ACEOF
8109rm -f conftest.$ac_objext
8110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8111 (eval $ac_compile) 2>conftest.er1
8112 ac_status=$?
8113 grep -v '^ *+' conftest.er1 >conftest.err
8114 rm -f conftest.er1
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try='test -z "$ac_cxx_werror_flag"
8119 || test ! -s conftest.err'
8120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121 (eval $ac_try) 2>&5
8122 ac_status=$?
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; } &&
8125 { ac_try='test -s conftest.$ac_objext'
8126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127 (eval $ac_try) 2>&5
8128 ac_status=$?
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; }; then
8131 ac_lo=$ac_mid; break
8132else
8133 echo "$as_me: failed program was:" >&5
8134sed 's/^/| /' conftest.$ac_ext >&5
8135
8136ac_hi=`expr '(' $ac_mid ')' - 1`
8137 if test $ac_mid -le $ac_hi; then
8138 ac_lo= ac_hi=
8139 break
8140 fi
8141 ac_mid=`expr 2 '*' $ac_mid`
8142fi
8143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8144 done
8145else
8146 echo "$as_me: failed program was:" >&5
8147sed 's/^/| /' conftest.$ac_ext >&5
8148
8149ac_lo= ac_hi=
8150fi
8151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8152fi
8153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8154# Binary search between lo and hi bounds.
8155while test "x$ac_lo" != "x$ac_hi"; do
8156 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8157 cat >conftest.$ac_ext <<_ACEOF
8158/* confdefs.h. */
8159_ACEOF
8160cat confdefs.h >>conftest.$ac_ext
8161cat >>conftest.$ac_ext <<_ACEOF
8162/* end confdefs.h. */
8163#include <stddef.h>
8164int
8165main ()
8166{
8167static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8168test_array [0] = 0
8169
8170 ;
8171 return 0;
8172}
8173_ACEOF
8174rm -f conftest.$ac_objext
8175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8176 (eval $ac_compile) 2>conftest.er1
8177 ac_status=$?
8178 grep -v '^ *+' conftest.er1 >conftest.err
8179 rm -f conftest.er1
8180 cat conftest.err >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); } &&
8183 { ac_try='test -z "$ac_cxx_werror_flag"
8184 || test ! -s conftest.err'
8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 (eval $ac_try) 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; } &&
8190 { ac_try='test -s conftest.$ac_objext'
8191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192 (eval $ac_try) 2>&5
8193 ac_status=$?
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }; }; then
8196 ac_hi=$ac_mid
8197else
8198 echo "$as_me: failed program was:" >&5
8199sed 's/^/| /' conftest.$ac_ext >&5
8200
8201ac_lo=`expr '(' $ac_mid ')' + 1`
8202fi
8203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8204done
8205case $ac_lo in
8206?*) res_lo=$ac_lo;;
8207'') result=? ;;
8208esac
8209else
8210 if test "$cross_compiling" = yes; then
8211 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8212See \`config.log' for more details." >&5
8213echo "$as_me: error: cannot run test program while cross compiling
8214See \`config.log' for more details." >&2;}
8215 { (exit 1); exit 1; }; }
8216else
8217 cat >conftest.$ac_ext <<_ACEOF
8218/* confdefs.h. */
8219_ACEOF
8220cat confdefs.h >>conftest.$ac_ext
8221cat >>conftest.$ac_ext <<_ACEOF
8222/* end confdefs.h. */
8223#include <stddef.h>
8224long longval () { return ~(size_t)0 % 10; }
8225unsigned long ulongval () { return ~(size_t)0 % 10; }
8226#include <stdio.h>
8227#include <stdlib.h>
8228int
8229main ()
8230{
8231
8232 FILE *f = fopen ("conftest.val", "w");
8233 if (! f)
8234 exit (1);
8235 if ((~(size_t)0 % 10) < 0)
8236 {
8237 long i = longval ();
8238 if (i != (~(size_t)0 % 10))
8239 exit (1);
8240 fprintf (f, "%ld\n", i);
8241 }
8242 else
8243 {
8244 unsigned long i = ulongval ();
8245 if (i != (~(size_t)0 % 10))
8246 exit (1);
8247 fprintf (f, "%lu\n", i);
8248 }
8249 exit (ferror (f) || fclose (f) != 0);
8250
8251 ;
8252 return 0;
8253}
8254_ACEOF
8255rm -f conftest$ac_exeext
8256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8257 (eval $ac_link) 2>&5
8258 ac_status=$?
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 (eval $ac_try) 2>&5
8263 ac_status=$?
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; }; then
8266 res_lo=`cat conftest.val`
8267else
8268 echo "$as_me: program exited with status $ac_status" >&5
8269echo "$as_me: failed program was:" >&5
8270sed 's/^/| /' conftest.$ac_ext >&5
8271
8272( exit $ac_status )
8273result=?
8274fi
8275rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8276fi
8277fi
8278rm -f conftest.val
8279 if test "$cross_compiling" = yes; then
8280 # Depending upon the size, compute the lo and hi bounds.
8281cat >conftest.$ac_ext <<_ACEOF
8282/* confdefs.h. */
8283_ACEOF
8284cat confdefs.h >>conftest.$ac_ext
8285cat >>conftest.$ac_ext <<_ACEOF
8286/* end confdefs.h. */
8287#include <stddef.h>
8288int
8289main ()
8290{
8291static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
8292test_array [0] = 0
8293
8294 ;
8295 return 0;
8296}
8297_ACEOF
8298rm -f conftest.$ac_objext
8299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8300 (eval $ac_compile) 2>conftest.er1
8301 ac_status=$?
8302 grep -v '^ *+' conftest.er1 >conftest.err
8303 rm -f conftest.er1
8304 cat conftest.err >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } &&
8307 { ac_try='test -z "$ac_cxx_werror_flag"
8308 || test ! -s conftest.err'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310 (eval $ac_try) 2>&5
8311 ac_status=$?
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; } &&
8314 { ac_try='test -s conftest.$ac_objext'
8315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316 (eval $ac_try) 2>&5
8317 ac_status=$?
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; }; then
8320 ac_lo=0 ac_mid=0
8321 while :; do
8322 cat >conftest.$ac_ext <<_ACEOF
8323/* confdefs.h. */
8324_ACEOF
8325cat confdefs.h >>conftest.$ac_ext
8326cat >>conftest.$ac_ext <<_ACEOF
8327/* end confdefs.h. */
8328#include <stddef.h>
8329int
8330main ()
8331{
8332static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8333test_array [0] = 0
8334
8335 ;
8336 return 0;
8337}
8338_ACEOF
8339rm -f conftest.$ac_objext
8340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8341 (eval $ac_compile) 2>conftest.er1
8342 ac_status=$?
8343 grep -v '^ *+' conftest.er1 >conftest.err
8344 rm -f conftest.er1
8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } &&
8348 { ac_try='test -z "$ac_cxx_werror_flag"
8349 || test ! -s conftest.err'
8350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351 (eval $ac_try) 2>&5
8352 ac_status=$?
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); }; } &&
8355 { ac_try='test -s conftest.$ac_objext'
8356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 (eval $ac_try) 2>&5
8358 ac_status=$?
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); }; }; then
8361 ac_hi=$ac_mid; break
8362else
8363 echo "$as_me: failed program was:" >&5
8364sed 's/^/| /' conftest.$ac_ext >&5
8365
8366ac_lo=`expr $ac_mid + 1`
8367 if test $ac_lo -le $ac_mid; then
8368 ac_lo= ac_hi=
8369 break
8370 fi
8371 ac_mid=`expr 2 '*' $ac_mid + 1`
8372fi
8373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8374 done
8375else
8376 echo "$as_me: failed program was:" >&5
8377sed 's/^/| /' conftest.$ac_ext >&5
8378
8379cat >conftest.$ac_ext <<_ACEOF
8380/* confdefs.h. */
8381_ACEOF
8382cat confdefs.h >>conftest.$ac_ext
8383cat >>conftest.$ac_ext <<_ACEOF
8384/* end confdefs.h. */
8385#include <stddef.h>
8386int
8387main ()
8388{
8389static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8390test_array [0] = 0
8391
8392 ;
8393 return 0;
8394}
8395_ACEOF
8396rm -f conftest.$ac_objext
8397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8398 (eval $ac_compile) 2>conftest.er1
8399 ac_status=$?
8400 grep -v '^ *+' conftest.er1 >conftest.err
8401 rm -f conftest.er1
8402 cat conftest.err >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } &&
8405 { ac_try='test -z "$ac_cxx_werror_flag"
8406 || test ! -s conftest.err'
8407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408 (eval $ac_try) 2>&5
8409 ac_status=$?
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; } &&
8412 { ac_try='test -s conftest.$ac_objext'
8413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414 (eval $ac_try) 2>&5
8415 ac_status=$?
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }; }; then
8418 ac_hi=-1 ac_mid=-1
8419 while :; do
8420 cat >conftest.$ac_ext <<_ACEOF
8421/* confdefs.h. */
8422_ACEOF
8423cat confdefs.h >>conftest.$ac_ext
8424cat >>conftest.$ac_ext <<_ACEOF
8425/* end confdefs.h. */
8426#include <stddef.h>
8427int
8428main ()
8429{
8430static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8431test_array [0] = 0
8432
8433 ;
8434 return 0;
8435}
8436_ACEOF
8437rm -f conftest.$ac_objext
8438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8439 (eval $ac_compile) 2>conftest.er1
8440 ac_status=$?
8441 grep -v '^ *+' conftest.er1 >conftest.err
8442 rm -f conftest.er1
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -z "$ac_cxx_werror_flag"
8447 || test ! -s conftest.err'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 (eval $ac_try) 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; } &&
8453 { ac_try='test -s conftest.$ac_objext'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455 (eval $ac_try) 2>&5
8456 ac_status=$?
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8459 ac_lo=$ac_mid; break
8460else
8461 echo "$as_me: failed program was:" >&5
8462sed 's/^/| /' conftest.$ac_ext >&5
8463
8464ac_hi=`expr '(' $ac_mid ')' - 1`
8465 if test $ac_mid -le $ac_hi; then
8466 ac_lo= ac_hi=
8467 break
8468 fi
8469 ac_mid=`expr 2 '*' $ac_mid`
8470fi
8471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8472 done
8473else
8474 echo "$as_me: failed program was:" >&5
8475sed 's/^/| /' conftest.$ac_ext >&5
8476
8477ac_lo= ac_hi=
8478fi
8479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8480fi
8481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8482# Binary search between lo and hi bounds.
8483while test "x$ac_lo" != "x$ac_hi"; do
8484 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8485 cat >conftest.$ac_ext <<_ACEOF
8486/* confdefs.h. */
8487_ACEOF
8488cat confdefs.h >>conftest.$ac_ext
8489cat >>conftest.$ac_ext <<_ACEOF
8490/* end confdefs.h. */
8491#include <stddef.h>
8492int
8493main ()
8494{
8495static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8496test_array [0] = 0
8497
8498 ;
8499 return 0;
8500}
8501_ACEOF
8502rm -f conftest.$ac_objext
8503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8504 (eval $ac_compile) 2>conftest.er1
8505 ac_status=$?
8506 grep -v '^ *+' conftest.er1 >conftest.err
8507 rm -f conftest.er1
8508 cat conftest.err >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } &&
8511 { ac_try='test -z "$ac_cxx_werror_flag"
8512 || test ! -s conftest.err'
8513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514 (eval $ac_try) 2>&5
8515 ac_status=$?
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); }; } &&
8518 { ac_try='test -s conftest.$ac_objext'
8519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 (eval $ac_try) 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; }; then
8524 ac_hi=$ac_mid
8525else
8526 echo "$as_me: failed program was:" >&5
8527sed 's/^/| /' conftest.$ac_ext >&5
8528
8529ac_lo=`expr '(' $ac_mid ')' + 1`
8530fi
8531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8532done
8533case $ac_lo in
8534?*) fits_in_uint=$ac_lo;;
8535'') result=? ;;
8536esac
8537else
8538 if test "$cross_compiling" = yes; then
8539 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8540See \`config.log' for more details." >&5
8541echo "$as_me: error: cannot run test program while cross compiling
8542See \`config.log' for more details." >&2;}
8543 { (exit 1); exit 1; }; }
8544else
8545 cat >conftest.$ac_ext <<_ACEOF
8546/* confdefs.h. */
8547_ACEOF
8548cat confdefs.h >>conftest.$ac_ext
8549cat >>conftest.$ac_ext <<_ACEOF
8550/* end confdefs.h. */
8551#include <stddef.h>
8552long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8553unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8554#include <stdio.h>
8555#include <stdlib.h>
8556int
8557main ()
8558{
8559
8560 FILE *f = fopen ("conftest.val", "w");
8561 if (! f)
8562 exit (1);
8563 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8564 {
8565 long i = longval ();
8566 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8567 exit (1);
8568 fprintf (f, "%ld\n", i);
8569 }
8570 else
8571 {
8572 unsigned long i = ulongval ();
8573 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8574 exit (1);
8575 fprintf (f, "%lu\n", i);
8576 }
8577 exit (ferror (f) || fclose (f) != 0);
8578
8579 ;
8580 return 0;
8581}
8582_ACEOF
8583rm -f conftest$ac_exeext
8584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8585 (eval $ac_link) 2>&5
8586 ac_status=$?
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590 (eval $ac_try) 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 fits_in_uint=`cat conftest.val`
8595else
8596 echo "$as_me: program exited with status $ac_status" >&5
8597echo "$as_me: failed program was:" >&5
8598sed 's/^/| /' conftest.$ac_ext >&5
8599
8600( exit $ac_status )
8601result=?
8602fi
8603rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8604fi
8605fi
8606rm -f conftest.val
8607 if test "$fits_in_uint" = 1; then
8608 cat >conftest.$ac_ext <<_ACEOF
8609/* confdefs.h. */
8610_ACEOF
8611cat confdefs.h >>conftest.$ac_ext
8612cat >>conftest.$ac_ext <<_ACEOF
8613/* end confdefs.h. */
8614#include <stddef.h>
8615 extern size_t foo;
8616 extern unsigned long foo;
8617
8618int
8619main ()
8620{
8621
8622 ;
8623 return 0;
8624}
8625_ACEOF
8626rm -f conftest.$ac_objext
8627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8628 (eval $ac_compile) 2>conftest.er1
8629 ac_status=$?
8630 grep -v '^ *+' conftest.er1 >conftest.err
8631 rm -f conftest.er1
8632 cat conftest.err >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); } &&
8635 { ac_try='test -z "$ac_cxx_werror_flag"
8636 || test ! -s conftest.err'
8637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638 (eval $ac_try) 2>&5
8639 ac_status=$?
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; } &&
8642 { ac_try='test -s conftest.$ac_objext'
8643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644 (eval $ac_try) 2>&5
8645 ac_status=$?
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; }; then
8648 fits_in_uint=0
8649else
8650 echo "$as_me: failed program was:" >&5
8651sed 's/^/| /' conftest.$ac_ext >&5
8652
8653fi
8654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8655 fi
8656 if test -z "$result"; then
8657 if test "$fits_in_uint" = 1; then
8658 result="$res_hi$res_lo"U
8659 else
8660 result="$res_hi$res_lo"UL
8661 fi
8662 else
8663 result='~(size_t)0'
8664 fi
8665 fi
8666 echo "$as_me:$LINENO: result: $result" >&5
8667echo "${ECHO_T}$result" >&6
8668 if test "$result" != yes; then
8669
8670cat >>confdefs.h <<_ACEOF
8671#define SIZE_MAX $result
8672_ACEOF
8673
8674 fi
8675
8676
8677
8678
8679for ac_header in stdint.h
8680do
8681as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8682if eval "test \"\${$as_ac_Header+set}\" = set"; then
8683 echo "$as_me:$LINENO: checking for $ac_header" >&5
8684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8685if eval "test \"\${$as_ac_Header+set}\" = set"; then
8686 echo $ECHO_N "(cached) $ECHO_C" >&6
8687fi
8688echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8689echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8690else
8691 # Is the header compilable?
8692echo "$as_me:$LINENO: checking $ac_header usability" >&5
8693echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8694cat >conftest.$ac_ext <<_ACEOF
8695/* confdefs.h. */
8696_ACEOF
8697cat confdefs.h >>conftest.$ac_ext
8698cat >>conftest.$ac_ext <<_ACEOF
8699/* end confdefs.h. */
8700$ac_includes_default
8701#include <$ac_header>
8702_ACEOF
8703rm -f conftest.$ac_objext
8704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8705 (eval $ac_compile) 2>conftest.er1
8706 ac_status=$?
8707 grep -v '^ *+' conftest.er1 >conftest.err
8708 rm -f conftest.er1
8709 cat conftest.err >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); } &&
8712 { ac_try='test -z "$ac_cxx_werror_flag"
8713 || test ! -s conftest.err'
8714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 (eval $ac_try) 2>&5
8716 ac_status=$?
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); }; } &&
8719 { ac_try='test -s conftest.$ac_objext'
8720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721 (eval $ac_try) 2>&5
8722 ac_status=$?
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); }; }; then
8725 ac_header_compiler=yes
8726else
8727 echo "$as_me: failed program was:" >&5
8728sed 's/^/| /' conftest.$ac_ext >&5
8729
8730ac_header_compiler=no
8731fi
8732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8733echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8734echo "${ECHO_T}$ac_header_compiler" >&6
8735
8736# Is the header present?
8737echo "$as_me:$LINENO: checking $ac_header presence" >&5
8738echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8739cat >conftest.$ac_ext <<_ACEOF
8740/* confdefs.h. */
8741_ACEOF
8742cat confdefs.h >>conftest.$ac_ext
8743cat >>conftest.$ac_ext <<_ACEOF
8744/* end confdefs.h. */
8745#include <$ac_header>
8746_ACEOF
8747if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8749 ac_status=$?
8750 grep -v '^ *+' conftest.er1 >conftest.err
8751 rm -f conftest.er1
8752 cat conftest.err >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); } >/dev/null; then
8755 if test -s conftest.err; then
8756 ac_cpp_err=$ac_cxx_preproc_warn_flag
8757 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8758 else
8759 ac_cpp_err=
8760 fi
8761else
8762 ac_cpp_err=yes
8763fi
8764if test -z "$ac_cpp_err"; then
8765 ac_header_preproc=yes
8766else
8767 echo "$as_me: failed program was:" >&5
8768sed 's/^/| /' conftest.$ac_ext >&5
8769
8770 ac_header_preproc=no
8771fi
8772rm -f conftest.err conftest.$ac_ext
8773echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8774echo "${ECHO_T}$ac_header_preproc" >&6
8775
8776# So? What about this header?
8777case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8778 yes:no: )
8779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8780echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8782echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8783 ac_header_preproc=yes
8784 ;;
8785 no:yes:* )
8786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8787echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8789echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8790 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8791echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8792 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8793echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8795echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8796 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8797echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8798 (
8799 cat <<\_ASBOX
8800## ------------------------------------------ ##
8801## Report this to the AC_PACKAGE_NAME lists. ##
8802## ------------------------------------------ ##
8803_ASBOX
8804 ) |
8805 sed "s/^/$as_me: WARNING: /" >&2
8806 ;;
8807esac
8808echo "$as_me:$LINENO: checking for $ac_header" >&5
8809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8810if eval "test \"\${$as_ac_Header+set}\" = set"; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8812else
8813 eval "$as_ac_Header=\$ac_header_preproc"
8814fi
8815echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8816echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8817
8818fi
8819if test `eval echo '${'$as_ac_Header'}'` = yes; then
8820 cat >>confdefs.h <<_ACEOF
8821#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8822_ACEOF
8823
8824fi
8825
8826done
8827
8828
8829
8830 if test "X$prefix" = "XNONE"; then
8831 acl_final_prefix="$ac_default_prefix"
8832 else
8833 acl_final_prefix="$prefix"
8834 fi
8835 if test "X$exec_prefix" = "XNONE"; then
8836 acl_final_exec_prefix='${prefix}'
8837 else
8838 acl_final_exec_prefix="$exec_prefix"
8839 fi
8840 acl_save_prefix="$prefix"
8841 prefix="$acl_final_prefix"
8842 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8843 prefix="$acl_save_prefix"
8844
8845
8846# Check whether --with-gnu-ld or --without-gnu-ld was given.
8847if test "${with_gnu_ld+set}" = set; then
8848 withval="$with_gnu_ld"
8849 test "$withval" = no || with_gnu_ld=yes
8850else
8851 with_gnu_ld=no
8852fi;
8853# Prepare PATH_SEPARATOR.
8854# The user is always right.
8855if test "${PATH_SEPARATOR+set}" != set; then
8856 echo "#! /bin/sh" >conf$$.sh
8857 echo "exit 0" >>conf$$.sh
8858 chmod +x conf$$.sh
8859 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8860 PATH_SEPARATOR=';'
8861 else
8862 PATH_SEPARATOR=:
8863 fi
8864 rm -f conf$$.sh
8865fi
8866ac_prog=ld
8867if test "$GCC" = yes; then
8868 # Check if gcc -print-prog-name=ld gives a path.
8869 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8870echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
8871 case $host in
8872 *-*-mingw*)
8873 # gcc leaves a trailing carriage return which upsets mingw
8874 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8875 *)
8876 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8877 esac
8878 case $ac_prog in
8879 # Accept absolute paths.
8880 [\\/]* | [A-Za-z]:[\\/]*)
8881 re_direlt='/[^/][^/]*/\.\./'
8882 # Canonicalize the path of ld
8883 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8884 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8885 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8886 done
8887 test -z "$LD" && LD="$ac_prog"
8888 ;;
8889 "")
8890 # If it fails, then pretend we aren't using GCC.
8891 ac_prog=ld
8892 ;;
8893 *)
8894 # If it is relative, then search for the first ld in PATH.
8895 with_gnu_ld=unknown
8896 ;;
8897 esac
8898elif test "$with_gnu_ld" = yes; then
8899 echo "$as_me:$LINENO: checking for GNU ld" >&5
8900echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8901else
8902 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8903echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8904fi
8905if test "${acl_cv_path_LD+set}" = set; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8907else
8908 if test -z "$LD"; then
8909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8910 for ac_dir in $PATH; do
8911 test -z "$ac_dir" && ac_dir=.
8912 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8913 acl_cv_path_LD="$ac_dir/$ac_prog"
8914 # Check to see if the program is GNU ld. I'd rather use --version,
8915 # but apparently some GNU ld's only accept -v.
8916 # Break only if it was the GNU/non-GNU ld that we prefer.
8917 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8918 *GNU* | *'with BFD'*)
8919 test "$with_gnu_ld" != no && break ;;
8920 *)
8921 test "$with_gnu_ld" != yes && break ;;
8922 esac
8923 fi
8924 done
8925 IFS="$ac_save_ifs"
8926else
8927 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8928fi
8929fi
8930
8931LD="$acl_cv_path_LD"
8932if test -n "$LD"; then
8933 echo "$as_me:$LINENO: result: $LD" >&5
8934echo "${ECHO_T}$LD" >&6
8935else
8936 echo "$as_me:$LINENO: result: no" >&5
8937echo "${ECHO_T}no" >&6
8938fi
8939test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8940echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8941 { (exit 1); exit 1; }; }
8942echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8943echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8944if test "${acl_cv_prog_gnu_ld+set}" = set; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
8946else
8947 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8948case `$LD -v 2>&1 </dev/null` in
8949*GNU* | *'with BFD'*)
8950 acl_cv_prog_gnu_ld=yes ;;
8951*)
8952 acl_cv_prog_gnu_ld=no ;;
8953esac
8954fi
8955echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8956echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
8957with_gnu_ld=$acl_cv_prog_gnu_ld
8958
8959
8960
8961 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8962echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
8963if test "${acl_cv_rpath+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8965else
8966
8967 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8968 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8969 . ./conftest.sh
8970 rm -f ./conftest.sh
8971 acl_cv_rpath=done
8972
8973fi
8974echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8975echo "${ECHO_T}$acl_cv_rpath" >&6
8976 wl="$acl_cv_wl"
8977 libext="$acl_cv_libext"
8978 shlibext="$acl_cv_shlibext"
8979 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8980 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8981 hardcode_direct="$acl_cv_hardcode_direct"
8982 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8983 # Check whether --enable-rpath or --disable-rpath was given.
8984if test "${enable_rpath+set}" = set; then
8985 enableval="$enable_rpath"
8986 :
8987else
8988 enable_rpath=yes
8989fi;
8990
8991
8992
8993
8994
8995
8996
8997 use_additional=yes
8998
8999 acl_save_prefix="$prefix"
9000 prefix="$acl_final_prefix"
9001 acl_save_exec_prefix="$exec_prefix"
9002 exec_prefix="$acl_final_exec_prefix"
9003
9004 eval additional_includedir=\"$includedir\"
9005 eval additional_libdir=\"$libdir\"
9006
9007 exec_prefix="$acl_save_exec_prefix"
9008 prefix="$acl_save_prefix"
9009
9010
9011# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9012if test "${with_libiconv_prefix+set}" = set; then
9013 withval="$with_libiconv_prefix"
9014
9015 if test "X$withval" = "Xno"; then
9016 use_additional=no
9017 else
9018 if test "X$withval" = "X"; then
9019
9020 acl_save_prefix="$prefix"
9021 prefix="$acl_final_prefix"
9022 acl_save_exec_prefix="$exec_prefix"
9023 exec_prefix="$acl_final_exec_prefix"
9024
9025 eval additional_includedir=\"$includedir\"
9026 eval additional_libdir=\"$libdir\"
9027
9028 exec_prefix="$acl_save_exec_prefix"
9029 prefix="$acl_save_prefix"
9030
9031 else
9032 additional_includedir="$withval/include"
9033 additional_libdir="$withval/lib"
9034 fi
9035 fi
9036
9037fi;
9038 LIBICONV=
9039 LTLIBICONV=
9040 INCICONV=
9041 rpathdirs=
9042 ltrpathdirs=
9043 names_already_handled=
9044 names_next_round='iconv '
9045 while test -n "$names_next_round"; do
9046 names_this_round="$names_next_round"
9047 names_next_round=
9048 for name in $names_this_round; do
9049 already_handled=
9050 for n in $names_already_handled; do
9051 if test "$n" = "$name"; then
9052 already_handled=yes
9053 break
9054 fi
9055 done
9056 if test -z "$already_handled"; then
9057 names_already_handled="$names_already_handled $name"
9058 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9059 eval value=\"\$HAVE_LIB$uppername\"
9060 if test -n "$value"; then
9061 if test "$value" = yes; then
9062 eval value=\"\$LIB$uppername\"
9063 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9064 eval value=\"\$LTLIB$uppername\"
9065 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9066 else
9067 :
9068 fi
9069 else
9070 found_dir=
9071 found_la=
9072 found_so=
9073 found_a=
9074 if test $use_additional = yes; then
9075 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9076 found_dir="$additional_libdir"
9077 found_so="$additional_libdir/lib$name.$shlibext"
9078 if test -f "$additional_libdir/lib$name.la"; then
9079 found_la="$additional_libdir/lib$name.la"
9080 fi
9081 else
9082 if test -f "$additional_libdir/lib$name.$libext"; then
9083 found_dir="$additional_libdir"
9084 found_a="$additional_libdir/lib$name.$libext"
9085 if test -f "$additional_libdir/lib$name.la"; then
9086 found_la="$additional_libdir/lib$name.la"
9087 fi
9088 fi
9089 fi
9090 fi
9091 if test "X$found_dir" = "X"; then
9092 for x in $LDFLAGS $LTLIBICONV; do
9093
9094 acl_save_prefix="$prefix"
9095 prefix="$acl_final_prefix"
9096 acl_save_exec_prefix="$exec_prefix"
9097 exec_prefix="$acl_final_exec_prefix"
9098 eval x=\"$x\"
9099 exec_prefix="$acl_save_exec_prefix"
9100 prefix="$acl_save_prefix"
9101
9102 case "$x" in
9103 -L*)
9104 dir=`echo "X$x" | sed -e 's/^X-L//'`
9105 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9106 found_dir="$dir"
9107 found_so="$dir/lib$name.$shlibext"
9108 if test -f "$dir/lib$name.la"; then
9109 found_la="$dir/lib$name.la"
9110 fi
9111 else
9112 if test -f "$dir/lib$name.$libext"; then
9113 found_dir="$dir"
9114 found_a="$dir/lib$name.$libext"
9115 if test -f "$dir/lib$name.la"; then
9116 found_la="$dir/lib$name.la"
9117 fi
9118 fi
9119 fi
9120 ;;
9121 esac
9122 if test "X$found_dir" != "X"; then
9123 break
9124 fi
9125 done
9126 fi
9127 if test "X$found_dir" != "X"; then
9128 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9129 if test "X$found_so" != "X"; then
9130 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9131 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9132 else
9133 haveit=
9134 for x in $ltrpathdirs; do
9135 if test "X$x" = "X$found_dir"; then
9136 haveit=yes
9137 break
9138 fi
9139 done
9140 if test -z "$haveit"; then
9141 ltrpathdirs="$ltrpathdirs $found_dir"
9142 fi
9143 if test "$hardcode_direct" = yes; then
9144 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9145 else
9146 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9147 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9148 haveit=
9149 for x in $rpathdirs; do
9150 if test "X$x" = "X$found_dir"; then
9151 haveit=yes
9152 break
9153 fi
9154 done
9155 if test -z "$haveit"; then
9156 rpathdirs="$rpathdirs $found_dir"
9157 fi
9158 else
9159 haveit=
9160 for x in $LDFLAGS $LIBICONV; do
9161
9162 acl_save_prefix="$prefix"
9163 prefix="$acl_final_prefix"
9164 acl_save_exec_prefix="$exec_prefix"
9165 exec_prefix="$acl_final_exec_prefix"
9166 eval x=\"$x\"
9167 exec_prefix="$acl_save_exec_prefix"
9168 prefix="$acl_save_prefix"
9169
9170 if test "X$x" = "X-L$found_dir"; then
9171 haveit=yes
9172 break
9173 fi
9174 done
9175 if test -z "$haveit"; then
9176 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9177 fi
9178 if test "$hardcode_minus_L" != no; then
9179 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9180 else
9181 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9182 fi
9183 fi
9184 fi
9185 fi
9186 else
9187 if test "X$found_a" != "X"; then
9188 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9189 else
9190 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9191 fi
9192 fi
9193 additional_includedir=
9194 case "$found_dir" in
9195 */lib | */lib/)
9196 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9197 additional_includedir="$basedir/include"
9198 ;;
9199 esac
9200 if test "X$additional_includedir" != "X"; then
9201 if test "X$additional_includedir" != "X/usr/include"; then
9202 haveit=
9203 if test "X$additional_includedir" = "X/usr/local/include"; then
9204 if test -n "$GCC"; then
9205 case $host_os in
9206 linux*) haveit=yes;;
9207 esac
9208 fi
9209 fi
9210 if test -z "$haveit"; then
9211 for x in $CPPFLAGS $INCICONV; do
9212
9213 acl_save_prefix="$prefix"
9214 prefix="$acl_final_prefix"
9215 acl_save_exec_prefix="$exec_prefix"
9216 exec_prefix="$acl_final_exec_prefix"
9217 eval x=\"$x\"
9218 exec_prefix="$acl_save_exec_prefix"
9219 prefix="$acl_save_prefix"
9220
9221 if test "X$x" = "X-I$additional_includedir"; then
9222 haveit=yes
9223 break
9224 fi
9225 done
9226 if test -z "$haveit"; then
9227 if test -d "$additional_includedir"; then
9228 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9229 fi
9230 fi
9231 fi
9232 fi
9233 fi
9234 if test -n "$found_la"; then
9235 save_libdir="$libdir"
9236 case "$found_la" in
9237 */* | *\\*) . "$found_la" ;;
9238 *) . "./$found_la" ;;
9239 esac
9240 libdir="$save_libdir"
9241 for dep in $dependency_libs; do
9242 case "$dep" in
9243 -L*)
9244 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9245 if test "X$additional_libdir" != "X/usr/lib"; then
9246 haveit=
9247 if test "X$additional_libdir" = "X/usr/local/lib"; then
9248 if test -n "$GCC"; then
9249 case $host_os in
9250 linux*) haveit=yes;;
9251 esac
9252 fi
9253 fi
9254 if test -z "$haveit"; then
9255 haveit=
9256 for x in $LDFLAGS $LIBICONV; do
9257
9258 acl_save_prefix="$prefix"
9259 prefix="$acl_final_prefix"
9260 acl_save_exec_prefix="$exec_prefix"
9261 exec_prefix="$acl_final_exec_prefix"
9262 eval x=\"$x\"
9263 exec_prefix="$acl_save_exec_prefix"
9264 prefix="$acl_save_prefix"
9265
9266 if test "X$x" = "X-L$additional_libdir"; then
9267 haveit=yes
9268 break
9269 fi
9270 done
9271 if test -z "$haveit"; then
9272 if test -d "$additional_libdir"; then
9273 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9274 fi
9275 fi
9276 haveit=
9277 for x in $LDFLAGS $LTLIBICONV; do
9278
9279 acl_save_prefix="$prefix"
9280 prefix="$acl_final_prefix"
9281 acl_save_exec_prefix="$exec_prefix"
9282 exec_prefix="$acl_final_exec_prefix"
9283 eval x=\"$x\"
9284 exec_prefix="$acl_save_exec_prefix"
9285 prefix="$acl_save_prefix"
9286
9287 if test "X$x" = "X-L$additional_libdir"; then
9288 haveit=yes
9289 break
9290 fi
9291 done
9292 if test -z "$haveit"; then
9293 if test -d "$additional_libdir"; then
9294 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9295 fi
9296 fi
9297 fi
9298 fi
9299 ;;
9300 -R*)
9301 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9302 if test "$enable_rpath" != no; then
9303 haveit=
9304 for x in $rpathdirs; do
9305 if test "X$x" = "X$dir"; then
9306 haveit=yes
9307 break
9308 fi
9309 done
9310 if test -z "$haveit"; then
9311 rpathdirs="$rpathdirs $dir"
9312 fi
9313 haveit=
9314 for x in $ltrpathdirs; do
9315 if test "X$x" = "X$dir"; then
9316 haveit=yes
9317 break
9318 fi
9319 done
9320 if test -z "$haveit"; then
9321 ltrpathdirs="$ltrpathdirs $dir"
9322 fi
9323 fi
9324 ;;
9325 -l*)
9326 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9327 ;;
9328 *.la)
9329 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9330 ;;
9331 *)
9332 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9333 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9334 ;;
9335 esac
9336 done
9337 fi
9338 else
9339 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9340 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9341 fi
9342 fi
9343 fi
9344 done
9345 done
9346 if test "X$rpathdirs" != "X"; then
9347 if test -n "$hardcode_libdir_separator"; then
9348 alldirs=
9349 for found_dir in $rpathdirs; do
9350 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9351 done
9352 acl_save_libdir="$libdir"
9353 libdir="$alldirs"
9354 eval flag=\"$hardcode_libdir_flag_spec\"
9355 libdir="$acl_save_libdir"
9356 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9357 else
9358 for found_dir in $rpathdirs; do
9359 acl_save_libdir="$libdir"
9360 libdir="$found_dir"
9361 eval flag=\"$hardcode_libdir_flag_spec\"
9362 libdir="$acl_save_libdir"
9363 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9364 done
9365 fi
9366 fi
9367 if test "X$ltrpathdirs" != "X"; then
9368 for found_dir in $ltrpathdirs; do
9369 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9370 done
9371 fi
9372
9373
9374
9375
9376
9377
9378
9379
9380 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9381echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
9382if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9384else
9385 cat >conftest.$ac_ext <<_ACEOF
9386/* confdefs.h. */
9387_ACEOF
9388cat confdefs.h >>conftest.$ac_ext
9389cat >>conftest.$ac_ext <<_ACEOF
9390/* end confdefs.h. */
9391$ac_includes_default
9392int
9393main ()
9394{
9395if ((ptrdiff_t *) 0)
9396 return 0;
9397if (sizeof (ptrdiff_t))
9398 return 0;
9399 ;
9400 return 0;
9401}
9402_ACEOF
9403rm -f conftest.$ac_objext
9404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9405 (eval $ac_compile) 2>conftest.er1
9406 ac_status=$?
9407 grep -v '^ *+' conftest.er1 >conftest.err
9408 rm -f conftest.er1
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } &&
9412 { ac_try='test -z "$ac_cxx_werror_flag"
9413 || test ! -s conftest.err'
9414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415 (eval $ac_try) 2>&5
9416 ac_status=$?
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }; } &&
9419 { ac_try='test -s conftest.$ac_objext'
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 (eval $ac_try) 2>&5
9422 ac_status=$?
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; }; then
9425 ac_cv_type_ptrdiff_t=yes
9426else
9427 echo "$as_me: failed program was:" >&5
9428sed 's/^/| /' conftest.$ac_ext >&5
9429
9430ac_cv_type_ptrdiff_t=no
9431fi
9432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9433fi
9434echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9435echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
9436if test $ac_cv_type_ptrdiff_t = yes; then
9437 :
9438else
9439
9440cat >>confdefs.h <<\_ACEOF
9441#define ptrdiff_t long
9442_ACEOF
9443
9444
9445fi
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9458stdlib.h string.h unistd.h sys/param.h
9459do
9460as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9461if eval "test \"\${$as_ac_Header+set}\" = set"; then
9462 echo "$as_me:$LINENO: checking for $ac_header" >&5
9463echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9464if eval "test \"\${$as_ac_Header+set}\" = set"; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
9466fi
9467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9469else
9470 # Is the header compilable?
9471echo "$as_me:$LINENO: checking $ac_header usability" >&5
9472echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9473cat >conftest.$ac_ext <<_ACEOF
9474/* confdefs.h. */
9475_ACEOF
9476cat confdefs.h >>conftest.$ac_ext
9477cat >>conftest.$ac_ext <<_ACEOF
9478/* end confdefs.h. */
9479$ac_includes_default
9480#include <$ac_header>
9481_ACEOF
9482rm -f conftest.$ac_objext
9483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9484 (eval $ac_compile) 2>conftest.er1
9485 ac_status=$?
9486 grep -v '^ *+' conftest.er1 >conftest.err
9487 rm -f conftest.er1
9488 cat conftest.err >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } &&
9491 { ac_try='test -z "$ac_cxx_werror_flag"
9492 || test ! -s conftest.err'
9493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494 (eval $ac_try) 2>&5
9495 ac_status=$?
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; } &&
9498 { ac_try='test -s conftest.$ac_objext'
9499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500 (eval $ac_try) 2>&5
9501 ac_status=$?
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; }; then
9504 ac_header_compiler=yes
9505else
9506 echo "$as_me: failed program was:" >&5
9507sed 's/^/| /' conftest.$ac_ext >&5
9508
9509ac_header_compiler=no
9510fi
9511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9512echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9513echo "${ECHO_T}$ac_header_compiler" >&6
9514
9515# Is the header present?
9516echo "$as_me:$LINENO: checking $ac_header presence" >&5
9517echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9518cat >conftest.$ac_ext <<_ACEOF
9519/* confdefs.h. */
9520_ACEOF
9521cat confdefs.h >>conftest.$ac_ext
9522cat >>conftest.$ac_ext <<_ACEOF
9523/* end confdefs.h. */
9524#include <$ac_header>
9525_ACEOF
9526if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9528 ac_status=$?
9529 grep -v '^ *+' conftest.er1 >conftest.err
9530 rm -f conftest.er1
9531 cat conftest.err >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); } >/dev/null; then
9534 if test -s conftest.err; then
9535 ac_cpp_err=$ac_cxx_preproc_warn_flag
9536 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9537 else
9538 ac_cpp_err=
9539 fi
9540else
9541 ac_cpp_err=yes
9542fi
9543if test -z "$ac_cpp_err"; then
9544 ac_header_preproc=yes
9545else
9546 echo "$as_me: failed program was:" >&5
9547sed 's/^/| /' conftest.$ac_ext >&5
9548
9549 ac_header_preproc=no
9550fi
9551rm -f conftest.err conftest.$ac_ext
9552echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9553echo "${ECHO_T}$ac_header_preproc" >&6
9554
9555# So? What about this header?
9556case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9557 yes:no: )
9558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9559echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9561echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9562 ac_header_preproc=yes
9563 ;;
9564 no:yes:* )
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9566echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9568echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9570echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9572echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9574echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9576echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9577 (
9578 cat <<\_ASBOX
9579## ------------------------------------------ ##
9580## Report this to the AC_PACKAGE_NAME lists. ##
9581## ------------------------------------------ ##
9582_ASBOX
9583 ) |
9584 sed "s/^/$as_me: WARNING: /" >&2
9585 ;;
9586esac
9587echo "$as_me:$LINENO: checking for $ac_header" >&5
9588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9589if eval "test \"\${$as_ac_Header+set}\" = set"; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9591else
9592 eval "$as_ac_Header=\$ac_header_preproc"
9593fi
9594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9595echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9596
9597fi
9598if test `eval echo '${'$as_ac_Header'}'` = yes; then
9599 cat >>confdefs.h <<_ACEOF
9600#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9601_ACEOF
9602
9603fi
9604
9605done
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9631mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9632strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9633__fsetlocking
9634do
9635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9636echo "$as_me:$LINENO: checking for $ac_func" >&5
9637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9638if eval "test \"\${$as_ac_var+set}\" = set"; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9640else
9641 cat >conftest.$ac_ext <<_ACEOF
9642/* confdefs.h. */
9643_ACEOF
9644cat confdefs.h >>conftest.$ac_ext
9645cat >>conftest.$ac_ext <<_ACEOF
9646/* end confdefs.h. */
9647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9649#define $ac_func innocuous_$ac_func
9650
9651/* System header to define __stub macros and hopefully few prototypes,
9652 which can conflict with char $ac_func (); below.
9653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9654 <limits.h> exists even on freestanding compilers. */
9655
9656#ifdef __STDC__
9657# include <limits.h>
9658#else
9659# include <assert.h>
9660#endif
9661
9662#undef $ac_func
9663
9664/* Override any gcc2 internal prototype to avoid an error. */
9665#ifdef __cplusplus
9666extern "C"
9667{
9668#endif
9669/* We use char because int might match the return type of a gcc2
9670 builtin and then its argument prototype would still apply. */
9671char $ac_func ();
9672/* The GNU C library defines this for functions which it implements
9673 to always fail with ENOSYS. Some functions are actually named
9674 something starting with __ and the normal name is an alias. */
9675#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9676choke me
9677#else
9678char (*f) () = $ac_func;
9679#endif
9680#ifdef __cplusplus
9681}
9682#endif
9683
9684int
9685main ()
9686{
9687return f != $ac_func;
9688 ;
9689 return 0;
9690}
9691_ACEOF
9692rm -f conftest.$ac_objext conftest$ac_exeext
9693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9694 (eval $ac_link) 2>conftest.er1
9695 ac_status=$?
9696 grep -v '^ *+' conftest.er1 >conftest.err
9697 rm -f conftest.er1
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } &&
9701 { ac_try='test -z "$ac_cxx_werror_flag"
9702 || test ! -s conftest.err'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 (eval $ac_try) 2>&5
9705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; } &&
9708 { ac_try='test -s conftest$ac_exeext'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 (eval $ac_try) 2>&5
9711 ac_status=$?
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9714 eval "$as_ac_var=yes"
9715else
9716 echo "$as_me: failed program was:" >&5
9717sed 's/^/| /' conftest.$ac_ext >&5
9718
9719eval "$as_ac_var=no"
9720fi
9721rm -f conftest.err conftest.$ac_objext \
9722 conftest$ac_exeext conftest.$ac_ext
9723fi
9724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9725echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9726if test `eval echo '${'$as_ac_var'}'` = yes; then
9727 cat >>confdefs.h <<_ACEOF
9728#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9729_ACEOF
9730
9731fi
9732done
9733
9734
9735
9736 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9737echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
9738if test "${ac_cv_have_decl__snprintf+set}" = set; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9740else
9741 cat >conftest.$ac_ext <<_ACEOF
9742/* confdefs.h. */
9743_ACEOF
9744cat confdefs.h >>conftest.$ac_ext
9745cat >>conftest.$ac_ext <<_ACEOF
9746/* end confdefs.h. */
9747#include <stdio.h>
9748int
9749main ()
9750{
9751
9752#ifndef _snprintf
9753 char *p = (char *) _snprintf;
9754#endif
9755
9756 ;
9757 return 0;
9758}
9759_ACEOF
9760rm -f conftest.$ac_objext
9761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9762 (eval $ac_compile) 2>conftest.er1
9763 ac_status=$?
9764 grep -v '^ *+' conftest.er1 >conftest.err
9765 rm -f conftest.er1
9766 cat conftest.err >&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); } &&
9769 { ac_try='test -z "$ac_cxx_werror_flag"
9770 || test ! -s conftest.err'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 (eval $ac_try) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; } &&
9776 { ac_try='test -s conftest.$ac_objext'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778 (eval $ac_try) 2>&5
9779 ac_status=$?
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; }; then
9782 ac_cv_have_decl__snprintf=yes
9783else
9784 echo "$as_me: failed program was:" >&5
9785sed 's/^/| /' conftest.$ac_ext >&5
9786
9787ac_cv_have_decl__snprintf=no
9788fi
9789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9790fi
9791echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9792echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
9793 if test $ac_cv_have_decl__snprintf = yes; then
9794 gt_value=1
9795 else
9796 gt_value=0
9797 fi
9798
9799cat >>confdefs.h <<_ACEOF
9800#define HAVE_DECL__SNPRINTF $gt_value
9801_ACEOF
9802
9803
9804
9805 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9806echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
9807if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9809else
9810 cat >conftest.$ac_ext <<_ACEOF
9811/* confdefs.h. */
9812_ACEOF
9813cat confdefs.h >>conftest.$ac_ext
9814cat >>conftest.$ac_ext <<_ACEOF
9815/* end confdefs.h. */
9816#include <stdio.h>
9817int
9818main ()
9819{
9820
9821#ifndef _snwprintf
9822 char *p = (char *) _snwprintf;
9823#endif
9824
9825 ;
9826 return 0;
9827}
9828_ACEOF
9829rm -f conftest.$ac_objext
9830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9831 (eval $ac_compile) 2>conftest.er1
9832 ac_status=$?
9833 grep -v '^ *+' conftest.er1 >conftest.err
9834 rm -f conftest.er1
9835 cat conftest.err >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } &&
9838 { ac_try='test -z "$ac_cxx_werror_flag"
9839 || test ! -s conftest.err'
9840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841 (eval $ac_try) 2>&5
9842 ac_status=$?
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; } &&
9845 { ac_try='test -s conftest.$ac_objext'
9846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847 (eval $ac_try) 2>&5
9848 ac_status=$?
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; }; then
9851 ac_cv_have_decl__snwprintf=yes
9852else
9853 echo "$as_me: failed program was:" >&5
9854sed 's/^/| /' conftest.$ac_ext >&5
9855
9856ac_cv_have_decl__snwprintf=no
9857fi
9858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9859fi
9860echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9861echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
9862 if test $ac_cv_have_decl__snwprintf = yes; then
9863 gt_value=1
9864 else
9865 gt_value=0
9866 fi
9867
9868cat >>confdefs.h <<_ACEOF
9869#define HAVE_DECL__SNWPRINTF $gt_value
9870_ACEOF
9871
9872
9873
9874
9875 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9876echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
9877if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9879else
9880 cat >conftest.$ac_ext <<_ACEOF
9881/* confdefs.h. */
9882_ACEOF
9883cat confdefs.h >>conftest.$ac_ext
9884cat >>conftest.$ac_ext <<_ACEOF
9885/* end confdefs.h. */
9886#include <stdio.h>
9887int
9888main ()
9889{
9890
9891#ifndef feof_unlocked
9892 char *p = (char *) feof_unlocked;
9893#endif
9894
9895 ;
9896 return 0;
9897}
9898_ACEOF
9899rm -f conftest.$ac_objext
9900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9901 (eval $ac_compile) 2>conftest.er1
9902 ac_status=$?
9903 grep -v '^ *+' conftest.er1 >conftest.err
9904 rm -f conftest.er1
9905 cat conftest.err >&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } &&
9908 { ac_try='test -z "$ac_cxx_werror_flag"
9909 || test ! -s conftest.err'
9910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911 (eval $ac_try) 2>&5
9912 ac_status=$?
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; } &&
9915 { ac_try='test -s conftest.$ac_objext'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917 (eval $ac_try) 2>&5
9918 ac_status=$?
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; }; then
9921 ac_cv_have_decl_feof_unlocked=yes
9922else
9923 echo "$as_me: failed program was:" >&5
9924sed 's/^/| /' conftest.$ac_ext >&5
9925
9926ac_cv_have_decl_feof_unlocked=no
9927fi
9928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9929fi
9930echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9931echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
9932 if test $ac_cv_have_decl_feof_unlocked = yes; then
9933 gt_value=1
9934 else
9935 gt_value=0
9936 fi
9937
9938cat >>confdefs.h <<_ACEOF
9939#define HAVE_DECL_FEOF_UNLOCKED $gt_value
9940_ACEOF
9941
9942
9943
9944 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9945echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
9946if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9948else
9949 cat >conftest.$ac_ext <<_ACEOF
9950/* confdefs.h. */
9951_ACEOF
9952cat confdefs.h >>conftest.$ac_ext
9953cat >>conftest.$ac_ext <<_ACEOF
9954/* end confdefs.h. */
9955#include <stdio.h>
9956int
9957main ()
9958{
9959
9960#ifndef fgets_unlocked
9961 char *p = (char *) fgets_unlocked;
9962#endif
9963
9964 ;
9965 return 0;
9966}
9967_ACEOF
9968rm -f conftest.$ac_objext
9969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9970 (eval $ac_compile) 2>conftest.er1
9971 ac_status=$?
9972 grep -v '^ *+' conftest.er1 >conftest.err
9973 rm -f conftest.er1
9974 cat conftest.err >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } &&
9977 { ac_try='test -z "$ac_cxx_werror_flag"
9978 || test ! -s conftest.err'
9979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9980 (eval $ac_try) 2>&5
9981 ac_status=$?
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; } &&
9984 { ac_try='test -s conftest.$ac_objext'
9985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9986 (eval $ac_try) 2>&5
9987 ac_status=$?
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); }; }; then
9990 ac_cv_have_decl_fgets_unlocked=yes
9991else
9992 echo "$as_me: failed program was:" >&5
9993sed 's/^/| /' conftest.$ac_ext >&5
9994
9995ac_cv_have_decl_fgets_unlocked=no
9996fi
9997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9998fi
9999echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10000echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
10001 if test $ac_cv_have_decl_fgets_unlocked = yes; then
10002 gt_value=1
10003 else
10004 gt_value=0
10005 fi
10006
10007cat >>confdefs.h <<_ACEOF
10008#define HAVE_DECL_FGETS_UNLOCKED $gt_value
10009_ACEOF
10010
10011
10012
10013 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10014echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
10015if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10017else
10018 cat >conftest.$ac_ext <<_ACEOF
10019/* confdefs.h. */
10020_ACEOF
10021cat confdefs.h >>conftest.$ac_ext
10022cat >>conftest.$ac_ext <<_ACEOF
10023/* end confdefs.h. */
10024#include <stdio.h>
10025int
10026main ()
10027{
10028
10029#ifndef getc_unlocked
10030 char *p = (char *) getc_unlocked;
10031#endif
10032
10033 ;
10034 return 0;
10035}
10036_ACEOF
10037rm -f conftest.$ac_objext
10038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10039 (eval $ac_compile) 2>conftest.er1
10040 ac_status=$?
10041 grep -v '^ *+' conftest.er1 >conftest.err
10042 rm -f conftest.er1
10043 cat conftest.err >&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } &&
10046 { ac_try='test -z "$ac_cxx_werror_flag"
10047 || test ! -s conftest.err'
10048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10050 ac_status=$?
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; } &&
10053 { ac_try='test -s conftest.$ac_objext'
10054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055 (eval $ac_try) 2>&5
10056 ac_status=$?
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; }; then
10059 ac_cv_have_decl_getc_unlocked=yes
10060else
10061 echo "$as_me: failed program was:" >&5
10062sed 's/^/| /' conftest.$ac_ext >&5
10063
10064ac_cv_have_decl_getc_unlocked=no
10065fi
10066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10067fi
10068echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10069echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
10070 if test $ac_cv_have_decl_getc_unlocked = yes; then
10071 gt_value=1
10072 else
10073 gt_value=0
10074 fi
10075
10076cat >>confdefs.h <<_ACEOF
10077#define HAVE_DECL_GETC_UNLOCKED $gt_value
10078_ACEOF
10079
10080
10081
10082 case $gt_cv_func_printf_posix in
10083 *yes) HAVE_POSIX_PRINTF=1 ;;
10084 *) HAVE_POSIX_PRINTF=0 ;;
10085 esac
10086
10087 if test "$ac_cv_func_asprintf" = yes; then
10088 HAVE_ASPRINTF=1
10089 else
10090 HAVE_ASPRINTF=0
10091 fi
10092
10093 if test "$ac_cv_func_snprintf" = yes; then
10094 HAVE_SNPRINTF=1
10095 else
10096 HAVE_SNPRINTF=0
10097 fi
10098
10099 if test "$ac_cv_func_wprintf" = yes; then
10100 HAVE_WPRINTF=1
10101 else
10102 HAVE_WPRINTF=0
10103 fi
10104
10105
10106
10107
10108
10109
10110
10111 am_save_CPPFLAGS="$CPPFLAGS"
10112
10113 for element in $INCICONV; do
10114 haveit=
10115 for x in $CPPFLAGS; do
10116
10117 acl_save_prefix="$prefix"
10118 prefix="$acl_final_prefix"
10119 acl_save_exec_prefix="$exec_prefix"
10120 exec_prefix="$acl_final_exec_prefix"
10121 eval x=\"$x\"
10122 exec_prefix="$acl_save_exec_prefix"
10123 prefix="$acl_save_prefix"
10124
10125 if test "X$x" = "X$element"; then
10126 haveit=yes
10127 break
10128 fi
10129 done
10130 if test -z "$haveit"; then
10131 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10132 fi
10133 done
10134
10135
10136 echo "$as_me:$LINENO: checking for iconv" >&5
10137echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10138if test "${am_cv_func_iconv+set}" = set; then
10139 echo $ECHO_N "(cached) $ECHO_C" >&6
10140else
10141
10142 am_cv_func_iconv="no, consider installing GNU libiconv"
10143 am_cv_lib_iconv=no
10144 cat >conftest.$ac_ext <<_ACEOF
10145/* confdefs.h. */
10146_ACEOF
10147cat confdefs.h >>conftest.$ac_ext
10148cat >>conftest.$ac_ext <<_ACEOF
10149/* end confdefs.h. */
10150#include <stdlib.h>
10151#include <iconv.h>
10152int
10153main ()
10154{
10155iconv_t cd = iconv_open("","");
10156 iconv(cd,NULL,NULL,NULL,NULL);
10157 iconv_close(cd);
10158 ;
10159 return 0;
10160}
10161_ACEOF
10162rm -f conftest.$ac_objext conftest$ac_exeext
10163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10164 (eval $ac_link) 2>conftest.er1
10165 ac_status=$?
10166 grep -v '^ *+' conftest.er1 >conftest.err
10167 rm -f conftest.er1
10168 cat conftest.err >&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); } &&
10171 { ac_try='test -z "$ac_cxx_werror_flag"
10172 || test ! -s conftest.err'
10173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10175 ac_status=$?
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; } &&
10178 { ac_try='test -s conftest$ac_exeext'
10179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180 (eval $ac_try) 2>&5
10181 ac_status=$?
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; }; then
10184 am_cv_func_iconv=yes
10185else
10186 echo "$as_me: failed program was:" >&5
10187sed 's/^/| /' conftest.$ac_ext >&5
10188
10189fi
10190rm -f conftest.err conftest.$ac_objext \
10191 conftest$ac_exeext conftest.$ac_ext
10192 if test "$am_cv_func_iconv" != yes; then
10193 am_save_LIBS="$LIBS"
10194 LIBS="$LIBS $LIBICONV"
10195 cat >conftest.$ac_ext <<_ACEOF
10196/* confdefs.h. */
10197_ACEOF
10198cat confdefs.h >>conftest.$ac_ext
10199cat >>conftest.$ac_ext <<_ACEOF
10200/* end confdefs.h. */
10201#include <stdlib.h>
10202#include <iconv.h>
10203int
10204main ()
10205{
10206iconv_t cd = iconv_open("","");
10207 iconv(cd,NULL,NULL,NULL,NULL);
10208 iconv_close(cd);
10209 ;
10210 return 0;
10211}
10212_ACEOF
10213rm -f conftest.$ac_objext conftest$ac_exeext
10214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10215 (eval $ac_link) 2>conftest.er1
10216 ac_status=$?
10217 grep -v '^ *+' conftest.er1 >conftest.err
10218 rm -f conftest.er1
10219 cat conftest.err >&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } &&
10222 { ac_try='test -z "$ac_cxx_werror_flag"
10223 || test ! -s conftest.err'
10224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225 (eval $ac_try) 2>&5
10226 ac_status=$?
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; } &&
10229 { ac_try='test -s conftest$ac_exeext'
10230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10231 (eval $ac_try) 2>&5
10232 ac_status=$?
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; }; then
10235 am_cv_lib_iconv=yes
10236 am_cv_func_iconv=yes
10237else
10238 echo "$as_me: failed program was:" >&5
10239sed 's/^/| /' conftest.$ac_ext >&5
10240
10241fi
10242rm -f conftest.err conftest.$ac_objext \
10243 conftest$ac_exeext conftest.$ac_ext
10244 LIBS="$am_save_LIBS"
10245 fi
10246
10247fi
10248echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10249echo "${ECHO_T}$am_cv_func_iconv" >&6
10250 if test "$am_cv_func_iconv" = yes; then
10251
10252cat >>confdefs.h <<\_ACEOF
10253#define HAVE_ICONV 1
10254_ACEOF
10255
10256 fi
10257 if test "$am_cv_lib_iconv" = yes; then
10258 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10259echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10260 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10261echo "${ECHO_T}$LIBICONV" >&6
10262 else
10263 CPPFLAGS="$am_save_CPPFLAGS"
10264 LIBICONV=
10265 LTLIBICONV=
10266 fi
10267
10268
10269
10270 if test "$am_cv_func_iconv" = yes; then
10271 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10272echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10273 if test "${am_cv_proto_iconv+set}" = set; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10275else
10276
10277 cat >conftest.$ac_ext <<_ACEOF
10278/* confdefs.h. */
10279_ACEOF
10280cat confdefs.h >>conftest.$ac_ext
10281cat >>conftest.$ac_ext <<_ACEOF
10282/* end confdefs.h. */
10283
10284#include <stdlib.h>
10285#include <iconv.h>
10286extern
10287#ifdef __cplusplus
10288"C"
10289#endif
10290#if defined(__STDC__) || defined(__cplusplus)
10291size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10292#else
10293size_t iconv();
10294#endif
10295
10296int
10297main ()
10298{
10299
10300 ;
10301 return 0;
10302}
10303_ACEOF
10304rm -f conftest.$ac_objext
10305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10306 (eval $ac_compile) 2>conftest.er1
10307 ac_status=$?
10308 grep -v '^ *+' conftest.er1 >conftest.err
10309 rm -f conftest.er1
10310 cat conftest.err >&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); } &&
10313 { ac_try='test -z "$ac_cxx_werror_flag"
10314 || test ! -s conftest.err'
10315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316 (eval $ac_try) 2>&5
10317 ac_status=$?
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; } &&
10320 { ac_try='test -s conftest.$ac_objext'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10323 ac_status=$?
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; }; then
10326 am_cv_proto_iconv_arg1=""
10327else
10328 echo "$as_me: failed program was:" >&5
10329sed 's/^/| /' conftest.$ac_ext >&5
10330
10331am_cv_proto_iconv_arg1="const"
10332fi
10333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10334 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);"
10335fi
10336
10337 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10338 echo "$as_me:$LINENO: result: ${ac_t:-
10339 }$am_cv_proto_iconv" >&5
10340echo "${ECHO_T}${ac_t:-
10341 }$am_cv_proto_iconv" >&6
10342
10343cat >>confdefs.h <<_ACEOF
10344#define ICONV_CONST $am_cv_proto_iconv_arg1
10345_ACEOF
10346
10347 fi
10348
10349
10350 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10351echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
10352if test "${am_cv_langinfo_codeset+set}" = set; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10354else
10355 cat >conftest.$ac_ext <<_ACEOF
10356/* confdefs.h. */
10357_ACEOF
10358cat confdefs.h >>conftest.$ac_ext
10359cat >>conftest.$ac_ext <<_ACEOF
10360/* end confdefs.h. */
10361#include <langinfo.h>
10362int
10363main ()
10364{
10365char* cs = nl_langinfo(CODESET);
10366 ;
10367 return 0;
10368}
10369_ACEOF
10370rm -f conftest.$ac_objext conftest$ac_exeext
10371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10372 (eval $ac_link) 2>conftest.er1
10373 ac_status=$?
10374 grep -v '^ *+' conftest.er1 >conftest.err
10375 rm -f conftest.er1
10376 cat conftest.err >&5
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); } &&
10379 { ac_try='test -z "$ac_cxx_werror_flag"
10380 || test ! -s conftest.err'
10381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382 (eval $ac_try) 2>&5
10383 ac_status=$?
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; } &&
10386 { ac_try='test -s conftest$ac_exeext'
10387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388 (eval $ac_try) 2>&5
10389 ac_status=$?
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; }; then
10392 am_cv_langinfo_codeset=yes
10393else
10394 echo "$as_me: failed program was:" >&5
10395sed 's/^/| /' conftest.$ac_ext >&5
10396
10397am_cv_langinfo_codeset=no
10398fi
10399rm -f conftest.err conftest.$ac_objext \
10400 conftest$ac_exeext conftest.$ac_ext
10401
10402fi
10403echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10404echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
10405 if test $am_cv_langinfo_codeset = yes; then
10406
10407cat >>confdefs.h <<\_ACEOF
10408#define HAVE_LANGINFO_CODESET 1
10409_ACEOF
10410
10411 fi
10412
10413 if test $ac_cv_header_locale_h = yes; then
10414
10415 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10416echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10417if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10419else
10420 cat >conftest.$ac_ext <<_ACEOF
10421/* confdefs.h. */
10422_ACEOF
10423cat confdefs.h >>conftest.$ac_ext
10424cat >>conftest.$ac_ext <<_ACEOF
10425/* end confdefs.h. */
10426#include <locale.h>
10427int
10428main ()
10429{
10430return LC_MESSAGES
10431 ;
10432 return 0;
10433}
10434_ACEOF
10435rm -f conftest.$ac_objext conftest$ac_exeext
10436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10437 (eval $ac_link) 2>conftest.er1
10438 ac_status=$?
10439 grep -v '^ *+' conftest.er1 >conftest.err
10440 rm -f conftest.er1
10441 cat conftest.err >&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } &&
10444 { ac_try='test -z "$ac_cxx_werror_flag"
10445 || test ! -s conftest.err'
10446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447 (eval $ac_try) 2>&5
10448 ac_status=$?
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; } &&
10451 { ac_try='test -s conftest$ac_exeext'
10452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10454 ac_status=$?
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; }; then
10457 am_cv_val_LC_MESSAGES=yes
10458else
10459 echo "$as_me: failed program was:" >&5
10460sed 's/^/| /' conftest.$ac_ext >&5
10461
10462am_cv_val_LC_MESSAGES=no
10463fi
10464rm -f conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext conftest.$ac_ext
10466fi
10467echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10468echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10469 if test $am_cv_val_LC_MESSAGES = yes; then
10470
10471cat >>confdefs.h <<\_ACEOF
10472#define HAVE_LC_MESSAGES 1
10473_ACEOF
10474
10475 fi
10476
10477 fi
10478
10479 for ac_prog in bison
10480do
10481 # Extract the first word of "$ac_prog", so it can be a program name with args.
10482set dummy $ac_prog; ac_word=$2
10483echo "$as_me:$LINENO: checking for $ac_word" >&5
10484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10485if test "${ac_cv_prog_INTLBISON+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10487else
10488 if test -n "$INTLBISON"; then
10489 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10490else
10491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10492for as_dir in $PATH
10493do
10494 IFS=$as_save_IFS
10495 test -z "$as_dir" && as_dir=.
10496 for ac_exec_ext in '' $ac_executable_extensions; do
10497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10498 ac_cv_prog_INTLBISON="$ac_prog"
10499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10500 break 2
10501 fi
10502done
10503done
10504
10505fi
10506fi
10507INTLBISON=$ac_cv_prog_INTLBISON
10508if test -n "$INTLBISON"; then
10509 echo "$as_me:$LINENO: result: $INTLBISON" >&5
10510echo "${ECHO_T}$INTLBISON" >&6
10511else
10512 echo "$as_me:$LINENO: result: no" >&5
10513echo "${ECHO_T}no" >&6
10514fi
10515
10516 test -n "$INTLBISON" && break
10517done
10518
10519 if test -z "$INTLBISON"; then
10520 ac_verc_fail=yes
10521 else
10522 echo "$as_me:$LINENO: checking version of bison" >&5
10523echo $ECHO_N "checking version of bison... $ECHO_C" >&6
10524 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10525 case $ac_prog_version in
10526 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10527 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10528 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10529 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10530 esac
10531 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10532echo "${ECHO_T}$ac_prog_version" >&6
10533 fi
10534 if test $ac_verc_fail = yes; then
10535 INTLBISON=:
10536 fi
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10554echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10555 # Check whether --enable-nls or --disable-nls was given.
10556if test "${enable_nls+set}" = set; then
10557 enableval="$enable_nls"
10558 USE_NLS=$enableval
10559else
10560 USE_NLS=yes
10561fi;
10562 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10563echo "${ECHO_T}$USE_NLS" >&6
10564
10565
10566
10567
10568 BUILD_INCLUDED_LIBINTL=no
10569 USE_INCLUDED_LIBINTL=no
10570
10571 LIBINTL=
10572 LTLIBINTL=
10573 POSUB=
10574
10575 if test "$USE_NLS" = "yes"; then
10576 gt_use_preinstalled_gnugettext=no
10577
10578 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10579echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
10580
10581# Check whether --with-included-gettext or --without-included-gettext was given.
10582if test "${with_included_gettext+set}" = set; then
10583 withval="$with_included_gettext"
10584 nls_cv_force_use_gnu_gettext=$withval
10585else
10586 nls_cv_force_use_gnu_gettext=no
10587fi;
10588 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10589echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
10590
10591 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10592 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10593
10594
10595
10596
10597
10598
10599 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10600echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
10601if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10602 echo $ECHO_N "(cached) $ECHO_C" >&6
10603else
10604 cat >conftest.$ac_ext <<_ACEOF
10605/* confdefs.h. */
10606_ACEOF
10607cat confdefs.h >>conftest.$ac_ext
10608cat >>conftest.$ac_ext <<_ACEOF
10609/* end confdefs.h. */
10610#include <libintl.h>
10611extern int _nl_msg_cat_cntr;
10612extern int *_nl_domain_bindings;
10613int
10614main ()
10615{
10616bindtextdomain ("", "");
10617return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10618 ;
10619 return 0;
10620}
10621_ACEOF
10622rm -f conftest.$ac_objext conftest$ac_exeext
10623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10624 (eval $ac_link) 2>conftest.er1
10625 ac_status=$?
10626 grep -v '^ *+' conftest.er1 >conftest.err
10627 rm -f conftest.er1
10628 cat conftest.err >&5
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); } &&
10631 { ac_try='test -z "$ac_cxx_werror_flag"
10632 || test ! -s conftest.err'
10633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634 (eval $ac_try) 2>&5
10635 ac_status=$?
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; } &&
10638 { ac_try='test -s conftest$ac_exeext'
10639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640 (eval $ac_try) 2>&5
10641 ac_status=$?
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; }; then
10644 gt_cv_func_gnugettext1_libc=yes
10645else
10646 echo "$as_me: failed program was:" >&5
10647sed 's/^/| /' conftest.$ac_ext >&5
10648
10649gt_cv_func_gnugettext1_libc=no
10650fi
10651rm -f conftest.err conftest.$ac_objext \
10652 conftest$ac_exeext conftest.$ac_ext
10653fi
10654echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10655echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
10656
10657 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10658
10659
10660
10661 use_additional=yes
10662
10663 acl_save_prefix="$prefix"
10664 prefix="$acl_final_prefix"
10665 acl_save_exec_prefix="$exec_prefix"
10666 exec_prefix="$acl_final_exec_prefix"
10667
10668 eval additional_includedir=\"$includedir\"
10669 eval additional_libdir=\"$libdir\"
10670
10671 exec_prefix="$acl_save_exec_prefix"
10672 prefix="$acl_save_prefix"
10673
10674
10675# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
10676if test "${with_libintl_prefix+set}" = set; then
10677 withval="$with_libintl_prefix"
10678
10679 if test "X$withval" = "Xno"; then
10680 use_additional=no
10681 else
10682 if test "X$withval" = "X"; then
10683
10684 acl_save_prefix="$prefix"
10685 prefix="$acl_final_prefix"
10686 acl_save_exec_prefix="$exec_prefix"
10687 exec_prefix="$acl_final_exec_prefix"
10688
10689 eval additional_includedir=\"$includedir\"
10690 eval additional_libdir=\"$libdir\"
10691
10692 exec_prefix="$acl_save_exec_prefix"
10693 prefix="$acl_save_prefix"
10694
10695 else
10696 additional_includedir="$withval/include"
10697 additional_libdir="$withval/lib"
10698 fi
10699 fi
10700
10701fi;
10702 LIBINTL=
10703 LTLIBINTL=
10704 INCINTL=
10705 rpathdirs=
10706 ltrpathdirs=
10707 names_already_handled=
10708 names_next_round='intl '
10709 while test -n "$names_next_round"; do
10710 names_this_round="$names_next_round"
10711 names_next_round=
10712 for name in $names_this_round; do
10713 already_handled=
10714 for n in $names_already_handled; do
10715 if test "$n" = "$name"; then
10716 already_handled=yes
10717 break
10718 fi
10719 done
10720 if test -z "$already_handled"; then
10721 names_already_handled="$names_already_handled $name"
10722 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10723 eval value=\"\$HAVE_LIB$uppername\"
10724 if test -n "$value"; then
10725 if test "$value" = yes; then
10726 eval value=\"\$LIB$uppername\"
10727 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10728 eval value=\"\$LTLIB$uppername\"
10729 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10730 else
10731 :
10732 fi
10733 else
10734 found_dir=
10735 found_la=
10736 found_so=
10737 found_a=
10738 if test $use_additional = yes; then
10739 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10740 found_dir="$additional_libdir"
10741 found_so="$additional_libdir/lib$name.$shlibext"
10742 if test -f "$additional_libdir/lib$name.la"; then
10743 found_la="$additional_libdir/lib$name.la"
10744 fi
10745 else
10746 if test -f "$additional_libdir/lib$name.$libext"; then
10747 found_dir="$additional_libdir"
10748 found_a="$additional_libdir/lib$name.$libext"
10749 if test -f "$additional_libdir/lib$name.la"; then
10750 found_la="$additional_libdir/lib$name.la"
10751 fi
10752 fi
10753 fi
10754 fi
10755 if test "X$found_dir" = "X"; then
10756 for x in $LDFLAGS $LTLIBINTL; do
10757
10758 acl_save_prefix="$prefix"
10759 prefix="$acl_final_prefix"
10760 acl_save_exec_prefix="$exec_prefix"
10761 exec_prefix="$acl_final_exec_prefix"
10762 eval x=\"$x\"
10763 exec_prefix="$acl_save_exec_prefix"
10764 prefix="$acl_save_prefix"
10765
10766 case "$x" in
10767 -L*)
10768 dir=`echo "X$x" | sed -e 's/^X-L//'`
10769 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10770 found_dir="$dir"
10771 found_so="$dir/lib$name.$shlibext"
10772 if test -f "$dir/lib$name.la"; then
10773 found_la="$dir/lib$name.la"
10774 fi
10775 else
10776 if test -f "$dir/lib$name.$libext"; then
10777 found_dir="$dir"
10778 found_a="$dir/lib$name.$libext"
10779 if test -f "$dir/lib$name.la"; then
10780 found_la="$dir/lib$name.la"
10781 fi
10782 fi
10783 fi
10784 ;;
10785 esac
10786 if test "X$found_dir" != "X"; then
10787 break
10788 fi
10789 done
10790 fi
10791 if test "X$found_dir" != "X"; then
10792 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10793 if test "X$found_so" != "X"; then
10794 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10795 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10796 else
10797 haveit=
10798 for x in $ltrpathdirs; do
10799 if test "X$x" = "X$found_dir"; then
10800 haveit=yes
10801 break
10802 fi
10803 done
10804 if test -z "$haveit"; then
10805 ltrpathdirs="$ltrpathdirs $found_dir"
10806 fi
10807 if test "$hardcode_direct" = yes; then
10808 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10809 else
10810 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10811 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10812 haveit=
10813 for x in $rpathdirs; do
10814 if test "X$x" = "X$found_dir"; then
10815 haveit=yes
10816 break
10817 fi
10818 done
10819 if test -z "$haveit"; then
10820 rpathdirs="$rpathdirs $found_dir"
10821 fi
10822 else
10823 haveit=
10824 for x in $LDFLAGS $LIBINTL; do
10825
10826 acl_save_prefix="$prefix"
10827 prefix="$acl_final_prefix"
10828 acl_save_exec_prefix="$exec_prefix"
10829 exec_prefix="$acl_final_exec_prefix"
10830 eval x=\"$x\"
10831 exec_prefix="$acl_save_exec_prefix"
10832 prefix="$acl_save_prefix"
10833
10834 if test "X$x" = "X-L$found_dir"; then
10835 haveit=yes
10836 break
10837 fi
10838 done
10839 if test -z "$haveit"; then
10840 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10841 fi
10842 if test "$hardcode_minus_L" != no; then
10843 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10844 else
10845 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10846 fi
10847 fi
10848 fi
10849 fi
10850 else
10851 if test "X$found_a" != "X"; then
10852 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10853 else
10854 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10855 fi
10856 fi
10857 additional_includedir=
10858 case "$found_dir" in
10859 */lib | */lib/)
10860 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10861 additional_includedir="$basedir/include"
10862 ;;
10863 esac
10864 if test "X$additional_includedir" != "X"; then
10865 if test "X$additional_includedir" != "X/usr/include"; then
10866 haveit=
10867 if test "X$additional_includedir" = "X/usr/local/include"; then
10868 if test -n "$GCC"; then
10869 case $host_os in
10870 linux*) haveit=yes;;
10871 esac
10872 fi
10873 fi
10874 if test -z "$haveit"; then
10875 for x in $CPPFLAGS $INCINTL; do
10876
10877 acl_save_prefix="$prefix"
10878 prefix="$acl_final_prefix"
10879 acl_save_exec_prefix="$exec_prefix"
10880 exec_prefix="$acl_final_exec_prefix"
10881 eval x=\"$x\"
10882 exec_prefix="$acl_save_exec_prefix"
10883 prefix="$acl_save_prefix"
10884
10885 if test "X$x" = "X-I$additional_includedir"; then
10886 haveit=yes
10887 break
10888 fi
10889 done
10890 if test -z "$haveit"; then
10891 if test -d "$additional_includedir"; then
10892 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10893 fi
10894 fi
10895 fi
10896 fi
10897 fi
10898 if test -n "$found_la"; then
10899 save_libdir="$libdir"
10900 case "$found_la" in
10901 */* | *\\*) . "$found_la" ;;
10902 *) . "./$found_la" ;;
10903 esac
10904 libdir="$save_libdir"
10905 for dep in $dependency_libs; do
10906 case "$dep" in
10907 -L*)
10908 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10909 if test "X$additional_libdir" != "X/usr/lib"; then
10910 haveit=
10911 if test "X$additional_libdir" = "X/usr/local/lib"; then
10912 if test -n "$GCC"; then
10913 case $host_os in
10914 linux*) haveit=yes;;
10915 esac
10916 fi
10917 fi
10918 if test -z "$haveit"; then
10919 haveit=
10920 for x in $LDFLAGS $LIBINTL; do
10921
10922 acl_save_prefix="$prefix"
10923 prefix="$acl_final_prefix"
10924 acl_save_exec_prefix="$exec_prefix"
10925 exec_prefix="$acl_final_exec_prefix"
10926 eval x=\"$x\"
10927 exec_prefix="$acl_save_exec_prefix"
10928 prefix="$acl_save_prefix"
10929
10930 if test "X$x" = "X-L$additional_libdir"; then
10931 haveit=yes
10932 break
10933 fi
10934 done
10935 if test -z "$haveit"; then
10936 if test -d "$additional_libdir"; then
10937 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10938 fi
10939 fi
10940 haveit=
10941 for x in $LDFLAGS $LTLIBINTL; do
10942
10943 acl_save_prefix="$prefix"
10944 prefix="$acl_final_prefix"
10945 acl_save_exec_prefix="$exec_prefix"
10946 exec_prefix="$acl_final_exec_prefix"
10947 eval x=\"$x\"
10948 exec_prefix="$acl_save_exec_prefix"
10949 prefix="$acl_save_prefix"
10950
10951 if test "X$x" = "X-L$additional_libdir"; then
10952 haveit=yes
10953 break
10954 fi
10955 done
10956 if test -z "$haveit"; then
10957 if test -d "$additional_libdir"; then
10958 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10959 fi
10960 fi
10961 fi
10962 fi
10963 ;;
10964 -R*)
10965 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10966 if test "$enable_rpath" != no; then
10967 haveit=
10968 for x in $rpathdirs; do
10969 if test "X$x" = "X$dir"; then
10970 haveit=yes
10971 break
10972 fi
10973 done
10974 if test -z "$haveit"; then
10975 rpathdirs="$rpathdirs $dir"
10976 fi
10977 haveit=
10978 for x in $ltrpathdirs; do
10979 if test "X$x" = "X$dir"; then
10980 haveit=yes
10981 break
10982 fi
10983 done
10984 if test -z "$haveit"; then
10985 ltrpathdirs="$ltrpathdirs $dir"
10986 fi
10987 fi
10988 ;;
10989 -l*)
10990 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10991 ;;
10992 *.la)
10993 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10994 ;;
10995 *)
10996 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10997 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10998 ;;
10999 esac
11000 done
11001 fi
11002 else
11003 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11004 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11005 fi
11006 fi
11007 fi
11008 done
11009 done
11010 if test "X$rpathdirs" != "X"; then
11011 if test -n "$hardcode_libdir_separator"; then
11012 alldirs=
11013 for found_dir in $rpathdirs; do
11014 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11015 done
11016 acl_save_libdir="$libdir"
11017 libdir="$alldirs"
11018 eval flag=\"$hardcode_libdir_flag_spec\"
11019 libdir="$acl_save_libdir"
11020 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11021 else
11022 for found_dir in $rpathdirs; do
11023 acl_save_libdir="$libdir"
11024 libdir="$found_dir"
11025 eval flag=\"$hardcode_libdir_flag_spec\"
11026 libdir="$acl_save_libdir"
11027 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11028 done
11029 fi
11030 fi
11031 if test "X$ltrpathdirs" != "X"; then
11032 for found_dir in $ltrpathdirs; do
11033 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11034 done
11035 fi
11036
11037 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11038echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
11039if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11041else
11042 gt_save_CPPFLAGS="$CPPFLAGS"
11043 CPPFLAGS="$CPPFLAGS $INCINTL"
11044 gt_save_LIBS="$LIBS"
11045 LIBS="$LIBS $LIBINTL"
11046 cat >conftest.$ac_ext <<_ACEOF
11047/* confdefs.h. */
11048_ACEOF
11049cat confdefs.h >>conftest.$ac_ext
11050cat >>conftest.$ac_ext <<_ACEOF
11051/* end confdefs.h. */
11052#include <libintl.h>
11053extern int _nl_msg_cat_cntr;
11054extern
11055#ifdef __cplusplus
11056"C"
11057#endif
11058const char *_nl_expand_alias ();
11059int
11060main ()
11061{
11062bindtextdomain ("", "");
11063return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11064 ;
11065 return 0;
11066}
11067_ACEOF
11068rm -f conftest.$ac_objext conftest$ac_exeext
11069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11070 (eval $ac_link) 2>conftest.er1
11071 ac_status=$?
11072 grep -v '^ *+' conftest.er1 >conftest.err
11073 rm -f conftest.er1
11074 cat conftest.err >&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } &&
11077 { ac_try='test -z "$ac_cxx_werror_flag"
11078 || test ! -s conftest.err'
11079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11080 (eval $ac_try) 2>&5
11081 ac_status=$?
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }; } &&
11084 { ac_try='test -s conftest$ac_exeext'
11085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11086 (eval $ac_try) 2>&5
11087 ac_status=$?
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); }; }; then
11090 gt_cv_func_gnugettext1_libintl=yes
11091else
11092 echo "$as_me: failed program was:" >&5
11093sed 's/^/| /' conftest.$ac_ext >&5
11094
11095gt_cv_func_gnugettext1_libintl=no
11096fi
11097rm -f conftest.err conftest.$ac_objext \
11098 conftest$ac_exeext conftest.$ac_ext
11099 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11100 LIBS="$LIBS $LIBICONV"
11101 cat >conftest.$ac_ext <<_ACEOF
11102/* confdefs.h. */
11103_ACEOF
11104cat confdefs.h >>conftest.$ac_ext
11105cat >>conftest.$ac_ext <<_ACEOF
11106/* end confdefs.h. */
11107#include <libintl.h>
11108extern int _nl_msg_cat_cntr;
11109extern
11110#ifdef __cplusplus
11111"C"
11112#endif
11113const char *_nl_expand_alias ();
11114int
11115main ()
11116{
11117bindtextdomain ("", "");
11118return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11119 ;
11120 return 0;
11121}
11122_ACEOF
11123rm -f conftest.$ac_objext conftest$ac_exeext
11124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11125 (eval $ac_link) 2>conftest.er1
11126 ac_status=$?
11127 grep -v '^ *+' conftest.er1 >conftest.err
11128 rm -f conftest.er1
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } &&
11132 { ac_try='test -z "$ac_cxx_werror_flag"
11133 || test ! -s conftest.err'
11134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135 (eval $ac_try) 2>&5
11136 ac_status=$?
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; } &&
11139 { ac_try='test -s conftest$ac_exeext'
11140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141 (eval $ac_try) 2>&5
11142 ac_status=$?
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; }; then
11145 LIBINTL="$LIBINTL $LIBICONV"
11146 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11147 gt_cv_func_gnugettext1_libintl=yes
11148
11149else
11150 echo "$as_me: failed program was:" >&5
11151sed 's/^/| /' conftest.$ac_ext >&5
11152
11153fi
11154rm -f conftest.err conftest.$ac_objext \
11155 conftest$ac_exeext conftest.$ac_ext
11156 fi
11157 CPPFLAGS="$gt_save_CPPFLAGS"
11158 LIBS="$gt_save_LIBS"
11159fi
11160echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11161echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
11162 fi
11163
11164 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11165 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11166 && test "$PACKAGE" != gettext-runtime \
11167 && test "$PACKAGE" != gettext-tools; }; then
11168 gt_use_preinstalled_gnugettext=yes
11169 else
11170 LIBINTL=
11171 LTLIBINTL=
11172 INCINTL=
11173 fi
11174
11175
11176 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11177 nls_cv_use_gnu_gettext=yes
11178 fi
11179 fi
11180
11181 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11182 BUILD_INCLUDED_LIBINTL=yes
11183 USE_INCLUDED_LIBINTL=yes
11184 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11185 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11186 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11187 fi
11188
11189 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11190 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11191 CATOBJEXT=.gmo
11192 fi
11193
11194
11195 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11196 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11197
11198cat >>confdefs.h <<\_ACEOF
11199#define ENABLE_NLS 1
11200_ACEOF
11201
11202 else
11203 USE_NLS=no
11204 fi
11205 fi
11206
11207 echo "$as_me:$LINENO: checking whether to use NLS" >&5
11208echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
11209 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11210echo "${ECHO_T}$USE_NLS" >&6
11211 if test "$USE_NLS" = "yes"; then
11212 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11213echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
11214 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11215 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11216 gt_source="external libintl"
11217 else
11218 gt_source="libc"
11219 fi
11220 else
11221 gt_source="included intl directory"
11222 fi
11223 echo "$as_me:$LINENO: result: $gt_source" >&5
11224echo "${ECHO_T}$gt_source" >&6
11225 fi
11226
11227 if test "$USE_NLS" = "yes"; then
11228
11229 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11230 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11231 echo "$as_me:$LINENO: checking how to link with libintl" >&5
11232echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
11233 echo "$as_me:$LINENO: result: $LIBINTL" >&5
11234echo "${ECHO_T}$LIBINTL" >&6
11235
11236 for element in $INCINTL; do
11237 haveit=
11238 for x in $CPPFLAGS; do
11239
11240 acl_save_prefix="$prefix"
11241 prefix="$acl_final_prefix"
11242 acl_save_exec_prefix="$exec_prefix"
11243 exec_prefix="$acl_final_exec_prefix"
11244 eval x=\"$x\"
11245 exec_prefix="$acl_save_exec_prefix"
11246 prefix="$acl_save_prefix"
11247
11248 if test "X$x" = "X$element"; then
11249 haveit=yes
11250 break
11251 fi
11252 done
11253 if test -z "$haveit"; then
11254 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11255 fi
11256 done
11257
11258 fi
11259
11260
11261cat >>confdefs.h <<\_ACEOF
11262#define HAVE_GETTEXT 1
11263_ACEOF
11264
11265
11266cat >>confdefs.h <<\_ACEOF
11267#define HAVE_DCGETTEXT 1
11268_ACEOF
11269
11270 fi
11271
11272 POSUB=po
11273 fi
11274
11275
11276 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11277 BUILD_INCLUDED_LIBINTL=yes
11278 fi
11279
11280
11281
11282
11283
11284 nls_cv_header_intl=
11285 nls_cv_header_libgt=
11286
11287 DATADIRNAME=share
11288
11289
11290 INSTOBJEXT=.mo
11291
11292
11293 GENCAT=gencat
11294
11295
11296 if test "$USE_INCLUDED_LIBINTL" = yes; then
11297 INTLOBJS="\$(GETTOBJS)"
11298 fi
11299
11300
11301 INTL_LIBTOOL_SUFFIX_PREFIX=
11302
11303
11304
11305 INTLLIBS="$LIBINTL"
11306
11307
11308
11309
11310
11311
11312
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011313BOILERPLATE=boilerplate.mk
11314
11315if (sh -c "make --version" 2>/dev/null | grep GNU 2>&1 >/dev/null); then
11316 if sh -c "vncmkdepend" >/dev/null 2>&1; then
11317 BOILERPLATE="$BOILERPLATE:depend.mk"
11318 fi
11319fi
11320
Peter Åstrand5a15f8c2005-01-23 20:44:20 +000011321 ac_config_files="$ac_config_files Makefile:Makefile.in:$BOILERPLATE intl/Makefile po/Makefile.in rdr/Makefile:rdr/Makefile.in:$BOILERPLATE network/Makefile:network/Makefile.in:$BOILERPLATE Xregion/Makefile:Xregion/Makefile.in:$BOILERPLATE rfb/Makefile:rfb/Makefile.in:$BOILERPLATE tx/Makefile:tx/Makefile.in:$BOILERPLATE x0vncserver/Makefile:x0vncserver/Makefile.in:$BOILERPLATE vncviewer_unix/Makefile:vncviewer_unix/Makefile.in:$BOILERPLATE vncconfig_unix/Makefile:vncconfig_unix/Makefile.in:$BOILERPLATE vncpasswd/Makefile:vncpasswd/Makefile.in:$BOILERPLATE"
Peter Åstrande713b142004-11-16 13:29:40 +000011322cat >confcache <<\_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011323# This file is a shell script that caches the results of configure
11324# tests run on this system so they can be shared between configure
Peter Åstrande713b142004-11-16 13:29:40 +000011325# scripts and configure runs, see configure's option --config-cache.
11326# It is not useful on other systems. If it contains results you don't
11327# want to keep, you may remove or edit it.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011328#
Peter Åstrande713b142004-11-16 13:29:40 +000011329# config.status only pays attention to the cache file if you give it
11330# the --recheck option to rerun configure.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011331#
Peter Åstrande713b142004-11-16 13:29:40 +000011332# `ac_cv_env_foo' variables (set or unset) will be overridden when
11333# loading this file, other *unset* `ac_cv_foo' will be assigned the
11334# following values.
11335
11336_ACEOF
11337
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011338# The following way of writing the cache mishandles newlines in values,
11339# but we know of no workaround that is simple, portable, and efficient.
11340# So, don't put newlines in cache variables' values.
11341# Ultrix sh set writes to stderr and can't be redirected directly,
11342# and sets the high bit in the cache file unless we assign to the vars.
Peter Åstrande713b142004-11-16 13:29:40 +000011343{
11344 (set) 2>&1 |
11345 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11346 *ac_space=\ *)
11347 # `set' does not quote correctly, so add quotes (double-quote
11348 # substitution turns \\\\ into \\, and sed turns \\ into \).
11349 sed -n \
11350 "s/'/'\\\\''/g;
11351 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11352 ;;
11353 *)
11354 # `set' quotes correctly as required by POSIX, so do not add quotes.
11355 sed -n \
11356 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11357 ;;
11358 esac;
11359} |
11360 sed '
11361 t clear
11362 : clear
11363 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11364 t end
11365 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11366 : end' >>confcache
11367if diff $cache_file confcache >/dev/null 2>&1; then :; else
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011368 if test -w $cache_file; then
Peter Åstrande713b142004-11-16 13:29:40 +000011369 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11370 cat confcache >$cache_file
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011371 else
11372 echo "not updating unwritable cache $cache_file"
11373 fi
11374fi
11375rm -f confcache
11376
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011377test "x$prefix" = xNONE && prefix=$ac_default_prefix
11378# Let make expand exec_prefix.
11379test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11380
Peter Åstrande713b142004-11-16 13:29:40 +000011381# VPATH may cause trouble with some makes, so we remove $(srcdir),
11382# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11383# trailing colons and then remove the whole line if VPATH becomes empty
11384# (actually we leave an empty line to preserve line numbers).
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011385if test "x$srcdir" = x.; then
Peter Åstrande713b142004-11-16 13:29:40 +000011386 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11387s/:*\$(srcdir):*/:/;
11388s/:*\${srcdir}:*/:/;
11389s/:*@srcdir@:*/:/;
11390s/^\([^=]*=[ ]*\):*/\1/;
11391s/:*$//;
11392s/^[^=]*=[ ]*$//;
11393}'
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011394fi
11395
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011396# Transform confdefs.h into DEFS.
11397# Protect against shell expansion while executing Makefile rules.
11398# Protect against Makefile macro expansion.
Peter Åstrande713b142004-11-16 13:29:40 +000011399#
11400# If the first sed substitution is executed (which looks for macros that
11401# take arguments), then we branch to the quote section. Otherwise,
11402# look for a macro that doesn't take arguments.
11403cat >confdef2opt.sed <<\_ACEOF
11404t clear
11405: clear
11406s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
11407t quote
11408s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
11409t quote
11410d
11411: quote
11412s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
11413s,\[,\\&,g
11414s,\],\\&,g
11415s,\$,$$,g
11416p
11417_ACEOF
11418# We use echo to avoid assuming a particular line-breaking character.
11419# The extra dot is to prevent the shell from consuming trailing
11420# line-breaks from the sub-command output. A line-break within
11421# single-quotes doesn't work because, if this script is created in a
11422# platform that uses two characters for line-breaks (e.g., DOS), tr
11423# would break.
11424ac_LF_and_DOT=`echo; echo .`
11425DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11426rm -f confdef2opt.sed
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011427
11428
Peter Åstrande713b142004-11-16 13:29:40 +000011429ac_libobjs=
11430ac_ltlibobjs=
11431for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11432 # 1. Remove the extension, and $U if already installed.
11433 ac_i=`echo "$ac_i" |
11434 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11435 # 2. Add them.
11436 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11437 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11438done
11439LIBOBJS=$ac_libobjs
11440
11441LTLIBOBJS=$ac_ltlibobjs
11442
11443
11444
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011445: ${CONFIG_STATUS=./config.status}
Peter Åstrande713b142004-11-16 13:29:40 +000011446ac_clean_files_save=$ac_clean_files
11447ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11448{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11449echo "$as_me: creating $CONFIG_STATUS" >&6;}
11450cat >$CONFIG_STATUS <<_ACEOF
11451#! $SHELL
11452# Generated by $as_me.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011453# Run this file to recreate the current configuration.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011454# Compiler output produced by configure, useful for debugging
Peter Åstrande713b142004-11-16 13:29:40 +000011455# configure, is in config.log if it exists.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011456
Peter Åstrande713b142004-11-16 13:29:40 +000011457debug=false
11458ac_cs_recheck=false
11459ac_cs_silent=false
11460SHELL=\${CONFIG_SHELL-$SHELL}
11461_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011462
Peter Åstrande713b142004-11-16 13:29:40 +000011463cat >>$CONFIG_STATUS <<\_ACEOF
11464## --------------------- ##
11465## M4sh Initialization. ##
11466## --------------------- ##
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011467
Peter Åstrande713b142004-11-16 13:29:40 +000011468# Be Bourne compatible
11469if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11470 emulate sh
11471 NULLCMD=:
11472 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11473 # is contrary to our usage. Disable this feature.
11474 alias -g '${1+"$@"}'='"$@"'
11475elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11476 set -o posix
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011477fi
Peter Åstrande713b142004-11-16 13:29:40 +000011478DUALCASE=1; export DUALCASE # for MKS sh
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011479
Peter Åstrande713b142004-11-16 13:29:40 +000011480# Support unset when possible.
11481if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11482 as_unset=unset
11483else
11484 as_unset=false
11485fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011486
Peter Åstrande713b142004-11-16 13:29:40 +000011487
11488# Work around bugs in pre-3.0 UWIN ksh.
11489$as_unset ENV MAIL MAILPATH
11490PS1='$ '
11491PS2='> '
11492PS4='+ '
11493
11494# NLS nuisances.
11495for as_var in \
11496 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11497 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11498 LC_TELEPHONE LC_TIME
11499do
11500 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11501 eval $as_var=C; export $as_var
11502 else
11503 $as_unset $as_var
11504 fi
11505done
11506
11507# Required to use basename.
11508if expr a : '\(a\)' >/dev/null 2>&1; then
11509 as_expr=expr
11510else
11511 as_expr=false
11512fi
11513
11514if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11515 as_basename=basename
11516else
11517 as_basename=false
11518fi
11519
11520
11521# Name of the executable.
11522as_me=`$as_basename "$0" ||
11523$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11524 X"$0" : 'X\(//\)$' \| \
11525 X"$0" : 'X\(/\)$' \| \
11526 . : '\(.\)' 2>/dev/null ||
11527echo X/"$0" |
11528 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11529 /^X\/\(\/\/\)$/{ s//\1/; q; }
11530 /^X\/\(\/\).*/{ s//\1/; q; }
11531 s/.*/./; q'`
11532
11533
11534# PATH needs CR, and LINENO needs CR and PATH.
11535# Avoid depending upon Character Ranges.
11536as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11537as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11538as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11539as_cr_digits='0123456789'
11540as_cr_alnum=$as_cr_Letters$as_cr_digits
11541
11542# The user is always right.
11543if test "${PATH_SEPARATOR+set}" != set; then
11544 echo "#! /bin/sh" >conf$$.sh
11545 echo "exit 0" >>conf$$.sh
11546 chmod +x conf$$.sh
11547 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11548 PATH_SEPARATOR=';'
11549 else
11550 PATH_SEPARATOR=:
11551 fi
11552 rm -f conf$$.sh
11553fi
11554
11555
11556 as_lineno_1=$LINENO
11557 as_lineno_2=$LINENO
11558 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11559 test "x$as_lineno_1" != "x$as_lineno_2" &&
11560 test "x$as_lineno_3" = "x$as_lineno_2" || {
11561 # Find who we are. Look in the path if we contain no path at all
11562 # relative or not.
11563 case $0 in
11564 *[\\/]* ) as_myself=$0 ;;
11565 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11566for as_dir in $PATH
11567do
11568 IFS=$as_save_IFS
11569 test -z "$as_dir" && as_dir=.
11570 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11571done
11572
11573 ;;
11574 esac
11575 # We did not find ourselves, most probably we were run as `sh COMMAND'
11576 # in which case we are not to be found in the path.
11577 if test "x$as_myself" = x; then
11578 as_myself=$0
11579 fi
11580 if test ! -f "$as_myself"; then
11581 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11582echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11583 { (exit 1); exit 1; }; }
11584 fi
11585 case $CONFIG_SHELL in
11586 '')
11587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11588for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11589do
11590 IFS=$as_save_IFS
11591 test -z "$as_dir" && as_dir=.
11592 for as_base in sh bash ksh sh5; do
11593 case $as_dir in
11594 /*)
11595 if ("$as_dir/$as_base" -c '
11596 as_lineno_1=$LINENO
11597 as_lineno_2=$LINENO
11598 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11599 test "x$as_lineno_1" != "x$as_lineno_2" &&
11600 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11601 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11602 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11603 CONFIG_SHELL=$as_dir/$as_base
11604 export CONFIG_SHELL
11605 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11606 fi;;
11607 esac
11608 done
11609done
11610;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011611 esac
11612
Peter Åstrande713b142004-11-16 13:29:40 +000011613 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11614 # uniformly replaced by the line number. The first 'sed' inserts a
11615 # line-number line before each line; the second 'sed' does the real
11616 # work. The second script uses 'N' to pair each line-number line
11617 # with the numbered line, and appends trailing '-' during
11618 # substitution so that $LINENO is not a special case at line end.
11619 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11620 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11621 sed '=' <$as_myself |
11622 sed '
11623 N
11624 s,$,-,
11625 : loop
11626 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11627 t loop
11628 s,-$,,
11629 s,^['$as_cr_digits']*\n,,
11630 ' >$as_me.lineno &&
11631 chmod +x $as_me.lineno ||
11632 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11633echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11634 { (exit 1); exit 1; }; }
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011635
Peter Åstrande713b142004-11-16 13:29:40 +000011636 # Don't try to exec as it changes $[0], causing all sort of problems
11637 # (the dirname of $[0] is not the place where we might find the
11638 # original and so on. Autoconf is especially sensible to this).
11639 . ./$as_me.lineno
11640 # Exit status is that of the last command.
11641 exit
11642}
11643
11644
11645case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11646 *c*,-n*) ECHO_N= ECHO_C='
11647' ECHO_T=' ' ;;
11648 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11649 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11650esac
11651
11652if expr a : '\(a\)' >/dev/null 2>&1; then
11653 as_expr=expr
11654else
11655 as_expr=false
11656fi
11657
11658rm -f conf$$ conf$$.exe conf$$.file
11659echo >conf$$.file
11660if ln -s conf$$.file conf$$ 2>/dev/null; then
11661 # We could just check for DJGPP; but this test a) works b) is more generic
11662 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11663 if test -f conf$$.exe; then
11664 # Don't use ln at all; we don't have any links
11665 as_ln_s='cp -p'
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011666 else
Peter Åstrande713b142004-11-16 13:29:40 +000011667 as_ln_s='ln -s'
11668 fi
11669elif ln conf$$.file conf$$ 2>/dev/null; then
11670 as_ln_s=ln
11671else
11672 as_ln_s='cp -p'
11673fi
11674rm -f conf$$ conf$$.exe conf$$.file
11675
11676if mkdir -p . 2>/dev/null; then
11677 as_mkdir_p=:
11678else
11679 test -d ./-p && rmdir ./-p
11680 as_mkdir_p=false
11681fi
11682
11683as_executable_p="test -f"
11684
11685# Sed expression to map a string onto a valid CPP name.
11686as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11687
11688# Sed expression to map a string onto a valid variable name.
11689as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11690
11691
11692# IFS
11693# We need space, tab and new line, in precisely that order.
11694as_nl='
11695'
11696IFS=" $as_nl"
11697
11698# CDPATH.
11699$as_unset CDPATH
11700
11701exec 6>&1
11702
11703# Open the log real soon, to keep \$[0] and so on meaningful, and to
11704# report actual input values of CONFIG_FILES etc. instead of their
11705# values after options handling. Logging --version etc. is OK.
11706exec 5>>config.log
11707{
11708 echo
11709 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11710## Running $as_me. ##
11711_ASBOX
11712} >&5
11713cat >&5 <<_CSEOF
11714
11715This file was extended by $as_me, which was
11716generated by GNU Autoconf 2.59. Invocation command line was
11717
11718 CONFIG_FILES = $CONFIG_FILES
11719 CONFIG_HEADERS = $CONFIG_HEADERS
11720 CONFIG_LINKS = $CONFIG_LINKS
11721 CONFIG_COMMANDS = $CONFIG_COMMANDS
11722 $ $0 $@
11723
11724_CSEOF
11725echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11726echo >&5
11727_ACEOF
11728
11729# Files that config.status was made for.
11730if test -n "$ac_config_files"; then
11731 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11732fi
11733
11734if test -n "$ac_config_headers"; then
11735 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11736fi
11737
11738if test -n "$ac_config_links"; then
11739 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11740fi
11741
11742if test -n "$ac_config_commands"; then
11743 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11744fi
11745
11746cat >>$CONFIG_STATUS <<\_ACEOF
11747
11748ac_cs_usage="\
11749\`$as_me' instantiates files from templates according to the
11750current configuration.
11751
11752Usage: $0 [OPTIONS] [FILE]...
11753
11754 -h, --help print this help, then exit
11755 -V, --version print version number, then exit
11756 -q, --quiet do not print progress messages
11757 -d, --debug don't remove temporary files
11758 --recheck update $as_me by reconfiguring in the same conditions
11759 --file=FILE[:TEMPLATE]
11760 instantiate the configuration file FILE
11761
11762Configuration files:
11763$config_files
11764
Peter Åstrand5a15f8c2005-01-23 20:44:20 +000011765Configuration commands:
11766$config_commands
11767
Peter Åstrande713b142004-11-16 13:29:40 +000011768Report bugs to <bug-autoconf@gnu.org>."
11769_ACEOF
11770
11771cat >>$CONFIG_STATUS <<_ACEOF
11772ac_cs_version="\\
11773config.status
11774configured by $0, generated by GNU Autoconf 2.59,
11775 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11776
11777Copyright (C) 2003 Free Software Foundation, Inc.
11778This config.status script is free software; the Free Software Foundation
11779gives unlimited permission to copy, distribute and modify it."
11780srcdir=$srcdir
Peter Åstrand5a15f8c2005-01-23 20:44:20 +000011781INSTALL="$INSTALL"
Peter Åstrande713b142004-11-16 13:29:40 +000011782_ACEOF
11783
11784cat >>$CONFIG_STATUS <<\_ACEOF
11785# If no file are specified by the user, then we need to provide default
11786# value. By we need to know if files were specified by the user.
11787ac_need_defaults=:
11788while test $# != 0
11789do
11790 case $1 in
11791 --*=*)
11792 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11793 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11794 ac_shift=:
11795 ;;
11796 -*)
11797 ac_option=$1
11798 ac_optarg=$2
11799 ac_shift=shift
11800 ;;
11801 *) # This is not an option, so the user has probably given explicit
11802 # arguments.
11803 ac_option=$1
11804 ac_need_defaults=false;;
11805 esac
11806
11807 case $ac_option in
11808 # Handling of the options.
11809_ACEOF
11810cat >>$CONFIG_STATUS <<\_ACEOF
11811 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11812 ac_cs_recheck=: ;;
11813 --version | --vers* | -V )
11814 echo "$ac_cs_version"; exit 0 ;;
11815 --he | --h)
11816 # Conflict between --help and --header
11817 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11818Try \`$0 --help' for more information." >&5
11819echo "$as_me: error: ambiguous option: $1
11820Try \`$0 --help' for more information." >&2;}
11821 { (exit 1); exit 1; }; };;
11822 --help | --hel | -h )
11823 echo "$ac_cs_usage"; exit 0 ;;
11824 --debug | --d* | -d )
11825 debug=: ;;
11826 --file | --fil | --fi | --f )
11827 $ac_shift
11828 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11829 ac_need_defaults=false;;
11830 --header | --heade | --head | --hea )
11831 $ac_shift
11832 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11833 ac_need_defaults=false;;
11834 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11835 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11836 ac_cs_silent=: ;;
11837
11838 # This is an error.
11839 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11840Try \`$0 --help' for more information." >&5
11841echo "$as_me: error: unrecognized option: $1
11842Try \`$0 --help' for more information." >&2;}
11843 { (exit 1); exit 1; }; } ;;
11844
11845 *) ac_config_targets="$ac_config_targets $1" ;;
11846
11847 esac
11848 shift
11849done
11850
11851ac_configure_extra_args=
11852
11853if $ac_cs_silent; then
11854 exec 6>/dev/null
11855 ac_configure_extra_args="$ac_configure_extra_args --silent"
11856fi
11857
11858_ACEOF
11859cat >>$CONFIG_STATUS <<_ACEOF
11860if \$ac_cs_recheck; then
11861 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11862 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11863fi
11864
11865_ACEOF
11866
Peter Åstrand5a15f8c2005-01-23 20:44:20 +000011867cat >>$CONFIG_STATUS <<_ACEOF
11868#
11869# INIT-COMMANDS section.
11870#
Peter Åstrande713b142004-11-16 13:29:40 +000011871
Peter Åstrand5a15f8c2005-01-23 20:44:20 +000011872# Capture the value of obsolete ALL_LINGUAS because we need it to compute
11873 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11874 # from automake.
11875 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11876 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11877 LINGUAS="${LINGUAS-%UNSET%}"
11878
11879
11880_ACEOF
Peter Åstrande713b142004-11-16 13:29:40 +000011881
11882
11883
11884cat >>$CONFIG_STATUS <<\_ACEOF
11885for ac_config_target in $ac_config_targets
11886do
11887 case "$ac_config_target" in
11888 # Handling of arguments.
11889 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:$BOILERPLATE" ;;
Peter Åstrand5a15f8c2005-01-23 20:44:20 +000011890 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
11891 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
Peter Åstrande713b142004-11-16 13:29:40 +000011892 "rdr/Makefile" ) CONFIG_FILES="$CONFIG_FILES rdr/Makefile:rdr/Makefile.in:$BOILERPLATE" ;;
11893 "network/Makefile" ) CONFIG_FILES="$CONFIG_FILES network/Makefile:network/Makefile.in:$BOILERPLATE" ;;
11894 "Xregion/Makefile" ) CONFIG_FILES="$CONFIG_FILES Xregion/Makefile:Xregion/Makefile.in:$BOILERPLATE" ;;
11895 "rfb/Makefile" ) CONFIG_FILES="$CONFIG_FILES rfb/Makefile:rfb/Makefile.in:$BOILERPLATE" ;;
11896 "tx/Makefile" ) CONFIG_FILES="$CONFIG_FILES tx/Makefile:tx/Makefile.in:$BOILERPLATE" ;;
11897 "x0vncserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES x0vncserver/Makefile:x0vncserver/Makefile.in:$BOILERPLATE" ;;
11898 "vncviewer_unix/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncviewer_unix/Makefile:vncviewer_unix/Makefile.in:$BOILERPLATE" ;;
11899 "vncconfig_unix/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncconfig_unix/Makefile:vncconfig_unix/Makefile.in:$BOILERPLATE" ;;
11900 "vncpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncpasswd/Makefile:vncpasswd/Makefile.in:$BOILERPLATE" ;;
Peter Åstrand5a15f8c2005-01-23 20:44:20 +000011901 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
Peter Åstrande713b142004-11-16 13:29:40 +000011902 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11903echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11904 { (exit 1); exit 1; }; };;
11905 esac
11906done
11907
11908# If the user did not use the arguments to specify the items to instantiate,
11909# then the envvar interface is used. Set only those that are not.
11910# We use the long form for the default assignment because of an extremely
11911# bizarre bug on SunOS 4.1.3.
11912if $ac_need_defaults; then
11913 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Peter Åstrand5a15f8c2005-01-23 20:44:20 +000011914 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
Peter Åstrande713b142004-11-16 13:29:40 +000011915fi
11916
11917# Have a temporary directory for convenience. Make it in the build tree
11918# simply because there is no reason to put it here, and in addition,
11919# creating and moving files from /tmp can sometimes cause problems.
11920# Create a temporary directory, and hook for its removal unless debugging.
11921$debug ||
11922{
11923 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11924 trap '{ (exit 1); exit 1; }' 1 2 13 15
11925}
11926
11927# Create a (secure) tmp directory for tmp files.
11928
11929{
11930 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11931 test -n "$tmp" && test -d "$tmp"
11932} ||
11933{
11934 tmp=./confstat$$-$RANDOM
11935 (umask 077 && mkdir $tmp)
11936} ||
11937{
11938 echo "$me: cannot create a temporary directory in ." >&2
11939 { (exit 1); exit 1; }
11940}
11941
11942_ACEOF
11943
11944cat >>$CONFIG_STATUS <<_ACEOF
11945
11946#
11947# CONFIG_FILES section.
11948#
11949
11950# No need to generate the scripts if there are no CONFIG_FILES.
11951# This happens for instance when ./config.status config.h
11952if test -n "\$CONFIG_FILES"; then
11953 # Protect against being on the right side of a sed subst in config.status.
11954 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11955 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11956s,@SHELL@,$SHELL,;t t
11957s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11958s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11959s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11960s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11961s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11962s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11963s,@exec_prefix@,$exec_prefix,;t t
11964s,@prefix@,$prefix,;t t
11965s,@program_transform_name@,$program_transform_name,;t t
11966s,@bindir@,$bindir,;t t
11967s,@sbindir@,$sbindir,;t t
11968s,@libexecdir@,$libexecdir,;t t
11969s,@datadir@,$datadir,;t t
11970s,@sysconfdir@,$sysconfdir,;t t
11971s,@sharedstatedir@,$sharedstatedir,;t t
11972s,@localstatedir@,$localstatedir,;t t
11973s,@libdir@,$libdir,;t t
11974s,@includedir@,$includedir,;t t
11975s,@oldincludedir@,$oldincludedir,;t t
11976s,@infodir@,$infodir,;t t
11977s,@mandir@,$mandir,;t t
11978s,@build_alias@,$build_alias,;t t
11979s,@host_alias@,$host_alias,;t t
11980s,@target_alias@,$target_alias,;t t
11981s,@DEFS@,$DEFS,;t t
11982s,@ECHO_C@,$ECHO_C,;t t
11983s,@ECHO_N@,$ECHO_N,;t t
11984s,@ECHO_T@,$ECHO_T,;t t
11985s,@LIBS@,$LIBS,;t t
Peter Åstrand5a15f8c2005-01-23 20:44:20 +000011986s,@PACKAGE@,$PACKAGE,;t t
11987s,@VERSION@,$VERSION,;t t
Peter Åstrande713b142004-11-16 13:29:40 +000011988s,@CC@,$CC,;t t
11989s,@CFLAGS@,$CFLAGS,;t t
11990s,@LDFLAGS@,$LDFLAGS,;t t
11991s,@CPPFLAGS@,$CPPFLAGS,;t t
11992s,@ac_ct_CC@,$ac_ct_CC,;t t
11993s,@EXEEXT@,$EXEEXT,;t t
11994s,@OBJEXT@,$OBJEXT,;t t
11995s,@CXX@,$CXX,;t t
11996s,@CXXFLAGS@,$CXXFLAGS,;t t
11997s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11998s,@RANLIB@,$RANLIB,;t t
11999s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12000s,@SET_MAKE@,$SET_MAKE,;t t
12001s,@MITSHM_CPPFLAGS@,$MITSHM_CPPFLAGS,;t t
12002s,@CXXCPP@,$CXXCPP,;t t
12003s,@X_CFLAGS@,$X_CFLAGS,;t t
12004s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
12005s,@X_LIBS@,$X_LIBS,;t t
12006s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
12007s,@ZLIB_DIR@,$ZLIB_DIR,;t t
12008s,@ZLIB_INCLUDE@,$ZLIB_INCLUDE,;t t
12009s,@ZLIB_LIB@,$ZLIB_LIB,;t t
Peter Åstrandafa924f2004-11-19 13:30:00 +000012010s,@JPEG_DIR@,$JPEG_DIR,;t t
12011s,@JPEG_INCLUDE@,$JPEG_INCLUDE,;t t
12012s,@JPEG_LIB@,$JPEG_LIB,;t t
Peter Åstrande713b142004-11-16 13:29:40 +000012013s,@VSNPRINTF_DEFINE@,$VSNPRINTF_DEFINE,;t t
12014s,@SOCKLEN_T_DEFINE@,$SOCKLEN_T_DEFINE,;t t
Peter Åstrand5a15f8c2005-01-23 20:44:20 +000012015s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12016s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12017s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12018s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12019s,@USE_NLS@,$USE_NLS,;t t
12020s,@MSGFMT@,$MSGFMT,;t t
12021s,@GMSGFMT@,$GMSGFMT,;t t
12022s,@XGETTEXT@,$XGETTEXT,;t t
12023s,@MSGMERGE@,$MSGMERGE,;t t
12024s,@build@,$build,;t t
12025s,@build_cpu@,$build_cpu,;t t
12026s,@build_vendor@,$build_vendor,;t t
12027s,@build_os@,$build_os,;t t
12028s,@host@,$host,;t t
12029s,@host_cpu@,$host_cpu,;t t
12030s,@host_vendor@,$host_vendor,;t t
12031s,@host_os@,$host_os,;t t
12032s,@EGREP@,$EGREP,;t t
12033s,@ALLOCA@,$ALLOCA,;t t
12034s,@GLIBC21@,$GLIBC21,;t t
12035s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
12036s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
12037s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
12038s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
12039s,@LIBICONV@,$LIBICONV,;t t
12040s,@LTLIBICONV@,$LTLIBICONV,;t t
12041s,@INTLBISON@,$INTLBISON,;t t
12042s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
12043s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
12044s,@CATOBJEXT@,$CATOBJEXT,;t t
12045s,@DATADIRNAME@,$DATADIRNAME,;t t
12046s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12047s,@GENCAT@,$GENCAT,;t t
12048s,@INTLOBJS@,$INTLOBJS,;t t
12049s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
12050s,@INTLLIBS@,$INTLLIBS,;t t
12051s,@LIBINTL@,$LIBINTL,;t t
12052s,@LTLIBINTL@,$LTLIBINTL,;t t
12053s,@POSUB@,$POSUB,;t t
Peter Åstrande713b142004-11-16 13:29:40 +000012054s,@LIBOBJS@,$LIBOBJS,;t t
12055s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12056CEOF
12057
12058_ACEOF
12059
12060 cat >>$CONFIG_STATUS <<\_ACEOF
12061 # Split the substitutions into bite-sized pieces for seds with
12062 # small command number limits, like on Digital OSF/1 and HP-UX.
12063 ac_max_sed_lines=48
12064 ac_sed_frag=1 # Number of current file.
12065 ac_beg=1 # First line for current file.
12066 ac_end=$ac_max_sed_lines # Line after last line for current file.
12067 ac_more_lines=:
12068 ac_sed_cmds=
12069 while $ac_more_lines; do
12070 if test $ac_beg -gt 1; then
12071 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12072 else
12073 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12074 fi
12075 if test ! -s $tmp/subs.frag; then
12076 ac_more_lines=false
12077 else
12078 # The purpose of the label and of the branching condition is to
12079 # speed up the sed processing (if there are no `@' at all, there
12080 # is no need to browse any of the substitutions).
12081 # These are the two extra sed commands mentioned above.
12082 (echo ':t
12083 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12084 if test -z "$ac_sed_cmds"; then
12085 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12086 else
12087 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12088 fi
12089 ac_sed_frag=`expr $ac_sed_frag + 1`
12090 ac_beg=$ac_end
12091 ac_end=`expr $ac_end + $ac_max_sed_lines`
12092 fi
12093 done
12094 if test -z "$ac_sed_cmds"; then
12095 ac_sed_cmds=cat
12096 fi
12097fi # test -n "$CONFIG_FILES"
12098
12099_ACEOF
12100cat >>$CONFIG_STATUS <<\_ACEOF
12101for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12102 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12103 case $ac_file in
12104 - | *:- | *:-:* ) # input from stdin
12105 cat >$tmp/stdin
12106 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12107 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12108 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12109 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12110 * ) ac_file_in=$ac_file.in ;;
12111 esac
12112
12113 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12114 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12115$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12116 X"$ac_file" : 'X\(//\)[^/]' \| \
12117 X"$ac_file" : 'X\(//\)$' \| \
12118 X"$ac_file" : 'X\(/\)' \| \
12119 . : '\(.\)' 2>/dev/null ||
12120echo X"$ac_file" |
12121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12122 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12123 /^X\(\/\/\)$/{ s//\1/; q; }
12124 /^X\(\/\).*/{ s//\1/; q; }
12125 s/.*/./; q'`
12126 { if $as_mkdir_p; then
12127 mkdir -p "$ac_dir"
12128 else
12129 as_dir="$ac_dir"
12130 as_dirs=
12131 while test ! -d "$as_dir"; do
12132 as_dirs="$as_dir $as_dirs"
12133 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12134$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12135 X"$as_dir" : 'X\(//\)[^/]' \| \
12136 X"$as_dir" : 'X\(//\)$' \| \
12137 X"$as_dir" : 'X\(/\)' \| \
12138 . : '\(.\)' 2>/dev/null ||
12139echo X"$as_dir" |
12140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12141 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12142 /^X\(\/\/\)$/{ s//\1/; q; }
12143 /^X\(\/\).*/{ s//\1/; q; }
12144 s/.*/./; q'`
12145 done
12146 test ! -n "$as_dirs" || mkdir $as_dirs
12147 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12148echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12149 { (exit 1); exit 1; }; }; }
12150
12151 ac_builddir=.
12152
12153if test "$ac_dir" != .; then
12154 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12155 # A "../" for each directory in $ac_dir_suffix.
12156 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12157else
12158 ac_dir_suffix= ac_top_builddir=
12159fi
12160
12161case $srcdir in
12162 .) # No --srcdir option. We are building in place.
12163 ac_srcdir=.
12164 if test -z "$ac_top_builddir"; then
12165 ac_top_srcdir=.
12166 else
12167 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12168 fi ;;
12169 [\\/]* | ?:[\\/]* ) # Absolute path.
12170 ac_srcdir=$srcdir$ac_dir_suffix;
12171 ac_top_srcdir=$srcdir ;;
12172 *) # Relative path.
12173 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12174 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12175esac
12176
12177# Do not use `cd foo && pwd` to compute absolute paths, because
12178# the directories may not exist.
12179case `pwd` in
12180.) ac_abs_builddir="$ac_dir";;
12181*)
12182 case "$ac_dir" in
12183 .) ac_abs_builddir=`pwd`;;
12184 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12185 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12186 esac;;
12187esac
12188case $ac_abs_builddir in
12189.) ac_abs_top_builddir=${ac_top_builddir}.;;
12190*)
12191 case ${ac_top_builddir}. in
12192 .) ac_abs_top_builddir=$ac_abs_builddir;;
12193 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12194 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12195 esac;;
12196esac
12197case $ac_abs_builddir in
12198.) ac_abs_srcdir=$ac_srcdir;;
12199*)
12200 case $ac_srcdir in
12201 .) ac_abs_srcdir=$ac_abs_builddir;;
12202 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12203 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12204 esac;;
12205esac
12206case $ac_abs_builddir in
12207.) ac_abs_top_srcdir=$ac_top_srcdir;;
12208*)
12209 case $ac_top_srcdir in
12210 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12211 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12212 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12213 esac;;
12214esac
12215
12216
Peter Åstrand5a15f8c2005-01-23 20:44:20 +000012217 case $INSTALL in
12218 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12219 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12220 esac
Peter Åstrande713b142004-11-16 13:29:40 +000012221
12222 if test x"$ac_file" != x-; then
12223 { echo "$as_me:$LINENO: creating $ac_file" >&5
12224echo "$as_me: creating $ac_file" >&6;}
12225 rm -f "$ac_file"
12226 fi
12227 # Let's still pretend it is `configure' which instantiates (i.e., don't
12228 # use $as_me), people would be surprised to read:
12229 # /* config.h. Generated by config.status. */
12230 if test x"$ac_file" = x-; then
12231 configure_input=
12232 else
12233 configure_input="$ac_file. "
12234 fi
12235 configure_input=$configure_input"Generated from `echo $ac_file_in |
12236 sed 's,.*/,,'` by configure."
12237
12238 # First look for the input files in the build tree, otherwise in the
12239 # src tree.
12240 ac_file_inputs=`IFS=:
12241 for f in $ac_file_in; do
12242 case $f in
12243 -) echo $tmp/stdin ;;
12244 [\\/$]*)
12245 # Absolute (can't be DOS-style, as IFS=:)
12246 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12247echo "$as_me: error: cannot find input file: $f" >&2;}
12248 { (exit 1); exit 1; }; }
12249 echo "$f";;
12250 *) # Relative
12251 if test -f "$f"; then
12252 # Build tree
12253 echo "$f"
12254 elif test -f "$srcdir/$f"; then
12255 # Source tree
12256 echo "$srcdir/$f"
12257 else
12258 # /dev/null tree
12259 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12260echo "$as_me: error: cannot find input file: $f" >&2;}
12261 { (exit 1); exit 1; }; }
12262 fi;;
12263 esac
12264 done` || { (exit 1); exit 1; }
12265_ACEOF
12266cat >>$CONFIG_STATUS <<_ACEOF
12267 sed "$ac_vpsub
12268$extrasub
12269_ACEOF
12270cat >>$CONFIG_STATUS <<\_ACEOF
12271:t
12272/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12273s,@configure_input@,$configure_input,;t t
12274s,@srcdir@,$ac_srcdir,;t t
12275s,@abs_srcdir@,$ac_abs_srcdir,;t t
12276s,@top_srcdir@,$ac_top_srcdir,;t t
12277s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12278s,@builddir@,$ac_builddir,;t t
12279s,@abs_builddir@,$ac_abs_builddir,;t t
12280s,@top_builddir@,$ac_top_builddir,;t t
12281s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Peter Åstrand5a15f8c2005-01-23 20:44:20 +000012282s,@INSTALL@,$ac_INSTALL,;t t
Peter Åstrande713b142004-11-16 13:29:40 +000012283" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12284 rm -f $tmp/stdin
12285 if test x"$ac_file" != x-; then
12286 mv $tmp/out $ac_file
12287 else
12288 cat $tmp/out
12289 rm -f $tmp/out
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000012290 fi
12291
Peter Åstrande713b142004-11-16 13:29:40 +000012292done
12293_ACEOF
Peter Åstrand5a15f8c2005-01-23 20:44:20 +000012294cat >>$CONFIG_STATUS <<\_ACEOF
12295
12296#
12297# CONFIG_COMMANDS section.
12298#
12299for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12300 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12301 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12302 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12303$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12304 X"$ac_dest" : 'X\(//\)[^/]' \| \
12305 X"$ac_dest" : 'X\(//\)$' \| \
12306 X"$ac_dest" : 'X\(/\)' \| \
12307 . : '\(.\)' 2>/dev/null ||
12308echo X"$ac_dest" |
12309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12310 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12311 /^X\(\/\/\)$/{ s//\1/; q; }
12312 /^X\(\/\).*/{ s//\1/; q; }
12313 s/.*/./; q'`
12314 { if $as_mkdir_p; then
12315 mkdir -p "$ac_dir"
12316 else
12317 as_dir="$ac_dir"
12318 as_dirs=
12319 while test ! -d "$as_dir"; do
12320 as_dirs="$as_dir $as_dirs"
12321 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12322$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12323 X"$as_dir" : 'X\(//\)[^/]' \| \
12324 X"$as_dir" : 'X\(//\)$' \| \
12325 X"$as_dir" : 'X\(/\)' \| \
12326 . : '\(.\)' 2>/dev/null ||
12327echo X"$as_dir" |
12328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12330 /^X\(\/\/\)$/{ s//\1/; q; }
12331 /^X\(\/\).*/{ s//\1/; q; }
12332 s/.*/./; q'`
12333 done
12334 test ! -n "$as_dirs" || mkdir $as_dirs
12335 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12336echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12337 { (exit 1); exit 1; }; }; }
12338
12339 ac_builddir=.
12340
12341if test "$ac_dir" != .; then
12342 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12343 # A "../" for each directory in $ac_dir_suffix.
12344 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12345else
12346 ac_dir_suffix= ac_top_builddir=
12347fi
12348
12349case $srcdir in
12350 .) # No --srcdir option. We are building in place.
12351 ac_srcdir=.
12352 if test -z "$ac_top_builddir"; then
12353 ac_top_srcdir=.
12354 else
12355 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12356 fi ;;
12357 [\\/]* | ?:[\\/]* ) # Absolute path.
12358 ac_srcdir=$srcdir$ac_dir_suffix;
12359 ac_top_srcdir=$srcdir ;;
12360 *) # Relative path.
12361 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12362 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12363esac
12364
12365# Do not use `cd foo && pwd` to compute absolute paths, because
12366# the directories may not exist.
12367case `pwd` in
12368.) ac_abs_builddir="$ac_dir";;
12369*)
12370 case "$ac_dir" in
12371 .) ac_abs_builddir=`pwd`;;
12372 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12373 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12374 esac;;
12375esac
12376case $ac_abs_builddir in
12377.) ac_abs_top_builddir=${ac_top_builddir}.;;
12378*)
12379 case ${ac_top_builddir}. in
12380 .) ac_abs_top_builddir=$ac_abs_builddir;;
12381 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12382 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12383 esac;;
12384esac
12385case $ac_abs_builddir in
12386.) ac_abs_srcdir=$ac_srcdir;;
12387*)
12388 case $ac_srcdir in
12389 .) ac_abs_srcdir=$ac_abs_builddir;;
12390 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12391 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12392 esac;;
12393esac
12394case $ac_abs_builddir in
12395.) ac_abs_top_srcdir=$ac_top_srcdir;;
12396*)
12397 case $ac_top_srcdir in
12398 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12399 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12400 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12401 esac;;
12402esac
12403
12404
12405 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12406echo "$as_me: executing $ac_dest commands" >&6;}
12407 case $ac_dest in
12408 default-1 )
12409 for ac_file in $CONFIG_FILES; do
12410 # Support "outfile[:infile[:infile...]]"
12411 case "$ac_file" in
12412 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12413 esac
12414 # PO directories have a Makefile.in generated from Makefile.in.in.
12415 case "$ac_file" in */Makefile.in)
12416 # Adjust a relative srcdir.
12417 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12418 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12419 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12420 # In autoconf-2.13 it is called $ac_given_srcdir.
12421 # In autoconf-2.50 it is called $srcdir.
12422 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12423 case "$ac_given_srcdir" in
12424 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12425 /*) top_srcdir="$ac_given_srcdir" ;;
12426 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12427 esac
12428 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12429 rm -f "$ac_dir/POTFILES"
12430 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12431 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12432 POMAKEFILEDEPS="POTFILES.in"
12433 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12434 # on $ac_dir but don't depend on user-specified configuration
12435 # parameters.
12436 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12437 # The LINGUAS file contains the set of available languages.
12438 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12439 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12440 fi
12441 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12442 # Hide the ALL_LINGUAS assigment from automake.
12443 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12444 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12445 else
12446 # The set of available languages was given in configure.in.
12447 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12448 fi
12449 # Compute POFILES
12450 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12451 # Compute UPDATEPOFILES
12452 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12453 # Compute DUMMYPOFILES
12454 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12455 # Compute GMOFILES
12456 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12457 case "$ac_given_srcdir" in
12458 .) srcdirpre= ;;
12459 *) srcdirpre='$(srcdir)/' ;;
12460 esac
12461 POFILES=
12462 UPDATEPOFILES=
12463 DUMMYPOFILES=
12464 GMOFILES=
12465 for lang in $ALL_LINGUAS; do
12466 POFILES="$POFILES $srcdirpre$lang.po"
12467 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12468 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12469 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12470 done
12471 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12472 # environment variable.
12473 INST_LINGUAS=
12474 if test -n "$ALL_LINGUAS"; then
12475 for presentlang in $ALL_LINGUAS; do
12476 useit=no
12477 if test "%UNSET%" != "$LINGUAS"; then
12478 desiredlanguages="$LINGUAS"
12479 else
12480 desiredlanguages="$ALL_LINGUAS"
12481 fi
12482 for desiredlang in $desiredlanguages; do
12483 # Use the presentlang catalog if desiredlang is
12484 # a. equal to presentlang, or
12485 # b. a variant of presentlang (because in this case,
12486 # presentlang can be used as a fallback for messages
12487 # which are not translated in the desiredlang catalog).
12488 case "$desiredlang" in
12489 "$presentlang"*) useit=yes;;
12490 esac
12491 done
12492 if test $useit = yes; then
12493 INST_LINGUAS="$INST_LINGUAS $presentlang"
12494 fi
12495 done
12496 fi
12497 CATALOGS=
12498 if test -n "$INST_LINGUAS"; then
12499 for lang in $INST_LINGUAS; do
12500 CATALOGS="$CATALOGS $lang.gmo"
12501 done
12502 fi
12503 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12504 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"
12505 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12506 if test -f "$f"; then
12507 case "$f" in
12508 *.orig | *.bak | *~) ;;
12509 *) cat "$f" >> "$ac_dir/Makefile" ;;
12510 esac
12511 fi
12512 done
12513 fi
12514 ;;
12515 esac
12516 done ;;
12517 esac
12518done
12519_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000012520
Peter Åstrande713b142004-11-16 13:29:40 +000012521cat >>$CONFIG_STATUS <<\_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000012522
Peter Åstrande713b142004-11-16 13:29:40 +000012523{ (exit 0); exit 0; }
12524_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000012525chmod +x $CONFIG_STATUS
Peter Åstrande713b142004-11-16 13:29:40 +000012526ac_clean_files=$ac_clean_files_save
12527
12528
12529# configure is writing to config.log, and then calls config.status.
12530# config.status does its own redirection, appending to config.log.
12531# Unfortunately, on DOS this fails, as config.log is still kept open
12532# by configure, so config.status won't be able to write to it; its
12533# output is simply discarded. So we exec the FD to /dev/null,
12534# effectively closing config.log, so it can be properly (re)opened and
12535# appended to by config.status. When coming back to configure, we
12536# need to make the FD available again.
12537if test "$no_create" != yes; then
12538 ac_cs_success=:
12539 ac_config_status_args=
12540 test "$silent" = yes &&
12541 ac_config_status_args="$ac_config_status_args --quiet"
12542 exec 5>/dev/null
12543 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12544 exec 5>>config.log
12545 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12546 # would make configure fail if this is the last instruction.
12547 $ac_cs_success || { (exit 1); exit 1; }
12548fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000012549