blob: bd609b3b334c8c0b4ef031fcbde052e7d09cc592 [file] [log] [blame]
Adam Tkacfded0782008-03-22 11:20:54 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552exec 7<&0 </dev/null 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="vncviewer/vncviewer.cxx"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594# include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599# include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='SHELL
617PATH_SEPARATOR
618PACKAGE_NAME
619PACKAGE_TARNAME
620PACKAGE_VERSION
621PACKAGE_STRING
622PACKAGE_BUGREPORT
623exec_prefix
624prefix
625program_transform_name
626bindir
627sbindir
628libexecdir
629datarootdir
630datadir
631sysconfdir
632sharedstatedir
633localstatedir
634includedir
635oldincludedir
636docdir
637infodir
638htmldir
639dvidir
640pdfdir
641psdir
642libdir
643localedir
644mandir
645DEFS
646ECHO_C
647ECHO_N
648ECHO_T
649LIBS
650build_alias
651host_alias
652target_alias
653PACKAGE
654VERSION
655CC
656CFLAGS
657LDFLAGS
658CPPFLAGS
659ac_ct_CC
660EXEEXT
661OBJEXT
662CXX
663CXXFLAGS
664ac_ct_CXX
665RANLIB
666SET_MAKE
667MITSHM_DEFINE
668CL_LIB
669DMEDIA_LIB
670XMKMF
671CXXCPP
672X_CFLAGS
673X_PRE_LIBS
674X_LIBS
675X_EXTRA_LIBS
676ZLIB_DIR
677ZLIB_INCLUDE
678ZLIB_LIB
679JPEG_DIR
680JPEG_INCLUDE
681JPEG_LIB
682VNCCONFIG_DIR
683XTEST_DEFINE
684XTEST_LIB
685READDISPLAY_DEFINE
686INET_LIB
687INSTALL_PROGRAM
688INSTALL_SCRIPT
689INSTALL_DATA
690MKINSTALLDIRS
691USE_NLS
692MSGFMT
693GMSGFMT
694XGETTEXT
695MSGMERGE
696build
697build_cpu
698build_vendor
699build_os
700host
701host_cpu
702host_vendor
703host_os
704GREP
705EGREP
706ALLOCA
707GLIBC21
708HAVE_POSIX_PRINTF
709HAVE_ASPRINTF
710HAVE_SNPRINTF
711HAVE_WPRINTF
712LIBICONV
713LTLIBICONV
714INTLBISON
715BUILD_INCLUDED_LIBINTL
716USE_INCLUDED_LIBINTL
717CATOBJEXT
718DATADIRNAME
719INSTOBJEXT
720GENCAT
721INTLOBJS
722INTL_LIBTOOL_SUFFIX_PREFIX
723INTLLIBS
724LIBINTL
725LTLIBINTL
726POSUB
727LIBOBJS
728LTLIBOBJS'
729ac_subst_files=''
730 ac_precious_vars='build_alias
731host_alias
732target_alias
733CC
734CFLAGS
735LDFLAGS
736LIBS
737CPPFLAGS
738CXX
739CXXFLAGS
740CCC
741XMKMF
742CXXCPP'
743
744
745# Initialize some variables set by options.
746ac_init_help=
747ac_init_version=false
748# The variables have the same names as the options, with
749# dashes changed to underlines.
750cache_file=/dev/null
751exec_prefix=NONE
752no_create=
753no_recursion=
754prefix=NONE
755program_prefix=NONE
756program_suffix=NONE
757program_transform_name=s,x,x,
758silent=
759site=
760srcdir=
761verbose=
762x_includes=NONE
763x_libraries=NONE
764
765# Installation directory options.
766# These are left unexpanded so users can "make install exec_prefix=/foo"
767# and all the variables that are supposed to be based on exec_prefix
768# by default will actually change.
769# Use braces instead of parens because sh, perl, etc. also accept them.
770# (The list follows the same order as the GNU Coding Standards.)
771bindir='${exec_prefix}/bin'
772sbindir='${exec_prefix}/sbin'
773libexecdir='${exec_prefix}/libexec'
774datarootdir='${prefix}/share'
775datadir='${datarootdir}'
776sysconfdir='${prefix}/etc'
777sharedstatedir='${prefix}/com'
778localstatedir='${prefix}/var'
779includedir='${prefix}/include'
780oldincludedir='/usr/include'
781docdir='${datarootdir}/doc/${PACKAGE}'
782infodir='${datarootdir}/info'
783htmldir='${docdir}'
784dvidir='${docdir}'
785pdfdir='${docdir}'
786psdir='${docdir}'
787libdir='${exec_prefix}/lib'
788localedir='${datarootdir}/locale'
789mandir='${datarootdir}/man'
790
791ac_prev=
792ac_dashdash=
793for ac_option
794do
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\$ac_option
798 ac_prev=
799 continue
800 fi
801
802 case $ac_option in
803 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 *) ac_optarg=yes ;;
805 esac
806
807 # Accept the important Cygnus configure options, so we can diagnose typos.
808
809 case $ac_dashdash$ac_option in
810 --)
811 ac_dashdash=yes ;;
812
813 -bindir | --bindir | --bindi | --bind | --bin | --bi)
814 ac_prev=bindir ;;
815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816 bindir=$ac_optarg ;;
817
818 -build | --build | --buil | --bui | --bu)
819 ac_prev=build_alias ;;
820 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
821 build_alias=$ac_optarg ;;
822
823 -cache-file | --cache-file | --cache-fil | --cache-fi \
824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825 ac_prev=cache_file ;;
826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
828 cache_file=$ac_optarg ;;
829
830 --config-cache | -C)
831 cache_file=config.cache ;;
832
833 -datadir | --datadir | --datadi | --datad)
834 ac_prev=datadir ;;
835 -datadir=* | --datadir=* | --datadi=* | --datad=*)
836 datadir=$ac_optarg ;;
837
838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839 | --dataroo | --dataro | --datar)
840 ac_prev=datarootdir ;;
841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843 datarootdir=$ac_optarg ;;
844
845 -disable-* | --disable-*)
846 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_$ac_feature=no ;;
853
854 -docdir | --docdir | --docdi | --doc | --do)
855 ac_prev=docdir ;;
856 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
857 docdir=$ac_optarg ;;
858
859 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
860 ac_prev=dvidir ;;
861 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
862 dvidir=$ac_optarg ;;
863
864 -enable-* | --enable-*)
865 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
870 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_$ac_feature=\$ac_optarg ;;
872
873 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
874 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
875 | --exec | --exe | --ex)
876 ac_prev=exec_prefix ;;
877 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
878 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
879 | --exec=* | --exe=* | --ex=*)
880 exec_prefix=$ac_optarg ;;
881
882 -gas | --gas | --ga | --g)
883 # Obsolete; use --with-gas.
884 with_gas=yes ;;
885
886 -help | --help | --hel | --he | -h)
887 ac_init_help=long ;;
888 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
889 ac_init_help=recursive ;;
890 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
891 ac_init_help=short ;;
892
893 -host | --host | --hos | --ho)
894 ac_prev=host_alias ;;
895 -host=* | --host=* | --hos=* | --ho=*)
896 host_alias=$ac_optarg ;;
897
898 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899 ac_prev=htmldir ;;
900 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901 | --ht=*)
902 htmldir=$ac_optarg ;;
903
904 -includedir | --includedir | --includedi | --included | --include \
905 | --includ | --inclu | --incl | --inc)
906 ac_prev=includedir ;;
907 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
908 | --includ=* | --inclu=* | --incl=* | --inc=*)
909 includedir=$ac_optarg ;;
910
911 -infodir | --infodir | --infodi | --infod | --info | --inf)
912 ac_prev=infodir ;;
913 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
914 infodir=$ac_optarg ;;
915
916 -libdir | --libdir | --libdi | --libd)
917 ac_prev=libdir ;;
918 -libdir=* | --libdir=* | --libdi=* | --libd=*)
919 libdir=$ac_optarg ;;
920
921 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
922 | --libexe | --libex | --libe)
923 ac_prev=libexecdir ;;
924 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
925 | --libexe=* | --libex=* | --libe=*)
926 libexecdir=$ac_optarg ;;
927
928 -localedir | --localedir | --localedi | --localed | --locale)
929 ac_prev=localedir ;;
930 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
931 localedir=$ac_optarg ;;
932
933 -localstatedir | --localstatedir | --localstatedi | --localstated \
934 | --localstate | --localstat | --localsta | --localst | --locals)
935 ac_prev=localstatedir ;;
936 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
937 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
938 localstatedir=$ac_optarg ;;
939
940 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941 ac_prev=mandir ;;
942 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
943 mandir=$ac_optarg ;;
944
945 -nfp | --nfp | --nf)
946 # Obsolete; use --without-fp.
947 with_fp=no ;;
948
949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950 | --no-cr | --no-c | -n)
951 no_create=yes ;;
952
953 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
955 no_recursion=yes ;;
956
957 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
958 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
959 | --oldin | --oldi | --old | --ol | --o)
960 ac_prev=oldincludedir ;;
961 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
962 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
963 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
964 oldincludedir=$ac_optarg ;;
965
966 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967 ac_prev=prefix ;;
968 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
969 prefix=$ac_optarg ;;
970
971 -program-prefix | --program-prefix | --program-prefi | --program-pref \
972 | --program-pre | --program-pr | --program-p)
973 ac_prev=program_prefix ;;
974 -program-prefix=* | --program-prefix=* | --program-prefi=* \
975 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
976 program_prefix=$ac_optarg ;;
977
978 -program-suffix | --program-suffix | --program-suffi | --program-suff \
979 | --program-suf | --program-su | --program-s)
980 ac_prev=program_suffix ;;
981 -program-suffix=* | --program-suffix=* | --program-suffi=* \
982 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
983 program_suffix=$ac_optarg ;;
984
985 -program-transform-name | --program-transform-name \
986 | --program-transform-nam | --program-transform-na \
987 | --program-transform-n | --program-transform- \
988 | --program-transform | --program-transfor \
989 | --program-transfo | --program-transf \
990 | --program-trans | --program-tran \
991 | --progr-tra | --program-tr | --program-t)
992 ac_prev=program_transform_name ;;
993 -program-transform-name=* | --program-transform-name=* \
994 | --program-transform-nam=* | --program-transform-na=* \
995 | --program-transform-n=* | --program-transform-=* \
996 | --program-transform=* | --program-transfor=* \
997 | --program-transfo=* | --program-transf=* \
998 | --program-trans=* | --program-tran=* \
999 | --progr-tra=* | --program-tr=* | --program-t=*)
1000 program_transform_name=$ac_optarg ;;
1001
1002 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003 ac_prev=pdfdir ;;
1004 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1005 pdfdir=$ac_optarg ;;
1006
1007 -psdir | --psdir | --psdi | --psd | --ps)
1008 ac_prev=psdir ;;
1009 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1010 psdir=$ac_optarg ;;
1011
1012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1014 silent=yes ;;
1015
1016 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1017 ac_prev=sbindir ;;
1018 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1019 | --sbi=* | --sb=*)
1020 sbindir=$ac_optarg ;;
1021
1022 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1023 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1024 | --sharedst | --shareds | --shared | --share | --shar \
1025 | --sha | --sh)
1026 ac_prev=sharedstatedir ;;
1027 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1028 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1029 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1030 | --sha=* | --sh=*)
1031 sharedstatedir=$ac_optarg ;;
1032
1033 -site | --site | --sit)
1034 ac_prev=site ;;
1035 -site=* | --site=* | --sit=*)
1036 site=$ac_optarg ;;
1037
1038 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1039 ac_prev=srcdir ;;
1040 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1041 srcdir=$ac_optarg ;;
1042
1043 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1044 | --syscon | --sysco | --sysc | --sys | --sy)
1045 ac_prev=sysconfdir ;;
1046 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1047 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1048 sysconfdir=$ac_optarg ;;
1049
1050 -target | --target | --targe | --targ | --tar | --ta | --t)
1051 ac_prev=target_alias ;;
1052 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1053 target_alias=$ac_optarg ;;
1054
1055 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1056 verbose=yes ;;
1057
1058 -version | --version | --versio | --versi | --vers | -V)
1059 ac_init_version=: ;;
1060
1061 -with-* | --with-*)
1062 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_$ac_package=\$ac_optarg ;;
1069
1070 -without-* | --without-*)
1071 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1077 eval with_$ac_package=no ;;
1078
1079 --x)
1080 # Obsolete; use --with-x.
1081 with_x=yes ;;
1082
1083 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1084 | --x-incl | --x-inc | --x-in | --x-i)
1085 ac_prev=x_includes ;;
1086 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1087 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1088 x_includes=$ac_optarg ;;
1089
1090 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1091 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1092 ac_prev=x_libraries ;;
1093 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1094 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1095 x_libraries=$ac_optarg ;;
1096
1097 -*) { echo "$as_me: error: unrecognized option: $ac_option
1098Try \`$0 --help' for more information." >&2
1099 { (exit 1); exit 1; }; }
1100 ;;
1101
1102 *=*)
1103 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1106 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1107 { (exit 1); exit 1; }; }
1108 eval $ac_envvar=\$ac_optarg
1109 export $ac_envvar ;;
1110
1111 *)
1112 # FIXME: should be removed in autoconf 3.0.
1113 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1117 ;;
1118
1119 esac
1120done
1121
1122if test -n "$ac_prev"; then
1123 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1124 { echo "$as_me: error: missing argument to $ac_option" >&2
1125 { (exit 1); exit 1; }; }
1126fi
1127
1128# Be sure to have absolute directory names.
1129for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
1133do
1134 eval ac_val=\$$ac_var
1135 case $ac_val in
1136 [\\/$]* | ?:[\\/]* ) continue;;
1137 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1138 esac
1139 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1140 { (exit 1); exit 1; }; }
1141done
1142
1143# There might be people who depend on the old broken behavior: `$host'
1144# used to hold the argument of --host etc.
1145# FIXME: To remove some day.
1146build=$build_alias
1147host=$host_alias
1148target=$target_alias
1149
1150# FIXME: To remove some day.
1151if test "x$host_alias" != x; then
1152 if test "x$build_alias" = x; then
1153 cross_compiling=maybe
1154 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1155 If a cross compiler is detected then cross compile mode will be used." >&2
1156 elif test "x$build_alias" != "x$host_alias"; then
1157 cross_compiling=yes
1158 fi
1159fi
1160
1161ac_tool_prefix=
1162test -n "$host_alias" && ac_tool_prefix=$host_alias-
1163
1164test "$silent" = yes && exec 6>/dev/null
1165
1166
1167ac_pwd=`pwd` && test -n "$ac_pwd" &&
1168ac_ls_di=`ls -di .` &&
1169ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1170 { echo "$as_me: error: Working directory cannot be determined" >&2
1171 { (exit 1); exit 1; }; }
1172test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 { echo "$as_me: error: pwd does not report name of working directory" >&2
1174 { (exit 1); exit 1; }; }
1175
1176
1177# Find the source files, if location was not specified.
1178if test -z "$srcdir"; then
1179 ac_srcdir_defaulted=yes
1180 # Try the directory containing this script, then the parent directory.
1181 ac_confdir=`$as_dirname -- "$0" ||
1182$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1183 X"$0" : 'X\(//\)[^/]' \| \
1184 X"$0" : 'X\(//\)$' \| \
1185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1186echo X"$0" |
1187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\/\)[^/].*/{
1192 s//\1/
1193 q
1194 }
1195 /^X\(\/\/\)$/{
1196 s//\1/
1197 q
1198 }
1199 /^X\(\/\).*/{
1200 s//\1/
1201 q
1202 }
1203 s/.*/./; q'`
1204 srcdir=$ac_confdir
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1206 srcdir=..
1207 fi
1208else
1209 ac_srcdir_defaulted=no
1210fi
1211if test ! -r "$srcdir/$ac_unique_file"; then
1212 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1213 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1214 { (exit 1); exit 1; }; }
1215fi
1216ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1217ac_abs_confdir=`(
1218 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1219 { (exit 1); exit 1; }; }
1220 pwd)`
1221# When building in place, set srcdir=.
1222if test "$ac_abs_confdir" = "$ac_pwd"; then
1223 srcdir=.
1224fi
1225# Remove unnecessary trailing slashes from srcdir.
1226# Double slashes in file names in object file debugging info
1227# mess up M-x gdb in Emacs.
1228case $srcdir in
1229*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1230esac
1231for ac_var in $ac_precious_vars; do
1232 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_${ac_var}_value=\$${ac_var}
1234 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1236done
1237
1238#
1239# Report the --help message.
1240#
1241if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1244 cat <<_ACEOF
1245\`configure' configures this package to adapt to many kinds of systems.
1246
1247Usage: $0 [OPTION]... [VAR=VALUE]...
1248
1249To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250VAR=VALUE. See below for descriptions of some of the useful variables.
1251
1252Defaults for the options are specified in brackets.
1253
1254Configuration:
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1264
1265Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1269 [PREFIX]
1270
1271By default, \`make install' will install all the files in
1272\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274for instance \`--prefix=\$HOME'.
1275
1276For better control, use the options below.
1277
1278Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --libdir=DIR object code libraries [EPREFIX/lib]
1286 --includedir=DIR C header files [PREFIX/include]
1287 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290 --infodir=DIR info documentation [DATAROOTDIR/info]
1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292 --mandir=DIR man documentation [DATAROOTDIR/man]
1293 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1294 --htmldir=DIR html documentation [DOCDIR]
1295 --dvidir=DIR dvi documentation [DOCDIR]
1296 --pdfdir=DIR pdf documentation [DOCDIR]
1297 --psdir=DIR ps documentation [DOCDIR]
1298_ACEOF
1299
1300 cat <<\_ACEOF
1301
1302X features:
1303 --x-includes=DIR X include files are in DIR
1304 --x-libraries=DIR X library files are in DIR
1305
1306System types:
1307 --build=BUILD configure for building on BUILD [guessed]
1308 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1309_ACEOF
1310fi
1311
1312if test -n "$ac_init_help"; then
1313
1314 cat <<\_ACEOF
1315
1316Optional Features:
1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1319 --enable-vncconfig build the vncconfig utility (assumed by default),
1320 use --disable-vncconfig to skip building vncconfig
1321 --disable-nls do not use Native Language Support
1322 --disable-rpath do not hardcode runtime library paths
1323
1324Optional Packages:
1325 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1326 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1327 --with-x use the X Window System
1328 --with-installed-zlib use the version of zlib which is installed on the
1329 system instead of the one distributed with VNC
1330 --with-installed-jpeg use the version of jpeg which is installed on the
1331 system instead of the one distributed with VNC
1332 --with-gnu-ld assume the C compiler uses GNU ld default=no
1333 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1334 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1335 --with-included-gettext use the GNU gettext library included here
1336 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1337 --without-libintl-prefix don't search for libintl in includedir and libdir
1338
1339Some influential environment variables:
1340 CC C compiler command
1341 CFLAGS C compiler flags
1342 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1343 nonstandard directory <lib dir>
1344 LIBS libraries to pass to the linker, e.g. -l<library>
1345 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1346 you have headers in a nonstandard directory <include dir>
1347 CXX C++ compiler command
1348 CXXFLAGS C++ compiler flags
1349 XMKMF Path to xmkmf, Makefile generator for X Window System
1350 CXXCPP C++ preprocessor
1351
1352Use these variables to override the choices made by `configure' or to help
1353it to find libraries and programs with nonstandard names/locations.
1354
1355_ACEOF
1356ac_status=$?
1357fi
1358
1359if test "$ac_init_help" = "recursive"; then
1360 # If there are subdirs, report their specific --help.
1361 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1362 test -d "$ac_dir" || continue
1363 ac_builddir=.
1364
1365case "$ac_dir" in
1366.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1367*)
1368 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1369 # A ".." for each directory in $ac_dir_suffix.
1370 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1371 case $ac_top_builddir_sub in
1372 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1373 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1374 esac ;;
1375esac
1376ac_abs_top_builddir=$ac_pwd
1377ac_abs_builddir=$ac_pwd$ac_dir_suffix
1378# for backward compatibility:
1379ac_top_builddir=$ac_top_build_prefix
1380
1381case $srcdir in
1382 .) # We are building in place.
1383 ac_srcdir=.
1384 ac_top_srcdir=$ac_top_builddir_sub
1385 ac_abs_top_srcdir=$ac_pwd ;;
1386 [\\/]* | ?:[\\/]* ) # Absolute name.
1387 ac_srcdir=$srcdir$ac_dir_suffix;
1388 ac_top_srcdir=$srcdir
1389 ac_abs_top_srcdir=$srcdir ;;
1390 *) # Relative name.
1391 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1392 ac_top_srcdir=$ac_top_build_prefix$srcdir
1393 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1394esac
1395ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1396
1397 cd "$ac_dir" || { ac_status=$?; continue; }
1398 # Check for guested configure.
1399 if test -f "$ac_srcdir/configure.gnu"; then
1400 echo &&
1401 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1402 elif test -f "$ac_srcdir/configure"; then
1403 echo &&
1404 $SHELL "$ac_srcdir/configure" --help=recursive
1405 else
1406 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1407 fi || ac_status=$?
1408 cd "$ac_pwd" || { ac_status=$?; break; }
1409 done
1410fi
1411
1412test -n "$ac_init_help" && exit $ac_status
1413if $ac_init_version; then
1414 cat <<\_ACEOF
1415configure
1416generated by GNU Autoconf 2.61
1417
1418Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14192002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1420This configure script is free software; the Free Software Foundation
1421gives unlimited permission to copy, distribute and modify it.
1422_ACEOF
1423 exit
1424fi
1425cat >config.log <<_ACEOF
1426This file contains any messages produced by compilers while
1427running configure, to aid debugging if configure makes a mistake.
1428
1429It was created by $as_me, which was
1430generated by GNU Autoconf 2.61. Invocation command line was
1431
1432 $ $0 $@
1433
1434_ACEOF
1435exec 5>>config.log
1436{
1437cat <<_ASUNAME
1438## --------- ##
1439## Platform. ##
1440## --------- ##
1441
1442hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1443uname -m = `(uname -m) 2>/dev/null || echo unknown`
1444uname -r = `(uname -r) 2>/dev/null || echo unknown`
1445uname -s = `(uname -s) 2>/dev/null || echo unknown`
1446uname -v = `(uname -v) 2>/dev/null || echo unknown`
1447
1448/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1449/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1450
1451/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1452/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1453/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1454/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1455/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1456/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1457/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1458
1459_ASUNAME
1460
1461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1462for as_dir in $PATH
1463do
1464 IFS=$as_save_IFS
1465 test -z "$as_dir" && as_dir=.
1466 echo "PATH: $as_dir"
1467done
1468IFS=$as_save_IFS
1469
1470} >&5
1471
1472cat >&5 <<_ACEOF
1473
1474
1475## ----------- ##
1476## Core tests. ##
1477## ----------- ##
1478
1479_ACEOF
1480
1481
1482# Keep a trace of the command line.
1483# Strip out --no-create and --no-recursion so they do not pile up.
1484# Strip out --silent because we don't want to record it for future runs.
1485# Also quote any args containing shell meta-characters.
1486# Make two passes to allow for proper duplicate-argument suppression.
1487ac_configure_args=
1488ac_configure_args0=
1489ac_configure_args1=
1490ac_must_keep_next=false
1491for ac_pass in 1 2
1492do
1493 for ac_arg
1494 do
1495 case $ac_arg in
1496 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1497 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1498 | -silent | --silent | --silen | --sile | --sil)
1499 continue ;;
1500 *\'*)
1501 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1502 esac
1503 case $ac_pass in
1504 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1505 2)
1506 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1507 if test $ac_must_keep_next = true; then
1508 ac_must_keep_next=false # Got value, back to normal.
1509 else
1510 case $ac_arg in
1511 *=* | --config-cache | -C | -disable-* | --disable-* \
1512 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1513 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1514 | -with-* | --with-* | -without-* | --without-* | --x)
1515 case "$ac_configure_args0 " in
1516 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1517 esac
1518 ;;
1519 -* ) ac_must_keep_next=true ;;
1520 esac
1521 fi
1522 ac_configure_args="$ac_configure_args '$ac_arg'"
1523 ;;
1524 esac
1525 done
1526done
1527$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1528$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1529
1530# When interrupted or exit'd, cleanup temporary files, and complete
1531# config.log. We remove comments because anyway the quotes in there
1532# would cause problems or look ugly.
1533# WARNING: Use '\'' to represent an apostrophe within the trap.
1534# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1535trap 'exit_status=$?
1536 # Save into config.log some information that might help in debugging.
1537 {
1538 echo
1539
1540 cat <<\_ASBOX
1541## ---------------- ##
1542## Cache variables. ##
1543## ---------------- ##
1544_ASBOX
1545 echo
1546 # The following way of writing the cache mishandles newlines in values,
1547(
1548 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1549 eval ac_val=\$$ac_var
1550 case $ac_val in #(
1551 *${as_nl}*)
1552 case $ac_var in #(
1553 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1554echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1555 esac
1556 case $ac_var in #(
1557 _ | IFS | as_nl) ;; #(
1558 *) $as_unset $ac_var ;;
1559 esac ;;
1560 esac
1561 done
1562 (set) 2>&1 |
1563 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1564 *${as_nl}ac_space=\ *)
1565 sed -n \
1566 "s/'\''/'\''\\\\'\'''\''/g;
1567 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1568 ;; #(
1569 *)
1570 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1571 ;;
1572 esac |
1573 sort
1574)
1575 echo
1576
1577 cat <<\_ASBOX
1578## ----------------- ##
1579## Output variables. ##
1580## ----------------- ##
1581_ASBOX
1582 echo
1583 for ac_var in $ac_subst_vars
1584 do
1585 eval ac_val=\$$ac_var
1586 case $ac_val in
1587 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1588 esac
1589 echo "$ac_var='\''$ac_val'\''"
1590 done | sort
1591 echo
1592
1593 if test -n "$ac_subst_files"; then
1594 cat <<\_ASBOX
1595## ------------------- ##
1596## File substitutions. ##
1597## ------------------- ##
1598_ASBOX
1599 echo
1600 for ac_var in $ac_subst_files
1601 do
1602 eval ac_val=\$$ac_var
1603 case $ac_val in
1604 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1605 esac
1606 echo "$ac_var='\''$ac_val'\''"
1607 done | sort
1608 echo
1609 fi
1610
1611 if test -s confdefs.h; then
1612 cat <<\_ASBOX
1613## ----------- ##
1614## confdefs.h. ##
1615## ----------- ##
1616_ASBOX
1617 echo
1618 cat confdefs.h
1619 echo
1620 fi
1621 test "$ac_signal" != 0 &&
1622 echo "$as_me: caught signal $ac_signal"
1623 echo "$as_me: exit $exit_status"
1624 } >&5
1625 rm -f core *.core core.conftest.* &&
1626 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1627 exit $exit_status
1628' 0
1629for ac_signal in 1 2 13 15; do
1630 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1631done
1632ac_signal=0
1633
1634# confdefs.h avoids OS command line length limits that DEFS can exceed.
1635rm -f -r conftest* confdefs.h
1636
1637# Predefined preprocessor variables.
1638
1639cat >>confdefs.h <<_ACEOF
1640#define PACKAGE_NAME "$PACKAGE_NAME"
1641_ACEOF
1642
1643
1644cat >>confdefs.h <<_ACEOF
1645#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1646_ACEOF
1647
1648
1649cat >>confdefs.h <<_ACEOF
1650#define PACKAGE_VERSION "$PACKAGE_VERSION"
1651_ACEOF
1652
1653
1654cat >>confdefs.h <<_ACEOF
1655#define PACKAGE_STRING "$PACKAGE_STRING"
1656_ACEOF
1657
1658
1659cat >>confdefs.h <<_ACEOF
1660#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1661_ACEOF
1662
1663
1664# Let the site file select an alternate cache file if it wants to.
1665# Prefer explicitly selected file to automatically selected ones.
1666if test -n "$CONFIG_SITE"; then
1667 set x "$CONFIG_SITE"
1668elif test "x$prefix" != xNONE; then
1669 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1670else
1671 set x "$ac_default_prefix/share/config.site" \
1672 "$ac_default_prefix/etc/config.site"
1673fi
1674shift
1675for ac_site_file
1676do
1677 if test -r "$ac_site_file"; then
1678 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1679echo "$as_me: loading site script $ac_site_file" >&6;}
1680 sed 's/^/| /' "$ac_site_file" >&5
1681 . "$ac_site_file"
1682 fi
1683done
1684
1685if test -r "$cache_file"; then
1686 # Some versions of bash will fail to source /dev/null (special
1687 # files actually), so we avoid doing that.
1688 if test -f "$cache_file"; then
1689 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1690echo "$as_me: loading cache $cache_file" >&6;}
1691 case $cache_file in
1692 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1693 *) . "./$cache_file";;
1694 esac
1695 fi
1696else
1697 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1698echo "$as_me: creating cache $cache_file" >&6;}
1699 >$cache_file
1700fi
1701
1702# Check that the precious variables saved in the cache have kept the same
1703# value.
1704ac_cache_corrupted=false
1705for ac_var in $ac_precious_vars; do
1706 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1707 eval ac_new_set=\$ac_env_${ac_var}_set
1708 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1709 eval ac_new_val=\$ac_env_${ac_var}_value
1710 case $ac_old_set,$ac_new_set in
1711 set,)
1712 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1713echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1714 ac_cache_corrupted=: ;;
1715 ,set)
1716 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1717echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1718 ac_cache_corrupted=: ;;
1719 ,);;
1720 *)
1721 if test "x$ac_old_val" != "x$ac_new_val"; then
1722 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1723echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1724 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1725echo "$as_me: former value: $ac_old_val" >&2;}
1726 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1727echo "$as_me: current value: $ac_new_val" >&2;}
1728 ac_cache_corrupted=:
1729 fi;;
1730 esac
1731 # Pass precious variables to config.status.
1732 if test "$ac_new_set" = set; then
1733 case $ac_new_val in
1734 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1735 *) ac_arg=$ac_var=$ac_new_val ;;
1736 esac
1737 case " $ac_configure_args " in
1738 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1739 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1740 esac
1741 fi
1742done
1743if $ac_cache_corrupted; then
1744 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1745echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1746 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1747echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1748 { (exit 1); exit 1; }; }
1749fi
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767ac_ext=c
1768ac_cpp='$CPP $CPPFLAGS'
1769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1771ac_compiler_gnu=$ac_cv_c_compiler_gnu
1772
1773
1774
1775PACKAGE=tightvnc
1776VERSION=1.5.0
1777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE "$PACKAGE"
1779_ACEOF
1780
1781cat >>confdefs.h <<_ACEOF
1782#define VERSION "$VERSION"
1783_ACEOF
1784
1785
1786
1787
1788echo "configuring common..."
1789(cd ../common; ./configure $*)
1790echo "...done configuring common"
1791
1792ac_cv_prog_cc_g=no
1793ac_cv_prog_cxx_g=no
1794
1795ac_ext=c
1796ac_cpp='$CPP $CPPFLAGS'
1797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1799ac_compiler_gnu=$ac_cv_c_compiler_gnu
1800if test -n "$ac_tool_prefix"; then
1801 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1802set dummy ${ac_tool_prefix}gcc; ac_word=$2
1803{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1805if test "${ac_cv_prog_CC+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1807else
1808 if test -n "$CC"; then
1809 ac_cv_prog_CC="$CC" # Let the user override the test.
1810else
1811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812for as_dir in $PATH
1813do
1814 IFS=$as_save_IFS
1815 test -z "$as_dir" && as_dir=.
1816 for ac_exec_ext in '' $ac_executable_extensions; do
1817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1818 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820 break 2
1821 fi
1822done
1823done
1824IFS=$as_save_IFS
1825
1826fi
1827fi
1828CC=$ac_cv_prog_CC
1829if test -n "$CC"; then
1830 { echo "$as_me:$LINENO: result: $CC" >&5
1831echo "${ECHO_T}$CC" >&6; }
1832else
1833 { echo "$as_me:$LINENO: result: no" >&5
1834echo "${ECHO_T}no" >&6; }
1835fi
1836
1837
1838fi
1839if test -z "$ac_cv_prog_CC"; then
1840 ac_ct_CC=$CC
1841 # Extract the first word of "gcc", so it can be a program name with args.
1842set dummy gcc; ac_word=$2
1843{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1845if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1847else
1848 if test -n "$ac_ct_CC"; then
1849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1850else
1851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852for as_dir in $PATH
1853do
1854 IFS=$as_save_IFS
1855 test -z "$as_dir" && as_dir=.
1856 for ac_exec_ext in '' $ac_executable_extensions; do
1857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1858 ac_cv_prog_ac_ct_CC="gcc"
1859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860 break 2
1861 fi
1862done
1863done
1864IFS=$as_save_IFS
1865
1866fi
1867fi
1868ac_ct_CC=$ac_cv_prog_ac_ct_CC
1869if test -n "$ac_ct_CC"; then
1870 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1871echo "${ECHO_T}$ac_ct_CC" >&6; }
1872else
1873 { echo "$as_me:$LINENO: result: no" >&5
1874echo "${ECHO_T}no" >&6; }
1875fi
1876
1877 if test "x$ac_ct_CC" = x; then
1878 CC=""
1879 else
1880 case $cross_compiling:$ac_tool_warned in
1881yes:)
1882{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1883whose name does not start with the host triplet. If you think this
1884configuration is useful to you, please write to autoconf@gnu.org." >&5
1885echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1886whose name does not start with the host triplet. If you think this
1887configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1888ac_tool_warned=yes ;;
1889esac
1890 CC=$ac_ct_CC
1891 fi
1892else
1893 CC="$ac_cv_prog_CC"
1894fi
1895
1896if test -z "$CC"; then
1897 if test -n "$ac_tool_prefix"; then
1898 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1899set dummy ${ac_tool_prefix}cc; ac_word=$2
1900{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1902if test "${ac_cv_prog_CC+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1904else
1905 if test -n "$CC"; then
1906 ac_cv_prog_CC="$CC" # Let the user override the test.
1907else
1908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909for as_dir in $PATH
1910do
1911 IFS=$as_save_IFS
1912 test -z "$as_dir" && as_dir=.
1913 for ac_exec_ext in '' $ac_executable_extensions; do
1914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1915 ac_cv_prog_CC="${ac_tool_prefix}cc"
1916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917 break 2
1918 fi
1919done
1920done
1921IFS=$as_save_IFS
1922
1923fi
1924fi
1925CC=$ac_cv_prog_CC
1926if test -n "$CC"; then
1927 { echo "$as_me:$LINENO: result: $CC" >&5
1928echo "${ECHO_T}$CC" >&6; }
1929else
1930 { echo "$as_me:$LINENO: result: no" >&5
1931echo "${ECHO_T}no" >&6; }
1932fi
1933
1934
1935 fi
1936fi
1937if test -z "$CC"; then
1938 # Extract the first word of "cc", so it can be a program name with args.
1939set dummy cc; ac_word=$2
1940{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1942if test "${ac_cv_prog_CC+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1944else
1945 if test -n "$CC"; then
1946 ac_cv_prog_CC="$CC" # Let the user override the test.
1947else
1948 ac_prog_rejected=no
1949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1950for as_dir in $PATH
1951do
1952 IFS=$as_save_IFS
1953 test -z "$as_dir" && as_dir=.
1954 for ac_exec_ext in '' $ac_executable_extensions; do
1955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1956 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1957 ac_prog_rejected=yes
1958 continue
1959 fi
1960 ac_cv_prog_CC="cc"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 break 2
1963 fi
1964done
1965done
1966IFS=$as_save_IFS
1967
1968if test $ac_prog_rejected = yes; then
1969 # We found a bogon in the path, so make sure we never use it.
1970 set dummy $ac_cv_prog_CC
1971 shift
1972 if test $# != 0; then
1973 # We chose a different compiler from the bogus one.
1974 # However, it has the same basename, so the bogon will be chosen
1975 # first if we set CC to just the basename; use the full file name.
1976 shift
1977 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1978 fi
1979fi
1980fi
1981fi
1982CC=$ac_cv_prog_CC
1983if test -n "$CC"; then
1984 { echo "$as_me:$LINENO: result: $CC" >&5
1985echo "${ECHO_T}$CC" >&6; }
1986else
1987 { echo "$as_me:$LINENO: result: no" >&5
1988echo "${ECHO_T}no" >&6; }
1989fi
1990
1991
1992fi
1993if test -z "$CC"; then
1994 if test -n "$ac_tool_prefix"; then
1995 for ac_prog in cl.exe
1996 do
1997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1998set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1999{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2001if test "${ac_cv_prog_CC+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2003else
2004 if test -n "$CC"; then
2005 ac_cv_prog_CC="$CC" # Let the user override the test.
2006else
2007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008for as_dir in $PATH
2009do
2010 IFS=$as_save_IFS
2011 test -z "$as_dir" && as_dir=.
2012 for ac_exec_ext in '' $ac_executable_extensions; do
2013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2014 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016 break 2
2017 fi
2018done
2019done
2020IFS=$as_save_IFS
2021
2022fi
2023fi
2024CC=$ac_cv_prog_CC
2025if test -n "$CC"; then
2026 { echo "$as_me:$LINENO: result: $CC" >&5
2027echo "${ECHO_T}$CC" >&6; }
2028else
2029 { echo "$as_me:$LINENO: result: no" >&5
2030echo "${ECHO_T}no" >&6; }
2031fi
2032
2033
2034 test -n "$CC" && break
2035 done
2036fi
2037if test -z "$CC"; then
2038 ac_ct_CC=$CC
2039 for ac_prog in cl.exe
2040do
2041 # Extract the first word of "$ac_prog", so it can be a program name with args.
2042set dummy $ac_prog; ac_word=$2
2043{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2045if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2047else
2048 if test -n "$ac_ct_CC"; then
2049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2050else
2051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052for as_dir in $PATH
2053do
2054 IFS=$as_save_IFS
2055 test -z "$as_dir" && as_dir=.
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2058 ac_cv_prog_ac_ct_CC="$ac_prog"
2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 break 2
2061 fi
2062done
2063done
2064IFS=$as_save_IFS
2065
2066fi
2067fi
2068ac_ct_CC=$ac_cv_prog_ac_ct_CC
2069if test -n "$ac_ct_CC"; then
2070 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2071echo "${ECHO_T}$ac_ct_CC" >&6; }
2072else
2073 { echo "$as_me:$LINENO: result: no" >&5
2074echo "${ECHO_T}no" >&6; }
2075fi
2076
2077
2078 test -n "$ac_ct_CC" && break
2079done
2080
2081 if test "x$ac_ct_CC" = x; then
2082 CC=""
2083 else
2084 case $cross_compiling:$ac_tool_warned in
2085yes:)
2086{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2087whose name does not start with the host triplet. If you think this
2088configuration is useful to you, please write to autoconf@gnu.org." >&5
2089echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2090whose name does not start with the host triplet. If you think this
2091configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2092ac_tool_warned=yes ;;
2093esac
2094 CC=$ac_ct_CC
2095 fi
2096fi
2097
2098fi
2099
2100
2101test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2102See \`config.log' for more details." >&5
2103echo "$as_me: error: no acceptable C compiler found in \$PATH
2104See \`config.log' for more details." >&2;}
2105 { (exit 1); exit 1; }; }
2106
2107# Provide some information about the compiler.
2108echo "$as_me:$LINENO: checking for C compiler version" >&5
2109ac_compiler=`set X $ac_compile; echo $2`
2110{ (ac_try="$ac_compiler --version >&5"
2111case "(($ac_try" in
2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113 *) ac_try_echo=$ac_try;;
2114esac
2115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2116 (eval "$ac_compiler --version >&5") 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
2120{ (ac_try="$ac_compiler -v >&5"
2121case "(($ac_try" in
2122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123 *) ac_try_echo=$ac_try;;
2124esac
2125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2126 (eval "$ac_compiler -v >&5") 2>&5
2127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
2130{ (ac_try="$ac_compiler -V >&5"
2131case "(($ac_try" in
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2134esac
2135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2136 (eval "$ac_compiler -V >&5") 2>&5
2137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2140
2141cat >conftest.$ac_ext <<_ACEOF
2142/* confdefs.h. */
2143_ACEOF
2144cat confdefs.h >>conftest.$ac_ext
2145cat >>conftest.$ac_ext <<_ACEOF
2146/* end confdefs.h. */
2147
2148int
2149main ()
2150{
2151
2152 ;
2153 return 0;
2154}
2155_ACEOF
2156ac_clean_files_save=$ac_clean_files
2157ac_clean_files="$ac_clean_files a.out a.exe b.out"
2158# Try to create an executable without -o first, disregard a.out.
2159# It will help us diagnose broken compilers, and finding out an intuition
2160# of exeext.
2161{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2162echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2163ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2164#
2165# List of possible output files, starting from the most likely.
2166# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2167# only as a last resort. b.out is created by i960 compilers.
2168ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2169#
2170# The IRIX 6 linker writes into existing files which may not be
2171# executable, retaining their permissions. Remove them first so a
2172# subsequent execution test works.
2173ac_rmfiles=
2174for ac_file in $ac_files
2175do
2176 case $ac_file in
2177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2178 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2179 esac
2180done
2181rm -f $ac_rmfiles
2182
2183if { (ac_try="$ac_link_default"
2184case "(($ac_try" in
2185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2186 *) ac_try_echo=$ac_try;;
2187esac
2188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2189 (eval "$ac_link_default") 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; then
2193 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2194# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2195# in a Makefile. We should not override ac_cv_exeext if it was cached,
2196# so that the user can short-circuit this test for compilers unknown to
2197# Autoconf.
2198for ac_file in $ac_files ''
2199do
2200 test -f "$ac_file" || continue
2201 case $ac_file in
2202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2203 ;;
2204 [ab].out )
2205 # We found the default executable, but exeext='' is most
2206 # certainly right.
2207 break;;
2208 *.* )
2209 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2210 then :; else
2211 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2212 fi
2213 # We set ac_cv_exeext here because the later test for it is not
2214 # safe: cross compilers may not add the suffix if given an `-o'
2215 # argument, so we may need to know it at that point already.
2216 # Even if this section looks crufty: it has the advantage of
2217 # actually working.
2218 break;;
2219 * )
2220 break;;
2221 esac
2222done
2223test "$ac_cv_exeext" = no && ac_cv_exeext=
2224
2225else
2226 ac_file=''
2227fi
2228
2229{ echo "$as_me:$LINENO: result: $ac_file" >&5
2230echo "${ECHO_T}$ac_file" >&6; }
2231if test -z "$ac_file"; then
2232 echo "$as_me: failed program was:" >&5
2233sed 's/^/| /' conftest.$ac_ext >&5
2234
2235{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2236See \`config.log' for more details." >&5
2237echo "$as_me: error: C compiler cannot create executables
2238See \`config.log' for more details." >&2;}
2239 { (exit 77); exit 77; }; }
2240fi
2241
2242ac_exeext=$ac_cv_exeext
2243
2244# Check that the compiler produces executables we can run. If not, either
2245# the compiler is broken, or we cross compile.
2246{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2247echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2248# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2249# If not cross compiling, check that we can run a simple program.
2250if test "$cross_compiling" != yes; then
2251 if { ac_try='./$ac_file'
2252 { (case "(($ac_try" in
2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254 *) ac_try_echo=$ac_try;;
2255esac
2256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257 (eval "$ac_try") 2>&5
2258 ac_status=$?
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; }; then
2261 cross_compiling=no
2262 else
2263 if test "$cross_compiling" = maybe; then
2264 cross_compiling=yes
2265 else
2266 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2267If you meant to cross compile, use \`--host'.
2268See \`config.log' for more details." >&5
2269echo "$as_me: error: cannot run C compiled programs.
2270If you meant to cross compile, use \`--host'.
2271See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2273 fi
2274 fi
2275fi
2276{ echo "$as_me:$LINENO: result: yes" >&5
2277echo "${ECHO_T}yes" >&6; }
2278
2279rm -f a.out a.exe conftest$ac_cv_exeext b.out
2280ac_clean_files=$ac_clean_files_save
2281# Check that the compiler produces executables we can run. If not, either
2282# the compiler is broken, or we cross compile.
2283{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2284echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2285{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2286echo "${ECHO_T}$cross_compiling" >&6; }
2287
2288{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2289echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2290if { (ac_try="$ac_link"
2291case "(($ac_try" in
2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293 *) ac_try_echo=$ac_try;;
2294esac
2295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2296 (eval "$ac_link") 2>&5
2297 ac_status=$?
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; then
2300 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2301# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2302# work properly (i.e., refer to `conftest.exe'), while it won't with
2303# `rm'.
2304for ac_file in conftest.exe conftest conftest.*; do
2305 test -f "$ac_file" || continue
2306 case $ac_file in
2307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2308 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2309 break;;
2310 * ) break;;
2311 esac
2312done
2313else
2314 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2315See \`config.log' for more details." >&5
2316echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2317See \`config.log' for more details." >&2;}
2318 { (exit 1); exit 1; }; }
2319fi
2320
2321rm -f conftest$ac_cv_exeext
2322{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2323echo "${ECHO_T}$ac_cv_exeext" >&6; }
2324
2325rm -f conftest.$ac_ext
2326EXEEXT=$ac_cv_exeext
2327ac_exeext=$EXEEXT
2328{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2329echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2330if test "${ac_cv_objext+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2332else
2333 cat >conftest.$ac_ext <<_ACEOF
2334/* confdefs.h. */
2335_ACEOF
2336cat confdefs.h >>conftest.$ac_ext
2337cat >>conftest.$ac_ext <<_ACEOF
2338/* end confdefs.h. */
2339
2340int
2341main ()
2342{
2343
2344 ;
2345 return 0;
2346}
2347_ACEOF
2348rm -f conftest.o conftest.obj
2349if { (ac_try="$ac_compile"
2350case "(($ac_try" in
2351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352 *) ac_try_echo=$ac_try;;
2353esac
2354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2355 (eval "$ac_compile") 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; then
2359 for ac_file in conftest.o conftest.obj conftest.*; do
2360 test -f "$ac_file" || continue;
2361 case $ac_file in
2362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2363 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2364 break;;
2365 esac
2366done
2367else
2368 echo "$as_me: failed program was:" >&5
2369sed 's/^/| /' conftest.$ac_ext >&5
2370
2371{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2372See \`config.log' for more details." >&5
2373echo "$as_me: error: cannot compute suffix of object files: cannot compile
2374See \`config.log' for more details." >&2;}
2375 { (exit 1); exit 1; }; }
2376fi
2377
2378rm -f conftest.$ac_cv_objext conftest.$ac_ext
2379fi
2380{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2381echo "${ECHO_T}$ac_cv_objext" >&6; }
2382OBJEXT=$ac_cv_objext
2383ac_objext=$OBJEXT
2384{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2385echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2386if test "${ac_cv_c_compiler_gnu+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2388else
2389 cat >conftest.$ac_ext <<_ACEOF
2390/* confdefs.h. */
2391_ACEOF
2392cat confdefs.h >>conftest.$ac_ext
2393cat >>conftest.$ac_ext <<_ACEOF
2394/* end confdefs.h. */
2395
2396int
2397main ()
2398{
2399#ifndef __GNUC__
2400 choke me
2401#endif
2402
2403 ;
2404 return 0;
2405}
2406_ACEOF
2407rm -f conftest.$ac_objext
2408if { (ac_try="$ac_compile"
2409case "(($ac_try" in
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2412esac
2413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2414 (eval "$ac_compile") 2>conftest.er1
2415 ac_status=$?
2416 grep -v '^ *+' conftest.er1 >conftest.err
2417 rm -f conftest.er1
2418 cat conftest.err >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); } && {
2421 test -z "$ac_c_werror_flag" ||
2422 test ! -s conftest.err
2423 } && test -s conftest.$ac_objext; then
2424 ac_compiler_gnu=yes
2425else
2426 echo "$as_me: failed program was:" >&5
2427sed 's/^/| /' conftest.$ac_ext >&5
2428
2429 ac_compiler_gnu=no
2430fi
2431
2432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433ac_cv_c_compiler_gnu=$ac_compiler_gnu
2434
2435fi
2436{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2437echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2438GCC=`test $ac_compiler_gnu = yes && echo yes`
2439ac_test_CFLAGS=${CFLAGS+set}
2440ac_save_CFLAGS=$CFLAGS
2441{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2442echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2443if test "${ac_cv_prog_cc_g+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2445else
2446 ac_save_c_werror_flag=$ac_c_werror_flag
2447 ac_c_werror_flag=yes
2448 ac_cv_prog_cc_g=no
2449 CFLAGS="-g"
2450 cat >conftest.$ac_ext <<_ACEOF
2451/* confdefs.h. */
2452_ACEOF
2453cat confdefs.h >>conftest.$ac_ext
2454cat >>conftest.$ac_ext <<_ACEOF
2455/* end confdefs.h. */
2456
2457int
2458main ()
2459{
2460
2461 ;
2462 return 0;
2463}
2464_ACEOF
2465rm -f conftest.$ac_objext
2466if { (ac_try="$ac_compile"
2467case "(($ac_try" in
2468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469 *) ac_try_echo=$ac_try;;
2470esac
2471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2472 (eval "$ac_compile") 2>conftest.er1
2473 ac_status=$?
2474 grep -v '^ *+' conftest.er1 >conftest.err
2475 rm -f conftest.er1
2476 cat conftest.err >&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); } && {
2479 test -z "$ac_c_werror_flag" ||
2480 test ! -s conftest.err
2481 } && test -s conftest.$ac_objext; then
2482 ac_cv_prog_cc_g=yes
2483else
2484 echo "$as_me: failed program was:" >&5
2485sed 's/^/| /' conftest.$ac_ext >&5
2486
2487 CFLAGS=""
2488 cat >conftest.$ac_ext <<_ACEOF
2489/* confdefs.h. */
2490_ACEOF
2491cat confdefs.h >>conftest.$ac_ext
2492cat >>conftest.$ac_ext <<_ACEOF
2493/* end confdefs.h. */
2494
2495int
2496main ()
2497{
2498
2499 ;
2500 return 0;
2501}
2502_ACEOF
2503rm -f conftest.$ac_objext
2504if { (ac_try="$ac_compile"
2505case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2508esac
2509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_compile") 2>conftest.er1
2511 ac_status=$?
2512 grep -v '^ *+' conftest.er1 >conftest.err
2513 rm -f conftest.er1
2514 cat conftest.err >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); } && {
2517 test -z "$ac_c_werror_flag" ||
2518 test ! -s conftest.err
2519 } && test -s conftest.$ac_objext; then
2520 :
2521else
2522 echo "$as_me: failed program was:" >&5
2523sed 's/^/| /' conftest.$ac_ext >&5
2524
2525 ac_c_werror_flag=$ac_save_c_werror_flag
2526 CFLAGS="-g"
2527 cat >conftest.$ac_ext <<_ACEOF
2528/* confdefs.h. */
2529_ACEOF
2530cat confdefs.h >>conftest.$ac_ext
2531cat >>conftest.$ac_ext <<_ACEOF
2532/* end confdefs.h. */
2533
2534int
2535main ()
2536{
2537
2538 ;
2539 return 0;
2540}
2541_ACEOF
2542rm -f conftest.$ac_objext
2543if { (ac_try="$ac_compile"
2544case "(($ac_try" in
2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546 *) ac_try_echo=$ac_try;;
2547esac
2548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2549 (eval "$ac_compile") 2>conftest.er1
2550 ac_status=$?
2551 grep -v '^ *+' conftest.er1 >conftest.err
2552 rm -f conftest.er1
2553 cat conftest.err >&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); } && {
2556 test -z "$ac_c_werror_flag" ||
2557 test ! -s conftest.err
2558 } && test -s conftest.$ac_objext; then
2559 ac_cv_prog_cc_g=yes
2560else
2561 echo "$as_me: failed program was:" >&5
2562sed 's/^/| /' conftest.$ac_ext >&5
2563
2564
2565fi
2566
2567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2568fi
2569
2570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2571fi
2572
2573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574 ac_c_werror_flag=$ac_save_c_werror_flag
2575fi
2576{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2577echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2578if test "$ac_test_CFLAGS" = set; then
2579 CFLAGS=$ac_save_CFLAGS
2580elif test $ac_cv_prog_cc_g = yes; then
2581 if test "$GCC" = yes; then
2582 CFLAGS="-g -O2"
2583 else
2584 CFLAGS="-g"
2585 fi
2586else
2587 if test "$GCC" = yes; then
2588 CFLAGS="-O2"
2589 else
2590 CFLAGS=
2591 fi
2592fi
2593{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2594echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2595if test "${ac_cv_prog_cc_c89+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2597else
2598 ac_cv_prog_cc_c89=no
2599ac_save_CC=$CC
2600cat >conftest.$ac_ext <<_ACEOF
2601/* confdefs.h. */
2602_ACEOF
2603cat confdefs.h >>conftest.$ac_ext
2604cat >>conftest.$ac_ext <<_ACEOF
2605/* end confdefs.h. */
2606#include <stdarg.h>
2607#include <stdio.h>
2608#include <sys/types.h>
2609#include <sys/stat.h>
2610/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2611struct buf { int x; };
2612FILE * (*rcsopen) (struct buf *, struct stat *, int);
2613static char *e (p, i)
2614 char **p;
2615 int i;
2616{
2617 return p[i];
2618}
2619static char *f (char * (*g) (char **, int), char **p, ...)
2620{
2621 char *s;
2622 va_list v;
2623 va_start (v,p);
2624 s = g (p, va_arg (v,int));
2625 va_end (v);
2626 return s;
2627}
2628
2629/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2630 function prototypes and stuff, but not '\xHH' hex character constants.
2631 These don't provoke an error unfortunately, instead are silently treated
2632 as 'x'. The following induces an error, until -std is added to get
2633 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2634 array size at least. It's necessary to write '\x00'==0 to get something
2635 that's true only with -std. */
2636int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2637
2638/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2639 inside strings and character constants. */
2640#define FOO(x) 'x'
2641int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2642
2643int test (int i, double x);
2644struct s1 {int (*f) (int a);};
2645struct s2 {int (*f) (double a);};
2646int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2647int argc;
2648char **argv;
2649int
2650main ()
2651{
2652return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2653 ;
2654 return 0;
2655}
2656_ACEOF
2657for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2658 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2659do
2660 CC="$ac_save_CC $ac_arg"
2661 rm -f conftest.$ac_objext
2662if { (ac_try="$ac_compile"
2663case "(($ac_try" in
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2666esac
2667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668 (eval "$ac_compile") 2>conftest.er1
2669 ac_status=$?
2670 grep -v '^ *+' conftest.er1 >conftest.err
2671 rm -f conftest.er1
2672 cat conftest.err >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } && {
2675 test -z "$ac_c_werror_flag" ||
2676 test ! -s conftest.err
2677 } && test -s conftest.$ac_objext; then
2678 ac_cv_prog_cc_c89=$ac_arg
2679else
2680 echo "$as_me: failed program was:" >&5
2681sed 's/^/| /' conftest.$ac_ext >&5
2682
2683
2684fi
2685
2686rm -f core conftest.err conftest.$ac_objext
2687 test "x$ac_cv_prog_cc_c89" != "xno" && break
2688done
2689rm -f conftest.$ac_ext
2690CC=$ac_save_CC
2691
2692fi
2693# AC_CACHE_VAL
2694case "x$ac_cv_prog_cc_c89" in
2695 x)
2696 { echo "$as_me:$LINENO: result: none needed" >&5
2697echo "${ECHO_T}none needed" >&6; } ;;
2698 xno)
2699 { echo "$as_me:$LINENO: result: unsupported" >&5
2700echo "${ECHO_T}unsupported" >&6; } ;;
2701 *)
2702 CC="$CC $ac_cv_prog_cc_c89"
2703 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2704echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2705esac
2706
2707
2708ac_ext=c
2709ac_cpp='$CPP $CPPFLAGS'
2710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2712ac_compiler_gnu=$ac_cv_c_compiler_gnu
2713
2714ac_ext=cpp
2715ac_cpp='$CXXCPP $CPPFLAGS'
2716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2719if test -z "$CXX"; then
2720 if test -n "$CCC"; then
2721 CXX=$CCC
2722 else
2723 if test -n "$ac_tool_prefix"; then
2724 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2725 do
2726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2727set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2730if test "${ac_cv_prog_CXX+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2732else
2733 if test -n "$CXX"; then
2734 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2735else
2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737for as_dir in $PATH
2738do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2746 fi
2747done
2748done
2749IFS=$as_save_IFS
2750
2751fi
2752fi
2753CXX=$ac_cv_prog_CXX
2754if test -n "$CXX"; then
2755 { echo "$as_me:$LINENO: result: $CXX" >&5
2756echo "${ECHO_T}$CXX" >&6; }
2757else
2758 { echo "$as_me:$LINENO: result: no" >&5
2759echo "${ECHO_T}no" >&6; }
2760fi
2761
2762
2763 test -n "$CXX" && break
2764 done
2765fi
2766if test -z "$CXX"; then
2767 ac_ct_CXX=$CXX
2768 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2769do
2770 # Extract the first word of "$ac_prog", so it can be a program name with args.
2771set dummy $ac_prog; ac_word=$2
2772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2774if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776else
2777 if test -n "$ac_ct_CXX"; then
2778 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2779else
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_prog_ac_ct_CXX="$ac_prog"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791done
2792done
2793IFS=$as_save_IFS
2794
2795fi
2796fi
2797ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2798if test -n "$ac_ct_CXX"; then
2799 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2800echo "${ECHO_T}$ac_ct_CXX" >&6; }
2801else
2802 { echo "$as_me:$LINENO: result: no" >&5
2803echo "${ECHO_T}no" >&6; }
2804fi
2805
2806
2807 test -n "$ac_ct_CXX" && break
2808done
2809
2810 if test "x$ac_ct_CXX" = x; then
2811 CXX="g++"
2812 else
2813 case $cross_compiling:$ac_tool_warned in
2814yes:)
2815{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2816whose name does not start with the host triplet. If you think this
2817configuration is useful to you, please write to autoconf@gnu.org." >&5
2818echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2819whose name does not start with the host triplet. If you think this
2820configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2821ac_tool_warned=yes ;;
2822esac
2823 CXX=$ac_ct_CXX
2824 fi
2825fi
2826
2827 fi
2828fi
2829# Provide some information about the compiler.
2830echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2831ac_compiler=`set X $ac_compile; echo $2`
2832{ (ac_try="$ac_compiler --version >&5"
2833case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2836esac
2837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838 (eval "$ac_compiler --version >&5") 2>&5
2839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }
2842{ (ac_try="$ac_compiler -v >&5"
2843case "(($ac_try" in
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2846esac
2847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848 (eval "$ac_compiler -v >&5") 2>&5
2849 ac_status=$?
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }
2852{ (ac_try="$ac_compiler -V >&5"
2853case "(($ac_try" in
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2856esac
2857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2858 (eval "$ac_compiler -V >&5") 2>&5
2859 ac_status=$?
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }
2862
2863{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2864echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2865if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2867else
2868 cat >conftest.$ac_ext <<_ACEOF
2869/* confdefs.h. */
2870_ACEOF
2871cat confdefs.h >>conftest.$ac_ext
2872cat >>conftest.$ac_ext <<_ACEOF
2873/* end confdefs.h. */
2874
2875int
2876main ()
2877{
2878#ifndef __GNUC__
2879 choke me
2880#endif
2881
2882 ;
2883 return 0;
2884}
2885_ACEOF
2886rm -f conftest.$ac_objext
2887if { (ac_try="$ac_compile"
2888case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891esac
2892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_compile") 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } && {
2900 test -z "$ac_cxx_werror_flag" ||
2901 test ! -s conftest.err
2902 } && test -s conftest.$ac_objext; then
2903 ac_compiler_gnu=yes
2904else
2905 echo "$as_me: failed program was:" >&5
2906sed 's/^/| /' conftest.$ac_ext >&5
2907
2908 ac_compiler_gnu=no
2909fi
2910
2911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2913
2914fi
2915{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2916echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2917GXX=`test $ac_compiler_gnu = yes && echo yes`
2918ac_test_CXXFLAGS=${CXXFLAGS+set}
2919ac_save_CXXFLAGS=$CXXFLAGS
2920{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2921echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2922if test "${ac_cv_prog_cxx_g+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2924else
2925 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2926 ac_cxx_werror_flag=yes
2927 ac_cv_prog_cxx_g=no
2928 CXXFLAGS="-g"
2929 cat >conftest.$ac_ext <<_ACEOF
2930/* confdefs.h. */
2931_ACEOF
2932cat confdefs.h >>conftest.$ac_ext
2933cat >>conftest.$ac_ext <<_ACEOF
2934/* end confdefs.h. */
2935
2936int
2937main ()
2938{
2939
2940 ;
2941 return 0;
2942}
2943_ACEOF
2944rm -f conftest.$ac_objext
2945if { (ac_try="$ac_compile"
2946case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2949esac
2950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951 (eval "$ac_compile") 2>conftest.er1
2952 ac_status=$?
2953 grep -v '^ *+' conftest.er1 >conftest.err
2954 rm -f conftest.er1
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } && {
2958 test -z "$ac_cxx_werror_flag" ||
2959 test ! -s conftest.err
2960 } && test -s conftest.$ac_objext; then
2961 ac_cv_prog_cxx_g=yes
2962else
2963 echo "$as_me: failed program was:" >&5
2964sed 's/^/| /' conftest.$ac_ext >&5
2965
2966 CXXFLAGS=""
2967 cat >conftest.$ac_ext <<_ACEOF
2968/* confdefs.h. */
2969_ACEOF
2970cat confdefs.h >>conftest.$ac_ext
2971cat >>conftest.$ac_ext <<_ACEOF
2972/* end confdefs.h. */
2973
2974int
2975main ()
2976{
2977
2978 ;
2979 return 0;
2980}
2981_ACEOF
2982rm -f conftest.$ac_objext
2983if { (ac_try="$ac_compile"
2984case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987esac
2988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_compile") 2>conftest.er1
2990 ac_status=$?
2991 grep -v '^ *+' conftest.er1 >conftest.err
2992 rm -f conftest.er1
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } && {
2996 test -z "$ac_cxx_werror_flag" ||
2997 test ! -s conftest.err
2998 } && test -s conftest.$ac_objext; then
2999 :
3000else
3001 echo "$as_me: failed program was:" >&5
3002sed 's/^/| /' conftest.$ac_ext >&5
3003
3004 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3005 CXXFLAGS="-g"
3006 cat >conftest.$ac_ext <<_ACEOF
3007/* confdefs.h. */
3008_ACEOF
3009cat confdefs.h >>conftest.$ac_ext
3010cat >>conftest.$ac_ext <<_ACEOF
3011/* end confdefs.h. */
3012
3013int
3014main ()
3015{
3016
3017 ;
3018 return 0;
3019}
3020_ACEOF
3021rm -f conftest.$ac_objext
3022if { (ac_try="$ac_compile"
3023case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026esac
3027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compile") 2>conftest.er1
3029 ac_status=$?
3030 grep -v '^ *+' conftest.er1 >conftest.err
3031 rm -f conftest.er1
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } && {
3035 test -z "$ac_cxx_werror_flag" ||
3036 test ! -s conftest.err
3037 } && test -s conftest.$ac_objext; then
3038 ac_cv_prog_cxx_g=yes
3039else
3040 echo "$as_me: failed program was:" >&5
3041sed 's/^/| /' conftest.$ac_ext >&5
3042
3043
3044fi
3045
3046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3047fi
3048
3049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3050fi
3051
3052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3053 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3054fi
3055{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3056echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3057if test "$ac_test_CXXFLAGS" = set; then
3058 CXXFLAGS=$ac_save_CXXFLAGS
3059elif test $ac_cv_prog_cxx_g = yes; then
3060 if test "$GXX" = yes; then
3061 CXXFLAGS="-g -O2"
3062 else
3063 CXXFLAGS="-g"
3064 fi
3065else
3066 if test "$GXX" = yes; then
3067 CXXFLAGS="-O2"
3068 else
3069 CXXFLAGS=
3070 fi
3071fi
3072ac_ext=c
3073ac_cpp='$CPP $CPPFLAGS'
3074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3076ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077
3078if test -n "$ac_tool_prefix"; then
3079 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3080set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3081{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3083if test "${ac_cv_prog_RANLIB+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085else
3086 if test -n "$RANLIB"; then
3087 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3088else
3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3096 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100done
3101done
3102IFS=$as_save_IFS
3103
3104fi
3105fi
3106RANLIB=$ac_cv_prog_RANLIB
3107if test -n "$RANLIB"; then
3108 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3109echo "${ECHO_T}$RANLIB" >&6; }
3110else
3111 { echo "$as_me:$LINENO: result: no" >&5
3112echo "${ECHO_T}no" >&6; }
3113fi
3114
3115
3116fi
3117if test -z "$ac_cv_prog_RANLIB"; then
3118 ac_ct_RANLIB=$RANLIB
3119 # Extract the first word of "ranlib", so it can be a program name with args.
3120set dummy ranlib; ac_word=$2
3121{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3123if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3125else
3126 if test -n "$ac_ct_RANLIB"; then
3127 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3128else
3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130for as_dir in $PATH
3131do
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3136 ac_cv_prog_ac_ct_RANLIB="ranlib"
3137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3139 fi
3140done
3141done
3142IFS=$as_save_IFS
3143
3144fi
3145fi
3146ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3147if test -n "$ac_ct_RANLIB"; then
3148 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3149echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3150else
3151 { echo "$as_me:$LINENO: result: no" >&5
3152echo "${ECHO_T}no" >&6; }
3153fi
3154
3155 if test "x$ac_ct_RANLIB" = x; then
3156 RANLIB=":"
3157 else
3158 case $cross_compiling:$ac_tool_warned in
3159yes:)
3160{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3161whose name does not start with the host triplet. If you think this
3162configuration is useful to you, please write to autoconf@gnu.org." >&5
3163echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3164whose name does not start with the host triplet. If you think this
3165configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3166ac_tool_warned=yes ;;
3167esac
3168 RANLIB=$ac_ct_RANLIB
3169 fi
3170else
3171 RANLIB="$ac_cv_prog_RANLIB"
3172fi
3173
3174{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3175echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3176set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3177if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3179else
3180 cat >conftest.make <<\_ACEOF
3181SHELL = /bin/sh
3182all:
3183 @echo '@@@%%%=$(MAKE)=@@@%%%'
3184_ACEOF
3185# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3186case `${MAKE-make} -f conftest.make 2>/dev/null` in
3187 *@@@%%%=?*=@@@%%%*)
3188 eval ac_cv_prog_make_${ac_make}_set=yes;;
3189 *)
3190 eval ac_cv_prog_make_${ac_make}_set=no;;
3191esac
3192rm -f conftest.make
3193fi
3194if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3195 { echo "$as_me:$LINENO: result: yes" >&5
3196echo "${ECHO_T}yes" >&6; }
3197 SET_MAKE=
3198else
3199 { echo "$as_me:$LINENO: result: no" >&5
3200echo "${ECHO_T}no" >&6; }
3201 SET_MAKE="MAKE=${MAKE-make}"
3202fi
3203
3204ac_ext=cpp
3205ac_cpp='$CXXCPP $CPPFLAGS'
3206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3209
3210
3211case "`(uname -sr) 2>/dev/null`" in
3212"SunOS 5"*)
3213 SOLARIS=yes
3214 USE_MITSHM=yes
3215 USE_SUN_OVL=yes
3216 ;;
3217"Linux"*)
3218 LINUX=yes
3219 USE_MITSHM=yes
3220 ;;
3221"IRIX 6"*)
3222 X_LIBS="-L/usr/lib32"
3223 USE_MITSHM=yes
3224 USE_READDISPLAY=yes
3225 ;;
3226"LynxOS 2"*)
3227 SJLJ_EXCEPTIONS=yes
3228 ;;
3229esac
3230
3231if test "$USE_MITSHM" = yes; then
3232 MITSHM_DEFINE="-DHAVE_MITSHM"
3233fi
3234
3235
3236if test "$GCC" = yes; then
3237 CFLAGS="$CFLAGS -Wall"
3238 if test "$SOLARIS" = yes; then
3239 CFLAGS="$CFLAGS -Wno-unknown-pragmas -Wno-implicit-int"
3240 fi
3241fi
3242if test "$GXX" = yes; then
3243 CXXFLAGS="$CXXFLAGS -Wall"
3244 if test "$SOLARIS" = yes; then
3245 CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas -fpermissive"
3246 fi
3247 if test "$SJLJ_EXCEPTIONS" = yes; then
3248 CXXFLAGS="$CXXFLAGS -fsjlj-exceptions"
3249 fi
3250fi
3251
3252
3253{ echo "$as_me:$LINENO: checking for clQuerySchemeFromName in -lcl" >&5
3254echo $ECHO_N "checking for clQuerySchemeFromName in -lcl... $ECHO_C" >&6; }
3255if test "${ac_cv_lib_cl_clQuerySchemeFromName+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257else
3258 ac_check_lib_save_LIBS=$LIBS
3259LIBS="-lcl $LIBS"
3260cat >conftest.$ac_ext <<_ACEOF
3261/* confdefs.h. */
3262_ACEOF
3263cat confdefs.h >>conftest.$ac_ext
3264cat >>conftest.$ac_ext <<_ACEOF
3265/* end confdefs.h. */
3266
3267/* Override any GCC internal prototype to avoid an error.
3268 Use char because int might match the return type of a GCC
3269 builtin and then its argument prototype would still apply. */
3270#ifdef __cplusplus
3271extern "C"
3272#endif
3273char clQuerySchemeFromName ();
3274int
3275main ()
3276{
3277return clQuerySchemeFromName ();
3278 ;
3279 return 0;
3280}
3281_ACEOF
3282rm -f conftest.$ac_objext conftest$ac_exeext
3283if { (ac_try="$ac_link"
3284case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3287esac
3288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289 (eval "$ac_link") 2>conftest.er1
3290 ac_status=$?
3291 grep -v '^ *+' conftest.er1 >conftest.err
3292 rm -f conftest.er1
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } && {
3296 test -z "$ac_cxx_werror_flag" ||
3297 test ! -s conftest.err
3298 } && test -s conftest$ac_exeext &&
3299 $as_test_x conftest$ac_exeext; then
3300 ac_cv_lib_cl_clQuerySchemeFromName=yes
3301else
3302 echo "$as_me: failed program was:" >&5
3303sed 's/^/| /' conftest.$ac_ext >&5
3304
3305 ac_cv_lib_cl_clQuerySchemeFromName=no
3306fi
3307
3308rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3309 conftest$ac_exeext conftest.$ac_ext
3310LIBS=$ac_check_lib_save_LIBS
3311fi
3312{ echo "$as_me:$LINENO: result: $ac_cv_lib_cl_clQuerySchemeFromName" >&5
3313echo "${ECHO_T}$ac_cv_lib_cl_clQuerySchemeFromName" >&6; }
3314if test $ac_cv_lib_cl_clQuerySchemeFromName = yes; then
3315 cat >>confdefs.h <<\_ACEOF
3316#define HAVE_CL 1
3317_ACEOF
3318
3319 CL_LIB=-lcl
3320fi
3321
3322
3323
3324{ echo "$as_me:$LINENO: checking for dmICCreate in -ldmedia" >&5
3325echo $ECHO_N "checking for dmICCreate in -ldmedia... $ECHO_C" >&6; }
3326if test "${ac_cv_lib_dmedia_dmICCreate+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3328else
3329 ac_check_lib_save_LIBS=$LIBS
3330LIBS="-ldmedia $LIBS"
3331cat >conftest.$ac_ext <<_ACEOF
3332/* confdefs.h. */
3333_ACEOF
3334cat confdefs.h >>conftest.$ac_ext
3335cat >>conftest.$ac_ext <<_ACEOF
3336/* end confdefs.h. */
3337
3338/* Override any GCC internal prototype to avoid an error.
3339 Use char because int might match the return type of a GCC
3340 builtin and then its argument prototype would still apply. */
3341#ifdef __cplusplus
3342extern "C"
3343#endif
3344char dmICCreate ();
3345int
3346main ()
3347{
3348return dmICCreate ();
3349 ;
3350 return 0;
3351}
3352_ACEOF
3353rm -f conftest.$ac_objext conftest$ac_exeext
3354if { (ac_try="$ac_link"
3355case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358esac
3359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_link") 2>conftest.er1
3361 ac_status=$?
3362 grep -v '^ *+' conftest.er1 >conftest.err
3363 rm -f conftest.er1
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } && {
3367 test -z "$ac_cxx_werror_flag" ||
3368 test ! -s conftest.err
3369 } && test -s conftest$ac_exeext &&
3370 $as_test_x conftest$ac_exeext; then
3371 ac_cv_lib_dmedia_dmICCreate=yes
3372else
3373 echo "$as_me: failed program was:" >&5
3374sed 's/^/| /' conftest.$ac_ext >&5
3375
3376 ac_cv_lib_dmedia_dmICCreate=no
3377fi
3378
3379rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3380 conftest$ac_exeext conftest.$ac_ext
3381LIBS=$ac_check_lib_save_LIBS
3382fi
3383{ echo "$as_me:$LINENO: result: $ac_cv_lib_dmedia_dmICCreate" >&5
3384echo "${ECHO_T}$ac_cv_lib_dmedia_dmICCreate" >&6; }
3385if test $ac_cv_lib_dmedia_dmICCreate = yes; then
3386 cat >>confdefs.h <<\_ACEOF
3387#define HAVE_DMEDIA 1
3388_ACEOF
3389
3390 DMEDIA_LIB=-ldmedia
3391fi
3392
3393
3394
3395ac_ext=cpp
3396ac_cpp='$CXXCPP $CPPFLAGS'
3397ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3400{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3401echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
3402if test -z "$CXXCPP"; then
3403 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3405else
3406 # Double quotes because CXXCPP needs to be expanded
3407 for CXXCPP in "$CXX -E" "/lib/cpp"
3408 do
3409 ac_preproc_ok=false
3410for ac_cxx_preproc_warn_flag in '' yes
3411do
3412 # Use a header file that comes with gcc, so configuring glibc
3413 # with a fresh cross-compiler works.
3414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3415 # <limits.h> exists even on freestanding compilers.
3416 # On the NeXT, cc -E runs the code through the compiler's parser,
3417 # not just through cpp. "Syntax error" is here to catch this case.
3418 cat >conftest.$ac_ext <<_ACEOF
3419/* confdefs.h. */
3420_ACEOF
3421cat confdefs.h >>conftest.$ac_ext
3422cat >>conftest.$ac_ext <<_ACEOF
3423/* end confdefs.h. */
3424#ifdef __STDC__
3425# include <limits.h>
3426#else
3427# include <assert.h>
3428#endif
3429 Syntax error
3430_ACEOF
3431if { (ac_try="$ac_cpp conftest.$ac_ext"
3432case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435esac
3436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3438 ac_status=$?
3439 grep -v '^ *+' conftest.er1 >conftest.err
3440 rm -f conftest.er1
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } >/dev/null && {
3444 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3445 test ! -s conftest.err
3446 }; then
3447 :
3448else
3449 echo "$as_me: failed program was:" >&5
3450sed 's/^/| /' conftest.$ac_ext >&5
3451
3452 # Broken: fails on valid input.
3453continue
3454fi
3455
3456rm -f conftest.err conftest.$ac_ext
3457
3458 # OK, works on sane cases. Now check whether nonexistent headers
3459 # can be detected and how.
3460 cat >conftest.$ac_ext <<_ACEOF
3461/* confdefs.h. */
3462_ACEOF
3463cat confdefs.h >>conftest.$ac_ext
3464cat >>conftest.$ac_ext <<_ACEOF
3465/* end confdefs.h. */
3466#include <ac_nonexistent.h>
3467_ACEOF
3468if { (ac_try="$ac_cpp conftest.$ac_ext"
3469case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3472esac
3473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3475 ac_status=$?
3476 grep -v '^ *+' conftest.er1 >conftest.err
3477 rm -f conftest.er1
3478 cat conftest.err >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } >/dev/null && {
3481 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3482 test ! -s conftest.err
3483 }; then
3484 # Broken: success on invalid input.
3485continue
3486else
3487 echo "$as_me: failed program was:" >&5
3488sed 's/^/| /' conftest.$ac_ext >&5
3489
3490 # Passes both tests.
3491ac_preproc_ok=:
3492break
3493fi
3494
3495rm -f conftest.err conftest.$ac_ext
3496
3497done
3498# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3499rm -f conftest.err conftest.$ac_ext
3500if $ac_preproc_ok; then
3501 break
3502fi
3503
3504 done
3505 ac_cv_prog_CXXCPP=$CXXCPP
3506
3507fi
3508 CXXCPP=$ac_cv_prog_CXXCPP
3509else
3510 ac_cv_prog_CXXCPP=$CXXCPP
3511fi
3512{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
3513echo "${ECHO_T}$CXXCPP" >&6; }
3514ac_preproc_ok=false
3515for ac_cxx_preproc_warn_flag in '' yes
3516do
3517 # Use a header file that comes with gcc, so configuring glibc
3518 # with a fresh cross-compiler works.
3519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3520 # <limits.h> exists even on freestanding compilers.
3521 # On the NeXT, cc -E runs the code through the compiler's parser,
3522 # not just through cpp. "Syntax error" is here to catch this case.
3523 cat >conftest.$ac_ext <<_ACEOF
3524/* confdefs.h. */
3525_ACEOF
3526cat confdefs.h >>conftest.$ac_ext
3527cat >>conftest.$ac_ext <<_ACEOF
3528/* end confdefs.h. */
3529#ifdef __STDC__
3530# include <limits.h>
3531#else
3532# include <assert.h>
3533#endif
3534 Syntax error
3535_ACEOF
3536if { (ac_try="$ac_cpp conftest.$ac_ext"
3537case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540esac
3541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3543 ac_status=$?
3544 grep -v '^ *+' conftest.er1 >conftest.err
3545 rm -f conftest.er1
3546 cat conftest.err >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } >/dev/null && {
3549 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3550 test ! -s conftest.err
3551 }; then
3552 :
3553else
3554 echo "$as_me: failed program was:" >&5
3555sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 # Broken: fails on valid input.
3558continue
3559fi
3560
3561rm -f conftest.err conftest.$ac_ext
3562
3563 # OK, works on sane cases. Now check whether nonexistent headers
3564 # can be detected and how.
3565 cat >conftest.$ac_ext <<_ACEOF
3566/* confdefs.h. */
3567_ACEOF
3568cat confdefs.h >>conftest.$ac_ext
3569cat >>conftest.$ac_ext <<_ACEOF
3570/* end confdefs.h. */
3571#include <ac_nonexistent.h>
3572_ACEOF
3573if { (ac_try="$ac_cpp conftest.$ac_ext"
3574case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577esac
3578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3580 ac_status=$?
3581 grep -v '^ *+' conftest.er1 >conftest.err
3582 rm -f conftest.er1
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } >/dev/null && {
3586 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3587 test ! -s conftest.err
3588 }; then
3589 # Broken: success on invalid input.
3590continue
3591else
3592 echo "$as_me: failed program was:" >&5
3593sed 's/^/| /' conftest.$ac_ext >&5
3594
3595 # Passes both tests.
3596ac_preproc_ok=:
3597break
3598fi
3599
3600rm -f conftest.err conftest.$ac_ext
3601
3602done
3603# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3604rm -f conftest.err conftest.$ac_ext
3605if $ac_preproc_ok; then
3606 :
3607else
3608 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3609See \`config.log' for more details." >&5
3610echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3611See \`config.log' for more details." >&2;}
3612 { (exit 1); exit 1; }; }
3613fi
3614
3615ac_ext=cpp
3616ac_cpp='$CXXCPP $CPPFLAGS'
3617ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3618ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3619ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3620
3621
3622{ echo "$as_me:$LINENO: checking for X" >&5
3623echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3624
3625
3626# Check whether --with-x was given.
3627if test "${with_x+set}" = set; then
3628 withval=$with_x;
3629fi
3630
3631# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3632if test "x$with_x" = xno; then
3633 # The user explicitly disabled X.
3634 have_x=disabled
3635else
3636 case $x_includes,$x_libraries in #(
3637 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3638echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3639 { (exit 1); exit 1; }; };; #(
3640 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3642else
3643 # One or both of the vars are not set, and there is no cached value.
3644ac_x_includes=no ac_x_libraries=no
3645rm -f -r conftest.dir
3646if mkdir conftest.dir; then
3647 cd conftest.dir
3648 cat >Imakefile <<'_ACEOF'
3649incroot:
3650 @echo incroot='${INCROOT}'
3651usrlibdir:
3652 @echo usrlibdir='${USRLIBDIR}'
3653libdir:
3654 @echo libdir='${LIBDIR}'
3655_ACEOF
3656 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3657 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3658 for ac_var in incroot usrlibdir libdir; do
3659 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3660 done
3661 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3662 for ac_extension in a so sl; do
3663 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3664 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3665 ac_im_usrlibdir=$ac_im_libdir; break
3666 fi
3667 done
3668 # Screen out bogus values from the imake configuration. They are
3669 # bogus both because they are the default anyway, and because
3670 # using them would break gcc on systems where it needs fixed includes.
3671 case $ac_im_incroot in
3672 /usr/include) ac_x_includes= ;;
3673 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3674 esac
3675 case $ac_im_usrlibdir in
3676 /usr/lib | /lib) ;;
3677 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3678 esac
3679 fi
3680 cd ..
3681 rm -f -r conftest.dir
3682fi
3683
3684# Standard set of common directories for X headers.
3685# Check X11 before X11Rn because it is often a symlink to the current release.
3686ac_x_header_dirs='
3687/usr/X11/include
3688/usr/X11R6/include
3689/usr/X11R5/include
3690/usr/X11R4/include
3691
3692/usr/include/X11
3693/usr/include/X11R6
3694/usr/include/X11R5
3695/usr/include/X11R4
3696
3697/usr/local/X11/include
3698/usr/local/X11R6/include
3699/usr/local/X11R5/include
3700/usr/local/X11R4/include
3701
3702/usr/local/include/X11
3703/usr/local/include/X11R6
3704/usr/local/include/X11R5
3705/usr/local/include/X11R4
3706
3707/usr/X386/include
3708/usr/x386/include
3709/usr/XFree86/include/X11
3710
3711/usr/include
3712/usr/local/include
3713/usr/unsupported/include
3714/usr/athena/include
3715/usr/local/x11r5/include
3716/usr/lpp/Xamples/include
3717
3718/usr/openwin/include
3719/usr/openwin/share/include'
3720
3721if test "$ac_x_includes" = no; then
3722 # Guess where to find include files, by looking for Xlib.h.
3723 # First, try using that file with no special directory specified.
3724 cat >conftest.$ac_ext <<_ACEOF
3725/* confdefs.h. */
3726_ACEOF
3727cat confdefs.h >>conftest.$ac_ext
3728cat >>conftest.$ac_ext <<_ACEOF
3729/* end confdefs.h. */
3730#include <X11/Xlib.h>
3731_ACEOF
3732if { (ac_try="$ac_cpp conftest.$ac_ext"
3733case "(($ac_try" in
3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3736esac
3737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3739 ac_status=$?
3740 grep -v '^ *+' conftest.er1 >conftest.err
3741 rm -f conftest.er1
3742 cat conftest.err >&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); } >/dev/null && {
3745 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3746 test ! -s conftest.err
3747 }; then
3748 # We can compile using X headers with no special include directory.
3749ac_x_includes=
3750else
3751 echo "$as_me: failed program was:" >&5
3752sed 's/^/| /' conftest.$ac_ext >&5
3753
3754 for ac_dir in $ac_x_header_dirs; do
3755 if test -r "$ac_dir/X11/Xlib.h"; then
3756 ac_x_includes=$ac_dir
3757 break
3758 fi
3759done
3760fi
3761
3762rm -f conftest.err conftest.$ac_ext
3763fi # $ac_x_includes = no
3764
3765if test "$ac_x_libraries" = no; then
3766 # Check for the libraries.
3767 # See if we find them without any special options.
3768 # Don't add to $LIBS permanently.
3769 ac_save_LIBS=$LIBS
3770 LIBS="-lX11 $LIBS"
3771 cat >conftest.$ac_ext <<_ACEOF
3772/* confdefs.h. */
3773_ACEOF
3774cat confdefs.h >>conftest.$ac_ext
3775cat >>conftest.$ac_ext <<_ACEOF
3776/* end confdefs.h. */
3777#include <X11/Xlib.h>
3778int
3779main ()
3780{
3781XrmInitialize ()
3782 ;
3783 return 0;
3784}
3785_ACEOF
3786rm -f conftest.$ac_objext conftest$ac_exeext
3787if { (ac_try="$ac_link"
3788case "(($ac_try" in
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3791esac
3792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3793 (eval "$ac_link") 2>conftest.er1
3794 ac_status=$?
3795 grep -v '^ *+' conftest.er1 >conftest.err
3796 rm -f conftest.er1
3797 cat conftest.err >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); } && {
3800 test -z "$ac_cxx_werror_flag" ||
3801 test ! -s conftest.err
3802 } && test -s conftest$ac_exeext &&
3803 $as_test_x conftest$ac_exeext; then
3804 LIBS=$ac_save_LIBS
3805# We can link X programs with no special library path.
3806ac_x_libraries=
3807else
3808 echo "$as_me: failed program was:" >&5
3809sed 's/^/| /' conftest.$ac_ext >&5
3810
3811 LIBS=$ac_save_LIBS
3812for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3813do
3814 # Don't even attempt the hair of trying to link an X program!
3815 for ac_extension in a so sl; do
3816 if test -r "$ac_dir/libX11.$ac_extension"; then
3817 ac_x_libraries=$ac_dir
3818 break 2
3819 fi
3820 done
3821done
3822fi
3823
3824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3825 conftest$ac_exeext conftest.$ac_ext
3826fi # $ac_x_libraries = no
3827
3828case $ac_x_includes,$ac_x_libraries in #(
3829 no,* | *,no | *\'*)
3830 # Didn't find X, or a directory has "'" in its name.
3831 ac_cv_have_x="have_x=no";; #(
3832 *)
3833 # Record where we found X for the cache.
3834 ac_cv_have_x="have_x=yes\
3835 ac_x_includes='$ac_x_includes'\
3836 ac_x_libraries='$ac_x_libraries'"
3837esac
3838fi
3839;; #(
3840 *) have_x=yes;;
3841 esac
3842 eval "$ac_cv_have_x"
3843fi # $with_x != no
3844
3845if test "$have_x" != yes; then
3846 { echo "$as_me:$LINENO: result: $have_x" >&5
3847echo "${ECHO_T}$have_x" >&6; }
3848 no_x=yes
3849else
3850 # If each of the values was on the command line, it overrides each guess.
3851 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3852 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3853 # Update the cache value to reflect the command line values.
3854 ac_cv_have_x="have_x=yes\
3855 ac_x_includes='$x_includes'\
3856 ac_x_libraries='$x_libraries'"
3857 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3858echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
3859fi
3860
3861if test "$no_x" = yes; then
3862 # Not all programs may use this symbol, but it does not hurt to define it.
3863
3864cat >>confdefs.h <<\_ACEOF
3865#define X_DISPLAY_MISSING 1
3866_ACEOF
3867
3868 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3869else
3870 if test -n "$x_includes"; then
3871 X_CFLAGS="$X_CFLAGS -I$x_includes"
3872 fi
3873
3874 # It would also be nice to do this for all -L options, not just this one.
3875 if test -n "$x_libraries"; then
3876 X_LIBS="$X_LIBS -L$x_libraries"
3877 # For Solaris; some versions of Sun CC require a space after -R and
3878 # others require no space. Words are not sufficient . . . .
3879 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3880echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
3881 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3882 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
3883 ac_cxx_werror_flag=yes
3884 cat >conftest.$ac_ext <<_ACEOF
3885/* confdefs.h. */
3886_ACEOF
3887cat confdefs.h >>conftest.$ac_ext
3888cat >>conftest.$ac_ext <<_ACEOF
3889/* end confdefs.h. */
3890
3891int
3892main ()
3893{
3894
3895 ;
3896 return 0;
3897}
3898_ACEOF
3899rm -f conftest.$ac_objext conftest$ac_exeext
3900if { (ac_try="$ac_link"
3901case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904esac
3905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_link") 2>conftest.er1
3907 ac_status=$?
3908 grep -v '^ *+' conftest.er1 >conftest.err
3909 rm -f conftest.er1
3910 cat conftest.err >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } && {
3913 test -z "$ac_cxx_werror_flag" ||
3914 test ! -s conftest.err
3915 } && test -s conftest$ac_exeext &&
3916 $as_test_x conftest$ac_exeext; then
3917 { echo "$as_me:$LINENO: result: no" >&5
3918echo "${ECHO_T}no" >&6; }
3919 X_LIBS="$X_LIBS -R$x_libraries"
3920else
3921 echo "$as_me: failed program was:" >&5
3922sed 's/^/| /' conftest.$ac_ext >&5
3923
3924 LIBS="$ac_xsave_LIBS -R $x_libraries"
3925 cat >conftest.$ac_ext <<_ACEOF
3926/* confdefs.h. */
3927_ACEOF
3928cat confdefs.h >>conftest.$ac_ext
3929cat >>conftest.$ac_ext <<_ACEOF
3930/* end confdefs.h. */
3931
3932int
3933main ()
3934{
3935
3936 ;
3937 return 0;
3938}
3939_ACEOF
3940rm -f conftest.$ac_objext conftest$ac_exeext
3941if { (ac_try="$ac_link"
3942case "(($ac_try" in
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3945esac
3946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3947 (eval "$ac_link") 2>conftest.er1
3948 ac_status=$?
3949 grep -v '^ *+' conftest.er1 >conftest.err
3950 rm -f conftest.er1
3951 cat conftest.err >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } && {
3954 test -z "$ac_cxx_werror_flag" ||
3955 test ! -s conftest.err
3956 } && test -s conftest$ac_exeext &&
3957 $as_test_x conftest$ac_exeext; then
3958 { echo "$as_me:$LINENO: result: yes" >&5
3959echo "${ECHO_T}yes" >&6; }
3960 X_LIBS="$X_LIBS -R $x_libraries"
3961else
3962 echo "$as_me: failed program was:" >&5
3963sed 's/^/| /' conftest.$ac_ext >&5
3964
3965 { echo "$as_me:$LINENO: result: neither works" >&5
3966echo "${ECHO_T}neither works" >&6; }
3967fi
3968
3969rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3970 conftest$ac_exeext conftest.$ac_ext
3971fi
3972
3973rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3974 conftest$ac_exeext conftest.$ac_ext
3975 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
3976 LIBS=$ac_xsave_LIBS
3977 fi
3978
3979 # Check for system-dependent libraries X programs must link with.
3980 # Do this before checking for the system-independent R6 libraries
3981 # (-lICE), since we may need -lsocket or whatever for X linking.
3982
3983 if test "$ISC" = yes; then
3984 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3985 else
3986 # Martyn Johnson says this is needed for Ultrix, if the X
3987 # libraries were built with DECnet support. And Karl Berry says
3988 # the Alpha needs dnet_stub (dnet does not exist).
3989 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3990 cat >conftest.$ac_ext <<_ACEOF
3991/* confdefs.h. */
3992_ACEOF
3993cat confdefs.h >>conftest.$ac_ext
3994cat >>conftest.$ac_ext <<_ACEOF
3995/* end confdefs.h. */
3996
3997/* Override any GCC internal prototype to avoid an error.
3998 Use char because int might match the return type of a GCC
3999 builtin and then its argument prototype would still apply. */
4000#ifdef __cplusplus
4001extern "C"
4002#endif
4003char XOpenDisplay ();
4004int
4005main ()
4006{
4007return XOpenDisplay ();
4008 ;
4009 return 0;
4010}
4011_ACEOF
4012rm -f conftest.$ac_objext conftest$ac_exeext
4013if { (ac_try="$ac_link"
4014case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017esac
4018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_link") 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } && {
4026 test -z "$ac_cxx_werror_flag" ||
4027 test ! -s conftest.err
4028 } && test -s conftest$ac_exeext &&
4029 $as_test_x conftest$ac_exeext; then
4030 :
4031else
4032 echo "$as_me: failed program was:" >&5
4033sed 's/^/| /' conftest.$ac_ext >&5
4034
4035 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4036echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4037if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4039else
4040 ac_check_lib_save_LIBS=$LIBS
4041LIBS="-ldnet $LIBS"
4042cat >conftest.$ac_ext <<_ACEOF
4043/* confdefs.h. */
4044_ACEOF
4045cat confdefs.h >>conftest.$ac_ext
4046cat >>conftest.$ac_ext <<_ACEOF
4047/* end confdefs.h. */
4048
4049/* Override any GCC internal prototype to avoid an error.
4050 Use char because int might match the return type of a GCC
4051 builtin and then its argument prototype would still apply. */
4052#ifdef __cplusplus
4053extern "C"
4054#endif
4055char dnet_ntoa ();
4056int
4057main ()
4058{
4059return dnet_ntoa ();
4060 ;
4061 return 0;
4062}
4063_ACEOF
4064rm -f conftest.$ac_objext conftest$ac_exeext
4065if { (ac_try="$ac_link"
4066case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069esac
4070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_link") 2>conftest.er1
4072 ac_status=$?
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } && {
4078 test -z "$ac_cxx_werror_flag" ||
4079 test ! -s conftest.err
4080 } && test -s conftest$ac_exeext &&
4081 $as_test_x conftest$ac_exeext; then
4082 ac_cv_lib_dnet_dnet_ntoa=yes
4083else
4084 echo "$as_me: failed program was:" >&5
4085sed 's/^/| /' conftest.$ac_ext >&5
4086
4087 ac_cv_lib_dnet_dnet_ntoa=no
4088fi
4089
4090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4091 conftest$ac_exeext conftest.$ac_ext
4092LIBS=$ac_check_lib_save_LIBS
4093fi
4094{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4095echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4096if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4097 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4098fi
4099
4100 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4101 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4102echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4103if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105else
4106 ac_check_lib_save_LIBS=$LIBS
4107LIBS="-ldnet_stub $LIBS"
4108cat >conftest.$ac_ext <<_ACEOF
4109/* confdefs.h. */
4110_ACEOF
4111cat confdefs.h >>conftest.$ac_ext
4112cat >>conftest.$ac_ext <<_ACEOF
4113/* end confdefs.h. */
4114
4115/* Override any GCC internal prototype to avoid an error.
4116 Use char because int might match the return type of a GCC
4117 builtin and then its argument prototype would still apply. */
4118#ifdef __cplusplus
4119extern "C"
4120#endif
4121char dnet_ntoa ();
4122int
4123main ()
4124{
4125return dnet_ntoa ();
4126 ;
4127 return 0;
4128}
4129_ACEOF
4130rm -f conftest.$ac_objext conftest$ac_exeext
4131if { (ac_try="$ac_link"
4132case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135esac
4136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_link") 2>conftest.er1
4138 ac_status=$?
4139 grep -v '^ *+' conftest.er1 >conftest.err
4140 rm -f conftest.er1
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } && {
4144 test -z "$ac_cxx_werror_flag" ||
4145 test ! -s conftest.err
4146 } && test -s conftest$ac_exeext &&
4147 $as_test_x conftest$ac_exeext; then
4148 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4149else
4150 echo "$as_me: failed program was:" >&5
4151sed 's/^/| /' conftest.$ac_ext >&5
4152
4153 ac_cv_lib_dnet_stub_dnet_ntoa=no
4154fi
4155
4156rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4157 conftest$ac_exeext conftest.$ac_ext
4158LIBS=$ac_check_lib_save_LIBS
4159fi
4160{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4161echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4162if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4163 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4164fi
4165
4166 fi
4167fi
4168
4169rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4170 conftest$ac_exeext conftest.$ac_ext
4171 LIBS="$ac_xsave_LIBS"
4172
4173 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4174 # to get the SysV transport functions.
4175 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4176 # needs -lnsl.
4177 # The nsl library prevents programs from opening the X display
4178 # on Irix 5.2, according to T.E. Dickey.
4179 # The functions gethostbyname, getservbyname, and inet_addr are
4180 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4181 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4182echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4183if test "${ac_cv_func_gethostbyname+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185else
4186 cat >conftest.$ac_ext <<_ACEOF
4187/* confdefs.h. */
4188_ACEOF
4189cat confdefs.h >>conftest.$ac_ext
4190cat >>conftest.$ac_ext <<_ACEOF
4191/* end confdefs.h. */
4192/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4194#define gethostbyname innocuous_gethostbyname
4195
4196/* System header to define __stub macros and hopefully few prototypes,
4197 which can conflict with char gethostbyname (); below.
4198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4199 <limits.h> exists even on freestanding compilers. */
4200
4201#ifdef __STDC__
4202# include <limits.h>
4203#else
4204# include <assert.h>
4205#endif
4206
4207#undef gethostbyname
4208
4209/* Override any GCC internal prototype to avoid an error.
4210 Use char because int might match the return type of a GCC
4211 builtin and then its argument prototype would still apply. */
4212#ifdef __cplusplus
4213extern "C"
4214#endif
4215char gethostbyname ();
4216/* The GNU C library defines this for functions which it implements
4217 to always fail with ENOSYS. Some functions are actually named
4218 something starting with __ and the normal name is an alias. */
4219#if defined __stub_gethostbyname || defined __stub___gethostbyname
4220choke me
4221#endif
4222
4223int
4224main ()
4225{
4226return gethostbyname ();
4227 ;
4228 return 0;
4229}
4230_ACEOF
4231rm -f conftest.$ac_objext conftest$ac_exeext
4232if { (ac_try="$ac_link"
4233case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4236esac
4237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_link") 2>conftest.er1
4239 ac_status=$?
4240 grep -v '^ *+' conftest.er1 >conftest.err
4241 rm -f conftest.er1
4242 cat conftest.err >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } && {
4245 test -z "$ac_cxx_werror_flag" ||
4246 test ! -s conftest.err
4247 } && test -s conftest$ac_exeext &&
4248 $as_test_x conftest$ac_exeext; then
4249 ac_cv_func_gethostbyname=yes
4250else
4251 echo "$as_me: failed program was:" >&5
4252sed 's/^/| /' conftest.$ac_ext >&5
4253
4254 ac_cv_func_gethostbyname=no
4255fi
4256
4257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4258 conftest$ac_exeext conftest.$ac_ext
4259fi
4260{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4261echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4262
4263 if test $ac_cv_func_gethostbyname = no; then
4264 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4265echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4266if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4268else
4269 ac_check_lib_save_LIBS=$LIBS
4270LIBS="-lnsl $LIBS"
4271cat >conftest.$ac_ext <<_ACEOF
4272/* confdefs.h. */
4273_ACEOF
4274cat confdefs.h >>conftest.$ac_ext
4275cat >>conftest.$ac_ext <<_ACEOF
4276/* end confdefs.h. */
4277
4278/* Override any GCC internal prototype to avoid an error.
4279 Use char because int might match the return type of a GCC
4280 builtin and then its argument prototype would still apply. */
4281#ifdef __cplusplus
4282extern "C"
4283#endif
4284char gethostbyname ();
4285int
4286main ()
4287{
4288return gethostbyname ();
4289 ;
4290 return 0;
4291}
4292_ACEOF
4293rm -f conftest.$ac_objext conftest$ac_exeext
4294if { (ac_try="$ac_link"
4295case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298esac
4299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_link") 2>conftest.er1
4301 ac_status=$?
4302 grep -v '^ *+' conftest.er1 >conftest.err
4303 rm -f conftest.er1
4304 cat conftest.err >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } && {
4307 test -z "$ac_cxx_werror_flag" ||
4308 test ! -s conftest.err
4309 } && test -s conftest$ac_exeext &&
4310 $as_test_x conftest$ac_exeext; then
4311 ac_cv_lib_nsl_gethostbyname=yes
4312else
4313 echo "$as_me: failed program was:" >&5
4314sed 's/^/| /' conftest.$ac_ext >&5
4315
4316 ac_cv_lib_nsl_gethostbyname=no
4317fi
4318
4319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4320 conftest$ac_exeext conftest.$ac_ext
4321LIBS=$ac_check_lib_save_LIBS
4322fi
4323{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4324echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4325if test $ac_cv_lib_nsl_gethostbyname = yes; then
4326 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4327fi
4328
4329 if test $ac_cv_lib_nsl_gethostbyname = no; then
4330 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4331echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4332if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4334else
4335 ac_check_lib_save_LIBS=$LIBS
4336LIBS="-lbsd $LIBS"
4337cat >conftest.$ac_ext <<_ACEOF
4338/* confdefs.h. */
4339_ACEOF
4340cat confdefs.h >>conftest.$ac_ext
4341cat >>conftest.$ac_ext <<_ACEOF
4342/* end confdefs.h. */
4343
4344/* Override any GCC internal prototype to avoid an error.
4345 Use char because int might match the return type of a GCC
4346 builtin and then its argument prototype would still apply. */
4347#ifdef __cplusplus
4348extern "C"
4349#endif
4350char gethostbyname ();
4351int
4352main ()
4353{
4354return gethostbyname ();
4355 ;
4356 return 0;
4357}
4358_ACEOF
4359rm -f conftest.$ac_objext conftest$ac_exeext
4360if { (ac_try="$ac_link"
4361case "(($ac_try" in
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4364esac
4365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_link") 2>conftest.er1
4367 ac_status=$?
4368 grep -v '^ *+' conftest.er1 >conftest.err
4369 rm -f conftest.er1
4370 cat conftest.err >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } && {
4373 test -z "$ac_cxx_werror_flag" ||
4374 test ! -s conftest.err
4375 } && test -s conftest$ac_exeext &&
4376 $as_test_x conftest$ac_exeext; then
4377 ac_cv_lib_bsd_gethostbyname=yes
4378else
4379 echo "$as_me: failed program was:" >&5
4380sed 's/^/| /' conftest.$ac_ext >&5
4381
4382 ac_cv_lib_bsd_gethostbyname=no
4383fi
4384
4385rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4386 conftest$ac_exeext conftest.$ac_ext
4387LIBS=$ac_check_lib_save_LIBS
4388fi
4389{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4390echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4391if test $ac_cv_lib_bsd_gethostbyname = yes; then
4392 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4393fi
4394
4395 fi
4396 fi
4397
4398 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4399 # socket/setsockopt and other routines are undefined under SCO ODT
4400 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4401 # on later versions), says Simon Leinen: it contains gethostby*
4402 # variants that don't use the name server (or something). -lsocket
4403 # must be given before -lnsl if both are needed. We assume that
4404 # if connect needs -lnsl, so does gethostbyname.
4405 { echo "$as_me:$LINENO: checking for connect" >&5
4406echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4407if test "${ac_cv_func_connect+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4409else
4410 cat >conftest.$ac_ext <<_ACEOF
4411/* confdefs.h. */
4412_ACEOF
4413cat confdefs.h >>conftest.$ac_ext
4414cat >>conftest.$ac_ext <<_ACEOF
4415/* end confdefs.h. */
4416/* Define connect to an innocuous variant, in case <limits.h> declares connect.
4417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4418#define connect innocuous_connect
4419
4420/* System header to define __stub macros and hopefully few prototypes,
4421 which can conflict with char connect (); below.
4422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4423 <limits.h> exists even on freestanding compilers. */
4424
4425#ifdef __STDC__
4426# include <limits.h>
4427#else
4428# include <assert.h>
4429#endif
4430
4431#undef connect
4432
4433/* Override any GCC internal prototype to avoid an error.
4434 Use char because int might match the return type of a GCC
4435 builtin and then its argument prototype would still apply. */
4436#ifdef __cplusplus
4437extern "C"
4438#endif
4439char connect ();
4440/* The GNU C library defines this for functions which it implements
4441 to always fail with ENOSYS. Some functions are actually named
4442 something starting with __ and the normal name is an alias. */
4443#if defined __stub_connect || defined __stub___connect
4444choke me
4445#endif
4446
4447int
4448main ()
4449{
4450return connect ();
4451 ;
4452 return 0;
4453}
4454_ACEOF
4455rm -f conftest.$ac_objext conftest$ac_exeext
4456if { (ac_try="$ac_link"
4457case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460esac
4461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462 (eval "$ac_link") 2>conftest.er1
4463 ac_status=$?
4464 grep -v '^ *+' conftest.er1 >conftest.err
4465 rm -f conftest.er1
4466 cat conftest.err >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } && {
4469 test -z "$ac_cxx_werror_flag" ||
4470 test ! -s conftest.err
4471 } && test -s conftest$ac_exeext &&
4472 $as_test_x conftest$ac_exeext; then
4473 ac_cv_func_connect=yes
4474else
4475 echo "$as_me: failed program was:" >&5
4476sed 's/^/| /' conftest.$ac_ext >&5
4477
4478 ac_cv_func_connect=no
4479fi
4480
4481rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4482 conftest$ac_exeext conftest.$ac_ext
4483fi
4484{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4485echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4486
4487 if test $ac_cv_func_connect = no; then
4488 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4489echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4490if test "${ac_cv_lib_socket_connect+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4492else
4493 ac_check_lib_save_LIBS=$LIBS
4494LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4495cat >conftest.$ac_ext <<_ACEOF
4496/* confdefs.h. */
4497_ACEOF
4498cat confdefs.h >>conftest.$ac_ext
4499cat >>conftest.$ac_ext <<_ACEOF
4500/* end confdefs.h. */
4501
4502/* Override any GCC internal prototype to avoid an error.
4503 Use char because int might match the return type of a GCC
4504 builtin and then its argument prototype would still apply. */
4505#ifdef __cplusplus
4506extern "C"
4507#endif
4508char connect ();
4509int
4510main ()
4511{
4512return connect ();
4513 ;
4514 return 0;
4515}
4516_ACEOF
4517rm -f conftest.$ac_objext conftest$ac_exeext
4518if { (ac_try="$ac_link"
4519case "(($ac_try" in
4520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521 *) ac_try_echo=$ac_try;;
4522esac
4523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4524 (eval "$ac_link") 2>conftest.er1
4525 ac_status=$?
4526 grep -v '^ *+' conftest.er1 >conftest.err
4527 rm -f conftest.er1
4528 cat conftest.err >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); } && {
4531 test -z "$ac_cxx_werror_flag" ||
4532 test ! -s conftest.err
4533 } && test -s conftest$ac_exeext &&
4534 $as_test_x conftest$ac_exeext; then
4535 ac_cv_lib_socket_connect=yes
4536else
4537 echo "$as_me: failed program was:" >&5
4538sed 's/^/| /' conftest.$ac_ext >&5
4539
4540 ac_cv_lib_socket_connect=no
4541fi
4542
4543rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4544 conftest$ac_exeext conftest.$ac_ext
4545LIBS=$ac_check_lib_save_LIBS
4546fi
4547{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4548echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4549if test $ac_cv_lib_socket_connect = yes; then
4550 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4551fi
4552
4553 fi
4554
4555 # Guillermo Gomez says -lposix is necessary on A/UX.
4556 { echo "$as_me:$LINENO: checking for remove" >&5
4557echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4558if test "${ac_cv_func_remove+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4560else
4561 cat >conftest.$ac_ext <<_ACEOF
4562/* confdefs.h. */
4563_ACEOF
4564cat confdefs.h >>conftest.$ac_ext
4565cat >>conftest.$ac_ext <<_ACEOF
4566/* end confdefs.h. */
4567/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4569#define remove innocuous_remove
4570
4571/* System header to define __stub macros and hopefully few prototypes,
4572 which can conflict with char remove (); below.
4573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4574 <limits.h> exists even on freestanding compilers. */
4575
4576#ifdef __STDC__
4577# include <limits.h>
4578#else
4579# include <assert.h>
4580#endif
4581
4582#undef remove
4583
4584/* Override any GCC internal prototype to avoid an error.
4585 Use char because int might match the return type of a GCC
4586 builtin and then its argument prototype would still apply. */
4587#ifdef __cplusplus
4588extern "C"
4589#endif
4590char remove ();
4591/* The GNU C library defines this for functions which it implements
4592 to always fail with ENOSYS. Some functions are actually named
4593 something starting with __ and the normal name is an alias. */
4594#if defined __stub_remove || defined __stub___remove
4595choke me
4596#endif
4597
4598int
4599main ()
4600{
4601return remove ();
4602 ;
4603 return 0;
4604}
4605_ACEOF
4606rm -f conftest.$ac_objext conftest$ac_exeext
4607if { (ac_try="$ac_link"
4608case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4611esac
4612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613 (eval "$ac_link") 2>conftest.er1
4614 ac_status=$?
4615 grep -v '^ *+' conftest.er1 >conftest.err
4616 rm -f conftest.er1
4617 cat conftest.err >&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } && {
4620 test -z "$ac_cxx_werror_flag" ||
4621 test ! -s conftest.err
4622 } && test -s conftest$ac_exeext &&
4623 $as_test_x conftest$ac_exeext; then
4624 ac_cv_func_remove=yes
4625else
4626 echo "$as_me: failed program was:" >&5
4627sed 's/^/| /' conftest.$ac_ext >&5
4628
4629 ac_cv_func_remove=no
4630fi
4631
4632rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4633 conftest$ac_exeext conftest.$ac_ext
4634fi
4635{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4636echo "${ECHO_T}$ac_cv_func_remove" >&6; }
4637
4638 if test $ac_cv_func_remove = no; then
4639 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4640echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
4641if test "${ac_cv_lib_posix_remove+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4643else
4644 ac_check_lib_save_LIBS=$LIBS
4645LIBS="-lposix $LIBS"
4646cat >conftest.$ac_ext <<_ACEOF
4647/* confdefs.h. */
4648_ACEOF
4649cat confdefs.h >>conftest.$ac_ext
4650cat >>conftest.$ac_ext <<_ACEOF
4651/* end confdefs.h. */
4652
4653/* Override any GCC internal prototype to avoid an error.
4654 Use char because int might match the return type of a GCC
4655 builtin and then its argument prototype would still apply. */
4656#ifdef __cplusplus
4657extern "C"
4658#endif
4659char remove ();
4660int
4661main ()
4662{
4663return remove ();
4664 ;
4665 return 0;
4666}
4667_ACEOF
4668rm -f conftest.$ac_objext conftest$ac_exeext
4669if { (ac_try="$ac_link"
4670case "(($ac_try" in
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4673esac
4674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675 (eval "$ac_link") 2>conftest.er1
4676 ac_status=$?
4677 grep -v '^ *+' conftest.er1 >conftest.err
4678 rm -f conftest.er1
4679 cat conftest.err >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } && {
4682 test -z "$ac_cxx_werror_flag" ||
4683 test ! -s conftest.err
4684 } && test -s conftest$ac_exeext &&
4685 $as_test_x conftest$ac_exeext; then
4686 ac_cv_lib_posix_remove=yes
4687else
4688 echo "$as_me: failed program was:" >&5
4689sed 's/^/| /' conftest.$ac_ext >&5
4690
4691 ac_cv_lib_posix_remove=no
4692fi
4693
4694rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4695 conftest$ac_exeext conftest.$ac_ext
4696LIBS=$ac_check_lib_save_LIBS
4697fi
4698{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4699echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
4700if test $ac_cv_lib_posix_remove = yes; then
4701 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4702fi
4703
4704 fi
4705
4706 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4707 { echo "$as_me:$LINENO: checking for shmat" >&5
4708echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
4709if test "${ac_cv_func_shmat+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4711else
4712 cat >conftest.$ac_ext <<_ACEOF
4713/* confdefs.h. */
4714_ACEOF
4715cat confdefs.h >>conftest.$ac_ext
4716cat >>conftest.$ac_ext <<_ACEOF
4717/* end confdefs.h. */
4718/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4720#define shmat innocuous_shmat
4721
4722/* System header to define __stub macros and hopefully few prototypes,
4723 which can conflict with char shmat (); below.
4724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4725 <limits.h> exists even on freestanding compilers. */
4726
4727#ifdef __STDC__
4728# include <limits.h>
4729#else
4730# include <assert.h>
4731#endif
4732
4733#undef shmat
4734
4735/* Override any GCC internal prototype to avoid an error.
4736 Use char because int might match the return type of a GCC
4737 builtin and then its argument prototype would still apply. */
4738#ifdef __cplusplus
4739extern "C"
4740#endif
4741char shmat ();
4742/* The GNU C library defines this for functions which it implements
4743 to always fail with ENOSYS. Some functions are actually named
4744 something starting with __ and the normal name is an alias. */
4745#if defined __stub_shmat || defined __stub___shmat
4746choke me
4747#endif
4748
4749int
4750main ()
4751{
4752return shmat ();
4753 ;
4754 return 0;
4755}
4756_ACEOF
4757rm -f conftest.$ac_objext conftest$ac_exeext
4758if { (ac_try="$ac_link"
4759case "(($ac_try" in
4760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761 *) ac_try_echo=$ac_try;;
4762esac
4763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764 (eval "$ac_link") 2>conftest.er1
4765 ac_status=$?
4766 grep -v '^ *+' conftest.er1 >conftest.err
4767 rm -f conftest.er1
4768 cat conftest.err >&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } && {
4771 test -z "$ac_cxx_werror_flag" ||
4772 test ! -s conftest.err
4773 } && test -s conftest$ac_exeext &&
4774 $as_test_x conftest$ac_exeext; then
4775 ac_cv_func_shmat=yes
4776else
4777 echo "$as_me: failed program was:" >&5
4778sed 's/^/| /' conftest.$ac_ext >&5
4779
4780 ac_cv_func_shmat=no
4781fi
4782
4783rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4784 conftest$ac_exeext conftest.$ac_ext
4785fi
4786{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4787echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
4788
4789 if test $ac_cv_func_shmat = no; then
4790 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4791echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
4792if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4794else
4795 ac_check_lib_save_LIBS=$LIBS
4796LIBS="-lipc $LIBS"
4797cat >conftest.$ac_ext <<_ACEOF
4798/* confdefs.h. */
4799_ACEOF
4800cat confdefs.h >>conftest.$ac_ext
4801cat >>conftest.$ac_ext <<_ACEOF
4802/* end confdefs.h. */
4803
4804/* Override any GCC internal prototype to avoid an error.
4805 Use char because int might match the return type of a GCC
4806 builtin and then its argument prototype would still apply. */
4807#ifdef __cplusplus
4808extern "C"
4809#endif
4810char shmat ();
4811int
4812main ()
4813{
4814return shmat ();
4815 ;
4816 return 0;
4817}
4818_ACEOF
4819rm -f conftest.$ac_objext conftest$ac_exeext
4820if { (ac_try="$ac_link"
4821case "(($ac_try" in
4822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823 *) ac_try_echo=$ac_try;;
4824esac
4825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4826 (eval "$ac_link") 2>conftest.er1
4827 ac_status=$?
4828 grep -v '^ *+' conftest.er1 >conftest.err
4829 rm -f conftest.er1
4830 cat conftest.err >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } && {
4833 test -z "$ac_cxx_werror_flag" ||
4834 test ! -s conftest.err
4835 } && test -s conftest$ac_exeext &&
4836 $as_test_x conftest$ac_exeext; then
4837 ac_cv_lib_ipc_shmat=yes
4838else
4839 echo "$as_me: failed program was:" >&5
4840sed 's/^/| /' conftest.$ac_ext >&5
4841
4842 ac_cv_lib_ipc_shmat=no
4843fi
4844
4845rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4846 conftest$ac_exeext conftest.$ac_ext
4847LIBS=$ac_check_lib_save_LIBS
4848fi
4849{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4850echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
4851if test $ac_cv_lib_ipc_shmat = yes; then
4852 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4853fi
4854
4855 fi
4856 fi
4857
4858 # Check for libraries that X11R6 Xt/Xaw programs need.
4859 ac_save_LDFLAGS=$LDFLAGS
4860 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4861 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4862 # check for ICE first), but we must link in the order -lSM -lICE or
4863 # we get undefined symbols. So assume we have SM if we have ICE.
4864 # These have to be linked with before -lX11, unlike the other
4865 # libraries we check for below, so use a different variable.
4866 # John Interrante, Karl Berry
4867 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4868echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
4869if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4871else
4872 ac_check_lib_save_LIBS=$LIBS
4873LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4874cat >conftest.$ac_ext <<_ACEOF
4875/* confdefs.h. */
4876_ACEOF
4877cat confdefs.h >>conftest.$ac_ext
4878cat >>conftest.$ac_ext <<_ACEOF
4879/* end confdefs.h. */
4880
4881/* Override any GCC internal prototype to avoid an error.
4882 Use char because int might match the return type of a GCC
4883 builtin and then its argument prototype would still apply. */
4884#ifdef __cplusplus
4885extern "C"
4886#endif
4887char IceConnectionNumber ();
4888int
4889main ()
4890{
4891return IceConnectionNumber ();
4892 ;
4893 return 0;
4894}
4895_ACEOF
4896rm -f conftest.$ac_objext conftest$ac_exeext
4897if { (ac_try="$ac_link"
4898case "(($ac_try" in
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4901esac
4902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_link") 2>conftest.er1
4904 ac_status=$?
4905 grep -v '^ *+' conftest.er1 >conftest.err
4906 rm -f conftest.er1
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } && {
4910 test -z "$ac_cxx_werror_flag" ||
4911 test ! -s conftest.err
4912 } && test -s conftest$ac_exeext &&
4913 $as_test_x conftest$ac_exeext; then
4914 ac_cv_lib_ICE_IceConnectionNumber=yes
4915else
4916 echo "$as_me: failed program was:" >&5
4917sed 's/^/| /' conftest.$ac_ext >&5
4918
4919 ac_cv_lib_ICE_IceConnectionNumber=no
4920fi
4921
4922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4923 conftest$ac_exeext conftest.$ac_ext
4924LIBS=$ac_check_lib_save_LIBS
4925fi
4926{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4927echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4928if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4929 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4930fi
4931
4932 LDFLAGS=$ac_save_LDFLAGS
4933
4934fi
4935
4936
4937
4938# Check whether --with-installed-zlib was given.
4939if test "${with_installed_zlib+set}" = set; then
4940 withval=$with_installed_zlib;
4941fi
4942
4943
4944if test "$with_installed_zlib" = yes; then
4945 echo "using installed zlib"
4946 ZLIB_LIB=-lz
4947else
4948 ZLIB_DIR='$(COMMON)/zlib'
4949 ZLIB_INCLUDE='-I$(COMMON)/zlib'
4950 ZLIB_LIB='$(COMMON)/zlib/libz.a'
4951fi
4952
4953
4954
4955
4956
4957
4958# Check whether --with-installed-jpeg was given.
4959if test "${with_installed_jpeg+set}" = set; then
4960 withval=$with_installed_jpeg;
4961fi
4962
4963
4964if test "$with_installed_jpeg" = yes; then
4965 echo "using installed jpeg"
4966 JPEG_LIB=-ljpeg
4967else
4968 JPEG_DIR='$(COMMON)/jpeg/build'
4969 JPEG_INCLUDE='-I$(COMMON)/jpeg'
4970 JPEG_LIB='$(COMMON)/jpeg/build/libjpeg.a'
4971fi
4972
4973
4974
4975
4976
4977# Check whether --enable-vncconfig was given.
4978if test "${enable_vncconfig+set}" = set; then
4979 enableval=$enable_vncconfig;
4980fi
4981
4982if test "$enable_vncconfig" = no; then
4983 echo "vncconfig utility will not be built"
4984 VNCCONFIG_DIR=
4985else
4986 VNCCONFIG_DIR='vncconfig'
4987fi
4988
4989
4990{ echo "$as_me:$LINENO: checking for XTestGrabControl in -lXtst" >&5
4991echo $ECHO_N "checking for XTestGrabControl in -lXtst... $ECHO_C" >&6; }
4992if test "${ac_cv_lib_Xtst_XTestGrabControl+set}" = set; then
4993 echo $ECHO_N "(cached) $ECHO_C" >&6
4994else
4995 ac_check_lib_save_LIBS=$LIBS
4996LIBS="-lXtst "$X_LIBS" -lXext -lX11 $LIBS"
4997cat >conftest.$ac_ext <<_ACEOF
4998/* confdefs.h. */
4999_ACEOF
5000cat confdefs.h >>conftest.$ac_ext
5001cat >>conftest.$ac_ext <<_ACEOF
5002/* end confdefs.h. */
5003
5004/* Override any GCC internal prototype to avoid an error.
5005 Use char because int might match the return type of a GCC
5006 builtin and then its argument prototype would still apply. */
5007#ifdef __cplusplus
5008extern "C"
5009#endif
5010char XTestGrabControl ();
5011int
5012main ()
5013{
5014return XTestGrabControl ();
5015 ;
5016 return 0;
5017}
5018_ACEOF
5019rm -f conftest.$ac_objext conftest$ac_exeext
5020if { (ac_try="$ac_link"
5021case "(($ac_try" in
5022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023 *) ac_try_echo=$ac_try;;
5024esac
5025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5026 (eval "$ac_link") 2>conftest.er1
5027 ac_status=$?
5028 grep -v '^ *+' conftest.er1 >conftest.err
5029 rm -f conftest.er1
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } && {
5033 test -z "$ac_cxx_werror_flag" ||
5034 test ! -s conftest.err
5035 } && test -s conftest$ac_exeext &&
5036 $as_test_x conftest$ac_exeext; then
5037 ac_cv_lib_Xtst_XTestGrabControl=yes
5038else
5039 echo "$as_me: failed program was:" >&5
5040sed 's/^/| /' conftest.$ac_ext >&5
5041
5042 ac_cv_lib_Xtst_XTestGrabControl=no
5043fi
5044
5045rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5046 conftest$ac_exeext conftest.$ac_ext
5047LIBS=$ac_check_lib_save_LIBS
5048fi
5049{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestGrabControl" >&5
5050echo "${ECHO_T}$ac_cv_lib_Xtst_XTestGrabControl" >&6; }
5051if test $ac_cv_lib_Xtst_XTestGrabControl = yes; then
5052 USE_XTEST=yes
5053else
5054 USE_XTEST=
5055fi
5056
5057if test "$USE_XTEST" = yes; then
5058 XTEST_DEFINE='-DHAVE_XTEST'
5059 XTEST_LIB=-lXtst
5060else
5061 echo Warning: No XTest extension, building x0vncserver view-only
5062 XTEST_DEFINE=
5063 XTEST_LIB=
5064fi
5065
5066
5067
5068if test "$USE_READDISPLAY" = yes; then
5069 READDISPLAY_DEFINE='-DHAVE_READDISPLAY'
5070elif test "$USE_SUN_OVL" = yes; then
5071 READDISPLAY_DEFINE='-DHAVE_SUN_OVL'
5072else
5073 READDISPLAY_DEFINE=
5074fi
5075
5076
5077
5078ac_ext=c
5079ac_cpp='$CPP $CPPFLAGS'
5080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082ac_compiler_gnu=$ac_cv_c_compiler_gnu
5083
5084
5085{ echo "$as_me:$LINENO: checking for gethostbyname" >&5
5086echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
5087if test "${ac_cv_func_gethostbyname+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5089else
5090 cat >conftest.$ac_ext <<_ACEOF
5091/* confdefs.h. */
5092_ACEOF
5093cat confdefs.h >>conftest.$ac_ext
5094cat >>conftest.$ac_ext <<_ACEOF
5095/* end confdefs.h. */
5096/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5098#define gethostbyname innocuous_gethostbyname
5099
5100/* System header to define __stub macros and hopefully few prototypes,
5101 which can conflict with char gethostbyname (); below.
5102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5103 <limits.h> exists even on freestanding compilers. */
5104
5105#ifdef __STDC__
5106# include <limits.h>
5107#else
5108# include <assert.h>
5109#endif
5110
5111#undef gethostbyname
5112
5113/* Override any GCC internal prototype to avoid an error.
5114 Use char because int might match the return type of a GCC
5115 builtin and then its argument prototype would still apply. */
5116#ifdef __cplusplus
5117extern "C"
5118#endif
5119char gethostbyname ();
5120/* The GNU C library defines this for functions which it implements
5121 to always fail with ENOSYS. Some functions are actually named
5122 something starting with __ and the normal name is an alias. */
5123#if defined __stub_gethostbyname || defined __stub___gethostbyname
5124choke me
5125#endif
5126
5127int
5128main ()
5129{
5130return gethostbyname ();
5131 ;
5132 return 0;
5133}
5134_ACEOF
5135rm -f conftest.$ac_objext conftest$ac_exeext
5136if { (ac_try="$ac_link"
5137case "(($ac_try" in
5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5140esac
5141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 (eval "$ac_link") 2>conftest.er1
5143 ac_status=$?
5144 grep -v '^ *+' conftest.er1 >conftest.err
5145 rm -f conftest.er1
5146 cat conftest.err >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } && {
5149 test -z "$ac_c_werror_flag" ||
5150 test ! -s conftest.err
5151 } && test -s conftest$ac_exeext &&
5152 $as_test_x conftest$ac_exeext; then
5153 ac_cv_func_gethostbyname=yes
5154else
5155 echo "$as_me: failed program was:" >&5
5156sed 's/^/| /' conftest.$ac_ext >&5
5157
5158 ac_cv_func_gethostbyname=no
5159fi
5160
5161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5162 conftest$ac_exeext conftest.$ac_ext
5163fi
5164{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5165echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
5166if test $ac_cv_func_gethostbyname = yes; then
5167 INET_LIB_REQ=
5168else
5169 INET_LIB_REQ=yes
5170fi
5171
5172if test "$INET_LIB_REQ" = yes; then
5173 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5174echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
5175if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5177else
5178 ac_check_lib_save_LIBS=$LIBS
5179LIBS="-lbsd $LIBS"
5180cat >conftest.$ac_ext <<_ACEOF
5181/* confdefs.h. */
5182_ACEOF
5183cat confdefs.h >>conftest.$ac_ext
5184cat >>conftest.$ac_ext <<_ACEOF
5185/* end confdefs.h. */
5186
5187/* Override any GCC internal prototype to avoid an error.
5188 Use char because int might match the return type of a GCC
5189 builtin and then its argument prototype would still apply. */
5190#ifdef __cplusplus
5191extern "C"
5192#endif
5193char gethostbyname ();
5194int
5195main ()
5196{
5197return gethostbyname ();
5198 ;
5199 return 0;
5200}
5201_ACEOF
5202rm -f conftest.$ac_objext conftest$ac_exeext
5203if { (ac_try="$ac_link"
5204case "(($ac_try" in
5205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206 *) ac_try_echo=$ac_try;;
5207esac
5208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5209 (eval "$ac_link") 2>conftest.er1
5210 ac_status=$?
5211 grep -v '^ *+' conftest.er1 >conftest.err
5212 rm -f conftest.er1
5213 cat conftest.err >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } && {
5216 test -z "$ac_c_werror_flag" ||
5217 test ! -s conftest.err
5218 } && test -s conftest$ac_exeext &&
5219 $as_test_x conftest$ac_exeext; then
5220 ac_cv_lib_bsd_gethostbyname=yes
5221else
5222 echo "$as_me: failed program was:" >&5
5223sed 's/^/| /' conftest.$ac_ext >&5
5224
5225 ac_cv_lib_bsd_gethostbyname=no
5226fi
5227
5228rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5229 conftest$ac_exeext conftest.$ac_ext
5230LIBS=$ac_check_lib_save_LIBS
5231fi
5232{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5233echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
5234if test $ac_cv_lib_bsd_gethostbyname = yes; then
5235 INET_LIB=-lbsd
5236else
5237 INET_LIB=
5238fi
5239
5240fi
5241ac_ext=cpp
5242ac_cpp='$CXXCPP $CPPFLAGS'
5243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5246
5247
5248
5249ac_aux_dir=
5250for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5251 if test -f "$ac_dir/install-sh"; then
5252 ac_aux_dir=$ac_dir
5253 ac_install_sh="$ac_aux_dir/install-sh -c"
5254 break
5255 elif test -f "$ac_dir/install.sh"; then
5256 ac_aux_dir=$ac_dir
5257 ac_install_sh="$ac_aux_dir/install.sh -c"
5258 break
5259 elif test -f "$ac_dir/shtool"; then
5260 ac_aux_dir=$ac_dir
5261 ac_install_sh="$ac_aux_dir/shtool install -c"
5262 break
5263 fi
5264done
5265if test -z "$ac_aux_dir"; then
5266 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5267echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5268 { (exit 1); exit 1; }; }
5269fi
5270
5271# These three variables are undocumented and unsupported,
5272# and are intended to be withdrawn in a future Autoconf release.
5273# They can cause serious problems if a builder's source tree is in a directory
5274# whose full name contains unusual characters.
5275ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5276ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5277ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5278
5279
5280# Find a good install program. We prefer a C program (faster),
5281# so one script is as good as another. But avoid the broken or
5282# incompatible versions:
5283# SysV /etc/install, /usr/sbin/install
5284# SunOS /usr/etc/install
5285# IRIX /sbin/install
5286# AIX /bin/install
5287# AmigaOS /C/install, which installs bootblocks on floppy discs
5288# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5289# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5290# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5291# OS/2's system install, which has a completely different semantic
5292# ./install, which can be erroneously created by make from ./install.sh.
5293{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5294echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5295if test -z "$INSTALL"; then
5296if test "${ac_cv_path_install+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5298else
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300for as_dir in $PATH
5301do
5302 IFS=$as_save_IFS
5303 test -z "$as_dir" && as_dir=.
5304 # Account for people who put trailing slashes in PATH elements.
5305case $as_dir/ in
5306 ./ | .// | /cC/* | \
5307 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5308 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5309 /usr/ucb/* ) ;;
5310 *)
5311 # OSF1 and SCO ODT 3.0 have their own names for install.
5312 # Don't use installbsd from OSF since it installs stuff as root
5313 # by default.
5314 for ac_prog in ginstall scoinst install; do
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5317 if test $ac_prog = install &&
5318 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5319 # AIX install. It has an incompatible calling convention.
5320 :
5321 elif test $ac_prog = install &&
5322 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5323 # program-specific install script used by HP pwplus--don't use.
5324 :
5325 else
5326 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5327 break 3
5328 fi
5329 fi
5330 done
5331 done
5332 ;;
5333esac
5334done
5335IFS=$as_save_IFS
5336
5337
5338fi
5339 if test "${ac_cv_path_install+set}" = set; then
5340 INSTALL=$ac_cv_path_install
5341 else
5342 # As a last resort, use the slow shell script. Don't cache a
5343 # value for INSTALL within a source directory, because that will
5344 # break other packages using the cache if that directory is
5345 # removed, or if the value is a relative name.
5346 INSTALL=$ac_install_sh
5347 fi
5348fi
5349{ echo "$as_me:$LINENO: result: $INSTALL" >&5
5350echo "${ECHO_T}$INSTALL" >&6; }
5351
5352# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5353# It thinks the first close brace ends the variable substitution.
5354test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5355
5356test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5357
5358test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5359
5360
5361 MKINSTALLDIRS=
5362 if test -n "$ac_aux_dir"; then
5363 case "$ac_aux_dir" in
5364 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5365 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5366 esac
5367 fi
5368 if test -z "$MKINSTALLDIRS"; then
5369 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5370 fi
5371
5372
5373
5374 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5375echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5376 # Check whether --enable-nls was given.
5377if test "${enable_nls+set}" = set; then
5378 enableval=$enable_nls; USE_NLS=$enableval
5379else
5380 USE_NLS=yes
5381fi
5382
5383 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5384echo "${ECHO_T}$USE_NLS" >&6; }
5385
5386
5387
5388
5389
5390
5391# Prepare PATH_SEPARATOR.
5392# The user is always right.
5393if test "${PATH_SEPARATOR+set}" != set; then
5394 echo "#! /bin/sh" >conf$$.sh
5395 echo "exit 0" >>conf$$.sh
5396 chmod +x conf$$.sh
5397 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5398 PATH_SEPARATOR=';'
5399 else
5400 PATH_SEPARATOR=:
5401 fi
5402 rm -f conf$$.sh
5403fi
5404
5405# Find out how to test for executable files. Don't use a zero-byte file,
5406# as systems may use methods other than mode bits to determine executability.
5407cat >conf$$.file <<_ASEOF
5408#! /bin/sh
5409exit 0
5410_ASEOF
5411chmod +x conf$$.file
5412if test -x conf$$.file >/dev/null 2>&1; then
5413 ac_executable_p="test -x"
5414else
5415 ac_executable_p="test -f"
5416fi
5417rm -f conf$$.file
5418
5419# Extract the first word of "msgfmt", so it can be a program name with args.
5420set dummy msgfmt; ac_word=$2
5421{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5423if test "${ac_cv_path_MSGFMT+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5425else
5426 case "$MSGFMT" in
5427 [\\/]* | ?:[\\/]*)
5428 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5429 ;;
5430 *)
5431 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5432 for ac_dir in $PATH; do
5433 IFS="$ac_save_IFS"
5434 test -z "$ac_dir" && ac_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5437 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5438 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5439 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5440 break 2
5441 fi
5442 fi
5443 done
5444 done
5445 IFS="$ac_save_IFS"
5446 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5447 ;;
5448esac
5449fi
5450MSGFMT="$ac_cv_path_MSGFMT"
5451if test "$MSGFMT" != ":"; then
5452 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5453echo "${ECHO_T}$MSGFMT" >&6; }
5454else
5455 { echo "$as_me:$LINENO: result: no" >&5
5456echo "${ECHO_T}no" >&6; }
5457fi
5458
5459 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5460set dummy gmsgfmt; ac_word=$2
5461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5463if test "${ac_cv_path_GMSGFMT+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465else
5466 case $GMSGFMT in
5467 [\\/]* | ?:[\\/]*)
5468 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5469 ;;
5470 *)
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472for as_dir in $PATH
5473do
5474 IFS=$as_save_IFS
5475 test -z "$as_dir" && as_dir=.
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5478 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 break 2
5481 fi
5482done
5483done
5484IFS=$as_save_IFS
5485
5486 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5487 ;;
5488esac
5489fi
5490GMSGFMT=$ac_cv_path_GMSGFMT
5491if test -n "$GMSGFMT"; then
5492 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5493echo "${ECHO_T}$GMSGFMT" >&6; }
5494else
5495 { echo "$as_me:$LINENO: result: no" >&5
5496echo "${ECHO_T}no" >&6; }
5497fi
5498
5499
5500
5501
5502# Prepare PATH_SEPARATOR.
5503# The user is always right.
5504if test "${PATH_SEPARATOR+set}" != set; then
5505 echo "#! /bin/sh" >conf$$.sh
5506 echo "exit 0" >>conf$$.sh
5507 chmod +x conf$$.sh
5508 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5509 PATH_SEPARATOR=';'
5510 else
5511 PATH_SEPARATOR=:
5512 fi
5513 rm -f conf$$.sh
5514fi
5515
5516# Find out how to test for executable files. Don't use a zero-byte file,
5517# as systems may use methods other than mode bits to determine executability.
5518cat >conf$$.file <<_ASEOF
5519#! /bin/sh
5520exit 0
5521_ASEOF
5522chmod +x conf$$.file
5523if test -x conf$$.file >/dev/null 2>&1; then
5524 ac_executable_p="test -x"
5525else
5526 ac_executable_p="test -f"
5527fi
5528rm -f conf$$.file
5529
5530# Extract the first word of "xgettext", so it can be a program name with args.
5531set dummy xgettext; ac_word=$2
5532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5534if test "${ac_cv_path_XGETTEXT+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5536else
5537 case "$XGETTEXT" in
5538 [\\/]* | ?:[\\/]*)
5539 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5540 ;;
5541 *)
5542 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5543 for ac_dir in $PATH; do
5544 IFS="$ac_save_IFS"
5545 test -z "$ac_dir" && ac_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5548 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5549 (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
5550 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5551 break 2
5552 fi
5553 fi
5554 done
5555 done
5556 IFS="$ac_save_IFS"
5557 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5558 ;;
5559esac
5560fi
5561XGETTEXT="$ac_cv_path_XGETTEXT"
5562if test "$XGETTEXT" != ":"; then
5563 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5564echo "${ECHO_T}$XGETTEXT" >&6; }
5565else
5566 { echo "$as_me:$LINENO: result: no" >&5
5567echo "${ECHO_T}no" >&6; }
5568fi
5569
5570 rm -f messages.po
5571
5572
5573# Prepare PATH_SEPARATOR.
5574# The user is always right.
5575if test "${PATH_SEPARATOR+set}" != set; then
5576 echo "#! /bin/sh" >conf$$.sh
5577 echo "exit 0" >>conf$$.sh
5578 chmod +x conf$$.sh
5579 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5580 PATH_SEPARATOR=';'
5581 else
5582 PATH_SEPARATOR=:
5583 fi
5584 rm -f conf$$.sh
5585fi
5586
5587# Find out how to test for executable files. Don't use a zero-byte file,
5588# as systems may use methods other than mode bits to determine executability.
5589cat >conf$$.file <<_ASEOF
5590#! /bin/sh
5591exit 0
5592_ASEOF
5593chmod +x conf$$.file
5594if test -x conf$$.file >/dev/null 2>&1; then
5595 ac_executable_p="test -x"
5596else
5597 ac_executable_p="test -f"
5598fi
5599rm -f conf$$.file
5600
5601# Extract the first word of "msgmerge", so it can be a program name with args.
5602set dummy msgmerge; ac_word=$2
5603{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5605if test "${ac_cv_path_MSGMERGE+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5607else
5608 case "$MSGMERGE" in
5609 [\\/]* | ?:[\\/]*)
5610 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5611 ;;
5612 *)
5613 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5614 for ac_dir in $PATH; do
5615 IFS="$ac_save_IFS"
5616 test -z "$ac_dir" && ac_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5619 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5620 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5621 break 2
5622 fi
5623 fi
5624 done
5625 done
5626 IFS="$ac_save_IFS"
5627 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5628 ;;
5629esac
5630fi
5631MSGMERGE="$ac_cv_path_MSGMERGE"
5632if test "$MSGMERGE" != ":"; then
5633 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5634echo "${ECHO_T}$MSGMERGE" >&6; }
5635else
5636 { echo "$as_me:$LINENO: result: no" >&5
5637echo "${ECHO_T}no" >&6; }
5638fi
5639
5640
5641 if test "$GMSGFMT" != ":"; then
5642 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5643 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5644 : ;
5645 else
5646 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5647 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5648echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
5649 GMSGFMT=":"
5650 fi
5651 fi
5652
5653 if test "$XGETTEXT" != ":"; then
5654 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5655 (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
5656 : ;
5657 else
5658 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5659echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
5660 XGETTEXT=":"
5661 fi
5662 rm -f messages.po
5663 fi
5664
5665 ac_config_commands="$ac_config_commands default-1"
5666
5667
5668# Make sure we can run config.sub.
5669$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5670 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5671echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5672 { (exit 1); exit 1; }; }
5673
5674{ echo "$as_me:$LINENO: checking build system type" >&5
5675echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5676if test "${ac_cv_build+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5678else
5679 ac_build_alias=$build_alias
5680test "x$ac_build_alias" = x &&
5681 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5682test "x$ac_build_alias" = x &&
5683 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5684echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5685 { (exit 1); exit 1; }; }
5686ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5687 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5688echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5689 { (exit 1); exit 1; }; }
5690
5691fi
5692{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5693echo "${ECHO_T}$ac_cv_build" >&6; }
5694case $ac_cv_build in
5695*-*-*) ;;
5696*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5697echo "$as_me: error: invalid value of canonical build" >&2;}
5698 { (exit 1); exit 1; }; };;
5699esac
5700build=$ac_cv_build
5701ac_save_IFS=$IFS; IFS='-'
5702set x $ac_cv_build
5703shift
5704build_cpu=$1
5705build_vendor=$2
5706shift; shift
5707# Remember, the first character of IFS is used to create $*,
5708# except with old shells:
5709build_os=$*
5710IFS=$ac_save_IFS
5711case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5712
5713
5714{ echo "$as_me:$LINENO: checking host system type" >&5
5715echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5716if test "${ac_cv_host+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5718else
5719 if test "x$host_alias" = x; then
5720 ac_cv_host=$ac_cv_build
5721else
5722 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5723 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5724echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5725 { (exit 1); exit 1; }; }
5726fi
5727
5728fi
5729{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5730echo "${ECHO_T}$ac_cv_host" >&6; }
5731case $ac_cv_host in
5732*-*-*) ;;
5733*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5734echo "$as_me: error: invalid value of canonical host" >&2;}
5735 { (exit 1); exit 1; }; };;
5736esac
5737host=$ac_cv_host
5738ac_save_IFS=$IFS; IFS='-'
5739set x $ac_cv_host
5740shift
5741host_cpu=$1
5742host_vendor=$2
5743shift; shift
5744# Remember, the first character of IFS is used to create $*,
5745# except with old shells:
5746host_os=$*
5747IFS=$ac_save_IFS
5748case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5749
5750
5751
5752 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5753echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
5754if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5756else
5757 ac_check_lib_save_LIBS=$LIBS
5758LIBS="-lcposix $LIBS"
5759cat >conftest.$ac_ext <<_ACEOF
5760/* confdefs.h. */
5761_ACEOF
5762cat confdefs.h >>conftest.$ac_ext
5763cat >>conftest.$ac_ext <<_ACEOF
5764/* end confdefs.h. */
5765
5766/* Override any GCC internal prototype to avoid an error.
5767 Use char because int might match the return type of a GCC
5768 builtin and then its argument prototype would still apply. */
5769#ifdef __cplusplus
5770extern "C"
5771#endif
5772char strerror ();
5773int
5774main ()
5775{
5776return strerror ();
5777 ;
5778 return 0;
5779}
5780_ACEOF
5781rm -f conftest.$ac_objext conftest$ac_exeext
5782if { (ac_try="$ac_link"
5783case "(($ac_try" in
5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785 *) ac_try_echo=$ac_try;;
5786esac
5787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788 (eval "$ac_link") 2>conftest.er1
5789 ac_status=$?
5790 grep -v '^ *+' conftest.er1 >conftest.err
5791 rm -f conftest.er1
5792 cat conftest.err >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } && {
5795 test -z "$ac_cxx_werror_flag" ||
5796 test ! -s conftest.err
5797 } && test -s conftest$ac_exeext &&
5798 $as_test_x conftest$ac_exeext; then
5799 ac_cv_lib_cposix_strerror=yes
5800else
5801 echo "$as_me: failed program was:" >&5
5802sed 's/^/| /' conftest.$ac_ext >&5
5803
5804 ac_cv_lib_cposix_strerror=no
5805fi
5806
5807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5808 conftest$ac_exeext conftest.$ac_ext
5809LIBS=$ac_check_lib_save_LIBS
5810fi
5811{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5812echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5813if test $ac_cv_lib_cposix_strerror = yes; then
5814 LIBS="$LIBS -lcposix"
5815fi
5816
5817
5818
5819{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5820echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5821if test "${ac_cv_path_GREP+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823else
5824 # Extract the first word of "grep ggrep" to use in msg output
5825if test -z "$GREP"; then
5826set dummy grep ggrep; ac_prog_name=$2
5827if test "${ac_cv_path_GREP+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829else
5830 ac_path_GREP_found=false
5831# Loop through the user's path and test for each of PROGNAME-LIST
5832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5834do
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
5837 for ac_prog in grep ggrep; do
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5840 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5841 # Check for GNU ac_path_GREP and select it if it is found.
5842 # Check for GNU $ac_path_GREP
5843case `"$ac_path_GREP" --version 2>&1` in
5844*GNU*)
5845 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5846*)
5847 ac_count=0
5848 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5849 while :
5850 do
5851 cat "conftest.in" "conftest.in" >"conftest.tmp"
5852 mv "conftest.tmp" "conftest.in"
5853 cp "conftest.in" "conftest.nl"
5854 echo 'GREP' >> "conftest.nl"
5855 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5856 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5857 ac_count=`expr $ac_count + 1`
5858 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5859 # Best one so far, save it but keep looking for a better one
5860 ac_cv_path_GREP="$ac_path_GREP"
5861 ac_path_GREP_max=$ac_count
5862 fi
5863 # 10*(2^10) chars as input seems more than enough
5864 test $ac_count -gt 10 && break
5865 done
5866 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5867esac
5868
5869
5870 $ac_path_GREP_found && break 3
5871 done
5872done
5873
5874done
5875IFS=$as_save_IFS
5876
5877
5878fi
5879
5880GREP="$ac_cv_path_GREP"
5881if test -z "$GREP"; then
5882 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5883echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5884 { (exit 1); exit 1; }; }
5885fi
5886
5887else
5888 ac_cv_path_GREP=$GREP
5889fi
5890
5891
5892fi
5893{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5894echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5895 GREP="$ac_cv_path_GREP"
5896
5897
5898{ echo "$as_me:$LINENO: checking for egrep" >&5
5899echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5900if test "${ac_cv_path_EGREP+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5902else
5903 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5904 then ac_cv_path_EGREP="$GREP -E"
5905 else
5906 # Extract the first word of "egrep" to use in msg output
5907if test -z "$EGREP"; then
5908set dummy egrep; ac_prog_name=$2
5909if test "${ac_cv_path_EGREP+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5911else
5912 ac_path_EGREP_found=false
5913# Loop through the user's path and test for each of PROGNAME-LIST
5914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5916do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_prog in egrep; do
5920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5922 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5923 # Check for GNU ac_path_EGREP and select it if it is found.
5924 # Check for GNU $ac_path_EGREP
5925case `"$ac_path_EGREP" --version 2>&1` in
5926*GNU*)
5927 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5928*)
5929 ac_count=0
5930 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5931 while :
5932 do
5933 cat "conftest.in" "conftest.in" >"conftest.tmp"
5934 mv "conftest.tmp" "conftest.in"
5935 cp "conftest.in" "conftest.nl"
5936 echo 'EGREP' >> "conftest.nl"
5937 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5939 ac_count=`expr $ac_count + 1`
5940 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5941 # Best one so far, save it but keep looking for a better one
5942 ac_cv_path_EGREP="$ac_path_EGREP"
5943 ac_path_EGREP_max=$ac_count
5944 fi
5945 # 10*(2^10) chars as input seems more than enough
5946 test $ac_count -gt 10 && break
5947 done
5948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5949esac
5950
5951
5952 $ac_path_EGREP_found && break 3
5953 done
5954done
5955
5956done
5957IFS=$as_save_IFS
5958
5959
5960fi
5961
5962EGREP="$ac_cv_path_EGREP"
5963if test -z "$EGREP"; then
5964 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5965echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5966 { (exit 1); exit 1; }; }
5967fi
5968
5969else
5970 ac_cv_path_EGREP=$EGREP
5971fi
5972
5973
5974 fi
5975fi
5976{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5977echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5978 EGREP="$ac_cv_path_EGREP"
5979
5980
5981{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5982echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5983if test "${ac_cv_header_stdc+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5985else
5986 cat >conftest.$ac_ext <<_ACEOF
5987/* confdefs.h. */
5988_ACEOF
5989cat confdefs.h >>conftest.$ac_ext
5990cat >>conftest.$ac_ext <<_ACEOF
5991/* end confdefs.h. */
5992#include <stdlib.h>
5993#include <stdarg.h>
5994#include <string.h>
5995#include <float.h>
5996
5997int
5998main ()
5999{
6000
6001 ;
6002 return 0;
6003}
6004_ACEOF
6005rm -f conftest.$ac_objext
6006if { (ac_try="$ac_compile"
6007case "(($ac_try" in
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6010esac
6011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_compile") 2>conftest.er1
6013 ac_status=$?
6014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && {
6019 test -z "$ac_cxx_werror_flag" ||
6020 test ! -s conftest.err
6021 } && test -s conftest.$ac_objext; then
6022 ac_cv_header_stdc=yes
6023else
6024 echo "$as_me: failed program was:" >&5
6025sed 's/^/| /' conftest.$ac_ext >&5
6026
6027 ac_cv_header_stdc=no
6028fi
6029
6030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031
6032if test $ac_cv_header_stdc = yes; then
6033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6034 cat >conftest.$ac_ext <<_ACEOF
6035/* confdefs.h. */
6036_ACEOF
6037cat confdefs.h >>conftest.$ac_ext
6038cat >>conftest.$ac_ext <<_ACEOF
6039/* end confdefs.h. */
6040#include <string.h>
6041
6042_ACEOF
6043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6044 $EGREP "memchr" >/dev/null 2>&1; then
6045 :
6046else
6047 ac_cv_header_stdc=no
6048fi
6049rm -f conftest*
6050
6051fi
6052
6053if test $ac_cv_header_stdc = yes; then
6054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6055 cat >conftest.$ac_ext <<_ACEOF
6056/* confdefs.h. */
6057_ACEOF
6058cat confdefs.h >>conftest.$ac_ext
6059cat >>conftest.$ac_ext <<_ACEOF
6060/* end confdefs.h. */
6061#include <stdlib.h>
6062
6063_ACEOF
6064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6065 $EGREP "free" >/dev/null 2>&1; then
6066 :
6067else
6068 ac_cv_header_stdc=no
6069fi
6070rm -f conftest*
6071
6072fi
6073
6074if test $ac_cv_header_stdc = yes; then
6075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6076 if test "$cross_compiling" = yes; then
6077 :
6078else
6079 cat >conftest.$ac_ext <<_ACEOF
6080/* confdefs.h. */
6081_ACEOF
6082cat confdefs.h >>conftest.$ac_ext
6083cat >>conftest.$ac_ext <<_ACEOF
6084/* end confdefs.h. */
6085#include <ctype.h>
6086#include <stdlib.h>
6087#if ((' ' & 0x0FF) == 0x020)
6088# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6089# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6090#else
6091# define ISLOWER(c) \
6092 (('a' <= (c) && (c) <= 'i') \
6093 || ('j' <= (c) && (c) <= 'r') \
6094 || ('s' <= (c) && (c) <= 'z'))
6095# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6096#endif
6097
6098#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6099int
6100main ()
6101{
6102 int i;
6103 for (i = 0; i < 256; i++)
6104 if (XOR (islower (i), ISLOWER (i))
6105 || toupper (i) != TOUPPER (i))
6106 return 2;
6107 return 0;
6108}
6109_ACEOF
6110rm -f conftest$ac_exeext
6111if { (ac_try="$ac_link"
6112case "(($ac_try" in
6113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6115esac
6116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_link") 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6121 { (case "(($ac_try" in
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6124esac
6125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126 (eval "$ac_try") 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6130 :
6131else
6132 echo "$as_me: program exited with status $ac_status" >&5
6133echo "$as_me: failed program was:" >&5
6134sed 's/^/| /' conftest.$ac_ext >&5
6135
6136( exit $ac_status )
6137ac_cv_header_stdc=no
6138fi
6139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6140fi
6141
6142
6143fi
6144fi
6145{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6146echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6147if test $ac_cv_header_stdc = yes; then
6148
6149cat >>confdefs.h <<\_ACEOF
6150#define STDC_HEADERS 1
6151_ACEOF
6152
6153fi
6154
6155{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6156echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
6157if test "${ac_cv_c_const+set}" = set; then
6158 echo $ECHO_N "(cached) $ECHO_C" >&6
6159else
6160 cat >conftest.$ac_ext <<_ACEOF
6161/* confdefs.h. */
6162_ACEOF
6163cat confdefs.h >>conftest.$ac_ext
6164cat >>conftest.$ac_ext <<_ACEOF
6165/* end confdefs.h. */
6166
6167int
6168main ()
6169{
6170/* FIXME: Include the comments suggested by Paul. */
6171#ifndef __cplusplus
6172 /* Ultrix mips cc rejects this. */
6173 typedef int charset[2];
6174 const charset cs;
6175 /* SunOS 4.1.1 cc rejects this. */
6176 char const *const *pcpcc;
6177 char **ppc;
6178 /* NEC SVR4.0.2 mips cc rejects this. */
6179 struct point {int x, y;};
6180 static struct point const zero = {0,0};
6181 /* AIX XL C 1.02.0.0 rejects this.
6182 It does not let you subtract one const X* pointer from another in
6183 an arm of an if-expression whose if-part is not a constant
6184 expression */
6185 const char *g = "string";
6186 pcpcc = &g + (g ? g-g : 0);
6187 /* HPUX 7.0 cc rejects these. */
6188 ++pcpcc;
6189 ppc = (char**) pcpcc;
6190 pcpcc = (char const *const *) ppc;
6191 { /* SCO 3.2v4 cc rejects this. */
6192 char *t;
6193 char const *s = 0 ? (char *) 0 : (char const *) 0;
6194
6195 *t++ = 0;
6196 if (s) return 0;
6197 }
6198 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6199 int x[] = {25, 17};
6200 const int *foo = &x[0];
6201 ++foo;
6202 }
6203 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6204 typedef const int *iptr;
6205 iptr p = 0;
6206 ++p;
6207 }
6208 { /* AIX XL C 1.02.0.0 rejects this saying
6209 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6210 struct s { int j; const int *ap[3]; };
6211 struct s *b; b->j = 5;
6212 }
6213 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6214 const int foo = 10;
6215 if (!foo) return 0;
6216 }
6217 return !cs[0] && !zero.x;
6218#endif
6219
6220 ;
6221 return 0;
6222}
6223_ACEOF
6224rm -f conftest.$ac_objext
6225if { (ac_try="$ac_compile"
6226case "(($ac_try" in
6227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6228 *) ac_try_echo=$ac_try;;
6229esac
6230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6231 (eval "$ac_compile") 2>conftest.er1
6232 ac_status=$?
6233 grep -v '^ *+' conftest.er1 >conftest.err
6234 rm -f conftest.er1
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } && {
6238 test -z "$ac_cxx_werror_flag" ||
6239 test ! -s conftest.err
6240 } && test -s conftest.$ac_objext; then
6241 ac_cv_c_const=yes
6242else
6243 echo "$as_me: failed program was:" >&5
6244sed 's/^/| /' conftest.$ac_ext >&5
6245
6246 ac_cv_c_const=no
6247fi
6248
6249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6250fi
6251{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6252echo "${ECHO_T}$ac_cv_c_const" >&6; }
6253if test $ac_cv_c_const = no; then
6254
6255cat >>confdefs.h <<\_ACEOF
6256#define const
6257_ACEOF
6258
6259fi
6260
6261
6262 { echo "$as_me:$LINENO: checking for signed" >&5
6263echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
6264if test "${bh_cv_c_signed+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6266else
6267 cat >conftest.$ac_ext <<_ACEOF
6268/* confdefs.h. */
6269_ACEOF
6270cat confdefs.h >>conftest.$ac_ext
6271cat >>conftest.$ac_ext <<_ACEOF
6272/* end confdefs.h. */
6273
6274int
6275main ()
6276{
6277signed char x;
6278 ;
6279 return 0;
6280}
6281_ACEOF
6282rm -f conftest.$ac_objext
6283if { (ac_try="$ac_compile"
6284case "(($ac_try" in
6285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286 *) ac_try_echo=$ac_try;;
6287esac
6288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6289 (eval "$ac_compile") 2>conftest.er1
6290 ac_status=$?
6291 grep -v '^ *+' conftest.er1 >conftest.err
6292 rm -f conftest.er1
6293 cat conftest.err >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } && {
6296 test -z "$ac_cxx_werror_flag" ||
6297 test ! -s conftest.err
6298 } && test -s conftest.$ac_objext; then
6299 bh_cv_c_signed=yes
6300else
6301 echo "$as_me: failed program was:" >&5
6302sed 's/^/| /' conftest.$ac_ext >&5
6303
6304 bh_cv_c_signed=no
6305fi
6306
6307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308fi
6309{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
6310echo "${ECHO_T}$bh_cv_c_signed" >&6; }
6311 if test $bh_cv_c_signed = no; then
6312
6313cat >>confdefs.h <<\_ACEOF
6314#define signed
6315_ACEOF
6316
6317 fi
6318
6319{ echo "$as_me:$LINENO: checking for inline" >&5
6320echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
6321if test "${ac_cv_c_inline+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6323else
6324 ac_cv_c_inline=no
6325for ac_kw in inline __inline__ __inline; do
6326 cat >conftest.$ac_ext <<_ACEOF
6327/* confdefs.h. */
6328_ACEOF
6329cat confdefs.h >>conftest.$ac_ext
6330cat >>conftest.$ac_ext <<_ACEOF
6331/* end confdefs.h. */
6332#ifndef __cplusplus
6333typedef int foo_t;
6334static $ac_kw foo_t static_foo () {return 0; }
6335$ac_kw foo_t foo () {return 0; }
6336#endif
6337
6338_ACEOF
6339rm -f conftest.$ac_objext
6340if { (ac_try="$ac_compile"
6341case "(($ac_try" in
6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343 *) ac_try_echo=$ac_try;;
6344esac
6345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346 (eval "$ac_compile") 2>conftest.er1
6347 ac_status=$?
6348 grep -v '^ *+' conftest.er1 >conftest.err
6349 rm -f conftest.er1
6350 cat conftest.err >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } && {
6353 test -z "$ac_cxx_werror_flag" ||
6354 test ! -s conftest.err
6355 } && test -s conftest.$ac_objext; then
6356 ac_cv_c_inline=$ac_kw
6357else
6358 echo "$as_me: failed program was:" >&5
6359sed 's/^/| /' conftest.$ac_ext >&5
6360
6361
6362fi
6363
6364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365 test "$ac_cv_c_inline" != no && break
6366done
6367
6368fi
6369{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6370echo "${ECHO_T}$ac_cv_c_inline" >&6; }
6371
6372
6373case $ac_cv_c_inline in
6374 inline | yes) ;;
6375 *)
6376 case $ac_cv_c_inline in
6377 no) ac_val=;;
6378 *) ac_val=$ac_cv_c_inline;;
6379 esac
6380 cat >>confdefs.h <<_ACEOF
6381#ifndef __cplusplus
6382#define inline $ac_val
6383#endif
6384_ACEOF
6385 ;;
6386esac
6387
6388# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6399 inttypes.h stdint.h unistd.h
6400do
6401as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6402{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6404if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6406else
6407 cat >conftest.$ac_ext <<_ACEOF
6408/* confdefs.h. */
6409_ACEOF
6410cat confdefs.h >>conftest.$ac_ext
6411cat >>conftest.$ac_ext <<_ACEOF
6412/* end confdefs.h. */
6413$ac_includes_default
6414
6415#include <$ac_header>
6416_ACEOF
6417rm -f conftest.$ac_objext
6418if { (ac_try="$ac_compile"
6419case "(($ac_try" in
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6422esac
6423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_compile") 2>conftest.er1
6425 ac_status=$?
6426 grep -v '^ *+' conftest.er1 >conftest.err
6427 rm -f conftest.er1
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } && {
6431 test -z "$ac_cxx_werror_flag" ||
6432 test ! -s conftest.err
6433 } && test -s conftest.$ac_objext; then
6434 eval "$as_ac_Header=yes"
6435else
6436 echo "$as_me: failed program was:" >&5
6437sed 's/^/| /' conftest.$ac_ext >&5
6438
6439 eval "$as_ac_Header=no"
6440fi
6441
6442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443fi
6444ac_res=`eval echo '${'$as_ac_Header'}'`
6445 { echo "$as_me:$LINENO: result: $ac_res" >&5
6446echo "${ECHO_T}$ac_res" >&6; }
6447if test `eval echo '${'$as_ac_Header'}'` = yes; then
6448 cat >>confdefs.h <<_ACEOF
6449#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6450_ACEOF
6451
6452fi
6453
6454done
6455
6456
6457{ echo "$as_me:$LINENO: checking for off_t" >&5
6458echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6459if test "${ac_cv_type_off_t+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6461else
6462 cat >conftest.$ac_ext <<_ACEOF
6463/* confdefs.h. */
6464_ACEOF
6465cat confdefs.h >>conftest.$ac_ext
6466cat >>conftest.$ac_ext <<_ACEOF
6467/* end confdefs.h. */
6468$ac_includes_default
6469typedef off_t ac__type_new_;
6470int
6471main ()
6472{
6473if ((ac__type_new_ *) 0)
6474 return 0;
6475if (sizeof (ac__type_new_))
6476 return 0;
6477 ;
6478 return 0;
6479}
6480_ACEOF
6481rm -f conftest.$ac_objext
6482if { (ac_try="$ac_compile"
6483case "(($ac_try" in
6484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6485 *) ac_try_echo=$ac_try;;
6486esac
6487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6488 (eval "$ac_compile") 2>conftest.er1
6489 ac_status=$?
6490 grep -v '^ *+' conftest.er1 >conftest.err
6491 rm -f conftest.er1
6492 cat conftest.err >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } && {
6495 test -z "$ac_cxx_werror_flag" ||
6496 test ! -s conftest.err
6497 } && test -s conftest.$ac_objext; then
6498 ac_cv_type_off_t=yes
6499else
6500 echo "$as_me: failed program was:" >&5
6501sed 's/^/| /' conftest.$ac_ext >&5
6502
6503 ac_cv_type_off_t=no
6504fi
6505
6506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507fi
6508{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6509echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6510if test $ac_cv_type_off_t = yes; then
6511 :
6512else
6513
6514cat >>confdefs.h <<_ACEOF
6515#define off_t long int
6516_ACEOF
6517
6518fi
6519
6520{ echo "$as_me:$LINENO: checking for size_t" >&5
6521echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6522if test "${ac_cv_type_size_t+set}" = set; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6524else
6525 cat >conftest.$ac_ext <<_ACEOF
6526/* confdefs.h. */
6527_ACEOF
6528cat confdefs.h >>conftest.$ac_ext
6529cat >>conftest.$ac_ext <<_ACEOF
6530/* end confdefs.h. */
6531$ac_includes_default
6532typedef size_t ac__type_new_;
6533int
6534main ()
6535{
6536if ((ac__type_new_ *) 0)
6537 return 0;
6538if (sizeof (ac__type_new_))
6539 return 0;
6540 ;
6541 return 0;
6542}
6543_ACEOF
6544rm -f conftest.$ac_objext
6545if { (ac_try="$ac_compile"
6546case "(($ac_try" in
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6549esac
6550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6551 (eval "$ac_compile") 2>conftest.er1
6552 ac_status=$?
6553 grep -v '^ *+' conftest.er1 >conftest.err
6554 rm -f conftest.er1
6555 cat conftest.err >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } && {
6558 test -z "$ac_cxx_werror_flag" ||
6559 test ! -s conftest.err
6560 } && test -s conftest.$ac_objext; then
6561 ac_cv_type_size_t=yes
6562else
6563 echo "$as_me: failed program was:" >&5
6564sed 's/^/| /' conftest.$ac_ext >&5
6565
6566 ac_cv_type_size_t=no
6567fi
6568
6569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570fi
6571{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6572echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6573if test $ac_cv_type_size_t = yes; then
6574 :
6575else
6576
6577cat >>confdefs.h <<_ACEOF
6578#define size_t unsigned int
6579_ACEOF
6580
6581fi
6582
6583
6584 { echo "$as_me:$LINENO: checking for long long" >&5
6585echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6586if test "${ac_cv_type_long_long+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588else
6589 cat >conftest.$ac_ext <<_ACEOF
6590/* confdefs.h. */
6591_ACEOF
6592cat confdefs.h >>conftest.$ac_ext
6593cat >>conftest.$ac_ext <<_ACEOF
6594/* end confdefs.h. */
6595long long ll = 1LL; int i = 63;
6596int
6597main ()
6598{
6599long long llmax = (long long) -1;
6600 return ll << i | ll >> i | llmax / ll | llmax % ll;
6601 ;
6602 return 0;
6603}
6604_ACEOF
6605rm -f conftest.$ac_objext conftest$ac_exeext
6606if { (ac_try="$ac_link"
6607case "(($ac_try" in
6608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6609 *) ac_try_echo=$ac_try;;
6610esac
6611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6612 (eval "$ac_link") 2>conftest.er1
6613 ac_status=$?
6614 grep -v '^ *+' conftest.er1 >conftest.err
6615 rm -f conftest.er1
6616 cat conftest.err >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } && {
6619 test -z "$ac_cxx_werror_flag" ||
6620 test ! -s conftest.err
6621 } && test -s conftest$ac_exeext &&
6622 $as_test_x conftest$ac_exeext; then
6623 ac_cv_type_long_long=yes
6624else
6625 echo "$as_me: failed program was:" >&5
6626sed 's/^/| /' conftest.$ac_ext >&5
6627
6628 ac_cv_type_long_long=no
6629fi
6630
6631rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6632 conftest$ac_exeext conftest.$ac_ext
6633fi
6634{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6635echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6636 if test $ac_cv_type_long_long = yes; then
6637
6638cat >>confdefs.h <<\_ACEOF
6639#define HAVE_LONG_LONG 1
6640_ACEOF
6641
6642 fi
6643
6644
6645 { echo "$as_me:$LINENO: checking for long double" >&5
6646echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
6647if test "${gt_cv_c_long_double+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6649else
6650 if test "$GCC" = yes; then
6651 gt_cv_c_long_double=yes
6652 else
6653 cat >conftest.$ac_ext <<_ACEOF
6654/* confdefs.h. */
6655_ACEOF
6656cat confdefs.h >>conftest.$ac_ext
6657cat >>conftest.$ac_ext <<_ACEOF
6658/* end confdefs.h. */
6659
6660 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6661 long double foo = 0.0;
6662 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6663 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6664
6665int
6666main ()
6667{
6668
6669 ;
6670 return 0;
6671}
6672_ACEOF
6673rm -f conftest.$ac_objext
6674if { (ac_try="$ac_compile"
6675case "(($ac_try" in
6676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6677 *) ac_try_echo=$ac_try;;
6678esac
6679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6680 (eval "$ac_compile") 2>conftest.er1
6681 ac_status=$?
6682 grep -v '^ *+' conftest.er1 >conftest.err
6683 rm -f conftest.er1
6684 cat conftest.err >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } && {
6687 test -z "$ac_cxx_werror_flag" ||
6688 test ! -s conftest.err
6689 } && test -s conftest.$ac_objext; then
6690 gt_cv_c_long_double=yes
6691else
6692 echo "$as_me: failed program was:" >&5
6693sed 's/^/| /' conftest.$ac_ext >&5
6694
6695 gt_cv_c_long_double=no
6696fi
6697
6698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699 fi
6700fi
6701{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
6702echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
6703 if test $gt_cv_c_long_double = yes; then
6704
6705cat >>confdefs.h <<\_ACEOF
6706#define HAVE_LONG_DOUBLE 1
6707_ACEOF
6708
6709 fi
6710
6711
6712 { echo "$as_me:$LINENO: checking for wchar_t" >&5
6713echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
6714if test "${gt_cv_c_wchar_t+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#include <stddef.h>
6724 wchar_t foo = (wchar_t)'\0';
6725int
6726main ()
6727{
6728
6729 ;
6730 return 0;
6731}
6732_ACEOF
6733rm -f conftest.$ac_objext
6734if { (ac_try="$ac_compile"
6735case "(($ac_try" in
6736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6737 *) ac_try_echo=$ac_try;;
6738esac
6739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6740 (eval "$ac_compile") 2>conftest.er1
6741 ac_status=$?
6742 grep -v '^ *+' conftest.er1 >conftest.err
6743 rm -f conftest.er1
6744 cat conftest.err >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } && {
6747 test -z "$ac_cxx_werror_flag" ||
6748 test ! -s conftest.err
6749 } && test -s conftest.$ac_objext; then
6750 gt_cv_c_wchar_t=yes
6751else
6752 echo "$as_me: failed program was:" >&5
6753sed 's/^/| /' conftest.$ac_ext >&5
6754
6755 gt_cv_c_wchar_t=no
6756fi
6757
6758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759fi
6760{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
6761echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
6762 if test $gt_cv_c_wchar_t = yes; then
6763
6764cat >>confdefs.h <<\_ACEOF
6765#define HAVE_WCHAR_T 1
6766_ACEOF
6767
6768 fi
6769
6770
6771 { echo "$as_me:$LINENO: checking for wint_t" >&5
6772echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
6773if test "${gt_cv_c_wint_t+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6775else
6776 cat >conftest.$ac_ext <<_ACEOF
6777/* confdefs.h. */
6778_ACEOF
6779cat confdefs.h >>conftest.$ac_ext
6780cat >>conftest.$ac_ext <<_ACEOF
6781/* end confdefs.h. */
6782#include <wchar.h>
6783 wint_t foo = (wchar_t)'\0';
6784int
6785main ()
6786{
6787
6788 ;
6789 return 0;
6790}
6791_ACEOF
6792rm -f conftest.$ac_objext
6793if { (ac_try="$ac_compile"
6794case "(($ac_try" in
6795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6796 *) ac_try_echo=$ac_try;;
6797esac
6798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6799 (eval "$ac_compile") 2>conftest.er1
6800 ac_status=$?
6801 grep -v '^ *+' conftest.er1 >conftest.err
6802 rm -f conftest.er1
6803 cat conftest.err >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } && {
6806 test -z "$ac_cxx_werror_flag" ||
6807 test ! -s conftest.err
6808 } && test -s conftest.$ac_objext; then
6809 gt_cv_c_wint_t=yes
6810else
6811 echo "$as_me: failed program was:" >&5
6812sed 's/^/| /' conftest.$ac_ext >&5
6813
6814 gt_cv_c_wint_t=no
6815fi
6816
6817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818fi
6819{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
6820echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
6821 if test $gt_cv_c_wint_t = yes; then
6822
6823cat >>confdefs.h <<\_ACEOF
6824#define HAVE_WINT_T 1
6825_ACEOF
6826
6827 fi
6828
6829
6830 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6831echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6832if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6834else
6835 cat >conftest.$ac_ext <<_ACEOF
6836/* confdefs.h. */
6837_ACEOF
6838cat confdefs.h >>conftest.$ac_ext
6839cat >>conftest.$ac_ext <<_ACEOF
6840/* end confdefs.h. */
6841#include <sys/types.h>
6842#include <inttypes.h>
6843int
6844main ()
6845{
6846uintmax_t i = (uintmax_t) -1;
6847 ;
6848 return 0;
6849}
6850_ACEOF
6851rm -f conftest.$ac_objext
6852if { (ac_try="$ac_compile"
6853case "(($ac_try" in
6854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855 *) ac_try_echo=$ac_try;;
6856esac
6857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6858 (eval "$ac_compile") 2>conftest.er1
6859 ac_status=$?
6860 grep -v '^ *+' conftest.er1 >conftest.err
6861 rm -f conftest.er1
6862 cat conftest.err >&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } && {
6865 test -z "$ac_cxx_werror_flag" ||
6866 test ! -s conftest.err
6867 } && test -s conftest.$ac_objext; then
6868 jm_ac_cv_header_inttypes_h=yes
6869else
6870 echo "$as_me: failed program was:" >&5
6871sed 's/^/| /' conftest.$ac_ext >&5
6872
6873 jm_ac_cv_header_inttypes_h=no
6874fi
6875
6876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6877fi
6878{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6879echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
6880 if test $jm_ac_cv_header_inttypes_h = yes; then
6881
6882cat >>confdefs.h <<_ACEOF
6883#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6884_ACEOF
6885
6886 fi
6887
6888
6889 { echo "$as_me:$LINENO: checking for stdint.h" >&5
6890echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
6891if test "${jm_ac_cv_header_stdint_h+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6893else
6894 cat >conftest.$ac_ext <<_ACEOF
6895/* confdefs.h. */
6896_ACEOF
6897cat confdefs.h >>conftest.$ac_ext
6898cat >>conftest.$ac_ext <<_ACEOF
6899/* end confdefs.h. */
6900#include <sys/types.h>
6901#include <stdint.h>
6902int
6903main ()
6904{
6905uintmax_t i = (uintmax_t) -1;
6906 ;
6907 return 0;
6908}
6909_ACEOF
6910rm -f conftest.$ac_objext
6911if { (ac_try="$ac_compile"
6912case "(($ac_try" in
6913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6914 *) ac_try_echo=$ac_try;;
6915esac
6916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6917 (eval "$ac_compile") 2>conftest.er1
6918 ac_status=$?
6919 grep -v '^ *+' conftest.er1 >conftest.err
6920 rm -f conftest.er1
6921 cat conftest.err >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } && {
6924 test -z "$ac_cxx_werror_flag" ||
6925 test ! -s conftest.err
6926 } && test -s conftest.$ac_objext; then
6927 jm_ac_cv_header_stdint_h=yes
6928else
6929 echo "$as_me: failed program was:" >&5
6930sed 's/^/| /' conftest.$ac_ext >&5
6931
6932 jm_ac_cv_header_stdint_h=no
6933fi
6934
6935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936fi
6937{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6938echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
6939 if test $jm_ac_cv_header_stdint_h = yes; then
6940
6941cat >>confdefs.h <<_ACEOF
6942#define HAVE_STDINT_H_WITH_UINTMAX 1
6943_ACEOF
6944
6945 fi
6946
6947
6948
6949
6950 { echo "$as_me:$LINENO: checking for intmax_t" >&5
6951echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
6952if test "${gt_cv_c_intmax_t+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954else
6955 cat >conftest.$ac_ext <<_ACEOF
6956/* confdefs.h. */
6957_ACEOF
6958cat confdefs.h >>conftest.$ac_ext
6959cat >>conftest.$ac_ext <<_ACEOF
6960/* end confdefs.h. */
6961
6962#include <stddef.h>
6963#include <stdlib.h>
6964#if HAVE_STDINT_H_WITH_UINTMAX
6965#include <stdint.h>
6966#endif
6967#if HAVE_INTTYPES_H_WITH_UINTMAX
6968#include <inttypes.h>
6969#endif
6970
6971int
6972main ()
6973{
6974intmax_t x = -1;
6975 ;
6976 return 0;
6977}
6978_ACEOF
6979rm -f conftest.$ac_objext
6980if { (ac_try="$ac_compile"
6981case "(($ac_try" in
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6984esac
6985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986 (eval "$ac_compile") 2>conftest.er1
6987 ac_status=$?
6988 grep -v '^ *+' conftest.er1 >conftest.err
6989 rm -f conftest.er1
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } && {
6993 test -z "$ac_cxx_werror_flag" ||
6994 test ! -s conftest.err
6995 } && test -s conftest.$ac_objext; then
6996 gt_cv_c_intmax_t=yes
6997else
6998 echo "$as_me: failed program was:" >&5
6999sed 's/^/| /' conftest.$ac_ext >&5
7000
7001 gt_cv_c_intmax_t=no
7002fi
7003
7004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005fi
7006{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
7007echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
7008 if test $gt_cv_c_intmax_t = yes; then
7009
7010cat >>confdefs.h <<\_ACEOF
7011#define HAVE_INTMAX_T 1
7012_ACEOF
7013
7014 fi
7015
7016
7017
7018 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
7019echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
7020if test "${gt_cv_func_printf_posix+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022else
7023
7024 if test "$cross_compiling" = yes; then
7025
7026 cat >conftest.$ac_ext <<_ACEOF
7027/* confdefs.h. */
7028_ACEOF
7029cat confdefs.h >>conftest.$ac_ext
7030cat >>conftest.$ac_ext <<_ACEOF
7031/* end confdefs.h. */
7032
7033#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
7034 notposix
7035#endif
7036
7037_ACEOF
7038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7039 $EGREP "notposix" >/dev/null 2>&1; then
7040 gt_cv_func_printf_posix="guessing no"
7041else
7042 gt_cv_func_printf_posix="guessing yes"
7043fi
7044rm -f conftest*
7045
7046
7047else
7048 cat >conftest.$ac_ext <<_ACEOF
7049/* confdefs.h. */
7050_ACEOF
7051cat confdefs.h >>conftest.$ac_ext
7052cat >>conftest.$ac_ext <<_ACEOF
7053/* end confdefs.h. */
7054
7055#include <stdio.h>
7056#include <string.h>
7057/* The string "%2$d %1$d", with dollar characters protected from the shell's
7058 dollar expansion (possibly an autoconf bug). */
7059static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
7060static char buf[100];
7061int main ()
7062{
7063 sprintf (buf, format, 33, 55);
7064 return (strcmp (buf, "55 33") != 0);
7065}
7066_ACEOF
7067rm -f conftest$ac_exeext
7068if { (ac_try="$ac_link"
7069case "(($ac_try" in
7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7072esac
7073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7074 (eval "$ac_link") 2>&5
7075 ac_status=$?
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7078 { (case "(($ac_try" in
7079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080 *) ac_try_echo=$ac_try;;
7081esac
7082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7083 (eval "$ac_try") 2>&5
7084 ac_status=$?
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7087 gt_cv_func_printf_posix=yes
7088else
7089 echo "$as_me: program exited with status $ac_status" >&5
7090echo "$as_me: failed program was:" >&5
7091sed 's/^/| /' conftest.$ac_ext >&5
7092
7093( exit $ac_status )
7094gt_cv_func_printf_posix=no
7095fi
7096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7097fi
7098
7099
7100
7101fi
7102{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
7103echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
7104 case $gt_cv_func_printf_posix in
7105 *yes)
7106
7107cat >>confdefs.h <<\_ACEOF
7108#define HAVE_POSIX_PRINTF 1
7109_ACEOF
7110
7111 ;;
7112 esac
7113
7114# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7115# for constant arguments. Useless!
7116{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
7117echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
7118if test "${ac_cv_working_alloca_h+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7120else
7121 cat >conftest.$ac_ext <<_ACEOF
7122/* confdefs.h. */
7123_ACEOF
7124cat confdefs.h >>conftest.$ac_ext
7125cat >>conftest.$ac_ext <<_ACEOF
7126/* end confdefs.h. */
7127#include <alloca.h>
7128int
7129main ()
7130{
7131char *p = (char *) alloca (2 * sizeof (int));
7132 if (p) return 0;
7133 ;
7134 return 0;
7135}
7136_ACEOF
7137rm -f conftest.$ac_objext conftest$ac_exeext
7138if { (ac_try="$ac_link"
7139case "(($ac_try" in
7140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7141 *) ac_try_echo=$ac_try;;
7142esac
7143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7144 (eval "$ac_link") 2>conftest.er1
7145 ac_status=$?
7146 grep -v '^ *+' conftest.er1 >conftest.err
7147 rm -f conftest.er1
7148 cat conftest.err >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } && {
7151 test -z "$ac_cxx_werror_flag" ||
7152 test ! -s conftest.err
7153 } && test -s conftest$ac_exeext &&
7154 $as_test_x conftest$ac_exeext; then
7155 ac_cv_working_alloca_h=yes
7156else
7157 echo "$as_me: failed program was:" >&5
7158sed 's/^/| /' conftest.$ac_ext >&5
7159
7160 ac_cv_working_alloca_h=no
7161fi
7162
7163rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7164 conftest$ac_exeext conftest.$ac_ext
7165fi
7166{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7167echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
7168if test $ac_cv_working_alloca_h = yes; then
7169
7170cat >>confdefs.h <<\_ACEOF
7171#define HAVE_ALLOCA_H 1
7172_ACEOF
7173
7174fi
7175
7176{ echo "$as_me:$LINENO: checking for alloca" >&5
7177echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
7178if test "${ac_cv_func_alloca_works+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7180else
7181 cat >conftest.$ac_ext <<_ACEOF
7182/* confdefs.h. */
7183_ACEOF
7184cat confdefs.h >>conftest.$ac_ext
7185cat >>conftest.$ac_ext <<_ACEOF
7186/* end confdefs.h. */
7187#ifdef __GNUC__
7188# define alloca __builtin_alloca
7189#else
7190# ifdef _MSC_VER
7191# include <malloc.h>
7192# define alloca _alloca
7193# else
7194# ifdef HAVE_ALLOCA_H
7195# include <alloca.h>
7196# else
7197# ifdef _AIX
7198 #pragma alloca
7199# else
7200# ifndef alloca /* predefined by HP cc +Olibcalls */
7201char *alloca ();
7202# endif
7203# endif
7204# endif
7205# endif
7206#endif
7207
7208int
7209main ()
7210{
7211char *p = (char *) alloca (1);
7212 if (p) return 0;
7213 ;
7214 return 0;
7215}
7216_ACEOF
7217rm -f conftest.$ac_objext conftest$ac_exeext
7218if { (ac_try="$ac_link"
7219case "(($ac_try" in
7220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7221 *) ac_try_echo=$ac_try;;
7222esac
7223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7224 (eval "$ac_link") 2>conftest.er1
7225 ac_status=$?
7226 grep -v '^ *+' conftest.er1 >conftest.err
7227 rm -f conftest.er1
7228 cat conftest.err >&5
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); } && {
7231 test -z "$ac_cxx_werror_flag" ||
7232 test ! -s conftest.err
7233 } && test -s conftest$ac_exeext &&
7234 $as_test_x conftest$ac_exeext; then
7235 ac_cv_func_alloca_works=yes
7236else
7237 echo "$as_me: failed program was:" >&5
7238sed 's/^/| /' conftest.$ac_ext >&5
7239
7240 ac_cv_func_alloca_works=no
7241fi
7242
7243rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7244 conftest$ac_exeext conftest.$ac_ext
7245fi
7246{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7247echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
7248
7249if test $ac_cv_func_alloca_works = yes; then
7250
7251cat >>confdefs.h <<\_ACEOF
7252#define HAVE_ALLOCA 1
7253_ACEOF
7254
7255else
7256 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7257# that cause trouble. Some versions do not even contain alloca or
7258# contain a buggy version. If you still want to use their alloca,
7259# use ar to extract alloca.o from them instead of compiling alloca.c.
7260
7261ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7262
7263cat >>confdefs.h <<\_ACEOF
7264#define C_ALLOCA 1
7265_ACEOF
7266
7267
7268{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7269echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
7270if test "${ac_cv_os_cray+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7272else
7273 cat >conftest.$ac_ext <<_ACEOF
7274/* confdefs.h. */
7275_ACEOF
7276cat confdefs.h >>conftest.$ac_ext
7277cat >>conftest.$ac_ext <<_ACEOF
7278/* end confdefs.h. */
7279#if defined CRAY && ! defined CRAY2
7280webecray
7281#else
7282wenotbecray
7283#endif
7284
7285_ACEOF
7286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7287 $EGREP "webecray" >/dev/null 2>&1; then
7288 ac_cv_os_cray=yes
7289else
7290 ac_cv_os_cray=no
7291fi
7292rm -f conftest*
7293
7294fi
7295{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7296echo "${ECHO_T}$ac_cv_os_cray" >&6; }
7297if test $ac_cv_os_cray = yes; then
7298 for ac_func in _getb67 GETB67 getb67; do
7299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7300{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7301echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7302if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7304else
7305 cat >conftest.$ac_ext <<_ACEOF
7306/* confdefs.h. */
7307_ACEOF
7308cat confdefs.h >>conftest.$ac_ext
7309cat >>conftest.$ac_ext <<_ACEOF
7310/* end confdefs.h. */
7311/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7313#define $ac_func innocuous_$ac_func
7314
7315/* System header to define __stub macros and hopefully few prototypes,
7316 which can conflict with char $ac_func (); below.
7317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7318 <limits.h> exists even on freestanding compilers. */
7319
7320#ifdef __STDC__
7321# include <limits.h>
7322#else
7323# include <assert.h>
7324#endif
7325
7326#undef $ac_func
7327
7328/* Override any GCC internal prototype to avoid an error.
7329 Use char because int might match the return type of a GCC
7330 builtin and then its argument prototype would still apply. */
7331#ifdef __cplusplus
7332extern "C"
7333#endif
7334char $ac_func ();
7335/* The GNU C library defines this for functions which it implements
7336 to always fail with ENOSYS. Some functions are actually named
7337 something starting with __ and the normal name is an alias. */
7338#if defined __stub_$ac_func || defined __stub___$ac_func
7339choke me
7340#endif
7341
7342int
7343main ()
7344{
7345return $ac_func ();
7346 ;
7347 return 0;
7348}
7349_ACEOF
7350rm -f conftest.$ac_objext conftest$ac_exeext
7351if { (ac_try="$ac_link"
7352case "(($ac_try" in
7353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7355esac
7356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357 (eval "$ac_link") 2>conftest.er1
7358 ac_status=$?
7359 grep -v '^ *+' conftest.er1 >conftest.err
7360 rm -f conftest.er1
7361 cat conftest.err >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } && {
7364 test -z "$ac_cxx_werror_flag" ||
7365 test ! -s conftest.err
7366 } && test -s conftest$ac_exeext &&
7367 $as_test_x conftest$ac_exeext; then
7368 eval "$as_ac_var=yes"
7369else
7370 echo "$as_me: failed program was:" >&5
7371sed 's/^/| /' conftest.$ac_ext >&5
7372
7373 eval "$as_ac_var=no"
7374fi
7375
7376rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7377 conftest$ac_exeext conftest.$ac_ext
7378fi
7379ac_res=`eval echo '${'$as_ac_var'}'`
7380 { echo "$as_me:$LINENO: result: $ac_res" >&5
7381echo "${ECHO_T}$ac_res" >&6; }
7382if test `eval echo '${'$as_ac_var'}'` = yes; then
7383
7384cat >>confdefs.h <<_ACEOF
7385#define CRAY_STACKSEG_END $ac_func
7386_ACEOF
7387
7388 break
7389fi
7390
7391 done
7392fi
7393
7394{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7395echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
7396if test "${ac_cv_c_stack_direction+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7398else
7399 if test "$cross_compiling" = yes; then
7400 ac_cv_c_stack_direction=0
7401else
7402 cat >conftest.$ac_ext <<_ACEOF
7403/* confdefs.h. */
7404_ACEOF
7405cat confdefs.h >>conftest.$ac_ext
7406cat >>conftest.$ac_ext <<_ACEOF
7407/* end confdefs.h. */
7408$ac_includes_default
7409int
7410find_stack_direction ()
7411{
7412 static char *addr = 0;
7413 auto char dummy;
7414 if (addr == 0)
7415 {
7416 addr = &dummy;
7417 return find_stack_direction ();
7418 }
7419 else
7420 return (&dummy > addr) ? 1 : -1;
7421}
7422
7423int
7424main ()
7425{
7426 return find_stack_direction () < 0;
7427}
7428_ACEOF
7429rm -f conftest$ac_exeext
7430if { (ac_try="$ac_link"
7431case "(($ac_try" in
7432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7433 *) ac_try_echo=$ac_try;;
7434esac
7435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7436 (eval "$ac_link") 2>&5
7437 ac_status=$?
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7440 { (case "(($ac_try" in
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7443esac
7444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_try") 2>&5
7446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }; }; then
7449 ac_cv_c_stack_direction=1
7450else
7451 echo "$as_me: program exited with status $ac_status" >&5
7452echo "$as_me: failed program was:" >&5
7453sed 's/^/| /' conftest.$ac_ext >&5
7454
7455( exit $ac_status )
7456ac_cv_c_stack_direction=-1
7457fi
7458rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7459fi
7460
7461
7462fi
7463{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7464echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
7465
7466cat >>confdefs.h <<_ACEOF
7467#define STACK_DIRECTION $ac_cv_c_stack_direction
7468_ACEOF
7469
7470
7471fi
7472
7473
7474
7475for ac_header in stdlib.h unistd.h
7476do
7477as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7478if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7481if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7483fi
7484ac_res=`eval echo '${'$as_ac_Header'}'`
7485 { echo "$as_me:$LINENO: result: $ac_res" >&5
7486echo "${ECHO_T}$ac_res" >&6; }
7487else
7488 # Is the header compilable?
7489{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7490echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7491cat >conftest.$ac_ext <<_ACEOF
7492/* confdefs.h. */
7493_ACEOF
7494cat confdefs.h >>conftest.$ac_ext
7495cat >>conftest.$ac_ext <<_ACEOF
7496/* end confdefs.h. */
7497$ac_includes_default
7498#include <$ac_header>
7499_ACEOF
7500rm -f conftest.$ac_objext
7501if { (ac_try="$ac_compile"
7502case "(($ac_try" in
7503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504 *) ac_try_echo=$ac_try;;
7505esac
7506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7507 (eval "$ac_compile") 2>conftest.er1
7508 ac_status=$?
7509 grep -v '^ *+' conftest.er1 >conftest.err
7510 rm -f conftest.er1
7511 cat conftest.err >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } && {
7514 test -z "$ac_cxx_werror_flag" ||
7515 test ! -s conftest.err
7516 } && test -s conftest.$ac_objext; then
7517 ac_header_compiler=yes
7518else
7519 echo "$as_me: failed program was:" >&5
7520sed 's/^/| /' conftest.$ac_ext >&5
7521
7522 ac_header_compiler=no
7523fi
7524
7525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7527echo "${ECHO_T}$ac_header_compiler" >&6; }
7528
7529# Is the header present?
7530{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7531echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7532cat >conftest.$ac_ext <<_ACEOF
7533/* confdefs.h. */
7534_ACEOF
7535cat confdefs.h >>conftest.$ac_ext
7536cat >>conftest.$ac_ext <<_ACEOF
7537/* end confdefs.h. */
7538#include <$ac_header>
7539_ACEOF
7540if { (ac_try="$ac_cpp conftest.$ac_ext"
7541case "(($ac_try" in
7542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543 *) ac_try_echo=$ac_try;;
7544esac
7545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7547 ac_status=$?
7548 grep -v '^ *+' conftest.er1 >conftest.err
7549 rm -f conftest.er1
7550 cat conftest.err >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); } >/dev/null && {
7553 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7554 test ! -s conftest.err
7555 }; then
7556 ac_header_preproc=yes
7557else
7558 echo "$as_me: failed program was:" >&5
7559sed 's/^/| /' conftest.$ac_ext >&5
7560
7561 ac_header_preproc=no
7562fi
7563
7564rm -f conftest.err conftest.$ac_ext
7565{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7566echo "${ECHO_T}$ac_header_preproc" >&6; }
7567
7568# So? What about this header?
7569case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7570 yes:no: )
7571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7572echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7574echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7575 ac_header_preproc=yes
7576 ;;
7577 no:yes:* )
7578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7579echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7581echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7583echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7585echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7587echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7589echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7590
7591 ;;
7592esac
7593{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7595if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7597else
7598 eval "$as_ac_Header=\$ac_header_preproc"
7599fi
7600ac_res=`eval echo '${'$as_ac_Header'}'`
7601 { echo "$as_me:$LINENO: result: $ac_res" >&5
7602echo "${ECHO_T}$ac_res" >&6; }
7603
7604fi
7605if test `eval echo '${'$as_ac_Header'}'` = yes; then
7606 cat >>confdefs.h <<_ACEOF
7607#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7608_ACEOF
7609
7610fi
7611
7612done
7613
7614
7615for ac_func in getpagesize
7616do
7617as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7618{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7619echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7620if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7622else
7623 cat >conftest.$ac_ext <<_ACEOF
7624/* confdefs.h. */
7625_ACEOF
7626cat confdefs.h >>conftest.$ac_ext
7627cat >>conftest.$ac_ext <<_ACEOF
7628/* end confdefs.h. */
7629/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7631#define $ac_func innocuous_$ac_func
7632
7633/* System header to define __stub macros and hopefully few prototypes,
7634 which can conflict with char $ac_func (); below.
7635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7636 <limits.h> exists even on freestanding compilers. */
7637
7638#ifdef __STDC__
7639# include <limits.h>
7640#else
7641# include <assert.h>
7642#endif
7643
7644#undef $ac_func
7645
7646/* Override any GCC internal prototype to avoid an error.
7647 Use char because int might match the return type of a GCC
7648 builtin and then its argument prototype would still apply. */
7649#ifdef __cplusplus
7650extern "C"
7651#endif
7652char $ac_func ();
7653/* The GNU C library defines this for functions which it implements
7654 to always fail with ENOSYS. Some functions are actually named
7655 something starting with __ and the normal name is an alias. */
7656#if defined __stub_$ac_func || defined __stub___$ac_func
7657choke me
7658#endif
7659
7660int
7661main ()
7662{
7663return $ac_func ();
7664 ;
7665 return 0;
7666}
7667_ACEOF
7668rm -f conftest.$ac_objext conftest$ac_exeext
7669if { (ac_try="$ac_link"
7670case "(($ac_try" in
7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7673esac
7674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7675 (eval "$ac_link") 2>conftest.er1
7676 ac_status=$?
7677 grep -v '^ *+' conftest.er1 >conftest.err
7678 rm -f conftest.er1
7679 cat conftest.err >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } && {
7682 test -z "$ac_cxx_werror_flag" ||
7683 test ! -s conftest.err
7684 } && test -s conftest$ac_exeext &&
7685 $as_test_x conftest$ac_exeext; then
7686 eval "$as_ac_var=yes"
7687else
7688 echo "$as_me: failed program was:" >&5
7689sed 's/^/| /' conftest.$ac_ext >&5
7690
7691 eval "$as_ac_var=no"
7692fi
7693
7694rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7695 conftest$ac_exeext conftest.$ac_ext
7696fi
7697ac_res=`eval echo '${'$as_ac_var'}'`
7698 { echo "$as_me:$LINENO: result: $ac_res" >&5
7699echo "${ECHO_T}$ac_res" >&6; }
7700if test `eval echo '${'$as_ac_var'}'` = yes; then
7701 cat >>confdefs.h <<_ACEOF
7702#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7703_ACEOF
7704
7705fi
7706done
7707
7708{ echo "$as_me:$LINENO: checking for working mmap" >&5
7709echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7710if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7712else
7713 if test "$cross_compiling" = yes; then
7714 ac_cv_func_mmap_fixed_mapped=no
7715else
7716 cat >conftest.$ac_ext <<_ACEOF
7717/* confdefs.h. */
7718_ACEOF
7719cat confdefs.h >>conftest.$ac_ext
7720cat >>conftest.$ac_ext <<_ACEOF
7721/* end confdefs.h. */
7722$ac_includes_default
7723/* malloc might have been renamed as rpl_malloc. */
7724#undef malloc
7725
7726/* Thanks to Mike Haertel and Jim Avera for this test.
7727 Here is a matrix of mmap possibilities:
7728 mmap private not fixed
7729 mmap private fixed at somewhere currently unmapped
7730 mmap private fixed at somewhere already mapped
7731 mmap shared not fixed
7732 mmap shared fixed at somewhere currently unmapped
7733 mmap shared fixed at somewhere already mapped
7734 For private mappings, we should verify that changes cannot be read()
7735 back from the file, nor mmap's back from the file at a different
7736 address. (There have been systems where private was not correctly
7737 implemented like the infamous i386 svr4.0, and systems where the
7738 VM page cache was not coherent with the file system buffer cache
7739 like early versions of FreeBSD and possibly contemporary NetBSD.)
7740 For shared mappings, we should conversely verify that changes get
7741 propagated back to all the places they're supposed to be.
7742
7743 Grep wants private fixed already mapped.
7744 The main things grep needs to know about mmap are:
7745 * does it exist and is it safe to write into the mmap'd area
7746 * how to use it (BSD variants) */
7747
7748#include <fcntl.h>
7749#include <sys/mman.h>
7750
7751#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7752char *malloc ();
7753#endif
7754
7755/* This mess was copied from the GNU getpagesize.h. */
7756#ifndef HAVE_GETPAGESIZE
7757/* Assume that all systems that can run configure have sys/param.h. */
7758# ifndef HAVE_SYS_PARAM_H
7759# define HAVE_SYS_PARAM_H 1
7760# endif
7761
7762# ifdef _SC_PAGESIZE
7763# define getpagesize() sysconf(_SC_PAGESIZE)
7764# else /* no _SC_PAGESIZE */
7765# ifdef HAVE_SYS_PARAM_H
7766# include <sys/param.h>
7767# ifdef EXEC_PAGESIZE
7768# define getpagesize() EXEC_PAGESIZE
7769# else /* no EXEC_PAGESIZE */
7770# ifdef NBPG
7771# define getpagesize() NBPG * CLSIZE
7772# ifndef CLSIZE
7773# define CLSIZE 1
7774# endif /* no CLSIZE */
7775# else /* no NBPG */
7776# ifdef NBPC
7777# define getpagesize() NBPC
7778# else /* no NBPC */
7779# ifdef PAGESIZE
7780# define getpagesize() PAGESIZE
7781# endif /* PAGESIZE */
7782# endif /* no NBPC */
7783# endif /* no NBPG */
7784# endif /* no EXEC_PAGESIZE */
7785# else /* no HAVE_SYS_PARAM_H */
7786# define getpagesize() 8192 /* punt totally */
7787# endif /* no HAVE_SYS_PARAM_H */
7788# endif /* no _SC_PAGESIZE */
7789
7790#endif /* no HAVE_GETPAGESIZE */
7791
7792int
7793main ()
7794{
7795 char *data, *data2, *data3;
7796 int i, pagesize;
7797 int fd;
7798
7799 pagesize = getpagesize ();
7800
7801 /* First, make a file with some known garbage in it. */
7802 data = (char *) malloc (pagesize);
7803 if (!data)
7804 return 1;
7805 for (i = 0; i < pagesize; ++i)
7806 *(data + i) = rand ();
7807 umask (0);
7808 fd = creat ("conftest.mmap", 0600);
7809 if (fd < 0)
7810 return 1;
7811 if (write (fd, data, pagesize) != pagesize)
7812 return 1;
7813 close (fd);
7814
7815 /* Next, try to mmap the file at a fixed address which already has
7816 something else allocated at it. If we can, also make sure that
7817 we see the same garbage. */
7818 fd = open ("conftest.mmap", O_RDWR);
7819 if (fd < 0)
7820 return 1;
7821 data2 = (char *) malloc (2 * pagesize);
7822 if (!data2)
7823 return 1;
7824 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7825 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7826 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7827 return 1;
7828 for (i = 0; i < pagesize; ++i)
7829 if (*(data + i) != *(data2 + i))
7830 return 1;
7831
7832 /* Finally, make sure that changes to the mapped area do not
7833 percolate back to the file as seen by read(). (This is a bug on
7834 some variants of i386 svr4.0.) */
7835 for (i = 0; i < pagesize; ++i)
7836 *(data2 + i) = *(data2 + i) + 1;
7837 data3 = (char *) malloc (pagesize);
7838 if (!data3)
7839 return 1;
7840 if (read (fd, data3, pagesize) != pagesize)
7841 return 1;
7842 for (i = 0; i < pagesize; ++i)
7843 if (*(data + i) != *(data3 + i))
7844 return 1;
7845 close (fd);
7846 return 0;
7847}
7848_ACEOF
7849rm -f conftest$ac_exeext
7850if { (ac_try="$ac_link"
7851case "(($ac_try" in
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7854esac
7855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7856 (eval "$ac_link") 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7860 { (case "(($ac_try" in
7861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7862 *) ac_try_echo=$ac_try;;
7863esac
7864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7865 (eval "$ac_try") 2>&5
7866 ac_status=$?
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); }; }; then
7869 ac_cv_func_mmap_fixed_mapped=yes
7870else
7871 echo "$as_me: program exited with status $ac_status" >&5
7872echo "$as_me: failed program was:" >&5
7873sed 's/^/| /' conftest.$ac_ext >&5
7874
7875( exit $ac_status )
7876ac_cv_func_mmap_fixed_mapped=no
7877fi
7878rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7879fi
7880
7881
7882fi
7883{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7884echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7885if test $ac_cv_func_mmap_fixed_mapped = yes; then
7886
7887cat >>confdefs.h <<\_ACEOF
7888#define HAVE_MMAP 1
7889_ACEOF
7890
7891fi
7892rm -f conftest.mmap
7893
7894
7895 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7896echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
7897if test "${ac_cv_gnu_library_2_1+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899else
7900 cat >conftest.$ac_ext <<_ACEOF
7901/* confdefs.h. */
7902_ACEOF
7903cat confdefs.h >>conftest.$ac_ext
7904cat >>conftest.$ac_ext <<_ACEOF
7905/* end confdefs.h. */
7906
7907#include <features.h>
7908#ifdef __GNU_LIBRARY__
7909 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7910 Lucky GNU user
7911 #endif
7912#endif
7913
7914_ACEOF
7915if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7916 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7917 ac_cv_gnu_library_2_1=yes
7918else
7919 ac_cv_gnu_library_2_1=no
7920fi
7921rm -f conftest*
7922
7923
7924
7925fi
7926{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7927echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
7928
7929 GLIBC21="$ac_cv_gnu_library_2_1"
7930
7931
7932
7933
7934 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
7935echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
7936if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7938else
7939
7940 if test "$cross_compiling" = yes; then
7941
7942 # Guess based on the CPU.
7943 case "$host_cpu" in
7944 alpha* | i3456786 | m68k | s390*)
7945 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7946 *)
7947 gt_cv_int_divbyzero_sigfpe="guessing no";;
7948 esac
7949
7950else
7951 cat >conftest.$ac_ext <<_ACEOF
7952/* confdefs.h. */
7953_ACEOF
7954cat confdefs.h >>conftest.$ac_ext
7955cat >>conftest.$ac_ext <<_ACEOF
7956/* end confdefs.h. */
7957
7958#include <stdlib.h>
7959#include <signal.h>
7960
7961static void
7962#ifdef __cplusplus
7963sigfpe_handler (int sig)
7964#else
7965sigfpe_handler (sig) int sig;
7966#endif
7967{
7968 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7969 exit (sig != SIGFPE);
7970}
7971
7972int x = 1;
7973int y = 0;
7974int z;
7975int nan;
7976
7977int main ()
7978{
7979 signal (SIGFPE, sigfpe_handler);
7980/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7981#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7982 signal (SIGTRAP, sigfpe_handler);
7983#endif
7984/* Linux/SPARC yields signal SIGILL. */
7985#if defined (__sparc__) && defined (__linux__)
7986 signal (SIGILL, sigfpe_handler);
7987#endif
7988
7989 z = x / y;
7990 nan = y / y;
7991 exit (1);
7992}
7993
7994_ACEOF
7995rm -f conftest$ac_exeext
7996if { (ac_try="$ac_link"
7997case "(($ac_try" in
7998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7999 *) ac_try_echo=$ac_try;;
8000esac
8001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8002 (eval "$ac_link") 2>&5
8003 ac_status=$?
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8006 { (case "(($ac_try" in
8007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8009esac
8010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011 (eval "$ac_try") 2>&5
8012 ac_status=$?
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); }; }; then
8015 gt_cv_int_divbyzero_sigfpe=yes
8016else
8017 echo "$as_me: program exited with status $ac_status" >&5
8018echo "$as_me: failed program was:" >&5
8019sed 's/^/| /' conftest.$ac_ext >&5
8020
8021( exit $ac_status )
8022gt_cv_int_divbyzero_sigfpe=no
8023fi
8024rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8025fi
8026
8027
8028
8029fi
8030{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
8031echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
8032 case "$gt_cv_int_divbyzero_sigfpe" in
8033 *yes) value=1;;
8034 *) value=0;;
8035 esac
8036
8037cat >>confdefs.h <<_ACEOF
8038#define INTDIV0_RAISES_SIGFPE $value
8039_ACEOF
8040
8041
8042
8043 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
8044echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
8045if test "${ac_cv_type_unsigned_long_long+set}" = set; then
8046 echo $ECHO_N "(cached) $ECHO_C" >&6
8047else
8048 cat >conftest.$ac_ext <<_ACEOF
8049/* confdefs.h. */
8050_ACEOF
8051cat confdefs.h >>conftest.$ac_ext
8052cat >>conftest.$ac_ext <<_ACEOF
8053/* end confdefs.h. */
8054unsigned long long ull = 1ULL; int i = 63;
8055int
8056main ()
8057{
8058unsigned long long ullmax = (unsigned long long) -1;
8059 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8060 ;
8061 return 0;
8062}
8063_ACEOF
8064rm -f conftest.$ac_objext conftest$ac_exeext
8065if { (ac_try="$ac_link"
8066case "(($ac_try" in
8067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068 *) ac_try_echo=$ac_try;;
8069esac
8070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071 (eval "$ac_link") 2>conftest.er1
8072 ac_status=$?
8073 grep -v '^ *+' conftest.er1 >conftest.err
8074 rm -f conftest.er1
8075 cat conftest.err >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } && {
8078 test -z "$ac_cxx_werror_flag" ||
8079 test ! -s conftest.err
8080 } && test -s conftest$ac_exeext &&
8081 $as_test_x conftest$ac_exeext; then
8082 ac_cv_type_unsigned_long_long=yes
8083else
8084 echo "$as_me: failed program was:" >&5
8085sed 's/^/| /' conftest.$ac_ext >&5
8086
8087 ac_cv_type_unsigned_long_long=no
8088fi
8089
8090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8091 conftest$ac_exeext conftest.$ac_ext
8092fi
8093{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
8094echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
8095 if test $ac_cv_type_unsigned_long_long = yes; then
8096
8097cat >>confdefs.h <<\_ACEOF
8098#define HAVE_UNSIGNED_LONG_LONG 1
8099_ACEOF
8100
8101 fi
8102
8103
8104
8105
8106 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
8107
8108 test $ac_cv_type_unsigned_long_long = yes \
8109 && ac_type='unsigned long long' \
8110 || ac_type='unsigned long'
8111
8112cat >>confdefs.h <<_ACEOF
8113#define uintmax_t $ac_type
8114_ACEOF
8115
8116 else
8117
8118cat >>confdefs.h <<\_ACEOF
8119#define HAVE_UINTMAX_T 1
8120_ACEOF
8121
8122 fi
8123
8124
8125 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8126echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8127if test "${gt_cv_header_inttypes_h+set}" = set; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8129else
8130
8131 cat >conftest.$ac_ext <<_ACEOF
8132/* confdefs.h. */
8133_ACEOF
8134cat confdefs.h >>conftest.$ac_ext
8135cat >>conftest.$ac_ext <<_ACEOF
8136/* end confdefs.h. */
8137#include <sys/types.h>
8138#include <inttypes.h>
8139int
8140main ()
8141{
8142
8143 ;
8144 return 0;
8145}
8146_ACEOF
8147rm -f conftest.$ac_objext
8148if { (ac_try="$ac_compile"
8149case "(($ac_try" in
8150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8151 *) ac_try_echo=$ac_try;;
8152esac
8153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8154 (eval "$ac_compile") 2>conftest.er1
8155 ac_status=$?
8156 grep -v '^ *+' conftest.er1 >conftest.err
8157 rm -f conftest.er1
8158 cat conftest.err >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } && {
8161 test -z "$ac_cxx_werror_flag" ||
8162 test ! -s conftest.err
8163 } && test -s conftest.$ac_objext; then
8164 gt_cv_header_inttypes_h=yes
8165else
8166 echo "$as_me: failed program was:" >&5
8167sed 's/^/| /' conftest.$ac_ext >&5
8168
8169 gt_cv_header_inttypes_h=no
8170fi
8171
8172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173
8174fi
8175{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
8176echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
8177 if test $gt_cv_header_inttypes_h = yes; then
8178
8179cat >>confdefs.h <<_ACEOF
8180#define HAVE_INTTYPES_H 1
8181_ACEOF
8182
8183 fi
8184
8185
8186
8187 if test $gt_cv_header_inttypes_h = yes; then
8188 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
8189echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
8190if test "${gt_cv_inttypes_pri_broken+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8192else
8193
8194 cat >conftest.$ac_ext <<_ACEOF
8195/* confdefs.h. */
8196_ACEOF
8197cat confdefs.h >>conftest.$ac_ext
8198cat >>conftest.$ac_ext <<_ACEOF
8199/* end confdefs.h. */
8200#include <inttypes.h>
8201#ifdef PRId32
8202char *p = PRId32;
8203#endif
8204
8205int
8206main ()
8207{
8208
8209 ;
8210 return 0;
8211}
8212_ACEOF
8213rm -f conftest.$ac_objext
8214if { (ac_try="$ac_compile"
8215case "(($ac_try" in
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8218esac
8219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_compile") 2>conftest.er1
8221 ac_status=$?
8222 grep -v '^ *+' conftest.er1 >conftest.err
8223 rm -f conftest.er1
8224 cat conftest.err >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } && {
8227 test -z "$ac_cxx_werror_flag" ||
8228 test ! -s conftest.err
8229 } && test -s conftest.$ac_objext; then
8230 gt_cv_inttypes_pri_broken=no
8231else
8232 echo "$as_me: failed program was:" >&5
8233sed 's/^/| /' conftest.$ac_ext >&5
8234
8235 gt_cv_inttypes_pri_broken=yes
8236fi
8237
8238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8239
8240fi
8241{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
8242echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
8243 fi
8244 if test "$gt_cv_inttypes_pri_broken" = yes; then
8245
8246cat >>confdefs.h <<_ACEOF
8247#define PRI_MACROS_BROKEN 1
8248_ACEOF
8249
8250 fi
8251
8252
8253
8254for ac_header in stdint.h
8255do
8256as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8262fi
8263ac_res=`eval echo '${'$as_ac_Header'}'`
8264 { echo "$as_me:$LINENO: result: $ac_res" >&5
8265echo "${ECHO_T}$ac_res" >&6; }
8266else
8267 # Is the header compilable?
8268{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8269echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8270cat >conftest.$ac_ext <<_ACEOF
8271/* confdefs.h. */
8272_ACEOF
8273cat confdefs.h >>conftest.$ac_ext
8274cat >>conftest.$ac_ext <<_ACEOF
8275/* end confdefs.h. */
8276$ac_includes_default
8277#include <$ac_header>
8278_ACEOF
8279rm -f conftest.$ac_objext
8280if { (ac_try="$ac_compile"
8281case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8284esac
8285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286 (eval "$ac_compile") 2>conftest.er1
8287 ac_status=$?
8288 grep -v '^ *+' conftest.er1 >conftest.err
8289 rm -f conftest.er1
8290 cat conftest.err >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } && {
8293 test -z "$ac_cxx_werror_flag" ||
8294 test ! -s conftest.err
8295 } && test -s conftest.$ac_objext; then
8296 ac_header_compiler=yes
8297else
8298 echo "$as_me: failed program was:" >&5
8299sed 's/^/| /' conftest.$ac_ext >&5
8300
8301 ac_header_compiler=no
8302fi
8303
8304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8306echo "${ECHO_T}$ac_header_compiler" >&6; }
8307
8308# Is the header present?
8309{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8310echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8311cat >conftest.$ac_ext <<_ACEOF
8312/* confdefs.h. */
8313_ACEOF
8314cat confdefs.h >>conftest.$ac_ext
8315cat >>conftest.$ac_ext <<_ACEOF
8316/* end confdefs.h. */
8317#include <$ac_header>
8318_ACEOF
8319if { (ac_try="$ac_cpp conftest.$ac_ext"
8320case "(($ac_try" in
8321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322 *) ac_try_echo=$ac_try;;
8323esac
8324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8326 ac_status=$?
8327 grep -v '^ *+' conftest.er1 >conftest.err
8328 rm -f conftest.er1
8329 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } >/dev/null && {
8332 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8333 test ! -s conftest.err
8334 }; then
8335 ac_header_preproc=yes
8336else
8337 echo "$as_me: failed program was:" >&5
8338sed 's/^/| /' conftest.$ac_ext >&5
8339
8340 ac_header_preproc=no
8341fi
8342
8343rm -f conftest.err conftest.$ac_ext
8344{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8345echo "${ECHO_T}$ac_header_preproc" >&6; }
8346
8347# So? What about this header?
8348case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8349 yes:no: )
8350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8351echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8353echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8354 ac_header_preproc=yes
8355 ;;
8356 no:yes:* )
8357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8358echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8360echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8362echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8364echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8366echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8368echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8369
8370 ;;
8371esac
8372{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8374if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8375 echo $ECHO_N "(cached) $ECHO_C" >&6
8376else
8377 eval "$as_ac_Header=\$ac_header_preproc"
8378fi
8379ac_res=`eval echo '${'$as_ac_Header'}'`
8380 { echo "$as_me:$LINENO: result: $ac_res" >&5
8381echo "${ECHO_T}$ac_res" >&6; }
8382
8383fi
8384if test `eval echo '${'$as_ac_Header'}'` = yes; then
8385 cat >>confdefs.h <<_ACEOF
8386#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8387_ACEOF
8388
8389fi
8390
8391done
8392
8393 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
8394echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
8395 result=
8396 cat >conftest.$ac_ext <<_ACEOF
8397/* confdefs.h. */
8398_ACEOF
8399cat confdefs.h >>conftest.$ac_ext
8400cat >>conftest.$ac_ext <<_ACEOF
8401/* end confdefs.h. */
8402
8403#include <limits.h>
8404#if HAVE_STDINT_H
8405#include <stdint.h>
8406#endif
8407#ifdef SIZE_MAX
8408Found it
8409#endif
8410
8411_ACEOF
8412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8413 $EGREP "Found it" >/dev/null 2>&1; then
8414 result=yes
8415fi
8416rm -f conftest*
8417
8418 if test -z "$result"; then
8419 if test "$cross_compiling" = yes; then
8420 # Depending upon the size, compute the lo and hi bounds.
8421cat >conftest.$ac_ext <<_ACEOF
8422/* confdefs.h. */
8423_ACEOF
8424cat confdefs.h >>conftest.$ac_ext
8425cat >>conftest.$ac_ext <<_ACEOF
8426/* end confdefs.h. */
8427#include <stddef.h>
8428int
8429main ()
8430{
8431static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
8432test_array [0] = 0
8433
8434 ;
8435 return 0;
8436}
8437_ACEOF
8438rm -f conftest.$ac_objext
8439if { (ac_try="$ac_compile"
8440case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8443esac
8444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_compile") 2>conftest.er1
8446 ac_status=$?
8447 grep -v '^ *+' conftest.er1 >conftest.err
8448 rm -f conftest.er1
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } && {
8452 test -z "$ac_cxx_werror_flag" ||
8453 test ! -s conftest.err
8454 } && test -s conftest.$ac_objext; then
8455 ac_lo=0 ac_mid=0
8456 while :; do
8457 cat >conftest.$ac_ext <<_ACEOF
8458/* confdefs.h. */
8459_ACEOF
8460cat confdefs.h >>conftest.$ac_ext
8461cat >>conftest.$ac_ext <<_ACEOF
8462/* end confdefs.h. */
8463#include <stddef.h>
8464int
8465main ()
8466{
8467static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
8468test_array [0] = 0
8469
8470 ;
8471 return 0;
8472}
8473_ACEOF
8474rm -f conftest.$ac_objext
8475if { (ac_try="$ac_compile"
8476case "(($ac_try" in
8477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8479esac
8480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481 (eval "$ac_compile") 2>conftest.er1
8482 ac_status=$?
8483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } && {
8488 test -z "$ac_cxx_werror_flag" ||
8489 test ! -s conftest.err
8490 } && test -s conftest.$ac_objext; then
8491 ac_hi=$ac_mid; break
8492else
8493 echo "$as_me: failed program was:" >&5
8494sed 's/^/| /' conftest.$ac_ext >&5
8495
8496 ac_lo=`expr $ac_mid + 1`
8497 if test $ac_lo -le $ac_mid; then
8498 ac_lo= ac_hi=
8499 break
8500 fi
8501 ac_mid=`expr 2 '*' $ac_mid + 1`
8502fi
8503
8504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505 done
8506else
8507 echo "$as_me: failed program was:" >&5
8508sed 's/^/| /' conftest.$ac_ext >&5
8509
8510 cat >conftest.$ac_ext <<_ACEOF
8511/* confdefs.h. */
8512_ACEOF
8513cat confdefs.h >>conftest.$ac_ext
8514cat >>conftest.$ac_ext <<_ACEOF
8515/* end confdefs.h. */
8516#include <stddef.h>
8517int
8518main ()
8519{
8520static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
8521test_array [0] = 0
8522
8523 ;
8524 return 0;
8525}
8526_ACEOF
8527rm -f conftest.$ac_objext
8528if { (ac_try="$ac_compile"
8529case "(($ac_try" in
8530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531 *) ac_try_echo=$ac_try;;
8532esac
8533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8534 (eval "$ac_compile") 2>conftest.er1
8535 ac_status=$?
8536 grep -v '^ *+' conftest.er1 >conftest.err
8537 rm -f conftest.er1
8538 cat conftest.err >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } && {
8541 test -z "$ac_cxx_werror_flag" ||
8542 test ! -s conftest.err
8543 } && test -s conftest.$ac_objext; then
8544 ac_hi=-1 ac_mid=-1
8545 while :; do
8546 cat >conftest.$ac_ext <<_ACEOF
8547/* confdefs.h. */
8548_ACEOF
8549cat confdefs.h >>conftest.$ac_ext
8550cat >>conftest.$ac_ext <<_ACEOF
8551/* end confdefs.h. */
8552#include <stddef.h>
8553int
8554main ()
8555{
8556static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
8557test_array [0] = 0
8558
8559 ;
8560 return 0;
8561}
8562_ACEOF
8563rm -f conftest.$ac_objext
8564if { (ac_try="$ac_compile"
8565case "(($ac_try" in
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8568esac
8569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570 (eval "$ac_compile") 2>conftest.er1
8571 ac_status=$?
8572 grep -v '^ *+' conftest.er1 >conftest.err
8573 rm -f conftest.er1
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } && {
8577 test -z "$ac_cxx_werror_flag" ||
8578 test ! -s conftest.err
8579 } && test -s conftest.$ac_objext; then
8580 ac_lo=$ac_mid; break
8581else
8582 echo "$as_me: failed program was:" >&5
8583sed 's/^/| /' conftest.$ac_ext >&5
8584
8585 ac_hi=`expr '(' $ac_mid ')' - 1`
8586 if test $ac_mid -le $ac_hi; then
8587 ac_lo= ac_hi=
8588 break
8589 fi
8590 ac_mid=`expr 2 '*' $ac_mid`
8591fi
8592
8593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594 done
8595else
8596 echo "$as_me: failed program was:" >&5
8597sed 's/^/| /' conftest.$ac_ext >&5
8598
8599 ac_lo= ac_hi=
8600fi
8601
8602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603fi
8604
8605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8606# Binary search between lo and hi bounds.
8607while test "x$ac_lo" != "x$ac_hi"; do
8608 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8609 cat >conftest.$ac_ext <<_ACEOF
8610/* confdefs.h. */
8611_ACEOF
8612cat confdefs.h >>conftest.$ac_ext
8613cat >>conftest.$ac_ext <<_ACEOF
8614/* end confdefs.h. */
8615#include <stddef.h>
8616int
8617main ()
8618{
8619static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
8620test_array [0] = 0
8621
8622 ;
8623 return 0;
8624}
8625_ACEOF
8626rm -f conftest.$ac_objext
8627if { (ac_try="$ac_compile"
8628case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8631esac
8632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_compile") 2>conftest.er1
8634 ac_status=$?
8635 grep -v '^ *+' conftest.er1 >conftest.err
8636 rm -f conftest.er1
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } && {
8640 test -z "$ac_cxx_werror_flag" ||
8641 test ! -s conftest.err
8642 } && test -s conftest.$ac_objext; then
8643 ac_hi=$ac_mid
8644else
8645 echo "$as_me: failed program was:" >&5
8646sed 's/^/| /' conftest.$ac_ext >&5
8647
8648 ac_lo=`expr '(' $ac_mid ')' + 1`
8649fi
8650
8651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8652done
8653case $ac_lo in
8654?*) res_hi=$ac_lo;;
8655'') result=? ;;
8656esac
8657else
8658 cat >conftest.$ac_ext <<_ACEOF
8659/* confdefs.h. */
8660_ACEOF
8661cat confdefs.h >>conftest.$ac_ext
8662cat >>conftest.$ac_ext <<_ACEOF
8663/* end confdefs.h. */
8664#include <stddef.h>
8665static long int longval () { return ~(size_t)0 / 10; }
8666static unsigned long int ulongval () { return ~(size_t)0 / 10; }
8667#include <stdio.h>
8668#include <stdlib.h>
8669int
8670main ()
8671{
8672
8673 FILE *f = fopen ("conftest.val", "w");
8674 if (! f)
8675 return 1;
8676 if ((~(size_t)0 / 10) < 0)
8677 {
8678 long int i = longval ();
8679 if (i != (~(size_t)0 / 10))
8680 return 1;
8681 fprintf (f, "%ld\n", i);
8682 }
8683 else
8684 {
8685 unsigned long int i = ulongval ();
8686 if (i != (~(size_t)0 / 10))
8687 return 1;
8688 fprintf (f, "%lu\n", i);
8689 }
8690 return ferror (f) || fclose (f) != 0;
8691
8692 ;
8693 return 0;
8694}
8695_ACEOF
8696rm -f conftest$ac_exeext
8697if { (ac_try="$ac_link"
8698case "(($ac_try" in
8699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700 *) ac_try_echo=$ac_try;;
8701esac
8702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703 (eval "$ac_link") 2>&5
8704 ac_status=$?
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8707 { (case "(($ac_try" in
8708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709 *) ac_try_echo=$ac_try;;
8710esac
8711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8712 (eval "$ac_try") 2>&5
8713 ac_status=$?
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; }; then
8716 res_hi=`cat conftest.val`
8717else
8718 echo "$as_me: program exited with status $ac_status" >&5
8719echo "$as_me: failed program was:" >&5
8720sed 's/^/| /' conftest.$ac_ext >&5
8721
8722( exit $ac_status )
8723result=?
8724fi
8725rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8726fi
8727rm -f conftest.val
8728
8729 if test "$cross_compiling" = yes; then
8730 # Depending upon the size, compute the lo and hi bounds.
8731cat >conftest.$ac_ext <<_ACEOF
8732/* confdefs.h. */
8733_ACEOF
8734cat confdefs.h >>conftest.$ac_ext
8735cat >>conftest.$ac_ext <<_ACEOF
8736/* end confdefs.h. */
8737#include <stddef.h>
8738int
8739main ()
8740{
8741static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
8742test_array [0] = 0
8743
8744 ;
8745 return 0;
8746}
8747_ACEOF
8748rm -f conftest.$ac_objext
8749if { (ac_try="$ac_compile"
8750case "(($ac_try" in
8751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8752 *) ac_try_echo=$ac_try;;
8753esac
8754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8755 (eval "$ac_compile") 2>conftest.er1
8756 ac_status=$?
8757 grep -v '^ *+' conftest.er1 >conftest.err
8758 rm -f conftest.er1
8759 cat conftest.err >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } && {
8762 test -z "$ac_cxx_werror_flag" ||
8763 test ! -s conftest.err
8764 } && test -s conftest.$ac_objext; then
8765 ac_lo=0 ac_mid=0
8766 while :; do
8767 cat >conftest.$ac_ext <<_ACEOF
8768/* confdefs.h. */
8769_ACEOF
8770cat confdefs.h >>conftest.$ac_ext
8771cat >>conftest.$ac_ext <<_ACEOF
8772/* end confdefs.h. */
8773#include <stddef.h>
8774int
8775main ()
8776{
8777static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8778test_array [0] = 0
8779
8780 ;
8781 return 0;
8782}
8783_ACEOF
8784rm -f conftest.$ac_objext
8785if { (ac_try="$ac_compile"
8786case "(($ac_try" in
8787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788 *) ac_try_echo=$ac_try;;
8789esac
8790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791 (eval "$ac_compile") 2>conftest.er1
8792 ac_status=$?
8793 grep -v '^ *+' conftest.er1 >conftest.err
8794 rm -f conftest.er1
8795 cat conftest.err >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); } && {
8798 test -z "$ac_cxx_werror_flag" ||
8799 test ! -s conftest.err
8800 } && test -s conftest.$ac_objext; then
8801 ac_hi=$ac_mid; break
8802else
8803 echo "$as_me: failed program was:" >&5
8804sed 's/^/| /' conftest.$ac_ext >&5
8805
8806 ac_lo=`expr $ac_mid + 1`
8807 if test $ac_lo -le $ac_mid; then
8808 ac_lo= ac_hi=
8809 break
8810 fi
8811 ac_mid=`expr 2 '*' $ac_mid + 1`
8812fi
8813
8814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8815 done
8816else
8817 echo "$as_me: failed program was:" >&5
8818sed 's/^/| /' conftest.$ac_ext >&5
8819
8820 cat >conftest.$ac_ext <<_ACEOF
8821/* confdefs.h. */
8822_ACEOF
8823cat confdefs.h >>conftest.$ac_ext
8824cat >>conftest.$ac_ext <<_ACEOF
8825/* end confdefs.h. */
8826#include <stddef.h>
8827int
8828main ()
8829{
8830static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
8831test_array [0] = 0
8832
8833 ;
8834 return 0;
8835}
8836_ACEOF
8837rm -f conftest.$ac_objext
8838if { (ac_try="$ac_compile"
8839case "(($ac_try" in
8840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841 *) ac_try_echo=$ac_try;;
8842esac
8843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844 (eval "$ac_compile") 2>conftest.er1
8845 ac_status=$?
8846 grep -v '^ *+' conftest.er1 >conftest.err
8847 rm -f conftest.er1
8848 cat conftest.err >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } && {
8851 test -z "$ac_cxx_werror_flag" ||
8852 test ! -s conftest.err
8853 } && test -s conftest.$ac_objext; then
8854 ac_hi=-1 ac_mid=-1
8855 while :; do
8856 cat >conftest.$ac_ext <<_ACEOF
8857/* confdefs.h. */
8858_ACEOF
8859cat confdefs.h >>conftest.$ac_ext
8860cat >>conftest.$ac_ext <<_ACEOF
8861/* end confdefs.h. */
8862#include <stddef.h>
8863int
8864main ()
8865{
8866static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
8867test_array [0] = 0
8868
8869 ;
8870 return 0;
8871}
8872_ACEOF
8873rm -f conftest.$ac_objext
8874if { (ac_try="$ac_compile"
8875case "(($ac_try" in
8876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8877 *) ac_try_echo=$ac_try;;
8878esac
8879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8880 (eval "$ac_compile") 2>conftest.er1
8881 ac_status=$?
8882 grep -v '^ *+' conftest.er1 >conftest.err
8883 rm -f conftest.er1
8884 cat conftest.err >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } && {
8887 test -z "$ac_cxx_werror_flag" ||
8888 test ! -s conftest.err
8889 } && test -s conftest.$ac_objext; then
8890 ac_lo=$ac_mid; break
8891else
8892 echo "$as_me: failed program was:" >&5
8893sed 's/^/| /' conftest.$ac_ext >&5
8894
8895 ac_hi=`expr '(' $ac_mid ')' - 1`
8896 if test $ac_mid -le $ac_hi; then
8897 ac_lo= ac_hi=
8898 break
8899 fi
8900 ac_mid=`expr 2 '*' $ac_mid`
8901fi
8902
8903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904 done
8905else
8906 echo "$as_me: failed program was:" >&5
8907sed 's/^/| /' conftest.$ac_ext >&5
8908
8909 ac_lo= ac_hi=
8910fi
8911
8912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8913fi
8914
8915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8916# Binary search between lo and hi bounds.
8917while test "x$ac_lo" != "x$ac_hi"; do
8918 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8919 cat >conftest.$ac_ext <<_ACEOF
8920/* confdefs.h. */
8921_ACEOF
8922cat confdefs.h >>conftest.$ac_ext
8923cat >>conftest.$ac_ext <<_ACEOF
8924/* end confdefs.h. */
8925#include <stddef.h>
8926int
8927main ()
8928{
8929static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8930test_array [0] = 0
8931
8932 ;
8933 return 0;
8934}
8935_ACEOF
8936rm -f conftest.$ac_objext
8937if { (ac_try="$ac_compile"
8938case "(($ac_try" in
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8941esac
8942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943 (eval "$ac_compile") 2>conftest.er1
8944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } && {
8950 test -z "$ac_cxx_werror_flag" ||
8951 test ! -s conftest.err
8952 } && test -s conftest.$ac_objext; then
8953 ac_hi=$ac_mid
8954else
8955 echo "$as_me: failed program was:" >&5
8956sed 's/^/| /' conftest.$ac_ext >&5
8957
8958 ac_lo=`expr '(' $ac_mid ')' + 1`
8959fi
8960
8961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8962done
8963case $ac_lo in
8964?*) res_lo=$ac_lo;;
8965'') result=? ;;
8966esac
8967else
8968 cat >conftest.$ac_ext <<_ACEOF
8969/* confdefs.h. */
8970_ACEOF
8971cat confdefs.h >>conftest.$ac_ext
8972cat >>conftest.$ac_ext <<_ACEOF
8973/* end confdefs.h. */
8974#include <stddef.h>
8975static long int longval () { return ~(size_t)0 % 10; }
8976static unsigned long int ulongval () { return ~(size_t)0 % 10; }
8977#include <stdio.h>
8978#include <stdlib.h>
8979int
8980main ()
8981{
8982
8983 FILE *f = fopen ("conftest.val", "w");
8984 if (! f)
8985 return 1;
8986 if ((~(size_t)0 % 10) < 0)
8987 {
8988 long int i = longval ();
8989 if (i != (~(size_t)0 % 10))
8990 return 1;
8991 fprintf (f, "%ld\n", i);
8992 }
8993 else
8994 {
8995 unsigned long int i = ulongval ();
8996 if (i != (~(size_t)0 % 10))
8997 return 1;
8998 fprintf (f, "%lu\n", i);
8999 }
9000 return ferror (f) || fclose (f) != 0;
9001
9002 ;
9003 return 0;
9004}
9005_ACEOF
9006rm -f conftest$ac_exeext
9007if { (ac_try="$ac_link"
9008case "(($ac_try" in
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9011esac
9012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013 (eval "$ac_link") 2>&5
9014 ac_status=$?
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9017 { (case "(($ac_try" in
9018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9019 *) ac_try_echo=$ac_try;;
9020esac
9021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9022 (eval "$ac_try") 2>&5
9023 ac_status=$?
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; }; then
9026 res_lo=`cat conftest.val`
9027else
9028 echo "$as_me: program exited with status $ac_status" >&5
9029echo "$as_me: failed program was:" >&5
9030sed 's/^/| /' conftest.$ac_ext >&5
9031
9032( exit $ac_status )
9033result=?
9034fi
9035rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9036fi
9037rm -f conftest.val
9038
9039 if test "$cross_compiling" = yes; then
9040 # Depending upon the size, compute the lo and hi bounds.
9041cat >conftest.$ac_ext <<_ACEOF
9042/* confdefs.h. */
9043_ACEOF
9044cat confdefs.h >>conftest.$ac_ext
9045cat >>conftest.$ac_ext <<_ACEOF
9046/* end confdefs.h. */
9047#include <stddef.h>
9048int
9049main ()
9050{
9051static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
9052test_array [0] = 0
9053
9054 ;
9055 return 0;
9056}
9057_ACEOF
9058rm -f conftest.$ac_objext
9059if { (ac_try="$ac_compile"
9060case "(($ac_try" in
9061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9062 *) ac_try_echo=$ac_try;;
9063esac
9064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9065 (eval "$ac_compile") 2>conftest.er1
9066 ac_status=$?
9067 grep -v '^ *+' conftest.er1 >conftest.err
9068 rm -f conftest.er1
9069 cat conftest.err >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } && {
9072 test -z "$ac_cxx_werror_flag" ||
9073 test ! -s conftest.err
9074 } && test -s conftest.$ac_objext; then
9075 ac_lo=0 ac_mid=0
9076 while :; do
9077 cat >conftest.$ac_ext <<_ACEOF
9078/* confdefs.h. */
9079_ACEOF
9080cat confdefs.h >>conftest.$ac_ext
9081cat >>conftest.$ac_ext <<_ACEOF
9082/* end confdefs.h. */
9083#include <stddef.h>
9084int
9085main ()
9086{
9087static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
9088test_array [0] = 0
9089
9090 ;
9091 return 0;
9092}
9093_ACEOF
9094rm -f conftest.$ac_objext
9095if { (ac_try="$ac_compile"
9096case "(($ac_try" in
9097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9098 *) ac_try_echo=$ac_try;;
9099esac
9100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9101 (eval "$ac_compile") 2>conftest.er1
9102 ac_status=$?
9103 grep -v '^ *+' conftest.er1 >conftest.err
9104 rm -f conftest.er1
9105 cat conftest.err >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } && {
9108 test -z "$ac_cxx_werror_flag" ||
9109 test ! -s conftest.err
9110 } && test -s conftest.$ac_objext; then
9111 ac_hi=$ac_mid; break
9112else
9113 echo "$as_me: failed program was:" >&5
9114sed 's/^/| /' conftest.$ac_ext >&5
9115
9116 ac_lo=`expr $ac_mid + 1`
9117 if test $ac_lo -le $ac_mid; then
9118 ac_lo= ac_hi=
9119 break
9120 fi
9121 ac_mid=`expr 2 '*' $ac_mid + 1`
9122fi
9123
9124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9125 done
9126else
9127 echo "$as_me: failed program was:" >&5
9128sed 's/^/| /' conftest.$ac_ext >&5
9129
9130 cat >conftest.$ac_ext <<_ACEOF
9131/* confdefs.h. */
9132_ACEOF
9133cat confdefs.h >>conftest.$ac_ext
9134cat >>conftest.$ac_ext <<_ACEOF
9135/* end confdefs.h. */
9136#include <stddef.h>
9137int
9138main ()
9139{
9140static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
9141test_array [0] = 0
9142
9143 ;
9144 return 0;
9145}
9146_ACEOF
9147rm -f conftest.$ac_objext
9148if { (ac_try="$ac_compile"
9149case "(($ac_try" in
9150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151 *) ac_try_echo=$ac_try;;
9152esac
9153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154 (eval "$ac_compile") 2>conftest.er1
9155 ac_status=$?
9156 grep -v '^ *+' conftest.er1 >conftest.err
9157 rm -f conftest.er1
9158 cat conftest.err >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } && {
9161 test -z "$ac_cxx_werror_flag" ||
9162 test ! -s conftest.err
9163 } && test -s conftest.$ac_objext; then
9164 ac_hi=-1 ac_mid=-1
9165 while :; do
9166 cat >conftest.$ac_ext <<_ACEOF
9167/* confdefs.h. */
9168_ACEOF
9169cat confdefs.h >>conftest.$ac_ext
9170cat >>conftest.$ac_ext <<_ACEOF
9171/* end confdefs.h. */
9172#include <stddef.h>
9173int
9174main ()
9175{
9176static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
9177test_array [0] = 0
9178
9179 ;
9180 return 0;
9181}
9182_ACEOF
9183rm -f conftest.$ac_objext
9184if { (ac_try="$ac_compile"
9185case "(($ac_try" in
9186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9187 *) ac_try_echo=$ac_try;;
9188esac
9189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9190 (eval "$ac_compile") 2>conftest.er1
9191 ac_status=$?
9192 grep -v '^ *+' conftest.er1 >conftest.err
9193 rm -f conftest.er1
9194 cat conftest.err >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } && {
9197 test -z "$ac_cxx_werror_flag" ||
9198 test ! -s conftest.err
9199 } && test -s conftest.$ac_objext; then
9200 ac_lo=$ac_mid; break
9201else
9202 echo "$as_me: failed program was:" >&5
9203sed 's/^/| /' conftest.$ac_ext >&5
9204
9205 ac_hi=`expr '(' $ac_mid ')' - 1`
9206 if test $ac_mid -le $ac_hi; then
9207 ac_lo= ac_hi=
9208 break
9209 fi
9210 ac_mid=`expr 2 '*' $ac_mid`
9211fi
9212
9213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9214 done
9215else
9216 echo "$as_me: failed program was:" >&5
9217sed 's/^/| /' conftest.$ac_ext >&5
9218
9219 ac_lo= ac_hi=
9220fi
9221
9222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9223fi
9224
9225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9226# Binary search between lo and hi bounds.
9227while test "x$ac_lo" != "x$ac_hi"; do
9228 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9229 cat >conftest.$ac_ext <<_ACEOF
9230/* confdefs.h. */
9231_ACEOF
9232cat confdefs.h >>conftest.$ac_ext
9233cat >>conftest.$ac_ext <<_ACEOF
9234/* end confdefs.h. */
9235#include <stddef.h>
9236int
9237main ()
9238{
9239static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
9240test_array [0] = 0
9241
9242 ;
9243 return 0;
9244}
9245_ACEOF
9246rm -f conftest.$ac_objext
9247if { (ac_try="$ac_compile"
9248case "(($ac_try" in
9249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9250 *) ac_try_echo=$ac_try;;
9251esac
9252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9253 (eval "$ac_compile") 2>conftest.er1
9254 ac_status=$?
9255 grep -v '^ *+' conftest.er1 >conftest.err
9256 rm -f conftest.er1
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } && {
9260 test -z "$ac_cxx_werror_flag" ||
9261 test ! -s conftest.err
9262 } && test -s conftest.$ac_objext; then
9263 ac_hi=$ac_mid
9264else
9265 echo "$as_me: failed program was:" >&5
9266sed 's/^/| /' conftest.$ac_ext >&5
9267
9268 ac_lo=`expr '(' $ac_mid ')' + 1`
9269fi
9270
9271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9272done
9273case $ac_lo in
9274?*) fits_in_uint=$ac_lo;;
9275'') result=? ;;
9276esac
9277else
9278 cat >conftest.$ac_ext <<_ACEOF
9279/* confdefs.h. */
9280_ACEOF
9281cat confdefs.h >>conftest.$ac_ext
9282cat >>conftest.$ac_ext <<_ACEOF
9283/* end confdefs.h. */
9284#include <stddef.h>
9285static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
9286static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
9287#include <stdio.h>
9288#include <stdlib.h>
9289int
9290main ()
9291{
9292
9293 FILE *f = fopen ("conftest.val", "w");
9294 if (! f)
9295 return 1;
9296 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
9297 {
9298 long int i = longval ();
9299 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
9300 return 1;
9301 fprintf (f, "%ld\n", i);
9302 }
9303 else
9304 {
9305 unsigned long int i = ulongval ();
9306 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
9307 return 1;
9308 fprintf (f, "%lu\n", i);
9309 }
9310 return ferror (f) || fclose (f) != 0;
9311
9312 ;
9313 return 0;
9314}
9315_ACEOF
9316rm -f conftest$ac_exeext
9317if { (ac_try="$ac_link"
9318case "(($ac_try" in
9319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9320 *) ac_try_echo=$ac_try;;
9321esac
9322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323 (eval "$ac_link") 2>&5
9324 ac_status=$?
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9327 { (case "(($ac_try" in
9328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9329 *) ac_try_echo=$ac_try;;
9330esac
9331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9332 (eval "$ac_try") 2>&5
9333 ac_status=$?
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; }; then
9336 fits_in_uint=`cat conftest.val`
9337else
9338 echo "$as_me: program exited with status $ac_status" >&5
9339echo "$as_me: failed program was:" >&5
9340sed 's/^/| /' conftest.$ac_ext >&5
9341
9342( exit $ac_status )
9343result=?
9344fi
9345rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9346fi
9347rm -f conftest.val
9348
9349 if test "$fits_in_uint" = 1; then
9350 cat >conftest.$ac_ext <<_ACEOF
9351/* confdefs.h. */
9352_ACEOF
9353cat confdefs.h >>conftest.$ac_ext
9354cat >>conftest.$ac_ext <<_ACEOF
9355/* end confdefs.h. */
9356#include <stddef.h>
9357 extern size_t foo;
9358 extern unsigned long foo;
9359
9360int
9361main ()
9362{
9363
9364 ;
9365 return 0;
9366}
9367_ACEOF
9368rm -f conftest.$ac_objext
9369if { (ac_try="$ac_compile"
9370case "(($ac_try" in
9371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9372 *) ac_try_echo=$ac_try;;
9373esac
9374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9375 (eval "$ac_compile") 2>conftest.er1
9376 ac_status=$?
9377 grep -v '^ *+' conftest.er1 >conftest.err
9378 rm -f conftest.er1
9379 cat conftest.err >&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); } && {
9382 test -z "$ac_cxx_werror_flag" ||
9383 test ! -s conftest.err
9384 } && test -s conftest.$ac_objext; then
9385 fits_in_uint=0
9386else
9387 echo "$as_me: failed program was:" >&5
9388sed 's/^/| /' conftest.$ac_ext >&5
9389
9390
9391fi
9392
9393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9394 fi
9395 if test -z "$result"; then
9396 if test "$fits_in_uint" = 1; then
9397 result="$res_hi$res_lo"U
9398 else
9399 result="$res_hi$res_lo"UL
9400 fi
9401 else
9402 result='~(size_t)0'
9403 fi
9404 fi
9405 { echo "$as_me:$LINENO: result: $result" >&5
9406echo "${ECHO_T}$result" >&6; }
9407 if test "$result" != yes; then
9408
9409cat >>confdefs.h <<_ACEOF
9410#define SIZE_MAX $result
9411_ACEOF
9412
9413 fi
9414
9415
9416
9417
9418for ac_header in stdint.h
9419do
9420as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9421if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9424if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9425 echo $ECHO_N "(cached) $ECHO_C" >&6
9426fi
9427ac_res=`eval echo '${'$as_ac_Header'}'`
9428 { echo "$as_me:$LINENO: result: $ac_res" >&5
9429echo "${ECHO_T}$ac_res" >&6; }
9430else
9431 # Is the header compilable?
9432{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9433echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9434cat >conftest.$ac_ext <<_ACEOF
9435/* confdefs.h. */
9436_ACEOF
9437cat confdefs.h >>conftest.$ac_ext
9438cat >>conftest.$ac_ext <<_ACEOF
9439/* end confdefs.h. */
9440$ac_includes_default
9441#include <$ac_header>
9442_ACEOF
9443rm -f conftest.$ac_objext
9444if { (ac_try="$ac_compile"
9445case "(($ac_try" in
9446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447 *) ac_try_echo=$ac_try;;
9448esac
9449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9450 (eval "$ac_compile") 2>conftest.er1
9451 ac_status=$?
9452 grep -v '^ *+' conftest.er1 >conftest.err
9453 rm -f conftest.er1
9454 cat conftest.err >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } && {
9457 test -z "$ac_cxx_werror_flag" ||
9458 test ! -s conftest.err
9459 } && test -s conftest.$ac_objext; then
9460 ac_header_compiler=yes
9461else
9462 echo "$as_me: failed program was:" >&5
9463sed 's/^/| /' conftest.$ac_ext >&5
9464
9465 ac_header_compiler=no
9466fi
9467
9468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9469{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9470echo "${ECHO_T}$ac_header_compiler" >&6; }
9471
9472# Is the header present?
9473{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9474echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9475cat >conftest.$ac_ext <<_ACEOF
9476/* confdefs.h. */
9477_ACEOF
9478cat confdefs.h >>conftest.$ac_ext
9479cat >>conftest.$ac_ext <<_ACEOF
9480/* end confdefs.h. */
9481#include <$ac_header>
9482_ACEOF
9483if { (ac_try="$ac_cpp conftest.$ac_ext"
9484case "(($ac_try" in
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9487esac
9488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9490 ac_status=$?
9491 grep -v '^ *+' conftest.er1 >conftest.err
9492 rm -f conftest.er1
9493 cat conftest.err >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } >/dev/null && {
9496 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9497 test ! -s conftest.err
9498 }; then
9499 ac_header_preproc=yes
9500else
9501 echo "$as_me: failed program was:" >&5
9502sed 's/^/| /' conftest.$ac_ext >&5
9503
9504 ac_header_preproc=no
9505fi
9506
9507rm -f conftest.err conftest.$ac_ext
9508{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9509echo "${ECHO_T}$ac_header_preproc" >&6; }
9510
9511# So? What about this header?
9512case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9513 yes:no: )
9514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9515echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9517echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9518 ac_header_preproc=yes
9519 ;;
9520 no:yes:* )
9521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9522echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9524echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9526echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9528echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9530echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9532echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9533
9534 ;;
9535esac
9536{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9538if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9540else
9541 eval "$as_ac_Header=\$ac_header_preproc"
9542fi
9543ac_res=`eval echo '${'$as_ac_Header'}'`
9544 { echo "$as_me:$LINENO: result: $ac_res" >&5
9545echo "${ECHO_T}$ac_res" >&6; }
9546
9547fi
9548if test `eval echo '${'$as_ac_Header'}'` = yes; then
9549 cat >>confdefs.h <<_ACEOF
9550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9551_ACEOF
9552
9553fi
9554
9555done
9556
9557
9558
9559 if test "X$prefix" = "XNONE"; then
9560 acl_final_prefix="$ac_default_prefix"
9561 else
9562 acl_final_prefix="$prefix"
9563 fi
9564 if test "X$exec_prefix" = "XNONE"; then
9565 acl_final_exec_prefix='${prefix}'
9566 else
9567 acl_final_exec_prefix="$exec_prefix"
9568 fi
9569 acl_save_prefix="$prefix"
9570 prefix="$acl_final_prefix"
9571 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9572 prefix="$acl_save_prefix"
9573
9574
9575# Check whether --with-gnu-ld was given.
9576if test "${with_gnu_ld+set}" = set; then
9577 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9578else
9579 with_gnu_ld=no
9580fi
9581
9582# Prepare PATH_SEPARATOR.
9583# The user is always right.
9584if test "${PATH_SEPARATOR+set}" != set; then
9585 echo "#! /bin/sh" >conf$$.sh
9586 echo "exit 0" >>conf$$.sh
9587 chmod +x conf$$.sh
9588 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9589 PATH_SEPARATOR=';'
9590 else
9591 PATH_SEPARATOR=:
9592 fi
9593 rm -f conf$$.sh
9594fi
9595ac_prog=ld
9596if test "$GCC" = yes; then
9597 # Check if gcc -print-prog-name=ld gives a path.
9598 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9599echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
9600 case $host in
9601 *-*-mingw*)
9602 # gcc leaves a trailing carriage return which upsets mingw
9603 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9604 *)
9605 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9606 esac
9607 case $ac_prog in
9608 # Accept absolute paths.
9609 [\\/]* | [A-Za-z]:[\\/]*)
9610 re_direlt='/[^/][^/]*/\.\./'
9611 # Canonicalize the path of ld
9612 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9613 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9614 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9615 done
9616 test -z "$LD" && LD="$ac_prog"
9617 ;;
9618 "")
9619 # If it fails, then pretend we aren't using GCC.
9620 ac_prog=ld
9621 ;;
9622 *)
9623 # If it is relative, then search for the first ld in PATH.
9624 with_gnu_ld=unknown
9625 ;;
9626 esac
9627elif test "$with_gnu_ld" = yes; then
9628 { echo "$as_me:$LINENO: checking for GNU ld" >&5
9629echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
9630else
9631 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9632echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
9633fi
9634if test "${acl_cv_path_LD+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9636else
9637 if test -z "$LD"; then
9638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9639 for ac_dir in $PATH; do
9640 test -z "$ac_dir" && ac_dir=.
9641 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9642 acl_cv_path_LD="$ac_dir/$ac_prog"
9643 # Check to see if the program is GNU ld. I'd rather use --version,
9644 # but apparently some GNU ld's only accept -v.
9645 # Break only if it was the GNU/non-GNU ld that we prefer.
9646 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9647 *GNU* | *'with BFD'*)
9648 test "$with_gnu_ld" != no && break ;;
9649 *)
9650 test "$with_gnu_ld" != yes && break ;;
9651 esac
9652 fi
9653 done
9654 IFS="$ac_save_ifs"
9655else
9656 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9657fi
9658fi
9659
9660LD="$acl_cv_path_LD"
9661if test -n "$LD"; then
9662 { echo "$as_me:$LINENO: result: $LD" >&5
9663echo "${ECHO_T}$LD" >&6; }
9664else
9665 { echo "$as_me:$LINENO: result: no" >&5
9666echo "${ECHO_T}no" >&6; }
9667fi
9668test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9669echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9670 { (exit 1); exit 1; }; }
9671{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9672echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
9673if test "${acl_cv_prog_gnu_ld+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9675else
9676 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9677case `$LD -v 2>&1 </dev/null` in
9678*GNU* | *'with BFD'*)
9679 acl_cv_prog_gnu_ld=yes ;;
9680*)
9681 acl_cv_prog_gnu_ld=no ;;
9682esac
9683fi
9684{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9685echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
9686with_gnu_ld=$acl_cv_prog_gnu_ld
9687
9688
9689
9690 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9691echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
9692if test "${acl_cv_rpath+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9694else
9695
9696 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9697 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9698 . ./conftest.sh
9699 rm -f ./conftest.sh
9700 acl_cv_rpath=done
9701
9702fi
9703{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9704echo "${ECHO_T}$acl_cv_rpath" >&6; }
9705 wl="$acl_cv_wl"
9706 libext="$acl_cv_libext"
9707 shlibext="$acl_cv_shlibext"
9708 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9709 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9710 hardcode_direct="$acl_cv_hardcode_direct"
9711 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9712 # Check whether --enable-rpath was given.
9713if test "${enable_rpath+set}" = set; then
9714 enableval=$enable_rpath; :
9715else
9716 enable_rpath=yes
9717fi
9718
9719
9720
9721
9722
9723
9724
9725
9726 use_additional=yes
9727
9728 acl_save_prefix="$prefix"
9729 prefix="$acl_final_prefix"
9730 acl_save_exec_prefix="$exec_prefix"
9731 exec_prefix="$acl_final_exec_prefix"
9732
9733 eval additional_includedir=\"$includedir\"
9734 eval additional_libdir=\"$libdir\"
9735
9736 exec_prefix="$acl_save_exec_prefix"
9737 prefix="$acl_save_prefix"
9738
9739
9740# Check whether --with-libiconv-prefix was given.
9741if test "${with_libiconv_prefix+set}" = set; then
9742 withval=$with_libiconv_prefix;
9743 if test "X$withval" = "Xno"; then
9744 use_additional=no
9745 else
9746 if test "X$withval" = "X"; then
9747
9748 acl_save_prefix="$prefix"
9749 prefix="$acl_final_prefix"
9750 acl_save_exec_prefix="$exec_prefix"
9751 exec_prefix="$acl_final_exec_prefix"
9752
9753 eval additional_includedir=\"$includedir\"
9754 eval additional_libdir=\"$libdir\"
9755
9756 exec_prefix="$acl_save_exec_prefix"
9757 prefix="$acl_save_prefix"
9758
9759 else
9760 additional_includedir="$withval/include"
9761 additional_libdir="$withval/lib"
9762 fi
9763 fi
9764
9765fi
9766
9767 LIBICONV=
9768 LTLIBICONV=
9769 INCICONV=
9770 rpathdirs=
9771 ltrpathdirs=
9772 names_already_handled=
9773 names_next_round='iconv '
9774 while test -n "$names_next_round"; do
9775 names_this_round="$names_next_round"
9776 names_next_round=
9777 for name in $names_this_round; do
9778 already_handled=
9779 for n in $names_already_handled; do
9780 if test "$n" = "$name"; then
9781 already_handled=yes
9782 break
9783 fi
9784 done
9785 if test -z "$already_handled"; then
9786 names_already_handled="$names_already_handled $name"
9787 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9788 eval value=\"\$HAVE_LIB$uppername\"
9789 if test -n "$value"; then
9790 if test "$value" = yes; then
9791 eval value=\"\$LIB$uppername\"
9792 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9793 eval value=\"\$LTLIB$uppername\"
9794 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9795 else
9796 :
9797 fi
9798 else
9799 found_dir=
9800 found_la=
9801 found_so=
9802 found_a=
9803 if test $use_additional = yes; then
9804 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9805 found_dir="$additional_libdir"
9806 found_so="$additional_libdir/lib$name.$shlibext"
9807 if test -f "$additional_libdir/lib$name.la"; then
9808 found_la="$additional_libdir/lib$name.la"
9809 fi
9810 else
9811 if test -f "$additional_libdir/lib$name.$libext"; then
9812 found_dir="$additional_libdir"
9813 found_a="$additional_libdir/lib$name.$libext"
9814 if test -f "$additional_libdir/lib$name.la"; then
9815 found_la="$additional_libdir/lib$name.la"
9816 fi
9817 fi
9818 fi
9819 fi
9820 if test "X$found_dir" = "X"; then
9821 for x in $LDFLAGS $LTLIBICONV; do
9822
9823 acl_save_prefix="$prefix"
9824 prefix="$acl_final_prefix"
9825 acl_save_exec_prefix="$exec_prefix"
9826 exec_prefix="$acl_final_exec_prefix"
9827 eval x=\"$x\"
9828 exec_prefix="$acl_save_exec_prefix"
9829 prefix="$acl_save_prefix"
9830
9831 case "$x" in
9832 -L*)
9833 dir=`echo "X$x" | sed -e 's/^X-L//'`
9834 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9835 found_dir="$dir"
9836 found_so="$dir/lib$name.$shlibext"
9837 if test -f "$dir/lib$name.la"; then
9838 found_la="$dir/lib$name.la"
9839 fi
9840 else
9841 if test -f "$dir/lib$name.$libext"; then
9842 found_dir="$dir"
9843 found_a="$dir/lib$name.$libext"
9844 if test -f "$dir/lib$name.la"; then
9845 found_la="$dir/lib$name.la"
9846 fi
9847 fi
9848 fi
9849 ;;
9850 esac
9851 if test "X$found_dir" != "X"; then
9852 break
9853 fi
9854 done
9855 fi
9856 if test "X$found_dir" != "X"; then
9857 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9858 if test "X$found_so" != "X"; then
9859 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9860 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9861 else
9862 haveit=
9863 for x in $ltrpathdirs; do
9864 if test "X$x" = "X$found_dir"; then
9865 haveit=yes
9866 break
9867 fi
9868 done
9869 if test -z "$haveit"; then
9870 ltrpathdirs="$ltrpathdirs $found_dir"
9871 fi
9872 if test "$hardcode_direct" = yes; then
9873 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9874 else
9875 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9876 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9877 haveit=
9878 for x in $rpathdirs; do
9879 if test "X$x" = "X$found_dir"; then
9880 haveit=yes
9881 break
9882 fi
9883 done
9884 if test -z "$haveit"; then
9885 rpathdirs="$rpathdirs $found_dir"
9886 fi
9887 else
9888 haveit=
9889 for x in $LDFLAGS $LIBICONV; do
9890
9891 acl_save_prefix="$prefix"
9892 prefix="$acl_final_prefix"
9893 acl_save_exec_prefix="$exec_prefix"
9894 exec_prefix="$acl_final_exec_prefix"
9895 eval x=\"$x\"
9896 exec_prefix="$acl_save_exec_prefix"
9897 prefix="$acl_save_prefix"
9898
9899 if test "X$x" = "X-L$found_dir"; then
9900 haveit=yes
9901 break
9902 fi
9903 done
9904 if test -z "$haveit"; then
9905 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9906 fi
9907 if test "$hardcode_minus_L" != no; then
9908 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9909 else
9910 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9911 fi
9912 fi
9913 fi
9914 fi
9915 else
9916 if test "X$found_a" != "X"; then
9917 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9918 else
9919 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9920 fi
9921 fi
9922 additional_includedir=
9923 case "$found_dir" in
9924 */lib | */lib/)
9925 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9926 additional_includedir="$basedir/include"
9927 ;;
9928 esac
9929 if test "X$additional_includedir" != "X"; then
9930 if test "X$additional_includedir" != "X/usr/include"; then
9931 haveit=
9932 if test "X$additional_includedir" = "X/usr/local/include"; then
9933 if test -n "$GCC"; then
9934 case $host_os in
9935 linux*) haveit=yes;;
9936 esac
9937 fi
9938 fi
9939 if test -z "$haveit"; then
9940 for x in $CPPFLAGS $INCICONV; do
9941
9942 acl_save_prefix="$prefix"
9943 prefix="$acl_final_prefix"
9944 acl_save_exec_prefix="$exec_prefix"
9945 exec_prefix="$acl_final_exec_prefix"
9946 eval x=\"$x\"
9947 exec_prefix="$acl_save_exec_prefix"
9948 prefix="$acl_save_prefix"
9949
9950 if test "X$x" = "X-I$additional_includedir"; then
9951 haveit=yes
9952 break
9953 fi
9954 done
9955 if test -z "$haveit"; then
9956 if test -d "$additional_includedir"; then
9957 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9958 fi
9959 fi
9960 fi
9961 fi
9962 fi
9963 if test -n "$found_la"; then
9964 save_libdir="$libdir"
9965 case "$found_la" in
9966 */* | *\\*) . "$found_la" ;;
9967 *) . "./$found_la" ;;
9968 esac
9969 libdir="$save_libdir"
9970 for dep in $dependency_libs; do
9971 case "$dep" in
9972 -L*)
9973 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9974 if test "X$additional_libdir" != "X/usr/lib"; then
9975 haveit=
9976 if test "X$additional_libdir" = "X/usr/local/lib"; then
9977 if test -n "$GCC"; then
9978 case $host_os in
9979 linux*) haveit=yes;;
9980 esac
9981 fi
9982 fi
9983 if test -z "$haveit"; then
9984 haveit=
9985 for x in $LDFLAGS $LIBICONV; do
9986
9987 acl_save_prefix="$prefix"
9988 prefix="$acl_final_prefix"
9989 acl_save_exec_prefix="$exec_prefix"
9990 exec_prefix="$acl_final_exec_prefix"
9991 eval x=\"$x\"
9992 exec_prefix="$acl_save_exec_prefix"
9993 prefix="$acl_save_prefix"
9994
9995 if test "X$x" = "X-L$additional_libdir"; then
9996 haveit=yes
9997 break
9998 fi
9999 done
10000 if test -z "$haveit"; then
10001 if test -d "$additional_libdir"; then
10002 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10003 fi
10004 fi
10005 haveit=
10006 for x in $LDFLAGS $LTLIBICONV; do
10007
10008 acl_save_prefix="$prefix"
10009 prefix="$acl_final_prefix"
10010 acl_save_exec_prefix="$exec_prefix"
10011 exec_prefix="$acl_final_exec_prefix"
10012 eval x=\"$x\"
10013 exec_prefix="$acl_save_exec_prefix"
10014 prefix="$acl_save_prefix"
10015
10016 if test "X$x" = "X-L$additional_libdir"; then
10017 haveit=yes
10018 break
10019 fi
10020 done
10021 if test -z "$haveit"; then
10022 if test -d "$additional_libdir"; then
10023 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10024 fi
10025 fi
10026 fi
10027 fi
10028 ;;
10029 -R*)
10030 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10031 if test "$enable_rpath" != no; then
10032 haveit=
10033 for x in $rpathdirs; do
10034 if test "X$x" = "X$dir"; then
10035 haveit=yes
10036 break
10037 fi
10038 done
10039 if test -z "$haveit"; then
10040 rpathdirs="$rpathdirs $dir"
10041 fi
10042 haveit=
10043 for x in $ltrpathdirs; do
10044 if test "X$x" = "X$dir"; then
10045 haveit=yes
10046 break
10047 fi
10048 done
10049 if test -z "$haveit"; then
10050 ltrpathdirs="$ltrpathdirs $dir"
10051 fi
10052 fi
10053 ;;
10054 -l*)
10055 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10056 ;;
10057 *.la)
10058 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10059 ;;
10060 *)
10061 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10062 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10063 ;;
10064 esac
10065 done
10066 fi
10067 else
10068 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10069 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10070 fi
10071 fi
10072 fi
10073 done
10074 done
10075 if test "X$rpathdirs" != "X"; then
10076 if test -n "$hardcode_libdir_separator"; then
10077 alldirs=
10078 for found_dir in $rpathdirs; do
10079 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10080 done
10081 acl_save_libdir="$libdir"
10082 libdir="$alldirs"
10083 eval flag=\"$hardcode_libdir_flag_spec\"
10084 libdir="$acl_save_libdir"
10085 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10086 else
10087 for found_dir in $rpathdirs; do
10088 acl_save_libdir="$libdir"
10089 libdir="$found_dir"
10090 eval flag=\"$hardcode_libdir_flag_spec\"
10091 libdir="$acl_save_libdir"
10092 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10093 done
10094 fi
10095 fi
10096 if test "X$ltrpathdirs" != "X"; then
10097 for found_dir in $ltrpathdirs; do
10098 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10099 done
10100 fi
10101
10102
10103
10104
10105
10106
10107
10108
10109 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10110echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
10111if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10113else
10114 cat >conftest.$ac_ext <<_ACEOF
10115/* confdefs.h. */
10116_ACEOF
10117cat confdefs.h >>conftest.$ac_ext
10118cat >>conftest.$ac_ext <<_ACEOF
10119/* end confdefs.h. */
10120$ac_includes_default
10121typedef ptrdiff_t ac__type_new_;
10122int
10123main ()
10124{
10125if ((ac__type_new_ *) 0)
10126 return 0;
10127if (sizeof (ac__type_new_))
10128 return 0;
10129 ;
10130 return 0;
10131}
10132_ACEOF
10133rm -f conftest.$ac_objext
10134if { (ac_try="$ac_compile"
10135case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10138esac
10139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_compile") 2>conftest.er1
10141 ac_status=$?
10142 grep -v '^ *+' conftest.er1 >conftest.err
10143 rm -f conftest.er1
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } && {
10147 test -z "$ac_cxx_werror_flag" ||
10148 test ! -s conftest.err
10149 } && test -s conftest.$ac_objext; then
10150 ac_cv_type_ptrdiff_t=yes
10151else
10152 echo "$as_me: failed program was:" >&5
10153sed 's/^/| /' conftest.$ac_ext >&5
10154
10155 ac_cv_type_ptrdiff_t=no
10156fi
10157
10158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10159fi
10160{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10161echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
10162if test $ac_cv_type_ptrdiff_t = yes; then
10163 :
10164else
10165
10166cat >>confdefs.h <<\_ACEOF
10167#define ptrdiff_t long
10168_ACEOF
10169
10170
10171fi
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10184stdlib.h string.h unistd.h sys/param.h
10185do
10186as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10192fi
10193ac_res=`eval echo '${'$as_ac_Header'}'`
10194 { echo "$as_me:$LINENO: result: $ac_res" >&5
10195echo "${ECHO_T}$ac_res" >&6; }
10196else
10197 # Is the header compilable?
10198{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10199echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10200cat >conftest.$ac_ext <<_ACEOF
10201/* confdefs.h. */
10202_ACEOF
10203cat confdefs.h >>conftest.$ac_ext
10204cat >>conftest.$ac_ext <<_ACEOF
10205/* end confdefs.h. */
10206$ac_includes_default
10207#include <$ac_header>
10208_ACEOF
10209rm -f conftest.$ac_objext
10210if { (ac_try="$ac_compile"
10211case "(($ac_try" in
10212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213 *) ac_try_echo=$ac_try;;
10214esac
10215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10216 (eval "$ac_compile") 2>conftest.er1
10217 ac_status=$?
10218 grep -v '^ *+' conftest.er1 >conftest.err
10219 rm -f conftest.er1
10220 cat conftest.err >&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } && {
10223 test -z "$ac_cxx_werror_flag" ||
10224 test ! -s conftest.err
10225 } && test -s conftest.$ac_objext; then
10226 ac_header_compiler=yes
10227else
10228 echo "$as_me: failed program was:" >&5
10229sed 's/^/| /' conftest.$ac_ext >&5
10230
10231 ac_header_compiler=no
10232fi
10233
10234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10235{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10236echo "${ECHO_T}$ac_header_compiler" >&6; }
10237
10238# Is the header present?
10239{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10240echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10241cat >conftest.$ac_ext <<_ACEOF
10242/* confdefs.h. */
10243_ACEOF
10244cat confdefs.h >>conftest.$ac_ext
10245cat >>conftest.$ac_ext <<_ACEOF
10246/* end confdefs.h. */
10247#include <$ac_header>
10248_ACEOF
10249if { (ac_try="$ac_cpp conftest.$ac_ext"
10250case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10253esac
10254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10256 ac_status=$?
10257 grep -v '^ *+' conftest.er1 >conftest.err
10258 rm -f conftest.er1
10259 cat conftest.err >&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } >/dev/null && {
10262 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10263 test ! -s conftest.err
10264 }; then
10265 ac_header_preproc=yes
10266else
10267 echo "$as_me: failed program was:" >&5
10268sed 's/^/| /' conftest.$ac_ext >&5
10269
10270 ac_header_preproc=no
10271fi
10272
10273rm -f conftest.err conftest.$ac_ext
10274{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10275echo "${ECHO_T}$ac_header_preproc" >&6; }
10276
10277# So? What about this header?
10278case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10279 yes:no: )
10280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10281echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10283echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10284 ac_header_preproc=yes
10285 ;;
10286 no:yes:* )
10287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10290echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10292echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10294echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10296echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10298echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10299
10300 ;;
10301esac
10302{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306else
10307 eval "$as_ac_Header=\$ac_header_preproc"
10308fi
10309ac_res=`eval echo '${'$as_ac_Header'}'`
10310 { echo "$as_me:$LINENO: result: $ac_res" >&5
10311echo "${ECHO_T}$ac_res" >&6; }
10312
10313fi
10314if test `eval echo '${'$as_ac_Header'}'` = yes; then
10315 cat >>confdefs.h <<_ACEOF
10316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10317_ACEOF
10318
10319fi
10320
10321done
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10347mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10348strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10349__fsetlocking
10350do
10351as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10352{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10353echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10354if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10355 echo $ECHO_N "(cached) $ECHO_C" >&6
10356else
10357 cat >conftest.$ac_ext <<_ACEOF
10358/* confdefs.h. */
10359_ACEOF
10360cat confdefs.h >>conftest.$ac_ext
10361cat >>conftest.$ac_ext <<_ACEOF
10362/* end confdefs.h. */
10363/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10365#define $ac_func innocuous_$ac_func
10366
10367/* System header to define __stub macros and hopefully few prototypes,
10368 which can conflict with char $ac_func (); below.
10369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10370 <limits.h> exists even on freestanding compilers. */
10371
10372#ifdef __STDC__
10373# include <limits.h>
10374#else
10375# include <assert.h>
10376#endif
10377
10378#undef $ac_func
10379
10380/* Override any GCC internal prototype to avoid an error.
10381 Use char because int might match the return type of a GCC
10382 builtin and then its argument prototype would still apply. */
10383#ifdef __cplusplus
10384extern "C"
10385#endif
10386char $ac_func ();
10387/* The GNU C library defines this for functions which it implements
10388 to always fail with ENOSYS. Some functions are actually named
10389 something starting with __ and the normal name is an alias. */
10390#if defined __stub_$ac_func || defined __stub___$ac_func
10391choke me
10392#endif
10393
10394int
10395main ()
10396{
10397return $ac_func ();
10398 ;
10399 return 0;
10400}
10401_ACEOF
10402rm -f conftest.$ac_objext conftest$ac_exeext
10403if { (ac_try="$ac_link"
10404case "(($ac_try" in
10405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406 *) ac_try_echo=$ac_try;;
10407esac
10408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409 (eval "$ac_link") 2>conftest.er1
10410 ac_status=$?
10411 grep -v '^ *+' conftest.er1 >conftest.err
10412 rm -f conftest.er1
10413 cat conftest.err >&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } && {
10416 test -z "$ac_cxx_werror_flag" ||
10417 test ! -s conftest.err
10418 } && test -s conftest$ac_exeext &&
10419 $as_test_x conftest$ac_exeext; then
10420 eval "$as_ac_var=yes"
10421else
10422 echo "$as_me: failed program was:" >&5
10423sed 's/^/| /' conftest.$ac_ext >&5
10424
10425 eval "$as_ac_var=no"
10426fi
10427
10428rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10429 conftest$ac_exeext conftest.$ac_ext
10430fi
10431ac_res=`eval echo '${'$as_ac_var'}'`
10432 { echo "$as_me:$LINENO: result: $ac_res" >&5
10433echo "${ECHO_T}$ac_res" >&6; }
10434if test `eval echo '${'$as_ac_var'}'` = yes; then
10435 cat >>confdefs.h <<_ACEOF
10436#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10437_ACEOF
10438
10439fi
10440done
10441
10442
10443
10444 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10445echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
10446if test "${ac_cv_have_decl__snprintf+set}" = set; then
10447 echo $ECHO_N "(cached) $ECHO_C" >&6
10448else
10449 cat >conftest.$ac_ext <<_ACEOF
10450/* confdefs.h. */
10451_ACEOF
10452cat confdefs.h >>conftest.$ac_ext
10453cat >>conftest.$ac_ext <<_ACEOF
10454/* end confdefs.h. */
10455#include <stdio.h>
10456int
10457main ()
10458{
10459
10460#ifndef _snprintf
10461 char *p = (char *) _snprintf;
10462#endif
10463
10464 ;
10465 return 0;
10466}
10467_ACEOF
10468rm -f conftest.$ac_objext
10469if { (ac_try="$ac_compile"
10470case "(($ac_try" in
10471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472 *) ac_try_echo=$ac_try;;
10473esac
10474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475 (eval "$ac_compile") 2>conftest.er1
10476 ac_status=$?
10477 grep -v '^ *+' conftest.er1 >conftest.err
10478 rm -f conftest.er1
10479 cat conftest.err >&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } && {
10482 test -z "$ac_cxx_werror_flag" ||
10483 test ! -s conftest.err
10484 } && test -s conftest.$ac_objext; then
10485 ac_cv_have_decl__snprintf=yes
10486else
10487 echo "$as_me: failed program was:" >&5
10488sed 's/^/| /' conftest.$ac_ext >&5
10489
10490 ac_cv_have_decl__snprintf=no
10491fi
10492
10493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10494fi
10495{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
10496echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
10497 if test $ac_cv_have_decl__snprintf = yes; then
10498 gt_value=1
10499 else
10500 gt_value=0
10501 fi
10502
10503cat >>confdefs.h <<_ACEOF
10504#define HAVE_DECL__SNPRINTF $gt_value
10505_ACEOF
10506
10507
10508
10509 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
10510echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
10511if test "${ac_cv_have_decl__snwprintf+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10513else
10514 cat >conftest.$ac_ext <<_ACEOF
10515/* confdefs.h. */
10516_ACEOF
10517cat confdefs.h >>conftest.$ac_ext
10518cat >>conftest.$ac_ext <<_ACEOF
10519/* end confdefs.h. */
10520#include <stdio.h>
10521int
10522main ()
10523{
10524
10525#ifndef _snwprintf
10526 char *p = (char *) _snwprintf;
10527#endif
10528
10529 ;
10530 return 0;
10531}
10532_ACEOF
10533rm -f conftest.$ac_objext
10534if { (ac_try="$ac_compile"
10535case "(($ac_try" in
10536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537 *) ac_try_echo=$ac_try;;
10538esac
10539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540 (eval "$ac_compile") 2>conftest.er1
10541 ac_status=$?
10542 grep -v '^ *+' conftest.er1 >conftest.err
10543 rm -f conftest.er1
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } && {
10547 test -z "$ac_cxx_werror_flag" ||
10548 test ! -s conftest.err
10549 } && test -s conftest.$ac_objext; then
10550 ac_cv_have_decl__snwprintf=yes
10551else
10552 echo "$as_me: failed program was:" >&5
10553sed 's/^/| /' conftest.$ac_ext >&5
10554
10555 ac_cv_have_decl__snwprintf=no
10556fi
10557
10558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10559fi
10560{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
10561echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
10562 if test $ac_cv_have_decl__snwprintf = yes; then
10563 gt_value=1
10564 else
10565 gt_value=0
10566 fi
10567
10568cat >>confdefs.h <<_ACEOF
10569#define HAVE_DECL__SNWPRINTF $gt_value
10570_ACEOF
10571
10572
10573
10574
10575 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
10576echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
10577if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10579else
10580 cat >conftest.$ac_ext <<_ACEOF
10581/* confdefs.h. */
10582_ACEOF
10583cat confdefs.h >>conftest.$ac_ext
10584cat >>conftest.$ac_ext <<_ACEOF
10585/* end confdefs.h. */
10586#include <stdio.h>
10587int
10588main ()
10589{
10590
10591#ifndef feof_unlocked
10592 char *p = (char *) feof_unlocked;
10593#endif
10594
10595 ;
10596 return 0;
10597}
10598_ACEOF
10599rm -f conftest.$ac_objext
10600if { (ac_try="$ac_compile"
10601case "(($ac_try" in
10602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603 *) ac_try_echo=$ac_try;;
10604esac
10605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606 (eval "$ac_compile") 2>conftest.er1
10607 ac_status=$?
10608 grep -v '^ *+' conftest.er1 >conftest.err
10609 rm -f conftest.er1
10610 cat conftest.err >&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } && {
10613 test -z "$ac_cxx_werror_flag" ||
10614 test ! -s conftest.err
10615 } && test -s conftest.$ac_objext; then
10616 ac_cv_have_decl_feof_unlocked=yes
10617else
10618 echo "$as_me: failed program was:" >&5
10619sed 's/^/| /' conftest.$ac_ext >&5
10620
10621 ac_cv_have_decl_feof_unlocked=no
10622fi
10623
10624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10625fi
10626{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
10627echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
10628 if test $ac_cv_have_decl_feof_unlocked = yes; then
10629 gt_value=1
10630 else
10631 gt_value=0
10632 fi
10633
10634cat >>confdefs.h <<_ACEOF
10635#define HAVE_DECL_FEOF_UNLOCKED $gt_value
10636_ACEOF
10637
10638
10639
10640 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
10641echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
10642if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10644else
10645 cat >conftest.$ac_ext <<_ACEOF
10646/* confdefs.h. */
10647_ACEOF
10648cat confdefs.h >>conftest.$ac_ext
10649cat >>conftest.$ac_ext <<_ACEOF
10650/* end confdefs.h. */
10651#include <stdio.h>
10652int
10653main ()
10654{
10655
10656#ifndef fgets_unlocked
10657 char *p = (char *) fgets_unlocked;
10658#endif
10659
10660 ;
10661 return 0;
10662}
10663_ACEOF
10664rm -f conftest.$ac_objext
10665if { (ac_try="$ac_compile"
10666case "(($ac_try" in
10667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10668 *) ac_try_echo=$ac_try;;
10669esac
10670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10671 (eval "$ac_compile") 2>conftest.er1
10672 ac_status=$?
10673 grep -v '^ *+' conftest.er1 >conftest.err
10674 rm -f conftest.er1
10675 cat conftest.err >&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } && {
10678 test -z "$ac_cxx_werror_flag" ||
10679 test ! -s conftest.err
10680 } && test -s conftest.$ac_objext; then
10681 ac_cv_have_decl_fgets_unlocked=yes
10682else
10683 echo "$as_me: failed program was:" >&5
10684sed 's/^/| /' conftest.$ac_ext >&5
10685
10686 ac_cv_have_decl_fgets_unlocked=no
10687fi
10688
10689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10690fi
10691{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10692echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
10693 if test $ac_cv_have_decl_fgets_unlocked = yes; then
10694 gt_value=1
10695 else
10696 gt_value=0
10697 fi
10698
10699cat >>confdefs.h <<_ACEOF
10700#define HAVE_DECL_FGETS_UNLOCKED $gt_value
10701_ACEOF
10702
10703
10704
10705 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10706echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
10707if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10708 echo $ECHO_N "(cached) $ECHO_C" >&6
10709else
10710 cat >conftest.$ac_ext <<_ACEOF
10711/* confdefs.h. */
10712_ACEOF
10713cat confdefs.h >>conftest.$ac_ext
10714cat >>conftest.$ac_ext <<_ACEOF
10715/* end confdefs.h. */
10716#include <stdio.h>
10717int
10718main ()
10719{
10720
10721#ifndef getc_unlocked
10722 char *p = (char *) getc_unlocked;
10723#endif
10724
10725 ;
10726 return 0;
10727}
10728_ACEOF
10729rm -f conftest.$ac_objext
10730if { (ac_try="$ac_compile"
10731case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10734esac
10735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_compile") 2>conftest.er1
10737 ac_status=$?
10738 grep -v '^ *+' conftest.er1 >conftest.err
10739 rm -f conftest.er1
10740 cat conftest.err >&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } && {
10743 test -z "$ac_cxx_werror_flag" ||
10744 test ! -s conftest.err
10745 } && test -s conftest.$ac_objext; then
10746 ac_cv_have_decl_getc_unlocked=yes
10747else
10748 echo "$as_me: failed program was:" >&5
10749sed 's/^/| /' conftest.$ac_ext >&5
10750
10751 ac_cv_have_decl_getc_unlocked=no
10752fi
10753
10754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10755fi
10756{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10757echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
10758 if test $ac_cv_have_decl_getc_unlocked = yes; then
10759 gt_value=1
10760 else
10761 gt_value=0
10762 fi
10763
10764cat >>confdefs.h <<_ACEOF
10765#define HAVE_DECL_GETC_UNLOCKED $gt_value
10766_ACEOF
10767
10768
10769
10770 case $gt_cv_func_printf_posix in
10771 *yes) HAVE_POSIX_PRINTF=1 ;;
10772 *) HAVE_POSIX_PRINTF=0 ;;
10773 esac
10774
10775 if test "$ac_cv_func_asprintf" = yes; then
10776 HAVE_ASPRINTF=1
10777 else
10778 HAVE_ASPRINTF=0
10779 fi
10780
10781 if test "$ac_cv_func_snprintf" = yes; then
10782 HAVE_SNPRINTF=1
10783 else
10784 HAVE_SNPRINTF=0
10785 fi
10786
10787 if test "$ac_cv_func_wprintf" = yes; then
10788 HAVE_WPRINTF=1
10789 else
10790 HAVE_WPRINTF=0
10791 fi
10792
10793
10794
10795
10796
10797
10798
10799 am_save_CPPFLAGS="$CPPFLAGS"
10800
10801 for element in $INCICONV; do
10802 haveit=
10803 for x in $CPPFLAGS; do
10804
10805 acl_save_prefix="$prefix"
10806 prefix="$acl_final_prefix"
10807 acl_save_exec_prefix="$exec_prefix"
10808 exec_prefix="$acl_final_exec_prefix"
10809 eval x=\"$x\"
10810 exec_prefix="$acl_save_exec_prefix"
10811 prefix="$acl_save_prefix"
10812
10813 if test "X$x" = "X$element"; then
10814 haveit=yes
10815 break
10816 fi
10817 done
10818 if test -z "$haveit"; then
10819 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10820 fi
10821 done
10822
10823
10824 { echo "$as_me:$LINENO: checking for iconv" >&5
10825echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
10826if test "${am_cv_func_iconv+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10828else
10829
10830 am_cv_func_iconv="no, consider installing GNU libiconv"
10831 am_cv_lib_iconv=no
10832 cat >conftest.$ac_ext <<_ACEOF
10833/* confdefs.h. */
10834_ACEOF
10835cat confdefs.h >>conftest.$ac_ext
10836cat >>conftest.$ac_ext <<_ACEOF
10837/* end confdefs.h. */
10838#include <stdlib.h>
10839#include <iconv.h>
10840int
10841main ()
10842{
10843iconv_t cd = iconv_open("","");
10844 iconv(cd,NULL,NULL,NULL,NULL);
10845 iconv_close(cd);
10846 ;
10847 return 0;
10848}
10849_ACEOF
10850rm -f conftest.$ac_objext conftest$ac_exeext
10851if { (ac_try="$ac_link"
10852case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10855esac
10856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_link") 2>conftest.er1
10858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } && {
10864 test -z "$ac_cxx_werror_flag" ||
10865 test ! -s conftest.err
10866 } && test -s conftest$ac_exeext &&
10867 $as_test_x conftest$ac_exeext; then
10868 am_cv_func_iconv=yes
10869else
10870 echo "$as_me: failed program was:" >&5
10871sed 's/^/| /' conftest.$ac_ext >&5
10872
10873
10874fi
10875
10876rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10877 conftest$ac_exeext conftest.$ac_ext
10878 if test "$am_cv_func_iconv" != yes; then
10879 am_save_LIBS="$LIBS"
10880 LIBS="$LIBS $LIBICONV"
10881 cat >conftest.$ac_ext <<_ACEOF
10882/* confdefs.h. */
10883_ACEOF
10884cat confdefs.h >>conftest.$ac_ext
10885cat >>conftest.$ac_ext <<_ACEOF
10886/* end confdefs.h. */
10887#include <stdlib.h>
10888#include <iconv.h>
10889int
10890main ()
10891{
10892iconv_t cd = iconv_open("","");
10893 iconv(cd,NULL,NULL,NULL,NULL);
10894 iconv_close(cd);
10895 ;
10896 return 0;
10897}
10898_ACEOF
10899rm -f conftest.$ac_objext conftest$ac_exeext
10900if { (ac_try="$ac_link"
10901case "(($ac_try" in
10902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903 *) ac_try_echo=$ac_try;;
10904esac
10905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906 (eval "$ac_link") 2>conftest.er1
10907 ac_status=$?
10908 grep -v '^ *+' conftest.er1 >conftest.err
10909 rm -f conftest.er1
10910 cat conftest.err >&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } && {
10913 test -z "$ac_cxx_werror_flag" ||
10914 test ! -s conftest.err
10915 } && test -s conftest$ac_exeext &&
10916 $as_test_x conftest$ac_exeext; then
10917 am_cv_lib_iconv=yes
10918 am_cv_func_iconv=yes
10919else
10920 echo "$as_me: failed program was:" >&5
10921sed 's/^/| /' conftest.$ac_ext >&5
10922
10923
10924fi
10925
10926rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10927 conftest$ac_exeext conftest.$ac_ext
10928 LIBS="$am_save_LIBS"
10929 fi
10930
10931fi
10932{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10933echo "${ECHO_T}$am_cv_func_iconv" >&6; }
10934 if test "$am_cv_func_iconv" = yes; then
10935
10936cat >>confdefs.h <<\_ACEOF
10937#define HAVE_ICONV 1
10938_ACEOF
10939
10940 fi
10941 if test "$am_cv_lib_iconv" = yes; then
10942 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10943echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
10944 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
10945echo "${ECHO_T}$LIBICONV" >&6; }
10946 else
10947 CPPFLAGS="$am_save_CPPFLAGS"
10948 LIBICONV=
10949 LTLIBICONV=
10950 fi
10951
10952
10953
10954 if test "$am_cv_func_iconv" = yes; then
10955 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
10956echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
10957 if test "${am_cv_proto_iconv+set}" = set; then
10958 echo $ECHO_N "(cached) $ECHO_C" >&6
10959else
10960
10961 cat >conftest.$ac_ext <<_ACEOF
10962/* confdefs.h. */
10963_ACEOF
10964cat confdefs.h >>conftest.$ac_ext
10965cat >>conftest.$ac_ext <<_ACEOF
10966/* end confdefs.h. */
10967
10968#include <stdlib.h>
10969#include <iconv.h>
10970extern
10971#ifdef __cplusplus
10972"C"
10973#endif
10974#if defined(__STDC__) || defined(__cplusplus)
10975size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10976#else
10977size_t iconv();
10978#endif
10979
10980int
10981main ()
10982{
10983
10984 ;
10985 return 0;
10986}
10987_ACEOF
10988rm -f conftest.$ac_objext
10989if { (ac_try="$ac_compile"
10990case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10993esac
10994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995 (eval "$ac_compile") 2>conftest.er1
10996 ac_status=$?
10997 grep -v '^ *+' conftest.er1 >conftest.err
10998 rm -f conftest.er1
10999 cat conftest.err >&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } && {
11002 test -z "$ac_cxx_werror_flag" ||
11003 test ! -s conftest.err
11004 } && test -s conftest.$ac_objext; then
11005 am_cv_proto_iconv_arg1=""
11006else
11007 echo "$as_me: failed program was:" >&5
11008sed 's/^/| /' conftest.$ac_ext >&5
11009
11010 am_cv_proto_iconv_arg1="const"
11011fi
11012
11013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11014 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);"
11015fi
11016
11017 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11018 { echo "$as_me:$LINENO: result: ${ac_t:-
11019 }$am_cv_proto_iconv" >&5
11020echo "${ECHO_T}${ac_t:-
11021 }$am_cv_proto_iconv" >&6; }
11022
11023cat >>confdefs.h <<_ACEOF
11024#define ICONV_CONST $am_cv_proto_iconv_arg1
11025_ACEOF
11026
11027 fi
11028
11029
11030 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11031echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
11032if test "${am_cv_langinfo_codeset+set}" = set; then
11033 echo $ECHO_N "(cached) $ECHO_C" >&6
11034else
11035 cat >conftest.$ac_ext <<_ACEOF
11036/* confdefs.h. */
11037_ACEOF
11038cat confdefs.h >>conftest.$ac_ext
11039cat >>conftest.$ac_ext <<_ACEOF
11040/* end confdefs.h. */
11041#include <langinfo.h>
11042int
11043main ()
11044{
11045char* cs = nl_langinfo(CODESET);
11046 ;
11047 return 0;
11048}
11049_ACEOF
11050rm -f conftest.$ac_objext conftest$ac_exeext
11051if { (ac_try="$ac_link"
11052case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11055esac
11056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_link") 2>conftest.er1
11058 ac_status=$?
11059 grep -v '^ *+' conftest.er1 >conftest.err
11060 rm -f conftest.er1
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } && {
11064 test -z "$ac_cxx_werror_flag" ||
11065 test ! -s conftest.err
11066 } && test -s conftest$ac_exeext &&
11067 $as_test_x conftest$ac_exeext; then
11068 am_cv_langinfo_codeset=yes
11069else
11070 echo "$as_me: failed program was:" >&5
11071sed 's/^/| /' conftest.$ac_ext >&5
11072
11073 am_cv_langinfo_codeset=no
11074fi
11075
11076rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11077 conftest$ac_exeext conftest.$ac_ext
11078
11079fi
11080{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11081echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
11082 if test $am_cv_langinfo_codeset = yes; then
11083
11084cat >>confdefs.h <<\_ACEOF
11085#define HAVE_LANGINFO_CODESET 1
11086_ACEOF
11087
11088 fi
11089
11090 if test $ac_cv_header_locale_h = yes; then
11091
11092 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11093echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
11094if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11095 echo $ECHO_N "(cached) $ECHO_C" >&6
11096else
11097 cat >conftest.$ac_ext <<_ACEOF
11098/* confdefs.h. */
11099_ACEOF
11100cat confdefs.h >>conftest.$ac_ext
11101cat >>conftest.$ac_ext <<_ACEOF
11102/* end confdefs.h. */
11103#include <locale.h>
11104int
11105main ()
11106{
11107return LC_MESSAGES
11108 ;
11109 return 0;
11110}
11111_ACEOF
11112rm -f conftest.$ac_objext conftest$ac_exeext
11113if { (ac_try="$ac_link"
11114case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11117esac
11118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_link") 2>conftest.er1
11120 ac_status=$?
11121 grep -v '^ *+' conftest.er1 >conftest.err
11122 rm -f conftest.er1
11123 cat conftest.err >&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); } && {
11126 test -z "$ac_cxx_werror_flag" ||
11127 test ! -s conftest.err
11128 } && test -s conftest$ac_exeext &&
11129 $as_test_x conftest$ac_exeext; then
11130 am_cv_val_LC_MESSAGES=yes
11131else
11132 echo "$as_me: failed program was:" >&5
11133sed 's/^/| /' conftest.$ac_ext >&5
11134
11135 am_cv_val_LC_MESSAGES=no
11136fi
11137
11138rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11139 conftest$ac_exeext conftest.$ac_ext
11140fi
11141{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11142echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
11143 if test $am_cv_val_LC_MESSAGES = yes; then
11144
11145cat >>confdefs.h <<\_ACEOF
11146#define HAVE_LC_MESSAGES 1
11147_ACEOF
11148
11149 fi
11150
11151 fi
11152
11153 for ac_prog in bison
11154do
11155 # Extract the first word of "$ac_prog", so it can be a program name with args.
11156set dummy $ac_prog; ac_word=$2
11157{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11159if test "${ac_cv_prog_INTLBISON+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11161else
11162 if test -n "$INTLBISON"; then
11163 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11164else
11165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11166for as_dir in $PATH
11167do
11168 IFS=$as_save_IFS
11169 test -z "$as_dir" && as_dir=.
11170 for ac_exec_ext in '' $ac_executable_extensions; do
11171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11172 ac_cv_prog_INTLBISON="$ac_prog"
11173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11174 break 2
11175 fi
11176done
11177done
11178IFS=$as_save_IFS
11179
11180fi
11181fi
11182INTLBISON=$ac_cv_prog_INTLBISON
11183if test -n "$INTLBISON"; then
11184 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
11185echo "${ECHO_T}$INTLBISON" >&6; }
11186else
11187 { echo "$as_me:$LINENO: result: no" >&5
11188echo "${ECHO_T}no" >&6; }
11189fi
11190
11191
11192 test -n "$INTLBISON" && break
11193done
11194
11195 if test -z "$INTLBISON"; then
11196 ac_verc_fail=yes
11197 else
11198 { echo "$as_me:$LINENO: checking version of bison" >&5
11199echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
11200 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11201 case $ac_prog_version in
11202 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11203 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11204 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11205 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11206 esac
11207 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11208echo "${ECHO_T}$ac_prog_version" >&6; }
11209 fi
11210 if test $ac_verc_fail = yes; then
11211 INTLBISON=:
11212 fi
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11230echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
11231 # Check whether --enable-nls was given.
11232if test "${enable_nls+set}" = set; then
11233 enableval=$enable_nls; USE_NLS=$enableval
11234else
11235 USE_NLS=yes
11236fi
11237
11238 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
11239echo "${ECHO_T}$USE_NLS" >&6; }
11240
11241
11242
11243
11244 BUILD_INCLUDED_LIBINTL=no
11245 USE_INCLUDED_LIBINTL=no
11246
11247 LIBINTL=
11248 LTLIBINTL=
11249 POSUB=
11250
11251 if test "$USE_NLS" = "yes"; then
11252 gt_use_preinstalled_gnugettext=no
11253
11254 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11255echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
11256
11257# Check whether --with-included-gettext was given.
11258if test "${with_included_gettext+set}" = set; then
11259 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
11260else
11261 nls_cv_force_use_gnu_gettext=no
11262fi
11263
11264 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11265echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
11266
11267 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11268 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11269
11270
11271
11272
11273
11274
11275 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11276echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
11277if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11279else
11280 cat >conftest.$ac_ext <<_ACEOF
11281/* confdefs.h. */
11282_ACEOF
11283cat confdefs.h >>conftest.$ac_ext
11284cat >>conftest.$ac_ext <<_ACEOF
11285/* end confdefs.h. */
11286#include <libintl.h>
11287extern int _nl_msg_cat_cntr;
11288extern int *_nl_domain_bindings;
11289int
11290main ()
11291{
11292bindtextdomain ("", "");
11293return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
11294 ;
11295 return 0;
11296}
11297_ACEOF
11298rm -f conftest.$ac_objext conftest$ac_exeext
11299if { (ac_try="$ac_link"
11300case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11303esac
11304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_link") 2>conftest.er1
11306 ac_status=$?
11307 grep -v '^ *+' conftest.er1 >conftest.err
11308 rm -f conftest.er1
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } && {
11312 test -z "$ac_cxx_werror_flag" ||
11313 test ! -s conftest.err
11314 } && test -s conftest$ac_exeext &&
11315 $as_test_x conftest$ac_exeext; then
11316 gt_cv_func_gnugettext1_libc=yes
11317else
11318 echo "$as_me: failed program was:" >&5
11319sed 's/^/| /' conftest.$ac_ext >&5
11320
11321 gt_cv_func_gnugettext1_libc=no
11322fi
11323
11324rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11325 conftest$ac_exeext conftest.$ac_ext
11326fi
11327{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
11328echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
11329
11330 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
11331
11332
11333
11334 use_additional=yes
11335
11336 acl_save_prefix="$prefix"
11337 prefix="$acl_final_prefix"
11338 acl_save_exec_prefix="$exec_prefix"
11339 exec_prefix="$acl_final_exec_prefix"
11340
11341 eval additional_includedir=\"$includedir\"
11342 eval additional_libdir=\"$libdir\"
11343
11344 exec_prefix="$acl_save_exec_prefix"
11345 prefix="$acl_save_prefix"
11346
11347
11348# Check whether --with-libintl-prefix was given.
11349if test "${with_libintl_prefix+set}" = set; then
11350 withval=$with_libintl_prefix;
11351 if test "X$withval" = "Xno"; then
11352 use_additional=no
11353 else
11354 if test "X$withval" = "X"; then
11355
11356 acl_save_prefix="$prefix"
11357 prefix="$acl_final_prefix"
11358 acl_save_exec_prefix="$exec_prefix"
11359 exec_prefix="$acl_final_exec_prefix"
11360
11361 eval additional_includedir=\"$includedir\"
11362 eval additional_libdir=\"$libdir\"
11363
11364 exec_prefix="$acl_save_exec_prefix"
11365 prefix="$acl_save_prefix"
11366
11367 else
11368 additional_includedir="$withval/include"
11369 additional_libdir="$withval/lib"
11370 fi
11371 fi
11372
11373fi
11374
11375 LIBINTL=
11376 LTLIBINTL=
11377 INCINTL=
11378 rpathdirs=
11379 ltrpathdirs=
11380 names_already_handled=
11381 names_next_round='intl '
11382 while test -n "$names_next_round"; do
11383 names_this_round="$names_next_round"
11384 names_next_round=
11385 for name in $names_this_round; do
11386 already_handled=
11387 for n in $names_already_handled; do
11388 if test "$n" = "$name"; then
11389 already_handled=yes
11390 break
11391 fi
11392 done
11393 if test -z "$already_handled"; then
11394 names_already_handled="$names_already_handled $name"
11395 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11396 eval value=\"\$HAVE_LIB$uppername\"
11397 if test -n "$value"; then
11398 if test "$value" = yes; then
11399 eval value=\"\$LIB$uppername\"
11400 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11401 eval value=\"\$LTLIB$uppername\"
11402 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11403 else
11404 :
11405 fi
11406 else
11407 found_dir=
11408 found_la=
11409 found_so=
11410 found_a=
11411 if test $use_additional = yes; then
11412 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11413 found_dir="$additional_libdir"
11414 found_so="$additional_libdir/lib$name.$shlibext"
11415 if test -f "$additional_libdir/lib$name.la"; then
11416 found_la="$additional_libdir/lib$name.la"
11417 fi
11418 else
11419 if test -f "$additional_libdir/lib$name.$libext"; then
11420 found_dir="$additional_libdir"
11421 found_a="$additional_libdir/lib$name.$libext"
11422 if test -f "$additional_libdir/lib$name.la"; then
11423 found_la="$additional_libdir/lib$name.la"
11424 fi
11425 fi
11426 fi
11427 fi
11428 if test "X$found_dir" = "X"; then
11429 for x in $LDFLAGS $LTLIBINTL; do
11430
11431 acl_save_prefix="$prefix"
11432 prefix="$acl_final_prefix"
11433 acl_save_exec_prefix="$exec_prefix"
11434 exec_prefix="$acl_final_exec_prefix"
11435 eval x=\"$x\"
11436 exec_prefix="$acl_save_exec_prefix"
11437 prefix="$acl_save_prefix"
11438
11439 case "$x" in
11440 -L*)
11441 dir=`echo "X$x" | sed -e 's/^X-L//'`
11442 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11443 found_dir="$dir"
11444 found_so="$dir/lib$name.$shlibext"
11445 if test -f "$dir/lib$name.la"; then
11446 found_la="$dir/lib$name.la"
11447 fi
11448 else
11449 if test -f "$dir/lib$name.$libext"; then
11450 found_dir="$dir"
11451 found_a="$dir/lib$name.$libext"
11452 if test -f "$dir/lib$name.la"; then
11453 found_la="$dir/lib$name.la"
11454 fi
11455 fi
11456 fi
11457 ;;
11458 esac
11459 if test "X$found_dir" != "X"; then
11460 break
11461 fi
11462 done
11463 fi
11464 if test "X$found_dir" != "X"; then
11465 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11466 if test "X$found_so" != "X"; then
11467 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11468 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11469 else
11470 haveit=
11471 for x in $ltrpathdirs; do
11472 if test "X$x" = "X$found_dir"; then
11473 haveit=yes
11474 break
11475 fi
11476 done
11477 if test -z "$haveit"; then
11478 ltrpathdirs="$ltrpathdirs $found_dir"
11479 fi
11480 if test "$hardcode_direct" = yes; then
11481 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11482 else
11483 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11484 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11485 haveit=
11486 for x in $rpathdirs; do
11487 if test "X$x" = "X$found_dir"; then
11488 haveit=yes
11489 break
11490 fi
11491 done
11492 if test -z "$haveit"; then
11493 rpathdirs="$rpathdirs $found_dir"
11494 fi
11495 else
11496 haveit=
11497 for x in $LDFLAGS $LIBINTL; do
11498
11499 acl_save_prefix="$prefix"
11500 prefix="$acl_final_prefix"
11501 acl_save_exec_prefix="$exec_prefix"
11502 exec_prefix="$acl_final_exec_prefix"
11503 eval x=\"$x\"
11504 exec_prefix="$acl_save_exec_prefix"
11505 prefix="$acl_save_prefix"
11506
11507 if test "X$x" = "X-L$found_dir"; then
11508 haveit=yes
11509 break
11510 fi
11511 done
11512 if test -z "$haveit"; then
11513 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11514 fi
11515 if test "$hardcode_minus_L" != no; then
11516 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11517 else
11518 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11519 fi
11520 fi
11521 fi
11522 fi
11523 else
11524 if test "X$found_a" != "X"; then
11525 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11526 else
11527 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11528 fi
11529 fi
11530 additional_includedir=
11531 case "$found_dir" in
11532 */lib | */lib/)
11533 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11534 additional_includedir="$basedir/include"
11535 ;;
11536 esac
11537 if test "X$additional_includedir" != "X"; then
11538 if test "X$additional_includedir" != "X/usr/include"; then
11539 haveit=
11540 if test "X$additional_includedir" = "X/usr/local/include"; then
11541 if test -n "$GCC"; then
11542 case $host_os in
11543 linux*) haveit=yes;;
11544 esac
11545 fi
11546 fi
11547 if test -z "$haveit"; then
11548 for x in $CPPFLAGS $INCINTL; do
11549
11550 acl_save_prefix="$prefix"
11551 prefix="$acl_final_prefix"
11552 acl_save_exec_prefix="$exec_prefix"
11553 exec_prefix="$acl_final_exec_prefix"
11554 eval x=\"$x\"
11555 exec_prefix="$acl_save_exec_prefix"
11556 prefix="$acl_save_prefix"
11557
11558 if test "X$x" = "X-I$additional_includedir"; then
11559 haveit=yes
11560 break
11561 fi
11562 done
11563 if test -z "$haveit"; then
11564 if test -d "$additional_includedir"; then
11565 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11566 fi
11567 fi
11568 fi
11569 fi
11570 fi
11571 if test -n "$found_la"; then
11572 save_libdir="$libdir"
11573 case "$found_la" in
11574 */* | *\\*) . "$found_la" ;;
11575 *) . "./$found_la" ;;
11576 esac
11577 libdir="$save_libdir"
11578 for dep in $dependency_libs; do
11579 case "$dep" in
11580 -L*)
11581 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11582 if test "X$additional_libdir" != "X/usr/lib"; then
11583 haveit=
11584 if test "X$additional_libdir" = "X/usr/local/lib"; then
11585 if test -n "$GCC"; then
11586 case $host_os in
11587 linux*) haveit=yes;;
11588 esac
11589 fi
11590 fi
11591 if test -z "$haveit"; then
11592 haveit=
11593 for x in $LDFLAGS $LIBINTL; do
11594
11595 acl_save_prefix="$prefix"
11596 prefix="$acl_final_prefix"
11597 acl_save_exec_prefix="$exec_prefix"
11598 exec_prefix="$acl_final_exec_prefix"
11599 eval x=\"$x\"
11600 exec_prefix="$acl_save_exec_prefix"
11601 prefix="$acl_save_prefix"
11602
11603 if test "X$x" = "X-L$additional_libdir"; then
11604 haveit=yes
11605 break
11606 fi
11607 done
11608 if test -z "$haveit"; then
11609 if test -d "$additional_libdir"; then
11610 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11611 fi
11612 fi
11613 haveit=
11614 for x in $LDFLAGS $LTLIBINTL; do
11615
11616 acl_save_prefix="$prefix"
11617 prefix="$acl_final_prefix"
11618 acl_save_exec_prefix="$exec_prefix"
11619 exec_prefix="$acl_final_exec_prefix"
11620 eval x=\"$x\"
11621 exec_prefix="$acl_save_exec_prefix"
11622 prefix="$acl_save_prefix"
11623
11624 if test "X$x" = "X-L$additional_libdir"; then
11625 haveit=yes
11626 break
11627 fi
11628 done
11629 if test -z "$haveit"; then
11630 if test -d "$additional_libdir"; then
11631 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11632 fi
11633 fi
11634 fi
11635 fi
11636 ;;
11637 -R*)
11638 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11639 if test "$enable_rpath" != no; then
11640 haveit=
11641 for x in $rpathdirs; do
11642 if test "X$x" = "X$dir"; then
11643 haveit=yes
11644 break
11645 fi
11646 done
11647 if test -z "$haveit"; then
11648 rpathdirs="$rpathdirs $dir"
11649 fi
11650 haveit=
11651 for x in $ltrpathdirs; do
11652 if test "X$x" = "X$dir"; then
11653 haveit=yes
11654 break
11655 fi
11656 done
11657 if test -z "$haveit"; then
11658 ltrpathdirs="$ltrpathdirs $dir"
11659 fi
11660 fi
11661 ;;
11662 -l*)
11663 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11664 ;;
11665 *.la)
11666 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11667 ;;
11668 *)
11669 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11670 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11671 ;;
11672 esac
11673 done
11674 fi
11675 else
11676 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11677 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11678 fi
11679 fi
11680 fi
11681 done
11682 done
11683 if test "X$rpathdirs" != "X"; then
11684 if test -n "$hardcode_libdir_separator"; then
11685 alldirs=
11686 for found_dir in $rpathdirs; do
11687 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11688 done
11689 acl_save_libdir="$libdir"
11690 libdir="$alldirs"
11691 eval flag=\"$hardcode_libdir_flag_spec\"
11692 libdir="$acl_save_libdir"
11693 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11694 else
11695 for found_dir in $rpathdirs; do
11696 acl_save_libdir="$libdir"
11697 libdir="$found_dir"
11698 eval flag=\"$hardcode_libdir_flag_spec\"
11699 libdir="$acl_save_libdir"
11700 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11701 done
11702 fi
11703 fi
11704 if test "X$ltrpathdirs" != "X"; then
11705 for found_dir in $ltrpathdirs; do
11706 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11707 done
11708 fi
11709
11710 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11711echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
11712if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11714else
11715 gt_save_CPPFLAGS="$CPPFLAGS"
11716 CPPFLAGS="$CPPFLAGS $INCINTL"
11717 gt_save_LIBS="$LIBS"
11718 LIBS="$LIBS $LIBINTL"
11719 cat >conftest.$ac_ext <<_ACEOF
11720/* confdefs.h. */
11721_ACEOF
11722cat confdefs.h >>conftest.$ac_ext
11723cat >>conftest.$ac_ext <<_ACEOF
11724/* end confdefs.h. */
11725#include <libintl.h>
11726extern int _nl_msg_cat_cntr;
11727extern
11728#ifdef __cplusplus
11729"C"
11730#endif
11731const char *_nl_expand_alias ();
11732int
11733main ()
11734{
11735bindtextdomain ("", "");
11736return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11737 ;
11738 return 0;
11739}
11740_ACEOF
11741rm -f conftest.$ac_objext conftest$ac_exeext
11742if { (ac_try="$ac_link"
11743case "(($ac_try" in
11744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11745 *) ac_try_echo=$ac_try;;
11746esac
11747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11748 (eval "$ac_link") 2>conftest.er1
11749 ac_status=$?
11750 grep -v '^ *+' conftest.er1 >conftest.err
11751 rm -f conftest.er1
11752 cat conftest.err >&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } && {
11755 test -z "$ac_cxx_werror_flag" ||
11756 test ! -s conftest.err
11757 } && test -s conftest$ac_exeext &&
11758 $as_test_x conftest$ac_exeext; then
11759 gt_cv_func_gnugettext1_libintl=yes
11760else
11761 echo "$as_me: failed program was:" >&5
11762sed 's/^/| /' conftest.$ac_ext >&5
11763
11764 gt_cv_func_gnugettext1_libintl=no
11765fi
11766
11767rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11768 conftest$ac_exeext conftest.$ac_ext
11769 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11770 LIBS="$LIBS $LIBICONV"
11771 cat >conftest.$ac_ext <<_ACEOF
11772/* confdefs.h. */
11773_ACEOF
11774cat confdefs.h >>conftest.$ac_ext
11775cat >>conftest.$ac_ext <<_ACEOF
11776/* end confdefs.h. */
11777#include <libintl.h>
11778extern int _nl_msg_cat_cntr;
11779extern
11780#ifdef __cplusplus
11781"C"
11782#endif
11783const char *_nl_expand_alias ();
11784int
11785main ()
11786{
11787bindtextdomain ("", "");
11788return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11789 ;
11790 return 0;
11791}
11792_ACEOF
11793rm -f conftest.$ac_objext conftest$ac_exeext
11794if { (ac_try="$ac_link"
11795case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11798esac
11799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_link") 2>conftest.er1
11801 ac_status=$?
11802 grep -v '^ *+' conftest.er1 >conftest.err
11803 rm -f conftest.er1
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } && {
11807 test -z "$ac_cxx_werror_flag" ||
11808 test ! -s conftest.err
11809 } && test -s conftest$ac_exeext &&
11810 $as_test_x conftest$ac_exeext; then
11811 LIBINTL="$LIBINTL $LIBICONV"
11812 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11813 gt_cv_func_gnugettext1_libintl=yes
11814
11815else
11816 echo "$as_me: failed program was:" >&5
11817sed 's/^/| /' conftest.$ac_ext >&5
11818
11819
11820fi
11821
11822rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11823 conftest$ac_exeext conftest.$ac_ext
11824 fi
11825 CPPFLAGS="$gt_save_CPPFLAGS"
11826 LIBS="$gt_save_LIBS"
11827fi
11828{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11829echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
11830 fi
11831
11832 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11833 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11834 && test "$PACKAGE" != gettext-runtime \
11835 && test "$PACKAGE" != gettext-tools; }; then
11836 gt_use_preinstalled_gnugettext=yes
11837 else
11838 LIBINTL=
11839 LTLIBINTL=
11840 INCINTL=
11841 fi
11842
11843
11844 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11845 nls_cv_use_gnu_gettext=yes
11846 fi
11847 fi
11848
11849 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11850 BUILD_INCLUDED_LIBINTL=yes
11851 USE_INCLUDED_LIBINTL=yes
11852 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11853 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11854 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11855 fi
11856
11857 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11858 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11859 CATOBJEXT=.gmo
11860 fi
11861
11862
11863 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11864 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11865
11866cat >>confdefs.h <<\_ACEOF
11867#define ENABLE_NLS 1
11868_ACEOF
11869
11870 else
11871 USE_NLS=no
11872 fi
11873 fi
11874
11875 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
11876echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
11877 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
11878echo "${ECHO_T}$USE_NLS" >&6; }
11879 if test "$USE_NLS" = "yes"; then
11880 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11881echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
11882 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11883 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11884 gt_source="external libintl"
11885 else
11886 gt_source="libc"
11887 fi
11888 else
11889 gt_source="included intl directory"
11890 fi
11891 { echo "$as_me:$LINENO: result: $gt_source" >&5
11892echo "${ECHO_T}$gt_source" >&6; }
11893 fi
11894
11895 if test "$USE_NLS" = "yes"; then
11896
11897 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11898 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11899 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
11900echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
11901 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
11902echo "${ECHO_T}$LIBINTL" >&6; }
11903
11904 for element in $INCINTL; do
11905 haveit=
11906 for x in $CPPFLAGS; do
11907
11908 acl_save_prefix="$prefix"
11909 prefix="$acl_final_prefix"
11910 acl_save_exec_prefix="$exec_prefix"
11911 exec_prefix="$acl_final_exec_prefix"
11912 eval x=\"$x\"
11913 exec_prefix="$acl_save_exec_prefix"
11914 prefix="$acl_save_prefix"
11915
11916 if test "X$x" = "X$element"; then
11917 haveit=yes
11918 break
11919 fi
11920 done
11921 if test -z "$haveit"; then
11922 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11923 fi
11924 done
11925
11926 fi
11927
11928
11929cat >>confdefs.h <<\_ACEOF
11930#define HAVE_GETTEXT 1
11931_ACEOF
11932
11933
11934cat >>confdefs.h <<\_ACEOF
11935#define HAVE_DCGETTEXT 1
11936_ACEOF
11937
11938 fi
11939
11940 POSUB=po
11941 fi
11942
11943
11944 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11945 BUILD_INCLUDED_LIBINTL=yes
11946 fi
11947
11948
11949
11950
11951
11952 nls_cv_header_intl=
11953 nls_cv_header_libgt=
11954
11955 DATADIRNAME=share
11956
11957
11958 INSTOBJEXT=.mo
11959
11960
11961 GENCAT=gencat
11962
11963
11964 if test "$USE_INCLUDED_LIBINTL" = yes; then
11965 INTLOBJS="\$(GETTOBJS)"
11966 fi
11967
11968
11969 INTL_LIBTOOL_SUFFIX_PREFIX=
11970
11971
11972
11973 INTLLIBS="$LIBINTL"
11974
11975
11976
11977
11978
11979
11980
11981BOILERPLATE=boilerplate.mk
11982
11983if (sh -c "make --version" 2>/dev/null | grep GNU 2>&1 >/dev/null); then
11984 if sh -c "vncmkdepend" >/dev/null 2>&1; then
11985 BOILERPLATE="$BOILERPLATE:depend.mk"
11986 fi
11987fi
11988
11989ac_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"
11990
11991cat >confcache <<\_ACEOF
11992# This file is a shell script that caches the results of configure
11993# tests run on this system so they can be shared between configure
11994# scripts and configure runs, see configure's option --config-cache.
11995# It is not useful on other systems. If it contains results you don't
11996# want to keep, you may remove or edit it.
11997#
11998# config.status only pays attention to the cache file if you give it
11999# the --recheck option to rerun configure.
12000#
12001# `ac_cv_env_foo' variables (set or unset) will be overridden when
12002# loading this file, other *unset* `ac_cv_foo' will be assigned the
12003# following values.
12004
12005_ACEOF
12006
12007# The following way of writing the cache mishandles newlines in values,
12008# but we know of no workaround that is simple, portable, and efficient.
12009# So, we kill variables containing newlines.
12010# Ultrix sh set writes to stderr and can't be redirected directly,
12011# and sets the high bit in the cache file unless we assign to the vars.
12012(
12013 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12014 eval ac_val=\$$ac_var
12015 case $ac_val in #(
12016 *${as_nl}*)
12017 case $ac_var in #(
12018 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12019echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12020 esac
12021 case $ac_var in #(
12022 _ | IFS | as_nl) ;; #(
12023 *) $as_unset $ac_var ;;
12024 esac ;;
12025 esac
12026 done
12027
12028 (set) 2>&1 |
12029 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12030 *${as_nl}ac_space=\ *)
12031 # `set' does not quote correctly, so add quotes (double-quote
12032 # substitution turns \\\\ into \\, and sed turns \\ into \).
12033 sed -n \
12034 "s/'/'\\\\''/g;
12035 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12036 ;; #(
12037 *)
12038 # `set' quotes correctly as required by POSIX, so do not add quotes.
12039 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12040 ;;
12041 esac |
12042 sort
12043) |
12044 sed '
12045 /^ac_cv_env_/b end
12046 t clear
12047 :clear
12048 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12049 t end
12050 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12051 :end' >>confcache
12052if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12053 if test -w "$cache_file"; then
12054 test "x$cache_file" != "x/dev/null" &&
12055 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12056echo "$as_me: updating cache $cache_file" >&6;}
12057 cat confcache >$cache_file
12058 else
12059 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12060echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12061 fi
12062fi
12063rm -f confcache
12064
12065test "x$prefix" = xNONE && prefix=$ac_default_prefix
12066# Let make expand exec_prefix.
12067test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12068
12069# Transform confdefs.h into DEFS.
12070# Protect against shell expansion while executing Makefile rules.
12071# Protect against Makefile macro expansion.
12072#
12073# If the first sed substitution is executed (which looks for macros that
12074# take arguments), then branch to the quote section. Otherwise,
12075# look for a macro that doesn't take arguments.
12076ac_script='
12077t clear
12078:clear
12079s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
12080t quote
12081s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
12082t quote
12083b any
12084:quote
12085s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12086s/\[/\\&/g
12087s/\]/\\&/g
12088s/\$/$$/g
12089H
12090:any
12091${
12092 g
12093 s/^\n//
12094 s/\n/ /g
12095 p
12096}
12097'
12098DEFS=`sed -n "$ac_script" confdefs.h`
12099
12100
12101ac_libobjs=
12102ac_ltlibobjs=
12103for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12104 # 1. Remove the extension, and $U if already installed.
12105 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12106 ac_i=`echo "$ac_i" | sed "$ac_script"`
12107 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12108 # will be set to the directory where LIBOBJS objects are built.
12109 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12110 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12111done
12112LIBOBJS=$ac_libobjs
12113
12114LTLIBOBJS=$ac_ltlibobjs
12115
12116
12117
12118: ${CONFIG_STATUS=./config.status}
12119ac_clean_files_save=$ac_clean_files
12120ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12121{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12122echo "$as_me: creating $CONFIG_STATUS" >&6;}
12123cat >$CONFIG_STATUS <<_ACEOF
12124#! $SHELL
12125# Generated by $as_me.
12126# Run this file to recreate the current configuration.
12127# Compiler output produced by configure, useful for debugging
12128# configure, is in config.log if it exists.
12129
12130debug=false
12131ac_cs_recheck=false
12132ac_cs_silent=false
12133SHELL=\${CONFIG_SHELL-$SHELL}
12134_ACEOF
12135
12136cat >>$CONFIG_STATUS <<\_ACEOF
12137## --------------------- ##
12138## M4sh Initialization. ##
12139## --------------------- ##
12140
12141# Be more Bourne compatible
12142DUALCASE=1; export DUALCASE # for MKS sh
12143if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12144 emulate sh
12145 NULLCMD=:
12146 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12147 # is contrary to our usage. Disable this feature.
12148 alias -g '${1+"$@"}'='"$@"'
12149 setopt NO_GLOB_SUBST
12150else
12151 case `(set -o) 2>/dev/null` in
12152 *posix*) set -o posix ;;
12153esac
12154
12155fi
12156
12157
12158
12159
12160# PATH needs CR
12161# Avoid depending upon Character Ranges.
12162as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12163as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12164as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12165as_cr_digits='0123456789'
12166as_cr_alnum=$as_cr_Letters$as_cr_digits
12167
12168# The user is always right.
12169if test "${PATH_SEPARATOR+set}" != set; then
12170 echo "#! /bin/sh" >conf$$.sh
12171 echo "exit 0" >>conf$$.sh
12172 chmod +x conf$$.sh
12173 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12174 PATH_SEPARATOR=';'
12175 else
12176 PATH_SEPARATOR=:
12177 fi
12178 rm -f conf$$.sh
12179fi
12180
12181# Support unset when possible.
12182if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12183 as_unset=unset
12184else
12185 as_unset=false
12186fi
12187
12188
12189# IFS
12190# We need space, tab and new line, in precisely that order. Quoting is
12191# there to prevent editors from complaining about space-tab.
12192# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12193# splitting by setting IFS to empty value.)
12194as_nl='
12195'
12196IFS=" "" $as_nl"
12197
12198# Find who we are. Look in the path if we contain no directory separator.
12199case $0 in
12200 *[\\/]* ) as_myself=$0 ;;
12201 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202for as_dir in $PATH
12203do
12204 IFS=$as_save_IFS
12205 test -z "$as_dir" && as_dir=.
12206 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12207done
12208IFS=$as_save_IFS
12209
12210 ;;
12211esac
12212# We did not find ourselves, most probably we were run as `sh COMMAND'
12213# in which case we are not to be found in the path.
12214if test "x$as_myself" = x; then
12215 as_myself=$0
12216fi
12217if test ! -f "$as_myself"; then
12218 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12219 { (exit 1); exit 1; }
12220fi
12221
12222# Work around bugs in pre-3.0 UWIN ksh.
12223for as_var in ENV MAIL MAILPATH
12224do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12225done
12226PS1='$ '
12227PS2='> '
12228PS4='+ '
12229
12230# NLS nuisances.
12231for as_var in \
12232 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12233 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12234 LC_TELEPHONE LC_TIME
12235do
12236 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12237 eval $as_var=C; export $as_var
12238 else
12239 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12240 fi
12241done
12242
12243# Required to use basename.
12244if expr a : '\(a\)' >/dev/null 2>&1 &&
12245 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12246 as_expr=expr
12247else
12248 as_expr=false
12249fi
12250
12251if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12252 as_basename=basename
12253else
12254 as_basename=false
12255fi
12256
12257
12258# Name of the executable.
12259as_me=`$as_basename -- "$0" ||
12260$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12261 X"$0" : 'X\(//\)$' \| \
12262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12263echo X/"$0" |
12264 sed '/^.*\/\([^/][^/]*\)\/*$/{
12265 s//\1/
12266 q
12267 }
12268 /^X\/\(\/\/\)$/{
12269 s//\1/
12270 q
12271 }
12272 /^X\/\(\/\).*/{
12273 s//\1/
12274 q
12275 }
12276 s/.*/./; q'`
12277
12278# CDPATH.
12279$as_unset CDPATH
12280
12281
12282
12283 as_lineno_1=$LINENO
12284 as_lineno_2=$LINENO
12285 test "x$as_lineno_1" != "x$as_lineno_2" &&
12286 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12287
12288 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12289 # uniformly replaced by the line number. The first 'sed' inserts a
12290 # line-number line after each line using $LINENO; the second 'sed'
12291 # does the real work. The second script uses 'N' to pair each
12292 # line-number line with the line containing $LINENO, and appends
12293 # trailing '-' during substitution so that $LINENO is not a special
12294 # case at line end.
12295 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12296 # scripts with optimization help from Paolo Bonzini. Blame Lee
12297 # E. McMahon (1931-1989) for sed's syntax. :-)
12298 sed -n '
12299 p
12300 /[$]LINENO/=
12301 ' <$as_myself |
12302 sed '
12303 s/[$]LINENO.*/&-/
12304 t lineno
12305 b
12306 :lineno
12307 N
12308 :loop
12309 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12310 t loop
12311 s/-\n.*//
12312 ' >$as_me.lineno &&
12313 chmod +x "$as_me.lineno" ||
12314 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12315 { (exit 1); exit 1; }; }
12316
12317 # Don't try to exec as it changes $[0], causing all sort of problems
12318 # (the dirname of $[0] is not the place where we might find the
12319 # original and so on. Autoconf is especially sensitive to this).
12320 . "./$as_me.lineno"
12321 # Exit status is that of the last command.
12322 exit
12323}
12324
12325
12326if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12327 as_dirname=dirname
12328else
12329 as_dirname=false
12330fi
12331
12332ECHO_C= ECHO_N= ECHO_T=
12333case `echo -n x` in
12334-n*)
12335 case `echo 'x\c'` in
12336 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12337 *) ECHO_C='\c';;
12338 esac;;
12339*)
12340 ECHO_N='-n';;
12341esac
12342
12343if expr a : '\(a\)' >/dev/null 2>&1 &&
12344 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12345 as_expr=expr
12346else
12347 as_expr=false
12348fi
12349
12350rm -f conf$$ conf$$.exe conf$$.file
12351if test -d conf$$.dir; then
12352 rm -f conf$$.dir/conf$$.file
12353else
12354 rm -f conf$$.dir
12355 mkdir conf$$.dir
12356fi
12357echo >conf$$.file
12358if ln -s conf$$.file conf$$ 2>/dev/null; then
12359 as_ln_s='ln -s'
12360 # ... but there are two gotchas:
12361 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12362 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12363 # In both cases, we have to default to `cp -p'.
12364 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12365 as_ln_s='cp -p'
12366elif ln conf$$.file conf$$ 2>/dev/null; then
12367 as_ln_s=ln
12368else
12369 as_ln_s='cp -p'
12370fi
12371rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12372rmdir conf$$.dir 2>/dev/null
12373
12374if mkdir -p . 2>/dev/null; then
12375 as_mkdir_p=:
12376else
12377 test -d ./-p && rmdir ./-p
12378 as_mkdir_p=false
12379fi
12380
12381if test -x / >/dev/null 2>&1; then
12382 as_test_x='test -x'
12383else
12384 if ls -dL / >/dev/null 2>&1; then
12385 as_ls_L_option=L
12386 else
12387 as_ls_L_option=
12388 fi
12389 as_test_x='
12390 eval sh -c '\''
12391 if test -d "$1"; then
12392 test -d "$1/.";
12393 else
12394 case $1 in
12395 -*)set "./$1";;
12396 esac;
12397 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12398 ???[sx]*):;;*)false;;esac;fi
12399 '\'' sh
12400 '
12401fi
12402as_executable_p=$as_test_x
12403
12404# Sed expression to map a string onto a valid CPP name.
12405as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12406
12407# Sed expression to map a string onto a valid variable name.
12408as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12409
12410
12411exec 6>&1
12412
12413# Save the log message, to keep $[0] and so on meaningful, and to
12414# report actual input values of CONFIG_FILES etc. instead of their
12415# values after options handling.
12416ac_log="
12417This file was extended by $as_me, which was
12418generated by GNU Autoconf 2.61. Invocation command line was
12419
12420 CONFIG_FILES = $CONFIG_FILES
12421 CONFIG_HEADERS = $CONFIG_HEADERS
12422 CONFIG_LINKS = $CONFIG_LINKS
12423 CONFIG_COMMANDS = $CONFIG_COMMANDS
12424 $ $0 $@
12425
12426on `(hostname || uname -n) 2>/dev/null | sed 1q`
12427"
12428
12429_ACEOF
12430
12431cat >>$CONFIG_STATUS <<_ACEOF
12432# Files that config.status was made for.
12433config_files="$ac_config_files"
12434config_commands="$ac_config_commands"
12435
12436_ACEOF
12437
12438cat >>$CONFIG_STATUS <<\_ACEOF
12439ac_cs_usage="\
12440\`$as_me' instantiates files from templates according to the
12441current configuration.
12442
12443Usage: $0 [OPTIONS] [FILE]...
12444
12445 -h, --help print this help, then exit
12446 -V, --version print version number and configuration settings, then exit
12447 -q, --quiet do not print progress messages
12448 -d, --debug don't remove temporary files
12449 --recheck update $as_me by reconfiguring in the same conditions
12450 --file=FILE[:TEMPLATE]
12451 instantiate the configuration file FILE
12452
12453Configuration files:
12454$config_files
12455
12456Configuration commands:
12457$config_commands
12458
12459Report bugs to <bug-autoconf@gnu.org>."
12460
12461_ACEOF
12462cat >>$CONFIG_STATUS <<_ACEOF
12463ac_cs_version="\\
12464config.status
12465configured by $0, generated by GNU Autoconf 2.61,
12466 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12467
12468Copyright (C) 2006 Free Software Foundation, Inc.
12469This config.status script is free software; the Free Software Foundation
12470gives unlimited permission to copy, distribute and modify it."
12471
12472ac_pwd='$ac_pwd'
12473srcdir='$srcdir'
12474INSTALL='$INSTALL'
12475_ACEOF
12476
12477cat >>$CONFIG_STATUS <<\_ACEOF
12478# If no file are specified by the user, then we need to provide default
12479# value. By we need to know if files were specified by the user.
12480ac_need_defaults=:
12481while test $# != 0
12482do
12483 case $1 in
12484 --*=*)
12485 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12486 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12487 ac_shift=:
12488 ;;
12489 *)
12490 ac_option=$1
12491 ac_optarg=$2
12492 ac_shift=shift
12493 ;;
12494 esac
12495
12496 case $ac_option in
12497 # Handling of the options.
12498 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12499 ac_cs_recheck=: ;;
12500 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12501 echo "$ac_cs_version"; exit ;;
12502 --debug | --debu | --deb | --de | --d | -d )
12503 debug=: ;;
12504 --file | --fil | --fi | --f )
12505 $ac_shift
12506 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12507 ac_need_defaults=false;;
12508 --he | --h | --help | --hel | -h )
12509 echo "$ac_cs_usage"; exit ;;
12510 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12511 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12512 ac_cs_silent=: ;;
12513
12514 # This is an error.
12515 -*) { echo "$as_me: error: unrecognized option: $1
12516Try \`$0 --help' for more information." >&2
12517 { (exit 1); exit 1; }; } ;;
12518
12519 *) ac_config_targets="$ac_config_targets $1"
12520 ac_need_defaults=false ;;
12521
12522 esac
12523 shift
12524done
12525
12526ac_configure_extra_args=
12527
12528if $ac_cs_silent; then
12529 exec 6>/dev/null
12530 ac_configure_extra_args="$ac_configure_extra_args --silent"
12531fi
12532
12533_ACEOF
12534cat >>$CONFIG_STATUS <<_ACEOF
12535if \$ac_cs_recheck; then
12536 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12537 CONFIG_SHELL=$SHELL
12538 export CONFIG_SHELL
12539 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12540fi
12541
12542_ACEOF
12543cat >>$CONFIG_STATUS <<\_ACEOF
12544exec 5>>config.log
12545{
12546 echo
12547 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12548## Running $as_me. ##
12549_ASBOX
12550 echo "$ac_log"
12551} >&5
12552
12553_ACEOF
12554cat >>$CONFIG_STATUS <<_ACEOF
12555#
12556# INIT-COMMANDS
12557#
12558# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12559 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12560 # from automake.
12561 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12562 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12563 LINGUAS="${LINGUAS-%UNSET%}"
12564
12565
12566_ACEOF
12567
12568cat >>$CONFIG_STATUS <<\_ACEOF
12569
12570# Handling of arguments.
12571for ac_config_target in $ac_config_targets
12572do
12573 case $ac_config_target in
12574 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12575 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:common.mk:Makefile.in:$BOILERPLATE" ;;
12576 "tx/Makefile") CONFIG_FILES="$CONFIG_FILES tx/Makefile:common.mk:tx/Makefile.in:$BOILERPLATE" ;;
12577 "x0vncserver/Makefile") CONFIG_FILES="$CONFIG_FILES x0vncserver/Makefile:common.mk:x0vncserver/Makefile.in:$BOILERPLATE" ;;
12578 "vncviewer/Makefile") CONFIG_FILES="$CONFIG_FILES vncviewer/Makefile:common.mk:vncviewer/Makefile.in:$BOILERPLATE" ;;
12579 "vncconfig/Makefile") CONFIG_FILES="$CONFIG_FILES vncconfig/Makefile:common.mk:vncconfig/Makefile.in:$BOILERPLATE" ;;
12580 "vncpasswd/Makefile") CONFIG_FILES="$CONFIG_FILES vncpasswd/Makefile:common.mk:vncpasswd/Makefile.in:$BOILERPLATE" ;;
12581 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12582 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12583
12584 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12585echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12586 { (exit 1); exit 1; }; };;
12587 esac
12588done
12589
12590
12591# If the user did not use the arguments to specify the items to instantiate,
12592# then the envvar interface is used. Set only those that are not.
12593# We use the long form for the default assignment because of an extremely
12594# bizarre bug on SunOS 4.1.3.
12595if $ac_need_defaults; then
12596 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12597 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12598fi
12599
12600# Have a temporary directory for convenience. Make it in the build tree
12601# simply because there is no reason against having it here, and in addition,
12602# creating and moving files from /tmp can sometimes cause problems.
12603# Hook for its removal unless debugging.
12604# Note that there is a small window in which the directory will not be cleaned:
12605# after its creation but before its name has been assigned to `$tmp'.
12606$debug ||
12607{
12608 tmp=
12609 trap 'exit_status=$?
12610 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12611' 0
12612 trap '{ (exit 1); exit 1; }' 1 2 13 15
12613}
12614# Create a (secure) tmp directory for tmp files.
12615
12616{
12617 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12618 test -n "$tmp" && test -d "$tmp"
12619} ||
12620{
12621 tmp=./conf$$-$RANDOM
12622 (umask 077 && mkdir "$tmp")
12623} ||
12624{
12625 echo "$me: cannot create a temporary directory in ." >&2
12626 { (exit 1); exit 1; }
12627}
12628
12629#
12630# Set up the sed scripts for CONFIG_FILES section.
12631#
12632
12633# No need to generate the scripts if there are no CONFIG_FILES.
12634# This happens for instance when ./config.status config.h
12635if test -n "$CONFIG_FILES"; then
12636
12637_ACEOF
12638
12639
12640
12641ac_delim='%!_!# '
12642for ac_last_try in false false false false false :; do
12643 cat >conf$$subs.sed <<_ACEOF
12644SHELL!$SHELL$ac_delim
12645PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12646PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12647PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12648PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12649PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12650PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12651exec_prefix!$exec_prefix$ac_delim
12652prefix!$prefix$ac_delim
12653program_transform_name!$program_transform_name$ac_delim
12654bindir!$bindir$ac_delim
12655sbindir!$sbindir$ac_delim
12656libexecdir!$libexecdir$ac_delim
12657datarootdir!$datarootdir$ac_delim
12658datadir!$datadir$ac_delim
12659sysconfdir!$sysconfdir$ac_delim
12660sharedstatedir!$sharedstatedir$ac_delim
12661localstatedir!$localstatedir$ac_delim
12662includedir!$includedir$ac_delim
12663oldincludedir!$oldincludedir$ac_delim
12664docdir!$docdir$ac_delim
12665infodir!$infodir$ac_delim
12666htmldir!$htmldir$ac_delim
12667dvidir!$dvidir$ac_delim
12668pdfdir!$pdfdir$ac_delim
12669psdir!$psdir$ac_delim
12670libdir!$libdir$ac_delim
12671localedir!$localedir$ac_delim
12672mandir!$mandir$ac_delim
12673DEFS!$DEFS$ac_delim
12674ECHO_C!$ECHO_C$ac_delim
12675ECHO_N!$ECHO_N$ac_delim
12676ECHO_T!$ECHO_T$ac_delim
12677LIBS!$LIBS$ac_delim
12678build_alias!$build_alias$ac_delim
12679host_alias!$host_alias$ac_delim
12680target_alias!$target_alias$ac_delim
12681PACKAGE!$PACKAGE$ac_delim
12682VERSION!$VERSION$ac_delim
12683CC!$CC$ac_delim
12684CFLAGS!$CFLAGS$ac_delim
12685LDFLAGS!$LDFLAGS$ac_delim
12686CPPFLAGS!$CPPFLAGS$ac_delim
12687ac_ct_CC!$ac_ct_CC$ac_delim
12688EXEEXT!$EXEEXT$ac_delim
12689OBJEXT!$OBJEXT$ac_delim
12690CXX!$CXX$ac_delim
12691CXXFLAGS!$CXXFLAGS$ac_delim
12692ac_ct_CXX!$ac_ct_CXX$ac_delim
12693RANLIB!$RANLIB$ac_delim
12694SET_MAKE!$SET_MAKE$ac_delim
12695MITSHM_DEFINE!$MITSHM_DEFINE$ac_delim
12696CL_LIB!$CL_LIB$ac_delim
12697DMEDIA_LIB!$DMEDIA_LIB$ac_delim
12698XMKMF!$XMKMF$ac_delim
12699CXXCPP!$CXXCPP$ac_delim
12700X_CFLAGS!$X_CFLAGS$ac_delim
12701X_PRE_LIBS!$X_PRE_LIBS$ac_delim
12702X_LIBS!$X_LIBS$ac_delim
12703X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
12704ZLIB_DIR!$ZLIB_DIR$ac_delim
12705ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
12706ZLIB_LIB!$ZLIB_LIB$ac_delim
12707JPEG_DIR!$JPEG_DIR$ac_delim
12708JPEG_INCLUDE!$JPEG_INCLUDE$ac_delim
12709JPEG_LIB!$JPEG_LIB$ac_delim
12710VNCCONFIG_DIR!$VNCCONFIG_DIR$ac_delim
12711XTEST_DEFINE!$XTEST_DEFINE$ac_delim
12712XTEST_LIB!$XTEST_LIB$ac_delim
12713READDISPLAY_DEFINE!$READDISPLAY_DEFINE$ac_delim
12714INET_LIB!$INET_LIB$ac_delim
12715INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12716INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12717INSTALL_DATA!$INSTALL_DATA$ac_delim
12718MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
12719USE_NLS!$USE_NLS$ac_delim
12720MSGFMT!$MSGFMT$ac_delim
12721GMSGFMT!$GMSGFMT$ac_delim
12722XGETTEXT!$XGETTEXT$ac_delim
12723MSGMERGE!$MSGMERGE$ac_delim
12724build!$build$ac_delim
12725build_cpu!$build_cpu$ac_delim
12726build_vendor!$build_vendor$ac_delim
12727build_os!$build_os$ac_delim
12728host!$host$ac_delim
12729host_cpu!$host_cpu$ac_delim
12730host_vendor!$host_vendor$ac_delim
12731host_os!$host_os$ac_delim
12732GREP!$GREP$ac_delim
12733EGREP!$EGREP$ac_delim
12734ALLOCA!$ALLOCA$ac_delim
12735GLIBC21!$GLIBC21$ac_delim
12736HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
12737HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
12738HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
12739HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
12740LIBICONV!$LIBICONV$ac_delim
12741_ACEOF
12742
12743 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12744 break
12745 elif $ac_last_try; then
12746 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12747echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12748 { (exit 1); exit 1; }; }
12749 else
12750 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12751 fi
12752done
12753
12754ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12755if test -n "$ac_eof"; then
12756 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12757 ac_eof=`expr $ac_eof + 1`
12758fi
12759
12760cat >>$CONFIG_STATUS <<_ACEOF
12761cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12762/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12763_ACEOF
12764sed '
12765s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12766s/^/s,@/; s/!/@,|#_!!_#|/
12767:n
12768t n
12769s/'"$ac_delim"'$/,g/; t
12770s/$/\\/; p
12771N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12772' >>$CONFIG_STATUS <conf$$subs.sed
12773rm -f conf$$subs.sed
12774cat >>$CONFIG_STATUS <<_ACEOF
12775CEOF$ac_eof
12776_ACEOF
12777
12778
12779ac_delim='%!_!# '
12780for ac_last_try in false false false false false :; do
12781 cat >conf$$subs.sed <<_ACEOF
12782LTLIBICONV!$LTLIBICONV$ac_delim
12783INTLBISON!$INTLBISON$ac_delim
12784BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
12785USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
12786CATOBJEXT!$CATOBJEXT$ac_delim
12787DATADIRNAME!$DATADIRNAME$ac_delim
12788INSTOBJEXT!$INSTOBJEXT$ac_delim
12789GENCAT!$GENCAT$ac_delim
12790INTLOBJS!$INTLOBJS$ac_delim
12791INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
12792INTLLIBS!$INTLLIBS$ac_delim
12793LIBINTL!$LIBINTL$ac_delim
12794LTLIBINTL!$LTLIBINTL$ac_delim
12795POSUB!$POSUB$ac_delim
12796LIBOBJS!$LIBOBJS$ac_delim
12797LTLIBOBJS!$LTLIBOBJS$ac_delim
12798_ACEOF
12799
12800 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
12801 break
12802 elif $ac_last_try; then
12803 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12804echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12805 { (exit 1); exit 1; }; }
12806 else
12807 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12808 fi
12809done
12810
12811ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12812if test -n "$ac_eof"; then
12813 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12814 ac_eof=`expr $ac_eof + 1`
12815fi
12816
12817cat >>$CONFIG_STATUS <<_ACEOF
12818cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12819/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12820_ACEOF
12821sed '
12822s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12823s/^/s,@/; s/!/@,|#_!!_#|/
12824:n
12825t n
12826s/'"$ac_delim"'$/,g/; t
12827s/$/\\/; p
12828N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12829' >>$CONFIG_STATUS <conf$$subs.sed
12830rm -f conf$$subs.sed
12831cat >>$CONFIG_STATUS <<_ACEOF
12832:end
12833s/|#_!!_#|//g
12834CEOF$ac_eof
12835_ACEOF
12836
12837
12838# VPATH may cause trouble with some makes, so we remove $(srcdir),
12839# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12840# trailing colons and then remove the whole line if VPATH becomes empty
12841# (actually we leave an empty line to preserve line numbers).
12842if test "x$srcdir" = x.; then
12843 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12844s/:*\$(srcdir):*/:/
12845s/:*\${srcdir}:*/:/
12846s/:*@srcdir@:*/:/
12847s/^\([^=]*=[ ]*\):*/\1/
12848s/:*$//
12849s/^[^=]*=[ ]*$//
12850}'
12851fi
12852
12853cat >>$CONFIG_STATUS <<\_ACEOF
12854fi # test -n "$CONFIG_FILES"
12855
12856
12857for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
12858do
12859 case $ac_tag in
12860 :[FHLC]) ac_mode=$ac_tag; continue;;
12861 esac
12862 case $ac_mode$ac_tag in
12863 :[FHL]*:*);;
12864 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12865echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12866 { (exit 1); exit 1; }; };;
12867 :[FH]-) ac_tag=-:-;;
12868 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12869 esac
12870 ac_save_IFS=$IFS
12871 IFS=:
12872 set x $ac_tag
12873 IFS=$ac_save_IFS
12874 shift
12875 ac_file=$1
12876 shift
12877
12878 case $ac_mode in
12879 :L) ac_source=$1;;
12880 :[FH])
12881 ac_file_inputs=
12882 for ac_f
12883 do
12884 case $ac_f in
12885 -) ac_f="$tmp/stdin";;
12886 *) # Look for the file first in the build tree, then in the source tree
12887 # (if the path is not absolute). The absolute path cannot be DOS-style,
12888 # because $ac_f cannot contain `:'.
12889 test -f "$ac_f" ||
12890 case $ac_f in
12891 [\\/$]*) false;;
12892 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12893 esac ||
12894 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12895echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12896 { (exit 1); exit 1; }; };;
12897 esac
12898 ac_file_inputs="$ac_file_inputs $ac_f"
12899 done
12900
12901 # Let's still pretend it is `configure' which instantiates (i.e., don't
12902 # use $as_me), people would be surprised to read:
12903 # /* config.h. Generated by config.status. */
12904 configure_input="Generated from "`IFS=:
12905 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12906 if test x"$ac_file" != x-; then
12907 configure_input="$ac_file. $configure_input"
12908 { echo "$as_me:$LINENO: creating $ac_file" >&5
12909echo "$as_me: creating $ac_file" >&6;}
12910 fi
12911
12912 case $ac_tag in
12913 *:-:* | *:-) cat >"$tmp/stdin";;
12914 esac
12915 ;;
12916 esac
12917
12918 ac_dir=`$as_dirname -- "$ac_file" ||
12919$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12920 X"$ac_file" : 'X\(//\)[^/]' \| \
12921 X"$ac_file" : 'X\(//\)$' \| \
12922 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12923echo X"$ac_file" |
12924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12925 s//\1/
12926 q
12927 }
12928 /^X\(\/\/\)[^/].*/{
12929 s//\1/
12930 q
12931 }
12932 /^X\(\/\/\)$/{
12933 s//\1/
12934 q
12935 }
12936 /^X\(\/\).*/{
12937 s//\1/
12938 q
12939 }
12940 s/.*/./; q'`
12941 { as_dir="$ac_dir"
12942 case $as_dir in #(
12943 -*) as_dir=./$as_dir;;
12944 esac
12945 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12946 as_dirs=
12947 while :; do
12948 case $as_dir in #(
12949 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12950 *) as_qdir=$as_dir;;
12951 esac
12952 as_dirs="'$as_qdir' $as_dirs"
12953 as_dir=`$as_dirname -- "$as_dir" ||
12954$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12955 X"$as_dir" : 'X\(//\)[^/]' \| \
12956 X"$as_dir" : 'X\(//\)$' \| \
12957 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12958echo X"$as_dir" |
12959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12960 s//\1/
12961 q
12962 }
12963 /^X\(\/\/\)[^/].*/{
12964 s//\1/
12965 q
12966 }
12967 /^X\(\/\/\)$/{
12968 s//\1/
12969 q
12970 }
12971 /^X\(\/\).*/{
12972 s//\1/
12973 q
12974 }
12975 s/.*/./; q'`
12976 test -d "$as_dir" && break
12977 done
12978 test -z "$as_dirs" || eval "mkdir $as_dirs"
12979 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12980echo "$as_me: error: cannot create directory $as_dir" >&2;}
12981 { (exit 1); exit 1; }; }; }
12982 ac_builddir=.
12983
12984case "$ac_dir" in
12985.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12986*)
12987 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12988 # A ".." for each directory in $ac_dir_suffix.
12989 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12990 case $ac_top_builddir_sub in
12991 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12992 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12993 esac ;;
12994esac
12995ac_abs_top_builddir=$ac_pwd
12996ac_abs_builddir=$ac_pwd$ac_dir_suffix
12997# for backward compatibility:
12998ac_top_builddir=$ac_top_build_prefix
12999
13000case $srcdir in
13001 .) # We are building in place.
13002 ac_srcdir=.
13003 ac_top_srcdir=$ac_top_builddir_sub
13004 ac_abs_top_srcdir=$ac_pwd ;;
13005 [\\/]* | ?:[\\/]* ) # Absolute name.
13006 ac_srcdir=$srcdir$ac_dir_suffix;
13007 ac_top_srcdir=$srcdir
13008 ac_abs_top_srcdir=$srcdir ;;
13009 *) # Relative name.
13010 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13011 ac_top_srcdir=$ac_top_build_prefix$srcdir
13012 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13013esac
13014ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13015
13016
13017 case $ac_mode in
13018 :F)
13019 #
13020 # CONFIG_FILE
13021 #
13022
13023 case $INSTALL in
13024 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13025 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13026 esac
13027_ACEOF
13028
13029cat >>$CONFIG_STATUS <<\_ACEOF
13030# If the template does not know about datarootdir, expand it.
13031# FIXME: This hack should be removed a few years after 2.60.
13032ac_datarootdir_hack=; ac_datarootdir_seen=
13033
13034case `sed -n '/datarootdir/ {
13035 p
13036 q
13037}
13038/@datadir@/p
13039/@docdir@/p
13040/@infodir@/p
13041/@localedir@/p
13042/@mandir@/p
13043' $ac_file_inputs` in
13044*datarootdir*) ac_datarootdir_seen=yes;;
13045*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13046 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13047echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13048_ACEOF
13049cat >>$CONFIG_STATUS <<_ACEOF
13050 ac_datarootdir_hack='
13051 s&@datadir@&$datadir&g
13052 s&@docdir@&$docdir&g
13053 s&@infodir@&$infodir&g
13054 s&@localedir@&$localedir&g
13055 s&@mandir@&$mandir&g
13056 s&\\\${datarootdir}&$datarootdir&g' ;;
13057esac
13058_ACEOF
13059
13060# Neutralize VPATH when `$srcdir' = `.'.
13061# Shell code in configure.ac might set extrasub.
13062# FIXME: do we really want to maintain this feature?
13063cat >>$CONFIG_STATUS <<_ACEOF
13064 sed "$ac_vpsub
13065$extrasub
13066_ACEOF
13067cat >>$CONFIG_STATUS <<\_ACEOF
13068:t
13069/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13070s&@configure_input@&$configure_input&;t t
13071s&@top_builddir@&$ac_top_builddir_sub&;t t
13072s&@srcdir@&$ac_srcdir&;t t
13073s&@abs_srcdir@&$ac_abs_srcdir&;t t
13074s&@top_srcdir@&$ac_top_srcdir&;t t
13075s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13076s&@builddir@&$ac_builddir&;t t
13077s&@abs_builddir@&$ac_abs_builddir&;t t
13078s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13079s&@INSTALL@&$ac_INSTALL&;t t
13080$ac_datarootdir_hack
13081" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
13082
13083test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13084 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13085 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13086 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13087which seems to be undefined. Please make sure it is defined." >&5
13088echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13089which seems to be undefined. Please make sure it is defined." >&2;}
13090
13091 rm -f "$tmp/stdin"
13092 case $ac_file in
13093 -) cat "$tmp/out"; rm -f "$tmp/out";;
13094 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13095 esac
13096 ;;
13097
13098
13099 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13100echo "$as_me: executing $ac_file commands" >&6;}
13101 ;;
13102 esac
13103
13104
13105 case $ac_file$ac_mode in
13106 "default-1":C)
13107 for ac_file in $CONFIG_FILES; do
13108 # Support "outfile[:infile[:infile...]]"
13109 case "$ac_file" in
13110 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13111 esac
13112 # PO directories have a Makefile.in generated from Makefile.in.in.
13113 case "$ac_file" in */Makefile.in)
13114 # Adjust a relative srcdir.
13115 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13116 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13117 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13118 # In autoconf-2.13 it is called $ac_given_srcdir.
13119 # In autoconf-2.50 it is called $srcdir.
13120 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13121 case "$ac_given_srcdir" in
13122 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13123 /*) top_srcdir="$ac_given_srcdir" ;;
13124 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13125 esac
13126 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13127 rm -f "$ac_dir/POTFILES"
13128 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13129 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13130 POMAKEFILEDEPS="POTFILES.in"
13131 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
13132 # on $ac_dir but don't depend on user-specified configuration
13133 # parameters.
13134 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13135 # The LINGUAS file contains the set of available languages.
13136 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13137 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13138 fi
13139 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13140 # Hide the ALL_LINGUAS assigment from automake.
13141 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13142 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13143 else
13144 # The set of available languages was given in configure.in.
13145 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13146 fi
13147 # Compute POFILES
13148 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
13149 # Compute UPDATEPOFILES
13150 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
13151 # Compute DUMMYPOFILES
13152 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
13153 # Compute GMOFILES
13154 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
13155 case "$ac_given_srcdir" in
13156 .) srcdirpre= ;;
13157 *) srcdirpre='$(srcdir)/' ;;
13158 esac
13159 POFILES=
13160 UPDATEPOFILES=
13161 DUMMYPOFILES=
13162 GMOFILES=
13163 for lang in $ALL_LINGUAS; do
13164 POFILES="$POFILES $srcdirpre$lang.po"
13165 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13166 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13167 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13168 done
13169 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13170 # environment variable.
13171 INST_LINGUAS=
13172 if test -n "$ALL_LINGUAS"; then
13173 for presentlang in $ALL_LINGUAS; do
13174 useit=no
13175 if test "%UNSET%" != "$LINGUAS"; then
13176 desiredlanguages="$LINGUAS"
13177 else
13178 desiredlanguages="$ALL_LINGUAS"
13179 fi
13180 for desiredlang in $desiredlanguages; do
13181 # Use the presentlang catalog if desiredlang is
13182 # a. equal to presentlang, or
13183 # b. a variant of presentlang (because in this case,
13184 # presentlang can be used as a fallback for messages
13185 # which are not translated in the desiredlang catalog).
13186 case "$desiredlang" in
13187 "$presentlang"*) useit=yes;;
13188 esac
13189 done
13190 if test $useit = yes; then
13191 INST_LINGUAS="$INST_LINGUAS $presentlang"
13192 fi
13193 done
13194 fi
13195 CATALOGS=
13196 if test -n "$INST_LINGUAS"; then
13197 for lang in $INST_LINGUAS; do
13198 CATALOGS="$CATALOGS $lang.gmo"
13199 done
13200 fi
13201 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13202 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"
13203 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13204 if test -f "$f"; then
13205 case "$f" in
13206 *.orig | *.bak | *~) ;;
13207 *) cat "$f" >> "$ac_dir/Makefile" ;;
13208 esac
13209 fi
13210 done
13211 fi
13212 ;;
13213 esac
13214 done ;;
13215
13216 esac
13217done # for ac_tag
13218
13219
13220{ (exit 0); exit 0; }
13221_ACEOF
13222chmod +x $CONFIG_STATUS
13223ac_clean_files=$ac_clean_files_save
13224
13225
13226# configure is writing to config.log, and then calls config.status.
13227# config.status does its own redirection, appending to config.log.
13228# Unfortunately, on DOS this fails, as config.log is still kept open
13229# by configure, so config.status won't be able to write to it; its
13230# output is simply discarded. So we exec the FD to /dev/null,
13231# effectively closing config.log, so it can be properly (re)opened and
13232# appended to by config.status. When coming back to configure, we
13233# need to make the FD available again.
13234if test "$no_create" != yes; then
13235 ac_cs_success=:
13236 ac_config_status_args=
13237 test "$silent" = yes &&
13238 ac_config_status_args="$ac_config_status_args --quiet"
13239 exec 5>/dev/null
13240 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13241 exec 5>>config.log
13242 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13243 # would make configure fail if this is the last instruction.
13244 $ac_cs_success || { (exit 1); exit 1; }
13245fi
13246