blob: a645caf9ebdf8dc632b19b12b1d224ba3775df50 [file] [log] [blame]
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
Constantin Kaplinsky97ac5552006-06-02 04:13:14 +0000274ac_unique_file="vncviewer/vncviewer.cxx"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
Constantin Kaplinskya8748812007-09-05 09:29:06 +0000312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB SET_MAKE MITSHM_DEFINE DMEDIA_LIB CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS ZLIB_DIR ZLIB_INCLUDE ZLIB_LIB JPEG_DIR JPEG_INCLUDE JPEG_LIB VNCCONFIG_DIR XTEST_DEFINE XTEST_LIB READDISPLAY_DEFINE INET_LIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS LTLIBOBJS'
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CXX_set=${CXX+set}
770ac_env_CXX_value=$CXX
771ac_cv_env_CXX_set=${CXX+set}
772ac_cv_env_CXX_value=$CXX
773ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774ac_env_CXXFLAGS_value=$CXXFLAGS
775ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777ac_env_CXXCPP_set=${CXXCPP+set}
778ac_env_CXXCPP_value=$CXXCPP
779ac_cv_env_CXXCPP_set=${CXXCPP+set}
780ac_cv_env_CXXCPP_value=$CXXCPP
781
782#
783# Report the --help message.
784#
785if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789\`configure' configures this package to adapt to many kinds of systems.
790
791Usage: $0 [OPTION]... [VAR=VALUE]...
792
793To assign environment variables (e.g., CC, CFLAGS...), specify them as
794VAR=VALUE. See below for descriptions of some of the useful variables.
795
796Defaults for the options are specified in brackets.
797
798Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
808
809_ACEOF
810
811 cat <<_ACEOF
812Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
817
818By default, \`make install' will install all the files in
819\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821for instance \`--prefix=\$HOME'.
822
823For better control, use the options below.
824
825Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838_ACEOF
839
840 cat <<\_ACEOF
841
842X features:
843 --x-includes=DIR X include files are in DIR
844 --x-libraries=DIR X library files are in DIR
845
846System types:
847 --build=BUILD configure for building on BUILD [guessed]
848 --host=HOST cross-compile to build programs to run on HOST [BUILD]
849_ACEOF
850fi
851
852if test -n "$ac_init_help"; then
853
854 cat <<\_ACEOF
855
856Optional Features:
857 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
858 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
859 --enable-vncconfig build the vncconfig utility (assumed by default),
860 use --disable-vncconfig to skip building vncconfig
861 --disable-nls do not use Native Language Support
862 --disable-rpath do not hardcode runtime library paths
863
864Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-x use the X Window System
868 --with-installed-zlib use the version of zlib which is installed on the
869 system instead of the one distributed with VNC
870 --with-installed-jpeg use the version of jpeg which is installed on the
871 system instead of the one distributed with VNC
872 --with-gnu-ld assume the C compiler uses GNU ld default=no
873 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
874 --without-libiconv-prefix don't search for libiconv in includedir and libdir
875 --with-included-gettext use the GNU gettext library included here
876 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
877 --without-libintl-prefix don't search for libintl in includedir and libdir
878
879Some influential environment variables:
880 CC C compiler command
881 CFLAGS C compiler flags
882 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
883 nonstandard directory <lib dir>
884 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
885 headers in a nonstandard directory <include dir>
886 CXX C++ compiler command
887 CXXFLAGS C++ compiler flags
888 CXXCPP C++ preprocessor
889
890Use these variables to override the choices made by `configure' or to help
891it to find libraries and programs with nonstandard names/locations.
892
893_ACEOF
894fi
895
896if test "$ac_init_help" = "recursive"; then
897 # If there are subdirs, report their specific --help.
898 ac_popdir=`pwd`
899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900 test -d $ac_dir || continue
901 ac_builddir=.
902
903if test "$ac_dir" != .; then
904 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
905 # A "../" for each directory in $ac_dir_suffix.
906 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
907else
908 ac_dir_suffix= ac_top_builddir=
909fi
910
911case $srcdir in
912 .) # No --srcdir option. We are building in place.
913 ac_srcdir=.
914 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=.
916 else
917 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
918 fi ;;
919 [\\/]* | ?:[\\/]* ) # Absolute path.
920 ac_srcdir=$srcdir$ac_dir_suffix;
921 ac_top_srcdir=$srcdir ;;
922 *) # Relative path.
923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
925esac
926
927# Do not use `cd foo && pwd` to compute absolute paths, because
928# the directories may not exist.
929case `pwd` in
930.) ac_abs_builddir="$ac_dir";;
931*)
932 case "$ac_dir" in
933 .) ac_abs_builddir=`pwd`;;
934 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
935 *) ac_abs_builddir=`pwd`/"$ac_dir";;
936 esac;;
937esac
938case $ac_abs_builddir in
939.) ac_abs_top_builddir=${ac_top_builddir}.;;
940*)
941 case ${ac_top_builddir}. in
942 .) ac_abs_top_builddir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
944 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
945 esac;;
946esac
947case $ac_abs_builddir in
948.) ac_abs_srcdir=$ac_srcdir;;
949*)
950 case $ac_srcdir in
951 .) ac_abs_srcdir=$ac_abs_builddir;;
952 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
953 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
954 esac;;
955esac
956case $ac_abs_builddir in
957.) ac_abs_top_srcdir=$ac_top_srcdir;;
958*)
959 case $ac_top_srcdir in
960 .) ac_abs_top_srcdir=$ac_abs_builddir;;
961 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
962 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
963 esac;;
964esac
965
966 cd $ac_dir
967 # Check for guested configure; otherwise get Cygnus style configure.
968 if test -f $ac_srcdir/configure.gnu; then
969 echo
970 $SHELL $ac_srcdir/configure.gnu --help=recursive
971 elif test -f $ac_srcdir/configure; then
972 echo
973 $SHELL $ac_srcdir/configure --help=recursive
974 elif test -f $ac_srcdir/configure.ac ||
975 test -f $ac_srcdir/configure.in; then
976 echo
977 $ac_configure --help
978 else
979 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
980 fi
981 cd $ac_popdir
982 done
983fi
984
985test -n "$ac_init_help" && exit 0
986if $ac_init_version; then
987 cat <<\_ACEOF
988
989Copyright (C) 2003 Free Software Foundation, Inc.
990This configure script is free software; the Free Software Foundation
991gives unlimited permission to copy, distribute and modify it.
992_ACEOF
993 exit 0
994fi
995exec 5>config.log
996cat >&5 <<_ACEOF
997This file contains any messages produced by compilers while
998running configure, to aid debugging if configure makes a mistake.
999
1000It was created by $as_me, which was
1001generated by GNU Autoconf 2.59. Invocation command line was
1002
1003 $ $0 $@
1004
1005_ACEOF
1006{
1007cat <<_ASUNAME
1008## --------- ##
1009## Platform. ##
1010## --------- ##
1011
1012hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1013uname -m = `(uname -m) 2>/dev/null || echo unknown`
1014uname -r = `(uname -r) 2>/dev/null || echo unknown`
1015uname -s = `(uname -s) 2>/dev/null || echo unknown`
1016uname -v = `(uname -v) 2>/dev/null || echo unknown`
1017
1018/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1019/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1020
1021/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1022/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1023/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1024hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1025/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1026/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1027/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1028
1029_ASUNAME
1030
1031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1032for as_dir in $PATH
1033do
1034 IFS=$as_save_IFS
1035 test -z "$as_dir" && as_dir=.
1036 echo "PATH: $as_dir"
1037done
1038
1039} >&5
1040
1041cat >&5 <<_ACEOF
1042
1043
1044## ----------- ##
1045## Core tests. ##
1046## ----------- ##
1047
1048_ACEOF
1049
1050
1051# Keep a trace of the command line.
1052# Strip out --no-create and --no-recursion so they do not pile up.
1053# Strip out --silent because we don't want to record it for future runs.
1054# Also quote any args containing shell meta-characters.
1055# Make two passes to allow for proper duplicate-argument suppression.
1056ac_configure_args=
1057ac_configure_args0=
1058ac_configure_args1=
1059ac_sep=
1060ac_must_keep_next=false
1061for ac_pass in 1 2
1062do
1063 for ac_arg
1064 do
1065 case $ac_arg in
1066 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1069 continue ;;
1070 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1071 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1072 esac
1073 case $ac_pass in
1074 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1075 2)
1076 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1077 if test $ac_must_keep_next = true; then
1078 ac_must_keep_next=false # Got value, back to normal.
1079 else
1080 case $ac_arg in
1081 *=* | --config-cache | -C | -disable-* | --disable-* \
1082 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1083 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1084 | -with-* | --with-* | -without-* | --without-* | --x)
1085 case "$ac_configure_args0 " in
1086 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1087 esac
1088 ;;
1089 -* ) ac_must_keep_next=true ;;
1090 esac
1091 fi
1092 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1093 # Get rid of the leading space.
1094 ac_sep=" "
1095 ;;
1096 esac
1097 done
1098done
1099$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1100$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1101
1102# When interrupted or exit'd, cleanup temporary files, and complete
1103# config.log. We remove comments because anyway the quotes in there
1104# would cause problems or look ugly.
1105# WARNING: Be sure not to use single quotes in there, as some shells,
1106# such as our DU 5.0 friend, will then `close' the trap.
1107trap 'exit_status=$?
1108 # Save into config.log some information that might help in debugging.
1109 {
1110 echo
1111
1112 cat <<\_ASBOX
1113## ---------------- ##
1114## Cache variables. ##
1115## ---------------- ##
1116_ASBOX
1117 echo
1118 # The following way of writing the cache mishandles newlines in values,
1119{
1120 (set) 2>&1 |
1121 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1122 *ac_space=\ *)
1123 sed -n \
1124 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1126 ;;
1127 *)
1128 sed -n \
1129 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130 ;;
1131 esac;
1132}
1133 echo
1134
1135 cat <<\_ASBOX
1136## ----------------- ##
1137## Output variables. ##
1138## ----------------- ##
1139_ASBOX
1140 echo
1141 for ac_var in $ac_subst_vars
1142 do
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1145 done | sort
1146 echo
1147
1148 if test -n "$ac_subst_files"; then
1149 cat <<\_ASBOX
1150## ------------- ##
1151## Output files. ##
1152## ------------- ##
1153_ASBOX
1154 echo
1155 for ac_var in $ac_subst_files
1156 do
1157 eval ac_val=$`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1159 done | sort
1160 echo
1161 fi
1162
1163 if test -s confdefs.h; then
1164 cat <<\_ASBOX
1165## ----------- ##
1166## confdefs.h. ##
1167## ----------- ##
1168_ASBOX
1169 echo
1170 sed "/^$/d" confdefs.h | sort
1171 echo
1172 fi
1173 test "$ac_signal" != 0 &&
1174 echo "$as_me: caught signal $ac_signal"
1175 echo "$as_me: exit $exit_status"
1176 } >&5
1177 rm -f core *.core &&
1178 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1179 exit $exit_status
1180 ' 0
1181for ac_signal in 1 2 13 15; do
1182 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1183done
1184ac_signal=0
1185
1186# confdefs.h avoids OS command line length limits that DEFS can exceed.
1187rm -rf conftest* confdefs.h
1188# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1189echo >confdefs.h
1190
1191# Predefined preprocessor variables.
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_NAME "$PACKAGE_NAME"
1195_ACEOF
1196
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_VERSION "$PACKAGE_VERSION"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_STRING "$PACKAGE_STRING"
1210_ACEOF
1211
1212
1213cat >>confdefs.h <<_ACEOF
1214#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1215_ACEOF
1216
1217
1218# Let the site file select an alternate cache file if it wants to.
1219# Prefer explicitly selected file to automatically selected ones.
1220if test -z "$CONFIG_SITE"; then
1221 if test "x$prefix" != xNONE; then
1222 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1223 else
1224 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1225 fi
1226fi
1227for ac_site_file in $CONFIG_SITE; do
1228 if test -r "$ac_site_file"; then
1229 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1230echo "$as_me: loading site script $ac_site_file" >&6;}
1231 sed 's/^/| /' "$ac_site_file" >&5
1232 . "$ac_site_file"
1233 fi
1234done
1235
1236if test -r "$cache_file"; then
1237 # Some versions of bash will fail to source /dev/null (special
1238 # files actually), so we avoid doing that.
1239 if test -f "$cache_file"; then
1240 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1241echo "$as_me: loading cache $cache_file" >&6;}
1242 case $cache_file in
1243 [\\/]* | ?:[\\/]* ) . $cache_file;;
1244 *) . ./$cache_file;;
1245 esac
1246 fi
1247else
1248 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1249echo "$as_me: creating cache $cache_file" >&6;}
1250 >$cache_file
1251fi
1252
1253# Check that the precious variables saved in the cache have kept the same
1254# value.
1255ac_cache_corrupted=false
1256for ac_var in `(set) 2>&1 |
1257 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1258 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1259 eval ac_new_set=\$ac_env_${ac_var}_set
1260 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1261 eval ac_new_val="\$ac_env_${ac_var}_value"
1262 case $ac_old_set,$ac_new_set in
1263 set,)
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1265echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,set)
1268 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1269echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1270 ac_cache_corrupted=: ;;
1271 ,);;
1272 *)
1273 if test "x$ac_old_val" != "x$ac_new_val"; then
1274 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1275echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1276 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1277echo "$as_me: former value: $ac_old_val" >&2;}
1278 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1279echo "$as_me: current value: $ac_new_val" >&2;}
1280 ac_cache_corrupted=:
1281 fi;;
1282 esac
1283 # Pass precious variables to config.status.
1284 if test "$ac_new_set" = set; then
1285 case $ac_new_val in
1286 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1288 *) ac_arg=$ac_var=$ac_new_val ;;
1289 esac
1290 case " $ac_configure_args " in
1291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1292 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1293 esac
1294 fi
1295done
1296if $ac_cache_corrupted; then
1297 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1298echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1299 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1300echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1301 { (exit 1); exit 1; }; }
1302fi
1303
1304ac_ext=c
1305ac_cpp='$CPP $CPPFLAGS'
1306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1308ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329PACKAGE=tightvnc
1330VERSION=1.5.0
1331cat >>confdefs.h <<_ACEOF
1332#define PACKAGE "$PACKAGE"
1333_ACEOF
1334
1335cat >>confdefs.h <<_ACEOF
1336#define VERSION "$VERSION"
1337_ACEOF
1338
1339
1340
1341
Constantin Kaplinsky97ac5552006-06-02 04:13:14 +00001342echo "configuring common..."
1343(cd ../common; ./configure $*)
1344echo "...done configuring common"
1345
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001346ac_cv_prog_cc_g=no
1347ac_cv_prog_cxx_g=no
1348
1349ac_ext=c
1350ac_cpp='$CPP $CPPFLAGS'
1351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1353ac_compiler_gnu=$ac_cv_c_compiler_gnu
1354if test -n "$ac_tool_prefix"; then
1355 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1356set dummy ${ac_tool_prefix}gcc; ac_word=$2
1357echo "$as_me:$LINENO: checking for $ac_word" >&5
1358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1359if test "${ac_cv_prog_CC+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1361else
1362 if test -n "$CC"; then
1363 ac_cv_prog_CC="$CC" # Let the user override the test.
1364else
1365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1366for as_dir in $PATH
1367do
1368 IFS=$as_save_IFS
1369 test -z "$as_dir" && as_dir=.
1370 for ac_exec_ext in '' $ac_executable_extensions; do
1371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1372 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1374 break 2
1375 fi
1376done
1377done
1378
1379fi
1380fi
1381CC=$ac_cv_prog_CC
1382if test -n "$CC"; then
1383 echo "$as_me:$LINENO: result: $CC" >&5
1384echo "${ECHO_T}$CC" >&6
1385else
1386 echo "$as_me:$LINENO: result: no" >&5
1387echo "${ECHO_T}no" >&6
1388fi
1389
1390fi
1391if test -z "$ac_cv_prog_CC"; then
1392 ac_ct_CC=$CC
1393 # Extract the first word of "gcc", so it can be a program name with args.
1394set dummy gcc; ac_word=$2
1395echo "$as_me:$LINENO: checking for $ac_word" >&5
1396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1397if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1398 echo $ECHO_N "(cached) $ECHO_C" >&6
1399else
1400 if test -n "$ac_ct_CC"; then
1401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1402else
1403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1404for as_dir in $PATH
1405do
1406 IFS=$as_save_IFS
1407 test -z "$as_dir" && as_dir=.
1408 for ac_exec_ext in '' $ac_executable_extensions; do
1409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1410 ac_cv_prog_ac_ct_CC="gcc"
1411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1412 break 2
1413 fi
1414done
1415done
1416
1417fi
1418fi
1419ac_ct_CC=$ac_cv_prog_ac_ct_CC
1420if test -n "$ac_ct_CC"; then
1421 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1422echo "${ECHO_T}$ac_ct_CC" >&6
1423else
1424 echo "$as_me:$LINENO: result: no" >&5
1425echo "${ECHO_T}no" >&6
1426fi
1427
1428 CC=$ac_ct_CC
1429else
1430 CC="$ac_cv_prog_CC"
1431fi
1432
1433if test -z "$CC"; then
1434 if test -n "$ac_tool_prefix"; then
1435 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1436set dummy ${ac_tool_prefix}cc; ac_word=$2
1437echo "$as_me:$LINENO: checking for $ac_word" >&5
1438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439if test "${ac_cv_prog_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1441else
1442 if test -n "$CC"; then
1443 ac_cv_prog_CC="$CC" # Let the user override the test.
1444else
1445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446for as_dir in $PATH
1447do
1448 IFS=$as_save_IFS
1449 test -z "$as_dir" && as_dir=.
1450 for ac_exec_ext in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452 ac_cv_prog_CC="${ac_tool_prefix}cc"
1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 break 2
1455 fi
1456done
1457done
1458
1459fi
1460fi
1461CC=$ac_cv_prog_CC
1462if test -n "$CC"; then
1463 echo "$as_me:$LINENO: result: $CC" >&5
1464echo "${ECHO_T}$CC" >&6
1465else
1466 echo "$as_me:$LINENO: result: no" >&5
1467echo "${ECHO_T}no" >&6
1468fi
1469
1470fi
1471if test -z "$ac_cv_prog_CC"; then
1472 ac_ct_CC=$CC
1473 # Extract the first word of "cc", so it can be a program name with args.
1474set dummy cc; ac_word=$2
1475echo "$as_me:$LINENO: checking for $ac_word" >&5
1476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1479else
1480 if test -n "$ac_ct_CC"; then
1481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1482else
1483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484for as_dir in $PATH
1485do
1486 IFS=$as_save_IFS
1487 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_ac_ct_CC="cc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492 break 2
1493 fi
1494done
1495done
1496
1497fi
1498fi
1499ac_ct_CC=$ac_cv_prog_ac_ct_CC
1500if test -n "$ac_ct_CC"; then
1501 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1502echo "${ECHO_T}$ac_ct_CC" >&6
1503else
1504 echo "$as_me:$LINENO: result: no" >&5
1505echo "${ECHO_T}no" >&6
1506fi
1507
1508 CC=$ac_ct_CC
1509else
1510 CC="$ac_cv_prog_CC"
1511fi
1512
1513fi
1514if test -z "$CC"; then
1515 # Extract the first word of "cc", so it can be a program name with args.
1516set dummy cc; ac_word=$2
1517echo "$as_me:$LINENO: checking for $ac_word" >&5
1518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519if test "${ac_cv_prog_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1521else
1522 if test -n "$CC"; then
1523 ac_cv_prog_CC="$CC" # Let the user override the test.
1524else
1525 ac_prog_rejected=no
1526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527for as_dir in $PATH
1528do
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1534 ac_prog_rejected=yes
1535 continue
1536 fi
1537 ac_cv_prog_CC="cc"
1538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539 break 2
1540 fi
1541done
1542done
1543
1544if test $ac_prog_rejected = yes; then
1545 # We found a bogon in the path, so make sure we never use it.
1546 set dummy $ac_cv_prog_CC
1547 shift
1548 if test $# != 0; then
1549 # We chose a different compiler from the bogus one.
1550 # However, it has the same basename, so the bogon will be chosen
1551 # first if we set CC to just the basename; use the full file name.
1552 shift
1553 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1554 fi
1555fi
1556fi
1557fi
1558CC=$ac_cv_prog_CC
1559if test -n "$CC"; then
1560 echo "$as_me:$LINENO: result: $CC" >&5
1561echo "${ECHO_T}$CC" >&6
1562else
1563 echo "$as_me:$LINENO: result: no" >&5
1564echo "${ECHO_T}no" >&6
1565fi
1566
1567fi
1568if test -z "$CC"; then
1569 if test -n "$ac_tool_prefix"; then
1570 for ac_prog in cl
1571 do
1572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1573set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1574echo "$as_me:$LINENO: checking for $ac_word" >&5
1575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1576if test "${ac_cv_prog_CC+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578else
1579 if test -n "$CC"; then
1580 ac_cv_prog_CC="$CC" # Let the user override the test.
1581else
1582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583for as_dir in $PATH
1584do
1585 IFS=$as_save_IFS
1586 test -z "$as_dir" && as_dir=.
1587 for ac_exec_ext in '' $ac_executable_extensions; do
1588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1589 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1591 break 2
1592 fi
1593done
1594done
1595
1596fi
1597fi
1598CC=$ac_cv_prog_CC
1599if test -n "$CC"; then
1600 echo "$as_me:$LINENO: result: $CC" >&5
1601echo "${ECHO_T}$CC" >&6
1602else
1603 echo "$as_me:$LINENO: result: no" >&5
1604echo "${ECHO_T}no" >&6
1605fi
1606
1607 test -n "$CC" && break
1608 done
1609fi
1610if test -z "$CC"; then
1611 ac_ct_CC=$CC
1612 for ac_prog in cl
1613do
1614 # Extract the first word of "$ac_prog", so it can be a program name with args.
1615set dummy $ac_prog; ac_word=$2
1616echo "$as_me:$LINENO: checking for $ac_word" >&5
1617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620else
1621 if test -n "$ac_ct_CC"; then
1622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1623else
1624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625for as_dir in $PATH
1626do
1627 IFS=$as_save_IFS
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 ac_cv_prog_ac_ct_CC="$ac_prog"
1632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633 break 2
1634 fi
1635done
1636done
1637
1638fi
1639fi
1640ac_ct_CC=$ac_cv_prog_ac_ct_CC
1641if test -n "$ac_ct_CC"; then
1642 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1643echo "${ECHO_T}$ac_ct_CC" >&6
1644else
1645 echo "$as_me:$LINENO: result: no" >&5
1646echo "${ECHO_T}no" >&6
1647fi
1648
1649 test -n "$ac_ct_CC" && break
1650done
1651
1652 CC=$ac_ct_CC
1653fi
1654
1655fi
1656
1657
1658test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1659See \`config.log' for more details." >&5
1660echo "$as_me: error: no acceptable C compiler found in \$PATH
1661See \`config.log' for more details." >&2;}
1662 { (exit 1); exit 1; }; }
1663
1664# Provide some information about the compiler.
1665echo "$as_me:$LINENO:" \
1666 "checking for C compiler version" >&5
1667ac_compiler=`set X $ac_compile; echo $2`
1668{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1669 (eval $ac_compiler --version </dev/null >&5) 2>&5
1670 ac_status=$?
1671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1672 (exit $ac_status); }
1673{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1674 (eval $ac_compiler -v </dev/null >&5) 2>&5
1675 ac_status=$?
1676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1677 (exit $ac_status); }
1678{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1679 (eval $ac_compiler -V </dev/null >&5) 2>&5
1680 ac_status=$?
1681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1682 (exit $ac_status); }
1683
1684cat >conftest.$ac_ext <<_ACEOF
1685/* confdefs.h. */
1686_ACEOF
1687cat confdefs.h >>conftest.$ac_ext
1688cat >>conftest.$ac_ext <<_ACEOF
1689/* end confdefs.h. */
1690
1691int
1692main ()
1693{
1694
1695 ;
1696 return 0;
1697}
1698_ACEOF
1699ac_clean_files_save=$ac_clean_files
1700ac_clean_files="$ac_clean_files a.out a.exe b.out"
1701# Try to create an executable without -o first, disregard a.out.
1702# It will help us diagnose broken compilers, and finding out an intuition
1703# of exeext.
1704echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1705echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1706ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1707if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1708 (eval $ac_link_default) 2>&5
1709 ac_status=$?
1710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1711 (exit $ac_status); }; then
1712 # Find the output, starting from the most likely. This scheme is
1713# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1714# resort.
1715
1716# Be careful to initialize this variable, since it used to be cached.
1717# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1718ac_cv_exeext=
1719# b.out is created by i960 compilers.
1720for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1721do
1722 test -f "$ac_file" || continue
1723 case $ac_file in
1724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1725 ;;
1726 conftest.$ac_ext )
1727 # This is the source file.
1728 ;;
1729 [ab].out )
1730 # We found the default executable, but exeext='' is most
1731 # certainly right.
1732 break;;
1733 *.* )
1734 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1735 # FIXME: I believe we export ac_cv_exeext for Libtool,
1736 # but it would be cool to find out if it's true. Does anybody
1737 # maintain Libtool? --akim.
1738 export ac_cv_exeext
1739 break;;
1740 * )
1741 break;;
1742 esac
1743done
1744else
1745 echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1749See \`config.log' for more details." >&5
1750echo "$as_me: error: C compiler cannot create executables
1751See \`config.log' for more details." >&2;}
1752 { (exit 77); exit 77; }; }
1753fi
1754
1755ac_exeext=$ac_cv_exeext
1756echo "$as_me:$LINENO: result: $ac_file" >&5
1757echo "${ECHO_T}$ac_file" >&6
1758
1759# Check the compiler produces executables we can run. If not, either
1760# the compiler is broken, or we cross compile.
1761echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1762echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1763# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1764# If not cross compiling, check that we can run a simple program.
1765if test "$cross_compiling" != yes; then
1766 if { ac_try='./$ac_file'
1767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1768 (eval $ac_try) 2>&5
1769 ac_status=$?
1770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1771 (exit $ac_status); }; }; then
1772 cross_compiling=no
1773 else
1774 if test "$cross_compiling" = maybe; then
1775 cross_compiling=yes
1776 else
1777 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1778If you meant to cross compile, use \`--host'.
1779See \`config.log' for more details." >&5
1780echo "$as_me: error: cannot run C compiled programs.
1781If you meant to cross compile, use \`--host'.
1782See \`config.log' for more details." >&2;}
1783 { (exit 1); exit 1; }; }
1784 fi
1785 fi
1786fi
1787echo "$as_me:$LINENO: result: yes" >&5
1788echo "${ECHO_T}yes" >&6
1789
1790rm -f a.out a.exe conftest$ac_cv_exeext b.out
1791ac_clean_files=$ac_clean_files_save
1792# Check the compiler produces executables we can run. If not, either
1793# the compiler is broken, or we cross compile.
1794echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1795echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1796echo "$as_me:$LINENO: result: $cross_compiling" >&5
1797echo "${ECHO_T}$cross_compiling" >&6
1798
1799echo "$as_me:$LINENO: checking for suffix of executables" >&5
1800echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1802 (eval $ac_link) 2>&5
1803 ac_status=$?
1804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805 (exit $ac_status); }; then
1806 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1807# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1808# work properly (i.e., refer to `conftest.exe'), while it won't with
1809# `rm'.
1810for ac_file in conftest.exe conftest conftest.*; do
1811 test -f "$ac_file" || continue
1812 case $ac_file in
1813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1814 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1815 export ac_cv_exeext
1816 break;;
1817 * ) break;;
1818 esac
1819done
1820else
1821 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1822See \`config.log' for more details." >&5
1823echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1824See \`config.log' for more details." >&2;}
1825 { (exit 1); exit 1; }; }
1826fi
1827
1828rm -f conftest$ac_cv_exeext
1829echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1830echo "${ECHO_T}$ac_cv_exeext" >&6
1831
1832rm -f conftest.$ac_ext
1833EXEEXT=$ac_cv_exeext
1834ac_exeext=$EXEEXT
1835echo "$as_me:$LINENO: checking for suffix of object files" >&5
1836echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1837if test "${ac_cv_objext+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1839else
1840 cat >conftest.$ac_ext <<_ACEOF
1841/* confdefs.h. */
1842_ACEOF
1843cat confdefs.h >>conftest.$ac_ext
1844cat >>conftest.$ac_ext <<_ACEOF
1845/* end confdefs.h. */
1846
1847int
1848main ()
1849{
1850
1851 ;
1852 return 0;
1853}
1854_ACEOF
1855rm -f conftest.o conftest.obj
1856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1857 (eval $ac_compile) 2>&5
1858 ac_status=$?
1859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860 (exit $ac_status); }; then
1861 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1862 case $ac_file in
1863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1864 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1865 break;;
1866 esac
1867done
1868else
1869 echo "$as_me: failed program was:" >&5
1870sed 's/^/| /' conftest.$ac_ext >&5
1871
1872{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1873See \`config.log' for more details." >&5
1874echo "$as_me: error: cannot compute suffix of object files: cannot compile
1875See \`config.log' for more details." >&2;}
1876 { (exit 1); exit 1; }; }
1877fi
1878
1879rm -f conftest.$ac_cv_objext conftest.$ac_ext
1880fi
1881echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1882echo "${ECHO_T}$ac_cv_objext" >&6
1883OBJEXT=$ac_cv_objext
1884ac_objext=$OBJEXT
1885echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1886echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1887if test "${ac_cv_c_compiler_gnu+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1889else
1890 cat >conftest.$ac_ext <<_ACEOF
1891/* confdefs.h. */
1892_ACEOF
1893cat confdefs.h >>conftest.$ac_ext
1894cat >>conftest.$ac_ext <<_ACEOF
1895/* end confdefs.h. */
1896
1897int
1898main ()
1899{
1900#ifndef __GNUC__
1901 choke me
1902#endif
1903
1904 ;
1905 return 0;
1906}
1907_ACEOF
1908rm -f conftest.$ac_objext
1909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1910 (eval $ac_compile) 2>conftest.er1
1911 ac_status=$?
1912 grep -v '^ *+' conftest.er1 >conftest.err
1913 rm -f conftest.er1
1914 cat conftest.err >&5
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); } &&
1917 { ac_try='test -z "$ac_c_werror_flag"
1918 || test ! -s conftest.err'
1919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1920 (eval $ac_try) 2>&5
1921 ac_status=$?
1922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923 (exit $ac_status); }; } &&
1924 { ac_try='test -s conftest.$ac_objext'
1925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1926 (eval $ac_try) 2>&5
1927 ac_status=$?
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); }; }; then
1930 ac_compiler_gnu=yes
1931else
1932 echo "$as_me: failed program was:" >&5
1933sed 's/^/| /' conftest.$ac_ext >&5
1934
1935ac_compiler_gnu=no
1936fi
1937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1938ac_cv_c_compiler_gnu=$ac_compiler_gnu
1939
1940fi
1941echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1942echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1943GCC=`test $ac_compiler_gnu = yes && echo yes`
1944ac_test_CFLAGS=${CFLAGS+set}
1945ac_save_CFLAGS=$CFLAGS
1946CFLAGS="-g"
1947echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1948echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1949if test "${ac_cv_prog_cc_g+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1951else
1952 cat >conftest.$ac_ext <<_ACEOF
1953/* confdefs.h. */
1954_ACEOF
1955cat confdefs.h >>conftest.$ac_ext
1956cat >>conftest.$ac_ext <<_ACEOF
1957/* end confdefs.h. */
1958
1959int
1960main ()
1961{
1962
1963 ;
1964 return 0;
1965}
1966_ACEOF
1967rm -f conftest.$ac_objext
1968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1969 (eval $ac_compile) 2>conftest.er1
1970 ac_status=$?
1971 grep -v '^ *+' conftest.er1 >conftest.err
1972 rm -f conftest.er1
1973 cat conftest.err >&5
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975 (exit $ac_status); } &&
1976 { ac_try='test -z "$ac_c_werror_flag"
1977 || test ! -s conftest.err'
1978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1979 (eval $ac_try) 2>&5
1980 ac_status=$?
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }; } &&
1983 { ac_try='test -s conftest.$ac_objext'
1984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1985 (eval $ac_try) 2>&5
1986 ac_status=$?
1987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988 (exit $ac_status); }; }; then
1989 ac_cv_prog_cc_g=yes
1990else
1991 echo "$as_me: failed program was:" >&5
1992sed 's/^/| /' conftest.$ac_ext >&5
1993
1994ac_cv_prog_cc_g=no
1995fi
1996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1997fi
1998echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1999echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2000if test "$ac_test_CFLAGS" = set; then
2001 CFLAGS=$ac_save_CFLAGS
2002elif test $ac_cv_prog_cc_g = yes; then
2003 if test "$GCC" = yes; then
2004 CFLAGS="-g -O2"
2005 else
2006 CFLAGS="-g"
2007 fi
2008else
2009 if test "$GCC" = yes; then
2010 CFLAGS="-O2"
2011 else
2012 CFLAGS=
2013 fi
2014fi
2015echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2016echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2017if test "${ac_cv_prog_cc_stdc+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2019else
2020 ac_cv_prog_cc_stdc=no
2021ac_save_CC=$CC
2022cat >conftest.$ac_ext <<_ACEOF
2023/* confdefs.h. */
2024_ACEOF
2025cat confdefs.h >>conftest.$ac_ext
2026cat >>conftest.$ac_ext <<_ACEOF
2027/* end confdefs.h. */
2028#include <stdarg.h>
2029#include <stdio.h>
2030#include <sys/types.h>
2031#include <sys/stat.h>
2032/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2033struct buf { int x; };
2034FILE * (*rcsopen) (struct buf *, struct stat *, int);
2035static char *e (p, i)
2036 char **p;
2037 int i;
2038{
2039 return p[i];
2040}
2041static char *f (char * (*g) (char **, int), char **p, ...)
2042{
2043 char *s;
2044 va_list v;
2045 va_start (v,p);
2046 s = g (p, va_arg (v,int));
2047 va_end (v);
2048 return s;
2049}
2050
2051/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2052 function prototypes and stuff, but not '\xHH' hex character constants.
2053 These don't provoke an error unfortunately, instead are silently treated
2054 as 'x'. The following induces an error, until -std1 is added to get
2055 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2056 array size at least. It's necessary to write '\x00'==0 to get something
2057 that's true only with -std1. */
2058int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2059
2060int test (int i, double x);
2061struct s1 {int (*f) (int a);};
2062struct s2 {int (*f) (double a);};
2063int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2064int argc;
2065char **argv;
2066int
2067main ()
2068{
2069return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2070 ;
2071 return 0;
2072}
2073_ACEOF
2074# Don't try gcc -ansi; that turns off useful extensions and
2075# breaks some systems' header files.
2076# AIX -qlanglvl=ansi
2077# Ultrix and OSF/1 -std1
2078# HP-UX 10.20 and later -Ae
2079# HP-UX older versions -Aa -D_HPUX_SOURCE
2080# SVR4 -Xc -D__EXTENSIONS__
2081for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2082do
2083 CC="$ac_save_CC $ac_arg"
2084 rm -f conftest.$ac_objext
2085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086 (eval $ac_compile) 2>conftest.er1
2087 ac_status=$?
2088 grep -v '^ *+' conftest.er1 >conftest.err
2089 rm -f conftest.er1
2090 cat conftest.err >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); } &&
2093 { ac_try='test -z "$ac_c_werror_flag"
2094 || test ! -s conftest.err'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 (eval $ac_try) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; } &&
2100 { ac_try='test -s conftest.$ac_objext'
2101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102 (eval $ac_try) 2>&5
2103 ac_status=$?
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; }; then
2106 ac_cv_prog_cc_stdc=$ac_arg
2107break
2108else
2109 echo "$as_me: failed program was:" >&5
2110sed 's/^/| /' conftest.$ac_ext >&5
2111
2112fi
2113rm -f conftest.err conftest.$ac_objext
2114done
2115rm -f conftest.$ac_ext conftest.$ac_objext
2116CC=$ac_save_CC
2117
2118fi
2119
2120case "x$ac_cv_prog_cc_stdc" in
2121 x|xno)
2122 echo "$as_me:$LINENO: result: none needed" >&5
2123echo "${ECHO_T}none needed" >&6 ;;
2124 *)
2125 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2126echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2127 CC="$CC $ac_cv_prog_cc_stdc" ;;
2128esac
2129
2130# Some people use a C++ compiler to compile C. Since we use `exit',
2131# in C++ we need to declare it. In case someone uses the same compiler
2132# for both compiling C and C++ we need to have the C++ compiler decide
2133# the declaration of exit, since it's the most demanding environment.
2134cat >conftest.$ac_ext <<_ACEOF
2135#ifndef __cplusplus
2136 choke me
2137#endif
2138_ACEOF
2139rm -f conftest.$ac_objext
2140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 (eval $ac_compile) 2>conftest.er1
2142 ac_status=$?
2143 grep -v '^ *+' conftest.er1 >conftest.err
2144 rm -f conftest.er1
2145 cat conftest.err >&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); } &&
2148 { ac_try='test -z "$ac_c_werror_flag"
2149 || test ! -s conftest.err'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 (eval $ac_try) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2161 for ac_declaration in \
2162 '' \
2163 'extern "C" void std::exit (int) throw (); using std::exit;' \
2164 'extern "C" void std::exit (int); using std::exit;' \
2165 'extern "C" void exit (int) throw ();' \
2166 'extern "C" void exit (int);' \
2167 'void exit (int);'
2168do
2169 cat >conftest.$ac_ext <<_ACEOF
2170/* confdefs.h. */
2171_ACEOF
2172cat confdefs.h >>conftest.$ac_ext
2173cat >>conftest.$ac_ext <<_ACEOF
2174/* end confdefs.h. */
2175$ac_declaration
2176#include <stdlib.h>
2177int
2178main ()
2179{
2180exit (42);
2181 ;
2182 return 0;
2183}
2184_ACEOF
2185rm -f conftest.$ac_objext
2186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187 (eval $ac_compile) 2>conftest.er1
2188 ac_status=$?
2189 grep -v '^ *+' conftest.er1 >conftest.err
2190 rm -f conftest.er1
2191 cat conftest.err >&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); } &&
2194 { ac_try='test -z "$ac_c_werror_flag"
2195 || test ! -s conftest.err'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197 (eval $ac_try) 2>&5
2198 ac_status=$?
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; } &&
2201 { ac_try='test -s conftest.$ac_objext'
2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203 (eval $ac_try) 2>&5
2204 ac_status=$?
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; }; then
2207 :
2208else
2209 echo "$as_me: failed program was:" >&5
2210sed 's/^/| /' conftest.$ac_ext >&5
2211
2212continue
2213fi
2214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2215 cat >conftest.$ac_ext <<_ACEOF
2216/* confdefs.h. */
2217_ACEOF
2218cat confdefs.h >>conftest.$ac_ext
2219cat >>conftest.$ac_ext <<_ACEOF
2220/* end confdefs.h. */
2221$ac_declaration
2222int
2223main ()
2224{
2225exit (42);
2226 ;
2227 return 0;
2228}
2229_ACEOF
2230rm -f conftest.$ac_objext
2231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232 (eval $ac_compile) 2>conftest.er1
2233 ac_status=$?
2234 grep -v '^ *+' conftest.er1 >conftest.err
2235 rm -f conftest.er1
2236 cat conftest.err >&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); } &&
2239 { ac_try='test -z "$ac_c_werror_flag"
2240 || test ! -s conftest.err'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 (eval $ac_try) 2>&5
2243 ac_status=$?
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; } &&
2246 { ac_try='test -s conftest.$ac_objext'
2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 (eval $ac_try) 2>&5
2249 ac_status=$?
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; }; then
2252 break
2253else
2254 echo "$as_me: failed program was:" >&5
2255sed 's/^/| /' conftest.$ac_ext >&5
2256
2257fi
2258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2259done
2260rm -f conftest*
2261if test -n "$ac_declaration"; then
2262 echo '#ifdef __cplusplus' >>confdefs.h
2263 echo $ac_declaration >>confdefs.h
2264 echo '#endif' >>confdefs.h
2265fi
2266
2267else
2268 echo "$as_me: failed program was:" >&5
2269sed 's/^/| /' conftest.$ac_ext >&5
2270
2271fi
2272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2273ac_ext=c
2274ac_cpp='$CPP $CPPFLAGS'
2275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2277ac_compiler_gnu=$ac_cv_c_compiler_gnu
2278
2279ac_ext=cc
2280ac_cpp='$CXXCPP $CPPFLAGS'
2281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2284if test -n "$ac_tool_prefix"; then
2285 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2286 do
2287 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2288set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2289echo "$as_me:$LINENO: checking for $ac_word" >&5
2290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2291if test "${ac_cv_prog_CXX+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2293else
2294 if test -n "$CXX"; then
2295 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2296else
2297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298for as_dir in $PATH
2299do
2300 IFS=$as_save_IFS
2301 test -z "$as_dir" && as_dir=.
2302 for ac_exec_ext in '' $ac_executable_extensions; do
2303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2304 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306 break 2
2307 fi
2308done
2309done
2310
2311fi
2312fi
2313CXX=$ac_cv_prog_CXX
2314if test -n "$CXX"; then
2315 echo "$as_me:$LINENO: result: $CXX" >&5
2316echo "${ECHO_T}$CXX" >&6
2317else
2318 echo "$as_me:$LINENO: result: no" >&5
2319echo "${ECHO_T}no" >&6
2320fi
2321
2322 test -n "$CXX" && break
2323 done
2324fi
2325if test -z "$CXX"; then
2326 ac_ct_CXX=$CXX
2327 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2328do
2329 # Extract the first word of "$ac_prog", so it can be a program name with args.
2330set dummy $ac_prog; ac_word=$2
2331echo "$as_me:$LINENO: checking for $ac_word" >&5
2332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2333if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2335else
2336 if test -n "$ac_ct_CXX"; then
2337 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2338else
2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340for as_dir in $PATH
2341do
2342 IFS=$as_save_IFS
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2346 ac_cv_prog_ac_ct_CXX="$ac_prog"
2347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 break 2
2349 fi
2350done
2351done
2352
2353fi
2354fi
2355ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2356if test -n "$ac_ct_CXX"; then
2357 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2358echo "${ECHO_T}$ac_ct_CXX" >&6
2359else
2360 echo "$as_me:$LINENO: result: no" >&5
2361echo "${ECHO_T}no" >&6
2362fi
2363
2364 test -n "$ac_ct_CXX" && break
2365done
2366test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2367
2368 CXX=$ac_ct_CXX
2369fi
2370
2371
2372# Provide some information about the compiler.
2373echo "$as_me:$LINENO:" \
2374 "checking for C++ compiler version" >&5
2375ac_compiler=`set X $ac_compile; echo $2`
2376{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2377 (eval $ac_compiler --version </dev/null >&5) 2>&5
2378 ac_status=$?
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }
2381{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2382 (eval $ac_compiler -v </dev/null >&5) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }
2386{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2387 (eval $ac_compiler -V </dev/null >&5) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }
2391
2392echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2393echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2394if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396else
2397 cat >conftest.$ac_ext <<_ACEOF
2398/* confdefs.h. */
2399_ACEOF
2400cat confdefs.h >>conftest.$ac_ext
2401cat >>conftest.$ac_ext <<_ACEOF
2402/* end confdefs.h. */
2403
2404int
2405main ()
2406{
2407#ifndef __GNUC__
2408 choke me
2409#endif
2410
2411 ;
2412 return 0;
2413}
2414_ACEOF
2415rm -f conftest.$ac_objext
2416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417 (eval $ac_compile) 2>conftest.er1
2418 ac_status=$?
2419 grep -v '^ *+' conftest.er1 >conftest.err
2420 rm -f conftest.er1
2421 cat conftest.err >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } &&
2424 { ac_try='test -z "$ac_cxx_werror_flag"
2425 || test ! -s conftest.err'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 (eval $ac_try) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; } &&
2431 { ac_try='test -s conftest.$ac_objext'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 (eval $ac_try) 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; }; then
2437 ac_compiler_gnu=yes
2438else
2439 echo "$as_me: failed program was:" >&5
2440sed 's/^/| /' conftest.$ac_ext >&5
2441
2442ac_compiler_gnu=no
2443fi
2444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2446
2447fi
2448echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2449echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2450GXX=`test $ac_compiler_gnu = yes && echo yes`
2451ac_test_CXXFLAGS=${CXXFLAGS+set}
2452ac_save_CXXFLAGS=$CXXFLAGS
2453CXXFLAGS="-g"
2454echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2455echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2456if test "${ac_cv_prog_cxx_g+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2458else
2459 cat >conftest.$ac_ext <<_ACEOF
2460/* confdefs.h. */
2461_ACEOF
2462cat confdefs.h >>conftest.$ac_ext
2463cat >>conftest.$ac_ext <<_ACEOF
2464/* end confdefs.h. */
2465
2466int
2467main ()
2468{
2469
2470 ;
2471 return 0;
2472}
2473_ACEOF
2474rm -f conftest.$ac_objext
2475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476 (eval $ac_compile) 2>conftest.er1
2477 ac_status=$?
2478 grep -v '^ *+' conftest.er1 >conftest.err
2479 rm -f conftest.er1
2480 cat conftest.err >&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); } &&
2483 { ac_try='test -z "$ac_cxx_werror_flag"
2484 || test ! -s conftest.err'
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 (eval $ac_try) 2>&5
2487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; } &&
2490 { ac_try='test -s conftest.$ac_objext'
2491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 (eval $ac_try) 2>&5
2493 ac_status=$?
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; }; then
2496 ac_cv_prog_cxx_g=yes
2497else
2498 echo "$as_me: failed program was:" >&5
2499sed 's/^/| /' conftest.$ac_ext >&5
2500
2501ac_cv_prog_cxx_g=no
2502fi
2503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2504fi
2505echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2506echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2507if test "$ac_test_CXXFLAGS" = set; then
2508 CXXFLAGS=$ac_save_CXXFLAGS
2509elif test $ac_cv_prog_cxx_g = yes; then
2510 if test "$GXX" = yes; then
2511 CXXFLAGS="-g -O2"
2512 else
2513 CXXFLAGS="-g"
2514 fi
2515else
2516 if test "$GXX" = yes; then
2517 CXXFLAGS="-O2"
2518 else
2519 CXXFLAGS=
2520 fi
2521fi
2522for ac_declaration in \
2523 '' \
2524 'extern "C" void std::exit (int) throw (); using std::exit;' \
2525 'extern "C" void std::exit (int); using std::exit;' \
2526 'extern "C" void exit (int) throw ();' \
2527 'extern "C" void exit (int);' \
2528 'void exit (int);'
2529do
2530 cat >conftest.$ac_ext <<_ACEOF
2531/* confdefs.h. */
2532_ACEOF
2533cat confdefs.h >>conftest.$ac_ext
2534cat >>conftest.$ac_ext <<_ACEOF
2535/* end confdefs.h. */
2536$ac_declaration
2537#include <stdlib.h>
2538int
2539main ()
2540{
2541exit (42);
2542 ;
2543 return 0;
2544}
2545_ACEOF
2546rm -f conftest.$ac_objext
2547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548 (eval $ac_compile) 2>conftest.er1
2549 ac_status=$?
2550 grep -v '^ *+' conftest.er1 >conftest.err
2551 rm -f conftest.er1
2552 cat conftest.err >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); } &&
2555 { ac_try='test -z "$ac_cxx_werror_flag"
2556 || test ! -s conftest.err'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 (eval $ac_try) 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; } &&
2562 { ac_try='test -s conftest.$ac_objext'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 (eval $ac_try) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; }; then
2568 :
2569else
2570 echo "$as_me: failed program was:" >&5
2571sed 's/^/| /' conftest.$ac_ext >&5
2572
2573continue
2574fi
2575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2576 cat >conftest.$ac_ext <<_ACEOF
2577/* confdefs.h. */
2578_ACEOF
2579cat confdefs.h >>conftest.$ac_ext
2580cat >>conftest.$ac_ext <<_ACEOF
2581/* end confdefs.h. */
2582$ac_declaration
2583int
2584main ()
2585{
2586exit (42);
2587 ;
2588 return 0;
2589}
2590_ACEOF
2591rm -f conftest.$ac_objext
2592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593 (eval $ac_compile) 2>conftest.er1
2594 ac_status=$?
2595 grep -v '^ *+' conftest.er1 >conftest.err
2596 rm -f conftest.er1
2597 cat conftest.err >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); } &&
2600 { ac_try='test -z "$ac_cxx_werror_flag"
2601 || test ! -s conftest.err'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 (eval $ac_try) 2>&5
2604 ac_status=$?
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; } &&
2607 { ac_try='test -s conftest.$ac_objext'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 (eval $ac_try) 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2613 break
2614else
2615 echo "$as_me: failed program was:" >&5
2616sed 's/^/| /' conftest.$ac_ext >&5
2617
2618fi
2619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2620done
2621rm -f conftest*
2622if test -n "$ac_declaration"; then
2623 echo '#ifdef __cplusplus' >>confdefs.h
2624 echo $ac_declaration >>confdefs.h
2625 echo '#endif' >>confdefs.h
2626fi
2627
2628ac_ext=c
2629ac_cpp='$CPP $CPPFLAGS'
2630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2632ac_compiler_gnu=$ac_cv_c_compiler_gnu
2633
2634if test -n "$ac_tool_prefix"; then
2635 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2636set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2637echo "$as_me:$LINENO: checking for $ac_word" >&5
2638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2639if test "${ac_cv_prog_RANLIB+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2641else
2642 if test -n "$RANLIB"; then
2643 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2644else
2645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646for as_dir in $PATH
2647do
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 break 2
2655 fi
2656done
2657done
2658
2659fi
2660fi
2661RANLIB=$ac_cv_prog_RANLIB
2662if test -n "$RANLIB"; then
2663 echo "$as_me:$LINENO: result: $RANLIB" >&5
2664echo "${ECHO_T}$RANLIB" >&6
2665else
2666 echo "$as_me:$LINENO: result: no" >&5
2667echo "${ECHO_T}no" >&6
2668fi
2669
2670fi
2671if test -z "$ac_cv_prog_RANLIB"; then
2672 ac_ct_RANLIB=$RANLIB
2673 # Extract the first word of "ranlib", so it can be a program name with args.
2674set dummy ranlib; ac_word=$2
2675echo "$as_me:$LINENO: checking for $ac_word" >&5
2676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2677if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679else
2680 if test -n "$ac_ct_RANLIB"; then
2681 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2682else
2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690 ac_cv_prog_ac_ct_RANLIB="ranlib"
2691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2693 fi
2694done
2695done
2696
2697 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2698fi
2699fi
2700ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2701if test -n "$ac_ct_RANLIB"; then
2702 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2703echo "${ECHO_T}$ac_ct_RANLIB" >&6
2704else
2705 echo "$as_me:$LINENO: result: no" >&5
2706echo "${ECHO_T}no" >&6
2707fi
2708
2709 RANLIB=$ac_ct_RANLIB
2710else
2711 RANLIB="$ac_cv_prog_RANLIB"
2712fi
2713
2714echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2715echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2716set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2717if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2719else
2720 cat >conftest.make <<\_ACEOF
2721all:
2722 @echo 'ac_maketemp="$(MAKE)"'
2723_ACEOF
2724# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2725eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2726if test -n "$ac_maketemp"; then
2727 eval ac_cv_prog_make_${ac_make}_set=yes
2728else
2729 eval ac_cv_prog_make_${ac_make}_set=no
2730fi
2731rm -f conftest.make
2732fi
2733if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2734 echo "$as_me:$LINENO: result: yes" >&5
2735echo "${ECHO_T}yes" >&6
2736 SET_MAKE=
2737else
2738 echo "$as_me:$LINENO: result: no" >&5
2739echo "${ECHO_T}no" >&6
2740 SET_MAKE="MAKE=${MAKE-make}"
2741fi
2742
2743ac_ext=cc
2744ac_cpp='$CXXCPP $CPPFLAGS'
2745ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2748
2749
2750case "`(uname -sr) 2>/dev/null`" in
2751"SunOS 5"*)
2752 SOLARIS=yes
2753 USE_MITSHM=yes
2754 USE_SUN_OVL=yes
2755 ;;
2756"Linux"*)
2757 LINUX=yes
2758 USE_MITSHM=yes
2759 ;;
2760"IRIX 6"*)
2761 X_LIBS="-L/usr/lib32"
2762 USE_MITSHM=yes
2763 USE_READDISPLAY=yes
2764 ;;
2765"LynxOS 2"*)
2766 SJLJ_EXCEPTIONS=yes
2767 ;;
2768esac
2769
2770if test "$USE_MITSHM" = yes; then
2771 MITSHM_DEFINE="-DHAVE_MITSHM"
2772fi
2773
2774
2775if test "$GCC" = yes; then
2776 CFLAGS="$CFLAGS -Wall"
2777 if test "$SOLARIS" = yes; then
2778 CFLAGS="$CFLAGS -Wno-unknown-pragmas -Wno-implicit-int"
2779 fi
2780fi
2781if test "$GXX" = yes; then
2782 CXXFLAGS="$CXXFLAGS -Wall"
2783 if test "$SOLARIS" = yes; then
2784 CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas -fpermissive"
2785 fi
2786 if test "$SJLJ_EXCEPTIONS" = yes; then
2787 CXXFLAGS="$CXXFLAGS -fsjlj-exceptions"
2788 fi
2789fi
2790
2791
Constantin Kaplinskya8748812007-09-05 09:29:06 +00002792echo "$as_me:$LINENO: checking for dmICCreate in -ldmedia" >&5
2793echo $ECHO_N "checking for dmICCreate in -ldmedia... $ECHO_C" >&6
2794if test "${ac_cv_lib_dmedia_dmICCreate+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2796else
2797 ac_check_lib_save_LIBS=$LIBS
2798LIBS="-ldmedia $LIBS"
2799cat >conftest.$ac_ext <<_ACEOF
2800/* confdefs.h. */
2801_ACEOF
2802cat confdefs.h >>conftest.$ac_ext
2803cat >>conftest.$ac_ext <<_ACEOF
2804/* end confdefs.h. */
2805
2806/* Override any gcc2 internal prototype to avoid an error. */
2807#ifdef __cplusplus
2808extern "C"
2809#endif
2810/* We use char because int might match the return type of a gcc2
2811 builtin and then its argument prototype would still apply. */
2812char dmICCreate ();
2813int
2814main ()
2815{
2816dmICCreate ();
2817 ;
2818 return 0;
2819}
2820_ACEOF
2821rm -f conftest.$ac_objext conftest$ac_exeext
2822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2823 (eval $ac_link) 2>conftest.er1
2824 ac_status=$?
2825 grep -v '^ *+' conftest.er1 >conftest.err
2826 rm -f conftest.er1
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } &&
2830 { ac_try='test -z "$ac_cxx_werror_flag"
2831 || test ! -s conftest.err'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; } &&
2837 { ac_try='test -s conftest$ac_exeext'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 (eval $ac_try) 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2843 ac_cv_lib_dmedia_dmICCreate=yes
2844else
2845 echo "$as_me: failed program was:" >&5
2846sed 's/^/| /' conftest.$ac_ext >&5
2847
2848ac_cv_lib_dmedia_dmICCreate=no
2849fi
2850rm -f conftest.err conftest.$ac_objext \
2851 conftest$ac_exeext conftest.$ac_ext
2852LIBS=$ac_check_lib_save_LIBS
2853fi
2854echo "$as_me:$LINENO: result: $ac_cv_lib_dmedia_dmICCreate" >&5
2855echo "${ECHO_T}$ac_cv_lib_dmedia_dmICCreate" >&6
2856if test $ac_cv_lib_dmedia_dmICCreate = yes; then
2857 cat >>confdefs.h <<\_ACEOF
2858#define HAVE_DMEDIA 1
2859_ACEOF
2860
2861 DMEDIA_LIB=-ldmedia
2862fi
2863
2864
2865
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002866ac_ext=cc
2867ac_cpp='$CXXCPP $CPPFLAGS'
2868ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2871echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2872echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2873if test -z "$CXXCPP"; then
2874 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876else
2877 # Double quotes because CXXCPP needs to be expanded
2878 for CXXCPP in "$CXX -E" "/lib/cpp"
2879 do
2880 ac_preproc_ok=false
2881for ac_cxx_preproc_warn_flag in '' yes
2882do
2883 # Use a header file that comes with gcc, so configuring glibc
2884 # with a fresh cross-compiler works.
2885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2886 # <limits.h> exists even on freestanding compilers.
2887 # On the NeXT, cc -E runs the code through the compiler's parser,
2888 # not just through cpp. "Syntax error" is here to catch this case.
2889 cat >conftest.$ac_ext <<_ACEOF
2890/* confdefs.h. */
2891_ACEOF
2892cat confdefs.h >>conftest.$ac_ext
2893cat >>conftest.$ac_ext <<_ACEOF
2894/* end confdefs.h. */
2895#ifdef __STDC__
2896# include <limits.h>
2897#else
2898# include <assert.h>
2899#endif
2900 Syntax error
2901_ACEOF
2902if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2904 ac_status=$?
2905 grep -v '^ *+' conftest.er1 >conftest.err
2906 rm -f conftest.er1
2907 cat conftest.err >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } >/dev/null; then
2910 if test -s conftest.err; then
2911 ac_cpp_err=$ac_cxx_preproc_warn_flag
2912 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2913 else
2914 ac_cpp_err=
2915 fi
2916else
2917 ac_cpp_err=yes
2918fi
2919if test -z "$ac_cpp_err"; then
2920 :
2921else
2922 echo "$as_me: failed program was:" >&5
2923sed 's/^/| /' conftest.$ac_ext >&5
2924
2925 # Broken: fails on valid input.
2926continue
2927fi
2928rm -f conftest.err conftest.$ac_ext
2929
2930 # OK, works on sane cases. Now check whether non-existent headers
2931 # can be detected and how.
2932 cat >conftest.$ac_ext <<_ACEOF
2933/* confdefs.h. */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
2937/* end confdefs.h. */
2938#include <ac_nonexistent.h>
2939_ACEOF
2940if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2942 ac_status=$?
2943 grep -v '^ *+' conftest.er1 >conftest.err
2944 rm -f conftest.er1
2945 cat conftest.err >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } >/dev/null; then
2948 if test -s conftest.err; then
2949 ac_cpp_err=$ac_cxx_preproc_warn_flag
2950 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2951 else
2952 ac_cpp_err=
2953 fi
2954else
2955 ac_cpp_err=yes
2956fi
2957if test -z "$ac_cpp_err"; then
2958 # Broken: success on invalid input.
2959continue
2960else
2961 echo "$as_me: failed program was:" >&5
2962sed 's/^/| /' conftest.$ac_ext >&5
2963
2964 # Passes both tests.
2965ac_preproc_ok=:
2966break
2967fi
2968rm -f conftest.err conftest.$ac_ext
2969
2970done
2971# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2972rm -f conftest.err conftest.$ac_ext
2973if $ac_preproc_ok; then
2974 break
2975fi
2976
2977 done
2978 ac_cv_prog_CXXCPP=$CXXCPP
2979
2980fi
2981 CXXCPP=$ac_cv_prog_CXXCPP
2982else
2983 ac_cv_prog_CXXCPP=$CXXCPP
2984fi
2985echo "$as_me:$LINENO: result: $CXXCPP" >&5
2986echo "${ECHO_T}$CXXCPP" >&6
2987ac_preproc_ok=false
2988for ac_cxx_preproc_warn_flag in '' yes
2989do
2990 # Use a header file that comes with gcc, so configuring glibc
2991 # with a fresh cross-compiler works.
2992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2993 # <limits.h> exists even on freestanding compilers.
2994 # On the NeXT, cc -E runs the code through the compiler's parser,
2995 # not just through cpp. "Syntax error" is here to catch this case.
2996 cat >conftest.$ac_ext <<_ACEOF
2997/* confdefs.h. */
2998_ACEOF
2999cat confdefs.h >>conftest.$ac_ext
3000cat >>conftest.$ac_ext <<_ACEOF
3001/* end confdefs.h. */
3002#ifdef __STDC__
3003# include <limits.h>
3004#else
3005# include <assert.h>
3006#endif
3007 Syntax error
3008_ACEOF
3009if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3011 ac_status=$?
3012 grep -v '^ *+' conftest.er1 >conftest.err
3013 rm -f conftest.er1
3014 cat conftest.err >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } >/dev/null; then
3017 if test -s conftest.err; then
3018 ac_cpp_err=$ac_cxx_preproc_warn_flag
3019 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3020 else
3021 ac_cpp_err=
3022 fi
3023else
3024 ac_cpp_err=yes
3025fi
3026if test -z "$ac_cpp_err"; then
3027 :
3028else
3029 echo "$as_me: failed program was:" >&5
3030sed 's/^/| /' conftest.$ac_ext >&5
3031
3032 # Broken: fails on valid input.
3033continue
3034fi
3035rm -f conftest.err conftest.$ac_ext
3036
3037 # OK, works on sane cases. Now check whether non-existent headers
3038 # can be detected and how.
3039 cat >conftest.$ac_ext <<_ACEOF
3040/* confdefs.h. */
3041_ACEOF
3042cat confdefs.h >>conftest.$ac_ext
3043cat >>conftest.$ac_ext <<_ACEOF
3044/* end confdefs.h. */
3045#include <ac_nonexistent.h>
3046_ACEOF
3047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3049 ac_status=$?
3050 grep -v '^ *+' conftest.er1 >conftest.err
3051 rm -f conftest.er1
3052 cat conftest.err >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } >/dev/null; then
3055 if test -s conftest.err; then
3056 ac_cpp_err=$ac_cxx_preproc_warn_flag
3057 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3058 else
3059 ac_cpp_err=
3060 fi
3061else
3062 ac_cpp_err=yes
3063fi
3064if test -z "$ac_cpp_err"; then
3065 # Broken: success on invalid input.
3066continue
3067else
3068 echo "$as_me: failed program was:" >&5
3069sed 's/^/| /' conftest.$ac_ext >&5
3070
3071 # Passes both tests.
3072ac_preproc_ok=:
3073break
3074fi
3075rm -f conftest.err conftest.$ac_ext
3076
3077done
3078# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3079rm -f conftest.err conftest.$ac_ext
3080if $ac_preproc_ok; then
3081 :
3082else
3083 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3084See \`config.log' for more details." >&5
3085echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3086See \`config.log' for more details." >&2;}
3087 { (exit 1); exit 1; }; }
3088fi
3089
3090ac_ext=cc
3091ac_cpp='$CXXCPP $CPPFLAGS'
3092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3095
3096
3097echo "$as_me:$LINENO: checking for X" >&5
3098echo $ECHO_N "checking for X... $ECHO_C" >&6
3099
3100
3101# Check whether --with-x or --without-x was given.
3102if test "${with_x+set}" = set; then
3103 withval="$with_x"
3104
3105fi;
3106# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3107if test "x$with_x" = xno; then
3108 # The user explicitly disabled X.
3109 have_x=disabled
3110else
3111 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3112 # Both variables are already set.
3113 have_x=yes
3114 else
3115 if test "${ac_cv_have_x+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3117else
3118 # One or both of the vars are not set, and there is no cached value.
3119ac_x_includes=no ac_x_libraries=no
3120rm -fr conftest.dir
3121if mkdir conftest.dir; then
3122 cd conftest.dir
3123 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3124 cat >Imakefile <<'_ACEOF'
3125acfindx:
3126 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3127_ACEOF
3128 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3129 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3130 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3131 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3132 for ac_extension in a so sl; do
3133 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3134 test -f $ac_im_libdir/libX11.$ac_extension; then
3135 ac_im_usrlibdir=$ac_im_libdir; break
3136 fi
3137 done
3138 # Screen out bogus values from the imake configuration. They are
3139 # bogus both because they are the default anyway, and because
3140 # using them would break gcc on systems where it needs fixed includes.
3141 case $ac_im_incroot in
3142 /usr/include) ;;
3143 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3144 esac
3145 case $ac_im_usrlibdir in
3146 /usr/lib | /lib) ;;
3147 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3148 esac
3149 fi
3150 cd ..
3151 rm -fr conftest.dir
3152fi
3153
3154# Standard set of common directories for X headers.
3155# Check X11 before X11Rn because it is often a symlink to the current release.
3156ac_x_header_dirs='
3157/usr/X11/include
3158/usr/X11R6/include
3159/usr/X11R5/include
3160/usr/X11R4/include
3161
3162/usr/include/X11
3163/usr/include/X11R6
3164/usr/include/X11R5
3165/usr/include/X11R4
3166
3167/usr/local/X11/include
3168/usr/local/X11R6/include
3169/usr/local/X11R5/include
3170/usr/local/X11R4/include
3171
3172/usr/local/include/X11
3173/usr/local/include/X11R6
3174/usr/local/include/X11R5
3175/usr/local/include/X11R4
3176
3177/usr/X386/include
3178/usr/x386/include
3179/usr/XFree86/include/X11
3180
3181/usr/include
3182/usr/local/include
3183/usr/unsupported/include
3184/usr/athena/include
3185/usr/local/x11r5/include
3186/usr/lpp/Xamples/include
3187
3188/usr/openwin/include
3189/usr/openwin/share/include'
3190
3191if test "$ac_x_includes" = no; then
Constantin Kaplinskya8748812007-09-05 09:29:06 +00003192 # Guess where to find include files, by looking for Xlib.h.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003193 # First, try using that file with no special directory specified.
3194 cat >conftest.$ac_ext <<_ACEOF
3195/* confdefs.h. */
3196_ACEOF
3197cat confdefs.h >>conftest.$ac_ext
3198cat >>conftest.$ac_ext <<_ACEOF
3199/* end confdefs.h. */
Constantin Kaplinskya8748812007-09-05 09:29:06 +00003200#include <X11/Xlib.h>
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003201_ACEOF
3202if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3204 ac_status=$?
3205 grep -v '^ *+' conftest.er1 >conftest.err
3206 rm -f conftest.er1
3207 cat conftest.err >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } >/dev/null; then
3210 if test -s conftest.err; then
3211 ac_cpp_err=$ac_cxx_preproc_warn_flag
3212 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3213 else
3214 ac_cpp_err=
3215 fi
3216else
3217 ac_cpp_err=yes
3218fi
3219if test -z "$ac_cpp_err"; then
3220 # We can compile using X headers with no special include directory.
3221ac_x_includes=
3222else
3223 echo "$as_me: failed program was:" >&5
3224sed 's/^/| /' conftest.$ac_ext >&5
3225
3226 for ac_dir in $ac_x_header_dirs; do
Constantin Kaplinskya8748812007-09-05 09:29:06 +00003227 if test -r "$ac_dir/X11/Xlib.h"; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003228 ac_x_includes=$ac_dir
3229 break
3230 fi
3231done
3232fi
3233rm -f conftest.err conftest.$ac_ext
3234fi # $ac_x_includes = no
3235
3236if test "$ac_x_libraries" = no; then
3237 # Check for the libraries.
3238 # See if we find them without any special options.
3239 # Don't add to $LIBS permanently.
3240 ac_save_LIBS=$LIBS
Constantin Kaplinskya8748812007-09-05 09:29:06 +00003241 LIBS="-lX11 $LIBS"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003242 cat >conftest.$ac_ext <<_ACEOF
3243/* confdefs.h. */
3244_ACEOF
3245cat confdefs.h >>conftest.$ac_ext
3246cat >>conftest.$ac_ext <<_ACEOF
3247/* end confdefs.h. */
Constantin Kaplinskya8748812007-09-05 09:29:06 +00003248#include <X11/Xlib.h>
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003249int
3250main ()
3251{
Constantin Kaplinskya8748812007-09-05 09:29:06 +00003252XrmInitialize ()
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003253 ;
3254 return 0;
3255}
3256_ACEOF
3257rm -f conftest.$ac_objext conftest$ac_exeext
3258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3259 (eval $ac_link) 2>conftest.er1
3260 ac_status=$?
3261 grep -v '^ *+' conftest.er1 >conftest.err
3262 rm -f conftest.er1
3263 cat conftest.err >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } &&
3266 { ac_try='test -z "$ac_cxx_werror_flag"
3267 || test ! -s conftest.err'
3268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269 (eval $ac_try) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; } &&
3273 { ac_try='test -s conftest$ac_exeext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275 (eval $ac_try) 2>&5
3276 ac_status=$?
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3279 LIBS=$ac_save_LIBS
3280# We can link X programs with no special library path.
3281ac_x_libraries=
3282else
3283 echo "$as_me: failed program was:" >&5
3284sed 's/^/| /' conftest.$ac_ext >&5
3285
3286LIBS=$ac_save_LIBS
3287for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3288do
3289 # Don't even attempt the hair of trying to link an X program!
3290 for ac_extension in a so sl; do
3291 if test -r $ac_dir/libXt.$ac_extension; then
3292 ac_x_libraries=$ac_dir
3293 break 2
3294 fi
3295 done
3296done
3297fi
3298rm -f conftest.err conftest.$ac_objext \
3299 conftest$ac_exeext conftest.$ac_ext
3300fi # $ac_x_libraries = no
3301
3302if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3303 # Didn't find X anywhere. Cache the known absence of X.
3304 ac_cv_have_x="have_x=no"
3305else
3306 # Record where we found X for the cache.
3307 ac_cv_have_x="have_x=yes \
3308 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3309fi
3310fi
3311
3312 fi
3313 eval "$ac_cv_have_x"
3314fi # $with_x != no
3315
3316if test "$have_x" != yes; then
3317 echo "$as_me:$LINENO: result: $have_x" >&5
3318echo "${ECHO_T}$have_x" >&6
3319 no_x=yes
3320else
3321 # If each of the values was on the command line, it overrides each guess.
3322 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3323 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3324 # Update the cache value to reflect the command line values.
3325 ac_cv_have_x="have_x=yes \
3326 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3327 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3328echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3329fi
3330
3331if test "$no_x" = yes; then
3332 # Not all programs may use this symbol, but it does not hurt to define it.
3333
3334cat >>confdefs.h <<\_ACEOF
3335#define X_DISPLAY_MISSING 1
3336_ACEOF
3337
3338 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3339else
3340 if test -n "$x_includes"; then
3341 X_CFLAGS="$X_CFLAGS -I$x_includes"
3342 fi
3343
3344 # It would also be nice to do this for all -L options, not just this one.
3345 if test -n "$x_libraries"; then
3346 X_LIBS="$X_LIBS -L$x_libraries"
3347 # For Solaris; some versions of Sun CC require a space after -R and
3348 # others require no space. Words are not sufficient . . . .
3349 case `(uname -sr) 2>/dev/null` in
3350 "SunOS 5"*)
3351 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3352echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3353 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3354 cat >conftest.$ac_ext <<_ACEOF
3355/* confdefs.h. */
3356_ACEOF
3357cat confdefs.h >>conftest.$ac_ext
3358cat >>conftest.$ac_ext <<_ACEOF
3359/* end confdefs.h. */
3360
3361int
3362main ()
3363{
3364
3365 ;
3366 return 0;
3367}
3368_ACEOF
3369rm -f conftest.$ac_objext conftest$ac_exeext
3370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3371 (eval $ac_link) 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } &&
3378 { ac_try='test -z "$ac_cxx_werror_flag"
3379 || test ! -s conftest.err'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 (eval $ac_try) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; } &&
3385 { ac_try='test -s conftest$ac_exeext'
3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 (eval $ac_try) 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 ac_R_nospace=yes
3392else
3393 echo "$as_me: failed program was:" >&5
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
3396ac_R_nospace=no
3397fi
3398rm -f conftest.err conftest.$ac_objext \
3399 conftest$ac_exeext conftest.$ac_ext
3400 if test $ac_R_nospace = yes; then
3401 echo "$as_me:$LINENO: result: no" >&5
3402echo "${ECHO_T}no" >&6
3403 X_LIBS="$X_LIBS -R$x_libraries"
3404 else
3405 LIBS="$ac_xsave_LIBS -R $x_libraries"
3406 cat >conftest.$ac_ext <<_ACEOF
3407/* confdefs.h. */
3408_ACEOF
3409cat confdefs.h >>conftest.$ac_ext
3410cat >>conftest.$ac_ext <<_ACEOF
3411/* end confdefs.h. */
3412
3413int
3414main ()
3415{
3416
3417 ;
3418 return 0;
3419}
3420_ACEOF
3421rm -f conftest.$ac_objext conftest$ac_exeext
3422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3423 (eval $ac_link) 2>conftest.er1
3424 ac_status=$?
3425 grep -v '^ *+' conftest.er1 >conftest.err
3426 rm -f conftest.er1
3427 cat conftest.err >&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } &&
3430 { ac_try='test -z "$ac_cxx_werror_flag"
3431 || test ! -s conftest.err'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433 (eval $ac_try) 2>&5
3434 ac_status=$?
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; } &&
3437 { ac_try='test -s conftest$ac_exeext'
3438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439 (eval $ac_try) 2>&5
3440 ac_status=$?
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; }; then
3443 ac_R_space=yes
3444else
3445 echo "$as_me: failed program was:" >&5
3446sed 's/^/| /' conftest.$ac_ext >&5
3447
3448ac_R_space=no
3449fi
3450rm -f conftest.err conftest.$ac_objext \
3451 conftest$ac_exeext conftest.$ac_ext
3452 if test $ac_R_space = yes; then
3453 echo "$as_me:$LINENO: result: yes" >&5
3454echo "${ECHO_T}yes" >&6
3455 X_LIBS="$X_LIBS -R $x_libraries"
3456 else
3457 echo "$as_me:$LINENO: result: neither works" >&5
3458echo "${ECHO_T}neither works" >&6
3459 fi
3460 fi
3461 LIBS=$ac_xsave_LIBS
3462 esac
3463 fi
3464
3465 # Check for system-dependent libraries X programs must link with.
3466 # Do this before checking for the system-independent R6 libraries
3467 # (-lICE), since we may need -lsocket or whatever for X linking.
3468
3469 if test "$ISC" = yes; then
3470 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3471 else
3472 # Martyn Johnson says this is needed for Ultrix, if the X
3473 # libraries were built with DECnet support. And Karl Berry says
3474 # the Alpha needs dnet_stub (dnet does not exist).
3475 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3476 cat >conftest.$ac_ext <<_ACEOF
3477/* confdefs.h. */
3478_ACEOF
3479cat confdefs.h >>conftest.$ac_ext
3480cat >>conftest.$ac_ext <<_ACEOF
3481/* end confdefs.h. */
3482
3483/* Override any gcc2 internal prototype to avoid an error. */
3484#ifdef __cplusplus
3485extern "C"
3486#endif
3487/* We use char because int might match the return type of a gcc2
3488 builtin and then its argument prototype would still apply. */
3489char XOpenDisplay ();
3490int
3491main ()
3492{
3493XOpenDisplay ();
3494 ;
3495 return 0;
3496}
3497_ACEOF
3498rm -f conftest.$ac_objext conftest$ac_exeext
3499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3500 (eval $ac_link) 2>conftest.er1
3501 ac_status=$?
3502 grep -v '^ *+' conftest.er1 >conftest.err
3503 rm -f conftest.er1
3504 cat conftest.err >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try='test -z "$ac_cxx_werror_flag"
3508 || test ! -s conftest.err'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 (eval $ac_try) 2>&5
3511 ac_status=$?
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; } &&
3514 { ac_try='test -s conftest$ac_exeext'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 (eval $ac_try) 2>&5
3517 ac_status=$?
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; }; then
3520 :
3521else
3522 echo "$as_me: failed program was:" >&5
3523sed 's/^/| /' conftest.$ac_ext >&5
3524
3525echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3526echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3527if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3529else
3530 ac_check_lib_save_LIBS=$LIBS
3531LIBS="-ldnet $LIBS"
3532cat >conftest.$ac_ext <<_ACEOF
3533/* confdefs.h. */
3534_ACEOF
3535cat confdefs.h >>conftest.$ac_ext
3536cat >>conftest.$ac_ext <<_ACEOF
3537/* end confdefs.h. */
3538
3539/* Override any gcc2 internal prototype to avoid an error. */
3540#ifdef __cplusplus
3541extern "C"
3542#endif
3543/* We use char because int might match the return type of a gcc2
3544 builtin and then its argument prototype would still apply. */
3545char dnet_ntoa ();
3546int
3547main ()
3548{
3549dnet_ntoa ();
3550 ;
3551 return 0;
3552}
3553_ACEOF
3554rm -f conftest.$ac_objext conftest$ac_exeext
3555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3556 (eval $ac_link) 2>conftest.er1
3557 ac_status=$?
3558 grep -v '^ *+' conftest.er1 >conftest.err
3559 rm -f conftest.er1
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } &&
3563 { ac_try='test -z "$ac_cxx_werror_flag"
3564 || test ! -s conftest.err'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 (eval $ac_try) 2>&5
3567 ac_status=$?
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; } &&
3570 { ac_try='test -s conftest$ac_exeext'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 (eval $ac_try) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
3576 ac_cv_lib_dnet_dnet_ntoa=yes
3577else
3578 echo "$as_me: failed program was:" >&5
3579sed 's/^/| /' conftest.$ac_ext >&5
3580
3581ac_cv_lib_dnet_dnet_ntoa=no
3582fi
3583rm -f conftest.err conftest.$ac_objext \
3584 conftest$ac_exeext conftest.$ac_ext
3585LIBS=$ac_check_lib_save_LIBS
3586fi
3587echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3588echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3589if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3590 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3591fi
3592
3593 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3594 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3595echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3596if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3598else
3599 ac_check_lib_save_LIBS=$LIBS
3600LIBS="-ldnet_stub $LIBS"
3601cat >conftest.$ac_ext <<_ACEOF
3602/* confdefs.h. */
3603_ACEOF
3604cat confdefs.h >>conftest.$ac_ext
3605cat >>conftest.$ac_ext <<_ACEOF
3606/* end confdefs.h. */
3607
3608/* Override any gcc2 internal prototype to avoid an error. */
3609#ifdef __cplusplus
3610extern "C"
3611#endif
3612/* We use char because int might match the return type of a gcc2
3613 builtin and then its argument prototype would still apply. */
3614char dnet_ntoa ();
3615int
3616main ()
3617{
3618dnet_ntoa ();
3619 ;
3620 return 0;
3621}
3622_ACEOF
3623rm -f conftest.$ac_objext conftest$ac_exeext
3624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3625 (eval $ac_link) 2>conftest.er1
3626 ac_status=$?
3627 grep -v '^ *+' conftest.er1 >conftest.err
3628 rm -f conftest.er1
3629 cat conftest.err >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } &&
3632 { ac_try='test -z "$ac_cxx_werror_flag"
3633 || test ! -s conftest.err'
3634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 (eval $ac_try) 2>&5
3636 ac_status=$?
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); }; } &&
3639 { ac_try='test -s conftest$ac_exeext'
3640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641 (eval $ac_try) 2>&5
3642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; }; then
3645 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3646else
3647 echo "$as_me: failed program was:" >&5
3648sed 's/^/| /' conftest.$ac_ext >&5
3649
3650ac_cv_lib_dnet_stub_dnet_ntoa=no
3651fi
3652rm -f conftest.err conftest.$ac_objext \
3653 conftest$ac_exeext conftest.$ac_ext
3654LIBS=$ac_check_lib_save_LIBS
3655fi
3656echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3657echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3658if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3659 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3660fi
3661
3662 fi
3663fi
3664rm -f conftest.err conftest.$ac_objext \
3665 conftest$ac_exeext conftest.$ac_ext
3666 LIBS="$ac_xsave_LIBS"
3667
3668 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3669 # to get the SysV transport functions.
3670 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3671 # needs -lnsl.
3672 # The nsl library prevents programs from opening the X display
3673 # on Irix 5.2, according to T.E. Dickey.
3674 # The functions gethostbyname, getservbyname, and inet_addr are
3675 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3676 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3677echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3678if test "${ac_cv_func_gethostbyname+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680else
3681 cat >conftest.$ac_ext <<_ACEOF
3682/* confdefs.h. */
3683_ACEOF
3684cat confdefs.h >>conftest.$ac_ext
3685cat >>conftest.$ac_ext <<_ACEOF
3686/* end confdefs.h. */
3687/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3689#define gethostbyname innocuous_gethostbyname
3690
3691/* System header to define __stub macros and hopefully few prototypes,
3692 which can conflict with char gethostbyname (); below.
3693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3694 <limits.h> exists even on freestanding compilers. */
3695
3696#ifdef __STDC__
3697# include <limits.h>
3698#else
3699# include <assert.h>
3700#endif
3701
3702#undef gethostbyname
3703
3704/* Override any gcc2 internal prototype to avoid an error. */
3705#ifdef __cplusplus
3706extern "C"
3707{
3708#endif
3709/* We use char because int might match the return type of a gcc2
3710 builtin and then its argument prototype would still apply. */
3711char gethostbyname ();
3712/* The GNU C library defines this for functions which it implements
3713 to always fail with ENOSYS. Some functions are actually named
3714 something starting with __ and the normal name is an alias. */
3715#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3716choke me
3717#else
3718char (*f) () = gethostbyname;
3719#endif
3720#ifdef __cplusplus
3721}
3722#endif
3723
3724int
3725main ()
3726{
3727return f != gethostbyname;
3728 ;
3729 return 0;
3730}
3731_ACEOF
3732rm -f conftest.$ac_objext conftest$ac_exeext
3733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3734 (eval $ac_link) 2>conftest.er1
3735 ac_status=$?
3736 grep -v '^ *+' conftest.er1 >conftest.err
3737 rm -f conftest.er1
3738 cat conftest.err >&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } &&
3741 { ac_try='test -z "$ac_cxx_werror_flag"
3742 || test ! -s conftest.err'
3743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744 (eval $ac_try) 2>&5
3745 ac_status=$?
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; } &&
3748 { ac_try='test -s conftest$ac_exeext'
3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750 (eval $ac_try) 2>&5
3751 ac_status=$?
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; }; then
3754 ac_cv_func_gethostbyname=yes
3755else
3756 echo "$as_me: failed program was:" >&5
3757sed 's/^/| /' conftest.$ac_ext >&5
3758
3759ac_cv_func_gethostbyname=no
3760fi
3761rm -f conftest.err conftest.$ac_objext \
3762 conftest$ac_exeext conftest.$ac_ext
3763fi
3764echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3765echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3766
3767 if test $ac_cv_func_gethostbyname = no; then
3768 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3769echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3770if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3772else
3773 ac_check_lib_save_LIBS=$LIBS
3774LIBS="-lnsl $LIBS"
3775cat >conftest.$ac_ext <<_ACEOF
3776/* confdefs.h. */
3777_ACEOF
3778cat confdefs.h >>conftest.$ac_ext
3779cat >>conftest.$ac_ext <<_ACEOF
3780/* end confdefs.h. */
3781
3782/* Override any gcc2 internal prototype to avoid an error. */
3783#ifdef __cplusplus
3784extern "C"
3785#endif
3786/* We use char because int might match the return type of a gcc2
3787 builtin and then its argument prototype would still apply. */
3788char gethostbyname ();
3789int
3790main ()
3791{
3792gethostbyname ();
3793 ;
3794 return 0;
3795}
3796_ACEOF
3797rm -f conftest.$ac_objext conftest$ac_exeext
3798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3799 (eval $ac_link) 2>conftest.er1
3800 ac_status=$?
3801 grep -v '^ *+' conftest.er1 >conftest.err
3802 rm -f conftest.er1
3803 cat conftest.err >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } &&
3806 { ac_try='test -z "$ac_cxx_werror_flag"
3807 || test ! -s conftest.err'
3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809 (eval $ac_try) 2>&5
3810 ac_status=$?
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; } &&
3813 { ac_try='test -s conftest$ac_exeext'
3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815 (eval $ac_try) 2>&5
3816 ac_status=$?
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then
3819 ac_cv_lib_nsl_gethostbyname=yes
3820else
3821 echo "$as_me: failed program was:" >&5
3822sed 's/^/| /' conftest.$ac_ext >&5
3823
3824ac_cv_lib_nsl_gethostbyname=no
3825fi
3826rm -f conftest.err conftest.$ac_objext \
3827 conftest$ac_exeext conftest.$ac_ext
3828LIBS=$ac_check_lib_save_LIBS
3829fi
3830echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3831echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3832if test $ac_cv_lib_nsl_gethostbyname = yes; then
3833 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3834fi
3835
3836 if test $ac_cv_lib_nsl_gethostbyname = no; then
3837 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3838echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3839if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3841else
3842 ac_check_lib_save_LIBS=$LIBS
3843LIBS="-lbsd $LIBS"
3844cat >conftest.$ac_ext <<_ACEOF
3845/* confdefs.h. */
3846_ACEOF
3847cat confdefs.h >>conftest.$ac_ext
3848cat >>conftest.$ac_ext <<_ACEOF
3849/* end confdefs.h. */
3850
3851/* Override any gcc2 internal prototype to avoid an error. */
3852#ifdef __cplusplus
3853extern "C"
3854#endif
3855/* We use char because int might match the return type of a gcc2
3856 builtin and then its argument prototype would still apply. */
3857char gethostbyname ();
3858int
3859main ()
3860{
3861gethostbyname ();
3862 ;
3863 return 0;
3864}
3865_ACEOF
3866rm -f conftest.$ac_objext conftest$ac_exeext
3867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3868 (eval $ac_link) 2>conftest.er1
3869 ac_status=$?
3870 grep -v '^ *+' conftest.er1 >conftest.err
3871 rm -f conftest.er1
3872 cat conftest.err >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } &&
3875 { ac_try='test -z "$ac_cxx_werror_flag"
3876 || test ! -s conftest.err'
3877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 (eval $ac_try) 2>&5
3879 ac_status=$?
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }; } &&
3882 { ac_try='test -s conftest$ac_exeext'
3883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884 (eval $ac_try) 2>&5
3885 ac_status=$?
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); }; }; then
3888 ac_cv_lib_bsd_gethostbyname=yes
3889else
3890 echo "$as_me: failed program was:" >&5
3891sed 's/^/| /' conftest.$ac_ext >&5
3892
3893ac_cv_lib_bsd_gethostbyname=no
3894fi
3895rm -f conftest.err conftest.$ac_objext \
3896 conftest$ac_exeext conftest.$ac_ext
3897LIBS=$ac_check_lib_save_LIBS
3898fi
3899echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3900echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3901if test $ac_cv_lib_bsd_gethostbyname = yes; then
3902 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3903fi
3904
3905 fi
3906 fi
3907
3908 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3909 # socket/setsockopt and other routines are undefined under SCO ODT
3910 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3911 # on later versions), says Simon Leinen: it contains gethostby*
3912 # variants that don't use the name server (or something). -lsocket
3913 # must be given before -lnsl if both are needed. We assume that
3914 # if connect needs -lnsl, so does gethostbyname.
3915 echo "$as_me:$LINENO: checking for connect" >&5
3916echo $ECHO_N "checking for connect... $ECHO_C" >&6
3917if test "${ac_cv_func_connect+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3919else
3920 cat >conftest.$ac_ext <<_ACEOF
3921/* confdefs.h. */
3922_ACEOF
3923cat confdefs.h >>conftest.$ac_ext
3924cat >>conftest.$ac_ext <<_ACEOF
3925/* end confdefs.h. */
3926/* Define connect to an innocuous variant, in case <limits.h> declares connect.
3927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3928#define connect innocuous_connect
3929
3930/* System header to define __stub macros and hopefully few prototypes,
3931 which can conflict with char connect (); below.
3932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3933 <limits.h> exists even on freestanding compilers. */
3934
3935#ifdef __STDC__
3936# include <limits.h>
3937#else
3938# include <assert.h>
3939#endif
3940
3941#undef connect
3942
3943/* Override any gcc2 internal prototype to avoid an error. */
3944#ifdef __cplusplus
3945extern "C"
3946{
3947#endif
3948/* We use char because int might match the return type of a gcc2
3949 builtin and then its argument prototype would still apply. */
3950char connect ();
3951/* The GNU C library defines this for functions which it implements
3952 to always fail with ENOSYS. Some functions are actually named
3953 something starting with __ and the normal name is an alias. */
3954#if defined (__stub_connect) || defined (__stub___connect)
3955choke me
3956#else
3957char (*f) () = connect;
3958#endif
3959#ifdef __cplusplus
3960}
3961#endif
3962
3963int
3964main ()
3965{
3966return f != connect;
3967 ;
3968 return 0;
3969}
3970_ACEOF
3971rm -f conftest.$ac_objext conftest$ac_exeext
3972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3973 (eval $ac_link) 2>conftest.er1
3974 ac_status=$?
3975 grep -v '^ *+' conftest.er1 >conftest.err
3976 rm -f conftest.er1
3977 cat conftest.err >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); } &&
3980 { ac_try='test -z "$ac_cxx_werror_flag"
3981 || test ! -s conftest.err'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983 (eval $ac_try) 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; } &&
3987 { ac_try='test -s conftest$ac_exeext'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 (eval $ac_try) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
3993 ac_cv_func_connect=yes
3994else
3995 echo "$as_me: failed program was:" >&5
3996sed 's/^/| /' conftest.$ac_ext >&5
3997
3998ac_cv_func_connect=no
3999fi
4000rm -f conftest.err conftest.$ac_objext \
4001 conftest$ac_exeext conftest.$ac_ext
4002fi
4003echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4004echo "${ECHO_T}$ac_cv_func_connect" >&6
4005
4006 if test $ac_cv_func_connect = no; then
4007 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4008echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4009if test "${ac_cv_lib_socket_connect+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4011else
4012 ac_check_lib_save_LIBS=$LIBS
4013LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4014cat >conftest.$ac_ext <<_ACEOF
4015/* confdefs.h. */
4016_ACEOF
4017cat confdefs.h >>conftest.$ac_ext
4018cat >>conftest.$ac_ext <<_ACEOF
4019/* end confdefs.h. */
4020
4021/* Override any gcc2 internal prototype to avoid an error. */
4022#ifdef __cplusplus
4023extern "C"
4024#endif
4025/* We use char because int might match the return type of a gcc2
4026 builtin and then its argument prototype would still apply. */
4027char connect ();
4028int
4029main ()
4030{
4031connect ();
4032 ;
4033 return 0;
4034}
4035_ACEOF
4036rm -f conftest.$ac_objext conftest$ac_exeext
4037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4038 (eval $ac_link) 2>conftest.er1
4039 ac_status=$?
4040 grep -v '^ *+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -z "$ac_cxx_werror_flag"
4046 || test ! -s conftest.err'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 (eval $ac_try) 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4058 ac_cv_lib_socket_connect=yes
4059else
4060 echo "$as_me: failed program was:" >&5
4061sed 's/^/| /' conftest.$ac_ext >&5
4062
4063ac_cv_lib_socket_connect=no
4064fi
4065rm -f conftest.err conftest.$ac_objext \
4066 conftest$ac_exeext conftest.$ac_ext
4067LIBS=$ac_check_lib_save_LIBS
4068fi
4069echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4070echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4071if test $ac_cv_lib_socket_connect = yes; then
4072 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4073fi
4074
4075 fi
4076
4077 # Guillermo Gomez says -lposix is necessary on A/UX.
4078 echo "$as_me:$LINENO: checking for remove" >&5
4079echo $ECHO_N "checking for remove... $ECHO_C" >&6
4080if test "${ac_cv_func_remove+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4082else
4083 cat >conftest.$ac_ext <<_ACEOF
4084/* confdefs.h. */
4085_ACEOF
4086cat confdefs.h >>conftest.$ac_ext
4087cat >>conftest.$ac_ext <<_ACEOF
4088/* end confdefs.h. */
4089/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4091#define remove innocuous_remove
4092
4093/* System header to define __stub macros and hopefully few prototypes,
4094 which can conflict with char remove (); below.
4095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4096 <limits.h> exists even on freestanding compilers. */
4097
4098#ifdef __STDC__
4099# include <limits.h>
4100#else
4101# include <assert.h>
4102#endif
4103
4104#undef remove
4105
4106/* Override any gcc2 internal prototype to avoid an error. */
4107#ifdef __cplusplus
4108extern "C"
4109{
4110#endif
4111/* We use char because int might match the return type of a gcc2
4112 builtin and then its argument prototype would still apply. */
4113char remove ();
4114/* The GNU C library defines this for functions which it implements
4115 to always fail with ENOSYS. Some functions are actually named
4116 something starting with __ and the normal name is an alias. */
4117#if defined (__stub_remove) || defined (__stub___remove)
4118choke me
4119#else
4120char (*f) () = remove;
4121#endif
4122#ifdef __cplusplus
4123}
4124#endif
4125
4126int
4127main ()
4128{
4129return f != remove;
4130 ;
4131 return 0;
4132}
4133_ACEOF
4134rm -f conftest.$ac_objext conftest$ac_exeext
4135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4136 (eval $ac_link) 2>conftest.er1
4137 ac_status=$?
4138 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -f conftest.er1
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try='test -z "$ac_cxx_werror_flag"
4144 || test ! -s conftest.err'
4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146 (eval $ac_try) 2>&5
4147 ac_status=$?
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; } &&
4150 { ac_try='test -s conftest$ac_exeext'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 (eval $ac_try) 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 ac_cv_func_remove=yes
4157else
4158 echo "$as_me: failed program was:" >&5
4159sed 's/^/| /' conftest.$ac_ext >&5
4160
4161ac_cv_func_remove=no
4162fi
4163rm -f conftest.err conftest.$ac_objext \
4164 conftest$ac_exeext conftest.$ac_ext
4165fi
4166echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4167echo "${ECHO_T}$ac_cv_func_remove" >&6
4168
4169 if test $ac_cv_func_remove = no; then
4170 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4171echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4172if test "${ac_cv_lib_posix_remove+set}" = set; then
4173 echo $ECHO_N "(cached) $ECHO_C" >&6
4174else
4175 ac_check_lib_save_LIBS=$LIBS
4176LIBS="-lposix $LIBS"
4177cat >conftest.$ac_ext <<_ACEOF
4178/* confdefs.h. */
4179_ACEOF
4180cat confdefs.h >>conftest.$ac_ext
4181cat >>conftest.$ac_ext <<_ACEOF
4182/* end confdefs.h. */
4183
4184/* Override any gcc2 internal prototype to avoid an error. */
4185#ifdef __cplusplus
4186extern "C"
4187#endif
4188/* We use char because int might match the return type of a gcc2
4189 builtin and then its argument prototype would still apply. */
4190char remove ();
4191int
4192main ()
4193{
4194remove ();
4195 ;
4196 return 0;
4197}
4198_ACEOF
4199rm -f conftest.$ac_objext conftest$ac_exeext
4200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4201 (eval $ac_link) 2>conftest.er1
4202 ac_status=$?
4203 grep -v '^ *+' conftest.er1 >conftest.err
4204 rm -f conftest.er1
4205 cat conftest.err >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } &&
4208 { ac_try='test -z "$ac_cxx_werror_flag"
4209 || test ! -s conftest.err'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 (eval $ac_try) 2>&5
4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; } &&
4215 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4221 ac_cv_lib_posix_remove=yes
4222else
4223 echo "$as_me: failed program was:" >&5
4224sed 's/^/| /' conftest.$ac_ext >&5
4225
4226ac_cv_lib_posix_remove=no
4227fi
4228rm -f conftest.err conftest.$ac_objext \
4229 conftest$ac_exeext conftest.$ac_ext
4230LIBS=$ac_check_lib_save_LIBS
4231fi
4232echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4233echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4234if test $ac_cv_lib_posix_remove = yes; then
4235 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4236fi
4237
4238 fi
4239
4240 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4241 echo "$as_me:$LINENO: checking for shmat" >&5
4242echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4243if test "${ac_cv_func_shmat+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4245else
4246 cat >conftest.$ac_ext <<_ACEOF
4247/* confdefs.h. */
4248_ACEOF
4249cat confdefs.h >>conftest.$ac_ext
4250cat >>conftest.$ac_ext <<_ACEOF
4251/* end confdefs.h. */
4252/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4254#define shmat innocuous_shmat
4255
4256/* System header to define __stub macros and hopefully few prototypes,
4257 which can conflict with char shmat (); below.
4258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4259 <limits.h> exists even on freestanding compilers. */
4260
4261#ifdef __STDC__
4262# include <limits.h>
4263#else
4264# include <assert.h>
4265#endif
4266
4267#undef shmat
4268
4269/* Override any gcc2 internal prototype to avoid an error. */
4270#ifdef __cplusplus
4271extern "C"
4272{
4273#endif
4274/* We use char because int might match the return type of a gcc2
4275 builtin and then its argument prototype would still apply. */
4276char shmat ();
4277/* The GNU C library defines this for functions which it implements
4278 to always fail with ENOSYS. Some functions are actually named
4279 something starting with __ and the normal name is an alias. */
4280#if defined (__stub_shmat) || defined (__stub___shmat)
4281choke me
4282#else
4283char (*f) () = shmat;
4284#endif
4285#ifdef __cplusplus
4286}
4287#endif
4288
4289int
4290main ()
4291{
4292return f != shmat;
4293 ;
4294 return 0;
4295}
4296_ACEOF
4297rm -f conftest.$ac_objext conftest$ac_exeext
4298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4299 (eval $ac_link) 2>conftest.er1
4300 ac_status=$?
4301 grep -v '^ *+' conftest.er1 >conftest.err
4302 rm -f conftest.er1
4303 cat conftest.err >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } &&
4306 { ac_try='test -z "$ac_cxx_werror_flag"
4307 || test ! -s conftest.err'
4308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309 (eval $ac_try) 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; } &&
4313 { ac_try='test -s conftest$ac_exeext'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 (eval $ac_try) 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 ac_cv_func_shmat=yes
4320else
4321 echo "$as_me: failed program was:" >&5
4322sed 's/^/| /' conftest.$ac_ext >&5
4323
4324ac_cv_func_shmat=no
4325fi
4326rm -f conftest.err conftest.$ac_objext \
4327 conftest$ac_exeext conftest.$ac_ext
4328fi
4329echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4330echo "${ECHO_T}$ac_cv_func_shmat" >&6
4331
4332 if test $ac_cv_func_shmat = no; then
4333 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4334echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4335if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4336 echo $ECHO_N "(cached) $ECHO_C" >&6
4337else
4338 ac_check_lib_save_LIBS=$LIBS
4339LIBS="-lipc $LIBS"
4340cat >conftest.$ac_ext <<_ACEOF
4341/* confdefs.h. */
4342_ACEOF
4343cat confdefs.h >>conftest.$ac_ext
4344cat >>conftest.$ac_ext <<_ACEOF
4345/* end confdefs.h. */
4346
4347/* Override any gcc2 internal prototype to avoid an error. */
4348#ifdef __cplusplus
4349extern "C"
4350#endif
4351/* We use char because int might match the return type of a gcc2
4352 builtin and then its argument prototype would still apply. */
4353char shmat ();
4354int
4355main ()
4356{
4357shmat ();
4358 ;
4359 return 0;
4360}
4361_ACEOF
4362rm -f conftest.$ac_objext conftest$ac_exeext
4363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4364 (eval $ac_link) 2>conftest.er1
4365 ac_status=$?
4366 grep -v '^ *+' conftest.er1 >conftest.err
4367 rm -f conftest.er1
4368 cat conftest.err >&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } &&
4371 { ac_try='test -z "$ac_cxx_werror_flag"
4372 || test ! -s conftest.err'
4373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 (eval $ac_try) 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; } &&
4378 { ac_try='test -s conftest$ac_exeext'
4379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 (eval $ac_try) 2>&5
4381 ac_status=$?
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }; }; then
4384 ac_cv_lib_ipc_shmat=yes
4385else
4386 echo "$as_me: failed program was:" >&5
4387sed 's/^/| /' conftest.$ac_ext >&5
4388
4389ac_cv_lib_ipc_shmat=no
4390fi
4391rm -f conftest.err conftest.$ac_objext \
4392 conftest$ac_exeext conftest.$ac_ext
4393LIBS=$ac_check_lib_save_LIBS
4394fi
4395echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4396echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4397if test $ac_cv_lib_ipc_shmat = yes; then
4398 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4399fi
4400
4401 fi
4402 fi
4403
4404 # Check for libraries that X11R6 Xt/Xaw programs need.
4405 ac_save_LDFLAGS=$LDFLAGS
4406 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4407 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4408 # check for ICE first), but we must link in the order -lSM -lICE or
4409 # we get undefined symbols. So assume we have SM if we have ICE.
4410 # These have to be linked with before -lX11, unlike the other
4411 # libraries we check for below, so use a different variable.
4412 # John Interrante, Karl Berry
4413 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4414echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4415if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4417else
4418 ac_check_lib_save_LIBS=$LIBS
4419LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4420cat >conftest.$ac_ext <<_ACEOF
4421/* confdefs.h. */
4422_ACEOF
4423cat confdefs.h >>conftest.$ac_ext
4424cat >>conftest.$ac_ext <<_ACEOF
4425/* end confdefs.h. */
4426
4427/* Override any gcc2 internal prototype to avoid an error. */
4428#ifdef __cplusplus
4429extern "C"
4430#endif
4431/* We use char because int might match the return type of a gcc2
4432 builtin and then its argument prototype would still apply. */
4433char IceConnectionNumber ();
4434int
4435main ()
4436{
4437IceConnectionNumber ();
4438 ;
4439 return 0;
4440}
4441_ACEOF
4442rm -f conftest.$ac_objext conftest$ac_exeext
4443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4444 (eval $ac_link) 2>conftest.er1
4445 ac_status=$?
4446 grep -v '^ *+' conftest.er1 >conftest.err
4447 rm -f conftest.er1
4448 cat conftest.err >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } &&
4451 { ac_try='test -z "$ac_cxx_werror_flag"
4452 || test ! -s conftest.err'
4453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 (eval $ac_try) 2>&5
4455 ac_status=$?
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; } &&
4458 { ac_try='test -s conftest$ac_exeext'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 (eval $ac_try) 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
4464 ac_cv_lib_ICE_IceConnectionNumber=yes
4465else
4466 echo "$as_me: failed program was:" >&5
4467sed 's/^/| /' conftest.$ac_ext >&5
4468
4469ac_cv_lib_ICE_IceConnectionNumber=no
4470fi
4471rm -f conftest.err conftest.$ac_objext \
4472 conftest$ac_exeext conftest.$ac_ext
4473LIBS=$ac_check_lib_save_LIBS
4474fi
4475echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4476echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4477if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4478 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4479fi
4480
4481 LDFLAGS=$ac_save_LDFLAGS
4482
4483fi
4484
4485
4486
4487# Check whether --with-installed-zlib or --without-installed-zlib was given.
4488if test "${with_installed_zlib+set}" = set; then
4489 withval="$with_installed_zlib"
4490
4491fi;
4492
4493if test "$with_installed_zlib" = yes; then
4494 echo "using installed zlib"
4495 ZLIB_LIB=-lz
4496else
Constantin Kaplinsky97ac5552006-06-02 04:13:14 +00004497 ZLIB_DIR='$(COMMON)/zlib'
4498 ZLIB_INCLUDE='-I$(COMMON)/zlib'
4499 ZLIB_LIB='$(COMMON)/zlib/libz.a'
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004500fi
4501
4502
4503
4504
4505
4506
4507# Check whether --with-installed-jpeg or --without-installed-jpeg was given.
4508if test "${with_installed_jpeg+set}" = set; then
4509 withval="$with_installed_jpeg"
4510
4511fi;
4512
4513if test "$with_installed_jpeg" = yes; then
4514 echo "using installed jpeg"
4515 JPEG_LIB=-ljpeg
4516else
Constantin Kaplinsky97ac5552006-06-02 04:13:14 +00004517 JPEG_DIR='$(COMMON)/jpeg/build'
4518 JPEG_INCLUDE='-I$(COMMON)/jpeg'
4519 JPEG_LIB='$(COMMON)/jpeg/build/libjpeg.a'
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004520fi
4521
4522
4523
4524
4525
4526# Check whether --enable-vncconfig or --disable-vncconfig was given.
4527if test "${enable_vncconfig+set}" = set; then
4528 enableval="$enable_vncconfig"
4529
4530fi;
4531if test "$enable_vncconfig" = no; then
4532 echo "vncconfig utility will not be built"
4533 VNCCONFIG_DIR=
4534else
Constantin Kaplinsky97ac5552006-06-02 04:13:14 +00004535 VNCCONFIG_DIR='vncconfig'
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004536fi
4537
4538
4539echo "$as_me:$LINENO: checking for XTestGrabControl in -lXtst" >&5
4540echo $ECHO_N "checking for XTestGrabControl in -lXtst... $ECHO_C" >&6
4541if test "${ac_cv_lib_Xtst_XTestGrabControl+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543else
4544 ac_check_lib_save_LIBS=$LIBS
4545LIBS="-lXtst "$X_LIBS" -lXext -lX11 $LIBS"
4546cat >conftest.$ac_ext <<_ACEOF
4547/* confdefs.h. */
4548_ACEOF
4549cat confdefs.h >>conftest.$ac_ext
4550cat >>conftest.$ac_ext <<_ACEOF
4551/* end confdefs.h. */
4552
4553/* Override any gcc2 internal prototype to avoid an error. */
4554#ifdef __cplusplus
4555extern "C"
4556#endif
4557/* We use char because int might match the return type of a gcc2
4558 builtin and then its argument prototype would still apply. */
4559char XTestGrabControl ();
4560int
4561main ()
4562{
4563XTestGrabControl ();
4564 ;
4565 return 0;
4566}
4567_ACEOF
4568rm -f conftest.$ac_objext conftest$ac_exeext
4569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4570 (eval $ac_link) 2>conftest.er1
4571 ac_status=$?
4572 grep -v '^ *+' conftest.er1 >conftest.err
4573 rm -f conftest.er1
4574 cat conftest.err >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } &&
4577 { ac_try='test -z "$ac_cxx_werror_flag"
4578 || test ! -s conftest.err'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580 (eval $ac_try) 2>&5
4581 ac_status=$?
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; } &&
4584 { ac_try='test -s conftest$ac_exeext'
4585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4586 (eval $ac_try) 2>&5
4587 ac_status=$?
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; }; then
4590 ac_cv_lib_Xtst_XTestGrabControl=yes
4591else
4592 echo "$as_me: failed program was:" >&5
4593sed 's/^/| /' conftest.$ac_ext >&5
4594
4595ac_cv_lib_Xtst_XTestGrabControl=no
4596fi
4597rm -f conftest.err conftest.$ac_objext \
4598 conftest$ac_exeext conftest.$ac_ext
4599LIBS=$ac_check_lib_save_LIBS
4600fi
4601echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestGrabControl" >&5
4602echo "${ECHO_T}$ac_cv_lib_Xtst_XTestGrabControl" >&6
4603if test $ac_cv_lib_Xtst_XTestGrabControl = yes; then
4604 USE_XTEST=yes
4605else
4606 USE_XTEST=
4607fi
4608
4609if test "$USE_XTEST" = yes; then
4610 XTEST_DEFINE='-DHAVE_XTEST'
4611 XTEST_LIB=-lXtst
4612else
4613 echo Warning: No XTest extension, building x0vncserver view-only
4614 XTEST_DEFINE=
4615 XTEST_LIB=
4616fi
4617
4618
4619
4620if test "$USE_READDISPLAY" = yes; then
4621 READDISPLAY_DEFINE='-DHAVE_READDISPLAY'
4622elif test "$USE_SUN_OVL" = yes; then
4623 READDISPLAY_DEFINE='-DHAVE_SUN_OVL'
4624else
4625 READDISPLAY_DEFINE=
4626fi
4627
4628
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004629
4630
4631ac_ext=c
4632ac_cpp='$CPP $CPPFLAGS'
4633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4635ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636
4637
4638echo "$as_me:$LINENO: checking for gethostbyname" >&5
4639echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4640if test "${ac_cv_func_gethostbyname+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4642else
4643 cat >conftest.$ac_ext <<_ACEOF
4644/* confdefs.h. */
4645_ACEOF
4646cat confdefs.h >>conftest.$ac_ext
4647cat >>conftest.$ac_ext <<_ACEOF
4648/* end confdefs.h. */
4649/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4651#define gethostbyname innocuous_gethostbyname
4652
4653/* System header to define __stub macros and hopefully few prototypes,
4654 which can conflict with char gethostbyname (); below.
4655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4656 <limits.h> exists even on freestanding compilers. */
4657
4658#ifdef __STDC__
4659# include <limits.h>
4660#else
4661# include <assert.h>
4662#endif
4663
4664#undef gethostbyname
4665
4666/* Override any gcc2 internal prototype to avoid an error. */
4667#ifdef __cplusplus
4668extern "C"
4669{
4670#endif
4671/* We use char because int might match the return type of a gcc2
4672 builtin and then its argument prototype would still apply. */
4673char gethostbyname ();
4674/* The GNU C library defines this for functions which it implements
4675 to always fail with ENOSYS. Some functions are actually named
4676 something starting with __ and the normal name is an alias. */
4677#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4678choke me
4679#else
4680char (*f) () = gethostbyname;
4681#endif
4682#ifdef __cplusplus
4683}
4684#endif
4685
4686int
4687main ()
4688{
4689return f != gethostbyname;
4690 ;
4691 return 0;
4692}
4693_ACEOF
4694rm -f conftest.$ac_objext conftest$ac_exeext
4695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4696 (eval $ac_link) 2>conftest.er1
4697 ac_status=$?
4698 grep -v '^ *+' conftest.er1 >conftest.err
4699 rm -f conftest.er1
4700 cat conftest.err >&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); } &&
4703 { ac_try='test -z "$ac_c_werror_flag"
4704 || test ! -s conftest.err'
4705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 (eval $ac_try) 2>&5
4707 ac_status=$?
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); }; } &&
4710 { ac_try='test -s conftest$ac_exeext'
4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 (eval $ac_try) 2>&5
4713 ac_status=$?
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }; }; then
4716 ac_cv_func_gethostbyname=yes
4717else
4718 echo "$as_me: failed program was:" >&5
4719sed 's/^/| /' conftest.$ac_ext >&5
4720
4721ac_cv_func_gethostbyname=no
4722fi
4723rm -f conftest.err conftest.$ac_objext \
4724 conftest$ac_exeext conftest.$ac_ext
4725fi
4726echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4727echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4728if test $ac_cv_func_gethostbyname = yes; then
4729 INET_LIB_REQ=
4730else
4731 INET_LIB_REQ=yes
4732fi
4733
4734if test "$INET_LIB_REQ" = yes; then
4735 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4736echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4737if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4739else
4740 ac_check_lib_save_LIBS=$LIBS
4741LIBS="-lbsd $LIBS"
4742cat >conftest.$ac_ext <<_ACEOF
4743/* confdefs.h. */
4744_ACEOF
4745cat confdefs.h >>conftest.$ac_ext
4746cat >>conftest.$ac_ext <<_ACEOF
4747/* end confdefs.h. */
4748
4749/* Override any gcc2 internal prototype to avoid an error. */
4750#ifdef __cplusplus
4751extern "C"
4752#endif
4753/* We use char because int might match the return type of a gcc2
4754 builtin and then its argument prototype would still apply. */
4755char gethostbyname ();
4756int
4757main ()
4758{
4759gethostbyname ();
4760 ;
4761 return 0;
4762}
4763_ACEOF
4764rm -f conftest.$ac_objext conftest$ac_exeext
4765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4766 (eval $ac_link) 2>conftest.er1
4767 ac_status=$?
4768 grep -v '^ *+' conftest.er1 >conftest.err
4769 rm -f conftest.er1
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try='test -z "$ac_c_werror_flag"
4774 || test ! -s conftest.err'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; } &&
4780 { ac_try='test -s conftest$ac_exeext'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 (eval $ac_try) 2>&5
4783 ac_status=$?
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; }; then
4786 ac_cv_lib_bsd_gethostbyname=yes
4787else
4788 echo "$as_me: failed program was:" >&5
4789sed 's/^/| /' conftest.$ac_ext >&5
4790
4791ac_cv_lib_bsd_gethostbyname=no
4792fi
4793rm -f conftest.err conftest.$ac_objext \
4794 conftest$ac_exeext conftest.$ac_ext
4795LIBS=$ac_check_lib_save_LIBS
4796fi
4797echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4798echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4799if test $ac_cv_lib_bsd_gethostbyname = yes; then
4800 INET_LIB=-lbsd
4801else
4802 INET_LIB=
4803fi
4804
4805fi
4806ac_ext=cc
4807ac_cpp='$CXXCPP $CPPFLAGS'
4808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4811
4812
4813
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004814ac_aux_dir=
4815for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
4816 if test -f $ac_dir/install-sh; then
4817 ac_aux_dir=$ac_dir
4818 ac_install_sh="$ac_aux_dir/install-sh -c"
4819 break
4820 elif test -f $ac_dir/install.sh; then
4821 ac_aux_dir=$ac_dir
4822 ac_install_sh="$ac_aux_dir/install.sh -c"
4823 break
4824 elif test -f $ac_dir/shtool; then
4825 ac_aux_dir=$ac_dir
4826 ac_install_sh="$ac_aux_dir/shtool install -c"
4827 break
4828 fi
4829done
4830if test -z "$ac_aux_dir"; then
4831 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
4832echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
4833 { (exit 1); exit 1; }; }
4834fi
4835ac_config_guess="$SHELL $ac_aux_dir/config.guess"
4836ac_config_sub="$SHELL $ac_aux_dir/config.sub"
4837ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
4838
4839# Find a good install program. We prefer a C program (faster),
4840# so one script is as good as another. But avoid the broken or
4841# incompatible versions:
4842# SysV /etc/install, /usr/sbin/install
4843# SunOS /usr/etc/install
4844# IRIX /sbin/install
4845# AIX /bin/install
4846# AmigaOS /C/install, which installs bootblocks on floppy discs
4847# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4848# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4849# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4850# OS/2's system install, which has a completely different semantic
4851# ./install, which can be erroneously created by make from ./install.sh.
4852echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4853echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4854if test -z "$INSTALL"; then
4855if test "${ac_cv_path_install+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4857else
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859for as_dir in $PATH
4860do
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 # Account for people who put trailing slashes in PATH elements.
4864case $as_dir/ in
4865 ./ | .// | /cC/* | \
4866 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4867 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4868 /usr/ucb/* ) ;;
4869 *)
4870 # OSF1 and SCO ODT 3.0 have their own names for install.
4871 # Don't use installbsd from OSF since it installs stuff as root
4872 # by default.
4873 for ac_prog in ginstall scoinst install; do
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4876 if test $ac_prog = install &&
4877 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4878 # AIX install. It has an incompatible calling convention.
4879 :
4880 elif test $ac_prog = install &&
4881 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4882 # program-specific install script used by HP pwplus--don't use.
4883 :
4884 else
4885 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4886 break 3
4887 fi
4888 fi
4889 done
4890 done
4891 ;;
4892esac
4893done
4894
4895
4896fi
4897 if test "${ac_cv_path_install+set}" = set; then
4898 INSTALL=$ac_cv_path_install
4899 else
4900 # As a last resort, use the slow shell script. We don't cache a
4901 # path for INSTALL within a source directory, because that will
4902 # break other packages using the cache if that directory is
4903 # removed, or if the path is relative.
4904 INSTALL=$ac_install_sh
4905 fi
4906fi
4907echo "$as_me:$LINENO: result: $INSTALL" >&5
4908echo "${ECHO_T}$INSTALL" >&6
4909
4910# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4911# It thinks the first close brace ends the variable substitution.
4912test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4913
4914test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4915
4916test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4917
4918
4919 MKINSTALLDIRS=
4920 if test -n "$ac_aux_dir"; then
4921 case "$ac_aux_dir" in
4922 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4923 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4924 esac
4925 fi
4926 if test -z "$MKINSTALLDIRS"; then
4927 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4928 fi
4929
4930
4931
4932 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4933echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4934 # Check whether --enable-nls or --disable-nls was given.
4935if test "${enable_nls+set}" = set; then
4936 enableval="$enable_nls"
4937 USE_NLS=$enableval
4938else
4939 USE_NLS=yes
4940fi;
4941 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4942echo "${ECHO_T}$USE_NLS" >&6
4943
4944
4945
4946
4947
4948
4949# Prepare PATH_SEPARATOR.
4950# The user is always right.
4951if test "${PATH_SEPARATOR+set}" != set; then
4952 echo "#! /bin/sh" >conf$$.sh
4953 echo "exit 0" >>conf$$.sh
4954 chmod +x conf$$.sh
4955 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4956 PATH_SEPARATOR=';'
4957 else
4958 PATH_SEPARATOR=:
4959 fi
4960 rm -f conf$$.sh
4961fi
4962
4963# Find out how to test for executable files. Don't use a zero-byte file,
4964# as systems may use methods other than mode bits to determine executability.
4965cat >conf$$.file <<_ASEOF
4966#! /bin/sh
4967exit 0
4968_ASEOF
4969chmod +x conf$$.file
4970if test -x conf$$.file >/dev/null 2>&1; then
4971 ac_executable_p="test -x"
4972else
4973 ac_executable_p="test -f"
4974fi
4975rm -f conf$$.file
4976
4977# Extract the first word of "msgfmt", so it can be a program name with args.
4978set dummy msgfmt; ac_word=$2
4979echo "$as_me:$LINENO: checking for $ac_word" >&5
4980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4981if test "${ac_cv_path_MSGFMT+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4983else
4984 case "$MSGFMT" in
4985 [\\/]* | ?:[\\/]*)
4986 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4987 ;;
4988 *)
4989 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4990 for ac_dir in $PATH; do
4991 IFS="$ac_save_IFS"
4992 test -z "$ac_dir" && ac_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4995 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4996 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4997 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4998 break 2
4999 fi
5000 fi
5001 done
5002 done
5003 IFS="$ac_save_IFS"
5004 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5005 ;;
5006esac
5007fi
5008MSGFMT="$ac_cv_path_MSGFMT"
5009if test "$MSGFMT" != ":"; then
5010 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5011echo "${ECHO_T}$MSGFMT" >&6
5012else
5013 echo "$as_me:$LINENO: result: no" >&5
5014echo "${ECHO_T}no" >&6
5015fi
5016
5017 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5018set dummy gmsgfmt; ac_word=$2
5019echo "$as_me:$LINENO: checking for $ac_word" >&5
5020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5021if test "${ac_cv_path_GMSGFMT+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023else
5024 case $GMSGFMT in
5025 [\\/]* | ?:[\\/]*)
5026 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5027 ;;
5028 *)
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030for as_dir in $PATH
5031do
5032 IFS=$as_save_IFS
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 break 2
5039 fi
5040done
5041done
5042
5043 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5044 ;;
5045esac
5046fi
5047GMSGFMT=$ac_cv_path_GMSGFMT
5048
5049if test -n "$GMSGFMT"; then
5050 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5051echo "${ECHO_T}$GMSGFMT" >&6
5052else
5053 echo "$as_me:$LINENO: result: no" >&5
5054echo "${ECHO_T}no" >&6
5055fi
5056
5057
5058
5059# Prepare PATH_SEPARATOR.
5060# The user is always right.
5061if test "${PATH_SEPARATOR+set}" != set; then
5062 echo "#! /bin/sh" >conf$$.sh
5063 echo "exit 0" >>conf$$.sh
5064 chmod +x conf$$.sh
5065 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5066 PATH_SEPARATOR=';'
5067 else
5068 PATH_SEPARATOR=:
5069 fi
5070 rm -f conf$$.sh
5071fi
5072
5073# Find out how to test for executable files. Don't use a zero-byte file,
5074# as systems may use methods other than mode bits to determine executability.
5075cat >conf$$.file <<_ASEOF
5076#! /bin/sh
5077exit 0
5078_ASEOF
5079chmod +x conf$$.file
5080if test -x conf$$.file >/dev/null 2>&1; then
5081 ac_executable_p="test -x"
5082else
5083 ac_executable_p="test -f"
5084fi
5085rm -f conf$$.file
5086
5087# Extract the first word of "xgettext", so it can be a program name with args.
5088set dummy xgettext; ac_word=$2
5089echo "$as_me:$LINENO: checking for $ac_word" >&5
5090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5091if test "${ac_cv_path_XGETTEXT+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094 case "$XGETTEXT" in
5095 [\\/]* | ?:[\\/]*)
5096 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5097 ;;
5098 *)
5099 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5100 for ac_dir in $PATH; do
5101 IFS="$ac_save_IFS"
5102 test -z "$ac_dir" && ac_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5105 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5106 (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
5107 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5108 break 2
5109 fi
5110 fi
5111 done
5112 done
5113 IFS="$ac_save_IFS"
5114 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5115 ;;
5116esac
5117fi
5118XGETTEXT="$ac_cv_path_XGETTEXT"
5119if test "$XGETTEXT" != ":"; then
5120 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5121echo "${ECHO_T}$XGETTEXT" >&6
5122else
5123 echo "$as_me:$LINENO: result: no" >&5
5124echo "${ECHO_T}no" >&6
5125fi
5126
5127 rm -f messages.po
5128
5129
5130# Prepare PATH_SEPARATOR.
5131# The user is always right.
5132if test "${PATH_SEPARATOR+set}" != set; then
5133 echo "#! /bin/sh" >conf$$.sh
5134 echo "exit 0" >>conf$$.sh
5135 chmod +x conf$$.sh
5136 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5137 PATH_SEPARATOR=';'
5138 else
5139 PATH_SEPARATOR=:
5140 fi
5141 rm -f conf$$.sh
5142fi
5143
5144# Find out how to test for executable files. Don't use a zero-byte file,
5145# as systems may use methods other than mode bits to determine executability.
5146cat >conf$$.file <<_ASEOF
5147#! /bin/sh
5148exit 0
5149_ASEOF
5150chmod +x conf$$.file
5151if test -x conf$$.file >/dev/null 2>&1; then
5152 ac_executable_p="test -x"
5153else
5154 ac_executable_p="test -f"
5155fi
5156rm -f conf$$.file
5157
5158# Extract the first word of "msgmerge", so it can be a program name with args.
5159set dummy msgmerge; ac_word=$2
5160echo "$as_me:$LINENO: checking for $ac_word" >&5
5161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5162if test "${ac_cv_path_MSGMERGE+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164else
5165 case "$MSGMERGE" in
5166 [\\/]* | ?:[\\/]*)
5167 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5168 ;;
5169 *)
5170 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5171 for ac_dir in $PATH; do
5172 IFS="$ac_save_IFS"
5173 test -z "$ac_dir" && ac_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5176 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5177 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5178 break 2
5179 fi
5180 fi
5181 done
5182 done
5183 IFS="$ac_save_IFS"
5184 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5185 ;;
5186esac
5187fi
5188MSGMERGE="$ac_cv_path_MSGMERGE"
5189if test "$MSGMERGE" != ":"; then
5190 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5191echo "${ECHO_T}$MSGMERGE" >&6
5192else
5193 echo "$as_me:$LINENO: result: no" >&5
5194echo "${ECHO_T}no" >&6
5195fi
5196
5197
5198 if test "$GMSGFMT" != ":"; then
5199 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5200 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5201 : ;
5202 else
5203 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5204 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5205echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5206 GMSGFMT=":"
5207 fi
5208 fi
5209
5210 if test "$XGETTEXT" != ":"; then
5211 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5212 (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
5213 : ;
5214 else
5215 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5216echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5217 XGETTEXT=":"
5218 fi
5219 rm -f messages.po
5220 fi
5221
5222 ac_config_commands="$ac_config_commands default-1"
5223
5224
5225# Make sure we can run config.sub.
5226$ac_config_sub sun4 >/dev/null 2>&1 ||
5227 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5228echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5229 { (exit 1); exit 1; }; }
5230
5231echo "$as_me:$LINENO: checking build system type" >&5
5232echo $ECHO_N "checking build system type... $ECHO_C" >&6
5233if test "${ac_cv_build+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5235else
5236 ac_cv_build_alias=$build_alias
5237test -z "$ac_cv_build_alias" &&
5238 ac_cv_build_alias=`$ac_config_guess`
5239test -z "$ac_cv_build_alias" &&
5240 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5241echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5242 { (exit 1); exit 1; }; }
5243ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5244 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5245echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5246 { (exit 1); exit 1; }; }
5247
5248fi
5249echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5250echo "${ECHO_T}$ac_cv_build" >&6
5251build=$ac_cv_build
5252build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5253build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5254build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5255
5256
5257echo "$as_me:$LINENO: checking host system type" >&5
5258echo $ECHO_N "checking host system type... $ECHO_C" >&6
5259if test "${ac_cv_host+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5261else
5262 ac_cv_host_alias=$host_alias
5263test -z "$ac_cv_host_alias" &&
5264 ac_cv_host_alias=$ac_cv_build_alias
5265ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5266 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5267echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5268 { (exit 1); exit 1; }; }
5269
5270fi
5271echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5272echo "${ECHO_T}$ac_cv_host" >&6
5273host=$ac_cv_host
5274host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5275host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5276host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5277
5278
5279
5280 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5281echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
5282if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5284else
5285 ac_check_lib_save_LIBS=$LIBS
5286LIBS="-lcposix $LIBS"
5287cat >conftest.$ac_ext <<_ACEOF
5288/* confdefs.h. */
5289_ACEOF
5290cat confdefs.h >>conftest.$ac_ext
5291cat >>conftest.$ac_ext <<_ACEOF
5292/* end confdefs.h. */
5293
5294/* Override any gcc2 internal prototype to avoid an error. */
5295#ifdef __cplusplus
5296extern "C"
5297#endif
5298/* We use char because int might match the return type of a gcc2
5299 builtin and then its argument prototype would still apply. */
5300char strerror ();
5301int
5302main ()
5303{
5304strerror ();
5305 ;
5306 return 0;
5307}
5308_ACEOF
5309rm -f conftest.$ac_objext conftest$ac_exeext
5310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5311 (eval $ac_link) 2>conftest.er1
5312 ac_status=$?
5313 grep -v '^ *+' conftest.er1 >conftest.err
5314 rm -f conftest.er1
5315 cat conftest.err >&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } &&
5318 { ac_try='test -z "$ac_cxx_werror_flag"
5319 || test ! -s conftest.err'
5320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 (eval $ac_try) 2>&5
5322 ac_status=$?
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }; } &&
5325 { ac_try='test -s conftest$ac_exeext'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 (eval $ac_try) 2>&5
5328 ac_status=$?
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; }; then
5331 ac_cv_lib_cposix_strerror=yes
5332else
5333 echo "$as_me: failed program was:" >&5
5334sed 's/^/| /' conftest.$ac_ext >&5
5335
5336ac_cv_lib_cposix_strerror=no
5337fi
5338rm -f conftest.err conftest.$ac_objext \
5339 conftest$ac_exeext conftest.$ac_ext
5340LIBS=$ac_check_lib_save_LIBS
5341fi
5342echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5343echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
5344if test $ac_cv_lib_cposix_strerror = yes; then
5345 LIBS="$LIBS -lcposix"
5346fi
5347
5348
5349
5350echo "$as_me:$LINENO: checking for egrep" >&5
5351echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5352if test "${ac_cv_prog_egrep+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5354else
5355 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5356 then ac_cv_prog_egrep='grep -E'
5357 else ac_cv_prog_egrep='egrep'
5358 fi
5359fi
5360echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5361echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5362 EGREP=$ac_cv_prog_egrep
5363
5364
5365echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5366echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5367if test "${ac_cv_header_stdc+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5369else
5370 cat >conftest.$ac_ext <<_ACEOF
5371/* confdefs.h. */
5372_ACEOF
5373cat confdefs.h >>conftest.$ac_ext
5374cat >>conftest.$ac_ext <<_ACEOF
5375/* end confdefs.h. */
5376#include <stdlib.h>
5377#include <stdarg.h>
5378#include <string.h>
5379#include <float.h>
5380
5381int
5382main ()
5383{
5384
5385 ;
5386 return 0;
5387}
5388_ACEOF
5389rm -f conftest.$ac_objext
5390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5391 (eval $ac_compile) 2>conftest.er1
5392 ac_status=$?
5393 grep -v '^ *+' conftest.er1 >conftest.err
5394 rm -f conftest.er1
5395 cat conftest.err >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } &&
5398 { ac_try='test -z "$ac_cxx_werror_flag"
5399 || test ! -s conftest.err'
5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 (eval $ac_try) 2>&5
5402 ac_status=$?
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; } &&
5405 { ac_try='test -s conftest.$ac_objext'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 (eval $ac_try) 2>&5
5408 ac_status=$?
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; }; then
5411 ac_cv_header_stdc=yes
5412else
5413 echo "$as_me: failed program was:" >&5
5414sed 's/^/| /' conftest.$ac_ext >&5
5415
5416ac_cv_header_stdc=no
5417fi
5418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5419
5420if test $ac_cv_header_stdc = yes; then
5421 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5422 cat >conftest.$ac_ext <<_ACEOF
5423/* confdefs.h. */
5424_ACEOF
5425cat confdefs.h >>conftest.$ac_ext
5426cat >>conftest.$ac_ext <<_ACEOF
5427/* end confdefs.h. */
5428#include <string.h>
5429
5430_ACEOF
5431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5432 $EGREP "memchr" >/dev/null 2>&1; then
5433 :
5434else
5435 ac_cv_header_stdc=no
5436fi
5437rm -f conftest*
5438
5439fi
5440
5441if test $ac_cv_header_stdc = yes; then
5442 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5443 cat >conftest.$ac_ext <<_ACEOF
5444/* confdefs.h. */
5445_ACEOF
5446cat confdefs.h >>conftest.$ac_ext
5447cat >>conftest.$ac_ext <<_ACEOF
5448/* end confdefs.h. */
5449#include <stdlib.h>
5450
5451_ACEOF
5452if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5453 $EGREP "free" >/dev/null 2>&1; then
5454 :
5455else
5456 ac_cv_header_stdc=no
5457fi
5458rm -f conftest*
5459
5460fi
5461
5462if test $ac_cv_header_stdc = yes; then
5463 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5464 if test "$cross_compiling" = yes; then
5465 :
5466else
5467 cat >conftest.$ac_ext <<_ACEOF
5468/* confdefs.h. */
5469_ACEOF
5470cat confdefs.h >>conftest.$ac_ext
5471cat >>conftest.$ac_ext <<_ACEOF
5472/* end confdefs.h. */
5473#include <ctype.h>
5474#if ((' ' & 0x0FF) == 0x020)
5475# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5476# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5477#else
5478# define ISLOWER(c) \
5479 (('a' <= (c) && (c) <= 'i') \
5480 || ('j' <= (c) && (c) <= 'r') \
5481 || ('s' <= (c) && (c) <= 'z'))
5482# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5483#endif
5484
5485#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5486int
5487main ()
5488{
5489 int i;
5490 for (i = 0; i < 256; i++)
5491 if (XOR (islower (i), ISLOWER (i))
5492 || toupper (i) != TOUPPER (i))
5493 exit(2);
5494 exit (0);
5495}
5496_ACEOF
5497rm -f conftest$ac_exeext
5498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5499 (eval $ac_link) 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504 (eval $ac_try) 2>&5
5505 ac_status=$?
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; }; then
5508 :
5509else
5510 echo "$as_me: program exited with status $ac_status" >&5
5511echo "$as_me: failed program was:" >&5
5512sed 's/^/| /' conftest.$ac_ext >&5
5513
5514( exit $ac_status )
5515ac_cv_header_stdc=no
5516fi
5517rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5518fi
5519fi
5520fi
5521echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5522echo "${ECHO_T}$ac_cv_header_stdc" >&6
5523if test $ac_cv_header_stdc = yes; then
5524
5525cat >>confdefs.h <<\_ACEOF
5526#define STDC_HEADERS 1
5527_ACEOF
5528
5529fi
5530
5531echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5532echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5533if test "${ac_cv_c_const+set}" = set; then
5534 echo $ECHO_N "(cached) $ECHO_C" >&6
5535else
5536 cat >conftest.$ac_ext <<_ACEOF
5537/* confdefs.h. */
5538_ACEOF
5539cat confdefs.h >>conftest.$ac_ext
5540cat >>conftest.$ac_ext <<_ACEOF
5541/* end confdefs.h. */
5542
5543int
5544main ()
5545{
5546/* FIXME: Include the comments suggested by Paul. */
5547#ifndef __cplusplus
5548 /* Ultrix mips cc rejects this. */
5549 typedef int charset[2];
5550 const charset x;
5551 /* SunOS 4.1.1 cc rejects this. */
5552 char const *const *ccp;
5553 char **p;
5554 /* NEC SVR4.0.2 mips cc rejects this. */
5555 struct point {int x, y;};
5556 static struct point const zero = {0,0};
5557 /* AIX XL C 1.02.0.0 rejects this.
5558 It does not let you subtract one const X* pointer from another in
5559 an arm of an if-expression whose if-part is not a constant
5560 expression */
5561 const char *g = "string";
5562 ccp = &g + (g ? g-g : 0);
5563 /* HPUX 7.0 cc rejects these. */
5564 ++ccp;
5565 p = (char**) ccp;
5566 ccp = (char const *const *) p;
5567 { /* SCO 3.2v4 cc rejects this. */
5568 char *t;
5569 char const *s = 0 ? (char *) 0 : (char const *) 0;
5570
5571 *t++ = 0;
5572 }
5573 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5574 int x[] = {25, 17};
5575 const int *foo = &x[0];
5576 ++foo;
5577 }
5578 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5579 typedef const int *iptr;
5580 iptr p = 0;
5581 ++p;
5582 }
5583 { /* AIX XL C 1.02.0.0 rejects this saying
5584 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5585 struct s { int j; const int *ap[3]; };
5586 struct s *b; b->j = 5;
5587 }
5588 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5589 const int foo = 10;
5590 }
5591#endif
5592
5593 ;
5594 return 0;
5595}
5596_ACEOF
5597rm -f conftest.$ac_objext
5598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5599 (eval $ac_compile) 2>conftest.er1
5600 ac_status=$?
5601 grep -v '^ *+' conftest.er1 >conftest.err
5602 rm -f conftest.er1
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } &&
5606 { ac_try='test -z "$ac_cxx_werror_flag"
5607 || test ! -s conftest.err'
5608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609 (eval $ac_try) 2>&5
5610 ac_status=$?
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; } &&
5613 { ac_try='test -s conftest.$ac_objext'
5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615 (eval $ac_try) 2>&5
5616 ac_status=$?
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; }; then
5619 ac_cv_c_const=yes
5620else
5621 echo "$as_me: failed program was:" >&5
5622sed 's/^/| /' conftest.$ac_ext >&5
5623
5624ac_cv_c_const=no
5625fi
5626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5627fi
5628echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5629echo "${ECHO_T}$ac_cv_c_const" >&6
5630if test $ac_cv_c_const = no; then
5631
5632cat >>confdefs.h <<\_ACEOF
5633#define const
5634_ACEOF
5635
5636fi
5637
5638
5639 echo "$as_me:$LINENO: checking for signed" >&5
5640echo $ECHO_N "checking for signed... $ECHO_C" >&6
5641if test "${bh_cv_c_signed+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5643else
5644 cat >conftest.$ac_ext <<_ACEOF
5645/* confdefs.h. */
5646_ACEOF
5647cat confdefs.h >>conftest.$ac_ext
5648cat >>conftest.$ac_ext <<_ACEOF
5649/* end confdefs.h. */
5650
5651int
5652main ()
5653{
5654signed char x;
5655 ;
5656 return 0;
5657}
5658_ACEOF
5659rm -f conftest.$ac_objext
5660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5661 (eval $ac_compile) 2>conftest.er1
5662 ac_status=$?
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } &&
5668 { ac_try='test -z "$ac_cxx_werror_flag"
5669 || test ! -s conftest.err'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 (eval $ac_try) 2>&5
5672 ac_status=$?
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; } &&
5675 { ac_try='test -s conftest.$ac_objext'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 (eval $ac_try) 2>&5
5678 ac_status=$?
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; }; then
5681 bh_cv_c_signed=yes
5682else
5683 echo "$as_me: failed program was:" >&5
5684sed 's/^/| /' conftest.$ac_ext >&5
5685
5686bh_cv_c_signed=no
5687fi
5688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5689fi
5690echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5691echo "${ECHO_T}$bh_cv_c_signed" >&6
5692 if test $bh_cv_c_signed = no; then
5693
5694cat >>confdefs.h <<\_ACEOF
5695#define signed
5696_ACEOF
5697
5698 fi
5699
5700echo "$as_me:$LINENO: checking for inline" >&5
5701echo $ECHO_N "checking for inline... $ECHO_C" >&6
5702if test "${ac_cv_c_inline+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5704else
5705 ac_cv_c_inline=no
5706for ac_kw in inline __inline__ __inline; do
5707 cat >conftest.$ac_ext <<_ACEOF
5708/* confdefs.h. */
5709_ACEOF
5710cat confdefs.h >>conftest.$ac_ext
5711cat >>conftest.$ac_ext <<_ACEOF
5712/* end confdefs.h. */
5713#ifndef __cplusplus
5714typedef int foo_t;
5715static $ac_kw foo_t static_foo () {return 0; }
5716$ac_kw foo_t foo () {return 0; }
5717#endif
5718
5719_ACEOF
5720rm -f conftest.$ac_objext
5721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5722 (eval $ac_compile) 2>conftest.er1
5723 ac_status=$?
5724 grep -v '^ *+' conftest.er1 >conftest.err
5725 rm -f conftest.er1
5726 cat conftest.err >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } &&
5729 { ac_try='test -z "$ac_cxx_werror_flag"
5730 || test ! -s conftest.err'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 (eval $ac_try) 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; } &&
5736 { ac_try='test -s conftest.$ac_objext'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 (eval $ac_try) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; }; then
5742 ac_cv_c_inline=$ac_kw; break
5743else
5744 echo "$as_me: failed program was:" >&5
5745sed 's/^/| /' conftest.$ac_ext >&5
5746
5747fi
5748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5749done
5750
5751fi
5752echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5753echo "${ECHO_T}$ac_cv_c_inline" >&6
5754
5755
5756case $ac_cv_c_inline in
5757 inline | yes) ;;
5758 *)
5759 case $ac_cv_c_inline in
5760 no) ac_val=;;
5761 *) ac_val=$ac_cv_c_inline;;
5762 esac
5763 cat >>confdefs.h <<_ACEOF
5764#ifndef __cplusplus
5765#define inline $ac_val
5766#endif
5767_ACEOF
5768 ;;
5769esac
5770
5771# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5782 inttypes.h stdint.h unistd.h
5783do
5784as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5785echo "$as_me:$LINENO: checking for $ac_header" >&5
5786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5787if eval "test \"\${$as_ac_Header+set}\" = set"; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5789else
5790 cat >conftest.$ac_ext <<_ACEOF
5791/* confdefs.h. */
5792_ACEOF
5793cat confdefs.h >>conftest.$ac_ext
5794cat >>conftest.$ac_ext <<_ACEOF
5795/* end confdefs.h. */
5796$ac_includes_default
5797
5798#include <$ac_header>
5799_ACEOF
5800rm -f conftest.$ac_objext
5801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5802 (eval $ac_compile) 2>conftest.er1
5803 ac_status=$?
5804 grep -v '^ *+' conftest.er1 >conftest.err
5805 rm -f conftest.er1
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } &&
5809 { ac_try='test -z "$ac_cxx_werror_flag"
5810 || test ! -s conftest.err'
5811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812 (eval $ac_try) 2>&5
5813 ac_status=$?
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }; } &&
5816 { ac_try='test -s conftest.$ac_objext'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818 (eval $ac_try) 2>&5
5819 ac_status=$?
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; }; then
5822 eval "$as_ac_Header=yes"
5823else
5824 echo "$as_me: failed program was:" >&5
5825sed 's/^/| /' conftest.$ac_ext >&5
5826
5827eval "$as_ac_Header=no"
5828fi
5829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5830fi
5831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5832echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5833if test `eval echo '${'$as_ac_Header'}'` = yes; then
5834 cat >>confdefs.h <<_ACEOF
5835#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5836_ACEOF
5837
5838fi
5839
5840done
5841
5842
5843echo "$as_me:$LINENO: checking for off_t" >&5
5844echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5845if test "${ac_cv_type_off_t+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5847else
5848 cat >conftest.$ac_ext <<_ACEOF
5849/* confdefs.h. */
5850_ACEOF
5851cat confdefs.h >>conftest.$ac_ext
5852cat >>conftest.$ac_ext <<_ACEOF
5853/* end confdefs.h. */
5854$ac_includes_default
5855int
5856main ()
5857{
5858if ((off_t *) 0)
5859 return 0;
5860if (sizeof (off_t))
5861 return 0;
5862 ;
5863 return 0;
5864}
5865_ACEOF
5866rm -f conftest.$ac_objext
5867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868 (eval $ac_compile) 2>conftest.er1
5869 ac_status=$?
5870 grep -v '^ *+' conftest.er1 >conftest.err
5871 rm -f conftest.er1
5872 cat conftest.err >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } &&
5875 { ac_try='test -z "$ac_cxx_werror_flag"
5876 || test ! -s conftest.err'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 (eval $ac_try) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try='test -s conftest.$ac_objext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 ac_cv_type_off_t=yes
5889else
5890 echo "$as_me: failed program was:" >&5
5891sed 's/^/| /' conftest.$ac_ext >&5
5892
5893ac_cv_type_off_t=no
5894fi
5895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5896fi
5897echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5898echo "${ECHO_T}$ac_cv_type_off_t" >&6
5899if test $ac_cv_type_off_t = yes; then
5900 :
5901else
5902
5903cat >>confdefs.h <<_ACEOF
5904#define off_t long
5905_ACEOF
5906
5907fi
5908
5909echo "$as_me:$LINENO: checking for size_t" >&5
5910echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5911if test "${ac_cv_type_size_t+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5913else
5914 cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h. */
5916_ACEOF
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
5919/* end confdefs.h. */
5920$ac_includes_default
5921int
5922main ()
5923{
5924if ((size_t *) 0)
5925 return 0;
5926if (sizeof (size_t))
5927 return 0;
5928 ;
5929 return 0;
5930}
5931_ACEOF
5932rm -f conftest.$ac_objext
5933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5934 (eval $ac_compile) 2>conftest.er1
5935 ac_status=$?
5936 grep -v '^ *+' conftest.er1 >conftest.err
5937 rm -f conftest.er1
5938 cat conftest.err >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } &&
5941 { ac_try='test -z "$ac_cxx_werror_flag"
5942 || test ! -s conftest.err'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944 (eval $ac_try) 2>&5
5945 ac_status=$?
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; } &&
5948 { ac_try='test -s conftest.$ac_objext'
5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 (eval $ac_try) 2>&5
5951 ac_status=$?
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
5954 ac_cv_type_size_t=yes
5955else
5956 echo "$as_me: failed program was:" >&5
5957sed 's/^/| /' conftest.$ac_ext >&5
5958
5959ac_cv_type_size_t=no
5960fi
5961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5962fi
5963echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5964echo "${ECHO_T}$ac_cv_type_size_t" >&6
5965if test $ac_cv_type_size_t = yes; then
5966 :
5967else
5968
5969cat >>confdefs.h <<_ACEOF
5970#define size_t unsigned
5971_ACEOF
5972
5973fi
5974
5975
5976 echo "$as_me:$LINENO: checking for long long" >&5
5977echo $ECHO_N "checking for long long... $ECHO_C" >&6
5978if test "${ac_cv_type_long_long+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5980else
5981 cat >conftest.$ac_ext <<_ACEOF
5982/* confdefs.h. */
5983_ACEOF
5984cat confdefs.h >>conftest.$ac_ext
5985cat >>conftest.$ac_ext <<_ACEOF
5986/* end confdefs.h. */
5987long long ll = 1LL; int i = 63;
5988int
5989main ()
5990{
5991long long llmax = (long long) -1;
5992 return ll << i | ll >> i | llmax / ll | llmax % ll;
5993 ;
5994 return 0;
5995}
5996_ACEOF
5997rm -f conftest.$ac_objext conftest$ac_exeext
5998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999 (eval $ac_link) 2>conftest.er1
6000 ac_status=$?
6001 grep -v '^ *+' conftest.er1 >conftest.err
6002 rm -f conftest.er1
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try='test -z "$ac_cxx_werror_flag"
6007 || test ! -s conftest.err'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 (eval $ac_try) 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; } &&
6013 { ac_try='test -s conftest$ac_exeext'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 (eval $ac_try) 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 ac_cv_type_long_long=yes
6020else
6021 echo "$as_me: failed program was:" >&5
6022sed 's/^/| /' conftest.$ac_ext >&5
6023
6024ac_cv_type_long_long=no
6025fi
6026rm -f conftest.err conftest.$ac_objext \
6027 conftest$ac_exeext conftest.$ac_ext
6028fi
6029echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6030echo "${ECHO_T}$ac_cv_type_long_long" >&6
6031 if test $ac_cv_type_long_long = yes; then
6032
6033cat >>confdefs.h <<\_ACEOF
6034#define HAVE_LONG_LONG 1
6035_ACEOF
6036
6037 fi
6038
6039
6040 echo "$as_me:$LINENO: checking for long double" >&5
6041echo $ECHO_N "checking for long double... $ECHO_C" >&6
6042if test "${gt_cv_c_long_double+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6044else
6045 if test "$GCC" = yes; then
6046 gt_cv_c_long_double=yes
6047 else
6048 cat >conftest.$ac_ext <<_ACEOF
6049/* confdefs.h. */
6050_ACEOF
6051cat confdefs.h >>conftest.$ac_ext
6052cat >>conftest.$ac_ext <<_ACEOF
6053/* end confdefs.h. */
6054
6055 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6056 long double foo = 0.0;
6057 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6058 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6059
6060int
6061main ()
6062{
6063
6064 ;
6065 return 0;
6066}
6067_ACEOF
6068rm -f conftest.$ac_objext
6069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6070 (eval $ac_compile) 2>conftest.er1
6071 ac_status=$?
6072 grep -v '^ *+' conftest.er1 >conftest.err
6073 rm -f conftest.er1
6074 cat conftest.err >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } &&
6077 { ac_try='test -z "$ac_cxx_werror_flag"
6078 || test ! -s conftest.err'
6079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080 (eval $ac_try) 2>&5
6081 ac_status=$?
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; } &&
6084 { ac_try='test -s conftest.$ac_objext'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 (eval $ac_try) 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
6090 gt_cv_c_long_double=yes
6091else
6092 echo "$as_me: failed program was:" >&5
6093sed 's/^/| /' conftest.$ac_ext >&5
6094
6095gt_cv_c_long_double=no
6096fi
6097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6098 fi
6099fi
6100echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
6101echo "${ECHO_T}$gt_cv_c_long_double" >&6
6102 if test $gt_cv_c_long_double = yes; then
6103
6104cat >>confdefs.h <<\_ACEOF
6105#define HAVE_LONG_DOUBLE 1
6106_ACEOF
6107
6108 fi
6109
6110
6111 echo "$as_me:$LINENO: checking for wchar_t" >&5
6112echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
6113if test "${gt_cv_c_wchar_t+set}" = set; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6115else
6116 cat >conftest.$ac_ext <<_ACEOF
6117/* confdefs.h. */
6118_ACEOF
6119cat confdefs.h >>conftest.$ac_ext
6120cat >>conftest.$ac_ext <<_ACEOF
6121/* end confdefs.h. */
6122#include <stddef.h>
6123 wchar_t foo = (wchar_t)'\0';
6124int
6125main ()
6126{
6127
6128 ;
6129 return 0;
6130}
6131_ACEOF
6132rm -f conftest.$ac_objext
6133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6134 (eval $ac_compile) 2>conftest.er1
6135 ac_status=$?
6136 grep -v '^ *+' conftest.er1 >conftest.err
6137 rm -f conftest.er1
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try='test -z "$ac_cxx_werror_flag"
6142 || test ! -s conftest.err'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 (eval $ac_try) 2>&5
6145 ac_status=$?
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; } &&
6148 { ac_try='test -s conftest.$ac_objext'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 (eval $ac_try) 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; }; then
6154 gt_cv_c_wchar_t=yes
6155else
6156 echo "$as_me: failed program was:" >&5
6157sed 's/^/| /' conftest.$ac_ext >&5
6158
6159gt_cv_c_wchar_t=no
6160fi
6161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6162fi
6163echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
6164echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
6165 if test $gt_cv_c_wchar_t = yes; then
6166
6167cat >>confdefs.h <<\_ACEOF
6168#define HAVE_WCHAR_T 1
6169_ACEOF
6170
6171 fi
6172
6173
6174 echo "$as_me:$LINENO: checking for wint_t" >&5
6175echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
6176if test "${gt_cv_c_wint_t+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6178else
6179 cat >conftest.$ac_ext <<_ACEOF
6180/* confdefs.h. */
6181_ACEOF
6182cat confdefs.h >>conftest.$ac_ext
6183cat >>conftest.$ac_ext <<_ACEOF
6184/* end confdefs.h. */
6185#include <wchar.h>
6186 wint_t foo = (wchar_t)'\0';
6187int
6188main ()
6189{
6190
6191 ;
6192 return 0;
6193}
6194_ACEOF
6195rm -f conftest.$ac_objext
6196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6197 (eval $ac_compile) 2>conftest.er1
6198 ac_status=$?
6199 grep -v '^ *+' conftest.er1 >conftest.err
6200 rm -f conftest.er1
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } &&
6204 { ac_try='test -z "$ac_cxx_werror_flag"
6205 || test ! -s conftest.err'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 (eval $ac_try) 2>&5
6208 ac_status=$?
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; } &&
6211 { ac_try='test -s conftest.$ac_objext'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 (eval $ac_try) 2>&5
6214 ac_status=$?
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
6217 gt_cv_c_wint_t=yes
6218else
6219 echo "$as_me: failed program was:" >&5
6220sed 's/^/| /' conftest.$ac_ext >&5
6221
6222gt_cv_c_wint_t=no
6223fi
6224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6225fi
6226echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
6227echo "${ECHO_T}$gt_cv_c_wint_t" >&6
6228 if test $gt_cv_c_wint_t = yes; then
6229
6230cat >>confdefs.h <<\_ACEOF
6231#define HAVE_WINT_T 1
6232_ACEOF
6233
6234 fi
6235
6236
6237 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6238echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6239if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6241else
6242 cat >conftest.$ac_ext <<_ACEOF
6243/* confdefs.h. */
6244_ACEOF
6245cat confdefs.h >>conftest.$ac_ext
6246cat >>conftest.$ac_ext <<_ACEOF
6247/* end confdefs.h. */
6248#include <sys/types.h>
6249#include <inttypes.h>
6250int
6251main ()
6252{
6253uintmax_t i = (uintmax_t) -1;
6254 ;
6255 return 0;
6256}
6257_ACEOF
6258rm -f conftest.$ac_objext
6259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6260 (eval $ac_compile) 2>conftest.er1
6261 ac_status=$?
6262 grep -v '^ *+' conftest.er1 >conftest.err
6263 rm -f conftest.er1
6264 cat conftest.err >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } &&
6267 { ac_try='test -z "$ac_cxx_werror_flag"
6268 || test ! -s conftest.err'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270 (eval $ac_try) 2>&5
6271 ac_status=$?
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; } &&
6274 { ac_try='test -s conftest.$ac_objext'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 (eval $ac_try) 2>&5
6277 ac_status=$?
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; }; then
6280 jm_ac_cv_header_inttypes_h=yes
6281else
6282 echo "$as_me: failed program was:" >&5
6283sed 's/^/| /' conftest.$ac_ext >&5
6284
6285jm_ac_cv_header_inttypes_h=no
6286fi
6287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6288fi
6289echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6290echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
6291 if test $jm_ac_cv_header_inttypes_h = yes; then
6292
6293cat >>confdefs.h <<_ACEOF
6294#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6295_ACEOF
6296
6297 fi
6298
6299
6300 echo "$as_me:$LINENO: checking for stdint.h" >&5
6301echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
6302if test "${jm_ac_cv_header_stdint_h+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6304else
6305 cat >conftest.$ac_ext <<_ACEOF
6306/* confdefs.h. */
6307_ACEOF
6308cat confdefs.h >>conftest.$ac_ext
6309cat >>conftest.$ac_ext <<_ACEOF
6310/* end confdefs.h. */
6311#include <sys/types.h>
6312#include <stdint.h>
6313int
6314main ()
6315{
6316uintmax_t i = (uintmax_t) -1;
6317 ;
6318 return 0;
6319}
6320_ACEOF
6321rm -f conftest.$ac_objext
6322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6323 (eval $ac_compile) 2>conftest.er1
6324 ac_status=$?
6325 grep -v '^ *+' conftest.er1 >conftest.err
6326 rm -f conftest.er1
6327 cat conftest.err >&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } &&
6330 { ac_try='test -z "$ac_cxx_werror_flag"
6331 || test ! -s conftest.err'
6332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 (eval $ac_try) 2>&5
6334 ac_status=$?
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; } &&
6337 { ac_try='test -s conftest.$ac_objext'
6338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339 (eval $ac_try) 2>&5
6340 ac_status=$?
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; }; then
6343 jm_ac_cv_header_stdint_h=yes
6344else
6345 echo "$as_me: failed program was:" >&5
6346sed 's/^/| /' conftest.$ac_ext >&5
6347
6348jm_ac_cv_header_stdint_h=no
6349fi
6350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6351fi
6352echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6353echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
6354 if test $jm_ac_cv_header_stdint_h = yes; then
6355
6356cat >>confdefs.h <<_ACEOF
6357#define HAVE_STDINT_H_WITH_UINTMAX 1
6358_ACEOF
6359
6360 fi
6361
6362
6363
6364
6365 echo "$as_me:$LINENO: checking for intmax_t" >&5
6366echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
6367if test "${gt_cv_c_intmax_t+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
6377#include <stddef.h>
6378#include <stdlib.h>
6379#if HAVE_STDINT_H_WITH_UINTMAX
6380#include <stdint.h>
6381#endif
6382#if HAVE_INTTYPES_H_WITH_UINTMAX
6383#include <inttypes.h>
6384#endif
6385
6386int
6387main ()
6388{
6389intmax_t x = -1;
6390 ;
6391 return 0;
6392}
6393_ACEOF
6394rm -f conftest.$ac_objext
6395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6396 (eval $ac_compile) 2>conftest.er1
6397 ac_status=$?
6398 grep -v '^ *+' conftest.er1 >conftest.err
6399 rm -f conftest.er1
6400 cat conftest.err >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } &&
6403 { ac_try='test -z "$ac_cxx_werror_flag"
6404 || test ! -s conftest.err'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 (eval $ac_try) 2>&5
6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; } &&
6410 { ac_try='test -s conftest.$ac_objext'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 (eval $ac_try) 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6416 gt_cv_c_intmax_t=yes
6417else
6418 echo "$as_me: failed program was:" >&5
6419sed 's/^/| /' conftest.$ac_ext >&5
6420
6421gt_cv_c_intmax_t=no
6422fi
6423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6424fi
6425echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
6426echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
6427 if test $gt_cv_c_intmax_t = yes; then
6428
6429cat >>confdefs.h <<\_ACEOF
6430#define HAVE_INTMAX_T 1
6431_ACEOF
6432
6433 fi
6434
6435
6436
6437 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
6438echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
6439if test "${gt_cv_func_printf_posix+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6441else
6442
6443 if test "$cross_compiling" = yes; then
6444
6445 cat >conftest.$ac_ext <<_ACEOF
6446/* confdefs.h. */
6447_ACEOF
6448cat confdefs.h >>conftest.$ac_ext
6449cat >>conftest.$ac_ext <<_ACEOF
6450/* end confdefs.h. */
6451
6452#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6453 notposix
6454#endif
6455
6456_ACEOF
6457if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6458 $EGREP "notposix" >/dev/null 2>&1; then
6459 gt_cv_func_printf_posix="guessing no"
6460else
6461 gt_cv_func_printf_posix="guessing yes"
6462fi
6463rm -f conftest*
6464
6465
6466else
6467 cat >conftest.$ac_ext <<_ACEOF
6468/* confdefs.h. */
6469_ACEOF
6470cat confdefs.h >>conftest.$ac_ext
6471cat >>conftest.$ac_ext <<_ACEOF
6472/* end confdefs.h. */
6473
6474#include <stdio.h>
6475#include <string.h>
6476/* The string "%2$d %1$d", with dollar characters protected from the shell's
6477 dollar expansion (possibly an autoconf bug). */
6478static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6479static char buf[100];
6480int main ()
6481{
6482 sprintf (buf, format, 33, 55);
6483 return (strcmp (buf, "55 33") != 0);
6484}
6485_ACEOF
6486rm -f conftest$ac_exeext
6487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6488 (eval $ac_link) 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493 (eval $ac_try) 2>&5
6494 ac_status=$?
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; }; then
6497 gt_cv_func_printf_posix=yes
6498else
6499 echo "$as_me: program exited with status $ac_status" >&5
6500echo "$as_me: failed program was:" >&5
6501sed 's/^/| /' conftest.$ac_ext >&5
6502
6503( exit $ac_status )
6504gt_cv_func_printf_posix=no
6505fi
6506rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6507fi
6508
6509fi
6510echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6511echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
6512 case $gt_cv_func_printf_posix in
6513 *yes)
6514
6515cat >>confdefs.h <<\_ACEOF
6516#define HAVE_POSIX_PRINTF 1
6517_ACEOF
6518
6519 ;;
6520 esac
6521
6522# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6523# for constant arguments. Useless!
6524echo "$as_me:$LINENO: checking for working alloca.h" >&5
6525echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6526if test "${ac_cv_working_alloca_h+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6528else
6529 cat >conftest.$ac_ext <<_ACEOF
6530/* confdefs.h. */
6531_ACEOF
6532cat confdefs.h >>conftest.$ac_ext
6533cat >>conftest.$ac_ext <<_ACEOF
6534/* end confdefs.h. */
6535#include <alloca.h>
6536int
6537main ()
6538{
6539char *p = (char *) alloca (2 * sizeof (int));
6540 ;
6541 return 0;
6542}
6543_ACEOF
6544rm -f conftest.$ac_objext conftest$ac_exeext
6545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6546 (eval $ac_link) 2>conftest.er1
6547 ac_status=$?
6548 grep -v '^ *+' conftest.er1 >conftest.err
6549 rm -f conftest.er1
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } &&
6553 { ac_try='test -z "$ac_cxx_werror_flag"
6554 || test ! -s conftest.err'
6555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 (eval $ac_try) 2>&5
6557 ac_status=$?
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; } &&
6560 { ac_try='test -s conftest$ac_exeext'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 (eval $ac_try) 2>&5
6563 ac_status=$?
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; }; then
6566 ac_cv_working_alloca_h=yes
6567else
6568 echo "$as_me: failed program was:" >&5
6569sed 's/^/| /' conftest.$ac_ext >&5
6570
6571ac_cv_working_alloca_h=no
6572fi
6573rm -f conftest.err conftest.$ac_objext \
6574 conftest$ac_exeext conftest.$ac_ext
6575fi
6576echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6577echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6578if test $ac_cv_working_alloca_h = yes; then
6579
6580cat >>confdefs.h <<\_ACEOF
6581#define HAVE_ALLOCA_H 1
6582_ACEOF
6583
6584fi
6585
6586echo "$as_me:$LINENO: checking for alloca" >&5
6587echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6588if test "${ac_cv_func_alloca_works+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6590else
6591 cat >conftest.$ac_ext <<_ACEOF
6592/* confdefs.h. */
6593_ACEOF
6594cat confdefs.h >>conftest.$ac_ext
6595cat >>conftest.$ac_ext <<_ACEOF
6596/* end confdefs.h. */
6597#ifdef __GNUC__
6598# define alloca __builtin_alloca
6599#else
6600# ifdef _MSC_VER
6601# include <malloc.h>
6602# define alloca _alloca
6603# else
6604# if HAVE_ALLOCA_H
6605# include <alloca.h>
6606# else
6607# ifdef _AIX
6608 #pragma alloca
6609# else
6610# ifndef alloca /* predefined by HP cc +Olibcalls */
6611char *alloca ();
6612# endif
6613# endif
6614# endif
6615# endif
6616#endif
6617
6618int
6619main ()
6620{
6621char *p = (char *) alloca (1);
6622 ;
6623 return 0;
6624}
6625_ACEOF
6626rm -f conftest.$ac_objext conftest$ac_exeext
6627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6628 (eval $ac_link) 2>conftest.er1
6629 ac_status=$?
6630 grep -v '^ *+' conftest.er1 >conftest.err
6631 rm -f conftest.er1
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } &&
6635 { ac_try='test -z "$ac_cxx_werror_flag"
6636 || test ! -s conftest.err'
6637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 (eval $ac_try) 2>&5
6639 ac_status=$?
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; } &&
6642 { ac_try='test -s conftest$ac_exeext'
6643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 (eval $ac_try) 2>&5
6645 ac_status=$?
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
6648 ac_cv_func_alloca_works=yes
6649else
6650 echo "$as_me: failed program was:" >&5
6651sed 's/^/| /' conftest.$ac_ext >&5
6652
6653ac_cv_func_alloca_works=no
6654fi
6655rm -f conftest.err conftest.$ac_objext \
6656 conftest$ac_exeext conftest.$ac_ext
6657fi
6658echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6659echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6660
6661if test $ac_cv_func_alloca_works = yes; then
6662
6663cat >>confdefs.h <<\_ACEOF
6664#define HAVE_ALLOCA 1
6665_ACEOF
6666
6667else
6668 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6669# that cause trouble. Some versions do not even contain alloca or
6670# contain a buggy version. If you still want to use their alloca,
6671# use ar to extract alloca.o from them instead of compiling alloca.c.
6672
6673ALLOCA=alloca.$ac_objext
6674
6675cat >>confdefs.h <<\_ACEOF
6676#define C_ALLOCA 1
6677_ACEOF
6678
6679
6680echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6681echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6682if test "${ac_cv_os_cray+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6684else
6685 cat >conftest.$ac_ext <<_ACEOF
6686/* confdefs.h. */
6687_ACEOF
6688cat confdefs.h >>conftest.$ac_ext
6689cat >>conftest.$ac_ext <<_ACEOF
6690/* end confdefs.h. */
6691#if defined(CRAY) && ! defined(CRAY2)
6692webecray
6693#else
6694wenotbecray
6695#endif
6696
6697_ACEOF
6698if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6699 $EGREP "webecray" >/dev/null 2>&1; then
6700 ac_cv_os_cray=yes
6701else
6702 ac_cv_os_cray=no
6703fi
6704rm -f conftest*
6705
6706fi
6707echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6708echo "${ECHO_T}$ac_cv_os_cray" >&6
6709if test $ac_cv_os_cray = yes; then
6710 for ac_func in _getb67 GETB67 getb67; do
6711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6712echo "$as_me:$LINENO: checking for $ac_func" >&5
6713echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6714if eval "test \"\${$as_ac_var+set}\" = set"; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6716else
6717 cat >conftest.$ac_ext <<_ACEOF
6718/* confdefs.h. */
6719_ACEOF
6720cat confdefs.h >>conftest.$ac_ext
6721cat >>conftest.$ac_ext <<_ACEOF
6722/* end confdefs.h. */
6723/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6725#define $ac_func innocuous_$ac_func
6726
6727/* System header to define __stub macros and hopefully few prototypes,
6728 which can conflict with char $ac_func (); below.
6729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6730 <limits.h> exists even on freestanding compilers. */
6731
6732#ifdef __STDC__
6733# include <limits.h>
6734#else
6735# include <assert.h>
6736#endif
6737
6738#undef $ac_func
6739
6740/* Override any gcc2 internal prototype to avoid an error. */
6741#ifdef __cplusplus
6742extern "C"
6743{
6744#endif
6745/* We use char because int might match the return type of a gcc2
6746 builtin and then its argument prototype would still apply. */
6747char $ac_func ();
6748/* The GNU C library defines this for functions which it implements
6749 to always fail with ENOSYS. Some functions are actually named
6750 something starting with __ and the normal name is an alias. */
6751#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6752choke me
6753#else
6754char (*f) () = $ac_func;
6755#endif
6756#ifdef __cplusplus
6757}
6758#endif
6759
6760int
6761main ()
6762{
6763return f != $ac_func;
6764 ;
6765 return 0;
6766}
6767_ACEOF
6768rm -f conftest.$ac_objext conftest$ac_exeext
6769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6770 (eval $ac_link) 2>conftest.er1
6771 ac_status=$?
6772 grep -v '^ *+' conftest.er1 >conftest.err
6773 rm -f conftest.er1
6774 cat conftest.err >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } &&
6777 { ac_try='test -z "$ac_cxx_werror_flag"
6778 || test ! -s conftest.err'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780 (eval $ac_try) 2>&5
6781 ac_status=$?
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; } &&
6784 { ac_try='test -s conftest$ac_exeext'
6785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6786 (eval $ac_try) 2>&5
6787 ac_status=$?
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); }; }; then
6790 eval "$as_ac_var=yes"
6791else
6792 echo "$as_me: failed program was:" >&5
6793sed 's/^/| /' conftest.$ac_ext >&5
6794
6795eval "$as_ac_var=no"
6796fi
6797rm -f conftest.err conftest.$ac_objext \
6798 conftest$ac_exeext conftest.$ac_ext
6799fi
6800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6801echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6802if test `eval echo '${'$as_ac_var'}'` = yes; then
6803
6804cat >>confdefs.h <<_ACEOF
6805#define CRAY_STACKSEG_END $ac_func
6806_ACEOF
6807
6808 break
6809fi
6810
6811 done
6812fi
6813
6814echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6815echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6816if test "${ac_cv_c_stack_direction+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818else
6819 if test "$cross_compiling" = yes; then
6820 ac_cv_c_stack_direction=0
6821else
6822 cat >conftest.$ac_ext <<_ACEOF
6823/* confdefs.h. */
6824_ACEOF
6825cat confdefs.h >>conftest.$ac_ext
6826cat >>conftest.$ac_ext <<_ACEOF
6827/* end confdefs.h. */
6828int
6829find_stack_direction ()
6830{
6831 static char *addr = 0;
6832 auto char dummy;
6833 if (addr == 0)
6834 {
6835 addr = &dummy;
6836 return find_stack_direction ();
6837 }
6838 else
6839 return (&dummy > addr) ? 1 : -1;
6840}
6841
6842int
6843main ()
6844{
6845 exit (find_stack_direction () < 0);
6846}
6847_ACEOF
6848rm -f conftest$ac_exeext
6849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6850 (eval $ac_link) 2>&5
6851 ac_status=$?
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 (eval $ac_try) 2>&5
6856 ac_status=$?
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; }; then
6859 ac_cv_c_stack_direction=1
6860else
6861 echo "$as_me: program exited with status $ac_status" >&5
6862echo "$as_me: failed program was:" >&5
6863sed 's/^/| /' conftest.$ac_ext >&5
6864
6865( exit $ac_status )
6866ac_cv_c_stack_direction=-1
6867fi
6868rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6869fi
6870fi
6871echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6872echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6873
6874cat >>confdefs.h <<_ACEOF
6875#define STACK_DIRECTION $ac_cv_c_stack_direction
6876_ACEOF
6877
6878
6879fi
6880
6881
6882
6883for ac_header in stdlib.h unistd.h
6884do
6885as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6886if eval "test \"\${$as_ac_Header+set}\" = set"; then
6887 echo "$as_me:$LINENO: checking for $ac_header" >&5
6888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6889if eval "test \"\${$as_ac_Header+set}\" = set"; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6891fi
6892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6893echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6894else
6895 # Is the header compilable?
6896echo "$as_me:$LINENO: checking $ac_header usability" >&5
6897echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6898cat >conftest.$ac_ext <<_ACEOF
6899/* confdefs.h. */
6900_ACEOF
6901cat confdefs.h >>conftest.$ac_ext
6902cat >>conftest.$ac_ext <<_ACEOF
6903/* end confdefs.h. */
6904$ac_includes_default
6905#include <$ac_header>
6906_ACEOF
6907rm -f conftest.$ac_objext
6908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6909 (eval $ac_compile) 2>conftest.er1
6910 ac_status=$?
6911 grep -v '^ *+' conftest.er1 >conftest.err
6912 rm -f conftest.er1
6913 cat conftest.err >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } &&
6916 { ac_try='test -z "$ac_cxx_werror_flag"
6917 || test ! -s conftest.err'
6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919 (eval $ac_try) 2>&5
6920 ac_status=$?
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; } &&
6923 { ac_try='test -s conftest.$ac_objext'
6924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925 (eval $ac_try) 2>&5
6926 ac_status=$?
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
6929 ac_header_compiler=yes
6930else
6931 echo "$as_me: failed program was:" >&5
6932sed 's/^/| /' conftest.$ac_ext >&5
6933
6934ac_header_compiler=no
6935fi
6936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6937echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6938echo "${ECHO_T}$ac_header_compiler" >&6
6939
6940# Is the header present?
6941echo "$as_me:$LINENO: checking $ac_header presence" >&5
6942echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6943cat >conftest.$ac_ext <<_ACEOF
6944/* confdefs.h. */
6945_ACEOF
6946cat confdefs.h >>conftest.$ac_ext
6947cat >>conftest.$ac_ext <<_ACEOF
6948/* end confdefs.h. */
6949#include <$ac_header>
6950_ACEOF
6951if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6953 ac_status=$?
6954 grep -v '^ *+' conftest.er1 >conftest.err
6955 rm -f conftest.er1
6956 cat conftest.err >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); } >/dev/null; then
6959 if test -s conftest.err; then
6960 ac_cpp_err=$ac_cxx_preproc_warn_flag
6961 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6962 else
6963 ac_cpp_err=
6964 fi
6965else
6966 ac_cpp_err=yes
6967fi
6968if test -z "$ac_cpp_err"; then
6969 ac_header_preproc=yes
6970else
6971 echo "$as_me: failed program was:" >&5
6972sed 's/^/| /' conftest.$ac_ext >&5
6973
6974 ac_header_preproc=no
6975fi
6976rm -f conftest.err conftest.$ac_ext
6977echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6978echo "${ECHO_T}$ac_header_preproc" >&6
6979
6980# So? What about this header?
6981case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6982 yes:no: )
6983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6986echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6987 ac_header_preproc=yes
6988 ;;
6989 no:yes:* )
6990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6991echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6993echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6995echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6997echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6999echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7001echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7002 (
7003 cat <<\_ASBOX
7004## ------------------------------------------ ##
7005## Report this to the AC_PACKAGE_NAME lists. ##
7006## ------------------------------------------ ##
7007_ASBOX
7008 ) |
7009 sed "s/^/$as_me: WARNING: /" >&2
7010 ;;
7011esac
7012echo "$as_me:$LINENO: checking for $ac_header" >&5
7013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7014if eval "test \"\${$as_ac_Header+set}\" = set"; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7016else
7017 eval "$as_ac_Header=\$ac_header_preproc"
7018fi
7019echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7020echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7021
7022fi
7023if test `eval echo '${'$as_ac_Header'}'` = yes; then
7024 cat >>confdefs.h <<_ACEOF
7025#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7026_ACEOF
7027
7028fi
7029
7030done
7031
7032
7033for ac_func in getpagesize
7034do
7035as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7036echo "$as_me:$LINENO: checking for $ac_func" >&5
7037echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7038if eval "test \"\${$as_ac_var+set}\" = set"; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7040else
7041 cat >conftest.$ac_ext <<_ACEOF
7042/* confdefs.h. */
7043_ACEOF
7044cat confdefs.h >>conftest.$ac_ext
7045cat >>conftest.$ac_ext <<_ACEOF
7046/* end confdefs.h. */
7047/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7049#define $ac_func innocuous_$ac_func
7050
7051/* System header to define __stub macros and hopefully few prototypes,
7052 which can conflict with char $ac_func (); below.
7053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7054 <limits.h> exists even on freestanding compilers. */
7055
7056#ifdef __STDC__
7057# include <limits.h>
7058#else
7059# include <assert.h>
7060#endif
7061
7062#undef $ac_func
7063
7064/* Override any gcc2 internal prototype to avoid an error. */
7065#ifdef __cplusplus
7066extern "C"
7067{
7068#endif
7069/* We use char because int might match the return type of a gcc2
7070 builtin and then its argument prototype would still apply. */
7071char $ac_func ();
7072/* The GNU C library defines this for functions which it implements
7073 to always fail with ENOSYS. Some functions are actually named
7074 something starting with __ and the normal name is an alias. */
7075#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7076choke me
7077#else
7078char (*f) () = $ac_func;
7079#endif
7080#ifdef __cplusplus
7081}
7082#endif
7083
7084int
7085main ()
7086{
7087return f != $ac_func;
7088 ;
7089 return 0;
7090}
7091_ACEOF
7092rm -f conftest.$ac_objext conftest$ac_exeext
7093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7094 (eval $ac_link) 2>conftest.er1
7095 ac_status=$?
7096 grep -v '^ *+' conftest.er1 >conftest.err
7097 rm -f conftest.er1
7098 cat conftest.err >&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); } &&
7101 { ac_try='test -z "$ac_cxx_werror_flag"
7102 || test ! -s conftest.err'
7103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104 (eval $ac_try) 2>&5
7105 ac_status=$?
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); }; } &&
7108 { ac_try='test -s conftest$ac_exeext'
7109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 (eval $ac_try) 2>&5
7111 ac_status=$?
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; }; then
7114 eval "$as_ac_var=yes"
7115else
7116 echo "$as_me: failed program was:" >&5
7117sed 's/^/| /' conftest.$ac_ext >&5
7118
7119eval "$as_ac_var=no"
7120fi
7121rm -f conftest.err conftest.$ac_objext \
7122 conftest$ac_exeext conftest.$ac_ext
7123fi
7124echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7125echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7126if test `eval echo '${'$as_ac_var'}'` = yes; then
7127 cat >>confdefs.h <<_ACEOF
7128#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7129_ACEOF
7130
7131fi
7132done
7133
7134echo "$as_me:$LINENO: checking for working mmap" >&5
7135echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7136if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7138else
7139 if test "$cross_compiling" = yes; then
7140 ac_cv_func_mmap_fixed_mapped=no
7141else
7142 cat >conftest.$ac_ext <<_ACEOF
7143/* confdefs.h. */
7144_ACEOF
7145cat confdefs.h >>conftest.$ac_ext
7146cat >>conftest.$ac_ext <<_ACEOF
7147/* end confdefs.h. */
7148$ac_includes_default
7149/* malloc might have been renamed as rpl_malloc. */
7150#undef malloc
7151
7152/* Thanks to Mike Haertel and Jim Avera for this test.
7153 Here is a matrix of mmap possibilities:
7154 mmap private not fixed
7155 mmap private fixed at somewhere currently unmapped
7156 mmap private fixed at somewhere already mapped
7157 mmap shared not fixed
7158 mmap shared fixed at somewhere currently unmapped
7159 mmap shared fixed at somewhere already mapped
7160 For private mappings, we should verify that changes cannot be read()
7161 back from the file, nor mmap's back from the file at a different
7162 address. (There have been systems where private was not correctly
7163 implemented like the infamous i386 svr4.0, and systems where the
7164 VM page cache was not coherent with the file system buffer cache
7165 like early versions of FreeBSD and possibly contemporary NetBSD.)
7166 For shared mappings, we should conversely verify that changes get
7167 propagated back to all the places they're supposed to be.
7168
7169 Grep wants private fixed already mapped.
7170 The main things grep needs to know about mmap are:
7171 * does it exist and is it safe to write into the mmap'd area
7172 * how to use it (BSD variants) */
7173
7174#include <fcntl.h>
7175#include <sys/mman.h>
7176
7177#if !STDC_HEADERS && !HAVE_STDLIB_H
7178char *malloc ();
7179#endif
7180
7181/* This mess was copied from the GNU getpagesize.h. */
7182#if !HAVE_GETPAGESIZE
7183/* Assume that all systems that can run configure have sys/param.h. */
7184# if !HAVE_SYS_PARAM_H
7185# define HAVE_SYS_PARAM_H 1
7186# endif
7187
7188# ifdef _SC_PAGESIZE
7189# define getpagesize() sysconf(_SC_PAGESIZE)
7190# else /* no _SC_PAGESIZE */
7191# if HAVE_SYS_PARAM_H
7192# include <sys/param.h>
7193# ifdef EXEC_PAGESIZE
7194# define getpagesize() EXEC_PAGESIZE
7195# else /* no EXEC_PAGESIZE */
7196# ifdef NBPG
7197# define getpagesize() NBPG * CLSIZE
7198# ifndef CLSIZE
7199# define CLSIZE 1
7200# endif /* no CLSIZE */
7201# else /* no NBPG */
7202# ifdef NBPC
7203# define getpagesize() NBPC
7204# else /* no NBPC */
7205# ifdef PAGESIZE
7206# define getpagesize() PAGESIZE
7207# endif /* PAGESIZE */
7208# endif /* no NBPC */
7209# endif /* no NBPG */
7210# endif /* no EXEC_PAGESIZE */
7211# else /* no HAVE_SYS_PARAM_H */
7212# define getpagesize() 8192 /* punt totally */
7213# endif /* no HAVE_SYS_PARAM_H */
7214# endif /* no _SC_PAGESIZE */
7215
7216#endif /* no HAVE_GETPAGESIZE */
7217
7218int
7219main ()
7220{
7221 char *data, *data2, *data3;
7222 int i, pagesize;
7223 int fd;
7224
7225 pagesize = getpagesize ();
7226
7227 /* First, make a file with some known garbage in it. */
7228 data = (char *) malloc (pagesize);
7229 if (!data)
7230 exit (1);
7231 for (i = 0; i < pagesize; ++i)
7232 *(data + i) = rand ();
7233 umask (0);
7234 fd = creat ("conftest.mmap", 0600);
7235 if (fd < 0)
7236 exit (1);
7237 if (write (fd, data, pagesize) != pagesize)
7238 exit (1);
7239 close (fd);
7240
7241 /* Next, try to mmap the file at a fixed address which already has
7242 something else allocated at it. If we can, also make sure that
7243 we see the same garbage. */
7244 fd = open ("conftest.mmap", O_RDWR);
7245 if (fd < 0)
7246 exit (1);
7247 data2 = (char *) malloc (2 * pagesize);
7248 if (!data2)
7249 exit (1);
7250 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
7251 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7252 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7253 exit (1);
7254 for (i = 0; i < pagesize; ++i)
7255 if (*(data + i) != *(data2 + i))
7256 exit (1);
7257
7258 /* Finally, make sure that changes to the mapped area do not
7259 percolate back to the file as seen by read(). (This is a bug on
7260 some variants of i386 svr4.0.) */
7261 for (i = 0; i < pagesize; ++i)
7262 *(data2 + i) = *(data2 + i) + 1;
7263 data3 = (char *) malloc (pagesize);
7264 if (!data3)
7265 exit (1);
7266 if (read (fd, data3, pagesize) != pagesize)
7267 exit (1);
7268 for (i = 0; i < pagesize; ++i)
7269 if (*(data + i) != *(data3 + i))
7270 exit (1);
7271 close (fd);
7272 exit (0);
7273}
7274_ACEOF
7275rm -f conftest$ac_exeext
7276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7277 (eval $ac_link) 2>&5
7278 ac_status=$?
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282 (eval $ac_try) 2>&5
7283 ac_status=$?
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); }; }; then
7286 ac_cv_func_mmap_fixed_mapped=yes
7287else
7288 echo "$as_me: program exited with status $ac_status" >&5
7289echo "$as_me: failed program was:" >&5
7290sed 's/^/| /' conftest.$ac_ext >&5
7291
7292( exit $ac_status )
7293ac_cv_func_mmap_fixed_mapped=no
7294fi
7295rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7296fi
7297fi
7298echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7299echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7300if test $ac_cv_func_mmap_fixed_mapped = yes; then
7301
7302cat >>confdefs.h <<\_ACEOF
7303#define HAVE_MMAP 1
7304_ACEOF
7305
7306fi
7307rm -f conftest.mmap
7308
7309
7310 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7311echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7312if test "${ac_cv_gnu_library_2_1+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7314else
7315 cat >conftest.$ac_ext <<_ACEOF
7316/* confdefs.h. */
7317_ACEOF
7318cat confdefs.h >>conftest.$ac_ext
7319cat >>conftest.$ac_ext <<_ACEOF
7320/* end confdefs.h. */
7321
7322#include <features.h>
7323#ifdef __GNU_LIBRARY__
7324 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7325 Lucky GNU user
7326 #endif
7327#endif
7328
7329_ACEOF
7330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7331 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7332 ac_cv_gnu_library_2_1=yes
7333else
7334 ac_cv_gnu_library_2_1=no
7335fi
7336rm -f conftest*
7337
7338
7339
7340fi
7341echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7342echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7343
7344 GLIBC21="$ac_cv_gnu_library_2_1"
7345
7346
7347
7348
7349 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
7350echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
7351if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7353else
7354
7355 if test "$cross_compiling" = yes; then
7356
7357 # Guess based on the CPU.
7358 case "$host_cpu" in
7359 alpha* | i3456786 | m68k | s390*)
7360 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7361 *)
7362 gt_cv_int_divbyzero_sigfpe="guessing no";;
7363 esac
7364
7365else
7366 cat >conftest.$ac_ext <<_ACEOF
7367/* confdefs.h. */
7368_ACEOF
7369cat confdefs.h >>conftest.$ac_ext
7370cat >>conftest.$ac_ext <<_ACEOF
7371/* end confdefs.h. */
7372
7373#include <stdlib.h>
7374#include <signal.h>
7375
7376static void
7377#ifdef __cplusplus
7378sigfpe_handler (int sig)
7379#else
7380sigfpe_handler (sig) int sig;
7381#endif
7382{
7383 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7384 exit (sig != SIGFPE);
7385}
7386
7387int x = 1;
7388int y = 0;
7389int z;
7390int nan;
7391
7392int main ()
7393{
7394 signal (SIGFPE, sigfpe_handler);
7395/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7396#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7397 signal (SIGTRAP, sigfpe_handler);
7398#endif
7399/* Linux/SPARC yields signal SIGILL. */
7400#if defined (__sparc__) && defined (__linux__)
7401 signal (SIGILL, sigfpe_handler);
7402#endif
7403
7404 z = x / y;
7405 nan = y / y;
7406 exit (1);
7407}
7408
7409_ACEOF
7410rm -f conftest$ac_exeext
7411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7412 (eval $ac_link) 2>&5
7413 ac_status=$?
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7417 (eval $ac_try) 2>&5
7418 ac_status=$?
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); }; }; then
7421 gt_cv_int_divbyzero_sigfpe=yes
7422else
7423 echo "$as_me: program exited with status $ac_status" >&5
7424echo "$as_me: failed program was:" >&5
7425sed 's/^/| /' conftest.$ac_ext >&5
7426
7427( exit $ac_status )
7428gt_cv_int_divbyzero_sigfpe=no
7429fi
7430rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7431fi
7432
7433fi
7434echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7435echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
7436 case "$gt_cv_int_divbyzero_sigfpe" in
7437 *yes) value=1;;
7438 *) value=0;;
7439 esac
7440
7441cat >>confdefs.h <<_ACEOF
7442#define INTDIV0_RAISES_SIGFPE $value
7443_ACEOF
7444
7445
7446
7447 echo "$as_me:$LINENO: checking for unsigned long long" >&5
7448echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7449if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7451else
7452 cat >conftest.$ac_ext <<_ACEOF
7453/* confdefs.h. */
7454_ACEOF
7455cat confdefs.h >>conftest.$ac_ext
7456cat >>conftest.$ac_ext <<_ACEOF
7457/* end confdefs.h. */
7458unsigned long long ull = 1ULL; int i = 63;
7459int
7460main ()
7461{
7462unsigned long long ullmax = (unsigned long long) -1;
7463 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7464 ;
7465 return 0;
7466}
7467_ACEOF
7468rm -f conftest.$ac_objext conftest$ac_exeext
7469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7470 (eval $ac_link) 2>conftest.er1
7471 ac_status=$?
7472 grep -v '^ *+' conftest.er1 >conftest.err
7473 rm -f conftest.er1
7474 cat conftest.err >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } &&
7477 { ac_try='test -z "$ac_cxx_werror_flag"
7478 || test ! -s conftest.err'
7479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 (eval $ac_try) 2>&5
7481 ac_status=$?
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); }; } &&
7484 { ac_try='test -s conftest$ac_exeext'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 (eval $ac_try) 2>&5
7487 ac_status=$?
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7490 ac_cv_type_unsigned_long_long=yes
7491else
7492 echo "$as_me: failed program was:" >&5
7493sed 's/^/| /' conftest.$ac_ext >&5
7494
7495ac_cv_type_unsigned_long_long=no
7496fi
7497rm -f conftest.err conftest.$ac_objext \
7498 conftest$ac_exeext conftest.$ac_ext
7499fi
7500echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7501echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
7502 if test $ac_cv_type_unsigned_long_long = yes; then
7503
7504cat >>confdefs.h <<\_ACEOF
7505#define HAVE_UNSIGNED_LONG_LONG 1
7506_ACEOF
7507
7508 fi
7509
7510
7511
7512
7513 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7514
7515 test $ac_cv_type_unsigned_long_long = yes \
7516 && ac_type='unsigned long long' \
7517 || ac_type='unsigned long'
7518
7519cat >>confdefs.h <<_ACEOF
7520#define uintmax_t $ac_type
7521_ACEOF
7522
7523 else
7524
7525cat >>confdefs.h <<\_ACEOF
7526#define HAVE_UINTMAX_T 1
7527_ACEOF
7528
7529 fi
7530
7531
7532 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7533echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7534if test "${gt_cv_header_inttypes_h+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7536else
7537
7538 cat >conftest.$ac_ext <<_ACEOF
7539/* confdefs.h. */
7540_ACEOF
7541cat confdefs.h >>conftest.$ac_ext
7542cat >>conftest.$ac_ext <<_ACEOF
7543/* end confdefs.h. */
7544#include <sys/types.h>
7545#include <inttypes.h>
7546int
7547main ()
7548{
7549
7550 ;
7551 return 0;
7552}
7553_ACEOF
7554rm -f conftest.$ac_objext
7555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7556 (eval $ac_compile) 2>conftest.er1
7557 ac_status=$?
7558 grep -v '^ *+' conftest.er1 >conftest.err
7559 rm -f conftest.er1
7560 cat conftest.err >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } &&
7563 { ac_try='test -z "$ac_cxx_werror_flag"
7564 || test ! -s conftest.err'
7565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7566 (eval $ac_try) 2>&5
7567 ac_status=$?
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); }; } &&
7570 { ac_try='test -s conftest.$ac_objext'
7571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7572 (eval $ac_try) 2>&5
7573 ac_status=$?
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }; }; then
7576 gt_cv_header_inttypes_h=yes
7577else
7578 echo "$as_me: failed program was:" >&5
7579sed 's/^/| /' conftest.$ac_ext >&5
7580
7581gt_cv_header_inttypes_h=no
7582fi
7583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7584
7585fi
7586echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7587echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
7588 if test $gt_cv_header_inttypes_h = yes; then
7589
7590cat >>confdefs.h <<_ACEOF
7591#define HAVE_INTTYPES_H 1
7592_ACEOF
7593
7594 fi
7595
7596
7597
7598 if test $gt_cv_header_inttypes_h = yes; then
7599 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7600echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
7601if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7603else
7604
7605 cat >conftest.$ac_ext <<_ACEOF
7606/* confdefs.h. */
7607_ACEOF
7608cat confdefs.h >>conftest.$ac_ext
7609cat >>conftest.$ac_ext <<_ACEOF
7610/* end confdefs.h. */
7611#include <inttypes.h>
7612#ifdef PRId32
7613char *p = PRId32;
7614#endif
7615
7616int
7617main ()
7618{
7619
7620 ;
7621 return 0;
7622}
7623_ACEOF
7624rm -f conftest.$ac_objext
7625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7626 (eval $ac_compile) 2>conftest.er1
7627 ac_status=$?
7628 grep -v '^ *+' conftest.er1 >conftest.err
7629 rm -f conftest.er1
7630 cat conftest.err >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } &&
7633 { ac_try='test -z "$ac_cxx_werror_flag"
7634 || test ! -s conftest.err'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 (eval $ac_try) 2>&5
7637 ac_status=$?
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; } &&
7640 { ac_try='test -s conftest.$ac_objext'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642 (eval $ac_try) 2>&5
7643 ac_status=$?
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; }; then
7646 gt_cv_inttypes_pri_broken=no
7647else
7648 echo "$as_me: failed program was:" >&5
7649sed 's/^/| /' conftest.$ac_ext >&5
7650
7651gt_cv_inttypes_pri_broken=yes
7652fi
7653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7654
7655fi
7656echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7657echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
7658 fi
7659 if test "$gt_cv_inttypes_pri_broken" = yes; then
7660
7661cat >>confdefs.h <<_ACEOF
7662#define PRI_MACROS_BROKEN 1
7663_ACEOF
7664
7665 fi
7666
7667
7668
7669for ac_header in stdint.h
7670do
7671as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7672if eval "test \"\${$as_ac_Header+set}\" = set"; then
7673 echo "$as_me:$LINENO: checking for $ac_header" >&5
7674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7675if eval "test \"\${$as_ac_Header+set}\" = set"; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7677fi
7678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7679echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7680else
7681 # Is the header compilable?
7682echo "$as_me:$LINENO: checking $ac_header usability" >&5
7683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7684cat >conftest.$ac_ext <<_ACEOF
7685/* confdefs.h. */
7686_ACEOF
7687cat confdefs.h >>conftest.$ac_ext
7688cat >>conftest.$ac_ext <<_ACEOF
7689/* end confdefs.h. */
7690$ac_includes_default
7691#include <$ac_header>
7692_ACEOF
7693rm -f conftest.$ac_objext
7694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7695 (eval $ac_compile) 2>conftest.er1
7696 ac_status=$?
7697 grep -v '^ *+' conftest.er1 >conftest.err
7698 rm -f conftest.er1
7699 cat conftest.err >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } &&
7702 { ac_try='test -z "$ac_cxx_werror_flag"
7703 || test ! -s conftest.err'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 (eval $ac_try) 2>&5
7706 ac_status=$?
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; } &&
7709 { ac_try='test -s conftest.$ac_objext'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 (eval $ac_try) 2>&5
7712 ac_status=$?
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; }; then
7715 ac_header_compiler=yes
7716else
7717 echo "$as_me: failed program was:" >&5
7718sed 's/^/| /' conftest.$ac_ext >&5
7719
7720ac_header_compiler=no
7721fi
7722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7723echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7724echo "${ECHO_T}$ac_header_compiler" >&6
7725
7726# Is the header present?
7727echo "$as_me:$LINENO: checking $ac_header presence" >&5
7728echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7729cat >conftest.$ac_ext <<_ACEOF
7730/* confdefs.h. */
7731_ACEOF
7732cat confdefs.h >>conftest.$ac_ext
7733cat >>conftest.$ac_ext <<_ACEOF
7734/* end confdefs.h. */
7735#include <$ac_header>
7736_ACEOF
7737if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7739 ac_status=$?
7740 grep -v '^ *+' conftest.er1 >conftest.err
7741 rm -f conftest.er1
7742 cat conftest.err >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } >/dev/null; then
7745 if test -s conftest.err; then
7746 ac_cpp_err=$ac_cxx_preproc_warn_flag
7747 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7748 else
7749 ac_cpp_err=
7750 fi
7751else
7752 ac_cpp_err=yes
7753fi
7754if test -z "$ac_cpp_err"; then
7755 ac_header_preproc=yes
7756else
7757 echo "$as_me: failed program was:" >&5
7758sed 's/^/| /' conftest.$ac_ext >&5
7759
7760 ac_header_preproc=no
7761fi
7762rm -f conftest.err conftest.$ac_ext
7763echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7764echo "${ECHO_T}$ac_header_preproc" >&6
7765
7766# So? What about this header?
7767case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7768 yes:no: )
7769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7770echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7772echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7773 ac_header_preproc=yes
7774 ;;
7775 no:yes:* )
7776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7777echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7779echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7781echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7783echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7785echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7787echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7788 (
7789 cat <<\_ASBOX
7790## ------------------------------------------ ##
7791## Report this to the AC_PACKAGE_NAME lists. ##
7792## ------------------------------------------ ##
7793_ASBOX
7794 ) |
7795 sed "s/^/$as_me: WARNING: /" >&2
7796 ;;
7797esac
7798echo "$as_me:$LINENO: checking for $ac_header" >&5
7799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7800if eval "test \"\${$as_ac_Header+set}\" = set"; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7802else
7803 eval "$as_ac_Header=\$ac_header_preproc"
7804fi
7805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7806echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7807
7808fi
7809if test `eval echo '${'$as_ac_Header'}'` = yes; then
7810 cat >>confdefs.h <<_ACEOF
7811#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7812_ACEOF
7813
7814fi
7815
7816done
7817
7818 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7819echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
7820 result=
7821 cat >conftest.$ac_ext <<_ACEOF
7822/* confdefs.h. */
7823_ACEOF
7824cat confdefs.h >>conftest.$ac_ext
7825cat >>conftest.$ac_ext <<_ACEOF
7826/* end confdefs.h. */
7827
7828#include <limits.h>
7829#if HAVE_STDINT_H
7830#include <stdint.h>
7831#endif
7832#ifdef SIZE_MAX
7833Found it
7834#endif
7835
7836_ACEOF
7837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7838 $EGREP "Found it" >/dev/null 2>&1; then
7839 result=yes
7840fi
7841rm -f conftest*
7842
7843 if test -z "$result"; then
7844 if test "$cross_compiling" = yes; then
7845 # Depending upon the size, compute the lo and hi bounds.
7846cat >conftest.$ac_ext <<_ACEOF
7847/* confdefs.h. */
7848_ACEOF
7849cat confdefs.h >>conftest.$ac_ext
7850cat >>conftest.$ac_ext <<_ACEOF
7851/* end confdefs.h. */
7852#include <stddef.h>
7853int
7854main ()
7855{
7856static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7857test_array [0] = 0
7858
7859 ;
7860 return 0;
7861}
7862_ACEOF
7863rm -f conftest.$ac_objext
7864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7865 (eval $ac_compile) 2>conftest.er1
7866 ac_status=$?
7867 grep -v '^ *+' conftest.er1 >conftest.err
7868 rm -f conftest.er1
7869 cat conftest.err >&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } &&
7872 { ac_try='test -z "$ac_cxx_werror_flag"
7873 || test ! -s conftest.err'
7874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875 (eval $ac_try) 2>&5
7876 ac_status=$?
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); }; } &&
7879 { ac_try='test -s conftest.$ac_objext'
7880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881 (eval $ac_try) 2>&5
7882 ac_status=$?
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 ac_lo=0 ac_mid=0
7886 while :; do
7887 cat >conftest.$ac_ext <<_ACEOF
7888/* confdefs.h. */
7889_ACEOF
7890cat confdefs.h >>conftest.$ac_ext
7891cat >>conftest.$ac_ext <<_ACEOF
7892/* end confdefs.h. */
7893#include <stddef.h>
7894int
7895main ()
7896{
7897static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7898test_array [0] = 0
7899
7900 ;
7901 return 0;
7902}
7903_ACEOF
7904rm -f conftest.$ac_objext
7905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7906 (eval $ac_compile) 2>conftest.er1
7907 ac_status=$?
7908 grep -v '^ *+' conftest.er1 >conftest.err
7909 rm -f conftest.er1
7910 cat conftest.err >&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } &&
7913 { ac_try='test -z "$ac_cxx_werror_flag"
7914 || test ! -s conftest.err'
7915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 (eval $ac_try) 2>&5
7917 ac_status=$?
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); }; } &&
7920 { ac_try='test -s conftest.$ac_objext'
7921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7922 (eval $ac_try) 2>&5
7923 ac_status=$?
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); }; }; then
7926 ac_hi=$ac_mid; break
7927else
7928 echo "$as_me: failed program was:" >&5
7929sed 's/^/| /' conftest.$ac_ext >&5
7930
7931ac_lo=`expr $ac_mid + 1`
7932 if test $ac_lo -le $ac_mid; then
7933 ac_lo= ac_hi=
7934 break
7935 fi
7936 ac_mid=`expr 2 '*' $ac_mid + 1`
7937fi
7938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7939 done
7940else
7941 echo "$as_me: failed program was:" >&5
7942sed 's/^/| /' conftest.$ac_ext >&5
7943
7944cat >conftest.$ac_ext <<_ACEOF
7945/* confdefs.h. */
7946_ACEOF
7947cat confdefs.h >>conftest.$ac_ext
7948cat >>conftest.$ac_ext <<_ACEOF
7949/* end confdefs.h. */
7950#include <stddef.h>
7951int
7952main ()
7953{
7954static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7955test_array [0] = 0
7956
7957 ;
7958 return 0;
7959}
7960_ACEOF
7961rm -f conftest.$ac_objext
7962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7963 (eval $ac_compile) 2>conftest.er1
7964 ac_status=$?
7965 grep -v '^ *+' conftest.er1 >conftest.err
7966 rm -f conftest.er1
7967 cat conftest.err >&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } &&
7970 { ac_try='test -z "$ac_cxx_werror_flag"
7971 || test ! -s conftest.err'
7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 (eval $ac_try) 2>&5
7974 ac_status=$?
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; } &&
7977 { ac_try='test -s conftest.$ac_objext'
7978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 (eval $ac_try) 2>&5
7980 ac_status=$?
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; }; then
7983 ac_hi=-1 ac_mid=-1
7984 while :; do
7985 cat >conftest.$ac_ext <<_ACEOF
7986/* confdefs.h. */
7987_ACEOF
7988cat confdefs.h >>conftest.$ac_ext
7989cat >>conftest.$ac_ext <<_ACEOF
7990/* end confdefs.h. */
7991#include <stddef.h>
7992int
7993main ()
7994{
7995static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7996test_array [0] = 0
7997
7998 ;
7999 return 0;
8000}
8001_ACEOF
8002rm -f conftest.$ac_objext
8003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8004 (eval $ac_compile) 2>conftest.er1
8005 ac_status=$?
8006 grep -v '^ *+' conftest.er1 >conftest.err
8007 rm -f conftest.er1
8008 cat conftest.err >&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } &&
8011 { ac_try='test -z "$ac_cxx_werror_flag"
8012 || test ! -s conftest.err'
8013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014 (eval $ac_try) 2>&5
8015 ac_status=$?
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); }; } &&
8018 { ac_try='test -s conftest.$ac_objext'
8019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8020 (eval $ac_try) 2>&5
8021 ac_status=$?
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); }; }; then
8024 ac_lo=$ac_mid; break
8025else
8026 echo "$as_me: failed program was:" >&5
8027sed 's/^/| /' conftest.$ac_ext >&5
8028
8029ac_hi=`expr '(' $ac_mid ')' - 1`
8030 if test $ac_mid -le $ac_hi; then
8031 ac_lo= ac_hi=
8032 break
8033 fi
8034 ac_mid=`expr 2 '*' $ac_mid`
8035fi
8036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8037 done
8038else
8039 echo "$as_me: failed program was:" >&5
8040sed 's/^/| /' conftest.$ac_ext >&5
8041
8042ac_lo= ac_hi=
8043fi
8044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8045fi
8046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8047# Binary search between lo and hi bounds.
8048while test "x$ac_lo" != "x$ac_hi"; do
8049 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8050 cat >conftest.$ac_ext <<_ACEOF
8051/* confdefs.h. */
8052_ACEOF
8053cat confdefs.h >>conftest.$ac_ext
8054cat >>conftest.$ac_ext <<_ACEOF
8055/* end confdefs.h. */
8056#include <stddef.h>
8057int
8058main ()
8059{
8060static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
8061test_array [0] = 0
8062
8063 ;
8064 return 0;
8065}
8066_ACEOF
8067rm -f conftest.$ac_objext
8068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8069 (eval $ac_compile) 2>conftest.er1
8070 ac_status=$?
8071 grep -v '^ *+' conftest.er1 >conftest.err
8072 rm -f conftest.er1
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } &&
8076 { ac_try='test -z "$ac_cxx_werror_flag"
8077 || test ! -s conftest.err'
8078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079 (eval $ac_try) 2>&5
8080 ac_status=$?
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; } &&
8083 { ac_try='test -s conftest.$ac_objext'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 (eval $ac_try) 2>&5
8086 ac_status=$?
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8089 ac_hi=$ac_mid
8090else
8091 echo "$as_me: failed program was:" >&5
8092sed 's/^/| /' conftest.$ac_ext >&5
8093
8094ac_lo=`expr '(' $ac_mid ')' + 1`
8095fi
8096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8097done
8098case $ac_lo in
8099?*) res_hi=$ac_lo;;
8100'') result=? ;;
8101esac
8102else
8103 if test "$cross_compiling" = yes; then
8104 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8105See \`config.log' for more details." >&5
8106echo "$as_me: error: cannot run test program while cross compiling
8107See \`config.log' for more details." >&2;}
8108 { (exit 1); exit 1; }; }
8109else
8110 cat >conftest.$ac_ext <<_ACEOF
8111/* confdefs.h. */
8112_ACEOF
8113cat confdefs.h >>conftest.$ac_ext
8114cat >>conftest.$ac_ext <<_ACEOF
8115/* end confdefs.h. */
8116#include <stddef.h>
8117long longval () { return ~(size_t)0 / 10; }
8118unsigned long ulongval () { return ~(size_t)0 / 10; }
8119#include <stdio.h>
8120#include <stdlib.h>
8121int
8122main ()
8123{
8124
8125 FILE *f = fopen ("conftest.val", "w");
8126 if (! f)
8127 exit (1);
8128 if ((~(size_t)0 / 10) < 0)
8129 {
8130 long i = longval ();
8131 if (i != (~(size_t)0 / 10))
8132 exit (1);
8133 fprintf (f, "%ld\n", i);
8134 }
8135 else
8136 {
8137 unsigned long i = ulongval ();
8138 if (i != (~(size_t)0 / 10))
8139 exit (1);
8140 fprintf (f, "%lu\n", i);
8141 }
8142 exit (ferror (f) || fclose (f) != 0);
8143
8144 ;
8145 return 0;
8146}
8147_ACEOF
8148rm -f conftest$ac_exeext
8149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8150 (eval $ac_link) 2>&5
8151 ac_status=$?
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8155 (eval $ac_try) 2>&5
8156 ac_status=$?
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; }; then
8159 res_hi=`cat conftest.val`
8160else
8161 echo "$as_me: program exited with status $ac_status" >&5
8162echo "$as_me: failed program was:" >&5
8163sed 's/^/| /' conftest.$ac_ext >&5
8164
8165( exit $ac_status )
8166result=?
8167fi
8168rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8169fi
8170fi
8171rm -f conftest.val
8172 if test "$cross_compiling" = yes; then
8173 # Depending upon the size, compute the lo and hi bounds.
8174cat >conftest.$ac_ext <<_ACEOF
8175/* confdefs.h. */
8176_ACEOF
8177cat confdefs.h >>conftest.$ac_ext
8178cat >>conftest.$ac_ext <<_ACEOF
8179/* end confdefs.h. */
8180#include <stddef.h>
8181int
8182main ()
8183{
8184static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
8185test_array [0] = 0
8186
8187 ;
8188 return 0;
8189}
8190_ACEOF
8191rm -f conftest.$ac_objext
8192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8193 (eval $ac_compile) 2>conftest.er1
8194 ac_status=$?
8195 grep -v '^ *+' conftest.er1 >conftest.err
8196 rm -f conftest.er1
8197 cat conftest.err >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); } &&
8200 { ac_try='test -z "$ac_cxx_werror_flag"
8201 || test ! -s conftest.err'
8202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8203 (eval $ac_try) 2>&5
8204 ac_status=$?
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; } &&
8207 { ac_try='test -s conftest.$ac_objext'
8208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209 (eval $ac_try) 2>&5
8210 ac_status=$?
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); }; }; then
8213 ac_lo=0 ac_mid=0
8214 while :; do
8215 cat >conftest.$ac_ext <<_ACEOF
8216/* confdefs.h. */
8217_ACEOF
8218cat confdefs.h >>conftest.$ac_ext
8219cat >>conftest.$ac_ext <<_ACEOF
8220/* end confdefs.h. */
8221#include <stddef.h>
8222int
8223main ()
8224{
8225static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8226test_array [0] = 0
8227
8228 ;
8229 return 0;
8230}
8231_ACEOF
8232rm -f conftest.$ac_objext
8233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8234 (eval $ac_compile) 2>conftest.er1
8235 ac_status=$?
8236 grep -v '^ *+' conftest.er1 >conftest.err
8237 rm -f conftest.er1
8238 cat conftest.err >&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); } &&
8241 { ac_try='test -z "$ac_cxx_werror_flag"
8242 || test ! -s conftest.err'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244 (eval $ac_try) 2>&5
8245 ac_status=$?
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; } &&
8248 { ac_try='test -s conftest.$ac_objext'
8249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 (eval $ac_try) 2>&5
8251 ac_status=$?
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); }; }; then
8254 ac_hi=$ac_mid; break
8255else
8256 echo "$as_me: failed program was:" >&5
8257sed 's/^/| /' conftest.$ac_ext >&5
8258
8259ac_lo=`expr $ac_mid + 1`
8260 if test $ac_lo -le $ac_mid; then
8261 ac_lo= ac_hi=
8262 break
8263 fi
8264 ac_mid=`expr 2 '*' $ac_mid + 1`
8265fi
8266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8267 done
8268else
8269 echo "$as_me: failed program was:" >&5
8270sed 's/^/| /' conftest.$ac_ext >&5
8271
8272cat >conftest.$ac_ext <<_ACEOF
8273/* confdefs.h. */
8274_ACEOF
8275cat confdefs.h >>conftest.$ac_ext
8276cat >>conftest.$ac_ext <<_ACEOF
8277/* end confdefs.h. */
8278#include <stddef.h>
8279int
8280main ()
8281{
8282static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
8283test_array [0] = 0
8284
8285 ;
8286 return 0;
8287}
8288_ACEOF
8289rm -f conftest.$ac_objext
8290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8291 (eval $ac_compile) 2>conftest.er1
8292 ac_status=$?
8293 grep -v '^ *+' conftest.er1 >conftest.err
8294 rm -f conftest.er1
8295 cat conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try='test -z "$ac_cxx_werror_flag"
8299 || test ! -s conftest.err'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301 (eval $ac_try) 2>&5
8302 ac_status=$?
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; } &&
8305 { ac_try='test -s conftest.$ac_objext'
8306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307 (eval $ac_try) 2>&5
8308 ac_status=$?
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; }; then
8311 ac_hi=-1 ac_mid=-1
8312 while :; do
8313 cat >conftest.$ac_ext <<_ACEOF
8314/* confdefs.h. */
8315_ACEOF
8316cat confdefs.h >>conftest.$ac_ext
8317cat >>conftest.$ac_ext <<_ACEOF
8318/* end confdefs.h. */
8319#include <stddef.h>
8320int
8321main ()
8322{
8323static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
8324test_array [0] = 0
8325
8326 ;
8327 return 0;
8328}
8329_ACEOF
8330rm -f conftest.$ac_objext
8331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8332 (eval $ac_compile) 2>conftest.er1
8333 ac_status=$?
8334 grep -v '^ *+' conftest.er1 >conftest.err
8335 rm -f conftest.er1
8336 cat conftest.err >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } &&
8339 { ac_try='test -z "$ac_cxx_werror_flag"
8340 || test ! -s conftest.err'
8341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342 (eval $ac_try) 2>&5
8343 ac_status=$?
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); }; } &&
8346 { ac_try='test -s conftest.$ac_objext'
8347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348 (eval $ac_try) 2>&5
8349 ac_status=$?
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; }; then
8352 ac_lo=$ac_mid; break
8353else
8354 echo "$as_me: failed program was:" >&5
8355sed 's/^/| /' conftest.$ac_ext >&5
8356
8357ac_hi=`expr '(' $ac_mid ')' - 1`
8358 if test $ac_mid -le $ac_hi; then
8359 ac_lo= ac_hi=
8360 break
8361 fi
8362 ac_mid=`expr 2 '*' $ac_mid`
8363fi
8364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8365 done
8366else
8367 echo "$as_me: failed program was:" >&5
8368sed 's/^/| /' conftest.$ac_ext >&5
8369
8370ac_lo= ac_hi=
8371fi
8372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8373fi
8374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8375# Binary search between lo and hi bounds.
8376while test "x$ac_lo" != "x$ac_hi"; do
8377 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8378 cat >conftest.$ac_ext <<_ACEOF
8379/* confdefs.h. */
8380_ACEOF
8381cat confdefs.h >>conftest.$ac_ext
8382cat >>conftest.$ac_ext <<_ACEOF
8383/* end confdefs.h. */
8384#include <stddef.h>
8385int
8386main ()
8387{
8388static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8389test_array [0] = 0
8390
8391 ;
8392 return 0;
8393}
8394_ACEOF
8395rm -f conftest.$ac_objext
8396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8397 (eval $ac_compile) 2>conftest.er1
8398 ac_status=$?
8399 grep -v '^ *+' conftest.er1 >conftest.err
8400 rm -f conftest.er1
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } &&
8404 { ac_try='test -z "$ac_cxx_werror_flag"
8405 || test ! -s conftest.err'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407 (eval $ac_try) 2>&5
8408 ac_status=$?
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; } &&
8411 { ac_try='test -s conftest.$ac_objext'
8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 (eval $ac_try) 2>&5
8414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; }; then
8417 ac_hi=$ac_mid
8418else
8419 echo "$as_me: failed program was:" >&5
8420sed 's/^/| /' conftest.$ac_ext >&5
8421
8422ac_lo=`expr '(' $ac_mid ')' + 1`
8423fi
8424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8425done
8426case $ac_lo in
8427?*) res_lo=$ac_lo;;
8428'') result=? ;;
8429esac
8430else
8431 if test "$cross_compiling" = yes; then
8432 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8433See \`config.log' for more details." >&5
8434echo "$as_me: error: cannot run test program while cross compiling
8435See \`config.log' for more details." >&2;}
8436 { (exit 1); exit 1; }; }
8437else
8438 cat >conftest.$ac_ext <<_ACEOF
8439/* confdefs.h. */
8440_ACEOF
8441cat confdefs.h >>conftest.$ac_ext
8442cat >>conftest.$ac_ext <<_ACEOF
8443/* end confdefs.h. */
8444#include <stddef.h>
8445long longval () { return ~(size_t)0 % 10; }
8446unsigned long ulongval () { return ~(size_t)0 % 10; }
8447#include <stdio.h>
8448#include <stdlib.h>
8449int
8450main ()
8451{
8452
8453 FILE *f = fopen ("conftest.val", "w");
8454 if (! f)
8455 exit (1);
8456 if ((~(size_t)0 % 10) < 0)
8457 {
8458 long i = longval ();
8459 if (i != (~(size_t)0 % 10))
8460 exit (1);
8461 fprintf (f, "%ld\n", i);
8462 }
8463 else
8464 {
8465 unsigned long i = ulongval ();
8466 if (i != (~(size_t)0 % 10))
8467 exit (1);
8468 fprintf (f, "%lu\n", i);
8469 }
8470 exit (ferror (f) || fclose (f) != 0);
8471
8472 ;
8473 return 0;
8474}
8475_ACEOF
8476rm -f conftest$ac_exeext
8477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8478 (eval $ac_link) 2>&5
8479 ac_status=$?
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 (eval $ac_try) 2>&5
8484 ac_status=$?
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; }; then
8487 res_lo=`cat conftest.val`
8488else
8489 echo "$as_me: program exited with status $ac_status" >&5
8490echo "$as_me: failed program was:" >&5
8491sed 's/^/| /' conftest.$ac_ext >&5
8492
8493( exit $ac_status )
8494result=?
8495fi
8496rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8497fi
8498fi
8499rm -f conftest.val
8500 if test "$cross_compiling" = yes; then
8501 # Depending upon the size, compute the lo and hi bounds.
8502cat >conftest.$ac_ext <<_ACEOF
8503/* confdefs.h. */
8504_ACEOF
8505cat confdefs.h >>conftest.$ac_ext
8506cat >>conftest.$ac_ext <<_ACEOF
8507/* end confdefs.h. */
8508#include <stddef.h>
8509int
8510main ()
8511{
8512static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
8513test_array [0] = 0
8514
8515 ;
8516 return 0;
8517}
8518_ACEOF
8519rm -f conftest.$ac_objext
8520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8521 (eval $ac_compile) 2>conftest.er1
8522 ac_status=$?
8523 grep -v '^ *+' conftest.er1 >conftest.err
8524 rm -f conftest.er1
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } &&
8528 { ac_try='test -z "$ac_cxx_werror_flag"
8529 || test ! -s conftest.err'
8530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531 (eval $ac_try) 2>&5
8532 ac_status=$?
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; } &&
8535 { ac_try='test -s conftest.$ac_objext'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 (eval $ac_try) 2>&5
8538 ac_status=$?
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; }; then
8541 ac_lo=0 ac_mid=0
8542 while :; do
8543 cat >conftest.$ac_ext <<_ACEOF
8544/* confdefs.h. */
8545_ACEOF
8546cat confdefs.h >>conftest.$ac_ext
8547cat >>conftest.$ac_ext <<_ACEOF
8548/* end confdefs.h. */
8549#include <stddef.h>
8550int
8551main ()
8552{
8553static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8554test_array [0] = 0
8555
8556 ;
8557 return 0;
8558}
8559_ACEOF
8560rm -f conftest.$ac_objext
8561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8562 (eval $ac_compile) 2>conftest.er1
8563 ac_status=$?
8564 grep -v '^ *+' conftest.er1 >conftest.err
8565 rm -f conftest.er1
8566 cat conftest.err >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } &&
8569 { ac_try='test -z "$ac_cxx_werror_flag"
8570 || test ! -s conftest.err'
8571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572 (eval $ac_try) 2>&5
8573 ac_status=$?
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); }; } &&
8576 { ac_try='test -s conftest.$ac_objext'
8577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 (eval $ac_try) 2>&5
8579 ac_status=$?
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; }; then
8582 ac_hi=$ac_mid; break
8583else
8584 echo "$as_me: failed program was:" >&5
8585sed 's/^/| /' conftest.$ac_ext >&5
8586
8587ac_lo=`expr $ac_mid + 1`
8588 if test $ac_lo -le $ac_mid; then
8589 ac_lo= ac_hi=
8590 break
8591 fi
8592 ac_mid=`expr 2 '*' $ac_mid + 1`
8593fi
8594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8595 done
8596else
8597 echo "$as_me: failed program was:" >&5
8598sed 's/^/| /' conftest.$ac_ext >&5
8599
8600cat >conftest.$ac_ext <<_ACEOF
8601/* confdefs.h. */
8602_ACEOF
8603cat confdefs.h >>conftest.$ac_ext
8604cat >>conftest.$ac_ext <<_ACEOF
8605/* end confdefs.h. */
8606#include <stddef.h>
8607int
8608main ()
8609{
8610static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8611test_array [0] = 0
8612
8613 ;
8614 return 0;
8615}
8616_ACEOF
8617rm -f conftest.$ac_objext
8618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8619 (eval $ac_compile) 2>conftest.er1
8620 ac_status=$?
8621 grep -v '^ *+' conftest.er1 >conftest.err
8622 rm -f conftest.er1
8623 cat conftest.err >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); } &&
8626 { ac_try='test -z "$ac_cxx_werror_flag"
8627 || test ! -s conftest.err'
8628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629 (eval $ac_try) 2>&5
8630 ac_status=$?
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; } &&
8633 { ac_try='test -s conftest.$ac_objext'
8634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 (eval $ac_try) 2>&5
8636 ac_status=$?
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); }; }; then
8639 ac_hi=-1 ac_mid=-1
8640 while :; do
8641 cat >conftest.$ac_ext <<_ACEOF
8642/* confdefs.h. */
8643_ACEOF
8644cat confdefs.h >>conftest.$ac_ext
8645cat >>conftest.$ac_ext <<_ACEOF
8646/* end confdefs.h. */
8647#include <stddef.h>
8648int
8649main ()
8650{
8651static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8652test_array [0] = 0
8653
8654 ;
8655 return 0;
8656}
8657_ACEOF
8658rm -f conftest.$ac_objext
8659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8660 (eval $ac_compile) 2>conftest.er1
8661 ac_status=$?
8662 grep -v '^ *+' conftest.er1 >conftest.err
8663 rm -f conftest.er1
8664 cat conftest.err >&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); } &&
8667 { ac_try='test -z "$ac_cxx_werror_flag"
8668 || test ! -s conftest.err'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 (eval $ac_try) 2>&5
8671 ac_status=$?
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; } &&
8674 { ac_try='test -s conftest.$ac_objext'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 (eval $ac_try) 2>&5
8677 ac_status=$?
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; }; then
8680 ac_lo=$ac_mid; break
8681else
8682 echo "$as_me: failed program was:" >&5
8683sed 's/^/| /' conftest.$ac_ext >&5
8684
8685ac_hi=`expr '(' $ac_mid ')' - 1`
8686 if test $ac_mid -le $ac_hi; then
8687 ac_lo= ac_hi=
8688 break
8689 fi
8690 ac_mid=`expr 2 '*' $ac_mid`
8691fi
8692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8693 done
8694else
8695 echo "$as_me: failed program was:" >&5
8696sed 's/^/| /' conftest.$ac_ext >&5
8697
8698ac_lo= ac_hi=
8699fi
8700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8701fi
8702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8703# Binary search between lo and hi bounds.
8704while test "x$ac_lo" != "x$ac_hi"; do
8705 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8706 cat >conftest.$ac_ext <<_ACEOF
8707/* confdefs.h. */
8708_ACEOF
8709cat confdefs.h >>conftest.$ac_ext
8710cat >>conftest.$ac_ext <<_ACEOF
8711/* end confdefs.h. */
8712#include <stddef.h>
8713int
8714main ()
8715{
8716static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8717test_array [0] = 0
8718
8719 ;
8720 return 0;
8721}
8722_ACEOF
8723rm -f conftest.$ac_objext
8724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8725 (eval $ac_compile) 2>conftest.er1
8726 ac_status=$?
8727 grep -v '^ *+' conftest.er1 >conftest.err
8728 rm -f conftest.er1
8729 cat conftest.err >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } &&
8732 { ac_try='test -z "$ac_cxx_werror_flag"
8733 || test ! -s conftest.err'
8734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735 (eval $ac_try) 2>&5
8736 ac_status=$?
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; } &&
8739 { ac_try='test -s conftest.$ac_objext'
8740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741 (eval $ac_try) 2>&5
8742 ac_status=$?
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; }; then
8745 ac_hi=$ac_mid
8746else
8747 echo "$as_me: failed program was:" >&5
8748sed 's/^/| /' conftest.$ac_ext >&5
8749
8750ac_lo=`expr '(' $ac_mid ')' + 1`
8751fi
8752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8753done
8754case $ac_lo in
8755?*) fits_in_uint=$ac_lo;;
8756'') result=? ;;
8757esac
8758else
8759 if test "$cross_compiling" = yes; then
8760 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8761See \`config.log' for more details." >&5
8762echo "$as_me: error: cannot run test program while cross compiling
8763See \`config.log' for more details." >&2;}
8764 { (exit 1); exit 1; }; }
8765else
8766 cat >conftest.$ac_ext <<_ACEOF
8767/* confdefs.h. */
8768_ACEOF
8769cat confdefs.h >>conftest.$ac_ext
8770cat >>conftest.$ac_ext <<_ACEOF
8771/* end confdefs.h. */
8772#include <stddef.h>
8773long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8774unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8775#include <stdio.h>
8776#include <stdlib.h>
8777int
8778main ()
8779{
8780
8781 FILE *f = fopen ("conftest.val", "w");
8782 if (! f)
8783 exit (1);
8784 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8785 {
8786 long i = longval ();
8787 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8788 exit (1);
8789 fprintf (f, "%ld\n", i);
8790 }
8791 else
8792 {
8793 unsigned long i = ulongval ();
8794 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8795 exit (1);
8796 fprintf (f, "%lu\n", i);
8797 }
8798 exit (ferror (f) || fclose (f) != 0);
8799
8800 ;
8801 return 0;
8802}
8803_ACEOF
8804rm -f conftest$ac_exeext
8805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8806 (eval $ac_link) 2>&5
8807 ac_status=$?
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811 (eval $ac_try) 2>&5
8812 ac_status=$?
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; }; then
8815 fits_in_uint=`cat conftest.val`
8816else
8817 echo "$as_me: program exited with status $ac_status" >&5
8818echo "$as_me: failed program was:" >&5
8819sed 's/^/| /' conftest.$ac_ext >&5
8820
8821( exit $ac_status )
8822result=?
8823fi
8824rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8825fi
8826fi
8827rm -f conftest.val
8828 if test "$fits_in_uint" = 1; then
8829 cat >conftest.$ac_ext <<_ACEOF
8830/* confdefs.h. */
8831_ACEOF
8832cat confdefs.h >>conftest.$ac_ext
8833cat >>conftest.$ac_ext <<_ACEOF
8834/* end confdefs.h. */
8835#include <stddef.h>
8836 extern size_t foo;
8837 extern unsigned long foo;
8838
8839int
8840main ()
8841{
8842
8843 ;
8844 return 0;
8845}
8846_ACEOF
8847rm -f conftest.$ac_objext
8848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8849 (eval $ac_compile) 2>conftest.er1
8850 ac_status=$?
8851 grep -v '^ *+' conftest.er1 >conftest.err
8852 rm -f conftest.er1
8853 cat conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } &&
8856 { ac_try='test -z "$ac_cxx_werror_flag"
8857 || test ! -s conftest.err'
8858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859 (eval $ac_try) 2>&5
8860 ac_status=$?
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }; } &&
8863 { ac_try='test -s conftest.$ac_objext'
8864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865 (eval $ac_try) 2>&5
8866 ac_status=$?
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; }; then
8869 fits_in_uint=0
8870else
8871 echo "$as_me: failed program was:" >&5
8872sed 's/^/| /' conftest.$ac_ext >&5
8873
8874fi
8875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8876 fi
8877 if test -z "$result"; then
8878 if test "$fits_in_uint" = 1; then
8879 result="$res_hi$res_lo"U
8880 else
8881 result="$res_hi$res_lo"UL
8882 fi
8883 else
8884 result='~(size_t)0'
8885 fi
8886 fi
8887 echo "$as_me:$LINENO: result: $result" >&5
8888echo "${ECHO_T}$result" >&6
8889 if test "$result" != yes; then
8890
8891cat >>confdefs.h <<_ACEOF
8892#define SIZE_MAX $result
8893_ACEOF
8894
8895 fi
8896
8897
8898
8899
8900for ac_header in stdint.h
8901do
8902as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8903if eval "test \"\${$as_ac_Header+set}\" = set"; then
8904 echo "$as_me:$LINENO: checking for $ac_header" >&5
8905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8906if eval "test \"\${$as_ac_Header+set}\" = set"; then
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
8908fi
8909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8910echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8911else
8912 # Is the header compilable?
8913echo "$as_me:$LINENO: checking $ac_header usability" >&5
8914echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8915cat >conftest.$ac_ext <<_ACEOF
8916/* confdefs.h. */
8917_ACEOF
8918cat confdefs.h >>conftest.$ac_ext
8919cat >>conftest.$ac_ext <<_ACEOF
8920/* end confdefs.h. */
8921$ac_includes_default
8922#include <$ac_header>
8923_ACEOF
8924rm -f conftest.$ac_objext
8925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8926 (eval $ac_compile) 2>conftest.er1
8927 ac_status=$?
8928 grep -v '^ *+' conftest.er1 >conftest.err
8929 rm -f conftest.er1
8930 cat conftest.err >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } &&
8933 { ac_try='test -z "$ac_cxx_werror_flag"
8934 || test ! -s conftest.err'
8935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936 (eval $ac_try) 2>&5
8937 ac_status=$?
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; } &&
8940 { ac_try='test -s conftest.$ac_objext'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 (eval $ac_try) 2>&5
8943 ac_status=$?
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; }; then
8946 ac_header_compiler=yes
8947else
8948 echo "$as_me: failed program was:" >&5
8949sed 's/^/| /' conftest.$ac_ext >&5
8950
8951ac_header_compiler=no
8952fi
8953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8954echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8955echo "${ECHO_T}$ac_header_compiler" >&6
8956
8957# Is the header present?
8958echo "$as_me:$LINENO: checking $ac_header presence" >&5
8959echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8960cat >conftest.$ac_ext <<_ACEOF
8961/* confdefs.h. */
8962_ACEOF
8963cat confdefs.h >>conftest.$ac_ext
8964cat >>conftest.$ac_ext <<_ACEOF
8965/* end confdefs.h. */
8966#include <$ac_header>
8967_ACEOF
8968if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8970 ac_status=$?
8971 grep -v '^ *+' conftest.er1 >conftest.err
8972 rm -f conftest.er1
8973 cat conftest.err >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } >/dev/null; then
8976 if test -s conftest.err; then
8977 ac_cpp_err=$ac_cxx_preproc_warn_flag
8978 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8979 else
8980 ac_cpp_err=
8981 fi
8982else
8983 ac_cpp_err=yes
8984fi
8985if test -z "$ac_cpp_err"; then
8986 ac_header_preproc=yes
8987else
8988 echo "$as_me: failed program was:" >&5
8989sed 's/^/| /' conftest.$ac_ext >&5
8990
8991 ac_header_preproc=no
8992fi
8993rm -f conftest.err conftest.$ac_ext
8994echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8995echo "${ECHO_T}$ac_header_preproc" >&6
8996
8997# So? What about this header?
8998case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8999 yes:no: )
9000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9001echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9003echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9004 ac_header_preproc=yes
9005 ;;
9006 no:yes:* )
9007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9008echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9010echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9012echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9014echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9016echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9018echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9019 (
9020 cat <<\_ASBOX
9021## ------------------------------------------ ##
9022## Report this to the AC_PACKAGE_NAME lists. ##
9023## ------------------------------------------ ##
9024_ASBOX
9025 ) |
9026 sed "s/^/$as_me: WARNING: /" >&2
9027 ;;
9028esac
9029echo "$as_me:$LINENO: checking for $ac_header" >&5
9030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9031if eval "test \"\${$as_ac_Header+set}\" = set"; then
9032 echo $ECHO_N "(cached) $ECHO_C" >&6
9033else
9034 eval "$as_ac_Header=\$ac_header_preproc"
9035fi
9036echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9037echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9038
9039fi
9040if test `eval echo '${'$as_ac_Header'}'` = yes; then
9041 cat >>confdefs.h <<_ACEOF
9042#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9043_ACEOF
9044
9045fi
9046
9047done
9048
9049
9050
9051 if test "X$prefix" = "XNONE"; then
9052 acl_final_prefix="$ac_default_prefix"
9053 else
9054 acl_final_prefix="$prefix"
9055 fi
9056 if test "X$exec_prefix" = "XNONE"; then
9057 acl_final_exec_prefix='${prefix}'
9058 else
9059 acl_final_exec_prefix="$exec_prefix"
9060 fi
9061 acl_save_prefix="$prefix"
9062 prefix="$acl_final_prefix"
9063 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9064 prefix="$acl_save_prefix"
9065
9066
9067# Check whether --with-gnu-ld or --without-gnu-ld was given.
9068if test "${with_gnu_ld+set}" = set; then
9069 withval="$with_gnu_ld"
9070 test "$withval" = no || with_gnu_ld=yes
9071else
9072 with_gnu_ld=no
9073fi;
9074# Prepare PATH_SEPARATOR.
9075# The user is always right.
9076if test "${PATH_SEPARATOR+set}" != set; then
9077 echo "#! /bin/sh" >conf$$.sh
9078 echo "exit 0" >>conf$$.sh
9079 chmod +x conf$$.sh
9080 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9081 PATH_SEPARATOR=';'
9082 else
9083 PATH_SEPARATOR=:
9084 fi
9085 rm -f conf$$.sh
9086fi
9087ac_prog=ld
9088if test "$GCC" = yes; then
9089 # Check if gcc -print-prog-name=ld gives a path.
9090 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9091echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9092 case $host in
9093 *-*-mingw*)
9094 # gcc leaves a trailing carriage return which upsets mingw
9095 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9096 *)
9097 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9098 esac
9099 case $ac_prog in
9100 # Accept absolute paths.
9101 [\\/]* | [A-Za-z]:[\\/]*)
9102 re_direlt='/[^/][^/]*/\.\./'
9103 # Canonicalize the path of ld
9104 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9105 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9106 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9107 done
9108 test -z "$LD" && LD="$ac_prog"
9109 ;;
9110 "")
9111 # If it fails, then pretend we aren't using GCC.
9112 ac_prog=ld
9113 ;;
9114 *)
9115 # If it is relative, then search for the first ld in PATH.
9116 with_gnu_ld=unknown
9117 ;;
9118 esac
9119elif test "$with_gnu_ld" = yes; then
9120 echo "$as_me:$LINENO: checking for GNU ld" >&5
9121echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9122else
9123 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9124echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9125fi
9126if test "${acl_cv_path_LD+set}" = set; then
9127 echo $ECHO_N "(cached) $ECHO_C" >&6
9128else
9129 if test -z "$LD"; then
9130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9131 for ac_dir in $PATH; do
9132 test -z "$ac_dir" && ac_dir=.
9133 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9134 acl_cv_path_LD="$ac_dir/$ac_prog"
9135 # Check to see if the program is GNU ld. I'd rather use --version,
9136 # but apparently some GNU ld's only accept -v.
9137 # Break only if it was the GNU/non-GNU ld that we prefer.
9138 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9139 *GNU* | *'with BFD'*)
9140 test "$with_gnu_ld" != no && break ;;
9141 *)
9142 test "$with_gnu_ld" != yes && break ;;
9143 esac
9144 fi
9145 done
9146 IFS="$ac_save_ifs"
9147else
9148 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9149fi
9150fi
9151
9152LD="$acl_cv_path_LD"
9153if test -n "$LD"; then
9154 echo "$as_me:$LINENO: result: $LD" >&5
9155echo "${ECHO_T}$LD" >&6
9156else
9157 echo "$as_me:$LINENO: result: no" >&5
9158echo "${ECHO_T}no" >&6
9159fi
9160test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9161echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9162 { (exit 1); exit 1; }; }
9163echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9164echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9165if test "${acl_cv_prog_gnu_ld+set}" = set; then
9166 echo $ECHO_N "(cached) $ECHO_C" >&6
9167else
9168 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9169case `$LD -v 2>&1 </dev/null` in
9170*GNU* | *'with BFD'*)
9171 acl_cv_prog_gnu_ld=yes ;;
9172*)
9173 acl_cv_prog_gnu_ld=no ;;
9174esac
9175fi
9176echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9177echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9178with_gnu_ld=$acl_cv_prog_gnu_ld
9179
9180
9181
9182 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9183echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9184if test "${acl_cv_rpath+set}" = set; then
9185 echo $ECHO_N "(cached) $ECHO_C" >&6
9186else
9187
9188 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9189 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9190 . ./conftest.sh
9191 rm -f ./conftest.sh
9192 acl_cv_rpath=done
9193
9194fi
9195echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9196echo "${ECHO_T}$acl_cv_rpath" >&6
9197 wl="$acl_cv_wl"
9198 libext="$acl_cv_libext"
9199 shlibext="$acl_cv_shlibext"
9200 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9201 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9202 hardcode_direct="$acl_cv_hardcode_direct"
9203 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9204 # Check whether --enable-rpath or --disable-rpath was given.
9205if test "${enable_rpath+set}" = set; then
9206 enableval="$enable_rpath"
9207 :
9208else
9209 enable_rpath=yes
9210fi;
9211
9212
9213
9214
9215
9216
9217
9218 use_additional=yes
9219
9220 acl_save_prefix="$prefix"
9221 prefix="$acl_final_prefix"
9222 acl_save_exec_prefix="$exec_prefix"
9223 exec_prefix="$acl_final_exec_prefix"
9224
9225 eval additional_includedir=\"$includedir\"
9226 eval additional_libdir=\"$libdir\"
9227
9228 exec_prefix="$acl_save_exec_prefix"
9229 prefix="$acl_save_prefix"
9230
9231
9232# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9233if test "${with_libiconv_prefix+set}" = set; then
9234 withval="$with_libiconv_prefix"
9235
9236 if test "X$withval" = "Xno"; then
9237 use_additional=no
9238 else
9239 if test "X$withval" = "X"; then
9240
9241 acl_save_prefix="$prefix"
9242 prefix="$acl_final_prefix"
9243 acl_save_exec_prefix="$exec_prefix"
9244 exec_prefix="$acl_final_exec_prefix"
9245
9246 eval additional_includedir=\"$includedir\"
9247 eval additional_libdir=\"$libdir\"
9248
9249 exec_prefix="$acl_save_exec_prefix"
9250 prefix="$acl_save_prefix"
9251
9252 else
9253 additional_includedir="$withval/include"
9254 additional_libdir="$withval/lib"
9255 fi
9256 fi
9257
9258fi;
9259 LIBICONV=
9260 LTLIBICONV=
9261 INCICONV=
9262 rpathdirs=
9263 ltrpathdirs=
9264 names_already_handled=
9265 names_next_round='iconv '
9266 while test -n "$names_next_round"; do
9267 names_this_round="$names_next_round"
9268 names_next_round=
9269 for name in $names_this_round; do
9270 already_handled=
9271 for n in $names_already_handled; do
9272 if test "$n" = "$name"; then
9273 already_handled=yes
9274 break
9275 fi
9276 done
9277 if test -z "$already_handled"; then
9278 names_already_handled="$names_already_handled $name"
9279 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9280 eval value=\"\$HAVE_LIB$uppername\"
9281 if test -n "$value"; then
9282 if test "$value" = yes; then
9283 eval value=\"\$LIB$uppername\"
9284 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9285 eval value=\"\$LTLIB$uppername\"
9286 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9287 else
9288 :
9289 fi
9290 else
9291 found_dir=
9292 found_la=
9293 found_so=
9294 found_a=
9295 if test $use_additional = yes; then
9296 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9297 found_dir="$additional_libdir"
9298 found_so="$additional_libdir/lib$name.$shlibext"
9299 if test -f "$additional_libdir/lib$name.la"; then
9300 found_la="$additional_libdir/lib$name.la"
9301 fi
9302 else
9303 if test -f "$additional_libdir/lib$name.$libext"; then
9304 found_dir="$additional_libdir"
9305 found_a="$additional_libdir/lib$name.$libext"
9306 if test -f "$additional_libdir/lib$name.la"; then
9307 found_la="$additional_libdir/lib$name.la"
9308 fi
9309 fi
9310 fi
9311 fi
9312 if test "X$found_dir" = "X"; then
9313 for x in $LDFLAGS $LTLIBICONV; do
9314
9315 acl_save_prefix="$prefix"
9316 prefix="$acl_final_prefix"
9317 acl_save_exec_prefix="$exec_prefix"
9318 exec_prefix="$acl_final_exec_prefix"
9319 eval x=\"$x\"
9320 exec_prefix="$acl_save_exec_prefix"
9321 prefix="$acl_save_prefix"
9322
9323 case "$x" in
9324 -L*)
9325 dir=`echo "X$x" | sed -e 's/^X-L//'`
9326 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9327 found_dir="$dir"
9328 found_so="$dir/lib$name.$shlibext"
9329 if test -f "$dir/lib$name.la"; then
9330 found_la="$dir/lib$name.la"
9331 fi
9332 else
9333 if test -f "$dir/lib$name.$libext"; then
9334 found_dir="$dir"
9335 found_a="$dir/lib$name.$libext"
9336 if test -f "$dir/lib$name.la"; then
9337 found_la="$dir/lib$name.la"
9338 fi
9339 fi
9340 fi
9341 ;;
9342 esac
9343 if test "X$found_dir" != "X"; then
9344 break
9345 fi
9346 done
9347 fi
9348 if test "X$found_dir" != "X"; then
9349 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9350 if test "X$found_so" != "X"; then
9351 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9352 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9353 else
9354 haveit=
9355 for x in $ltrpathdirs; do
9356 if test "X$x" = "X$found_dir"; then
9357 haveit=yes
9358 break
9359 fi
9360 done
9361 if test -z "$haveit"; then
9362 ltrpathdirs="$ltrpathdirs $found_dir"
9363 fi
9364 if test "$hardcode_direct" = yes; then
9365 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9366 else
9367 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9368 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9369 haveit=
9370 for x in $rpathdirs; do
9371 if test "X$x" = "X$found_dir"; then
9372 haveit=yes
9373 break
9374 fi
9375 done
9376 if test -z "$haveit"; then
9377 rpathdirs="$rpathdirs $found_dir"
9378 fi
9379 else
9380 haveit=
9381 for x in $LDFLAGS $LIBICONV; do
9382
9383 acl_save_prefix="$prefix"
9384 prefix="$acl_final_prefix"
9385 acl_save_exec_prefix="$exec_prefix"
9386 exec_prefix="$acl_final_exec_prefix"
9387 eval x=\"$x\"
9388 exec_prefix="$acl_save_exec_prefix"
9389 prefix="$acl_save_prefix"
9390
9391 if test "X$x" = "X-L$found_dir"; then
9392 haveit=yes
9393 break
9394 fi
9395 done
9396 if test -z "$haveit"; then
9397 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9398 fi
9399 if test "$hardcode_minus_L" != no; then
9400 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9401 else
9402 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9403 fi
9404 fi
9405 fi
9406 fi
9407 else
9408 if test "X$found_a" != "X"; then
9409 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9410 else
9411 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9412 fi
9413 fi
9414 additional_includedir=
9415 case "$found_dir" in
9416 */lib | */lib/)
9417 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9418 additional_includedir="$basedir/include"
9419 ;;
9420 esac
9421 if test "X$additional_includedir" != "X"; then
9422 if test "X$additional_includedir" != "X/usr/include"; then
9423 haveit=
9424 if test "X$additional_includedir" = "X/usr/local/include"; then
9425 if test -n "$GCC"; then
9426 case $host_os in
9427 linux*) haveit=yes;;
9428 esac
9429 fi
9430 fi
9431 if test -z "$haveit"; then
9432 for x in $CPPFLAGS $INCICONV; do
9433
9434 acl_save_prefix="$prefix"
9435 prefix="$acl_final_prefix"
9436 acl_save_exec_prefix="$exec_prefix"
9437 exec_prefix="$acl_final_exec_prefix"
9438 eval x=\"$x\"
9439 exec_prefix="$acl_save_exec_prefix"
9440 prefix="$acl_save_prefix"
9441
9442 if test "X$x" = "X-I$additional_includedir"; then
9443 haveit=yes
9444 break
9445 fi
9446 done
9447 if test -z "$haveit"; then
9448 if test -d "$additional_includedir"; then
9449 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9450 fi
9451 fi
9452 fi
9453 fi
9454 fi
9455 if test -n "$found_la"; then
9456 save_libdir="$libdir"
9457 case "$found_la" in
9458 */* | *\\*) . "$found_la" ;;
9459 *) . "./$found_la" ;;
9460 esac
9461 libdir="$save_libdir"
9462 for dep in $dependency_libs; do
9463 case "$dep" in
9464 -L*)
9465 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9466 if test "X$additional_libdir" != "X/usr/lib"; then
9467 haveit=
9468 if test "X$additional_libdir" = "X/usr/local/lib"; then
9469 if test -n "$GCC"; then
9470 case $host_os in
9471 linux*) haveit=yes;;
9472 esac
9473 fi
9474 fi
9475 if test -z "$haveit"; then
9476 haveit=
9477 for x in $LDFLAGS $LIBICONV; do
9478
9479 acl_save_prefix="$prefix"
9480 prefix="$acl_final_prefix"
9481 acl_save_exec_prefix="$exec_prefix"
9482 exec_prefix="$acl_final_exec_prefix"
9483 eval x=\"$x\"
9484 exec_prefix="$acl_save_exec_prefix"
9485 prefix="$acl_save_prefix"
9486
9487 if test "X$x" = "X-L$additional_libdir"; then
9488 haveit=yes
9489 break
9490 fi
9491 done
9492 if test -z "$haveit"; then
9493 if test -d "$additional_libdir"; then
9494 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9495 fi
9496 fi
9497 haveit=
9498 for x in $LDFLAGS $LTLIBICONV; do
9499
9500 acl_save_prefix="$prefix"
9501 prefix="$acl_final_prefix"
9502 acl_save_exec_prefix="$exec_prefix"
9503 exec_prefix="$acl_final_exec_prefix"
9504 eval x=\"$x\"
9505 exec_prefix="$acl_save_exec_prefix"
9506 prefix="$acl_save_prefix"
9507
9508 if test "X$x" = "X-L$additional_libdir"; then
9509 haveit=yes
9510 break
9511 fi
9512 done
9513 if test -z "$haveit"; then
9514 if test -d "$additional_libdir"; then
9515 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9516 fi
9517 fi
9518 fi
9519 fi
9520 ;;
9521 -R*)
9522 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9523 if test "$enable_rpath" != no; then
9524 haveit=
9525 for x in $rpathdirs; do
9526 if test "X$x" = "X$dir"; then
9527 haveit=yes
9528 break
9529 fi
9530 done
9531 if test -z "$haveit"; then
9532 rpathdirs="$rpathdirs $dir"
9533 fi
9534 haveit=
9535 for x in $ltrpathdirs; do
9536 if test "X$x" = "X$dir"; then
9537 haveit=yes
9538 break
9539 fi
9540 done
9541 if test -z "$haveit"; then
9542 ltrpathdirs="$ltrpathdirs $dir"
9543 fi
9544 fi
9545 ;;
9546 -l*)
9547 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9548 ;;
9549 *.la)
9550 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9551 ;;
9552 *)
9553 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9554 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9555 ;;
9556 esac
9557 done
9558 fi
9559 else
9560 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9561 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9562 fi
9563 fi
9564 fi
9565 done
9566 done
9567 if test "X$rpathdirs" != "X"; then
9568 if test -n "$hardcode_libdir_separator"; then
9569 alldirs=
9570 for found_dir in $rpathdirs; do
9571 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9572 done
9573 acl_save_libdir="$libdir"
9574 libdir="$alldirs"
9575 eval flag=\"$hardcode_libdir_flag_spec\"
9576 libdir="$acl_save_libdir"
9577 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9578 else
9579 for found_dir in $rpathdirs; do
9580 acl_save_libdir="$libdir"
9581 libdir="$found_dir"
9582 eval flag=\"$hardcode_libdir_flag_spec\"
9583 libdir="$acl_save_libdir"
9584 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9585 done
9586 fi
9587 fi
9588 if test "X$ltrpathdirs" != "X"; then
9589 for found_dir in $ltrpathdirs; do
9590 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9591 done
9592 fi
9593
9594
9595
9596
9597
9598
9599
9600
9601 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9602echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
9603if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9605else
9606 cat >conftest.$ac_ext <<_ACEOF
9607/* confdefs.h. */
9608_ACEOF
9609cat confdefs.h >>conftest.$ac_ext
9610cat >>conftest.$ac_ext <<_ACEOF
9611/* end confdefs.h. */
9612$ac_includes_default
9613int
9614main ()
9615{
9616if ((ptrdiff_t *) 0)
9617 return 0;
9618if (sizeof (ptrdiff_t))
9619 return 0;
9620 ;
9621 return 0;
9622}
9623_ACEOF
9624rm -f conftest.$ac_objext
9625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9626 (eval $ac_compile) 2>conftest.er1
9627 ac_status=$?
9628 grep -v '^ *+' conftest.er1 >conftest.err
9629 rm -f conftest.er1
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } &&
9633 { ac_try='test -z "$ac_cxx_werror_flag"
9634 || test ! -s conftest.err'
9635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636 (eval $ac_try) 2>&5
9637 ac_status=$?
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; } &&
9640 { ac_try='test -s conftest.$ac_objext'
9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642 (eval $ac_try) 2>&5
9643 ac_status=$?
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; }; then
9646 ac_cv_type_ptrdiff_t=yes
9647else
9648 echo "$as_me: failed program was:" >&5
9649sed 's/^/| /' conftest.$ac_ext >&5
9650
9651ac_cv_type_ptrdiff_t=no
9652fi
9653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9654fi
9655echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9656echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
9657if test $ac_cv_type_ptrdiff_t = yes; then
9658 :
9659else
9660
9661cat >>confdefs.h <<\_ACEOF
9662#define ptrdiff_t long
9663_ACEOF
9664
9665
9666fi
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9679stdlib.h string.h unistd.h sys/param.h
9680do
9681as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9682if eval "test \"\${$as_ac_Header+set}\" = set"; then
9683 echo "$as_me:$LINENO: checking for $ac_header" >&5
9684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9685if eval "test \"\${$as_ac_Header+set}\" = set"; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687fi
9688echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9689echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9690else
9691 # Is the header compilable?
9692echo "$as_me:$LINENO: checking $ac_header usability" >&5
9693echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9694cat >conftest.$ac_ext <<_ACEOF
9695/* confdefs.h. */
9696_ACEOF
9697cat confdefs.h >>conftest.$ac_ext
9698cat >>conftest.$ac_ext <<_ACEOF
9699/* end confdefs.h. */
9700$ac_includes_default
9701#include <$ac_header>
9702_ACEOF
9703rm -f conftest.$ac_objext
9704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9705 (eval $ac_compile) 2>conftest.er1
9706 ac_status=$?
9707 grep -v '^ *+' conftest.er1 >conftest.err
9708 rm -f conftest.er1
9709 cat conftest.err >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } &&
9712 { ac_try='test -z "$ac_cxx_werror_flag"
9713 || test ! -s conftest.err'
9714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 (eval $ac_try) 2>&5
9716 ac_status=$?
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; } &&
9719 { ac_try='test -s conftest.$ac_objext'
9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721 (eval $ac_try) 2>&5
9722 ac_status=$?
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; }; then
9725 ac_header_compiler=yes
9726else
9727 echo "$as_me: failed program was:" >&5
9728sed 's/^/| /' conftest.$ac_ext >&5
9729
9730ac_header_compiler=no
9731fi
9732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9733echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9734echo "${ECHO_T}$ac_header_compiler" >&6
9735
9736# Is the header present?
9737echo "$as_me:$LINENO: checking $ac_header presence" >&5
9738echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9739cat >conftest.$ac_ext <<_ACEOF
9740/* confdefs.h. */
9741_ACEOF
9742cat confdefs.h >>conftest.$ac_ext
9743cat >>conftest.$ac_ext <<_ACEOF
9744/* end confdefs.h. */
9745#include <$ac_header>
9746_ACEOF
9747if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9749 ac_status=$?
9750 grep -v '^ *+' conftest.er1 >conftest.err
9751 rm -f conftest.er1
9752 cat conftest.err >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); } >/dev/null; then
9755 if test -s conftest.err; then
9756 ac_cpp_err=$ac_cxx_preproc_warn_flag
9757 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9758 else
9759 ac_cpp_err=
9760 fi
9761else
9762 ac_cpp_err=yes
9763fi
9764if test -z "$ac_cpp_err"; then
9765 ac_header_preproc=yes
9766else
9767 echo "$as_me: failed program was:" >&5
9768sed 's/^/| /' conftest.$ac_ext >&5
9769
9770 ac_header_preproc=no
9771fi
9772rm -f conftest.err conftest.$ac_ext
9773echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9774echo "${ECHO_T}$ac_header_preproc" >&6
9775
9776# So? What about this header?
9777case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9778 yes:no: )
9779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9780echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9782echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9783 ac_header_preproc=yes
9784 ;;
9785 no:yes:* )
9786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9787echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9789echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9790 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9791echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9792 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9793echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9795echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9796 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9797echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9798 (
9799 cat <<\_ASBOX
9800## ------------------------------------------ ##
9801## Report this to the AC_PACKAGE_NAME lists. ##
9802## ------------------------------------------ ##
9803_ASBOX
9804 ) |
9805 sed "s/^/$as_me: WARNING: /" >&2
9806 ;;
9807esac
9808echo "$as_me:$LINENO: checking for $ac_header" >&5
9809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9810if eval "test \"\${$as_ac_Header+set}\" = set"; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9812else
9813 eval "$as_ac_Header=\$ac_header_preproc"
9814fi
9815echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9816echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9817
9818fi
9819if test `eval echo '${'$as_ac_Header'}'` = yes; then
9820 cat >>confdefs.h <<_ACEOF
9821#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9822_ACEOF
9823
9824fi
9825
9826done
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9852mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9853strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9854__fsetlocking
9855do
9856as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9857echo "$as_me:$LINENO: checking for $ac_func" >&5
9858echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9859if eval "test \"\${$as_ac_var+set}\" = set"; then
9860 echo $ECHO_N "(cached) $ECHO_C" >&6
9861else
9862 cat >conftest.$ac_ext <<_ACEOF
9863/* confdefs.h. */
9864_ACEOF
9865cat confdefs.h >>conftest.$ac_ext
9866cat >>conftest.$ac_ext <<_ACEOF
9867/* end confdefs.h. */
9868/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9870#define $ac_func innocuous_$ac_func
9871
9872/* System header to define __stub macros and hopefully few prototypes,
9873 which can conflict with char $ac_func (); below.
9874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9875 <limits.h> exists even on freestanding compilers. */
9876
9877#ifdef __STDC__
9878# include <limits.h>
9879#else
9880# include <assert.h>
9881#endif
9882
9883#undef $ac_func
9884
9885/* Override any gcc2 internal prototype to avoid an error. */
9886#ifdef __cplusplus
9887extern "C"
9888{
9889#endif
9890/* We use char because int might match the return type of a gcc2
9891 builtin and then its argument prototype would still apply. */
9892char $ac_func ();
9893/* The GNU C library defines this for functions which it implements
9894 to always fail with ENOSYS. Some functions are actually named
9895 something starting with __ and the normal name is an alias. */
9896#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9897choke me
9898#else
9899char (*f) () = $ac_func;
9900#endif
9901#ifdef __cplusplus
9902}
9903#endif
9904
9905int
9906main ()
9907{
9908return f != $ac_func;
9909 ;
9910 return 0;
9911}
9912_ACEOF
9913rm -f conftest.$ac_objext conftest$ac_exeext
9914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9915 (eval $ac_link) 2>conftest.er1
9916 ac_status=$?
9917 grep -v '^ *+' conftest.er1 >conftest.err
9918 rm -f conftest.er1
9919 cat conftest.err >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); } &&
9922 { ac_try='test -z "$ac_cxx_werror_flag"
9923 || test ! -s conftest.err'
9924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 (eval $ac_try) 2>&5
9926 ac_status=$?
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; } &&
9929 { ac_try='test -s conftest$ac_exeext'
9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931 (eval $ac_try) 2>&5
9932 ac_status=$?
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; }; then
9935 eval "$as_ac_var=yes"
9936else
9937 echo "$as_me: failed program was:" >&5
9938sed 's/^/| /' conftest.$ac_ext >&5
9939
9940eval "$as_ac_var=no"
9941fi
9942rm -f conftest.err conftest.$ac_objext \
9943 conftest$ac_exeext conftest.$ac_ext
9944fi
9945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9946echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9947if test `eval echo '${'$as_ac_var'}'` = yes; then
9948 cat >>confdefs.h <<_ACEOF
9949#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9950_ACEOF
9951
9952fi
9953done
9954
9955
9956
9957 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9958echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
9959if test "${ac_cv_have_decl__snprintf+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9961else
9962 cat >conftest.$ac_ext <<_ACEOF
9963/* confdefs.h. */
9964_ACEOF
9965cat confdefs.h >>conftest.$ac_ext
9966cat >>conftest.$ac_ext <<_ACEOF
9967/* end confdefs.h. */
9968#include <stdio.h>
9969int
9970main ()
9971{
9972
9973#ifndef _snprintf
9974 char *p = (char *) _snprintf;
9975#endif
9976
9977 ;
9978 return 0;
9979}
9980_ACEOF
9981rm -f conftest.$ac_objext
9982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9983 (eval $ac_compile) 2>conftest.er1
9984 ac_status=$?
9985 grep -v '^ *+' conftest.er1 >conftest.err
9986 rm -f conftest.er1
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
9990 { ac_try='test -z "$ac_cxx_werror_flag"
9991 || test ! -s conftest.err'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993 (eval $ac_try) 2>&5
9994 ac_status=$?
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; } &&
9997 { ac_try='test -s conftest.$ac_objext'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10003 ac_cv_have_decl__snprintf=yes
10004else
10005 echo "$as_me: failed program was:" >&5
10006sed 's/^/| /' conftest.$ac_ext >&5
10007
10008ac_cv_have_decl__snprintf=no
10009fi
10010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10011fi
10012echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
10013echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
10014 if test $ac_cv_have_decl__snprintf = yes; then
10015 gt_value=1
10016 else
10017 gt_value=0
10018 fi
10019
10020cat >>confdefs.h <<_ACEOF
10021#define HAVE_DECL__SNPRINTF $gt_value
10022_ACEOF
10023
10024
10025
10026 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
10027echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
10028if test "${ac_cv_have_decl__snwprintf+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10030else
10031 cat >conftest.$ac_ext <<_ACEOF
10032/* confdefs.h. */
10033_ACEOF
10034cat confdefs.h >>conftest.$ac_ext
10035cat >>conftest.$ac_ext <<_ACEOF
10036/* end confdefs.h. */
10037#include <stdio.h>
10038int
10039main ()
10040{
10041
10042#ifndef _snwprintf
10043 char *p = (char *) _snwprintf;
10044#endif
10045
10046 ;
10047 return 0;
10048}
10049_ACEOF
10050rm -f conftest.$ac_objext
10051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10052 (eval $ac_compile) 2>conftest.er1
10053 ac_status=$?
10054 grep -v '^ *+' conftest.er1 >conftest.err
10055 rm -f conftest.er1
10056 cat conftest.err >&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } &&
10059 { ac_try='test -z "$ac_cxx_werror_flag"
10060 || test ! -s conftest.err'
10061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062 (eval $ac_try) 2>&5
10063 ac_status=$?
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; } &&
10066 { ac_try='test -s conftest.$ac_objext'
10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068 (eval $ac_try) 2>&5
10069 ac_status=$?
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; }; then
10072 ac_cv_have_decl__snwprintf=yes
10073else
10074 echo "$as_me: failed program was:" >&5
10075sed 's/^/| /' conftest.$ac_ext >&5
10076
10077ac_cv_have_decl__snwprintf=no
10078fi
10079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10080fi
10081echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
10082echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
10083 if test $ac_cv_have_decl__snwprintf = yes; then
10084 gt_value=1
10085 else
10086 gt_value=0
10087 fi
10088
10089cat >>confdefs.h <<_ACEOF
10090#define HAVE_DECL__SNWPRINTF $gt_value
10091_ACEOF
10092
10093
10094
10095
10096 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
10097echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
10098if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10100else
10101 cat >conftest.$ac_ext <<_ACEOF
10102/* confdefs.h. */
10103_ACEOF
10104cat confdefs.h >>conftest.$ac_ext
10105cat >>conftest.$ac_ext <<_ACEOF
10106/* end confdefs.h. */
10107#include <stdio.h>
10108int
10109main ()
10110{
10111
10112#ifndef feof_unlocked
10113 char *p = (char *) feof_unlocked;
10114#endif
10115
10116 ;
10117 return 0;
10118}
10119_ACEOF
10120rm -f conftest.$ac_objext
10121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10122 (eval $ac_compile) 2>conftest.er1
10123 ac_status=$?
10124 grep -v '^ *+' conftest.er1 >conftest.err
10125 rm -f conftest.er1
10126 cat conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } &&
10129 { ac_try='test -z "$ac_cxx_werror_flag"
10130 || test ! -s conftest.err'
10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10133 ac_status=$?
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; } &&
10136 { ac_try='test -s conftest.$ac_objext'
10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10139 ac_status=$?
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; }; then
10142 ac_cv_have_decl_feof_unlocked=yes
10143else
10144 echo "$as_me: failed program was:" >&5
10145sed 's/^/| /' conftest.$ac_ext >&5
10146
10147ac_cv_have_decl_feof_unlocked=no
10148fi
10149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10150fi
10151echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
10152echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
10153 if test $ac_cv_have_decl_feof_unlocked = yes; then
10154 gt_value=1
10155 else
10156 gt_value=0
10157 fi
10158
10159cat >>confdefs.h <<_ACEOF
10160#define HAVE_DECL_FEOF_UNLOCKED $gt_value
10161_ACEOF
10162
10163
10164
10165 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
10166echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
10167if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10169else
10170 cat >conftest.$ac_ext <<_ACEOF
10171/* confdefs.h. */
10172_ACEOF
10173cat confdefs.h >>conftest.$ac_ext
10174cat >>conftest.$ac_ext <<_ACEOF
10175/* end confdefs.h. */
10176#include <stdio.h>
10177int
10178main ()
10179{
10180
10181#ifndef fgets_unlocked
10182 char *p = (char *) fgets_unlocked;
10183#endif
10184
10185 ;
10186 return 0;
10187}
10188_ACEOF
10189rm -f conftest.$ac_objext
10190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10191 (eval $ac_compile) 2>conftest.er1
10192 ac_status=$?
10193 grep -v '^ *+' conftest.er1 >conftest.err
10194 rm -f conftest.er1
10195 cat conftest.err >&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); } &&
10198 { ac_try='test -z "$ac_cxx_werror_flag"
10199 || test ! -s conftest.err'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10202 ac_status=$?
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; } &&
10205 { ac_try='test -s conftest.$ac_objext'
10206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207 (eval $ac_try) 2>&5
10208 ac_status=$?
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; }; then
10211 ac_cv_have_decl_fgets_unlocked=yes
10212else
10213 echo "$as_me: failed program was:" >&5
10214sed 's/^/| /' conftest.$ac_ext >&5
10215
10216ac_cv_have_decl_fgets_unlocked=no
10217fi
10218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10219fi
10220echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10221echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
10222 if test $ac_cv_have_decl_fgets_unlocked = yes; then
10223 gt_value=1
10224 else
10225 gt_value=0
10226 fi
10227
10228cat >>confdefs.h <<_ACEOF
10229#define HAVE_DECL_FGETS_UNLOCKED $gt_value
10230_ACEOF
10231
10232
10233
10234 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10235echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
10236if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10238else
10239 cat >conftest.$ac_ext <<_ACEOF
10240/* confdefs.h. */
10241_ACEOF
10242cat confdefs.h >>conftest.$ac_ext
10243cat >>conftest.$ac_ext <<_ACEOF
10244/* end confdefs.h. */
10245#include <stdio.h>
10246int
10247main ()
10248{
10249
10250#ifndef getc_unlocked
10251 char *p = (char *) getc_unlocked;
10252#endif
10253
10254 ;
10255 return 0;
10256}
10257_ACEOF
10258rm -f conftest.$ac_objext
10259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10260 (eval $ac_compile) 2>conftest.er1
10261 ac_status=$?
10262 grep -v '^ *+' conftest.er1 >conftest.err
10263 rm -f conftest.er1
10264 cat conftest.err >&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } &&
10267 { ac_try='test -z "$ac_cxx_werror_flag"
10268 || test ! -s conftest.err'
10269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10270 (eval $ac_try) 2>&5
10271 ac_status=$?
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; } &&
10274 { ac_try='test -s conftest.$ac_objext'
10275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10276 (eval $ac_try) 2>&5
10277 ac_status=$?
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); }; }; then
10280 ac_cv_have_decl_getc_unlocked=yes
10281else
10282 echo "$as_me: failed program was:" >&5
10283sed 's/^/| /' conftest.$ac_ext >&5
10284
10285ac_cv_have_decl_getc_unlocked=no
10286fi
10287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10288fi
10289echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10290echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
10291 if test $ac_cv_have_decl_getc_unlocked = yes; then
10292 gt_value=1
10293 else
10294 gt_value=0
10295 fi
10296
10297cat >>confdefs.h <<_ACEOF
10298#define HAVE_DECL_GETC_UNLOCKED $gt_value
10299_ACEOF
10300
10301
10302
10303 case $gt_cv_func_printf_posix in
10304 *yes) HAVE_POSIX_PRINTF=1 ;;
10305 *) HAVE_POSIX_PRINTF=0 ;;
10306 esac
10307
10308 if test "$ac_cv_func_asprintf" = yes; then
10309 HAVE_ASPRINTF=1
10310 else
10311 HAVE_ASPRINTF=0
10312 fi
10313
10314 if test "$ac_cv_func_snprintf" = yes; then
10315 HAVE_SNPRINTF=1
10316 else
10317 HAVE_SNPRINTF=0
10318 fi
10319
10320 if test "$ac_cv_func_wprintf" = yes; then
10321 HAVE_WPRINTF=1
10322 else
10323 HAVE_WPRINTF=0
10324 fi
10325
10326
10327
10328
10329
10330
10331
10332 am_save_CPPFLAGS="$CPPFLAGS"
10333
10334 for element in $INCICONV; do
10335 haveit=
10336 for x in $CPPFLAGS; do
10337
10338 acl_save_prefix="$prefix"
10339 prefix="$acl_final_prefix"
10340 acl_save_exec_prefix="$exec_prefix"
10341 exec_prefix="$acl_final_exec_prefix"
10342 eval x=\"$x\"
10343 exec_prefix="$acl_save_exec_prefix"
10344 prefix="$acl_save_prefix"
10345
10346 if test "X$x" = "X$element"; then
10347 haveit=yes
10348 break
10349 fi
10350 done
10351 if test -z "$haveit"; then
10352 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10353 fi
10354 done
10355
10356
10357 echo "$as_me:$LINENO: checking for iconv" >&5
10358echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10359if test "${am_cv_func_iconv+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10361else
10362
10363 am_cv_func_iconv="no, consider installing GNU libiconv"
10364 am_cv_lib_iconv=no
10365 cat >conftest.$ac_ext <<_ACEOF
10366/* confdefs.h. */
10367_ACEOF
10368cat confdefs.h >>conftest.$ac_ext
10369cat >>conftest.$ac_ext <<_ACEOF
10370/* end confdefs.h. */
10371#include <stdlib.h>
10372#include <iconv.h>
10373int
10374main ()
10375{
10376iconv_t cd = iconv_open("","");
10377 iconv(cd,NULL,NULL,NULL,NULL);
10378 iconv_close(cd);
10379 ;
10380 return 0;
10381}
10382_ACEOF
10383rm -f conftest.$ac_objext conftest$ac_exeext
10384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10385 (eval $ac_link) 2>conftest.er1
10386 ac_status=$?
10387 grep -v '^ *+' conftest.er1 >conftest.err
10388 rm -f conftest.er1
10389 cat conftest.err >&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); } &&
10392 { ac_try='test -z "$ac_cxx_werror_flag"
10393 || test ! -s conftest.err'
10394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10395 (eval $ac_try) 2>&5
10396 ac_status=$?
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; } &&
10399 { ac_try='test -s conftest$ac_exeext'
10400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10401 (eval $ac_try) 2>&5
10402 ac_status=$?
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; }; then
10405 am_cv_func_iconv=yes
10406else
10407 echo "$as_me: failed program was:" >&5
10408sed 's/^/| /' conftest.$ac_ext >&5
10409
10410fi
10411rm -f conftest.err conftest.$ac_objext \
10412 conftest$ac_exeext conftest.$ac_ext
10413 if test "$am_cv_func_iconv" != yes; then
10414 am_save_LIBS="$LIBS"
10415 LIBS="$LIBS $LIBICONV"
10416 cat >conftest.$ac_ext <<_ACEOF
10417/* confdefs.h. */
10418_ACEOF
10419cat confdefs.h >>conftest.$ac_ext
10420cat >>conftest.$ac_ext <<_ACEOF
10421/* end confdefs.h. */
10422#include <stdlib.h>
10423#include <iconv.h>
10424int
10425main ()
10426{
10427iconv_t cd = iconv_open("","");
10428 iconv(cd,NULL,NULL,NULL,NULL);
10429 iconv_close(cd);
10430 ;
10431 return 0;
10432}
10433_ACEOF
10434rm -f conftest.$ac_objext conftest$ac_exeext
10435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10436 (eval $ac_link) 2>conftest.er1
10437 ac_status=$?
10438 grep -v '^ *+' conftest.er1 >conftest.err
10439 rm -f conftest.er1
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } &&
10443 { ac_try='test -z "$ac_cxx_werror_flag"
10444 || test ! -s conftest.err'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; } &&
10450 { ac_try='test -s conftest$ac_exeext'
10451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452 (eval $ac_try) 2>&5
10453 ac_status=$?
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; }; then
10456 am_cv_lib_iconv=yes
10457 am_cv_func_iconv=yes
10458else
10459 echo "$as_me: failed program was:" >&5
10460sed 's/^/| /' conftest.$ac_ext >&5
10461
10462fi
10463rm -f conftest.err conftest.$ac_objext \
10464 conftest$ac_exeext conftest.$ac_ext
10465 LIBS="$am_save_LIBS"
10466 fi
10467
10468fi
10469echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10470echo "${ECHO_T}$am_cv_func_iconv" >&6
10471 if test "$am_cv_func_iconv" = yes; then
10472
10473cat >>confdefs.h <<\_ACEOF
10474#define HAVE_ICONV 1
10475_ACEOF
10476
10477 fi
10478 if test "$am_cv_lib_iconv" = yes; then
10479 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10480echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10481 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10482echo "${ECHO_T}$LIBICONV" >&6
10483 else
10484 CPPFLAGS="$am_save_CPPFLAGS"
10485 LIBICONV=
10486 LTLIBICONV=
10487 fi
10488
10489
10490
10491 if test "$am_cv_func_iconv" = yes; then
10492 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10493echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10494 if test "${am_cv_proto_iconv+set}" = set; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10496else
10497
10498 cat >conftest.$ac_ext <<_ACEOF
10499/* confdefs.h. */
10500_ACEOF
10501cat confdefs.h >>conftest.$ac_ext
10502cat >>conftest.$ac_ext <<_ACEOF
10503/* end confdefs.h. */
10504
10505#include <stdlib.h>
10506#include <iconv.h>
10507extern
10508#ifdef __cplusplus
10509"C"
10510#endif
10511#if defined(__STDC__) || defined(__cplusplus)
10512size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10513#else
10514size_t iconv();
10515#endif
10516
10517int
10518main ()
10519{
10520
10521 ;
10522 return 0;
10523}
10524_ACEOF
10525rm -f conftest.$ac_objext
10526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10527 (eval $ac_compile) 2>conftest.er1
10528 ac_status=$?
10529 grep -v '^ *+' conftest.er1 >conftest.err
10530 rm -f conftest.er1
10531 cat conftest.err >&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } &&
10534 { ac_try='test -z "$ac_cxx_werror_flag"
10535 || test ! -s conftest.err'
10536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537 (eval $ac_try) 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; } &&
10541 { ac_try='test -s conftest.$ac_objext'
10542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543 (eval $ac_try) 2>&5
10544 ac_status=$?
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; }; then
10547 am_cv_proto_iconv_arg1=""
10548else
10549 echo "$as_me: failed program was:" >&5
10550sed 's/^/| /' conftest.$ac_ext >&5
10551
10552am_cv_proto_iconv_arg1="const"
10553fi
10554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10555 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);"
10556fi
10557
10558 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10559 echo "$as_me:$LINENO: result: ${ac_t:-
10560 }$am_cv_proto_iconv" >&5
10561echo "${ECHO_T}${ac_t:-
10562 }$am_cv_proto_iconv" >&6
10563
10564cat >>confdefs.h <<_ACEOF
10565#define ICONV_CONST $am_cv_proto_iconv_arg1
10566_ACEOF
10567
10568 fi
10569
10570
10571 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10572echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
10573if test "${am_cv_langinfo_codeset+set}" = set; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10575else
10576 cat >conftest.$ac_ext <<_ACEOF
10577/* confdefs.h. */
10578_ACEOF
10579cat confdefs.h >>conftest.$ac_ext
10580cat >>conftest.$ac_ext <<_ACEOF
10581/* end confdefs.h. */
10582#include <langinfo.h>
10583int
10584main ()
10585{
10586char* cs = nl_langinfo(CODESET);
10587 ;
10588 return 0;
10589}
10590_ACEOF
10591rm -f conftest.$ac_objext conftest$ac_exeext
10592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10593 (eval $ac_link) 2>conftest.er1
10594 ac_status=$?
10595 grep -v '^ *+' conftest.er1 >conftest.err
10596 rm -f conftest.er1
10597 cat conftest.err >&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); } &&
10600 { ac_try='test -z "$ac_cxx_werror_flag"
10601 || test ! -s conftest.err'
10602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603 (eval $ac_try) 2>&5
10604 ac_status=$?
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); }; } &&
10607 { ac_try='test -s conftest$ac_exeext'
10608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609 (eval $ac_try) 2>&5
10610 ac_status=$?
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); }; }; then
10613 am_cv_langinfo_codeset=yes
10614else
10615 echo "$as_me: failed program was:" >&5
10616sed 's/^/| /' conftest.$ac_ext >&5
10617
10618am_cv_langinfo_codeset=no
10619fi
10620rm -f conftest.err conftest.$ac_objext \
10621 conftest$ac_exeext conftest.$ac_ext
10622
10623fi
10624echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10625echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
10626 if test $am_cv_langinfo_codeset = yes; then
10627
10628cat >>confdefs.h <<\_ACEOF
10629#define HAVE_LANGINFO_CODESET 1
10630_ACEOF
10631
10632 fi
10633
10634 if test $ac_cv_header_locale_h = yes; then
10635
10636 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10637echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10638if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10640else
10641 cat >conftest.$ac_ext <<_ACEOF
10642/* confdefs.h. */
10643_ACEOF
10644cat confdefs.h >>conftest.$ac_ext
10645cat >>conftest.$ac_ext <<_ACEOF
10646/* end confdefs.h. */
10647#include <locale.h>
10648int
10649main ()
10650{
10651return LC_MESSAGES
10652 ;
10653 return 0;
10654}
10655_ACEOF
10656rm -f conftest.$ac_objext conftest$ac_exeext
10657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10658 (eval $ac_link) 2>conftest.er1
10659 ac_status=$?
10660 grep -v '^ *+' conftest.er1 >conftest.err
10661 rm -f conftest.er1
10662 cat conftest.err >&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } &&
10665 { ac_try='test -z "$ac_cxx_werror_flag"
10666 || test ! -s conftest.err'
10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10669 ac_status=$?
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; } &&
10672 { ac_try='test -s conftest$ac_exeext'
10673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10674 (eval $ac_try) 2>&5
10675 ac_status=$?
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); }; }; then
10678 am_cv_val_LC_MESSAGES=yes
10679else
10680 echo "$as_me: failed program was:" >&5
10681sed 's/^/| /' conftest.$ac_ext >&5
10682
10683am_cv_val_LC_MESSAGES=no
10684fi
10685rm -f conftest.err conftest.$ac_objext \
10686 conftest$ac_exeext conftest.$ac_ext
10687fi
10688echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10689echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10690 if test $am_cv_val_LC_MESSAGES = yes; then
10691
10692cat >>confdefs.h <<\_ACEOF
10693#define HAVE_LC_MESSAGES 1
10694_ACEOF
10695
10696 fi
10697
10698 fi
10699
10700 for ac_prog in bison
10701do
10702 # Extract the first word of "$ac_prog", so it can be a program name with args.
10703set dummy $ac_prog; ac_word=$2
10704echo "$as_me:$LINENO: checking for $ac_word" >&5
10705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10706if test "${ac_cv_prog_INTLBISON+set}" = set; then
10707 echo $ECHO_N "(cached) $ECHO_C" >&6
10708else
10709 if test -n "$INTLBISON"; then
10710 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10711else
10712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10713for as_dir in $PATH
10714do
10715 IFS=$as_save_IFS
10716 test -z "$as_dir" && as_dir=.
10717 for ac_exec_ext in '' $ac_executable_extensions; do
10718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10719 ac_cv_prog_INTLBISON="$ac_prog"
10720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10721 break 2
10722 fi
10723done
10724done
10725
10726fi
10727fi
10728INTLBISON=$ac_cv_prog_INTLBISON
10729if test -n "$INTLBISON"; then
10730 echo "$as_me:$LINENO: result: $INTLBISON" >&5
10731echo "${ECHO_T}$INTLBISON" >&6
10732else
10733 echo "$as_me:$LINENO: result: no" >&5
10734echo "${ECHO_T}no" >&6
10735fi
10736
10737 test -n "$INTLBISON" && break
10738done
10739
10740 if test -z "$INTLBISON"; then
10741 ac_verc_fail=yes
10742 else
10743 echo "$as_me:$LINENO: checking version of bison" >&5
10744echo $ECHO_N "checking version of bison... $ECHO_C" >&6
10745 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10746 case $ac_prog_version in
10747 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10748 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10749 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10750 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10751 esac
10752 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10753echo "${ECHO_T}$ac_prog_version" >&6
10754 fi
10755 if test $ac_verc_fail = yes; then
10756 INTLBISON=:
10757 fi
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10775echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10776 # Check whether --enable-nls or --disable-nls was given.
10777if test "${enable_nls+set}" = set; then
10778 enableval="$enable_nls"
10779 USE_NLS=$enableval
10780else
10781 USE_NLS=yes
10782fi;
10783 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10784echo "${ECHO_T}$USE_NLS" >&6
10785
10786
10787
10788
10789 BUILD_INCLUDED_LIBINTL=no
10790 USE_INCLUDED_LIBINTL=no
10791
10792 LIBINTL=
10793 LTLIBINTL=
10794 POSUB=
10795
10796 if test "$USE_NLS" = "yes"; then
10797 gt_use_preinstalled_gnugettext=no
10798
10799 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10800echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
10801
10802# Check whether --with-included-gettext or --without-included-gettext was given.
10803if test "${with_included_gettext+set}" = set; then
10804 withval="$with_included_gettext"
10805 nls_cv_force_use_gnu_gettext=$withval
10806else
10807 nls_cv_force_use_gnu_gettext=no
10808fi;
10809 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10810echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
10811
10812 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10813 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10814
10815
10816
10817
10818
10819
10820 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10821echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
10822if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10824else
10825 cat >conftest.$ac_ext <<_ACEOF
10826/* confdefs.h. */
10827_ACEOF
10828cat confdefs.h >>conftest.$ac_ext
10829cat >>conftest.$ac_ext <<_ACEOF
10830/* end confdefs.h. */
10831#include <libintl.h>
10832extern int _nl_msg_cat_cntr;
10833extern int *_nl_domain_bindings;
10834int
10835main ()
10836{
10837bindtextdomain ("", "");
10838return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10839 ;
10840 return 0;
10841}
10842_ACEOF
10843rm -f conftest.$ac_objext conftest$ac_exeext
10844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10845 (eval $ac_link) 2>conftest.er1
10846 ac_status=$?
10847 grep -v '^ *+' conftest.er1 >conftest.err
10848 rm -f conftest.er1
10849 cat conftest.err >&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } &&
10852 { ac_try='test -z "$ac_cxx_werror_flag"
10853 || test ! -s conftest.err'
10854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10855 (eval $ac_try) 2>&5
10856 ac_status=$?
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; } &&
10859 { ac_try='test -s conftest$ac_exeext'
10860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861 (eval $ac_try) 2>&5
10862 ac_status=$?
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; }; then
10865 gt_cv_func_gnugettext1_libc=yes
10866else
10867 echo "$as_me: failed program was:" >&5
10868sed 's/^/| /' conftest.$ac_ext >&5
10869
10870gt_cv_func_gnugettext1_libc=no
10871fi
10872rm -f conftest.err conftest.$ac_objext \
10873 conftest$ac_exeext conftest.$ac_ext
10874fi
10875echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10876echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
10877
10878 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10879
10880
10881
10882 use_additional=yes
10883
10884 acl_save_prefix="$prefix"
10885 prefix="$acl_final_prefix"
10886 acl_save_exec_prefix="$exec_prefix"
10887 exec_prefix="$acl_final_exec_prefix"
10888
10889 eval additional_includedir=\"$includedir\"
10890 eval additional_libdir=\"$libdir\"
10891
10892 exec_prefix="$acl_save_exec_prefix"
10893 prefix="$acl_save_prefix"
10894
10895
10896# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
10897if test "${with_libintl_prefix+set}" = set; then
10898 withval="$with_libintl_prefix"
10899
10900 if test "X$withval" = "Xno"; then
10901 use_additional=no
10902 else
10903 if test "X$withval" = "X"; then
10904
10905 acl_save_prefix="$prefix"
10906 prefix="$acl_final_prefix"
10907 acl_save_exec_prefix="$exec_prefix"
10908 exec_prefix="$acl_final_exec_prefix"
10909
10910 eval additional_includedir=\"$includedir\"
10911 eval additional_libdir=\"$libdir\"
10912
10913 exec_prefix="$acl_save_exec_prefix"
10914 prefix="$acl_save_prefix"
10915
10916 else
10917 additional_includedir="$withval/include"
10918 additional_libdir="$withval/lib"
10919 fi
10920 fi
10921
10922fi;
10923 LIBINTL=
10924 LTLIBINTL=
10925 INCINTL=
10926 rpathdirs=
10927 ltrpathdirs=
10928 names_already_handled=
10929 names_next_round='intl '
10930 while test -n "$names_next_round"; do
10931 names_this_round="$names_next_round"
10932 names_next_round=
10933 for name in $names_this_round; do
10934 already_handled=
10935 for n in $names_already_handled; do
10936 if test "$n" = "$name"; then
10937 already_handled=yes
10938 break
10939 fi
10940 done
10941 if test -z "$already_handled"; then
10942 names_already_handled="$names_already_handled $name"
10943 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10944 eval value=\"\$HAVE_LIB$uppername\"
10945 if test -n "$value"; then
10946 if test "$value" = yes; then
10947 eval value=\"\$LIB$uppername\"
10948 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10949 eval value=\"\$LTLIB$uppername\"
10950 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10951 else
10952 :
10953 fi
10954 else
10955 found_dir=
10956 found_la=
10957 found_so=
10958 found_a=
10959 if test $use_additional = yes; then
10960 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10961 found_dir="$additional_libdir"
10962 found_so="$additional_libdir/lib$name.$shlibext"
10963 if test -f "$additional_libdir/lib$name.la"; then
10964 found_la="$additional_libdir/lib$name.la"
10965 fi
10966 else
10967 if test -f "$additional_libdir/lib$name.$libext"; then
10968 found_dir="$additional_libdir"
10969 found_a="$additional_libdir/lib$name.$libext"
10970 if test -f "$additional_libdir/lib$name.la"; then
10971 found_la="$additional_libdir/lib$name.la"
10972 fi
10973 fi
10974 fi
10975 fi
10976 if test "X$found_dir" = "X"; then
10977 for x in $LDFLAGS $LTLIBINTL; do
10978
10979 acl_save_prefix="$prefix"
10980 prefix="$acl_final_prefix"
10981 acl_save_exec_prefix="$exec_prefix"
10982 exec_prefix="$acl_final_exec_prefix"
10983 eval x=\"$x\"
10984 exec_prefix="$acl_save_exec_prefix"
10985 prefix="$acl_save_prefix"
10986
10987 case "$x" in
10988 -L*)
10989 dir=`echo "X$x" | sed -e 's/^X-L//'`
10990 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10991 found_dir="$dir"
10992 found_so="$dir/lib$name.$shlibext"
10993 if test -f "$dir/lib$name.la"; then
10994 found_la="$dir/lib$name.la"
10995 fi
10996 else
10997 if test -f "$dir/lib$name.$libext"; then
10998 found_dir="$dir"
10999 found_a="$dir/lib$name.$libext"
11000 if test -f "$dir/lib$name.la"; then
11001 found_la="$dir/lib$name.la"
11002 fi
11003 fi
11004 fi
11005 ;;
11006 esac
11007 if test "X$found_dir" != "X"; then
11008 break
11009 fi
11010 done
11011 fi
11012 if test "X$found_dir" != "X"; then
11013 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11014 if test "X$found_so" != "X"; then
11015 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11016 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11017 else
11018 haveit=
11019 for x in $ltrpathdirs; do
11020 if test "X$x" = "X$found_dir"; then
11021 haveit=yes
11022 break
11023 fi
11024 done
11025 if test -z "$haveit"; then
11026 ltrpathdirs="$ltrpathdirs $found_dir"
11027 fi
11028 if test "$hardcode_direct" = yes; then
11029 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11030 else
11031 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11032 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11033 haveit=
11034 for x in $rpathdirs; do
11035 if test "X$x" = "X$found_dir"; then
11036 haveit=yes
11037 break
11038 fi
11039 done
11040 if test -z "$haveit"; then
11041 rpathdirs="$rpathdirs $found_dir"
11042 fi
11043 else
11044 haveit=
11045 for x in $LDFLAGS $LIBINTL; do
11046
11047 acl_save_prefix="$prefix"
11048 prefix="$acl_final_prefix"
11049 acl_save_exec_prefix="$exec_prefix"
11050 exec_prefix="$acl_final_exec_prefix"
11051 eval x=\"$x\"
11052 exec_prefix="$acl_save_exec_prefix"
11053 prefix="$acl_save_prefix"
11054
11055 if test "X$x" = "X-L$found_dir"; then
11056 haveit=yes
11057 break
11058 fi
11059 done
11060 if test -z "$haveit"; then
11061 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11062 fi
11063 if test "$hardcode_minus_L" != no; then
11064 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11065 else
11066 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11067 fi
11068 fi
11069 fi
11070 fi
11071 else
11072 if test "X$found_a" != "X"; then
11073 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11074 else
11075 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11076 fi
11077 fi
11078 additional_includedir=
11079 case "$found_dir" in
11080 */lib | */lib/)
11081 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11082 additional_includedir="$basedir/include"
11083 ;;
11084 esac
11085 if test "X$additional_includedir" != "X"; then
11086 if test "X$additional_includedir" != "X/usr/include"; then
11087 haveit=
11088 if test "X$additional_includedir" = "X/usr/local/include"; then
11089 if test -n "$GCC"; then
11090 case $host_os in
11091 linux*) haveit=yes;;
11092 esac
11093 fi
11094 fi
11095 if test -z "$haveit"; then
11096 for x in $CPPFLAGS $INCINTL; do
11097
11098 acl_save_prefix="$prefix"
11099 prefix="$acl_final_prefix"
11100 acl_save_exec_prefix="$exec_prefix"
11101 exec_prefix="$acl_final_exec_prefix"
11102 eval x=\"$x\"
11103 exec_prefix="$acl_save_exec_prefix"
11104 prefix="$acl_save_prefix"
11105
11106 if test "X$x" = "X-I$additional_includedir"; then
11107 haveit=yes
11108 break
11109 fi
11110 done
11111 if test -z "$haveit"; then
11112 if test -d "$additional_includedir"; then
11113 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11114 fi
11115 fi
11116 fi
11117 fi
11118 fi
11119 if test -n "$found_la"; then
11120 save_libdir="$libdir"
11121 case "$found_la" in
11122 */* | *\\*) . "$found_la" ;;
11123 *) . "./$found_la" ;;
11124 esac
11125 libdir="$save_libdir"
11126 for dep in $dependency_libs; do
11127 case "$dep" in
11128 -L*)
11129 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11130 if test "X$additional_libdir" != "X/usr/lib"; then
11131 haveit=
11132 if test "X$additional_libdir" = "X/usr/local/lib"; then
11133 if test -n "$GCC"; then
11134 case $host_os in
11135 linux*) haveit=yes;;
11136 esac
11137 fi
11138 fi
11139 if test -z "$haveit"; then
11140 haveit=
11141 for x in $LDFLAGS $LIBINTL; do
11142
11143 acl_save_prefix="$prefix"
11144 prefix="$acl_final_prefix"
11145 acl_save_exec_prefix="$exec_prefix"
11146 exec_prefix="$acl_final_exec_prefix"
11147 eval x=\"$x\"
11148 exec_prefix="$acl_save_exec_prefix"
11149 prefix="$acl_save_prefix"
11150
11151 if test "X$x" = "X-L$additional_libdir"; then
11152 haveit=yes
11153 break
11154 fi
11155 done
11156 if test -z "$haveit"; then
11157 if test -d "$additional_libdir"; then
11158 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11159 fi
11160 fi
11161 haveit=
11162 for x in $LDFLAGS $LTLIBINTL; do
11163
11164 acl_save_prefix="$prefix"
11165 prefix="$acl_final_prefix"
11166 acl_save_exec_prefix="$exec_prefix"
11167 exec_prefix="$acl_final_exec_prefix"
11168 eval x=\"$x\"
11169 exec_prefix="$acl_save_exec_prefix"
11170 prefix="$acl_save_prefix"
11171
11172 if test "X$x" = "X-L$additional_libdir"; then
11173 haveit=yes
11174 break
11175 fi
11176 done
11177 if test -z "$haveit"; then
11178 if test -d "$additional_libdir"; then
11179 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11180 fi
11181 fi
11182 fi
11183 fi
11184 ;;
11185 -R*)
11186 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11187 if test "$enable_rpath" != no; then
11188 haveit=
11189 for x in $rpathdirs; do
11190 if test "X$x" = "X$dir"; then
11191 haveit=yes
11192 break
11193 fi
11194 done
11195 if test -z "$haveit"; then
11196 rpathdirs="$rpathdirs $dir"
11197 fi
11198 haveit=
11199 for x in $ltrpathdirs; do
11200 if test "X$x" = "X$dir"; then
11201 haveit=yes
11202 break
11203 fi
11204 done
11205 if test -z "$haveit"; then
11206 ltrpathdirs="$ltrpathdirs $dir"
11207 fi
11208 fi
11209 ;;
11210 -l*)
11211 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11212 ;;
11213 *.la)
11214 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11215 ;;
11216 *)
11217 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11218 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11219 ;;
11220 esac
11221 done
11222 fi
11223 else
11224 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11225 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11226 fi
11227 fi
11228 fi
11229 done
11230 done
11231 if test "X$rpathdirs" != "X"; then
11232 if test -n "$hardcode_libdir_separator"; then
11233 alldirs=
11234 for found_dir in $rpathdirs; do
11235 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11236 done
11237 acl_save_libdir="$libdir"
11238 libdir="$alldirs"
11239 eval flag=\"$hardcode_libdir_flag_spec\"
11240 libdir="$acl_save_libdir"
11241 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11242 else
11243 for found_dir in $rpathdirs; do
11244 acl_save_libdir="$libdir"
11245 libdir="$found_dir"
11246 eval flag=\"$hardcode_libdir_flag_spec\"
11247 libdir="$acl_save_libdir"
11248 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11249 done
11250 fi
11251 fi
11252 if test "X$ltrpathdirs" != "X"; then
11253 for found_dir in $ltrpathdirs; do
11254 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11255 done
11256 fi
11257
11258 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11259echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
11260if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11262else
11263 gt_save_CPPFLAGS="$CPPFLAGS"
11264 CPPFLAGS="$CPPFLAGS $INCINTL"
11265 gt_save_LIBS="$LIBS"
11266 LIBS="$LIBS $LIBINTL"
11267 cat >conftest.$ac_ext <<_ACEOF
11268/* confdefs.h. */
11269_ACEOF
11270cat confdefs.h >>conftest.$ac_ext
11271cat >>conftest.$ac_ext <<_ACEOF
11272/* end confdefs.h. */
11273#include <libintl.h>
11274extern int _nl_msg_cat_cntr;
11275extern
11276#ifdef __cplusplus
11277"C"
11278#endif
11279const char *_nl_expand_alias ();
11280int
11281main ()
11282{
11283bindtextdomain ("", "");
11284return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11285 ;
11286 return 0;
11287}
11288_ACEOF
11289rm -f conftest.$ac_objext conftest$ac_exeext
11290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11291 (eval $ac_link) 2>conftest.er1
11292 ac_status=$?
11293 grep -v '^ *+' conftest.er1 >conftest.err
11294 rm -f conftest.er1
11295 cat conftest.err >&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } &&
11298 { ac_try='test -z "$ac_cxx_werror_flag"
11299 || test ! -s conftest.err'
11300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301 (eval $ac_try) 2>&5
11302 ac_status=$?
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; } &&
11305 { ac_try='test -s conftest$ac_exeext'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11308 ac_status=$?
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; }; then
11311 gt_cv_func_gnugettext1_libintl=yes
11312else
11313 echo "$as_me: failed program was:" >&5
11314sed 's/^/| /' conftest.$ac_ext >&5
11315
11316gt_cv_func_gnugettext1_libintl=no
11317fi
11318rm -f conftest.err conftest.$ac_objext \
11319 conftest$ac_exeext conftest.$ac_ext
11320 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11321 LIBS="$LIBS $LIBICONV"
11322 cat >conftest.$ac_ext <<_ACEOF
11323/* confdefs.h. */
11324_ACEOF
11325cat confdefs.h >>conftest.$ac_ext
11326cat >>conftest.$ac_ext <<_ACEOF
11327/* end confdefs.h. */
11328#include <libintl.h>
11329extern int _nl_msg_cat_cntr;
11330extern
11331#ifdef __cplusplus
11332"C"
11333#endif
11334const char *_nl_expand_alias ();
11335int
11336main ()
11337{
11338bindtextdomain ("", "");
11339return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11340 ;
11341 return 0;
11342}
11343_ACEOF
11344rm -f conftest.$ac_objext conftest$ac_exeext
11345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11346 (eval $ac_link) 2>conftest.er1
11347 ac_status=$?
11348 grep -v '^ *+' conftest.er1 >conftest.err
11349 rm -f conftest.er1
11350 cat conftest.err >&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } &&
11353 { ac_try='test -z "$ac_cxx_werror_flag"
11354 || test ! -s conftest.err'
11355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11356 (eval $ac_try) 2>&5
11357 ac_status=$?
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; } &&
11360 { ac_try='test -s conftest$ac_exeext'
11361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362 (eval $ac_try) 2>&5
11363 ac_status=$?
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; }; then
11366 LIBINTL="$LIBINTL $LIBICONV"
11367 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11368 gt_cv_func_gnugettext1_libintl=yes
11369
11370else
11371 echo "$as_me: failed program was:" >&5
11372sed 's/^/| /' conftest.$ac_ext >&5
11373
11374fi
11375rm -f conftest.err conftest.$ac_objext \
11376 conftest$ac_exeext conftest.$ac_ext
11377 fi
11378 CPPFLAGS="$gt_save_CPPFLAGS"
11379 LIBS="$gt_save_LIBS"
11380fi
11381echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11382echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
11383 fi
11384
11385 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11386 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11387 && test "$PACKAGE" != gettext-runtime \
11388 && test "$PACKAGE" != gettext-tools; }; then
11389 gt_use_preinstalled_gnugettext=yes
11390 else
11391 LIBINTL=
11392 LTLIBINTL=
11393 INCINTL=
11394 fi
11395
11396
11397 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11398 nls_cv_use_gnu_gettext=yes
11399 fi
11400 fi
11401
11402 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11403 BUILD_INCLUDED_LIBINTL=yes
11404 USE_INCLUDED_LIBINTL=yes
11405 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11406 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11407 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11408 fi
11409
11410 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11411 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11412 CATOBJEXT=.gmo
11413 fi
11414
11415
11416 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11417 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11418
11419cat >>confdefs.h <<\_ACEOF
11420#define ENABLE_NLS 1
11421_ACEOF
11422
11423 else
11424 USE_NLS=no
11425 fi
11426 fi
11427
11428 echo "$as_me:$LINENO: checking whether to use NLS" >&5
11429echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
11430 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11431echo "${ECHO_T}$USE_NLS" >&6
11432 if test "$USE_NLS" = "yes"; then
11433 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11434echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
11435 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11436 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11437 gt_source="external libintl"
11438 else
11439 gt_source="libc"
11440 fi
11441 else
11442 gt_source="included intl directory"
11443 fi
11444 echo "$as_me:$LINENO: result: $gt_source" >&5
11445echo "${ECHO_T}$gt_source" >&6
11446 fi
11447
11448 if test "$USE_NLS" = "yes"; then
11449
11450 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11451 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11452 echo "$as_me:$LINENO: checking how to link with libintl" >&5
11453echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
11454 echo "$as_me:$LINENO: result: $LIBINTL" >&5
11455echo "${ECHO_T}$LIBINTL" >&6
11456
11457 for element in $INCINTL; do
11458 haveit=
11459 for x in $CPPFLAGS; do
11460
11461 acl_save_prefix="$prefix"
11462 prefix="$acl_final_prefix"
11463 acl_save_exec_prefix="$exec_prefix"
11464 exec_prefix="$acl_final_exec_prefix"
11465 eval x=\"$x\"
11466 exec_prefix="$acl_save_exec_prefix"
11467 prefix="$acl_save_prefix"
11468
11469 if test "X$x" = "X$element"; then
11470 haveit=yes
11471 break
11472 fi
11473 done
11474 if test -z "$haveit"; then
11475 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11476 fi
11477 done
11478
11479 fi
11480
11481
11482cat >>confdefs.h <<\_ACEOF
11483#define HAVE_GETTEXT 1
11484_ACEOF
11485
11486
11487cat >>confdefs.h <<\_ACEOF
11488#define HAVE_DCGETTEXT 1
11489_ACEOF
11490
11491 fi
11492
11493 POSUB=po
11494 fi
11495
11496
11497 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11498 BUILD_INCLUDED_LIBINTL=yes
11499 fi
11500
11501
11502
11503
11504
11505 nls_cv_header_intl=
11506 nls_cv_header_libgt=
11507
11508 DATADIRNAME=share
11509
11510
11511 INSTOBJEXT=.mo
11512
11513
11514 GENCAT=gencat
11515
11516
11517 if test "$USE_INCLUDED_LIBINTL" = yes; then
11518 INTLOBJS="\$(GETTOBJS)"
11519 fi
11520
11521
11522 INTL_LIBTOOL_SUFFIX_PREFIX=
11523
11524
11525
11526 INTLLIBS="$LIBINTL"
11527
11528
11529
11530
11531
11532
11533
11534BOILERPLATE=boilerplate.mk
11535
11536if (sh -c "make --version" 2>/dev/null | grep GNU 2>&1 >/dev/null); then
11537 if sh -c "vncmkdepend" >/dev/null 2>&1; then
11538 BOILERPLATE="$BOILERPLATE:depend.mk"
11539 fi
11540fi
11541
Constantin Kaplinsky97ac5552006-06-02 04:13:14 +000011542 ac_config_files="$ac_config_files Makefile:common.mk:Makefile.in:$BOILERPLATE tx/Makefile:common.mk:tx/Makefile.in:$BOILERPLATE x0vncserver/Makefile:common.mk:x0vncserver/Makefile.in:$BOILERPLATE vncviewer/Makefile:common.mk:vncviewer/Makefile.in:$BOILERPLATE vncconfig/Makefile:common.mk:vncconfig/Makefile.in:$BOILERPLATE vncpasswd/Makefile:common.mk:vncpasswd/Makefile.in:$BOILERPLATE intl/Makefile po/Makefile.in"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011543cat >confcache <<\_ACEOF
11544# This file is a shell script that caches the results of configure
11545# tests run on this system so they can be shared between configure
11546# scripts and configure runs, see configure's option --config-cache.
11547# It is not useful on other systems. If it contains results you don't
11548# want to keep, you may remove or edit it.
11549#
11550# config.status only pays attention to the cache file if you give it
11551# the --recheck option to rerun configure.
11552#
11553# `ac_cv_env_foo' variables (set or unset) will be overridden when
11554# loading this file, other *unset* `ac_cv_foo' will be assigned the
11555# following values.
11556
11557_ACEOF
11558
11559# The following way of writing the cache mishandles newlines in values,
11560# but we know of no workaround that is simple, portable, and efficient.
11561# So, don't put newlines in cache variables' values.
11562# Ultrix sh set writes to stderr and can't be redirected directly,
11563# and sets the high bit in the cache file unless we assign to the vars.
11564{
11565 (set) 2>&1 |
11566 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11567 *ac_space=\ *)
11568 # `set' does not quote correctly, so add quotes (double-quote
11569 # substitution turns \\\\ into \\, and sed turns \\ into \).
11570 sed -n \
11571 "s/'/'\\\\''/g;
11572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11573 ;;
11574 *)
11575 # `set' quotes correctly as required by POSIX, so do not add quotes.
11576 sed -n \
11577 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11578 ;;
11579 esac;
11580} |
11581 sed '
11582 t clear
11583 : clear
11584 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11585 t end
11586 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11587 : end' >>confcache
11588if diff $cache_file confcache >/dev/null 2>&1; then :; else
11589 if test -w $cache_file; then
11590 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11591 cat confcache >$cache_file
11592 else
11593 echo "not updating unwritable cache $cache_file"
11594 fi
11595fi
11596rm -f confcache
11597
11598test "x$prefix" = xNONE && prefix=$ac_default_prefix
11599# Let make expand exec_prefix.
11600test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11601
11602# VPATH may cause trouble with some makes, so we remove $(srcdir),
11603# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11604# trailing colons and then remove the whole line if VPATH becomes empty
11605# (actually we leave an empty line to preserve line numbers).
11606if test "x$srcdir" = x.; then
11607 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11608s/:*\$(srcdir):*/:/;
11609s/:*\${srcdir}:*/:/;
11610s/:*@srcdir@:*/:/;
11611s/^\([^=]*=[ ]*\):*/\1/;
11612s/:*$//;
11613s/^[^=]*=[ ]*$//;
11614}'
11615fi
11616
11617# Transform confdefs.h into DEFS.
11618# Protect against shell expansion while executing Makefile rules.
11619# Protect against Makefile macro expansion.
11620#
11621# If the first sed substitution is executed (which looks for macros that
11622# take arguments), then we branch to the quote section. Otherwise,
11623# look for a macro that doesn't take arguments.
11624cat >confdef2opt.sed <<\_ACEOF
11625t clear
11626: clear
11627s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
11628t quote
11629s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
11630t quote
11631d
11632: quote
11633s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
11634s,\[,\\&,g
11635s,\],\\&,g
11636s,\$,$$,g
11637p
11638_ACEOF
11639# We use echo to avoid assuming a particular line-breaking character.
11640# The extra dot is to prevent the shell from consuming trailing
11641# line-breaks from the sub-command output. A line-break within
11642# single-quotes doesn't work because, if this script is created in a
11643# platform that uses two characters for line-breaks (e.g., DOS), tr
11644# would break.
11645ac_LF_and_DOT=`echo; echo .`
11646DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11647rm -f confdef2opt.sed
11648
11649
11650ac_libobjs=
11651ac_ltlibobjs=
11652for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11653 # 1. Remove the extension, and $U if already installed.
11654 ac_i=`echo "$ac_i" |
11655 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11656 # 2. Add them.
11657 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11658 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11659done
11660LIBOBJS=$ac_libobjs
11661
11662LTLIBOBJS=$ac_ltlibobjs
11663
11664
11665
11666: ${CONFIG_STATUS=./config.status}
11667ac_clean_files_save=$ac_clean_files
11668ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11669{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11670echo "$as_me: creating $CONFIG_STATUS" >&6;}
11671cat >$CONFIG_STATUS <<_ACEOF
11672#! $SHELL
11673# Generated by $as_me.
11674# Run this file to recreate the current configuration.
11675# Compiler output produced by configure, useful for debugging
11676# configure, is in config.log if it exists.
11677
11678debug=false
11679ac_cs_recheck=false
11680ac_cs_silent=false
11681SHELL=\${CONFIG_SHELL-$SHELL}
11682_ACEOF
11683
11684cat >>$CONFIG_STATUS <<\_ACEOF
11685## --------------------- ##
11686## M4sh Initialization. ##
11687## --------------------- ##
11688
11689# Be Bourne compatible
11690if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11691 emulate sh
11692 NULLCMD=:
11693 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11694 # is contrary to our usage. Disable this feature.
11695 alias -g '${1+"$@"}'='"$@"'
11696elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11697 set -o posix
11698fi
11699DUALCASE=1; export DUALCASE # for MKS sh
11700
11701# Support unset when possible.
11702if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11703 as_unset=unset
11704else
11705 as_unset=false
11706fi
11707
11708
11709# Work around bugs in pre-3.0 UWIN ksh.
11710$as_unset ENV MAIL MAILPATH
11711PS1='$ '
11712PS2='> '
11713PS4='+ '
11714
11715# NLS nuisances.
11716for as_var in \
11717 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11718 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11719 LC_TELEPHONE LC_TIME
11720do
11721 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11722 eval $as_var=C; export $as_var
11723 else
11724 $as_unset $as_var
11725 fi
11726done
11727
11728# Required to use basename.
11729if expr a : '\(a\)' >/dev/null 2>&1; then
11730 as_expr=expr
11731else
11732 as_expr=false
11733fi
11734
11735if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11736 as_basename=basename
11737else
11738 as_basename=false
11739fi
11740
11741
11742# Name of the executable.
11743as_me=`$as_basename "$0" ||
11744$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11745 X"$0" : 'X\(//\)$' \| \
11746 X"$0" : 'X\(/\)$' \| \
11747 . : '\(.\)' 2>/dev/null ||
11748echo X/"$0" |
11749 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11750 /^X\/\(\/\/\)$/{ s//\1/; q; }
11751 /^X\/\(\/\).*/{ s//\1/; q; }
11752 s/.*/./; q'`
11753
11754
11755# PATH needs CR, and LINENO needs CR and PATH.
11756# Avoid depending upon Character Ranges.
11757as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11758as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11759as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11760as_cr_digits='0123456789'
11761as_cr_alnum=$as_cr_Letters$as_cr_digits
11762
11763# The user is always right.
11764if test "${PATH_SEPARATOR+set}" != set; then
11765 echo "#! /bin/sh" >conf$$.sh
11766 echo "exit 0" >>conf$$.sh
11767 chmod +x conf$$.sh
11768 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11769 PATH_SEPARATOR=';'
11770 else
11771 PATH_SEPARATOR=:
11772 fi
11773 rm -f conf$$.sh
11774fi
11775
11776
11777 as_lineno_1=$LINENO
11778 as_lineno_2=$LINENO
11779 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11780 test "x$as_lineno_1" != "x$as_lineno_2" &&
11781 test "x$as_lineno_3" = "x$as_lineno_2" || {
11782 # Find who we are. Look in the path if we contain no path at all
11783 # relative or not.
11784 case $0 in
11785 *[\\/]* ) as_myself=$0 ;;
11786 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11787for as_dir in $PATH
11788do
11789 IFS=$as_save_IFS
11790 test -z "$as_dir" && as_dir=.
11791 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11792done
11793
11794 ;;
11795 esac
11796 # We did not find ourselves, most probably we were run as `sh COMMAND'
11797 # in which case we are not to be found in the path.
11798 if test "x$as_myself" = x; then
11799 as_myself=$0
11800 fi
11801 if test ! -f "$as_myself"; then
11802 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11803echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11804 { (exit 1); exit 1; }; }
11805 fi
11806 case $CONFIG_SHELL in
11807 '')
11808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11809for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11810do
11811 IFS=$as_save_IFS
11812 test -z "$as_dir" && as_dir=.
11813 for as_base in sh bash ksh sh5; do
11814 case $as_dir in
11815 /*)
11816 if ("$as_dir/$as_base" -c '
11817 as_lineno_1=$LINENO
11818 as_lineno_2=$LINENO
11819 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11820 test "x$as_lineno_1" != "x$as_lineno_2" &&
11821 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11822 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11823 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11824 CONFIG_SHELL=$as_dir/$as_base
11825 export CONFIG_SHELL
11826 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11827 fi;;
11828 esac
11829 done
11830done
11831;;
11832 esac
11833
11834 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11835 # uniformly replaced by the line number. The first 'sed' inserts a
11836 # line-number line before each line; the second 'sed' does the real
11837 # work. The second script uses 'N' to pair each line-number line
11838 # with the numbered line, and appends trailing '-' during
11839 # substitution so that $LINENO is not a special case at line end.
11840 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11841 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11842 sed '=' <$as_myself |
11843 sed '
11844 N
11845 s,$,-,
11846 : loop
11847 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11848 t loop
11849 s,-$,,
11850 s,^['$as_cr_digits']*\n,,
11851 ' >$as_me.lineno &&
11852 chmod +x $as_me.lineno ||
11853 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11854echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11855 { (exit 1); exit 1; }; }
11856
11857 # Don't try to exec as it changes $[0], causing all sort of problems
11858 # (the dirname of $[0] is not the place where we might find the
11859 # original and so on. Autoconf is especially sensible to this).
11860 . ./$as_me.lineno
11861 # Exit status is that of the last command.
11862 exit
11863}
11864
11865
11866case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11867 *c*,-n*) ECHO_N= ECHO_C='
11868' ECHO_T=' ' ;;
11869 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11870 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11871esac
11872
11873if expr a : '\(a\)' >/dev/null 2>&1; then
11874 as_expr=expr
11875else
11876 as_expr=false
11877fi
11878
11879rm -f conf$$ conf$$.exe conf$$.file
11880echo >conf$$.file
11881if ln -s conf$$.file conf$$ 2>/dev/null; then
11882 # We could just check for DJGPP; but this test a) works b) is more generic
11883 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11884 if test -f conf$$.exe; then
11885 # Don't use ln at all; we don't have any links
11886 as_ln_s='cp -p'
11887 else
11888 as_ln_s='ln -s'
11889 fi
11890elif ln conf$$.file conf$$ 2>/dev/null; then
11891 as_ln_s=ln
11892else
11893 as_ln_s='cp -p'
11894fi
11895rm -f conf$$ conf$$.exe conf$$.file
11896
11897if mkdir -p . 2>/dev/null; then
11898 as_mkdir_p=:
11899else
11900 test -d ./-p && rmdir ./-p
11901 as_mkdir_p=false
11902fi
11903
11904as_executable_p="test -f"
11905
11906# Sed expression to map a string onto a valid CPP name.
11907as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11908
11909# Sed expression to map a string onto a valid variable name.
11910as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11911
11912
11913# IFS
11914# We need space, tab and new line, in precisely that order.
11915as_nl='
11916'
11917IFS=" $as_nl"
11918
11919# CDPATH.
11920$as_unset CDPATH
11921
11922exec 6>&1
11923
11924# Open the log real soon, to keep \$[0] and so on meaningful, and to
11925# report actual input values of CONFIG_FILES etc. instead of their
11926# values after options handling. Logging --version etc. is OK.
11927exec 5>>config.log
11928{
11929 echo
11930 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11931## Running $as_me. ##
11932_ASBOX
11933} >&5
11934cat >&5 <<_CSEOF
11935
11936This file was extended by $as_me, which was
11937generated by GNU Autoconf 2.59. Invocation command line was
11938
11939 CONFIG_FILES = $CONFIG_FILES
11940 CONFIG_HEADERS = $CONFIG_HEADERS
11941 CONFIG_LINKS = $CONFIG_LINKS
11942 CONFIG_COMMANDS = $CONFIG_COMMANDS
11943 $ $0 $@
11944
11945_CSEOF
11946echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11947echo >&5
11948_ACEOF
11949
11950# Files that config.status was made for.
11951if test -n "$ac_config_files"; then
11952 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11953fi
11954
11955if test -n "$ac_config_headers"; then
11956 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11957fi
11958
11959if test -n "$ac_config_links"; then
11960 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11961fi
11962
11963if test -n "$ac_config_commands"; then
11964 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11965fi
11966
11967cat >>$CONFIG_STATUS <<\_ACEOF
11968
11969ac_cs_usage="\
11970\`$as_me' instantiates files from templates according to the
11971current configuration.
11972
11973Usage: $0 [OPTIONS] [FILE]...
11974
11975 -h, --help print this help, then exit
11976 -V, --version print version number, then exit
11977 -q, --quiet do not print progress messages
11978 -d, --debug don't remove temporary files
11979 --recheck update $as_me by reconfiguring in the same conditions
11980 --file=FILE[:TEMPLATE]
11981 instantiate the configuration file FILE
11982
11983Configuration files:
11984$config_files
11985
11986Configuration commands:
11987$config_commands
11988
11989Report bugs to <bug-autoconf@gnu.org>."
11990_ACEOF
11991
11992cat >>$CONFIG_STATUS <<_ACEOF
11993ac_cs_version="\\
11994config.status
11995configured by $0, generated by GNU Autoconf 2.59,
11996 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11997
11998Copyright (C) 2003 Free Software Foundation, Inc.
11999This config.status script is free software; the Free Software Foundation
12000gives unlimited permission to copy, distribute and modify it."
12001srcdir=$srcdir
12002INSTALL="$INSTALL"
12003_ACEOF
12004
12005cat >>$CONFIG_STATUS <<\_ACEOF
12006# If no file are specified by the user, then we need to provide default
12007# value. By we need to know if files were specified by the user.
12008ac_need_defaults=:
12009while test $# != 0
12010do
12011 case $1 in
12012 --*=*)
12013 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12014 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12015 ac_shift=:
12016 ;;
12017 -*)
12018 ac_option=$1
12019 ac_optarg=$2
12020 ac_shift=shift
12021 ;;
12022 *) # This is not an option, so the user has probably given explicit
12023 # arguments.
12024 ac_option=$1
12025 ac_need_defaults=false;;
12026 esac
12027
12028 case $ac_option in
12029 # Handling of the options.
12030_ACEOF
12031cat >>$CONFIG_STATUS <<\_ACEOF
12032 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12033 ac_cs_recheck=: ;;
12034 --version | --vers* | -V )
12035 echo "$ac_cs_version"; exit 0 ;;
12036 --he | --h)
12037 # Conflict between --help and --header
12038 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12039Try \`$0 --help' for more information." >&5
12040echo "$as_me: error: ambiguous option: $1
12041Try \`$0 --help' for more information." >&2;}
12042 { (exit 1); exit 1; }; };;
12043 --help | --hel | -h )
12044 echo "$ac_cs_usage"; exit 0 ;;
12045 --debug | --d* | -d )
12046 debug=: ;;
12047 --file | --fil | --fi | --f )
12048 $ac_shift
12049 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12050 ac_need_defaults=false;;
12051 --header | --heade | --head | --hea )
12052 $ac_shift
12053 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12054 ac_need_defaults=false;;
12055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12056 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12057 ac_cs_silent=: ;;
12058
12059 # This is an error.
12060 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12061Try \`$0 --help' for more information." >&5
12062echo "$as_me: error: unrecognized option: $1
12063Try \`$0 --help' for more information." >&2;}
12064 { (exit 1); exit 1; }; } ;;
12065
12066 *) ac_config_targets="$ac_config_targets $1" ;;
12067
12068 esac
12069 shift
12070done
12071
12072ac_configure_extra_args=
12073
12074if $ac_cs_silent; then
12075 exec 6>/dev/null
12076 ac_configure_extra_args="$ac_configure_extra_args --silent"
12077fi
12078
12079_ACEOF
12080cat >>$CONFIG_STATUS <<_ACEOF
12081if \$ac_cs_recheck; then
12082 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12083 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12084fi
12085
12086_ACEOF
12087
12088cat >>$CONFIG_STATUS <<_ACEOF
12089#
12090# INIT-COMMANDS section.
12091#
12092
12093# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12094 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12095 # from automake.
12096 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12097 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12098 LINGUAS="${LINGUAS-%UNSET%}"
12099
12100
12101_ACEOF
12102
12103
12104
12105cat >>$CONFIG_STATUS <<\_ACEOF
12106for ac_config_target in $ac_config_targets
12107do
12108 case "$ac_config_target" in
12109 # Handling of arguments.
Constantin Kaplinsky97ac5552006-06-02 04:13:14 +000012110 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:common.mk:Makefile.in:$BOILERPLATE" ;;
12111 "tx/Makefile" ) CONFIG_FILES="$CONFIG_FILES tx/Makefile:common.mk:tx/Makefile.in:$BOILERPLATE" ;;
12112 "x0vncserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES x0vncserver/Makefile:common.mk:x0vncserver/Makefile.in:$BOILERPLATE" ;;
12113 "vncviewer/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncviewer/Makefile:common.mk:vncviewer/Makefile.in:$BOILERPLATE" ;;
12114 "vncconfig/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncconfig/Makefile:common.mk:vncconfig/Makefile.in:$BOILERPLATE" ;;
12115 "vncpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncpasswd/Makefile:common.mk:vncpasswd/Makefile.in:$BOILERPLATE" ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012116 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12117 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012118 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12119 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12120echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12121 { (exit 1); exit 1; }; };;
12122 esac
12123done
12124
12125# If the user did not use the arguments to specify the items to instantiate,
12126# then the envvar interface is used. Set only those that are not.
12127# We use the long form for the default assignment because of an extremely
12128# bizarre bug on SunOS 4.1.3.
12129if $ac_need_defaults; then
12130 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12131 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12132fi
12133
12134# Have a temporary directory for convenience. Make it in the build tree
12135# simply because there is no reason to put it here, and in addition,
12136# creating and moving files from /tmp can sometimes cause problems.
12137# Create a temporary directory, and hook for its removal unless debugging.
12138$debug ||
12139{
12140 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12141 trap '{ (exit 1); exit 1; }' 1 2 13 15
12142}
12143
12144# Create a (secure) tmp directory for tmp files.
12145
12146{
12147 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12148 test -n "$tmp" && test -d "$tmp"
12149} ||
12150{
12151 tmp=./confstat$$-$RANDOM
12152 (umask 077 && mkdir $tmp)
12153} ||
12154{
12155 echo "$me: cannot create a temporary directory in ." >&2
12156 { (exit 1); exit 1; }
12157}
12158
12159_ACEOF
12160
12161cat >>$CONFIG_STATUS <<_ACEOF
12162
12163#
12164# CONFIG_FILES section.
12165#
12166
12167# No need to generate the scripts if there are no CONFIG_FILES.
12168# This happens for instance when ./config.status config.h
12169if test -n "\$CONFIG_FILES"; then
12170 # Protect against being on the right side of a sed subst in config.status.
12171 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12172 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12173s,@SHELL@,$SHELL,;t t
12174s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12175s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12176s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12177s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12178s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12179s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12180s,@exec_prefix@,$exec_prefix,;t t
12181s,@prefix@,$prefix,;t t
12182s,@program_transform_name@,$program_transform_name,;t t
12183s,@bindir@,$bindir,;t t
12184s,@sbindir@,$sbindir,;t t
12185s,@libexecdir@,$libexecdir,;t t
12186s,@datadir@,$datadir,;t t
12187s,@sysconfdir@,$sysconfdir,;t t
12188s,@sharedstatedir@,$sharedstatedir,;t t
12189s,@localstatedir@,$localstatedir,;t t
12190s,@libdir@,$libdir,;t t
12191s,@includedir@,$includedir,;t t
12192s,@oldincludedir@,$oldincludedir,;t t
12193s,@infodir@,$infodir,;t t
12194s,@mandir@,$mandir,;t t
12195s,@build_alias@,$build_alias,;t t
12196s,@host_alias@,$host_alias,;t t
12197s,@target_alias@,$target_alias,;t t
12198s,@DEFS@,$DEFS,;t t
12199s,@ECHO_C@,$ECHO_C,;t t
12200s,@ECHO_N@,$ECHO_N,;t t
12201s,@ECHO_T@,$ECHO_T,;t t
12202s,@LIBS@,$LIBS,;t t
12203s,@PACKAGE@,$PACKAGE,;t t
12204s,@VERSION@,$VERSION,;t t
12205s,@CC@,$CC,;t t
12206s,@CFLAGS@,$CFLAGS,;t t
12207s,@LDFLAGS@,$LDFLAGS,;t t
12208s,@CPPFLAGS@,$CPPFLAGS,;t t
12209s,@ac_ct_CC@,$ac_ct_CC,;t t
12210s,@EXEEXT@,$EXEEXT,;t t
12211s,@OBJEXT@,$OBJEXT,;t t
12212s,@CXX@,$CXX,;t t
12213s,@CXXFLAGS@,$CXXFLAGS,;t t
12214s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12215s,@RANLIB@,$RANLIB,;t t
12216s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12217s,@SET_MAKE@,$SET_MAKE,;t t
12218s,@MITSHM_DEFINE@,$MITSHM_DEFINE,;t t
Constantin Kaplinskya8748812007-09-05 09:29:06 +000012219s,@DMEDIA_LIB@,$DMEDIA_LIB,;t t
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012220s,@CXXCPP@,$CXXCPP,;t t
12221s,@X_CFLAGS@,$X_CFLAGS,;t t
12222s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
12223s,@X_LIBS@,$X_LIBS,;t t
12224s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
12225s,@ZLIB_DIR@,$ZLIB_DIR,;t t
12226s,@ZLIB_INCLUDE@,$ZLIB_INCLUDE,;t t
12227s,@ZLIB_LIB@,$ZLIB_LIB,;t t
12228s,@JPEG_DIR@,$JPEG_DIR,;t t
12229s,@JPEG_INCLUDE@,$JPEG_INCLUDE,;t t
12230s,@JPEG_LIB@,$JPEG_LIB,;t t
12231s,@VNCCONFIG_DIR@,$VNCCONFIG_DIR,;t t
12232s,@XTEST_DEFINE@,$XTEST_DEFINE,;t t
12233s,@XTEST_LIB@,$XTEST_LIB,;t t
12234s,@READDISPLAY_DEFINE@,$READDISPLAY_DEFINE,;t t
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012235s,@INET_LIB@,$INET_LIB,;t t
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012236s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12237s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12238s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12239s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12240s,@USE_NLS@,$USE_NLS,;t t
12241s,@MSGFMT@,$MSGFMT,;t t
12242s,@GMSGFMT@,$GMSGFMT,;t t
12243s,@XGETTEXT@,$XGETTEXT,;t t
12244s,@MSGMERGE@,$MSGMERGE,;t t
12245s,@build@,$build,;t t
12246s,@build_cpu@,$build_cpu,;t t
12247s,@build_vendor@,$build_vendor,;t t
12248s,@build_os@,$build_os,;t t
12249s,@host@,$host,;t t
12250s,@host_cpu@,$host_cpu,;t t
12251s,@host_vendor@,$host_vendor,;t t
12252s,@host_os@,$host_os,;t t
12253s,@EGREP@,$EGREP,;t t
12254s,@ALLOCA@,$ALLOCA,;t t
12255s,@GLIBC21@,$GLIBC21,;t t
12256s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
12257s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
12258s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
12259s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
12260s,@LIBICONV@,$LIBICONV,;t t
12261s,@LTLIBICONV@,$LTLIBICONV,;t t
12262s,@INTLBISON@,$INTLBISON,;t t
12263s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
12264s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
12265s,@CATOBJEXT@,$CATOBJEXT,;t t
12266s,@DATADIRNAME@,$DATADIRNAME,;t t
12267s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12268s,@GENCAT@,$GENCAT,;t t
12269s,@INTLOBJS@,$INTLOBJS,;t t
12270s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
12271s,@INTLLIBS@,$INTLLIBS,;t t
12272s,@LIBINTL@,$LIBINTL,;t t
12273s,@LTLIBINTL@,$LTLIBINTL,;t t
12274s,@POSUB@,$POSUB,;t t
12275s,@LIBOBJS@,$LIBOBJS,;t t
12276s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12277CEOF
12278
12279_ACEOF
12280
12281 cat >>$CONFIG_STATUS <<\_ACEOF
12282 # Split the substitutions into bite-sized pieces for seds with
12283 # small command number limits, like on Digital OSF/1 and HP-UX.
12284 ac_max_sed_lines=48
12285 ac_sed_frag=1 # Number of current file.
12286 ac_beg=1 # First line for current file.
12287 ac_end=$ac_max_sed_lines # Line after last line for current file.
12288 ac_more_lines=:
12289 ac_sed_cmds=
12290 while $ac_more_lines; do
12291 if test $ac_beg -gt 1; then
12292 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12293 else
12294 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12295 fi
12296 if test ! -s $tmp/subs.frag; then
12297 ac_more_lines=false
12298 else
12299 # The purpose of the label and of the branching condition is to
12300 # speed up the sed processing (if there are no `@' at all, there
12301 # is no need to browse any of the substitutions).
12302 # These are the two extra sed commands mentioned above.
12303 (echo ':t
12304 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12305 if test -z "$ac_sed_cmds"; then
12306 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12307 else
12308 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12309 fi
12310 ac_sed_frag=`expr $ac_sed_frag + 1`
12311 ac_beg=$ac_end
12312 ac_end=`expr $ac_end + $ac_max_sed_lines`
12313 fi
12314 done
12315 if test -z "$ac_sed_cmds"; then
12316 ac_sed_cmds=cat
12317 fi
12318fi # test -n "$CONFIG_FILES"
12319
12320_ACEOF
12321cat >>$CONFIG_STATUS <<\_ACEOF
12322for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12323 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12324 case $ac_file in
12325 - | *:- | *:-:* ) # input from stdin
12326 cat >$tmp/stdin
12327 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12328 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12329 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12330 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12331 * ) ac_file_in=$ac_file.in ;;
12332 esac
12333
12334 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12335 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12336$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12337 X"$ac_file" : 'X\(//\)[^/]' \| \
12338 X"$ac_file" : 'X\(//\)$' \| \
12339 X"$ac_file" : 'X\(/\)' \| \
12340 . : '\(.\)' 2>/dev/null ||
12341echo X"$ac_file" |
12342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12343 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12344 /^X\(\/\/\)$/{ s//\1/; q; }
12345 /^X\(\/\).*/{ s//\1/; q; }
12346 s/.*/./; q'`
12347 { if $as_mkdir_p; then
12348 mkdir -p "$ac_dir"
12349 else
12350 as_dir="$ac_dir"
12351 as_dirs=
12352 while test ! -d "$as_dir"; do
12353 as_dirs="$as_dir $as_dirs"
12354 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12355$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12356 X"$as_dir" : 'X\(//\)[^/]' \| \
12357 X"$as_dir" : 'X\(//\)$' \| \
12358 X"$as_dir" : 'X\(/\)' \| \
12359 . : '\(.\)' 2>/dev/null ||
12360echo X"$as_dir" |
12361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12363 /^X\(\/\/\)$/{ s//\1/; q; }
12364 /^X\(\/\).*/{ s//\1/; q; }
12365 s/.*/./; q'`
12366 done
12367 test ! -n "$as_dirs" || mkdir $as_dirs
12368 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12369echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12370 { (exit 1); exit 1; }; }; }
12371
12372 ac_builddir=.
12373
12374if test "$ac_dir" != .; then
12375 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12376 # A "../" for each directory in $ac_dir_suffix.
12377 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12378else
12379 ac_dir_suffix= ac_top_builddir=
12380fi
12381
12382case $srcdir in
12383 .) # No --srcdir option. We are building in place.
12384 ac_srcdir=.
12385 if test -z "$ac_top_builddir"; then
12386 ac_top_srcdir=.
12387 else
12388 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12389 fi ;;
12390 [\\/]* | ?:[\\/]* ) # Absolute path.
12391 ac_srcdir=$srcdir$ac_dir_suffix;
12392 ac_top_srcdir=$srcdir ;;
12393 *) # Relative path.
12394 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12395 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12396esac
12397
12398# Do not use `cd foo && pwd` to compute absolute paths, because
12399# the directories may not exist.
12400case `pwd` in
12401.) ac_abs_builddir="$ac_dir";;
12402*)
12403 case "$ac_dir" in
12404 .) ac_abs_builddir=`pwd`;;
12405 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12406 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12407 esac;;
12408esac
12409case $ac_abs_builddir in
12410.) ac_abs_top_builddir=${ac_top_builddir}.;;
12411*)
12412 case ${ac_top_builddir}. in
12413 .) ac_abs_top_builddir=$ac_abs_builddir;;
12414 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12415 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12416 esac;;
12417esac
12418case $ac_abs_builddir in
12419.) ac_abs_srcdir=$ac_srcdir;;
12420*)
12421 case $ac_srcdir in
12422 .) ac_abs_srcdir=$ac_abs_builddir;;
12423 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12424 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12425 esac;;
12426esac
12427case $ac_abs_builddir in
12428.) ac_abs_top_srcdir=$ac_top_srcdir;;
12429*)
12430 case $ac_top_srcdir in
12431 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12432 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12433 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12434 esac;;
12435esac
12436
12437
12438 case $INSTALL in
12439 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12440 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12441 esac
12442
12443 if test x"$ac_file" != x-; then
12444 { echo "$as_me:$LINENO: creating $ac_file" >&5
12445echo "$as_me: creating $ac_file" >&6;}
12446 rm -f "$ac_file"
12447 fi
12448 # Let's still pretend it is `configure' which instantiates (i.e., don't
12449 # use $as_me), people would be surprised to read:
12450 # /* config.h. Generated by config.status. */
12451 if test x"$ac_file" = x-; then
12452 configure_input=
12453 else
12454 configure_input="$ac_file. "
12455 fi
12456 configure_input=$configure_input"Generated from `echo $ac_file_in |
12457 sed 's,.*/,,'` by configure."
12458
12459 # First look for the input files in the build tree, otherwise in the
12460 # src tree.
12461 ac_file_inputs=`IFS=:
12462 for f in $ac_file_in; do
12463 case $f in
12464 -) echo $tmp/stdin ;;
12465 [\\/$]*)
12466 # Absolute (can't be DOS-style, as IFS=:)
12467 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12468echo "$as_me: error: cannot find input file: $f" >&2;}
12469 { (exit 1); exit 1; }; }
12470 echo "$f";;
12471 *) # Relative
12472 if test -f "$f"; then
12473 # Build tree
12474 echo "$f"
12475 elif test -f "$srcdir/$f"; then
12476 # Source tree
12477 echo "$srcdir/$f"
12478 else
12479 # /dev/null tree
12480 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12481echo "$as_me: error: cannot find input file: $f" >&2;}
12482 { (exit 1); exit 1; }; }
12483 fi;;
12484 esac
12485 done` || { (exit 1); exit 1; }
12486_ACEOF
12487cat >>$CONFIG_STATUS <<_ACEOF
12488 sed "$ac_vpsub
12489$extrasub
12490_ACEOF
12491cat >>$CONFIG_STATUS <<\_ACEOF
12492:t
12493/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12494s,@configure_input@,$configure_input,;t t
12495s,@srcdir@,$ac_srcdir,;t t
12496s,@abs_srcdir@,$ac_abs_srcdir,;t t
12497s,@top_srcdir@,$ac_top_srcdir,;t t
12498s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12499s,@builddir@,$ac_builddir,;t t
12500s,@abs_builddir@,$ac_abs_builddir,;t t
12501s,@top_builddir@,$ac_top_builddir,;t t
12502s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12503s,@INSTALL@,$ac_INSTALL,;t t
12504" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12505 rm -f $tmp/stdin
12506 if test x"$ac_file" != x-; then
12507 mv $tmp/out $ac_file
12508 else
12509 cat $tmp/out
12510 rm -f $tmp/out
12511 fi
12512
12513done
12514_ACEOF
12515cat >>$CONFIG_STATUS <<\_ACEOF
12516
12517#
12518# CONFIG_COMMANDS section.
12519#
12520for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12521 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12522 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12523 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12524$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12525 X"$ac_dest" : 'X\(//\)[^/]' \| \
12526 X"$ac_dest" : 'X\(//\)$' \| \
12527 X"$ac_dest" : 'X\(/\)' \| \
12528 . : '\(.\)' 2>/dev/null ||
12529echo X"$ac_dest" |
12530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12531 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12532 /^X\(\/\/\)$/{ s//\1/; q; }
12533 /^X\(\/\).*/{ s//\1/; q; }
12534 s/.*/./; q'`
12535 { if $as_mkdir_p; then
12536 mkdir -p "$ac_dir"
12537 else
12538 as_dir="$ac_dir"
12539 as_dirs=
12540 while test ! -d "$as_dir"; do
12541 as_dirs="$as_dir $as_dirs"
12542 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12543$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12544 X"$as_dir" : 'X\(//\)[^/]' \| \
12545 X"$as_dir" : 'X\(//\)$' \| \
12546 X"$as_dir" : 'X\(/\)' \| \
12547 . : '\(.\)' 2>/dev/null ||
12548echo X"$as_dir" |
12549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12550 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12551 /^X\(\/\/\)$/{ s//\1/; q; }
12552 /^X\(\/\).*/{ s//\1/; q; }
12553 s/.*/./; q'`
12554 done
12555 test ! -n "$as_dirs" || mkdir $as_dirs
12556 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12557echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12558 { (exit 1); exit 1; }; }; }
12559
12560 ac_builddir=.
12561
12562if test "$ac_dir" != .; then
12563 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12564 # A "../" for each directory in $ac_dir_suffix.
12565 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12566else
12567 ac_dir_suffix= ac_top_builddir=
12568fi
12569
12570case $srcdir in
12571 .) # No --srcdir option. We are building in place.
12572 ac_srcdir=.
12573 if test -z "$ac_top_builddir"; then
12574 ac_top_srcdir=.
12575 else
12576 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12577 fi ;;
12578 [\\/]* | ?:[\\/]* ) # Absolute path.
12579 ac_srcdir=$srcdir$ac_dir_suffix;
12580 ac_top_srcdir=$srcdir ;;
12581 *) # Relative path.
12582 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12583 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12584esac
12585
12586# Do not use `cd foo && pwd` to compute absolute paths, because
12587# the directories may not exist.
12588case `pwd` in
12589.) ac_abs_builddir="$ac_dir";;
12590*)
12591 case "$ac_dir" in
12592 .) ac_abs_builddir=`pwd`;;
12593 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12594 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12595 esac;;
12596esac
12597case $ac_abs_builddir in
12598.) ac_abs_top_builddir=${ac_top_builddir}.;;
12599*)
12600 case ${ac_top_builddir}. in
12601 .) ac_abs_top_builddir=$ac_abs_builddir;;
12602 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12603 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12604 esac;;
12605esac
12606case $ac_abs_builddir in
12607.) ac_abs_srcdir=$ac_srcdir;;
12608*)
12609 case $ac_srcdir in
12610 .) ac_abs_srcdir=$ac_abs_builddir;;
12611 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12612 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12613 esac;;
12614esac
12615case $ac_abs_builddir in
12616.) ac_abs_top_srcdir=$ac_top_srcdir;;
12617*)
12618 case $ac_top_srcdir in
12619 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12620 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12621 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12622 esac;;
12623esac
12624
12625
12626 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12627echo "$as_me: executing $ac_dest commands" >&6;}
12628 case $ac_dest in
12629 default-1 )
12630 for ac_file in $CONFIG_FILES; do
12631 # Support "outfile[:infile[:infile...]]"
12632 case "$ac_file" in
12633 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12634 esac
12635 # PO directories have a Makefile.in generated from Makefile.in.in.
12636 case "$ac_file" in */Makefile.in)
12637 # Adjust a relative srcdir.
12638 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12639 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12640 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12641 # In autoconf-2.13 it is called $ac_given_srcdir.
12642 # In autoconf-2.50 it is called $srcdir.
12643 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12644 case "$ac_given_srcdir" in
12645 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12646 /*) top_srcdir="$ac_given_srcdir" ;;
12647 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12648 esac
12649 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12650 rm -f "$ac_dir/POTFILES"
12651 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12652 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12653 POMAKEFILEDEPS="POTFILES.in"
12654 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12655 # on $ac_dir but don't depend on user-specified configuration
12656 # parameters.
12657 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12658 # The LINGUAS file contains the set of available languages.
12659 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12660 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12661 fi
12662 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12663 # Hide the ALL_LINGUAS assigment from automake.
12664 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12665 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12666 else
12667 # The set of available languages was given in configure.in.
12668 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12669 fi
12670 # Compute POFILES
12671 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12672 # Compute UPDATEPOFILES
12673 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12674 # Compute DUMMYPOFILES
12675 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12676 # Compute GMOFILES
12677 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12678 case "$ac_given_srcdir" in
12679 .) srcdirpre= ;;
12680 *) srcdirpre='$(srcdir)/' ;;
12681 esac
12682 POFILES=
12683 UPDATEPOFILES=
12684 DUMMYPOFILES=
12685 GMOFILES=
12686 for lang in $ALL_LINGUAS; do
12687 POFILES="$POFILES $srcdirpre$lang.po"
12688 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12689 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12690 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12691 done
12692 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12693 # environment variable.
12694 INST_LINGUAS=
12695 if test -n "$ALL_LINGUAS"; then
12696 for presentlang in $ALL_LINGUAS; do
12697 useit=no
12698 if test "%UNSET%" != "$LINGUAS"; then
12699 desiredlanguages="$LINGUAS"
12700 else
12701 desiredlanguages="$ALL_LINGUAS"
12702 fi
12703 for desiredlang in $desiredlanguages; do
12704 # Use the presentlang catalog if desiredlang is
12705 # a. equal to presentlang, or
12706 # b. a variant of presentlang (because in this case,
12707 # presentlang can be used as a fallback for messages
12708 # which are not translated in the desiredlang catalog).
12709 case "$desiredlang" in
12710 "$presentlang"*) useit=yes;;
12711 esac
12712 done
12713 if test $useit = yes; then
12714 INST_LINGUAS="$INST_LINGUAS $presentlang"
12715 fi
12716 done
12717 fi
12718 CATALOGS=
12719 if test -n "$INST_LINGUAS"; then
12720 for lang in $INST_LINGUAS; do
12721 CATALOGS="$CATALOGS $lang.gmo"
12722 done
12723 fi
12724 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12725 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"
12726 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12727 if test -f "$f"; then
12728 case "$f" in
12729 *.orig | *.bak | *~) ;;
12730 *) cat "$f" >> "$ac_dir/Makefile" ;;
12731 esac
12732 fi
12733 done
12734 fi
12735 ;;
12736 esac
12737 done ;;
12738 esac
12739done
12740_ACEOF
12741
12742cat >>$CONFIG_STATUS <<\_ACEOF
12743
12744{ (exit 0); exit 0; }
12745_ACEOF
12746chmod +x $CONFIG_STATUS
12747ac_clean_files=$ac_clean_files_save
12748
12749
12750# configure is writing to config.log, and then calls config.status.
12751# config.status does its own redirection, appending to config.log.
12752# Unfortunately, on DOS this fails, as config.log is still kept open
12753# by configure, so config.status won't be able to write to it; its
12754# output is simply discarded. So we exec the FD to /dev/null,
12755# effectively closing config.log, so it can be properly (re)opened and
12756# appended to by config.status. When coming back to configure, we
12757# need to make the FD available again.
12758if test "$no_create" != yes; then
12759 ac_cs_success=:
12760 ac_config_status_args=
12761 test "$silent" = yes &&
12762 ac_config_status_args="$ac_config_status_args --quiet"
12763 exec 5>/dev/null
12764 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12765 exec 5>>config.log
12766 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12767 # would make configure fail if this is the last instruction.
12768 $ac_cs_success || { (exit 1); exit 1; }
12769fi
12770