]> git.ipfire.org Git - thirdparty/sarg.git/blame - configure
Applied an extended version of debian patch: opensuse_5_limit_sprintf.patch
[thirdparty/sarg.git] / configure
CommitLineData
25697a35
GS
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
0743911c 3# Generated by GNU Autoconf 2.61.
25697a35 4#
0743911c
FM
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
25697a35
GS
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
0743911c
FM
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
25697a35
GS
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+"$@"}'='"$@"'
0743911c
FM
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
25697a35 51fi
25697a35
GS
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
0743911c
FM
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
25697a35 94# Work around bugs in pre-3.0 UWIN ksh.
0743911c
FM
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
25697a35
GS
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
0743911c 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25697a35
GS
112 fi
113done
114
115# Required to use basename.
0743911c
FM
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25697a35
GS
118 as_expr=expr
119else
120 as_expr=false
121fi
122
0743911c 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25697a35
GS
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
0743911c 131as_me=`$as_basename -- "$0" ||
25697a35
GS
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
0743911c 134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25697a35 135echo X/"$0" |
0743911c
FM
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'`
25697a35 149
0743911c
FM
150# CDPATH.
151$as_unset CDPATH
25697a35 152
25697a35 153
0743911c
FM
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
25697a35
GS
159fi
160
0743911c
FM
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}
25697a35 177
0743911c
FM
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
25697a35 185
0743911c
FM
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=
25697a35
GS
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=.
0743911c 226 case $as_dir in
25697a35 227 /*)
0743911c
FM
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(
25697a35
GS
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
25697a35 330 test "x$as_lineno_1" != "x$as_lineno_2" &&
0743911c
FM
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" || {
25697a35
GS
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
0743911c
FM
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.
25697a35 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
0743911c
FM
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 |
25697a35 442 sed '
0743911c
FM
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
25697a35 447 N
0743911c
FM
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25697a35 450 t loop
0743911c 451 s/-\n.*//
25697a35 452 ' >$as_me.lineno &&
0743911c 453 chmod +x "$as_me.lineno" ||
25697a35
GS
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
0743911c
FM
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
25697a35
GS
461 # Exit status is that of the last command.
462 exit
463}
464
465
0743911c
FM
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';;
25697a35
GS
481esac
482
0743911c
FM
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25697a35
GS
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
0743911c
FM
491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
25697a35
GS
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
0743911c
FM
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 ||
25697a35 505 as_ln_s='cp -p'
25697a35
GS
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
0743911c
FM
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
25697a35
GS
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
0743911c
FM
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
25697a35
GS
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
25697a35 551
0743911c 552exec 7<&0 </dev/null 6>&1
25697a35
GS
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
25697a35
GS
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
0743911c 563ac_clean_files=
25697a35 564ac_config_libobj_dir=.
0743911c 565LIBOBJS=
25697a35
GS
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
25697a35
GS
572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="log.c"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
0743911c 583#ifdef HAVE_SYS_TYPES_H
25697a35
GS
584# include <sys/types.h>
585#endif
0743911c 586#ifdef HAVE_SYS_STAT_H
25697a35
GS
587# include <sys/stat.h>
588#endif
0743911c 589#ifdef STDC_HEADERS
25697a35
GS
590# include <stdlib.h>
591# include <stddef.h>
592#else
0743911c 593# ifdef HAVE_STDLIB_H
25697a35
GS
594# include <stdlib.h>
595# endif
596#endif
0743911c
FM
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
25697a35
GS
599# include <memory.h>
600# endif
601# include <string.h>
602#endif
0743911c 603#ifdef HAVE_STRINGS_H
25697a35
GS
604# include <strings.h>
605#endif
0743911c 606#ifdef HAVE_INTTYPES_H
25697a35 607# include <inttypes.h>
25697a35 608#endif
0743911c
FM
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
25697a35
GS
613# include <unistd.h>
614#endif"
615
0743911c
FM
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
653build
654build_cpu
655build_vendor
656build_os
657host
658host_cpu
659host_vendor
660host_os
661CC
662CFLAGS
663LDFLAGS
664CPPFLAGS
665ac_ct_CC
666EXEEXT
667OBJEXT
668CPP
669GREP
670EGREP
671LIBICONV
672LTLIBICONV
673BINDIR
674MANDIR
675SYSCONFDIR
676HTMLDIR
677LIBOBJS
678LTLIBOBJS'
25697a35 679ac_subst_files=''
0743911c
FM
680 ac_precious_vars='build_alias
681host_alias
682target_alias
683CC
684CFLAGS
685LDFLAGS
686LIBS
687CPPFLAGS
688CPP'
689
25697a35
GS
690
691# Initialize some variables set by options.
692ac_init_help=
693ac_init_version=false
694# The variables have the same names as the options, with
695# dashes changed to underlines.
696cache_file=/dev/null
697exec_prefix=NONE
698no_create=
699no_recursion=
700prefix=NONE
701program_prefix=NONE
702program_suffix=NONE
703program_transform_name=s,x,x,
704silent=
705site=
706srcdir=
707verbose=
708x_includes=NONE
709x_libraries=NONE
710
711# Installation directory options.
712# These are left unexpanded so users can "make install exec_prefix=/foo"
713# and all the variables that are supposed to be based on exec_prefix
714# by default will actually change.
715# Use braces instead of parens because sh, perl, etc. also accept them.
0743911c 716# (The list follows the same order as the GNU Coding Standards.)
25697a35
GS
717bindir='${exec_prefix}/bin'
718sbindir='${exec_prefix}/sbin'
719libexecdir='${exec_prefix}/libexec'
0743911c
FM
720datarootdir='${prefix}/share'
721datadir='${datarootdir}'
25697a35
GS
722sysconfdir='${prefix}/etc'
723sharedstatedir='${prefix}/com'
724localstatedir='${prefix}/var'
25697a35
GS
725includedir='${prefix}/include'
726oldincludedir='/usr/include'
0743911c
FM
727docdir='${datarootdir}/doc/${PACKAGE}'
728infodir='${datarootdir}/info'
729htmldir='${docdir}'
730dvidir='${docdir}'
731pdfdir='${docdir}'
732psdir='${docdir}'
733libdir='${exec_prefix}/lib'
734localedir='${datarootdir}/locale'
735mandir='${datarootdir}/man'
25697a35
GS
736
737ac_prev=
0743911c 738ac_dashdash=
25697a35
GS
739for ac_option
740do
741 # If the previous option needs an argument, assign it.
742 if test -n "$ac_prev"; then
0743911c 743 eval $ac_prev=\$ac_option
25697a35
GS
744 ac_prev=
745 continue
746 fi
747
0743911c
FM
748 case $ac_option in
749 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
750 *) ac_optarg=yes ;;
751 esac
25697a35
GS
752
753 # Accept the important Cygnus configure options, so we can diagnose typos.
754
0743911c
FM
755 case $ac_dashdash$ac_option in
756 --)
757 ac_dashdash=yes ;;
25697a35
GS
758
759 -bindir | --bindir | --bindi | --bind | --bin | --bi)
760 ac_prev=bindir ;;
761 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
762 bindir=$ac_optarg ;;
763
764 -build | --build | --buil | --bui | --bu)
765 ac_prev=build_alias ;;
766 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
767 build_alias=$ac_optarg ;;
768
769 -cache-file | --cache-file | --cache-fil | --cache-fi \
770 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
771 ac_prev=cache_file ;;
772 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
773 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
774 cache_file=$ac_optarg ;;
775
776 --config-cache | -C)
777 cache_file=config.cache ;;
778
0743911c 779 -datadir | --datadir | --datadi | --datad)
25697a35 780 ac_prev=datadir ;;
0743911c 781 -datadir=* | --datadir=* | --datadi=* | --datad=*)
25697a35
GS
782 datadir=$ac_optarg ;;
783
0743911c
FM
784 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
785 | --dataroo | --dataro | --datar)
786 ac_prev=datarootdir ;;
787 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
788 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
789 datarootdir=$ac_optarg ;;
790
25697a35
GS
791 -disable-* | --disable-*)
792 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
793 # Reject names that are not valid shell variable names.
0743911c 794 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
25697a35
GS
795 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
796 { (exit 1); exit 1; }; }
0743911c
FM
797 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
798 eval enable_$ac_feature=no ;;
799
800 -docdir | --docdir | --docdi | --doc | --do)
801 ac_prev=docdir ;;
802 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
803 docdir=$ac_optarg ;;
804
805 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
806 ac_prev=dvidir ;;
807 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
808 dvidir=$ac_optarg ;;
25697a35
GS
809
810 -enable-* | --enable-*)
811 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
812 # Reject names that are not valid shell variable names.
0743911c 813 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
25697a35
GS
814 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
815 { (exit 1); exit 1; }; }
0743911c
FM
816 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
817 eval enable_$ac_feature=\$ac_optarg ;;
25697a35
GS
818
819 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
820 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
821 | --exec | --exe | --ex)
822 ac_prev=exec_prefix ;;
823 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
824 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
825 | --exec=* | --exe=* | --ex=*)
826 exec_prefix=$ac_optarg ;;
827
828 -gas | --gas | --ga | --g)
829 # Obsolete; use --with-gas.
830 with_gas=yes ;;
831
832 -help | --help | --hel | --he | -h)
833 ac_init_help=long ;;
834 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
835 ac_init_help=recursive ;;
836 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
837 ac_init_help=short ;;
838
839 -host | --host | --hos | --ho)
840 ac_prev=host_alias ;;
841 -host=* | --host=* | --hos=* | --ho=*)
842 host_alias=$ac_optarg ;;
843
0743911c
FM
844 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
845 ac_prev=htmldir ;;
846 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
847 | --ht=*)
848 htmldir=$ac_optarg ;;
849
25697a35
GS
850 -includedir | --includedir | --includedi | --included | --include \
851 | --includ | --inclu | --incl | --inc)
852 ac_prev=includedir ;;
853 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
854 | --includ=* | --inclu=* | --incl=* | --inc=*)
855 includedir=$ac_optarg ;;
856
857 -infodir | --infodir | --infodi | --infod | --info | --inf)
858 ac_prev=infodir ;;
859 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
860 infodir=$ac_optarg ;;
861
862 -libdir | --libdir | --libdi | --libd)
863 ac_prev=libdir ;;
864 -libdir=* | --libdir=* | --libdi=* | --libd=*)
865 libdir=$ac_optarg ;;
866
867 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
868 | --libexe | --libex | --libe)
869 ac_prev=libexecdir ;;
870 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
871 | --libexe=* | --libex=* | --libe=*)
872 libexecdir=$ac_optarg ;;
873
0743911c
FM
874 -localedir | --localedir | --localedi | --localed | --locale)
875 ac_prev=localedir ;;
876 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
877 localedir=$ac_optarg ;;
878
25697a35 879 -localstatedir | --localstatedir | --localstatedi | --localstated \
0743911c 880 | --localstate | --localstat | --localsta | --localst | --locals)
25697a35
GS
881 ac_prev=localstatedir ;;
882 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
0743911c 883 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
25697a35
GS
884 localstatedir=$ac_optarg ;;
885
886 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
887 ac_prev=mandir ;;
888 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
889 mandir=$ac_optarg ;;
890
891 -nfp | --nfp | --nf)
892 # Obsolete; use --without-fp.
893 with_fp=no ;;
894
895 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
896 | --no-cr | --no-c | -n)
897 no_create=yes ;;
898
899 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
900 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
901 no_recursion=yes ;;
902
903 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
904 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
905 | --oldin | --oldi | --old | --ol | --o)
906 ac_prev=oldincludedir ;;
907 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
908 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
909 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
910 oldincludedir=$ac_optarg ;;
911
912 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
913 ac_prev=prefix ;;
914 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
915 prefix=$ac_optarg ;;
916
917 -program-prefix | --program-prefix | --program-prefi | --program-pref \
918 | --program-pre | --program-pr | --program-p)
919 ac_prev=program_prefix ;;
920 -program-prefix=* | --program-prefix=* | --program-prefi=* \
921 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
922 program_prefix=$ac_optarg ;;
923
924 -program-suffix | --program-suffix | --program-suffi | --program-suff \
925 | --program-suf | --program-su | --program-s)
926 ac_prev=program_suffix ;;
927 -program-suffix=* | --program-suffix=* | --program-suffi=* \
928 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
929 program_suffix=$ac_optarg ;;
930
931 -program-transform-name | --program-transform-name \
932 | --program-transform-nam | --program-transform-na \
933 | --program-transform-n | --program-transform- \
934 | --program-transform | --program-transfor \
935 | --program-transfo | --program-transf \
936 | --program-trans | --program-tran \
937 | --progr-tra | --program-tr | --program-t)
938 ac_prev=program_transform_name ;;
939 -program-transform-name=* | --program-transform-name=* \
940 | --program-transform-nam=* | --program-transform-na=* \
941 | --program-transform-n=* | --program-transform-=* \
942 | --program-transform=* | --program-transfor=* \
943 | --program-transfo=* | --program-transf=* \
944 | --program-trans=* | --program-tran=* \
945 | --progr-tra=* | --program-tr=* | --program-t=*)
946 program_transform_name=$ac_optarg ;;
947
0743911c
FM
948 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
949 ac_prev=pdfdir ;;
950 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
951 pdfdir=$ac_optarg ;;
952
953 -psdir | --psdir | --psdi | --psd | --ps)
954 ac_prev=psdir ;;
955 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
956 psdir=$ac_optarg ;;
957
25697a35
GS
958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
959 | -silent | --silent | --silen | --sile | --sil)
960 silent=yes ;;
961
962 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
963 ac_prev=sbindir ;;
964 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
965 | --sbi=* | --sb=*)
966 sbindir=$ac_optarg ;;
967
968 -sharedstatedir | --sharedstatedir | --sharedstatedi \
969 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
970 | --sharedst | --shareds | --shared | --share | --shar \
971 | --sha | --sh)
972 ac_prev=sharedstatedir ;;
973 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
974 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
975 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
976 | --sha=* | --sh=*)
977 sharedstatedir=$ac_optarg ;;
978
979 -site | --site | --sit)
980 ac_prev=site ;;
981 -site=* | --site=* | --sit=*)
982 site=$ac_optarg ;;
983
984 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
985 ac_prev=srcdir ;;
986 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
987 srcdir=$ac_optarg ;;
988
989 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
990 | --syscon | --sysco | --sysc | --sys | --sy)
991 ac_prev=sysconfdir ;;
992 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
993 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
994 sysconfdir=$ac_optarg ;;
995
996 -target | --target | --targe | --targ | --tar | --ta | --t)
997 ac_prev=target_alias ;;
998 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
999 target_alias=$ac_optarg ;;
1000
1001 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1002 verbose=yes ;;
1003
1004 -version | --version | --versio | --versi | --vers | -V)
1005 ac_init_version=: ;;
1006
1007 -with-* | --with-*)
1008 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1009 # Reject names that are not valid shell variable names.
0743911c 1010 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
25697a35
GS
1011 { echo "$as_me: error: invalid package name: $ac_package" >&2
1012 { (exit 1); exit 1; }; }
0743911c
FM
1013 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1014 eval with_$ac_package=\$ac_optarg ;;
25697a35
GS
1015
1016 -without-* | --without-*)
1017 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1018 # Reject names that are not valid shell variable names.
0743911c 1019 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
25697a35
GS
1020 { echo "$as_me: error: invalid package name: $ac_package" >&2
1021 { (exit 1); exit 1; }; }
0743911c
FM
1022 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1023 eval with_$ac_package=no ;;
25697a35
GS
1024
1025 --x)
1026 # Obsolete; use --with-x.
1027 with_x=yes ;;
1028
1029 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1030 | --x-incl | --x-inc | --x-in | --x-i)
1031 ac_prev=x_includes ;;
1032 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1033 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1034 x_includes=$ac_optarg ;;
1035
1036 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1037 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1038 ac_prev=x_libraries ;;
1039 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1040 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1041 x_libraries=$ac_optarg ;;
1042
1043 -*) { echo "$as_me: error: unrecognized option: $ac_option
1044Try \`$0 --help' for more information." >&2
1045 { (exit 1); exit 1; }; }
1046 ;;
1047
1048 *=*)
1049 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1052 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1053 { (exit 1); exit 1; }; }
0743911c 1054 eval $ac_envvar=\$ac_optarg
25697a35
GS
1055 export $ac_envvar ;;
1056
1057 *)
1058 # FIXME: should be removed in autoconf 3.0.
1059 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1060 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1061 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1062 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1063 ;;
1064
1065 esac
1066done
1067
1068if test -n "$ac_prev"; then
1069 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1070 { echo "$as_me: error: missing argument to $ac_option" >&2
1071 { (exit 1); exit 1; }; }
1072fi
1073
0743911c
FM
1074# Be sure to have absolute directory names.
1075for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1076 datadir sysconfdir sharedstatedir localstatedir includedir \
1077 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1078 libdir localedir mandir
25697a35 1079do
0743911c 1080 eval ac_val=\$$ac_var
25697a35 1081 case $ac_val in
0743911c
FM
1082 [\\/$]* | ?:[\\/]* ) continue;;
1083 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
25697a35 1084 esac
0743911c
FM
1085 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1086 { (exit 1); exit 1; }; }
25697a35
GS
1087done
1088
1089# There might be people who depend on the old broken behavior: `$host'
1090# used to hold the argument of --host etc.
1091# FIXME: To remove some day.
1092build=$build_alias
1093host=$host_alias
1094target=$target_alias
1095
1096# FIXME: To remove some day.
1097if test "x$host_alias" != x; then
1098 if test "x$build_alias" = x; then
1099 cross_compiling=maybe
1100 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1101 If a cross compiler is detected then cross compile mode will be used." >&2
1102 elif test "x$build_alias" != "x$host_alias"; then
1103 cross_compiling=yes
1104 fi
1105fi
1106
1107ac_tool_prefix=
1108test -n "$host_alias" && ac_tool_prefix=$host_alias-
1109
1110test "$silent" = yes && exec 6>/dev/null
1111
1112
0743911c
FM
1113ac_pwd=`pwd` && test -n "$ac_pwd" &&
1114ac_ls_di=`ls -di .` &&
1115ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1116 { echo "$as_me: error: Working directory cannot be determined" >&2
1117 { (exit 1); exit 1; }; }
1118test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1119 { echo "$as_me: error: pwd does not report name of working directory" >&2
1120 { (exit 1); exit 1; }; }
1121
1122
25697a35
GS
1123# Find the source files, if location was not specified.
1124if test -z "$srcdir"; then
1125 ac_srcdir_defaulted=yes
0743911c
FM
1126 # Try the directory containing this script, then the parent directory.
1127 ac_confdir=`$as_dirname -- "$0" ||
25697a35
GS
1128$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1129 X"$0" : 'X\(//\)[^/]' \| \
1130 X"$0" : 'X\(//\)$' \| \
0743911c 1131 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25697a35 1132echo X"$0" |
0743911c
FM
1133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1134 s//\1/
1135 q
1136 }
1137 /^X\(\/\/\)[^/].*/{
1138 s//\1/
1139 q
1140 }
1141 /^X\(\/\/\)$/{
1142 s//\1/
1143 q
1144 }
1145 /^X\(\/\).*/{
1146 s//\1/
1147 q
1148 }
1149 s/.*/./; q'`
25697a35 1150 srcdir=$ac_confdir
0743911c 1151 if test ! -r "$srcdir/$ac_unique_file"; then
25697a35
GS
1152 srcdir=..
1153 fi
1154else
1155 ac_srcdir_defaulted=no
1156fi
0743911c
FM
1157if test ! -r "$srcdir/$ac_unique_file"; then
1158 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1159 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
25697a35 1160 { (exit 1); exit 1; }; }
25697a35 1161fi
0743911c
FM
1162ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1163ac_abs_confdir=`(
1164 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
25697a35 1165 { (exit 1); exit 1; }; }
0743911c
FM
1166 pwd)`
1167# When building in place, set srcdir=.
1168if test "$ac_abs_confdir" = "$ac_pwd"; then
1169 srcdir=.
1170fi
1171# Remove unnecessary trailing slashes from srcdir.
1172# Double slashes in file names in object file debugging info
1173# mess up M-x gdb in Emacs.
1174case $srcdir in
1175*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1176esac
1177for ac_var in $ac_precious_vars; do
1178 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1179 eval ac_env_${ac_var}_value=\$${ac_var}
1180 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1181 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1182done
25697a35
GS
1183
1184#
1185# Report the --help message.
1186#
1187if test "$ac_init_help" = "long"; then
1188 # Omit some internal or obsolete options to make the list less imposing.
1189 # This message is too long to be a string in the A/UX 3.1 sh.
1190 cat <<_ACEOF
1191\`configure' configures this package to adapt to many kinds of systems.
1192
1193Usage: $0 [OPTION]... [VAR=VALUE]...
1194
1195To assign environment variables (e.g., CC, CFLAGS...), specify them as
1196VAR=VALUE. See below for descriptions of some of the useful variables.
1197
1198Defaults for the options are specified in brackets.
1199
1200Configuration:
1201 -h, --help display this help and exit
1202 --help=short display options specific to this package
1203 --help=recursive display the short help of all the included packages
1204 -V, --version display version information and exit
1205 -q, --quiet, --silent do not print \`checking...' messages
1206 --cache-file=FILE cache test results in FILE [disabled]
1207 -C, --config-cache alias for \`--cache-file=config.cache'
1208 -n, --no-create do not create output files
1209 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1210
25697a35
GS
1211Installation directories:
1212 --prefix=PREFIX install architecture-independent files in PREFIX
1213 [$ac_default_prefix]
1214 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1215 [PREFIX]
1216
1217By default, \`make install' will install all the files in
1218\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1219an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1220for instance \`--prefix=\$HOME'.
1221
1222For better control, use the options below.
1223
1224Fine tuning of the installation directories:
1225 --bindir=DIR user executables [EPREFIX/bin]
1226 --sbindir=DIR system admin executables [EPREFIX/sbin]
1227 --libexecdir=DIR program executables [EPREFIX/libexec]
25697a35
GS
1228 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1229 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1230 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1231 --libdir=DIR object code libraries [EPREFIX/lib]
1232 --includedir=DIR C header files [PREFIX/include]
1233 --oldincludedir=DIR C header files for non-gcc [/usr/include]
0743911c
FM
1234 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1235 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1236 --infodir=DIR info documentation [DATAROOTDIR/info]
1237 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1238 --mandir=DIR man documentation [DATAROOTDIR/man]
1239 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1240 --htmldir=DIR html documentation [DOCDIR]
1241 --dvidir=DIR dvi documentation [DOCDIR]
1242 --pdfdir=DIR pdf documentation [DOCDIR]
1243 --psdir=DIR ps documentation [DOCDIR]
25697a35
GS
1244_ACEOF
1245
1246 cat <<\_ACEOF
1247
1248System types:
1249 --build=BUILD configure for building on BUILD [guessed]
1250 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1251_ACEOF
1252fi
1253
1254if test -n "$ac_init_help"; then
1255
1256 cat <<\_ACEOF
1257
1258Optional Features:
1259 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1260 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
d6e703cc 1261 --disable-rpath do not hardcode runtime library paths
32e71fa4 1262 --disable-largefile omit support for large files
25697a35
GS
1263 --enable-bindir=bindir
1264 Select bindir
1265 --enable-mandir=mandir
1266 Select mandir
1267 --enable-sysconfdir=sysconfdir
1268 Select sysconfdir
1269 --enable-htmldir=htmldir
1270 Select htmldir
1271
1272Optional Packages:
1273 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1274 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1275 --without-gcc use CC to compile
d6e703cc
FM
1276 --with-gnu-ld assume the C compiler uses GNU ld default=no
1277 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1278 --without-libiconv-prefix don't search for libiconv in includedir and libdir
25697a35
GS
1279
1280Some influential environment variables:
1281 CC C compiler command
1282 CFLAGS C compiler flags
1283 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1284 nonstandard directory <lib dir>
0743911c
FM
1285 LIBS libraries to pass to the linker, e.g. -l<library>
1286 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1287 you have headers in a nonstandard directory <include dir>
25697a35
GS
1288 CPP C preprocessor
1289
1290Use these variables to override the choices made by `configure' or to help
1291it to find libraries and programs with nonstandard names/locations.
1292
1293_ACEOF
0743911c 1294ac_status=$?
25697a35
GS
1295fi
1296
1297if test "$ac_init_help" = "recursive"; then
1298 # If there are subdirs, report their specific --help.
25697a35 1299 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
0743911c 1300 test -d "$ac_dir" || continue
25697a35
GS
1301 ac_builddir=.
1302
0743911c
FM
1303case "$ac_dir" in
1304.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1305*)
25697a35 1306 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
0743911c
FM
1307 # A ".." for each directory in $ac_dir_suffix.
1308 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1309 case $ac_top_builddir_sub in
1310 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1311 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1312 esac ;;
1313esac
1314ac_abs_top_builddir=$ac_pwd
1315ac_abs_builddir=$ac_pwd$ac_dir_suffix
1316# for backward compatibility:
1317ac_top_builddir=$ac_top_build_prefix
25697a35
GS
1318
1319case $srcdir in
0743911c 1320 .) # We are building in place.
25697a35 1321 ac_srcdir=.
0743911c
FM
1322 ac_top_srcdir=$ac_top_builddir_sub
1323 ac_abs_top_srcdir=$ac_pwd ;;
1324 [\\/]* | ?:[\\/]* ) # Absolute name.
25697a35 1325 ac_srcdir=$srcdir$ac_dir_suffix;
0743911c
FM
1326 ac_top_srcdir=$srcdir
1327 ac_abs_top_srcdir=$srcdir ;;
1328 *) # Relative name.
1329 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1330 ac_top_srcdir=$ac_top_build_prefix$srcdir
1331 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25697a35 1332esac
0743911c
FM
1333ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1334
1335 cd "$ac_dir" || { ac_status=$?; continue; }
1336 # Check for guested configure.
1337 if test -f "$ac_srcdir/configure.gnu"; then
1338 echo &&
1339 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1340 elif test -f "$ac_srcdir/configure"; then
1341 echo &&
1342 $SHELL "$ac_srcdir/configure" --help=recursive
25697a35
GS
1343 else
1344 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
0743911c
FM
1345 fi || ac_status=$?
1346 cd "$ac_pwd" || { ac_status=$?; break; }
25697a35
GS
1347 done
1348fi
1349
0743911c 1350test -n "$ac_init_help" && exit $ac_status
25697a35
GS
1351if $ac_init_version; then
1352 cat <<\_ACEOF
0743911c
FM
1353configure
1354generated by GNU Autoconf 2.61
25697a35 1355
0743911c
FM
1356Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13572002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
25697a35
GS
1358This configure script is free software; the Free Software Foundation
1359gives unlimited permission to copy, distribute and modify it.
1360_ACEOF
0743911c 1361 exit
25697a35 1362fi
0743911c 1363cat >config.log <<_ACEOF
25697a35
GS
1364This file contains any messages produced by compilers while
1365running configure, to aid debugging if configure makes a mistake.
1366
1367It was created by $as_me, which was
0743911c 1368generated by GNU Autoconf 2.61. Invocation command line was
25697a35
GS
1369
1370 $ $0 $@
1371
1372_ACEOF
0743911c 1373exec 5>>config.log
25697a35
GS
1374{
1375cat <<_ASUNAME
1376## --------- ##
1377## Platform. ##
1378## --------- ##
1379
1380hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1381uname -m = `(uname -m) 2>/dev/null || echo unknown`
1382uname -r = `(uname -r) 2>/dev/null || echo unknown`
1383uname -s = `(uname -s) 2>/dev/null || echo unknown`
1384uname -v = `(uname -v) 2>/dev/null || echo unknown`
1385
1386/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1387/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1388
1389/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1390/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1391/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
0743911c 1392/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
25697a35
GS
1393/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1394/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1395/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1396
1397_ASUNAME
1398
1399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400for as_dir in $PATH
1401do
1402 IFS=$as_save_IFS
1403 test -z "$as_dir" && as_dir=.
1404 echo "PATH: $as_dir"
1405done
0743911c 1406IFS=$as_save_IFS
25697a35
GS
1407
1408} >&5
1409
1410cat >&5 <<_ACEOF
1411
1412
1413## ----------- ##
1414## Core tests. ##
1415## ----------- ##
1416
1417_ACEOF
1418
1419
1420# Keep a trace of the command line.
1421# Strip out --no-create and --no-recursion so they do not pile up.
1422# Strip out --silent because we don't want to record it for future runs.
1423# Also quote any args containing shell meta-characters.
1424# Make two passes to allow for proper duplicate-argument suppression.
1425ac_configure_args=
1426ac_configure_args0=
1427ac_configure_args1=
25697a35
GS
1428ac_must_keep_next=false
1429for ac_pass in 1 2
1430do
1431 for ac_arg
1432 do
1433 case $ac_arg in
1434 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1435 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1436 | -silent | --silent | --silen | --sile | --sil)
1437 continue ;;
0743911c 1438 *\'*)
25697a35
GS
1439 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1440 esac
1441 case $ac_pass in
1442 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1443 2)
1444 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1445 if test $ac_must_keep_next = true; then
1446 ac_must_keep_next=false # Got value, back to normal.
1447 else
1448 case $ac_arg in
1449 *=* | --config-cache | -C | -disable-* | --disable-* \
1450 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1451 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1452 | -with-* | --with-* | -without-* | --without-* | --x)
1453 case "$ac_configure_args0 " in
1454 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1455 esac
1456 ;;
1457 -* ) ac_must_keep_next=true ;;
1458 esac
1459 fi
0743911c 1460 ac_configure_args="$ac_configure_args '$ac_arg'"
25697a35
GS
1461 ;;
1462 esac
1463 done
1464done
1465$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1466$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1467
1468# When interrupted or exit'd, cleanup temporary files, and complete
1469# config.log. We remove comments because anyway the quotes in there
1470# would cause problems or look ugly.
0743911c
FM
1471# WARNING: Use '\'' to represent an apostrophe within the trap.
1472# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
25697a35
GS
1473trap 'exit_status=$?
1474 # Save into config.log some information that might help in debugging.
1475 {
1476 echo
1477
1478 cat <<\_ASBOX
1479## ---------------- ##
1480## Cache variables. ##
1481## ---------------- ##
1482_ASBOX
1483 echo
1484 # The following way of writing the cache mishandles newlines in values,
0743911c
FM
1485(
1486 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1487 eval ac_val=\$$ac_var
1488 case $ac_val in #(
1489 *${as_nl}*)
1490 case $ac_var in #(
1491 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1492echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1493 esac
1494 case $ac_var in #(
1495 _ | IFS | as_nl) ;; #(
1496 *) $as_unset $ac_var ;;
1497 esac ;;
1498 esac
1499 done
25697a35 1500 (set) 2>&1 |
0743911c
FM
1501 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1502 *${as_nl}ac_space=\ *)
25697a35 1503 sed -n \
0743911c
FM
1504 "s/'\''/'\''\\\\'\'''\''/g;
1505 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1506 ;; #(
25697a35 1507 *)
0743911c 1508 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25697a35 1509 ;;
0743911c
FM
1510 esac |
1511 sort
1512)
25697a35
GS
1513 echo
1514
1515 cat <<\_ASBOX
1516## ----------------- ##
1517## Output variables. ##
1518## ----------------- ##
1519_ASBOX
1520 echo
1521 for ac_var in $ac_subst_vars
1522 do
0743911c
FM
1523 eval ac_val=\$$ac_var
1524 case $ac_val in
1525 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1526 esac
1527 echo "$ac_var='\''$ac_val'\''"
25697a35
GS
1528 done | sort
1529 echo
1530
1531 if test -n "$ac_subst_files"; then
1532 cat <<\_ASBOX
0743911c
FM
1533## ------------------- ##
1534## File substitutions. ##
1535## ------------------- ##
25697a35
GS
1536_ASBOX
1537 echo
1538 for ac_var in $ac_subst_files
1539 do
0743911c
FM
1540 eval ac_val=\$$ac_var
1541 case $ac_val in
1542 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1543 esac
1544 echo "$ac_var='\''$ac_val'\''"
25697a35
GS
1545 done | sort
1546 echo
1547 fi
1548
1549 if test -s confdefs.h; then
1550 cat <<\_ASBOX
1551## ----------- ##
1552## confdefs.h. ##
1553## ----------- ##
1554_ASBOX
1555 echo
0743911c 1556 cat confdefs.h
25697a35
GS
1557 echo
1558 fi
1559 test "$ac_signal" != 0 &&
1560 echo "$as_me: caught signal $ac_signal"
1561 echo "$as_me: exit $exit_status"
1562 } >&5
0743911c
FM
1563 rm -f core *.core core.conftest.* &&
1564 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
25697a35 1565 exit $exit_status
0743911c 1566' 0
25697a35
GS
1567for ac_signal in 1 2 13 15; do
1568 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1569done
1570ac_signal=0
1571
1572# confdefs.h avoids OS command line length limits that DEFS can exceed.
0743911c 1573rm -f -r conftest* confdefs.h
25697a35
GS
1574
1575# Predefined preprocessor variables.
1576
1577cat >>confdefs.h <<_ACEOF
1578#define PACKAGE_NAME "$PACKAGE_NAME"
1579_ACEOF
1580
1581
1582cat >>confdefs.h <<_ACEOF
1583#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1584_ACEOF
1585
1586
1587cat >>confdefs.h <<_ACEOF
1588#define PACKAGE_VERSION "$PACKAGE_VERSION"
1589_ACEOF
1590
1591
1592cat >>confdefs.h <<_ACEOF
1593#define PACKAGE_STRING "$PACKAGE_STRING"
1594_ACEOF
1595
1596
1597cat >>confdefs.h <<_ACEOF
1598#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1599_ACEOF
1600
1601
1602# Let the site file select an alternate cache file if it wants to.
1603# Prefer explicitly selected file to automatically selected ones.
0743911c
FM
1604if test -n "$CONFIG_SITE"; then
1605 set x "$CONFIG_SITE"
1606elif test "x$prefix" != xNONE; then
1607 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1608else
1609 set x "$ac_default_prefix/share/config.site" \
1610 "$ac_default_prefix/etc/config.site"
25697a35 1611fi
0743911c
FM
1612shift
1613for ac_site_file
1614do
25697a35
GS
1615 if test -r "$ac_site_file"; then
1616 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1617echo "$as_me: loading site script $ac_site_file" >&6;}
1618 sed 's/^/| /' "$ac_site_file" >&5
1619 . "$ac_site_file"
1620 fi
1621done
1622
1623if test -r "$cache_file"; then
1624 # Some versions of bash will fail to source /dev/null (special
1625 # files actually), so we avoid doing that.
1626 if test -f "$cache_file"; then
1627 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1628echo "$as_me: loading cache $cache_file" >&6;}
1629 case $cache_file in
0743911c
FM
1630 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1631 *) . "./$cache_file";;
25697a35
GS
1632 esac
1633 fi
1634else
1635 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1636echo "$as_me: creating cache $cache_file" >&6;}
1637 >$cache_file
1638fi
1639
1640# Check that the precious variables saved in the cache have kept the same
1641# value.
1642ac_cache_corrupted=false
0743911c 1643for ac_var in $ac_precious_vars; do
25697a35
GS
1644 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1645 eval ac_new_set=\$ac_env_${ac_var}_set
0743911c
FM
1646 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1647 eval ac_new_val=\$ac_env_${ac_var}_value
25697a35
GS
1648 case $ac_old_set,$ac_new_set in
1649 set,)
1650 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1651echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1652 ac_cache_corrupted=: ;;
1653 ,set)
1654 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1655echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1656 ac_cache_corrupted=: ;;
1657 ,);;
1658 *)
1659 if test "x$ac_old_val" != "x$ac_new_val"; then
1660 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1661echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1662 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1663echo "$as_me: former value: $ac_old_val" >&2;}
1664 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1665echo "$as_me: current value: $ac_new_val" >&2;}
1666 ac_cache_corrupted=:
1667 fi;;
1668 esac
1669 # Pass precious variables to config.status.
1670 if test "$ac_new_set" = set; then
1671 case $ac_new_val in
0743911c 1672 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
25697a35
GS
1673 *) ac_arg=$ac_var=$ac_new_val ;;
1674 esac
1675 case " $ac_configure_args " in
1676 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1677 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1678 esac
1679 fi
1680done
1681if $ac_cache_corrupted; then
1682 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1683echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1684 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1685echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1686 { (exit 1); exit 1; }; }
1687fi
1688
25697a35
GS
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
0743911c
FM
1705ac_ext=c
1706ac_cpp='$CPP $CPPFLAGS'
1707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1709ac_compiler_gnu=$ac_cv_c_compiler_gnu
25697a35
GS
1710
1711
1712
1713ac_aux_dir=
0743911c
FM
1714for ac_dir in cfgaux "$srcdir"/cfgaux; do
1715 if test -f "$ac_dir/install-sh"; then
25697a35
GS
1716 ac_aux_dir=$ac_dir
1717 ac_install_sh="$ac_aux_dir/install-sh -c"
1718 break
0743911c 1719 elif test -f "$ac_dir/install.sh"; then
25697a35
GS
1720 ac_aux_dir=$ac_dir
1721 ac_install_sh="$ac_aux_dir/install.sh -c"
1722 break
0743911c 1723 elif test -f "$ac_dir/shtool"; then
25697a35
GS
1724 ac_aux_dir=$ac_dir
1725 ac_install_sh="$ac_aux_dir/shtool install -c"
1726 break
1727 fi
1728done
1729if test -z "$ac_aux_dir"; then
0743911c
FM
1730 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cfgaux \"$srcdir\"/cfgaux" >&5
1731echo "$as_me: error: cannot find install-sh or install.sh in cfgaux \"$srcdir\"/cfgaux" >&2;}
25697a35
GS
1732 { (exit 1); exit 1; }; }
1733fi
0743911c
FM
1734
1735# These three variables are undocumented and unsupported,
1736# and are intended to be withdrawn in a future Autoconf release.
1737# They can cause serious problems if a builder's source tree is in a directory
1738# whose full name contains unusual characters.
1739ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1740ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1741ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1742
25697a35
GS
1743
1744
1745LDFLAGS="-g"
1746
1747# Make sure we can run config.sub.
0743911c
FM
1748$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1749 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1750echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
25697a35
GS
1751 { (exit 1); exit 1; }; }
1752
0743911c
FM
1753{ echo "$as_me:$LINENO: checking build system type" >&5
1754echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
25697a35
GS
1755if test "${ac_cv_build+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1757else
0743911c
FM
1758 ac_build_alias=$build_alias
1759test "x$ac_build_alias" = x &&
1760 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1761test "x$ac_build_alias" = x &&
25697a35
GS
1762 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1763echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1764 { (exit 1); exit 1; }; }
0743911c
FM
1765ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1766 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1767echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
25697a35
GS
1768 { (exit 1); exit 1; }; }
1769
1770fi
0743911c
FM
1771{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1772echo "${ECHO_T}$ac_cv_build" >&6; }
1773case $ac_cv_build in
1774*-*-*) ;;
1775*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1776echo "$as_me: error: invalid value of canonical build" >&2;}
1777 { (exit 1); exit 1; }; };;
1778esac
25697a35 1779build=$ac_cv_build
0743911c
FM
1780ac_save_IFS=$IFS; IFS='-'
1781set x $ac_cv_build
1782shift
1783build_cpu=$1
1784build_vendor=$2
1785shift; shift
1786# Remember, the first character of IFS is used to create $*,
1787# except with old shells:
1788build_os=$*
1789IFS=$ac_save_IFS
1790case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1791
1792
1793{ echo "$as_me:$LINENO: checking host system type" >&5
1794echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
25697a35
GS
1795if test "${ac_cv_host+set}" = set; then
1796 echo $ECHO_N "(cached) $ECHO_C" >&6
1797else
0743911c
FM
1798 if test "x$host_alias" = x; then
1799 ac_cv_host=$ac_cv_build
1800else
1801 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1802 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1803echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
25697a35 1804 { (exit 1); exit 1; }; }
0743911c 1805fi
25697a35
GS
1806
1807fi
0743911c
FM
1808{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1809echo "${ECHO_T}$ac_cv_host" >&6; }
1810case $ac_cv_host in
1811*-*-*) ;;
1812*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1813echo "$as_me: error: invalid value of canonical host" >&2;}
1814 { (exit 1); exit 1; }; };;
1815esac
25697a35 1816host=$ac_cv_host
0743911c
FM
1817ac_save_IFS=$IFS; IFS='-'
1818set x $ac_cv_host
1819shift
1820host_cpu=$1
1821host_vendor=$2
1822shift; shift
1823# Remember, the first character of IFS is used to create $*,
1824# except with old shells:
1825host_os=$*
1826IFS=$ac_save_IFS
1827case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
25697a35
GS
1828
1829
1830
1831
0743911c 1832# Check whether --with-gcc was given.
25697a35 1833if test "${with_gcc+set}" = set; then
0743911c
FM
1834 withval=$with_gcc;
1835fi
25697a35 1836
25697a35
GS
1837
1838test -n "$CC" && cc_specified=yes
1839case ${with_gcc} in
1840 yes ) CC=gcc ;;
1841 no ) CC=cc ;;
1842 * ) ac_ext=c
1843ac_cpp='$CPP $CPPFLAGS'
1844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1846ac_compiler_gnu=$ac_cv_c_compiler_gnu
1847if test -n "$ac_tool_prefix"; then
1848 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1849set dummy ${ac_tool_prefix}gcc; ac_word=$2
0743911c
FM
1850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25697a35
GS
1852if test "${ac_cv_prog_CC+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1854else
1855 if test -n "$CC"; then
1856 ac_cv_prog_CC="$CC" # Let the user override the test.
1857else
1858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859for as_dir in $PATH
1860do
1861 IFS=$as_save_IFS
1862 test -z "$as_dir" && as_dir=.
1863 for ac_exec_ext in '' $ac_executable_extensions; do
0743911c 1864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25697a35
GS
1865 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867 break 2
1868 fi
1869done
1870done
0743911c 1871IFS=$as_save_IFS
25697a35
GS
1872
1873fi
1874fi
1875CC=$ac_cv_prog_CC
1876if test -n "$CC"; then
0743911c
FM
1877 { echo "$as_me:$LINENO: result: $CC" >&5
1878echo "${ECHO_T}$CC" >&6; }
25697a35 1879else
0743911c
FM
1880 { echo "$as_me:$LINENO: result: no" >&5
1881echo "${ECHO_T}no" >&6; }
25697a35
GS
1882fi
1883
0743911c 1884
25697a35
GS
1885fi
1886if test -z "$ac_cv_prog_CC"; then
1887 ac_ct_CC=$CC
1888 # Extract the first word of "gcc", so it can be a program name with args.
1889set dummy gcc; ac_word=$2
0743911c
FM
1890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25697a35
GS
1892if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1894else
1895 if test -n "$ac_ct_CC"; then
1896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1897else
1898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899for as_dir in $PATH
1900do
1901 IFS=$as_save_IFS
1902 test -z "$as_dir" && as_dir=.
1903 for ac_exec_ext in '' $ac_executable_extensions; do
0743911c 1904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25697a35
GS
1905 ac_cv_prog_ac_ct_CC="gcc"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907 break 2
1908 fi
1909done
1910done
0743911c 1911IFS=$as_save_IFS
25697a35
GS
1912
1913fi
1914fi
1915ac_ct_CC=$ac_cv_prog_ac_ct_CC
1916if test -n "$ac_ct_CC"; then
0743911c
FM
1917 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1918echo "${ECHO_T}$ac_ct_CC" >&6; }
25697a35 1919else
0743911c
FM
1920 { echo "$as_me:$LINENO: result: no" >&5
1921echo "${ECHO_T}no" >&6; }
25697a35
GS
1922fi
1923
0743911c
FM
1924 if test "x$ac_ct_CC" = x; then
1925 CC=""
1926 else
1927 case $cross_compiling:$ac_tool_warned in
1928yes:)
1929{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1930whose name does not start with the host triplet. If you think this
1931configuration is useful to you, please write to autoconf@gnu.org." >&5
1932echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1933whose name does not start with the host triplet. If you think this
1934configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1935ac_tool_warned=yes ;;
1936esac
1937 CC=$ac_ct_CC
1938 fi
25697a35
GS
1939else
1940 CC="$ac_cv_prog_CC"
1941fi
1942
1943if test -z "$CC"; then
0743911c
FM
1944 if test -n "$ac_tool_prefix"; then
1945 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
25697a35 1946set dummy ${ac_tool_prefix}cc; ac_word=$2
0743911c
FM
1947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25697a35
GS
1949if test "${ac_cv_prog_CC+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1951else
1952 if test -n "$CC"; then
1953 ac_cv_prog_CC="$CC" # Let the user override the test.
1954else
1955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956for as_dir in $PATH
1957do
1958 IFS=$as_save_IFS
1959 test -z "$as_dir" && as_dir=.
1960 for ac_exec_ext in '' $ac_executable_extensions; do
0743911c 1961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25697a35
GS
1962 ac_cv_prog_CC="${ac_tool_prefix}cc"
1963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964 break 2
1965 fi
1966done
1967done
0743911c 1968IFS=$as_save_IFS
25697a35
GS
1969
1970fi
1971fi
1972CC=$ac_cv_prog_CC
1973if test -n "$CC"; then
0743911c
FM
1974 { echo "$as_me:$LINENO: result: $CC" >&5
1975echo "${ECHO_T}$CC" >&6; }
25697a35 1976else
0743911c
FM
1977 { echo "$as_me:$LINENO: result: no" >&5
1978echo "${ECHO_T}no" >&6; }
25697a35
GS
1979fi
1980
25697a35 1981
0743911c 1982 fi
25697a35
GS
1983fi
1984if test -z "$CC"; then
1985 # Extract the first word of "cc", so it can be a program name with args.
1986set dummy cc; ac_word=$2
0743911c
FM
1987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25697a35
GS
1989if test "${ac_cv_prog_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991else
1992 if test -n "$CC"; then
1993 ac_cv_prog_CC="$CC" # Let the user override the test.
1994else
1995 ac_prog_rejected=no
1996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997for as_dir in $PATH
1998do
1999 IFS=$as_save_IFS
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
0743911c 2002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25697a35
GS
2003 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2004 ac_prog_rejected=yes
2005 continue
2006 fi
2007 ac_cv_prog_CC="cc"
2008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 break 2
2010 fi
2011done
2012done
0743911c 2013IFS=$as_save_IFS
25697a35
GS
2014
2015if test $ac_prog_rejected = yes; then
2016 # We found a bogon in the path, so make sure we never use it.
2017 set dummy $ac_cv_prog_CC
2018 shift
2019 if test $# != 0; then
2020 # We chose a different compiler from the bogus one.
2021 # However, it has the same basename, so the bogon will be chosen
2022 # first if we set CC to just the basename; use the full file name.
2023 shift
2024 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2025 fi
2026fi
2027fi
2028fi
2029CC=$ac_cv_prog_CC
2030if test -n "$CC"; then
0743911c
FM
2031 { echo "$as_me:$LINENO: result: $CC" >&5
2032echo "${ECHO_T}$CC" >&6; }
25697a35 2033else
0743911c
FM
2034 { echo "$as_me:$LINENO: result: no" >&5
2035echo "${ECHO_T}no" >&6; }
25697a35
GS
2036fi
2037
0743911c 2038
25697a35
GS
2039fi
2040if test -z "$CC"; then
2041 if test -n "$ac_tool_prefix"; then
0743911c 2042 for ac_prog in cl.exe
25697a35
GS
2043 do
2044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2045set dummy $ac_tool_prefix$ac_prog; ac_word=$2
0743911c
FM
2046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25697a35
GS
2048if test "${ac_cv_prog_CC+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050else
2051 if test -n "$CC"; then
2052 ac_cv_prog_CC="$CC" # Let the user override the test.
2053else
2054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055for as_dir in $PATH
2056do
2057 IFS=$as_save_IFS
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
0743911c 2060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25697a35
GS
2061 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 break 2
2064 fi
2065done
2066done
0743911c 2067IFS=$as_save_IFS
25697a35
GS
2068
2069fi
2070fi
2071CC=$ac_cv_prog_CC
2072if test -n "$CC"; then
0743911c
FM
2073 { echo "$as_me:$LINENO: result: $CC" >&5
2074echo "${ECHO_T}$CC" >&6; }
25697a35 2075else
0743911c
FM
2076 { echo "$as_me:$LINENO: result: no" >&5
2077echo "${ECHO_T}no" >&6; }
25697a35
GS
2078fi
2079
0743911c 2080
25697a35
GS
2081 test -n "$CC" && break
2082 done
2083fi
2084if test -z "$CC"; then
2085 ac_ct_CC=$CC
0743911c 2086 for ac_prog in cl.exe
25697a35
GS
2087do
2088 # Extract the first word of "$ac_prog", so it can be a program name with args.
2089set dummy $ac_prog; ac_word=$2
0743911c
FM
2090{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25697a35
GS
2092if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2094else
2095 if test -n "$ac_ct_CC"; then
2096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2097else
2098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099for as_dir in $PATH
2100do
2101 IFS=$as_save_IFS
2102 test -z "$as_dir" && as_dir=.
2103 for ac_exec_ext in '' $ac_executable_extensions; do
0743911c 2104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25697a35
GS
2105 ac_cv_prog_ac_ct_CC="$ac_prog"
2106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107 break 2
2108 fi
2109done
2110done
0743911c 2111IFS=$as_save_IFS
25697a35
GS
2112
2113fi
2114fi
2115ac_ct_CC=$ac_cv_prog_ac_ct_CC
2116if test -n "$ac_ct_CC"; then
0743911c
FM
2117 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2118echo "${ECHO_T}$ac_ct_CC" >&6; }
25697a35 2119else
0743911c
FM
2120 { echo "$as_me:$LINENO: result: no" >&5
2121echo "${ECHO_T}no" >&6; }
25697a35
GS
2122fi
2123
0743911c 2124
25697a35
GS
2125 test -n "$ac_ct_CC" && break
2126done
2127
0743911c
FM
2128 if test "x$ac_ct_CC" = x; then
2129 CC=""
2130 else
2131 case $cross_compiling:$ac_tool_warned in
2132yes:)
2133{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2134whose name does not start with the host triplet. If you think this
2135configuration is useful to you, please write to autoconf@gnu.org." >&5
2136echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2137whose name does not start with the host triplet. If you think this
2138configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2139ac_tool_warned=yes ;;
2140esac
2141 CC=$ac_ct_CC
2142 fi
25697a35
GS
2143fi
2144
2145fi
2146
2147
2148test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2149See \`config.log' for more details." >&5
2150echo "$as_me: error: no acceptable C compiler found in \$PATH
2151See \`config.log' for more details." >&2;}
2152 { (exit 1); exit 1; }; }
2153
2154# Provide some information about the compiler.
0743911c 2155echo "$as_me:$LINENO: checking for C compiler version" >&5
25697a35 2156ac_compiler=`set X $ac_compile; echo $2`
0743911c
FM
2157{ (ac_try="$ac_compiler --version >&5"
2158case "(($ac_try" in
2159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2160 *) ac_try_echo=$ac_try;;
2161esac
2162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2163 (eval "$ac_compiler --version >&5") 2>&5
25697a35
GS
2164 ac_status=$?
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }
0743911c
FM
2167{ (ac_try="$ac_compiler -v >&5"
2168case "(($ac_try" in
2169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2170 *) ac_try_echo=$ac_try;;
2171esac
2172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2173 (eval "$ac_compiler -v >&5") 2>&5
25697a35
GS
2174 ac_status=$?
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }
0743911c
FM
2177{ (ac_try="$ac_compiler -V >&5"
2178case "(($ac_try" in
2179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2180 *) ac_try_echo=$ac_try;;
2181esac
2182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2183 (eval "$ac_compiler -V >&5") 2>&5
25697a35
GS
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }
2187
2188cat >conftest.$ac_ext <<_ACEOF
2189/* confdefs.h. */
2190_ACEOF
2191cat confdefs.h >>conftest.$ac_ext
2192cat >>conftest.$ac_ext <<_ACEOF
2193/* end confdefs.h. */
2194
2195int
2196main ()
2197{
2198
2199 ;
2200 return 0;
2201}
2202_ACEOF
2203ac_clean_files_save=$ac_clean_files
2204ac_clean_files="$ac_clean_files a.out a.exe b.out"
2205# Try to create an executable without -o first, disregard a.out.
2206# It will help us diagnose broken compilers, and finding out an intuition
2207# of exeext.
0743911c
FM
2208{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2209echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
25697a35 2210ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
0743911c
FM
2211#
2212# List of possible output files, starting from the most likely.
2213# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2214# only as a last resort. b.out is created by i960 compilers.
2215ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2216#
2217# The IRIX 6 linker writes into existing files which may not be
2218# executable, retaining their permissions. Remove them first so a
2219# subsequent execution test works.
2220ac_rmfiles=
2221for ac_file in $ac_files
2222do
2223 case $ac_file in
2224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2225 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2226 esac
2227done
2228rm -f $ac_rmfiles
2229
2230if { (ac_try="$ac_link_default"
2231case "(($ac_try" in
2232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2234esac
2235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2236 (eval "$ac_link_default") 2>&5
25697a35
GS
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; then
0743911c
FM
2240 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2241# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2242# in a Makefile. We should not override ac_cv_exeext if it was cached,
2243# so that the user can short-circuit this test for compilers unknown to
2244# Autoconf.
2245for ac_file in $ac_files ''
25697a35
GS
2246do
2247 test -f "$ac_file" || continue
2248 case $ac_file in
0743911c 2249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
25697a35
GS
2250 ;;
2251 [ab].out )
2252 # We found the default executable, but exeext='' is most
2253 # certainly right.
2254 break;;
2255 *.* )
0743911c
FM
2256 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2257 then :; else
2258 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2259 fi
2260 # We set ac_cv_exeext here because the later test for it is not
2261 # safe: cross compilers may not add the suffix if given an `-o'
2262 # argument, so we may need to know it at that point already.
2263 # Even if this section looks crufty: it has the advantage of
2264 # actually working.
25697a35
GS
2265 break;;
2266 * )
2267 break;;
2268 esac
2269done
0743911c
FM
2270test "$ac_cv_exeext" = no && ac_cv_exeext=
2271
25697a35 2272else
0743911c
FM
2273 ac_file=''
2274fi
2275
2276{ echo "$as_me:$LINENO: result: $ac_file" >&5
2277echo "${ECHO_T}$ac_file" >&6; }
2278if test -z "$ac_file"; then
25697a35
GS
2279 echo "$as_me: failed program was:" >&5
2280sed 's/^/| /' conftest.$ac_ext >&5
2281
2282{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2283See \`config.log' for more details." >&5
2284echo "$as_me: error: C compiler cannot create executables
2285See \`config.log' for more details." >&2;}
2286 { (exit 77); exit 77; }; }
2287fi
2288
2289ac_exeext=$ac_cv_exeext
25697a35 2290
0743911c 2291# Check that the compiler produces executables we can run. If not, either
25697a35 2292# the compiler is broken, or we cross compile.
0743911c
FM
2293{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2294echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
25697a35
GS
2295# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2296# If not cross compiling, check that we can run a simple program.
2297if test "$cross_compiling" != yes; then
2298 if { ac_try='./$ac_file'
0743911c
FM
2299 { (case "(($ac_try" in
2300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2301 *) ac_try_echo=$ac_try;;
2302esac
2303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2304 (eval "$ac_try") 2>&5
25697a35
GS
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2308 cross_compiling=no
2309 else
2310 if test "$cross_compiling" = maybe; then
2311 cross_compiling=yes
2312 else
2313 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2314If you meant to cross compile, use \`--host'.
2315See \`config.log' for more details." >&5
2316echo "$as_me: error: cannot run C compiled programs.
2317If you meant to cross compile, use \`--host'.
2318See \`config.log' for more details." >&2;}
2319 { (exit 1); exit 1; }; }
2320 fi
2321 fi
2322fi
0743911c
FM
2323{ echo "$as_me:$LINENO: result: yes" >&5
2324echo "${ECHO_T}yes" >&6; }
25697a35
GS
2325
2326rm -f a.out a.exe conftest$ac_cv_exeext b.out
2327ac_clean_files=$ac_clean_files_save
0743911c 2328# Check that the compiler produces executables we can run. If not, either
25697a35 2329# the compiler is broken, or we cross compile.
0743911c
FM
2330{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2331echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2332{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2333echo "${ECHO_T}$cross_compiling" >&6; }
2334
2335{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2336echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2337if { (ac_try="$ac_link"
2338case "(($ac_try" in
2339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2341esac
2342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2343 (eval "$ac_link") 2>&5
25697a35
GS
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; then
2347 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2348# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2349# work properly (i.e., refer to `conftest.exe'), while it won't with
2350# `rm'.
2351for ac_file in conftest.exe conftest conftest.*; do
2352 test -f "$ac_file" || continue
2353 case $ac_file in
0743911c 2354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
25697a35 2355 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
25697a35
GS
2356 break;;
2357 * ) break;;
2358 esac
2359done
2360else
2361 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2362See \`config.log' for more details." >&5
2363echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2364See \`config.log' for more details." >&2;}
2365 { (exit 1); exit 1; }; }
2366fi
2367
2368rm -f conftest$ac_cv_exeext
0743911c
FM
2369{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2370echo "${ECHO_T}$ac_cv_exeext" >&6; }
25697a35
GS
2371
2372rm -f conftest.$ac_ext
2373EXEEXT=$ac_cv_exeext
2374ac_exeext=$EXEEXT
0743911c
FM
2375{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2376echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
25697a35
GS
2377if test "${ac_cv_objext+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2379else
2380 cat >conftest.$ac_ext <<_ACEOF
2381/* confdefs.h. */
2382_ACEOF
2383cat confdefs.h >>conftest.$ac_ext
2384cat >>conftest.$ac_ext <<_ACEOF
2385/* end confdefs.h. */
2386
2387int
2388main ()
2389{
2390
2391 ;
2392 return 0;
2393}
2394_ACEOF
2395rm -f conftest.o conftest.obj
0743911c
FM
2396if { (ac_try="$ac_compile"
2397case "(($ac_try" in
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2400esac
2401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_compile") 2>&5
25697a35
GS
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; then
0743911c
FM
2406 for ac_file in conftest.o conftest.obj conftest.*; do
2407 test -f "$ac_file" || continue;
25697a35 2408 case $ac_file in
0743911c 2409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
25697a35
GS
2410 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2411 break;;
2412 esac
2413done
2414else
2415 echo "$as_me: failed program was:" >&5
2416sed 's/^/| /' conftest.$ac_ext >&5
2417
2418{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2419See \`config.log' for more details." >&5
2420echo "$as_me: error: cannot compute suffix of object files: cannot compile
2421See \`config.log' for more details." >&2;}
2422 { (exit 1); exit 1; }; }
2423fi
2424
2425rm -f conftest.$ac_cv_objext conftest.$ac_ext
2426fi
0743911c
FM
2427{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2428echo "${ECHO_T}$ac_cv_objext" >&6; }
25697a35
GS
2429OBJEXT=$ac_cv_objext
2430ac_objext=$OBJEXT
0743911c
FM
2431{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2432echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
25697a35
GS
2433if test "${ac_cv_c_compiler_gnu+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2435else
2436 cat >conftest.$ac_ext <<_ACEOF
2437/* confdefs.h. */
2438_ACEOF
2439cat confdefs.h >>conftest.$ac_ext
2440cat >>conftest.$ac_ext <<_ACEOF
2441/* end confdefs.h. */
2442
2443int
2444main ()
2445{
2446#ifndef __GNUC__
2447 choke me
2448#endif
2449
2450 ;
2451 return 0;
2452}
2453_ACEOF
2454rm -f conftest.$ac_objext
0743911c
FM
2455if { (ac_try="$ac_compile"
2456case "(($ac_try" in
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2459esac
2460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_compile") 2>conftest.er1
25697a35
GS
2462 ac_status=$?
2463 grep -v '^ *+' conftest.er1 >conftest.err
2464 rm -f conftest.er1
2465 cat conftest.err >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
2467 (exit $ac_status); } && {
2468 test -z "$ac_c_werror_flag" ||
2469 test ! -s conftest.err
2470 } && test -s conftest.$ac_objext; then
25697a35
GS
2471 ac_compiler_gnu=yes
2472else
2473 echo "$as_me: failed program was:" >&5
2474sed 's/^/| /' conftest.$ac_ext >&5
2475
0743911c 2476 ac_compiler_gnu=no
25697a35 2477fi
0743911c
FM
2478
2479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25697a35
GS
2480ac_cv_c_compiler_gnu=$ac_compiler_gnu
2481
2482fi
0743911c
FM
2483{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2484echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
25697a35
GS
2485GCC=`test $ac_compiler_gnu = yes && echo yes`
2486ac_test_CFLAGS=${CFLAGS+set}
2487ac_save_CFLAGS=$CFLAGS
0743911c
FM
2488{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2489echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
25697a35
GS
2490if test "${ac_cv_prog_cc_g+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2492else
0743911c
FM
2493 ac_save_c_werror_flag=$ac_c_werror_flag
2494 ac_c_werror_flag=yes
2495 ac_cv_prog_cc_g=no
2496 CFLAGS="-g"
2497 cat >conftest.$ac_ext <<_ACEOF
25697a35
GS
2498/* confdefs.h. */
2499_ACEOF
2500cat confdefs.h >>conftest.$ac_ext
2501cat >>conftest.$ac_ext <<_ACEOF
2502/* end confdefs.h. */
2503
2504int
2505main ()
2506{
2507
2508 ;
2509 return 0;
2510}
2511_ACEOF
2512rm -f conftest.$ac_objext
0743911c
FM
2513if { (ac_try="$ac_compile"
2514case "(($ac_try" in
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2517esac
2518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519 (eval "$ac_compile") 2>conftest.er1
25697a35
GS
2520 ac_status=$?
2521 grep -v '^ *+' conftest.er1 >conftest.err
2522 rm -f conftest.er1
2523 cat conftest.err >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
2525 (exit $ac_status); } && {
2526 test -z "$ac_c_werror_flag" ||
2527 test ! -s conftest.err
2528 } && test -s conftest.$ac_objext; then
2529 ac_cv_prog_cc_g=yes
2530else
2531 echo "$as_me: failed program was:" >&5
2532sed 's/^/| /' conftest.$ac_ext >&5
2533
2534 CFLAGS=""
2535 cat >conftest.$ac_ext <<_ACEOF
2536/* confdefs.h. */
2537_ACEOF
2538cat confdefs.h >>conftest.$ac_ext
2539cat >>conftest.$ac_ext <<_ACEOF
2540/* end confdefs.h. */
2541
2542int
2543main ()
2544{
2545
2546 ;
2547 return 0;
2548}
2549_ACEOF
2550rm -f conftest.$ac_objext
2551if { (ac_try="$ac_compile"
2552case "(($ac_try" in
2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 *) ac_try_echo=$ac_try;;
2555esac
2556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2557 (eval "$ac_compile") 2>conftest.er1
25697a35 2558 ac_status=$?
0743911c
FM
2559 grep -v '^ *+' conftest.er1 >conftest.err
2560 rm -f conftest.er1
2561 cat conftest.err >&5
25697a35 2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
2563 (exit $ac_status); } && {
2564 test -z "$ac_c_werror_flag" ||
2565 test ! -s conftest.err
2566 } && test -s conftest.$ac_objext; then
2567 :
2568else
2569 echo "$as_me: failed program was:" >&5
2570sed 's/^/| /' conftest.$ac_ext >&5
2571
2572 ac_c_werror_flag=$ac_save_c_werror_flag
2573 CFLAGS="-g"
2574 cat >conftest.$ac_ext <<_ACEOF
2575/* confdefs.h. */
2576_ACEOF
2577cat confdefs.h >>conftest.$ac_ext
2578cat >>conftest.$ac_ext <<_ACEOF
2579/* end confdefs.h. */
2580
2581int
2582main ()
2583{
2584
2585 ;
2586 return 0;
2587}
2588_ACEOF
2589rm -f conftest.$ac_objext
2590if { (ac_try="$ac_compile"
2591case "(($ac_try" in
2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2594esac
2595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596 (eval "$ac_compile") 2>conftest.er1
25697a35 2597 ac_status=$?
0743911c
FM
2598 grep -v '^ *+' conftest.er1 >conftest.err
2599 rm -f conftest.er1
2600 cat conftest.err >&5
25697a35 2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
2602 (exit $ac_status); } && {
2603 test -z "$ac_c_werror_flag" ||
2604 test ! -s conftest.err
2605 } && test -s conftest.$ac_objext; then
25697a35
GS
2606 ac_cv_prog_cc_g=yes
2607else
2608 echo "$as_me: failed program was:" >&5
2609sed 's/^/| /' conftest.$ac_ext >&5
2610
0743911c 2611
25697a35 2612fi
0743911c
FM
2613
2614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615fi
2616
2617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618fi
2619
2620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 ac_c_werror_flag=$ac_save_c_werror_flag
25697a35 2622fi
0743911c
FM
2623{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2624echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
25697a35
GS
2625if test "$ac_test_CFLAGS" = set; then
2626 CFLAGS=$ac_save_CFLAGS
2627elif test $ac_cv_prog_cc_g = yes; then
2628 if test "$GCC" = yes; then
2629 CFLAGS="-g -O2"
2630 else
2631 CFLAGS="-g"
2632 fi
2633else
2634 if test "$GCC" = yes; then
2635 CFLAGS="-O2"
2636 else
2637 CFLAGS=
2638 fi
2639fi
0743911c
FM
2640{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2641echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2642if test "${ac_cv_prog_cc_c89+set}" = set; then
25697a35
GS
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2644else
0743911c 2645 ac_cv_prog_cc_c89=no
25697a35
GS
2646ac_save_CC=$CC
2647cat >conftest.$ac_ext <<_ACEOF
2648/* confdefs.h. */
2649_ACEOF
2650cat confdefs.h >>conftest.$ac_ext
2651cat >>conftest.$ac_ext <<_ACEOF
2652/* end confdefs.h. */
2653#include <stdarg.h>
2654#include <stdio.h>
2655#include <sys/types.h>
2656#include <sys/stat.h>
2657/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2658struct buf { int x; };
2659FILE * (*rcsopen) (struct buf *, struct stat *, int);
2660static char *e (p, i)
2661 char **p;
2662 int i;
2663{
2664 return p[i];
2665}
2666static char *f (char * (*g) (char **, int), char **p, ...)
2667{
2668 char *s;
2669 va_list v;
2670 va_start (v,p);
2671 s = g (p, va_arg (v,int));
2672 va_end (v);
2673 return s;
2674}
2675
2676/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2677 function prototypes and stuff, but not '\xHH' hex character constants.
2678 These don't provoke an error unfortunately, instead are silently treated
0743911c 2679 as 'x'. The following induces an error, until -std is added to get
25697a35
GS
2680 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2681 array size at least. It's necessary to write '\x00'==0 to get something
0743911c 2682 that's true only with -std. */
25697a35
GS
2683int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2684
0743911c
FM
2685/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2686 inside strings and character constants. */
2687#define FOO(x) 'x'
2688int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2689
25697a35
GS
2690int test (int i, double x);
2691struct s1 {int (*f) (int a);};
2692struct s2 {int (*f) (double a);};
2693int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2694int argc;
2695char **argv;
2696int
2697main ()
2698{
2699return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2700 ;
2701 return 0;
2702}
2703_ACEOF
0743911c
FM
2704for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2705 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
25697a35
GS
2706do
2707 CC="$ac_save_CC $ac_arg"
2708 rm -f conftest.$ac_objext
0743911c
FM
2709if { (ac_try="$ac_compile"
2710case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713esac
2714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_compile") 2>conftest.er1
25697a35
GS
2716 ac_status=$?
2717 grep -v '^ *+' conftest.er1 >conftest.err
2718 rm -f conftest.er1
2719 cat conftest.err >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
2721 (exit $ac_status); } && {
2722 test -z "$ac_c_werror_flag" ||
2723 test ! -s conftest.err
2724 } && test -s conftest.$ac_objext; then
2725 ac_cv_prog_cc_c89=$ac_arg
25697a35
GS
2726else
2727 echo "$as_me: failed program was:" >&5
2728sed 's/^/| /' conftest.$ac_ext >&5
2729
0743911c 2730
25697a35 2731fi
0743911c
FM
2732
2733rm -f core conftest.err conftest.$ac_objext
2734 test "x$ac_cv_prog_cc_c89" != "xno" && break
25697a35 2735done
0743911c 2736rm -f conftest.$ac_ext
25697a35
GS
2737CC=$ac_save_CC
2738
2739fi
0743911c
FM
2740# AC_CACHE_VAL
2741case "x$ac_cv_prog_cc_c89" in
2742 x)
2743 { echo "$as_me:$LINENO: result: none needed" >&5
2744echo "${ECHO_T}none needed" >&6; } ;;
2745 xno)
2746 { echo "$as_me:$LINENO: result: unsupported" >&5
2747echo "${ECHO_T}unsupported" >&6; } ;;
25697a35 2748 *)
0743911c
FM
2749 CC="$CC $ac_cv_prog_cc_c89"
2750 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2751echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
25697a35
GS
2752esac
2753
25697a35 2754
25697a35
GS
2755ac_ext=c
2756ac_cpp='$CPP $CPPFLAGS'
2757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759ac_compiler_gnu=$ac_cv_c_compiler_gnu
2760;;
2761esac
2762
2763if test "${CC}" = "cc" ; then
c1b9eca2 2764 CFLAGS="${CFLAGS} -Wall -g -O2 -Aa -Werror=implicit-function-declaration"
25697a35 2765else
32e71fa4 2766 CFLAGS="${CFLAGS} -Wall -Werror=implicit-function-declaration"
25697a35
GS
2767fi
2768
2769case "$host" in
2770 *-solaris*)
2771 LDFLAGS="${LDFLAGS} -lsocket -lnsl"
2772 CFLAGS="-DSOLARIS ${CFLAGS}"
2773 ;;
2774esac
2775
2776#dnl Checks for programs.
2777#AC_PROG_CC
2778
2779
2780
2781
2782
2783
2784
2785ac_header_dirent=no
2786for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2787 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
0743911c
FM
2788{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
2789echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
2790if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25697a35
GS
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792else
2793 cat >conftest.$ac_ext <<_ACEOF
2794/* confdefs.h. */
2795_ACEOF
2796cat confdefs.h >>conftest.$ac_ext
2797cat >>conftest.$ac_ext <<_ACEOF
2798/* end confdefs.h. */
2799#include <sys/types.h>
2800#include <$ac_hdr>
2801
2802int
2803main ()
2804{
2805if ((DIR *) 0)
2806return 0;
2807 ;
2808 return 0;
2809}
2810_ACEOF
2811rm -f conftest.$ac_objext
0743911c
FM
2812if { (ac_try="$ac_compile"
2813case "(($ac_try" in
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2816esac
2817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_compile") 2>conftest.er1
25697a35
GS
2819 ac_status=$?
2820 grep -v '^ *+' conftest.er1 >conftest.err
2821 rm -f conftest.er1
2822 cat conftest.err >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
2824 (exit $ac_status); } && {
2825 test -z "$ac_c_werror_flag" ||
2826 test ! -s conftest.err
2827 } && test -s conftest.$ac_objext; then
25697a35
GS
2828 eval "$as_ac_Header=yes"
2829else
2830 echo "$as_me: failed program was:" >&5
2831sed 's/^/| /' conftest.$ac_ext >&5
2832
0743911c 2833 eval "$as_ac_Header=no"
25697a35 2834fi
0743911c
FM
2835
2836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25697a35 2837fi
0743911c
FM
2838ac_res=`eval echo '${'$as_ac_Header'}'`
2839 { echo "$as_me:$LINENO: result: $ac_res" >&5
2840echo "${ECHO_T}$ac_res" >&6; }
25697a35
GS
2841if test `eval echo '${'$as_ac_Header'}'` = yes; then
2842 cat >>confdefs.h <<_ACEOF
2843#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2844_ACEOF
2845
2846ac_header_dirent=$ac_hdr; break
2847fi
2848
2849done
2850# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2851if test $ac_header_dirent = dirent.h; then
0743911c
FM
2852 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
2853echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25697a35
GS
2854if test "${ac_cv_search_opendir+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2856else
2857 ac_func_search_save_LIBS=$LIBS
25697a35
GS
2858cat >conftest.$ac_ext <<_ACEOF
2859/* confdefs.h. */
2860_ACEOF
2861cat confdefs.h >>conftest.$ac_ext
2862cat >>conftest.$ac_ext <<_ACEOF
2863/* end confdefs.h. */
2864
0743911c
FM
2865/* Override any GCC internal prototype to avoid an error.
2866 Use char because int might match the return type of a GCC
2867 builtin and then its argument prototype would still apply. */
25697a35
GS
2868#ifdef __cplusplus
2869extern "C"
2870#endif
25697a35
GS
2871char opendir ();
2872int
2873main ()
2874{
0743911c 2875return opendir ();
25697a35
GS
2876 ;
2877 return 0;
2878}
2879_ACEOF
0743911c
FM
2880for ac_lib in '' dir; do
2881 if test -z "$ac_lib"; then
2882 ac_res="none required"
2883 else
2884 ac_res=-l$ac_lib
2885 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2886 fi
2887 rm -f conftest.$ac_objext conftest$ac_exeext
2888if { (ac_try="$ac_link"
2889case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892esac
2893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_link") 2>conftest.er1
25697a35
GS
2895 ac_status=$?
2896 grep -v '^ *+' conftest.er1 >conftest.err
2897 rm -f conftest.er1
2898 cat conftest.err >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
2900 (exit $ac_status); } && {
2901 test -z "$ac_c_werror_flag" ||
2902 test ! -s conftest.err
2903 } && test -s conftest$ac_exeext &&
2904 $as_test_x conftest$ac_exeext; then
2905 ac_cv_search_opendir=$ac_res
25697a35
GS
2906else
2907 echo "$as_me: failed program was:" >&5
2908sed 's/^/| /' conftest.$ac_ext >&5
2909
25697a35 2910
0743911c 2911fi
25697a35 2912
0743911c
FM
2913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2914 conftest$ac_exeext
2915 if test "${ac_cv_search_opendir+set}" = set; then
2916 break
25697a35 2917fi
0743911c
FM
2918done
2919if test "${ac_cv_search_opendir+set}" = set; then
2920 :
2921else
2922 ac_cv_search_opendir=no
25697a35 2923fi
0743911c 2924rm conftest.$ac_ext
25697a35
GS
2925LIBS=$ac_func_search_save_LIBS
2926fi
0743911c
FM
2927{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2928echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
2929ac_res=$ac_cv_search_opendir
2930if test "$ac_res" != no; then
2931 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25697a35
GS
2932
2933fi
2934
2935else
0743911c
FM
2936 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
2937echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25697a35
GS
2938if test "${ac_cv_search_opendir+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2940else
2941 ac_func_search_save_LIBS=$LIBS
25697a35
GS
2942cat >conftest.$ac_ext <<_ACEOF
2943/* confdefs.h. */
2944_ACEOF
2945cat confdefs.h >>conftest.$ac_ext
2946cat >>conftest.$ac_ext <<_ACEOF
2947/* end confdefs.h. */
2948
0743911c
FM
2949/* Override any GCC internal prototype to avoid an error.
2950 Use char because int might match the return type of a GCC
2951 builtin and then its argument prototype would still apply. */
25697a35
GS
2952#ifdef __cplusplus
2953extern "C"
2954#endif
25697a35
GS
2955char opendir ();
2956int
2957main ()
2958{
0743911c 2959return opendir ();
25697a35
GS
2960 ;
2961 return 0;
2962}
2963_ACEOF
0743911c
FM
2964for ac_lib in '' x; do
2965 if test -z "$ac_lib"; then
2966 ac_res="none required"
2967 else
2968 ac_res=-l$ac_lib
2969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2970 fi
2971 rm -f conftest.$ac_objext conftest$ac_exeext
2972if { (ac_try="$ac_link"
2973case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976esac
2977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978 (eval "$ac_link") 2>conftest.er1
25697a35
GS
2979 ac_status=$?
2980 grep -v '^ *+' conftest.er1 >conftest.err
2981 rm -f conftest.er1
2982 cat conftest.err >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
2984 (exit $ac_status); } && {
2985 test -z "$ac_c_werror_flag" ||
2986 test ! -s conftest.err
2987 } && test -s conftest$ac_exeext &&
2988 $as_test_x conftest$ac_exeext; then
2989 ac_cv_search_opendir=$ac_res
25697a35
GS
2990else
2991 echo "$as_me: failed program was:" >&5
2992sed 's/^/| /' conftest.$ac_ext >&5
2993
25697a35 2994
0743911c 2995fi
25697a35 2996
0743911c
FM
2997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2998 conftest$ac_exeext
2999 if test "${ac_cv_search_opendir+set}" = set; then
3000 break
25697a35 3001fi
0743911c
FM
3002done
3003if test "${ac_cv_search_opendir+set}" = set; then
3004 :
3005else
3006 ac_cv_search_opendir=no
25697a35 3007fi
0743911c 3008rm conftest.$ac_ext
25697a35
GS
3009LIBS=$ac_func_search_save_LIBS
3010fi
0743911c
FM
3011{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3012echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3013ac_res=$ac_cv_search_opendir
3014if test "$ac_res" != no; then
3015 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25697a35
GS
3016
3017fi
3018
3019fi
3020
3021ac_ext=c
3022ac_cpp='$CPP $CPPFLAGS'
3023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025ac_compiler_gnu=$ac_cv_c_compiler_gnu
0743911c
FM
3026{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3027echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
25697a35
GS
3028# On Suns, sometimes $CPP names a directory.
3029if test -n "$CPP" && test -d "$CPP"; then
3030 CPP=
3031fi
3032if test -z "$CPP"; then
3033 if test "${ac_cv_prog_CPP+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3035else
3036 # Double quotes because CPP needs to be expanded
3037 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3038 do
3039 ac_preproc_ok=false
3040for ac_c_preproc_warn_flag in '' yes
3041do
3042 # Use a header file that comes with gcc, so configuring glibc
3043 # with a fresh cross-compiler works.
3044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3045 # <limits.h> exists even on freestanding compilers.
3046 # On the NeXT, cc -E runs the code through the compiler's parser,
3047 # not just through cpp. "Syntax error" is here to catch this case.
3048 cat >conftest.$ac_ext <<_ACEOF
3049/* confdefs.h. */
3050_ACEOF
3051cat confdefs.h >>conftest.$ac_ext
3052cat >>conftest.$ac_ext <<_ACEOF
3053/* end confdefs.h. */
3054#ifdef __STDC__
3055# include <limits.h>
3056#else
3057# include <assert.h>
3058#endif
3059 Syntax error
3060_ACEOF
0743911c
FM
3061if { (ac_try="$ac_cpp conftest.$ac_ext"
3062case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065esac
3066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25697a35
GS
3068 ac_status=$?
3069 grep -v '^ *+' conftest.er1 >conftest.err
3070 rm -f conftest.er1
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
3073 (exit $ac_status); } >/dev/null && {
3074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3075 test ! -s conftest.err
3076 }; then
25697a35
GS
3077 :
3078else
3079 echo "$as_me: failed program was:" >&5
3080sed 's/^/| /' conftest.$ac_ext >&5
3081
3082 # Broken: fails on valid input.
3083continue
3084fi
0743911c 3085
25697a35
GS
3086rm -f conftest.err conftest.$ac_ext
3087
0743911c 3088 # OK, works on sane cases. Now check whether nonexistent headers
25697a35
GS
3089 # can be detected and how.
3090 cat >conftest.$ac_ext <<_ACEOF
3091/* confdefs.h. */
3092_ACEOF
3093cat confdefs.h >>conftest.$ac_ext
3094cat >>conftest.$ac_ext <<_ACEOF
3095/* end confdefs.h. */
3096#include <ac_nonexistent.h>
3097_ACEOF
0743911c
FM
3098if { (ac_try="$ac_cpp conftest.$ac_ext"
3099case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102esac
3103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25697a35
GS
3105 ac_status=$?
3106 grep -v '^ *+' conftest.er1 >conftest.err
3107 rm -f conftest.er1
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
3110 (exit $ac_status); } >/dev/null && {
3111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3112 test ! -s conftest.err
3113 }; then
25697a35
GS
3114 # Broken: success on invalid input.
3115continue
3116else
3117 echo "$as_me: failed program was:" >&5
3118sed 's/^/| /' conftest.$ac_ext >&5
3119
3120 # Passes both tests.
3121ac_preproc_ok=:
3122break
3123fi
0743911c 3124
25697a35
GS
3125rm -f conftest.err conftest.$ac_ext
3126
3127done
3128# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3129rm -f conftest.err conftest.$ac_ext
3130if $ac_preproc_ok; then
3131 break
3132fi
3133
3134 done
3135 ac_cv_prog_CPP=$CPP
3136
3137fi
3138 CPP=$ac_cv_prog_CPP
3139else
3140 ac_cv_prog_CPP=$CPP
3141fi
0743911c
FM
3142{ echo "$as_me:$LINENO: result: $CPP" >&5
3143echo "${ECHO_T}$CPP" >&6; }
25697a35
GS
3144ac_preproc_ok=false
3145for ac_c_preproc_warn_flag in '' yes
3146do
3147 # Use a header file that comes with gcc, so configuring glibc
3148 # with a fresh cross-compiler works.
3149 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3150 # <limits.h> exists even on freestanding compilers.
3151 # On the NeXT, cc -E runs the code through the compiler's parser,
3152 # not just through cpp. "Syntax error" is here to catch this case.
3153 cat >conftest.$ac_ext <<_ACEOF
3154/* confdefs.h. */
3155_ACEOF
3156cat confdefs.h >>conftest.$ac_ext
3157cat >>conftest.$ac_ext <<_ACEOF
3158/* end confdefs.h. */
3159#ifdef __STDC__
3160# include <limits.h>
3161#else
3162# include <assert.h>
3163#endif
3164 Syntax error
3165_ACEOF
0743911c
FM
3166if { (ac_try="$ac_cpp conftest.$ac_ext"
3167case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170esac
3171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25697a35
GS
3173 ac_status=$?
3174 grep -v '^ *+' conftest.er1 >conftest.err
3175 rm -f conftest.er1
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
3178 (exit $ac_status); } >/dev/null && {
3179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3180 test ! -s conftest.err
3181 }; then
25697a35
GS
3182 :
3183else
3184 echo "$as_me: failed program was:" >&5
3185sed 's/^/| /' conftest.$ac_ext >&5
3186
3187 # Broken: fails on valid input.
3188continue
3189fi
0743911c 3190
25697a35
GS
3191rm -f conftest.err conftest.$ac_ext
3192
0743911c 3193 # OK, works on sane cases. Now check whether nonexistent headers
25697a35
GS
3194 # can be detected and how.
3195 cat >conftest.$ac_ext <<_ACEOF
3196/* confdefs.h. */
3197_ACEOF
3198cat confdefs.h >>conftest.$ac_ext
3199cat >>conftest.$ac_ext <<_ACEOF
3200/* end confdefs.h. */
3201#include <ac_nonexistent.h>
3202_ACEOF
0743911c
FM
3203if { (ac_try="$ac_cpp conftest.$ac_ext"
3204case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207esac
3208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25697a35
GS
3210 ac_status=$?
3211 grep -v '^ *+' conftest.er1 >conftest.err
3212 rm -f conftest.er1
3213 cat conftest.err >&5
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
3215 (exit $ac_status); } >/dev/null && {
3216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3217 test ! -s conftest.err
3218 }; then
25697a35
GS
3219 # Broken: success on invalid input.
3220continue
3221else
3222 echo "$as_me: failed program was:" >&5
3223sed 's/^/| /' conftest.$ac_ext >&5
3224
3225 # Passes both tests.
3226ac_preproc_ok=:
3227break
3228fi
0743911c 3229
25697a35
GS
3230rm -f conftest.err conftest.$ac_ext
3231
3232done
3233# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3234rm -f conftest.err conftest.$ac_ext
3235if $ac_preproc_ok; then
3236 :
3237else
3238 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3239See \`config.log' for more details." >&5
3240echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3241See \`config.log' for more details." >&2;}
3242 { (exit 1); exit 1; }; }
3243fi
3244
3245ac_ext=c
3246ac_cpp='$CPP $CPPFLAGS'
3247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250
3251
0743911c
FM
3252{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3253echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3254if test "${ac_cv_path_GREP+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3256else
3257 # Extract the first word of "grep ggrep" to use in msg output
3258if test -z "$GREP"; then
3259set dummy grep ggrep; ac_prog_name=$2
3260if test "${ac_cv_path_GREP+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262else
3263 ac_path_GREP_found=false
3264# Loop through the user's path and test for each of PROGNAME-LIST
3265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3267do
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
3270 for ac_prog in grep ggrep; do
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3273 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3274 # Check for GNU ac_path_GREP and select it if it is found.
3275 # Check for GNU $ac_path_GREP
3276case `"$ac_path_GREP" --version 2>&1` in
3277*GNU*)
3278 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3279*)
3280 ac_count=0
3281 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3282 while :
3283 do
3284 cat "conftest.in" "conftest.in" >"conftest.tmp"
3285 mv "conftest.tmp" "conftest.in"
3286 cp "conftest.in" "conftest.nl"
3287 echo 'GREP' >> "conftest.nl"
3288 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3289 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3290 ac_count=`expr $ac_count + 1`
3291 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3292 # Best one so far, save it but keep looking for a better one
3293 ac_cv_path_GREP="$ac_path_GREP"
3294 ac_path_GREP_max=$ac_count
3295 fi
3296 # 10*(2^10) chars as input seems more than enough
3297 test $ac_count -gt 10 && break
3298 done
3299 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3300esac
3301
3302
3303 $ac_path_GREP_found && break 3
3304 done
3305done
3306
3307done
3308IFS=$as_save_IFS
3309
3310
3311fi
3312
3313GREP="$ac_cv_path_GREP"
3314if test -z "$GREP"; then
3315 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3316echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3317 { (exit 1); exit 1; }; }
3318fi
3319
3320else
3321 ac_cv_path_GREP=$GREP
3322fi
3323
3324
3325fi
3326{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3327echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3328 GREP="$ac_cv_path_GREP"
3329
3330
3331{ echo "$as_me:$LINENO: checking for egrep" >&5
3332echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3333if test "${ac_cv_path_EGREP+set}" = set; then
25697a35
GS
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3335else
0743911c
FM
3336 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3337 then ac_cv_path_EGREP="$GREP -E"
3338 else
3339 # Extract the first word of "egrep" to use in msg output
3340if test -z "$EGREP"; then
3341set dummy egrep; ac_prog_name=$2
3342if test "${ac_cv_path_EGREP+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3344else
3345 ac_path_EGREP_found=false
3346# Loop through the user's path and test for each of PROGNAME-LIST
3347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3349do
3350 IFS=$as_save_IFS
3351 test -z "$as_dir" && as_dir=.
3352 for ac_prog in egrep; do
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3355 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3356 # Check for GNU ac_path_EGREP and select it if it is found.
3357 # Check for GNU $ac_path_EGREP
3358case `"$ac_path_EGREP" --version 2>&1` in
3359*GNU*)
3360 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3361*)
3362 ac_count=0
3363 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3364 while :
3365 do
3366 cat "conftest.in" "conftest.in" >"conftest.tmp"
3367 mv "conftest.tmp" "conftest.in"
3368 cp "conftest.in" "conftest.nl"
3369 echo 'EGREP' >> "conftest.nl"
3370 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3371 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3372 ac_count=`expr $ac_count + 1`
3373 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3374 # Best one so far, save it but keep looking for a better one
3375 ac_cv_path_EGREP="$ac_path_EGREP"
3376 ac_path_EGREP_max=$ac_count
25697a35 3377 fi
0743911c
FM
3378 # 10*(2^10) chars as input seems more than enough
3379 test $ac_count -gt 10 && break
3380 done
3381 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3382esac
3383
3384
3385 $ac_path_EGREP_found && break 3
3386 done
3387done
3388
3389done
3390IFS=$as_save_IFS
3391
3392
3393fi
3394
3395EGREP="$ac_cv_path_EGREP"
3396if test -z "$EGREP"; then
3397 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3398echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3399 { (exit 1); exit 1; }; }
3400fi
3401
3402else
3403 ac_cv_path_EGREP=$EGREP
3404fi
3405
3406
3407 fi
25697a35 3408fi
0743911c
FM
3409{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3410echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3411 EGREP="$ac_cv_path_EGREP"
25697a35
GS
3412
3413
0743911c
FM
3414{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3415echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
25697a35
GS
3416if test "${ac_cv_header_stdc+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3418else
3419 cat >conftest.$ac_ext <<_ACEOF
3420/* confdefs.h. */
3421_ACEOF
3422cat confdefs.h >>conftest.$ac_ext
3423cat >>conftest.$ac_ext <<_ACEOF
3424/* end confdefs.h. */
3425#include <stdlib.h>
3426#include <stdarg.h>
3427#include <string.h>
3428#include <float.h>
3429
3430int
3431main ()
3432{
3433
3434 ;
3435 return 0;
3436}
3437_ACEOF
3438rm -f conftest.$ac_objext
0743911c
FM
3439if { (ac_try="$ac_compile"
3440case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443esac
3444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_compile") 2>conftest.er1
25697a35
GS
3446 ac_status=$?
3447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
3451 (exit $ac_status); } && {
3452 test -z "$ac_c_werror_flag" ||
3453 test ! -s conftest.err
3454 } && test -s conftest.$ac_objext; then
25697a35
GS
3455 ac_cv_header_stdc=yes
3456else
3457 echo "$as_me: failed program was:" >&5
3458sed 's/^/| /' conftest.$ac_ext >&5
3459
0743911c 3460 ac_cv_header_stdc=no
25697a35 3461fi
0743911c
FM
3462
3463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25697a35
GS
3464
3465if test $ac_cv_header_stdc = yes; then
3466 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3467 cat >conftest.$ac_ext <<_ACEOF
3468/* confdefs.h. */
3469_ACEOF
3470cat confdefs.h >>conftest.$ac_ext
3471cat >>conftest.$ac_ext <<_ACEOF
3472/* end confdefs.h. */
3473#include <string.h>
3474
3475_ACEOF
3476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3477 $EGREP "memchr" >/dev/null 2>&1; then
3478 :
3479else
3480 ac_cv_header_stdc=no
3481fi
3482rm -f conftest*
3483
3484fi
3485
3486if test $ac_cv_header_stdc = yes; then
3487 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3488 cat >conftest.$ac_ext <<_ACEOF
3489/* confdefs.h. */
3490_ACEOF
3491cat confdefs.h >>conftest.$ac_ext
3492cat >>conftest.$ac_ext <<_ACEOF
3493/* end confdefs.h. */
3494#include <stdlib.h>
3495
3496_ACEOF
3497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3498 $EGREP "free" >/dev/null 2>&1; then
3499 :
3500else
3501 ac_cv_header_stdc=no
3502fi
3503rm -f conftest*
3504
3505fi
3506
3507if test $ac_cv_header_stdc = yes; then
3508 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3509 if test "$cross_compiling" = yes; then
3510 :
3511else
3512 cat >conftest.$ac_ext <<_ACEOF
3513/* confdefs.h. */
3514_ACEOF
3515cat confdefs.h >>conftest.$ac_ext
3516cat >>conftest.$ac_ext <<_ACEOF
3517/* end confdefs.h. */
3518#include <ctype.h>
0743911c 3519#include <stdlib.h>
25697a35
GS
3520#if ((' ' & 0x0FF) == 0x020)
3521# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3522# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3523#else
3524# define ISLOWER(c) \
3525 (('a' <= (c) && (c) <= 'i') \
3526 || ('j' <= (c) && (c) <= 'r') \
3527 || ('s' <= (c) && (c) <= 'z'))
3528# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3529#endif
3530
3531#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3532int
3533main ()
3534{
3535 int i;
3536 for (i = 0; i < 256; i++)
3537 if (XOR (islower (i), ISLOWER (i))
3538 || toupper (i) != TOUPPER (i))
0743911c
FM
3539 return 2;
3540 return 0;
25697a35
GS
3541}
3542_ACEOF
3543rm -f conftest$ac_exeext
0743911c
FM
3544if { (ac_try="$ac_link"
3545case "(($ac_try" in
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3548esac
3549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550 (eval "$ac_link") 2>&5
25697a35
GS
3551 ac_status=$?
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
0743911c
FM
3554 { (case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557esac
3558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559 (eval "$ac_try") 2>&5
25697a35
GS
3560 ac_status=$?
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }; }; then
3563 :
3564else
3565 echo "$as_me: program exited with status $ac_status" >&5
3566echo "$as_me: failed program was:" >&5
3567sed 's/^/| /' conftest.$ac_ext >&5
3568
3569( exit $ac_status )
3570ac_cv_header_stdc=no
3571fi
0743911c 3572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25697a35 3573fi
0743911c
FM
3574
3575
25697a35
GS
3576fi
3577fi
0743911c
FM
3578{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3579echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
25697a35
GS
3580if test $ac_cv_header_stdc = yes; then
3581
3582cat >>confdefs.h <<\_ACEOF
3583#define STDC_HEADERS 1
3584_ACEOF
3585
3586fi
3587
3588
d6e703cc
FM
3589
3590 if test "X$prefix" = "XNONE"; then
3591 acl_final_prefix="$ac_default_prefix"
3592 else
3593 acl_final_prefix="$prefix"
3594 fi
3595 if test "X$exec_prefix" = "XNONE"; then
3596 acl_final_exec_prefix='${prefix}'
3597 else
3598 acl_final_exec_prefix="$exec_prefix"
3599 fi
3600 acl_save_prefix="$prefix"
3601 prefix="$acl_final_prefix"
3602 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3603 prefix="$acl_save_prefix"
3604
3605
0743911c 3606# Check whether --with-gnu-ld was given.
d6e703cc 3607if test "${with_gnu_ld+set}" = set; then
0743911c 3608 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d6e703cc
FM
3609else
3610 with_gnu_ld=no
0743911c
FM
3611fi
3612
d6e703cc
FM
3613# Prepare PATH_SEPARATOR.
3614# The user is always right.
3615if test "${PATH_SEPARATOR+set}" != set; then
3616 echo "#! /bin/sh" >conf$$.sh
3617 echo "exit 0" >>conf$$.sh
3618 chmod +x conf$$.sh
3619 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3620 PATH_SEPARATOR=';'
3621 else
3622 PATH_SEPARATOR=:
3623 fi
3624 rm -f conf$$.sh
3625fi
3626ac_prog=ld
3627if test "$GCC" = yes; then
3628 # Check if gcc -print-prog-name=ld gives a path.
0743911c
FM
3629 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3630echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
d6e703cc
FM
3631 case $host in
3632 *-*-mingw*)
3633 # gcc leaves a trailing carriage return which upsets mingw
3634 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3635 *)
3636 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3637 esac
3638 case $ac_prog in
3639 # Accept absolute paths.
3640 [\\/]* | [A-Za-z]:[\\/]*)
3641 re_direlt='/[^/][^/]*/\.\./'
3642 # Canonicalize the path of ld
3643 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3644 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3645 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3646 done
3647 test -z "$LD" && LD="$ac_prog"
3648 ;;
3649 "")
3650 # If it fails, then pretend we aren't using GCC.
3651 ac_prog=ld
3652 ;;
3653 *)
3654 # If it is relative, then search for the first ld in PATH.
3655 with_gnu_ld=unknown
3656 ;;
3657 esac
3658elif test "$with_gnu_ld" = yes; then
0743911c
FM
3659 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3660echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d6e703cc 3661else
0743911c
FM
3662 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3663echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d6e703cc
FM
3664fi
3665if test "${acl_cv_path_LD+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667else
3668 if test -z "$LD"; then
3669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3670 for ac_dir in $PATH; do
3671 test -z "$ac_dir" && ac_dir=.
3672 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3673 acl_cv_path_LD="$ac_dir/$ac_prog"
3674 # Check to see if the program is GNU ld. I'd rather use --version,
3675 # but apparently some GNU ld's only accept -v.
3676 # Break only if it was the GNU/non-GNU ld that we prefer.
3677 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
3678 *GNU* | *'with BFD'*)
3679 test "$with_gnu_ld" != no && break ;;
3680 *)
3681 test "$with_gnu_ld" != yes && break ;;
3682 esac
3683 fi
3684 done
3685 IFS="$ac_save_ifs"
3686else
3687 acl_cv_path_LD="$LD" # Let the user override the test with a path.
3688fi
3689fi
3690
3691LD="$acl_cv_path_LD"
3692if test -n "$LD"; then
0743911c
FM
3693 { echo "$as_me:$LINENO: result: $LD" >&5
3694echo "${ECHO_T}$LD" >&6; }
d6e703cc 3695else
0743911c
FM
3696 { echo "$as_me:$LINENO: result: no" >&5
3697echo "${ECHO_T}no" >&6; }
d6e703cc
FM
3698fi
3699test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3700echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3701 { (exit 1); exit 1; }; }
0743911c
FM
3702{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3703echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d6e703cc
FM
3704if test "${acl_cv_prog_gnu_ld+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3706else
3707 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3708case `$LD -v 2>&1 </dev/null` in
3709*GNU* | *'with BFD'*)
3710 acl_cv_prog_gnu_ld=yes ;;
3711*)
3712 acl_cv_prog_gnu_ld=no ;;
3713esac
3714fi
0743911c
FM
3715{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
3716echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
d6e703cc
FM
3717with_gnu_ld=$acl_cv_prog_gnu_ld
3718
3719
3720
0743911c
FM
3721
3722 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
3723echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
d6e703cc
FM
3724if test "${acl_cv_rpath+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726else
3727
3728 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
3729 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
3730 . ./conftest.sh
3731 rm -f ./conftest.sh
3732 acl_cv_rpath=done
3733
3734fi
0743911c
FM
3735{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
3736echo "${ECHO_T}$acl_cv_rpath" >&6; }
d6e703cc 3737 wl="$acl_cv_wl"
0743911c
FM
3738 acl_libext="$acl_cv_libext"
3739 acl_shlibext="$acl_cv_shlibext"
3740 acl_libname_spec="$acl_cv_libname_spec"
3741 acl_library_names_spec="$acl_cv_library_names_spec"
3742 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
3743 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
3744 acl_hardcode_direct="$acl_cv_hardcode_direct"
3745 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
3746 # Check whether --enable-rpath was given.
d6e703cc 3747if test "${enable_rpath+set}" = set; then
0743911c 3748 enableval=$enable_rpath; :
d6e703cc
FM
3749else
3750 enable_rpath=yes
0743911c
FM
3751fi
3752
3753
3754
3755 acl_libdirstem=lib
3756 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
3757 if test -n "$searchpath"; then
3758 acl_save_IFS="${IFS= }"; IFS=":"
3759 for searchdir in $searchpath; do
3760 if test -d "$searchdir"; then
3761 case "$searchdir" in
3762 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
3763 *) searchdir=`cd "$searchdir" && pwd`
3764 case "$searchdir" in
3765 */lib64 ) acl_libdirstem=lib64 ;;
3766 esac ;;
3767 esac
3768 fi
3769 done
3770 IFS="$acl_save_IFS"
3771 fi
3772
3773
d6e703cc
FM
3774
3775
3776
3777
3778
3779
3780
3781 use_additional=yes
3782
3783 acl_save_prefix="$prefix"
3784 prefix="$acl_final_prefix"
3785 acl_save_exec_prefix="$exec_prefix"
3786 exec_prefix="$acl_final_exec_prefix"
3787
3788 eval additional_includedir=\"$includedir\"
3789 eval additional_libdir=\"$libdir\"
3790
3791 exec_prefix="$acl_save_exec_prefix"
3792 prefix="$acl_save_prefix"
3793
3794
0743911c 3795# Check whether --with-libiconv-prefix was given.
d6e703cc 3796if test "${with_libiconv_prefix+set}" = set; then
0743911c 3797 withval=$with_libiconv_prefix;
d6e703cc
FM
3798 if test "X$withval" = "Xno"; then
3799 use_additional=no
3800 else
3801 if test "X$withval" = "X"; then
3802
3803 acl_save_prefix="$prefix"
3804 prefix="$acl_final_prefix"
3805 acl_save_exec_prefix="$exec_prefix"
3806 exec_prefix="$acl_final_exec_prefix"
3807
3808 eval additional_includedir=\"$includedir\"
3809 eval additional_libdir=\"$libdir\"
3810
3811 exec_prefix="$acl_save_exec_prefix"
3812 prefix="$acl_save_prefix"
3813
3814 else
3815 additional_includedir="$withval/include"
0743911c 3816 additional_libdir="$withval/$acl_libdirstem"
d6e703cc
FM
3817 fi
3818 fi
3819
0743911c
FM
3820fi
3821
d6e703cc
FM
3822 LIBICONV=
3823 LTLIBICONV=
3824 INCICONV=
0743911c 3825 LIBICONV_PREFIX=
d6e703cc
FM
3826 rpathdirs=
3827 ltrpathdirs=
3828 names_already_handled=
3829 names_next_round='iconv '
3830 while test -n "$names_next_round"; do
3831 names_this_round="$names_next_round"
3832 names_next_round=
3833 for name in $names_this_round; do
3834 already_handled=
3835 for n in $names_already_handled; do
3836 if test "$n" = "$name"; then
3837 already_handled=yes
3838 break
3839 fi
3840 done
3841 if test -z "$already_handled"; then
3842 names_already_handled="$names_already_handled $name"
3843 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3844 eval value=\"\$HAVE_LIB$uppername\"
3845 if test -n "$value"; then
3846 if test "$value" = yes; then
3847 eval value=\"\$LIB$uppername\"
3848 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
3849 eval value=\"\$LTLIB$uppername\"
3850 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
3851 else
3852 :
3853 fi
3854 else
3855 found_dir=
3856 found_la=
3857 found_so=
3858 found_a=
0743911c
FM
3859 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
3860 if test -n "$acl_shlibext"; then
3861 shrext=".$acl_shlibext" # typically: shrext=.so
3862 else
3863 shrext=
3864 fi
d6e703cc 3865 if test $use_additional = yes; then
0743911c
FM
3866 dir="$additional_libdir"
3867 if test -n "$acl_shlibext"; then
3868 if test -f "$dir/$libname$shrext"; then
3869 found_dir="$dir"
3870 found_so="$dir/$libname$shrext"
3871 else
3872 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
3873 ver=`(cd "$dir" && \
3874 for f in "$libname$shrext".*; do echo "$f"; done \
3875 | sed -e "s,^$libname$shrext\\\\.,," \
3876 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
3877 | sed 1q ) 2>/dev/null`
3878 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
3879 found_dir="$dir"
3880 found_so="$dir/$libname$shrext.$ver"
3881 fi
3882 else
3883 eval library_names=\"$acl_library_names_spec\"
3884 for f in $library_names; do
3885 if test -f "$dir/$f"; then
3886 found_dir="$dir"
3887 found_so="$dir/$f"
3888 break
3889 fi
3890 done
d6e703cc
FM
3891 fi
3892 fi
0743911c
FM
3893 fi
3894 if test "X$found_dir" = "X"; then
3895 if test -f "$dir/$libname.$acl_libext"; then
3896 found_dir="$dir"
3897 found_a="$dir/$libname.$acl_libext"
3898 fi
3899 fi
3900 if test "X$found_dir" != "X"; then
3901 if test -f "$dir/$libname.la"; then
3902 found_la="$dir/$libname.la"
3903 fi
d6e703cc
FM
3904 fi
3905 fi
3906 if test "X$found_dir" = "X"; then
3907 for x in $LDFLAGS $LTLIBICONV; do
3908
3909 acl_save_prefix="$prefix"
3910 prefix="$acl_final_prefix"
3911 acl_save_exec_prefix="$exec_prefix"
3912 exec_prefix="$acl_final_exec_prefix"
3913 eval x=\"$x\"
3914 exec_prefix="$acl_save_exec_prefix"
3915 prefix="$acl_save_prefix"
3916
3917 case "$x" in
3918 -L*)
3919 dir=`echo "X$x" | sed -e 's/^X-L//'`
0743911c
FM
3920 if test -n "$acl_shlibext"; then
3921 if test -f "$dir/$libname$shrext"; then
d6e703cc 3922 found_dir="$dir"
0743911c
FM
3923 found_so="$dir/$libname$shrext"
3924 else
3925 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
3926 ver=`(cd "$dir" && \
3927 for f in "$libname$shrext".*; do echo "$f"; done \
3928 | sed -e "s,^$libname$shrext\\\\.,," \
3929 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
3930 | sed 1q ) 2>/dev/null`
3931 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
3932 found_dir="$dir"
3933 found_so="$dir/$libname$shrext.$ver"
3934 fi
3935 else
3936 eval library_names=\"$acl_library_names_spec\"
3937 for f in $library_names; do
3938 if test -f "$dir/$f"; then
3939 found_dir="$dir"
3940 found_so="$dir/$f"
3941 break
3942 fi
3943 done
d6e703cc
FM
3944 fi
3945 fi
0743911c
FM
3946 fi
3947 if test "X$found_dir" = "X"; then
3948 if test -f "$dir/$libname.$acl_libext"; then
3949 found_dir="$dir"
3950 found_a="$dir/$libname.$acl_libext"
3951 fi
3952 fi
3953 if test "X$found_dir" != "X"; then
3954 if test -f "$dir/$libname.la"; then
3955 found_la="$dir/$libname.la"
3956 fi
d6e703cc
FM
3957 fi
3958 ;;
3959 esac
3960 if test "X$found_dir" != "X"; then
3961 break
3962 fi
3963 done
3964 fi
3965 if test "X$found_dir" != "X"; then
3966 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
3967 if test "X$found_so" != "X"; then
0743911c 3968 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
d6e703cc
FM
3969 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3970 else
3971 haveit=
3972 for x in $ltrpathdirs; do
3973 if test "X$x" = "X$found_dir"; then
3974 haveit=yes
3975 break
3976 fi
3977 done
3978 if test -z "$haveit"; then
3979 ltrpathdirs="$ltrpathdirs $found_dir"
3980 fi
0743911c 3981 if test "$acl_hardcode_direct" = yes; then
d6e703cc
FM
3982 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3983 else
0743911c 3984 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
d6e703cc
FM
3985 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3986 haveit=
3987 for x in $rpathdirs; do
3988 if test "X$x" = "X$found_dir"; then
3989 haveit=yes
3990 break
3991 fi
3992 done
3993 if test -z "$haveit"; then
3994 rpathdirs="$rpathdirs $found_dir"
3995 fi
3996 else
3997 haveit=
3998 for x in $LDFLAGS $LIBICONV; do
3999
4000 acl_save_prefix="$prefix"
4001 prefix="$acl_final_prefix"
4002 acl_save_exec_prefix="$exec_prefix"
4003 exec_prefix="$acl_final_exec_prefix"
4004 eval x=\"$x\"
4005 exec_prefix="$acl_save_exec_prefix"
4006 prefix="$acl_save_prefix"
4007
4008 if test "X$x" = "X-L$found_dir"; then
4009 haveit=yes
4010 break
4011 fi
4012 done
4013 if test -z "$haveit"; then
4014 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4015 fi
0743911c 4016 if test "$acl_hardcode_minus_L" != no; then
d6e703cc
FM
4017 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4018 else
4019 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4020 fi
4021 fi
4022 fi
4023 fi
4024 else
4025 if test "X$found_a" != "X"; then
4026 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4027 else
4028 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4029 fi
4030 fi
4031 additional_includedir=
4032 case "$found_dir" in
0743911c
FM
4033 */$acl_libdirstem | */$acl_libdirstem/)
4034 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4035 LIBICONV_PREFIX="$basedir"
d6e703cc
FM
4036 additional_includedir="$basedir/include"
4037 ;;
4038 esac
4039 if test "X$additional_includedir" != "X"; then
4040 if test "X$additional_includedir" != "X/usr/include"; then
4041 haveit=
4042 if test "X$additional_includedir" = "X/usr/local/include"; then
4043 if test -n "$GCC"; then
4044 case $host_os in
0743911c 4045 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
d6e703cc
FM
4046 esac
4047 fi
4048 fi
4049 if test -z "$haveit"; then
4050 for x in $CPPFLAGS $INCICONV; do
4051
4052 acl_save_prefix="$prefix"
4053 prefix="$acl_final_prefix"
4054 acl_save_exec_prefix="$exec_prefix"
4055 exec_prefix="$acl_final_exec_prefix"
4056 eval x=\"$x\"
4057 exec_prefix="$acl_save_exec_prefix"
4058 prefix="$acl_save_prefix"
4059
4060 if test "X$x" = "X-I$additional_includedir"; then
4061 haveit=yes
4062 break
4063 fi
4064 done
4065 if test -z "$haveit"; then
4066 if test -d "$additional_includedir"; then
4067 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4068 fi
4069 fi
4070 fi
4071 fi
4072 fi
4073 if test -n "$found_la"; then
4074 save_libdir="$libdir"
4075 case "$found_la" in
4076 */* | *\\*) . "$found_la" ;;
4077 *) . "./$found_la" ;;
4078 esac
4079 libdir="$save_libdir"
4080 for dep in $dependency_libs; do
4081 case "$dep" in
4082 -L*)
4083 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
0743911c 4084 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
d6e703cc 4085 haveit=
0743911c 4086 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
d6e703cc
FM
4087 if test -n "$GCC"; then
4088 case $host_os in
0743911c 4089 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
d6e703cc
FM
4090 esac
4091 fi
4092 fi
4093 if test -z "$haveit"; then
4094 haveit=
4095 for x in $LDFLAGS $LIBICONV; do
4096
4097 acl_save_prefix="$prefix"
4098 prefix="$acl_final_prefix"
4099 acl_save_exec_prefix="$exec_prefix"
4100 exec_prefix="$acl_final_exec_prefix"
4101 eval x=\"$x\"
4102 exec_prefix="$acl_save_exec_prefix"
4103 prefix="$acl_save_prefix"
4104
4105 if test "X$x" = "X-L$additional_libdir"; then
4106 haveit=yes
4107 break
4108 fi
4109 done
4110 if test -z "$haveit"; then
4111 if test -d "$additional_libdir"; then
4112 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4113 fi
4114 fi
4115 haveit=
4116 for x in $LDFLAGS $LTLIBICONV; do
4117
4118 acl_save_prefix="$prefix"
4119 prefix="$acl_final_prefix"
4120 acl_save_exec_prefix="$exec_prefix"
4121 exec_prefix="$acl_final_exec_prefix"
4122 eval x=\"$x\"
4123 exec_prefix="$acl_save_exec_prefix"
4124 prefix="$acl_save_prefix"
4125
4126 if test "X$x" = "X-L$additional_libdir"; then
4127 haveit=yes
4128 break
4129 fi
4130 done
4131 if test -z "$haveit"; then
4132 if test -d "$additional_libdir"; then
4133 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4134 fi
4135 fi
4136 fi
4137 fi
4138 ;;
4139 -R*)
4140 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4141 if test "$enable_rpath" != no; then
4142 haveit=
4143 for x in $rpathdirs; do
4144 if test "X$x" = "X$dir"; then
4145 haveit=yes
4146 break
4147 fi
4148 done
4149 if test -z "$haveit"; then
4150 rpathdirs="$rpathdirs $dir"
4151 fi
4152 haveit=
4153 for x in $ltrpathdirs; do
4154 if test "X$x" = "X$dir"; then
4155 haveit=yes
4156 break
4157 fi
4158 done
4159 if test -z "$haveit"; then
4160 ltrpathdirs="$ltrpathdirs $dir"
4161 fi
4162 fi
4163 ;;
4164 -l*)
4165 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4166 ;;
4167 *.la)
4168 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4169 ;;
4170 *)
4171 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4172 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4173 ;;
4174 esac
4175 done
4176 fi
4177 else
4178 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4179 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4180 fi
4181 fi
4182 fi
4183 done
4184 done
4185 if test "X$rpathdirs" != "X"; then
0743911c 4186 if test -n "$acl_hardcode_libdir_separator"; then
d6e703cc
FM
4187 alldirs=
4188 for found_dir in $rpathdirs; do
0743911c 4189 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
d6e703cc
FM
4190 done
4191 acl_save_libdir="$libdir"
4192 libdir="$alldirs"
0743911c 4193 eval flag=\"$acl_hardcode_libdir_flag_spec\"
d6e703cc
FM
4194 libdir="$acl_save_libdir"
4195 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4196 else
4197 for found_dir in $rpathdirs; do
4198 acl_save_libdir="$libdir"
4199 libdir="$found_dir"
0743911c 4200 eval flag=\"$acl_hardcode_libdir_flag_spec\"
d6e703cc
FM
4201 libdir="$acl_save_libdir"
4202 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4203 done
4204 fi
4205 fi
4206 if test "X$ltrpathdirs" != "X"; then
4207 for found_dir in $ltrpathdirs; do
4208 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4209 done
4210 fi
4211
4212
4213
4214
4215
4216
4217
4218 am_save_CPPFLAGS="$CPPFLAGS"
4219
4220 for element in $INCICONV; do
4221 haveit=
4222 for x in $CPPFLAGS; do
4223
4224 acl_save_prefix="$prefix"
4225 prefix="$acl_final_prefix"
4226 acl_save_exec_prefix="$exec_prefix"
4227 exec_prefix="$acl_final_exec_prefix"
4228 eval x=\"$x\"
4229 exec_prefix="$acl_save_exec_prefix"
4230 prefix="$acl_save_prefix"
4231
4232 if test "X$x" = "X$element"; then
4233 haveit=yes
4234 break
4235 fi
4236 done
4237 if test -z "$haveit"; then
4238 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4239 fi
4240 done
4241
4242
0743911c
FM
4243 { echo "$as_me:$LINENO: checking for iconv" >&5
4244echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
d6e703cc
FM
4245if test "${am_cv_func_iconv+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4247else
4248
4249 am_cv_func_iconv="no, consider installing GNU libiconv"
4250 am_cv_lib_iconv=no
4251 cat >conftest.$ac_ext <<_ACEOF
4252/* confdefs.h. */
4253_ACEOF
4254cat confdefs.h >>conftest.$ac_ext
4255cat >>conftest.$ac_ext <<_ACEOF
4256/* end confdefs.h. */
4257#include <stdlib.h>
4258#include <iconv.h>
4259int
4260main ()
4261{
4262iconv_t cd = iconv_open("","");
4263 iconv(cd,NULL,NULL,NULL,NULL);
4264 iconv_close(cd);
4265 ;
4266 return 0;
4267}
4268_ACEOF
4269rm -f conftest.$ac_objext conftest$ac_exeext
0743911c
FM
4270if { (ac_try="$ac_link"
4271case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4274esac
4275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276 (eval "$ac_link") 2>conftest.er1
d6e703cc
FM
4277 ac_status=$?
4278 grep -v '^ *+' conftest.er1 >conftest.err
4279 rm -f conftest.er1
4280 cat conftest.err >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
4282 (exit $ac_status); } && {
4283 test -z "$ac_c_werror_flag" ||
4284 test ! -s conftest.err
4285 } && test -s conftest$ac_exeext &&
4286 $as_test_x conftest$ac_exeext; then
d6e703cc
FM
4287 am_cv_func_iconv=yes
4288else
4289 echo "$as_me: failed program was:" >&5
4290sed 's/^/| /' conftest.$ac_ext >&5
4291
0743911c 4292
d6e703cc 4293fi
0743911c
FM
4294
4295rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d6e703cc
FM
4296 conftest$ac_exeext conftest.$ac_ext
4297 if test "$am_cv_func_iconv" != yes; then
4298 am_save_LIBS="$LIBS"
4299 LIBS="$LIBS $LIBICONV"
4300 cat >conftest.$ac_ext <<_ACEOF
4301/* confdefs.h. */
4302_ACEOF
4303cat confdefs.h >>conftest.$ac_ext
4304cat >>conftest.$ac_ext <<_ACEOF
4305/* end confdefs.h. */
4306#include <stdlib.h>
4307#include <iconv.h>
4308int
4309main ()
4310{
4311iconv_t cd = iconv_open("","");
4312 iconv(cd,NULL,NULL,NULL,NULL);
4313 iconv_close(cd);
4314 ;
4315 return 0;
4316}
4317_ACEOF
4318rm -f conftest.$ac_objext conftest$ac_exeext
0743911c
FM
4319if { (ac_try="$ac_link"
4320case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323esac
4324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_link") 2>conftest.er1
d6e703cc
FM
4326 ac_status=$?
4327 grep -v '^ *+' conftest.er1 >conftest.err
4328 rm -f conftest.er1
4329 cat conftest.err >&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
4331 (exit $ac_status); } && {
4332 test -z "$ac_c_werror_flag" ||
4333 test ! -s conftest.err
4334 } && test -s conftest$ac_exeext &&
4335 $as_test_x conftest$ac_exeext; then
d6e703cc
FM
4336 am_cv_lib_iconv=yes
4337 am_cv_func_iconv=yes
4338else
4339 echo "$as_me: failed program was:" >&5
4340sed 's/^/| /' conftest.$ac_ext >&5
4341
0743911c 4342
d6e703cc 4343fi
0743911c
FM
4344
4345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d6e703cc
FM
4346 conftest$ac_exeext conftest.$ac_ext
4347 LIBS="$am_save_LIBS"
4348 fi
4349
4350fi
0743911c
FM
4351{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4352echo "${ECHO_T}$am_cv_func_iconv" >&6; }
d6e703cc 4353 if test "$am_cv_func_iconv" = yes; then
0743911c
FM
4354 { echo "$as_me:$LINENO: checking for working iconv" >&5
4355echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
4356if test "${am_cv_func_iconv_works+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4358else
4359
4360 am_save_LIBS="$LIBS"
4361 if test $am_cv_lib_iconv = yes; then
4362 LIBS="$LIBS $LIBICONV"
4363 fi
4364 if test "$cross_compiling" = yes; then
4365 case "$host_os" in
4366 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
4367 *) am_cv_func_iconv_works="guessing yes" ;;
4368 esac
4369else
4370 cat >conftest.$ac_ext <<_ACEOF
4371/* confdefs.h. */
4372_ACEOF
4373cat confdefs.h >>conftest.$ac_ext
4374cat >>conftest.$ac_ext <<_ACEOF
4375/* end confdefs.h. */
4376
4377#include <iconv.h>
4378#include <string.h>
4379int main ()
4380{
4381 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
4382 returns. */
4383 {
4384 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
4385 if (cd_utf8_to_88591 != (iconv_t)(-1))
4386 {
4387 static const char input[] = "\342\202\254"; /* EURO SIGN */
4388 char buf[10];
4389 const char *inptr = input;
4390 size_t inbytesleft = strlen (input);
4391 char *outptr = buf;
4392 size_t outbytesleft = sizeof (buf);
4393 size_t res = iconv (cd_utf8_to_88591,
4394 (char **) &inptr, &inbytesleft,
4395 &outptr, &outbytesleft);
4396 if (res == 0)
4397 return 1;
4398 }
4399 }
4400#if 0 /* This bug could be worked around by the caller. */
4401 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
4402 {
4403 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
4404 if (cd_88591_to_utf8 != (iconv_t)(-1))
4405 {
4406 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
4407 char buf[50];
4408 const char *inptr = input;
4409 size_t inbytesleft = strlen (input);
4410 char *outptr = buf;
4411 size_t outbytesleft = sizeof (buf);
4412 size_t res = iconv (cd_88591_to_utf8,
4413 (char **) &inptr, &inbytesleft,
4414 &outptr, &outbytesleft);
4415 if ((int)res > 0)
4416 return 1;
4417 }
4418 }
4419#endif
4420 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
4421 provided. */
4422 if (/* Try standardized names. */
4423 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
4424 /* Try IRIX, OSF/1 names. */
4425 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
4426 /* Try AIX names. */
4427 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
4428 /* Try HP-UX names. */
4429 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
4430 return 1;
4431 return 0;
4432}
4433_ACEOF
4434rm -f conftest$ac_exeext
4435if { (ac_try="$ac_link"
4436case "(($ac_try" in
4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438 *) ac_try_echo=$ac_try;;
4439esac
4440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4441 (eval "$ac_link") 2>&5
4442 ac_status=$?
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4445 { (case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4448esac
4449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450 (eval "$ac_try") 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; }; then
4454 am_cv_func_iconv_works=yes
4455else
4456 echo "$as_me: program exited with status $ac_status" >&5
4457echo "$as_me: failed program was:" >&5
4458sed 's/^/| /' conftest.$ac_ext >&5
4459
4460( exit $ac_status )
4461am_cv_func_iconv_works=no
4462fi
4463rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4464fi
4465
4466
4467 LIBS="$am_save_LIBS"
4468
4469fi
4470{ echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
4471echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
4472 case "$am_cv_func_iconv_works" in
4473 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
4474 *) am_func_iconv=yes ;;
4475 esac
4476 else
4477 am_func_iconv=no am_cv_lib_iconv=no
4478 fi
4479 if test "$am_func_iconv" = yes; then
d6e703cc
FM
4480
4481cat >>confdefs.h <<\_ACEOF
4482#define HAVE_ICONV 1
4483_ACEOF
4484
4485 fi
4486 if test "$am_cv_lib_iconv" = yes; then
0743911c
FM
4487 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
4488echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
4489 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
4490echo "${ECHO_T}$LIBICONV" >&6; }
d6e703cc
FM
4491 else
4492 CPPFLAGS="$am_save_CPPFLAGS"
4493 LIBICONV=
4494 LTLIBICONV=
4495 fi
4496
4497
4498
4499 if test "$am_cv_func_iconv" = yes; then
0743911c
FM
4500 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
4501echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
d6e703cc
FM
4502 if test "${am_cv_proto_iconv+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4504else
4505
4506 cat >conftest.$ac_ext <<_ACEOF
4507/* confdefs.h. */
4508_ACEOF
4509cat confdefs.h >>conftest.$ac_ext
4510cat >>conftest.$ac_ext <<_ACEOF
4511/* end confdefs.h. */
4512
4513#include <stdlib.h>
4514#include <iconv.h>
4515extern
4516#ifdef __cplusplus
4517"C"
4518#endif
4519#if defined(__STDC__) || defined(__cplusplus)
4520size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4521#else
4522size_t iconv();
4523#endif
4524
4525int
4526main ()
4527{
4528
4529 ;
4530 return 0;
4531}
4532_ACEOF
4533rm -f conftest.$ac_objext
0743911c
FM
4534if { (ac_try="$ac_compile"
4535case "(($ac_try" in
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4538esac
4539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540 (eval "$ac_compile") 2>conftest.er1
d6e703cc
FM
4541 ac_status=$?
4542 grep -v '^ *+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
4546 (exit $ac_status); } && {
4547 test -z "$ac_c_werror_flag" ||
4548 test ! -s conftest.err
4549 } && test -s conftest.$ac_objext; then
d6e703cc
FM
4550 am_cv_proto_iconv_arg1=""
4551else
4552 echo "$as_me: failed program was:" >&5
4553sed 's/^/| /' conftest.$ac_ext >&5
4554
0743911c 4555 am_cv_proto_iconv_arg1="const"
d6e703cc 4556fi
0743911c
FM
4557
4558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6e703cc
FM
4559 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);"
4560fi
4561
4562 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
0743911c 4563 { echo "$as_me:$LINENO: result: ${ac_t:-
d6e703cc
FM
4564 }$am_cv_proto_iconv" >&5
4565echo "${ECHO_T}${ac_t:-
0743911c 4566 }$am_cv_proto_iconv" >&6; }
d6e703cc
FM
4567
4568cat >>confdefs.h <<_ACEOF
4569#define ICONV_CONST $am_cv_proto_iconv_arg1
4570_ACEOF
4571
4572 fi
4573
4574if test -n "$LIBICONV" ; then
4575 LIBS="$LIBS $LIBICONV"
4576fi
4577
25697a35
GS
4578# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4579
4580
4581
4582
4583
4584
4585
4586
4587
d6e703cc
FM
4588for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4589 inttypes.h stdint.h unistd.h
4590do
4591as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
0743911c
FM
4592{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d6e703cc
FM
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4596else
4597 cat >conftest.$ac_ext <<_ACEOF
4598/* confdefs.h. */
4599_ACEOF
4600cat confdefs.h >>conftest.$ac_ext
4601cat >>conftest.$ac_ext <<_ACEOF
4602/* end confdefs.h. */
4603$ac_includes_default
4604
4605#include <$ac_header>
4606_ACEOF
4607rm -f conftest.$ac_objext
0743911c
FM
4608if { (ac_try="$ac_compile"
4609case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4612esac
4613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614 (eval "$ac_compile") 2>conftest.er1
d6e703cc
FM
4615 ac_status=$?
4616 grep -v '^ *+' conftest.er1 >conftest.err
4617 rm -f conftest.er1
4618 cat conftest.err >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
4620 (exit $ac_status); } && {
4621 test -z "$ac_c_werror_flag" ||
4622 test ! -s conftest.err
4623 } && test -s conftest.$ac_objext; then
d6e703cc
FM
4624 eval "$as_ac_Header=yes"
4625else
4626 echo "$as_me: failed program was:" >&5
4627sed 's/^/| /' conftest.$ac_ext >&5
4628
0743911c 4629 eval "$as_ac_Header=no"
d6e703cc 4630fi
0743911c
FM
4631
4632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6e703cc 4633fi
0743911c
FM
4634ac_res=`eval echo '${'$as_ac_Header'}'`
4635 { echo "$as_me:$LINENO: result: $ac_res" >&5
4636echo "${ECHO_T}$ac_res" >&6; }
d6e703cc
FM
4637if test `eval echo '${'$as_ac_Header'}'` = yes; then
4638 cat >>confdefs.h <<_ACEOF
4639#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4640_ACEOF
4641
4642fi
4643
4644done
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
0743911c 4670
d2fe0c32 4671
d6e703cc
FM
4672
4673
4674for ac_header in stdio.h stdlib.h string.h strings.h sys/time.h time.h unistd.h sys/dirent.h \
4675 dirent.h sys/socket.h netdb.h arpa/inet.h sys/types.h netinet/in.h sys/stat.h \
4676 ctype.h gd.h gdfontl.h gdfontt.h gdfonts.h gdfontmb.h gdfontg.h iconv.h \
d2fe0c32 4677 errno.h sys/resource.h sys/wait.h stdarg.h
d6e703cc
FM
4678do
4679as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
0743911c
FM
4680if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4683if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d6e703cc
FM
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4685fi
0743911c
FM
4686ac_res=`eval echo '${'$as_ac_Header'}'`
4687 { echo "$as_me:$LINENO: result: $ac_res" >&5
4688echo "${ECHO_T}$ac_res" >&6; }
d6e703cc
FM
4689else
4690 # Is the header compilable?
0743911c
FM
4691{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4692echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d6e703cc
FM
4693cat >conftest.$ac_ext <<_ACEOF
4694/* confdefs.h. */
4695_ACEOF
4696cat confdefs.h >>conftest.$ac_ext
4697cat >>conftest.$ac_ext <<_ACEOF
4698/* end confdefs.h. */
4699$ac_includes_default
4700#include <$ac_header>
4701_ACEOF
4702rm -f conftest.$ac_objext
0743911c
FM
4703if { (ac_try="$ac_compile"
4704case "(($ac_try" in
4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4707esac
4708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4709 (eval "$ac_compile") 2>conftest.er1
d6e703cc
FM
4710 ac_status=$?
4711 grep -v '^ *+' conftest.er1 >conftest.err
4712 rm -f conftest.er1
4713 cat conftest.err >&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
4715 (exit $ac_status); } && {
4716 test -z "$ac_c_werror_flag" ||
4717 test ! -s conftest.err
4718 } && test -s conftest.$ac_objext; then
d6e703cc
FM
4719 ac_header_compiler=yes
4720else
4721 echo "$as_me: failed program was:" >&5
4722sed 's/^/| /' conftest.$ac_ext >&5
4723
0743911c 4724 ac_header_compiler=no
d6e703cc 4725fi
0743911c
FM
4726
4727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4729echo "${ECHO_T}$ac_header_compiler" >&6; }
d6e703cc
FM
4730
4731# Is the header present?
0743911c
FM
4732{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4733echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d6e703cc
FM
4734cat >conftest.$ac_ext <<_ACEOF
4735/* confdefs.h. */
4736_ACEOF
4737cat confdefs.h >>conftest.$ac_ext
4738cat >>conftest.$ac_ext <<_ACEOF
4739/* end confdefs.h. */
4740#include <$ac_header>
4741_ACEOF
0743911c
FM
4742if { (ac_try="$ac_cpp conftest.$ac_ext"
4743case "(($ac_try" in
4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745 *) ac_try_echo=$ac_try;;
4746esac
4747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d6e703cc
FM
4749 ac_status=$?
4750 grep -v '^ *+' conftest.er1 >conftest.err
4751 rm -f conftest.er1
4752 cat conftest.err >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
4754 (exit $ac_status); } >/dev/null && {
4755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4756 test ! -s conftest.err
4757 }; then
d6e703cc
FM
4758 ac_header_preproc=yes
4759else
4760 echo "$as_me: failed program was:" >&5
4761sed 's/^/| /' conftest.$ac_ext >&5
4762
4763 ac_header_preproc=no
4764fi
0743911c 4765
d6e703cc 4766rm -f conftest.err conftest.$ac_ext
0743911c
FM
4767{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4768echo "${ECHO_T}$ac_header_preproc" >&6; }
d6e703cc
FM
4769
4770# So? What about this header?
4771case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4772 yes:no: )
4773 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4774echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4776echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4777 ac_header_preproc=yes
4778 ;;
4779 no:yes:* )
4780 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4781echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4782 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4783echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4784 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4785echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4786 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4787echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4789echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4790 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4791echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
0743911c 4792
d6e703cc
FM
4793 ;;
4794esac
0743911c
FM
4795{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4797if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d6e703cc
FM
4798 echo $ECHO_N "(cached) $ECHO_C" >&6
4799else
4800 eval "$as_ac_Header=\$ac_header_preproc"
4801fi
0743911c
FM
4802ac_res=`eval echo '${'$as_ac_Header'}'`
4803 { echo "$as_me:$LINENO: result: $ac_res" >&5
4804echo "${ECHO_T}$ac_res" >&6; }
d6e703cc
FM
4805
4806fi
4807if test `eval echo '${'$as_ac_Header'}'` = yes; then
4808 cat >>confdefs.h <<_ACEOF
4809#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4810_ACEOF
4811
4812fi
4813
4814done
4815
4816
0743911c
FM
4817{ echo "$as_me:$LINENO: checking for gdImagePng in -lgd" >&5
4818echo $ECHO_N "checking for gdImagePng in -lgd... $ECHO_C" >&6; }
d6e703cc
FM
4819if test "${ac_cv_lib_gd_gdImagePng+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4821else
4822 ac_check_lib_save_LIBS=$LIBS
4823LIBS="-lgd $LIBS"
4824cat >conftest.$ac_ext <<_ACEOF
4825/* confdefs.h. */
4826_ACEOF
4827cat confdefs.h >>conftest.$ac_ext
4828cat >>conftest.$ac_ext <<_ACEOF
4829/* end confdefs.h. */
4830
0743911c
FM
4831/* Override any GCC internal prototype to avoid an error.
4832 Use char because int might match the return type of a GCC
4833 builtin and then its argument prototype would still apply. */
d6e703cc
FM
4834#ifdef __cplusplus
4835extern "C"
4836#endif
d6e703cc
FM
4837char gdImagePng ();
4838int
4839main ()
4840{
0743911c 4841return gdImagePng ();
d6e703cc
FM
4842 ;
4843 return 0;
4844}
4845_ACEOF
4846rm -f conftest.$ac_objext conftest$ac_exeext
0743911c
FM
4847if { (ac_try="$ac_link"
4848case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4851esac
4852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4853 (eval "$ac_link") 2>conftest.er1
d6e703cc
FM
4854 ac_status=$?
4855 grep -v '^ *+' conftest.er1 >conftest.err
4856 rm -f conftest.er1
4857 cat conftest.err >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
4859 (exit $ac_status); } && {
4860 test -z "$ac_c_werror_flag" ||
4861 test ! -s conftest.err
4862 } && test -s conftest$ac_exeext &&
4863 $as_test_x conftest$ac_exeext; then
d6e703cc
FM
4864 ac_cv_lib_gd_gdImagePng=yes
4865else
4866 echo "$as_me: failed program was:" >&5
4867sed 's/^/| /' conftest.$ac_ext >&5
4868
0743911c 4869 ac_cv_lib_gd_gdImagePng=no
d6e703cc 4870fi
0743911c
FM
4871
4872rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d6e703cc
FM
4873 conftest$ac_exeext conftest.$ac_ext
4874LIBS=$ac_check_lib_save_LIBS
4875fi
0743911c
FM
4876{ echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePng" >&5
4877echo "${ECHO_T}$ac_cv_lib_gd_gdImagePng" >&6; }
d6e703cc
FM
4878if test $ac_cv_lib_gd_gdImagePng = yes; then
4879 LIBS="-lgd ${LIBS}"; HAVE_GD="yes"
4880else
4881 HAVE_GD=""
4882fi
4883
4884
0743911c
FM
4885{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4886echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
d6e703cc 4887if test "${ac_cv_c_const+set}" = set; then
25697a35
GS
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4889else
4890 cat >conftest.$ac_ext <<_ACEOF
4891/* confdefs.h. */
4892_ACEOF
4893cat confdefs.h >>conftest.$ac_ext
4894cat >>conftest.$ac_ext <<_ACEOF
4895/* end confdefs.h. */
25697a35 4896
d6e703cc
FM
4897int
4898main ()
4899{
4900/* FIXME: Include the comments suggested by Paul. */
4901#ifndef __cplusplus
4902 /* Ultrix mips cc rejects this. */
4903 typedef int charset[2];
0743911c 4904 const charset cs;
d6e703cc 4905 /* SunOS 4.1.1 cc rejects this. */
0743911c
FM
4906 char const *const *pcpcc;
4907 char **ppc;
d6e703cc
FM
4908 /* NEC SVR4.0.2 mips cc rejects this. */
4909 struct point {int x, y;};
4910 static struct point const zero = {0,0};
4911 /* AIX XL C 1.02.0.0 rejects this.
4912 It does not let you subtract one const X* pointer from another in
4913 an arm of an if-expression whose if-part is not a constant
4914 expression */
4915 const char *g = "string";
0743911c 4916 pcpcc = &g + (g ? g-g : 0);
d6e703cc 4917 /* HPUX 7.0 cc rejects these. */
0743911c
FM
4918 ++pcpcc;
4919 ppc = (char**) pcpcc;
4920 pcpcc = (char const *const *) ppc;
d6e703cc
FM
4921 { /* SCO 3.2v4 cc rejects this. */
4922 char *t;
4923 char const *s = 0 ? (char *) 0 : (char const *) 0;
4924
4925 *t++ = 0;
0743911c 4926 if (s) return 0;
d6e703cc
FM
4927 }
4928 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4929 int x[] = {25, 17};
4930 const int *foo = &x[0];
4931 ++foo;
4932 }
4933 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4934 typedef const int *iptr;
4935 iptr p = 0;
4936 ++p;
4937 }
4938 { /* AIX XL C 1.02.0.0 rejects this saying
4939 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4940 struct s { int j; const int *ap[3]; };
4941 struct s *b; b->j = 5;
4942 }
4943 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4944 const int foo = 10;
0743911c 4945 if (!foo) return 0;
d6e703cc 4946 }
0743911c 4947 return !cs[0] && !zero.x;
d6e703cc
FM
4948#endif
4949
4950 ;
4951 return 0;
4952}
25697a35
GS
4953_ACEOF
4954rm -f conftest.$ac_objext
0743911c
FM
4955if { (ac_try="$ac_compile"
4956case "(($ac_try" in
4957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958 *) ac_try_echo=$ac_try;;
4959esac
4960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4961 (eval "$ac_compile") 2>conftest.er1
25697a35
GS
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
4967 (exit $ac_status); } && {
4968 test -z "$ac_c_werror_flag" ||
4969 test ! -s conftest.err
4970 } && test -s conftest.$ac_objext; then
d6e703cc 4971 ac_cv_c_const=yes
25697a35
GS
4972else
4973 echo "$as_me: failed program was:" >&5
4974sed 's/^/| /' conftest.$ac_ext >&5
4975
0743911c 4976 ac_cv_c_const=no
25697a35 4977fi
0743911c
FM
4978
4979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25697a35 4980fi
0743911c
FM
4981{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4982echo "${ECHO_T}$ac_cv_c_const" >&6; }
d6e703cc
FM
4983if test $ac_cv_c_const = no; then
4984
4985cat >>confdefs.h <<\_ACEOF
4986#define const
25697a35
GS
4987_ACEOF
4988
4989fi
4990
0743911c
FM
4991{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4992echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
d6e703cc 4993if test "${ac_cv_struct_tm+set}" = set; then
25697a35 4994 echo $ECHO_N "(cached) $ECHO_C" >&6
25697a35 4995else
d6e703cc 4996 cat >conftest.$ac_ext <<_ACEOF
25697a35
GS
4997/* confdefs.h. */
4998_ACEOF
4999cat confdefs.h >>conftest.$ac_ext
5000cat >>conftest.$ac_ext <<_ACEOF
5001/* end confdefs.h. */
d6e703cc
FM
5002#include <sys/types.h>
5003#include <time.h>
5004
5005int
5006main ()
5007{
0743911c
FM
5008struct tm tm;
5009 int *p = &tm.tm_sec;
5010 return !p;
d6e703cc
FM
5011 ;
5012 return 0;
5013}
25697a35
GS
5014_ACEOF
5015rm -f conftest.$ac_objext
0743911c
FM
5016if { (ac_try="$ac_compile"
5017case "(($ac_try" in
5018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5019 *) ac_try_echo=$ac_try;;
5020esac
5021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5022 (eval "$ac_compile") 2>conftest.er1
25697a35
GS
5023 ac_status=$?
5024 grep -v '^ *+' conftest.er1 >conftest.err
5025 rm -f conftest.er1
5026 cat conftest.err >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
5028 (exit $ac_status); } && {
5029 test -z "$ac_c_werror_flag" ||
5030 test ! -s conftest.err
5031 } && test -s conftest.$ac_objext; then
d6e703cc 5032 ac_cv_struct_tm=time.h
25697a35
GS
5033else
5034 echo "$as_me: failed program was:" >&5
5035sed 's/^/| /' conftest.$ac_ext >&5
5036
0743911c 5037 ac_cv_struct_tm=sys/time.h
25697a35 5038fi
0743911c
FM
5039
5040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6e703cc 5041fi
0743911c
FM
5042{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5043echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
d6e703cc 5044if test $ac_cv_struct_tm = sys/time.h; then
25697a35 5045
d6e703cc
FM
5046cat >>confdefs.h <<\_ACEOF
5047#define TM_IN_SYS_TIME 1
5048_ACEOF
5049
5050fi
5051
5052
32e71fa4
FM
5053# Check whether --enable-largefile was given.
5054if test "${enable_largefile+set}" = set; then
5055 enableval=$enable_largefile;
5056fi
5057
5058if test "$enable_largefile" != no; then
5059
5060 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5061echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5062if test "${ac_cv_sys_largefile_CC+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5064else
5065 ac_cv_sys_largefile_CC=no
5066 if test "$GCC" != yes; then
5067 ac_save_CC=$CC
5068 while :; do
5069 # IRIX 6.2 and later do not support large files by default,
5070 # so use the C compiler's -n32 option if that helps.
5071 cat >conftest.$ac_ext <<_ACEOF
5072/* confdefs.h. */
5073_ACEOF
5074cat confdefs.h >>conftest.$ac_ext
5075cat >>conftest.$ac_ext <<_ACEOF
5076/* end confdefs.h. */
5077#include <sys/types.h>
5078 /* Check that off_t can represent 2**63 - 1 correctly.
5079 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5080 since some C++ compilers masquerading as C compilers
5081 incorrectly reject 9223372036854775807. */
5082#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5083 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5084 && LARGE_OFF_T % 2147483647 == 1)
5085 ? 1 : -1];
5086int
5087main ()
5088{
5089
5090 ;
5091 return 0;
5092}
5093_ACEOF
5094 rm -f conftest.$ac_objext
5095if { (ac_try="$ac_compile"
5096case "(($ac_try" in
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5099esac
5100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5101 (eval "$ac_compile") 2>conftest.er1
5102 ac_status=$?
5103 grep -v '^ *+' conftest.er1 >conftest.err
5104 rm -f conftest.er1
5105 cat conftest.err >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } && {
5108 test -z "$ac_c_werror_flag" ||
5109 test ! -s conftest.err
5110 } && test -s conftest.$ac_objext; then
5111 break
5112else
5113 echo "$as_me: failed program was:" >&5
5114sed 's/^/| /' conftest.$ac_ext >&5
5115
5116
5117fi
5118
5119rm -f core conftest.err conftest.$ac_objext
5120 CC="$CC -n32"
5121 rm -f conftest.$ac_objext
5122if { (ac_try="$ac_compile"
5123case "(($ac_try" in
5124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125 *) ac_try_echo=$ac_try;;
5126esac
5127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128 (eval "$ac_compile") 2>conftest.er1
5129 ac_status=$?
5130 grep -v '^ *+' conftest.er1 >conftest.err
5131 rm -f conftest.er1
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } && {
5135 test -z "$ac_c_werror_flag" ||
5136 test ! -s conftest.err
5137 } && test -s conftest.$ac_objext; then
5138 ac_cv_sys_largefile_CC=' -n32'; break
5139else
5140 echo "$as_me: failed program was:" >&5
5141sed 's/^/| /' conftest.$ac_ext >&5
5142
5143
5144fi
5145
5146rm -f core conftest.err conftest.$ac_objext
5147 break
5148 done
5149 CC=$ac_save_CC
5150 rm -f conftest.$ac_ext
5151 fi
5152fi
5153{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5154echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5155 if test "$ac_cv_sys_largefile_CC" != no; then
5156 CC=$CC$ac_cv_sys_largefile_CC
5157 fi
5158
5159 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5160echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5161if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163else
5164 while :; do
5165 cat >conftest.$ac_ext <<_ACEOF
5166/* confdefs.h. */
5167_ACEOF
5168cat confdefs.h >>conftest.$ac_ext
5169cat >>conftest.$ac_ext <<_ACEOF
5170/* end confdefs.h. */
5171#include <sys/types.h>
5172 /* Check that off_t can represent 2**63 - 1 correctly.
5173 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5174 since some C++ compilers masquerading as C compilers
5175 incorrectly reject 9223372036854775807. */
5176#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5177 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5178 && LARGE_OFF_T % 2147483647 == 1)
5179 ? 1 : -1];
5180int
5181main ()
5182{
5183
5184 ;
5185 return 0;
5186}
5187_ACEOF
5188rm -f conftest.$ac_objext
5189if { (ac_try="$ac_compile"
5190case "(($ac_try" in
5191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192 *) ac_try_echo=$ac_try;;
5193esac
5194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5195 (eval "$ac_compile") 2>conftest.er1
5196 ac_status=$?
5197 grep -v '^ *+' conftest.er1 >conftest.err
5198 rm -f conftest.er1
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } && {
5202 test -z "$ac_c_werror_flag" ||
5203 test ! -s conftest.err
5204 } && test -s conftest.$ac_objext; then
5205 ac_cv_sys_file_offset_bits=no; break
5206else
5207 echo "$as_me: failed program was:" >&5
5208sed 's/^/| /' conftest.$ac_ext >&5
5209
5210
5211fi
5212
5213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214 cat >conftest.$ac_ext <<_ACEOF
5215/* confdefs.h. */
5216_ACEOF
5217cat confdefs.h >>conftest.$ac_ext
5218cat >>conftest.$ac_ext <<_ACEOF
5219/* end confdefs.h. */
5220#define _FILE_OFFSET_BITS 64
5221#include <sys/types.h>
5222 /* Check that off_t can represent 2**63 - 1 correctly.
5223 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5224 since some C++ compilers masquerading as C compilers
5225 incorrectly reject 9223372036854775807. */
5226#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5227 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5228 && LARGE_OFF_T % 2147483647 == 1)
5229 ? 1 : -1];
5230int
5231main ()
5232{
5233
5234 ;
5235 return 0;
5236}
5237_ACEOF
5238rm -f conftest.$ac_objext
5239if { (ac_try="$ac_compile"
5240case "(($ac_try" in
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5243esac
5244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245 (eval "$ac_compile") 2>conftest.er1
5246 ac_status=$?
5247 grep -v '^ *+' conftest.er1 >conftest.err
5248 rm -f conftest.er1
5249 cat conftest.err >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } && {
5252 test -z "$ac_c_werror_flag" ||
5253 test ! -s conftest.err
5254 } && test -s conftest.$ac_objext; then
5255 ac_cv_sys_file_offset_bits=64; break
5256else
5257 echo "$as_me: failed program was:" >&5
5258sed 's/^/| /' conftest.$ac_ext >&5
5259
5260
5261fi
5262
5263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 ac_cv_sys_file_offset_bits=unknown
5265 break
5266done
5267fi
5268{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5269echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5270case $ac_cv_sys_file_offset_bits in #(
5271 no | unknown) ;;
5272 *)
5273cat >>confdefs.h <<_ACEOF
5274#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5275_ACEOF
5276;;
5277esac
5278rm -f conftest*
5279 if test $ac_cv_sys_file_offset_bits = unknown; then
5280 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5281echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5282if test "${ac_cv_sys_large_files+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5284else
5285 while :; do
5286 cat >conftest.$ac_ext <<_ACEOF
5287/* confdefs.h. */
5288_ACEOF
5289cat confdefs.h >>conftest.$ac_ext
5290cat >>conftest.$ac_ext <<_ACEOF
5291/* end confdefs.h. */
5292#include <sys/types.h>
5293 /* Check that off_t can represent 2**63 - 1 correctly.
5294 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5295 since some C++ compilers masquerading as C compilers
5296 incorrectly reject 9223372036854775807. */
5297#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5298 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5299 && LARGE_OFF_T % 2147483647 == 1)
5300 ? 1 : -1];
5301int
5302main ()
5303{
5304
5305 ;
5306 return 0;
5307}
5308_ACEOF
5309rm -f conftest.$ac_objext
5310if { (ac_try="$ac_compile"
5311case "(($ac_try" in
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5314esac
5315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_compile") 2>conftest.er1
5317 ac_status=$?
5318 grep -v '^ *+' conftest.er1 >conftest.err
5319 rm -f conftest.er1
5320 cat conftest.err >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } && {
5323 test -z "$ac_c_werror_flag" ||
5324 test ! -s conftest.err
5325 } && test -s conftest.$ac_objext; then
5326 ac_cv_sys_large_files=no; break
5327else
5328 echo "$as_me: failed program was:" >&5
5329sed 's/^/| /' conftest.$ac_ext >&5
5330
5331
5332fi
5333
5334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5335 cat >conftest.$ac_ext <<_ACEOF
5336/* confdefs.h. */
5337_ACEOF
5338cat confdefs.h >>conftest.$ac_ext
5339cat >>conftest.$ac_ext <<_ACEOF
5340/* end confdefs.h. */
5341#define _LARGE_FILES 1
5342#include <sys/types.h>
5343 /* Check that off_t can represent 2**63 - 1 correctly.
5344 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5345 since some C++ compilers masquerading as C compilers
5346 incorrectly reject 9223372036854775807. */
5347#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5348 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5349 && LARGE_OFF_T % 2147483647 == 1)
5350 ? 1 : -1];
5351int
5352main ()
5353{
5354
5355 ;
5356 return 0;
5357}
5358_ACEOF
5359rm -f conftest.$ac_objext
5360if { (ac_try="$ac_compile"
5361case "(($ac_try" in
5362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363 *) ac_try_echo=$ac_try;;
5364esac
5365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5366 (eval "$ac_compile") 2>conftest.er1
5367 ac_status=$?
5368 grep -v '^ *+' conftest.er1 >conftest.err
5369 rm -f conftest.er1
5370 cat conftest.err >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } && {
5373 test -z "$ac_c_werror_flag" ||
5374 test ! -s conftest.err
5375 } && test -s conftest.$ac_objext; then
5376 ac_cv_sys_large_files=1; break
5377else
5378 echo "$as_me: failed program was:" >&5
5379sed 's/^/| /' conftest.$ac_ext >&5
5380
5381
5382fi
5383
5384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385 ac_cv_sys_large_files=unknown
5386 break
5387done
5388fi
5389{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5390echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5391case $ac_cv_sys_large_files in #(
5392 no | unknown) ;;
5393 *)
5394cat >>confdefs.h <<_ACEOF
5395#define _LARGE_FILES $ac_cv_sys_large_files
5396_ACEOF
5397;;
5398esac
5399rm -f conftest*
5400 fi
5401fi
5402
5403
5404# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
5405# needs to be defined for it
5406{ echo "$as_me:$LINENO: checking for fopen64" >&5
5407echo $ECHO_N "checking for fopen64... $ECHO_C" >&6; }
5408if test "${bu_cv_have_fopen64+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410else
5411 cat >conftest.$ac_ext <<_ACEOF
5412/* confdefs.h. */
5413_ACEOF
5414cat confdefs.h >>conftest.$ac_ext
5415cat >>conftest.$ac_ext <<_ACEOF
5416/* end confdefs.h. */
5417#include <stdio.h>
5418int
5419main ()
5420{
5421FILE *f = fopen64 ("/tmp/foo","r");
5422 ;
5423 return 0;
5424}
5425_ACEOF
5426rm -f conftest.$ac_objext conftest$ac_exeext
5427if { (ac_try="$ac_link"
5428case "(($ac_try" in
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5431esac
5432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_link") 2>conftest.er1
5434 ac_status=$?
5435 grep -v '^ *+' conftest.er1 >conftest.err
5436 rm -f conftest.er1
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } && {
5440 test -z "$ac_c_werror_flag" ||
5441 test ! -s conftest.err
5442 } && test -s conftest$ac_exeext &&
5443 $as_test_x conftest$ac_exeext; then
5444 bu_cv_have_fopen64=yes
5445else
5446 echo "$as_me: failed program was:" >&5
5447sed 's/^/| /' conftest.$ac_ext >&5
5448
c1b9eca2
FM
5449 saved_CFLAGS=$CFLAGS
5450 CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE"
32e71fa4
FM
5451 cat >conftest.$ac_ext <<_ACEOF
5452/* confdefs.h. */
5453_ACEOF
5454cat confdefs.h >>conftest.$ac_ext
5455cat >>conftest.$ac_ext <<_ACEOF
5456/* end confdefs.h. */
5457#include <stdio.h>
5458int
5459main ()
5460{
5461FILE *f = fopen64 ("/tmp/foo","r");
5462 ;
5463 return 0;
5464}
5465_ACEOF
5466rm -f conftest.$ac_objext conftest$ac_exeext
5467if { (ac_try="$ac_link"
5468case "(($ac_try" in
5469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470 *) ac_try_echo=$ac_try;;
5471esac
5472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5473 (eval "$ac_link") 2>conftest.er1
5474 ac_status=$?
5475 grep -v '^ *+' conftest.er1 >conftest.err
5476 rm -f conftest.er1
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } && {
5480 test -z "$ac_c_werror_flag" ||
5481 test ! -s conftest.err
5482 } && test -s conftest$ac_exeext &&
5483 $as_test_x conftest$ac_exeext; then
5484 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
5485else
5486 echo "$as_me: failed program was:" >&5
5487sed 's/^/| /' conftest.$ac_ext >&5
5488
5489 bu_cv_have_fopen64=no
5490fi
5491
5492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5493 conftest$ac_exeext conftest.$ac_ext
c1b9eca2 5494 CFLAGS=$saved_CFLAGS
32e71fa4
FM
5495fi
5496
5497rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5498 conftest$ac_exeext conftest.$ac_ext
5499fi
5500
5501{ echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
5502echo "${ECHO_T}$bu_cv_have_fopen64" >&6; }
5503if test "$bu_cv_have_fopen64" != no; then
5504
5505cat >>confdefs.h <<\_ACEOF
5506#define HAVE_FOPEN64 1
5507_ACEOF
5508
5509 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE"; then
5510
5511cat >>confdefs.h <<\_ACEOF
5512#define _LARGEFILE64_SOURCE 1
5513_ACEOF
5514
5515 fi
5516fi
5517
5518
0743911c
FM
5519{ echo "$as_me:$LINENO: checking for off_t" >&5
5520echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
d6e703cc
FM
5521if test "${ac_cv_type_off_t+set}" = set; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5523else
5524 cat >conftest.$ac_ext <<_ACEOF
25697a35
GS
5525/* confdefs.h. */
5526_ACEOF
5527cat confdefs.h >>conftest.$ac_ext
5528cat >>conftest.$ac_ext <<_ACEOF
5529/* end confdefs.h. */
32e71fa4
FM
5530$ac_includes_default
5531typedef off_t ac__type_new_;
5532int
5533main ()
5534{
5535if ((ac__type_new_ *) 0)
5536 return 0;
5537if (sizeof (ac__type_new_))
5538 return 0;
5539 ;
5540 return 0;
5541}
5542_ACEOF
5543rm -f conftest.$ac_objext
5544if { (ac_try="$ac_compile"
5545case "(($ac_try" in
5546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5547 *) ac_try_echo=$ac_try;;
5548esac
5549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5550 (eval "$ac_compile") 2>conftest.er1
5551 ac_status=$?
5552 grep -v '^ *+' conftest.er1 >conftest.err
5553 rm -f conftest.er1
5554 cat conftest.err >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } && {
5557 test -z "$ac_c_werror_flag" ||
5558 test ! -s conftest.err
5559 } && test -s conftest.$ac_objext; then
5560 ac_cv_type_off_t=yes
5561else
5562 echo "$as_me: failed program was:" >&5
5563sed 's/^/| /' conftest.$ac_ext >&5
5564
5565 ac_cv_type_off_t=no
5566fi
5567
5568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569fi
5570{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5571echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5572
5573# The cast to long int works around a bug in the HP C Compiler
5574# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5575# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5576# This bug is HP SR number 8606223364.
5577{ echo "$as_me:$LINENO: checking size of off_t" >&5
5578echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
5579if test "${ac_cv_sizeof_off_t+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581else
5582 if test "$cross_compiling" = yes; then
5583 # Depending upon the size, compute the lo and hi bounds.
5584cat >conftest.$ac_ext <<_ACEOF
5585/* confdefs.h. */
5586_ACEOF
5587cat confdefs.h >>conftest.$ac_ext
5588cat >>conftest.$ac_ext <<_ACEOF
5589/* end confdefs.h. */
5590$ac_includes_default
5591 typedef off_t ac__type_sizeof_;
5592int
5593main ()
5594{
5595static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5596test_array [0] = 0
5597
5598 ;
5599 return 0;
5600}
5601_ACEOF
5602rm -f conftest.$ac_objext
5603if { (ac_try="$ac_compile"
5604case "(($ac_try" in
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5607esac
5608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609 (eval "$ac_compile") 2>conftest.er1
5610 ac_status=$?
5611 grep -v '^ *+' conftest.er1 >conftest.err
5612 rm -f conftest.er1
5613 cat conftest.err >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } && {
5616 test -z "$ac_c_werror_flag" ||
5617 test ! -s conftest.err
5618 } && test -s conftest.$ac_objext; then
5619 ac_lo=0 ac_mid=0
5620 while :; do
5621 cat >conftest.$ac_ext <<_ACEOF
5622/* confdefs.h. */
5623_ACEOF
5624cat confdefs.h >>conftest.$ac_ext
5625cat >>conftest.$ac_ext <<_ACEOF
5626/* end confdefs.h. */
5627$ac_includes_default
5628 typedef off_t ac__type_sizeof_;
5629int
5630main ()
5631{
5632static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5633test_array [0] = 0
5634
5635 ;
5636 return 0;
5637}
5638_ACEOF
5639rm -f conftest.$ac_objext
5640if { (ac_try="$ac_compile"
5641case "(($ac_try" in
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5644esac
5645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_compile") 2>conftest.er1
5647 ac_status=$?
5648 grep -v '^ *+' conftest.er1 >conftest.err
5649 rm -f conftest.er1
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } && {
5653 test -z "$ac_c_werror_flag" ||
5654 test ! -s conftest.err
5655 } && test -s conftest.$ac_objext; then
5656 ac_hi=$ac_mid; break
5657else
5658 echo "$as_me: failed program was:" >&5
5659sed 's/^/| /' conftest.$ac_ext >&5
5660
5661 ac_lo=`expr $ac_mid + 1`
5662 if test $ac_lo -le $ac_mid; then
5663 ac_lo= ac_hi=
5664 break
5665 fi
5666 ac_mid=`expr 2 '*' $ac_mid + 1`
5667fi
5668
5669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5670 done
5671else
5672 echo "$as_me: failed program was:" >&5
5673sed 's/^/| /' conftest.$ac_ext >&5
5674
5675 cat >conftest.$ac_ext <<_ACEOF
5676/* confdefs.h. */
5677_ACEOF
5678cat confdefs.h >>conftest.$ac_ext
5679cat >>conftest.$ac_ext <<_ACEOF
5680/* end confdefs.h. */
5681$ac_includes_default
5682 typedef off_t ac__type_sizeof_;
5683int
5684main ()
5685{
5686static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5687test_array [0] = 0
5688
5689 ;
5690 return 0;
5691}
5692_ACEOF
5693rm -f conftest.$ac_objext
5694if { (ac_try="$ac_compile"
5695case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698esac
5699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700 (eval "$ac_compile") 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } && {
5707 test -z "$ac_c_werror_flag" ||
5708 test ! -s conftest.err
5709 } && test -s conftest.$ac_objext; then
5710 ac_hi=-1 ac_mid=-1
5711 while :; do
5712 cat >conftest.$ac_ext <<_ACEOF
5713/* confdefs.h. */
5714_ACEOF
5715cat confdefs.h >>conftest.$ac_ext
5716cat >>conftest.$ac_ext <<_ACEOF
5717/* end confdefs.h. */
5718$ac_includes_default
5719 typedef off_t ac__type_sizeof_;
5720int
5721main ()
5722{
5723static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5724test_array [0] = 0
5725
5726 ;
5727 return 0;
5728}
5729_ACEOF
5730rm -f conftest.$ac_objext
5731if { (ac_try="$ac_compile"
5732case "(($ac_try" in
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5735esac
5736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_compile") 2>conftest.er1
5738 ac_status=$?
5739 grep -v '^ *+' conftest.er1 >conftest.err
5740 rm -f conftest.er1
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } && {
5744 test -z "$ac_c_werror_flag" ||
5745 test ! -s conftest.err
5746 } && test -s conftest.$ac_objext; then
5747 ac_lo=$ac_mid; break
5748else
5749 echo "$as_me: failed program was:" >&5
5750sed 's/^/| /' conftest.$ac_ext >&5
5751
5752 ac_hi=`expr '(' $ac_mid ')' - 1`
5753 if test $ac_mid -le $ac_hi; then
5754 ac_lo= ac_hi=
5755 break
5756 fi
5757 ac_mid=`expr 2 '*' $ac_mid`
5758fi
5759
5760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 done
5762else
5763 echo "$as_me: failed program was:" >&5
5764sed 's/^/| /' conftest.$ac_ext >&5
5765
5766 ac_lo= ac_hi=
5767fi
5768
5769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770fi
5771
5772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773# Binary search between lo and hi bounds.
5774while test "x$ac_lo" != "x$ac_hi"; do
5775 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5776 cat >conftest.$ac_ext <<_ACEOF
5777/* confdefs.h. */
5778_ACEOF
5779cat confdefs.h >>conftest.$ac_ext
5780cat >>conftest.$ac_ext <<_ACEOF
5781/* end confdefs.h. */
5782$ac_includes_default
5783 typedef off_t ac__type_sizeof_;
5784int
5785main ()
5786{
5787static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5788test_array [0] = 0
5789
5790 ;
5791 return 0;
5792}
5793_ACEOF
5794rm -f conftest.$ac_objext
5795if { (ac_try="$ac_compile"
5796case "(($ac_try" in
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5799esac
5800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_compile") 2>conftest.er1
5802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } && {
5808 test -z "$ac_c_werror_flag" ||
5809 test ! -s conftest.err
5810 } && test -s conftest.$ac_objext; then
5811 ac_hi=$ac_mid
5812else
5813 echo "$as_me: failed program was:" >&5
5814sed 's/^/| /' conftest.$ac_ext >&5
5815
5816 ac_lo=`expr '(' $ac_mid ')' + 1`
5817fi
5818
5819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820done
5821case $ac_lo in
5822?*) ac_cv_sizeof_off_t=$ac_lo;;
5823'') if test "$ac_cv_type_off_t" = yes; then
5824 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
5825See \`config.log' for more details." >&5
5826echo "$as_me: error: cannot compute sizeof (off_t)
5827See \`config.log' for more details." >&2;}
5828 { (exit 77); exit 77; }; }
5829 else
5830 ac_cv_sizeof_off_t=0
5831 fi ;;
5832esac
5833else
5834 cat >conftest.$ac_ext <<_ACEOF
5835/* confdefs.h. */
5836_ACEOF
5837cat confdefs.h >>conftest.$ac_ext
5838cat >>conftest.$ac_ext <<_ACEOF
5839/* end confdefs.h. */
5840$ac_includes_default
5841 typedef off_t ac__type_sizeof_;
5842static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5843static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5844#include <stdio.h>
5845#include <stdlib.h>
5846int
5847main ()
5848{
5849
5850 FILE *f = fopen ("conftest.val", "w");
5851 if (! f)
5852 return 1;
5853 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5854 {
5855 long int i = longval ();
5856 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5857 return 1;
5858 fprintf (f, "%ld\n", i);
5859 }
5860 else
5861 {
5862 unsigned long int i = ulongval ();
5863 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5864 return 1;
5865 fprintf (f, "%lu\n", i);
5866 }
5867 return ferror (f) || fclose (f) != 0;
5868
5869 ;
5870 return 0;
5871}
5872_ACEOF
5873rm -f conftest$ac_exeext
5874if { (ac_try="$ac_link"
5875case "(($ac_try" in
5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877 *) ac_try_echo=$ac_try;;
5878esac
5879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5880 (eval "$ac_link") 2>&5
5881 ac_status=$?
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5884 { (case "(($ac_try" in
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5887esac
5888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$ac_try") 2>&5
5890 ac_status=$?
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; }; then
5893 ac_cv_sizeof_off_t=`cat conftest.val`
5894else
5895 echo "$as_me: program exited with status $ac_status" >&5
5896echo "$as_me: failed program was:" >&5
5897sed 's/^/| /' conftest.$ac_ext >&5
5898
5899( exit $ac_status )
5900if test "$ac_cv_type_off_t" = yes; then
5901 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
5902See \`config.log' for more details." >&5
5903echo "$as_me: error: cannot compute sizeof (off_t)
5904See \`config.log' for more details." >&2;}
5905 { (exit 77); exit 77; }; }
5906 else
5907 ac_cv_sizeof_off_t=0
5908 fi
5909fi
5910rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5911fi
5912rm -f conftest.val
5913fi
5914{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
5915echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
5916
5917
5918
5919cat >>confdefs.h <<_ACEOF
5920#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5921_ACEOF
5922
5923
5924if test $ac_cv_sizeof_off_t = "4"; then
5925
5926cat >>confdefs.h <<\_ACEOF
5927#define OFFSET_STRING "%d"
5928_ACEOF
5929
5930elif test $ac_cv_sizeof_off_t = "8"; then
5931
5932cat >>confdefs.h <<\_ACEOF
5933#define OFFSET_STRING "%lli"
5934_ACEOF
5935
5936else
5937 { { echo "$as_me:$LINENO: error: can not detect the size of your system\'s off_t type" >&5
5938echo "$as_me: error: can not detect the size of your system\'s off_t type" >&2;}
5939 { (exit 1); exit 1; }; }
5940fi
5941
5942{ echo "$as_me:$LINENO: checking for rlim_t" >&5
5943echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6; }
5944if test "${ac_cv_type_rlim_t+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5946else
5947 cat >conftest.$ac_ext <<_ACEOF
5948/* confdefs.h. */
5949_ACEOF
5950cat confdefs.h >>conftest.$ac_ext
5951cat >>conftest.$ac_ext <<_ACEOF
5952/* end confdefs.h. */
5953#if HAVE_SYS_RESOURCE_H
5954#include <sys/resource.h>
5955#endif
5956
5957
5958typedef rlim_t ac__type_new_;
d6e703cc
FM
5959int
5960main ()
5961{
0743911c 5962if ((ac__type_new_ *) 0)
d6e703cc 5963 return 0;
0743911c 5964if (sizeof (ac__type_new_))
d6e703cc
FM
5965 return 0;
5966 ;
5967 return 0;
5968}
25697a35 5969_ACEOF
d6e703cc 5970rm -f conftest.$ac_objext
0743911c
FM
5971if { (ac_try="$ac_compile"
5972case "(($ac_try" in
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5975esac
5976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_compile") 2>conftest.er1
25697a35
GS
5978 ac_status=$?
5979 grep -v '^ *+' conftest.er1 >conftest.err
5980 rm -f conftest.er1
5981 cat conftest.err >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
5983 (exit $ac_status); } && {
5984 test -z "$ac_c_werror_flag" ||
5985 test ! -s conftest.err
5986 } && test -s conftest.$ac_objext; then
32e71fa4 5987 ac_cv_type_rlim_t=yes
25697a35
GS
5988else
5989 echo "$as_me: failed program was:" >&5
5990sed 's/^/| /' conftest.$ac_ext >&5
5991
32e71fa4 5992 ac_cv_type_rlim_t=no
25697a35 5993fi
0743911c
FM
5994
5995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25697a35 5996fi
32e71fa4
FM
5997{ echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
5998echo "${ECHO_T}$ac_cv_type_rlim_t" >&6; }
25697a35 5999
0743911c
FM
6000# The cast to long int works around a bug in the HP C Compiler
6001# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6002# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6003# This bug is HP SR number 8606223364.
32e71fa4
FM
6004{ echo "$as_me:$LINENO: checking size of rlim_t" >&5
6005echo $ECHO_N "checking size of rlim_t... $ECHO_C" >&6; }
6006if test "${ac_cv_sizeof_rlim_t+set}" = set; then
25697a35
GS
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6008else
d6e703cc
FM
6009 if test "$cross_compiling" = yes; then
6010 # Depending upon the size, compute the lo and hi bounds.
25697a35
GS
6011cat >conftest.$ac_ext <<_ACEOF
6012/* confdefs.h. */
6013_ACEOF
6014cat confdefs.h >>conftest.$ac_ext
6015cat >>conftest.$ac_ext <<_ACEOF
6016/* end confdefs.h. */
32e71fa4
FM
6017#if HAVE_SYS_RESOURCE_H
6018#include <sys/resource.h>
6019#endif
6020
6021
6022 typedef rlim_t ac__type_sizeof_;
d6e703cc
FM
6023int
6024main ()
6025{
0743911c 6026static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
d6e703cc
FM
6027test_array [0] = 0
6028
6029 ;
6030 return 0;
6031}
6032_ACEOF
6033rm -f conftest.$ac_objext
0743911c
FM
6034if { (ac_try="$ac_compile"
6035case "(($ac_try" in
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6038esac
6039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_compile") 2>conftest.er1
d6e703cc
FM
6041 ac_status=$?
6042 grep -v '^ *+' conftest.er1 >conftest.err
6043 rm -f conftest.er1
6044 cat conftest.err >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
6046 (exit $ac_status); } && {
6047 test -z "$ac_c_werror_flag" ||
6048 test ! -s conftest.err
6049 } && test -s conftest.$ac_objext; then
d6e703cc
FM
6050 ac_lo=0 ac_mid=0
6051 while :; do
6052 cat >conftest.$ac_ext <<_ACEOF
6053/* confdefs.h. */
6054_ACEOF
6055cat confdefs.h >>conftest.$ac_ext
6056cat >>conftest.$ac_ext <<_ACEOF
6057/* end confdefs.h. */
32e71fa4
FM
6058#if HAVE_SYS_RESOURCE_H
6059#include <sys/resource.h>
6060#endif
6061
6062
6063 typedef rlim_t ac__type_sizeof_;
25697a35
GS
6064int
6065main ()
6066{
0743911c 6067static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d6e703cc
FM
6068test_array [0] = 0
6069
25697a35
GS
6070 ;
6071 return 0;
6072}
6073_ACEOF
d6e703cc 6074rm -f conftest.$ac_objext
0743911c
FM
6075if { (ac_try="$ac_compile"
6076case "(($ac_try" in
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6079esac
6080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_compile") 2>conftest.er1
25697a35
GS
6082 ac_status=$?
6083 grep -v '^ *+' conftest.er1 >conftest.err
6084 rm -f conftest.er1
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
6087 (exit $ac_status); } && {
6088 test -z "$ac_c_werror_flag" ||
6089 test ! -s conftest.err
6090 } && test -s conftest.$ac_objext; then
d6e703cc 6091 ac_hi=$ac_mid; break
25697a35
GS
6092else
6093 echo "$as_me: failed program was:" >&5
6094sed 's/^/| /' conftest.$ac_ext >&5
6095
0743911c
FM
6096 ac_lo=`expr $ac_mid + 1`
6097 if test $ac_lo -le $ac_mid; then
6098 ac_lo= ac_hi=
6099 break
6100 fi
6101 ac_mid=`expr 2 '*' $ac_mid + 1`
25697a35 6102fi
0743911c
FM
6103
6104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6e703cc 6105 done
25697a35 6106else
d6e703cc
FM
6107 echo "$as_me: failed program was:" >&5
6108sed 's/^/| /' conftest.$ac_ext >&5
25697a35 6109
0743911c 6110 cat >conftest.$ac_ext <<_ACEOF
25697a35
GS
6111/* confdefs.h. */
6112_ACEOF
6113cat confdefs.h >>conftest.$ac_ext
6114cat >>conftest.$ac_ext <<_ACEOF
6115/* end confdefs.h. */
32e71fa4
FM
6116#if HAVE_SYS_RESOURCE_H
6117#include <sys/resource.h>
6118#endif
6119
6120
6121 typedef rlim_t ac__type_sizeof_;
25697a35
GS
6122int
6123main ()
6124{
0743911c 6125static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
d6e703cc 6126test_array [0] = 0
25697a35 6127
d6e703cc
FM
6128 ;
6129 return 0;
6130}
6131_ACEOF
6132rm -f conftest.$ac_objext
0743911c
FM
6133if { (ac_try="$ac_compile"
6134case "(($ac_try" in
6135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6137esac
6138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139 (eval "$ac_compile") 2>conftest.er1
d6e703cc
FM
6140 ac_status=$?
6141 grep -v '^ *+' conftest.er1 >conftest.err
6142 rm -f conftest.er1
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
6145 (exit $ac_status); } && {
6146 test -z "$ac_c_werror_flag" ||
6147 test ! -s conftest.err
6148 } && test -s conftest.$ac_objext; then
d6e703cc
FM
6149 ac_hi=-1 ac_mid=-1
6150 while :; do
6151 cat >conftest.$ac_ext <<_ACEOF
6152/* confdefs.h. */
6153_ACEOF
6154cat confdefs.h >>conftest.$ac_ext
6155cat >>conftest.$ac_ext <<_ACEOF
6156/* end confdefs.h. */
32e71fa4
FM
6157#if HAVE_SYS_RESOURCE_H
6158#include <sys/resource.h>
6159#endif
6160
6161
6162 typedef rlim_t ac__type_sizeof_;
d6e703cc
FM
6163int
6164main ()
6165{
0743911c 6166static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
d6e703cc 6167test_array [0] = 0
25697a35
GS
6168
6169 ;
6170 return 0;
6171}
6172_ACEOF
6173rm -f conftest.$ac_objext
0743911c
FM
6174if { (ac_try="$ac_compile"
6175case "(($ac_try" in
6176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177 *) ac_try_echo=$ac_try;;
6178esac
6179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180 (eval "$ac_compile") 2>conftest.er1
25697a35
GS
6181 ac_status=$?
6182 grep -v '^ *+' conftest.er1 >conftest.err
6183 rm -f conftest.er1
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
6186 (exit $ac_status); } && {
6187 test -z "$ac_c_werror_flag" ||
6188 test ! -s conftest.err
6189 } && test -s conftest.$ac_objext; then
d6e703cc 6190 ac_lo=$ac_mid; break
25697a35
GS
6191else
6192 echo "$as_me: failed program was:" >&5
6193sed 's/^/| /' conftest.$ac_ext >&5
6194
0743911c
FM
6195 ac_hi=`expr '(' $ac_mid ')' - 1`
6196 if test $ac_mid -le $ac_hi; then
6197 ac_lo= ac_hi=
6198 break
6199 fi
6200 ac_mid=`expr 2 '*' $ac_mid`
25697a35 6201fi
0743911c
FM
6202
6203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6e703cc
FM
6204 done
6205else
6206 echo "$as_me: failed program was:" >&5
6207sed 's/^/| /' conftest.$ac_ext >&5
25697a35 6208
0743911c 6209 ac_lo= ac_hi=
25697a35 6210fi
0743911c
FM
6211
6212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6e703cc 6213fi
0743911c
FM
6214
6215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6e703cc
FM
6216# Binary search between lo and hi bounds.
6217while test "x$ac_lo" != "x$ac_hi"; do
6218 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25697a35
GS
6219 cat >conftest.$ac_ext <<_ACEOF
6220/* confdefs.h. */
6221_ACEOF
6222cat confdefs.h >>conftest.$ac_ext
6223cat >>conftest.$ac_ext <<_ACEOF
6224/* end confdefs.h. */
32e71fa4
FM
6225#if HAVE_SYS_RESOURCE_H
6226#include <sys/resource.h>
6227#endif
6228
6229
6230 typedef rlim_t ac__type_sizeof_;
25697a35
GS
6231int
6232main ()
6233{
0743911c 6234static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d6e703cc
FM
6235test_array [0] = 0
6236
25697a35
GS
6237 ;
6238 return 0;
6239}
6240_ACEOF
6241rm -f conftest.$ac_objext
0743911c
FM
6242if { (ac_try="$ac_compile"
6243case "(($ac_try" in
6244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245 *) ac_try_echo=$ac_try;;
6246esac
6247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248 (eval "$ac_compile") 2>conftest.er1
25697a35
GS
6249 ac_status=$?
6250 grep -v '^ *+' conftest.er1 >conftest.err
6251 rm -f conftest.er1
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
6254 (exit $ac_status); } && {
6255 test -z "$ac_c_werror_flag" ||
6256 test ! -s conftest.err
6257 } && test -s conftest.$ac_objext; then
d6e703cc 6258 ac_hi=$ac_mid
25697a35
GS
6259else
6260 echo "$as_me: failed program was:" >&5
6261sed 's/^/| /' conftest.$ac_ext >&5
6262
0743911c 6263 ac_lo=`expr '(' $ac_mid ')' + 1`
25697a35 6264fi
0743911c
FM
6265
6266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6e703cc
FM
6267done
6268case $ac_lo in
32e71fa4
FM
6269?*) ac_cv_sizeof_rlim_t=$ac_lo;;
6270'') if test "$ac_cv_type_rlim_t" = yes; then
6271 { { echo "$as_me:$LINENO: error: cannot compute sizeof (rlim_t)
d6e703cc 6272See \`config.log' for more details." >&5
32e71fa4 6273echo "$as_me: error: cannot compute sizeof (rlim_t)
d6e703cc 6274See \`config.log' for more details." >&2;}
0743911c
FM
6275 { (exit 77); exit 77; }; }
6276 else
32e71fa4 6277 ac_cv_sizeof_rlim_t=0
0743911c 6278 fi ;;
d6e703cc 6279esac
d6e703cc
FM
6280else
6281 cat >conftest.$ac_ext <<_ACEOF
6282/* confdefs.h. */
6283_ACEOF
6284cat confdefs.h >>conftest.$ac_ext
6285cat >>conftest.$ac_ext <<_ACEOF
6286/* end confdefs.h. */
32e71fa4
FM
6287#if HAVE_SYS_RESOURCE_H
6288#include <sys/resource.h>
6289#endif
6290
6291
6292 typedef rlim_t ac__type_sizeof_;
0743911c
FM
6293static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6294static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
d6e703cc
FM
6295#include <stdio.h>
6296#include <stdlib.h>
6297int
6298main ()
6299{
6300
6301 FILE *f = fopen ("conftest.val", "w");
6302 if (! f)
0743911c
FM
6303 return 1;
6304 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
d6e703cc 6305 {
0743911c
FM
6306 long int i = longval ();
6307 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6308 return 1;
d6e703cc
FM
6309 fprintf (f, "%ld\n", i);
6310 }
6311 else
6312 {
0743911c
FM
6313 unsigned long int i = ulongval ();
6314 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6315 return 1;
d6e703cc
FM
6316 fprintf (f, "%lu\n", i);
6317 }
0743911c 6318 return ferror (f) || fclose (f) != 0;
d6e703cc
FM
6319
6320 ;
6321 return 0;
6322}
6323_ACEOF
6324rm -f conftest$ac_exeext
0743911c
FM
6325if { (ac_try="$ac_link"
6326case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329esac
6330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_link") 2>&5
d6e703cc
FM
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
0743911c
FM
6335 { (case "(($ac_try" in
6336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337 *) ac_try_echo=$ac_try;;
6338esac
6339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6340 (eval "$ac_try") 2>&5
d6e703cc
FM
6341 ac_status=$?
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; }; then
32e71fa4 6344 ac_cv_sizeof_rlim_t=`cat conftest.val`
d6e703cc
FM
6345else
6346 echo "$as_me: program exited with status $ac_status" >&5
6347echo "$as_me: failed program was:" >&5
6348sed 's/^/| /' conftest.$ac_ext >&5
6349
6350( exit $ac_status )
32e71fa4
FM
6351if test "$ac_cv_type_rlim_t" = yes; then
6352 { { echo "$as_me:$LINENO: error: cannot compute sizeof (rlim_t)
d6e703cc 6353See \`config.log' for more details." >&5
32e71fa4 6354echo "$as_me: error: cannot compute sizeof (rlim_t)
d6e703cc 6355See \`config.log' for more details." >&2;}
0743911c
FM
6356 { (exit 77); exit 77; }; }
6357 else
32e71fa4 6358 ac_cv_sizeof_rlim_t=0
0743911c 6359 fi
d6e703cc 6360fi
0743911c 6361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d6e703cc
FM
6362fi
6363rm -f conftest.val
d6e703cc 6364fi
32e71fa4
FM
6365{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_rlim_t" >&5
6366echo "${ECHO_T}$ac_cv_sizeof_rlim_t" >&6; }
0743911c
FM
6367
6368
6369
d6e703cc 6370cat >>confdefs.h <<_ACEOF
32e71fa4 6371#define SIZEOF_RLIM_T $ac_cv_sizeof_rlim_t
d6e703cc
FM
6372_ACEOF
6373
6374
32e71fa4 6375if test $ac_cv_sizeof_rlim_t = "4"; then
25697a35
GS
6376
6377cat >>confdefs.h <<\_ACEOF
32e71fa4 6378#define RLIM_STRING "%d"
25697a35
GS
6379_ACEOF
6380
32e71fa4 6381elif test $ac_cv_sizeof_rlim_t = "8"; then
d6e703cc
FM
6382
6383cat >>confdefs.h <<\_ACEOF
32e71fa4 6384#define RLIM_STRING "%lli"
d6e703cc 6385_ACEOF
25697a35 6386
d6e703cc 6387else
32e71fa4
FM
6388 { { echo "$as_me:$LINENO: error: can not detect the size of your system\'s rlim_t type" >&5
6389echo "$as_me: error: can not detect the size of your system\'s rlim_t type" >&2;}
d6e703cc
FM
6390 { (exit 1); exit 1; }; }
6391fi
25697a35 6392
0743911c 6393# Check whether --enable-bindir was given.
25697a35 6394if test "${enable_bindir+set}" = set; then
0743911c 6395 enableval=$enable_bindir;
25697a35
GS
6396 if test "$enableval"; then
6397 BINDIR=$enableval
6398 fi
6399
6400else
6401 BINDIR="/usr/bin"
0743911c
FM
6402fi
6403
25697a35
GS
6404echo "using $BINDIR as the SARG binary"
6405
6406
0743911c 6407# Check whether --enable-mandir was given.
25697a35 6408if test "${enable_mandir+set}" = set; then
0743911c 6409 enableval=$enable_mandir;
25697a35
GS
6410 if test "$enableval"; then
6411 MANDIR=$enableval
6412 fi
6413
6414else
6415 MANDIR="/usr/local/man/man1"
0743911c
FM
6416fi
6417
25697a35
GS
6418echo "using $MANDIR as the SARG man page"
6419
6420
0743911c 6421# Check whether --enable-sysconfdir was given.
25697a35 6422if test "${enable_sysconfdir+set}" = set; then
0743911c 6423 enableval=$enable_sysconfdir;
25697a35
GS
6424 if test "$enableval"; then
6425 SYSCONFDIR=$enableval
6426 fi
6427
6428else
6429 SYSCONFDIR="/usr/local/sarg"
0743911c
FM
6430fi
6431
25697a35
GS
6432echo "using $SYSCONFDIR as the SARG configuration dir"
6433
6434
0743911c 6435# Check whether --enable-htmldir was given.
25697a35 6436if test "${enable_htmldir+set}" = set; then
0743911c 6437 enableval=$enable_htmldir;
25697a35
GS
6438 if test "$enableval"; then
6439 HTMLDIR=$enableval
6440 fi
6441
6442else
6443 HTMLDIR="/var/www/html"
0743911c
FM
6444fi
6445
25697a35
GS
6446echo "using $HTMLDIR as the WWW Document Root dir"
6447
6448
6449
0743911c
FM
6450ac_config_files="$ac_config_files Makefile"
6451
25697a35
GS
6452cat >confcache <<\_ACEOF
6453# This file is a shell script that caches the results of configure
6454# tests run on this system so they can be shared between configure
6455# scripts and configure runs, see configure's option --config-cache.
6456# It is not useful on other systems. If it contains results you don't
6457# want to keep, you may remove or edit it.
6458#
6459# config.status only pays attention to the cache file if you give it
6460# the --recheck option to rerun configure.
6461#
6462# `ac_cv_env_foo' variables (set or unset) will be overridden when
6463# loading this file, other *unset* `ac_cv_foo' will be assigned the
6464# following values.
6465
6466_ACEOF
6467
6468# The following way of writing the cache mishandles newlines in values,
6469# but we know of no workaround that is simple, portable, and efficient.
0743911c 6470# So, we kill variables containing newlines.
25697a35
GS
6471# Ultrix sh set writes to stderr and can't be redirected directly,
6472# and sets the high bit in the cache file unless we assign to the vars.
0743911c
FM
6473(
6474 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6475 eval ac_val=\$$ac_var
6476 case $ac_val in #(
6477 *${as_nl}*)
6478 case $ac_var in #(
6479 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6480echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6481 esac
6482 case $ac_var in #(
6483 _ | IFS | as_nl) ;; #(
6484 *) $as_unset $ac_var ;;
6485 esac ;;
6486 esac
6487 done
6488
6489 (set) 2>&1 |
6490 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6491 *${as_nl}ac_space=\ *)
6492 # `set' does not quote correctly, so add quotes (double-quote
6493 # substitution turns \\\\ into \\, and sed turns \\ into \).
25697a35
GS
6494 sed -n \
6495 "s/'/'\\\\''/g;
6496 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
0743911c 6497 ;; #(
25697a35
GS
6498 *)
6499 # `set' quotes correctly as required by POSIX, so do not add quotes.
0743911c 6500 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25697a35 6501 ;;
0743911c
FM
6502 esac |
6503 sort
6504) |
25697a35 6505 sed '
0743911c 6506 /^ac_cv_env_/b end
25697a35 6507 t clear
0743911c 6508 :clear
25697a35
GS
6509 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6510 t end
0743911c
FM
6511 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6512 :end' >>confcache
6513if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6514 if test -w "$cache_file"; then
6515 test "x$cache_file" != "x/dev/null" &&
6516 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6517echo "$as_me: updating cache $cache_file" >&6;}
25697a35
GS
6518 cat confcache >$cache_file
6519 else
0743911c
FM
6520 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6521echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25697a35
GS
6522 fi
6523fi
6524rm -f confcache
6525
6526test "x$prefix" = xNONE && prefix=$ac_default_prefix
6527# Let make expand exec_prefix.
6528test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6529
25697a35
GS
6530# Transform confdefs.h into DEFS.
6531# Protect against shell expansion while executing Makefile rules.
6532# Protect against Makefile macro expansion.
6533#
6534# If the first sed substitution is executed (which looks for macros that
0743911c 6535# take arguments), then branch to the quote section. Otherwise,
25697a35 6536# look for a macro that doesn't take arguments.
0743911c 6537ac_script='
25697a35 6538t clear
0743911c
FM
6539:clear
6540s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
25697a35 6541t quote
0743911c 6542s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
25697a35 6543t quote
0743911c
FM
6544b any
6545:quote
6546s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6547s/\[/\\&/g
6548s/\]/\\&/g
6549s/\$/$$/g
6550H
6551:any
6552${
6553 g
6554 s/^\n//
6555 s/\n/ /g
6556 p
6557}
6558'
6559DEFS=`sed -n "$ac_script" confdefs.h`
25697a35
GS
6560
6561
6562ac_libobjs=
6563ac_ltlibobjs=
6564for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6565 # 1. Remove the extension, and $U if already installed.
0743911c
FM
6566 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6567 ac_i=`echo "$ac_i" | sed "$ac_script"`
6568 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6569 # will be set to the directory where LIBOBJS objects are built.
6570 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6571 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25697a35
GS
6572done
6573LIBOBJS=$ac_libobjs
6574
6575LTLIBOBJS=$ac_ltlibobjs
6576
6577
6578
6579: ${CONFIG_STATUS=./config.status}
6580ac_clean_files_save=$ac_clean_files
6581ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6582{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6583echo "$as_me: creating $CONFIG_STATUS" >&6;}
6584cat >$CONFIG_STATUS <<_ACEOF
6585#! $SHELL
6586# Generated by $as_me.
6587# Run this file to recreate the current configuration.
6588# Compiler output produced by configure, useful for debugging
6589# configure, is in config.log if it exists.
6590
6591debug=false
6592ac_cs_recheck=false
6593ac_cs_silent=false
6594SHELL=\${CONFIG_SHELL-$SHELL}
6595_ACEOF
6596
6597cat >>$CONFIG_STATUS <<\_ACEOF
6598## --------------------- ##
6599## M4sh Initialization. ##
6600## --------------------- ##
6601
0743911c
FM
6602# Be more Bourne compatible
6603DUALCASE=1; export DUALCASE # for MKS sh
25697a35
GS
6604if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6605 emulate sh
6606 NULLCMD=:
6607 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6608 # is contrary to our usage. Disable this feature.
6609 alias -g '${1+"$@"}'='"$@"'
0743911c
FM
6610 setopt NO_GLOB_SUBST
6611else
6612 case `(set -o) 2>/dev/null` in
6613 *posix*) set -o posix ;;
6614esac
6615
6616fi
6617
6618
6619
6620
6621# PATH needs CR
6622# Avoid depending upon Character Ranges.
6623as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6624as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6625as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6626as_cr_digits='0123456789'
6627as_cr_alnum=$as_cr_Letters$as_cr_digits
6628
6629# The user is always right.
6630if test "${PATH_SEPARATOR+set}" != set; then
6631 echo "#! /bin/sh" >conf$$.sh
6632 echo "exit 0" >>conf$$.sh
6633 chmod +x conf$$.sh
6634 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6635 PATH_SEPARATOR=';'
6636 else
6637 PATH_SEPARATOR=:
6638 fi
6639 rm -f conf$$.sh
25697a35 6640fi
25697a35
GS
6641
6642# Support unset when possible.
6643if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6644 as_unset=unset
6645else
6646 as_unset=false
6647fi
6648
6649
0743911c
FM
6650# IFS
6651# We need space, tab and new line, in precisely that order. Quoting is
6652# there to prevent editors from complaining about space-tab.
6653# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6654# splitting by setting IFS to empty value.)
6655as_nl='
6656'
6657IFS=" "" $as_nl"
6658
6659# Find who we are. Look in the path if we contain no directory separator.
6660case $0 in
6661 *[\\/]* ) as_myself=$0 ;;
6662 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663for as_dir in $PATH
6664do
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
6667 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6668done
6669IFS=$as_save_IFS
6670
6671 ;;
6672esac
6673# We did not find ourselves, most probably we were run as `sh COMMAND'
6674# in which case we are not to be found in the path.
6675if test "x$as_myself" = x; then
6676 as_myself=$0
6677fi
6678if test ! -f "$as_myself"; then
6679 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6680 { (exit 1); exit 1; }
6681fi
6682
25697a35 6683# Work around bugs in pre-3.0 UWIN ksh.
0743911c
FM
6684for as_var in ENV MAIL MAILPATH
6685do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6686done
25697a35
GS
6687PS1='$ '
6688PS2='> '
6689PS4='+ '
6690
6691# NLS nuisances.
6692for as_var in \
6693 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6694 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6695 LC_TELEPHONE LC_TIME
6696do
6697 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6698 eval $as_var=C; export $as_var
6699 else
0743911c 6700 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25697a35
GS
6701 fi
6702done
6703
6704# Required to use basename.
0743911c
FM
6705if expr a : '\(a\)' >/dev/null 2>&1 &&
6706 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25697a35
GS
6707 as_expr=expr
6708else
6709 as_expr=false
6710fi
6711
0743911c 6712if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25697a35
GS
6713 as_basename=basename
6714else
6715 as_basename=false
6716fi
6717
6718
6719# Name of the executable.
0743911c 6720as_me=`$as_basename -- "$0" ||
25697a35
GS
6721$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6722 X"$0" : 'X\(//\)$' \| \
0743911c 6723 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25697a35 6724echo X/"$0" |
0743911c
FM
6725 sed '/^.*\/\([^/][^/]*\)\/*$/{
6726 s//\1/
6727 q
6728 }
6729 /^X\/\(\/\/\)$/{
6730 s//\1/
6731 q
6732 }
6733 /^X\/\(\/\).*/{
6734 s//\1/
6735 q
6736 }
6737 s/.*/./; q'`
25697a35 6738
0743911c
FM
6739# CDPATH.
6740$as_unset CDPATH
25697a35 6741
25697a35
GS
6742
6743
6744 as_lineno_1=$LINENO
6745 as_lineno_2=$LINENO
25697a35 6746 test "x$as_lineno_1" != "x$as_lineno_2" &&
0743911c 6747 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25697a35
GS
6748
6749 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6750 # uniformly replaced by the line number. The first 'sed' inserts a
0743911c
FM
6751 # line-number line after each line using $LINENO; the second 'sed'
6752 # does the real work. The second script uses 'N' to pair each
6753 # line-number line with the line containing $LINENO, and appends
6754 # trailing '-' during substitution so that $LINENO is not a special
6755 # case at line end.
25697a35 6756 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
0743911c
FM
6757 # scripts with optimization help from Paolo Bonzini. Blame Lee
6758 # E. McMahon (1931-1989) for sed's syntax. :-)
6759 sed -n '
6760 p
6761 /[$]LINENO/=
6762 ' <$as_myself |
25697a35 6763 sed '
0743911c
FM
6764 s/[$]LINENO.*/&-/
6765 t lineno
6766 b
6767 :lineno
25697a35 6768 N
0743911c
FM
6769 :loop
6770 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25697a35 6771 t loop
0743911c 6772 s/-\n.*//
25697a35 6773 ' >$as_me.lineno &&
0743911c
FM
6774 chmod +x "$as_me.lineno" ||
6775 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25697a35
GS
6776 { (exit 1); exit 1; }; }
6777
6778 # Don't try to exec as it changes $[0], causing all sort of problems
6779 # (the dirname of $[0] is not the place where we might find the
0743911c
FM
6780 # original and so on. Autoconf is especially sensitive to this).
6781 . "./$as_me.lineno"
25697a35
GS
6782 # Exit status is that of the last command.
6783 exit
6784}
6785
6786
0743911c
FM
6787if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6788 as_dirname=dirname
6789else
6790 as_dirname=false
6791fi
6792
6793ECHO_C= ECHO_N= ECHO_T=
6794case `echo -n x` in
6795-n*)
6796 case `echo 'x\c'` in
6797 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6798 *) ECHO_C='\c';;
6799 esac;;
6800*)
6801 ECHO_N='-n';;
25697a35
GS
6802esac
6803
0743911c
FM
6804if expr a : '\(a\)' >/dev/null 2>&1 &&
6805 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25697a35
GS
6806 as_expr=expr
6807else
6808 as_expr=false
6809fi
6810
6811rm -f conf$$ conf$$.exe conf$$.file
0743911c
FM
6812if test -d conf$$.dir; then
6813 rm -f conf$$.dir/conf$$.file
6814else
6815 rm -f conf$$.dir
6816 mkdir conf$$.dir
6817fi
25697a35
GS
6818echo >conf$$.file
6819if ln -s conf$$.file conf$$ 2>/dev/null; then
0743911c
FM
6820 as_ln_s='ln -s'
6821 # ... but there are two gotchas:
6822 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6823 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6824 # In both cases, we have to default to `cp -p'.
6825 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25697a35 6826 as_ln_s='cp -p'
25697a35
GS
6827elif ln conf$$.file conf$$ 2>/dev/null; then
6828 as_ln_s=ln
6829else
6830 as_ln_s='cp -p'
6831fi
0743911c
FM
6832rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6833rmdir conf$$.dir 2>/dev/null
25697a35
GS
6834
6835if mkdir -p . 2>/dev/null; then
6836 as_mkdir_p=:
6837else
6838 test -d ./-p && rmdir ./-p
6839 as_mkdir_p=false
6840fi
6841
0743911c
FM
6842if test -x / >/dev/null 2>&1; then
6843 as_test_x='test -x'
6844else
6845 if ls -dL / >/dev/null 2>&1; then
6846 as_ls_L_option=L
6847 else
6848 as_ls_L_option=
6849 fi
6850 as_test_x='
6851 eval sh -c '\''
6852 if test -d "$1"; then
6853 test -d "$1/.";
6854 else
6855 case $1 in
6856 -*)set "./$1";;
6857 esac;
6858 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6859 ???[sx]*):;;*)false;;esac;fi
6860 '\'' sh
6861 '
6862fi
6863as_executable_p=$as_test_x
25697a35
GS
6864
6865# Sed expression to map a string onto a valid CPP name.
6866as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6867
6868# Sed expression to map a string onto a valid variable name.
6869as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6870
6871
25697a35
GS
6872exec 6>&1
6873
0743911c 6874# Save the log message, to keep $[0] and so on meaningful, and to
25697a35 6875# report actual input values of CONFIG_FILES etc. instead of their
0743911c
FM
6876# values after options handling.
6877ac_log="
25697a35 6878This file was extended by $as_me, which was
0743911c 6879generated by GNU Autoconf 2.61. Invocation command line was
25697a35
GS
6880
6881 CONFIG_FILES = $CONFIG_FILES
6882 CONFIG_HEADERS = $CONFIG_HEADERS
6883 CONFIG_LINKS = $CONFIG_LINKS
6884 CONFIG_COMMANDS = $CONFIG_COMMANDS
6885 $ $0 $@
6886
0743911c
FM
6887on `(hostname || uname -n) 2>/dev/null | sed 1q`
6888"
6889
25697a35
GS
6890_ACEOF
6891
0743911c 6892cat >>$CONFIG_STATUS <<_ACEOF
25697a35 6893# Files that config.status was made for.
0743911c 6894config_files="$ac_config_files"
25697a35 6895
0743911c 6896_ACEOF
25697a35
GS
6897
6898cat >>$CONFIG_STATUS <<\_ACEOF
25697a35
GS
6899ac_cs_usage="\
6900\`$as_me' instantiates files from templates according to the
6901current configuration.
6902
6903Usage: $0 [OPTIONS] [FILE]...
6904
6905 -h, --help print this help, then exit
0743911c 6906 -V, --version print version number and configuration settings, then exit
25697a35
GS
6907 -q, --quiet do not print progress messages
6908 -d, --debug don't remove temporary files
6909 --recheck update $as_me by reconfiguring in the same conditions
6910 --file=FILE[:TEMPLATE]
6911 instantiate the configuration file FILE
6912
6913Configuration files:
6914$config_files
6915
6916Report bugs to <bug-autoconf@gnu.org>."
25697a35 6917
0743911c 6918_ACEOF
25697a35
GS
6919cat >>$CONFIG_STATUS <<_ACEOF
6920ac_cs_version="\\
6921config.status
0743911c
FM
6922configured by $0, generated by GNU Autoconf 2.61,
6923 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25697a35 6924
0743911c 6925Copyright (C) 2006 Free Software Foundation, Inc.
25697a35
GS
6926This config.status script is free software; the Free Software Foundation
6927gives unlimited permission to copy, distribute and modify it."
0743911c
FM
6928
6929ac_pwd='$ac_pwd'
6930srcdir='$srcdir'
25697a35
GS
6931_ACEOF
6932
6933cat >>$CONFIG_STATUS <<\_ACEOF
6934# If no file are specified by the user, then we need to provide default
6935# value. By we need to know if files were specified by the user.
6936ac_need_defaults=:
6937while test $# != 0
6938do
6939 case $1 in
6940 --*=*)
0743911c
FM
6941 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6942 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25697a35
GS
6943 ac_shift=:
6944 ;;
0743911c 6945 *)
25697a35
GS
6946 ac_option=$1
6947 ac_optarg=$2
6948 ac_shift=shift
6949 ;;
25697a35
GS
6950 esac
6951
6952 case $ac_option in
6953 # Handling of the options.
25697a35
GS
6954 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6955 ac_cs_recheck=: ;;
0743911c
FM
6956 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6957 echo "$ac_cs_version"; exit ;;
6958 --debug | --debu | --deb | --de | --d | -d )
25697a35
GS
6959 debug=: ;;
6960 --file | --fil | --fi | --f )
6961 $ac_shift
6962 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6963 ac_need_defaults=false;;
0743911c
FM
6964 --he | --h | --help | --hel | -h )
6965 echo "$ac_cs_usage"; exit ;;
25697a35
GS
6966 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6967 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6968 ac_cs_silent=: ;;
6969
6970 # This is an error.
0743911c
FM
6971 -*) { echo "$as_me: error: unrecognized option: $1
6972Try \`$0 --help' for more information." >&2
25697a35
GS
6973 { (exit 1); exit 1; }; } ;;
6974
0743911c
FM
6975 *) ac_config_targets="$ac_config_targets $1"
6976 ac_need_defaults=false ;;
25697a35
GS
6977
6978 esac
6979 shift
6980done
6981
6982ac_configure_extra_args=
6983
6984if $ac_cs_silent; then
6985 exec 6>/dev/null
6986 ac_configure_extra_args="$ac_configure_extra_args --silent"
6987fi
6988
6989_ACEOF
6990cat >>$CONFIG_STATUS <<_ACEOF
6991if \$ac_cs_recheck; then
0743911c
FM
6992 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6993 CONFIG_SHELL=$SHELL
6994 export CONFIG_SHELL
6995 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25697a35
GS
6996fi
6997
6998_ACEOF
0743911c
FM
6999cat >>$CONFIG_STATUS <<\_ACEOF
7000exec 5>>config.log
7001{
7002 echo
7003 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7004## Running $as_me. ##
7005_ASBOX
7006 echo "$ac_log"
7007} >&5
25697a35 7008
0743911c
FM
7009_ACEOF
7010cat >>$CONFIG_STATUS <<_ACEOF
7011_ACEOF
25697a35
GS
7012
7013cat >>$CONFIG_STATUS <<\_ACEOF
0743911c
FM
7014
7015# Handling of arguments.
25697a35
GS
7016for ac_config_target in $ac_config_targets
7017do
0743911c
FM
7018 case $ac_config_target in
7019 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7020
25697a35
GS
7021 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7022echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7023 { (exit 1); exit 1; }; };;
7024 esac
7025done
7026
0743911c 7027
25697a35
GS
7028# If the user did not use the arguments to specify the items to instantiate,
7029# then the envvar interface is used. Set only those that are not.
7030# We use the long form for the default assignment because of an extremely
7031# bizarre bug on SunOS 4.1.3.
7032if $ac_need_defaults; then
7033 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7034fi
7035
7036# Have a temporary directory for convenience. Make it in the build tree
0743911c 7037# simply because there is no reason against having it here, and in addition,
25697a35 7038# creating and moving files from /tmp can sometimes cause problems.
0743911c
FM
7039# Hook for its removal unless debugging.
7040# Note that there is a small window in which the directory will not be cleaned:
7041# after its creation but before its name has been assigned to `$tmp'.
25697a35
GS
7042$debug ||
7043{
0743911c
FM
7044 tmp=
7045 trap 'exit_status=$?
7046 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7047' 0
25697a35
GS
7048 trap '{ (exit 1); exit 1; }' 1 2 13 15
7049}
25697a35
GS
7050# Create a (secure) tmp directory for tmp files.
7051
7052{
0743911c 7053 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25697a35
GS
7054 test -n "$tmp" && test -d "$tmp"
7055} ||
7056{
0743911c
FM
7057 tmp=./conf$$-$RANDOM
7058 (umask 077 && mkdir "$tmp")
25697a35
GS
7059} ||
7060{
7061 echo "$me: cannot create a temporary directory in ." >&2
7062 { (exit 1); exit 1; }
7063}
7064
25697a35 7065#
0743911c 7066# Set up the sed scripts for CONFIG_FILES section.
25697a35
GS
7067#
7068
7069# No need to generate the scripts if there are no CONFIG_FILES.
7070# This happens for instance when ./config.status config.h
0743911c 7071if test -n "$CONFIG_FILES"; then
25697a35
GS
7072
7073_ACEOF
7074
0743911c
FM
7075
7076
7077ac_delim='%!_!# '
7078for ac_last_try in false false false false false :; do
7079 cat >conf$$subs.sed <<_ACEOF
7080SHELL!$SHELL$ac_delim
7081PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7082PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7083PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7084PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7085PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7086PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7087exec_prefix!$exec_prefix$ac_delim
7088prefix!$prefix$ac_delim
7089program_transform_name!$program_transform_name$ac_delim
7090bindir!$bindir$ac_delim
7091sbindir!$sbindir$ac_delim
7092libexecdir!$libexecdir$ac_delim
7093datarootdir!$datarootdir$ac_delim
7094datadir!$datadir$ac_delim
7095sysconfdir!$sysconfdir$ac_delim
7096sharedstatedir!$sharedstatedir$ac_delim
7097localstatedir!$localstatedir$ac_delim
7098includedir!$includedir$ac_delim
7099oldincludedir!$oldincludedir$ac_delim
7100docdir!$docdir$ac_delim
7101infodir!$infodir$ac_delim
7102htmldir!$htmldir$ac_delim
7103dvidir!$dvidir$ac_delim
7104pdfdir!$pdfdir$ac_delim
7105psdir!$psdir$ac_delim
7106libdir!$libdir$ac_delim
7107localedir!$localedir$ac_delim
7108mandir!$mandir$ac_delim
7109DEFS!$DEFS$ac_delim
7110ECHO_C!$ECHO_C$ac_delim
7111ECHO_N!$ECHO_N$ac_delim
7112ECHO_T!$ECHO_T$ac_delim
7113LIBS!$LIBS$ac_delim
7114build_alias!$build_alias$ac_delim
7115host_alias!$host_alias$ac_delim
7116target_alias!$target_alias$ac_delim
7117build!$build$ac_delim
7118build_cpu!$build_cpu$ac_delim
7119build_vendor!$build_vendor$ac_delim
7120build_os!$build_os$ac_delim
7121host!$host$ac_delim
7122host_cpu!$host_cpu$ac_delim
7123host_vendor!$host_vendor$ac_delim
7124host_os!$host_os$ac_delim
7125CC!$CC$ac_delim
7126CFLAGS!$CFLAGS$ac_delim
7127LDFLAGS!$LDFLAGS$ac_delim
7128CPPFLAGS!$CPPFLAGS$ac_delim
7129ac_ct_CC!$ac_ct_CC$ac_delim
7130EXEEXT!$EXEEXT$ac_delim
7131OBJEXT!$OBJEXT$ac_delim
7132CPP!$CPP$ac_delim
7133GREP!$GREP$ac_delim
7134EGREP!$EGREP$ac_delim
7135LIBICONV!$LIBICONV$ac_delim
7136LTLIBICONV!$LTLIBICONV$ac_delim
7137BINDIR!$BINDIR$ac_delim
7138MANDIR!$MANDIR$ac_delim
7139SYSCONFDIR!$SYSCONFDIR$ac_delim
7140HTMLDIR!$HTMLDIR$ac_delim
7141LIBOBJS!$LIBOBJS$ac_delim
7142LTLIBOBJS!$LTLIBOBJS$ac_delim
7143_ACEOF
7144
7145 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
7146 break
7147 elif $ac_last_try; then
7148 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7149echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7150 { (exit 1); exit 1; }; }
7151 else
7152 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25697a35 7153 fi
0743911c
FM
7154done
7155
7156ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7157if test -n "$ac_eof"; then
7158 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7159 ac_eof=`expr $ac_eof + 1`
7160fi
25697a35 7161
0743911c
FM
7162cat >>$CONFIG_STATUS <<_ACEOF
7163cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7164/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7165_ACEOF
7166sed '
7167s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7168s/^/s,@/; s/!/@,|#_!!_#|/
7169:n
7170t n
7171s/'"$ac_delim"'$/,g/; t
7172s/$/\\/; p
7173N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7174' >>$CONFIG_STATUS <conf$$subs.sed
7175rm -f conf$$subs.sed
7176cat >>$CONFIG_STATUS <<_ACEOF
7177:end
7178s/|#_!!_#|//g
7179CEOF$ac_eof
25697a35 7180_ACEOF
0743911c
FM
7181
7182
7183# VPATH may cause trouble with some makes, so we remove $(srcdir),
7184# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7185# trailing colons and then remove the whole line if VPATH becomes empty
7186# (actually we leave an empty line to preserve line numbers).
7187if test "x$srcdir" = x.; then
7188 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7189s/:*\$(srcdir):*/:/
7190s/:*\${srcdir}:*/:/
7191s/:*@srcdir@:*/:/
7192s/^\([^=]*=[ ]*\):*/\1/
7193s/:*$//
7194s/^[^=]*=[ ]*$//
7195}'
7196fi
7197
25697a35 7198cat >>$CONFIG_STATUS <<\_ACEOF
0743911c
FM
7199fi # test -n "$CONFIG_FILES"
7200
7201
7202for ac_tag in :F $CONFIG_FILES
7203do
7204 case $ac_tag in
7205 :[FHLC]) ac_mode=$ac_tag; continue;;
7206 esac
7207 case $ac_mode$ac_tag in
7208 :[FHL]*:*);;
7209 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7210echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7211 { (exit 1); exit 1; }; };;
7212 :[FH]-) ac_tag=-:-;;
7213 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25697a35 7214 esac
0743911c
FM
7215 ac_save_IFS=$IFS
7216 IFS=:
7217 set x $ac_tag
7218 IFS=$ac_save_IFS
7219 shift
7220 ac_file=$1
7221 shift
25697a35 7222
0743911c
FM
7223 case $ac_mode in
7224 :L) ac_source=$1;;
7225 :[FH])
7226 ac_file_inputs=
7227 for ac_f
7228 do
7229 case $ac_f in
7230 -) ac_f="$tmp/stdin";;
7231 *) # Look for the file first in the build tree, then in the source tree
7232 # (if the path is not absolute). The absolute path cannot be DOS-style,
7233 # because $ac_f cannot contain `:'.
7234 test -f "$ac_f" ||
7235 case $ac_f in
7236 [\\/$]*) false;;
7237 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7238 esac ||
7239 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7240echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7241 { (exit 1); exit 1; }; };;
7242 esac
7243 ac_file_inputs="$ac_file_inputs $ac_f"
7244 done
7245
7246 # Let's still pretend it is `configure' which instantiates (i.e., don't
7247 # use $as_me), people would be surprised to read:
7248 # /* config.h. Generated by config.status. */
7249 configure_input="Generated from "`IFS=:
7250 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7251 if test x"$ac_file" != x-; then
7252 configure_input="$ac_file. $configure_input"
7253 { echo "$as_me:$LINENO: creating $ac_file" >&5
7254echo "$as_me: creating $ac_file" >&6;}
7255 fi
7256
7257 case $ac_tag in
7258 *:-:* | *:-) cat >"$tmp/stdin";;
7259 esac
7260 ;;
7261 esac
7262
7263 ac_dir=`$as_dirname -- "$ac_file" ||
25697a35
GS
7264$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7265 X"$ac_file" : 'X\(//\)[^/]' \| \
7266 X"$ac_file" : 'X\(//\)$' \| \
0743911c 7267 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25697a35 7268echo X"$ac_file" |
0743911c
FM
7269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7270 s//\1/
7271 q
7272 }
7273 /^X\(\/\/\)[^/].*/{
7274 s//\1/
7275 q
7276 }
7277 /^X\(\/\/\)$/{
7278 s//\1/
7279 q
7280 }
7281 /^X\(\/\).*/{
7282 s//\1/
7283 q
7284 }
7285 s/.*/./; q'`
7286 { as_dir="$ac_dir"
7287 case $as_dir in #(
7288 -*) as_dir=./$as_dir;;
7289 esac
7290 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25697a35 7291 as_dirs=
0743911c
FM
7292 while :; do
7293 case $as_dir in #(
7294 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7295 *) as_qdir=$as_dir;;
7296 esac
7297 as_dirs="'$as_qdir' $as_dirs"
7298 as_dir=`$as_dirname -- "$as_dir" ||
25697a35
GS
7299$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7300 X"$as_dir" : 'X\(//\)[^/]' \| \
7301 X"$as_dir" : 'X\(//\)$' \| \
0743911c 7302 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25697a35 7303echo X"$as_dir" |
0743911c
FM
7304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7305 s//\1/
7306 q
7307 }
7308 /^X\(\/\/\)[^/].*/{
7309 s//\1/
7310 q
7311 }
7312 /^X\(\/\/\)$/{
7313 s//\1/
7314 q
7315 }
7316 /^X\(\/\).*/{
7317 s//\1/
7318 q
7319 }
7320 s/.*/./; q'`
7321 test -d "$as_dir" && break
25697a35 7322 done
0743911c
FM
7323 test -z "$as_dirs" || eval "mkdir $as_dirs"
7324 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7325echo "$as_me: error: cannot create directory $as_dir" >&2;}
25697a35 7326 { (exit 1); exit 1; }; }; }
25697a35
GS
7327 ac_builddir=.
7328
0743911c
FM
7329case "$ac_dir" in
7330.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7331*)
25697a35 7332 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
0743911c
FM
7333 # A ".." for each directory in $ac_dir_suffix.
7334 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7335 case $ac_top_builddir_sub in
7336 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7337 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7338 esac ;;
7339esac
7340ac_abs_top_builddir=$ac_pwd
7341ac_abs_builddir=$ac_pwd$ac_dir_suffix
7342# for backward compatibility:
7343ac_top_builddir=$ac_top_build_prefix
25697a35
GS
7344
7345case $srcdir in
0743911c 7346 .) # We are building in place.
25697a35 7347 ac_srcdir=.
0743911c
FM
7348 ac_top_srcdir=$ac_top_builddir_sub
7349 ac_abs_top_srcdir=$ac_pwd ;;
7350 [\\/]* | ?:[\\/]* ) # Absolute name.
25697a35 7351 ac_srcdir=$srcdir$ac_dir_suffix;
0743911c
FM
7352 ac_top_srcdir=$srcdir
7353 ac_abs_top_srcdir=$srcdir ;;
7354 *) # Relative name.
7355 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7356 ac_top_srcdir=$ac_top_build_prefix$srcdir
7357 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25697a35 7358esac
0743911c 7359ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25697a35 7360
25697a35 7361
0743911c
FM
7362 case $ac_mode in
7363 :F)
7364 #
7365 # CONFIG_FILE
7366 #
25697a35 7367
0743911c 7368_ACEOF
25697a35 7369
0743911c
FM
7370cat >>$CONFIG_STATUS <<\_ACEOF
7371# If the template does not know about datarootdir, expand it.
7372# FIXME: This hack should be removed a few years after 2.60.
7373ac_datarootdir_hack=; ac_datarootdir_seen=
7374
7375case `sed -n '/datarootdir/ {
7376 p
7377 q
7378}
7379/@datadir@/p
7380/@docdir@/p
7381/@infodir@/p
7382/@localedir@/p
7383/@mandir@/p
7384' $ac_file_inputs` in
7385*datarootdir*) ac_datarootdir_seen=yes;;
7386*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7387 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7388echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25697a35 7389_ACEOF
0743911c
FM
7390cat >>$CONFIG_STATUS <<_ACEOF
7391 ac_datarootdir_hack='
7392 s&@datadir@&$datadir&g
7393 s&@docdir@&$docdir&g
7394 s&@infodir@&$infodir&g
7395 s&@localedir@&$localedir&g
7396 s&@mandir@&$mandir&g
7397 s&\\\${datarootdir}&$datarootdir&g' ;;
7398esac
7399_ACEOF
7400
7401# Neutralize VPATH when `$srcdir' = `.'.
7402# Shell code in configure.ac might set extrasub.
7403# FIXME: do we really want to maintain this feature?
25697a35
GS
7404cat >>$CONFIG_STATUS <<_ACEOF
7405 sed "$ac_vpsub
7406$extrasub
7407_ACEOF
7408cat >>$CONFIG_STATUS <<\_ACEOF
7409:t
7410/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
0743911c
FM
7411s&@configure_input@&$configure_input&;t t
7412s&@top_builddir@&$ac_top_builddir_sub&;t t
7413s&@srcdir@&$ac_srcdir&;t t
7414s&@abs_srcdir@&$ac_abs_srcdir&;t t
7415s&@top_srcdir@&$ac_top_srcdir&;t t
7416s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7417s&@builddir@&$ac_builddir&;t t
7418s&@abs_builddir@&$ac_abs_builddir&;t t
7419s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7420$ac_datarootdir_hack
7421" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
7422
7423test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7424 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7425 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7426 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7427which seems to be undefined. Please make sure it is defined." >&5
7428echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7429which seems to be undefined. Please make sure it is defined." >&2;}
7430
7431 rm -f "$tmp/stdin"
7432 case $ac_file in
7433 -) cat "$tmp/out"; rm -f "$tmp/out";;
7434 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7435 esac
7436 ;;
25697a35 7437
25697a35 7438
0743911c
FM
7439
7440 esac
7441
7442done # for ac_tag
7443
25697a35
GS
7444
7445{ (exit 0); exit 0; }
7446_ACEOF
7447chmod +x $CONFIG_STATUS
7448ac_clean_files=$ac_clean_files_save
7449
7450
7451# configure is writing to config.log, and then calls config.status.
7452# config.status does its own redirection, appending to config.log.
7453# Unfortunately, on DOS this fails, as config.log is still kept open
7454# by configure, so config.status won't be able to write to it; its
7455# output is simply discarded. So we exec the FD to /dev/null,
7456# effectively closing config.log, so it can be properly (re)opened and
7457# appended to by config.status. When coming back to configure, we
7458# need to make the FD available again.
7459if test "$no_create" != yes; then
7460 ac_cs_success=:
7461 ac_config_status_args=
7462 test "$silent" = yes &&
7463 ac_config_status_args="$ac_config_status_args --quiet"
7464 exec 5>/dev/null
7465 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7466 exec 5>>config.log
7467 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7468 # would make configure fail if this is the last instruction.
7469 $ac_cs_success || { (exit 1); exit 1; }
7470fi
7471